configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libSM 1.2.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libSM'
653 PACKAGE_TARNAME='libSM'
654 PACKAGE_VERSION='1.2.3'
655 PACKAGE_STRING='libSM 1.2.3'
656 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 WITH_LIBUUID_FALSE
701 WITH_LIBUUID_TRUE
702 LIBUUID_LIBS
703 LIBUUID_CFLAGS
704 SM_LIBS
705 SM_CFLAGS
706 HAVE_STYLESHEETS_FALSE
707 HAVE_STYLESHEETS_TRUE
708 XSL_STYLESHEET
709 STYLESHEET_SRCDIR
710 XORG_SGML_PATH
711 HAVE_XSLTPROC_FALSE
712 HAVE_XSLTPROC_TRUE
713 XSLTPROC
714 HAVE_FOP_FALSE
715 HAVE_FOP_TRUE
716 FOP
717 HAVE_XMLTO_FALSE
718 HAVE_XMLTO_TRUE
719 HAVE_XMLTO_TEXT_FALSE
720 HAVE_XMLTO_TEXT_TRUE
721 XMLTO
722 ENABLE_DOCS_FALSE
723 ENABLE_DOCS_TRUE
724 MAN_SUBSTS
725 XORG_MAN_PAGE
726 ADMIN_MAN_DIR
727 DRIVER_MAN_DIR
728 MISC_MAN_DIR
729 FILE_MAN_DIR
730 LIB_MAN_DIR
731 APP_MAN_DIR
732 ADMIN_MAN_SUFFIX
733 DRIVER_MAN_SUFFIX
734 MISC_MAN_SUFFIX
735 FILE_MAN_SUFFIX
736 LIB_MAN_SUFFIX
737 APP_MAN_SUFFIX
738 INSTALL_CMD
739 PKG_CONFIG_LIBDIR
740 PKG_CONFIG_PATH
741 PKG_CONFIG
742 CHANGELOG_CMD
743 STRICT_CFLAGS
744 CWARNFLAGS
745 BASE_CFLAGS
746 CPP
747 LT_SYS_LIBRARY_PATH
748 OTOOL64
749 OTOOL
750 LIPO
751 NMEDIT
752 DSYMUTIL
753 MANIFEST_TOOL
754 RANLIB
755 ac_ct_AR
756 AR
757 DLLTOOL
758 OBJDUMP
759 LN_S
760 NM
761 ac_ct_DUMPBIN
762 DUMPBIN
763 LD
764 FGREP
765 EGREP
766 GREP
767 SED
768 am__fastdepCC_FALSE
769 am__fastdepCC_TRUE
770 CCDEPMODE
771 am__nodep
772 AMDEPBACKSLASH
773 AMDEP_FALSE
774 AMDEP_TRUE
775 am__quote
776 am__include
777 DEPDIR
778 OBJEXT
779 EXEEXT
780 ac_ct_CC
781 CPPFLAGS
782 LDFLAGS
783 CFLAGS
784 CC
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 LIBTOOL
794 AM_BACKSLASH
795 AM_DEFAULT_VERBOSITY
796 AM_DEFAULT_V
797 AM_V
798 am__untar
799 am__tar
800 AMTAR
801 am__leading_dot
802 SET_MAKE
803 AWK
804 mkdir_p
805 MKDIR_P
806 INSTALL_STRIP_PROGRAM
807 STRIP
808 install_sh
809 MAKEINFO
810 AUTOHEADER
811 AUTOMAKE
812 AUTOCONF
813 ACLOCAL
814 VERSION
815 PACKAGE
816 CYGPATH_W
817 am__isrc
818 INSTALL_DATA
819 INSTALL_SCRIPT
820 INSTALL_PROGRAM
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 runstatedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL'
860 ac_subst_files=''
861 ac_user_opts='
862 enable_option_checking
863 enable_silent_rules
864 enable_shared
865 enable_static
866 with_pic
867 enable_fast_install
868 with_aix_soname
869 enable_dependency_tracking
870 with_gnu_ld
871 with_sysroot
872 enable_libtool_lock
873 enable_selective_werror
874 enable_strict_compilation
875 enable_docs
876 with_xmlto
877 with_fop
878 with_xsltproc
879 enable_unix_transport
880 enable_tcp_transport
881 enable_ipv6
882 enable_local_transport
883 with_libuuid
884 '
885 ac_precious_vars='build_alias
886 host_alias
887 target_alias
888 CC
889 CFLAGS
890 LDFLAGS
891 LIBS
892 CPPFLAGS
893 LT_SYS_LIBRARY_PATH
894 CPP
895 PKG_CONFIG
896 PKG_CONFIG_PATH
897 PKG_CONFIG_LIBDIR
898 XMLTO
899 FOP
900 XSLTPROC
901 SM_CFLAGS
902 SM_LIBS
903 LIBUUID_CFLAGS
904 LIBUUID_LIBS'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 runstatedir='${localstatedir}/run'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -runstatedir | --runstatedir | --runstatedi | --runstated \
1197 | --runstate | --runstat | --runsta | --runst | --runs \
1198 | --run | --ru | --r)
1199 ac_prev=runstatedir ;;
1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202 | --run=* | --ru=* | --r=*)
1203 runstatedir=$ac_optarg ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1249
1250 -with-* | --with-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=\$ac_optarg ;;
1265
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: $ac_useropt"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310 esac
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 ;;
1321
1322 esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1328 fi
1329
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1332 no) ;;
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 esac
1336 fi
1337
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1343 do
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1346 case $ac_val in
1347 */ )
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1350 esac
1351 # Be sure to have absolute directory names.
1352 case $ac_val in
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 esac
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357 done
1358
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1419 fi
1420 else
1421 ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 fi
1427 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 \`configure' configures libSM 1.2.3 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1480
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libSM]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1510
1511 cat <<\_ACEOF
1512
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of libSM 1.2.3:";;
1527 esac
1528 cat <<\_ACEOF
1529
1530 Optional Features:
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-silent-rules less verbose build output (undo: "make V=1")
1535 --disable-silent-rules verbose build output (undo: "make V=0")
1536 --enable-shared[=PKGS] build shared libraries [default=yes]
1537 --enable-static[=PKGS] build static libraries [default=yes]
1538 --enable-fast-install[=PKGS]
1539 optimize for fast installation [default=yes]
1540 --enable-dependency-tracking
1541 do not reject slow dependency extractors
1542 --disable-dependency-tracking
1543 speeds up one-time build
1544 --disable-libtool-lock avoid locking (might break parallel builds)
1545 --disable-selective-werror
1546 Turn off selective compiler errors. (default:
1547 enabled)
1548 --enable-strict-compilation
1549 Enable all warnings from compiler and make them
1550 errors (default: disabled)
1551 --enable-docs Enable building the documentation (default: yes)
1552 --enable-unix-transport Enable UNIX domain socket transport
1553 --enable-tcp-transport Enable TCP socket transport
1554 --enable-ipv6 Enable IPv6 support
1555 --enable-local-transport
1556 Enable os-specific local transport
1557
1558 Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1561 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1562 both]
1563 --with-aix-soname=aix|svr4|both
1564 shared library versioning (aka "SONAME") variant to
1565 provide on AIX, [default=aix].
1566 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1567 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1568 compiler's sysroot if not specified).
1569 --with-xmlto Use xmlto to regenerate documentation (default:
1570 auto)
1571 --with-fop Use fop to regenerate documentation (default: auto)
1572 --with-xsltproc Use xsltproc for the transformation of XML documents
1573 (default: auto)
1574 --with-libuuid Build with libuuid support for client IDs
1575
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1584 LT_SYS_LIBRARY_PATH
1585 User-defined run-time library search path.
1586 CPP C preprocessor
1587 PKG_CONFIG path to pkg-config utility
1588 PKG_CONFIG_PATH
1589 directories to add to pkg-config's search path
1590 PKG_CONFIG_LIBDIR
1591 path overriding pkg-config's built-in search path
1592 XMLTO Path to xmlto command
1593 FOP Path to fop command
1594 XSLTPROC Path to xsltproc command
1595 SM_CFLAGS C compiler flags for SM, overriding pkg-config
1596 SM_LIBS linker flags for SM, overriding pkg-config
1597 LIBUUID_CFLAGS
1598 C compiler flags for LIBUUID, overriding pkg-config
1599 LIBUUID_LIBS
1600 linker flags for LIBUUID, overriding pkg-config
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
1616 ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635 .) # We are building in place.
1636 ac_srcdir=.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 libSM configure 1.2.3
1669 generated by GNU Autoconf 2.69
1670
1671 Copyright (C) 2012 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1676 fi
1677
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1681
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1686 {
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1712
1713 ac_retval=1
1714 fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_compile
1719
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_link ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755 fi
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_link
1765
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1771 {
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 $4
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_header_compile
1796
1797 # ac_fn_c_try_cpp LINENO
1798 # ----------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_cpp ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_cpp
1833
1834 # ac_fn_c_try_run LINENO
1835 # ----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837 # that executables *can* be run.
1838 ac_fn_c_try_run ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852 { { case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_try") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; }; }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: program exited with status $ac_status" >&5
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=$ac_status
1869 fi
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_run
1875
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1892
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1897
1898 #ifdef __STDC__
1899 # include <limits.h>
1900 #else
1901 # include <assert.h>
1902 #endif
1903
1904 #undef $2
1905
1906 /* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909 #ifdef __cplusplus
1910 extern "C"
1911 #endif
1912 char $2 ();
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined __stub_$2 || defined __stub___$2
1917 choke me
1918 #endif
1919
1920 int
1921 main ()
1922 {
1923 return $2 ();
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext 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_func
1942
1943 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1944 # ---------------------------------------------
1945 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1946 # accordingly.
1947 ac_fn_c_check_decl ()
1948 {
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 as_decl_name=`echo $2|sed 's/ *(.*//'`
1951 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1953 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1956 else
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 int
1961 main ()
1962 {
1963 #ifndef $as_decl_name
1964 #ifdef __cplusplus
1965 (void) $as_decl_use;
1966 #else
1967 (void) $as_decl_name;
1968 #endif
1969 #endif
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 eval "$3=yes"
1977 else
1978 eval "$3=no"
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987 } # ac_fn_c_check_decl
1988
1989 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990 # ----------------------------------------------------
1991 # Tries to find if the field MEMBER exists in type AGGR, after including
1992 # INCLUDES, setting cache variable VAR accordingly.
1993 ac_fn_c_check_member ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997 $as_echo_n "checking for $2.$3... " >&6; }
1998 if eval \${$4+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $5
2004 int
2005 main ()
2006 {
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $5
2020 int
2021 main ()
2022 {
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 eval "$4=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 eval ac_res=\$$4
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043
2044 } # ac_fn_c_check_member
2045
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2051 {
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if eval \${$3+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=no"
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof ($2))
2066 return 0;
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2074 $4
2075 int
2076 main ()
2077 {
2078 if (sizeof (($2)))
2079 return 0;
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085
2086 else
2087 eval "$3=yes"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 fi
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098 } # ac_fn_c_check_type
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by libSM $as_me 1.2.3, which was
2104 generated by GNU Autoconf 2.69. Invocation command line was
2105
2106 $ $0 $@
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167 for ac_arg
2168 do
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 2)
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2192 ;;
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2195 fi
2196 as_fn_append ac_configure_args " '$ac_arg'"
2197 ;;
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2211 {
2212 echo
2213
2214 $as_echo "## ---------------- ##
2215 ## Cache variables. ##
2216 ## ---------------- ##"
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
2219 (
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
2235 (set) 2>&1 |
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2238 sed -n \
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
2242 *)
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 ;;
2245 esac |
2246 sort
2247 )
2248 echo
2249
2250 $as_echo "## ----------------- ##
2251 ## Output variables. ##
2252 ## ----------------- ##"
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in
2258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 esac
2260 $as_echo "$ac_var='\''$ac_val'\''"
2261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 $as_echo "## ------------------- ##
2266 ## File substitutions. ##
2267 ## ------------------- ##"
2268 echo
2269 for ac_var in $ac_subst_files
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278 fi
2279
2280 if test -s confdefs.h; then
2281 $as_echo "## ----------- ##
2282 ## confdefs.h. ##
2283 ## ----------- ##"
2284 echo
2285 cat confdefs.h
2286 echo
2287 fi
2288 test "$ac_signal" != 0 &&
2289 $as_echo "$as_me: caught signal $ac_signal"
2290 $as_echo "$as_me: exit $exit_status"
2291 } >&5
2292 rm -f core *.core core.conftest.* &&
2293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294 exit $exit_status
2295 ' 0
2296 for ac_signal in 1 2 13 15; do
2297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298 done
2299 ac_signal=0
2300
2301 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2302 rm -f -r conftest* confdefs.h
2303
2304 $as_echo "/* confdefs.h */" > confdefs.h
2305
2306 # Predefined preprocessor variables.
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_NAME "$PACKAGE_NAME"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_STRING "$PACKAGE_STRING"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_URL "$PACKAGE_URL"
2330 _ACEOF
2331
2332
2333 # Let the site file select an alternate cache file if it wants to.
2334 # Prefer an explicitly selected file to automatically selected ones.
2335 ac_site_file1=NONE
2336 ac_site_file2=NONE
2337 if test -n "$CONFIG_SITE"; then
2338 # We do not want a PATH search for config.site.
2339 case $CONFIG_SITE in #((
2340 -*) ac_site_file1=./$CONFIG_SITE;;
2341 */*) ac_site_file1=$CONFIG_SITE;;
2342 *) ac_site_file1=./$CONFIG_SITE;;
2343 esac
2344 elif test "x$prefix" != xNONE; then
2345 ac_site_file1=$prefix/share/config.site
2346 ac_site_file2=$prefix/etc/config.site
2347 else
2348 ac_site_file1=$ac_default_prefix/share/config.site
2349 ac_site_file2=$ac_default_prefix/etc/config.site
2350 fi
2351 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 do
2353 test "x$ac_site_file" = xNONE && continue
2354 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
2358 . "$ac_site_file" \
2359 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 as_fn_error $? "failed to load site script $ac_site_file
2362 See \`config.log' for more details" "$LINENO" 5; }
2363 fi
2364 done
2365
2366 if test -r "$cache_file"; then
2367 # Some versions of bash will fail to source /dev/null (special files
2368 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2369 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2371 $as_echo "$as_me: loading cache $cache_file" >&6;}
2372 case $cache_file in
2373 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2374 *) . "./$cache_file";;
2375 esac
2376 fi
2377 else
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2379 $as_echo "$as_me: creating cache $cache_file" >&6;}
2380 >$cache_file
2381 fi
2382
2383 # Check that the precious variables saved in the cache have kept the same
2384 # value.
2385 ac_cache_corrupted=false
2386 for ac_var in $ac_precious_vars; do
2387 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2388 eval ac_new_set=\$ac_env_${ac_var}_set
2389 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2390 eval ac_new_val=\$ac_env_${ac_var}_value
2391 case $ac_old_set,$ac_new_set in
2392 set,)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2396 ,set)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,);;
2401 *)
2402 if test "x$ac_old_val" != "x$ac_new_val"; then
2403 # differences in whitespace do not lead to failure.
2404 ac_old_val_w=`echo x $ac_old_val`
2405 ac_new_val_w=`echo x $ac_new_val`
2406 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2408 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2409 ac_cache_corrupted=:
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2412 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2413 eval $ac_var=\$ac_old_val
2414 fi
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2416 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2418 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2419 fi;;
2420 esac
2421 # Pass precious variables to config.status.
2422 if test "$ac_new_set" = set; then
2423 case $ac_new_val in
2424 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2425 *) ac_arg=$ac_var=$ac_new_val ;;
2426 esac
2427 case " $ac_configure_args " in
2428 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2429 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2430 esac
2431 fi
2432 done
2433 if $ac_cache_corrupted; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2437 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2438 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2439 fi
2440 ## -------------------- ##
2441 ## Main body of script. ##
2442 ## -------------------- ##
2443
2444 ac_ext=c
2445 ac_cpp='$CPP $CPPFLAGS'
2446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2449
2450
2451
2452 ac_config_headers="$ac_config_headers config.h"
2453
2454
2455 # Initialize Automake
2456 am__api_version='1.15'
2457
2458 ac_aux_dir=
2459 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2460 if test -f "$ac_dir/install-sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install-sh -c"
2463 break
2464 elif test -f "$ac_dir/install.sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install.sh -c"
2467 break
2468 elif test -f "$ac_dir/shtool"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/shtool install -c"
2471 break
2472 fi
2473 done
2474 if test -z "$ac_aux_dir"; then
2475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2476 fi
2477
2478 # These three variables are undocumented and unsupported,
2479 # and are intended to be withdrawn in a future Autoconf release.
2480 # They can cause serious problems if a builder's source tree is in a directory
2481 # whose full name contains unusual characters.
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485
2486
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2493 # AIX /bin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 # Reject install programs that cannot install multiple files.
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 if test -z "$INSTALL"; then
2504 if ${ac_cv_path_install+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2537 mkdir conftest.dir
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2542 then
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 break 3
2545 fi
2546 fi
2547 fi
2548 done
2549 done
2550 ;;
2551 esac
2552
2553 done
2554 IFS=$as_save_IFS
2555
2556 rm -rf conftest.one conftest.two conftest.dir
2557
2558 fi
2559 if test "${ac_cv_path_install+set}" = set; then
2560 INSTALL=$ac_cv_path_install
2561 else
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 INSTALL=$ac_install_sh
2567 fi
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 $as_echo "$INSTALL" >&6; }
2571
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2581 $as_echo_n "checking whether build environment is sane... " >&6; }
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name. Accept space and tab only in the latter.
2584 am_lf='
2585 '
2586 case `pwd` in
2587 *[\\\"\#\$\&\'\`$am_lf]*)
2588 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2589 esac
2590 case $srcdir in
2591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2593 esac
2594
2595 # Do 'set' in a subshell so we don't clobber the current shell's
2596 # arguments. Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2599 # directory).
2600 if (
2601 am_has_slept=no
2602 for am_try in 1 2; do
2603 echo "timestamp, slept: $am_has_slept" > conftest.file
2604 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2605 if test "$*" = "X"; then
2606 # -L didn't work.
2607 set X `ls -t "$srcdir/configure" conftest.file`
2608 fi
2609 if test "$*" != "X $srcdir/configure conftest.file" \
2610 && test "$*" != "X conftest.file $srcdir/configure"; then
2611
2612 # If neither matched, then we have a broken ls. This can happen
2613 # if, for instance, CONFIG_SHELL is bash and it inherits a
2614 # broken ls alias from the environment. This has actually
2615 # happened. Such a system could not be considered "sane".
2616 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2618 fi
2619 if test "$2" = conftest.file || test $am_try -eq 2; then
2620 break
2621 fi
2622 # Just in case.
2623 sleep 1
2624 am_has_slept=yes
2625 done
2626 test "$2" = conftest.file
2627 )
2628 then
2629 # Ok.
2630 :
2631 else
2632 as_fn_error $? "newly created file is older than distributed files!
2633 Check your system clock" "$LINENO" 5
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 # If we didn't sleep, we still need to ensure time stamps of config.status and
2638 # generated files are strictly newer.
2639 am_sleep_pid=
2640 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2641 ( sleep 1 ) &
2642 am_sleep_pid=$!
2643 fi
2644
2645 rm -f conftest.file
2646
2647 test "$program_prefix" != NONE &&
2648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2649 # Use a double $ so make ignores it.
2650 test "$program_suffix" != NONE &&
2651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2652 # Double any \ or $.
2653 # By default was `s,x,x', remove it if useless.
2654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656
2657 # Expand $ac_aux_dir to an absolute path.
2658 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2659
2660 if test x"${MISSING+set}" != xset; then
2661 case $am_aux_dir in
2662 *\ * | *\ *)
2663 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2664 *)
2665 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2666 esac
2667 fi
2668 # Use eval to expand $SHELL
2669 if eval "$MISSING --is-lightweight"; then
2670 am_missing_run="$MISSING "
2671 else
2672 am_missing_run=
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2674 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2675 fi
2676
2677 if test x"${install_sh+set}" != xset; then
2678 case $am_aux_dir in
2679 *\ * | *\ *)
2680 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2681 *)
2682 install_sh="\${SHELL} $am_aux_dir/install-sh"
2683 esac
2684 fi
2685
2686 # Installed binaries are usually stripped using 'strip' when the user
2687 # run "make install-strip". However 'strip' might not be the right
2688 # tool to use in cross-compilation environments, therefore Automake
2689 # will honor the 'STRIP' environment variable to overrule this program.
2690 if test "$cross_compiling" != no; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}strip; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_STRIP+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$STRIP"; then
2700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 STRIP=$ac_cv_prog_STRIP
2720 if test -n "$STRIP"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2722 $as_echo "$STRIP" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$ac_cv_prog_STRIP"; then
2731 ac_ct_STRIP=$STRIP
2732 # Extract the first word of "strip", so it can be a program name with args.
2733 set dummy strip; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$ac_ct_STRIP"; then
2740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_STRIP="strip"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2760 if test -n "$ac_ct_STRIP"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2762 $as_echo "$ac_ct_STRIP" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768 if test "x$ac_ct_STRIP" = x; then
2769 STRIP=":"
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777 STRIP=$ac_ct_STRIP
2778 fi
2779 else
2780 STRIP="$ac_cv_prog_STRIP"
2781 fi
2782
2783 fi
2784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2787 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2788 if test -z "$MKDIR_P"; then
2789 if ${ac_cv_path_mkdir+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_prog in mkdir gmkdir; do
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2801 'mkdir (GNU coreutils) '* | \
2802 'mkdir (coreutils) '* | \
2803 'mkdir (fileutils) '4.1*)
2804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2805 break 3;;
2806 esac
2807 done
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813
2814 test -d ./--version && rmdir ./--version
2815 if test "${ac_cv_path_mkdir+set}" = set; then
2816 MKDIR_P="$ac_cv_path_mkdir -p"
2817 else
2818 # As a last resort, use the slow shell script. Don't cache a
2819 # value for MKDIR_P within a source directory, because that will
2820 # break other packages using the cache if that directory is
2821 # removed, or if the value is a relative name.
2822 MKDIR_P="$ac_install_sh -d"
2823 fi
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2826 $as_echo "$MKDIR_P" >&6; }
2827
2828 for ac_prog in gawk mawk nawk awk
2829 do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_AWK+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$AWK"; then
2838 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_AWK="$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 AWK=$ac_cv_prog_AWK
2858 if test -n "$AWK"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2860 $as_echo "$AWK" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867 test -n "$AWK" && break
2868 done
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2871 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872 set x ${MAKE-make}
2873 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2874 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 cat >conftest.make <<\_ACEOF
2878 SHELL = /bin/sh
2879 all:
2880 @echo '@@@%%%=$(MAKE)=@@@%%%'
2881 _ACEOF
2882 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2883 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884 *@@@%%%=?*=@@@%%%*)
2885 eval ac_cv_prog_make_${ac_make}_set=yes;;
2886 *)
2887 eval ac_cv_prog_make_${ac_make}_set=no;;
2888 esac
2889 rm -f conftest.make
2890 fi
2891 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894 SET_MAKE=
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 SET_MAKE="MAKE=${MAKE-make}"
2899 fi
2900
2901 rm -rf .tst 2>/dev/null
2902 mkdir .tst 2>/dev/null
2903 if test -d .tst; then
2904 am__leading_dot=.
2905 else
2906 am__leading_dot=_
2907 fi
2908 rmdir .tst 2>/dev/null
2909
2910 # Check whether --enable-silent-rules was given.
2911 if test "${enable_silent_rules+set}" = set; then :
2912 enableval=$enable_silent_rules;
2913 fi
2914
2915 case $enable_silent_rules in # (((
2916 yes) AM_DEFAULT_VERBOSITY=0;;
2917 no) AM_DEFAULT_VERBOSITY=1;;
2918 *) AM_DEFAULT_VERBOSITY=1;;
2919 esac
2920 am_make=${MAKE-make}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2922 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2923 if ${am_cv_make_support_nested_variables+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if $as_echo 'TRUE=$(BAR$(V))
2927 BAR0=false
2928 BAR1=true
2929 V=1
2930 am__doit:
2931 @$(TRUE)
2932 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2933 am_cv_make_support_nested_variables=yes
2934 else
2935 am_cv_make_support_nested_variables=no
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2939 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2940 if test $am_cv_make_support_nested_variables = yes; then
2941 AM_V='$(V)'
2942 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2943 else
2944 AM_V=$AM_DEFAULT_VERBOSITY
2945 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2946 fi
2947 AM_BACKSLASH='\'
2948
2949 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2950 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2951 # is not polluted with repeated "-I."
2952 am__isrc=' -I$(srcdir)'
2953 # test to see if srcdir already configured
2954 if test -f $srcdir/config.status; then
2955 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2956 fi
2957 fi
2958
2959 # test whether we have cygpath
2960 if test -z "$CYGPATH_W"; then
2961 if (cygpath --version) >/dev/null 2>/dev/null; then
2962 CYGPATH_W='cygpath -w'
2963 else
2964 CYGPATH_W=echo
2965 fi
2966 fi
2967
2968
2969 # Define the identity of the package.
2970 PACKAGE='libSM'
2971 VERSION='1.2.3'
2972
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE "$PACKAGE"
2976 _ACEOF
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define VERSION "$VERSION"
2981 _ACEOF
2982
2983 # Some tools Automake needs.
2984
2985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2986
2987
2988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2989
2990
2991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2992
2993
2994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2995
2996
2997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998
2999 # For better backward compatibility. To be removed once Automake 1.9.x
3000 # dies out for good. For more background, see:
3001 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3002 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3003 mkdir_p='$(MKDIR_P)'
3004
3005 # We need awk for the "check" target (and possibly the TAP driver). The
3006 # system "awk" is bad on some platforms.
3007 # Always define AMTAR for backward compatibility. Yes, it's still used
3008 # in the wild :-( We should find a proper way to deprecate it ...
3009 AMTAR='$${TAR-tar}'
3010
3011
3012 # We'll loop over all known methods to create a tar archive until one works.
3013 _am_tools='gnutar pax cpio none'
3014
3015 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3016
3017
3018
3019
3020
3021
3022 # POSIX will say in a future version that running "rm -f" with no argument
3023 # is OK; and we want to be able to make that assumption in our Makefile
3024 # recipes. So use an aggressive probe to check that the usage we want is
3025 # actually supported "in the wild" to an acceptable degree.
3026 # See automake bug#10828.
3027 # To make any issue more visible, cause the running configure to be aborted
3028 # by default if the 'rm' program in use doesn't match our expectations; the
3029 # user can still override this though.
3030 if rm -f && rm -fr && rm -rf; then : OK; else
3031 cat >&2 <<'END'
3032 Oops!
3033
3034 Your 'rm' program seems unable to run without file operands specified
3035 on the command line, even when the '-f' option is present. This is contrary
3036 to the behaviour of most rm programs out there, and not conforming with
3037 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3038
3039 Please tell bug-automake@gnu.org about your system, including the value
3040 of your $PATH and any error possibly output before this message. This
3041 can help us improve future automake versions.
3042
3043 END
3044 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3045 echo 'Configuration will proceed anyway, since you have set the' >&2
3046 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3047 echo >&2
3048 else
3049 cat >&2 <<'END'
3050 Aborting the configuration process, to ensure you take notice of the issue.
3051
3052 You can download and install GNU coreutils to get an 'rm' implementation
3053 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3054
3055 If you want to complete the configuration process using your problematic
3056 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3057 to "yes", and re-run configure.
3058
3059 END
3060 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3061 fi
3062 fi
3063
3064
3065 # Initialize libtool
3066 case `pwd` in
3067 *\ * | *\ *)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3069 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3070 esac
3071
3072
3073
3074 macro_version='2.4.6'
3075 macro_revision='2.4.6'
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089 ltmain=$ac_aux_dir/ltmain.sh
3090
3091 # Make sure we can run config.sub.
3092 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3093 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3094
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3096 $as_echo_n "checking build system type... " >&6; }
3097 if ${ac_cv_build+:} false; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_build_alias=$build_alias
3101 test "x$ac_build_alias" = x &&
3102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3103 test "x$ac_build_alias" = x &&
3104 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3105 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3106 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3107
3108 fi
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3110 $as_echo "$ac_cv_build" >&6; }
3111 case $ac_cv_build in
3112 *-*-*) ;;
3113 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3114 esac
3115 build=$ac_cv_build
3116 ac_save_IFS=$IFS; IFS='-'
3117 set x $ac_cv_build
3118 shift
3119 build_cpu=$1
3120 build_vendor=$2
3121 shift; shift
3122 # Remember, the first character of IFS is used to create $*,
3123 # except with old shells:
3124 build_os=$*
3125 IFS=$ac_save_IFS
3126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3127
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3130 $as_echo_n "checking host system type... " >&6; }
3131 if ${ac_cv_host+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test "x$host_alias" = x; then
3135 ac_cv_host=$ac_cv_build
3136 else
3137 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3139 fi
3140
3141 fi
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3143 $as_echo "$ac_cv_host" >&6; }
3144 case $ac_cv_host in
3145 *-*-*) ;;
3146 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3147 esac
3148 host=$ac_cv_host
3149 ac_save_IFS=$IFS; IFS='-'
3150 set x $ac_cv_host
3151 shift
3152 host_cpu=$1
3153 host_vendor=$2
3154 shift; shift
3155 # Remember, the first character of IFS is used to create $*,
3156 # except with old shells:
3157 host_os=$*
3158 IFS=$ac_save_IFS
3159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3160
3161
3162 # Backslashify metacharacters that are still active within
3163 # double-quoted strings.
3164 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3165
3166 # Same as above, but do not quote variable references.
3167 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3168
3169 # Sed substitution to delay expansion of an escaped shell variable in a
3170 # double_quote_subst'ed string.
3171 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3172
3173 # Sed substitution to delay expansion of an escaped single quote.
3174 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3175
3176 # Sed substitution to avoid accidental globbing in evaled expressions
3177 no_glob_subst='s/\*/\\\*/g'
3178
3179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3181 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3182
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3184 $as_echo_n "checking how to print strings... " >&6; }
3185 # Test print first, because it will be a builtin if present.
3186 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3187 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3188 ECHO='print -r --'
3189 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3190 ECHO='printf %s\n'
3191 else
3192 # Use this function as a fallback that always works.
3193 func_fallback_echo ()
3194 {
3195 eval 'cat <<_LTECHO_EOF
3196 $1
3197 _LTECHO_EOF'
3198 }
3199 ECHO='func_fallback_echo'
3200 fi
3201
3202 # func_echo_all arg...
3203 # Invoke $ECHO with all args, space-separated.
3204 func_echo_all ()
3205 {
3206 $ECHO ""
3207 }
3208
3209 case $ECHO in
3210 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3211 $as_echo "printf" >&6; } ;;
3212 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3213 $as_echo "print -r" >&6; } ;;
3214 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3215 $as_echo "cat" >&6; } ;;
3216 esac
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231 DEPDIR="${am__leading_dot}deps"
3232
3233 ac_config_commands="$ac_config_commands depfiles"
3234
3235
3236 am_make=${MAKE-make}
3237 cat > confinc << 'END'
3238 am__doit:
3239 @echo this is the am__doit target
3240 .PHONY: am__doit
3241 END
3242 # If we don't find an include directive, just comment out the code.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3244 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3245 am__include="#"
3246 am__quote=
3247 _am_result=none
3248 # First try GNU make style include.
3249 echo "include confinc" > confmf
3250 # Ignore all kinds of additional output from 'make'.
3251 case `$am_make -s -f confmf 2> /dev/null` in #(
3252 *the\ am__doit\ target*)
3253 am__include=include
3254 am__quote=
3255 _am_result=GNU
3256 ;;
3257 esac
3258 # Now try BSD make style include.
3259 if test "$am__include" = "#"; then
3260 echo '.include "confinc"' > confmf
3261 case `$am_make -s -f confmf 2> /dev/null` in #(
3262 *the\ am__doit\ target*)
3263 am__include=.include
3264 am__quote="\""
3265 _am_result=BSD
3266 ;;
3267 esac
3268 fi
3269
3270
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3272 $as_echo "$_am_result" >&6; }
3273 rm -f confinc confmf
3274
3275 # Check whether --enable-dependency-tracking was given.
3276 if test "${enable_dependency_tracking+set}" = set; then :
3277 enableval=$enable_dependency_tracking;
3278 fi
3279
3280 if test "x$enable_dependency_tracking" != xno; then
3281 am_depcomp="$ac_aux_dir/depcomp"
3282 AMDEPBACKSLASH='\'
3283 am__nodep='_no'
3284 fi
3285 if test "x$enable_dependency_tracking" != xno; then
3286 AMDEP_TRUE=
3287 AMDEP_FALSE='#'
3288 else
3289 AMDEP_TRUE='#'
3290 AMDEP_FALSE=
3291 fi
3292
3293
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3301 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303 $as_echo_n "checking for $ac_word... " >&6; }
3304 if ${ac_cv_prog_CC+:} false; then :
3305 $as_echo_n "(cached) " >&6
3306 else
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC="$CC" # Let the user override the test.
3309 else
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 break 2
3320 fi
3321 done
3322 done
3323 IFS=$as_save_IFS
3324
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$ac_cv_prog_CC"; then
3339 ac_ct_CC=$CC
3340 # Extract the first word of "gcc", so it can be a program name with args.
3341 set dummy gcc; ac_word=$2
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 $as_echo_n "checking for $ac_word... " >&6; }
3344 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3345 $as_echo_n "(cached) " >&6
3346 else
3347 if test -n "$ac_ct_CC"; then
3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_ac_ct_CC="gcc"
3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361 done
3362 done
3363 IFS=$as_save_IFS
3364
3365 fi
3366 fi
3367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3368 if test -n "$ac_ct_CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3370 $as_echo "$ac_ct_CC" >&6; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385 CC=$ac_ct_CC
3386 fi
3387 else
3388 CC="$ac_cv_prog_CC"
3389 fi
3390
3391 if test -z "$CC"; then
3392 if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3394 set dummy ${ac_tool_prefix}cc; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="${ac_tool_prefix}cc"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 fi
3432 if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434 set dummy cc; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$CC"; then
3441 ac_cv_prog_CC="$CC" # Let the user override the test.
3442 else
3443 ac_prog_rejected=no
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3446 do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3452 ac_prog_rejected=yes
3453 continue
3454 fi
3455 ac_cv_prog_CC="cc"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3462
3463 if test $ac_prog_rejected = yes; then
3464 # We found a bogon in the path, so make sure we never use it.
3465 set dummy $ac_cv_prog_CC
3466 shift
3467 if test $# != 0; then
3468 # We chose a different compiler from the bogus one.
3469 # However, it has the same basename, so the bogon will be chosen
3470 # first if we set CC to just the basename; use the full file name.
3471 shift
3472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3473 fi
3474 fi
3475 fi
3476 fi
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3484 fi
3485
3486
3487 fi
3488 if test -z "$CC"; then
3489 if test -n "$ac_tool_prefix"; then
3490 for ac_prog in cl.exe
3491 do
3492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if ${ac_cv_prog_CC+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3522 $as_echo "$CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529 test -n "$CC" && break
3530 done
3531 fi
3532 if test -z "$CC"; then
3533 ac_ct_CC=$CC
3534 for ac_prog in cl.exe
3535 do
3536 # Extract the first word of "$ac_prog", so it can be a program name with args.
3537 set dummy $ac_prog; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$ac_ct_CC"; then
3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_ac_ct_CC="$ac_prog"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3564 if test -n "$ac_ct_CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3566 $as_echo "$ac_ct_CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 test -n "$ac_ct_CC" && break
3574 done
3575
3576 if test "x$ac_ct_CC" = x; then
3577 CC=""
3578 else
3579 case $cross_compiling:$ac_tool_warned in
3580 yes:)
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3583 ac_tool_warned=yes ;;
3584 esac
3585 CC=$ac_ct_CC
3586 fi
3587 fi
3588
3589 fi
3590
3591
3592 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594 as_fn_error $? "no acceptable C compiler found in \$PATH
3595 See \`config.log' for more details" "$LINENO" 5; }
3596
3597 # Provide some information about the compiler.
3598 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3599 set X $ac_compile
3600 ac_compiler=$2
3601 for ac_option in --version -v -V -qversion; do
3602 { { ac_try="$ac_compiler $ac_option >&5"
3603 case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606 esac
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3610 ac_status=$?
3611 if test -s conftest.err; then
3612 sed '10a\
3613 ... rest of stderr output deleted ...
3614 10q' conftest.err >conftest.er1
3615 cat conftest.er1 >&5
3616 fi
3617 rm -f conftest.er1 conftest.err
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }
3620 done
3621
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624
3625 int
3626 main ()
3627 {
3628
3629 ;
3630 return 0;
3631 }
3632 _ACEOF
3633 ac_clean_files_save=$ac_clean_files
3634 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3635 # Try to create an executable without -o first, disregard a.out.
3636 # It will help us diagnose broken compilers, and finding out an intuition
3637 # of exeext.
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3639 $as_echo_n "checking whether the C compiler works... " >&6; }
3640 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3641
3642 # The possible output files:
3643 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3644
3645 ac_rmfiles=
3646 for ac_file in $ac_files
3647 do
3648 case $ac_file in
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3651 esac
3652 done
3653 rm -f $ac_rmfiles
3654
3655 if { { ac_try="$ac_link_default"
3656 case "(($ac_try" in
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3659 esac
3660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3661 $as_echo "$ac_try_echo"; } >&5
3662 (eval "$ac_link_default") 2>&5
3663 ac_status=$?
3664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665 test $ac_status = 0; }; then :
3666 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3667 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3668 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3669 # so that the user can short-circuit this test for compilers unknown to
3670 # Autoconf.
3671 for ac_file in $ac_files ''
3672 do
3673 test -f "$ac_file" || continue
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3676 ;;
3677 [ab].out )
3678 # We found the default executable, but exeext='' is most
3679 # certainly right.
3680 break;;
3681 *.* )
3682 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3683 then :; else
3684 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 fi
3686 # We set ac_cv_exeext here because the later test for it is not
3687 # safe: cross compilers may not add the suffix if given an `-o'
3688 # argument, so we may need to know it at that point already.
3689 # Even if this section looks crufty: it has the advantage of
3690 # actually working.
3691 break;;
3692 * )
3693 break;;
3694 esac
3695 done
3696 test "$ac_cv_exeext" = no && ac_cv_exeext=
3697
3698 else
3699 ac_file=''
3700 fi
3701 if test -z "$ac_file"; then :
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 $as_echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error 77 "C compiler cannot create executables
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 else
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3713 $as_echo "yes" >&6; }
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3716 $as_echo_n "checking for C compiler default output file name... " >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3718 $as_echo "$ac_file" >&6; }
3719 ac_exeext=$ac_cv_exeext
3720
3721 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3722 ac_clean_files=$ac_clean_files_save
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3724 $as_echo_n "checking for suffix of executables... " >&6; }
3725 if { { ac_try="$ac_link"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_link") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; then :
3736 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3737 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3738 # work properly (i.e., refer to `conftest.exe'), while it won't with
3739 # `rm'.
3740 for ac_file in conftest.exe conftest conftest.*; do
3741 test -f "$ac_file" || continue
3742 case $ac_file in
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3745 break;;
3746 * ) break;;
3747 esac
3748 done
3749 else
3750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3752 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3753 See \`config.log' for more details" "$LINENO" 5; }
3754 fi
3755 rm -f conftest conftest$ac_cv_exeext
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3757 $as_echo "$ac_cv_exeext" >&6; }
3758
3759 rm -f conftest.$ac_ext
3760 EXEEXT=$ac_cv_exeext
3761 ac_exeext=$EXEEXT
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <stdio.h>
3765 int
3766 main ()
3767 {
3768 FILE *f = fopen ("conftest.out", "w");
3769 return ferror (f) || fclose (f) != 0;
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 ac_clean_files="$ac_clean_files conftest.out"
3776 # Check that the compiler produces executables we can run. If not, either
3777 # the compiler is broken, or we cross compile.
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3779 $as_echo_n "checking whether we are cross compiling... " >&6; }
3780 if test "$cross_compiling" != yes; then
3781 { { ac_try="$ac_link"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_link") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }
3792 if { ac_try='./conftest$ac_cv_exeext'
3793 { { case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_try") 2>&5
3800 ac_status=$?
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; }; then
3803 cross_compiling=no
3804 else
3805 if test "$cross_compiling" = maybe; then
3806 cross_compiling=yes
3807 else
3808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810 as_fn_error $? "cannot run C compiled programs.
3811 If you meant to cross compile, use \`--host'.
3812 See \`config.log' for more details" "$LINENO" 5; }
3813 fi
3814 fi
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3817 $as_echo "$cross_compiling" >&6; }
3818
3819 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3820 ac_clean_files=$ac_clean_files_save
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3822 $as_echo_n "checking for suffix of object files... " >&6; }
3823 if ${ac_cv_objext+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827 /* end confdefs.h. */
3828
3829 int
3830 main ()
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.o conftest.obj
3838 if { { ac_try="$ac_compile"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compile") 2>&5
3846 ac_status=$?
3847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3848 test $ac_status = 0; }; then :
3849 for ac_file in conftest.o conftest.obj conftest.*; do
3850 test -f "$ac_file" || continue;
3851 case $ac_file in
3852 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3853 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3854 break;;
3855 esac
3856 done
3857 else
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error $? "cannot compute suffix of object files: cannot compile
3864 See \`config.log' for more details" "$LINENO" 5; }
3865 fi
3866 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3869 $as_echo "$ac_cv_objext" >&6; }
3870 OBJEXT=$ac_cv_objext
3871 ac_objext=$OBJEXT
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3873 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3874 if ${ac_cv_c_compiler_gnu+:} false; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879
3880 int
3881 main ()
3882 {
3883 #ifndef __GNUC__
3884 choke me
3885 #endif
3886
3887 ;
3888 return 0;
3889 }
3890 _ACEOF
3891 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_compiler_gnu=yes
3893 else
3894 ac_compiler_gnu=no
3895 fi
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3898
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3901 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3902 if test $ac_compiler_gnu = yes; then
3903 GCC=yes
3904 else
3905 GCC=
3906 fi
3907 ac_test_CFLAGS=${CFLAGS+set}
3908 ac_save_CFLAGS=$CFLAGS
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3910 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3911 if ${ac_cv_prog_cc_g+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 ac_save_c_werror_flag=$ac_c_werror_flag
3915 ac_c_werror_flag=yes
3916 ac_cv_prog_cc_g=no
3917 CFLAGS="-g"
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920
3921 int
3922 main ()
3923 {
3924
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_g=yes
3931 else
3932 CFLAGS=""
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935
3936 int
3937 main ()
3938 {
3939
3940 ;
3941 return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945
3946 else
3947 ac_c_werror_flag=$ac_save_c_werror_flag
3948 CFLAGS="-g"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951
3952 int
3953 main ()
3954 {
3955
3956 ;
3957 return 0;
3958 }
3959 _ACEOF
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_cv_prog_cc_g=yes
3962 fi
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3971 $as_echo "$ac_cv_prog_cc_g" >&6; }
3972 if test "$ac_test_CFLAGS" = set; then
3973 CFLAGS=$ac_save_CFLAGS
3974 elif test $ac_cv_prog_cc_g = yes; then
3975 if test "$GCC" = yes; then
3976 CFLAGS="-g -O2"
3977 else
3978 CFLAGS="-g"
3979 fi
3980 else
3981 if test "$GCC" = yes; then
3982 CFLAGS="-O2"
3983 else
3984 CFLAGS=
3985 fi
3986 fi
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3988 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3989 if ${ac_cv_prog_cc_c89+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 ac_cv_prog_cc_c89=no
3993 ac_save_CC=$CC
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <stdarg.h>
3997 #include <stdio.h>
3998 struct stat;
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4003 char **p;
4004 int i;
4005 {
4006 return p[i];
4007 }
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4009 {
4010 char *s;
4011 va_list v;
4012 va_start (v,p);
4013 s = g (p, va_arg (v,int));
4014 va_end (v);
4015 return s;
4016 }
4017
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4026
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4029 #define FOO(x) 'x'
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4031
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 int argc;
4037 char **argv;
4038 int
4039 main ()
4040 {
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4048 do
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4055 done
4056 rm -f conftest.$ac_ext
4057 CC=$ac_save_CC
4058
4059 fi
4060 # AC_CACHE_VAL
4061 case "x$ac_cv_prog_cc_c89" in
4062 x)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4065 xno)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4068 *)
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 esac
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4074
4075 fi
4076
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083 ac_ext=c
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4089 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4090 if ${am_cv_prog_cc_c_o+:} false; then :
4091 $as_echo_n "(cached) " >&6
4092 else
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095
4096 int
4097 main ()
4098 {
4099
4100 ;
4101 return 0;
4102 }
4103 _ACEOF
4104 # Make sure it works both with $CC and with simple cc.
4105 # Following AC_PROG_CC_C_O, we do the test twice because some
4106 # compilers refuse to overwrite an existing .o file with -o,
4107 # though they will create one.
4108 am_cv_prog_cc_c_o=yes
4109 for am_i in 1 2; do
4110 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4111 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } \
4115 && test -f conftest2.$ac_objext; then
4116 : OK
4117 else
4118 am_cv_prog_cc_c_o=no
4119 break
4120 fi
4121 done
4122 rm -f core conftest*
4123 unset am_i
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4126 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4127 if test "$am_cv_prog_cc_c_o" != yes; then
4128 # Losing compiler, so override with the script.
4129 # FIXME: It is wrong to rewrite CC.
4130 # But if we don't then we get into trouble of one sort or another.
4131 # A longer-term fix would be to have automake use am__CC in this case,
4132 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4133 CC="$am_aux_dir/compile $CC"
4134 fi
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141
4142 depcc="$CC" am_compiler_list=
4143
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4145 $as_echo_n "checking dependency style of $depcc... " >&6; }
4146 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4150 # We make a subdir and do the tests there. Otherwise we can end up
4151 # making bogus files that we don't know about and never remove. For
4152 # instance it was reported that on HP-UX the gcc test will end up
4153 # making a dummy file named 'D' -- because '-MD' means "put the output
4154 # in D".
4155 rm -rf conftest.dir
4156 mkdir conftest.dir
4157 # Copy depcomp to subdir because otherwise we won't find it if we're
4158 # using a relative directory.
4159 cp "$am_depcomp" conftest.dir
4160 cd conftest.dir
4161 # We will build objects and dependencies in a subdirectory because
4162 # it helps to detect inapplicable dependency modes. For instance
4163 # both Tru64's cc and ICC support -MD to output dependencies as a
4164 # side effect of compilation, but ICC will put the dependencies in
4165 # the current directory while Tru64 will put them in the object
4166 # directory.
4167 mkdir sub
4168
4169 am_cv_CC_dependencies_compiler_type=none
4170 if test "$am_compiler_list" = ""; then
4171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4172 fi
4173 am__universal=false
4174 case " $depcc " in #(
4175 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4176 esac
4177
4178 for depmode in $am_compiler_list; do
4179 # Setup a source with many dependencies, because some compilers
4180 # like to wrap large dependency lists on column 80 (with \), and
4181 # we should not choose a depcomp mode which is confused by this.
4182 #
4183 # We need to recreate these files for each test, as the compiler may
4184 # overwrite some of them when testing with obscure command lines.
4185 # This happens at least with the AIX C compiler.
4186 : > sub/conftest.c
4187 for i in 1 2 3 4 5 6; do
4188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4189 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4190 # Solaris 10 /bin/sh.
4191 echo '/* dummy */' > sub/conftst$i.h
4192 done
4193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4194
4195 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4196 # mode. It turns out that the SunPro C++ compiler does not properly
4197 # handle '-M -o', and we need to detect this. Also, some Intel
4198 # versions had trouble with output in subdirs.
4199 am__obj=sub/conftest.${OBJEXT-o}
4200 am__minus_obj="-o $am__obj"
4201 case $depmode in
4202 gcc)
4203 # This depmode causes a compiler race in universal mode.
4204 test "$am__universal" = false || continue
4205 ;;
4206 nosideeffect)
4207 # After this tag, mechanisms are not by side-effect, so they'll
4208 # only be used when explicitly requested.
4209 if test "x$enable_dependency_tracking" = xyes; then
4210 continue
4211 else
4212 break
4213 fi
4214 ;;
4215 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4216 # This compiler won't grok '-c -o', but also, the minuso test has
4217 # not run yet. These depmodes are late enough in the game, and
4218 # so weak that their functioning should not be impacted.
4219 am__obj=conftest.${OBJEXT-o}
4220 am__minus_obj=
4221 ;;
4222 none) break ;;
4223 esac
4224 if depmode=$depmode \
4225 source=sub/conftest.c object=$am__obj \
4226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4227 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4228 >/dev/null 2>conftest.err &&
4229 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4231 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4233 # icc doesn't choke on unknown options, it will just issue warnings
4234 # or remarks (even with -Werror). So we grep stderr for any message
4235 # that says an option was ignored or not supported.
4236 # When given -MP, icc 7.0 and 7.1 complain thusly:
4237 # icc: Command line warning: ignoring option '-M'; no argument required
4238 # The diagnosis changed in icc 8.0:
4239 # icc: Command line remark: option '-MP' not supported
4240 if (grep 'ignoring option' conftest.err ||
4241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4242 am_cv_CC_dependencies_compiler_type=$depmode
4243 break
4244 fi
4245 fi
4246 done
4247
4248 cd ..
4249 rm -rf conftest.dir
4250 else
4251 am_cv_CC_dependencies_compiler_type=none
4252 fi
4253
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4256 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4258
4259 if
4260 test "x$enable_dependency_tracking" != xno \
4261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4262 am__fastdepCC_TRUE=
4263 am__fastdepCC_FALSE='#'
4264 else
4265 am__fastdepCC_TRUE='#'
4266 am__fastdepCC_FALSE=
4267 fi
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4271 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4272 if ${ac_cv_path_SED+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4276 for ac_i in 1 2 3 4 5 6 7; do
4277 ac_script="$ac_script$as_nl$ac_script"
4278 done
4279 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4280 { ac_script=; unset ac_script;}
4281 if test -z "$SED"; then
4282 ac_path_SED_found=false
4283 # Loop through the user's path and test for each of PROGNAME-LIST
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in sed gsed; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4292 as_fn_executable_p "$ac_path_SED" || continue
4293 # Check for GNU ac_path_SED and select it if it is found.
4294 # Check for GNU $ac_path_SED
4295 case `"$ac_path_SED" --version 2>&1` in
4296 *GNU*)
4297 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4298 *)
4299 ac_count=0
4300 $as_echo_n 0123456789 >"conftest.in"
4301 while :
4302 do
4303 cat "conftest.in" "conftest.in" >"conftest.tmp"
4304 mv "conftest.tmp" "conftest.in"
4305 cp "conftest.in" "conftest.nl"
4306 $as_echo '' >> "conftest.nl"
4307 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4309 as_fn_arith $ac_count + 1 && ac_count=$as_val
4310 if test $ac_count -gt ${ac_path_SED_max-0}; then
4311 # Best one so far, save it but keep looking for a better one
4312 ac_cv_path_SED="$ac_path_SED"
4313 ac_path_SED_max=$ac_count
4314 fi
4315 # 10*(2^10) chars as input seems more than enough
4316 test $ac_count -gt 10 && break
4317 done
4318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4319 esac
4320
4321 $ac_path_SED_found && break 3
4322 done
4323 done
4324 done
4325 IFS=$as_save_IFS
4326 if test -z "$ac_cv_path_SED"; then
4327 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4328 fi
4329 else
4330 ac_cv_path_SED=$SED
4331 fi
4332
4333 fi
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4335 $as_echo "$ac_cv_path_SED" >&6; }
4336 SED="$ac_cv_path_SED"
4337 rm -f conftest.sed
4338
4339 test -z "$SED" && SED=sed
4340 Xsed="$SED -e 1s/^X//"
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4353 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4354 if ${ac_cv_path_GREP+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -z "$GREP"; then
4358 ac_path_GREP_found=false
4359 # Loop through the user's path and test for each of PROGNAME-LIST
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4362 do
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_prog in grep ggrep; do
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4368 as_fn_executable_p "$ac_path_GREP" || continue
4369 # Check for GNU ac_path_GREP and select it if it is found.
4370 # Check for GNU $ac_path_GREP
4371 case `"$ac_path_GREP" --version 2>&1` in
4372 *GNU*)
4373 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4374 *)
4375 ac_count=0
4376 $as_echo_n 0123456789 >"conftest.in"
4377 while :
4378 do
4379 cat "conftest.in" "conftest.in" >"conftest.tmp"
4380 mv "conftest.tmp" "conftest.in"
4381 cp "conftest.in" "conftest.nl"
4382 $as_echo 'GREP' >> "conftest.nl"
4383 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4384 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4385 as_fn_arith $ac_count + 1 && ac_count=$as_val
4386 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4387 # Best one so far, save it but keep looking for a better one
4388 ac_cv_path_GREP="$ac_path_GREP"
4389 ac_path_GREP_max=$ac_count
4390 fi
4391 # 10*(2^10) chars as input seems more than enough
4392 test $ac_count -gt 10 && break
4393 done
4394 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4395 esac
4396
4397 $ac_path_GREP_found && break 3
4398 done
4399 done
4400 done
4401 IFS=$as_save_IFS
4402 if test -z "$ac_cv_path_GREP"; then
4403 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4404 fi
4405 else
4406 ac_cv_path_GREP=$GREP
4407 fi
4408
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4411 $as_echo "$ac_cv_path_GREP" >&6; }
4412 GREP="$ac_cv_path_GREP"
4413
4414
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4416 $as_echo_n "checking for egrep... " >&6; }
4417 if ${ac_cv_path_EGREP+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4421 then ac_cv_path_EGREP="$GREP -E"
4422 else
4423 if test -z "$EGREP"; then
4424 ac_path_EGREP_found=false
4425 # Loop through the user's path and test for each of PROGNAME-LIST
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_prog in egrep; do
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4434 as_fn_executable_p "$ac_path_EGREP" || continue
4435 # Check for GNU ac_path_EGREP and select it if it is found.
4436 # Check for GNU $ac_path_EGREP
4437 case `"$ac_path_EGREP" --version 2>&1` in
4438 *GNU*)
4439 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4440 *)
4441 ac_count=0
4442 $as_echo_n 0123456789 >"conftest.in"
4443 while :
4444 do
4445 cat "conftest.in" "conftest.in" >"conftest.tmp"
4446 mv "conftest.tmp" "conftest.in"
4447 cp "conftest.in" "conftest.nl"
4448 $as_echo 'EGREP' >> "conftest.nl"
4449 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4451 as_fn_arith $ac_count + 1 && ac_count=$as_val
4452 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4453 # Best one so far, save it but keep looking for a better one
4454 ac_cv_path_EGREP="$ac_path_EGREP"
4455 ac_path_EGREP_max=$ac_count
4456 fi
4457 # 10*(2^10) chars as input seems more than enough
4458 test $ac_count -gt 10 && break
4459 done
4460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 esac
4462
4463 $ac_path_EGREP_found && break 3
4464 done
4465 done
4466 done
4467 IFS=$as_save_IFS
4468 if test -z "$ac_cv_path_EGREP"; then
4469 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 fi
4471 else
4472 ac_cv_path_EGREP=$EGREP
4473 fi
4474
4475 fi
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4478 $as_echo "$ac_cv_path_EGREP" >&6; }
4479 EGREP="$ac_cv_path_EGREP"
4480
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4483 $as_echo_n "checking for fgrep... " >&6; }
4484 if ${ac_cv_path_FGREP+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4488 then ac_cv_path_FGREP="$GREP -F"
4489 else
4490 if test -z "$FGREP"; then
4491 ac_path_FGREP_found=false
4492 # Loop through the user's path and test for each of PROGNAME-LIST
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4495 do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_prog in fgrep; do
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4501 as_fn_executable_p "$ac_path_FGREP" || continue
4502 # Check for GNU ac_path_FGREP and select it if it is found.
4503 # Check for GNU $ac_path_FGREP
4504 case `"$ac_path_FGREP" --version 2>&1` in
4505 *GNU*)
4506 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4507 *)
4508 ac_count=0
4509 $as_echo_n 0123456789 >"conftest.in"
4510 while :
4511 do
4512 cat "conftest.in" "conftest.in" >"conftest.tmp"
4513 mv "conftest.tmp" "conftest.in"
4514 cp "conftest.in" "conftest.nl"
4515 $as_echo 'FGREP' >> "conftest.nl"
4516 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518 as_fn_arith $ac_count + 1 && ac_count=$as_val
4519 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4520 # Best one so far, save it but keep looking for a better one
4521 ac_cv_path_FGREP="$ac_path_FGREP"
4522 ac_path_FGREP_max=$ac_count
4523 fi
4524 # 10*(2^10) chars as input seems more than enough
4525 test $ac_count -gt 10 && break
4526 done
4527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4528 esac
4529
4530 $ac_path_FGREP_found && break 3
4531 done
4532 done
4533 done
4534 IFS=$as_save_IFS
4535 if test -z "$ac_cv_path_FGREP"; then
4536 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4537 fi
4538 else
4539 ac_cv_path_FGREP=$FGREP
4540 fi
4541
4542 fi
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4545 $as_echo "$ac_cv_path_FGREP" >&6; }
4546 FGREP="$ac_cv_path_FGREP"
4547
4548
4549 test -z "$GREP" && GREP=grep
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 # Check whether --with-gnu-ld was given.
4570 if test "${with_gnu_ld+set}" = set; then :
4571 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4572 else
4573 with_gnu_ld=no
4574 fi
4575
4576 ac_prog=ld
4577 if test yes = "$GCC"; then
4578 # Check if gcc -print-prog-name=ld gives a path.
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4580 $as_echo_n "checking for ld used by $CC... " >&6; }
4581 case $host in
4582 *-*-mingw*)
4583 # gcc leaves a trailing carriage return, which upsets mingw
4584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4585 *)
4586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4587 esac
4588 case $ac_prog in
4589 # Accept absolute paths.
4590 [\\/]* | ?:[\\/]*)
4591 re_direlt='/[^/][^/]*/\.\./'
4592 # Canonicalize the pathname of ld
4593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4596 done
4597 test -z "$LD" && LD=$ac_prog
4598 ;;
4599 "")
4600 # If it fails, then pretend we aren't using GCC.
4601 ac_prog=ld
4602 ;;
4603 *)
4604 # If it is relative, then search for the first ld in PATH.
4605 with_gnu_ld=unknown
4606 ;;
4607 esac
4608 elif test yes = "$with_gnu_ld"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4610 $as_echo_n "checking for GNU ld... " >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4613 $as_echo_n "checking for non-GNU ld... " >&6; }
4614 fi
4615 if ${lt_cv_path_LD+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -z "$LD"; then
4619 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4620 for ac_dir in $PATH; do
4621 IFS=$lt_save_ifs
4622 test -z "$ac_dir" && ac_dir=.
4623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4624 lt_cv_path_LD=$ac_dir/$ac_prog
4625 # Check to see if the program is GNU ld. I'd rather use --version,
4626 # but apparently some variants of GNU ld only accept -v.
4627 # Break only if it was the GNU/non-GNU ld that we prefer.
4628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4629 *GNU* | *'with BFD'*)
4630 test no != "$with_gnu_ld" && break
4631 ;;
4632 *)
4633 test yes != "$with_gnu_ld" && break
4634 ;;
4635 esac
4636 fi
4637 done
4638 IFS=$lt_save_ifs
4639 else
4640 lt_cv_path_LD=$LD # Let the user override the test with a path.
4641 fi
4642 fi
4643
4644 LD=$lt_cv_path_LD
4645 if test -n "$LD"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4647 $as_echo "$LD" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4655 if ${lt_cv_prog_gnu_ld+:} false; then :
4656 $as_echo_n "(cached) " >&6
4657 else
4658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4659 case `$LD -v 2>&1 </dev/null` in
4660 *GNU* | *'with BFD'*)
4661 lt_cv_prog_gnu_ld=yes
4662 ;;
4663 *)
4664 lt_cv_prog_gnu_ld=no
4665 ;;
4666 esac
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4669 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4670 with_gnu_ld=$lt_cv_prog_gnu_ld
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4681 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4682 if ${lt_cv_path_NM+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if test -n "$NM"; then
4686 # Let the user override the test.
4687 lt_cv_path_NM=$NM
4688 else
4689 lt_nm_to_check=${ac_tool_prefix}nm
4690 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4691 lt_nm_to_check="$lt_nm_to_check nm"
4692 fi
4693 for lt_tmp_nm in $lt_nm_to_check; do
4694 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4695 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4696 IFS=$lt_save_ifs
4697 test -z "$ac_dir" && ac_dir=.
4698 tmp_nm=$ac_dir/$lt_tmp_nm
4699 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4700 # Check to see if the nm accepts a BSD-compat flag.
4701 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4702 # nm: unknown option "B" ignored
4703 # Tru64's nm complains that /dev/null is an invalid object file
4704 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4705 case $build_os in
4706 mingw*) lt_bad_file=conftest.nm/nofile ;;
4707 *) lt_bad_file=/dev/null ;;
4708 esac
4709 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4710 *$lt_bad_file* | *'Invalid file or object type'*)
4711 lt_cv_path_NM="$tmp_nm -B"
4712 break 2
4713 ;;
4714 *)
4715 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4716 */dev/null*)
4717 lt_cv_path_NM="$tmp_nm -p"
4718 break 2
4719 ;;
4720 *)
4721 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4722 continue # so that we can try to find one that supports BSD flags
4723 ;;
4724 esac
4725 ;;
4726 esac
4727 fi
4728 done
4729 IFS=$lt_save_ifs
4730 done
4731 : ${lt_cv_path_NM=no}
4732 fi
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4735 $as_echo "$lt_cv_path_NM" >&6; }
4736 if test no != "$lt_cv_path_NM"; then
4737 NM=$lt_cv_path_NM
4738 else
4739 # Didn't find any BSD compatible name lister, look for dumpbin.
4740 if test -n "$DUMPBIN"; then :
4741 # Let the user override the test.
4742 else
4743 if test -n "$ac_tool_prefix"; then
4744 for ac_prog in dumpbin "link -dump"
4745 do
4746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_DUMPBIN+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$DUMPBIN"; then
4754 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4758 do
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 fi
4772 fi
4773 DUMPBIN=$ac_cv_prog_DUMPBIN
4774 if test -n "$DUMPBIN"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4776 $as_echo "$DUMPBIN" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4780 fi
4781
4782
4783 test -n "$DUMPBIN" && break
4784 done
4785 fi
4786 if test -z "$DUMPBIN"; then
4787 ac_ct_DUMPBIN=$DUMPBIN
4788 for ac_prog in dumpbin "link -dump"
4789 do
4790 # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy $ac_prog; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4795 $as_echo_n "(cached) " >&6
4796 else
4797 if test -n "$ac_ct_DUMPBIN"; then
4798 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4799 else
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815 fi
4816 fi
4817 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4818 if test -n "$ac_ct_DUMPBIN"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4820 $as_echo "$ac_ct_DUMPBIN" >&6; }
4821 else
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4824 fi
4825
4826
4827 test -n "$ac_ct_DUMPBIN" && break
4828 done
4829
4830 if test "x$ac_ct_DUMPBIN" = x; then
4831 DUMPBIN=":"
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834 yes:)
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4838 esac
4839 DUMPBIN=$ac_ct_DUMPBIN
4840 fi
4841 fi
4842
4843 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4844 *COFF*)
4845 DUMPBIN="$DUMPBIN -symbols -headers"
4846 ;;
4847 *)
4848 DUMPBIN=:
4849 ;;
4850 esac
4851 fi
4852
4853 if test : != "$DUMPBIN"; then
4854 NM=$DUMPBIN
4855 fi
4856 fi
4857 test -z "$NM" && NM=nm
4858
4859
4860
4861
4862
4863
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4865 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4866 if ${lt_cv_nm_interface+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 lt_cv_nm_interface="BSD nm"
4870 echo "int some_variable = 0;" > conftest.$ac_ext
4871 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4872 (eval "$ac_compile" 2>conftest.err)
4873 cat conftest.err >&5
4874 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4875 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4876 cat conftest.err >&5
4877 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4878 cat conftest.out >&5
4879 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4880 lt_cv_nm_interface="MS dumpbin"
4881 fi
4882 rm -f conftest*
4883 fi
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4885 $as_echo "$lt_cv_nm_interface" >&6; }
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4888 $as_echo_n "checking whether ln -s works... " >&6; }
4889 LN_S=$as_ln_s
4890 if test "$LN_S" = "ln -s"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4892 $as_echo "yes" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4895 $as_echo "no, using $LN_S" >&6; }
4896 fi
4897
4898 # find the maximum length of command line arguments
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4900 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4901 if ${lt_cv_sys_max_cmd_len+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 i=0
4905 teststring=ABCD
4906
4907 case $build_os in
4908 msdosdjgpp*)
4909 # On DJGPP, this test can blow up pretty badly due to problems in libc
4910 # (any single argument exceeding 2000 bytes causes a buffer overrun
4911 # during glob expansion). Even if it were fixed, the result of this
4912 # check would be larger than it should be.
4913 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4914 ;;
4915
4916 gnu*)
4917 # Under GNU Hurd, this test is not required because there is
4918 # no limit to the length of command line arguments.
4919 # Libtool will interpret -1 as no limit whatsoever
4920 lt_cv_sys_max_cmd_len=-1;
4921 ;;
4922
4923 cygwin* | mingw* | cegcc*)
4924 # On Win9x/ME, this test blows up -- it succeeds, but takes
4925 # about 5 minutes as the teststring grows exponentially.
4926 # Worse, since 9x/ME are not pre-emptively multitasking,
4927 # you end up with a "frozen" computer, even though with patience
4928 # the test eventually succeeds (with a max line length of 256k).
4929 # Instead, let's just punt: use the minimum linelength reported by
4930 # all of the supported platforms: 8192 (on NT/2K/XP).
4931 lt_cv_sys_max_cmd_len=8192;
4932 ;;
4933
4934 mint*)
4935 # On MiNT this can take a long time and run out of memory.
4936 lt_cv_sys_max_cmd_len=8192;
4937 ;;
4938
4939 amigaos*)
4940 # On AmigaOS with pdksh, this test takes hours, literally.
4941 # So we just punt and use a minimum line length of 8192.
4942 lt_cv_sys_max_cmd_len=8192;
4943 ;;
4944
4945 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4946 # This has been around since 386BSD, at least. Likely further.
4947 if test -x /sbin/sysctl; then
4948 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4949 elif test -x /usr/sbin/sysctl; then
4950 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4951 else
4952 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4953 fi
4954 # And add a safety zone
4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4957 ;;
4958
4959 interix*)
4960 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4961 lt_cv_sys_max_cmd_len=196608
4962 ;;
4963
4964 os2*)
4965 # The test takes a long time on OS/2.
4966 lt_cv_sys_max_cmd_len=8192
4967 ;;
4968
4969 osf*)
4970 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4971 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4972 # nice to cause kernel panics so lets avoid the loop below.
4973 # First set a reasonable default.
4974 lt_cv_sys_max_cmd_len=16384
4975 #
4976 if test -x /sbin/sysconfig; then
4977 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4978 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4979 esac
4980 fi
4981 ;;
4982 sco3.2v5*)
4983 lt_cv_sys_max_cmd_len=102400
4984 ;;
4985 sysv5* | sco5v6* | sysv4.2uw2*)
4986 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4987 if test -n "$kargmax"; then
4988 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4989 else
4990 lt_cv_sys_max_cmd_len=32768
4991 fi
4992 ;;
4993 *)
4994 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4995 if test -n "$lt_cv_sys_max_cmd_len" && \
4996 test undefined != "$lt_cv_sys_max_cmd_len"; then
4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4999 else
5000 # Make teststring a little bigger before we do anything with it.
5001 # a 1K string should be a reasonable start.
5002 for i in 1 2 3 4 5 6 7 8; do
5003 teststring=$teststring$teststring
5004 done
5005 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5006 # If test is not a shell built-in, we'll probably end up computing a
5007 # maximum length that is only half of the actual maximum length, but
5008 # we can't tell.
5009 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5010 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5011 test 17 != "$i" # 1/2 MB should be enough
5012 do
5013 i=`expr $i + 1`
5014 teststring=$teststring$teststring
5015 done
5016 # Only check the string length outside the loop.
5017 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5018 teststring=
5019 # Add a significant safety factor because C++ compilers can tack on
5020 # massive amounts of additional arguments before passing them to the
5021 # linker. It appears as though 1/2 is a usable value.
5022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5023 fi
5024 ;;
5025 esac
5026
5027 fi
5028
5029 if test -n "$lt_cv_sys_max_cmd_len"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5031 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5034 $as_echo "none" >&6; }
5035 fi
5036 max_cmd_len=$lt_cv_sys_max_cmd_len
5037
5038
5039
5040
5041
5042
5043 : ${CP="cp -f"}
5044 : ${MV="mv -f"}
5045 : ${RM="rm -f"}
5046
5047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5048 lt_unset=unset
5049 else
5050 lt_unset=false
5051 fi
5052
5053
5054
5055
5056
5057 # test EBCDIC or ASCII
5058 case `echo X|tr X '\101'` in
5059 A) # ASCII based system
5060 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5061 lt_SP2NL='tr \040 \012'
5062 lt_NL2SP='tr \015\012 \040\040'
5063 ;;
5064 *) # EBCDIC based system
5065 lt_SP2NL='tr \100 \n'
5066 lt_NL2SP='tr \r\n \100\100'
5067 ;;
5068 esac
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5079 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5080 if ${lt_cv_to_host_file_cmd+:} false; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 case $host in
5084 *-*-mingw* )
5085 case $build in
5086 *-*-mingw* ) # actually msys
5087 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5088 ;;
5089 *-*-cygwin* )
5090 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5091 ;;
5092 * ) # otherwise, assume *nix
5093 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5094 ;;
5095 esac
5096 ;;
5097 *-*-cygwin* )
5098 case $build in
5099 *-*-mingw* ) # actually msys
5100 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5101 ;;
5102 *-*-cygwin* )
5103 lt_cv_to_host_file_cmd=func_convert_file_noop
5104 ;;
5105 * ) # otherwise, assume *nix
5106 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5107 ;;
5108 esac
5109 ;;
5110 * ) # unhandled hosts (and "normal" native builds)
5111 lt_cv_to_host_file_cmd=func_convert_file_noop
5112 ;;
5113 esac
5114
5115 fi
5116
5117 to_host_file_cmd=$lt_cv_to_host_file_cmd
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5119 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5120
5121
5122
5123
5124
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5126 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5127 if ${lt_cv_to_tool_file_cmd+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 #assume ordinary cross tools, or native build.
5131 lt_cv_to_tool_file_cmd=func_convert_file_noop
5132 case $host in
5133 *-*-mingw* )
5134 case $build in
5135 *-*-mingw* ) # actually msys
5136 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5137 ;;
5138 esac
5139 ;;
5140 esac
5141
5142 fi
5143
5144 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5146 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5147
5148
5149
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5153 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5154 if ${lt_cv_ld_reload_flag+:} false; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 lt_cv_ld_reload_flag='-r'
5158 fi
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5160 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5161 reload_flag=$lt_cv_ld_reload_flag
5162 case $reload_flag in
5163 "" | " "*) ;;
5164 *) reload_flag=" $reload_flag" ;;
5165 esac
5166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5167 case $host_os in
5168 cygwin* | mingw* | pw32* | cegcc*)
5169 if test yes != "$GCC"; then
5170 reload_cmds=false
5171 fi
5172 ;;
5173 darwin*)
5174 if test yes = "$GCC"; then
5175 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5176 else
5177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5178 fi
5179 ;;
5180 esac
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190 if test -n "$ac_tool_prefix"; then
5191 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5192 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 $as_echo_n "checking for $ac_word... " >&6; }
5195 if ${ac_cv_prog_OBJDUMP+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test -n "$OBJDUMP"; then
5199 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5200 else
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 for as_dir in $PATH
5203 do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi
5217 fi
5218 OBJDUMP=$ac_cv_prog_OBJDUMP
5219 if test -n "$OBJDUMP"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5221 $as_echo "$OBJDUMP" >&6; }
5222 else
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 $as_echo "no" >&6; }
5225 fi
5226
5227
5228 fi
5229 if test -z "$ac_cv_prog_OBJDUMP"; then
5230 ac_ct_OBJDUMP=$OBJDUMP
5231 # Extract the first word of "objdump", so it can be a program name with args.
5232 set dummy objdump; ac_word=$2
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234 $as_echo_n "checking for $ac_word... " >&6; }
5235 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237 else
5238 if test -n "$ac_ct_OBJDUMP"; then
5239 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5240 else
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH
5243 do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252 done
5253 done
5254 IFS=$as_save_IFS
5255
5256 fi
5257 fi
5258 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5259 if test -n "$ac_ct_OBJDUMP"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5261 $as_echo "$ac_ct_OBJDUMP" >&6; }
5262 else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264 $as_echo "no" >&6; }
5265 fi
5266
5267 if test "x$ac_ct_OBJDUMP" = x; then
5268 OBJDUMP="false"
5269 else
5270 case $cross_compiling:$ac_tool_warned in
5271 yes:)
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5274 ac_tool_warned=yes ;;
5275 esac
5276 OBJDUMP=$ac_ct_OBJDUMP
5277 fi
5278 else
5279 OBJDUMP="$ac_cv_prog_OBJDUMP"
5280 fi
5281
5282 test -z "$OBJDUMP" && OBJDUMP=objdump
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5293 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5294 if ${lt_cv_deplibs_check_method+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 lt_cv_file_magic_cmd='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file=
5299 lt_cv_deplibs_check_method='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # 'unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [[regex]]' -- check by looking for files in library path
5307 # that responds to the $file_magic_cmd with a given extended regex.
5308 # If you have 'file' or equivalent on your system and you're not sure
5309 # whether 'pass_all' will *always* work, you probably want this one.
5310
5311 case $host_os in
5312 aix[4-9]*)
5313 lt_cv_deplibs_check_method=pass_all
5314 ;;
5315
5316 beos*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 bsdi[45]*)
5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322 lt_cv_file_magic_cmd='/usr/bin/file -L'
5323 lt_cv_file_magic_test_file=/shlib/libc.so
5324 ;;
5325
5326 cygwin*)
5327 # func_win32_libid is a shell function defined in ltmain.sh
5328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5329 lt_cv_file_magic_cmd='func_win32_libid'
5330 ;;
5331
5332 mingw* | pw32*)
5333 # Base MSYS/MinGW do not provide the 'file' command needed by
5334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5335 # unless we find 'file', for example because we are cross-compiling.
5336 if ( file / ) >/dev/null 2>&1; then
5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338 lt_cv_file_magic_cmd='func_win32_libid'
5339 else
5340 # Keep this pattern in sync with the one in func_win32_libid.
5341 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5342 lt_cv_file_magic_cmd='$OBJDUMP -f'
5343 fi
5344 ;;
5345
5346 cegcc*)
5347 # use the weaker test based on 'objdump'. See mingw*.
5348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5349 lt_cv_file_magic_cmd='$OBJDUMP -f'
5350 ;;
5351
5352 darwin* | rhapsody*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 freebsd* | dragonfly*)
5357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5358 case $host_cpu in
5359 i*86 )
5360 # Not sure whether the presence of OpenBSD here was a mistake.
5361 # Let's accept both of them until this is cleared up.
5362 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5363 lt_cv_file_magic_cmd=/usr/bin/file
5364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5365 ;;
5366 esac
5367 else
5368 lt_cv_deplibs_check_method=pass_all
5369 fi
5370 ;;
5371
5372 haiku*)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375
5376 hpux10.20* | hpux11*)
5377 lt_cv_file_magic_cmd=/usr/bin/file
5378 case $host_cpu in
5379 ia64*)
5380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5382 ;;
5383 hppa*64*)
5384 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]'
5385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5386 ;;
5387 *)
5388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5390 ;;
5391 esac
5392 ;;
5393
5394 interix[3-9]*)
5395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5397 ;;
5398
5399 irix5* | irix6* | nonstopux*)
5400 case $LD in
5401 *-32|*"-32 ") libmagic=32-bit;;
5402 *-n32|*"-n32 ") libmagic=N32;;
5403 *-64|*"-64 ") libmagic=64-bit;;
5404 *) libmagic=never-match;;
5405 esac
5406 lt_cv_deplibs_check_method=pass_all
5407 ;;
5408
5409 # This must be glibc/ELF.
5410 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5411 lt_cv_deplibs_check_method=pass_all
5412 ;;
5413
5414 netbsd* | netbsdelf*-gnu)
5415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5417 else
5418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5419 fi
5420 ;;
5421
5422 newos6*)
5423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5424 lt_cv_file_magic_cmd=/usr/bin/file
5425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5426 ;;
5427
5428 *nto* | *qnx*)
5429 lt_cv_deplibs_check_method=pass_all
5430 ;;
5431
5432 openbsd* | bitrig*)
5433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5435 else
5436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5437 fi
5438 ;;
5439
5440 osf3* | osf4* | osf5*)
5441 lt_cv_deplibs_check_method=pass_all
5442 ;;
5443
5444 rdos*)
5445 lt_cv_deplibs_check_method=pass_all
5446 ;;
5447
5448 solaris*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451
5452 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5453 lt_cv_deplibs_check_method=pass_all
5454 ;;
5455
5456 sysv4 | sysv4.3*)
5457 case $host_vendor in
5458 motorola)
5459 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]'
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5461 ;;
5462 ncr)
5463 lt_cv_deplibs_check_method=pass_all
5464 ;;
5465 sequent)
5466 lt_cv_file_magic_cmd='/bin/file'
5467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5468 ;;
5469 sni)
5470 lt_cv_file_magic_cmd='/bin/file'
5471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5472 lt_cv_file_magic_test_file=/lib/libc.so
5473 ;;
5474 siemens)
5475 lt_cv_deplibs_check_method=pass_all
5476 ;;
5477 pc)
5478 lt_cv_deplibs_check_method=pass_all
5479 ;;
5480 esac
5481 ;;
5482
5483 tpf*)
5484 lt_cv_deplibs_check_method=pass_all
5485 ;;
5486 os2*)
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489 esac
5490
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5493 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5494
5495 file_magic_glob=
5496 want_nocaseglob=no
5497 if test "$build" = "$host"; then
5498 case $host_os in
5499 mingw* | pw32*)
5500 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5501 want_nocaseglob=yes
5502 else
5503 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5504 fi
5505 ;;
5506 esac
5507 fi
5508
5509 file_magic_cmd=$lt_cv_file_magic_cmd
5510 deplibs_check_method=$lt_cv_deplibs_check_method
5511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5536 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_DLLTOOL+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$DLLTOOL"; then
5543 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 DLLTOOL=$ac_cv_prog_DLLTOOL
5563 if test -n "$DLLTOOL"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5565 $as_echo "$DLLTOOL" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571
5572 fi
5573 if test -z "$ac_cv_prog_DLLTOOL"; then
5574 ac_ct_DLLTOOL=$DLLTOOL
5575 # Extract the first word of "dlltool", so it can be a program name with args.
5576 set dummy dlltool; ac_word=$2
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578 $as_echo_n "checking for $ac_word... " >&6; }
5579 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581 else
5582 if test -n "$ac_ct_DLLTOOL"; then
5583 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5595 fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5603 if test -n "$ac_ct_DLLTOOL"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5605 $as_echo "$ac_ct_DLLTOOL" >&6; }
5606 else
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5609 fi
5610
5611 if test "x$ac_ct_DLLTOOL" = x; then
5612 DLLTOOL="false"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615 yes:)
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5618 ac_tool_warned=yes ;;
5619 esac
5620 DLLTOOL=$ac_ct_DLLTOOL
5621 fi
5622 else
5623 DLLTOOL="$ac_cv_prog_DLLTOOL"
5624 fi
5625
5626 test -z "$DLLTOOL" && DLLTOOL=dlltool
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5638 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5639 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 lt_cv_sharedlib_from_linklib_cmd='unknown'
5643
5644 case $host_os in
5645 cygwin* | mingw* | pw32* | cegcc*)
5646 # two different shell functions defined in ltmain.sh;
5647 # decide which one to use based on capabilities of $DLLTOOL
5648 case `$DLLTOOL --help 2>&1` in
5649 *--identify-strict*)
5650 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5651 ;;
5652 *)
5653 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5654 ;;
5655 esac
5656 ;;
5657 *)
5658 # fallback: assume linklib IS sharedlib
5659 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5660 ;;
5661 esac
5662
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5665 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5666 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5667 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5668
5669
5670
5671
5672
5673
5674
5675
5676 if test -n "$ac_tool_prefix"; then
5677 for ac_prog in ar
5678 do
5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_AR+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if test -n "$AR"; then
5687 ac_cv_prog_AR="$AR" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700 done
5701 done
5702 IFS=$as_save_IFS
5703
5704 fi
5705 fi
5706 AR=$ac_cv_prog_AR
5707 if test -n "$AR"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5709 $as_echo "$AR" >&6; }
5710 else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5713 fi
5714
5715
5716 test -n "$AR" && break
5717 done
5718 fi
5719 if test -z "$AR"; then
5720 ac_ct_AR=$AR
5721 for ac_prog in ar
5722 do
5723 # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if test -n "$ac_ct_AR"; then
5731 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_ac_ct_AR="$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5751 if test -n "$ac_ct_AR"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5753 $as_echo "$ac_ct_AR" >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 test -n "$ac_ct_AR" && break
5761 done
5762
5763 if test "x$ac_ct_AR" = x; then
5764 AR="false"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772 AR=$ac_ct_AR
5773 fi
5774 fi
5775
5776 : ${AR=ar}
5777 : ${AR_FLAGS=cru}
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5790 $as_echo_n "checking for archiver @FILE support... " >&6; }
5791 if ${lt_cv_ar_at_file+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 lt_cv_ar_at_file=no
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797
5798 int
5799 main ()
5800 {
5801
5802 ;
5803 return 0;
5804 }
5805 _ACEOF
5806 if ac_fn_c_try_compile "$LINENO"; then :
5807 echo conftest.$ac_objext > conftest.lst
5808 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5810 (eval $lt_ar_try) 2>&5
5811 ac_status=$?
5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813 test $ac_status = 0; }
5814 if test 0 -eq "$ac_status"; then
5815 # Ensure the archiver fails upon bogus file names.
5816 rm -f conftest.$ac_objext libconftest.a
5817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5818 (eval $lt_ar_try) 2>&5
5819 ac_status=$?
5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5821 test $ac_status = 0; }
5822 if test 0 -ne "$ac_status"; then
5823 lt_cv_ar_at_file=@
5824 fi
5825 fi
5826 rm -f conftest.* libconftest.a
5827
5828 fi
5829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5830
5831 fi
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5833 $as_echo "$lt_cv_ar_at_file" >&6; }
5834
5835 if test no = "$lt_cv_ar_at_file"; then
5836 archiver_list_spec=
5837 else
5838 archiver_list_spec=$lt_cv_ar_at_file
5839 fi
5840
5841
5842
5843
5844
5845
5846
5847 if test -n "$ac_tool_prefix"; then
5848 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}strip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if ${ac_cv_prog_STRIP+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$STRIP"; then
5856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 STRIP=$ac_cv_prog_STRIP
5876 if test -n "$STRIP"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5878 $as_echo "$STRIP" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884
5885 fi
5886 if test -z "$ac_cv_prog_STRIP"; then
5887 ac_ct_STRIP=$STRIP
5888 # Extract the first word of "strip", so it can be a program name with args.
5889 set dummy strip; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -n "$ac_ct_STRIP"; then
5896 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901 IFS=$as_save_IFS
5902 test -z "$as_dir" && as_dir=.
5903 for ac_exec_ext in '' $ac_executable_extensions; do
5904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5905 ac_cv_prog_ac_ct_STRIP="strip"
5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5907 break 2
5908 fi
5909 done
5910 done
5911 IFS=$as_save_IFS
5912
5913 fi
5914 fi
5915 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5916 if test -n "$ac_ct_STRIP"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5918 $as_echo "$ac_ct_STRIP" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921 $as_echo "no" >&6; }
5922 fi
5923
5924 if test "x$ac_ct_STRIP" = x; then
5925 STRIP=":"
5926 else
5927 case $cross_compiling:$ac_tool_warned in
5928 yes:)
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931 ac_tool_warned=yes ;;
5932 esac
5933 STRIP=$ac_ct_STRIP
5934 fi
5935 else
5936 STRIP="$ac_cv_prog_STRIP"
5937 fi
5938
5939 test -z "$STRIP" && STRIP=:
5940
5941
5942
5943
5944
5945
5946 if test -n "$ac_tool_prefix"; then
5947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5948 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_RANLIB+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$RANLIB"; then
5955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5959 do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968 done
5969 done
5970 IFS=$as_save_IFS
5971
5972 fi
5973 fi
5974 RANLIB=$ac_cv_prog_RANLIB
5975 if test -n "$RANLIB"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5977 $as_echo "$RANLIB" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983
5984 fi
5985 if test -z "$ac_cv_prog_RANLIB"; then
5986 ac_ct_RANLIB=$RANLIB
5987 # Extract the first word of "ranlib", so it can be a program name with args.
5988 set dummy ranlib; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$ac_ct_RANLIB"; then
5995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
5999 do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_ac_ct_RANLIB="ranlib"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008 done
6009 done
6010 IFS=$as_save_IFS
6011
6012 fi
6013 fi
6014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6015 if test -n "$ac_ct_RANLIB"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6017 $as_echo "$ac_ct_RANLIB" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022
6023 if test "x$ac_ct_RANLIB" = x; then
6024 RANLIB=":"
6025 else
6026 case $cross_compiling:$ac_tool_warned in
6027 yes:)
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030 ac_tool_warned=yes ;;
6031 esac
6032 RANLIB=$ac_ct_RANLIB
6033 fi
6034 else
6035 RANLIB="$ac_cv_prog_RANLIB"
6036 fi
6037
6038 test -z "$RANLIB" && RANLIB=:
6039
6040
6041
6042
6043
6044
6045 # Determine commands to create old-style static archives.
6046 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6047 old_postinstall_cmds='chmod 644 $oldlib'
6048 old_postuninstall_cmds=
6049
6050 if test -n "$RANLIB"; then
6051 case $host_os in
6052 bitrig* | openbsd*)
6053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6054 ;;
6055 *)
6056 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6057 ;;
6058 esac
6059 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6060 fi
6061
6062 case $host_os in
6063 darwin*)
6064 lock_old_archive_extraction=yes ;;
6065 *)
6066 lock_old_archive_extraction=no ;;
6067 esac
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107 # If no C compiler was specified, use CC.
6108 LTCC=${LTCC-"$CC"}
6109
6110 # If no C compiler flags were specified, use CFLAGS.
6111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6112
6113 # Allow CC to be a program name with arguments.
6114 compiler=$CC
6115
6116
6117 # Check for command to grab the raw symbol name followed by C symbol from nm.
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6119 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6120 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123
6124 # These are sane defaults that work on at least a few old systems.
6125 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6126
6127 # Character class describing NM global symbol codes.
6128 symcode='[BCDEGRST]'
6129
6130 # Regexp to match symbols that can be accessed directly from C.
6131 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6132
6133 # Define system-specific variables.
6134 case $host_os in
6135 aix*)
6136 symcode='[BCDT]'
6137 ;;
6138 cygwin* | mingw* | pw32* | cegcc*)
6139 symcode='[ABCDGISTW]'
6140 ;;
6141 hpux*)
6142 if test ia64 = "$host_cpu"; then
6143 symcode='[ABCDEGRST]'
6144 fi
6145 ;;
6146 irix* | nonstopux*)
6147 symcode='[BCDEGRST]'
6148 ;;
6149 osf*)
6150 symcode='[BCDEGQRST]'
6151 ;;
6152 solaris*)
6153 symcode='[BDRT]'
6154 ;;
6155 sco3.2v5*)
6156 symcode='[DT]'
6157 ;;
6158 sysv4.2uw2*)
6159 symcode='[DT]'
6160 ;;
6161 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6162 symcode='[ABDT]'
6163 ;;
6164 sysv4)
6165 symcode='[DFNSTU]'
6166 ;;
6167 esac
6168
6169 # If we're using GNU nm, then use its standard symbol codes.
6170 case `$NM -V 2>&1` in
6171 *GNU* | *'with BFD'*)
6172 symcode='[ABCDGIRSTW]' ;;
6173 esac
6174
6175 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6176 # Gets list of data symbols to import.
6177 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6178 # Adjust the below global symbol transforms to fixup imported variables.
6179 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6180 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6181 lt_c_name_lib_hook="\
6182 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6183 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6184 else
6185 # Disable hooks by default.
6186 lt_cv_sys_global_symbol_to_import=
6187 lt_cdecl_hook=
6188 lt_c_name_hook=
6189 lt_c_name_lib_hook=
6190 fi
6191
6192 # Transform an extracted symbol line into a proper C declaration.
6193 # Some systems (esp. on ia64) link data and code symbols differently,
6194 # so use this general approach.
6195 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6196 $lt_cdecl_hook\
6197 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6198 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6199
6200 # Transform an extracted symbol line into symbol name and symbol address
6201 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6202 $lt_c_name_hook\
6203 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6204 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6205
6206 # Transform an extracted symbol line into symbol name with lib prefix and
6207 # symbol address.
6208 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6209 $lt_c_name_lib_hook\
6210 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6211 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6212 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6213
6214 # Handle CRLF in mingw tool chain
6215 opt_cr=
6216 case $build_os in
6217 mingw*)
6218 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6219 ;;
6220 esac
6221
6222 # Try without a prefix underscore, then with it.
6223 for ac_symprfx in "" "_"; do
6224
6225 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6226 symxfrm="\\1 $ac_symprfx\\2 \\2"
6227
6228 # Write the raw and C identifiers.
6229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6230 # Fake it for dumpbin and say T for any non-static function,
6231 # D for any global variable and I for any imported variable.
6232 # Also find C++ and __fastcall symbols from MSVC++,
6233 # which start with @ or ?.
6234 lt_cv_sys_global_symbol_pipe="$AWK '"\
6235 " {last_section=section; section=\$ 3};"\
6236 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6237 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6238 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6239 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6240 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6241 " \$ 0!~/External *\|/{next};"\
6242 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6243 " {if(hide[section]) next};"\
6244 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6245 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6246 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6247 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6248 " ' prfx=^$ac_symprfx"
6249 else
6250 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6251 fi
6252 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6253
6254 # Check to see that the pipe works correctly.
6255 pipe_works=no
6256
6257 rm -f conftest*
6258 cat > conftest.$ac_ext <<_LT_EOF
6259 #ifdef __cplusplus
6260 extern "C" {
6261 #endif
6262 char nm_test_var;
6263 void nm_test_func(void);
6264 void nm_test_func(void){}
6265 #ifdef __cplusplus
6266 }
6267 #endif
6268 int main(){nm_test_var='a';nm_test_func();return(0);}
6269 _LT_EOF
6270
6271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6272 (eval $ac_compile) 2>&5
6273 ac_status=$?
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }; then
6276 # Now try to grab the symbols.
6277 nlist=conftest.nm
6278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6279 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6280 ac_status=$?
6281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6282 test $ac_status = 0; } && test -s "$nlist"; then
6283 # Try sorting and uniquifying the output.
6284 if sort "$nlist" | uniq > "$nlist"T; then
6285 mv -f "$nlist"T "$nlist"
6286 else
6287 rm -f "$nlist"T
6288 fi
6289
6290 # Make sure that we snagged all the symbols we need.
6291 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6292 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6293 cat <<_LT_EOF > conftest.$ac_ext
6294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6295 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6296 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6297 relocations are performed -- see ld's documentation on pseudo-relocs. */
6298 # define LT_DLSYM_CONST
6299 #elif defined __osf__
6300 /* This system does not cope well with relocations in const data. */
6301 # define LT_DLSYM_CONST
6302 #else
6303 # define LT_DLSYM_CONST const
6304 #endif
6305
6306 #ifdef __cplusplus
6307 extern "C" {
6308 #endif
6309
6310 _LT_EOF
6311 # Now generate the symbol file.
6312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6313
6314 cat <<_LT_EOF >> conftest.$ac_ext
6315
6316 /* The mapping between symbol names and symbols. */
6317 LT_DLSYM_CONST struct {
6318 const char *name;
6319 void *address;
6320 }
6321 lt__PROGRAM__LTX_preloaded_symbols[] =
6322 {
6323 { "@PROGRAM@", (void *) 0 },
6324 _LT_EOF
6325 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6326 cat <<\_LT_EOF >> conftest.$ac_ext
6327 {0, (void *) 0}
6328 };
6329
6330 /* This works around a problem in FreeBSD linker */
6331 #ifdef FREEBSD_WORKAROUND
6332 static const void *lt_preloaded_setup() {
6333 return lt__PROGRAM__LTX_preloaded_symbols;
6334 }
6335 #endif
6336
6337 #ifdef __cplusplus
6338 }
6339 #endif
6340 _LT_EOF
6341 # Now try linking the two files.
6342 mv conftest.$ac_objext conftstm.$ac_objext
6343 lt_globsym_save_LIBS=$LIBS
6344 lt_globsym_save_CFLAGS=$CFLAGS
6345 LIBS=conftstm.$ac_objext
6346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6348 (eval $ac_link) 2>&5
6349 ac_status=$?
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6352 pipe_works=yes
6353 fi
6354 LIBS=$lt_globsym_save_LIBS
6355 CFLAGS=$lt_globsym_save_CFLAGS
6356 else
6357 echo "cannot find nm_test_func in $nlist" >&5
6358 fi
6359 else
6360 echo "cannot find nm_test_var in $nlist" >&5
6361 fi
6362 else
6363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6364 fi
6365 else
6366 echo "$progname: failed program was:" >&5
6367 cat conftest.$ac_ext >&5
6368 fi
6369 rm -rf conftest* conftst*
6370
6371 # Do not use the global_symbol_pipe unless it works.
6372 if test yes = "$pipe_works"; then
6373 break
6374 else
6375 lt_cv_sys_global_symbol_pipe=
6376 fi
6377 done
6378
6379 fi
6380
6381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6382 lt_cv_sys_global_symbol_to_cdecl=
6383 fi
6384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6386 $as_echo "failed" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6389 $as_echo "ok" >&6; }
6390 fi
6391
6392 # Response file support.
6393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6394 nm_file_list_spec='@'
6395 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6396 nm_file_list_spec='@'
6397 fi
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6436 $as_echo_n "checking for sysroot... " >&6; }
6437
6438 # Check whether --with-sysroot was given.
6439 if test "${with_sysroot+set}" = set; then :
6440 withval=$with_sysroot;
6441 else
6442 with_sysroot=no
6443 fi
6444
6445
6446 lt_sysroot=
6447 case $with_sysroot in #(
6448 yes)
6449 if test yes = "$GCC"; then
6450 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6451 fi
6452 ;; #(
6453 /*)
6454 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6455 ;; #(
6456 no|'')
6457 ;; #(
6458 *)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6460 $as_echo "$with_sysroot" >&6; }
6461 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6462 ;;
6463 esac
6464
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6466 $as_echo "${lt_sysroot:-no}" >&6; }
6467
6468
6469
6470
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6473 $as_echo_n "checking for a working dd... " >&6; }
6474 if ${ac_cv_path_lt_DD+:} false; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 printf 0123456789abcdef0123456789abcdef >conftest.i
6478 cat conftest.i conftest.i >conftest2.i
6479 : ${lt_DD:=$DD}
6480 if test -z "$lt_DD"; then
6481 ac_path_lt_DD_found=false
6482 # Loop through the user's path and test for each of PROGNAME-LIST
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_prog in dd; do
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6491 as_fn_executable_p "$ac_path_lt_DD" || continue
6492 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6493 cmp -s conftest.i conftest.out \
6494 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6495 fi
6496 $ac_path_lt_DD_found && break 3
6497 done
6498 done
6499 done
6500 IFS=$as_save_IFS
6501 if test -z "$ac_cv_path_lt_DD"; then
6502 :
6503 fi
6504 else
6505 ac_cv_path_lt_DD=$lt_DD
6506 fi
6507
6508 rm -f conftest.i conftest2.i conftest.out
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6511 $as_echo "$ac_cv_path_lt_DD" >&6; }
6512
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6515 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6516 if ${lt_cv_truncate_bin+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 printf 0123456789abcdef0123456789abcdef >conftest.i
6520 cat conftest.i conftest.i >conftest2.i
6521 lt_cv_truncate_bin=
6522 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6523 cmp -s conftest.i conftest.out \
6524 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6525 fi
6526 rm -f conftest.i conftest2.i conftest.out
6527 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6530 $as_echo "$lt_cv_truncate_bin" >&6; }
6531
6532
6533
6534
6535
6536
6537
6538 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6539 func_cc_basename ()
6540 {
6541 for cc_temp in $*""; do
6542 case $cc_temp in
6543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6545 \-*) ;;
6546 *) break;;
6547 esac
6548 done
6549 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6550 }
6551
6552 # Check whether --enable-libtool-lock was given.
6553 if test "${enable_libtool_lock+set}" = set; then :
6554 enableval=$enable_libtool_lock;
6555 fi
6556
6557 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6558
6559 # Some flags need to be propagated to the compiler or linker for good
6560 # libtool support.
6561 case $host in
6562 ia64-*-hpux*)
6563 # Find out what ABI is being produced by ac_compile, and set mode
6564 # options accordingly.
6565 echo 'int i;' > conftest.$ac_ext
6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567 (eval $ac_compile) 2>&5
6568 ac_status=$?
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; }; then
6571 case `/usr/bin/file conftest.$ac_objext` in
6572 *ELF-32*)
6573 HPUX_IA64_MODE=32
6574 ;;
6575 *ELF-64*)
6576 HPUX_IA64_MODE=64
6577 ;;
6578 esac
6579 fi
6580 rm -rf conftest*
6581 ;;
6582 *-*-irix6*)
6583 # Find out what ABI is being produced by ac_compile, and set linker
6584 # options accordingly.
6585 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587 (eval $ac_compile) 2>&5
6588 ac_status=$?
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; then
6591 if test yes = "$lt_cv_prog_gnu_ld"; then
6592 case `/usr/bin/file conftest.$ac_objext` in
6593 *32-bit*)
6594 LD="${LD-ld} -melf32bsmip"
6595 ;;
6596 *N32*)
6597 LD="${LD-ld} -melf32bmipn32"
6598 ;;
6599 *64-bit*)
6600 LD="${LD-ld} -melf64bmip"
6601 ;;
6602 esac
6603 else
6604 case `/usr/bin/file conftest.$ac_objext` in
6605 *32-bit*)
6606 LD="${LD-ld} -32"
6607 ;;
6608 *N32*)
6609 LD="${LD-ld} -n32"
6610 ;;
6611 *64-bit*)
6612 LD="${LD-ld} -64"
6613 ;;
6614 esac
6615 fi
6616 fi
6617 rm -rf conftest*
6618 ;;
6619
6620 mips64*-*linux*)
6621 # Find out what ABI is being produced by ac_compile, and set linker
6622 # options accordingly.
6623 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625 (eval $ac_compile) 2>&5
6626 ac_status=$?
6627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628 test $ac_status = 0; }; then
6629 emul=elf
6630 case `/usr/bin/file conftest.$ac_objext` in
6631 *32-bit*)
6632 emul="${emul}32"
6633 ;;
6634 *64-bit*)
6635 emul="${emul}64"
6636 ;;
6637 esac
6638 case `/usr/bin/file conftest.$ac_objext` in
6639 *MSB*)
6640 emul="${emul}btsmip"
6641 ;;
6642 *LSB*)
6643 emul="${emul}ltsmip"
6644 ;;
6645 esac
6646 case `/usr/bin/file conftest.$ac_objext` in
6647 *N32*)
6648 emul="${emul}n32"
6649 ;;
6650 esac
6651 LD="${LD-ld} -m $emul"
6652 fi
6653 rm -rf conftest*
6654 ;;
6655
6656 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6657 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6658 # Find out what ABI is being produced by ac_compile, and set linker
6659 # options accordingly. Note that the listed cases only cover the
6660 # situations where additional linker options are needed (such as when
6661 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6662 # vice versa); the common cases where no linker options are needed do
6663 # not appear in the list.
6664 echo 'int i;' > conftest.$ac_ext
6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6666 (eval $ac_compile) 2>&5
6667 ac_status=$?
6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6669 test $ac_status = 0; }; then
6670 case `/usr/bin/file conftest.o` in
6671 *32-bit*)
6672 case $host in
6673 x86_64-*kfreebsd*-gnu)
6674 LD="${LD-ld} -m elf_i386_fbsd"
6675 ;;
6676 x86_64-*linux*)
6677 case `/usr/bin/file conftest.o` in
6678 *x86-64*)
6679 LD="${LD-ld} -m elf32_x86_64"
6680 ;;
6681 *)
6682 LD="${LD-ld} -m elf_i386"
6683 ;;
6684 esac
6685 ;;
6686 powerpc64le-*linux*)
6687 LD="${LD-ld} -m elf32lppclinux"
6688 ;;
6689 powerpc64-*linux*)
6690 LD="${LD-ld} -m elf32ppclinux"
6691 ;;
6692 s390x-*linux*)
6693 LD="${LD-ld} -m elf_s390"
6694 ;;
6695 sparc64-*linux*)
6696 LD="${LD-ld} -m elf32_sparc"
6697 ;;
6698 esac
6699 ;;
6700 *64-bit*)
6701 case $host in
6702 x86_64-*kfreebsd*-gnu)
6703 LD="${LD-ld} -m elf_x86_64_fbsd"
6704 ;;
6705 x86_64-*linux*)
6706 LD="${LD-ld} -m elf_x86_64"
6707 ;;
6708 powerpcle-*linux*)
6709 LD="${LD-ld} -m elf64lppc"
6710 ;;
6711 powerpc-*linux*)
6712 LD="${LD-ld} -m elf64ppc"
6713 ;;
6714 s390*-*linux*|s390*-*tpf*)
6715 LD="${LD-ld} -m elf64_s390"
6716 ;;
6717 sparc*-*linux*)
6718 LD="${LD-ld} -m elf64_sparc"
6719 ;;
6720 esac
6721 ;;
6722 esac
6723 fi
6724 rm -rf conftest*
6725 ;;
6726
6727 *-*-sco3.2v5*)
6728 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6729 SAVE_CFLAGS=$CFLAGS
6730 CFLAGS="$CFLAGS -belf"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6732 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6733 if ${lt_cv_cc_needs_belf+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 ac_ext=c
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6741
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744
6745 int
6746 main ()
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 lt_cv_cc_needs_belf=yes
6755 else
6756 lt_cv_cc_needs_belf=no
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 ac_ext=c
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6768 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6769 if test yes != "$lt_cv_cc_needs_belf"; then
6770 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6771 CFLAGS=$SAVE_CFLAGS
6772 fi
6773 ;;
6774 *-*solaris*)
6775 # Find out what ABI is being produced by ac_compile, and set linker
6776 # options accordingly.
6777 echo 'int i;' > conftest.$ac_ext
6778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782 test $ac_status = 0; }; then
6783 case `/usr/bin/file conftest.o` in
6784 *64-bit*)
6785 case $lt_cv_prog_gnu_ld in
6786 yes*)
6787 case $host in
6788 i?86-*-solaris*|x86_64-*-solaris*)
6789 LD="${LD-ld} -m elf_x86_64"
6790 ;;
6791 sparc*-*-solaris*)
6792 LD="${LD-ld} -m elf64_sparc"
6793 ;;
6794 esac
6795 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6796 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6797 LD=${LD-ld}_sol2
6798 fi
6799 ;;
6800 *)
6801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6802 LD="${LD-ld} -64"
6803 fi
6804 ;;
6805 esac
6806 ;;
6807 esac
6808 fi
6809 rm -rf conftest*
6810 ;;
6811 esac
6812
6813 need_locks=$enable_libtool_lock
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}mt; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$MANIFEST_TOOL"; then
6824 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6844 if test -n "$MANIFEST_TOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6846 $as_echo "$MANIFEST_TOOL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6855 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6856 # Extract the first word of "mt", so it can be a program name with args.
6857 set dummy mt; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_MANIFEST_TOOL"; then
6864 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6884 if test -n "$ac_ct_MANIFEST_TOOL"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6886 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6893 MANIFEST_TOOL=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6902 fi
6903 else
6904 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6905 fi
6906
6907 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6909 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6910 if ${lt_cv_path_mainfest_tool+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 lt_cv_path_mainfest_tool=no
6914 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6915 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6916 cat conftest.err >&5
6917 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6918 lt_cv_path_mainfest_tool=yes
6919 fi
6920 rm -f conftest*
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6923 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6924 if test yes != "$lt_cv_path_mainfest_tool"; then
6925 MANIFEST_TOOL=:
6926 fi
6927
6928
6929
6930
6931
6932
6933 case $host_os in
6934 rhapsody* | darwin*)
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$DSYMUTIL"; then
6944 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6964 if test -n "$DSYMUTIL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6966 $as_echo "$DSYMUTIL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972
6973 fi
6974 if test -z "$ac_cv_prog_DSYMUTIL"; then
6975 ac_ct_DSYMUTIL=$DSYMUTIL
6976 # Extract the first word of "dsymutil", so it can be a program name with args.
6977 set dummy dsymutil; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_DSYMUTIL"; then
6984 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7004 if test -n "$ac_ct_DSYMUTIL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7006 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012 if test "x$ac_ct_DSYMUTIL" = x; then
7013 DSYMUTIL=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 DSYMUTIL=$ac_ct_DSYMUTIL
7022 fi
7023 else
7024 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7025 fi
7026
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_NMEDIT+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$NMEDIT"; then
7036 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 NMEDIT=$ac_cv_prog_NMEDIT
7056 if test -n "$NMEDIT"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7058 $as_echo "$NMEDIT" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_NMEDIT"; then
7067 ac_ct_NMEDIT=$NMEDIT
7068 # Extract the first word of "nmedit", so it can be a program name with args.
7069 set dummy nmedit; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_NMEDIT"; then
7076 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7096 if test -n "$ac_ct_NMEDIT"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7098 $as_echo "$ac_ct_NMEDIT" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_NMEDIT" = x; then
7105 NMEDIT=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 NMEDIT=$ac_ct_NMEDIT
7114 fi
7115 else
7116 NMEDIT="$ac_cv_prog_NMEDIT"
7117 fi
7118
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_LIPO+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$LIPO"; then
7128 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 LIPO=$ac_cv_prog_LIPO
7148 if test -n "$LIPO"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7150 $as_echo "$LIPO" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 fi
7158 if test -z "$ac_cv_prog_LIPO"; then
7159 ac_ct_LIPO=$LIPO
7160 # Extract the first word of "lipo", so it can be a program name with args.
7161 set dummy lipo; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_LIPO"; then
7168 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_LIPO="lipo"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7188 if test -n "$ac_ct_LIPO"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7190 $as_echo "$ac_ct_LIPO" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196 if test "x$ac_ct_LIPO" = x; then
7197 LIPO=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 LIPO=$ac_ct_LIPO
7206 fi
7207 else
7208 LIPO="$ac_cv_prog_LIPO"
7209 fi
7210
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}otool; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_OTOOL+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$OTOOL"; then
7220 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 OTOOL=$ac_cv_prog_OTOOL
7240 if test -n "$OTOOL"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7242 $as_echo "$OTOOL" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247
7248
7249 fi
7250 if test -z "$ac_cv_prog_OTOOL"; then
7251 ac_ct_OTOOL=$OTOOL
7252 # Extract the first word of "otool", so it can be a program name with args.
7253 set dummy otool; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$ac_ct_OTOOL"; then
7260 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_OTOOL="otool"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7280 if test -n "$ac_ct_OTOOL"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7282 $as_echo "$ac_ct_OTOOL" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288 if test "x$ac_ct_OTOOL" = x; then
7289 OTOOL=":"
7290 else
7291 case $cross_compiling:$ac_tool_warned in
7292 yes:)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7296 esac
7297 OTOOL=$ac_ct_OTOOL
7298 fi
7299 else
7300 OTOOL="$ac_cv_prog_OTOOL"
7301 fi
7302
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL64+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$OTOOL64"; then
7312 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 OTOOL64=$ac_cv_prog_OTOOL64
7332 if test -n "$OTOOL64"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7334 $as_echo "$OTOOL64" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341 fi
7342 if test -z "$ac_cv_prog_OTOOL64"; then
7343 ac_ct_OTOOL64=$OTOOL64
7344 # Extract the first word of "otool64", so it can be a program name with args.
7345 set dummy otool64; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_OTOOL64"; then
7352 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL64="otool64"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7372 if test -n "$ac_ct_OTOOL64"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7374 $as_echo "$ac_ct_OTOOL64" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380 if test "x$ac_ct_OTOOL64" = x; then
7381 OTOOL64=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 OTOOL64=$ac_ct_OTOOL64
7390 fi
7391 else
7392 OTOOL64="$ac_cv_prog_OTOOL64"
7393 fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7422 $as_echo_n "checking for -single_module linker flag... " >&6; }
7423 if ${lt_cv_apple_cc_single_mod+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 lt_cv_apple_cc_single_mod=no
7427 if test -z "$LT_MULTI_MODULE"; then
7428 # By default we will add the -single_module flag. You can override
7429 # by either setting the environment variable LT_MULTI_MODULE
7430 # non-empty at configure time, or by adding -multi_module to the
7431 # link flags.
7432 rm -rf libconftest.dylib*
7433 echo "int foo(void){return 1;}" > conftest.c
7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7435 -dynamiclib -Wl,-single_module conftest.c" >&5
7436 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7437 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7438 _lt_result=$?
7439 # If there is a non-empty error log, and "single_module"
7440 # appears in it, assume the flag caused a linker warning
7441 if test -s conftest.err && $GREP single_module conftest.err; then
7442 cat conftest.err >&5
7443 # Otherwise, if the output was created with a 0 exit code from
7444 # the compiler, it worked.
7445 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7446 lt_cv_apple_cc_single_mod=yes
7447 else
7448 cat conftest.err >&5
7449 fi
7450 rm -rf libconftest.dylib*
7451 rm -f conftest.*
7452 fi
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7455 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7456
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7458 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7459 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 lt_cv_ld_exported_symbols_list=no
7463 save_LDFLAGS=$LDFLAGS
7464 echo "_main" > conftest.sym
7465 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468
7469 int
7470 main ()
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 lt_cv_ld_exported_symbols_list=yes
7479 else
7480 lt_cv_ld_exported_symbols_list=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 LDFLAGS=$save_LDFLAGS
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7488 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7491 $as_echo_n "checking for -force_load linker flag... " >&6; }
7492 if ${lt_cv_ld_force_load+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 lt_cv_ld_force_load=no
7496 cat > conftest.c << _LT_EOF
7497 int forced_loaded() { return 2;}
7498 _LT_EOF
7499 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7500 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7501 echo "$AR cru libconftest.a conftest.o" >&5
7502 $AR cru libconftest.a conftest.o 2>&5
7503 echo "$RANLIB libconftest.a" >&5
7504 $RANLIB libconftest.a 2>&5
7505 cat > conftest.c << _LT_EOF
7506 int main() { return 0;}
7507 _LT_EOF
7508 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7509 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7510 _lt_result=$?
7511 if test -s conftest.err && $GREP force_load conftest.err; then
7512 cat conftest.err >&5
7513 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7514 lt_cv_ld_force_load=yes
7515 else
7516 cat conftest.err >&5
7517 fi
7518 rm -f conftest.err libconftest.a conftest conftest.c
7519 rm -rf conftest.dSYM
7520
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7523 $as_echo "$lt_cv_ld_force_load" >&6; }
7524 case $host_os in
7525 rhapsody* | darwin1.[012])
7526 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7527 darwin1.*)
7528 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7529 darwin*) # darwin 5.x on
7530 # if running on 10.5 or later, the deployment target defaults
7531 # to the OS version, if on x86, and 10.4, the deployment
7532 # target defaults to 10.4. Don't you love it?
7533 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7534 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7535 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7536 10.[012][,.]*)
7537 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7538 10.*)
7539 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7540 esac
7541 ;;
7542 esac
7543 if test yes = "$lt_cv_apple_cc_single_mod"; then
7544 _lt_dar_single_mod='$single_module'
7545 fi
7546 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7547 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7548 else
7549 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7550 fi
7551 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7552 _lt_dsymutil='~$DSYMUTIL $lib || :'
7553 else
7554 _lt_dsymutil=
7555 fi
7556 ;;
7557 esac
7558
7559 # func_munge_path_list VARIABLE PATH
7560 # -----------------------------------
7561 # VARIABLE is name of variable containing _space_ separated list of
7562 # directories to be munged by the contents of PATH, which is string
7563 # having a format:
7564 # "DIR[:DIR]:"
7565 # string "DIR[ DIR]" will be prepended to VARIABLE
7566 # ":DIR[:DIR]"
7567 # string "DIR[ DIR]" will be appended to VARIABLE
7568 # "DIRP[:DIRP]::[DIRA:]DIRA"
7569 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7570 # "DIRA[ DIRA]" will be appended to VARIABLE
7571 # "DIR[:DIR]"
7572 # VARIABLE will be replaced by "DIR[ DIR]"
7573 func_munge_path_list ()
7574 {
7575 case x$2 in
7576 x)
7577 ;;
7578 *:)
7579 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7580 ;;
7581 x:*)
7582 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7583 ;;
7584 *::*)
7585 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7586 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7587 ;;
7588 *)
7589 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7590 ;;
7591 esac
7592 }
7593
7594 ac_ext=c
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7600 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7601 # On Suns, sometimes $CPP names a directory.
7602 if test -n "$CPP" && test -d "$CPP"; then
7603 CPP=
7604 fi
7605 if test -z "$CPP"; then
7606 if ${ac_cv_prog_CPP+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 # Double quotes because CPP needs to be expanded
7610 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7611 do
7612 ac_preproc_ok=false
7613 for ac_c_preproc_warn_flag in '' yes
7614 do
7615 # Use a header file that comes with gcc, so configuring glibc
7616 # with a fresh cross-compiler works.
7617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7618 # <limits.h> exists even on freestanding compilers.
7619 # On the NeXT, cc -E runs the code through the compiler's parser,
7620 # not just through cpp. "Syntax error" is here to catch this case.
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #ifdef __STDC__
7624 # include <limits.h>
7625 #else
7626 # include <assert.h>
7627 #endif
7628 Syntax error
7629 _ACEOF
7630 if ac_fn_c_try_cpp "$LINENO"; then :
7631
7632 else
7633 # Broken: fails on valid input.
7634 continue
7635 fi
7636 rm -f conftest.err conftest.i conftest.$ac_ext
7637
7638 # OK, works on sane cases. Now check whether nonexistent headers
7639 # can be detected and how.
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7642 #include <ac_nonexistent.h>
7643 _ACEOF
7644 if ac_fn_c_try_cpp "$LINENO"; then :
7645 # Broken: success on invalid input.
7646 continue
7647 else
7648 # Passes both tests.
7649 ac_preproc_ok=:
7650 break
7651 fi
7652 rm -f conftest.err conftest.i conftest.$ac_ext
7653
7654 done
7655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7656 rm -f conftest.i conftest.err conftest.$ac_ext
7657 if $ac_preproc_ok; then :
7658 break
7659 fi
7660
7661 done
7662 ac_cv_prog_CPP=$CPP
7663
7664 fi
7665 CPP=$ac_cv_prog_CPP
7666 else
7667 ac_cv_prog_CPP=$CPP
7668 fi
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7670 $as_echo "$CPP" >&6; }
7671 ac_preproc_ok=false
7672 for ac_c_preproc_warn_flag in '' yes
7673 do
7674 # Use a header file that comes with gcc, so configuring glibc
7675 # with a fresh cross-compiler works.
7676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7677 # <limits.h> exists even on freestanding compilers.
7678 # On the NeXT, cc -E runs the code through the compiler's parser,
7679 # not just through cpp. "Syntax error" is here to catch this case.
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #ifdef __STDC__
7683 # include <limits.h>
7684 #else
7685 # include <assert.h>
7686 #endif
7687 Syntax error
7688 _ACEOF
7689 if ac_fn_c_try_cpp "$LINENO"; then :
7690
7691 else
7692 # Broken: fails on valid input.
7693 continue
7694 fi
7695 rm -f conftest.err conftest.i conftest.$ac_ext
7696
7697 # OK, works on sane cases. Now check whether nonexistent headers
7698 # can be detected and how.
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 #include <ac_nonexistent.h>
7702 _ACEOF
7703 if ac_fn_c_try_cpp "$LINENO"; then :
7704 # Broken: success on invalid input.
7705 continue
7706 else
7707 # Passes both tests.
7708 ac_preproc_ok=:
7709 break
7710 fi
7711 rm -f conftest.err conftest.i conftest.$ac_ext
7712
7713 done
7714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7715 rm -f conftest.i conftest.err conftest.$ac_ext
7716 if $ac_preproc_ok; then :
7717
7718 else
7719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7721 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7722 See \`config.log' for more details" "$LINENO" 5; }
7723 fi
7724
7725 ac_ext=c
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7730
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7733 $as_echo_n "checking for ANSI C header files... " >&6; }
7734 if ${ac_cv_header_stdc+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #include <stdlib.h>
7740 #include <stdarg.h>
7741 #include <string.h>
7742 #include <float.h>
7743
7744 int
7745 main ()
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 ac_cv_header_stdc=yes
7754 else
7755 ac_cv_header_stdc=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758
7759 if test $ac_cv_header_stdc = yes; then
7760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7763 #include <string.h>
7764
7765 _ACEOF
7766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7767 $EGREP "memchr" >/dev/null 2>&1; then :
7768
7769 else
7770 ac_cv_header_stdc=no
7771 fi
7772 rm -f conftest*
7773
7774 fi
7775
7776 if test $ac_cv_header_stdc = yes; then
7777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <stdlib.h>
7781
7782 _ACEOF
7783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7784 $EGREP "free" >/dev/null 2>&1; then :
7785
7786 else
7787 ac_cv_header_stdc=no
7788 fi
7789 rm -f conftest*
7790
7791 fi
7792
7793 if test $ac_cv_header_stdc = yes; then
7794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7795 if test "$cross_compiling" = yes; then :
7796 :
7797 else
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 #include <ctype.h>
7801 #include <stdlib.h>
7802 #if ((' ' & 0x0FF) == 0x020)
7803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7805 #else
7806 # define ISLOWER(c) \
7807 (('a' <= (c) && (c) <= 'i') \
7808 || ('j' <= (c) && (c) <= 'r') \
7809 || ('s' <= (c) && (c) <= 'z'))
7810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7811 #endif
7812
7813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7814 int
7815 main ()
7816 {
7817 int i;
7818 for (i = 0; i < 256; i++)
7819 if (XOR (islower (i), ISLOWER (i))
7820 || toupper (i) != TOUPPER (i))
7821 return 2;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_run "$LINENO"; then :
7826
7827 else
7828 ac_cv_header_stdc=no
7829 fi
7830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7831 conftest.$ac_objext conftest.beam conftest.$ac_ext
7832 fi
7833
7834 fi
7835 fi
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7837 $as_echo "$ac_cv_header_stdc" >&6; }
7838 if test $ac_cv_header_stdc = yes; then
7839
7840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7841
7842 fi
7843
7844 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7845 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7846 inttypes.h stdint.h unistd.h
7847 do :
7848 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7849 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7850 "
7851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7852 cat >>confdefs.h <<_ACEOF
7853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7854 _ACEOF
7855
7856 fi
7857
7858 done
7859
7860
7861 for ac_header in dlfcn.h
7862 do :
7863 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7864 "
7865 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7866 cat >>confdefs.h <<_ACEOF
7867 #define HAVE_DLFCN_H 1
7868 _ACEOF
7869
7870 fi
7871
7872 done
7873
7874
7875
7876
7877
7878 # Set options
7879
7880
7881
7882 enable_dlopen=no
7883
7884
7885 enable_win32_dll=no
7886
7887
7888 # Check whether --enable-shared was given.
7889 if test "${enable_shared+set}" = set; then :
7890 enableval=$enable_shared; p=${PACKAGE-default}
7891 case $enableval in
7892 yes) enable_shared=yes ;;
7893 no) enable_shared=no ;;
7894 *)
7895 enable_shared=no
7896 # Look at the argument we got. We use all the common list separators.
7897 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7898 for pkg in $enableval; do
7899 IFS=$lt_save_ifs
7900 if test "X$pkg" = "X$p"; then
7901 enable_shared=yes
7902 fi
7903 done
7904 IFS=$lt_save_ifs
7905 ;;
7906 esac
7907 else
7908 enable_shared=yes
7909 fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919 # Check whether --enable-static was given.
7920 if test "${enable_static+set}" = set; then :
7921 enableval=$enable_static; p=${PACKAGE-default}
7922 case $enableval in
7923 yes) enable_static=yes ;;
7924 no) enable_static=no ;;
7925 *)
7926 enable_static=no
7927 # Look at the argument we got. We use all the common list separators.
7928 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7929 for pkg in $enableval; do
7930 IFS=$lt_save_ifs
7931 if test "X$pkg" = "X$p"; then
7932 enable_static=yes
7933 fi
7934 done
7935 IFS=$lt_save_ifs
7936 ;;
7937 esac
7938 else
7939 enable_static=yes
7940 fi
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951 # Check whether --with-pic was given.
7952 if test "${with_pic+set}" = set; then :
7953 withval=$with_pic; lt_p=${PACKAGE-default}
7954 case $withval in
7955 yes|no) pic_mode=$withval ;;
7956 *)
7957 pic_mode=default
7958 # Look at the argument we got. We use all the common list separators.
7959 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7960 for lt_pkg in $withval; do
7961 IFS=$lt_save_ifs
7962 if test "X$lt_pkg" = "X$lt_p"; then
7963 pic_mode=yes
7964 fi
7965 done
7966 IFS=$lt_save_ifs
7967 ;;
7968 esac
7969 else
7970 pic_mode=default
7971 fi
7972
7973
7974
7975
7976
7977
7978
7979
7980 # Check whether --enable-fast-install was given.
7981 if test "${enable_fast_install+set}" = set; then :
7982 enableval=$enable_fast_install; p=${PACKAGE-default}
7983 case $enableval in
7984 yes) enable_fast_install=yes ;;
7985 no) enable_fast_install=no ;;
7986 *)
7987 enable_fast_install=no
7988 # Look at the argument we got. We use all the common list separators.
7989 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7990 for pkg in $enableval; do
7991 IFS=$lt_save_ifs
7992 if test "X$pkg" = "X$p"; then
7993 enable_fast_install=yes
7994 fi
7995 done
7996 IFS=$lt_save_ifs
7997 ;;
7998 esac
7999 else
8000 enable_fast_install=yes
8001 fi
8002
8003
8004
8005
8006
8007
8008
8009
8010 shared_archive_member_spec=
8011 case $host,$enable_shared in
8012 power*-*-aix[5-9]*,yes)
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8014 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8015
8016 # Check whether --with-aix-soname was given.
8017 if test "${with_aix_soname+set}" = set; then :
8018 withval=$with_aix_soname; case $withval in
8019 aix|svr4|both)
8020 ;;
8021 *)
8022 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8023 ;;
8024 esac
8025 lt_cv_with_aix_soname=$with_aix_soname
8026 else
8027 if ${lt_cv_with_aix_soname+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 lt_cv_with_aix_soname=aix
8031 fi
8032
8033 with_aix_soname=$lt_cv_with_aix_soname
8034 fi
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8037 $as_echo "$with_aix_soname" >&6; }
8038 if test aix != "$with_aix_soname"; then
8039 # For the AIX way of multilib, we name the shared archive member
8040 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8041 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8042 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8043 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8044 if test 64 = "${OBJECT_MODE-32}"; then
8045 shared_archive_member_spec=shr_64
8046 else
8047 shared_archive_member_spec=shr
8048 fi
8049 fi
8050 ;;
8051 *)
8052 with_aix_soname=aix
8053 ;;
8054 esac
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065 # This can be used to rebuild libtool when needed
8066 LIBTOOL_DEPS=$ltmain
8067
8068 # Always use our own libtool.
8069 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100 test -z "$LN_S" && LN_S="ln -s"
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115 if test -n "${ZSH_VERSION+set}"; then
8116 setopt NO_GLOB_SUBST
8117 fi
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8120 $as_echo_n "checking for objdir... " >&6; }
8121 if ${lt_cv_objdir+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 rm -f .libs 2>/dev/null
8125 mkdir .libs 2>/dev/null
8126 if test -d .libs; then
8127 lt_cv_objdir=.libs
8128 else
8129 # MS-DOS does not allow filenames that begin with a dot.
8130 lt_cv_objdir=_libs
8131 fi
8132 rmdir .libs 2>/dev/null
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8135 $as_echo "$lt_cv_objdir" >&6; }
8136 objdir=$lt_cv_objdir
8137
8138
8139
8140
8141
8142 cat >>confdefs.h <<_ACEOF
8143 #define LT_OBJDIR "$lt_cv_objdir/"
8144 _ACEOF
8145
8146
8147
8148
8149 case $host_os in
8150 aix3*)
8151 # AIX sometimes has problems with the GCC collect2 program. For some
8152 # reason, if we set the COLLECT_NAMES environment variable, the problems
8153 # vanish in a puff of smoke.
8154 if test set != "${COLLECT_NAMES+set}"; then
8155 COLLECT_NAMES=
8156 export COLLECT_NAMES
8157 fi
8158 ;;
8159 esac
8160
8161 # Global variables:
8162 ofile=libtool
8163 can_build_shared=yes
8164
8165 # All known linkers require a '.a' archive for static linking (except MSVC,
8166 # which needs '.lib').
8167 libext=a
8168
8169 with_gnu_ld=$lt_cv_prog_gnu_ld
8170
8171 old_CC=$CC
8172 old_CFLAGS=$CFLAGS
8173
8174 # Set sane defaults for various variables
8175 test -z "$CC" && CC=cc
8176 test -z "$LTCC" && LTCC=$CC
8177 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8178 test -z "$LD" && LD=ld
8179 test -z "$ac_objext" && ac_objext=o
8180
8181 func_cc_basename $compiler
8182 cc_basename=$func_cc_basename_result
8183
8184
8185 # Only perform the check for file, if the check method requires it
8186 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8187 case $deplibs_check_method in
8188 file_magic*)
8189 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8191 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8192 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 case $MAGIC_CMD in
8196 [\\/*] | ?:[\\/]*)
8197 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8198 ;;
8199 *)
8200 lt_save_MAGIC_CMD=$MAGIC_CMD
8201 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8202 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8203 for ac_dir in $ac_dummy; do
8204 IFS=$lt_save_ifs
8205 test -z "$ac_dir" && ac_dir=.
8206 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8207 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8208 if test -n "$file_magic_test_file"; then
8209 case $deplibs_check_method in
8210 "file_magic "*)
8211 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8212 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8213 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8214 $EGREP "$file_magic_regex" > /dev/null; then
8215 :
8216 else
8217 cat <<_LT_EOF 1>&2
8218
8219 *** Warning: the command libtool uses to detect shared libraries,
8220 *** $file_magic_cmd, produces output that libtool cannot recognize.
8221 *** The result is that libtool may fail to recognize shared libraries
8222 *** as such. This will affect the creation of libtool libraries that
8223 *** depend on shared libraries, but programs linked with such libtool
8224 *** libraries will work regardless of this problem. Nevertheless, you
8225 *** may want to report the problem to your system manager and/or to
8226 *** bug-libtool (at] gnu.org
8227
8228 _LT_EOF
8229 fi ;;
8230 esac
8231 fi
8232 break
8233 fi
8234 done
8235 IFS=$lt_save_ifs
8236 MAGIC_CMD=$lt_save_MAGIC_CMD
8237 ;;
8238 esac
8239 fi
8240
8241 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8242 if test -n "$MAGIC_CMD"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8244 $as_echo "$MAGIC_CMD" >&6; }
8245 else
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249
8250
8251
8252
8253
8254 if test -z "$lt_cv_path_MAGIC_CMD"; then
8255 if test -n "$ac_tool_prefix"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8257 $as_echo_n "checking for file... " >&6; }
8258 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260 else
8261 case $MAGIC_CMD in
8262 [\\/*] | ?:[\\/]*)
8263 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8264 ;;
8265 *)
8266 lt_save_MAGIC_CMD=$MAGIC_CMD
8267 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8268 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8269 for ac_dir in $ac_dummy; do
8270 IFS=$lt_save_ifs
8271 test -z "$ac_dir" && ac_dir=.
8272 if test -f "$ac_dir/file"; then
8273 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8274 if test -n "$file_magic_test_file"; then
8275 case $deplibs_check_method in
8276 "file_magic "*)
8277 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8278 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8279 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8280 $EGREP "$file_magic_regex" > /dev/null; then
8281 :
8282 else
8283 cat <<_LT_EOF 1>&2
8284
8285 *** Warning: the command libtool uses to detect shared libraries,
8286 *** $file_magic_cmd, produces output that libtool cannot recognize.
8287 *** The result is that libtool may fail to recognize shared libraries
8288 *** as such. This will affect the creation of libtool libraries that
8289 *** depend on shared libraries, but programs linked with such libtool
8290 *** libraries will work regardless of this problem. Nevertheless, you
8291 *** may want to report the problem to your system manager and/or to
8292 *** bug-libtool (at] gnu.org
8293
8294 _LT_EOF
8295 fi ;;
8296 esac
8297 fi
8298 break
8299 fi
8300 done
8301 IFS=$lt_save_ifs
8302 MAGIC_CMD=$lt_save_MAGIC_CMD
8303 ;;
8304 esac
8305 fi
8306
8307 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8308 if test -n "$MAGIC_CMD"; then
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8310 $as_echo "$MAGIC_CMD" >&6; }
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314 fi
8315
8316
8317 else
8318 MAGIC_CMD=:
8319 fi
8320 fi
8321
8322 fi
8323 ;;
8324 esac
8325
8326 # Use C for the default configuration in the libtool script
8327
8328 lt_save_CC=$CC
8329 ac_ext=c
8330 ac_cpp='$CPP $CPPFLAGS'
8331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8334
8335
8336 # Source file extension for C test sources.
8337 ac_ext=c
8338
8339 # Object file extension for compiled C test sources.
8340 objext=o
8341 objext=$objext
8342
8343 # Code to be used in simple compile tests
8344 lt_simple_compile_test_code="int some_variable = 0;"
8345
8346 # Code to be used in simple link tests
8347 lt_simple_link_test_code='int main(){return(0);}'
8348
8349
8350
8351
8352
8353
8354
8355 # If no C compiler was specified, use CC.
8356 LTCC=${LTCC-"$CC"}
8357
8358 # If no C compiler flags were specified, use CFLAGS.
8359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8360
8361 # Allow CC to be a program name with arguments.
8362 compiler=$CC
8363
8364 # Save the default compiler, since it gets overwritten when the other
8365 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8366 compiler_DEFAULT=$CC
8367
8368 # save warnings/boilerplate of simple test code
8369 ac_outfile=conftest.$ac_objext
8370 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8371 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8372 _lt_compiler_boilerplate=`cat conftest.err`
8373 $RM conftest*
8374
8375 ac_outfile=conftest.$ac_objext
8376 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8377 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8378 _lt_linker_boilerplate=`cat conftest.err`
8379 $RM -r conftest*
8380
8381
8382 if test -n "$compiler"; then
8383
8384 lt_prog_compiler_no_builtin_flag=
8385
8386 if test yes = "$GCC"; then
8387 case $cc_basename in
8388 nvcc*)
8389 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8390 *)
8391 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8392 esac
8393
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8395 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8396 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 lt_cv_prog_compiler_rtti_exceptions=no
8400 ac_outfile=conftest.$ac_objext
8401 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8402 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8403 # Insert the option either (1) after the last *FLAGS variable, or
8404 # (2) before a word containing "conftest.", or (3) at the end.
8405 # Note that $ac_compile itself does not contain backslashes and begins
8406 # with a dollar sign (not a hyphen), so the echo should work correctly.
8407 # The option is referenced via a variable to avoid confusing sed.
8408 lt_compile=`echo "$ac_compile" | $SED \
8409 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8410 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8411 -e 's:$: $lt_compiler_flag:'`
8412 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8413 (eval "$lt_compile" 2>conftest.err)
8414 ac_status=$?
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 if (exit $ac_status) && test -s "$ac_outfile"; then
8418 # The compiler can only warn and ignore the option if not recognized
8419 # So say no if there are warnings other than the usual output.
8420 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8421 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8422 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8423 lt_cv_prog_compiler_rtti_exceptions=yes
8424 fi
8425 fi
8426 $RM conftest*
8427
8428 fi
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8430 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8431
8432 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8433 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8434 else
8435 :
8436 fi
8437
8438 fi
8439
8440
8441
8442
8443
8444
8445 lt_prog_compiler_wl=
8446 lt_prog_compiler_pic=
8447 lt_prog_compiler_static=
8448
8449
8450 if test yes = "$GCC"; then
8451 lt_prog_compiler_wl='-Wl,'
8452 lt_prog_compiler_static='-static'
8453
8454 case $host_os in
8455 aix*)
8456 # All AIX code is PIC.
8457 if test ia64 = "$host_cpu"; then
8458 # AIX 5 now supports IA64 processor
8459 lt_prog_compiler_static='-Bstatic'
8460 fi
8461 lt_prog_compiler_pic='-fPIC'
8462 ;;
8463
8464 amigaos*)
8465 case $host_cpu in
8466 powerpc)
8467 # see comment about AmigaOS4 .so support
8468 lt_prog_compiler_pic='-fPIC'
8469 ;;
8470 m68k)
8471 # FIXME: we need at least 68020 code to build shared libraries, but
8472 # adding the '-m68020' flag to GCC prevents building anything better,
8473 # like '-m68040'.
8474 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8475 ;;
8476 esac
8477 ;;
8478
8479 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8480 # PIC is the default for these OSes.
8481 ;;
8482
8483 mingw* | cygwin* | pw32* | os2* | cegcc*)
8484 # This hack is so that the source file can tell whether it is being
8485 # built for inclusion in a dll (and should export symbols for example).
8486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8487 # (--disable-auto-import) libraries
8488 lt_prog_compiler_pic='-DDLL_EXPORT'
8489 case $host_os in
8490 os2*)
8491 lt_prog_compiler_static='$wl-static'
8492 ;;
8493 esac
8494 ;;
8495
8496 darwin* | rhapsody*)
8497 # PIC is the default on this platform
8498 # Common symbols not allowed in MH_DYLIB files
8499 lt_prog_compiler_pic='-fno-common'
8500 ;;
8501
8502 haiku*)
8503 # PIC is the default for Haiku.
8504 # The "-static" flag exists, but is broken.
8505 lt_prog_compiler_static=
8506 ;;
8507
8508 hpux*)
8509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8511 # sets the default TLS model and affects inlining.
8512 case $host_cpu in
8513 hppa*64*)
8514 # +Z the default
8515 ;;
8516 *)
8517 lt_prog_compiler_pic='-fPIC'
8518 ;;
8519 esac
8520 ;;
8521
8522 interix[3-9]*)
8523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8524 # Instead, we relocate shared libraries at runtime.
8525 ;;
8526
8527 msdosdjgpp*)
8528 # Just because we use GCC doesn't mean we suddenly get shared libraries
8529 # on systems that don't support them.
8530 lt_prog_compiler_can_build_shared=no
8531 enable_shared=no
8532 ;;
8533
8534 *nto* | *qnx*)
8535 # QNX uses GNU C++, but need to define -shared option too, otherwise
8536 # it will coredump.
8537 lt_prog_compiler_pic='-fPIC -shared'
8538 ;;
8539
8540 sysv4*MP*)
8541 if test -d /usr/nec; then
8542 lt_prog_compiler_pic=-Kconform_pic
8543 fi
8544 ;;
8545
8546 *)
8547 lt_prog_compiler_pic='-fPIC'
8548 ;;
8549 esac
8550
8551 case $cc_basename in
8552 nvcc*) # Cuda Compiler Driver 2.2
8553 lt_prog_compiler_wl='-Xlinker '
8554 if test -n "$lt_prog_compiler_pic"; then
8555 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8556 fi
8557 ;;
8558 esac
8559 else
8560 # PORTME Check for flag to pass linker flags through the system compiler.
8561 case $host_os in
8562 aix*)
8563 lt_prog_compiler_wl='-Wl,'
8564 if test ia64 = "$host_cpu"; then
8565 # AIX 5 now supports IA64 processor
8566 lt_prog_compiler_static='-Bstatic'
8567 else
8568 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8569 fi
8570 ;;
8571
8572 darwin* | rhapsody*)
8573 # PIC is the default on this platform
8574 # Common symbols not allowed in MH_DYLIB files
8575 lt_prog_compiler_pic='-fno-common'
8576 case $cc_basename in
8577 nagfor*)
8578 # NAG Fortran compiler
8579 lt_prog_compiler_wl='-Wl,-Wl,,'
8580 lt_prog_compiler_pic='-PIC'
8581 lt_prog_compiler_static='-Bstatic'
8582 ;;
8583 esac
8584 ;;
8585
8586 mingw* | cygwin* | pw32* | os2* | cegcc*)
8587 # This hack is so that the source file can tell whether it is being
8588 # built for inclusion in a dll (and should export symbols for example).
8589 lt_prog_compiler_pic='-DDLL_EXPORT'
8590 case $host_os in
8591 os2*)
8592 lt_prog_compiler_static='$wl-static'
8593 ;;
8594 esac
8595 ;;
8596
8597 hpux9* | hpux10* | hpux11*)
8598 lt_prog_compiler_wl='-Wl,'
8599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8600 # not for PA HP-UX.
8601 case $host_cpu in
8602 hppa*64*|ia64*)
8603 # +Z the default
8604 ;;
8605 *)
8606 lt_prog_compiler_pic='+Z'
8607 ;;
8608 esac
8609 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8610 lt_prog_compiler_static='$wl-a ${wl}archive'
8611 ;;
8612
8613 irix5* | irix6* | nonstopux*)
8614 lt_prog_compiler_wl='-Wl,'
8615 # PIC (with -KPIC) is the default.
8616 lt_prog_compiler_static='-non_shared'
8617 ;;
8618
8619 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8620 case $cc_basename in
8621 # old Intel for x86_64, which still supported -KPIC.
8622 ecc*)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-KPIC'
8625 lt_prog_compiler_static='-static'
8626 ;;
8627 # icc used to be incompatible with GCC.
8628 # ICC 10 doesn't accept -KPIC any more.
8629 icc* | ifort*)
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_pic='-fPIC'
8632 lt_prog_compiler_static='-static'
8633 ;;
8634 # Lahey Fortran 8.1.
8635 lf95*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='--shared'
8638 lt_prog_compiler_static='--static'
8639 ;;
8640 nagfor*)
8641 # NAG Fortran compiler
8642 lt_prog_compiler_wl='-Wl,-Wl,,'
8643 lt_prog_compiler_pic='-PIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646 tcc*)
8647 # Fabrice Bellard et al's Tiny C Compiler
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-fPIC'
8650 lt_prog_compiler_static='-static'
8651 ;;
8652 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8653 # Portland Group compilers (*not* the Pentium gcc compiler,
8654 # which looks to be a dead project)
8655 lt_prog_compiler_wl='-Wl,'
8656 lt_prog_compiler_pic='-fpic'
8657 lt_prog_compiler_static='-Bstatic'
8658 ;;
8659 ccc*)
8660 lt_prog_compiler_wl='-Wl,'
8661 # All Alpha code is PIC.
8662 lt_prog_compiler_static='-non_shared'
8663 ;;
8664 xl* | bgxl* | bgf* | mpixl*)
8665 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8666 lt_prog_compiler_wl='-Wl,'
8667 lt_prog_compiler_pic='-qpic'
8668 lt_prog_compiler_static='-qstaticlink'
8669 ;;
8670 *)
8671 case `$CC -V 2>&1 | sed 5q` in
8672 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8673 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 lt_prog_compiler_wl=''
8677 ;;
8678 *Sun\ F* | *Sun*Fortran*)
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-Bstatic'
8681 lt_prog_compiler_wl='-Qoption ld '
8682 ;;
8683 *Sun\ C*)
8684 # Sun C 5.9
8685 lt_prog_compiler_pic='-KPIC'
8686 lt_prog_compiler_static='-Bstatic'
8687 lt_prog_compiler_wl='-Wl,'
8688 ;;
8689 *Intel*\ [CF]*Compiler*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-fPIC'
8692 lt_prog_compiler_static='-static'
8693 ;;
8694 *Portland\ Group*)
8695 lt_prog_compiler_wl='-Wl,'
8696 lt_prog_compiler_pic='-fpic'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8699 esac
8700 ;;
8701 esac
8702 ;;
8703
8704 newsos6)
8705 lt_prog_compiler_pic='-KPIC'
8706 lt_prog_compiler_static='-Bstatic'
8707 ;;
8708
8709 *nto* | *qnx*)
8710 # QNX uses GNU C++, but need to define -shared option too, otherwise
8711 # it will coredump.
8712 lt_prog_compiler_pic='-fPIC -shared'
8713 ;;
8714
8715 osf3* | osf4* | osf5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 # All OSF/1 code is PIC.
8718 lt_prog_compiler_static='-non_shared'
8719 ;;
8720
8721 rdos*)
8722 lt_prog_compiler_static='-non_shared'
8723 ;;
8724
8725 solaris*)
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 case $cc_basename in
8729 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8730 lt_prog_compiler_wl='-Qoption ld ';;
8731 *)
8732 lt_prog_compiler_wl='-Wl,';;
8733 esac
8734 ;;
8735
8736 sunos4*)
8737 lt_prog_compiler_wl='-Qoption ld '
8738 lt_prog_compiler_pic='-PIC'
8739 lt_prog_compiler_static='-Bstatic'
8740 ;;
8741
8742 sysv4 | sysv4.2uw2* | sysv4.3*)
8743 lt_prog_compiler_wl='-Wl,'
8744 lt_prog_compiler_pic='-KPIC'
8745 lt_prog_compiler_static='-Bstatic'
8746 ;;
8747
8748 sysv4*MP*)
8749 if test -d /usr/nec; then
8750 lt_prog_compiler_pic='-Kconform_pic'
8751 lt_prog_compiler_static='-Bstatic'
8752 fi
8753 ;;
8754
8755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8756 lt_prog_compiler_wl='-Wl,'
8757 lt_prog_compiler_pic='-KPIC'
8758 lt_prog_compiler_static='-Bstatic'
8759 ;;
8760
8761 unicos*)
8762 lt_prog_compiler_wl='-Wl,'
8763 lt_prog_compiler_can_build_shared=no
8764 ;;
8765
8766 uts4*)
8767 lt_prog_compiler_pic='-pic'
8768 lt_prog_compiler_static='-Bstatic'
8769 ;;
8770
8771 *)
8772 lt_prog_compiler_can_build_shared=no
8773 ;;
8774 esac
8775 fi
8776
8777 case $host_os in
8778 # For platforms that do not support PIC, -DPIC is meaningless:
8779 *djgpp*)
8780 lt_prog_compiler_pic=
8781 ;;
8782 *)
8783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8784 ;;
8785 esac
8786
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8788 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8789 if ${lt_cv_prog_compiler_pic+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8793 fi
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8795 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8796 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8797
8798 #
8799 # Check to make sure the PIC flag actually works.
8800 #
8801 if test -n "$lt_prog_compiler_pic"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8803 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8804 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 lt_cv_prog_compiler_pic_works=no
8808 ac_outfile=conftest.$ac_objext
8809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8810 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8811 # Insert the option either (1) after the last *FLAGS variable, or
8812 # (2) before a word containing "conftest.", or (3) at the end.
8813 # Note that $ac_compile itself does not contain backslashes and begins
8814 # with a dollar sign (not a hyphen), so the echo should work correctly.
8815 # The option is referenced via a variable to avoid confusing sed.
8816 lt_compile=`echo "$ac_compile" | $SED \
8817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8819 -e 's:$: $lt_compiler_flag:'`
8820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8821 (eval "$lt_compile" 2>conftest.err)
8822 ac_status=$?
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 if (exit $ac_status) && test -s "$ac_outfile"; then
8826 # The compiler can only warn and ignore the option if not recognized
8827 # So say no if there are warnings other than the usual output.
8828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8830 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8831 lt_cv_prog_compiler_pic_works=yes
8832 fi
8833 fi
8834 $RM conftest*
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8838 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8839
8840 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8841 case $lt_prog_compiler_pic in
8842 "" | " "*) ;;
8843 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8844 esac
8845 else
8846 lt_prog_compiler_pic=
8847 lt_prog_compiler_can_build_shared=no
8848 fi
8849
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862 #
8863 # Check to make sure the static flag actually works.
8864 #
8865 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8867 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8868 if ${lt_cv_prog_compiler_static_works+:} false; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 lt_cv_prog_compiler_static_works=no
8872 save_LDFLAGS=$LDFLAGS
8873 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8874 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8875 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8876 # The linker can only warn and ignore the option if not recognized
8877 # So say no if there are warnings
8878 if test -s conftest.err; then
8879 # Append any errors to the config.log.
8880 cat conftest.err 1>&5
8881 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8882 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8883 if diff conftest.exp conftest.er2 >/dev/null; then
8884 lt_cv_prog_compiler_static_works=yes
8885 fi
8886 else
8887 lt_cv_prog_compiler_static_works=yes
8888 fi
8889 fi
8890 $RM -r conftest*
8891 LDFLAGS=$save_LDFLAGS
8892
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8895 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8896
8897 if test yes = "$lt_cv_prog_compiler_static_works"; then
8898 :
8899 else
8900 lt_prog_compiler_static=
8901 fi
8902
8903
8904
8905
8906
8907
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8911 if ${lt_cv_prog_compiler_c_o+:} false; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 lt_cv_prog_compiler_c_o=no
8915 $RM -r conftest 2>/dev/null
8916 mkdir conftest
8917 cd conftest
8918 mkdir out
8919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8920
8921 lt_compiler_flag="-o out/conftest2.$ac_objext"
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 lt_compile=`echo "$ac_compile" | $SED \
8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8929 -e 's:$: $lt_compiler_flag:'`
8930 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8931 (eval "$lt_compile" 2>out/conftest.err)
8932 ac_status=$?
8933 cat out/conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8936 then
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings
8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_c_o=yes
8943 fi
8944 fi
8945 chmod u+w . 2>&5
8946 $RM conftest*
8947 # SGI C++ compiler will create directory out/ii_files/ for
8948 # template instantiation
8949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8950 $RM out/* && rmdir out
8951 cd ..
8952 $RM -r conftest
8953 $RM conftest*
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8958
8959
8960
8961
8962
8963
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8965 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8966 if ${lt_cv_prog_compiler_c_o+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 lt_cv_prog_compiler_c_o=no
8970 $RM -r conftest 2>/dev/null
8971 mkdir conftest
8972 cd conftest
8973 mkdir out
8974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975
8976 lt_compiler_flag="-o out/conftest2.$ac_objext"
8977 # Insert the option either (1) after the last *FLAGS variable, or
8978 # (2) before a word containing "conftest.", or (3) at the end.
8979 # Note that $ac_compile itself does not contain backslashes and begins
8980 # with a dollar sign (not a hyphen), so the echo should work correctly.
8981 lt_compile=`echo "$ac_compile" | $SED \
8982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984 -e 's:$: $lt_compiler_flag:'`
8985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986 (eval "$lt_compile" 2>out/conftest.err)
8987 ac_status=$?
8988 cat out/conftest.err >&5
8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8991 then
8992 # The compiler can only warn and ignore the option if not recognized
8993 # So say no if there are warnings
8994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8995 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8996 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8997 lt_cv_prog_compiler_c_o=yes
8998 fi
8999 fi
9000 chmod u+w . 2>&5
9001 $RM conftest*
9002 # SGI C++ compiler will create directory out/ii_files/ for
9003 # template instantiation
9004 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9005 $RM out/* && rmdir out
9006 cd ..
9007 $RM -r conftest
9008 $RM conftest*
9009
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9012 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9013
9014
9015
9016
9017 hard_links=nottested
9018 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9019 # do not overwrite the value of need_locks provided by the user
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9021 $as_echo_n "checking if we can lock with hard links... " >&6; }
9022 hard_links=yes
9023 $RM conftest*
9024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9025 touch conftest.a
9026 ln conftest.a conftest.b 2>&5 || hard_links=no
9027 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9029 $as_echo "$hard_links" >&6; }
9030 if test no = "$hard_links"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9032 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9033 need_locks=warn
9034 fi
9035 else
9036 need_locks=no
9037 fi
9038
9039
9040
9041
9042
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9045 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9046
9047 runpath_var=
9048 allow_undefined_flag=
9049 always_export_symbols=no
9050 archive_cmds=
9051 archive_expsym_cmds=
9052 compiler_needs_object=no
9053 enable_shared_with_static_runtimes=no
9054 export_dynamic_flag_spec=
9055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9056 hardcode_automatic=no
9057 hardcode_direct=no
9058 hardcode_direct_absolute=no
9059 hardcode_libdir_flag_spec=
9060 hardcode_libdir_separator=
9061 hardcode_minus_L=no
9062 hardcode_shlibpath_var=unsupported
9063 inherit_rpath=no
9064 link_all_deplibs=unknown
9065 module_cmds=
9066 module_expsym_cmds=
9067 old_archive_from_new_cmds=
9068 old_archive_from_expsyms_cmds=
9069 thread_safe_flag_spec=
9070 whole_archive_flag_spec=
9071 # include_expsyms should be a list of space-separated symbols to be *always*
9072 # included in the symbol list
9073 include_expsyms=
9074 # exclude_expsyms can be an extended regexp of symbols to exclude
9075 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9076 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9077 # as well as any symbol that contains 'd'.
9078 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9079 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9080 # platforms (ab)use it in PIC code, but their linkers get confused if
9081 # the symbol is explicitly referenced. Since portable code cannot
9082 # rely on this symbol name, it's probably fine to never include it in
9083 # preloaded symbol tables.
9084 # Exclude shared library initialization/finalization symbols.
9085 extract_expsyms_cmds=
9086
9087 case $host_os in
9088 cygwin* | mingw* | pw32* | cegcc*)
9089 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9090 # When not using gcc, we currently assume that we are using
9091 # Microsoft Visual C++.
9092 if test yes != "$GCC"; then
9093 with_gnu_ld=no
9094 fi
9095 ;;
9096 interix*)
9097 # we just hope/assume this is gcc and not c89 (= MSVC++)
9098 with_gnu_ld=yes
9099 ;;
9100 openbsd* | bitrig*)
9101 with_gnu_ld=no
9102 ;;
9103 linux* | k*bsd*-gnu | gnu*)
9104 link_all_deplibs=no
9105 ;;
9106 esac
9107
9108 ld_shlibs=yes
9109
9110 # On some targets, GNU ld is compatible enough with the native linker
9111 # that we're better off using the native interface for both.
9112 lt_use_gnu_ld_interface=no
9113 if test yes = "$with_gnu_ld"; then
9114 case $host_os in
9115 aix*)
9116 # The AIX port of GNU ld has always aspired to compatibility
9117 # with the native linker. However, as the warning in the GNU ld
9118 # block says, versions before 2.19.5* couldn't really create working
9119 # shared libraries, regardless of the interface used.
9120 case `$LD -v 2>&1` in
9121 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9122 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9123 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9124 *)
9125 lt_use_gnu_ld_interface=yes
9126 ;;
9127 esac
9128 ;;
9129 *)
9130 lt_use_gnu_ld_interface=yes
9131 ;;
9132 esac
9133 fi
9134
9135 if test yes = "$lt_use_gnu_ld_interface"; then
9136 # If archive_cmds runs LD, not CC, wlarc should be empty
9137 wlarc='$wl'
9138
9139 # Set some defaults for GNU ld with shared library support. These
9140 # are reset later if shared libraries are not supported. Putting them
9141 # here allows them to be overridden if necessary.
9142 runpath_var=LD_RUN_PATH
9143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9144 export_dynamic_flag_spec='$wl--export-dynamic'
9145 # ancient GNU ld didn't support --whole-archive et. al.
9146 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9147 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9148 else
9149 whole_archive_flag_spec=
9150 fi
9151 supports_anon_versioning=no
9152 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9153 *GNU\ gold*) supports_anon_versioning=yes ;;
9154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9157 *\ 2.11.*) ;; # other 2.11 versions
9158 *) supports_anon_versioning=yes ;;
9159 esac
9160
9161 # See if GNU ld supports shared libraries.
9162 case $host_os in
9163 aix[3-9]*)
9164 # On AIX/PPC, the GNU linker is very broken
9165 if test ia64 != "$host_cpu"; then
9166 ld_shlibs=no
9167 cat <<_LT_EOF 1>&2
9168
9169 *** Warning: the GNU linker, at least up to release 2.19, is reported
9170 *** to be unable to reliably create shared libraries on AIX.
9171 *** Therefore, libtool is disabling shared libraries support. If you
9172 *** really care for shared libraries, you may want to install binutils
9173 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9174 *** You will then need to restart the configuration process.
9175
9176 _LT_EOF
9177 fi
9178 ;;
9179
9180 amigaos*)
9181 case $host_cpu in
9182 powerpc)
9183 # see comment about AmigaOS4 .so support
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9185 archive_expsym_cmds=''
9186 ;;
9187 m68k)
9188 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)'
9189 hardcode_libdir_flag_spec='-L$libdir'
9190 hardcode_minus_L=yes
9191 ;;
9192 esac
9193 ;;
9194
9195 beos*)
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 allow_undefined_flag=unsupported
9198 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9199 # support --undefined. This deserves some investigation. FIXME
9200 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9201 else
9202 ld_shlibs=no
9203 fi
9204 ;;
9205
9206 cygwin* | mingw* | pw32* | cegcc*)
9207 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9208 # as there is no search path for DLLs.
9209 hardcode_libdir_flag_spec='-L$libdir'
9210 export_dynamic_flag_spec='$wl--export-all-symbols'
9211 allow_undefined_flag=unsupported
9212 always_export_symbols=no
9213 enable_shared_with_static_runtimes=yes
9214 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'
9215 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9216
9217 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9219 # If the export-symbols file already is a .def file, use it as
9220 # is; otherwise, prepend EXPORTS...
9221 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9222 cp $export_symbols $output_objdir/$soname.def;
9223 else
9224 echo EXPORTS > $output_objdir/$soname.def;
9225 cat $export_symbols >> $output_objdir/$soname.def;
9226 fi~
9227 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9228 else
9229 ld_shlibs=no
9230 fi
9231 ;;
9232
9233 haiku*)
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9235 link_all_deplibs=yes
9236 ;;
9237
9238 os2*)
9239 hardcode_libdir_flag_spec='-L$libdir'
9240 hardcode_minus_L=yes
9241 allow_undefined_flag=unsupported
9242 shrext_cmds=.dll
9243 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9244 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9245 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9246 $ECHO EXPORTS >> $output_objdir/$libname.def~
9247 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9249 emximp -o $lib $output_objdir/$libname.def'
9250 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9251 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9252 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9253 $ECHO EXPORTS >> $output_objdir/$libname.def~
9254 prefix_cmds="$SED"~
9255 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9256 prefix_cmds="$prefix_cmds -e 1d";
9257 fi~
9258 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9259 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9260 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9261 emximp -o $lib $output_objdir/$libname.def'
9262 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9263 enable_shared_with_static_runtimes=yes
9264 ;;
9265
9266 interix[3-9]*)
9267 hardcode_direct=no
9268 hardcode_shlibpath_var=no
9269 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9270 export_dynamic_flag_spec='$wl-E'
9271 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9272 # Instead, shared libraries are loaded at an image base (0x10000000 by
9273 # default) and relocated if they conflict, which is a slow very memory
9274 # consuming and fragmenting process. To avoid this, we pick a random,
9275 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9276 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9277 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9278 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'
9279 ;;
9280
9281 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9282 tmp_diet=no
9283 if test linux-dietlibc = "$host_os"; then
9284 case $cc_basename in
9285 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9286 esac
9287 fi
9288 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9289 && test no = "$tmp_diet"
9290 then
9291 tmp_addflag=' $pic_flag'
9292 tmp_sharedflag='-shared'
9293 case $cc_basename,$host_cpu in
9294 pgcc*) # Portland Group C compiler
9295 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'
9296 tmp_addflag=' $pic_flag'
9297 ;;
9298 pgf77* | pgf90* | pgf95* | pgfortran*)
9299 # Portland Group f77 and f90 compilers
9300 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'
9301 tmp_addflag=' $pic_flag -Mnomain' ;;
9302 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9303 tmp_addflag=' -i_dynamic' ;;
9304 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9305 tmp_addflag=' -i_dynamic -nofor_main' ;;
9306 ifc* | ifort*) # Intel Fortran compiler
9307 tmp_addflag=' -nofor_main' ;;
9308 lf95*) # Lahey Fortran 8.1
9309 whole_archive_flag_spec=
9310 tmp_sharedflag='--shared' ;;
9311 nagfor*) # NAGFOR 5.3
9312 tmp_sharedflag='-Wl,-shared' ;;
9313 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9314 tmp_sharedflag='-qmkshrobj'
9315 tmp_addflag= ;;
9316 nvcc*) # Cuda Compiler Driver 2.2
9317 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'
9318 compiler_needs_object=yes
9319 ;;
9320 esac
9321 case `$CC -V 2>&1 | sed 5q` in
9322 *Sun\ C*) # Sun C 5.9
9323 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'
9324 compiler_needs_object=yes
9325 tmp_sharedflag='-G' ;;
9326 *Sun\ F*) # Sun Fortran 8.3
9327 tmp_sharedflag='-G' ;;
9328 esac
9329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9330
9331 if test yes = "$supports_anon_versioning"; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9336 fi
9337
9338 case $cc_basename in
9339 tcc*)
9340 export_dynamic_flag_spec='-rdynamic'
9341 ;;
9342 xlf* | bgf* | bgxlf* | mpixlf*)
9343 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9344 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9346 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9347 if test yes = "$supports_anon_versioning"; then
9348 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9350 echo "local: *; };" >> $output_objdir/$libname.ver~
9351 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9352 fi
9353 ;;
9354 esac
9355 else
9356 ld_shlibs=no
9357 fi
9358 ;;
9359
9360 netbsd* | netbsdelf*-gnu)
9361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9362 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9363 wlarc=
9364 else
9365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9366 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9367 fi
9368 ;;
9369
9370 solaris*)
9371 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9372 ld_shlibs=no
9373 cat <<_LT_EOF 1>&2
9374
9375 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9376 *** create shared libraries on Solaris systems. Therefore, libtool
9377 *** is disabling shared libraries support. We urge you to upgrade GNU
9378 *** binutils to release 2.9.1 or newer. Another option is to modify
9379 *** your PATH or compiler configuration so that the native linker is
9380 *** used, and then restart.
9381
9382 _LT_EOF
9383 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9386 else
9387 ld_shlibs=no
9388 fi
9389 ;;
9390
9391 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9392 case `$LD -v 2>&1` in
9393 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9394 ld_shlibs=no
9395 cat <<_LT_EOF 1>&2
9396
9397 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9398 *** reliably create shared libraries on SCO systems. Therefore, libtool
9399 *** is disabling shared libraries support. We urge you to upgrade GNU
9400 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9401 *** your PATH or compiler configuration so that the native linker is
9402 *** used, and then restart.
9403
9404 _LT_EOF
9405 ;;
9406 *)
9407 # For security reasons, it is highly recommended that you always
9408 # use absolute paths for naming shared libraries, and exclude the
9409 # DT_RUNPATH tag from executables and libraries. But doing so
9410 # requires that you compile everything twice, which is a pain.
9411 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9412 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9415 else
9416 ld_shlibs=no
9417 fi
9418 ;;
9419 esac
9420 ;;
9421
9422 sunos4*)
9423 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9424 wlarc=
9425 hardcode_direct=yes
9426 hardcode_shlibpath_var=no
9427 ;;
9428
9429 *)
9430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9431 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9432 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9433 else
9434 ld_shlibs=no
9435 fi
9436 ;;
9437 esac
9438
9439 if test no = "$ld_shlibs"; then
9440 runpath_var=
9441 hardcode_libdir_flag_spec=
9442 export_dynamic_flag_spec=
9443 whole_archive_flag_spec=
9444 fi
9445 else
9446 # PORTME fill in a description of your system's linker (not GNU ld)
9447 case $host_os in
9448 aix3*)
9449 allow_undefined_flag=unsupported
9450 always_export_symbols=yes
9451 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'
9452 # Note: this linker hardcodes the directories in LIBPATH if there
9453 # are no directories specified by -L.
9454 hardcode_minus_L=yes
9455 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9456 # Neither direct hardcoding nor static linking is supported with a
9457 # broken collect2.
9458 hardcode_direct=unsupported
9459 fi
9460 ;;
9461
9462 aix[4-9]*)
9463 if test ia64 = "$host_cpu"; then
9464 # On IA64, the linker does run time linking by default, so we don't
9465 # have to do anything special.
9466 aix_use_runtimelinking=no
9467 exp_sym_flag='-Bexport'
9468 no_entry_flag=
9469 else
9470 # If we're using GNU nm, then we don't want the "-C" option.
9471 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9472 # Without the "-l" option, or with the "-B" option, AIX nm treats
9473 # weak defined symbols like other global defined symbols, whereas
9474 # GNU nm marks them as "W".
9475 # While the 'weak' keyword is ignored in the Export File, we need
9476 # it in the Import File for the 'aix-soname' feature, so we have
9477 # to replace the "-B" option with "-P" for AIX nm.
9478 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9479 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9480 else
9481 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9482 fi
9483 aix_use_runtimelinking=no
9484
9485 # Test if we are trying to use run time linking or normal
9486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9487 # have runtime linking enabled, and use it for executables.
9488 # For shared libraries, we enable/disable runtime linking
9489 # depending on the kind of the shared library created -
9490 # when "with_aix_soname,aix_use_runtimelinking" is:
9491 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9492 # "aix,yes" lib.so shared, rtl:yes, for executables
9493 # lib.a static archive
9494 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9495 # lib.a(lib.so.V) shared, rtl:no, for executables
9496 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9497 # lib.a(lib.so.V) shared, rtl:no
9498 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9499 # lib.a static archive
9500 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9501 for ld_flag in $LDFLAGS; do
9502 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9503 aix_use_runtimelinking=yes
9504 break
9505 fi
9506 done
9507 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9508 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9509 # so we don't have lib.a shared libs to link our executables.
9510 # We have to force runtime linking in this case.
9511 aix_use_runtimelinking=yes
9512 LDFLAGS="$LDFLAGS -Wl,-brtl"
9513 fi
9514 ;;
9515 esac
9516
9517 exp_sym_flag='-bexport'
9518 no_entry_flag='-bnoentry'
9519 fi
9520
9521 # When large executables or shared objects are built, AIX ld can
9522 # have problems creating the table of contents. If linking a library
9523 # or program results in "error TOC overflow" add -mminimal-toc to
9524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9526
9527 archive_cmds=''
9528 hardcode_direct=yes
9529 hardcode_direct_absolute=yes
9530 hardcode_libdir_separator=':'
9531 link_all_deplibs=yes
9532 file_list_spec='$wl-f,'
9533 case $with_aix_soname,$aix_use_runtimelinking in
9534 aix,*) ;; # traditional, no import file
9535 svr4,* | *,yes) # use import file
9536 # The Import File defines what to hardcode.
9537 hardcode_direct=no
9538 hardcode_direct_absolute=no
9539 ;;
9540 esac
9541
9542 if test yes = "$GCC"; then
9543 case $host_os in aix4.[012]|aix4.[012].*)
9544 # We only want to do this on AIX 4.2 and lower, the check
9545 # below for broken collect2 doesn't work under 4.3+
9546 collect2name=`$CC -print-prog-name=collect2`
9547 if test -f "$collect2name" &&
9548 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9549 then
9550 # We have reworked collect2
9551 :
9552 else
9553 # We have old collect2
9554 hardcode_direct=unsupported
9555 # It fails to find uninstalled libraries when the uninstalled
9556 # path is not listed in the libpath. Setting hardcode_minus_L
9557 # to unsupported forces relinking
9558 hardcode_minus_L=yes
9559 hardcode_libdir_flag_spec='-L$libdir'
9560 hardcode_libdir_separator=
9561 fi
9562 ;;
9563 esac
9564 shared_flag='-shared'
9565 if test yes = "$aix_use_runtimelinking"; then
9566 shared_flag="$shared_flag "'$wl-G'
9567 fi
9568 # Need to ensure runtime linking is disabled for the traditional
9569 # shared library, or the linker may eventually find shared libraries
9570 # /with/ Import File - we do not want to mix them.
9571 shared_flag_aix='-shared'
9572 shared_flag_svr4='-shared $wl-G'
9573 else
9574 # not using gcc
9575 if test ia64 = "$host_cpu"; then
9576 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9577 # chokes on -Wl,-G. The following line is correct:
9578 shared_flag='-G'
9579 else
9580 if test yes = "$aix_use_runtimelinking"; then
9581 shared_flag='$wl-G'
9582 else
9583 shared_flag='$wl-bM:SRE'
9584 fi
9585 shared_flag_aix='$wl-bM:SRE'
9586 shared_flag_svr4='$wl-G'
9587 fi
9588 fi
9589
9590 export_dynamic_flag_spec='$wl-bexpall'
9591 # It seems that -bexpall does not export symbols beginning with
9592 # underscore (_), so it is better to generate a list of symbols to export.
9593 always_export_symbols=yes
9594 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9595 # Warning - without using the other runtime loading flags (-brtl),
9596 # -berok will link without error, but may produce a broken library.
9597 allow_undefined_flag='-berok'
9598 # Determine the default libpath from the value encoded in an
9599 # empty executable.
9600 if test set = "${lt_cv_aix_libpath+set}"; then
9601 aix_libpath=$lt_cv_aix_libpath
9602 else
9603 if ${lt_cv_aix_libpath_+:} false; then :
9604 $as_echo_n "(cached) " >&6
9605 else
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608
9609 int
9610 main ()
9611 {
9612
9613 ;
9614 return 0;
9615 }
9616 _ACEOF
9617 if ac_fn_c_try_link "$LINENO"; then :
9618
9619 lt_aix_libpath_sed='
9620 /Import File Strings/,/^$/ {
9621 /^0/ {
9622 s/^0 *\([^ ]*\) *$/\1/
9623 p
9624 }
9625 }'
9626 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627 # Check for a 64-bit object if we didn't find anything.
9628 if test -z "$lt_cv_aix_libpath_"; then
9629 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9630 fi
9631 fi
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 if test -z "$lt_cv_aix_libpath_"; then
9635 lt_cv_aix_libpath_=/usr/lib:/lib
9636 fi
9637
9638 fi
9639
9640 aix_libpath=$lt_cv_aix_libpath_
9641 fi
9642
9643 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9644 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9645 else
9646 if test ia64 = "$host_cpu"; then
9647 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9648 allow_undefined_flag="-z nodefs"
9649 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"
9650 else
9651 # Determine the default libpath from the value encoded in an
9652 # empty executable.
9653 if test set = "${lt_cv_aix_libpath+set}"; then
9654 aix_libpath=$lt_cv_aix_libpath
9655 else
9656 if ${lt_cv_aix_libpath_+:} false; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9661
9662 int
9663 main ()
9664 {
9665
9666 ;
9667 return 0;
9668 }
9669 _ACEOF
9670 if ac_fn_c_try_link "$LINENO"; then :
9671
9672 lt_aix_libpath_sed='
9673 /Import File Strings/,/^$/ {
9674 /^0/ {
9675 s/^0 *\([^ ]*\) *$/\1/
9676 p
9677 }
9678 }'
9679 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680 # Check for a 64-bit object if we didn't find anything.
9681 if test -z "$lt_cv_aix_libpath_"; then
9682 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9683 fi
9684 fi
9685 rm -f core conftest.err conftest.$ac_objext \
9686 conftest$ac_exeext conftest.$ac_ext
9687 if test -z "$lt_cv_aix_libpath_"; then
9688 lt_cv_aix_libpath_=/usr/lib:/lib
9689 fi
9690
9691 fi
9692
9693 aix_libpath=$lt_cv_aix_libpath_
9694 fi
9695
9696 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9697 # Warning - without using the other run time loading flags,
9698 # -berok will link without error, but may produce a broken library.
9699 no_undefined_flag=' $wl-bernotok'
9700 allow_undefined_flag=' $wl-berok'
9701 if test yes = "$with_gnu_ld"; then
9702 # We only use this code for GNU lds that support --whole-archive.
9703 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9704 else
9705 # Exported symbols can be pulled into shared objects from archives
9706 whole_archive_flag_spec='$convenience'
9707 fi
9708 archive_cmds_need_lc=yes
9709 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9710 # -brtl affects multiple linker settings, -berok does not and is overridden later
9711 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9712 if test svr4 != "$with_aix_soname"; then
9713 # This is similar to how AIX traditionally builds its shared libraries.
9714 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9715 fi
9716 if test aix != "$with_aix_soname"; then
9717 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9718 else
9719 # used by -dlpreopen to get the symbols
9720 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9721 fi
9722 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9723 fi
9724 fi
9725 ;;
9726
9727 amigaos*)
9728 case $host_cpu in
9729 powerpc)
9730 # see comment about AmigaOS4 .so support
9731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9732 archive_expsym_cmds=''
9733 ;;
9734 m68k)
9735 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)'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_minus_L=yes
9738 ;;
9739 esac
9740 ;;
9741
9742 bsdi[45]*)
9743 export_dynamic_flag_spec=-rdynamic
9744 ;;
9745
9746 cygwin* | mingw* | pw32* | cegcc*)
9747 # When not using gcc, we currently assume that we are using
9748 # Microsoft Visual C++.
9749 # hardcode_libdir_flag_spec is actually meaningless, as there is
9750 # no search path for DLLs.
9751 case $cc_basename in
9752 cl*)
9753 # Native MSVC
9754 hardcode_libdir_flag_spec=' '
9755 allow_undefined_flag=unsupported
9756 always_export_symbols=yes
9757 file_list_spec='@'
9758 # Tell ltmain to make .lib files, not .a files.
9759 libext=lib
9760 # Tell ltmain to make .dll files, not .so files.
9761 shrext_cmds=.dll
9762 # FIXME: Setting linknames here is a bad hack.
9763 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9764 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9765 cp "$export_symbols" "$output_objdir/$soname.def";
9766 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9767 else
9768 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9769 fi~
9770 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9771 linknames='
9772 # The linker will not automatically build a static lib if we build a DLL.
9773 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9774 enable_shared_with_static_runtimes=yes
9775 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9776 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9777 # Don't use ranlib
9778 old_postinstall_cmds='chmod 644 $oldlib'
9779 postlink_cmds='lt_outputfile="@OUTPUT@"~
9780 lt_tool_outputfile="@TOOL_OUTPUT@"~
9781 case $lt_outputfile in
9782 *.exe|*.EXE) ;;
9783 *)
9784 lt_outputfile=$lt_outputfile.exe
9785 lt_tool_outputfile=$lt_tool_outputfile.exe
9786 ;;
9787 esac~
9788 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9789 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9790 $RM "$lt_outputfile.manifest";
9791 fi'
9792 ;;
9793 *)
9794 # Assume MSVC wrapper
9795 hardcode_libdir_flag_spec=' '
9796 allow_undefined_flag=unsupported
9797 # Tell ltmain to make .lib files, not .a files.
9798 libext=lib
9799 # Tell ltmain to make .dll files, not .so files.
9800 shrext_cmds=.dll
9801 # FIXME: Setting linknames here is a bad hack.
9802 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9803 # The linker will automatically build a .lib file if we build a DLL.
9804 old_archive_from_new_cmds='true'
9805 # FIXME: Should let the user specify the lib program.
9806 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9807 enable_shared_with_static_runtimes=yes
9808 ;;
9809 esac
9810 ;;
9811
9812 darwin* | rhapsody*)
9813
9814
9815 archive_cmds_need_lc=no
9816 hardcode_direct=no
9817 hardcode_automatic=yes
9818 hardcode_shlibpath_var=unsupported
9819 if test yes = "$lt_cv_ld_force_load"; then
9820 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\"`'
9821
9822 else
9823 whole_archive_flag_spec=''
9824 fi
9825 link_all_deplibs=yes
9826 allow_undefined_flag=$_lt_dar_allow_undefined
9827 case $cc_basename in
9828 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9829 *) _lt_dar_can_shared=$GCC ;;
9830 esac
9831 if test yes = "$_lt_dar_can_shared"; then
9832 output_verbose_link_cmd=func_echo_all
9833 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9834 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9835 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"
9836 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"
9837
9838 else
9839 ld_shlibs=no
9840 fi
9841
9842 ;;
9843
9844 dgux*)
9845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9846 hardcode_libdir_flag_spec='-L$libdir'
9847 hardcode_shlibpath_var=no
9848 ;;
9849
9850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9851 # support. Future versions do this automatically, but an explicit c++rt0.o
9852 # does not break anything, and helps significantly (at the cost of a little
9853 # extra space).
9854 freebsd2.2*)
9855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9856 hardcode_libdir_flag_spec='-R$libdir'
9857 hardcode_direct=yes
9858 hardcode_shlibpath_var=no
9859 ;;
9860
9861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9862 freebsd2.*)
9863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_direct=yes
9865 hardcode_minus_L=yes
9866 hardcode_shlibpath_var=no
9867 ;;
9868
9869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9870 freebsd* | dragonfly*)
9871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9872 hardcode_libdir_flag_spec='-R$libdir'
9873 hardcode_direct=yes
9874 hardcode_shlibpath_var=no
9875 ;;
9876
9877 hpux9*)
9878 if test yes = "$GCC"; then
9879 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9880 else
9881 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9882 fi
9883 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9884 hardcode_libdir_separator=:
9885 hardcode_direct=yes
9886
9887 # hardcode_minus_L: Not really in the search PATH,
9888 # but as the default location of the library.
9889 hardcode_minus_L=yes
9890 export_dynamic_flag_spec='$wl-E'
9891 ;;
9892
9893 hpux10*)
9894 if test yes,no = "$GCC,$with_gnu_ld"; then
9895 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9896 else
9897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9898 fi
9899 if test no = "$with_gnu_ld"; then
9900 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9901 hardcode_libdir_separator=:
9902 hardcode_direct=yes
9903 hardcode_direct_absolute=yes
9904 export_dynamic_flag_spec='$wl-E'
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9908 fi
9909 ;;
9910
9911 hpux11*)
9912 if test yes,no = "$GCC,$with_gnu_ld"; then
9913 case $host_cpu in
9914 hppa*64*)
9915 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9916 ;;
9917 ia64*)
9918 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9919 ;;
9920 *)
9921 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922 ;;
9923 esac
9924 else
9925 case $host_cpu in
9926 hppa*64*)
9927 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9928 ;;
9929 ia64*)
9930 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931 ;;
9932 *)
9933
9934 # Older versions of the 11.00 compiler do not understand -b yet
9935 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9937 $as_echo_n "checking if $CC understands -b... " >&6; }
9938 if ${lt_cv_prog_compiler__b+:} false; then :
9939 $as_echo_n "(cached) " >&6
9940 else
9941 lt_cv_prog_compiler__b=no
9942 save_LDFLAGS=$LDFLAGS
9943 LDFLAGS="$LDFLAGS -b"
9944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9946 # The linker can only warn and ignore the option if not recognized
9947 # So say no if there are warnings
9948 if test -s conftest.err; then
9949 # Append any errors to the config.log.
9950 cat conftest.err 1>&5
9951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953 if diff conftest.exp conftest.er2 >/dev/null; then
9954 lt_cv_prog_compiler__b=yes
9955 fi
9956 else
9957 lt_cv_prog_compiler__b=yes
9958 fi
9959 fi
9960 $RM -r conftest*
9961 LDFLAGS=$save_LDFLAGS
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9965 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9966
9967 if test yes = "$lt_cv_prog_compiler__b"; then
9968 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9969 else
9970 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9971 fi
9972
9973 ;;
9974 esac
9975 fi
9976 if test no = "$with_gnu_ld"; then
9977 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9978 hardcode_libdir_separator=:
9979
9980 case $host_cpu in
9981 hppa*64*|ia64*)
9982 hardcode_direct=no
9983 hardcode_shlibpath_var=no
9984 ;;
9985 *)
9986 hardcode_direct=yes
9987 hardcode_direct_absolute=yes
9988 export_dynamic_flag_spec='$wl-E'
9989
9990 # hardcode_minus_L: Not really in the search PATH,
9991 # but as the default location of the library.
9992 hardcode_minus_L=yes
9993 ;;
9994 esac
9995 fi
9996 ;;
9997
9998 irix5* | irix6* | nonstopux*)
9999 if test yes = "$GCC"; then
10000 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'
10001 # Try to use the -exported_symbol ld option, if it does not
10002 # work, assume that -exports_file does not work either and
10003 # implicitly export all symbols.
10004 # This should be the same for all languages, so no per-tag cache variable.
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10006 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10007 if ${lt_cv_irix_exported_symbol+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 save_LDFLAGS=$LDFLAGS
10011 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 int foo (void) { return 0; }
10015 _ACEOF
10016 if ac_fn_c_try_link "$LINENO"; then :
10017 lt_cv_irix_exported_symbol=yes
10018 else
10019 lt_cv_irix_exported_symbol=no
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LDFLAGS=$save_LDFLAGS
10024 fi
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10026 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10027 if test yes = "$lt_cv_irix_exported_symbol"; then
10028 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'
10029 fi
10030 link_all_deplibs=no
10031 else
10032 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'
10033 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'
10034 fi
10035 archive_cmds_need_lc='no'
10036 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10037 hardcode_libdir_separator=:
10038 inherit_rpath=yes
10039 link_all_deplibs=yes
10040 ;;
10041
10042 linux*)
10043 case $cc_basename in
10044 tcc*)
10045 # Fabrice Bellard et al's Tiny C Compiler
10046 ld_shlibs=yes
10047 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10048 ;;
10049 esac
10050 ;;
10051
10052 netbsd* | netbsdelf*-gnu)
10053 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10055 else
10056 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10057 fi
10058 hardcode_libdir_flag_spec='-R$libdir'
10059 hardcode_direct=yes
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 newsos6)
10064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_direct=yes
10066 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10067 hardcode_libdir_separator=:
10068 hardcode_shlibpath_var=no
10069 ;;
10070
10071 *nto* | *qnx*)
10072 ;;
10073
10074 openbsd* | bitrig*)
10075 if test -f /usr/libexec/ld.so; then
10076 hardcode_direct=yes
10077 hardcode_shlibpath_var=no
10078 hardcode_direct_absolute=yes
10079 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10082 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10083 export_dynamic_flag_spec='$wl-E'
10084 else
10085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10086 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10087 fi
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092
10093 os2*)
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_minus_L=yes
10096 allow_undefined_flag=unsupported
10097 shrext_cmds=.dll
10098 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10099 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10100 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10101 $ECHO EXPORTS >> $output_objdir/$libname.def~
10102 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10104 emximp -o $lib $output_objdir/$libname.def'
10105 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10106 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10107 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10108 $ECHO EXPORTS >> $output_objdir/$libname.def~
10109 prefix_cmds="$SED"~
10110 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10111 prefix_cmds="$prefix_cmds -e 1d";
10112 fi~
10113 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10114 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10115 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10116 emximp -o $lib $output_objdir/$libname.def'
10117 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10118 enable_shared_with_static_runtimes=yes
10119 ;;
10120
10121 osf3*)
10122 if test yes = "$GCC"; then
10123 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10124 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'
10125 else
10126 allow_undefined_flag=' -expect_unresolved \*'
10127 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'
10128 fi
10129 archive_cmds_need_lc='no'
10130 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10131 hardcode_libdir_separator=:
10132 ;;
10133
10134 osf4* | osf5*) # as osf3* with the addition of -msym flag
10135 if test yes = "$GCC"; then
10136 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10137 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'
10138 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10139 else
10140 allow_undefined_flag=' -expect_unresolved \*'
10141 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'
10142 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~
10143 $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'
10144
10145 # Both c and cxx compiler support -rpath directly
10146 hardcode_libdir_flag_spec='-rpath $libdir'
10147 fi
10148 archive_cmds_need_lc='no'
10149 hardcode_libdir_separator=:
10150 ;;
10151
10152 solaris*)
10153 no_undefined_flag=' -z defs'
10154 if test yes = "$GCC"; then
10155 wlarc='$wl'
10156 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10158 $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'
10159 else
10160 case `$CC -V 2>&1` in
10161 *"Compilers 5.0"*)
10162 wlarc=''
10163 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10165 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10166 ;;
10167 *)
10168 wlarc='$wl'
10169 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10171 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10172 ;;
10173 esac
10174 fi
10175 hardcode_libdir_flag_spec='-R$libdir'
10176 hardcode_shlibpath_var=no
10177 case $host_os in
10178 solaris2.[0-5] | solaris2.[0-5].*) ;;
10179 *)
10180 # The compiler driver will combine and reorder linker options,
10181 # but understands '-z linker_flag'. GCC discards it without '$wl',
10182 # but is careful enough not to reorder.
10183 # Supported since Solaris 2.6 (maybe 2.5.1?)
10184 if test yes = "$GCC"; then
10185 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10186 else
10187 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10188 fi
10189 ;;
10190 esac
10191 link_all_deplibs=yes
10192 ;;
10193
10194 sunos4*)
10195 if test sequent = "$host_vendor"; then
10196 # Use $CC to link under sequent, because it throws in some extra .o
10197 # files that make .init and .fini sections work.
10198 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10199 else
10200 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10201 fi
10202 hardcode_libdir_flag_spec='-L$libdir'
10203 hardcode_direct=yes
10204 hardcode_minus_L=yes
10205 hardcode_shlibpath_var=no
10206 ;;
10207
10208 sysv4)
10209 case $host_vendor in
10210 sni)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_direct=yes # is this really true???
10213 ;;
10214 siemens)
10215 ## LD is ld it makes a PLAMLIB
10216 ## CC just makes a GrossModule.
10217 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10218 reload_cmds='$CC -r -o $output$reload_objs'
10219 hardcode_direct=no
10220 ;;
10221 motorola)
10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10224 ;;
10225 esac
10226 runpath_var='LD_RUN_PATH'
10227 hardcode_shlibpath_var=no
10228 ;;
10229
10230 sysv4.3*)
10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_shlibpath_var=no
10233 export_dynamic_flag_spec='-Bexport'
10234 ;;
10235
10236 sysv4*MP*)
10237 if test -d /usr/nec; then
10238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239 hardcode_shlibpath_var=no
10240 runpath_var=LD_RUN_PATH
10241 hardcode_runpath_var=yes
10242 ld_shlibs=yes
10243 fi
10244 ;;
10245
10246 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10247 no_undefined_flag='$wl-z,text'
10248 archive_cmds_need_lc=no
10249 hardcode_shlibpath_var=no
10250 runpath_var='LD_RUN_PATH'
10251
10252 if test yes = "$GCC"; then
10253 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 else
10256 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 fi
10259 ;;
10260
10261 sysv5* | sco3.2v5* | sco5v6*)
10262 # Note: We CANNOT use -z defs as we might desire, because we do not
10263 # link with -lc, and that would cause any symbols used from libc to
10264 # always be unresolved, which means just about no library would
10265 # ever link correctly. If we're not using GNU ld we use -z text
10266 # though, which does catch some bad symbols but isn't as heavy-handed
10267 # as -z defs.
10268 no_undefined_flag='$wl-z,text'
10269 allow_undefined_flag='$wl-z,nodefs'
10270 archive_cmds_need_lc=no
10271 hardcode_shlibpath_var=no
10272 hardcode_libdir_flag_spec='$wl-R,$libdir'
10273 hardcode_libdir_separator=':'
10274 link_all_deplibs=yes
10275 export_dynamic_flag_spec='$wl-Bexport'
10276 runpath_var='LD_RUN_PATH'
10277
10278 if test yes = "$GCC"; then
10279 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 else
10282 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10283 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 fi
10285 ;;
10286
10287 uts4*)
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_libdir_flag_spec='-L$libdir'
10290 hardcode_shlibpath_var=no
10291 ;;
10292
10293 *)
10294 ld_shlibs=no
10295 ;;
10296 esac
10297
10298 if test sni = "$host_vendor"; then
10299 case $host in
10300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10301 export_dynamic_flag_spec='$wl-Blargedynsym'
10302 ;;
10303 esac
10304 fi
10305 fi
10306
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10308 $as_echo "$ld_shlibs" >&6; }
10309 test no = "$ld_shlibs" && can_build_shared=no
10310
10311 with_gnu_ld=$with_gnu_ld
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327 #
10328 # Do we need to explicitly link libc?
10329 #
10330 case "x$archive_cmds_need_lc" in
10331 x|xyes)
10332 # Assume -lc should be added
10333 archive_cmds_need_lc=yes
10334
10335 if test yes,yes = "$GCC,$enable_shared"; then
10336 case $archive_cmds in
10337 *'~'*)
10338 # FIXME: we may have to deal with multi-command sequences.
10339 ;;
10340 '$CC '*)
10341 # Test whether the compiler implicitly links with -lc since on some
10342 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10343 # to ld, don't add -lc before -lgcc.
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10345 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10346 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 $RM conftest*
10350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10351
10352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10353 (eval $ac_compile) 2>&5
10354 ac_status=$?
10355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10356 test $ac_status = 0; } 2>conftest.err; then
10357 soname=conftest
10358 lib=conftest
10359 libobjs=conftest.$ac_objext
10360 deplibs=
10361 wl=$lt_prog_compiler_wl
10362 pic_flag=$lt_prog_compiler_pic
10363 compiler_flags=-v
10364 linker_flags=-v
10365 verstring=
10366 output_objdir=.
10367 libname=conftest
10368 lt_save_allow_undefined_flag=$allow_undefined_flag
10369 allow_undefined_flag=
10370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10371 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10372 ac_status=$?
10373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10374 test $ac_status = 0; }
10375 then
10376 lt_cv_archive_cmds_need_lc=no
10377 else
10378 lt_cv_archive_cmds_need_lc=yes
10379 fi
10380 allow_undefined_flag=$lt_save_allow_undefined_flag
10381 else
10382 cat conftest.err 1>&5
10383 fi
10384 $RM conftest*
10385
10386 fi
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10388 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10389 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10390 ;;
10391 esac
10392 fi
10393 ;;
10394 esac
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10548 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10549
10550 if test yes = "$GCC"; then
10551 case $host_os in
10552 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10553 *) lt_awk_arg='/^libraries:/' ;;
10554 esac
10555 case $host_os in
10556 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10557 *) lt_sed_strip_eq='s|=/|/|g' ;;
10558 esac
10559 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10560 case $lt_search_path_spec in
10561 *\;*)
10562 # if the path contains ";" then we assume it to be the separator
10563 # otherwise default to the standard path separator (i.e. ":") - it is
10564 # assumed that no part of a normal pathname contains ";" but that should
10565 # okay in the real world where ";" in dirpaths is itself problematic.
10566 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10567 ;;
10568 *)
10569 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10570 ;;
10571 esac
10572 # Ok, now we have the path, separated by spaces, we can step through it
10573 # and add multilib dir if necessary...
10574 lt_tmp_lt_search_path_spec=
10575 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10576 # ...but if some path component already ends with the multilib dir we assume
10577 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10578 case "$lt_multi_os_dir; $lt_search_path_spec " in
10579 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10580 lt_multi_os_dir=
10581 ;;
10582 esac
10583 for lt_sys_path in $lt_search_path_spec; do
10584 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10585 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10586 elif test -n "$lt_multi_os_dir"; then
10587 test -d "$lt_sys_path" && \
10588 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10589 fi
10590 done
10591 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10592 BEGIN {RS = " "; FS = "/|\n";} {
10593 lt_foo = "";
10594 lt_count = 0;
10595 for (lt_i = NF; lt_i > 0; lt_i--) {
10596 if ($lt_i != "" && $lt_i != ".") {
10597 if ($lt_i == "..") {
10598 lt_count++;
10599 } else {
10600 if (lt_count == 0) {
10601 lt_foo = "/" $lt_i lt_foo;
10602 } else {
10603 lt_count--;
10604 }
10605 }
10606 }
10607 }
10608 if (lt_foo != "") { lt_freq[lt_foo]++; }
10609 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10610 }'`
10611 # AWK program above erroneously prepends '/' to C:/dos/paths
10612 # for these hosts.
10613 case $host_os in
10614 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10615 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10616 esac
10617 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10618 else
10619 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10620 fi
10621 library_names_spec=
10622 libname_spec='lib$name'
10623 soname_spec=
10624 shrext_cmds=.so
10625 postinstall_cmds=
10626 postuninstall_cmds=
10627 finish_cmds=
10628 finish_eval=
10629 shlibpath_var=
10630 shlibpath_overrides_runpath=unknown
10631 version_type=none
10632 dynamic_linker="$host_os ld.so"
10633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10634 need_lib_prefix=unknown
10635 hardcode_into_libs=no
10636
10637 # when you set need_version to no, make sure it does not cause -set_version
10638 # flags to be left without arguments
10639 need_version=unknown
10640
10641
10642
10643 case $host_os in
10644 aix3*)
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10647 shlibpath_var=LIBPATH
10648
10649 # AIX 3 has no versioning support, so we append a major version to the name.
10650 soname_spec='$libname$release$shared_ext$major'
10651 ;;
10652
10653 aix[4-9]*)
10654 version_type=linux # correct to gnu/linux during the next big refactor
10655 need_lib_prefix=no
10656 need_version=no
10657 hardcode_into_libs=yes
10658 if test ia64 = "$host_cpu"; then
10659 # AIX 5 supports IA64
10660 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 else
10663 # With GCC up to 2.95.x, collect2 would create an import file
10664 # for dependence libraries. The import file would start with
10665 # the line '#! .'. This would cause the generated library to
10666 # depend on '.', always an invalid library. This was fixed in
10667 # development snapshots of GCC prior to 3.0.
10668 case $host_os in
10669 aix4 | aix4.[01] | aix4.[01].*)
10670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10671 echo ' yes '
10672 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10673 :
10674 else
10675 can_build_shared=no
10676 fi
10677 ;;
10678 esac
10679 # Using Import Files as archive members, it is possible to support
10680 # filename-based versioning of shared library archives on AIX. While
10681 # this would work for both with and without runtime linking, it will
10682 # prevent static linking of such archives. So we do filename-based
10683 # shared library versioning with .so extension only, which is used
10684 # when both runtime linking and shared linking is enabled.
10685 # Unfortunately, runtime linking may impact performance, so we do
10686 # not want this to be the default eventually. Also, we use the
10687 # versioned .so libs for executables only if there is the -brtl
10688 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10689 # To allow for filename-based versioning support, we need to create
10690 # libNAME.so.V as an archive file, containing:
10691 # *) an Import File, referring to the versioned filename of the
10692 # archive as well as the shared archive member, telling the
10693 # bitwidth (32 or 64) of that shared object, and providing the
10694 # list of exported symbols of that shared object, eventually
10695 # decorated with the 'weak' keyword
10696 # *) the shared object with the F_LOADONLY flag set, to really avoid
10697 # it being seen by the linker.
10698 # At run time we better use the real file rather than another symlink,
10699 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10700
10701 case $with_aix_soname,$aix_use_runtimelinking in
10702 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10703 # soname into executable. Probably we can add versioning support to
10704 # collect2, so additional links can be useful in future.
10705 aix,yes) # traditional libtool
10706 dynamic_linker='AIX unversionable lib.so'
10707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10708 # instead of lib<name>.a to let people know that these are not
10709 # typical AIX shared libraries.
10710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10711 ;;
10712 aix,no) # traditional AIX only
10713 dynamic_linker='AIX lib.a(lib.so.V)'
10714 # We preserve .a as extension for shared libraries through AIX4.2
10715 # and later when we are not doing run time linking.
10716 library_names_spec='$libname$release.a $libname.a'
10717 soname_spec='$libname$release$shared_ext$major'
10718 ;;
10719 svr4,*) # full svr4 only
10720 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10721 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10722 # We do not specify a path in Import Files, so LIBPATH fires.
10723 shlibpath_overrides_runpath=yes
10724 ;;
10725 *,yes) # both, prefer svr4
10726 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10727 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10728 # unpreferred sharedlib libNAME.a needs extra handling
10729 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10730 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10731 # We do not specify a path in Import Files, so LIBPATH fires.
10732 shlibpath_overrides_runpath=yes
10733 ;;
10734 *,no) # both, prefer aix
10735 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10736 library_names_spec='$libname$release.a $libname.a'
10737 soname_spec='$libname$release$shared_ext$major'
10738 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10739 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10740 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10741 ;;
10742 esac
10743 shlibpath_var=LIBPATH
10744 fi
10745 ;;
10746
10747 amigaos*)
10748 case $host_cpu in
10749 powerpc)
10750 # Since July 2007 AmigaOS4 officially supports .so libraries.
10751 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10753 ;;
10754 m68k)
10755 library_names_spec='$libname.ixlibrary $libname.a'
10756 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10758 ;;
10759 esac
10760 ;;
10761
10762 beos*)
10763 library_names_spec='$libname$shared_ext'
10764 dynamic_linker="$host_os ld.so"
10765 shlibpath_var=LIBRARY_PATH
10766 ;;
10767
10768 bsdi[45]*)
10769 version_type=linux # correct to gnu/linux during the next big refactor
10770 need_version=no
10771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10772 soname_spec='$libname$release$shared_ext$major'
10773 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10774 shlibpath_var=LD_LIBRARY_PATH
10775 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10776 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10777 # the default ld.so.conf also contains /usr/contrib/lib and
10778 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10779 # libtool to hard-code these into programs
10780 ;;
10781
10782 cygwin* | mingw* | pw32* | cegcc*)
10783 version_type=windows
10784 shrext_cmds=.dll
10785 need_version=no
10786 need_lib_prefix=no
10787
10788 case $GCC,$cc_basename in
10789 yes,*)
10790 # gcc
10791 library_names_spec='$libname.dll.a'
10792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10793 postinstall_cmds='base_file=`basename \$file`~
10794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10795 dldir=$destdir/`dirname \$dlpath`~
10796 test -d \$dldir || mkdir -p \$dldir~
10797 $install_prog $dir/$dlname \$dldir/$dlname~
10798 chmod a+x \$dldir/$dlname~
10799 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10800 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10801 fi'
10802 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10803 dlpath=$dir/\$dldll~
10804 $RM \$dlpath'
10805 shlibpath_overrides_runpath=yes
10806
10807 case $host_os in
10808 cygwin*)
10809 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10810 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10811
10812 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10813 ;;
10814 mingw* | cegcc*)
10815 # MinGW DLLs use traditional 'lib' prefix
10816 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10817 ;;
10818 pw32*)
10819 # pw32 DLLs use 'pw' prefix rather than 'lib'
10820 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10821 ;;
10822 esac
10823 dynamic_linker='Win32 ld.exe'
10824 ;;
10825
10826 *,cl*)
10827 # Native MSVC
10828 libname_spec='$name'
10829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10830 library_names_spec='$libname.dll.lib'
10831
10832 case $build_os in
10833 mingw*)
10834 sys_lib_search_path_spec=
10835 lt_save_ifs=$IFS
10836 IFS=';'
10837 for lt_path in $LIB
10838 do
10839 IFS=$lt_save_ifs
10840 # Let DOS variable expansion print the short 8.3 style file name.
10841 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10842 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10843 done
10844 IFS=$lt_save_ifs
10845 # Convert to MSYS style.
10846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10847 ;;
10848 cygwin*)
10849 # Convert to unix form, then to dos form, then back to unix form
10850 # but this time dos style (no spaces!) so that the unix form looks
10851 # like /cygdrive/c/PROGRA~1:/cygdr...
10852 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10853 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10854 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10855 ;;
10856 *)
10857 sys_lib_search_path_spec=$LIB
10858 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10859 # It is most probably a Windows format PATH.
10860 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10861 else
10862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10863 fi
10864 # FIXME: find the short name or the path components, as spaces are
10865 # common. (e.g. "Program Files" -> "PROGRA~1")
10866 ;;
10867 esac
10868
10869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10870 postinstall_cmds='base_file=`basename \$file`~
10871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10872 dldir=$destdir/`dirname \$dlpath`~
10873 test -d \$dldir || mkdir -p \$dldir~
10874 $install_prog $dir/$dlname \$dldir/$dlname'
10875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10876 dlpath=$dir/\$dldll~
10877 $RM \$dlpath'
10878 shlibpath_overrides_runpath=yes
10879 dynamic_linker='Win32 link.exe'
10880 ;;
10881
10882 *)
10883 # Assume MSVC wrapper
10884 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10885 dynamic_linker='Win32 ld.exe'
10886 ;;
10887 esac
10888 # FIXME: first we should search . and the directory the executable is in
10889 shlibpath_var=PATH
10890 ;;
10891
10892 darwin* | rhapsody*)
10893 dynamic_linker="$host_os dyld"
10894 version_type=darwin
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10898 soname_spec='$libname$release$major$shared_ext'
10899 shlibpath_overrides_runpath=yes
10900 shlibpath_var=DYLD_LIBRARY_PATH
10901 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10902
10903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10904 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10905 ;;
10906
10907 dgux*)
10908 version_type=linux # correct to gnu/linux during the next big refactor
10909 need_lib_prefix=no
10910 need_version=no
10911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10912 soname_spec='$libname$release$shared_ext$major'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 ;;
10915
10916 freebsd* | dragonfly*)
10917 # DragonFly does not have aout. When/if they implement a new
10918 # versioning mechanism, adjust this.
10919 if test -x /usr/bin/objformat; then
10920 objformat=`/usr/bin/objformat`
10921 else
10922 case $host_os in
10923 freebsd[23].*) objformat=aout ;;
10924 *) objformat=elf ;;
10925 esac
10926 fi
10927 version_type=freebsd-$objformat
10928 case $version_type in
10929 freebsd-elf*)
10930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10931 soname_spec='$libname$release$shared_ext$major'
10932 need_version=no
10933 need_lib_prefix=no
10934 ;;
10935 freebsd-*)
10936 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10937 need_version=yes
10938 ;;
10939 esac
10940 shlibpath_var=LD_LIBRARY_PATH
10941 case $host_os in
10942 freebsd2.*)
10943 shlibpath_overrides_runpath=yes
10944 ;;
10945 freebsd3.[01]* | freebsdelf3.[01]*)
10946 shlibpath_overrides_runpath=yes
10947 hardcode_into_libs=yes
10948 ;;
10949 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10950 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10951 shlibpath_overrides_runpath=no
10952 hardcode_into_libs=yes
10953 ;;
10954 *) # from 4.6 on, and DragonFly
10955 shlibpath_overrides_runpath=yes
10956 hardcode_into_libs=yes
10957 ;;
10958 esac
10959 ;;
10960
10961 haiku*)
10962 version_type=linux # correct to gnu/linux during the next big refactor
10963 need_lib_prefix=no
10964 need_version=no
10965 dynamic_linker="$host_os runtime_loader"
10966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10967 soname_spec='$libname$release$shared_ext$major'
10968 shlibpath_var=LIBRARY_PATH
10969 shlibpath_overrides_runpath=no
10970 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10971 hardcode_into_libs=yes
10972 ;;
10973
10974 hpux9* | hpux10* | hpux11*)
10975 # Give a soname corresponding to the major version so that dld.sl refuses to
10976 # link against other versions.
10977 version_type=sunos
10978 need_lib_prefix=no
10979 need_version=no
10980 case $host_cpu in
10981 ia64*)
10982 shrext_cmds='.so'
10983 hardcode_into_libs=yes
10984 dynamic_linker="$host_os dld.so"
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10988 soname_spec='$libname$release$shared_ext$major'
10989 if test 32 = "$HPUX_IA64_MODE"; then
10990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10991 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10992 else
10993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10994 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10995 fi
10996 ;;
10997 hppa*64*)
10998 shrext_cmds='.sl'
10999 hardcode_into_libs=yes
11000 dynamic_linker="$host_os dld.sl"
11001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11004 soname_spec='$libname$release$shared_ext$major'
11005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11007 ;;
11008 *)
11009 shrext_cmds='.sl'
11010 dynamic_linker="$host_os dld.sl"
11011 shlibpath_var=SHLIB_PATH
11012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11014 soname_spec='$libname$release$shared_ext$major'
11015 ;;
11016 esac
11017 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11018 postinstall_cmds='chmod 555 $lib'
11019 # or fails outright, so override atomically:
11020 install_override_mode=555
11021 ;;
11022
11023 interix[3-9]*)
11024 version_type=linux # correct to gnu/linux during the next big refactor
11025 need_lib_prefix=no
11026 need_version=no
11027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11028 soname_spec='$libname$release$shared_ext$major'
11029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11033 ;;
11034
11035 irix5* | irix6* | nonstopux*)
11036 case $host_os in
11037 nonstopux*) version_type=nonstopux ;;
11038 *)
11039 if test yes = "$lt_cv_prog_gnu_ld"; then
11040 version_type=linux # correct to gnu/linux during the next big refactor
11041 else
11042 version_type=irix
11043 fi ;;
11044 esac
11045 need_lib_prefix=no
11046 need_version=no
11047 soname_spec='$libname$release$shared_ext$major'
11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11049 case $host_os in
11050 irix5* | nonstopux*)
11051 libsuff= shlibsuff=
11052 ;;
11053 *)
11054 case $LD in # libtool.m4 will add one of these switches to LD
11055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11056 libsuff= shlibsuff= libmagic=32-bit;;
11057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11058 libsuff=32 shlibsuff=N32 libmagic=N32;;
11059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11061 *) libsuff= shlibsuff= libmagic=never-match;;
11062 esac
11063 ;;
11064 esac
11065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11066 shlibpath_overrides_runpath=no
11067 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11068 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11069 hardcode_into_libs=yes
11070 ;;
11071
11072 # No shared lib support for Linux oldld, aout, or coff.
11073 linux*oldld* | linux*aout* | linux*coff*)
11074 dynamic_linker=no
11075 ;;
11076
11077 linux*android*)
11078 version_type=none # Android doesn't support versioned libraries.
11079 need_lib_prefix=no
11080 need_version=no
11081 library_names_spec='$libname$release$shared_ext'
11082 soname_spec='$libname$release$shared_ext'
11083 finish_cmds=
11084 shlibpath_var=LD_LIBRARY_PATH
11085 shlibpath_overrides_runpath=yes
11086
11087 # This implies no fast_install, which is unacceptable.
11088 # Some rework will be needed to allow for fast_install
11089 # before this can be enabled.
11090 hardcode_into_libs=yes
11091
11092 dynamic_linker='Android linker'
11093 # Don't embed -rpath directories since the linker doesn't support them.
11094 hardcode_libdir_flag_spec='-L$libdir'
11095 ;;
11096
11097 # This must be glibc/ELF.
11098 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11099 version_type=linux # correct to gnu/linux during the next big refactor
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec='$libname$release$shared_ext$major'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11105 shlibpath_var=LD_LIBRARY_PATH
11106 shlibpath_overrides_runpath=no
11107
11108 # Some binutils ld are patched to set DT_RUNPATH
11109 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11110 $as_echo_n "(cached) " >&6
11111 else
11112 lt_cv_shlibpath_overrides_runpath=no
11113 save_LDFLAGS=$LDFLAGS
11114 save_libdir=$libdir
11115 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11116 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119
11120 int
11121 main ()
11122 {
11123
11124 ;
11125 return 0;
11126 }
11127 _ACEOF
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11130 lt_cv_shlibpath_overrides_runpath=yes
11131 fi
11132 fi
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LDFLAGS=$save_LDFLAGS
11136 libdir=$save_libdir
11137
11138 fi
11139
11140 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11141
11142 # This implies no fast_install, which is unacceptable.
11143 # Some rework will be needed to allow for fast_install
11144 # before this can be enabled.
11145 hardcode_into_libs=yes
11146
11147 # Ideally, we could use ldconfig to report *all* directores which are
11148 # searched for libraries, however this is still not possible. Aside from not
11149 # being certain /sbin/ldconfig is available, command
11150 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11151 # even though it is searched at run-time. Try to do the best guess by
11152 # appending ld.so.conf contents (and includes) to the search path.
11153 if test -f /etc/ld.so.conf; then
11154 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' ' '`
11155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11156 fi
11157
11158 # We used to test for /lib/ld.so.1 and disable shared libraries on
11159 # powerpc, because MkLinux only supported shared libraries with the
11160 # GNU dynamic linker. Since this was broken with cross compilers,
11161 # most powerpc-linux boxes support dynamic linking these days and
11162 # people can always --disable-shared, the test was removed, and we
11163 # assume the GNU/Linux dynamic linker is in use.
11164 dynamic_linker='GNU/Linux ld.so'
11165 ;;
11166
11167 netbsdelf*-gnu)
11168 version_type=linux
11169 need_lib_prefix=no
11170 need_version=no
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11175 hardcode_into_libs=yes
11176 dynamic_linker='NetBSD ld.elf_so'
11177 ;;
11178
11179 netbsd*)
11180 version_type=sunos
11181 need_lib_prefix=no
11182 need_version=no
11183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11186 dynamic_linker='NetBSD (a.out) ld.so'
11187 else
11188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189 soname_spec='$libname$release$shared_ext$major'
11190 dynamic_linker='NetBSD ld.elf_so'
11191 fi
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=yes
11194 hardcode_into_libs=yes
11195 ;;
11196
11197 newsos6)
11198 version_type=linux # correct to gnu/linux during the next big refactor
11199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 ;;
11203
11204 *nto* | *qnx*)
11205 version_type=qnx
11206 need_lib_prefix=no
11207 need_version=no
11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209 soname_spec='$libname$release$shared_ext$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=no
11212 hardcode_into_libs=yes
11213 dynamic_linker='ldqnx.so'
11214 ;;
11215
11216 openbsd* | bitrig*)
11217 version_type=sunos
11218 sys_lib_dlsearch_path_spec=/usr/lib
11219 need_lib_prefix=no
11220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11221 need_version=no
11222 else
11223 need_version=yes
11224 fi
11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 ;;
11230
11231 os2*)
11232 libname_spec='$name'
11233 version_type=windows
11234 shrext_cmds=.dll
11235 need_version=no
11236 need_lib_prefix=no
11237 # OS/2 can only load a DLL with a base name of 8 characters or less.
11238 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11239 v=$($ECHO $release$versuffix | tr -d .-);
11240 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11241 $ECHO $n$v`$shared_ext'
11242 library_names_spec='${libname}_dll.$libext'
11243 dynamic_linker='OS/2 ld.exe'
11244 shlibpath_var=BEGINLIBPATH
11245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11247 postinstall_cmds='base_file=`basename \$file`~
11248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11249 dldir=$destdir/`dirname \$dlpath`~
11250 test -d \$dldir || mkdir -p \$dldir~
11251 $install_prog $dir/$dlname \$dldir/$dlname~
11252 chmod a+x \$dldir/$dlname~
11253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11255 fi'
11256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11257 dlpath=$dir/\$dldll~
11258 $RM \$dlpath'
11259 ;;
11260
11261 osf3* | osf4* | osf5*)
11262 version_type=osf
11263 need_lib_prefix=no
11264 need_version=no
11265 soname_spec='$libname$release$shared_ext$major'
11266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11270 ;;
11271
11272 rdos*)
11273 dynamic_linker=no
11274 ;;
11275
11276 solaris*)
11277 version_type=linux # correct to gnu/linux during the next big refactor
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11281 soname_spec='$libname$release$shared_ext$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11284 hardcode_into_libs=yes
11285 # ldd complains unless libraries are executable
11286 postinstall_cmds='chmod +x $lib'
11287 ;;
11288
11289 sunos4*)
11290 version_type=sunos
11291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes
11295 if test yes = "$with_gnu_ld"; then
11296 need_lib_prefix=no
11297 fi
11298 need_version=yes
11299 ;;
11300
11301 sysv4 | sysv4.3*)
11302 version_type=linux # correct to gnu/linux during the next big refactor
11303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 soname_spec='$libname$release$shared_ext$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 case $host_vendor in
11307 sni)
11308 shlibpath_overrides_runpath=no
11309 need_lib_prefix=no
11310 runpath_var=LD_RUN_PATH
11311 ;;
11312 siemens)
11313 need_lib_prefix=no
11314 ;;
11315 motorola)
11316 need_lib_prefix=no
11317 need_version=no
11318 shlibpath_overrides_runpath=no
11319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11320 ;;
11321 esac
11322 ;;
11323
11324 sysv4*MP*)
11325 if test -d /usr/nec; then
11326 version_type=linux # correct to gnu/linux during the next big refactor
11327 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11328 soname_spec='$libname$shared_ext.$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 fi
11331 ;;
11332
11333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11334 version_type=sco
11335 need_lib_prefix=no
11336 need_version=no
11337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11338 soname_spec='$libname$release$shared_ext$major'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11342 if test yes = "$with_gnu_ld"; then
11343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11344 else
11345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11346 case $host_os in
11347 sco3.2v5*)
11348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11349 ;;
11350 esac
11351 fi
11352 sys_lib_dlsearch_path_spec='/usr/lib'
11353 ;;
11354
11355 tpf*)
11356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11357 version_type=linux # correct to gnu/linux during the next big refactor
11358 need_lib_prefix=no
11359 need_version=no
11360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=no
11363 hardcode_into_libs=yes
11364 ;;
11365
11366 uts4*)
11367 version_type=linux # correct to gnu/linux during the next big refactor
11368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11369 soname_spec='$libname$release$shared_ext$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11371 ;;
11372
11373 *)
11374 dynamic_linker=no
11375 ;;
11376 esac
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11378 $as_echo "$dynamic_linker" >&6; }
11379 test no = "$dynamic_linker" && can_build_shared=no
11380
11381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11382 if test yes = "$GCC"; then
11383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11384 fi
11385
11386 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11387 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11388 fi
11389
11390 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11391 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11392 fi
11393
11394 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11395 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11396
11397 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11398 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11399
11400 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11401 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11500 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11501 hardcode_action=
11502 if test -n "$hardcode_libdir_flag_spec" ||
11503 test -n "$runpath_var" ||
11504 test yes = "$hardcode_automatic"; then
11505
11506 # We can hardcode non-existent directories.
11507 if test no != "$hardcode_direct" &&
11508 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11509 # have to relink, otherwise we might link with an installed library
11510 # when we should be linking with a yet-to-be-installed one
11511 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11512 test no != "$hardcode_minus_L"; then
11513 # Linking always hardcodes the temporary library directory.
11514 hardcode_action=relink
11515 else
11516 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11517 hardcode_action=immediate
11518 fi
11519 else
11520 # We cannot hardcode anything, or else we can only hardcode existing
11521 # directories.
11522 hardcode_action=unsupported
11523 fi
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11525 $as_echo "$hardcode_action" >&6; }
11526
11527 if test relink = "$hardcode_action" ||
11528 test yes = "$inherit_rpath"; then
11529 # Fast installation is not supported
11530 enable_fast_install=no
11531 elif test yes = "$shlibpath_overrides_runpath" ||
11532 test no = "$enable_shared"; then
11533 # Fast installation is not necessary
11534 enable_fast_install=needless
11535 fi
11536
11537
11538
11539
11540
11541
11542 if test yes != "$enable_dlopen"; then
11543 enable_dlopen=unknown
11544 enable_dlopen_self=unknown
11545 enable_dlopen_self_static=unknown
11546 else
11547 lt_cv_dlopen=no
11548 lt_cv_dlopen_libs=
11549
11550 case $host_os in
11551 beos*)
11552 lt_cv_dlopen=load_add_on
11553 lt_cv_dlopen_libs=
11554 lt_cv_dlopen_self=yes
11555 ;;
11556
11557 mingw* | pw32* | cegcc*)
11558 lt_cv_dlopen=LoadLibrary
11559 lt_cv_dlopen_libs=
11560 ;;
11561
11562 cygwin*)
11563 lt_cv_dlopen=dlopen
11564 lt_cv_dlopen_libs=
11565 ;;
11566
11567 darwin*)
11568 # if libdl is installed we need to link against it
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11570 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11571 if ${ac_cv_lib_dl_dlopen+:} false; then :
11572 $as_echo_n "(cached) " >&6
11573 else
11574 ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-ldl $LIBS"
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578
11579 /* Override any GCC internal prototype to avoid an error.
11580 Use char because int might match the return type of a GCC
11581 builtin and then its argument prototype would still apply. */
11582 #ifdef __cplusplus
11583 extern "C"
11584 #endif
11585 char dlopen ();
11586 int
11587 main ()
11588 {
11589 return dlopen ();
11590 ;
11591 return 0;
11592 }
11593 _ACEOF
11594 if ac_fn_c_try_link "$LINENO"; then :
11595 ac_cv_lib_dl_dlopen=yes
11596 else
11597 ac_cv_lib_dl_dlopen=no
11598 fi
11599 rm -f core conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
11601 LIBS=$ac_check_lib_save_LIBS
11602 fi
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11604 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11605 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11606 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11607 else
11608
11609 lt_cv_dlopen=dyld
11610 lt_cv_dlopen_libs=
11611 lt_cv_dlopen_self=yes
11612
11613 fi
11614
11615 ;;
11616
11617 tpf*)
11618 # Don't try to run any link tests for TPF. We know it's impossible
11619 # because TPF is a cross-compiler, and we know how we open DSOs.
11620 lt_cv_dlopen=dlopen
11621 lt_cv_dlopen_libs=
11622 lt_cv_dlopen_self=no
11623 ;;
11624
11625 *)
11626 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11627 if test "x$ac_cv_func_shl_load" = xyes; then :
11628 lt_cv_dlopen=shl_load
11629 else
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11631 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11632 if ${ac_cv_lib_dld_shl_load+:} false; then :
11633 $as_echo_n "(cached) " >&6
11634 else
11635 ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-ldld $LIBS"
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638 /* end confdefs.h. */
11639
11640 /* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
11643 #ifdef __cplusplus
11644 extern "C"
11645 #endif
11646 char shl_load ();
11647 int
11648 main ()
11649 {
11650 return shl_load ();
11651 ;
11652 return 0;
11653 }
11654 _ACEOF
11655 if ac_fn_c_try_link "$LINENO"; then :
11656 ac_cv_lib_dld_shl_load=yes
11657 else
11658 ac_cv_lib_dld_shl_load=no
11659 fi
11660 rm -f core conftest.err conftest.$ac_objext \
11661 conftest$ac_exeext conftest.$ac_ext
11662 LIBS=$ac_check_lib_save_LIBS
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11665 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11666 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11667 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11668 else
11669 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11670 if test "x$ac_cv_func_dlopen" = xyes; then :
11671 lt_cv_dlopen=dlopen
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11675 if ${ac_cv_lib_dl_dlopen+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-ldl $LIBS"
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char dlopen ();
11690 int
11691 main ()
11692 {
11693 return dlopen ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_lib_dl_dlopen=yes
11700 else
11701 ac_cv_lib_dl_dlopen=no
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11710 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11713 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11714 if ${ac_cv_lib_svld_dlopen+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lsvld $LIBS"
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char dlopen ();
11729 int
11730 main ()
11731 {
11732 return dlopen ();
11733 ;
11734 return 0;
11735 }
11736 _ACEOF
11737 if ac_fn_c_try_link "$LINENO"; then :
11738 ac_cv_lib_svld_dlopen=yes
11739 else
11740 ac_cv_lib_svld_dlopen=no
11741 fi
11742 rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11748 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11749 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11750 else
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11753 if ${ac_cv_lib_dld_dld_link+:} false; then :
11754 $as_echo_n "(cached) " >&6
11755 else
11756 ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-ldld $LIBS"
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760
11761 /* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char dld_link ();
11768 int
11769 main ()
11770 {
11771 return dld_link ();
11772 ;
11773 return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_c_try_link "$LINENO"; then :
11777 ac_cv_lib_dld_dld_link=yes
11778 else
11779 ac_cv_lib_dld_dld_link=no
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
11783 LIBS=$ac_check_lib_save_LIBS
11784 fi
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11787 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11788 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11789 fi
11790
11791
11792 fi
11793
11794
11795 fi
11796
11797
11798 fi
11799
11800
11801 fi
11802
11803
11804 fi
11805
11806 ;;
11807 esac
11808
11809 if test no = "$lt_cv_dlopen"; then
11810 enable_dlopen=no
11811 else
11812 enable_dlopen=yes
11813 fi
11814
11815 case $lt_cv_dlopen in
11816 dlopen)
11817 save_CPPFLAGS=$CPPFLAGS
11818 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11819
11820 save_LDFLAGS=$LDFLAGS
11821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11822
11823 save_LIBS=$LIBS
11824 LIBS="$lt_cv_dlopen_libs $LIBS"
11825
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11828 if ${lt_cv_dlopen_self+:} false; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 if test yes = "$cross_compiling"; then :
11832 lt_cv_dlopen_self=cross
11833 else
11834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11835 lt_status=$lt_dlunknown
11836 cat > conftest.$ac_ext <<_LT_EOF
11837 #line $LINENO "configure"
11838 #include "confdefs.h"
11839
11840 #if HAVE_DLFCN_H
11841 #include <dlfcn.h>
11842 #endif
11843
11844 #include <stdio.h>
11845
11846 #ifdef RTLD_GLOBAL
11847 # define LT_DLGLOBAL RTLD_GLOBAL
11848 #else
11849 # ifdef DL_GLOBAL
11850 # define LT_DLGLOBAL DL_GLOBAL
11851 # else
11852 # define LT_DLGLOBAL 0
11853 # endif
11854 #endif
11855
11856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11857 find out it does not work in some platform. */
11858 #ifndef LT_DLLAZY_OR_NOW
11859 # ifdef RTLD_LAZY
11860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11861 # else
11862 # ifdef DL_LAZY
11863 # define LT_DLLAZY_OR_NOW DL_LAZY
11864 # else
11865 # ifdef RTLD_NOW
11866 # define LT_DLLAZY_OR_NOW RTLD_NOW
11867 # else
11868 # ifdef DL_NOW
11869 # define LT_DLLAZY_OR_NOW DL_NOW
11870 # else
11871 # define LT_DLLAZY_OR_NOW 0
11872 # endif
11873 # endif
11874 # endif
11875 # endif
11876 #endif
11877
11878 /* When -fvisibility=hidden is used, assume the code has been annotated
11879 correspondingly for the symbols needed. */
11880 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11881 int fnord () __attribute__((visibility("default")));
11882 #endif
11883
11884 int fnord () { return 42; }
11885 int main ()
11886 {
11887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11888 int status = $lt_dlunknown;
11889
11890 if (self)
11891 {
11892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11893 else
11894 {
11895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11896 else puts (dlerror ());
11897 }
11898 /* dlclose (self); */
11899 }
11900 else
11901 puts (dlerror ());
11902
11903 return status;
11904 }
11905 _LT_EOF
11906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11907 (eval $ac_link) 2>&5
11908 ac_status=$?
11909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11910 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11911 (./conftest; exit; ) >&5 2>/dev/null
11912 lt_status=$?
11913 case x$lt_status in
11914 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11915 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11916 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11917 esac
11918 else :
11919 # compilation failed
11920 lt_cv_dlopen_self=no
11921 fi
11922 fi
11923 rm -fr conftest*
11924
11925
11926 fi
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11928 $as_echo "$lt_cv_dlopen_self" >&6; }
11929
11930 if test yes = "$lt_cv_dlopen_self"; then
11931 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11933 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11934 if ${lt_cv_dlopen_self_static+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937 if test yes = "$cross_compiling"; then :
11938 lt_cv_dlopen_self_static=cross
11939 else
11940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11941 lt_status=$lt_dlunknown
11942 cat > conftest.$ac_ext <<_LT_EOF
11943 #line $LINENO "configure"
11944 #include "confdefs.h"
11945
11946 #if HAVE_DLFCN_H
11947 #include <dlfcn.h>
11948 #endif
11949
11950 #include <stdio.h>
11951
11952 #ifdef RTLD_GLOBAL
11953 # define LT_DLGLOBAL RTLD_GLOBAL
11954 #else
11955 # ifdef DL_GLOBAL
11956 # define LT_DLGLOBAL DL_GLOBAL
11957 # else
11958 # define LT_DLGLOBAL 0
11959 # endif
11960 #endif
11961
11962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11963 find out it does not work in some platform. */
11964 #ifndef LT_DLLAZY_OR_NOW
11965 # ifdef RTLD_LAZY
11966 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11967 # else
11968 # ifdef DL_LAZY
11969 # define LT_DLLAZY_OR_NOW DL_LAZY
11970 # else
11971 # ifdef RTLD_NOW
11972 # define LT_DLLAZY_OR_NOW RTLD_NOW
11973 # else
11974 # ifdef DL_NOW
11975 # define LT_DLLAZY_OR_NOW DL_NOW
11976 # else
11977 # define LT_DLLAZY_OR_NOW 0
11978 # endif
11979 # endif
11980 # endif
11981 # endif
11982 #endif
11983
11984 /* When -fvisibility=hidden is used, assume the code has been annotated
11985 correspondingly for the symbols needed. */
11986 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11987 int fnord () __attribute__((visibility("default")));
11988 #endif
11989
11990 int fnord () { return 42; }
11991 int main ()
11992 {
11993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11994 int status = $lt_dlunknown;
11995
11996 if (self)
11997 {
11998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11999 else
12000 {
12001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12002 else puts (dlerror ());
12003 }
12004 /* dlclose (self); */
12005 }
12006 else
12007 puts (dlerror ());
12008
12009 return status;
12010 }
12011 _LT_EOF
12012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12013 (eval $ac_link) 2>&5
12014 ac_status=$?
12015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12016 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12017 (./conftest; exit; ) >&5 2>/dev/null
12018 lt_status=$?
12019 case x$lt_status in
12020 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12021 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12022 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12023 esac
12024 else :
12025 # compilation failed
12026 lt_cv_dlopen_self_static=no
12027 fi
12028 fi
12029 rm -fr conftest*
12030
12031
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12034 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12035 fi
12036
12037 CPPFLAGS=$save_CPPFLAGS
12038 LDFLAGS=$save_LDFLAGS
12039 LIBS=$save_LIBS
12040 ;;
12041 esac
12042
12043 case $lt_cv_dlopen_self in
12044 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12045 *) enable_dlopen_self=unknown ;;
12046 esac
12047
12048 case $lt_cv_dlopen_self_static in
12049 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12050 *) enable_dlopen_self_static=unknown ;;
12051 esac
12052 fi
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070 striplib=
12071 old_striplib=
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12073 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12074 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12075 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12076 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12078 $as_echo "yes" >&6; }
12079 else
12080 # FIXME - insert some real tests, host_os isn't really good enough
12081 case $host_os in
12082 darwin*)
12083 if test -n "$STRIP"; then
12084 striplib="$STRIP -x"
12085 old_striplib="$STRIP -S"
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087 $as_echo "yes" >&6; }
12088 else
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12091 fi
12092 ;;
12093 *)
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095 $as_echo "no" >&6; }
12096 ;;
12097 esac
12098 fi
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111 # Report what library types will actually be built
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12115 $as_echo "$can_build_shared" >&6; }
12116
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12118 $as_echo_n "checking whether to build shared libraries... " >&6; }
12119 test no = "$can_build_shared" && enable_shared=no
12120
12121 # On AIX, shared libraries and static libraries use the same namespace, and
12122 # are all built from PIC.
12123 case $host_os in
12124 aix3*)
12125 test yes = "$enable_shared" && enable_static=no
12126 if test -n "$RANLIB"; then
12127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12128 postinstall_cmds='$RANLIB $lib'
12129 fi
12130 ;;
12131
12132 aix[4-9]*)
12133 if test ia64 != "$host_cpu"; then
12134 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12135 yes,aix,yes) ;; # shared object as lib.so file only
12136 yes,svr4,*) ;; # shared object as lib.so archive member only
12137 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12138 esac
12139 fi
12140 ;;
12141 esac
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12143 $as_echo "$enable_shared" >&6; }
12144
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12146 $as_echo_n "checking whether to build static libraries... " >&6; }
12147 # Make sure either enable_shared or enable_static is yes.
12148 test yes = "$enable_shared" || enable_static=yes
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12150 $as_echo "$enable_static" >&6; }
12151
12152
12153
12154
12155 fi
12156 ac_ext=c
12157 ac_cpp='$CPP $CPPFLAGS'
12158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12161
12162 CC=$lt_save_CC
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178 ac_config_commands="$ac_config_commands libtool"
12179
12180
12181
12182
12183 # Only expand once:
12184
12185
12186
12187 # Require xorg-macros minimum of 1.12 for DocBook external references
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12200 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12201 if ${ac_cv_prog_cc_c99+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 ac_cv_prog_cc_c99=no
12205 ac_save_CC=$CC
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 #include <stdarg.h>
12209 #include <stdbool.h>
12210 #include <stdlib.h>
12211 #include <wchar.h>
12212 #include <stdio.h>
12213
12214 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12215 #define debug(...) fprintf (stderr, __VA_ARGS__)
12216 #define showlist(...) puts (#__VA_ARGS__)
12217 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12218 static void
12219 test_varargs_macros (void)
12220 {
12221 int x = 1234;
12222 int y = 5678;
12223 debug ("Flag");
12224 debug ("X = %d\n", x);
12225 showlist (The first, second, and third items.);
12226 report (x>y, "x is %d but y is %d", x, y);
12227 }
12228
12229 // Check long long types.
12230 #define BIG64 18446744073709551615ull
12231 #define BIG32 4294967295ul
12232 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12233 #if !BIG_OK
12234 your preprocessor is broken;
12235 #endif
12236 #if BIG_OK
12237 #else
12238 your preprocessor is broken;
12239 #endif
12240 static long long int bignum = -9223372036854775807LL;
12241 static unsigned long long int ubignum = BIG64;
12242
12243 struct incomplete_array
12244 {
12245 int datasize;
12246 double data[];
12247 };
12248
12249 struct named_init {
12250 int number;
12251 const wchar_t *name;
12252 double average;
12253 };
12254
12255 typedef const char *ccp;
12256
12257 static inline int
12258 test_restrict (ccp restrict text)
12259 {
12260 // See if C++-style comments work.
12261 // Iterate through items via the restricted pointer.
12262 // Also check for declarations in for loops.
12263 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12264 continue;
12265 return 0;
12266 }
12267
12268 // Check varargs and va_copy.
12269 static void
12270 test_varargs (const char *format, ...)
12271 {
12272 va_list args;
12273 va_start (args, format);
12274 va_list args_copy;
12275 va_copy (args_copy, args);
12276
12277 const char *str;
12278 int number;
12279 float fnumber;
12280
12281 while (*format)
12282 {
12283 switch (*format++)
12284 {
12285 case 's': // string
12286 str = va_arg (args_copy, const char *);
12287 break;
12288 case 'd': // int
12289 number = va_arg (args_copy, int);
12290 break;
12291 case 'f': // float
12292 fnumber = va_arg (args_copy, double);
12293 break;
12294 default:
12295 break;
12296 }
12297 }
12298 va_end (args_copy);
12299 va_end (args);
12300 }
12301
12302 int
12303 main ()
12304 {
12305
12306 // Check bool.
12307 _Bool success = false;
12308
12309 // Check restrict.
12310 if (test_restrict ("String literal") == 0)
12311 success = true;
12312 char *restrict newvar = "Another string";
12313
12314 // Check varargs.
12315 test_varargs ("s, d' f .", "string", 65, 34.234);
12316 test_varargs_macros ();
12317
12318 // Check flexible array members.
12319 struct incomplete_array *ia =
12320 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12321 ia->datasize = 10;
12322 for (int i = 0; i < ia->datasize; ++i)
12323 ia->data[i] = i * 1.234;
12324
12325 // Check named initializers.
12326 struct named_init ni = {
12327 .number = 34,
12328 .name = L"Test wide string",
12329 .average = 543.34343,
12330 };
12331
12332 ni.number = 58;
12333
12334 int dynamic_array[ni.number];
12335 dynamic_array[ni.number - 1] = 543;
12336
12337 // work around unused variable warnings
12338 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12339 || dynamic_array[ni.number - 1] != 543);
12340
12341 ;
12342 return 0;
12343 }
12344 _ACEOF
12345 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12346 do
12347 CC="$ac_save_CC $ac_arg"
12348 if ac_fn_c_try_compile "$LINENO"; then :
12349 ac_cv_prog_cc_c99=$ac_arg
12350 fi
12351 rm -f core conftest.err conftest.$ac_objext
12352 test "x$ac_cv_prog_cc_c99" != "xno" && break
12353 done
12354 rm -f conftest.$ac_ext
12355 CC=$ac_save_CC
12356
12357 fi
12358 # AC_CACHE_VAL
12359 case "x$ac_cv_prog_cc_c99" in
12360 x)
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12362 $as_echo "none needed" >&6; } ;;
12363 xno)
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12365 $as_echo "unsupported" >&6; } ;;
12366 *)
12367 CC="$CC $ac_cv_prog_cc_c99"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12369 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12370 esac
12371 if test "x$ac_cv_prog_cc_c99" != xno; then :
12372
12373 fi
12374
12375
12376
12377
12378
12379
12380 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12381 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12382 CLANGCC="yes"
12383 else
12384 CLANGCC="no"
12385 fi
12386
12387 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12388 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12389 INTELCC="yes"
12390 else
12391 INTELCC="no"
12392 fi
12393
12394 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12395 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12396 SUNCC="yes"
12397 else
12398 SUNCC="no"
12399 fi
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12410 if test -n "$ac_tool_prefix"; then
12411 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12412 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 case $PKG_CONFIG in
12419 [\\/]* | ?:[\\/]*)
12420 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12421 ;;
12422 *)
12423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426 IFS=$as_save_IFS
12427 test -z "$as_dir" && as_dir=.
12428 for ac_exec_ext in '' $ac_executable_extensions; do
12429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12430 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12432 break 2
12433 fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438 ;;
12439 esac
12440 fi
12441 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12442 if test -n "$PKG_CONFIG"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12444 $as_echo "$PKG_CONFIG" >&6; }
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447 $as_echo "no" >&6; }
12448 fi
12449
12450
12451 fi
12452 if test -z "$ac_cv_path_PKG_CONFIG"; then
12453 ac_pt_PKG_CONFIG=$PKG_CONFIG
12454 # Extract the first word of "pkg-config", so it can be a program name with args.
12455 set dummy pkg-config; ac_word=$2
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12457 $as_echo_n "checking for $ac_word... " >&6; }
12458 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 case $ac_pt_PKG_CONFIG in
12462 [\\/]* | ?:[\\/]*)
12463 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12464 ;;
12465 *)
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12468 do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477 done
12478 done
12479 IFS=$as_save_IFS
12480
12481 ;;
12482 esac
12483 fi
12484 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12485 if test -n "$ac_pt_PKG_CONFIG"; then
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12487 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12488 else
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12490 $as_echo "no" >&6; }
12491 fi
12492
12493 if test "x$ac_pt_PKG_CONFIG" = x; then
12494 PKG_CONFIG=""
12495 else
12496 case $cross_compiling:$ac_tool_warned in
12497 yes:)
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12500 ac_tool_warned=yes ;;
12501 esac
12502 PKG_CONFIG=$ac_pt_PKG_CONFIG
12503 fi
12504 else
12505 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12506 fi
12507
12508 fi
12509 if test -n "$PKG_CONFIG"; then
12510 _pkg_min_version=0.9.0
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12512 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12513 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12515 $as_echo "yes" >&6; }
12516 else
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518 $as_echo "no" >&6; }
12519 PKG_CONFIG=""
12520 fi
12521 fi
12522
12523
12524
12525
12526
12527 # Check whether --enable-selective-werror was given.
12528 if test "${enable_selective_werror+set}" = set; then :
12529 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12530 else
12531 SELECTIVE_WERROR=yes
12532 fi
12533
12534
12535
12536
12537
12538 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12539 if test "x$SUNCC" = "xyes"; then
12540 BASE_CFLAGS="-v"
12541 else
12542 BASE_CFLAGS=""
12543 fi
12544
12545 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559 xorg_testset_save_CFLAGS="$CFLAGS"
12560
12561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int i;
12571 _ACEOF
12572 if ac_fn_c_try_compile "$LINENO"; then :
12573 xorg_cv_cc_flag_unknown_warning_option=yes
12574 else
12575 xorg_cv_cc_flag_unknown_warning_option=no
12576 fi
12577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 fi
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12582 CFLAGS="$xorg_testset_save_CFLAGS"
12583 fi
12584
12585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12588 fi
12589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 int i;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 xorg_cv_cc_flag_unused_command_line_argument=yes
12601 else
12602 xorg_cv_cc_flag_unused_command_line_argument=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12609 CFLAGS="$xorg_testset_save_CFLAGS"
12610 fi
12611
12612 found="no"
12613
12614 if test $found = "no" ; then
12615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12617 fi
12618
12619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12621 fi
12622
12623 CFLAGS="$CFLAGS -Wall"
12624
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12626 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12627 cacheid=xorg_cv_cc_flag__Wall
12628 if eval \${$cacheid+:} false; then :
12629 $as_echo_n "(cached) " >&6
12630 else
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632 /* end confdefs.h. */
12633 int i;
12634 int
12635 main ()
12636 {
12637
12638 ;
12639 return 0;
12640 }
12641 _ACEOF
12642 if ac_fn_c_try_link "$LINENO"; then :
12643 eval $cacheid=yes
12644 else
12645 eval $cacheid=no
12646 fi
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 fi
12650
12651
12652 CFLAGS="$xorg_testset_save_CFLAGS"
12653
12654 eval supported=\$$cacheid
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12656 $as_echo "$supported" >&6; }
12657 if test "$supported" = "yes" ; then
12658 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12659 found="yes"
12660 fi
12661 fi
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677 xorg_testset_save_CFLAGS="$CFLAGS"
12678
12679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688 int i;
12689 _ACEOF
12690 if ac_fn_c_try_compile "$LINENO"; then :
12691 xorg_cv_cc_flag_unknown_warning_option=yes
12692 else
12693 xorg_cv_cc_flag_unknown_warning_option=no
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12700 CFLAGS="$xorg_testset_save_CFLAGS"
12701 fi
12702
12703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12706 fi
12707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 /* end confdefs.h. */
12715 int i;
12716 _ACEOF
12717 if ac_fn_c_try_compile "$LINENO"; then :
12718 xorg_cv_cc_flag_unused_command_line_argument=yes
12719 else
12720 xorg_cv_cc_flag_unused_command_line_argument=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12727 CFLAGS="$xorg_testset_save_CFLAGS"
12728 fi
12729
12730 found="no"
12731
12732 if test $found = "no" ; then
12733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12735 fi
12736
12737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12739 fi
12740
12741 CFLAGS="$CFLAGS -Wpointer-arith"
12742
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12744 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12745 cacheid=xorg_cv_cc_flag__Wpointer_arith
12746 if eval \${$cacheid+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 int i;
12752 int
12753 main ()
12754 {
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_link "$LINENO"; then :
12761 eval $cacheid=yes
12762 else
12763 eval $cacheid=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766 conftest$ac_exeext conftest.$ac_ext
12767 fi
12768
12769
12770 CFLAGS="$xorg_testset_save_CFLAGS"
12771
12772 eval supported=\$$cacheid
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12774 $as_echo "$supported" >&6; }
12775 if test "$supported" = "yes" ; then
12776 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12777 found="yes"
12778 fi
12779 fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795 xorg_testset_save_CFLAGS="$CFLAGS"
12796
12797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12800 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12801 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12806 int i;
12807 _ACEOF
12808 if ac_fn_c_try_compile "$LINENO"; then :
12809 xorg_cv_cc_flag_unknown_warning_option=yes
12810 else
12811 xorg_cv_cc_flag_unknown_warning_option=no
12812 fi
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12816 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12818 CFLAGS="$xorg_testset_save_CFLAGS"
12819 fi
12820
12821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12824 fi
12825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12827 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12828 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 int i;
12834 _ACEOF
12835 if ac_fn_c_try_compile "$LINENO"; then :
12836 xorg_cv_cc_flag_unused_command_line_argument=yes
12837 else
12838 xorg_cv_cc_flag_unused_command_line_argument=no
12839 fi
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 fi
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12843 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12845 CFLAGS="$xorg_testset_save_CFLAGS"
12846 fi
12847
12848 found="no"
12849
12850 if test $found = "no" ; then
12851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12853 fi
12854
12855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12857 fi
12858
12859 CFLAGS="$CFLAGS -Wmissing-declarations"
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12862 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12863 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12864 if eval \${$cacheid+:} false; then :
12865 $as_echo_n "(cached) " >&6
12866 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 int i;
12870 int
12871 main ()
12872 {
12873
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 if ac_fn_c_try_link "$LINENO"; then :
12879 eval $cacheid=yes
12880 else
12881 eval $cacheid=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 fi
12886
12887
12888 CFLAGS="$xorg_testset_save_CFLAGS"
12889
12890 eval supported=\$$cacheid
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12892 $as_echo "$supported" >&6; }
12893 if test "$supported" = "yes" ; then
12894 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12895 found="yes"
12896 fi
12897 fi
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913 xorg_testset_save_CFLAGS="$CFLAGS"
12914
12915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12918 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12919 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 int i;
12925 _ACEOF
12926 if ac_fn_c_try_compile "$LINENO"; then :
12927 xorg_cv_cc_flag_unknown_warning_option=yes
12928 else
12929 xorg_cv_cc_flag_unknown_warning_option=no
12930 fi
12931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932 fi
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12934 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12936 CFLAGS="$xorg_testset_save_CFLAGS"
12937 fi
12938
12939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12942 fi
12943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12945 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12946 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 int i;
12952 _ACEOF
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954 xorg_cv_cc_flag_unused_command_line_argument=yes
12955 else
12956 xorg_cv_cc_flag_unused_command_line_argument=no
12957 fi
12958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12959 fi
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12961 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12962 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12963 CFLAGS="$xorg_testset_save_CFLAGS"
12964 fi
12965
12966 found="no"
12967
12968 if test $found = "no" ; then
12969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12971 fi
12972
12973 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12975 fi
12976
12977 CFLAGS="$CFLAGS -Wformat=2"
12978
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12980 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12981 cacheid=xorg_cv_cc_flag__Wformat_2
12982 if eval \${$cacheid+:} false; then :
12983 $as_echo_n "(cached) " >&6
12984 else
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12987 int i;
12988 int
12989 main ()
12990 {
12991
12992 ;
12993 return 0;
12994 }
12995 _ACEOF
12996 if ac_fn_c_try_link "$LINENO"; then :
12997 eval $cacheid=yes
12998 else
12999 eval $cacheid=no
13000 fi
13001 rm -f core conftest.err conftest.$ac_objext \
13002 conftest$ac_exeext conftest.$ac_ext
13003 fi
13004
13005
13006 CFLAGS="$xorg_testset_save_CFLAGS"
13007
13008 eval supported=\$$cacheid
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13010 $as_echo "$supported" >&6; }
13011 if test "$supported" = "yes" ; then
13012 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13013 found="yes"
13014 fi
13015 fi
13016
13017 if test $found = "no" ; then
13018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020 fi
13021
13022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13024 fi
13025
13026 CFLAGS="$CFLAGS -Wformat"
13027
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13029 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
13030 cacheid=xorg_cv_cc_flag__Wformat
13031 if eval \${$cacheid+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036 int i;
13037 int
13038 main ()
13039 {
13040
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 eval $cacheid=yes
13047 else
13048 eval $cacheid=no
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 fi
13053
13054
13055 CFLAGS="$xorg_testset_save_CFLAGS"
13056
13057 eval supported=\$$cacheid
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13059 $as_echo "$supported" >&6; }
13060 if test "$supported" = "yes" ; then
13061 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13062 found="yes"
13063 fi
13064 fi
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082 xorg_testset_save_CFLAGS="$CFLAGS"
13083
13084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13085 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13087 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13088 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 int i;
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096 xorg_cv_cc_flag_unknown_warning_option=yes
13097 else
13098 xorg_cv_cc_flag_unknown_warning_option=no
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13103 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13104 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13105 CFLAGS="$xorg_testset_save_CFLAGS"
13106 fi
13107
13108 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13111 fi
13112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13114 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13115 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13116 $as_echo_n "(cached) " >&6
13117 else
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13120 int i;
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"; then :
13123 xorg_cv_cc_flag_unused_command_line_argument=yes
13124 else
13125 xorg_cv_cc_flag_unused_command_line_argument=no
13126 fi
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13130 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13132 CFLAGS="$xorg_testset_save_CFLAGS"
13133 fi
13134
13135 found="no"
13136
13137 if test $found = "no" ; then
13138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13140 fi
13141
13142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13144 fi
13145
13146 CFLAGS="$CFLAGS -Wstrict-prototypes"
13147
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13149 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13150 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13151 if eval \${$cacheid+:} false; then :
13152 $as_echo_n "(cached) " >&6
13153 else
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 int i;
13157 int
13158 main ()
13159 {
13160
13161 ;
13162 return 0;
13163 }
13164 _ACEOF
13165 if ac_fn_c_try_link "$LINENO"; then :
13166 eval $cacheid=yes
13167 else
13168 eval $cacheid=no
13169 fi
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 fi
13173
13174
13175 CFLAGS="$xorg_testset_save_CFLAGS"
13176
13177 eval supported=\$$cacheid
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13179 $as_echo "$supported" >&6; }
13180 if test "$supported" = "yes" ; then
13181 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13182 found="yes"
13183 fi
13184 fi
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200 xorg_testset_save_CFLAGS="$CFLAGS"
13201
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h. */
13211 int i;
13212 _ACEOF
13213 if ac_fn_c_try_compile "$LINENO"; then :
13214 xorg_cv_cc_flag_unknown_warning_option=yes
13215 else
13216 xorg_cv_cc_flag_unknown_warning_option=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13223 CFLAGS="$xorg_testset_save_CFLAGS"
13224 fi
13225
13226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13229 fi
13230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13234 $as_echo_n "(cached) " >&6
13235 else
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 int i;
13239 _ACEOF
13240 if ac_fn_c_try_compile "$LINENO"; then :
13241 xorg_cv_cc_flag_unused_command_line_argument=yes
13242 else
13243 xorg_cv_cc_flag_unused_command_line_argument=no
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13246 fi
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13250 CFLAGS="$xorg_testset_save_CFLAGS"
13251 fi
13252
13253 found="no"
13254
13255 if test $found = "no" ; then
13256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13258 fi
13259
13260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13262 fi
13263
13264 CFLAGS="$CFLAGS -Wmissing-prototypes"
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13267 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13268 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13269 if eval \${$cacheid+:} false; then :
13270 $as_echo_n "(cached) " >&6
13271 else
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274 int i;
13275 int
13276 main ()
13277 {
13278
13279 ;
13280 return 0;
13281 }
13282 _ACEOF
13283 if ac_fn_c_try_link "$LINENO"; then :
13284 eval $cacheid=yes
13285 else
13286 eval $cacheid=no
13287 fi
13288 rm -f core conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290 fi
13291
13292
13293 CFLAGS="$xorg_testset_save_CFLAGS"
13294
13295 eval supported=\$$cacheid
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13297 $as_echo "$supported" >&6; }
13298 if test "$supported" = "yes" ; then
13299 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13300 found="yes"
13301 fi
13302 fi
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318 xorg_testset_save_CFLAGS="$CFLAGS"
13319
13320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13323 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13324 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 int i;
13330 _ACEOF
13331 if ac_fn_c_try_compile "$LINENO"; then :
13332 xorg_cv_cc_flag_unknown_warning_option=yes
13333 else
13334 xorg_cv_cc_flag_unknown_warning_option=no
13335 fi
13336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13337 fi
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13339 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13341 CFLAGS="$xorg_testset_save_CFLAGS"
13342 fi
13343
13344 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13347 fi
13348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13350 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13351 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 int i;
13357 _ACEOF
13358 if ac_fn_c_try_compile "$LINENO"; then :
13359 xorg_cv_cc_flag_unused_command_line_argument=yes
13360 else
13361 xorg_cv_cc_flag_unused_command_line_argument=no
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13366 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13368 CFLAGS="$xorg_testset_save_CFLAGS"
13369 fi
13370
13371 found="no"
13372
13373 if test $found = "no" ; then
13374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13376 fi
13377
13378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13380 fi
13381
13382 CFLAGS="$CFLAGS -Wnested-externs"
13383
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13385 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13386 cacheid=xorg_cv_cc_flag__Wnested_externs
13387 if eval \${$cacheid+:} false; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 int i;
13393 int
13394 main ()
13395 {
13396
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 eval $cacheid=yes
13403 else
13404 eval $cacheid=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext \
13407 conftest$ac_exeext conftest.$ac_ext
13408 fi
13409
13410
13411 CFLAGS="$xorg_testset_save_CFLAGS"
13412
13413 eval supported=\$$cacheid
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13415 $as_echo "$supported" >&6; }
13416 if test "$supported" = "yes" ; then
13417 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13418 found="yes"
13419 fi
13420 fi
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436 xorg_testset_save_CFLAGS="$CFLAGS"
13437
13438 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13441 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13442 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 int i;
13448 _ACEOF
13449 if ac_fn_c_try_compile "$LINENO"; then :
13450 xorg_cv_cc_flag_unknown_warning_option=yes
13451 else
13452 xorg_cv_cc_flag_unknown_warning_option=no
13453 fi
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13457 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13459 CFLAGS="$xorg_testset_save_CFLAGS"
13460 fi
13461
13462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13465 fi
13466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13468 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13469 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13470 $as_echo_n "(cached) " >&6
13471 else
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13474 int i;
13475 _ACEOF
13476 if ac_fn_c_try_compile "$LINENO"; then :
13477 xorg_cv_cc_flag_unused_command_line_argument=yes
13478 else
13479 xorg_cv_cc_flag_unused_command_line_argument=no
13480 fi
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 fi
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13484 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13486 CFLAGS="$xorg_testset_save_CFLAGS"
13487 fi
13488
13489 found="no"
13490
13491 if test $found = "no" ; then
13492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13494 fi
13495
13496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13498 fi
13499
13500 CFLAGS="$CFLAGS -Wbad-function-cast"
13501
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13503 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13504 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13505 if eval \${$cacheid+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 int i;
13511 int
13512 main ()
13513 {
13514
13515 ;
13516 return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_link "$LINENO"; then :
13520 eval $cacheid=yes
13521 else
13522 eval $cacheid=no
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
13526 fi
13527
13528
13529 CFLAGS="$xorg_testset_save_CFLAGS"
13530
13531 eval supported=\$$cacheid
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13533 $as_echo "$supported" >&6; }
13534 if test "$supported" = "yes" ; then
13535 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13536 found="yes"
13537 fi
13538 fi
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554 xorg_testset_save_CFLAGS="$CFLAGS"
13555
13556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13559 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13560 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13564 /* end confdefs.h. */
13565 int i;
13566 _ACEOF
13567 if ac_fn_c_try_compile "$LINENO"; then :
13568 xorg_cv_cc_flag_unknown_warning_option=yes
13569 else
13570 xorg_cv_cc_flag_unknown_warning_option=no
13571 fi
13572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13573 fi
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13575 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13577 CFLAGS="$xorg_testset_save_CFLAGS"
13578 fi
13579
13580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13583 fi
13584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13586 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13587 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 int i;
13593 _ACEOF
13594 if ac_fn_c_try_compile "$LINENO"; then :
13595 xorg_cv_cc_flag_unused_command_line_argument=yes
13596 else
13597 xorg_cv_cc_flag_unused_command_line_argument=no
13598 fi
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 fi
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13602 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13604 CFLAGS="$xorg_testset_save_CFLAGS"
13605 fi
13606
13607 found="no"
13608
13609 if test $found = "no" ; then
13610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612 fi
13613
13614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13616 fi
13617
13618 CFLAGS="$CFLAGS -Wold-style-definition"
13619
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13621 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13622 cacheid=xorg_cv_cc_flag__Wold_style_definition
13623 if eval \${$cacheid+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 int i;
13629 int
13630 main ()
13631 {
13632
13633 ;
13634 return 0;
13635 }
13636 _ACEOF
13637 if ac_fn_c_try_link "$LINENO"; then :
13638 eval $cacheid=yes
13639 else
13640 eval $cacheid=no
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
13644 fi
13645
13646
13647 CFLAGS="$xorg_testset_save_CFLAGS"
13648
13649 eval supported=\$$cacheid
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13651 $as_echo "$supported" >&6; }
13652 if test "$supported" = "yes" ; then
13653 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13654 found="yes"
13655 fi
13656 fi
13657
13658 if test $found = "no" ; then
13659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13661 fi
13662
13663 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13665 fi
13666
13667 CFLAGS="$CFLAGS -fd"
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13670 $as_echo_n "checking if $CC supports -fd... " >&6; }
13671 cacheid=xorg_cv_cc_flag__fd
13672 if eval \${$cacheid+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 int i;
13678 int
13679 main ()
13680 {
13681
13682 ;
13683 return 0;
13684 }
13685 _ACEOF
13686 if ac_fn_c_try_link "$LINENO"; then :
13687 eval $cacheid=yes
13688 else
13689 eval $cacheid=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext \
13692 conftest$ac_exeext conftest.$ac_ext
13693 fi
13694
13695
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13697
13698 eval supported=\$$cacheid
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13700 $as_echo "$supported" >&6; }
13701 if test "$supported" = "yes" ; then
13702 BASE_CFLAGS="$BASE_CFLAGS -fd"
13703 found="yes"
13704 fi
13705 fi
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721 xorg_testset_save_CFLAGS="$CFLAGS"
13722
13723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13726 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13727 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13728 $as_echo_n "(cached) " >&6
13729 else
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 int i;
13733 _ACEOF
13734 if ac_fn_c_try_compile "$LINENO"; then :
13735 xorg_cv_cc_flag_unknown_warning_option=yes
13736 else
13737 xorg_cv_cc_flag_unknown_warning_option=no
13738 fi
13739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13740 fi
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13742 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13743 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13744 CFLAGS="$xorg_testset_save_CFLAGS"
13745 fi
13746
13747 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13749 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13750 fi
13751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13753 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13754 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759 int i;
13760 _ACEOF
13761 if ac_fn_c_try_compile "$LINENO"; then :
13762 xorg_cv_cc_flag_unused_command_line_argument=yes
13763 else
13764 xorg_cv_cc_flag_unused_command_line_argument=no
13765 fi
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13769 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13771 CFLAGS="$xorg_testset_save_CFLAGS"
13772 fi
13773
13774 found="no"
13775
13776 if test $found = "no" ; then
13777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13779 fi
13780
13781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13783 fi
13784
13785 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13788 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13789 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13790 if eval \${$cacheid+:} false; then :
13791 $as_echo_n "(cached) " >&6
13792 else
13793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13794 /* end confdefs.h. */
13795 int i;
13796 int
13797 main ()
13798 {
13799
13800 ;
13801 return 0;
13802 }
13803 _ACEOF
13804 if ac_fn_c_try_link "$LINENO"; then :
13805 eval $cacheid=yes
13806 else
13807 eval $cacheid=no
13808 fi
13809 rm -f core conftest.err conftest.$ac_objext \
13810 conftest$ac_exeext conftest.$ac_ext
13811 fi
13812
13813
13814 CFLAGS="$xorg_testset_save_CFLAGS"
13815
13816 eval supported=\$$cacheid
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13818 $as_echo "$supported" >&6; }
13819 if test "$supported" = "yes" ; then
13820 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13821 found="yes"
13822 fi
13823 fi
13824
13825
13826
13827
13828
13829 # This chunk adds additional warnings that could catch undesired effects.
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 xorg_testset_save_CFLAGS="$CFLAGS"
13844
13845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 int i;
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857 xorg_cv_cc_flag_unknown_warning_option=yes
13858 else
13859 xorg_cv_cc_flag_unknown_warning_option=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13866 CFLAGS="$xorg_testset_save_CFLAGS"
13867 fi
13868
13869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13872 fi
13873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 int i;
13882 _ACEOF
13883 if ac_fn_c_try_compile "$LINENO"; then :
13884 xorg_cv_cc_flag_unused_command_line_argument=yes
13885 else
13886 xorg_cv_cc_flag_unused_command_line_argument=no
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13893 CFLAGS="$xorg_testset_save_CFLAGS"
13894 fi
13895
13896 found="no"
13897
13898 if test $found = "no" ; then
13899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13901 fi
13902
13903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13905 fi
13906
13907 CFLAGS="$CFLAGS -Wunused"
13908
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13910 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13911 cacheid=xorg_cv_cc_flag__Wunused
13912 if eval \${$cacheid+:} false; then :
13913 $as_echo_n "(cached) " >&6
13914 else
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 int i;
13918 int
13919 main ()
13920 {
13921
13922 ;
13923 return 0;
13924 }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927 eval $cacheid=yes
13928 else
13929 eval $cacheid=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 fi
13934
13935
13936 CFLAGS="$xorg_testset_save_CFLAGS"
13937
13938 eval supported=\$$cacheid
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13940 $as_echo "$supported" >&6; }
13941 if test "$supported" = "yes" ; then
13942 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13943 found="yes"
13944 fi
13945 fi
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961 xorg_testset_save_CFLAGS="$CFLAGS"
13962
13963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int i;
13973 _ACEOF
13974 if ac_fn_c_try_compile "$LINENO"; then :
13975 xorg_cv_cc_flag_unknown_warning_option=yes
13976 else
13977 xorg_cv_cc_flag_unknown_warning_option=no
13978 fi
13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13984 CFLAGS="$xorg_testset_save_CFLAGS"
13985 fi
13986
13987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13990 fi
13991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int i;
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002 xorg_cv_cc_flag_unused_command_line_argument=yes
14003 else
14004 xorg_cv_cc_flag_unused_command_line_argument=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14011 CFLAGS="$xorg_testset_save_CFLAGS"
14012 fi
14013
14014 found="no"
14015
14016 if test $found = "no" ; then
14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14019 fi
14020
14021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14023 fi
14024
14025 CFLAGS="$CFLAGS -Wuninitialized"
14026
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14028 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14029 cacheid=xorg_cv_cc_flag__Wuninitialized
14030 if eval \${$cacheid+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 int i;
14036 int
14037 main ()
14038 {
14039
14040 ;
14041 return 0;
14042 }
14043 _ACEOF
14044 if ac_fn_c_try_link "$LINENO"; then :
14045 eval $cacheid=yes
14046 else
14047 eval $cacheid=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext \
14050 conftest$ac_exeext conftest.$ac_ext
14051 fi
14052
14053
14054 CFLAGS="$xorg_testset_save_CFLAGS"
14055
14056 eval supported=\$$cacheid
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14058 $as_echo "$supported" >&6; }
14059 if test "$supported" = "yes" ; then
14060 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14061 found="yes"
14062 fi
14063 fi
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079 xorg_testset_save_CFLAGS="$CFLAGS"
14080
14081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 int i;
14091 _ACEOF
14092 if ac_fn_c_try_compile "$LINENO"; then :
14093 xorg_cv_cc_flag_unknown_warning_option=yes
14094 else
14095 xorg_cv_cc_flag_unknown_warning_option=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14102 CFLAGS="$xorg_testset_save_CFLAGS"
14103 fi
14104
14105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14108 fi
14109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14113 $as_echo_n "(cached) " >&6
14114 else
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14117 int i;
14118 _ACEOF
14119 if ac_fn_c_try_compile "$LINENO"; then :
14120 xorg_cv_cc_flag_unused_command_line_argument=yes
14121 else
14122 xorg_cv_cc_flag_unused_command_line_argument=no
14123 fi
14124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14129 CFLAGS="$xorg_testset_save_CFLAGS"
14130 fi
14131
14132 found="no"
14133
14134 if test $found = "no" ; then
14135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14137 fi
14138
14139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14141 fi
14142
14143 CFLAGS="$CFLAGS -Wshadow"
14144
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14146 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14147 cacheid=xorg_cv_cc_flag__Wshadow
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 -Wshadow"
14179 found="yes"
14180 fi
14181 fi
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 xorg_testset_save_CFLAGS="$CFLAGS"
14198
14199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14204 $as_echo_n "(cached) " >&6
14205 else
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14208 int i;
14209 _ACEOF
14210 if ac_fn_c_try_compile "$LINENO"; then :
14211 xorg_cv_cc_flag_unknown_warning_option=yes
14212 else
14213 xorg_cv_cc_flag_unknown_warning_option=no
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14220 CFLAGS="$xorg_testset_save_CFLAGS"
14221 fi
14222
14223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14226 fi
14227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 int i;
14236 _ACEOF
14237 if ac_fn_c_try_compile "$LINENO"; then :
14238 xorg_cv_cc_flag_unused_command_line_argument=yes
14239 else
14240 xorg_cv_cc_flag_unused_command_line_argument=no
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14247 CFLAGS="$xorg_testset_save_CFLAGS"
14248 fi
14249
14250 found="no"
14251
14252 if test $found = "no" ; then
14253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14255 fi
14256
14257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14259 fi
14260
14261 CFLAGS="$CFLAGS -Wmissing-noreturn"
14262
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14264 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14265 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14266 if eval \${$cacheid+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 int i;
14272 int
14273 main ()
14274 {
14275
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_link "$LINENO"; then :
14281 eval $cacheid=yes
14282 else
14283 eval $cacheid=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext \
14286 conftest$ac_exeext conftest.$ac_ext
14287 fi
14288
14289
14290 CFLAGS="$xorg_testset_save_CFLAGS"
14291
14292 eval supported=\$$cacheid
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14294 $as_echo "$supported" >&6; }
14295 if test "$supported" = "yes" ; then
14296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14297 found="yes"
14298 fi
14299 fi
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315 xorg_testset_save_CFLAGS="$CFLAGS"
14316
14317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14322 $as_echo_n "(cached) " >&6
14323 else
14324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h. */
14326 int i;
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329 xorg_cv_cc_flag_unknown_warning_option=yes
14330 else
14331 xorg_cv_cc_flag_unknown_warning_option=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14334 fi
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14338 CFLAGS="$xorg_testset_save_CFLAGS"
14339 fi
14340
14341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14344 fi
14345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14349 $as_echo_n "(cached) " >&6
14350 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14353 int i;
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356 xorg_cv_cc_flag_unused_command_line_argument=yes
14357 else
14358 xorg_cv_cc_flag_unused_command_line_argument=no
14359 fi
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14365 CFLAGS="$xorg_testset_save_CFLAGS"
14366 fi
14367
14368 found="no"
14369
14370 if test $found = "no" ; then
14371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14373 fi
14374
14375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14377 fi
14378
14379 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14380
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14382 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14383 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14384 if eval \${$cacheid+:} false; then :
14385 $as_echo_n "(cached) " >&6
14386 else
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 int i;
14390 int
14391 main ()
14392 {
14393
14394 ;
14395 return 0;
14396 }
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 eval $cacheid=yes
14400 else
14401 eval $cacheid=no
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 fi
14406
14407
14408 CFLAGS="$xorg_testset_save_CFLAGS"
14409
14410 eval supported=\$$cacheid
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14412 $as_echo "$supported" >&6; }
14413 if test "$supported" = "yes" ; then
14414 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14415 found="yes"
14416 fi
14417 fi
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433 xorg_testset_save_CFLAGS="$CFLAGS"
14434
14435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14440 $as_echo_n "(cached) " >&6
14441 else
14442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14443 /* end confdefs.h. */
14444 int i;
14445 _ACEOF
14446 if ac_fn_c_try_compile "$LINENO"; then :
14447 xorg_cv_cc_flag_unknown_warning_option=yes
14448 else
14449 xorg_cv_cc_flag_unknown_warning_option=no
14450 fi
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14456 CFLAGS="$xorg_testset_save_CFLAGS"
14457 fi
14458
14459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14462 fi
14463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 int i;
14472 _ACEOF
14473 if ac_fn_c_try_compile "$LINENO"; then :
14474 xorg_cv_cc_flag_unused_command_line_argument=yes
14475 else
14476 xorg_cv_cc_flag_unused_command_line_argument=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14483 CFLAGS="$xorg_testset_save_CFLAGS"
14484 fi
14485
14486 found="no"
14487
14488 if test $found = "no" ; then
14489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14491 fi
14492
14493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14495 fi
14496
14497 CFLAGS="$CFLAGS -Wredundant-decls"
14498
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14500 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14501 cacheid=xorg_cv_cc_flag__Wredundant_decls
14502 if eval \${$cacheid+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 int i;
14508 int
14509 main ()
14510 {
14511
14512 ;
14513 return 0;
14514 }
14515 _ACEOF
14516 if ac_fn_c_try_link "$LINENO"; then :
14517 eval $cacheid=yes
14518 else
14519 eval $cacheid=no
14520 fi
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 fi
14524
14525
14526 CFLAGS="$xorg_testset_save_CFLAGS"
14527
14528 eval supported=\$$cacheid
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14530 $as_echo "$supported" >&6; }
14531 if test "$supported" = "yes" ; then
14532 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14533 found="yes"
14534 fi
14535 fi
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551 xorg_testset_save_CFLAGS="$CFLAGS"
14552
14553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14558 $as_echo_n "(cached) " >&6
14559 else
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14562 int i;
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 xorg_cv_cc_flag_unknown_warning_option=yes
14566 else
14567 xorg_cv_cc_flag_unknown_warning_option=no
14568 fi
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14574 CFLAGS="$xorg_testset_save_CFLAGS"
14575 fi
14576
14577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580 fi
14581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14585 $as_echo_n "(cached) " >&6
14586 else
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 int i;
14590 _ACEOF
14591 if ac_fn_c_try_compile "$LINENO"; then :
14592 xorg_cv_cc_flag_unused_command_line_argument=yes
14593 else
14594 xorg_cv_cc_flag_unused_command_line_argument=no
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14601 CFLAGS="$xorg_testset_save_CFLAGS"
14602 fi
14603
14604 found="no"
14605
14606 if test $found = "no" ; then
14607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14609 fi
14610
14611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14613 fi
14614
14615 CFLAGS="$CFLAGS -Wlogical-op"
14616
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14618 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14619 cacheid=xorg_cv_cc_flag__Wlogical_op
14620 if eval \${$cacheid+:} false; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14625 int i;
14626 int
14627 main ()
14628 {
14629
14630 ;
14631 return 0;
14632 }
14633 _ACEOF
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 eval $cacheid=yes
14636 else
14637 eval $cacheid=no
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 fi
14642
14643
14644 CFLAGS="$xorg_testset_save_CFLAGS"
14645
14646 eval supported=\$$cacheid
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14648 $as_echo "$supported" >&6; }
14649 if test "$supported" = "yes" ; then
14650 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14651 found="yes"
14652 fi
14653 fi
14654
14655
14656
14657 # These are currently disabled because they are noisy. They will be enabled
14658 # in the future once the codebase is sufficiently modernized to silence
14659 # them. For now, I don't want them to drown out the other warnings.
14660 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14661 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14662 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14663
14664 # Turn some warnings into errors, so we don't accidently get successful builds
14665 # when there are problems that should be fixed.
14666
14667 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681 xorg_testset_save_CFLAGS="$CFLAGS"
14682
14683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14686 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14687 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14688 $as_echo_n "(cached) " >&6
14689 else
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692 int i;
14693 _ACEOF
14694 if ac_fn_c_try_compile "$LINENO"; then :
14695 xorg_cv_cc_flag_unknown_warning_option=yes
14696 else
14697 xorg_cv_cc_flag_unknown_warning_option=no
14698 fi
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 fi
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14702 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14703 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14704 CFLAGS="$xorg_testset_save_CFLAGS"
14705 fi
14706
14707 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14710 fi
14711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14713 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14714 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14718 /* end confdefs.h. */
14719 int i;
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 xorg_cv_cc_flag_unused_command_line_argument=yes
14723 else
14724 xorg_cv_cc_flag_unused_command_line_argument=no
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 fi
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14729 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14731 CFLAGS="$xorg_testset_save_CFLAGS"
14732 fi
14733
14734 found="no"
14735
14736 if test $found = "no" ; then
14737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14739 fi
14740
14741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14743 fi
14744
14745 CFLAGS="$CFLAGS -Werror=implicit"
14746
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14748 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14749 cacheid=xorg_cv_cc_flag__Werror_implicit
14750 if eval \${$cacheid+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755 int i;
14756 int
14757 main ()
14758 {
14759
14760 ;
14761 return 0;
14762 }
14763 _ACEOF
14764 if ac_fn_c_try_link "$LINENO"; then :
14765 eval $cacheid=yes
14766 else
14767 eval $cacheid=no
14768 fi
14769 rm -f core conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14771 fi
14772
14773
14774 CFLAGS="$xorg_testset_save_CFLAGS"
14775
14776 eval supported=\$$cacheid
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14778 $as_echo "$supported" >&6; }
14779 if test "$supported" = "yes" ; then
14780 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14781 found="yes"
14782 fi
14783 fi
14784
14785 if test $found = "no" ; then
14786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14788 fi
14789
14790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14792 fi
14793
14794 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14795
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14797 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14798 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14799 if eval \${$cacheid+:} false; then :
14800 $as_echo_n "(cached) " >&6
14801 else
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 int i;
14805 int
14806 main ()
14807 {
14808
14809 ;
14810 return 0;
14811 }
14812 _ACEOF
14813 if ac_fn_c_try_link "$LINENO"; then :
14814 eval $cacheid=yes
14815 else
14816 eval $cacheid=no
14817 fi
14818 rm -f core conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 fi
14821
14822
14823 CFLAGS="$xorg_testset_save_CFLAGS"
14824
14825 eval supported=\$$cacheid
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827 $as_echo "$supported" >&6; }
14828 if test "$supported" = "yes" ; then
14829 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14830 found="yes"
14831 fi
14832 fi
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848 xorg_testset_save_CFLAGS="$CFLAGS"
14849
14850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14853 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14854 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14859 int i;
14860 _ACEOF
14861 if ac_fn_c_try_compile "$LINENO"; then :
14862 xorg_cv_cc_flag_unknown_warning_option=yes
14863 else
14864 xorg_cv_cc_flag_unknown_warning_option=no
14865 fi
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 fi
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14869 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14871 CFLAGS="$xorg_testset_save_CFLAGS"
14872 fi
14873
14874 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14877 fi
14878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14880 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14881 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14886 int i;
14887 _ACEOF
14888 if ac_fn_c_try_compile "$LINENO"; then :
14889 xorg_cv_cc_flag_unused_command_line_argument=yes
14890 else
14891 xorg_cv_cc_flag_unused_command_line_argument=no
14892 fi
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 fi
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14896 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14898 CFLAGS="$xorg_testset_save_CFLAGS"
14899 fi
14900
14901 found="no"
14902
14903 if test $found = "no" ; then
14904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14906 fi
14907
14908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14910 fi
14911
14912 CFLAGS="$CFLAGS -Werror=nonnull"
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14915 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14916 cacheid=xorg_cv_cc_flag__Werror_nonnull
14917 if eval \${$cacheid+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14921 /* end confdefs.h. */
14922 int i;
14923 int
14924 main ()
14925 {
14926
14927 ;
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_link "$LINENO"; then :
14932 eval $cacheid=yes
14933 else
14934 eval $cacheid=no
14935 fi
14936 rm -f core conftest.err conftest.$ac_objext \
14937 conftest$ac_exeext conftest.$ac_ext
14938 fi
14939
14940
14941 CFLAGS="$xorg_testset_save_CFLAGS"
14942
14943 eval supported=\$$cacheid
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14945 $as_echo "$supported" >&6; }
14946 if test "$supported" = "yes" ; then
14947 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14948 found="yes"
14949 fi
14950 fi
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 xorg_testset_save_CFLAGS="$CFLAGS"
14967
14968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14971 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14972 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 int i;
14978 _ACEOF
14979 if ac_fn_c_try_compile "$LINENO"; then :
14980 xorg_cv_cc_flag_unknown_warning_option=yes
14981 else
14982 xorg_cv_cc_flag_unknown_warning_option=no
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14987 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14989 CFLAGS="$xorg_testset_save_CFLAGS"
14990 fi
14991
14992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995 fi
14996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14998 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14999 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15000 $as_echo_n "(cached) " >&6
15001 else
15002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15003 /* end confdefs.h. */
15004 int i;
15005 _ACEOF
15006 if ac_fn_c_try_compile "$LINENO"; then :
15007 xorg_cv_cc_flag_unused_command_line_argument=yes
15008 else
15009 xorg_cv_cc_flag_unused_command_line_argument=no
15010 fi
15011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15014 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15016 CFLAGS="$xorg_testset_save_CFLAGS"
15017 fi
15018
15019 found="no"
15020
15021 if test $found = "no" ; then
15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15024 fi
15025
15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15028 fi
15029
15030 CFLAGS="$CFLAGS -Werror=init-self"
15031
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15033 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15034 cacheid=xorg_cv_cc_flag__Werror_init_self
15035 if eval \${$cacheid+:} false; then :
15036 $as_echo_n "(cached) " >&6
15037 else
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 int i;
15041 int
15042 main ()
15043 {
15044
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 eval $cacheid=yes
15051 else
15052 eval $cacheid=no
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056 fi
15057
15058
15059 CFLAGS="$xorg_testset_save_CFLAGS"
15060
15061 eval supported=\$$cacheid
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15063 $as_echo "$supported" >&6; }
15064 if test "$supported" = "yes" ; then
15065 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15066 found="yes"
15067 fi
15068 fi
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084 xorg_testset_save_CFLAGS="$CFLAGS"
15085
15086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15089 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15090 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15091 $as_echo_n "(cached) " >&6
15092 else
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15095 int i;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 xorg_cv_cc_flag_unknown_warning_option=yes
15099 else
15100 xorg_cv_cc_flag_unknown_warning_option=no
15101 fi
15102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15103 fi
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15105 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15107 CFLAGS="$xorg_testset_save_CFLAGS"
15108 fi
15109
15110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15113 fi
15114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15116 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15117 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"; then :
15125 xorg_cv_cc_flag_unused_command_line_argument=yes
15126 else
15127 xorg_cv_cc_flag_unused_command_line_argument=no
15128 fi
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15132 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15134 CFLAGS="$xorg_testset_save_CFLAGS"
15135 fi
15136
15137 found="no"
15138
15139 if test $found = "no" ; then
15140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15142 fi
15143
15144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15146 fi
15147
15148 CFLAGS="$CFLAGS -Werror=main"
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15151 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15152 cacheid=xorg_cv_cc_flag__Werror_main
15153 if eval \${$cacheid+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158 int i;
15159 int
15160 main ()
15161 {
15162
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_link "$LINENO"; then :
15168 eval $cacheid=yes
15169 else
15170 eval $cacheid=no
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext \
15173 conftest$ac_exeext conftest.$ac_ext
15174 fi
15175
15176
15177 CFLAGS="$xorg_testset_save_CFLAGS"
15178
15179 eval supported=\$$cacheid
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15181 $as_echo "$supported" >&6; }
15182 if test "$supported" = "yes" ; then
15183 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15184 found="yes"
15185 fi
15186 fi
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202 xorg_testset_save_CFLAGS="$CFLAGS"
15203
15204 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15207 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15208 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 int i;
15214 _ACEOF
15215 if ac_fn_c_try_compile "$LINENO"; then :
15216 xorg_cv_cc_flag_unknown_warning_option=yes
15217 else
15218 xorg_cv_cc_flag_unknown_warning_option=no
15219 fi
15220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221 fi
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15223 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15225 CFLAGS="$xorg_testset_save_CFLAGS"
15226 fi
15227
15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15231 fi
15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15234 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15235 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15236 $as_echo_n "(cached) " >&6
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 int i;
15241 _ACEOF
15242 if ac_fn_c_try_compile "$LINENO"; then :
15243 xorg_cv_cc_flag_unused_command_line_argument=yes
15244 else
15245 xorg_cv_cc_flag_unused_command_line_argument=no
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15250 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15252 CFLAGS="$xorg_testset_save_CFLAGS"
15253 fi
15254
15255 found="no"
15256
15257 if test $found = "no" ; then
15258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15260 fi
15261
15262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15264 fi
15265
15266 CFLAGS="$CFLAGS -Werror=missing-braces"
15267
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15269 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15270 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15271 if eval \${$cacheid+:} false; then :
15272 $as_echo_n "(cached) " >&6
15273 else
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276 int i;
15277 int
15278 main ()
15279 {
15280
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 eval $cacheid=yes
15287 else
15288 eval $cacheid=no
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 fi
15293
15294
15295 CFLAGS="$xorg_testset_save_CFLAGS"
15296
15297 eval supported=\$$cacheid
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15299 $as_echo "$supported" >&6; }
15300 if test "$supported" = "yes" ; then
15301 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15302 found="yes"
15303 fi
15304 fi
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320 xorg_testset_save_CFLAGS="$CFLAGS"
15321
15322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15325 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15326 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15327 $as_echo_n "(cached) " >&6
15328 else
15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15331 int i;
15332 _ACEOF
15333 if ac_fn_c_try_compile "$LINENO"; then :
15334 xorg_cv_cc_flag_unknown_warning_option=yes
15335 else
15336 xorg_cv_cc_flag_unknown_warning_option=no
15337 fi
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 fi
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15341 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15343 CFLAGS="$xorg_testset_save_CFLAGS"
15344 fi
15345
15346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15349 fi
15350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15352 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15353 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 int i;
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"; then :
15361 xorg_cv_cc_flag_unused_command_line_argument=yes
15362 else
15363 xorg_cv_cc_flag_unused_command_line_argument=no
15364 fi
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 fi
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15368 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15370 CFLAGS="$xorg_testset_save_CFLAGS"
15371 fi
15372
15373 found="no"
15374
15375 if test $found = "no" ; then
15376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15378 fi
15379
15380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15382 fi
15383
15384 CFLAGS="$CFLAGS -Werror=sequence-point"
15385
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15387 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15388 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15389 if eval \${$cacheid+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15394 int i;
15395 int
15396 main ()
15397 {
15398
15399 ;
15400 return 0;
15401 }
15402 _ACEOF
15403 if ac_fn_c_try_link "$LINENO"; then :
15404 eval $cacheid=yes
15405 else
15406 eval $cacheid=no
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext \
15409 conftest$ac_exeext conftest.$ac_ext
15410 fi
15411
15412
15413 CFLAGS="$xorg_testset_save_CFLAGS"
15414
15415 eval supported=\$$cacheid
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15417 $as_echo "$supported" >&6; }
15418 if test "$supported" = "yes" ; then
15419 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15420 found="yes"
15421 fi
15422 fi
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438 xorg_testset_save_CFLAGS="$CFLAGS"
15439
15440 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15443 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15444 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15445 $as_echo_n "(cached) " >&6
15446 else
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 int i;
15450 _ACEOF
15451 if ac_fn_c_try_compile "$LINENO"; then :
15452 xorg_cv_cc_flag_unknown_warning_option=yes
15453 else
15454 xorg_cv_cc_flag_unknown_warning_option=no
15455 fi
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 fi
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15459 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15461 CFLAGS="$xorg_testset_save_CFLAGS"
15462 fi
15463
15464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15467 fi
15468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15470 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15471 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15472 $as_echo_n "(cached) " >&6
15473 else
15474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475 /* end confdefs.h. */
15476 int i;
15477 _ACEOF
15478 if ac_fn_c_try_compile "$LINENO"; then :
15479 xorg_cv_cc_flag_unused_command_line_argument=yes
15480 else
15481 xorg_cv_cc_flag_unused_command_line_argument=no
15482 fi
15483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15484 fi
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15486 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15488 CFLAGS="$xorg_testset_save_CFLAGS"
15489 fi
15490
15491 found="no"
15492
15493 if test $found = "no" ; then
15494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15496 fi
15497
15498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15500 fi
15501
15502 CFLAGS="$CFLAGS -Werror=return-type"
15503
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15505 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15506 cacheid=xorg_cv_cc_flag__Werror_return_type
15507 if eval \${$cacheid+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15512 int i;
15513 int
15514 main ()
15515 {
15516
15517 ;
15518 return 0;
15519 }
15520 _ACEOF
15521 if ac_fn_c_try_link "$LINENO"; then :
15522 eval $cacheid=yes
15523 else
15524 eval $cacheid=no
15525 fi
15526 rm -f core conftest.err conftest.$ac_objext \
15527 conftest$ac_exeext conftest.$ac_ext
15528 fi
15529
15530
15531 CFLAGS="$xorg_testset_save_CFLAGS"
15532
15533 eval supported=\$$cacheid
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15535 $as_echo "$supported" >&6; }
15536 if test "$supported" = "yes" ; then
15537 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15538 found="yes"
15539 fi
15540 fi
15541
15542 if test $found = "no" ; then
15543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15545 fi
15546
15547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15549 fi
15550
15551 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15552
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15554 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15555 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15556 if eval \${$cacheid+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 int i;
15562 int
15563 main ()
15564 {
15565
15566 ;
15567 return 0;
15568 }
15569 _ACEOF
15570 if ac_fn_c_try_link "$LINENO"; then :
15571 eval $cacheid=yes
15572 else
15573 eval $cacheid=no
15574 fi
15575 rm -f core conftest.err conftest.$ac_objext \
15576 conftest$ac_exeext conftest.$ac_ext
15577 fi
15578
15579
15580 CFLAGS="$xorg_testset_save_CFLAGS"
15581
15582 eval supported=\$$cacheid
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15584 $as_echo "$supported" >&6; }
15585 if test "$supported" = "yes" ; then
15586 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15587 found="yes"
15588 fi
15589 fi
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605 xorg_testset_save_CFLAGS="$CFLAGS"
15606
15607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15615 /* end confdefs.h. */
15616 int i;
15617 _ACEOF
15618 if ac_fn_c_try_compile "$LINENO"; then :
15619 xorg_cv_cc_flag_unknown_warning_option=yes
15620 else
15621 xorg_cv_cc_flag_unknown_warning_option=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15628 CFLAGS="$xorg_testset_save_CFLAGS"
15629 fi
15630
15631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15634 fi
15635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 xorg_cv_cc_flag_unused_command_line_argument=yes
15647 else
15648 xorg_cv_cc_flag_unused_command_line_argument=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15655 CFLAGS="$xorg_testset_save_CFLAGS"
15656 fi
15657
15658 found="no"
15659
15660 if test $found = "no" ; then
15661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15663 fi
15664
15665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15667 fi
15668
15669 CFLAGS="$CFLAGS -Werror=trigraphs"
15670
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15672 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15673 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15674 if eval \${$cacheid+:} false; then :
15675 $as_echo_n "(cached) " >&6
15676 else
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 int i;
15680 int
15681 main ()
15682 {
15683
15684 ;
15685 return 0;
15686 }
15687 _ACEOF
15688 if ac_fn_c_try_link "$LINENO"; then :
15689 eval $cacheid=yes
15690 else
15691 eval $cacheid=no
15692 fi
15693 rm -f core conftest.err conftest.$ac_objext \
15694 conftest$ac_exeext conftest.$ac_ext
15695 fi
15696
15697
15698 CFLAGS="$xorg_testset_save_CFLAGS"
15699
15700 eval supported=\$$cacheid
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15702 $as_echo "$supported" >&6; }
15703 if test "$supported" = "yes" ; then
15704 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15705 found="yes"
15706 fi
15707 fi
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723 xorg_testset_save_CFLAGS="$CFLAGS"
15724
15725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15730 $as_echo_n "(cached) " >&6
15731 else
15732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15733 /* end confdefs.h. */
15734 int i;
15735 _ACEOF
15736 if ac_fn_c_try_compile "$LINENO"; then :
15737 xorg_cv_cc_flag_unknown_warning_option=yes
15738 else
15739 xorg_cv_cc_flag_unknown_warning_option=no
15740 fi
15741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15742 fi
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15746 CFLAGS="$xorg_testset_save_CFLAGS"
15747 fi
15748
15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15752 fi
15753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15761 int i;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15764 xorg_cv_cc_flag_unused_command_line_argument=yes
15765 else
15766 xorg_cv_cc_flag_unused_command_line_argument=no
15767 fi
15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15773 CFLAGS="$xorg_testset_save_CFLAGS"
15774 fi
15775
15776 found="no"
15777
15778 if test $found = "no" ; then
15779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15781 fi
15782
15783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785 fi
15786
15787 CFLAGS="$CFLAGS -Werror=array-bounds"
15788
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15790 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15791 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15792 if eval \${$cacheid+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15796 /* end confdefs.h. */
15797 int i;
15798 int
15799 main ()
15800 {
15801
15802 ;
15803 return 0;
15804 }
15805 _ACEOF
15806 if ac_fn_c_try_link "$LINENO"; then :
15807 eval $cacheid=yes
15808 else
15809 eval $cacheid=no
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15813 fi
15814
15815
15816 CFLAGS="$xorg_testset_save_CFLAGS"
15817
15818 eval supported=\$$cacheid
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15820 $as_echo "$supported" >&6; }
15821 if test "$supported" = "yes" ; then
15822 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15823 found="yes"
15824 fi
15825 fi
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841 xorg_testset_save_CFLAGS="$CFLAGS"
15842
15843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15848 $as_echo_n "(cached) " >&6
15849 else
15850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851 /* end confdefs.h. */
15852 int i;
15853 _ACEOF
15854 if ac_fn_c_try_compile "$LINENO"; then :
15855 xorg_cv_cc_flag_unknown_warning_option=yes
15856 else
15857 xorg_cv_cc_flag_unknown_warning_option=no
15858 fi
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 fi
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15864 CFLAGS="$xorg_testset_save_CFLAGS"
15865 fi
15866
15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15870 fi
15871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15875 $as_echo_n "(cached) " >&6
15876 else
15877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878 /* end confdefs.h. */
15879 int i;
15880 _ACEOF
15881 if ac_fn_c_try_compile "$LINENO"; then :
15882 xorg_cv_cc_flag_unused_command_line_argument=yes
15883 else
15884 xorg_cv_cc_flag_unused_command_line_argument=no
15885 fi
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 fi
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15891 CFLAGS="$xorg_testset_save_CFLAGS"
15892 fi
15893
15894 found="no"
15895
15896 if test $found = "no" ; then
15897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15899 fi
15900
15901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15903 fi
15904
15905 CFLAGS="$CFLAGS -Werror=write-strings"
15906
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15908 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15909 cacheid=xorg_cv_cc_flag__Werror_write_strings
15910 if eval \${$cacheid+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 int i;
15916 int
15917 main ()
15918 {
15919
15920 ;
15921 return 0;
15922 }
15923 _ACEOF
15924 if ac_fn_c_try_link "$LINENO"; then :
15925 eval $cacheid=yes
15926 else
15927 eval $cacheid=no
15928 fi
15929 rm -f core conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
15931 fi
15932
15933
15934 CFLAGS="$xorg_testset_save_CFLAGS"
15935
15936 eval supported=\$$cacheid
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15938 $as_echo "$supported" >&6; }
15939 if test "$supported" = "yes" ; then
15940 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15941 found="yes"
15942 fi
15943 fi
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959 xorg_testset_save_CFLAGS="$CFLAGS"
15960
15961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15966 $as_echo_n "(cached) " >&6
15967 else
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h. */
15970 int i;
15971 _ACEOF
15972 if ac_fn_c_try_compile "$LINENO"; then :
15973 xorg_cv_cc_flag_unknown_warning_option=yes
15974 else
15975 xorg_cv_cc_flag_unknown_warning_option=no
15976 fi
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 fi
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15982 CFLAGS="$xorg_testset_save_CFLAGS"
15983 fi
15984
15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15988 fi
15989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15993 $as_echo_n "(cached) " >&6
15994 else
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 int i;
15998 _ACEOF
15999 if ac_fn_c_try_compile "$LINENO"; then :
16000 xorg_cv_cc_flag_unused_command_line_argument=yes
16001 else
16002 xorg_cv_cc_flag_unused_command_line_argument=no
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16005 fi
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16009 CFLAGS="$xorg_testset_save_CFLAGS"
16010 fi
16011
16012 found="no"
16013
16014 if test $found = "no" ; then
16015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16017 fi
16018
16019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16021 fi
16022
16023 CFLAGS="$CFLAGS -Werror=address"
16024
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16026 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16027 cacheid=xorg_cv_cc_flag__Werror_address
16028 if eval \${$cacheid+:} false; then :
16029 $as_echo_n "(cached) " >&6
16030 else
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 int i;
16034 int
16035 main ()
16036 {
16037
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 if ac_fn_c_try_link "$LINENO"; then :
16043 eval $cacheid=yes
16044 else
16045 eval $cacheid=no
16046 fi
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 fi
16050
16051
16052 CFLAGS="$xorg_testset_save_CFLAGS"
16053
16054 eval supported=\$$cacheid
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16056 $as_echo "$supported" >&6; }
16057 if test "$supported" = "yes" ; then
16058 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16059 found="yes"
16060 fi
16061 fi
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077 xorg_testset_save_CFLAGS="$CFLAGS"
16078
16079 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16084 $as_echo_n "(cached) " >&6
16085 else
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088 int i;
16089 _ACEOF
16090 if ac_fn_c_try_compile "$LINENO"; then :
16091 xorg_cv_cc_flag_unknown_warning_option=yes
16092 else
16093 xorg_cv_cc_flag_unknown_warning_option=no
16094 fi
16095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16096 fi
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16100 CFLAGS="$xorg_testset_save_CFLAGS"
16101 fi
16102
16103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16106 fi
16107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 int i;
16116 _ACEOF
16117 if ac_fn_c_try_compile "$LINENO"; then :
16118 xorg_cv_cc_flag_unused_command_line_argument=yes
16119 else
16120 xorg_cv_cc_flag_unused_command_line_argument=no
16121 fi
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123 fi
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16127 CFLAGS="$xorg_testset_save_CFLAGS"
16128 fi
16129
16130 found="no"
16131
16132 if test $found = "no" ; then
16133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16135 fi
16136
16137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16139 fi
16140
16141 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16142
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16144 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16145 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16146 if eval \${$cacheid+:} false; then :
16147 $as_echo_n "(cached) " >&6
16148 else
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16151 int i;
16152 int
16153 main ()
16154 {
16155
16156 ;
16157 return 0;
16158 }
16159 _ACEOF
16160 if ac_fn_c_try_link "$LINENO"; then :
16161 eval $cacheid=yes
16162 else
16163 eval $cacheid=no
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16167 fi
16168
16169
16170 CFLAGS="$xorg_testset_save_CFLAGS"
16171
16172 eval supported=\$$cacheid
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16174 $as_echo "$supported" >&6; }
16175 if test "$supported" = "yes" ; then
16176 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16177 found="yes"
16178 fi
16179 fi
16180
16181 if test $found = "no" ; then
16182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16184 fi
16185
16186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16188 fi
16189
16190 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16191
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16193 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16194 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16195 if eval \${$cacheid+:} false; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16200 int i;
16201 int
16202 main ()
16203 {
16204
16205 ;
16206 return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_c_try_link "$LINENO"; then :
16210 eval $cacheid=yes
16211 else
16212 eval $cacheid=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 fi
16217
16218
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16220
16221 eval supported=\$$cacheid
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16223 $as_echo "$supported" >&6; }
16224 if test "$supported" = "yes" ; then
16225 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16226 found="yes"
16227 fi
16228 fi
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244 xorg_testset_save_CFLAGS="$CFLAGS"
16245
16246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16249 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16250 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 int i;
16256 _ACEOF
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258 xorg_cv_cc_flag_unknown_warning_option=yes
16259 else
16260 xorg_cv_cc_flag_unknown_warning_option=no
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263 fi
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16265 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16267 CFLAGS="$xorg_testset_save_CFLAGS"
16268 fi
16269
16270 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16273 fi
16274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16276 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16277 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16278 $as_echo_n "(cached) " >&6
16279 else
16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16281 /* end confdefs.h. */
16282 int i;
16283 _ACEOF
16284 if ac_fn_c_try_compile "$LINENO"; then :
16285 xorg_cv_cc_flag_unused_command_line_argument=yes
16286 else
16287 xorg_cv_cc_flag_unused_command_line_argument=no
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16292 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16294 CFLAGS="$xorg_testset_save_CFLAGS"
16295 fi
16296
16297 found="no"
16298
16299 if test $found = "no" ; then
16300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16302 fi
16303
16304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16306 fi
16307
16308 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16309
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16311 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16312 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16313 if eval \${$cacheid+:} false; then :
16314 $as_echo_n "(cached) " >&6
16315 else
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16318 int i;
16319 int
16320 main ()
16321 {
16322
16323 ;
16324 return 0;
16325 }
16326 _ACEOF
16327 if ac_fn_c_try_link "$LINENO"; then :
16328 eval $cacheid=yes
16329 else
16330 eval $cacheid=no
16331 fi
16332 rm -f core conftest.err conftest.$ac_objext \
16333 conftest$ac_exeext conftest.$ac_ext
16334 fi
16335
16336
16337 CFLAGS="$xorg_testset_save_CFLAGS"
16338
16339 eval supported=\$$cacheid
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16341 $as_echo "$supported" >&6; }
16342 if test "$supported" = "yes" ; then
16343 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16344 found="yes"
16345 fi
16346 fi
16347
16348 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16349 else
16350 { $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
16351 $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;}
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365 xorg_testset_save_CFLAGS="$CFLAGS"
16366
16367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16370 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16371 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375 /* end confdefs.h. */
16376 int i;
16377 _ACEOF
16378 if ac_fn_c_try_compile "$LINENO"; then :
16379 xorg_cv_cc_flag_unknown_warning_option=yes
16380 else
16381 xorg_cv_cc_flag_unknown_warning_option=no
16382 fi
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 fi
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16386 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16388 CFLAGS="$xorg_testset_save_CFLAGS"
16389 fi
16390
16391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16394 fi
16395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16397 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16398 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16399 $as_echo_n "(cached) " >&6
16400 else
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403 int i;
16404 _ACEOF
16405 if ac_fn_c_try_compile "$LINENO"; then :
16406 xorg_cv_cc_flag_unused_command_line_argument=yes
16407 else
16408 xorg_cv_cc_flag_unused_command_line_argument=no
16409 fi
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16413 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16415 CFLAGS="$xorg_testset_save_CFLAGS"
16416 fi
16417
16418 found="no"
16419
16420 if test $found = "no" ; then
16421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16423 fi
16424
16425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16427 fi
16428
16429 CFLAGS="$CFLAGS -Wimplicit"
16430
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16432 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16433 cacheid=xorg_cv_cc_flag__Wimplicit
16434 if eval \${$cacheid+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 int i;
16440 int
16441 main ()
16442 {
16443
16444 ;
16445 return 0;
16446 }
16447 _ACEOF
16448 if ac_fn_c_try_link "$LINENO"; then :
16449 eval $cacheid=yes
16450 else
16451 eval $cacheid=no
16452 fi
16453 rm -f core conftest.err conftest.$ac_objext \
16454 conftest$ac_exeext conftest.$ac_ext
16455 fi
16456
16457
16458 CFLAGS="$xorg_testset_save_CFLAGS"
16459
16460 eval supported=\$$cacheid
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16462 $as_echo "$supported" >&6; }
16463 if test "$supported" = "yes" ; then
16464 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16465 found="yes"
16466 fi
16467 fi
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483 xorg_testset_save_CFLAGS="$CFLAGS"
16484
16485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16488 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16489 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h. */
16494 int i;
16495 _ACEOF
16496 if ac_fn_c_try_compile "$LINENO"; then :
16497 xorg_cv_cc_flag_unknown_warning_option=yes
16498 else
16499 xorg_cv_cc_flag_unknown_warning_option=no
16500 fi
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16504 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16506 CFLAGS="$xorg_testset_save_CFLAGS"
16507 fi
16508
16509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16512 fi
16513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16515 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16516 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16517 $as_echo_n "(cached) " >&6
16518 else
16519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520 /* end confdefs.h. */
16521 int i;
16522 _ACEOF
16523 if ac_fn_c_try_compile "$LINENO"; then :
16524 xorg_cv_cc_flag_unused_command_line_argument=yes
16525 else
16526 xorg_cv_cc_flag_unused_command_line_argument=no
16527 fi
16528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16531 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16533 CFLAGS="$xorg_testset_save_CFLAGS"
16534 fi
16535
16536 found="no"
16537
16538 if test $found = "no" ; then
16539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16541 fi
16542
16543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16545 fi
16546
16547 CFLAGS="$CFLAGS -Wnonnull"
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16550 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16551 cacheid=xorg_cv_cc_flag__Wnonnull
16552 if eval \${$cacheid+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 int i;
16558 int
16559 main ()
16560 {
16561
16562 ;
16563 return 0;
16564 }
16565 _ACEOF
16566 if ac_fn_c_try_link "$LINENO"; then :
16567 eval $cacheid=yes
16568 else
16569 eval $cacheid=no
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16573 fi
16574
16575
16576 CFLAGS="$xorg_testset_save_CFLAGS"
16577
16578 eval supported=\$$cacheid
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16580 $as_echo "$supported" >&6; }
16581 if test "$supported" = "yes" ; then
16582 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16583 found="yes"
16584 fi
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 xorg_testset_save_CFLAGS="$CFLAGS"
16602
16603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16606 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16607 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16612 int i;
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615 xorg_cv_cc_flag_unknown_warning_option=yes
16616 else
16617 xorg_cv_cc_flag_unknown_warning_option=no
16618 fi
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16622 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16624 CFLAGS="$xorg_testset_save_CFLAGS"
16625 fi
16626
16627 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16630 fi
16631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16633 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16634 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 int i;
16640 _ACEOF
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642 xorg_cv_cc_flag_unused_command_line_argument=yes
16643 else
16644 xorg_cv_cc_flag_unused_command_line_argument=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 fi
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16649 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16651 CFLAGS="$xorg_testset_save_CFLAGS"
16652 fi
16653
16654 found="no"
16655
16656 if test $found = "no" ; then
16657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16659 fi
16660
16661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16663 fi
16664
16665 CFLAGS="$CFLAGS -Winit-self"
16666
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16668 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16669 cacheid=xorg_cv_cc_flag__Winit_self
16670 if eval \${$cacheid+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 int
16677 main ()
16678 {
16679
16680 ;
16681 return 0;
16682 }
16683 _ACEOF
16684 if ac_fn_c_try_link "$LINENO"; then :
16685 eval $cacheid=yes
16686 else
16687 eval $cacheid=no
16688 fi
16689 rm -f core conftest.err conftest.$ac_objext \
16690 conftest$ac_exeext conftest.$ac_ext
16691 fi
16692
16693
16694 CFLAGS="$xorg_testset_save_CFLAGS"
16695
16696 eval supported=\$$cacheid
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16698 $as_echo "$supported" >&6; }
16699 if test "$supported" = "yes" ; then
16700 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16701 found="yes"
16702 fi
16703 fi
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719 xorg_testset_save_CFLAGS="$CFLAGS"
16720
16721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16724 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16725 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16726 $as_echo_n "(cached) " >&6
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 int i;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 xorg_cv_cc_flag_unknown_warning_option=yes
16734 else
16735 xorg_cv_cc_flag_unknown_warning_option=no
16736 fi
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 fi
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16740 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16742 CFLAGS="$xorg_testset_save_CFLAGS"
16743 fi
16744
16745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16748 fi
16749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16751 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16752 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16753 $as_echo_n "(cached) " >&6
16754 else
16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756 /* end confdefs.h. */
16757 int i;
16758 _ACEOF
16759 if ac_fn_c_try_compile "$LINENO"; then :
16760 xorg_cv_cc_flag_unused_command_line_argument=yes
16761 else
16762 xorg_cv_cc_flag_unused_command_line_argument=no
16763 fi
16764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16767 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16769 CFLAGS="$xorg_testset_save_CFLAGS"
16770 fi
16771
16772 found="no"
16773
16774 if test $found = "no" ; then
16775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16777 fi
16778
16779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16781 fi
16782
16783 CFLAGS="$CFLAGS -Wmain"
16784
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16786 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16787 cacheid=xorg_cv_cc_flag__Wmain
16788 if eval \${$cacheid+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 int i;
16794 int
16795 main ()
16796 {
16797
16798 ;
16799 return 0;
16800 }
16801 _ACEOF
16802 if ac_fn_c_try_link "$LINENO"; then :
16803 eval $cacheid=yes
16804 else
16805 eval $cacheid=no
16806 fi
16807 rm -f core conftest.err conftest.$ac_objext \
16808 conftest$ac_exeext conftest.$ac_ext
16809 fi
16810
16811
16812 CFLAGS="$xorg_testset_save_CFLAGS"
16813
16814 eval supported=\$$cacheid
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16816 $as_echo "$supported" >&6; }
16817 if test "$supported" = "yes" ; then
16818 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16819 found="yes"
16820 fi
16821 fi
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837 xorg_testset_save_CFLAGS="$CFLAGS"
16838
16839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16844 $as_echo_n "(cached) " >&6
16845 else
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int i;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"; then :
16851 xorg_cv_cc_flag_unknown_warning_option=yes
16852 else
16853 xorg_cv_cc_flag_unknown_warning_option=no
16854 fi
16855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16856 fi
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16860 CFLAGS="$xorg_testset_save_CFLAGS"
16861 fi
16862
16863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16866 fi
16867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 int i;
16876 _ACEOF
16877 if ac_fn_c_try_compile "$LINENO"; then :
16878 xorg_cv_cc_flag_unused_command_line_argument=yes
16879 else
16880 xorg_cv_cc_flag_unused_command_line_argument=no
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16887 CFLAGS="$xorg_testset_save_CFLAGS"
16888 fi
16889
16890 found="no"
16891
16892 if test $found = "no" ; then
16893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16895 fi
16896
16897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16899 fi
16900
16901 CFLAGS="$CFLAGS -Wmissing-braces"
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16904 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16905 cacheid=xorg_cv_cc_flag__Wmissing_braces
16906 if eval \${$cacheid+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 int i;
16912 int
16913 main ()
16914 {
16915
16916 ;
16917 return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 eval $cacheid=yes
16922 else
16923 eval $cacheid=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 fi
16928
16929
16930 CFLAGS="$xorg_testset_save_CFLAGS"
16931
16932 eval supported=\$$cacheid
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16934 $as_echo "$supported" >&6; }
16935 if test "$supported" = "yes" ; then
16936 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16937 found="yes"
16938 fi
16939 fi
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955 xorg_testset_save_CFLAGS="$CFLAGS"
16956
16957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16962 $as_echo_n "(cached) " >&6
16963 else
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 _ACEOF
16968 if ac_fn_c_try_compile "$LINENO"; then :
16969 xorg_cv_cc_flag_unknown_warning_option=yes
16970 else
16971 xorg_cv_cc_flag_unknown_warning_option=no
16972 fi
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16978 CFLAGS="$xorg_testset_save_CFLAGS"
16979 fi
16980
16981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16984 fi
16985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16989 $as_echo_n "(cached) " >&6
16990 else
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992 /* end confdefs.h. */
16993 int i;
16994 _ACEOF
16995 if ac_fn_c_try_compile "$LINENO"; then :
16996 xorg_cv_cc_flag_unused_command_line_argument=yes
16997 else
16998 xorg_cv_cc_flag_unused_command_line_argument=no
16999 fi
17000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17001 fi
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17005 CFLAGS="$xorg_testset_save_CFLAGS"
17006 fi
17007
17008 found="no"
17009
17010 if test $found = "no" ; then
17011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17013 fi
17014
17015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17017 fi
17018
17019 CFLAGS="$CFLAGS -Wsequence-point"
17020
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17022 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17023 cacheid=xorg_cv_cc_flag__Wsequence_point
17024 if eval \${$cacheid+:} false; then :
17025 $as_echo_n "(cached) " >&6
17026 else
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 int i;
17030 int
17031 main ()
17032 {
17033
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 if ac_fn_c_try_link "$LINENO"; then :
17039 eval $cacheid=yes
17040 else
17041 eval $cacheid=no
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext \
17044 conftest$ac_exeext conftest.$ac_ext
17045 fi
17046
17047
17048 CFLAGS="$xorg_testset_save_CFLAGS"
17049
17050 eval supported=\$$cacheid
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17052 $as_echo "$supported" >&6; }
17053 if test "$supported" = "yes" ; then
17054 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17055 found="yes"
17056 fi
17057 fi
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073 xorg_testset_save_CFLAGS="$CFLAGS"
17074
17075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17084 int i;
17085 _ACEOF
17086 if ac_fn_c_try_compile "$LINENO"; then :
17087 xorg_cv_cc_flag_unknown_warning_option=yes
17088 else
17089 xorg_cv_cc_flag_unknown_warning_option=no
17090 fi
17091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17092 fi
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17096 CFLAGS="$xorg_testset_save_CFLAGS"
17097 fi
17098
17099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17102 fi
17103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17107 $as_echo_n "(cached) " >&6
17108 else
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 int i;
17112 _ACEOF
17113 if ac_fn_c_try_compile "$LINENO"; then :
17114 xorg_cv_cc_flag_unused_command_line_argument=yes
17115 else
17116 xorg_cv_cc_flag_unused_command_line_argument=no
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 fi
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17123 CFLAGS="$xorg_testset_save_CFLAGS"
17124 fi
17125
17126 found="no"
17127
17128 if test $found = "no" ; then
17129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17131 fi
17132
17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17135 fi
17136
17137 CFLAGS="$CFLAGS -Wreturn-type"
17138
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17140 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17141 cacheid=xorg_cv_cc_flag__Wreturn_type
17142 if eval \${$cacheid+:} false; then :
17143 $as_echo_n "(cached) " >&6
17144 else
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17147 int i;
17148 int
17149 main ()
17150 {
17151
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 if ac_fn_c_try_link "$LINENO"; then :
17157 eval $cacheid=yes
17158 else
17159 eval $cacheid=no
17160 fi
17161 rm -f core conftest.err conftest.$ac_objext \
17162 conftest$ac_exeext conftest.$ac_ext
17163 fi
17164
17165
17166 CFLAGS="$xorg_testset_save_CFLAGS"
17167
17168 eval supported=\$$cacheid
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17170 $as_echo "$supported" >&6; }
17171 if test "$supported" = "yes" ; then
17172 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17173 found="yes"
17174 fi
17175 fi
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191 xorg_testset_save_CFLAGS="$CFLAGS"
17192
17193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17202 int i;
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"; then :
17205 xorg_cv_cc_flag_unknown_warning_option=yes
17206 else
17207 xorg_cv_cc_flag_unknown_warning_option=no
17208 fi
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17214 CFLAGS="$xorg_testset_save_CFLAGS"
17215 fi
17216
17217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17220 fi
17221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17225 $as_echo_n "(cached) " >&6
17226 else
17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17228 /* end confdefs.h. */
17229 int i;
17230 _ACEOF
17231 if ac_fn_c_try_compile "$LINENO"; then :
17232 xorg_cv_cc_flag_unused_command_line_argument=yes
17233 else
17234 xorg_cv_cc_flag_unused_command_line_argument=no
17235 fi
17236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17237 fi
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17241 CFLAGS="$xorg_testset_save_CFLAGS"
17242 fi
17243
17244 found="no"
17245
17246 if test $found = "no" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250
17251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17253 fi
17254
17255 CFLAGS="$CFLAGS -Wtrigraphs"
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17258 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17259 cacheid=xorg_cv_cc_flag__Wtrigraphs
17260 if eval \${$cacheid+:} false; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17264 /* end confdefs.h. */
17265 int i;
17266 int
17267 main ()
17268 {
17269
17270 ;
17271 return 0;
17272 }
17273 _ACEOF
17274 if ac_fn_c_try_link "$LINENO"; then :
17275 eval $cacheid=yes
17276 else
17277 eval $cacheid=no
17278 fi
17279 rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 fi
17282
17283
17284 CFLAGS="$xorg_testset_save_CFLAGS"
17285
17286 eval supported=\$$cacheid
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17288 $as_echo "$supported" >&6; }
17289 if test "$supported" = "yes" ; then
17290 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17291 found="yes"
17292 fi
17293 fi
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309 xorg_testset_save_CFLAGS="$CFLAGS"
17310
17311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17319 /* end confdefs.h. */
17320 int i;
17321 _ACEOF
17322 if ac_fn_c_try_compile "$LINENO"; then :
17323 xorg_cv_cc_flag_unknown_warning_option=yes
17324 else
17325 xorg_cv_cc_flag_unknown_warning_option=no
17326 fi
17327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328 fi
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17332 CFLAGS="$xorg_testset_save_CFLAGS"
17333 fi
17334
17335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17338 fi
17339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17343 $as_echo_n "(cached) " >&6
17344 else
17345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17346 /* end confdefs.h. */
17347 int i;
17348 _ACEOF
17349 if ac_fn_c_try_compile "$LINENO"; then :
17350 xorg_cv_cc_flag_unused_command_line_argument=yes
17351 else
17352 xorg_cv_cc_flag_unused_command_line_argument=no
17353 fi
17354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17359 CFLAGS="$xorg_testset_save_CFLAGS"
17360 fi
17361
17362 found="no"
17363
17364 if test $found = "no" ; then
17365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17367 fi
17368
17369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17371 fi
17372
17373 CFLAGS="$CFLAGS -Warray-bounds"
17374
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17376 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17377 cacheid=xorg_cv_cc_flag__Warray_bounds
17378 if eval \${$cacheid+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17382 /* end confdefs.h. */
17383 int i;
17384 int
17385 main ()
17386 {
17387
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_link "$LINENO"; then :
17393 eval $cacheid=yes
17394 else
17395 eval $cacheid=no
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext \
17398 conftest$ac_exeext conftest.$ac_ext
17399 fi
17400
17401
17402 CFLAGS="$xorg_testset_save_CFLAGS"
17403
17404 eval supported=\$$cacheid
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17406 $as_echo "$supported" >&6; }
17407 if test "$supported" = "yes" ; then
17408 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17409 found="yes"
17410 fi
17411 fi
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427 xorg_testset_save_CFLAGS="$CFLAGS"
17428
17429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17438 int i;
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441 xorg_cv_cc_flag_unknown_warning_option=yes
17442 else
17443 xorg_cv_cc_flag_unknown_warning_option=no
17444 fi
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17450 CFLAGS="$xorg_testset_save_CFLAGS"
17451 fi
17452
17453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17456 fi
17457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17461 $as_echo_n "(cached) " >&6
17462 else
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 int i;
17466 _ACEOF
17467 if ac_fn_c_try_compile "$LINENO"; then :
17468 xorg_cv_cc_flag_unused_command_line_argument=yes
17469 else
17470 xorg_cv_cc_flag_unused_command_line_argument=no
17471 fi
17472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473 fi
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17477 CFLAGS="$xorg_testset_save_CFLAGS"
17478 fi
17479
17480 found="no"
17481
17482 if test $found = "no" ; then
17483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17485 fi
17486
17487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17489 fi
17490
17491 CFLAGS="$CFLAGS -Wwrite-strings"
17492
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17494 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17495 cacheid=xorg_cv_cc_flag__Wwrite_strings
17496 if eval \${$cacheid+:} false; then :
17497 $as_echo_n "(cached) " >&6
17498 else
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17501 int i;
17502 int
17503 main ()
17504 {
17505
17506 ;
17507 return 0;
17508 }
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 eval $cacheid=yes
17512 else
17513 eval $cacheid=no
17514 fi
17515 rm -f core conftest.err conftest.$ac_objext \
17516 conftest$ac_exeext conftest.$ac_ext
17517 fi
17518
17519
17520 CFLAGS="$xorg_testset_save_CFLAGS"
17521
17522 eval supported=\$$cacheid
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17524 $as_echo "$supported" >&6; }
17525 if test "$supported" = "yes" ; then
17526 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17527 found="yes"
17528 fi
17529 fi
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545 xorg_testset_save_CFLAGS="$CFLAGS"
17546
17547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17552 $as_echo_n "(cached) " >&6
17553 else
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17556 int i;
17557 _ACEOF
17558 if ac_fn_c_try_compile "$LINENO"; then :
17559 xorg_cv_cc_flag_unknown_warning_option=yes
17560 else
17561 xorg_cv_cc_flag_unknown_warning_option=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17564 fi
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17568 CFLAGS="$xorg_testset_save_CFLAGS"
17569 fi
17570
17571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 fi
17575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 int i;
17584 _ACEOF
17585 if ac_fn_c_try_compile "$LINENO"; then :
17586 xorg_cv_cc_flag_unused_command_line_argument=yes
17587 else
17588 xorg_cv_cc_flag_unused_command_line_argument=no
17589 fi
17590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17591 fi
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17595 CFLAGS="$xorg_testset_save_CFLAGS"
17596 fi
17597
17598 found="no"
17599
17600 if test $found = "no" ; then
17601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17603 fi
17604
17605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17607 fi
17608
17609 CFLAGS="$CFLAGS -Waddress"
17610
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17612 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17613 cacheid=xorg_cv_cc_flag__Waddress
17614 if eval \${$cacheid+:} false; then :
17615 $as_echo_n "(cached) " >&6
17616 else
17617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17618 /* end confdefs.h. */
17619 int i;
17620 int
17621 main ()
17622 {
17623
17624 ;
17625 return 0;
17626 }
17627 _ACEOF
17628 if ac_fn_c_try_link "$LINENO"; then :
17629 eval $cacheid=yes
17630 else
17631 eval $cacheid=no
17632 fi
17633 rm -f core conftest.err conftest.$ac_objext \
17634 conftest$ac_exeext conftest.$ac_ext
17635 fi
17636
17637
17638 CFLAGS="$xorg_testset_save_CFLAGS"
17639
17640 eval supported=\$$cacheid
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17642 $as_echo "$supported" >&6; }
17643 if test "$supported" = "yes" ; then
17644 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17645 found="yes"
17646 fi
17647 fi
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663 xorg_testset_save_CFLAGS="$CFLAGS"
17664
17665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17668 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17669 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17670 $as_echo_n "(cached) " >&6
17671 else
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17674 int i;
17675 _ACEOF
17676 if ac_fn_c_try_compile "$LINENO"; then :
17677 xorg_cv_cc_flag_unknown_warning_option=yes
17678 else
17679 xorg_cv_cc_flag_unknown_warning_option=no
17680 fi
17681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17682 fi
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17684 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17686 CFLAGS="$xorg_testset_save_CFLAGS"
17687 fi
17688
17689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692 fi
17693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17695 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17696 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17697 $as_echo_n "(cached) " >&6
17698 else
17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h. */
17701 int i;
17702 _ACEOF
17703 if ac_fn_c_try_compile "$LINENO"; then :
17704 xorg_cv_cc_flag_unused_command_line_argument=yes
17705 else
17706 xorg_cv_cc_flag_unused_command_line_argument=no
17707 fi
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 fi
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17711 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17713 CFLAGS="$xorg_testset_save_CFLAGS"
17714 fi
17715
17716 found="no"
17717
17718 if test $found = "no" ; then
17719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17721 fi
17722
17723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17725 fi
17726
17727 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17728
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17730 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17731 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17732 if eval \${$cacheid+:} false; then :
17733 $as_echo_n "(cached) " >&6
17734 else
17735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17737 int i;
17738 int
17739 main ()
17740 {
17741
17742 ;
17743 return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_link "$LINENO"; then :
17747 eval $cacheid=yes
17748 else
17749 eval $cacheid=no
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17753 fi
17754
17755
17756 CFLAGS="$xorg_testset_save_CFLAGS"
17757
17758 eval supported=\$$cacheid
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17760 $as_echo "$supported" >&6; }
17761 if test "$supported" = "yes" ; then
17762 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17763 found="yes"
17764 fi
17765 fi
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781 xorg_testset_save_CFLAGS="$CFLAGS"
17782
17783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17786 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17787 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17788 $as_echo_n "(cached) " >&6
17789 else
17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17791 /* end confdefs.h. */
17792 int i;
17793 _ACEOF
17794 if ac_fn_c_try_compile "$LINENO"; then :
17795 xorg_cv_cc_flag_unknown_warning_option=yes
17796 else
17797 xorg_cv_cc_flag_unknown_warning_option=no
17798 fi
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 fi
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17802 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17804 CFLAGS="$xorg_testset_save_CFLAGS"
17805 fi
17806
17807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17810 fi
17811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17813 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17814 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17815 $as_echo_n "(cached) " >&6
17816 else
17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819 int i;
17820 _ACEOF
17821 if ac_fn_c_try_compile "$LINENO"; then :
17822 xorg_cv_cc_flag_unused_command_line_argument=yes
17823 else
17824 xorg_cv_cc_flag_unused_command_line_argument=no
17825 fi
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827 fi
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17829 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17831 CFLAGS="$xorg_testset_save_CFLAGS"
17832 fi
17833
17834 found="no"
17835
17836 if test $found = "no" ; then
17837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17839 fi
17840
17841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17843 fi
17844
17845 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17846
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17848 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17849 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17850 if eval \${$cacheid+:} false; then :
17851 $as_echo_n "(cached) " >&6
17852 else
17853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h. */
17855 int i;
17856 int
17857 main ()
17858 {
17859
17860 ;
17861 return 0;
17862 }
17863 _ACEOF
17864 if ac_fn_c_try_link "$LINENO"; then :
17865 eval $cacheid=yes
17866 else
17867 eval $cacheid=no
17868 fi
17869 rm -f core conftest.err conftest.$ac_objext \
17870 conftest$ac_exeext conftest.$ac_ext
17871 fi
17872
17873
17874 CFLAGS="$xorg_testset_save_CFLAGS"
17875
17876 eval supported=\$$cacheid
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17878 $as_echo "$supported" >&6; }
17879 if test "$supported" = "yes" ; then
17880 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17881 found="yes"
17882 fi
17883 fi
17884
17885
17886 fi
17887
17888
17889
17890
17891
17892
17893
17894 CWARNFLAGS="$BASE_CFLAGS"
17895 if test "x$GCC" = xyes ; then
17896 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17897 fi
17898
17899
17900
17901
17902
17903
17904
17905
17906 # Check whether --enable-strict-compilation was given.
17907 if test "${enable_strict_compilation+set}" = set; then :
17908 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17909 else
17910 STRICT_COMPILE=no
17911 fi
17912
17913
17914
17915
17916
17917
17918 STRICT_CFLAGS=""
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932 xorg_testset_save_CFLAGS="$CFLAGS"
17933
17934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17937 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17938 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17942 /* end confdefs.h. */
17943 int i;
17944 _ACEOF
17945 if ac_fn_c_try_compile "$LINENO"; then :
17946 xorg_cv_cc_flag_unknown_warning_option=yes
17947 else
17948 xorg_cv_cc_flag_unknown_warning_option=no
17949 fi
17950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17951 fi
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17953 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17955 CFLAGS="$xorg_testset_save_CFLAGS"
17956 fi
17957
17958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17961 fi
17962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17964 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17965 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17969 /* end confdefs.h. */
17970 int i;
17971 _ACEOF
17972 if ac_fn_c_try_compile "$LINENO"; then :
17973 xorg_cv_cc_flag_unused_command_line_argument=yes
17974 else
17975 xorg_cv_cc_flag_unused_command_line_argument=no
17976 fi
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 fi
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17980 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17981 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17982 CFLAGS="$xorg_testset_save_CFLAGS"
17983 fi
17984
17985 found="no"
17986
17987 if test $found = "no" ; then
17988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17990 fi
17991
17992 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17994 fi
17995
17996 CFLAGS="$CFLAGS -pedantic"
17997
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17999 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
18000 cacheid=xorg_cv_cc_flag__pedantic
18001 if eval \${$cacheid+:} false; then :
18002 $as_echo_n "(cached) " >&6
18003 else
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 int i;
18007 int
18008 main ()
18009 {
18010
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 eval $cacheid=yes
18017 else
18018 eval $cacheid=no
18019 fi
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18022 fi
18023
18024
18025 CFLAGS="$xorg_testset_save_CFLAGS"
18026
18027 eval supported=\$$cacheid
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18029 $as_echo "$supported" >&6; }
18030 if test "$supported" = "yes" ; then
18031 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18032 found="yes"
18033 fi
18034 fi
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050 xorg_testset_save_CFLAGS="$CFLAGS"
18051
18052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18055 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18056 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18057 $as_echo_n "(cached) " >&6
18058 else
18059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h. */
18061 int i;
18062 _ACEOF
18063 if ac_fn_c_try_compile "$LINENO"; then :
18064 xorg_cv_cc_flag_unknown_warning_option=yes
18065 else
18066 xorg_cv_cc_flag_unknown_warning_option=no
18067 fi
18068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18069 fi
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18071 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18073 CFLAGS="$xorg_testset_save_CFLAGS"
18074 fi
18075
18076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18079 fi
18080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18082 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18083 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18084 $as_echo_n "(cached) " >&6
18085 else
18086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087 /* end confdefs.h. */
18088 int i;
18089 _ACEOF
18090 if ac_fn_c_try_compile "$LINENO"; then :
18091 xorg_cv_cc_flag_unused_command_line_argument=yes
18092 else
18093 xorg_cv_cc_flag_unused_command_line_argument=no
18094 fi
18095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18096 fi
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18098 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18100 CFLAGS="$xorg_testset_save_CFLAGS"
18101 fi
18102
18103 found="no"
18104
18105 if test $found = "no" ; then
18106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18108 fi
18109
18110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112 fi
18113
18114 CFLAGS="$CFLAGS -Werror"
18115
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18117 $as_echo_n "checking if $CC supports -Werror... " >&6; }
18118 cacheid=xorg_cv_cc_flag__Werror
18119 if eval \${$cacheid+:} false; then :
18120 $as_echo_n "(cached) " >&6
18121 else
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18124 int i;
18125 int
18126 main ()
18127 {
18128
18129 ;
18130 return 0;
18131 }
18132 _ACEOF
18133 if ac_fn_c_try_link "$LINENO"; then :
18134 eval $cacheid=yes
18135 else
18136 eval $cacheid=no
18137 fi
18138 rm -f core conftest.err conftest.$ac_objext \
18139 conftest$ac_exeext conftest.$ac_ext
18140 fi
18141
18142
18143 CFLAGS="$xorg_testset_save_CFLAGS"
18144
18145 eval supported=\$$cacheid
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18147 $as_echo "$supported" >&6; }
18148 if test "$supported" = "yes" ; then
18149 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18150 found="yes"
18151 fi
18152 fi
18153
18154 if test $found = "no" ; then
18155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18157 fi
18158
18159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18161 fi
18162
18163 CFLAGS="$CFLAGS -errwarn"
18164
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18166 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
18167 cacheid=xorg_cv_cc_flag__errwarn
18168 if eval \${$cacheid+:} false; then :
18169 $as_echo_n "(cached) " >&6
18170 else
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173 int i;
18174 int
18175 main ()
18176 {
18177
18178 ;
18179 return 0;
18180 }
18181 _ACEOF
18182 if ac_fn_c_try_link "$LINENO"; then :
18183 eval $cacheid=yes
18184 else
18185 eval $cacheid=no
18186 fi
18187 rm -f core conftest.err conftest.$ac_objext \
18188 conftest$ac_exeext conftest.$ac_ext
18189 fi
18190
18191
18192 CFLAGS="$xorg_testset_save_CFLAGS"
18193
18194 eval supported=\$$cacheid
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18196 $as_echo "$supported" >&6; }
18197 if test "$supported" = "yes" ; then
18198 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18199 found="yes"
18200 fi
18201 fi
18202
18203
18204
18205 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18206 # activate it with -Werror, so we add it here explicitly.
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220 xorg_testset_save_CFLAGS="$CFLAGS"
18221
18222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18225 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18226 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18227 $as_echo_n "(cached) " >&6
18228 else
18229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18231 int i;
18232 _ACEOF
18233 if ac_fn_c_try_compile "$LINENO"; then :
18234 xorg_cv_cc_flag_unknown_warning_option=yes
18235 else
18236 xorg_cv_cc_flag_unknown_warning_option=no
18237 fi
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18239 fi
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18241 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18243 CFLAGS="$xorg_testset_save_CFLAGS"
18244 fi
18245
18246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18249 fi
18250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18252 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18253 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18254 $as_echo_n "(cached) " >&6
18255 else
18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18257 /* end confdefs.h. */
18258 int i;
18259 _ACEOF
18260 if ac_fn_c_try_compile "$LINENO"; then :
18261 xorg_cv_cc_flag_unused_command_line_argument=yes
18262 else
18263 xorg_cv_cc_flag_unused_command_line_argument=no
18264 fi
18265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18266 fi
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18268 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18270 CFLAGS="$xorg_testset_save_CFLAGS"
18271 fi
18272
18273 found="no"
18274
18275 if test $found = "no" ; then
18276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18278 fi
18279
18280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18282 fi
18283
18284 CFLAGS="$CFLAGS -Werror=attributes"
18285
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18287 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18288 cacheid=xorg_cv_cc_flag__Werror_attributes
18289 if eval \${$cacheid+:} false; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18293 /* end confdefs.h. */
18294 int i;
18295 int
18296 main ()
18297 {
18298
18299 ;
18300 return 0;
18301 }
18302 _ACEOF
18303 if ac_fn_c_try_link "$LINENO"; then :
18304 eval $cacheid=yes
18305 else
18306 eval $cacheid=no
18307 fi
18308 rm -f core conftest.err conftest.$ac_objext \
18309 conftest$ac_exeext conftest.$ac_ext
18310 fi
18311
18312
18313 CFLAGS="$xorg_testset_save_CFLAGS"
18314
18315 eval supported=\$$cacheid
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18317 $as_echo "$supported" >&6; }
18318 if test "$supported" = "yes" ; then
18319 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18320 found="yes"
18321 fi
18322 fi
18323
18324
18325
18326 if test "x$STRICT_COMPILE" = "xyes"; then
18327 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18328 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18329 fi
18330
18331
18332
18333
18334
18335
18336 cat >>confdefs.h <<_ACEOF
18337 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18338 _ACEOF
18339
18340 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18341 if test "x$PVM" = "x"; then
18342 PVM="0"
18343 fi
18344
18345 cat >>confdefs.h <<_ACEOF
18346 #define PACKAGE_VERSION_MINOR $PVM
18347 _ACEOF
18348
18349 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18350 if test "x$PVP" = "x"; then
18351 PVP="0"
18352 fi
18353
18354 cat >>confdefs.h <<_ACEOF
18355 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18356 _ACEOF
18357
18358
18359
18360 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18361 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18362 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18363 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18364
18365
18366
18367
18368 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18369 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18370 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18371 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18372 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18373
18374
18375
18376
18377
18378
18379 if test x$APP_MAN_SUFFIX = x ; then
18380 APP_MAN_SUFFIX=1
18381 fi
18382 if test x$APP_MAN_DIR = x ; then
18383 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18384 fi
18385
18386 if test x$LIB_MAN_SUFFIX = x ; then
18387 LIB_MAN_SUFFIX=3
18388 fi
18389 if test x$LIB_MAN_DIR = x ; then
18390 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18391 fi
18392
18393 if test x$FILE_MAN_SUFFIX = x ; then
18394 case $host_os in
18395 solaris*) FILE_MAN_SUFFIX=4 ;;
18396 *) FILE_MAN_SUFFIX=5 ;;
18397 esac
18398 fi
18399 if test x$FILE_MAN_DIR = x ; then
18400 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18401 fi
18402
18403 if test x$MISC_MAN_SUFFIX = x ; then
18404 case $host_os in
18405 solaris*) MISC_MAN_SUFFIX=5 ;;
18406 *) MISC_MAN_SUFFIX=7 ;;
18407 esac
18408 fi
18409 if test x$MISC_MAN_DIR = x ; then
18410 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18411 fi
18412
18413 if test x$DRIVER_MAN_SUFFIX = x ; then
18414 case $host_os in
18415 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18416 *) DRIVER_MAN_SUFFIX=4 ;;
18417 esac
18418 fi
18419 if test x$DRIVER_MAN_DIR = x ; then
18420 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18421 fi
18422
18423 if test x$ADMIN_MAN_SUFFIX = x ; then
18424 case $host_os in
18425 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18426 *) ADMIN_MAN_SUFFIX=8 ;;
18427 esac
18428 fi
18429 if test x$ADMIN_MAN_DIR = x ; then
18430 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18431 fi
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447 XORG_MAN_PAGE="X Version 11"
18448
18449 MAN_SUBSTS="\
18450 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18451 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18452 -e 's|__xservername__|Xorg|g' \
18453 -e 's|__xconfigfile__|xorg.conf|g' \
18454 -e 's|__projectroot__|\$(prefix)|g' \
18455 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18456 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18457 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18458 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18459 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18460 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18461 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18462
18463
18464
18465 # Check whether --enable-silent-rules was given.
18466 if test "${enable_silent_rules+set}" = set; then :
18467 enableval=$enable_silent_rules;
18468 fi
18469
18470 case $enable_silent_rules in # (((
18471 yes) AM_DEFAULT_VERBOSITY=0;;
18472 no) AM_DEFAULT_VERBOSITY=1;;
18473 *) AM_DEFAULT_VERBOSITY=0;;
18474 esac
18475 am_make=${MAKE-make}
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18477 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18478 if ${am_cv_make_support_nested_variables+:} false; then :
18479 $as_echo_n "(cached) " >&6
18480 else
18481 if $as_echo 'TRUE=$(BAR$(V))
18482 BAR0=false
18483 BAR1=true
18484 V=1
18485 am__doit:
18486 @$(TRUE)
18487 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18488 am_cv_make_support_nested_variables=yes
18489 else
18490 am_cv_make_support_nested_variables=no
18491 fi
18492 fi
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18494 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18495 if test $am_cv_make_support_nested_variables = yes; then
18496 AM_V='$(V)'
18497 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18498 else
18499 AM_V=$AM_DEFAULT_VERBOSITY
18500 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18501 fi
18502 AM_BACKSLASH='\'
18503
18504
18505
18506
18507 # Check whether --enable-docs was given.
18508 if test "${enable_docs+set}" = set; then :
18509 enableval=$enable_docs; build_docs=$enableval
18510 else
18511 build_docs=yes
18512 fi
18513
18514
18515 if test x$build_docs = xyes; then
18516 ENABLE_DOCS_TRUE=
18517 ENABLE_DOCS_FALSE='#'
18518 else
18519 ENABLE_DOCS_TRUE='#'
18520 ENABLE_DOCS_FALSE=
18521 fi
18522
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18524 $as_echo_n "checking whether to build documentation... " >&6; }
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
18526 $as_echo "$build_docs" >&6; }
18527
18528
18529
18530
18531
18532 # Check whether --with-xmlto was given.
18533 if test "${with_xmlto+set}" = set; then :
18534 withval=$with_xmlto; use_xmlto=$withval
18535 else
18536 use_xmlto=auto
18537 fi
18538
18539
18540
18541 if test "x$use_xmlto" = x"auto"; then
18542 # Extract the first word of "xmlto", so it can be a program name with args.
18543 set dummy xmlto; ac_word=$2
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18545 $as_echo_n "checking for $ac_word... " >&6; }
18546 if ${ac_cv_path_XMLTO+:} false; then :
18547 $as_echo_n "(cached) " >&6
18548 else
18549 case $XMLTO in
18550 [\\/]* | ?:[\\/]*)
18551 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18552 ;;
18553 *)
18554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18555 for as_dir in $PATH
18556 do
18557 IFS=$as_save_IFS
18558 test -z "$as_dir" && as_dir=.
18559 for ac_exec_ext in '' $ac_executable_extensions; do
18560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18561 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18563 break 2
18564 fi
18565 done
18566 done
18567 IFS=$as_save_IFS
18568
18569 ;;
18570 esac
18571 fi
18572 XMLTO=$ac_cv_path_XMLTO
18573 if test -n "$XMLTO"; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18575 $as_echo "$XMLTO" >&6; }
18576 else
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18578 $as_echo "no" >&6; }
18579 fi
18580
18581
18582 if test "x$XMLTO" = "x"; then
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18584 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18585 have_xmlto=no
18586 else
18587 have_xmlto=yes
18588 fi
18589 elif test "x$use_xmlto" = x"yes" ; then
18590 # Extract the first word of "xmlto", so it can be a program name with args.
18591 set dummy xmlto; ac_word=$2
18592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18593 $as_echo_n "checking for $ac_word... " >&6; }
18594 if ${ac_cv_path_XMLTO+:} false; then :
18595 $as_echo_n "(cached) " >&6
18596 else
18597 case $XMLTO in
18598 [\\/]* | ?:[\\/]*)
18599 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18600 ;;
18601 *)
18602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18603 for as_dir in $PATH
18604 do
18605 IFS=$as_save_IFS
18606 test -z "$as_dir" && as_dir=.
18607 for ac_exec_ext in '' $ac_executable_extensions; do
18608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18609 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18611 break 2
18612 fi
18613 done
18614 done
18615 IFS=$as_save_IFS
18616
18617 ;;
18618 esac
18619 fi
18620 XMLTO=$ac_cv_path_XMLTO
18621 if test -n "$XMLTO"; then
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18623 $as_echo "$XMLTO" >&6; }
18624 else
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18626 $as_echo "no" >&6; }
18627 fi
18628
18629
18630 if test "x$XMLTO" = "x"; then
18631 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18632 fi
18633 have_xmlto=yes
18634 elif test "x$use_xmlto" = x"no" ; then
18635 if test "x$XMLTO" != "x"; then
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18637 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18638 fi
18639 have_xmlto=no
18640 else
18641 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18642 fi
18643
18644 # Test for a minimum version of xmlto, if provided.
18645 if test "$have_xmlto" = yes; then
18646 # scrape the xmlto version
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18648 $as_echo_n "checking the xmlto version... " >&6; }
18649 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18651 $as_echo "$xmlto_version" >&6; }
18652 as_arg_v1=$xmlto_version
18653 as_arg_v2=0.0.22
18654 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18655 case $? in #(
18656 1) :
18657 if test "x$use_xmlto" = xauto; then
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18659 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18660 have_xmlto=no
18661 else
18662 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18663 fi ;; #(
18664 0) :
18665 ;; #(
18666 2) :
18667 ;; #(
18668 *) :
18669 ;;
18670 esac
18671 fi
18672
18673 # Test for the ability of xmlto to generate a text target
18674 #
18675 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
18676 # following test for empty XML docbook files.
18677 # For compatibility reasons use the following empty XML docbook file and if
18678 # it fails try it again with a non-empty XML file.
18679 have_xmlto_text=no
18680 cat > conftest.xml << "EOF"
18681 EOF
18682 if test "$have_xmlto" = yes; then :
18683 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18684 have_xmlto_text=yes
18685 else
18686 # Try it again with a non-empty XML file.
18687 cat > conftest.xml << "EOF"
18688 <x></x>
18689 EOF
18690 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18691 have_xmlto_text=yes
18692 else
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18694 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18695 fi
18696 fi
18697 fi
18698 rm -f conftest.xml
18699 if test $have_xmlto_text = yes; then
18700 HAVE_XMLTO_TEXT_TRUE=
18701 HAVE_XMLTO_TEXT_FALSE='#'
18702 else
18703 HAVE_XMLTO_TEXT_TRUE='#'
18704 HAVE_XMLTO_TEXT_FALSE=
18705 fi
18706
18707 if test "$have_xmlto" = yes; then
18708 HAVE_XMLTO_TRUE=
18709 HAVE_XMLTO_FALSE='#'
18710 else
18711 HAVE_XMLTO_TRUE='#'
18712 HAVE_XMLTO_FALSE=
18713 fi
18714
18715
18716
18717
18718
18719
18720 # Check whether --with-fop was given.
18721 if test "${with_fop+set}" = set; then :
18722 withval=$with_fop; use_fop=$withval
18723 else
18724 use_fop=auto
18725 fi
18726
18727
18728
18729 if test "x$use_fop" = x"auto"; then
18730 # Extract the first word of "fop", so it can be a program name with args.
18731 set dummy fop; ac_word=$2
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18733 $as_echo_n "checking for $ac_word... " >&6; }
18734 if ${ac_cv_path_FOP+:} false; then :
18735 $as_echo_n "(cached) " >&6
18736 else
18737 case $FOP in
18738 [\\/]* | ?:[\\/]*)
18739 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18740 ;;
18741 *)
18742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18743 for as_dir in $PATH
18744 do
18745 IFS=$as_save_IFS
18746 test -z "$as_dir" && as_dir=.
18747 for ac_exec_ext in '' $ac_executable_extensions; do
18748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18749 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18751 break 2
18752 fi
18753 done
18754 done
18755 IFS=$as_save_IFS
18756
18757 ;;
18758 esac
18759 fi
18760 FOP=$ac_cv_path_FOP
18761 if test -n "$FOP"; then
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18763 $as_echo "$FOP" >&6; }
18764 else
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766 $as_echo "no" >&6; }
18767 fi
18768
18769
18770 if test "x$FOP" = "x"; then
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18772 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18773 have_fop=no
18774 else
18775 have_fop=yes
18776 fi
18777 elif test "x$use_fop" = x"yes" ; then
18778 # Extract the first word of "fop", so it can be a program name with args.
18779 set dummy fop; ac_word=$2
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18781 $as_echo_n "checking for $ac_word... " >&6; }
18782 if ${ac_cv_path_FOP+:} false; then :
18783 $as_echo_n "(cached) " >&6
18784 else
18785 case $FOP in
18786 [\\/]* | ?:[\\/]*)
18787 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18788 ;;
18789 *)
18790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18791 for as_dir in $PATH
18792 do
18793 IFS=$as_save_IFS
18794 test -z "$as_dir" && as_dir=.
18795 for ac_exec_ext in '' $ac_executable_extensions; do
18796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18797 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18799 break 2
18800 fi
18801 done
18802 done
18803 IFS=$as_save_IFS
18804
18805 ;;
18806 esac
18807 fi
18808 FOP=$ac_cv_path_FOP
18809 if test -n "$FOP"; then
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18811 $as_echo "$FOP" >&6; }
18812 else
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18814 $as_echo "no" >&6; }
18815 fi
18816
18817
18818 if test "x$FOP" = "x"; then
18819 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18820 fi
18821 have_fop=yes
18822 elif test "x$use_fop" = x"no" ; then
18823 if test "x$FOP" != "x"; then
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18825 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18826 fi
18827 have_fop=no
18828 else
18829 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18830 fi
18831
18832 # Test for a minimum version of fop, if provided.
18833
18834 if test "$have_fop" = yes; then
18835 HAVE_FOP_TRUE=
18836 HAVE_FOP_FALSE='#'
18837 else
18838 HAVE_FOP_TRUE='#'
18839 HAVE_FOP_FALSE=
18840 fi
18841
18842
18843
18844
18845 # Preserves the interface, should it be implemented later
18846
18847
18848
18849 # Check whether --with-xsltproc was given.
18850 if test "${with_xsltproc+set}" = set; then :
18851 withval=$with_xsltproc; use_xsltproc=$withval
18852 else
18853 use_xsltproc=auto
18854 fi
18855
18856
18857
18858 if test "x$use_xsltproc" = x"auto"; then
18859 # Extract the first word of "xsltproc", so it can be a program name with args.
18860 set dummy xsltproc; ac_word=$2
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18862 $as_echo_n "checking for $ac_word... " >&6; }
18863 if ${ac_cv_path_XSLTPROC+:} false; then :
18864 $as_echo_n "(cached) " >&6
18865 else
18866 case $XSLTPROC in
18867 [\\/]* | ?:[\\/]*)
18868 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18869 ;;
18870 *)
18871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872 for as_dir in $PATH
18873 do
18874 IFS=$as_save_IFS
18875 test -z "$as_dir" && as_dir=.
18876 for ac_exec_ext in '' $ac_executable_extensions; do
18877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18878 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18880 break 2
18881 fi
18882 done
18883 done
18884 IFS=$as_save_IFS
18885
18886 ;;
18887 esac
18888 fi
18889 XSLTPROC=$ac_cv_path_XSLTPROC
18890 if test -n "$XSLTPROC"; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18892 $as_echo "$XSLTPROC" >&6; }
18893 else
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18895 $as_echo "no" >&6; }
18896 fi
18897
18898
18899 if test "x$XSLTPROC" = "x"; then
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
18901 $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
18902 have_xsltproc=no
18903 else
18904 have_xsltproc=yes
18905 fi
18906 elif test "x$use_xsltproc" = x"yes" ; then
18907 # Extract the first word of "xsltproc", so it can be a program name with args.
18908 set dummy xsltproc; ac_word=$2
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18910 $as_echo_n "checking for $ac_word... " >&6; }
18911 if ${ac_cv_path_XSLTPROC+:} false; then :
18912 $as_echo_n "(cached) " >&6
18913 else
18914 case $XSLTPROC in
18915 [\\/]* | ?:[\\/]*)
18916 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
18917 ;;
18918 *)
18919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18920 for as_dir in $PATH
18921 do
18922 IFS=$as_save_IFS
18923 test -z "$as_dir" && as_dir=.
18924 for ac_exec_ext in '' $ac_executable_extensions; do
18925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18926 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
18927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18928 break 2
18929 fi
18930 done
18931 done
18932 IFS=$as_save_IFS
18933
18934 ;;
18935 esac
18936 fi
18937 XSLTPROC=$ac_cv_path_XSLTPROC
18938 if test -n "$XSLTPROC"; then
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18940 $as_echo "$XSLTPROC" >&6; }
18941 else
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943 $as_echo "no" >&6; }
18944 fi
18945
18946
18947 if test "x$XSLTPROC" = "x"; then
18948 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
18949 fi
18950 have_xsltproc=yes
18951 elif test "x$use_xsltproc" = x"no" ; then
18952 if test "x$XSLTPROC" != "x"; then
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
18954 $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
18955 fi
18956 have_xsltproc=no
18957 else
18958 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
18959 fi
18960
18961 if test "$have_xsltproc" = yes; then
18962 HAVE_XSLTPROC_TRUE=
18963 HAVE_XSLTPROC_FALSE='#'
18964 else
18965 HAVE_XSLTPROC_TRUE='#'
18966 HAVE_XSLTPROC_FALSE=
18967 fi
18968
18969
18970
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
18972 $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
18973 XORG_SGML_PATH=
18974 if test -n "$PKG_CONFIG" && \
18975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
18976 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
18977 ac_status=$?
18978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18979 test $ac_status = 0; }; then
18980 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18981 else
18982 :
18983
18984 fi
18985
18986 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18987 # the path and the name of the doc stylesheet
18988 if test "x$XORG_SGML_PATH" != "x" ; then
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18990 $as_echo "$XORG_SGML_PATH" >&6; }
18991 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18992 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18993 else
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18995 $as_echo "no" >&6; }
18996 fi
18997
18998
18999
19000
19001 if test "x$XSL_STYLESHEET" != "x"; then
19002 HAVE_STYLESHEETS_TRUE=
19003 HAVE_STYLESHEETS_FALSE='#'
19004 else
19005 HAVE_STYLESHEETS_TRUE='#'
19006 HAVE_STYLESHEETS_FALSE=
19007 fi
19008
19009
19010
19011 # Obtain compiler/linker options for depedencies
19012
19013 pkg_failed=no
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5
19015 $as_echo_n "checking for SM... " >&6; }
19016
19017 if test -n "$SM_CFLAGS"; then
19018 pkg_cv_SM_CFLAGS="$SM_CFLAGS"
19019 elif test -n "$PKG_CONFIG"; then
19020 if test -n "$PKG_CONFIG" && \
19021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5
19022 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5
19023 ac_status=$?
19024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025 test $ac_status = 0; }; then
19026 pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "ice >= 1.0.5 xproto xtrans" 2>/dev/null`
19027 test "x$?" != "x0" && pkg_failed=yes
19028 else
19029 pkg_failed=yes
19030 fi
19031 else
19032 pkg_failed=untried
19033 fi
19034 if test -n "$SM_LIBS"; then
19035 pkg_cv_SM_LIBS="$SM_LIBS"
19036 elif test -n "$PKG_CONFIG"; then
19037 if test -n "$PKG_CONFIG" && \
19038 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ice >= 1.0.5 xproto xtrans\""; } >&5
19039 ($PKG_CONFIG --exists --print-errors "ice >= 1.0.5 xproto xtrans") 2>&5
19040 ac_status=$?
19041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19042 test $ac_status = 0; }; then
19043 pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "ice >= 1.0.5 xproto xtrans" 2>/dev/null`
19044 test "x$?" != "x0" && pkg_failed=yes
19045 else
19046 pkg_failed=yes
19047 fi
19048 else
19049 pkg_failed=untried
19050 fi
19051
19052
19053
19054 if test $pkg_failed = yes; then
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19057
19058 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19059 _pkg_short_errors_supported=yes
19060 else
19061 _pkg_short_errors_supported=no
19062 fi
19063 if test $_pkg_short_errors_supported = yes; then
19064 SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ice >= 1.0.5 xproto xtrans" 2>&1`
19065 else
19066 SM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ice >= 1.0.5 xproto xtrans" 2>&1`
19067 fi
19068 # Put the nasty error message in config.log where it belongs
19069 echo "$SM_PKG_ERRORS" >&5
19070
19071 as_fn_error $? "Package requirements (ice >= 1.0.5 xproto xtrans) were not met:
19072
19073 $SM_PKG_ERRORS
19074
19075 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19076 installed software in a non-standard prefix.
19077
19078 Alternatively, you may set the environment variables SM_CFLAGS
19079 and SM_LIBS to avoid the need to call pkg-config.
19080 See the pkg-config man page for more details." "$LINENO" 5
19081 elif test $pkg_failed = untried; then
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19083 $as_echo "no" >&6; }
19084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19086 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19087 is in your PATH or set the PKG_CONFIG environment variable to the full
19088 path to pkg-config.
19089
19090 Alternatively, you may set the environment variables SM_CFLAGS
19091 and SM_LIBS to avoid the need to call pkg-config.
19092 See the pkg-config man page for more details.
19093
19094 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19095 See \`config.log' for more details" "$LINENO" 5; }
19096 else
19097 SM_CFLAGS=$pkg_cv_SM_CFLAGS
19098 SM_LIBS=$pkg_cv_SM_LIBS
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19100 $as_echo "yes" >&6; }
19101
19102 fi
19103
19104 # Needed to check for TCP & IPv6 support and set flags appropriately
19105
19106
19107 case $host_os in
19108 mingw*) unixdef="no" ;;
19109 *) unixdef="yes" ;;
19110 esac
19111 # Check whether --enable-unix-transport was given.
19112 if test "${enable_unix_transport+set}" = set; then :
19113 enableval=$enable_unix_transport; UNIXCONN=$enableval
19114 else
19115 UNIXCONN=$unixdef
19116 fi
19117
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19119 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19120 if test "$UNIXCONN" = "yes"; then
19121
19122 $as_echo "#define UNIXCONN 1" >>confdefs.h
19123
19124 fi
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19126 $as_echo "$UNIXCONN" >&6; }
19127 # Check whether --enable-tcp-transport was given.
19128 if test "${enable_tcp_transport+set}" = set; then :
19129 enableval=$enable_tcp_transport; TCPCONN=$enableval
19130 else
19131 TCPCONN=yes
19132 fi
19133
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19135 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19137 $as_echo "$TCPCONN" >&6; }
19138 if test "$TCPCONN" = "yes"; then
19139
19140 $as_echo "#define TCPCONN 1" >>confdefs.h
19141
19142
19143 # SVR4 hides these in libraries other than libc
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19145 $as_echo_n "checking for library containing socket... " >&6; }
19146 if ${ac_cv_search_socket+:} false; then :
19147 $as_echo_n "(cached) " >&6
19148 else
19149 ac_func_search_save_LIBS=$LIBS
19150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19151 /* end confdefs.h. */
19152
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19156 #ifdef __cplusplus
19157 extern "C"
19158 #endif
19159 char socket ();
19160 int
19161 main ()
19162 {
19163 return socket ();
19164 ;
19165 return 0;
19166 }
19167 _ACEOF
19168 for ac_lib in '' socket; do
19169 if test -z "$ac_lib"; then
19170 ac_res="none required"
19171 else
19172 ac_res=-l$ac_lib
19173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19174 fi
19175 if ac_fn_c_try_link "$LINENO"; then :
19176 ac_cv_search_socket=$ac_res
19177 fi
19178 rm -f core conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext
19180 if ${ac_cv_search_socket+:} false; then :
19181 break
19182 fi
19183 done
19184 if ${ac_cv_search_socket+:} false; then :
19185
19186 else
19187 ac_cv_search_socket=no
19188 fi
19189 rm conftest.$ac_ext
19190 LIBS=$ac_func_search_save_LIBS
19191 fi
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19193 $as_echo "$ac_cv_search_socket" >&6; }
19194 ac_res=$ac_cv_search_socket
19195 if test "$ac_res" != no; then :
19196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19197
19198 fi
19199
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19201 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19202 if ${ac_cv_search_gethostbyname+:} false; then :
19203 $as_echo_n "(cached) " >&6
19204 else
19205 ac_func_search_save_LIBS=$LIBS
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19208
19209 /* Override any GCC internal prototype to avoid an error.
19210 Use char because int might match the return type of a GCC
19211 builtin and then its argument prototype would still apply. */
19212 #ifdef __cplusplus
19213 extern "C"
19214 #endif
19215 char gethostbyname ();
19216 int
19217 main ()
19218 {
19219 return gethostbyname ();
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 for ac_lib in '' nsl; do
19225 if test -z "$ac_lib"; then
19226 ac_res="none required"
19227 else
19228 ac_res=-l$ac_lib
19229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19230 fi
19231 if ac_fn_c_try_link "$LINENO"; then :
19232 ac_cv_search_gethostbyname=$ac_res
19233 fi
19234 rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext
19236 if ${ac_cv_search_gethostbyname+:} false; then :
19237 break
19238 fi
19239 done
19240 if ${ac_cv_search_gethostbyname+:} false; then :
19241
19242 else
19243 ac_cv_search_gethostbyname=no
19244 fi
19245 rm conftest.$ac_ext
19246 LIBS=$ac_func_search_save_LIBS
19247 fi
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19249 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19250 ac_res=$ac_cv_search_gethostbyname
19251 if test "$ac_res" != no; then :
19252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19253
19254 fi
19255
19256 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19258 $as_echo_n "checking for main in -lws2_32... " >&6; }
19259 if ${ac_cv_lib_ws2_32_main+:} false; then :
19260 $as_echo_n "(cached) " >&6
19261 else
19262 ac_check_lib_save_LIBS=$LIBS
19263 LIBS="-lws2_32 $LIBS"
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19266
19267
19268 int
19269 main ()
19270 {
19271 return main ();
19272 ;
19273 return 0;
19274 }
19275 _ACEOF
19276 if ac_fn_c_try_link "$LINENO"; then :
19277 ac_cv_lib_ws2_32_main=yes
19278 else
19279 ac_cv_lib_ws2_32_main=no
19280 fi
19281 rm -f core conftest.err conftest.$ac_objext \
19282 conftest$ac_exeext conftest.$ac_ext
19283 LIBS=$ac_check_lib_save_LIBS
19284 fi
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19286 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19287 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19288 cat >>confdefs.h <<_ACEOF
19289 #define HAVE_LIBWS2_32 1
19290 _ACEOF
19291
19292 LIBS="-lws2_32 $LIBS"
19293
19294 fi
19295
19296 fi
19297
19298 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19299 # Check whether --enable-ipv6 was given.
19300 if test "${enable_ipv6+set}" = set; then :
19301 enableval=$enable_ipv6; IPV6CONN=$enableval
19302 else
19303 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19304 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19305 IPV6CONN=yes
19306 else
19307 IPV6CONN=no
19308 fi
19309
19310 fi
19311
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19313 $as_echo_n "checking if IPv6 support should be built... " >&6; }
19314 if test "$IPV6CONN" = "yes"; then
19315
19316 $as_echo "#define IPv6 1" >>confdefs.h
19317
19318 fi
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19320 $as_echo "$IPV6CONN" >&6; }
19321
19322 # 4.3BSD-Reno added a new member to struct sockaddr_in
19323 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19324 #include <sys/types.h>
19325 #include <sys/socket.h>
19326 #include <netinet/in.h>
19327
19328 "
19329 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19330
19331 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19332
19333 fi
19334
19335
19336 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19337 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19338 $ac_includes_default
19339 #include <sys/socket.h>
19340 "
19341 if test "x$ac_cv_type_socklen_t" = xyes; then :
19342
19343 cat >>confdefs.h <<_ACEOF
19344 #define HAVE_SOCKLEN_T 1
19345 _ACEOF
19346
19347
19348 fi
19349
19350
19351 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19352 # _XOPEN_SOURCE to get it (such as on Solaris)
19353 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19354 $ac_includes_default
19355 #include <sys/socket.h>
19356
19357 "
19358 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19359
19360 fi
19361
19362 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19363 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19364 unset ac_cv_member_struct_msghdr_msg_control
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19366 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19367 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19368 #define _XOPEN_SOURCE 600
19369 $ac_includes_default
19370 #include <sys/socket.h>
19371
19372 "
19373 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19374
19375 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19376
19377
19378 fi
19379
19380 fi
19381 # If that didn't work, fall back to XPG5/UNIX98 with C89
19382 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19383 unset ac_cv_member_struct_msghdr_msg_control
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19385 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19386 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19387 #define _XOPEN_SOURCE 500
19388 $ac_includes_default
19389 #include <sys/socket.h>
19390
19391 "
19392 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19393
19394 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19395
19396
19397 fi
19398
19399 fi
19400
19401
19402
19403 fi
19404 case $host_os in
19405 solaris*|sco*|sysv4*) localdef="yes" ;;
19406 *) localdef="no" ;;
19407 esac
19408 # Check whether --enable-local-transport was given.
19409 if test "${enable_local_transport+set}" = set; then :
19410 enableval=$enable_local_transport; LOCALCONN=$enableval
19411 else
19412 LOCALCONN=$localdef
19413 fi
19414
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19416 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19418 $as_echo "$LOCALCONN" >&6; }
19419 if test "$LOCALCONN" = "yes"; then
19420
19421 $as_echo "#define LOCALCONN 1" >>confdefs.h
19422
19423 fi
19424
19425
19426
19427
19428 # Check whether --with-libuuid was given.
19429 if test "${with_libuuid+set}" = set; then :
19430 withval=$with_libuuid;
19431 fi
19432
19433
19434 for ac_func in uuid_create
19435 do :
19436 ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
19437 if test "x$ac_cv_func_uuid_create" = xyes; then :
19438 cat >>confdefs.h <<_ACEOF
19439 #define HAVE_UUID_CREATE 1
19440 _ACEOF
19441
19442 else
19443
19444 if test x"$with_libuuid" != xno && test x"$have_system_uuid" != xyes; then
19445
19446 pkg_failed=no
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUUID" >&5
19448 $as_echo_n "checking for LIBUUID... " >&6; }
19449
19450 if test -n "$LIBUUID_CFLAGS"; then
19451 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS"
19452 elif test -n "$PKG_CONFIG"; then
19453 if test -n "$PKG_CONFIG" && \
19454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
19455 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
19456 ac_status=$?
19457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19458 test $ac_status = 0; }; then
19459 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
19460 test "x$?" != "x0" && pkg_failed=yes
19461 else
19462 pkg_failed=yes
19463 fi
19464 else
19465 pkg_failed=untried
19466 fi
19467 if test -n "$LIBUUID_LIBS"; then
19468 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS"
19469 elif test -n "$PKG_CONFIG"; then
19470 if test -n "$PKG_CONFIG" && \
19471 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
19472 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
19473 ac_status=$?
19474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19475 test $ac_status = 0; }; then
19476 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
19477 test "x$?" != "x0" && pkg_failed=yes
19478 else
19479 pkg_failed=yes
19480 fi
19481 else
19482 pkg_failed=untried
19483 fi
19484
19485
19486
19487 if test $pkg_failed = yes; then
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19489 $as_echo "no" >&6; }
19490
19491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19492 _pkg_short_errors_supported=yes
19493 else
19494 _pkg_short_errors_supported=no
19495 fi
19496 if test $_pkg_short_errors_supported = yes; then
19497 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
19498 else
19499 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
19500 fi
19501 # Put the nasty error message in config.log where it belongs
19502 echo "$LIBUUID_PKG_ERRORS" >&5
19503
19504 HAVE_LIBUUID=no
19505 elif test $pkg_failed = untried; then
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19507 $as_echo "no" >&6; }
19508 HAVE_LIBUUID=no
19509 else
19510 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS
19511 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19513 $as_echo "yes" >&6; }
19514 HAVE_LIBUUID=yes
19515 fi
19516 fi
19517 if test x"$with_libuuid" = xyes && test x"$HAVE_LIBUUID" = xno; then
19518 as_fn_error $? "requested libuuid support but uuid.pc not found" "$LINENO" 5
19519 fi
19520
19521 fi
19522 done
19523
19524
19525 if test x"$HAVE_LIBUUID" = xyes; then
19526 WITH_LIBUUID_TRUE=
19527 WITH_LIBUUID_FALSE='#'
19528 else
19529 WITH_LIBUUID_TRUE='#'
19530 WITH_LIBUUID_FALSE=
19531 fi
19532
19533
19534 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sm.pc"
19535
19536 cat >confcache <<\_ACEOF
19537 # This file is a shell script that caches the results of configure
19538 # tests run on this system so they can be shared between configure
19539 # scripts and configure runs, see configure's option --config-cache.
19540 # It is not useful on other systems. If it contains results you don't
19541 # want to keep, you may remove or edit it.
19542 #
19543 # config.status only pays attention to the cache file if you give it
19544 # the --recheck option to rerun configure.
19545 #
19546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19548 # following values.
19549
19550 _ACEOF
19551
19552 # The following way of writing the cache mishandles newlines in values,
19553 # but we know of no workaround that is simple, portable, and efficient.
19554 # So, we kill variables containing newlines.
19555 # Ultrix sh set writes to stderr and can't be redirected directly,
19556 # and sets the high bit in the cache file unless we assign to the vars.
19557 (
19558 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19559 eval ac_val=\$$ac_var
19560 case $ac_val in #(
19561 *${as_nl}*)
19562 case $ac_var in #(
19563 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19565 esac
19566 case $ac_var in #(
19567 _ | IFS | as_nl) ;; #(
19568 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19569 *) { eval $ac_var=; unset $ac_var;} ;;
19570 esac ;;
19571 esac
19572 done
19573
19574 (set) 2>&1 |
19575 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19576 *${as_nl}ac_space=\ *)
19577 # `set' does not quote correctly, so add quotes: double-quote
19578 # substitution turns \\\\ into \\, and sed turns \\ into \.
19579 sed -n \
19580 "s/'/'\\\\''/g;
19581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19582 ;; #(
19583 *)
19584 # `set' quotes correctly as required by POSIX, so do not add quotes.
19585 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19586 ;;
19587 esac |
19588 sort
19589 ) |
19590 sed '
19591 /^ac_cv_env_/b end
19592 t clear
19593 :clear
19594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19595 t end
19596 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19597 :end' >>confcache
19598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19599 if test -w "$cache_file"; then
19600 if test "x$cache_file" != "x/dev/null"; then
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19602 $as_echo "$as_me: updating cache $cache_file" >&6;}
19603 if test ! -f "$cache_file" || test -h "$cache_file"; then
19604 cat confcache >"$cache_file"
19605 else
19606 case $cache_file in #(
19607 */* | ?:*)
19608 mv -f confcache "$cache_file"$$ &&
19609 mv -f "$cache_file"$$ "$cache_file" ;; #(
19610 *)
19611 mv -f confcache "$cache_file" ;;
19612 esac
19613 fi
19614 fi
19615 else
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19617 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19618 fi
19619 fi
19620 rm -f confcache
19621
19622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19623 # Let make expand exec_prefix.
19624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19625
19626 DEFS=-DHAVE_CONFIG_H
19627
19628 ac_libobjs=
19629 ac_ltlibobjs=
19630 U=
19631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19632 # 1. Remove the extension, and $U if already installed.
19633 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19634 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19635 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19636 # will be set to the directory where LIBOBJS objects are built.
19637 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19638 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19639 done
19640 LIBOBJS=$ac_libobjs
19641
19642 LTLIBOBJS=$ac_ltlibobjs
19643
19644
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19646 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19647 if test -n "$am_sleep_pid"; then
19648 # Hide warnings about reused PIDs.
19649 wait $am_sleep_pid 2>/dev/null
19650 fi
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19652 $as_echo "done" >&6; }
19653 if test -n "$EXEEXT"; then
19654 am__EXEEXT_TRUE=
19655 am__EXEEXT_FALSE='#'
19656 else
19657 am__EXEEXT_TRUE='#'
19658 am__EXEEXT_FALSE=
19659 fi
19660
19661 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19662 as_fn_error $? "conditional \"AMDEP\" was never defined.
19663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19664 fi
19665 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19666 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19668 fi
19669 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
19670 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
19671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19672 fi
19673 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19674 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19676 fi
19677 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19678 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19680 fi
19681 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19682 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19684 fi
19685 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
19686 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
19687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19688 fi
19689 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19690 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19692 fi
19693 if test -z "${WITH_LIBUUID_TRUE}" && test -z "${WITH_LIBUUID_FALSE}"; then
19694 as_fn_error $? "conditional \"WITH_LIBUUID\" was never defined.
19695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19696 fi
19697
19698 : "${CONFIG_STATUS=./config.status}"
19699 ac_write_fail=0
19700 ac_clean_files_save=$ac_clean_files
19701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19703 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19704 as_write_fail=0
19705 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19706 #! $SHELL
19707 # Generated by $as_me.
19708 # Run this file to recreate the current configuration.
19709 # Compiler output produced by configure, useful for debugging
19710 # configure, is in config.log if it exists.
19711
19712 debug=false
19713 ac_cs_recheck=false
19714 ac_cs_silent=false
19715
19716 SHELL=\${CONFIG_SHELL-$SHELL}
19717 export SHELL
19718 _ASEOF
19719 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19720 ## -------------------- ##
19721 ## M4sh Initialization. ##
19722 ## -------------------- ##
19723
19724 # Be more Bourne compatible
19725 DUALCASE=1; export DUALCASE # for MKS sh
19726 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19727 emulate sh
19728 NULLCMD=:
19729 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19730 # is contrary to our usage. Disable this feature.
19731 alias -g '${1+"$@"}'='"$@"'
19732 setopt NO_GLOB_SUBST
19733 else
19734 case `(set -o) 2>/dev/null` in #(
19735 *posix*) :
19736 set -o posix ;; #(
19737 *) :
19738 ;;
19739 esac
19740 fi
19741
19742
19743 as_nl='
19744 '
19745 export as_nl
19746 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19747 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19750 # Prefer a ksh shell builtin over an external printf program on Solaris,
19751 # but without wasting forks for bash or zsh.
19752 if test -z "$BASH_VERSION$ZSH_VERSION" \
19753 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19754 as_echo='print -r --'
19755 as_echo_n='print -rn --'
19756 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19757 as_echo='printf %s\n'
19758 as_echo_n='printf %s'
19759 else
19760 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19761 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19762 as_echo_n='/usr/ucb/echo -n'
19763 else
19764 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19765 as_echo_n_body='eval
19766 arg=$1;
19767 case $arg in #(
19768 *"$as_nl"*)
19769 expr "X$arg" : "X\\(.*\\)$as_nl";
19770 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19771 esac;
19772 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19773 '
19774 export as_echo_n_body
19775 as_echo_n='sh -c $as_echo_n_body as_echo'
19776 fi
19777 export as_echo_body
19778 as_echo='sh -c $as_echo_body as_echo'
19779 fi
19780
19781 # The user is always right.
19782 if test "${PATH_SEPARATOR+set}" != set; then
19783 PATH_SEPARATOR=:
19784 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19785 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19786 PATH_SEPARATOR=';'
19787 }
19788 fi
19789
19790
19791 # IFS
19792 # We need space, tab and new line, in precisely that order. Quoting is
19793 # there to prevent editors from complaining about space-tab.
19794 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19795 # splitting by setting IFS to empty value.)
19796 IFS=" "" $as_nl"
19797
19798 # Find who we are. Look in the path if we contain no directory separator.
19799 as_myself=
19800 case $0 in #((
19801 *[\\/]* ) as_myself=$0 ;;
19802 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19803 for as_dir in $PATH
19804 do
19805 IFS=$as_save_IFS
19806 test -z "$as_dir" && as_dir=.
19807 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19808 done
19809 IFS=$as_save_IFS
19810
19811 ;;
19812 esac
19813 # We did not find ourselves, most probably we were run as `sh COMMAND'
19814 # in which case we are not to be found in the path.
19815 if test "x$as_myself" = x; then
19816 as_myself=$0
19817 fi
19818 if test ! -f "$as_myself"; then
19819 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19820 exit 1
19821 fi
19822
19823 # Unset variables that we do not need and which cause bugs (e.g. in
19824 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19825 # suppresses any "Segmentation fault" message there. '((' could
19826 # trigger a bug in pdksh 5.2.14.
19827 for as_var in BASH_ENV ENV MAIL MAILPATH
19828 do eval test x\${$as_var+set} = xset \
19829 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19830 done
19831 PS1='$ '
19832 PS2='> '
19833 PS4='+ '
19834
19835 # NLS nuisances.
19836 LC_ALL=C
19837 export LC_ALL
19838 LANGUAGE=C
19839 export LANGUAGE
19840
19841 # CDPATH.
19842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19843
19844
19845 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19846 # ----------------------------------------
19847 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19848 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19849 # script with STATUS, using 1 if that was 0.
19850 as_fn_error ()
19851 {
19852 as_status=$1; test $as_status -eq 0 && as_status=1
19853 if test "$4"; then
19854 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19855 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19856 fi
19857 $as_echo "$as_me: error: $2" >&2
19858 as_fn_exit $as_status
19859 } # as_fn_error
19860
19861
19862 # as_fn_set_status STATUS
19863 # -----------------------
19864 # Set $? to STATUS, without forking.
19865 as_fn_set_status ()
19866 {
19867 return $1
19868 } # as_fn_set_status
19869
19870 # as_fn_exit STATUS
19871 # -----------------
19872 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19873 as_fn_exit ()
19874 {
19875 set +e
19876 as_fn_set_status $1
19877 exit $1
19878 } # as_fn_exit
19879
19880 # as_fn_unset VAR
19881 # ---------------
19882 # Portably unset VAR.
19883 as_fn_unset ()
19884 {
19885 { eval $1=; unset $1;}
19886 }
19887 as_unset=as_fn_unset
19888 # as_fn_append VAR VALUE
19889 # ----------------------
19890 # Append the text in VALUE to the end of the definition contained in VAR. Take
19891 # advantage of any shell optimizations that allow amortized linear growth over
19892 # repeated appends, instead of the typical quadratic growth present in naive
19893 # implementations.
19894 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19895 eval 'as_fn_append ()
19896 {
19897 eval $1+=\$2
19898 }'
19899 else
19900 as_fn_append ()
19901 {
19902 eval $1=\$$1\$2
19903 }
19904 fi # as_fn_append
19905
19906 # as_fn_arith ARG...
19907 # ------------------
19908 # Perform arithmetic evaluation on the ARGs, and store the result in the
19909 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19910 # must be portable across $(()) and expr.
19911 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19912 eval 'as_fn_arith ()
19913 {
19914 as_val=$(( $* ))
19915 }'
19916 else
19917 as_fn_arith ()
19918 {
19919 as_val=`expr "$@" || test $? -eq 1`
19920 }
19921 fi # as_fn_arith
19922
19923
19924 if expr a : '\(a\)' >/dev/null 2>&1 &&
19925 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19926 as_expr=expr
19927 else
19928 as_expr=false
19929 fi
19930
19931 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19932 as_basename=basename
19933 else
19934 as_basename=false
19935 fi
19936
19937 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19938 as_dirname=dirname
19939 else
19940 as_dirname=false
19941 fi
19942
19943 as_me=`$as_basename -- "$0" ||
19944 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19945 X"$0" : 'X\(//\)$' \| \
19946 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19947 $as_echo X/"$0" |
19948 sed '/^.*\/\([^/][^/]*\)\/*$/{
19949 s//\1/
19950 q
19951 }
19952 /^X\/\(\/\/\)$/{
19953 s//\1/
19954 q
19955 }
19956 /^X\/\(\/\).*/{
19957 s//\1/
19958 q
19959 }
19960 s/.*/./; q'`
19961
19962 # Avoid depending upon Character Ranges.
19963 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19964 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19965 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19966 as_cr_digits='0123456789'
19967 as_cr_alnum=$as_cr_Letters$as_cr_digits
19968
19969 ECHO_C= ECHO_N= ECHO_T=
19970 case `echo -n x` in #(((((
19971 -n*)
19972 case `echo 'xy\c'` in
19973 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19974 xy) ECHO_C='\c';;
19975 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19976 ECHO_T=' ';;
19977 esac;;
19978 *)
19979 ECHO_N='-n';;
19980 esac
19981
19982 rm -f conf$$ conf$$.exe conf$$.file
19983 if test -d conf$$.dir; then
19984 rm -f conf$$.dir/conf$$.file
19985 else
19986 rm -f conf$$.dir
19987 mkdir conf$$.dir 2>/dev/null
19988 fi
19989 if (echo >conf$$.file) 2>/dev/null; then
19990 if ln -s conf$$.file conf$$ 2>/dev/null; then
19991 as_ln_s='ln -s'
19992 # ... but there are two gotchas:
19993 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19994 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19995 # In both cases, we have to default to `cp -pR'.
19996 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19997 as_ln_s='cp -pR'
19998 elif ln conf$$.file conf$$ 2>/dev/null; then
19999 as_ln_s=ln
20000 else
20001 as_ln_s='cp -pR'
20002 fi
20003 else
20004 as_ln_s='cp -pR'
20005 fi
20006 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20007 rmdir conf$$.dir 2>/dev/null
20008
20009
20010 # as_fn_mkdir_p
20011 # -------------
20012 # Create "$as_dir" as a directory, including parents if necessary.
20013 as_fn_mkdir_p ()
20014 {
20015
20016 case $as_dir in #(
20017 -*) as_dir=./$as_dir;;
20018 esac
20019 test -d "$as_dir" || eval $as_mkdir_p || {
20020 as_dirs=
20021 while :; do
20022 case $as_dir in #(
20023 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20024 *) as_qdir=$as_dir;;
20025 esac
20026 as_dirs="'$as_qdir' $as_dirs"
20027 as_dir=`$as_dirname -- "$as_dir" ||
20028 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20029 X"$as_dir" : 'X\(//\)[^/]' \| \
20030 X"$as_dir" : 'X\(//\)$' \| \
20031 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20032 $as_echo X"$as_dir" |
20033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20034 s//\1/
20035 q
20036 }
20037 /^X\(\/\/\)[^/].*/{
20038 s//\1/
20039 q
20040 }
20041 /^X\(\/\/\)$/{
20042 s//\1/
20043 q
20044 }
20045 /^X\(\/\).*/{
20046 s//\1/
20047 q
20048 }
20049 s/.*/./; q'`
20050 test -d "$as_dir" && break
20051 done
20052 test -z "$as_dirs" || eval "mkdir $as_dirs"
20053 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20054
20055
20056 } # as_fn_mkdir_p
20057 if mkdir -p . 2>/dev/null; then
20058 as_mkdir_p='mkdir -p "$as_dir"'
20059 else
20060 test -d ./-p && rmdir ./-p
20061 as_mkdir_p=false
20062 fi
20063
20064
20065 # as_fn_executable_p FILE
20066 # -----------------------
20067 # Test if FILE is an executable regular file.
20068 as_fn_executable_p ()
20069 {
20070 test -f "$1" && test -x "$1"
20071 } # as_fn_executable_p
20072 as_test_x='test -x'
20073 as_executable_p=as_fn_executable_p
20074
20075 # Sed expression to map a string onto a valid CPP name.
20076 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20077
20078 # Sed expression to map a string onto a valid variable name.
20079 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20080
20081
20082 exec 6>&1
20083 ## ----------------------------------- ##
20084 ## Main body of $CONFIG_STATUS script. ##
20085 ## ----------------------------------- ##
20086 _ASEOF
20087 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20088
20089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20090 # Save the log message, to keep $0 and so on meaningful, and to
20091 # report actual input values of CONFIG_FILES etc. instead of their
20092 # values after options handling.
20093 ac_log="
20094 This file was extended by libSM $as_me 1.2.3, which was
20095 generated by GNU Autoconf 2.69. Invocation command line was
20096
20097 CONFIG_FILES = $CONFIG_FILES
20098 CONFIG_HEADERS = $CONFIG_HEADERS
20099 CONFIG_LINKS = $CONFIG_LINKS
20100 CONFIG_COMMANDS = $CONFIG_COMMANDS
20101 $ $0 $@
20102
20103 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20104 "
20105
20106 _ACEOF
20107
20108 case $ac_config_files in *"
20109 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20110 esac
20111
20112 case $ac_config_headers in *"
20113 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20114 esac
20115
20116
20117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20118 # Files that config.status was made for.
20119 config_files="$ac_config_files"
20120 config_headers="$ac_config_headers"
20121 config_commands="$ac_config_commands"
20122
20123 _ACEOF
20124
20125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20126 ac_cs_usage="\
20127 \`$as_me' instantiates files and other configuration actions
20128 from templates according to the current configuration. Unless the files
20129 and actions are specified as TAGs, all are instantiated by default.
20130
20131 Usage: $0 [OPTION]... [TAG]...
20132
20133 -h, --help print this help, then exit
20134 -V, --version print version number and configuration settings, then exit
20135 --config print configuration, then exit
20136 -q, --quiet, --silent
20137 do not print progress messages
20138 -d, --debug don't remove temporary files
20139 --recheck update $as_me by reconfiguring in the same conditions
20140 --file=FILE[:TEMPLATE]
20141 instantiate the configuration file FILE
20142 --header=FILE[:TEMPLATE]
20143 instantiate the configuration header FILE
20144
20145 Configuration files:
20146 $config_files
20147
20148 Configuration headers:
20149 $config_headers
20150
20151 Configuration commands:
20152 $config_commands
20153
20154 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20155
20156 _ACEOF
20157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20158 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20159 ac_cs_version="\\
20160 libSM config.status 1.2.3
20161 configured by $0, generated by GNU Autoconf 2.69,
20162 with options \\"\$ac_cs_config\\"
20163
20164 Copyright (C) 2012 Free Software Foundation, Inc.
20165 This config.status script is free software; the Free Software Foundation
20166 gives unlimited permission to copy, distribute and modify it."
20167
20168 ac_pwd='$ac_pwd'
20169 srcdir='$srcdir'
20170 INSTALL='$INSTALL'
20171 MKDIR_P='$MKDIR_P'
20172 AWK='$AWK'
20173 test -n "\$AWK" || AWK=awk
20174 _ACEOF
20175
20176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20177 # The default lists apply if the user does not specify any file.
20178 ac_need_defaults=:
20179 while test $# != 0
20180 do
20181 case $1 in
20182 --*=?*)
20183 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20184 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20185 ac_shift=:
20186 ;;
20187 --*=)
20188 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20189 ac_optarg=
20190 ac_shift=:
20191 ;;
20192 *)
20193 ac_option=$1
20194 ac_optarg=$2
20195 ac_shift=shift
20196 ;;
20197 esac
20198
20199 case $ac_option in
20200 # Handling of the options.
20201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20202 ac_cs_recheck=: ;;
20203 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20204 $as_echo "$ac_cs_version"; exit ;;
20205 --config | --confi | --conf | --con | --co | --c )
20206 $as_echo "$ac_cs_config"; exit ;;
20207 --debug | --debu | --deb | --de | --d | -d )
20208 debug=: ;;
20209 --file | --fil | --fi | --f )
20210 $ac_shift
20211 case $ac_optarg in
20212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20213 '') as_fn_error $? "missing file argument" ;;
20214 esac
20215 as_fn_append CONFIG_FILES " '$ac_optarg'"
20216 ac_need_defaults=false;;
20217 --header | --heade | --head | --hea )
20218 $ac_shift
20219 case $ac_optarg in
20220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20221 esac
20222 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20223 ac_need_defaults=false;;
20224 --he | --h)
20225 # Conflict between --help and --header
20226 as_fn_error $? "ambiguous option: \`$1'
20227 Try \`$0 --help' for more information.";;
20228 --help | --hel | -h )
20229 $as_echo "$ac_cs_usage"; exit ;;
20230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20231 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20232 ac_cs_silent=: ;;
20233
20234 # This is an error.
20235 -*) as_fn_error $? "unrecognized option: \`$1'
20236 Try \`$0 --help' for more information." ;;
20237
20238 *) as_fn_append ac_config_targets " $1"
20239 ac_need_defaults=false ;;
20240
20241 esac
20242 shift
20243 done
20244
20245 ac_configure_extra_args=
20246
20247 if $ac_cs_silent; then
20248 exec 6>/dev/null
20249 ac_configure_extra_args="$ac_configure_extra_args --silent"
20250 fi
20251
20252 _ACEOF
20253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20254 if \$ac_cs_recheck; then
20255 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20256 shift
20257 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20258 CONFIG_SHELL='$SHELL'
20259 export CONFIG_SHELL
20260 exec "\$@"
20261 fi
20262
20263 _ACEOF
20264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20265 exec 5>>config.log
20266 {
20267 echo
20268 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20269 ## Running $as_me. ##
20270 _ASBOX
20271 $as_echo "$ac_log"
20272 } >&5
20273
20274 _ACEOF
20275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20276 #
20277 # INIT-COMMANDS
20278 #
20279 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20280
20281
20282 # The HP-UX ksh and POSIX shell print the target directory to stdout
20283 # if CDPATH is set.
20284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20285
20286 sed_quote_subst='$sed_quote_subst'
20287 double_quote_subst='$double_quote_subst'
20288 delay_variable_subst='$delay_variable_subst'
20289 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20290 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20291 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20292 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20293 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20294 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20295 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20296 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20297 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20298 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20299 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20300 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20301 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20302 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20303 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20304 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20305 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20306 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20307 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20308 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20309 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20310 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20311 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20312 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20313 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20314 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20315 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20316 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20317 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20318 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20319 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20320 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20321 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20322 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20324 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20325 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20326 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20327 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20328 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20329 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20330 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20331 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20332 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20333 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20334 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20335 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20336 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20337 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20338 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20339 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20340 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20341 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20342 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20343 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20344 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20345 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20346 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20347 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"`'
20348 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20349 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20350 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20351 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20352 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20353 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20354 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20355 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20356 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20357 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20358 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20359 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20360 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20361 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20362 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20363 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20364 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20365 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20366 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20367 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20368 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20369 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20370 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20371 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20372 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20373 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20374 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20375 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20376 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20377 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20378 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20379 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20380 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20381 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20382 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20383 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20384 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20385 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20386 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20387 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20388 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20389 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20390 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20391 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20392 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20393 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20394 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20395 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20396 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20397 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20398 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20399 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20400 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20401 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20402 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20403 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20404 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20405 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20406 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20407 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20408 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20409 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20410 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20411 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20412 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20413 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20414 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20415 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20416 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20417 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20418 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20419 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20420 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20421 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20422 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20423 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20424
20425 LTCC='$LTCC'
20426 LTCFLAGS='$LTCFLAGS'
20427 compiler='$compiler_DEFAULT'
20428
20429 # A function that is used when there is no print builtin or printf.
20430 func_fallback_echo ()
20431 {
20432 eval 'cat <<_LTECHO_EOF
20433 \$1
20434 _LTECHO_EOF'
20435 }
20436
20437 # Quote evaled strings.
20438 for var in SHELL \
20439 ECHO \
20440 PATH_SEPARATOR \
20441 SED \
20442 GREP \
20443 EGREP \
20444 FGREP \
20445 LD \
20446 NM \
20447 LN_S \
20448 lt_SP2NL \
20449 lt_NL2SP \
20450 reload_flag \
20451 OBJDUMP \
20452 deplibs_check_method \
20453 file_magic_cmd \
20454 file_magic_glob \
20455 want_nocaseglob \
20456 DLLTOOL \
20457 sharedlib_from_linklib_cmd \
20458 AR \
20459 AR_FLAGS \
20460 archiver_list_spec \
20461 STRIP \
20462 RANLIB \
20463 CC \
20464 CFLAGS \
20465 compiler \
20466 lt_cv_sys_global_symbol_pipe \
20467 lt_cv_sys_global_symbol_to_cdecl \
20468 lt_cv_sys_global_symbol_to_import \
20469 lt_cv_sys_global_symbol_to_c_name_address \
20470 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20471 lt_cv_nm_interface \
20472 nm_file_list_spec \
20473 lt_cv_truncate_bin \
20474 lt_prog_compiler_no_builtin_flag \
20475 lt_prog_compiler_pic \
20476 lt_prog_compiler_wl \
20477 lt_prog_compiler_static \
20478 lt_cv_prog_compiler_c_o \
20479 need_locks \
20480 MANIFEST_TOOL \
20481 DSYMUTIL \
20482 NMEDIT \
20483 LIPO \
20484 OTOOL \
20485 OTOOL64 \
20486 shrext_cmds \
20487 export_dynamic_flag_spec \
20488 whole_archive_flag_spec \
20489 compiler_needs_object \
20490 with_gnu_ld \
20491 allow_undefined_flag \
20492 no_undefined_flag \
20493 hardcode_libdir_flag_spec \
20494 hardcode_libdir_separator \
20495 exclude_expsyms \
20496 include_expsyms \
20497 file_list_spec \
20498 variables_saved_for_relink \
20499 libname_spec \
20500 library_names_spec \
20501 soname_spec \
20502 install_override_mode \
20503 finish_eval \
20504 old_striplib \
20505 striplib; do
20506 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20507 *[\\\\\\\`\\"\\\$]*)
20508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20509 ;;
20510 *)
20511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20512 ;;
20513 esac
20514 done
20515
20516 # Double-quote double-evaled strings.
20517 for var in reload_cmds \
20518 old_postinstall_cmds \
20519 old_postuninstall_cmds \
20520 old_archive_cmds \
20521 extract_expsyms_cmds \
20522 old_archive_from_new_cmds \
20523 old_archive_from_expsyms_cmds \
20524 archive_cmds \
20525 archive_expsym_cmds \
20526 module_cmds \
20527 module_expsym_cmds \
20528 export_symbols_cmds \
20529 prelink_cmds \
20530 postlink_cmds \
20531 postinstall_cmds \
20532 postuninstall_cmds \
20533 finish_cmds \
20534 sys_lib_search_path_spec \
20535 configure_time_dlsearch_path \
20536 configure_time_lt_sys_library_path; do
20537 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20538 *[\\\\\\\`\\"\\\$]*)
20539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20540 ;;
20541 *)
20542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20543 ;;
20544 esac
20545 done
20546
20547 ac_aux_dir='$ac_aux_dir'
20548
20549 # See if we are running on zsh, and set the options that allow our
20550 # commands through without removal of \ escapes INIT.
20551 if test -n "\${ZSH_VERSION+set}"; then
20552 setopt NO_GLOB_SUBST
20553 fi
20554
20555
20556 PACKAGE='$PACKAGE'
20557 VERSION='$VERSION'
20558 RM='$RM'
20559 ofile='$ofile'
20560
20561
20562
20563
20564 _ACEOF
20565
20566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20567
20568 # Handling of arguments.
20569 for ac_config_target in $ac_config_targets
20570 do
20571 case $ac_config_target in
20572 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20573 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20574 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20576 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20577 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20578 "sm.pc") CONFIG_FILES="$CONFIG_FILES sm.pc" ;;
20579
20580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20581 esac
20582 done
20583
20584
20585 # If the user did not use the arguments to specify the items to instantiate,
20586 # then the envvar interface is used. Set only those that are not.
20587 # We use the long form for the default assignment because of an extremely
20588 # bizarre bug on SunOS 4.1.3.
20589 if $ac_need_defaults; then
20590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20593 fi
20594
20595 # Have a temporary directory for convenience. Make it in the build tree
20596 # simply because there is no reason against having it here, and in addition,
20597 # creating and moving files from /tmp can sometimes cause problems.
20598 # Hook for its removal unless debugging.
20599 # Note that there is a small window in which the directory will not be cleaned:
20600 # after its creation but before its name has been assigned to `$tmp'.
20601 $debug ||
20602 {
20603 tmp= ac_tmp=
20604 trap 'exit_status=$?
20605 : "${ac_tmp:=$tmp}"
20606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20607 ' 0
20608 trap 'as_fn_exit 1' 1 2 13 15
20609 }
20610 # Create a (secure) tmp directory for tmp files.
20611
20612 {
20613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20614 test -d "$tmp"
20615 } ||
20616 {
20617 tmp=./conf$$-$RANDOM
20618 (umask 077 && mkdir "$tmp")
20619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20620 ac_tmp=$tmp
20621
20622 # Set up the scripts for CONFIG_FILES section.
20623 # No need to generate them if there are no CONFIG_FILES.
20624 # This happens for instance with `./config.status config.h'.
20625 if test -n "$CONFIG_FILES"; then
20626
20627
20628 ac_cr=`echo X | tr X '\015'`
20629 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20630 # But we know of no other shell where ac_cr would be empty at this
20631 # point, so we can use a bashism as a fallback.
20632 if test "x$ac_cr" = x; then
20633 eval ac_cr=\$\'\\r\'
20634 fi
20635 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20636 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20637 ac_cs_awk_cr='\\r'
20638 else
20639 ac_cs_awk_cr=$ac_cr
20640 fi
20641
20642 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20643 _ACEOF
20644
20645
20646 {
20647 echo "cat >conf$$subs.awk <<_ACEOF" &&
20648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20649 echo "_ACEOF"
20650 } >conf$$subs.sh ||
20651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20653 ac_delim='%!_!# '
20654 for ac_last_try in false false false false false :; do
20655 . ./conf$$subs.sh ||
20656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20657
20658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20659 if test $ac_delim_n = $ac_delim_num; then
20660 break
20661 elif $ac_last_try; then
20662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20663 else
20664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20665 fi
20666 done
20667 rm -f conf$$subs.sh
20668
20669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20671 _ACEOF
20672 sed -n '
20673 h
20674 s/^/S["/; s/!.*/"]=/
20675 p
20676 g
20677 s/^[^!]*!//
20678 :repl
20679 t repl
20680 s/'"$ac_delim"'$//
20681 t delim
20682 :nl
20683 h
20684 s/\(.\{148\}\)..*/\1/
20685 t more1
20686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20687 p
20688 n
20689 b repl
20690 :more1
20691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20692 p
20693 g
20694 s/.\{148\}//
20695 t nl
20696 :delim
20697 h
20698 s/\(.\{148\}\)..*/\1/
20699 t more2
20700 s/["\\]/\\&/g; s/^/"/; s/$/"/
20701 p
20702 b
20703 :more2
20704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20705 p
20706 g
20707 s/.\{148\}//
20708 t delim
20709 ' <conf$$subs.awk | sed '
20710 /^[^""]/{
20711 N
20712 s/\n//
20713 }
20714 ' >>$CONFIG_STATUS || ac_write_fail=1
20715 rm -f conf$$subs.awk
20716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20717 _ACAWK
20718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20719 for (key in S) S_is_set[key] = 1
20720 FS = ""
20721
20722 }
20723 {
20724 line = $ 0
20725 nfields = split(line, field, "@")
20726 substed = 0
20727 len = length(field[1])
20728 for (i = 2; i < nfields; i++) {
20729 key = field[i]
20730 keylen = length(key)
20731 if (S_is_set[key]) {
20732 value = S[key]
20733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20734 len += length(value) + length(field[++i])
20735 substed = 1
20736 } else
20737 len += 1 + keylen
20738 }
20739
20740 print line
20741 }
20742
20743 _ACAWK
20744 _ACEOF
20745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20746 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20747 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20748 else
20749 cat
20750 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20751 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20752 _ACEOF
20753
20754 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20755 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20756 # trailing colons and then remove the whole line if VPATH becomes empty
20757 # (actually we leave an empty line to preserve line numbers).
20758 if test "x$srcdir" = x.; then
20759 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20760 h
20761 s///
20762 s/^/:/
20763 s/[ ]*$/:/
20764 s/:\$(srcdir):/:/g
20765 s/:\${srcdir}:/:/g
20766 s/:@srcdir@:/:/g
20767 s/^:*//
20768 s/:*$//
20769 x
20770 s/\(=[ ]*\).*/\1/
20771 G
20772 s/\n//
20773 s/^[^=]*=[ ]*$//
20774 }'
20775 fi
20776
20777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20778 fi # test -n "$CONFIG_FILES"
20779
20780 # Set up the scripts for CONFIG_HEADERS section.
20781 # No need to generate them if there are no CONFIG_HEADERS.
20782 # This happens for instance with `./config.status Makefile'.
20783 if test -n "$CONFIG_HEADERS"; then
20784 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20785 BEGIN {
20786 _ACEOF
20787
20788 # Transform confdefs.h into an awk script `defines.awk', embedded as
20789 # here-document in config.status, that substitutes the proper values into
20790 # config.h.in to produce config.h.
20791
20792 # Create a delimiter string that does not exist in confdefs.h, to ease
20793 # handling of long lines.
20794 ac_delim='%!_!# '
20795 for ac_last_try in false false :; do
20796 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20797 if test -z "$ac_tt"; then
20798 break
20799 elif $ac_last_try; then
20800 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20801 else
20802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20803 fi
20804 done
20805
20806 # For the awk script, D is an array of macro values keyed by name,
20807 # likewise P contains macro parameters if any. Preserve backslash
20808 # newline sequences.
20809
20810 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20811 sed -n '
20812 s/.\{148\}/&'"$ac_delim"'/g
20813 t rset
20814 :rset
20815 s/^[ ]*#[ ]*define[ ][ ]*/ /
20816 t def
20817 d
20818 :def
20819 s/\\$//
20820 t bsnl
20821 s/["\\]/\\&/g
20822 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20823 D["\1"]=" \3"/p
20824 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20825 d
20826 :bsnl
20827 s/["\\]/\\&/g
20828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20829 D["\1"]=" \3\\\\\\n"\\/p
20830 t cont
20831 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20832 t cont
20833 d
20834 :cont
20835 n
20836 s/.\{148\}/&'"$ac_delim"'/g
20837 t clear
20838 :clear
20839 s/\\$//
20840 t bsnlc
20841 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20842 d
20843 :bsnlc
20844 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20845 b cont
20846 ' <confdefs.h | sed '
20847 s/'"$ac_delim"'/"\\\
20848 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20849
20850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 for (key in D) D_is_set[key] = 1
20852 FS = ""
20853 }
20854 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20855 line = \$ 0
20856 split(line, arg, " ")
20857 if (arg[1] == "#") {
20858 defundef = arg[2]
20859 mac1 = arg[3]
20860 } else {
20861 defundef = substr(arg[1], 2)
20862 mac1 = arg[2]
20863 }
20864 split(mac1, mac2, "(") #)
20865 macro = mac2[1]
20866 prefix = substr(line, 1, index(line, defundef) - 1)
20867 if (D_is_set[macro]) {
20868 # Preserve the white space surrounding the "#".
20869 print prefix "define", macro P[macro] D[macro]
20870 next
20871 } else {
20872 # Replace #undef with comments. This is necessary, for example,
20873 # in the case of _POSIX_SOURCE, which is predefined and required
20874 # on some systems where configure will not decide to define it.
20875 if (defundef == "undef") {
20876 print "/*", prefix defundef, macro, "*/"
20877 next
20878 }
20879 }
20880 }
20881 { print }
20882 _ACAWK
20883 _ACEOF
20884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20885 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20886 fi # test -n "$CONFIG_HEADERS"
20887
20888
20889 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20890 shift
20891 for ac_tag
20892 do
20893 case $ac_tag in
20894 :[FHLC]) ac_mode=$ac_tag; continue;;
20895 esac
20896 case $ac_mode$ac_tag in
20897 :[FHL]*:*);;
20898 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20899 :[FH]-) ac_tag=-:-;;
20900 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20901 esac
20902 ac_save_IFS=$IFS
20903 IFS=:
20904 set x $ac_tag
20905 IFS=$ac_save_IFS
20906 shift
20907 ac_file=$1
20908 shift
20909
20910 case $ac_mode in
20911 :L) ac_source=$1;;
20912 :[FH])
20913 ac_file_inputs=
20914 for ac_f
20915 do
20916 case $ac_f in
20917 -) ac_f="$ac_tmp/stdin";;
20918 *) # Look for the file first in the build tree, then in the source tree
20919 # (if the path is not absolute). The absolute path cannot be DOS-style,
20920 # because $ac_f cannot contain `:'.
20921 test -f "$ac_f" ||
20922 case $ac_f in
20923 [\\/$]*) false;;
20924 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20925 esac ||
20926 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20927 esac
20928 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20929 as_fn_append ac_file_inputs " '$ac_f'"
20930 done
20931
20932 # Let's still pretend it is `configure' which instantiates (i.e., don't
20933 # use $as_me), people would be surprised to read:
20934 # /* config.h. Generated by config.status. */
20935 configure_input='Generated from '`
20936 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20937 `' by configure.'
20938 if test x"$ac_file" != x-; then
20939 configure_input="$ac_file. $configure_input"
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20941 $as_echo "$as_me: creating $ac_file" >&6;}
20942 fi
20943 # Neutralize special characters interpreted by sed in replacement strings.
20944 case $configure_input in #(
20945 *\&* | *\|* | *\\* )
20946 ac_sed_conf_input=`$as_echo "$configure_input" |
20947 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20948 *) ac_sed_conf_input=$configure_input;;
20949 esac
20950
20951 case $ac_tag in
20952 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20954 esac
20955 ;;
20956 esac
20957
20958 ac_dir=`$as_dirname -- "$ac_file" ||
20959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20960 X"$ac_file" : 'X\(//\)[^/]' \| \
20961 X"$ac_file" : 'X\(//\)$' \| \
20962 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20963 $as_echo X"$ac_file" |
20964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20965 s//\1/
20966 q
20967 }
20968 /^X\(\/\/\)[^/].*/{
20969 s//\1/
20970 q
20971 }
20972 /^X\(\/\/\)$/{
20973 s//\1/
20974 q
20975 }
20976 /^X\(\/\).*/{
20977 s//\1/
20978 q
20979 }
20980 s/.*/./; q'`
20981 as_dir="$ac_dir"; as_fn_mkdir_p
20982 ac_builddir=.
20983
20984 case "$ac_dir" in
20985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20986 *)
20987 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20988 # A ".." for each directory in $ac_dir_suffix.
20989 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20990 case $ac_top_builddir_sub in
20991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20993 esac ;;
20994 esac
20995 ac_abs_top_builddir=$ac_pwd
20996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20997 # for backward compatibility:
20998 ac_top_builddir=$ac_top_build_prefix
20999
21000 case $srcdir in
21001 .) # We are building in place.
21002 ac_srcdir=.
21003 ac_top_srcdir=$ac_top_builddir_sub
21004 ac_abs_top_srcdir=$ac_pwd ;;
21005 [\\/]* | ?:[\\/]* ) # Absolute name.
21006 ac_srcdir=$srcdir$ac_dir_suffix;
21007 ac_top_srcdir=$srcdir
21008 ac_abs_top_srcdir=$srcdir ;;
21009 *) # Relative name.
21010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21011 ac_top_srcdir=$ac_top_build_prefix$srcdir
21012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21013 esac
21014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21015
21016
21017 case $ac_mode in
21018 :F)
21019 #
21020 # CONFIG_FILE
21021 #
21022
21023 case $INSTALL in
21024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21026 esac
21027 ac_MKDIR_P=$MKDIR_P
21028 case $MKDIR_P in
21029 [\\/$]* | ?:[\\/]* ) ;;
21030 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21031 esac
21032 _ACEOF
21033
21034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21035 # If the template does not know about datarootdir, expand it.
21036 # FIXME: This hack should be removed a few years after 2.60.
21037 ac_datarootdir_hack=; ac_datarootdir_seen=
21038 ac_sed_dataroot='
21039 /datarootdir/ {
21040 p
21041 q
21042 }
21043 /@datadir@/p
21044 /@docdir@/p
21045 /@infodir@/p
21046 /@localedir@/p
21047 /@mandir@/p'
21048 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21049 *datarootdir*) ac_datarootdir_seen=yes;;
21050 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21052 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21053 _ACEOF
21054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21055 ac_datarootdir_hack='
21056 s&@datadir@&$datadir&g
21057 s&@docdir@&$docdir&g
21058 s&@infodir@&$infodir&g
21059 s&@localedir@&$localedir&g
21060 s&@mandir@&$mandir&g
21061 s&\\\${datarootdir}&$datarootdir&g' ;;
21062 esac
21063 _ACEOF
21064
21065 # Neutralize VPATH when `$srcdir' = `.'.
21066 # Shell code in configure.ac might set extrasub.
21067 # FIXME: do we really want to maintain this feature?
21068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21069 ac_sed_extra="$ac_vpsub
21070 $extrasub
21071 _ACEOF
21072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21073 :t
21074 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21075 s|@configure_input@|$ac_sed_conf_input|;t t
21076 s&@top_builddir@&$ac_top_builddir_sub&;t t
21077 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21078 s&@srcdir@&$ac_srcdir&;t t
21079 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21080 s&@top_srcdir@&$ac_top_srcdir&;t t
21081 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21082 s&@builddir@&$ac_builddir&;t t
21083 s&@abs_builddir@&$ac_abs_builddir&;t t
21084 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21085 s&@INSTALL@&$ac_INSTALL&;t t
21086 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21087 $ac_datarootdir_hack
21088 "
21089 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21090 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21091
21092 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21093 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21094 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21095 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21097 which seems to be undefined. Please make sure it is defined" >&5
21098 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21099 which seems to be undefined. Please make sure it is defined" >&2;}
21100
21101 rm -f "$ac_tmp/stdin"
21102 case $ac_file in
21103 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21104 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21105 esac \
21106 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21107 ;;
21108 :H)
21109 #
21110 # CONFIG_HEADER
21111 #
21112 if test x"$ac_file" != x-; then
21113 {
21114 $as_echo "/* $configure_input */" \
21115 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21116 } >"$ac_tmp/config.h" \
21117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21118 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21120 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21121 else
21122 rm -f "$ac_file"
21123 mv "$ac_tmp/config.h" "$ac_file" \
21124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21125 fi
21126 else
21127 $as_echo "/* $configure_input */" \
21128 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21129 || as_fn_error $? "could not create -" "$LINENO" 5
21130 fi
21131 # Compute "$ac_file"'s index in $config_headers.
21132 _am_arg="$ac_file"
21133 _am_stamp_count=1
21134 for _am_header in $config_headers :; do
21135 case $_am_header in
21136 $_am_arg | $_am_arg:* )
21137 break ;;
21138 * )
21139 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21140 esac
21141 done
21142 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21143 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21144 X"$_am_arg" : 'X\(//\)[^/]' \| \
21145 X"$_am_arg" : 'X\(//\)$' \| \
21146 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21147 $as_echo X"$_am_arg" |
21148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21149 s//\1/
21150 q
21151 }
21152 /^X\(\/\/\)[^/].*/{
21153 s//\1/
21154 q
21155 }
21156 /^X\(\/\/\)$/{
21157 s//\1/
21158 q
21159 }
21160 /^X\(\/\).*/{
21161 s//\1/
21162 q
21163 }
21164 s/.*/./; q'`/stamp-h$_am_stamp_count
21165 ;;
21166
21167 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21168 $as_echo "$as_me: executing $ac_file commands" >&6;}
21169 ;;
21170 esac
21171
21172
21173 case $ac_file$ac_mode in
21174 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21175 # Older Autoconf quotes --file arguments for eval, but not when files
21176 # are listed without --file. Let's play safe and only enable the eval
21177 # if we detect the quoting.
21178 case $CONFIG_FILES in
21179 *\'*) eval set x "$CONFIG_FILES" ;;
21180 *) set x $CONFIG_FILES ;;
21181 esac
21182 shift
21183 for mf
21184 do
21185 # Strip MF so we end up with the name of the file.
21186 mf=`echo "$mf" | sed -e 's/:.*$//'`
21187 # Check whether this is an Automake generated Makefile or not.
21188 # We used to match only the files named 'Makefile.in', but
21189 # some people rename them; so instead we look at the file content.
21190 # Grep'ing the first line is not enough: some people post-process
21191 # each Makefile.in and add a new line on top of each file to say so.
21192 # Grep'ing the whole file is not good either: AIX grep has a line
21193 # limit of 2048, but all sed's we know have understand at least 4000.
21194 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21195 dirpart=`$as_dirname -- "$mf" ||
21196 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21197 X"$mf" : 'X\(//\)[^/]' \| \
21198 X"$mf" : 'X\(//\)$' \| \
21199 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21200 $as_echo X"$mf" |
21201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21202 s//\1/
21203 q
21204 }
21205 /^X\(\/\/\)[^/].*/{
21206 s//\1/
21207 q
21208 }
21209 /^X\(\/\/\)$/{
21210 s//\1/
21211 q
21212 }
21213 /^X\(\/\).*/{
21214 s//\1/
21215 q
21216 }
21217 s/.*/./; q'`
21218 else
21219 continue
21220 fi
21221 # Extract the definition of DEPDIR, am__include, and am__quote
21222 # from the Makefile without running 'make'.
21223 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21224 test -z "$DEPDIR" && continue
21225 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21226 test -z "$am__include" && continue
21227 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21228 # Find all dependency output files, they are included files with
21229 # $(DEPDIR) in their names. We invoke sed twice because it is the
21230 # simplest approach to changing $(DEPDIR) to its actual value in the
21231 # expansion.
21232 for file in `sed -n "
21233 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21235 # Make sure the directory exists.
21236 test -f "$dirpart/$file" && continue
21237 fdir=`$as_dirname -- "$file" ||
21238 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21239 X"$file" : 'X\(//\)[^/]' \| \
21240 X"$file" : 'X\(//\)$' \| \
21241 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21242 $as_echo X"$file" |
21243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\/\)[^/].*/{
21248 s//\1/
21249 q
21250 }
21251 /^X\(\/\/\)$/{
21252 s//\1/
21253 q
21254 }
21255 /^X\(\/\).*/{
21256 s//\1/
21257 q
21258 }
21259 s/.*/./; q'`
21260 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21261 # echo "creating $dirpart/$file"
21262 echo '# dummy' > "$dirpart/$file"
21263 done
21264 done
21265 }
21266 ;;
21267 "libtool":C)
21268
21269 # See if we are running on zsh, and set the options that allow our
21270 # commands through without removal of \ escapes.
21271 if test -n "${ZSH_VERSION+set}"; then
21272 setopt NO_GLOB_SUBST
21273 fi
21274
21275 cfgfile=${ofile}T
21276 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21277 $RM "$cfgfile"
21278
21279 cat <<_LT_EOF >> "$cfgfile"
21280 #! $SHELL
21281 # Generated automatically by $as_me ($PACKAGE) $VERSION
21282 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21283
21284 # Provide generalized library-building support services.
21285 # Written by Gordon Matzigkeit, 1996
21286
21287 # Copyright (C) 2014 Free Software Foundation, Inc.
21288 # This is free software; see the source for copying conditions. There is NO
21289 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21290
21291 # GNU Libtool is free software; you can redistribute it and/or modify
21292 # it under the terms of the GNU General Public License as published by
21293 # the Free Software Foundation; either version 2 of of the License, or
21294 # (at your option) any later version.
21295 #
21296 # As a special exception to the GNU General Public License, if you
21297 # distribute this file as part of a program or library that is built
21298 # using GNU Libtool, you may include this file under the same
21299 # distribution terms that you use for the rest of that program.
21300 #
21301 # GNU Libtool is distributed in the hope that it will be useful, but
21302 # WITHOUT ANY WARRANTY; without even the implied warranty of
21303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21304 # GNU General Public License for more details.
21305 #
21306 # You should have received a copy of the GNU General Public License
21307 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21308
21309
21310 # The names of the tagged configurations supported by this script.
21311 available_tags=''
21312
21313 # Configured defaults for sys_lib_dlsearch_path munging.
21314 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21315
21316 # ### BEGIN LIBTOOL CONFIG
21317
21318 # Which release of libtool.m4 was used?
21319 macro_version=$macro_version
21320 macro_revision=$macro_revision
21321
21322 # Whether or not to build shared libraries.
21323 build_libtool_libs=$enable_shared
21324
21325 # Whether or not to build static libraries.
21326 build_old_libs=$enable_static
21327
21328 # What type of objects to build.
21329 pic_mode=$pic_mode
21330
21331 # Whether or not to optimize for fast installation.
21332 fast_install=$enable_fast_install
21333
21334 # Shared archive member basename,for filename based shared library versioning on AIX.
21335 shared_archive_member_spec=$shared_archive_member_spec
21336
21337 # Shell to use when invoking shell scripts.
21338 SHELL=$lt_SHELL
21339
21340 # An echo program that protects backslashes.
21341 ECHO=$lt_ECHO
21342
21343 # The PATH separator for the build system.
21344 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21345
21346 # The host system.
21347 host_alias=$host_alias
21348 host=$host
21349 host_os=$host_os
21350
21351 # The build system.
21352 build_alias=$build_alias
21353 build=$build
21354 build_os=$build_os
21355
21356 # A sed program that does not truncate output.
21357 SED=$lt_SED
21358
21359 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21360 Xsed="\$SED -e 1s/^X//"
21361
21362 # A grep program that handles long lines.
21363 GREP=$lt_GREP
21364
21365 # An ERE matcher.
21366 EGREP=$lt_EGREP
21367
21368 # A literal string matcher.
21369 FGREP=$lt_FGREP
21370
21371 # A BSD- or MS-compatible name lister.
21372 NM=$lt_NM
21373
21374 # Whether we need soft or hard links.
21375 LN_S=$lt_LN_S
21376
21377 # What is the maximum length of a command?
21378 max_cmd_len=$max_cmd_len
21379
21380 # Object file suffix (normally "o").
21381 objext=$ac_objext
21382
21383 # Executable file suffix (normally "").
21384 exeext=$exeext
21385
21386 # whether the shell understands "unset".
21387 lt_unset=$lt_unset
21388
21389 # turn spaces into newlines.
21390 SP2NL=$lt_lt_SP2NL
21391
21392 # turn newlines into spaces.
21393 NL2SP=$lt_lt_NL2SP
21394
21395 # convert \$build file names to \$host format.
21396 to_host_file_cmd=$lt_cv_to_host_file_cmd
21397
21398 # convert \$build files to toolchain format.
21399 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21400
21401 # An object symbol dumper.
21402 OBJDUMP=$lt_OBJDUMP
21403
21404 # Method to check whether dependent libraries are shared objects.
21405 deplibs_check_method=$lt_deplibs_check_method
21406
21407 # Command to use when deplibs_check_method = "file_magic".
21408 file_magic_cmd=$lt_file_magic_cmd
21409
21410 # How to find potential files when deplibs_check_method = "file_magic".
21411 file_magic_glob=$lt_file_magic_glob
21412
21413 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21414 want_nocaseglob=$lt_want_nocaseglob
21415
21416 # DLL creation program.
21417 DLLTOOL=$lt_DLLTOOL
21418
21419 # Command to associate shared and link libraries.
21420 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21421
21422 # The archiver.
21423 AR=$lt_AR
21424
21425 # Flags to create an archive.
21426 AR_FLAGS=$lt_AR_FLAGS
21427
21428 # How to feed a file listing to the archiver.
21429 archiver_list_spec=$lt_archiver_list_spec
21430
21431 # A symbol stripping program.
21432 STRIP=$lt_STRIP
21433
21434 # Commands used to install an old-style archive.
21435 RANLIB=$lt_RANLIB
21436 old_postinstall_cmds=$lt_old_postinstall_cmds
21437 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21438
21439 # Whether to use a lock for old archive extraction.
21440 lock_old_archive_extraction=$lock_old_archive_extraction
21441
21442 # A C compiler.
21443 LTCC=$lt_CC
21444
21445 # LTCC compiler flags.
21446 LTCFLAGS=$lt_CFLAGS
21447
21448 # Take the output of nm and produce a listing of raw symbols and C names.
21449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21450
21451 # Transform the output of nm in a proper C declaration.
21452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21453
21454 # Transform the output of nm into a list of symbols to manually relocate.
21455 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21456
21457 # Transform the output of nm in a C name address pair.
21458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21459
21460 # Transform the output of nm in a C name address pair when lib prefix is needed.
21461 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21462
21463 # The name lister interface.
21464 nm_interface=$lt_lt_cv_nm_interface
21465
21466 # Specify filename containing input files for \$NM.
21467 nm_file_list_spec=$lt_nm_file_list_spec
21468
21469 # The root where to search for dependent libraries,and where our libraries should be installed.
21470 lt_sysroot=$lt_sysroot
21471
21472 # Command to truncate a binary pipe.
21473 lt_truncate_bin=$lt_lt_cv_truncate_bin
21474
21475 # The name of the directory that contains temporary libtool files.
21476 objdir=$objdir
21477
21478 # Used to examine libraries when file_magic_cmd begins with "file".
21479 MAGIC_CMD=$MAGIC_CMD
21480
21481 # Must we lock files when doing compilation?
21482 need_locks=$lt_need_locks
21483
21484 # Manifest tool.
21485 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21486
21487 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21488 DSYMUTIL=$lt_DSYMUTIL
21489
21490 # Tool to change global to local symbols on Mac OS X.
21491 NMEDIT=$lt_NMEDIT
21492
21493 # Tool to manipulate fat objects and archives on Mac OS X.
21494 LIPO=$lt_LIPO
21495
21496 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21497 OTOOL=$lt_OTOOL
21498
21499 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21500 OTOOL64=$lt_OTOOL64
21501
21502 # Old archive suffix (normally "a").
21503 libext=$libext
21504
21505 # Shared library suffix (normally ".so").
21506 shrext_cmds=$lt_shrext_cmds
21507
21508 # The commands to extract the exported symbol list from a shared archive.
21509 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21510
21511 # Variables whose values should be saved in libtool wrapper scripts and
21512 # restored at link time.
21513 variables_saved_for_relink=$lt_variables_saved_for_relink
21514
21515 # Do we need the "lib" prefix for modules?
21516 need_lib_prefix=$need_lib_prefix
21517
21518 # Do we need a version for libraries?
21519 need_version=$need_version
21520
21521 # Library versioning type.
21522 version_type=$version_type
21523
21524 # Shared library runtime path variable.
21525 runpath_var=$runpath_var
21526
21527 # Shared library path variable.
21528 shlibpath_var=$shlibpath_var
21529
21530 # Is shlibpath searched before the hard-coded library search path?
21531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21532
21533 # Format of library name prefix.
21534 libname_spec=$lt_libname_spec
21535
21536 # List of archive names. First name is the real one, the rest are links.
21537 # The last name is the one that the linker finds with -lNAME
21538 library_names_spec=$lt_library_names_spec
21539
21540 # The coded name of the library, if different from the real name.
21541 soname_spec=$lt_soname_spec
21542
21543 # Permission mode override for installation of shared libraries.
21544 install_override_mode=$lt_install_override_mode
21545
21546 # Command to use after installation of a shared archive.
21547 postinstall_cmds=$lt_postinstall_cmds
21548
21549 # Command to use after uninstallation of a shared archive.
21550 postuninstall_cmds=$lt_postuninstall_cmds
21551
21552 # Commands used to finish a libtool library installation in a directory.
21553 finish_cmds=$lt_finish_cmds
21554
21555 # As "finish_cmds", except a single script fragment to be evaled but
21556 # not shown.
21557 finish_eval=$lt_finish_eval
21558
21559 # Whether we should hardcode library paths into libraries.
21560 hardcode_into_libs=$hardcode_into_libs
21561
21562 # Compile-time system search path for libraries.
21563 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21564
21565 # Detected run-time system search path for libraries.
21566 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21567
21568 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21569 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21570
21571 # Whether dlopen is supported.
21572 dlopen_support=$enable_dlopen
21573
21574 # Whether dlopen of programs is supported.
21575 dlopen_self=$enable_dlopen_self
21576
21577 # Whether dlopen of statically linked programs is supported.
21578 dlopen_self_static=$enable_dlopen_self_static
21579
21580 # Commands to strip libraries.
21581 old_striplib=$lt_old_striplib
21582 striplib=$lt_striplib
21583
21584
21585 # The linker used to build libraries.
21586 LD=$lt_LD
21587
21588 # How to create reloadable object files.
21589 reload_flag=$lt_reload_flag
21590 reload_cmds=$lt_reload_cmds
21591
21592 # Commands used to build an old-style archive.
21593 old_archive_cmds=$lt_old_archive_cmds
21594
21595 # A language specific compiler.
21596 CC=$lt_compiler
21597
21598 # Is the compiler the GNU compiler?
21599 with_gcc=$GCC
21600
21601 # Compiler flag to turn off builtin functions.
21602 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21603
21604 # Additional compiler flags for building library objects.
21605 pic_flag=$lt_lt_prog_compiler_pic
21606
21607 # How to pass a linker flag through the compiler.
21608 wl=$lt_lt_prog_compiler_wl
21609
21610 # Compiler flag to prevent dynamic linking.
21611 link_static_flag=$lt_lt_prog_compiler_static
21612
21613 # Does compiler simultaneously support -c and -o options?
21614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21615
21616 # Whether or not to add -lc for building shared libraries.
21617 build_libtool_need_lc=$archive_cmds_need_lc
21618
21619 # Whether or not to disallow shared libs when runtime libs are static.
21620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21621
21622 # Compiler flag to allow reflexive dlopens.
21623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21624
21625 # Compiler flag to generate shared objects directly from archives.
21626 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21627
21628 # Whether the compiler copes with passing no objects directly.
21629 compiler_needs_object=$lt_compiler_needs_object
21630
21631 # Create an old-style archive from a shared archive.
21632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21633
21634 # Create a temporary old-style archive to link instead of a shared archive.
21635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21636
21637 # Commands used to build a shared archive.
21638 archive_cmds=$lt_archive_cmds
21639 archive_expsym_cmds=$lt_archive_expsym_cmds
21640
21641 # Commands used to build a loadable module if different from building
21642 # a shared archive.
21643 module_cmds=$lt_module_cmds
21644 module_expsym_cmds=$lt_module_expsym_cmds
21645
21646 # Whether we are building with GNU ld or not.
21647 with_gnu_ld=$lt_with_gnu_ld
21648
21649 # Flag that allows shared libraries with undefined symbols to be built.
21650 allow_undefined_flag=$lt_allow_undefined_flag
21651
21652 # Flag that enforces no undefined symbols.
21653 no_undefined_flag=$lt_no_undefined_flag
21654
21655 # Flag to hardcode \$libdir into a binary during linking.
21656 # This must work even if \$libdir does not exist
21657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21658
21659 # Whether we need a single "-rpath" flag with a separated argument.
21660 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21661
21662 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21663 # DIR into the resulting binary.
21664 hardcode_direct=$hardcode_direct
21665
21666 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21667 # DIR into the resulting binary and the resulting library dependency is
21668 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21669 # library is relocated.
21670 hardcode_direct_absolute=$hardcode_direct_absolute
21671
21672 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21673 # into the resulting binary.
21674 hardcode_minus_L=$hardcode_minus_L
21675
21676 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21677 # into the resulting binary.
21678 hardcode_shlibpath_var=$hardcode_shlibpath_var
21679
21680 # Set to "yes" if building a shared library automatically hardcodes DIR
21681 # into the library and all subsequent libraries and executables linked
21682 # against it.
21683 hardcode_automatic=$hardcode_automatic
21684
21685 # Set to yes if linker adds runtime paths of dependent libraries
21686 # to runtime path list.
21687 inherit_rpath=$inherit_rpath
21688
21689 # Whether libtool must link a program against all its dependency libraries.
21690 link_all_deplibs=$link_all_deplibs
21691
21692 # Set to "yes" if exported symbols are required.
21693 always_export_symbols=$always_export_symbols
21694
21695 # The commands to list exported symbols.
21696 export_symbols_cmds=$lt_export_symbols_cmds
21697
21698 # Symbols that should not be listed in the preloaded symbols.
21699 exclude_expsyms=$lt_exclude_expsyms
21700
21701 # Symbols that must always be exported.
21702 include_expsyms=$lt_include_expsyms
21703
21704 # Commands necessary for linking programs (against libraries) with templates.
21705 prelink_cmds=$lt_prelink_cmds
21706
21707 # Commands necessary for finishing linking programs.
21708 postlink_cmds=$lt_postlink_cmds
21709
21710 # Specify filename containing input files.
21711 file_list_spec=$lt_file_list_spec
21712
21713 # How to hardcode a shared library path into an executable.
21714 hardcode_action=$hardcode_action
21715
21716 # ### END LIBTOOL CONFIG
21717
21718 _LT_EOF
21719
21720 cat <<'_LT_EOF' >> "$cfgfile"
21721
21722 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21723
21724 # func_munge_path_list VARIABLE PATH
21725 # -----------------------------------
21726 # VARIABLE is name of variable containing _space_ separated list of
21727 # directories to be munged by the contents of PATH, which is string
21728 # having a format:
21729 # "DIR[:DIR]:"
21730 # string "DIR[ DIR]" will be prepended to VARIABLE
21731 # ":DIR[:DIR]"
21732 # string "DIR[ DIR]" will be appended to VARIABLE
21733 # "DIRP[:DIRP]::[DIRA:]DIRA"
21734 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21735 # "DIRA[ DIRA]" will be appended to VARIABLE
21736 # "DIR[:DIR]"
21737 # VARIABLE will be replaced by "DIR[ DIR]"
21738 func_munge_path_list ()
21739 {
21740 case x$2 in
21741 x)
21742 ;;
21743 *:)
21744 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21745 ;;
21746 x:*)
21747 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21748 ;;
21749 *::*)
21750 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21751 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21752 ;;
21753 *)
21754 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21755 ;;
21756 esac
21757 }
21758
21759
21760 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21761 func_cc_basename ()
21762 {
21763 for cc_temp in $*""; do
21764 case $cc_temp in
21765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21767 \-*) ;;
21768 *) break;;
21769 esac
21770 done
21771 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21772 }
21773
21774
21775 # ### END FUNCTIONS SHARED WITH CONFIGURE
21776
21777 _LT_EOF
21778
21779 case $host_os in
21780 aix3*)
21781 cat <<\_LT_EOF >> "$cfgfile"
21782 # AIX sometimes has problems with the GCC collect2 program. For some
21783 # reason, if we set the COLLECT_NAMES environment variable, the problems
21784 # vanish in a puff of smoke.
21785 if test set != "${COLLECT_NAMES+set}"; then
21786 COLLECT_NAMES=
21787 export COLLECT_NAMES
21788 fi
21789 _LT_EOF
21790 ;;
21791 esac
21792
21793
21794 ltmain=$ac_aux_dir/ltmain.sh
21795
21796
21797 # We use sed instead of cat because bash on DJGPP gets confused if
21798 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21799 # text mode, it properly converts lines to CR/LF. This bash problem
21800 # is reportedly fixed, but why not run on old versions too?
21801 sed '$q' "$ltmain" >> "$cfgfile" \
21802 || (rm -f "$cfgfile"; exit 1)
21803
21804 mv -f "$cfgfile" "$ofile" ||
21805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21806 chmod +x "$ofile"
21807
21808 ;;
21809
21810 esac
21811 done # for ac_tag
21812
21813
21814 as_fn_exit 0
21815 _ACEOF
21816 ac_clean_files=$ac_clean_files_save
21817
21818 test $ac_write_fail = 0 ||
21819 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21820
21821
21822 # configure is writing to config.log, and then calls config.status.
21823 # config.status does its own redirection, appending to config.log.
21824 # Unfortunately, on DOS this fails, as config.log is still kept open
21825 # by configure, so config.status won't be able to write to it; its
21826 # output is simply discarded. So we exec the FD to /dev/null,
21827 # effectively closing config.log, so it can be properly (re)opened and
21828 # appended to by config.status. When coming back to configure, we
21829 # need to make the FD available again.
21830 if test "$no_create" != yes; then
21831 ac_cs_success=:
21832 ac_config_status_args=
21833 test "$silent" = yes &&
21834 ac_config_status_args="$ac_config_status_args --quiet"
21835 exec 5>/dev/null
21836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21837 exec 5>>config.log
21838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21839 # would make configure fail if this is the last instruction.
21840 $ac_cs_success || as_fn_exit 1
21841 fi
21842 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21844 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21845 fi
21846
21847