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.66 for libXi 1.4.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210 fi
211 fi
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540 as_awk_strverscmp='
541 # Use only awk features that work with 7th edition Unix awk (1978).
542 # My, what an old awk you have, Mr. Solaris!
543 END {
544 while (length(v1) && length(v2)) {
545 # Set d1 to be the next thing to compare from v1, and likewise for d2.
546 # Normally this is a single character, but if v1 and v2 contain digits,
547 # compare them as integers and fractions as strverscmp does.
548 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
549 # Split v1 and v2 into their leading digit string components d1 and d2,
550 # and advance v1 and v2 past the leading digit strings.
551 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
552 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
553 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
554 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
555 if (d1 ~ /^0/) {
556 if (d2 ~ /^0/) {
557 # Compare two fractions.
558 while (d1 ~ /^0/ && d2 ~ /^0/) {
559 d1 = substr(d1, 2); len1--
560 d2 = substr(d2, 2); len2--
561 }
562 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
563 # The two components differ in length, and the common prefix
564 # contains only leading zeros. Consider the longer to be less.
565 d1 = -len1
566 d2 = -len2
567 } else {
568 # Otherwise, compare as strings.
569 d1 = "x" d1
570 d2 = "x" d2
571 }
572 } else {
573 # A fraction is less than an integer.
574 exit 1
575 }
576 } else {
577 if (d2 ~ /^0/) {
578 # An integer is greater than a fraction.
579 exit 2
580 } else {
581 # Compare two integers.
582 d1 += 0
583 d2 += 0
584 }
585 }
586 } else {
587 # The normal case, without worrying about digits.
588 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
589 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
590 }
591 if (d1 < d2) exit 1
592 if (d1 > d2) exit 2
593 }
594 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
595 # which mishandles some comparisons of empty strings to integers.
596 if (length(v2)) exit 1
597 if (length(v1)) exit 2
598 }
599 '
600 SHELL=${CONFIG_SHELL-/bin/sh}
601
602
603 test -n "$DJDIR" || exec 7<&0 </dev/null
604 exec 6>&1
605
606 # Name of the host.
607 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
608 # so uname gets run too.
609 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
610
611 #
612 # Initializations.
613 #
614 ac_default_prefix=/usr/local
615 ac_clean_files=
616 ac_config_libobj_dir=.
617 LIBOBJS=
618 cross_compiling=no
619 subdirs=
620 MFLAGS=
621 MAKEFLAGS=
622
623 # Identity of this package.
624 PACKAGE_NAME='libXi'
625 PACKAGE_TARNAME='libXi'
626 PACKAGE_VERSION='1.4.1'
627 PACKAGE_STRING='libXi 1.4.1'
628 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
629 PACKAGE_URL=''
630
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stdio.h>
634 #ifdef HAVE_SYS_TYPES_H
635 # include <sys/types.h>
636 #endif
637 #ifdef HAVE_SYS_STAT_H
638 # include <sys/stat.h>
639 #endif
640 #ifdef STDC_HEADERS
641 # include <stdlib.h>
642 # include <stddef.h>
643 #else
644 # ifdef HAVE_STDLIB_H
645 # include <stdlib.h>
646 # endif
647 #endif
648 #ifdef HAVE_STRING_H
649 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
650 # include <memory.h>
651 # endif
652 # include <string.h>
653 #endif
654 #ifdef HAVE_STRINGS_H
655 # include <strings.h>
656 #endif
657 #ifdef HAVE_INTTYPES_H
658 # include <inttypes.h>
659 #endif
660 #ifdef HAVE_STDINT_H
661 # include <stdint.h>
662 #endif
663 #ifdef HAVE_UNISTD_H
664 # include <unistd.h>
665 #endif"
666
667 ac_subst_vars='am__EXEEXT_FALSE
668 am__EXEEXT_TRUE
669 LTLIBOBJS
670 LIBOBJS
671 XTMALLOC_ZERO_CFLAGS
672 XMALLOC_ZERO_CFLAGS
673 MALLOC_ZERO_CFLAGS
674 INSTALL_MANPAGES_FALSE
675 INSTALL_MANPAGES_TRUE
676 HAVE_DOCTOOLS_FALSE
677 HAVE_DOCTOOLS_TRUE
678 XI_LIBS
679 XI_CFLAGS
680 OTOOL64
681 OTOOL
682 LIPO
683 NMEDIT
684 DSYMUTIL
685 RANLIB
686 AR
687 OBJDUMP
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LD
693 FGREP
694 LIBTOOL
695 HAVE_ASCIIDOC_FALSE
696 HAVE_ASCIIDOC_TRUE
697 ASCIIDOC
698 HAVE_STYLESHEETS_FALSE
699 HAVE_STYLESHEETS_TRUE
700 XSL_STYLESHEET
701 STYLESHEET_SRCDIR
702 XORG_SGML_PATH
703 HAVE_FOP_FALSE
704 HAVE_FOP_TRUE
705 FOP
706 HAVE_XMLTO_FALSE
707 HAVE_XMLTO_TRUE
708 HAVE_XMLTO_TEXT_FALSE
709 HAVE_XMLTO_TEXT_TRUE
710 XMLTO
711 ENABLE_SPECS_FALSE
712 ENABLE_SPECS_TRUE
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 MAN_SUBSTS
716 XORG_MAN_PAGE
717 ADMIN_MAN_DIR
718 DRIVER_MAN_DIR
719 MISC_MAN_DIR
720 FILE_MAN_DIR
721 LIB_MAN_DIR
722 APP_MAN_DIR
723 ADMIN_MAN_SUFFIX
724 DRIVER_MAN_SUFFIX
725 MISC_MAN_SUFFIX
726 FILE_MAN_SUFFIX
727 LIB_MAN_SUFFIX
728 APP_MAN_SUFFIX
729 SED
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 INSTALL_CMD
739 PKG_CONFIG_LIBDIR
740 PKG_CONFIG_PATH
741 PKG_CONFIG
742 CHANGELOG_CMD
743 CWARNFLAGS
744 EGREP
745 GREP
746 CPP
747 am__fastdepCC_FALSE
748 am__fastdepCC_TRUE
749 CCDEPMODE
750 AMDEPBACKSLASH
751 AMDEP_FALSE
752 AMDEP_TRUE
753 am__quote
754 am__include
755 DEPDIR
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 MAINT
764 MAINTAINER_MODE_FALSE
765 MAINTAINER_MODE_TRUE
766 am__untar
767 am__tar
768 AMTAR
769 am__leading_dot
770 SET_MAKE
771 AWK
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 STRIP
776 install_sh
777 MAKEINFO
778 AUTOHEADER
779 AUTOMAKE
780 AUTOCONF
781 ACLOCAL
782 VERSION
783 PACKAGE
784 CYGPATH_W
785 am__isrc
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 target_alias
790 host_alias
791 build_alias
792 LIBS
793 ECHO_T
794 ECHO_N
795 ECHO_C
796 DEFS
797 mandir
798 localedir
799 libdir
800 psdir
801 pdfdir
802 dvidir
803 htmldir
804 infodir
805 docdir
806 oldincludedir
807 includedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL'
827 ac_subst_files=''
828 ac_user_opts='
829 enable_option_checking
830 enable_maintainer_mode
831 enable_dependency_tracking
832 enable_strict_compilation
833 enable_silent_rules
834 enable_specs
835 with_xmlto
836 with_fop
837 with_asciidoc
838 enable_shared
839 enable_static
840 with_pic
841 enable_fast_install
842 with_gnu_ld
843 enable_libtool_lock
844 enable_malloc0returnsnull
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 PKG_CONFIG
856 PKG_CONFIG_PATH
857 PKG_CONFIG_LIBDIR
858 XMLTO
859 FOP
860 ASCIIDOC
861 XI_CFLAGS
862 XI_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 includedir='${prefix}/include'
902 oldincludedir='/usr/include'
903 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
904 infodir='${datarootdir}/info'
905 htmldir='${docdir}'
906 dvidir='${docdir}'
907 pdfdir='${docdir}'
908 psdir='${docdir}'
909 libdir='${exec_prefix}/lib'
910 localedir='${datarootdir}/locale'
911 mandir='${datarootdir}/man'
912
913 ac_prev=
914 ac_dashdash=
915 for ac_option
916 do
917 # If the previous option needs an argument, assign it.
918 if test -n "$ac_prev"; then
919 eval $ac_prev=\$ac_option
920 ac_prev=
921 continue
922 fi
923
924 case $ac_option in
925 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 *) ac_optarg=yes ;;
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: $ac_useropt"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248 Try \`$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used" >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures libXi 1.4.1 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/libXi]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of libXi 1.4.1:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-maintainer-mode enable make rules and dependencies not useful
1483 (and sometimes confusing) to the casual installer
1484 --disable-dependency-tracking speeds up one-time build
1485 --enable-dependency-tracking do not reject slow dependency extractors
1486 --enable-strict-compilation
1487 Enable all warnings from compiler and make them
1488 errors (default: disabled)
1489 --enable-silent-rules less verbose build output (undo: `make V=1')
1490 --disable-silent-rules verbose build output (undo: `make V=0')
1491 --enable-specs Enable building the specs (default: yes)
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-malloc0returnsnull
1498 malloc(0) returns NULL (default: auto)
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-xmlto Use xmlto to regenerate documentation (default: yes,
1504 if installed)
1505 --with-fop Use fop to regenerate documentation (default: yes,
1506 if installed)
1507 --with-asciidoc Use asciidoc to regenerate documentation (default:
1508 yes, if installed)
1509 --with-pic try to use only PIC/non-PIC objects [default=use
1510 both]
1511 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1512
1513 Some influential environment variables:
1514 CC C compiler command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517 nonstandard directory <lib dir>
1518 LIBS libraries to pass to the linker, e.g. -l<library>
1519 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520 you have headers in a nonstandard directory <include dir>
1521 CPP C preprocessor
1522 PKG_CONFIG path to pkg-config utility
1523 PKG_CONFIG_PATH
1524 directories to add to pkg-config's search path
1525 PKG_CONFIG_LIBDIR
1526 path overriding pkg-config's built-in search path
1527 XMLTO Path to xmlto command
1528 FOP Path to fop command
1529 ASCIIDOC Path to asciidoc command
1530 XI_CFLAGS C compiler flags for XI, overriding pkg-config
1531 XI_LIBS linker flags for XI, overriding pkg-config
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1589 else
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1593 done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598 cat <<\_ACEOF
1599 libXi configure 1.4.1
1600 generated by GNU Autoconf 2.66
1601
1602 Copyright (C) 2010 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606 exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext
1620 if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_compile") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest.$ac_objext; then :
1639 ac_retval=0
1640 else
1641 $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645 fi
1646 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1652 # ---------------------------------------------
1653 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1654 # accordingly.
1655 ac_fn_c_check_decl ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 as_decl_name=`echo $2|sed 's/ *(.*//'`
1659 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1661 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1662 if eval "test \"\${$3+set}\"" = set; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 int
1669 main ()
1670 {
1671 #ifndef $as_decl_name
1672 #ifdef __cplusplus
1673 (void) $as_decl_use;
1674 #else
1675 (void) $as_decl_name;
1676 #endif
1677 #endif
1678
1679 ;
1680 return 0;
1681 }
1682 _ACEOF
1683 if ac_fn_c_try_compile "$LINENO"; then :
1684 eval "$3=yes"
1685 else
1686 eval "$3=no"
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689 fi
1690 eval ac_res=\$$3
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 $as_echo "$ac_res" >&6; }
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694
1695 } # ac_fn_c_check_decl
1696
1697 # ac_fn_c_try_cpp LINENO
1698 # ----------------------
1699 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_cpp ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_cpp conftest.$ac_ext"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } >/dev/null && {
1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_cpp
1733
1734 # ac_fn_c_try_run LINENO
1735 # ----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737 # that executables *can* be run.
1738 ac_fn_c_try_run ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=$ac_status
1769 fi
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_run
1775
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval "test \"\${$3+set}\"" = set; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805 } # ac_fn_c_check_header_compile
1806
1807 # ac_fn_c_try_link LINENO
1808 # -----------------------
1809 # Try to link conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_c_try_link ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest$ac_exeext
1814 if { { ac_try="$ac_link"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_link") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_c_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest$ac_exeext && {
1833 test "$cross_compiling" = yes ||
1834 $as_test_x conftest$ac_exeext
1835 }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: failed program was:" >&5
1839 sed 's/^/| /' conftest.$ac_ext >&5
1840
1841 ac_retval=1
1842 fi
1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845 # interfere with the next link command; also delete a directory that is
1846 # left behind by Apple's compiler. We do this before executing the actions.
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 as_fn_set_status $ac_retval
1850
1851 } # ac_fn_c_try_link
1852
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if eval "test \"\${$3+set}\"" = set; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1869
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1874
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1880
1881 #undef $2
1882
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1896
1897 int
1898 main ()
1899 {
1900 return $2 ();
1901 ;
1902 return 0;
1903 }
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1912 fi
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918 } # ac_fn_c_check_func
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1922
1923 It was created by libXi $as_me 1.4.1, which was
1924 generated by GNU Autoconf 2.66. Invocation command line was
1925
1926 $ $0 $@
1927
1928 _ACEOF
1929 exec 5>>config.log
1930 {
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1935
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1941
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1944
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1952
1953 _ASUNAME
1954
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1957 do
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1963
1964 } >&5
1965
1966 cat >&5 <<_ACEOF
1967
1968
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1972
1973 _ACEOF
1974
1975
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1986 do
1987 for ac_arg
1988 do
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1999 2)
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2012 ;;
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2015 fi
2016 as_fn_append ac_configure_args " '$ac_arg'"
2017 ;;
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2023
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2031 {
2032 echo
2033
2034 $as_echo "## ---------------- ##
2035 ## Cache variables. ##
2036 ## ---------------- ##"
2037 echo
2038 # The following way of writing the cache mishandles newlines in values,
2039 (
2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2041 eval ac_val=\$$ac_var
2042 case $ac_val in #(
2043 *${as_nl}*)
2044 case $ac_var in #(
2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2046 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2047 esac
2048 case $ac_var in #(
2049 _ | IFS | as_nl) ;; #(
2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2051 *) { eval $ac_var=; unset $ac_var;} ;;
2052 esac ;;
2053 esac
2054 done
2055 (set) 2>&1 |
2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2057 *${as_nl}ac_space=\ *)
2058 sed -n \
2059 "s/'\''/'\''\\\\'\'''\''/g;
2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2061 ;; #(
2062 *)
2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2064 ;;
2065 esac |
2066 sort
2067 )
2068 echo
2069
2070 $as_echo "## ----------------- ##
2071 ## Output variables. ##
2072 ## ----------------- ##"
2073 echo
2074 for ac_var in $ac_subst_vars
2075 do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in
2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 esac
2080 $as_echo "$ac_var='\''$ac_val'\''"
2081 done | sort
2082 echo
2083
2084 if test -n "$ac_subst_files"; then
2085 $as_echo "## ------------------- ##
2086 ## File substitutions. ##
2087 ## ------------------- ##"
2088 echo
2089 for ac_var in $ac_subst_files
2090 do
2091 eval ac_val=\$$ac_var
2092 case $ac_val in
2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2094 esac
2095 $as_echo "$ac_var='\''$ac_val'\''"
2096 done | sort
2097 echo
2098 fi
2099
2100 if test -s confdefs.h; then
2101 $as_echo "## ----------- ##
2102 ## confdefs.h. ##
2103 ## ----------- ##"
2104 echo
2105 cat confdefs.h
2106 echo
2107 fi
2108 test "$ac_signal" != 0 &&
2109 $as_echo "$as_me: caught signal $ac_signal"
2110 $as_echo "$as_me: exit $exit_status"
2111 } >&5
2112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2114 exit $exit_status
2115 ' 0
2116 for ac_signal in 1 2 13 15; do
2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2118 done
2119 ac_signal=0
2120
2121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2122 rm -f -r conftest* confdefs.h
2123
2124 $as_echo "/* confdefs.h */" > confdefs.h
2125
2126 # Predefined preprocessor variables.
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_NAME "$PACKAGE_NAME"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_STRING "$PACKAGE_STRING"
2142 _ACEOF
2143
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2146 _ACEOF
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_URL "$PACKAGE_URL"
2150 _ACEOF
2151
2152
2153 # Let the site file select an alternate cache file if it wants to.
2154 # Prefer an explicitly selected file to automatically selected ones.
2155 ac_site_file1=NONE
2156 ac_site_file2=NONE
2157 if test -n "$CONFIG_SITE"; then
2158 # We do not want a PATH search for config.site.
2159 case $CONFIG_SITE in #((
2160 -*) ac_site_file1=./$CONFIG_SITE;;
2161 */*) ac_site_file1=$CONFIG_SITE;;
2162 *) ac_site_file1=./$CONFIG_SITE;;
2163 esac
2164 elif test "x$prefix" != xNONE; then
2165 ac_site_file1=$prefix/share/config.site
2166 ac_site_file2=$prefix/etc/config.site
2167 else
2168 ac_site_file1=$ac_default_prefix/share/config.site
2169 ac_site_file2=$ac_default_prefix/etc/config.site
2170 fi
2171 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2172 do
2173 test "x$ac_site_file" = xNONE && continue
2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2176 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2177 sed 's/^/| /' "$ac_site_file" >&5
2178 . "$ac_site_file" \
2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2181 as_fn_error $? "failed to load site script $ac_site_file
2182 See \`config.log' for more details" "$LINENO" 5; }
2183 fi
2184 done
2185
2186 if test -r "$cache_file"; then
2187 # Some versions of bash will fail to source /dev/null (special files
2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2191 $as_echo "$as_me: loading cache $cache_file" >&6;}
2192 case $cache_file in
2193 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2194 *) . "./$cache_file";;
2195 esac
2196 fi
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2199 $as_echo "$as_me: creating cache $cache_file" >&6;}
2200 >$cache_file
2201 fi
2202
2203 # Check that the precious variables saved in the cache have kept the same
2204 # value.
2205 ac_cache_corrupted=false
2206 for ac_var in $ac_precious_vars; do
2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2208 eval ac_new_set=\$ac_env_${ac_var}_set
2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2210 eval ac_new_val=\$ac_env_${ac_var}_value
2211 case $ac_old_set,$ac_new_set in
2212 set,)
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2214 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2215 ac_cache_corrupted=: ;;
2216 ,set)
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2218 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2219 ac_cache_corrupted=: ;;
2220 ,);;
2221 *)
2222 if test "x$ac_old_val" != "x$ac_new_val"; then
2223 # differences in whitespace do not lead to failure.
2224 ac_old_val_w=`echo x $ac_old_val`
2225 ac_new_val_w=`echo x $ac_new_val`
2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2228 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2229 ac_cache_corrupted=:
2230 else
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2232 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2233 eval $ac_var=\$ac_old_val
2234 fi
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2236 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2238 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2239 fi;;
2240 esac
2241 # Pass precious variables to config.status.
2242 if test "$ac_new_set" = set; then
2243 case $ac_new_val in
2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 *) ac_arg=$ac_var=$ac_new_val ;;
2246 esac
2247 case " $ac_configure_args " in
2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2250 esac
2251 fi
2252 done
2253 if $ac_cache_corrupted; then
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2257 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 fi
2260 ## -------------------- ##
2261 ## Main body of script. ##
2262 ## -------------------- ##
2263
2264 ac_ext=c
2265 ac_cpp='$CPP $CPPFLAGS'
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2269
2270
2271 am__api_version='1.11'
2272
2273 ac_aux_dir=
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 if test -f "$ac_dir/install-sh"; then
2276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install-sh -c"
2278 break
2279 elif test -f "$ac_dir/install.sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install.sh -c"
2282 break
2283 elif test -f "$ac_dir/shtool"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/shtool install -c"
2286 break
2287 fi
2288 done
2289 if test -z "$ac_aux_dir"; then
2290 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2291 fi
2292
2293 # These three variables are undocumented and unsupported,
2294 # and are intended to be withdrawn in a future Autoconf release.
2295 # They can cause serious problems if a builder's source tree is in a directory
2296 # whose full name contains unusual characters.
2297 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2298 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2299 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2300
2301
2302 # Find a good install program. We prefer a C program (faster),
2303 # so one script is as good as another. But avoid the broken or
2304 # incompatible versions:
2305 # SysV /etc/install, /usr/sbin/install
2306 # SunOS /usr/etc/install
2307 # IRIX /sbin/install
2308 # AIX /bin/install
2309 # AmigaOS /C/install, which installs bootblocks on floppy discs
2310 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313 # OS/2's system install, which has a completely different semantic
2314 # ./install, which can be erroneously created by make from ./install.sh.
2315 # Reject install programs that cannot install multiple files.
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2317 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2318 if test -z "$INSTALL"; then
2319 if test "${ac_cv_path_install+set}" = set; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2324 do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 # Account for people who put trailing slashes in PATH elements.
2328 case $as_dir/ in #((
2329 ./ | .// | /[cC]/* | \
2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2331 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2332 /usr/ucb/* ) ;;
2333 *)
2334 # OSF1 and SCO ODT 3.0 have their own names for install.
2335 # Don't use installbsd from OSF since it installs stuff as root
2336 # by default.
2337 for ac_prog in ginstall scoinst install; do
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2340 if test $ac_prog = install &&
2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342 # AIX install. It has an incompatible calling convention.
2343 :
2344 elif test $ac_prog = install &&
2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # program-specific install script used by HP pwplus--don't use.
2347 :
2348 else
2349 rm -rf conftest.one conftest.two conftest.dir
2350 echo one > conftest.one
2351 echo two > conftest.two
2352 mkdir conftest.dir
2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2354 test -s conftest.one && test -s conftest.two &&
2355 test -s conftest.dir/conftest.one &&
2356 test -s conftest.dir/conftest.two
2357 then
2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2359 break 3
2360 fi
2361 fi
2362 fi
2363 done
2364 done
2365 ;;
2366 esac
2367
2368 done
2369 IFS=$as_save_IFS
2370
2371 rm -rf conftest.one conftest.two conftest.dir
2372
2373 fi
2374 if test "${ac_cv_path_install+set}" = set; then
2375 INSTALL=$ac_cv_path_install
2376 else
2377 # As a last resort, use the slow shell script. Don't cache a
2378 # value for INSTALL within a source directory, because that will
2379 # break other packages using the cache if that directory is
2380 # removed, or if the value is a relative name.
2381 INSTALL=$ac_install_sh
2382 fi
2383 fi
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2385 $as_echo "$INSTALL" >&6; }
2386
2387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2388 # It thinks the first close brace ends the variable substitution.
2389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2390
2391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2392
2393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2394
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2396 $as_echo_n "checking whether build environment is sane... " >&6; }
2397 # Just in case
2398 sleep 1
2399 echo timestamp > conftest.file
2400 # Reject unsafe characters in $srcdir or the absolute working directory
2401 # name. Accept space and tab only in the latter.
2402 am_lf='
2403 '
2404 case `pwd` in
2405 *[\\\"\#\$\&\'\`$am_lf]*)
2406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2407 esac
2408 case $srcdir in
2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2410 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2411 esac
2412
2413 # Do `set' in a subshell so we don't clobber the current shell's
2414 # arguments. Must try -L first in case configure is actually a
2415 # symlink; some systems play weird games with the mod time of symlinks
2416 # (eg FreeBSD returns the mod time of the symlink's containing
2417 # directory).
2418 if (
2419 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2420 if test "$*" = "X"; then
2421 # -L didn't work.
2422 set X `ls -t "$srcdir/configure" conftest.file`
2423 fi
2424 rm -f conftest.file
2425 if test "$*" != "X $srcdir/configure conftest.file" \
2426 && test "$*" != "X conftest.file $srcdir/configure"; then
2427
2428 # If neither matched, then we have a broken ls. This can happen
2429 # if, for instance, CONFIG_SHELL is bash and it inherits a
2430 # broken ls alias from the environment. This has actually
2431 # happened. Such a system could not be considered "sane".
2432 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2433 alias in your environment" "$LINENO" 5
2434 fi
2435
2436 test "$2" = conftest.file
2437 )
2438 then
2439 # Ok.
2440 :
2441 else
2442 as_fn_error $? "newly created file is older than distributed files!
2443 Check your system clock" "$LINENO" 5
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446 $as_echo "yes" >&6; }
2447 test "$program_prefix" != NONE &&
2448 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2449 # Use a double $ so make ignores it.
2450 test "$program_suffix" != NONE &&
2451 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2452 # Double any \ or $.
2453 # By default was `s,x,x', remove it if useless.
2454 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2455 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2456
2457 # expand $ac_aux_dir to an absolute path
2458 am_aux_dir=`cd $ac_aux_dir && pwd`
2459
2460 if test x"${MISSING+set}" != xset; then
2461 case $am_aux_dir in
2462 *\ * | *\ *)
2463 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2464 *)
2465 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2466 esac
2467 fi
2468 # Use eval to expand $SHELL
2469 if eval "$MISSING --run true"; then
2470 am_missing_run="$MISSING --run "
2471 else
2472 am_missing_run=
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2474 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2475 fi
2476
2477 if test x"${install_sh}" != xset; then
2478 case $am_aux_dir in
2479 *\ * | *\ *)
2480 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2481 *)
2482 install_sh="\${SHELL} $am_aux_dir/install-sh"
2483 esac
2484 fi
2485
2486 # Installed binaries are usually stripped using `strip' when the user
2487 # run `make install-strip'. However `strip' might not be the right
2488 # tool to use in cross-compilation environments, therefore Automake
2489 # will honor the `STRIP' environment variable to overrule this program.
2490 if test "$cross_compiling" != no; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}strip; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if test "${ac_cv_prog_STRIP+set}" = set; then :
2497 $as_echo_n "(cached) " >&6
2498 else
2499 if test -n "$STRIP"; then
2500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511 break 2
2512 fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 STRIP=$ac_cv_prog_STRIP
2520 if test -n "$STRIP"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2522 $as_echo "$STRIP" >&6; }
2523 else
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529 fi
2530 if test -z "$ac_cv_prog_STRIP"; then
2531 ac_ct_STRIP=$STRIP
2532 # Extract the first word of "strip", so it can be a program name with args.
2533 set dummy strip; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$ac_ct_STRIP"; then
2540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 ac_cv_prog_ac_ct_STRIP="strip"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2552 fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2560 if test -n "$ac_ct_STRIP"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2562 $as_echo "$ac_ct_STRIP" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2566 fi
2567
2568 if test "x$ac_ct_STRIP" = x; then
2569 STRIP=":"
2570 else
2571 case $cross_compiling:$ac_tool_warned in
2572 yes:)
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2575 ac_tool_warned=yes ;;
2576 esac
2577 STRIP=$ac_ct_STRIP
2578 fi
2579 else
2580 STRIP="$ac_cv_prog_STRIP"
2581 fi
2582
2583 fi
2584 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2587 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2588 if test -z "$MKDIR_P"; then
2589 if test "${ac_cv_path_mkdir+set}" = set; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2594 do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in mkdir gmkdir; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2600 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2601 'mkdir (GNU coreutils) '* | \
2602 'mkdir (coreutils) '* | \
2603 'mkdir (fileutils) '4.1*)
2604 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2605 break 3;;
2606 esac
2607 done
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613
2614 test -d ./--version && rmdir ./--version
2615 if test "${ac_cv_path_mkdir+set}" = set; then
2616 MKDIR_P="$ac_cv_path_mkdir -p"
2617 else
2618 # As a last resort, use the slow shell script. Don't cache a
2619 # value for MKDIR_P within a source directory, because that will
2620 # break other packages using the cache if that directory is
2621 # removed, or if the value is a relative name.
2622 MKDIR_P="$ac_install_sh -d"
2623 fi
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2626 $as_echo "$MKDIR_P" >&6; }
2627
2628 mkdir_p="$MKDIR_P"
2629 case $mkdir_p in
2630 [\\/$]* | ?:[\\/]*) ;;
2631 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2632 esac
2633
2634 for ac_prog in gawk mawk nawk awk
2635 do
2636 # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if test "${ac_cv_prog_AWK+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test -n "$AWK"; then
2644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649 IFS=$as_save_IFS
2650 test -z "$as_dir" && as_dir=.
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2653 ac_cv_prog_AWK="$ac_prog"
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655 break 2
2656 fi
2657 done
2658 done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673 test -n "$AWK" && break
2674 done
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678 set x ${MAKE-make}
2679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 cat >conftest.make <<\_ACEOF
2684 SHELL = /bin/sh
2685 all:
2686 @echo '@@@%%%=$(MAKE)=@@@%%%'
2687 _ACEOF
2688 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690 *@@@%%%=?*=@@@%%%*)
2691 eval ac_cv_prog_make_${ac_make}_set=yes;;
2692 *)
2693 eval ac_cv_prog_make_${ac_make}_set=no;;
2694 esac
2695 rm -f conftest.make
2696 fi
2697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699 $as_echo "yes" >&6; }
2700 SET_MAKE=
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 SET_MAKE="MAKE=${MAKE-make}"
2705 fi
2706
2707 rm -rf .tst 2>/dev/null
2708 mkdir .tst 2>/dev/null
2709 if test -d .tst; then
2710 am__leading_dot=.
2711 else
2712 am__leading_dot=_
2713 fi
2714 rmdir .tst 2>/dev/null
2715
2716 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2718 # is not polluted with repeated "-I."
2719 am__isrc=' -I$(srcdir)'
2720 # test to see if srcdir already configured
2721 if test -f $srcdir/config.status; then
2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2723 fi
2724 fi
2725
2726 # test whether we have cygpath
2727 if test -z "$CYGPATH_W"; then
2728 if (cygpath --version) >/dev/null 2>/dev/null; then
2729 CYGPATH_W='cygpath -w'
2730 else
2731 CYGPATH_W=echo
2732 fi
2733 fi
2734
2735
2736 # Define the identity of the package.
2737 PACKAGE='libXi'
2738 VERSION='1.4.1'
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define PACKAGE "$PACKAGE"
2743 _ACEOF
2744
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define VERSION "$VERSION"
2748 _ACEOF
2749
2750 # Some tools Automake needs.
2751
2752 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2753
2754
2755 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2756
2757
2758 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2759
2760
2761 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2762
2763
2764 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2765
2766 # We need awk for the "check" target. The system "awk" is bad on
2767 # some platforms.
2768 # Always define AMTAR for backward compatibility.
2769
2770 AMTAR=${AMTAR-"${am_missing_run}tar"}
2771
2772 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2773
2774
2775
2776
2777
2778
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2780 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2781 # Check whether --enable-maintainer-mode was given.
2782 if test "${enable_maintainer_mode+set}" = set; then :
2783 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2784 else
2785 USE_MAINTAINER_MODE=no
2786 fi
2787
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2789 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2790 if test $USE_MAINTAINER_MODE = yes; then
2791 MAINTAINER_MODE_TRUE=
2792 MAINTAINER_MODE_FALSE='#'
2793 else
2794 MAINTAINER_MODE_TRUE='#'
2795 MAINTAINER_MODE_FALSE=
2796 fi
2797
2798 MAINT=$MAINTAINER_MODE_TRUE
2799
2800
2801
2802 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814 DEPDIR="${am__leading_dot}deps"
2815
2816 ac_config_commands="$ac_config_commands depfiles"
2817
2818
2819 am_make=${MAKE-make}
2820 cat > confinc << 'END'
2821 am__doit:
2822 @echo this is the am__doit target
2823 .PHONY: am__doit
2824 END
2825 # If we don't find an include directive, just comment out the code.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2827 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2828 am__include="#"
2829 am__quote=
2830 _am_result=none
2831 # First try GNU make style include.
2832 echo "include confinc" > confmf
2833 # Ignore all kinds of additional output from `make'.
2834 case `$am_make -s -f confmf 2> /dev/null` in #(
2835 *the\ am__doit\ target*)
2836 am__include=include
2837 am__quote=
2838 _am_result=GNU
2839 ;;
2840 esac
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843 echo '.include "confinc"' > confmf
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2846 am__include=.include
2847 am__quote="\""
2848 _am_result=BSD
2849 ;;
2850 esac
2851 fi
2852
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2855 $as_echo "$_am_result" >&6; }
2856 rm -f confinc confmf
2857
2858 # Check whether --enable-dependency-tracking was given.
2859 if test "${enable_dependency_tracking+set}" = set; then :
2860 enableval=$enable_dependency_tracking;
2861 fi
2862
2863 if test "x$enable_dependency_tracking" != xno; then
2864 am_depcomp="$ac_aux_dir/depcomp"
2865 AMDEPBACKSLASH='\'
2866 fi
2867 if test "x$enable_dependency_tracking" != xno; then
2868 AMDEP_TRUE=
2869 AMDEP_FALSE='#'
2870 else
2871 AMDEP_TRUE='#'
2872 AMDEP_FALSE=
2873 fi
2874
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903 done
2904 done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$ac_cv_prog_CC"; then
2921 ac_ct_CC=$CC
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943 done
2944 done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958 if test "x$ac_ct_CC" = x; then
2959 CC=""
2960 else
2961 case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967 CC=$ac_ct_CC
2968 fi
2969 else
2970 CC="$ac_cv_prog_CC"
2971 fi
2972
2973 if test -z "$CC"; then
2974 if test -n "$ac_tool_prefix"; then
2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_CC+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$CC"; then
2983 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_CC="${ac_tool_prefix}cc"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2995 fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011
3012 fi
3013 fi
3014 if test -z "$CC"; then
3015 # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 ac_prog_rejected=no
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034 ac_prog_rejected=yes
3035 continue
3036 fi
3037 ac_cv_prog_CC="cc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 if test $ac_prog_rejected = yes; then
3046 # We found a bogon in the path, so make sure we never use it.
3047 set dummy $ac_cv_prog_CC
3048 shift
3049 if test $# != 0; then
3050 # We chose a different compiler from the bogus one.
3051 # However, it has the same basename, so the bogon will be chosen
3052 # first if we set CC to just the basename; use the full file name.
3053 shift
3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055 fi
3056 fi
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 if test -z "$CC"; then
3071 if test -n "$ac_tool_prefix"; then
3072 for ac_prog in cl.exe
3073 do
3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 test -n "$CC" && break
3112 done
3113 fi
3114 if test -z "$CC"; then
3115 ac_ct_CC=$CC
3116 for ac_prog in cl.exe
3117 do
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$ac_ct_CC"; then
3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_ac_ct_CC="$ac_prog"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3149 else
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155 test -n "$ac_ct_CC" && break
3156 done
3157
3158 if test "x$ac_ct_CC" = x; then
3159 CC=""
3160 else
3161 case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167 CC=$ac_ct_CC
3168 fi
3169 fi
3170
3171 fi
3172
3173
3174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "no acceptable C compiler found in \$PATH
3177 See \`config.log' for more details" "$LINENO" 5; }
3178
3179 # Provide some information about the compiler.
3180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181 set X $ac_compile
3182 ac_compiler=$2
3183 for ac_option in --version -v -V -qversion; do
3184 { { ac_try="$ac_compiler $ac_option >&5"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192 ac_status=$?
3193 if test -s conftest.err; then
3194 sed '10a\
3195 ... rest of stderr output deleted ...
3196 10q' conftest.err >conftest.er1
3197 cat conftest.er1 >&5
3198 fi
3199 rm -f conftest.er1 conftest.err
3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201 test $ac_status = 0; }
3202 done
3203
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h. */
3206
3207 int
3208 main ()
3209 {
3210
3211 ;
3212 return 0;
3213 }
3214 _ACEOF
3215 ac_clean_files_save=$ac_clean_files
3216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217 # Try to create an executable without -o first, disregard a.out.
3218 # It will help us diagnose broken compilers, and finding out an intuition
3219 # of exeext.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223
3224 # The possible output files:
3225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226
3227 ac_rmfiles=
3228 for ac_file in $ac_files
3229 do
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3233 esac
3234 done
3235 rm -f $ac_rmfiles
3236
3237 if { { ac_try="$ac_link_default"
3238 case "(($ac_try" in
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link_default") 2>&5
3245 ac_status=$?
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }; then :
3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3249 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3250 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3251 # so that the user can short-circuit this test for compilers unknown to
3252 # Autoconf.
3253 for ac_file in $ac_files ''
3254 do
3255 test -f "$ac_file" || continue
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258 ;;
3259 [ab].out )
3260 # We found the default executable, but exeext='' is most
3261 # certainly right.
3262 break;;
3263 *.* )
3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265 then :; else
3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267 fi
3268 # We set ac_cv_exeext here because the later test for it is not
3269 # safe: cross compilers may not add the suffix if given an `-o'
3270 # argument, so we may need to know it at that point already.
3271 # Even if this section looks crufty: it has the advantage of
3272 # actually working.
3273 break;;
3274 * )
3275 break;;
3276 esac
3277 done
3278 test "$ac_cv_exeext" = no && ac_cv_exeext=
3279
3280 else
3281 ac_file=''
3282 fi
3283 if test -z "$ac_file"; then :
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error 77 "C compiler cannot create executables
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3300 $as_echo "$ac_file" >&6; }
3301 ac_exeext=$ac_cv_exeext
3302
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3308 case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link") 2>&5
3315 ac_status=$?
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 # `rm'.
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 break;;
3328 * ) break;;
3329 esac
3330 done
3331 else
3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 fi
3337 rm -f conftest conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3340
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3343 ac_exeext=$EXEEXT
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3346 #include <stdio.h>
3347 int
3348 main ()
3349 {
3350 FILE *f = fopen ("conftest.out", "w");
3351 return ferror (f) || fclose (f) != 0;
3352
3353 ;
3354 return 0;
3355 }
3356 _ACEOF
3357 ac_clean_files="$ac_clean_files conftest.out"
3358 # Check that the compiler produces executables we can run. If not, either
3359 # the compiler is broken, or we cross compile.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3361 $as_echo_n "checking whether we are cross compiling... " >&6; }
3362 if test "$cross_compiling" != yes; then
3363 { { ac_try="$ac_link"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370 (eval "$ac_link") 2>&5
3371 ac_status=$?
3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373 test $ac_status = 0; }
3374 if { ac_try='./conftest$ac_cv_exeext'
3375 { { case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_try") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; }; then
3385 cross_compiling=no
3386 else
3387 if test "$cross_compiling" = maybe; then
3388 cross_compiling=yes
3389 else
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details" "$LINENO" 5; }
3395 fi
3396 fi
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3399 $as_echo "$cross_compiling" >&6; }
3400
3401 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3402 ac_clean_files=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3404 $as_echo_n "checking for suffix of object files... " >&6; }
3405 if test "${ac_cv_objext+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.o conftest.obj
3420 if { { ac_try="$ac_compile"
3421 case "(($ac_try" in
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427 (eval "$ac_compile") 2>&5
3428 ac_status=$?
3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430 test $ac_status = 0; }; then :
3431 for ac_file in conftest.o conftest.obj conftest.*; do
3432 test -f "$ac_file" || continue;
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3436 break;;
3437 esac
3438 done
3439 else
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of object files: cannot compile
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3451 $as_echo "$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3453 ac_objext=$OBJEXT
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3456 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465 #ifndef __GNUC__
3466 choke me
3467 #endif
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_compiler_gnu=yes
3475 else
3476 ac_compiler_gnu=no
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3484 if test $ac_compiler_gnu = yes; then
3485 GCC=yes
3486 else
3487 GCC=
3488 fi
3489 ac_test_CFLAGS=${CFLAGS+set}
3490 ac_save_CFLAGS=$CFLAGS
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3493 if test "${ac_cv_prog_cc_g+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 ac_save_c_werror_flag=$ac_c_werror_flag
3497 ac_c_werror_flag=yes
3498 ac_cv_prog_cc_g=no
3499 CFLAGS="-g"
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3502
3503 int
3504 main ()
3505 {
3506
3507 ;
3508 return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512 ac_cv_prog_cc_g=yes
3513 else
3514 CFLAGS=""
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main ()
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527
3528 else
3529 ac_c_werror_flag=$ac_save_c_werror_flag
3530 CFLAGS="-g"
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533
3534 int
3535 main ()
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_cv_prog_cc_g=yes
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550 ac_c_werror_flag=$ac_save_c_werror_flag
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3553 $as_echo "$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555 CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557 if test "$GCC" = yes; then
3558 CFLAGS="-g -O2"
3559 else
3560 CFLAGS="-g"
3561 fi
3562 else
3563 if test "$GCC" = yes; then
3564 CFLAGS="-O2"
3565 else
3566 CFLAGS=
3567 fi
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_cv_prog_cc_c89=no
3575 ac_save_CC=$CC
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <stdarg.h>
3579 #include <stdio.h>
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586 char **p;
3587 int i;
3588 {
3589 return p[i];
3590 }
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3592 {
3593 char *s;
3594 va_list v;
3595 va_start (v,p);
3596 s = g (p, va_arg (v,int));
3597 va_end (v);
3598 return s;
3599 }
3600
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3602 function prototypes and stuff, but not '\xHH' hex character constants.
3603 These don't provoke an error unfortunately, instead are silently treated
3604 as 'x'. The following induces an error, until -std is added to get
3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3606 array size at least. It's necessary to write '\x00'==0 to get something
3607 that's true only with -std. */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611 inside strings and character constants. */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3621 int
3622 main ()
3623 {
3624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 do
3632 CC="$ac_save_CC $ac_arg"
3633 if ac_fn_c_try_compile "$LINENO"; then :
3634 ac_cv_prog_cc_c89=$ac_arg
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext
3637 test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 done
3639 rm -f conftest.$ac_ext
3640 CC=$ac_save_CC
3641
3642 fi
3643 # AC_CACHE_VAL
3644 case "x$ac_cv_prog_cc_c89" in
3645 x)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3648 xno)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3651 *)
3652 CC="$CC $ac_cv_prog_cc_c89"
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 esac
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666 depcc="$CC" am_compiler_list=
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3669 $as_echo_n "checking dependency style of $depcc... " >&6; }
3670 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3674 # We make a subdir and do the tests there. Otherwise we can end up
3675 # making bogus files that we don't know about and never remove. For
3676 # instance it was reported that on HP-UX the gcc test will end up
3677 # making a dummy file named `D' -- because `-MD' means `put the output
3678 # in D'.
3679 mkdir conftest.dir
3680 # Copy depcomp to subdir because otherwise we won't find it if we're
3681 # using a relative directory.
3682 cp "$am_depcomp" conftest.dir
3683 cd conftest.dir
3684 # We will build objects and dependencies in a subdirectory because
3685 # it helps to detect inapplicable dependency modes. For instance
3686 # both Tru64's cc and ICC support -MD to output dependencies as a
3687 # side effect of compilation, but ICC will put the dependencies in
3688 # the current directory while Tru64 will put them in the object
3689 # directory.
3690 mkdir sub
3691
3692 am_cv_CC_dependencies_compiler_type=none
3693 if test "$am_compiler_list" = ""; then
3694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3695 fi
3696 am__universal=false
3697 case " $depcc " in #(
3698 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3699 esac
3700
3701 for depmode in $am_compiler_list; do
3702 # Setup a source with many dependencies, because some compilers
3703 # like to wrap large dependency lists on column 80 (with \), and
3704 # we should not choose a depcomp mode which is confused by this.
3705 #
3706 # We need to recreate these files for each test, as the compiler may
3707 # overwrite some of them when testing with obscure command lines.
3708 # This happens at least with the AIX C compiler.
3709 : > sub/conftest.c
3710 for i in 1 2 3 4 5 6; do
3711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713 # Solaris 8's {/usr,}/bin/sh.
3714 touch sub/conftst$i.h
3715 done
3716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3717
3718 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3719 # mode. It turns out that the SunPro C++ compiler does not properly
3720 # handle `-M -o', and we need to detect this. Also, some Intel
3721 # versions had trouble with output in subdirs
3722 am__obj=sub/conftest.${OBJEXT-o}
3723 am__minus_obj="-o $am__obj"
3724 case $depmode in
3725 gcc)
3726 # This depmode causes a compiler race in universal mode.
3727 test "$am__universal" = false || continue
3728 ;;
3729 nosideeffect)
3730 # after this tag, mechanisms are not by side-effect, so they'll
3731 # only be used when explicitly requested
3732 if test "x$enable_dependency_tracking" = xyes; then
3733 continue
3734 else
3735 break
3736 fi
3737 ;;
3738 msvisualcpp | msvcmsys)
3739 # This compiler won't grok `-c -o', but also, the minuso test has
3740 # not run yet. These depmodes are late enough in the game, and
3741 # so weak that their functioning should not be impacted.
3742 am__obj=conftest.${OBJEXT-o}
3743 am__minus_obj=
3744 ;;
3745 none) break ;;
3746 esac
3747 if depmode=$depmode \
3748 source=sub/conftest.c object=$am__obj \
3749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3751 >/dev/null 2>conftest.err &&
3752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3756 # icc doesn't choke on unknown options, it will just issue warnings
3757 # or remarks (even with -Werror). So we grep stderr for any message
3758 # that says an option was ignored or not supported.
3759 # When given -MP, icc 7.0 and 7.1 complain thusly:
3760 # icc: Command line warning: ignoring option '-M'; no argument required
3761 # The diagnosis changed in icc 8.0:
3762 # icc: Command line remark: option '-MP' not supported
3763 if (grep 'ignoring option' conftest.err ||
3764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3765 am_cv_CC_dependencies_compiler_type=$depmode
3766 break
3767 fi
3768 fi
3769 done
3770
3771 cd ..
3772 rm -rf conftest.dir
3773 else
3774 am_cv_CC_dependencies_compiler_type=none
3775 fi
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3781
3782 if
3783 test "x$enable_dependency_tracking" != xno \
3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3785 am__fastdepCC_TRUE=
3786 am__fastdepCC_FALSE='#'
3787 else
3788 am__fastdepCC_TRUE='#'
3789 am__fastdepCC_FALSE=
3790 fi
3791
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3794 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3795 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3796 $as_echo_n "(cached) " >&6
3797 else
3798 ac_cv_prog_cc_c99=no
3799 ac_save_CC=$CC
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <stdarg.h>
3803 #include <stdbool.h>
3804 #include <stdlib.h>
3805 #include <wchar.h>
3806 #include <stdio.h>
3807
3808 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3809 #define debug(...) fprintf (stderr, __VA_ARGS__)
3810 #define showlist(...) puts (#__VA_ARGS__)
3811 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3812 static void
3813 test_varargs_macros (void)
3814 {
3815 int x = 1234;
3816 int y = 5678;
3817 debug ("Flag");
3818 debug ("X = %d\n", x);
3819 showlist (The first, second, and third items.);
3820 report (x>y, "x is %d but y is %d", x, y);
3821 }
3822
3823 // Check long long types.
3824 #define BIG64 18446744073709551615ull
3825 #define BIG32 4294967295ul
3826 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3827 #if !BIG_OK
3828 your preprocessor is broken;
3829 #endif
3830 #if BIG_OK
3831 #else
3832 your preprocessor is broken;
3833 #endif
3834 static long long int bignum = -9223372036854775807LL;
3835 static unsigned long long int ubignum = BIG64;
3836
3837 struct incomplete_array
3838 {
3839 int datasize;
3840 double data[];
3841 };
3842
3843 struct named_init {
3844 int number;
3845 const wchar_t *name;
3846 double average;
3847 };
3848
3849 typedef const char *ccp;
3850
3851 static inline int
3852 test_restrict (ccp restrict text)
3853 {
3854 // See if C++-style comments work.
3855 // Iterate through items via the restricted pointer.
3856 // Also check for declarations in for loops.
3857 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3858 continue;
3859 return 0;
3860 }
3861
3862 // Check varargs and va_copy.
3863 static void
3864 test_varargs (const char *format, ...)
3865 {
3866 va_list args;
3867 va_start (args, format);
3868 va_list args_copy;
3869 va_copy (args_copy, args);
3870
3871 const char *str;
3872 int number;
3873 float fnumber;
3874
3875 while (*format)
3876 {
3877 switch (*format++)
3878 {
3879 case 's': // string
3880 str = va_arg (args_copy, const char *);
3881 break;
3882 case 'd': // int
3883 number = va_arg (args_copy, int);
3884 break;
3885 case 'f': // float
3886 fnumber = va_arg (args_copy, double);
3887 break;
3888 default:
3889 break;
3890 }
3891 }
3892 va_end (args_copy);
3893 va_end (args);
3894 }
3895
3896 int
3897 main ()
3898 {
3899
3900 // Check bool.
3901 _Bool success = false;
3902
3903 // Check restrict.
3904 if (test_restrict ("String literal") == 0)
3905 success = true;
3906 char *restrict newvar = "Another string";
3907
3908 // Check varargs.
3909 test_varargs ("s, d' f .", "string", 65, 34.234);
3910 test_varargs_macros ();
3911
3912 // Check flexible array members.
3913 struct incomplete_array *ia =
3914 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3915 ia->datasize = 10;
3916 for (int i = 0; i < ia->datasize; ++i)
3917 ia->data[i] = i * 1.234;
3918
3919 // Check named initializers.
3920 struct named_init ni = {
3921 .number = 34,
3922 .name = L"Test wide string",
3923 .average = 543.34343,
3924 };
3925
3926 ni.number = 58;
3927
3928 int dynamic_array[ni.number];
3929 dynamic_array[ni.number - 1] = 543;
3930
3931 // work around unused variable warnings
3932 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3933 || dynamic_array[ni.number - 1] != 543);
3934
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3940 do
3941 CC="$ac_save_CC $ac_arg"
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943 ac_cv_prog_cc_c99=$ac_arg
3944 fi
3945 rm -f core conftest.err conftest.$ac_objext
3946 test "x$ac_cv_prog_cc_c99" != "xno" && break
3947 done
3948 rm -f conftest.$ac_ext
3949 CC=$ac_save_CC
3950
3951 fi
3952 # AC_CACHE_VAL
3953 case "x$ac_cv_prog_cc_c99" in
3954 x)
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3956 $as_echo "none needed" >&6; } ;;
3957 xno)
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3959 $as_echo "unsupported" >&6; } ;;
3960 *)
3961 CC="$CC $ac_cv_prog_cc_c99"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3963 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3964 esac
3965 if test "x$ac_cv_prog_cc_c99" != xno; then :
3966
3967 fi
3968
3969
3970
3971 ac_ext=c
3972 ac_cpp='$CPP $CPPFLAGS'
3973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3977 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3978 # On Suns, sometimes $CPP names a directory.
3979 if test -n "$CPP" && test -d "$CPP"; then
3980 CPP=
3981 fi
3982 if test -z "$CPP"; then
3983 if test "${ac_cv_prog_CPP+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 # Double quotes because CPP needs to be expanded
3987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988 do
3989 ac_preproc_ok=false
3990 for ac_c_preproc_warn_flag in '' yes
3991 do
3992 # Use a header file that comes with gcc, so configuring glibc
3993 # with a fresh cross-compiler works.
3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3995 # <limits.h> exists even on freestanding compilers.
3996 # On the NeXT, cc -E runs the code through the compiler's parser,
3997 # not just through cpp. "Syntax error" is here to catch this case.
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #ifdef __STDC__
4001 # include <limits.h>
4002 #else
4003 # include <assert.h>
4004 #endif
4005 Syntax error
4006 _ACEOF
4007 if ac_fn_c_try_cpp "$LINENO"; then :
4008
4009 else
4010 # Broken: fails on valid input.
4011 continue
4012 fi
4013 rm -f conftest.err conftest.$ac_ext
4014
4015 # OK, works on sane cases. Now check whether nonexistent headers
4016 # can be detected and how.
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019 #include <ac_nonexistent.h>
4020 _ACEOF
4021 if ac_fn_c_try_cpp "$LINENO"; then :
4022 # Broken: success on invalid input.
4023 continue
4024 else
4025 # Passes both tests.
4026 ac_preproc_ok=:
4027 break
4028 fi
4029 rm -f conftest.err conftest.$ac_ext
4030
4031 done
4032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4033 rm -f conftest.err conftest.$ac_ext
4034 if $ac_preproc_ok; then :
4035 break
4036 fi
4037
4038 done
4039 ac_cv_prog_CPP=$CPP
4040
4041 fi
4042 CPP=$ac_cv_prog_CPP
4043 else
4044 ac_cv_prog_CPP=$CPP
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4047 $as_echo "$CPP" >&6; }
4048 ac_preproc_ok=false
4049 for ac_c_preproc_warn_flag in '' yes
4050 do
4051 # Use a header file that comes with gcc, so configuring glibc
4052 # with a fresh cross-compiler works.
4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4054 # <limits.h> exists even on freestanding compilers.
4055 # On the NeXT, cc -E runs the code through the compiler's parser,
4056 # not just through cpp. "Syntax error" is here to catch this case.
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064 Syntax error
4065 _ACEOF
4066 if ac_fn_c_try_cpp "$LINENO"; then :
4067
4068 else
4069 # Broken: fails on valid input.
4070 continue
4071 fi
4072 rm -f conftest.err conftest.$ac_ext
4073
4074 # OK, works on sane cases. Now check whether nonexistent headers
4075 # can be detected and how.
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4078 #include <ac_nonexistent.h>
4079 _ACEOF
4080 if ac_fn_c_try_cpp "$LINENO"; then :
4081 # Broken: success on invalid input.
4082 continue
4083 else
4084 # Passes both tests.
4085 ac_preproc_ok=:
4086 break
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 done
4091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4092 rm -f conftest.err conftest.$ac_ext
4093 if $ac_preproc_ok; then :
4094
4095 else
4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4098 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4099 See \`config.log' for more details" "$LINENO" 5; }
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4111 if test "${ac_cv_path_GREP+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 if test -z "$GREP"; then
4115 ac_path_GREP_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in grep ggrep; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4126 # Check for GNU ac_path_GREP and select it if it is found.
4127 # Check for GNU $ac_path_GREP
4128 case `"$ac_path_GREP" --version 2>&1` in
4129 *GNU*)
4130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4131 *)
4132 ac_count=0
4133 $as_echo_n 0123456789 >"conftest.in"
4134 while :
4135 do
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 $as_echo 'GREP' >> "conftest.nl"
4140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 as_fn_arith $ac_count + 1 && ac_count=$as_val
4143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_GREP="$ac_path_GREP"
4146 ac_path_GREP_max=$ac_count
4147 fi
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4150 done
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4153
4154 $ac_path_GREP_found && break 3
4155 done
4156 done
4157 done
4158 IFS=$as_save_IFS
4159 if test -z "$ac_cv_path_GREP"; then
4160 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4161 fi
4162 else
4163 ac_cv_path_GREP=$GREP
4164 fi
4165
4166 fi
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4168 $as_echo "$ac_cv_path_GREP" >&6; }
4169 GREP="$ac_cv_path_GREP"
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4173 $as_echo_n "checking for egrep... " >&6; }
4174 if test "${ac_cv_path_EGREP+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4178 then ac_cv_path_EGREP="$GREP -E"
4179 else
4180 if test -z "$EGREP"; then
4181 ac_path_EGREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in egrep; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4192 # Check for GNU ac_path_EGREP and select it if it is found.
4193 # Check for GNU $ac_path_EGREP
4194 case `"$ac_path_EGREP" --version 2>&1` in
4195 *GNU*)
4196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4197 *)
4198 ac_count=0
4199 $as_echo_n 0123456789 >"conftest.in"
4200 while :
4201 do
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo 'EGREP' >> "conftest.nl"
4206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_EGREP="$ac_path_EGREP"
4212 ac_path_EGREP_max=$ac_count
4213 fi
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4216 done
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4219
4220 $ac_path_EGREP_found && break 3
4221 done
4222 done
4223 done
4224 IFS=$as_save_IFS
4225 if test -z "$ac_cv_path_EGREP"; then
4226 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4227 fi
4228 else
4229 ac_cv_path_EGREP=$EGREP
4230 fi
4231
4232 fi
4233 fi
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4235 $as_echo "$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4237
4238
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4240 $as_echo_n "checking for ANSI C header files... " >&6; }
4241 if test "${ac_cv_header_stdc+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4246 #include <stdlib.h>
4247 #include <stdarg.h>
4248 #include <string.h>
4249 #include <float.h>
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_header_stdc=yes
4261 else
4262 ac_cv_header_stdc=no
4263 fi
4264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265
4266 if test $ac_cv_header_stdc = yes; then
4267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <string.h>
4271
4272 _ACEOF
4273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4274 $EGREP "memchr" >/dev/null 2>&1; then :
4275
4276 else
4277 ac_cv_header_stdc=no
4278 fi
4279 rm -f conftest*
4280
4281 fi
4282
4283 if test $ac_cv_header_stdc = yes; then
4284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 #include <stdlib.h>
4288
4289 _ACEOF
4290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291 $EGREP "free" >/dev/null 2>&1; then :
4292
4293 else
4294 ac_cv_header_stdc=no
4295 fi
4296 rm -f conftest*
4297
4298 fi
4299
4300 if test $ac_cv_header_stdc = yes; then
4301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4302 if test "$cross_compiling" = yes; then :
4303 :
4304 else
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <ctype.h>
4308 #include <stdlib.h>
4309 #if ((' ' & 0x0FF) == 0x020)
4310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4312 #else
4313 # define ISLOWER(c) \
4314 (('a' <= (c) && (c) <= 'i') \
4315 || ('j' <= (c) && (c) <= 'r') \
4316 || ('s' <= (c) && (c) <= 'z'))
4317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4318 #endif
4319
4320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4321 int
4322 main ()
4323 {
4324 int i;
4325 for (i = 0; i < 256; i++)
4326 if (XOR (islower (i), ISLOWER (i))
4327 || toupper (i) != TOUPPER (i))
4328 return 2;
4329 return 0;
4330 }
4331 _ACEOF
4332 if ac_fn_c_try_run "$LINENO"; then :
4333
4334 else
4335 ac_cv_header_stdc=no
4336 fi
4337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4338 conftest.$ac_objext conftest.beam conftest.$ac_ext
4339 fi
4340
4341 fi
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4344 $as_echo "$ac_cv_header_stdc" >&6; }
4345 if test $ac_cv_header_stdc = yes; then
4346
4347 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4348
4349 fi
4350
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4353 inttypes.h stdint.h unistd.h
4354 do :
4355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4357 "
4358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4359 cat >>confdefs.h <<_ACEOF
4360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4361 _ACEOF
4362
4363 fi
4364
4365 done
4366
4367
4368
4369
4370
4371
4372
4373
4374 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 case $PKG_CONFIG in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 ;;
4404 esac
4405 fi
4406 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4407 if test -n "$PKG_CONFIG"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4409 $as_echo "$PKG_CONFIG" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416 fi
4417 if test -z "$ac_cv_path_PKG_CONFIG"; then
4418 ac_pt_PKG_CONFIG=$PKG_CONFIG
4419 # Extract the first word of "pkg-config", so it can be a program name with args.
4420 set dummy pkg-config; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 case $ac_pt_PKG_CONFIG in
4427 [\\/]* | ?:[\\/]*)
4428 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4429 ;;
4430 *)
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 ;;
4447 esac
4448 fi
4449 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4450 if test -n "$ac_pt_PKG_CONFIG"; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4452 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4453 else
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4457
4458 if test "x$ac_pt_PKG_CONFIG" = x; then
4459 PKG_CONFIG=""
4460 else
4461 case $cross_compiling:$ac_tool_warned in
4462 yes:)
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4465 ac_tool_warned=yes ;;
4466 esac
4467 PKG_CONFIG=$ac_pt_PKG_CONFIG
4468 fi
4469 else
4470 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4471 fi
4472
4473 fi
4474 if test -n "$PKG_CONFIG"; then
4475 _pkg_min_version=0.9.0
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4477 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4478 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480 $as_echo "yes" >&6; }
4481 else
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483 $as_echo "no" >&6; }
4484 PKG_CONFIG=""
4485 fi
4486 fi
4487 # Make sure we can run config.sub.
4488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4489 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4492 $as_echo_n "checking build system type... " >&6; }
4493 if test "${ac_cv_build+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 ac_build_alias=$build_alias
4497 test "x$ac_build_alias" = x &&
4498 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4499 test "x$ac_build_alias" = x &&
4500 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4501 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4502 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4503
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4506 $as_echo "$ac_cv_build" >&6; }
4507 case $ac_cv_build in
4508 *-*-*) ;;
4509 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4510 esac
4511 build=$ac_cv_build
4512 ac_save_IFS=$IFS; IFS='-'
4513 set x $ac_cv_build
4514 shift
4515 build_cpu=$1
4516 build_vendor=$2
4517 shift; shift
4518 # Remember, the first character of IFS is used to create $*,
4519 # except with old shells:
4520 build_os=$*
4521 IFS=$ac_save_IFS
4522 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4523
4524
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4526 $as_echo_n "checking host system type... " >&6; }
4527 if test "${ac_cv_host+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test "x$host_alias" = x; then
4531 ac_cv_host=$ac_cv_build
4532 else
4533 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4535 fi
4536
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4539 $as_echo "$ac_cv_host" >&6; }
4540 case $ac_cv_host in
4541 *-*-*) ;;
4542 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4543 esac
4544 host=$ac_cv_host
4545 ac_save_IFS=$IFS; IFS='-'
4546 set x $ac_cv_host
4547 shift
4548 host_cpu=$1
4549 host_vendor=$2
4550 shift; shift
4551 # Remember, the first character of IFS is used to create $*,
4552 # except with old shells:
4553 host_os=$*
4554 IFS=$ac_save_IFS
4555 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4559 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4560 if test "${ac_cv_path_SED+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4564 for ac_i in 1 2 3 4 5 6 7; do
4565 ac_script="$ac_script$as_nl$ac_script"
4566 done
4567 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4568 { ac_script=; unset ac_script;}
4569 if test -z "$SED"; then
4570 ac_path_SED_found=false
4571 # Loop through the user's path and test for each of PROGNAME-LIST
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_prog in sed gsed; do
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4580 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4581 # Check for GNU ac_path_SED and select it if it is found.
4582 # Check for GNU $ac_path_SED
4583 case `"$ac_path_SED" --version 2>&1` in
4584 *GNU*)
4585 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4586 *)
4587 ac_count=0
4588 $as_echo_n 0123456789 >"conftest.in"
4589 while :
4590 do
4591 cat "conftest.in" "conftest.in" >"conftest.tmp"
4592 mv "conftest.tmp" "conftest.in"
4593 cp "conftest.in" "conftest.nl"
4594 $as_echo '' >> "conftest.nl"
4595 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4597 as_fn_arith $ac_count + 1 && ac_count=$as_val
4598 if test $ac_count -gt ${ac_path_SED_max-0}; then
4599 # Best one so far, save it but keep looking for a better one
4600 ac_cv_path_SED="$ac_path_SED"
4601 ac_path_SED_max=$ac_count
4602 fi
4603 # 10*(2^10) chars as input seems more than enough
4604 test $ac_count -gt 10 && break
4605 done
4606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4607 esac
4608
4609 $ac_path_SED_found && break 3
4610 done
4611 done
4612 done
4613 IFS=$as_save_IFS
4614 if test -z "$ac_cv_path_SED"; then
4615 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4616 fi
4617 else
4618 ac_cv_path_SED=$SED
4619 fi
4620
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4623 $as_echo "$ac_cv_path_SED" >&6; }
4624 SED="$ac_cv_path_SED"
4625 rm -f conftest.sed
4626
4627
4628
4629
4630
4631 if test "x$GCC" = xyes ; then
4632 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4633 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4634 -Wbad-function-cast -Wformat=2"
4635 case `$CC -dumpversion` in
4636 3.4.* | 4.*)
4637 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4638 ;;
4639 esac
4640 else
4641 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4642 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4643 SUNCC="yes"
4644 else
4645 SUNCC="no"
4646 fi
4647
4648 if test "x$SUNCC" = "xyes"; then
4649 CWARNFLAGS="-v"
4650 fi
4651 fi
4652
4653
4654
4655 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4656
4657
4658
4659 # Check whether --enable-strict-compilation was given.
4660 if test "${enable_strict_compilation+set}" = set; then :
4661 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4662 else
4663 STRICT_COMPILE=no
4664 fi
4665
4666 if test "x$STRICT_COMPILE" = "xyes"; then
4667 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4668 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
4669 SUNCC="yes"
4670 else
4671 SUNCC="no"
4672 fi
4673
4674 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4675 if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
4676 INTELCC="yes"
4677 else
4678 INTELCC="no"
4679 fi
4680
4681 if test "x$GCC" = xyes ; then
4682 STRICT_CFLAGS="-pedantic -Werror"
4683 elif test "x$SUNCC" = "xyes"; then
4684 STRICT_CFLAGS="-errwarn"
4685 elif test "x$INTELCC" = "xyes"; then
4686 STRICT_CFLAGS="-Werror"
4687 fi
4688 fi
4689 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4690
4691
4692
4693
4694 cat >>confdefs.h <<_ACEOF
4695 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4696 _ACEOF
4697
4698 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4699 if test "x$PVM" = "x"; then
4700 PVM="0"
4701 fi
4702
4703 cat >>confdefs.h <<_ACEOF
4704 #define PACKAGE_VERSION_MINOR $PVM
4705 _ACEOF
4706
4707 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4708 if test "x$PVP" = "x"; then
4709 PVP="0"
4710 fi
4711
4712 cat >>confdefs.h <<_ACEOF
4713 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4714 _ACEOF
4715
4716
4717
4718 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4719 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4720 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4721 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4722
4723
4724
4725
4726 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4727 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4728 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4729 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4730 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4731
4732
4733
4734
4735
4736
4737 if test x$APP_MAN_SUFFIX = x ; then
4738 APP_MAN_SUFFIX=1
4739 fi
4740 if test x$APP_MAN_DIR = x ; then
4741 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4742 fi
4743
4744 if test x$LIB_MAN_SUFFIX = x ; then
4745 LIB_MAN_SUFFIX=3
4746 fi
4747 if test x$LIB_MAN_DIR = x ; then
4748 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4749 fi
4750
4751 if test x$FILE_MAN_SUFFIX = x ; then
4752 case $host_os in
4753 solaris*) FILE_MAN_SUFFIX=4 ;;
4754 *) FILE_MAN_SUFFIX=5 ;;
4755 esac
4756 fi
4757 if test x$FILE_MAN_DIR = x ; then
4758 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4759 fi
4760
4761 if test x$MISC_MAN_SUFFIX = x ; then
4762 case $host_os in
4763 solaris*) MISC_MAN_SUFFIX=5 ;;
4764 *) MISC_MAN_SUFFIX=7 ;;
4765 esac
4766 fi
4767 if test x$MISC_MAN_DIR = x ; then
4768 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4769 fi
4770
4771 if test x$DRIVER_MAN_SUFFIX = x ; then
4772 case $host_os in
4773 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4774 *) DRIVER_MAN_SUFFIX=4 ;;
4775 esac
4776 fi
4777 if test x$DRIVER_MAN_DIR = x ; then
4778 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4779 fi
4780
4781 if test x$ADMIN_MAN_SUFFIX = x ; then
4782 case $host_os in
4783 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4784 *) ADMIN_MAN_SUFFIX=8 ;;
4785 esac
4786 fi
4787 if test x$ADMIN_MAN_DIR = x ; then
4788 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4789 fi
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805 XORG_MAN_PAGE="X Version 11"
4806
4807 MAN_SUBSTS="\
4808 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4809 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4810 -e 's|__xservername__|Xorg|g' \
4811 -e 's|__xconfigfile__|xorg.conf|g' \
4812 -e 's|__projectroot__|\$(prefix)|g' \
4813 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4814 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4815 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4816 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4817 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4818 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4819 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4820
4821
4822
4823 # Check whether --enable-silent-rules was given.
4824 if test "${enable_silent_rules+set}" = set; then :
4825 enableval=$enable_silent_rules;
4826 fi
4827
4828 case $enable_silent_rules in
4829 yes) AM_DEFAULT_VERBOSITY=0;;
4830 no) AM_DEFAULT_VERBOSITY=1;;
4831 *) AM_DEFAULT_VERBOSITY=0;;
4832 esac
4833 AM_BACKSLASH='\'
4834
4835
4836
4837 spec_default=
4838 if test "x$spec_default" = x ; then
4839 spec_default="yes"
4840 fi
4841 # Check whether --enable-specs was given.
4842 if test "${enable_specs+set}" = set; then :
4843 enableval=$enable_specs; build_specs=$enableval
4844 else
4845 build_specs=$spec_default
4846 fi
4847
4848 if test x$build_specs = xyes; then
4849 ENABLE_SPECS_TRUE=
4850 ENABLE_SPECS_FALSE='#'
4851 else
4852 ENABLE_SPECS_TRUE='#'
4853 ENABLE_SPECS_FALSE=
4854 fi
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
4857 $as_echo_n "checking whether to build functional specifications... " >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
4859 $as_echo "$build_specs" >&6; }
4860
4861
4862
4863
4864 # Check whether --with-xmlto was given.
4865 if test "${with_xmlto+set}" = set; then :
4866 withval=$with_xmlto; use_xmlto=$withval
4867 else
4868 use_xmlto=auto
4869 fi
4870
4871
4872 if test "x$use_xmlto" = x"auto"; then
4873 # Extract the first word of "xmlto", so it can be a program name with args.
4874 set dummy xmlto; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if test "${ac_cv_path_XMLTO+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 case $XMLTO in
4881 [\\/]* | ?:[\\/]*)
4882 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4883 ;;
4884 *)
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4895 fi
4896 done
4897 done
4898 IFS=$as_save_IFS
4899
4900 ;;
4901 esac
4902 fi
4903 XMLTO=$ac_cv_path_XMLTO
4904 if test -n "$XMLTO"; then
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4906 $as_echo "$XMLTO" >&6; }
4907 else
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912
4913 if test "x$XMLTO" = "x"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
4915 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
4916 have_xmlto=no
4917 else
4918 have_xmlto=yes
4919 fi
4920 elif test "x$use_xmlto" = x"yes" ; then
4921 # Extract the first word of "xmlto", so it can be a program name with args.
4922 set dummy xmlto; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_path_XMLTO+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 case $XMLTO in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
4931 ;;
4932 *)
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
4941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946 IFS=$as_save_IFS
4947
4948 ;;
4949 esac
4950 fi
4951 XMLTO=$ac_cv_path_XMLTO
4952 if test -n "$XMLTO"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
4954 $as_echo "$XMLTO" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960
4961 if test "x$XMLTO" = "x"; then
4962 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
4963 fi
4964 have_xmlto=yes
4965 elif test "x$use_xmlto" = x"no" ; then
4966 if test "x$XMLTO" != "x"; then
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
4968 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
4969 fi
4970 have_xmlto=no
4971 else
4972 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
4973 fi
4974
4975 # Test for a minimum version of xmlto, if provided.
4976 if test "$have_xmlto" = yes; then
4977 # scrape the xmlto version
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
4979 $as_echo_n "checking the xmlto version... " >&6; }
4980 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
4982 $as_echo "$xmlto_version" >&6; }
4983 as_arg_v1=$xmlto_version
4984 as_arg_v2=0.0.20
4985 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
4986 case $? in #(
4987 1) :
4988 if test "x$use_xmlto" = xauto; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
4990 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
4991 have_xmlto=no
4992 else
4993 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
4994 fi ;; #(
4995 0) :
4996 ;; #(
4997 2) :
4998 ;; #(
4999 *) :
5000 ;;
5001 esac
5002 fi
5003
5004 # Test for the ability of xmlto to generate a text target
5005 have_xmlto_text=no
5006 cat > conftest.xml << "EOF"
5007 EOF
5008 if test "$have_xmlto" = yes; then :
5009 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
5010 have_xmlto_text=yes
5011 else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
5013 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
5014 fi
5015 fi
5016 rm -f conftest.xml
5017 if test $have_xmlto_text = yes; then
5018 HAVE_XMLTO_TEXT_TRUE=
5019 HAVE_XMLTO_TEXT_FALSE='#'
5020 else
5021 HAVE_XMLTO_TEXT_TRUE='#'
5022 HAVE_XMLTO_TEXT_FALSE=
5023 fi
5024
5025 if test "$have_xmlto" = yes; then
5026 HAVE_XMLTO_TRUE=
5027 HAVE_XMLTO_FALSE='#'
5028 else
5029 HAVE_XMLTO_TRUE='#'
5030 HAVE_XMLTO_FALSE=
5031 fi
5032
5033
5034
5035
5036
5037 # Check whether --with-fop was given.
5038 if test "${with_fop+set}" = set; then :
5039 withval=$with_fop; use_fop=$withval
5040 else
5041 use_fop=auto
5042 fi
5043
5044
5045 if test "x$use_fop" = x"auto"; then
5046 # Extract the first word of "fop", so it can be a program name with args.
5047 set dummy fop; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_path_FOP+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 case $FOP in
5054 [\\/]* | ?:[\\/]*)
5055 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5056 ;;
5057 *)
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059 for as_dir in $PATH
5060 do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069 done
5070 done
5071 IFS=$as_save_IFS
5072
5073 ;;
5074 esac
5075 fi
5076 FOP=$ac_cv_path_FOP
5077 if test -n "$FOP"; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5079 $as_echo "$FOP" >&6; }
5080 else
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 $as_echo "no" >&6; }
5083 fi
5084
5085
5086 if test "x$FOP" = "x"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
5088 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
5089 have_fop=no
5090 else
5091 have_fop=yes
5092 fi
5093 elif test "x$use_fop" = x"yes" ; then
5094 # Extract the first word of "fop", so it can be a program name with args.
5095 set dummy fop; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if test "${ac_cv_path_FOP+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 case $FOP in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
5104 ;;
5105 *)
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 ;;
5122 esac
5123 fi
5124 FOP=$ac_cv_path_FOP
5125 if test -n "$FOP"; then
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
5127 $as_echo "$FOP" >&6; }
5128 else
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 fi
5132
5133
5134 if test "x$FOP" = "x"; then
5135 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
5136 fi
5137 have_fop=yes
5138 elif test "x$use_fop" = x"no" ; then
5139 if test "x$FOP" != "x"; then
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
5141 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
5142 fi
5143 have_fop=no
5144 else
5145 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
5146 fi
5147 if test "$have_fop" = yes; then
5148 HAVE_FOP_TRUE=
5149 HAVE_FOP_FALSE='#'
5150 else
5151 HAVE_FOP_TRUE='#'
5152 HAVE_FOP_FALSE=
5153 fi
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
5158 $as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; }
5159 XORG_SGML_PATH=
5160 if test -n "$PKG_CONFIG" && \
5161 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
5162 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
5163 ac_status=$?
5164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5165 test $ac_status = 0; }; then
5166 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
5167 else
5168 :
5169
5170 fi
5171
5172 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
5173 # the path and the name of the doc stylesheet
5174 if test "x$XORG_SGML_PATH" != "x" ; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
5176 $as_echo "$XORG_SGML_PATH" >&6; }
5177 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
5178 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185
5186
5187 if test "x$XSL_STYLESHEET" != "x"; then
5188 HAVE_STYLESHEETS_TRUE=
5189 HAVE_STYLESHEETS_FALSE='#'
5190 else
5191 HAVE_STYLESHEETS_TRUE='#'
5192 HAVE_STYLESHEETS_FALSE=
5193 fi
5194
5195
5196
5197
5198
5199 # Check whether --with-asciidoc was given.
5200 if test "${with_asciidoc+set}" = set; then :
5201 withval=$with_asciidoc; use_asciidoc=$withval
5202 else
5203 use_asciidoc=auto
5204 fi
5205
5206
5207 if test "x$use_asciidoc" = x"auto"; then
5208 # Extract the first word of "asciidoc", so it can be a program name with args.
5209 set dummy asciidoc; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 case $ASCIIDOC in
5216 [\\/]* | ?:[\\/]*)
5217 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5218 ;;
5219 *)
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 ;;
5236 esac
5237 fi
5238 ASCIIDOC=$ac_cv_path_ASCIIDOC
5239 if test -n "$ASCIIDOC"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5241 $as_echo "$ASCIIDOC" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248 if test "x$ASCIIDOC" = "x"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc not found - documentation targets will be skipped" >&5
5250 $as_echo "$as_me: WARNING: asciidoc not found - documentation targets will be skipped" >&2;}
5251 have_asciidoc=no
5252 else
5253 have_asciidoc=yes
5254 fi
5255 elif test "x$use_asciidoc" = x"yes" ; then
5256 # Extract the first word of "asciidoc", so it can be a program name with args.
5257 set dummy asciidoc; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if test "${ac_cv_path_ASCIIDOC+set}" = set; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 case $ASCIIDOC in
5264 [\\/]* | ?:[\\/]*)
5265 ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5266 ;;
5267 *)
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271 IFS=$as_save_IFS
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 break 2
5278 fi
5279 done
5280 done
5281 IFS=$as_save_IFS
5282
5283 ;;
5284 esac
5285 fi
5286 ASCIIDOC=$ac_cv_path_ASCIIDOC
5287 if test -n "$ASCIIDOC"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5289 $as_echo "$ASCIIDOC" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5293 fi
5294
5295
5296 if test "x$ASCIIDOC" = "x"; then
5297 as_fn_error $? "--with-asciidoc=yes specified but asciidoc not found in PATH" "$LINENO" 5
5298 fi
5299 have_asciidoc=yes
5300 elif test "x$use_asciidoc" = x"no" ; then
5301 if test "x$ASCIIDOC" != "x"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&5
5303 $as_echo "$as_me: WARNING: ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified" >&2;}
5304 fi
5305 have_asciidoc=no
5306 else
5307 as_fn_error $? "--with-asciidoc expects 'yes' or 'no'" "$LINENO" 5
5308 fi
5309 if test "$have_asciidoc" = yes; then
5310 # scrape the asciidoc version
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the asciidoc version" >&5
5312 $as_echo_n "checking the asciidoc version... " >&6; }
5313 asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $asciidoc_version" >&5
5315 $as_echo "$asciidoc_version" >&6; }
5316 as_arg_v1=$asciidoc_version
5317 as_arg_v2=8.4.5
5318 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
5319 case $? in #(
5320 1) :
5321 if test "x$use_asciidoc" = xauto; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&5
5323 $as_echo "$as_me: WARNING: asciidoc version $asciidoc_version found, but 8.4.5 needed" >&2;}
5324 have_asciidoc=no
5325 else
5326 as_fn_error $? "asciidoc version $asciidoc_version found, but 8.4.5 needed" "$LINENO" 5
5327 fi ;; #(
5328 0) :
5329 ;; #(
5330 2) :
5331 ;; #(
5332 *) :
5333 ;;
5334 esac
5335 fi
5336 if test "$have_asciidoc" = yes; then
5337 HAVE_ASCIIDOC_TRUE=
5338 HAVE_ASCIIDOC_FALSE='#'
5339 else
5340 HAVE_ASCIIDOC_TRUE='#'
5341 HAVE_ASCIIDOC_FALSE=
5342 fi
5343
5344
5345 ac_config_headers="$ac_config_headers src/config.h"
5346
5347
5348 # Check for progs
5349 ac_ext=c
5350 ac_cpp='$CPP $CPPFLAGS'
5351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_CC+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$CC"; then
5363 ac_cv_prog_CC="$CC" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 CC=$ac_cv_prog_CC
5383 if test -n "$CC"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5385 $as_echo "$CC" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391
5392 fi
5393 if test -z "$ac_cv_prog_CC"; then
5394 ac_ct_CC=$CC
5395 # Extract the first word of "gcc", so it can be a program name with args.
5396 set dummy gcc; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -n "$ac_ct_CC"; then
5403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5404 else
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5407 do
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_CC="gcc"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5415 fi
5416 done
5417 done
5418 IFS=$as_save_IFS
5419
5420 fi
5421 fi
5422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5423 if test -n "$ac_ct_CC"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5425 $as_echo "$ac_ct_CC" >&6; }
5426 else
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5429 fi
5430
5431 if test "x$ac_ct_CC" = x; then
5432 CC=""
5433 else
5434 case $cross_compiling:$ac_tool_warned in
5435 yes:)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 CC=$ac_ct_CC
5441 fi
5442 else
5443 CC="$ac_cv_prog_CC"
5444 fi
5445
5446 if test -z "$CC"; then
5447 if test -n "$ac_tool_prefix"; then
5448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5449 set dummy ${ac_tool_prefix}cc; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_CC+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$CC"; then
5456 ac_cv_prog_CC="$CC" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_CC="${ac_tool_prefix}cc"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5468 fi
5469 done
5470 done
5471 IFS=$as_save_IFS
5472
5473 fi
5474 fi
5475 CC=$ac_cv_prog_CC
5476 if test -n "$CC"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5478 $as_echo "$CC" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5482 fi
5483
5484
5485 fi
5486 fi
5487 if test -z "$CC"; then
5488 # Extract the first word of "cc", so it can be a program name with args.
5489 set dummy cc; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if test "${ac_cv_prog_CC+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$CC"; then
5496 ac_cv_prog_CC="$CC" # Let the user override the test.
5497 else
5498 ac_prog_rejected=no
5499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 for as_dir in $PATH
5501 do
5502 IFS=$as_save_IFS
5503 test -z "$as_dir" && as_dir=.
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5506 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5507 ac_prog_rejected=yes
5508 continue
5509 fi
5510 ac_cv_prog_CC="cc"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514 done
5515 done
5516 IFS=$as_save_IFS
5517
5518 if test $ac_prog_rejected = yes; then
5519 # We found a bogon in the path, so make sure we never use it.
5520 set dummy $ac_cv_prog_CC
5521 shift
5522 if test $# != 0; then
5523 # We chose a different compiler from the bogus one.
5524 # However, it has the same basename, so the bogon will be chosen
5525 # first if we set CC to just the basename; use the full file name.
5526 shift
5527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5528 fi
5529 fi
5530 fi
5531 fi
5532 CC=$ac_cv_prog_CC
5533 if test -n "$CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5535 $as_echo "$CC" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 fi
5543 if test -z "$CC"; then
5544 if test -n "$ac_tool_prefix"; then
5545 for ac_prog in cl.exe
5546 do
5547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5548 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_prog_CC+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$CC"; then
5555 ac_cv_prog_CC="$CC" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5567 fi
5568 done
5569 done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 CC=$ac_cv_prog_CC
5575 if test -n "$CC"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5577 $as_echo "$CC" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583
5584 test -n "$CC" && break
5585 done
5586 fi
5587 if test -z "$CC"; then
5588 ac_ct_CC=$CC
5589 for ac_prog in cl.exe
5590 do
5591 # Extract the first word of "$ac_prog", so it can be a program name with args.
5592 set dummy $ac_prog; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$ac_ct_CC"; then
5599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_ac_ct_CC="$ac_prog"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5619 if test -n "$ac_ct_CC"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5621 $as_echo "$ac_ct_CC" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627
5628 test -n "$ac_ct_CC" && break
5629 done
5630
5631 if test "x$ac_ct_CC" = x; then
5632 CC=""
5633 else
5634 case $cross_compiling:$ac_tool_warned in
5635 yes:)
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638 ac_tool_warned=yes ;;
5639 esac
5640 CC=$ac_ct_CC
5641 fi
5642 fi
5643
5644 fi
5645
5646
5647 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5649 as_fn_error $? "no acceptable C compiler found in \$PATH
5650 See \`config.log' for more details" "$LINENO" 5; }
5651
5652 # Provide some information about the compiler.
5653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5654 set X $ac_compile
5655 ac_compiler=$2
5656 for ac_option in --version -v -V -qversion; do
5657 { { ac_try="$ac_compiler $ac_option >&5"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5663 $as_echo "$ac_try_echo"; } >&5
5664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5665 ac_status=$?
5666 if test -s conftest.err; then
5667 sed '10a\
5668 ... rest of stderr output deleted ...
5669 10q' conftest.err >conftest.er1
5670 cat conftest.er1 >&5
5671 fi
5672 rm -f conftest.er1 conftest.err
5673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674 test $ac_status = 0; }
5675 done
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5678 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5679 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 int
5686 main ()
5687 {
5688 #ifndef __GNUC__
5689 choke me
5690 #endif
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 ac_compiler_gnu=yes
5698 else
5699 ac_compiler_gnu=no
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5703
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5706 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5707 if test $ac_compiler_gnu = yes; then
5708 GCC=yes
5709 else
5710 GCC=
5711 fi
5712 ac_test_CFLAGS=${CFLAGS+set}
5713 ac_save_CFLAGS=$CFLAGS
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5715 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5716 if test "${ac_cv_prog_cc_g+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 ac_save_c_werror_flag=$ac_c_werror_flag
5720 ac_c_werror_flag=yes
5721 ac_cv_prog_cc_g=no
5722 CFLAGS="-g"
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725
5726 int
5727 main ()
5728 {
5729
5730 ;
5731 return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735 ac_cv_prog_cc_g=yes
5736 else
5737 CFLAGS=""
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740
5741 int
5742 main ()
5743 {
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 if ac_fn_c_try_compile "$LINENO"; then :
5750
5751 else
5752 ac_c_werror_flag=$ac_save_c_werror_flag
5753 CFLAGS="-g"
5754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5755 /* end confdefs.h. */
5756
5757 int
5758 main ()
5759 {
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 ac_cv_prog_cc_g=yes
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 ac_c_werror_flag=$ac_save_c_werror_flag
5774 fi
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5776 $as_echo "$ac_cv_prog_cc_g" >&6; }
5777 if test "$ac_test_CFLAGS" = set; then
5778 CFLAGS=$ac_save_CFLAGS
5779 elif test $ac_cv_prog_cc_g = yes; then
5780 if test "$GCC" = yes; then
5781 CFLAGS="-g -O2"
5782 else
5783 CFLAGS="-g"
5784 fi
5785 else
5786 if test "$GCC" = yes; then
5787 CFLAGS="-O2"
5788 else
5789 CFLAGS=
5790 fi
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5793 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5794 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 ac_cv_prog_cc_c89=no
5798 ac_save_CC=$CC
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5801 #include <stdarg.h>
5802 #include <stdio.h>
5803 #include <sys/types.h>
5804 #include <sys/stat.h>
5805 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5806 struct buf { int x; };
5807 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5808 static char *e (p, i)
5809 char **p;
5810 int i;
5811 {
5812 return p[i];
5813 }
5814 static char *f (char * (*g) (char **, int), char **p, ...)
5815 {
5816 char *s;
5817 va_list v;
5818 va_start (v,p);
5819 s = g (p, va_arg (v,int));
5820 va_end (v);
5821 return s;
5822 }
5823
5824 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5825 function prototypes and stuff, but not '\xHH' hex character constants.
5826 These don't provoke an error unfortunately, instead are silently treated
5827 as 'x'. The following induces an error, until -std is added to get
5828 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5829 array size at least. It's necessary to write '\x00'==0 to get something
5830 that's true only with -std. */
5831 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5832
5833 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5834 inside strings and character constants. */
5835 #define FOO(x) 'x'
5836 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5837
5838 int test (int i, double x);
5839 struct s1 {int (*f) (int a);};
5840 struct s2 {int (*f) (double a);};
5841 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5842 int argc;
5843 char **argv;
5844 int
5845 main ()
5846 {
5847 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5853 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5854 do
5855 CC="$ac_save_CC $ac_arg"
5856 if ac_fn_c_try_compile "$LINENO"; then :
5857 ac_cv_prog_cc_c89=$ac_arg
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext
5860 test "x$ac_cv_prog_cc_c89" != "xno" && break
5861 done
5862 rm -f conftest.$ac_ext
5863 CC=$ac_save_CC
5864
5865 fi
5866 # AC_CACHE_VAL
5867 case "x$ac_cv_prog_cc_c89" in
5868 x)
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5870 $as_echo "none needed" >&6; } ;;
5871 xno)
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5873 $as_echo "unsupported" >&6; } ;;
5874 *)
5875 CC="$CC $ac_cv_prog_cc_c89"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5877 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5878 esac
5879 if test "x$ac_cv_prog_cc_c89" != xno; then :
5880
5881 fi
5882
5883 ac_ext=c
5884 ac_cpp='$CPP $CPPFLAGS'
5885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888
5889 depcc="$CC" am_compiler_list=
5890
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5892 $as_echo_n "checking dependency style of $depcc... " >&6; }
5893 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5897 # We make a subdir and do the tests there. Otherwise we can end up
5898 # making bogus files that we don't know about and never remove. For
5899 # instance it was reported that on HP-UX the gcc test will end up
5900 # making a dummy file named `D' -- because `-MD' means `put the output
5901 # in D'.
5902 mkdir conftest.dir
5903 # Copy depcomp to subdir because otherwise we won't find it if we're
5904 # using a relative directory.
5905 cp "$am_depcomp" conftest.dir
5906 cd conftest.dir
5907 # We will build objects and dependencies in a subdirectory because
5908 # it helps to detect inapplicable dependency modes. For instance
5909 # both Tru64's cc and ICC support -MD to output dependencies as a
5910 # side effect of compilation, but ICC will put the dependencies in
5911 # the current directory while Tru64 will put them in the object
5912 # directory.
5913 mkdir sub
5914
5915 am_cv_CC_dependencies_compiler_type=none
5916 if test "$am_compiler_list" = ""; then
5917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5918 fi
5919 am__universal=false
5920 case " $depcc " in #(
5921 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5922 esac
5923
5924 for depmode in $am_compiler_list; do
5925 # Setup a source with many dependencies, because some compilers
5926 # like to wrap large dependency lists on column 80 (with \), and
5927 # we should not choose a depcomp mode which is confused by this.
5928 #
5929 # We need to recreate these files for each test, as the compiler may
5930 # overwrite some of them when testing with obscure command lines.
5931 # This happens at least with the AIX C compiler.
5932 : > sub/conftest.c
5933 for i in 1 2 3 4 5 6; do
5934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5935 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5936 # Solaris 8's {/usr,}/bin/sh.
5937 touch sub/conftst$i.h
5938 done
5939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5940
5941 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5942 # mode. It turns out that the SunPro C++ compiler does not properly
5943 # handle `-M -o', and we need to detect this. Also, some Intel
5944 # versions had trouble with output in subdirs
5945 am__obj=sub/conftest.${OBJEXT-o}
5946 am__minus_obj="-o $am__obj"
5947 case $depmode in
5948 gcc)
5949 # This depmode causes a compiler race in universal mode.
5950 test "$am__universal" = false || continue
5951 ;;
5952 nosideeffect)
5953 # after this tag, mechanisms are not by side-effect, so they'll
5954 # only be used when explicitly requested
5955 if test "x$enable_dependency_tracking" = xyes; then
5956 continue
5957 else
5958 break
5959 fi
5960 ;;
5961 msvisualcpp | msvcmsys)
5962 # This compiler won't grok `-c -o', but also, the minuso test has
5963 # not run yet. These depmodes are late enough in the game, and
5964 # so weak that their functioning should not be impacted.
5965 am__obj=conftest.${OBJEXT-o}
5966 am__minus_obj=
5967 ;;
5968 none) break ;;
5969 esac
5970 if depmode=$depmode \
5971 source=sub/conftest.c object=$am__obj \
5972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5974 >/dev/null 2>conftest.err &&
5975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5979 # icc doesn't choke on unknown options, it will just issue warnings
5980 # or remarks (even with -Werror). So we grep stderr for any message
5981 # that says an option was ignored or not supported.
5982 # When given -MP, icc 7.0 and 7.1 complain thusly:
5983 # icc: Command line warning: ignoring option '-M'; no argument required
5984 # The diagnosis changed in icc 8.0:
5985 # icc: Command line remark: option '-MP' not supported
5986 if (grep 'ignoring option' conftest.err ||
5987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5988 am_cv_CC_dependencies_compiler_type=$depmode
5989 break
5990 fi
5991 fi
5992 done
5993
5994 cd ..
5995 rm -rf conftest.dir
5996 else
5997 am_cv_CC_dependencies_compiler_type=none
5998 fi
5999
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6004
6005 if
6006 test "x$enable_dependency_tracking" != xno \
6007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6008 am__fastdepCC_TRUE=
6009 am__fastdepCC_FALSE='#'
6010 else
6011 am__fastdepCC_TRUE='#'
6012 am__fastdepCC_FALSE=
6013 fi
6014
6015
6016 case `pwd` in
6017 *\ * | *\ *)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6019 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6020 esac
6021
6022
6023
6024 macro_version='2.2.10'
6025 macro_revision='1.3175'
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 ltmain="$ac_aux_dir/ltmain.sh"
6040
6041 # Backslashify metacharacters that are still active within
6042 # double-quoted strings.
6043 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6044
6045 # Same as above, but do not quote variable references.
6046 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6047
6048 # Sed substitution to delay expansion of an escaped shell variable in a
6049 # double_quote_subst'ed string.
6050 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6051
6052 # Sed substitution to delay expansion of an escaped single quote.
6053 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6054
6055 # Sed substitution to avoid accidental globbing in evaled expressions
6056 no_glob_subst='s/\*/\\\*/g'
6057
6058 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6059 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6060 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6061
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6063 $as_echo_n "checking how to print strings... " >&6; }
6064 # Test print first, because it will be a builtin if present.
6065 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6066 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6067 ECHO='print -r --'
6068 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6069 ECHO='printf %s\n'
6070 else
6071 # Use this function as a fallback that always works.
6072 func_fallback_echo ()
6073 {
6074 eval 'cat <<_LTECHO_EOF
6075 $1
6076 _LTECHO_EOF'
6077 }
6078 ECHO='func_fallback_echo'
6079 fi
6080
6081 # func_echo_all arg...
6082 # Invoke $ECHO with all args, space-separated.
6083 func_echo_all ()
6084 {
6085 $ECHO ""
6086 }
6087
6088 case "$ECHO" in
6089 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6090 $as_echo "printf" >&6; } ;;
6091 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6092 $as_echo "print -r" >&6; } ;;
6093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6094 $as_echo "cat" >&6; } ;;
6095 esac
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6111 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6112 if test "${ac_cv_path_SED+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6116 for ac_i in 1 2 3 4 5 6 7; do
6117 ac_script="$ac_script$as_nl$ac_script"
6118 done
6119 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6120 { ac_script=; unset ac_script;}
6121 if test -z "$SED"; then
6122 ac_path_SED_found=false
6123 # Loop through the user's path and test for each of PROGNAME-LIST
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_prog in sed gsed; do
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6132 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6133 # Check for GNU ac_path_SED and select it if it is found.
6134 # Check for GNU $ac_path_SED
6135 case `"$ac_path_SED" --version 2>&1` in
6136 *GNU*)
6137 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6138 *)
6139 ac_count=0
6140 $as_echo_n 0123456789 >"conftest.in"
6141 while :
6142 do
6143 cat "conftest.in" "conftest.in" >"conftest.tmp"
6144 mv "conftest.tmp" "conftest.in"
6145 cp "conftest.in" "conftest.nl"
6146 $as_echo '' >> "conftest.nl"
6147 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6149 as_fn_arith $ac_count + 1 && ac_count=$as_val
6150 if test $ac_count -gt ${ac_path_SED_max-0}; then
6151 # Best one so far, save it but keep looking for a better one
6152 ac_cv_path_SED="$ac_path_SED"
6153 ac_path_SED_max=$ac_count
6154 fi
6155 # 10*(2^10) chars as input seems more than enough
6156 test $ac_count -gt 10 && break
6157 done
6158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6159 esac
6160
6161 $ac_path_SED_found && break 3
6162 done
6163 done
6164 done
6165 IFS=$as_save_IFS
6166 if test -z "$ac_cv_path_SED"; then
6167 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6168 fi
6169 else
6170 ac_cv_path_SED=$SED
6171 fi
6172
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6175 $as_echo "$ac_cv_path_SED" >&6; }
6176 SED="$ac_cv_path_SED"
6177 rm -f conftest.sed
6178
6179 test -z "$SED" && SED=sed
6180 Xsed="$SED -e 1s/^X//"
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6193 $as_echo_n "checking for fgrep... " >&6; }
6194 if test "${ac_cv_path_FGREP+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6198 then ac_cv_path_FGREP="$GREP -F"
6199 else
6200 if test -z "$FGREP"; then
6201 ac_path_FGREP_found=false
6202 # Loop through the user's path and test for each of PROGNAME-LIST
6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6205 do
6206 IFS=$as_save_IFS
6207 test -z "$as_dir" && as_dir=.
6208 for ac_prog in fgrep; do
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6211 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6212 # Check for GNU ac_path_FGREP and select it if it is found.
6213 # Check for GNU $ac_path_FGREP
6214 case `"$ac_path_FGREP" --version 2>&1` in
6215 *GNU*)
6216 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6217 *)
6218 ac_count=0
6219 $as_echo_n 0123456789 >"conftest.in"
6220 while :
6221 do
6222 cat "conftest.in" "conftest.in" >"conftest.tmp"
6223 mv "conftest.tmp" "conftest.in"
6224 cp "conftest.in" "conftest.nl"
6225 $as_echo 'FGREP' >> "conftest.nl"
6226 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6228 as_fn_arith $ac_count + 1 && ac_count=$as_val
6229 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6230 # Best one so far, save it but keep looking for a better one
6231 ac_cv_path_FGREP="$ac_path_FGREP"
6232 ac_path_FGREP_max=$ac_count
6233 fi
6234 # 10*(2^10) chars as input seems more than enough
6235 test $ac_count -gt 10 && break
6236 done
6237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6238 esac
6239
6240 $ac_path_FGREP_found && break 3
6241 done
6242 done
6243 done
6244 IFS=$as_save_IFS
6245 if test -z "$ac_cv_path_FGREP"; then
6246 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6247 fi
6248 else
6249 ac_cv_path_FGREP=$FGREP
6250 fi
6251
6252 fi
6253 fi
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6255 $as_echo "$ac_cv_path_FGREP" >&6; }
6256 FGREP="$ac_cv_path_FGREP"
6257
6258
6259 test -z "$GREP" && GREP=grep
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 # Check whether --with-gnu-ld was given.
6280 if test "${with_gnu_ld+set}" = set; then :
6281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6282 else
6283 with_gnu_ld=no
6284 fi
6285
6286 ac_prog=ld
6287 if test "$GCC" = yes; then
6288 # Check if gcc -print-prog-name=ld gives a path.
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6290 $as_echo_n "checking for ld used by $CC... " >&6; }
6291 case $host in
6292 *-*-mingw*)
6293 # gcc leaves a trailing carriage return which upsets mingw
6294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6295 *)
6296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6297 esac
6298 case $ac_prog in
6299 # Accept absolute paths.
6300 [\\/]* | ?:[\\/]*)
6301 re_direlt='/[^/][^/]*/\.\./'
6302 # Canonicalize the pathname of ld
6303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6306 done
6307 test -z "$LD" && LD="$ac_prog"
6308 ;;
6309 "")
6310 # If it fails, then pretend we aren't using GCC.
6311 ac_prog=ld
6312 ;;
6313 *)
6314 # If it is relative, then search for the first ld in PATH.
6315 with_gnu_ld=unknown
6316 ;;
6317 esac
6318 elif test "$with_gnu_ld" = yes; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6320 $as_echo_n "checking for GNU ld... " >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6323 $as_echo_n "checking for non-GNU ld... " >&6; }
6324 fi
6325 if test "${lt_cv_path_LD+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -z "$LD"; then
6329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6330 for ac_dir in $PATH; do
6331 IFS="$lt_save_ifs"
6332 test -z "$ac_dir" && ac_dir=.
6333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6334 lt_cv_path_LD="$ac_dir/$ac_prog"
6335 # Check to see if the program is GNU ld. I'd rather use --version,
6336 # but apparently some variants of GNU ld only accept -v.
6337 # Break only if it was the GNU/non-GNU ld that we prefer.
6338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6339 *GNU* | *'with BFD'*)
6340 test "$with_gnu_ld" != no && break
6341 ;;
6342 *)
6343 test "$with_gnu_ld" != yes && break
6344 ;;
6345 esac
6346 fi
6347 done
6348 IFS="$lt_save_ifs"
6349 else
6350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6351 fi
6352 fi
6353
6354 LD="$lt_cv_path_LD"
6355 if test -n "$LD"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6357 $as_echo "$LD" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6364 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6365 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6369 case `$LD -v 2>&1 </dev/null` in
6370 *GNU* | *'with BFD'*)
6371 lt_cv_prog_gnu_ld=yes
6372 ;;
6373 *)
6374 lt_cv_prog_gnu_ld=no
6375 ;;
6376 esac
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6379 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6380 with_gnu_ld=$lt_cv_prog_gnu_ld
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6391 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6392 if test "${lt_cv_path_NM+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$NM"; then
6396 # Let the user override the test.
6397 lt_cv_path_NM="$NM"
6398 else
6399 lt_nm_to_check="${ac_tool_prefix}nm"
6400 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6401 lt_nm_to_check="$lt_nm_to_check nm"
6402 fi
6403 for lt_tmp_nm in $lt_nm_to_check; do
6404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6405 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6406 IFS="$lt_save_ifs"
6407 test -z "$ac_dir" && ac_dir=.
6408 tmp_nm="$ac_dir/$lt_tmp_nm"
6409 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6410 # Check to see if the nm accepts a BSD-compat flag.
6411 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6412 # nm: unknown option "B" ignored
6413 # Tru64's nm complains that /dev/null is an invalid object file
6414 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6415 */dev/null* | *'Invalid file or object type'*)
6416 lt_cv_path_NM="$tmp_nm -B"
6417 break
6418 ;;
6419 *)
6420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6421 */dev/null*)
6422 lt_cv_path_NM="$tmp_nm -p"
6423 break
6424 ;;
6425 *)
6426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6427 continue # so that we can try to find one that supports BSD flags
6428 ;;
6429 esac
6430 ;;
6431 esac
6432 fi
6433 done
6434 IFS="$lt_save_ifs"
6435 done
6436 : ${lt_cv_path_NM=no}
6437 fi
6438 fi
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6440 $as_echo "$lt_cv_path_NM" >&6; }
6441 if test "$lt_cv_path_NM" != "no"; then
6442 NM="$lt_cv_path_NM"
6443 else
6444 # Didn't find any BSD compatible name lister, look for dumpbin.
6445 if test -n "$DUMPBIN"; then :
6446 # Let the user override the test.
6447 else
6448 if test -n "$ac_tool_prefix"; then
6449 for ac_prog in dumpbin "link -dump"
6450 do
6451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$DUMPBIN"; then
6459 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 DUMPBIN=$ac_cv_prog_DUMPBIN
6479 if test -n "$DUMPBIN"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6481 $as_echo "$DUMPBIN" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 test -n "$DUMPBIN" && break
6489 done
6490 fi
6491 if test -z "$DUMPBIN"; then
6492 ac_ct_DUMPBIN=$DUMPBIN
6493 for ac_prog in dumpbin "link -dump"
6494 do
6495 # Extract the first word of "$ac_prog", so it can be a program name with args.
6496 set dummy $ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 if test -n "$ac_ct_DUMPBIN"; then
6503 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508 IFS=$as_save_IFS
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 break 2
6515 fi
6516 done
6517 done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6523 if test -n "$ac_ct_DUMPBIN"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6525 $as_echo "$ac_ct_DUMPBIN" >&6; }
6526 else
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531
6532 test -n "$ac_ct_DUMPBIN" && break
6533 done
6534
6535 if test "x$ac_ct_DUMPBIN" = x; then
6536 DUMPBIN=":"
6537 else
6538 case $cross_compiling:$ac_tool_warned in
6539 yes:)
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6542 ac_tool_warned=yes ;;
6543 esac
6544 DUMPBIN=$ac_ct_DUMPBIN
6545 fi
6546 fi
6547
6548 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6549 *COFF*)
6550 DUMPBIN="$DUMPBIN -symbols"
6551 ;;
6552 *)
6553 DUMPBIN=:
6554 ;;
6555 esac
6556 fi
6557
6558 if test "$DUMPBIN" != ":"; then
6559 NM="$DUMPBIN"
6560 fi
6561 fi
6562 test -z "$NM" && NM=nm
6563
6564
6565
6566
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6570 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6571 if test "${lt_cv_nm_interface+set}" = set; then :
6572 $as_echo_n "(cached) " >&6
6573 else
6574 lt_cv_nm_interface="BSD nm"
6575 echo "int some_variable = 0;" > conftest.$ac_ext
6576 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6577 (eval "$ac_compile" 2>conftest.err)
6578 cat conftest.err >&5
6579 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6580 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6581 cat conftest.err >&5
6582 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6583 cat conftest.out >&5
6584 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6585 lt_cv_nm_interface="MS dumpbin"
6586 fi
6587 rm -f conftest*
6588 fi
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6590 $as_echo "$lt_cv_nm_interface" >&6; }
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6593 $as_echo_n "checking whether ln -s works... " >&6; }
6594 LN_S=$as_ln_s
6595 if test "$LN_S" = "ln -s"; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6597 $as_echo "yes" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6600 $as_echo "no, using $LN_S" >&6; }
6601 fi
6602
6603 # find the maximum length of command line arguments
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6605 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6606 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6609 i=0
6610 teststring="ABCD"
6611
6612 case $build_os in
6613 msdosdjgpp*)
6614 # On DJGPP, this test can blow up pretty badly due to problems in libc
6615 # (any single argument exceeding 2000 bytes causes a buffer overrun
6616 # during glob expansion). Even if it were fixed, the result of this
6617 # check would be larger than it should be.
6618 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6619 ;;
6620
6621 gnu*)
6622 # Under GNU Hurd, this test is not required because there is
6623 # no limit to the length of command line arguments.
6624 # Libtool will interpret -1 as no limit whatsoever
6625 lt_cv_sys_max_cmd_len=-1;
6626 ;;
6627
6628 cygwin* | mingw* | cegcc*)
6629 # On Win9x/ME, this test blows up -- it succeeds, but takes
6630 # about 5 minutes as the teststring grows exponentially.
6631 # Worse, since 9x/ME are not pre-emptively multitasking,
6632 # you end up with a "frozen" computer, even though with patience
6633 # the test eventually succeeds (with a max line length of 256k).
6634 # Instead, let's just punt: use the minimum linelength reported by
6635 # all of the supported platforms: 8192 (on NT/2K/XP).
6636 lt_cv_sys_max_cmd_len=8192;
6637 ;;
6638
6639 mint*)
6640 # On MiNT this can take a long time and run out of memory.
6641 lt_cv_sys_max_cmd_len=8192;
6642 ;;
6643
6644 amigaos*)
6645 # On AmigaOS with pdksh, this test takes hours, literally.
6646 # So we just punt and use a minimum line length of 8192.
6647 lt_cv_sys_max_cmd_len=8192;
6648 ;;
6649
6650 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6651 # This has been around since 386BSD, at least. Likely further.
6652 if test -x /sbin/sysctl; then
6653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6654 elif test -x /usr/sbin/sysctl; then
6655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6656 else
6657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6658 fi
6659 # And add a safety zone
6660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6662 ;;
6663
6664 interix*)
6665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6666 lt_cv_sys_max_cmd_len=196608
6667 ;;
6668
6669 osf*)
6670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6672 # nice to cause kernel panics so lets avoid the loop below.
6673 # First set a reasonable default.
6674 lt_cv_sys_max_cmd_len=16384
6675 #
6676 if test -x /sbin/sysconfig; then
6677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6679 esac
6680 fi
6681 ;;
6682 sco3.2v5*)
6683 lt_cv_sys_max_cmd_len=102400
6684 ;;
6685 sysv5* | sco5v6* | sysv4.2uw2*)
6686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6687 if test -n "$kargmax"; then
6688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6689 else
6690 lt_cv_sys_max_cmd_len=32768
6691 fi
6692 ;;
6693 *)
6694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6695 if test -n "$lt_cv_sys_max_cmd_len"; then
6696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6698 else
6699 # Make teststring a little bigger before we do anything with it.
6700 # a 1K string should be a reasonable start.
6701 for i in 1 2 3 4 5 6 7 8 ; do
6702 teststring=$teststring$teststring
6703 done
6704 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6705 # If test is not a shell built-in, we'll probably end up computing a
6706 # maximum length that is only half of the actual maximum length, but
6707 # we can't tell.
6708 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6709 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6710 test $i != 17 # 1/2 MB should be enough
6711 do
6712 i=`expr $i + 1`
6713 teststring=$teststring$teststring
6714 done
6715 # Only check the string length outside the loop.
6716 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6717 teststring=
6718 # Add a significant safety factor because C++ compilers can tack on
6719 # massive amounts of additional arguments before passing them to the
6720 # linker. It appears as though 1/2 is a usable value.
6721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6722 fi
6723 ;;
6724 esac
6725
6726 fi
6727
6728 if test -n $lt_cv_sys_max_cmd_len ; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6730 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6733 $as_echo "none" >&6; }
6734 fi
6735 max_cmd_len=$lt_cv_sys_max_cmd_len
6736
6737
6738
6739
6740
6741
6742 : ${CP="cp -f"}
6743 : ${MV="mv -f"}
6744 : ${RM="rm -f"}
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6747 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6748 # Try some XSI features
6749 xsi_shell=no
6750 ( _lt_dummy="a/b/c"
6751 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6752 = c,a/b,, \
6753 && eval 'test $(( 1 + 1 )) -eq 2 \
6754 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6755 && xsi_shell=yes
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6757 $as_echo "$xsi_shell" >&6; }
6758
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6761 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6762 lt_shell_append=no
6763 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6764 >/dev/null 2>&1 \
6765 && lt_shell_append=yes
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6767 $as_echo "$lt_shell_append" >&6; }
6768
6769
6770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6771 lt_unset=unset
6772 else
6773 lt_unset=false
6774 fi
6775
6776
6777
6778
6779
6780 # test EBCDIC or ASCII
6781 case `echo X|tr X '\101'` in
6782 A) # ASCII based system
6783 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6784 lt_SP2NL='tr \040 \012'
6785 lt_NL2SP='tr \015\012 \040\040'
6786 ;;
6787 *) # EBCDIC based system
6788 lt_SP2NL='tr \100 \n'
6789 lt_NL2SP='tr \r\n \100\100'
6790 ;;
6791 esac
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6802 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6803 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 lt_cv_ld_reload_flag='-r'
6807 fi
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6809 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6810 reload_flag=$lt_cv_ld_reload_flag
6811 case $reload_flag in
6812 "" | " "*) ;;
6813 *) reload_flag=" $reload_flag" ;;
6814 esac
6815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6816 case $host_os in
6817 darwin*)
6818 if test "$GCC" = yes; then
6819 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6820 else
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6822 fi
6823 ;;
6824 esac
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834 if test -n "$ac_tool_prefix"; then
6835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$OBJDUMP"; then
6843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6847 do
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6855 fi
6856 done
6857 done
6858 IFS=$as_save_IFS
6859
6860 fi
6861 fi
6862 OBJDUMP=$ac_cv_prog_OBJDUMP
6863 if test -n "$OBJDUMP"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6865 $as_echo "$OBJDUMP" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6869 fi
6870
6871
6872 fi
6873 if test -z "$ac_cv_prog_OBJDUMP"; then
6874 ac_ct_OBJDUMP=$OBJDUMP
6875 # Extract the first word of "objdump", so it can be a program name with args.
6876 set dummy objdump; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$ac_ct_OBJDUMP"; then
6883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6903 if test -n "$ac_ct_OBJDUMP"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6905 $as_echo "$ac_ct_OBJDUMP" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911 if test "x$ac_ct_OBJDUMP" = x; then
6912 OBJDUMP="false"
6913 else
6914 case $cross_compiling:$ac_tool_warned in
6915 yes:)
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6918 ac_tool_warned=yes ;;
6919 esac
6920 OBJDUMP=$ac_ct_OBJDUMP
6921 fi
6922 else
6923 OBJDUMP="$ac_cv_prog_OBJDUMP"
6924 fi
6925
6926 test -z "$OBJDUMP" && OBJDUMP=objdump
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6937 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6938 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 lt_cv_file_magic_cmd='$MAGIC_CMD'
6942 lt_cv_file_magic_test_file=
6943 lt_cv_deplibs_check_method='unknown'
6944 # Need to set the preceding variable on all platforms that support
6945 # interlibrary dependencies.
6946 # 'none' -- dependencies not supported.
6947 # `unknown' -- same as none, but documents that we really don't know.
6948 # 'pass_all' -- all dependencies passed with no checks.
6949 # 'test_compile' -- check by making test program.
6950 # 'file_magic [[regex]]' -- check by looking for files in library path
6951 # which responds to the $file_magic_cmd with a given extended regex.
6952 # If you have `file' or equivalent on your system and you're not sure
6953 # whether `pass_all' will *always* work, you probably want this one.
6954
6955 case $host_os in
6956 aix[4-9]*)
6957 lt_cv_deplibs_check_method=pass_all
6958 ;;
6959
6960 beos*)
6961 lt_cv_deplibs_check_method=pass_all
6962 ;;
6963
6964 bsdi[45]*)
6965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6966 lt_cv_file_magic_cmd='/usr/bin/file -L'
6967 lt_cv_file_magic_test_file=/shlib/libc.so
6968 ;;
6969
6970 cygwin*)
6971 # func_win32_libid is a shell function defined in ltmain.sh
6972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6973 lt_cv_file_magic_cmd='func_win32_libid'
6974 ;;
6975
6976 mingw* | pw32*)
6977 # Base MSYS/MinGW do not provide the 'file' command needed by
6978 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6979 # unless we find 'file', for example because we are cross-compiling.
6980 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6981 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983 lt_cv_file_magic_cmd='func_win32_libid'
6984 else
6985 # Keep this pattern in sync with the one in func_win32_libid.
6986 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6987 lt_cv_file_magic_cmd='$OBJDUMP -f'
6988 fi
6989 ;;
6990
6991 cegcc*)
6992 # use the weaker test based on 'objdump'. See mingw*.
6993 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6994 lt_cv_file_magic_cmd='$OBJDUMP -f'
6995 ;;
6996
6997 darwin* | rhapsody*)
6998 lt_cv_deplibs_check_method=pass_all
6999 ;;
7000
7001 freebsd* | dragonfly*)
7002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7003 case $host_cpu in
7004 i*86 )
7005 # Not sure whether the presence of OpenBSD here was a mistake.
7006 # Let's accept both of them until this is cleared up.
7007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7008 lt_cv_file_magic_cmd=/usr/bin/file
7009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7010 ;;
7011 esac
7012 else
7013 lt_cv_deplibs_check_method=pass_all
7014 fi
7015 ;;
7016
7017 gnu*)
7018 lt_cv_deplibs_check_method=pass_all
7019 ;;
7020
7021 haiku*)
7022 lt_cv_deplibs_check_method=pass_all
7023 ;;
7024
7025 hpux10.20* | hpux11*)
7026 lt_cv_file_magic_cmd=/usr/bin/file
7027 case $host_cpu in
7028 ia64*)
7029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7031 ;;
7032 hppa*64*)
7033 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]'
7034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7035 ;;
7036 *)
7037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7039 ;;
7040 esac
7041 ;;
7042
7043 interix[3-9]*)
7044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7046 ;;
7047
7048 irix5* | irix6* | nonstopux*)
7049 case $LD in
7050 *-32|*"-32 ") libmagic=32-bit;;
7051 *-n32|*"-n32 ") libmagic=N32;;
7052 *-64|*"-64 ") libmagic=64-bit;;
7053 *) libmagic=never-match;;
7054 esac
7055 lt_cv_deplibs_check_method=pass_all
7056 ;;
7057
7058 # This must be Linux ELF.
7059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7060 lt_cv_deplibs_check_method=pass_all
7061 ;;
7062
7063 netbsd*)
7064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7066 else
7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7068 fi
7069 ;;
7070
7071 newos6*)
7072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7073 lt_cv_file_magic_cmd=/usr/bin/file
7074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7075 ;;
7076
7077 *nto* | *qnx*)
7078 lt_cv_deplibs_check_method=pass_all
7079 ;;
7080
7081 openbsd*)
7082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7084 else
7085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7086 fi
7087 ;;
7088
7089 osf3* | osf4* | osf5*)
7090 lt_cv_deplibs_check_method=pass_all
7091 ;;
7092
7093 rdos*)
7094 lt_cv_deplibs_check_method=pass_all
7095 ;;
7096
7097 solaris*)
7098 lt_cv_deplibs_check_method=pass_all
7099 ;;
7100
7101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7102 lt_cv_deplibs_check_method=pass_all
7103 ;;
7104
7105 sysv4 | sysv4.3*)
7106 case $host_vendor in
7107 motorola)
7108 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]'
7109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7110 ;;
7111 ncr)
7112 lt_cv_deplibs_check_method=pass_all
7113 ;;
7114 sequent)
7115 lt_cv_file_magic_cmd='/bin/file'
7116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7117 ;;
7118 sni)
7119 lt_cv_file_magic_cmd='/bin/file'
7120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7121 lt_cv_file_magic_test_file=/lib/libc.so
7122 ;;
7123 siemens)
7124 lt_cv_deplibs_check_method=pass_all
7125 ;;
7126 pc)
7127 lt_cv_deplibs_check_method=pass_all
7128 ;;
7129 esac
7130 ;;
7131
7132 tpf*)
7133 lt_cv_deplibs_check_method=pass_all
7134 ;;
7135 esac
7136
7137 fi
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7140 file_magic_cmd=$lt_cv_file_magic_cmd
7141 deplibs_check_method=$lt_cv_deplibs_check_method
7142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155 if test -n "$ac_tool_prefix"; then
7156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7157 set dummy ${ac_tool_prefix}ar; ac_word=$2
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7159 $as_echo_n "checking for $ac_word... " >&6; }
7160 if test "${ac_cv_prog_AR+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if test -n "$AR"; then
7164 ac_cv_prog_AR="$AR" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169 IFS=$as_save_IFS
7170 test -z "$as_dir" && as_dir=.
7171 for ac_exec_ext in '' $ac_executable_extensions; do
7172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173 ac_cv_prog_AR="${ac_tool_prefix}ar"
7174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 break 2
7176 fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 AR=$ac_cv_prog_AR
7184 if test -n "$AR"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7186 $as_echo "$AR" >&6; }
7187 else
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7190 fi
7191
7192
7193 fi
7194 if test -z "$ac_cv_prog_AR"; then
7195 ac_ct_AR=$AR
7196 # Extract the first word of "ar", so it can be a program name with args.
7197 set dummy ar; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 if test -n "$ac_ct_AR"; then
7204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209 IFS=$as_save_IFS
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_ac_ct_AR="ar"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 break 2
7216 fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7224 if test -n "$ac_ct_AR"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7226 $as_echo "$ac_ct_AR" >&6; }
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7231
7232 if test "x$ac_ct_AR" = x; then
7233 AR="false"
7234 else
7235 case $cross_compiling:$ac_tool_warned in
7236 yes:)
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239 ac_tool_warned=yes ;;
7240 esac
7241 AR=$ac_ct_AR
7242 fi
7243 else
7244 AR="$ac_cv_prog_AR"
7245 fi
7246
7247 test -z "$AR" && AR=ar
7248 test -z "$AR_FLAGS" && AR_FLAGS=cru
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260 if test -n "$ac_tool_prefix"; then
7261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}strip; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_prog_STRIP+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$STRIP"; then
7269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 STRIP=$ac_cv_prog_STRIP
7289 if test -n "$STRIP"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7291 $as_echo "$STRIP" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_STRIP"; then
7300 ac_ct_STRIP=$STRIP
7301 # Extract the first word of "strip", so it can be a program name with args.
7302 set dummy strip; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 if test -n "$ac_ct_STRIP"; then
7309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_prog_ac_ct_STRIP="strip"
7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7329 if test -n "$ac_ct_STRIP"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7331 $as_echo "$ac_ct_STRIP" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337 if test "x$ac_ct_STRIP" = x; then
7338 STRIP=":"
7339 else
7340 case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346 STRIP=$ac_ct_STRIP
7347 fi
7348 else
7349 STRIP="$ac_cv_prog_STRIP"
7350 fi
7351
7352 test -z "$STRIP" && STRIP=:
7353
7354
7355
7356
7357
7358
7359 if test -n "$ac_tool_prefix"; then
7360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$RANLIB"; then
7368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 RANLIB=$ac_cv_prog_RANLIB
7388 if test -n "$RANLIB"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7390 $as_echo "$RANLIB" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396
7397 fi
7398 if test -z "$ac_cv_prog_RANLIB"; then
7399 ac_ct_RANLIB=$RANLIB
7400 # Extract the first word of "ranlib", so it can be a program name with args.
7401 set dummy ranlib; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$ac_ct_RANLIB"; then
7408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417 ac_cv_prog_ac_ct_RANLIB="ranlib"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7428 if test -n "$ac_ct_RANLIB"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7430 $as_echo "$ac_ct_RANLIB" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436 if test "x$ac_ct_RANLIB" = x; then
7437 RANLIB=":"
7438 else
7439 case $cross_compiling:$ac_tool_warned in
7440 yes:)
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445 RANLIB=$ac_ct_RANLIB
7446 fi
7447 else
7448 RANLIB="$ac_cv_prog_RANLIB"
7449 fi
7450
7451 test -z "$RANLIB" && RANLIB=:
7452
7453
7454
7455
7456
7457
7458 # Determine commands to create old-style static archives.
7459 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7460 old_postinstall_cmds='chmod 644 $oldlib'
7461 old_postuninstall_cmds=
7462
7463 if test -n "$RANLIB"; then
7464 case $host_os in
7465 openbsd*)
7466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7467 ;;
7468 *)
7469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7470 ;;
7471 esac
7472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7473 fi
7474
7475 case $host_os in
7476 darwin*)
7477 lock_old_archive_extraction=yes ;;
7478 *)
7479 lock_old_archive_extraction=no ;;
7480 esac
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520 # If no C compiler was specified, use CC.
7521 LTCC=${LTCC-"$CC"}
7522
7523 # If no C compiler flags were specified, use CFLAGS.
7524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7525
7526 # Allow CC to be a program name with arguments.
7527 compiler=$CC
7528
7529
7530 # Check for command to grab the raw symbol name followed by C symbol from nm.
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7532 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536
7537 # These are sane defaults that work on at least a few old systems.
7538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7539
7540 # Character class describing NM global symbol codes.
7541 symcode='[BCDEGRST]'
7542
7543 # Regexp to match symbols that can be accessed directly from C.
7544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7545
7546 # Define system-specific variables.
7547 case $host_os in
7548 aix*)
7549 symcode='[BCDT]'
7550 ;;
7551 cygwin* | mingw* | pw32* | cegcc*)
7552 symcode='[ABCDGISTW]'
7553 ;;
7554 hpux*)
7555 if test "$host_cpu" = ia64; then
7556 symcode='[ABCDEGRST]'
7557 fi
7558 ;;
7559 irix* | nonstopux*)
7560 symcode='[BCDEGRST]'
7561 ;;
7562 osf*)
7563 symcode='[BCDEGQRST]'
7564 ;;
7565 solaris*)
7566 symcode='[BDRT]'
7567 ;;
7568 sco3.2v5*)
7569 symcode='[DT]'
7570 ;;
7571 sysv4.2uw2*)
7572 symcode='[DT]'
7573 ;;
7574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7575 symcode='[ABDT]'
7576 ;;
7577 sysv4)
7578 symcode='[DFNSTU]'
7579 ;;
7580 esac
7581
7582 # If we're using GNU nm, then use its standard symbol codes.
7583 case `$NM -V 2>&1` in
7584 *GNU* | *'with BFD'*)
7585 symcode='[ABCDGIRSTW]' ;;
7586 esac
7587
7588 # Transform an extracted symbol line into a proper C declaration.
7589 # Some systems (esp. on ia64) link data and code symbols differently,
7590 # so use this general approach.
7591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7592
7593 # Transform an extracted symbol line into symbol name and symbol address
7594 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7595 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7596
7597 # Handle CRLF in mingw tool chain
7598 opt_cr=
7599 case $build_os in
7600 mingw*)
7601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7602 ;;
7603 esac
7604
7605 # Try without a prefix underscore, then with it.
7606 for ac_symprfx in "" "_"; do
7607
7608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7609 symxfrm="\\1 $ac_symprfx\\2 \\2"
7610
7611 # Write the raw and C identifiers.
7612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7613 # Fake it for dumpbin and say T for any non-static function
7614 # and D for any global variable.
7615 # Also find C++ and __fastcall symbols from MSVC++,
7616 # which start with @ or ?.
7617 lt_cv_sys_global_symbol_pipe="$AWK '"\
7618 " {last_section=section; section=\$ 3};"\
7619 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7620 " \$ 0!~/External *\|/{next};"\
7621 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7622 " {if(hide[section]) next};"\
7623 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7624 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7625 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7626 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7627 " ' prfx=^$ac_symprfx"
7628 else
7629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7630 fi
7631
7632 # Check to see that the pipe works correctly.
7633 pipe_works=no
7634
7635 rm -f conftest*
7636 cat > conftest.$ac_ext <<_LT_EOF
7637 #ifdef __cplusplus
7638 extern "C" {
7639 #endif
7640 char nm_test_var;
7641 void nm_test_func(void);
7642 void nm_test_func(void){}
7643 #ifdef __cplusplus
7644 }
7645 #endif
7646 int main(){nm_test_var='a';nm_test_func();return(0);}
7647 _LT_EOF
7648
7649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7650 (eval $ac_compile) 2>&5
7651 ac_status=$?
7652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7653 test $ac_status = 0; }; then
7654 # Now try to grab the symbols.
7655 nlist=conftest.nm
7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7657 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; } && test -s "$nlist"; then
7661 # Try sorting and uniquifying the output.
7662 if sort "$nlist" | uniq > "$nlist"T; then
7663 mv -f "$nlist"T "$nlist"
7664 else
7665 rm -f "$nlist"T
7666 fi
7667
7668 # Make sure that we snagged all the symbols we need.
7669 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7670 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7671 cat <<_LT_EOF > conftest.$ac_ext
7672 #ifdef __cplusplus
7673 extern "C" {
7674 #endif
7675
7676 _LT_EOF
7677 # Now generate the symbol file.
7678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7679
7680 cat <<_LT_EOF >> conftest.$ac_ext
7681
7682 /* The mapping between symbol names and symbols. */
7683 const struct {
7684 const char *name;
7685 void *address;
7686 }
7687 lt__PROGRAM__LTX_preloaded_symbols[] =
7688 {
7689 { "@PROGRAM@", (void *) 0 },
7690 _LT_EOF
7691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7692 cat <<\_LT_EOF >> conftest.$ac_ext
7693 {0, (void *) 0}
7694 };
7695
7696 /* This works around a problem in FreeBSD linker */
7697 #ifdef FREEBSD_WORKAROUND
7698 static const void *lt_preloaded_setup() {
7699 return lt__PROGRAM__LTX_preloaded_symbols;
7700 }
7701 #endif
7702
7703 #ifdef __cplusplus
7704 }
7705 #endif
7706 _LT_EOF
7707 # Now try linking the two files.
7708 mv conftest.$ac_objext conftstm.$ac_objext
7709 lt_save_LIBS="$LIBS"
7710 lt_save_CFLAGS="$CFLAGS"
7711 LIBS="conftstm.$ac_objext"
7712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7714 (eval $ac_link) 2>&5
7715 ac_status=$?
7716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7718 pipe_works=yes
7719 fi
7720 LIBS="$lt_save_LIBS"
7721 CFLAGS="$lt_save_CFLAGS"
7722 else
7723 echo "cannot find nm_test_func in $nlist" >&5
7724 fi
7725 else
7726 echo "cannot find nm_test_var in $nlist" >&5
7727 fi
7728 else
7729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7730 fi
7731 else
7732 echo "$progname: failed program was:" >&5
7733 cat conftest.$ac_ext >&5
7734 fi
7735 rm -rf conftest* conftst*
7736
7737 # Do not use the global_symbol_pipe unless it works.
7738 if test "$pipe_works" = yes; then
7739 break
7740 else
7741 lt_cv_sys_global_symbol_pipe=
7742 fi
7743 done
7744
7745 fi
7746
7747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7748 lt_cv_sys_global_symbol_to_cdecl=
7749 fi
7750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7752 $as_echo "failed" >&6; }
7753 else
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7755 $as_echo "ok" >&6; }
7756 fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779 # Check whether --enable-libtool-lock was given.
7780 if test "${enable_libtool_lock+set}" = set; then :
7781 enableval=$enable_libtool_lock;
7782 fi
7783
7784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7785
7786 # Some flags need to be propagated to the compiler or linker for good
7787 # libtool support.
7788 case $host in
7789 ia64-*-hpux*)
7790 # Find out which ABI we are using.
7791 echo 'int i;' > conftest.$ac_ext
7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 case `/usr/bin/file conftest.$ac_objext` in
7798 *ELF-32*)
7799 HPUX_IA64_MODE="32"
7800 ;;
7801 *ELF-64*)
7802 HPUX_IA64_MODE="64"
7803 ;;
7804 esac
7805 fi
7806 rm -rf conftest*
7807 ;;
7808 *-*-irix6*)
7809 # Find out which ABI we are using.
7810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7812 (eval $ac_compile) 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; }; then
7816 if test "$lt_cv_prog_gnu_ld" = yes; then
7817 case `/usr/bin/file conftest.$ac_objext` in
7818 *32-bit*)
7819 LD="${LD-ld} -melf32bsmip"
7820 ;;
7821 *N32*)
7822 LD="${LD-ld} -melf32bmipn32"
7823 ;;
7824 *64-bit*)
7825 LD="${LD-ld} -melf64bmip"
7826 ;;
7827 esac
7828 else
7829 case `/usr/bin/file conftest.$ac_objext` in
7830 *32-bit*)
7831 LD="${LD-ld} -32"
7832 ;;
7833 *N32*)
7834 LD="${LD-ld} -n32"
7835 ;;
7836 *64-bit*)
7837 LD="${LD-ld} -64"
7838 ;;
7839 esac
7840 fi
7841 fi
7842 rm -rf conftest*
7843 ;;
7844
7845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7847 # Find out which ABI we are using.
7848 echo 'int i;' > conftest.$ac_ext
7849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7850 (eval $ac_compile) 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; }; then
7854 case `/usr/bin/file conftest.o` in
7855 *32-bit*)
7856 case $host in
7857 x86_64-*kfreebsd*-gnu)
7858 LD="${LD-ld} -m elf_i386_fbsd"
7859 ;;
7860 x86_64-*linux*)
7861 LD="${LD-ld} -m elf_i386"
7862 ;;
7863 ppc64-*linux*|powerpc64-*linux*)
7864 LD="${LD-ld} -m elf32ppclinux"
7865 ;;
7866 s390x-*linux*)
7867 LD="${LD-ld} -m elf_s390"
7868 ;;
7869 sparc64-*linux*)
7870 LD="${LD-ld} -m elf32_sparc"
7871 ;;
7872 esac
7873 ;;
7874 *64-bit*)
7875 case $host in
7876 x86_64-*kfreebsd*-gnu)
7877 LD="${LD-ld} -m elf_x86_64_fbsd"
7878 ;;
7879 x86_64-*linux*)
7880 LD="${LD-ld} -m elf_x86_64"
7881 ;;
7882 ppc*-*linux*|powerpc*-*linux*)
7883 LD="${LD-ld} -m elf64ppc"
7884 ;;
7885 s390*-*linux*|s390*-*tpf*)
7886 LD="${LD-ld} -m elf64_s390"
7887 ;;
7888 sparc*-*linux*)
7889 LD="${LD-ld} -m elf64_sparc"
7890 ;;
7891 esac
7892 ;;
7893 esac
7894 fi
7895 rm -rf conftest*
7896 ;;
7897
7898 *-*-sco3.2v5*)
7899 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7900 SAVE_CFLAGS="$CFLAGS"
7901 CFLAGS="$CFLAGS -belf"
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7903 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7904 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 ac_ext=c
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915
7916 int
7917 main ()
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"; then :
7925 lt_cv_cc_needs_belf=yes
7926 else
7927 lt_cv_cc_needs_belf=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931 ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7939 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7940 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7941 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7942 CFLAGS="$SAVE_CFLAGS"
7943 fi
7944 ;;
7945 sparc*-*solaris*)
7946 # Find out which ABI we are using.
7947 echo 'int i;' > conftest.$ac_ext
7948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7949 (eval $ac_compile) 2>&5
7950 ac_status=$?
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }; then
7953 case `/usr/bin/file conftest.o` in
7954 *64-bit*)
7955 case $lt_cv_prog_gnu_ld in
7956 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7957 *)
7958 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7959 LD="${LD-ld} -64"
7960 fi
7961 ;;
7962 esac
7963 ;;
7964 esac
7965 fi
7966 rm -rf conftest*
7967 ;;
7968 esac
7969
7970 need_locks="$enable_libtool_lock"
7971
7972
7973 case $host_os in
7974 rhapsody* | darwin*)
7975 if test -n "$ac_tool_prefix"; then
7976 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7977 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 if test -n "$DSYMUTIL"; then
7984 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7985 else
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in $PATH
7988 do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997 done
7998 done
7999 IFS=$as_save_IFS
8000
8001 fi
8002 fi
8003 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8004 if test -n "$DSYMUTIL"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8006 $as_echo "$DSYMUTIL" >&6; }
8007 else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }
8010 fi
8011
8012
8013 fi
8014 if test -z "$ac_cv_prog_DSYMUTIL"; then
8015 ac_ct_DSYMUTIL=$DSYMUTIL
8016 # Extract the first word of "dsymutil", so it can be a program name with args.
8017 set dummy dsymutil; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 if test -n "$ac_ct_DSYMUTIL"; then
8024 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037 done
8038 done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8044 if test -n "$ac_ct_DSYMUTIL"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8046 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8047 else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052 if test "x$ac_ct_DSYMUTIL" = x; then
8053 DSYMUTIL=":"
8054 else
8055 case $cross_compiling:$ac_tool_warned in
8056 yes:)
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059 ac_tool_warned=yes ;;
8060 esac
8061 DSYMUTIL=$ac_ct_DSYMUTIL
8062 fi
8063 else
8064 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8065 fi
8066
8067 if test -n "$ac_tool_prefix"; then
8068 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8069 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071 $as_echo_n "checking for $ac_word... " >&6; }
8072 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8073 $as_echo_n "(cached) " >&6
8074 else
8075 if test -n "$NMEDIT"; then
8076 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8077 else
8078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 for as_dir in $PATH
8080 do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8085 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089 done
8090 done
8091 IFS=$as_save_IFS
8092
8093 fi
8094 fi
8095 NMEDIT=$ac_cv_prog_NMEDIT
8096 if test -n "$NMEDIT"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8098 $as_echo "$NMEDIT" >&6; }
8099 else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8102 fi
8103
8104
8105 fi
8106 if test -z "$ac_cv_prog_NMEDIT"; then
8107 ac_ct_NMEDIT=$NMEDIT
8108 # Extract the first word of "nmedit", so it can be a program name with args.
8109 set dummy nmedit; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 if test -n "$ac_ct_NMEDIT"; then
8116 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129 done
8130 done
8131 IFS=$as_save_IFS
8132
8133 fi
8134 fi
8135 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8136 if test -n "$ac_ct_NMEDIT"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8138 $as_echo "$ac_ct_NMEDIT" >&6; }
8139 else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 fi
8143
8144 if test "x$ac_ct_NMEDIT" = x; then
8145 NMEDIT=":"
8146 else
8147 case $cross_compiling:$ac_tool_warned in
8148 yes:)
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8151 ac_tool_warned=yes ;;
8152 esac
8153 NMEDIT=$ac_ct_NMEDIT
8154 fi
8155 else
8156 NMEDIT="$ac_cv_prog_NMEDIT"
8157 fi
8158
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8161 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_LIPO+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8166 else
8167 if test -n "$LIPO"; then
8168 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8169 else
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 for as_dir in $PATH
8172 do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181 done
8182 done
8183 IFS=$as_save_IFS
8184
8185 fi
8186 fi
8187 LIPO=$ac_cv_prog_LIPO
8188 if test -n "$LIPO"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8190 $as_echo "$LIPO" >&6; }
8191 else
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8194 fi
8195
8196
8197 fi
8198 if test -z "$ac_cv_prog_LIPO"; then
8199 ac_ct_LIPO=$LIPO
8200 # Extract the first word of "lipo", so it can be a program name with args.
8201 set dummy lipo; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 if test -n "$ac_ct_LIPO"; then
8208 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8209 else
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in $PATH
8212 do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_prog_ac_ct_LIPO="lipo"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8220 fi
8221 done
8222 done
8223 IFS=$as_save_IFS
8224
8225 fi
8226 fi
8227 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8228 if test -n "$ac_ct_LIPO"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8230 $as_echo "$ac_ct_LIPO" >&6; }
8231 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8234 fi
8235
8236 if test "x$ac_ct_LIPO" = x; then
8237 LIPO=":"
8238 else
8239 case $cross_compiling:$ac_tool_warned in
8240 yes:)
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243 ac_tool_warned=yes ;;
8244 esac
8245 LIPO=$ac_ct_LIPO
8246 fi
8247 else
8248 LIPO="$ac_cv_prog_LIPO"
8249 fi
8250
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8253 set dummy ${ac_tool_prefix}otool; ac_word=$2
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255 $as_echo_n "checking for $ac_word... " >&6; }
8256 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 if test -n "$OTOOL"; then
8260 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8261 else
8262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263 for as_dir in $PATH
8264 do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8269 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 OTOOL=$ac_cv_prog_OTOOL
8280 if test -n "$OTOOL"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8282 $as_echo "$OTOOL" >&6; }
8283 else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 $as_echo "no" >&6; }
8286 fi
8287
8288
8289 fi
8290 if test -z "$ac_cv_prog_OTOOL"; then
8291 ac_ct_OTOOL=$OTOOL
8292 # Extract the first word of "otool", so it can be a program name with args.
8293 set dummy otool; ac_word=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8298 else
8299 if test -n "$ac_ct_OTOOL"; then
8300 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8301 else
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_ac_ct_OTOOL="otool"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313 done
8314 done
8315 IFS=$as_save_IFS
8316
8317 fi
8318 fi
8319 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8320 if test -n "$ac_ct_OTOOL"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8322 $as_echo "$ac_ct_OTOOL" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8326 fi
8327
8328 if test "x$ac_ct_OTOOL" = x; then
8329 OTOOL=":"
8330 else
8331 case $cross_compiling:$ac_tool_warned in
8332 yes:)
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335 ac_tool_warned=yes ;;
8336 esac
8337 OTOOL=$ac_ct_OTOOL
8338 fi
8339 else
8340 OTOOL="$ac_cv_prog_OTOOL"
8341 fi
8342
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 if test -n "$OTOOL64"; then
8352 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8356 do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8364 fi
8365 done
8366 done
8367 IFS=$as_save_IFS
8368
8369 fi
8370 fi
8371 OTOOL64=$ac_cv_prog_OTOOL64
8372 if test -n "$OTOOL64"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8374 $as_echo "$OTOOL64" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8378 fi
8379
8380
8381 fi
8382 if test -z "$ac_cv_prog_OTOOL64"; then
8383 ac_ct_OTOOL64=$OTOOL64
8384 # Extract the first word of "otool64", so it can be a program name with args.
8385 set dummy otool64; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 if test -n "$ac_ct_OTOOL64"; then
8392 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8396 do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_prog_ac_ct_OTOOL64="otool64"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405 done
8406 done
8407 IFS=$as_save_IFS
8408
8409 fi
8410 fi
8411 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8412 if test -n "$ac_ct_OTOOL64"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8414 $as_echo "$ac_ct_OTOOL64" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 fi
8419
8420 if test "x$ac_ct_OTOOL64" = x; then
8421 OTOOL64=":"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429 OTOOL64=$ac_ct_OTOOL64
8430 fi
8431 else
8432 OTOOL64="$ac_cv_prog_OTOOL64"
8433 fi
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8462 $as_echo_n "checking for -single_module linker flag... " >&6; }
8463 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 lt_cv_apple_cc_single_mod=no
8467 if test -z "${LT_MULTI_MODULE}"; then
8468 # By default we will add the -single_module flag. You can override
8469 # by either setting the environment variable LT_MULTI_MODULE
8470 # non-empty at configure time, or by adding -multi_module to the
8471 # link flags.
8472 rm -rf libconftest.dylib*
8473 echo "int foo(void){return 1;}" > conftest.c
8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8475 -dynamiclib -Wl,-single_module conftest.c" >&5
8476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8478 _lt_result=$?
8479 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8480 lt_cv_apple_cc_single_mod=yes
8481 else
8482 cat conftest.err >&5
8483 fi
8484 rm -rf libconftest.dylib*
8485 rm -f conftest.*
8486 fi
8487 fi
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8489 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8491 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8492 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 lt_cv_ld_exported_symbols_list=no
8496 save_LDFLAGS=$LDFLAGS
8497 echo "_main" > conftest.sym
8498 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501
8502 int
8503 main ()
8504 {
8505
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 if ac_fn_c_try_link "$LINENO"; then :
8511 lt_cv_ld_exported_symbols_list=yes
8512 else
8513 lt_cv_ld_exported_symbols_list=no
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 LDFLAGS="$save_LDFLAGS"
8518
8519 fi
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8521 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8523 $as_echo_n "checking for -force_load linker flag... " >&6; }
8524 if test "${lt_cv_ld_force_load+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 lt_cv_ld_force_load=no
8528 cat > conftest.c << _LT_EOF
8529 int forced_loaded() { return 2;}
8530 _LT_EOF
8531 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8532 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8533 echo "$AR cru libconftest.a conftest.o" >&5
8534 $AR cru libconftest.a conftest.o 2>&5
8535 echo "$RANLIB libconftest.a" >&5
8536 $RANLIB libconftest.a 2>&5
8537 cat > conftest.c << _LT_EOF
8538 int main() { return 0;}
8539 _LT_EOF
8540 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8541 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8542 _lt_result=$?
8543 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8544 lt_cv_ld_force_load=yes
8545 else
8546 cat conftest.err >&5
8547 fi
8548 rm -f conftest.err libconftest.a conftest conftest.c
8549 rm -rf conftest.dSYM
8550
8551 fi
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8553 $as_echo "$lt_cv_ld_force_load" >&6; }
8554 case $host_os in
8555 rhapsody* | darwin1.[012])
8556 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8557 darwin1.*)
8558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8559 darwin*) # darwin 5.x on
8560 # if running on 10.5 or later, the deployment target defaults
8561 # to the OS version, if on x86, and 10.4, the deployment
8562 # target defaults to 10.4. Don't you love it?
8563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8564 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8566 10.[012]*)
8567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8568 10.*)
8569 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8570 esac
8571 ;;
8572 esac
8573 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8574 _lt_dar_single_mod='$single_module'
8575 fi
8576 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8577 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8578 else
8579 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8580 fi
8581 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8582 _lt_dsymutil='~$DSYMUTIL $lib || :'
8583 else
8584 _lt_dsymutil=
8585 fi
8586 ;;
8587 esac
8588
8589 for ac_header in dlfcn.h
8590 do :
8591 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8592 "
8593 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8594 cat >>confdefs.h <<_ACEOF
8595 #define HAVE_DLFCN_H 1
8596 _ACEOF
8597
8598 fi
8599
8600 done
8601
8602
8603
8604
8605
8606 # Set options
8607
8608
8609
8610 enable_dlopen=no
8611
8612
8613 enable_win32_dll=no
8614
8615
8616 # Check whether --enable-shared was given.
8617 if test "${enable_shared+set}" = set; then :
8618 enableval=$enable_shared; p=${PACKAGE-default}
8619 case $enableval in
8620 yes) enable_shared=yes ;;
8621 no) enable_shared=no ;;
8622 *)
8623 enable_shared=no
8624 # Look at the argument we got. We use all the common list separators.
8625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8626 for pkg in $enableval; do
8627 IFS="$lt_save_ifs"
8628 if test "X$pkg" = "X$p"; then
8629 enable_shared=yes
8630 fi
8631 done
8632 IFS="$lt_save_ifs"
8633 ;;
8634 esac
8635 else
8636 enable_shared=yes
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 # Check whether --enable-static was given.
8648 if test "${enable_static+set}" = set; then :
8649 enableval=$enable_static; p=${PACKAGE-default}
8650 case $enableval in
8651 yes) enable_static=yes ;;
8652 no) enable_static=no ;;
8653 *)
8654 enable_static=no
8655 # Look at the argument we got. We use all the common list separators.
8656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8657 for pkg in $enableval; do
8658 IFS="$lt_save_ifs"
8659 if test "X$pkg" = "X$p"; then
8660 enable_static=yes
8661 fi
8662 done
8663 IFS="$lt_save_ifs"
8664 ;;
8665 esac
8666 else
8667 enable_static=yes
8668 fi
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679 # Check whether --with-pic was given.
8680 if test "${with_pic+set}" = set; then :
8681 withval=$with_pic; pic_mode="$withval"
8682 else
8683 pic_mode=default
8684 fi
8685
8686
8687 test -z "$pic_mode" && pic_mode=default
8688
8689
8690
8691
8692
8693
8694
8695 # Check whether --enable-fast-install was given.
8696 if test "${enable_fast_install+set}" = set; then :
8697 enableval=$enable_fast_install; p=${PACKAGE-default}
8698 case $enableval in
8699 yes) enable_fast_install=yes ;;
8700 no) enable_fast_install=no ;;
8701 *)
8702 enable_fast_install=no
8703 # Look at the argument we got. We use all the common list separators.
8704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8705 for pkg in $enableval; do
8706 IFS="$lt_save_ifs"
8707 if test "X$pkg" = "X$p"; then
8708 enable_fast_install=yes
8709 fi
8710 done
8711 IFS="$lt_save_ifs"
8712 ;;
8713 esac
8714 else
8715 enable_fast_install=yes
8716 fi
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728 # This can be used to rebuild libtool when needed
8729 LIBTOOL_DEPS="$ltmain"
8730
8731 # Always use our own libtool.
8732 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759 test -z "$LN_S" && LN_S="ln -s"
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774 if test -n "${ZSH_VERSION+set}" ; then
8775 setopt NO_GLOB_SUBST
8776 fi
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8779 $as_echo_n "checking for objdir... " >&6; }
8780 if test "${lt_cv_objdir+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 rm -f .libs 2>/dev/null
8784 mkdir .libs 2>/dev/null
8785 if test -d .libs; then
8786 lt_cv_objdir=.libs
8787 else
8788 # MS-DOS does not allow filenames that begin with a dot.
8789 lt_cv_objdir=_libs
8790 fi
8791 rmdir .libs 2>/dev/null
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8794 $as_echo "$lt_cv_objdir" >&6; }
8795 objdir=$lt_cv_objdir
8796
8797
8798
8799
8800
8801 cat >>confdefs.h <<_ACEOF
8802 #define LT_OBJDIR "$lt_cv_objdir/"
8803 _ACEOF
8804
8805
8806
8807
8808 case $host_os in
8809 aix3*)
8810 # AIX sometimes has problems with the GCC collect2 program. For some
8811 # reason, if we set the COLLECT_NAMES environment variable, the problems
8812 # vanish in a puff of smoke.
8813 if test "X${COLLECT_NAMES+set}" != Xset; then
8814 COLLECT_NAMES=
8815 export COLLECT_NAMES
8816 fi
8817 ;;
8818 esac
8819
8820 # Global variables:
8821 ofile=libtool
8822 can_build_shared=yes
8823
8824 # All known linkers require a `.a' archive for static linking (except MSVC,
8825 # which needs '.lib').
8826 libext=a
8827
8828 with_gnu_ld="$lt_cv_prog_gnu_ld"
8829
8830 old_CC="$CC"
8831 old_CFLAGS="$CFLAGS"
8832
8833 # Set sane defaults for various variables
8834 test -z "$CC" && CC=cc
8835 test -z "$LTCC" && LTCC=$CC
8836 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8837 test -z "$LD" && LD=ld
8838 test -z "$ac_objext" && ac_objext=o
8839
8840 for cc_temp in $compiler""; do
8841 case $cc_temp in
8842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8844 \-*) ;;
8845 *) break;;
8846 esac
8847 done
8848 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8849
8850
8851 # Only perform the check for file, if the check method requires it
8852 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8853 case $deplibs_check_method in
8854 file_magic*)
8855 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8857 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8858 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 case $MAGIC_CMD in
8862 [\\/*] | ?:[\\/]*)
8863 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8864 ;;
8865 *)
8866 lt_save_MAGIC_CMD="$MAGIC_CMD"
8867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8868 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8869 for ac_dir in $ac_dummy; do
8870 IFS="$lt_save_ifs"
8871 test -z "$ac_dir" && ac_dir=.
8872 if test -f $ac_dir/${ac_tool_prefix}file; then
8873 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8874 if test -n "$file_magic_test_file"; then
8875 case $deplibs_check_method in
8876 "file_magic "*)
8877 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8880 $EGREP "$file_magic_regex" > /dev/null; then
8881 :
8882 else
8883 cat <<_LT_EOF 1>&2
8884
8885 *** Warning: the command libtool uses to detect shared libraries,
8886 *** $file_magic_cmd, produces output that libtool cannot recognize.
8887 *** The result is that libtool may fail to recognize shared libraries
8888 *** as such. This will affect the creation of libtool libraries that
8889 *** depend on shared libraries, but programs linked with such libtool
8890 *** libraries will work regardless of this problem. Nevertheless, you
8891 *** may want to report the problem to your system manager and/or to
8892 *** bug-libtool@gnu.org
8893
8894 _LT_EOF
8895 fi ;;
8896 esac
8897 fi
8898 break
8899 fi
8900 done
8901 IFS="$lt_save_ifs"
8902 MAGIC_CMD="$lt_save_MAGIC_CMD"
8903 ;;
8904 esac
8905 fi
8906
8907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8908 if test -n "$MAGIC_CMD"; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8910 $as_echo "$MAGIC_CMD" >&6; }
8911 else
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8914 fi
8915
8916
8917
8918
8919
8920 if test -z "$lt_cv_path_MAGIC_CMD"; then
8921 if test -n "$ac_tool_prefix"; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8923 $as_echo_n "checking for file... " >&6; }
8924 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
8926 else
8927 case $MAGIC_CMD in
8928 [\\/*] | ?:[\\/]*)
8929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8930 ;;
8931 *)
8932 lt_save_MAGIC_CMD="$MAGIC_CMD"
8933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8935 for ac_dir in $ac_dummy; do
8936 IFS="$lt_save_ifs"
8937 test -z "$ac_dir" && ac_dir=.
8938 if test -f $ac_dir/file; then
8939 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8940 if test -n "$file_magic_test_file"; then
8941 case $deplibs_check_method in
8942 "file_magic "*)
8943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8946 $EGREP "$file_magic_regex" > /dev/null; then
8947 :
8948 else
8949 cat <<_LT_EOF 1>&2
8950
8951 *** Warning: the command libtool uses to detect shared libraries,
8952 *** $file_magic_cmd, produces output that libtool cannot recognize.
8953 *** The result is that libtool may fail to recognize shared libraries
8954 *** as such. This will affect the creation of libtool libraries that
8955 *** depend on shared libraries, but programs linked with such libtool
8956 *** libraries will work regardless of this problem. Nevertheless, you
8957 *** may want to report the problem to your system manager and/or to
8958 *** bug-libtool@gnu.org
8959
8960 _LT_EOF
8961 fi ;;
8962 esac
8963 fi
8964 break
8965 fi
8966 done
8967 IFS="$lt_save_ifs"
8968 MAGIC_CMD="$lt_save_MAGIC_CMD"
8969 ;;
8970 esac
8971 fi
8972
8973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8974 if test -n "$MAGIC_CMD"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8976 $as_echo "$MAGIC_CMD" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8980 fi
8981
8982
8983 else
8984 MAGIC_CMD=:
8985 fi
8986 fi
8987
8988 fi
8989 ;;
8990 esac
8991
8992 # Use C for the default configuration in the libtool script
8993
8994 lt_save_CC="$CC"
8995 ac_ext=c
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9000
9001
9002 # Source file extension for C test sources.
9003 ac_ext=c
9004
9005 # Object file extension for compiled C test sources.
9006 objext=o
9007 objext=$objext
9008
9009 # Code to be used in simple compile tests
9010 lt_simple_compile_test_code="int some_variable = 0;"
9011
9012 # Code to be used in simple link tests
9013 lt_simple_link_test_code='int main(){return(0);}'
9014
9015
9016
9017
9018
9019
9020
9021 # If no C compiler was specified, use CC.
9022 LTCC=${LTCC-"$CC"}
9023
9024 # If no C compiler flags were specified, use CFLAGS.
9025 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9026
9027 # Allow CC to be a program name with arguments.
9028 compiler=$CC
9029
9030 # Save the default compiler, since it gets overwritten when the other
9031 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9032 compiler_DEFAULT=$CC
9033
9034 # save warnings/boilerplate of simple test code
9035 ac_outfile=conftest.$ac_objext
9036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9038 _lt_compiler_boilerplate=`cat conftest.err`
9039 $RM conftest*
9040
9041 ac_outfile=conftest.$ac_objext
9042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9044 _lt_linker_boilerplate=`cat conftest.err`
9045 $RM -r conftest*
9046
9047
9048 if test -n "$compiler"; then
9049
9050 lt_prog_compiler_no_builtin_flag=
9051
9052 if test "$GCC" = yes; then
9053 case $cc_basename in
9054 nvcc*)
9055 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9056 *)
9057 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9058 esac
9059
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9061 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9062 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 lt_cv_prog_compiler_rtti_exceptions=no
9066 ac_outfile=conftest.$ac_objext
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068 lt_compiler_flag="-fno-rtti -fno-exceptions"
9069 # Insert the option either (1) after the last *FLAGS variable, or
9070 # (2) before a word containing "conftest.", or (3) at the end.
9071 # Note that $ac_compile itself does not contain backslashes and begins
9072 # with a dollar sign (not a hyphen), so the echo should work correctly.
9073 # The option is referenced via a variable to avoid confusing sed.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079 (eval "$lt_compile" 2>conftest.err)
9080 ac_status=$?
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 if (exit $ac_status) && test -s "$ac_outfile"; then
9084 # The compiler can only warn and ignore the option if not recognized
9085 # So say no if there are warnings other than the usual output.
9086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler_rtti_exceptions=yes
9090 fi
9091 fi
9092 $RM conftest*
9093
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9096 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9097
9098 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9099 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9100 else
9101 :
9102 fi
9103
9104 fi
9105
9106
9107
9108
9109
9110
9111 lt_prog_compiler_wl=
9112 lt_prog_compiler_pic=
9113 lt_prog_compiler_static=
9114
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9116 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9117
9118 if test "$GCC" = yes; then
9119 lt_prog_compiler_wl='-Wl,'
9120 lt_prog_compiler_static='-static'
9121
9122 case $host_os in
9123 aix*)
9124 # All AIX code is PIC.
9125 if test "$host_cpu" = ia64; then
9126 # AIX 5 now supports IA64 processor
9127 lt_prog_compiler_static='-Bstatic'
9128 fi
9129 ;;
9130
9131 amigaos*)
9132 case $host_cpu in
9133 powerpc)
9134 # see comment about AmigaOS4 .so support
9135 lt_prog_compiler_pic='-fPIC'
9136 ;;
9137 m68k)
9138 # FIXME: we need at least 68020 code to build shared libraries, but
9139 # adding the `-m68020' flag to GCC prevents building anything better,
9140 # like `-m68040'.
9141 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9142 ;;
9143 esac
9144 ;;
9145
9146 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9147 # PIC is the default for these OSes.
9148 ;;
9149
9150 mingw* | cygwin* | pw32* | os2* | cegcc*)
9151 # This hack is so that the source file can tell whether it is being
9152 # built for inclusion in a dll (and should export symbols for example).
9153 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9154 # (--disable-auto-import) libraries
9155 lt_prog_compiler_pic='-DDLL_EXPORT'
9156 ;;
9157
9158 darwin* | rhapsody*)
9159 # PIC is the default on this platform
9160 # Common symbols not allowed in MH_DYLIB files
9161 lt_prog_compiler_pic='-fno-common'
9162 ;;
9163
9164 haiku*)
9165 # PIC is the default for Haiku.
9166 # The "-static" flag exists, but is broken.
9167 lt_prog_compiler_static=
9168 ;;
9169
9170 hpux*)
9171 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9172 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9173 # sets the default TLS model and affects inlining.
9174 case $host_cpu in
9175 hppa*64*)
9176 # +Z the default
9177 ;;
9178 *)
9179 lt_prog_compiler_pic='-fPIC'
9180 ;;
9181 esac
9182 ;;
9183
9184 interix[3-9]*)
9185 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9186 # Instead, we relocate shared libraries at runtime.
9187 ;;
9188
9189 msdosdjgpp*)
9190 # Just because we use GCC doesn't mean we suddenly get shared libraries
9191 # on systems that don't support them.
9192 lt_prog_compiler_can_build_shared=no
9193 enable_shared=no
9194 ;;
9195
9196 *nto* | *qnx*)
9197 # QNX uses GNU C++, but need to define -shared option too, otherwise
9198 # it will coredump.
9199 lt_prog_compiler_pic='-fPIC -shared'
9200 ;;
9201
9202 sysv4*MP*)
9203 if test -d /usr/nec; then
9204 lt_prog_compiler_pic=-Kconform_pic
9205 fi
9206 ;;
9207
9208 *)
9209 lt_prog_compiler_pic='-fPIC'
9210 ;;
9211 esac
9212
9213 case $cc_basename in
9214 nvcc*) # Cuda Compiler Driver 2.2
9215 lt_prog_compiler_wl='-Xlinker '
9216 lt_prog_compiler_pic='-Xcompiler -fPIC'
9217 ;;
9218 esac
9219 else
9220 # PORTME Check for flag to pass linker flags through the system compiler.
9221 case $host_os in
9222 aix*)
9223 lt_prog_compiler_wl='-Wl,'
9224 if test "$host_cpu" = ia64; then
9225 # AIX 5 now supports IA64 processor
9226 lt_prog_compiler_static='-Bstatic'
9227 else
9228 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9229 fi
9230 ;;
9231
9232 mingw* | cygwin* | pw32* | os2* | cegcc*)
9233 # This hack is so that the source file can tell whether it is being
9234 # built for inclusion in a dll (and should export symbols for example).
9235 lt_prog_compiler_pic='-DDLL_EXPORT'
9236 ;;
9237
9238 hpux9* | hpux10* | hpux11*)
9239 lt_prog_compiler_wl='-Wl,'
9240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9241 # not for PA HP-UX.
9242 case $host_cpu in
9243 hppa*64*|ia64*)
9244 # +Z the default
9245 ;;
9246 *)
9247 lt_prog_compiler_pic='+Z'
9248 ;;
9249 esac
9250 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9251 lt_prog_compiler_static='${wl}-a ${wl}archive'
9252 ;;
9253
9254 irix5* | irix6* | nonstopux*)
9255 lt_prog_compiler_wl='-Wl,'
9256 # PIC (with -KPIC) is the default.
9257 lt_prog_compiler_static='-non_shared'
9258 ;;
9259
9260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9261 case $cc_basename in
9262 # old Intel for x86_64 which still supported -KPIC.
9263 ecc*)
9264 lt_prog_compiler_wl='-Wl,'
9265 lt_prog_compiler_pic='-KPIC'
9266 lt_prog_compiler_static='-static'
9267 ;;
9268 # icc used to be incompatible with GCC.
9269 # ICC 10 doesn't accept -KPIC any more.
9270 icc* | ifort*)
9271 lt_prog_compiler_wl='-Wl,'
9272 lt_prog_compiler_pic='-fPIC'
9273 lt_prog_compiler_static='-static'
9274 ;;
9275 # Lahey Fortran 8.1.
9276 lf95*)
9277 lt_prog_compiler_wl='-Wl,'
9278 lt_prog_compiler_pic='--shared'
9279 lt_prog_compiler_static='--static'
9280 ;;
9281 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9282 # Portland Group compilers (*not* the Pentium gcc compiler,
9283 # which looks to be a dead project)
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-fpic'
9286 lt_prog_compiler_static='-Bstatic'
9287 ;;
9288 ccc*)
9289 lt_prog_compiler_wl='-Wl,'
9290 # All Alpha code is PIC.
9291 lt_prog_compiler_static='-non_shared'
9292 ;;
9293 xl* | bgxl* | bgf* | mpixl*)
9294 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9295 lt_prog_compiler_wl='-Wl,'
9296 lt_prog_compiler_pic='-qpic'
9297 lt_prog_compiler_static='-qstaticlink'
9298 ;;
9299 *)
9300 case `$CC -V 2>&1 | sed 5q` in
9301 *Sun\ F* | *Sun*Fortran*)
9302 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9303 lt_prog_compiler_pic='-KPIC'
9304 lt_prog_compiler_static='-Bstatic'
9305 lt_prog_compiler_wl=''
9306 ;;
9307 *Sun\ C*)
9308 # Sun C 5.9
9309 lt_prog_compiler_pic='-KPIC'
9310 lt_prog_compiler_static='-Bstatic'
9311 lt_prog_compiler_wl='-Wl,'
9312 ;;
9313 esac
9314 ;;
9315 esac
9316 ;;
9317
9318 newsos6)
9319 lt_prog_compiler_pic='-KPIC'
9320 lt_prog_compiler_static='-Bstatic'
9321 ;;
9322
9323 *nto* | *qnx*)
9324 # QNX uses GNU C++, but need to define -shared option too, otherwise
9325 # it will coredump.
9326 lt_prog_compiler_pic='-fPIC -shared'
9327 ;;
9328
9329 osf3* | osf4* | osf5*)
9330 lt_prog_compiler_wl='-Wl,'
9331 # All OSF/1 code is PIC.
9332 lt_prog_compiler_static='-non_shared'
9333 ;;
9334
9335 rdos*)
9336 lt_prog_compiler_static='-non_shared'
9337 ;;
9338
9339 solaris*)
9340 lt_prog_compiler_pic='-KPIC'
9341 lt_prog_compiler_static='-Bstatic'
9342 case $cc_basename in
9343 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9344 lt_prog_compiler_wl='-Qoption ld ';;
9345 *)
9346 lt_prog_compiler_wl='-Wl,';;
9347 esac
9348 ;;
9349
9350 sunos4*)
9351 lt_prog_compiler_wl='-Qoption ld '
9352 lt_prog_compiler_pic='-PIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 ;;
9355
9356 sysv4 | sysv4.2uw2* | sysv4.3*)
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='-KPIC'
9359 lt_prog_compiler_static='-Bstatic'
9360 ;;
9361
9362 sysv4*MP*)
9363 if test -d /usr/nec ;then
9364 lt_prog_compiler_pic='-Kconform_pic'
9365 lt_prog_compiler_static='-Bstatic'
9366 fi
9367 ;;
9368
9369 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9370 lt_prog_compiler_wl='-Wl,'
9371 lt_prog_compiler_pic='-KPIC'
9372 lt_prog_compiler_static='-Bstatic'
9373 ;;
9374
9375 unicos*)
9376 lt_prog_compiler_wl='-Wl,'
9377 lt_prog_compiler_can_build_shared=no
9378 ;;
9379
9380 uts4*)
9381 lt_prog_compiler_pic='-pic'
9382 lt_prog_compiler_static='-Bstatic'
9383 ;;
9384
9385 *)
9386 lt_prog_compiler_can_build_shared=no
9387 ;;
9388 esac
9389 fi
9390
9391 case $host_os in
9392 # For platforms which do not support PIC, -DPIC is meaningless:
9393 *djgpp*)
9394 lt_prog_compiler_pic=
9395 ;;
9396 *)
9397 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9398 ;;
9399 esac
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9401 $as_echo "$lt_prog_compiler_pic" >&6; }
9402
9403
9404
9405
9406
9407
9408 #
9409 # Check to make sure the PIC flag actually works.
9410 #
9411 if test -n "$lt_prog_compiler_pic"; then
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9413 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9414 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 lt_cv_prog_compiler_pic_works=no
9418 ac_outfile=conftest.$ac_objext
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9421 # Insert the option either (1) after the last *FLAGS variable, or
9422 # (2) before a word containing "conftest.", or (3) at the end.
9423 # Note that $ac_compile itself does not contain backslashes and begins
9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
9425 # The option is referenced via a variable to avoid confusing sed.
9426 lt_compile=`echo "$ac_compile" | $SED \
9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429 -e 's:$: $lt_compiler_flag:'`
9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9431 (eval "$lt_compile" 2>conftest.err)
9432 ac_status=$?
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 if (exit $ac_status) && test -s "$ac_outfile"; then
9436 # The compiler can only warn and ignore the option if not recognized
9437 # So say no if there are warnings other than the usual output.
9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9441 lt_cv_prog_compiler_pic_works=yes
9442 fi
9443 fi
9444 $RM conftest*
9445
9446 fi
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9448 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9449
9450 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9451 case $lt_prog_compiler_pic in
9452 "" | " "*) ;;
9453 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9454 esac
9455 else
9456 lt_prog_compiler_pic=
9457 lt_prog_compiler_can_build_shared=no
9458 fi
9459
9460 fi
9461
9462
9463
9464
9465
9466
9467 #
9468 # Check to make sure the static flag actually works.
9469 #
9470 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9472 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9473 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 lt_cv_prog_compiler_static_works=no
9477 save_LDFLAGS="$LDFLAGS"
9478 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9481 # The linker can only warn and ignore the option if not recognized
9482 # So say no if there are warnings
9483 if test -s conftest.err; then
9484 # Append any errors to the config.log.
9485 cat conftest.err 1>&5
9486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488 if diff conftest.exp conftest.er2 >/dev/null; then
9489 lt_cv_prog_compiler_static_works=yes
9490 fi
9491 else
9492 lt_cv_prog_compiler_static_works=yes
9493 fi
9494 fi
9495 $RM -r conftest*
9496 LDFLAGS="$save_LDFLAGS"
9497
9498 fi
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9500 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9501
9502 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9503 :
9504 else
9505 lt_prog_compiler_static=
9506 fi
9507
9508
9509
9510
9511
9512
9513
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9515 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9516 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 lt_cv_prog_compiler_c_o=no
9520 $RM -r conftest 2>/dev/null
9521 mkdir conftest
9522 cd conftest
9523 mkdir out
9524 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9525
9526 lt_compiler_flag="-o out/conftest2.$ac_objext"
9527 # Insert the option either (1) after the last *FLAGS variable, or
9528 # (2) before a word containing "conftest.", or (3) at the end.
9529 # Note that $ac_compile itself does not contain backslashes and begins
9530 # with a dollar sign (not a hyphen), so the echo should work correctly.
9531 lt_compile=`echo "$ac_compile" | $SED \
9532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9534 -e 's:$: $lt_compiler_flag:'`
9535 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9536 (eval "$lt_compile" 2>out/conftest.err)
9537 ac_status=$?
9538 cat out/conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9541 then
9542 # The compiler can only warn and ignore the option if not recognized
9543 # So say no if there are warnings
9544 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9547 lt_cv_prog_compiler_c_o=yes
9548 fi
9549 fi
9550 chmod u+w . 2>&5
9551 $RM conftest*
9552 # SGI C++ compiler will create directory out/ii_files/ for
9553 # template instantiation
9554 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9555 $RM out/* && rmdir out
9556 cd ..
9557 $RM -r conftest
9558 $RM conftest*
9559
9560 fi
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9562 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9563
9564
9565
9566
9567
9568
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9570 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9571 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9572 $as_echo_n "(cached) " >&6
9573 else
9574 lt_cv_prog_compiler_c_o=no
9575 $RM -r conftest 2>/dev/null
9576 mkdir conftest
9577 cd conftest
9578 mkdir out
9579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9580
9581 lt_compiler_flag="-o out/conftest2.$ac_objext"
9582 # Insert the option either (1) after the last *FLAGS variable, or
9583 # (2) before a word containing "conftest.", or (3) at the end.
9584 # Note that $ac_compile itself does not contain backslashes and begins
9585 # with a dollar sign (not a hyphen), so the echo should work correctly.
9586 lt_compile=`echo "$ac_compile" | $SED \
9587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9589 -e 's:$: $lt_compiler_flag:'`
9590 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9591 (eval "$lt_compile" 2>out/conftest.err)
9592 ac_status=$?
9593 cat out/conftest.err >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9596 then
9597 # The compiler can only warn and ignore the option if not recognized
9598 # So say no if there are warnings
9599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9602 lt_cv_prog_compiler_c_o=yes
9603 fi
9604 fi
9605 chmod u+w . 2>&5
9606 $RM conftest*
9607 # SGI C++ compiler will create directory out/ii_files/ for
9608 # template instantiation
9609 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9610 $RM out/* && rmdir out
9611 cd ..
9612 $RM -r conftest
9613 $RM conftest*
9614
9615 fi
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9617 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9618
9619
9620
9621
9622 hard_links="nottested"
9623 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9624 # do not overwrite the value of need_locks provided by the user
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9626 $as_echo_n "checking if we can lock with hard links... " >&6; }
9627 hard_links=yes
9628 $RM conftest*
9629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9630 touch conftest.a
9631 ln conftest.a conftest.b 2>&5 || hard_links=no
9632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9634 $as_echo "$hard_links" >&6; }
9635 if test "$hard_links" = no; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9637 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9638 need_locks=warn
9639 fi
9640 else
9641 need_locks=no
9642 fi
9643
9644
9645
9646
9647
9648
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9650 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9651
9652 runpath_var=
9653 allow_undefined_flag=
9654 always_export_symbols=no
9655 archive_cmds=
9656 archive_expsym_cmds=
9657 compiler_needs_object=no
9658 enable_shared_with_static_runtimes=no
9659 export_dynamic_flag_spec=
9660 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9661 hardcode_automatic=no
9662 hardcode_direct=no
9663 hardcode_direct_absolute=no
9664 hardcode_libdir_flag_spec=
9665 hardcode_libdir_flag_spec_ld=
9666 hardcode_libdir_separator=
9667 hardcode_minus_L=no
9668 hardcode_shlibpath_var=unsupported
9669 inherit_rpath=no
9670 link_all_deplibs=unknown
9671 module_cmds=
9672 module_expsym_cmds=
9673 old_archive_from_new_cmds=
9674 old_archive_from_expsyms_cmds=
9675 thread_safe_flag_spec=
9676 whole_archive_flag_spec=
9677 # include_expsyms should be a list of space-separated symbols to be *always*
9678 # included in the symbol list
9679 include_expsyms=
9680 # exclude_expsyms can be an extended regexp of symbols to exclude
9681 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9682 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9683 # as well as any symbol that contains `d'.
9684 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9685 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9686 # platforms (ab)use it in PIC code, but their linkers get confused if
9687 # the symbol is explicitly referenced. Since portable code cannot
9688 # rely on this symbol name, it's probably fine to never include it in
9689 # preloaded symbol tables.
9690 # Exclude shared library initialization/finalization symbols.
9691 extract_expsyms_cmds=
9692
9693 case $host_os in
9694 cygwin* | mingw* | pw32* | cegcc*)
9695 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9696 # When not using gcc, we currently assume that we are using
9697 # Microsoft Visual C++.
9698 if test "$GCC" != yes; then
9699 with_gnu_ld=no
9700 fi
9701 ;;
9702 interix*)
9703 # we just hope/assume this is gcc and not c89 (= MSVC++)
9704 with_gnu_ld=yes
9705 ;;
9706 openbsd*)
9707 with_gnu_ld=no
9708 ;;
9709 esac
9710
9711 ld_shlibs=yes
9712
9713 # On some targets, GNU ld is compatible enough with the native linker
9714 # that we're better off using the native interface for both.
9715 lt_use_gnu_ld_interface=no
9716 if test "$with_gnu_ld" = yes; then
9717 case $host_os in
9718 aix*)
9719 # The AIX port of GNU ld has always aspired to compatibility
9720 # with the native linker. However, as the warning in the GNU ld
9721 # block says, versions before 2.19.5* couldn't really create working
9722 # shared libraries, regardless of the interface used.
9723 case `$LD -v 2>&1` in
9724 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9725 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9726 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9727 *)
9728 lt_use_gnu_ld_interface=yes
9729 ;;
9730 esac
9731 ;;
9732 *)
9733 lt_use_gnu_ld_interface=yes
9734 ;;
9735 esac
9736 fi
9737
9738 if test "$lt_use_gnu_ld_interface" = yes; then
9739 # If archive_cmds runs LD, not CC, wlarc should be empty
9740 wlarc='${wl}'
9741
9742 # Set some defaults for GNU ld with shared library support. These
9743 # are reset later if shared libraries are not supported. Putting them
9744 # here allows them to be overridden if necessary.
9745 runpath_var=LD_RUN_PATH
9746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9747 export_dynamic_flag_spec='${wl}--export-dynamic'
9748 # ancient GNU ld didn't support --whole-archive et. al.
9749 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9750 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9751 else
9752 whole_archive_flag_spec=
9753 fi
9754 supports_anon_versioning=no
9755 case `$LD -v 2>&1` in
9756 *GNU\ gold*) supports_anon_versioning=yes ;;
9757 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9760 *\ 2.11.*) ;; # other 2.11 versions
9761 *) supports_anon_versioning=yes ;;
9762 esac
9763
9764 # See if GNU ld supports shared libraries.
9765 case $host_os in
9766 aix[3-9]*)
9767 # On AIX/PPC, the GNU linker is very broken
9768 if test "$host_cpu" != ia64; then
9769 ld_shlibs=no
9770 cat <<_LT_EOF 1>&2
9771
9772 *** Warning: the GNU linker, at least up to release 2.19, is reported
9773 *** to be unable to reliably create shared libraries on AIX.
9774 *** Therefore, libtool is disabling shared libraries support. If you
9775 *** really care for shared libraries, you may want to install binutils
9776 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9777 *** You will then need to restart the configuration process.
9778
9779 _LT_EOF
9780 fi
9781 ;;
9782
9783 amigaos*)
9784 case $host_cpu in
9785 powerpc)
9786 # see comment about AmigaOS4 .so support
9787 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9788 archive_expsym_cmds=''
9789 ;;
9790 m68k)
9791 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)'
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_minus_L=yes
9794 ;;
9795 esac
9796 ;;
9797
9798 beos*)
9799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 allow_undefined_flag=unsupported
9801 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9802 # support --undefined. This deserves some investigation. FIXME
9803 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9804 else
9805 ld_shlibs=no
9806 fi
9807 ;;
9808
9809 cygwin* | mingw* | pw32* | cegcc*)
9810 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9811 # as there is no search path for DLLs.
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 export_dynamic_flag_spec='${wl}--export-all-symbols'
9814 allow_undefined_flag=unsupported
9815 always_export_symbols=no
9816 enable_shared_with_static_runtimes=yes
9817 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9818
9819 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9821 # If the export-symbols file already is a .def file (1st line
9822 # is EXPORTS), use it as is; otherwise, prepend...
9823 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9824 cp $export_symbols $output_objdir/$soname.def;
9825 else
9826 echo EXPORTS > $output_objdir/$soname.def;
9827 cat $export_symbols >> $output_objdir/$soname.def;
9828 fi~
9829 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9830 else
9831 ld_shlibs=no
9832 fi
9833 ;;
9834
9835 haiku*)
9836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9837 link_all_deplibs=yes
9838 ;;
9839
9840 interix[3-9]*)
9841 hardcode_direct=no
9842 hardcode_shlibpath_var=no
9843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9844 export_dynamic_flag_spec='${wl}-E'
9845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9846 # Instead, shared libraries are loaded at an image base (0x10000000 by
9847 # default) and relocated if they conflict, which is a slow very memory
9848 # consuming and fragmenting process. To avoid this, we pick a random,
9849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9851 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9852 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'
9853 ;;
9854
9855 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9856 tmp_diet=no
9857 if test "$host_os" = linux-dietlibc; then
9858 case $cc_basename in
9859 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9860 esac
9861 fi
9862 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9863 && test "$tmp_diet" = no
9864 then
9865 tmp_addflag=
9866 tmp_sharedflag='-shared'
9867 case $cc_basename,$host_cpu in
9868 pgcc*) # Portland Group C compiler
9869 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'
9870 tmp_addflag=' $pic_flag'
9871 ;;
9872 pgf77* | pgf90* | pgf95* | pgfortran*)
9873 # Portland Group f77 and f90 compilers
9874 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'
9875 tmp_addflag=' $pic_flag -Mnomain' ;;
9876 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9877 tmp_addflag=' -i_dynamic' ;;
9878 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9879 tmp_addflag=' -i_dynamic -nofor_main' ;;
9880 ifc* | ifort*) # Intel Fortran compiler
9881 tmp_addflag=' -nofor_main' ;;
9882 lf95*) # Lahey Fortran 8.1
9883 whole_archive_flag_spec=
9884 tmp_sharedflag='--shared' ;;
9885 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9886 tmp_sharedflag='-qmkshrobj'
9887 tmp_addflag= ;;
9888 nvcc*) # Cuda Compiler Driver 2.2
9889 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'
9890 compiler_needs_object=yes
9891 ;;
9892 esac
9893 case `$CC -V 2>&1 | sed 5q` in
9894 *Sun\ C*) # Sun C 5.9
9895 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'
9896 compiler_needs_object=yes
9897 tmp_sharedflag='-G' ;;
9898 *Sun\ F*) # Sun Fortran 8.3
9899 tmp_sharedflag='-G' ;;
9900 esac
9901 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9902
9903 if test "x$supports_anon_versioning" = xyes; then
9904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9906 echo "local: *; };" >> $output_objdir/$libname.ver~
9907 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9908 fi
9909
9910 case $cc_basename in
9911 xlf* | bgf* | bgxlf* | mpixlf*)
9912 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9913 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9914 hardcode_libdir_flag_spec=
9915 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9916 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9917 if test "x$supports_anon_versioning" = xyes; then
9918 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9920 echo "local: *; };" >> $output_objdir/$libname.ver~
9921 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9922 fi
9923 ;;
9924 esac
9925 else
9926 ld_shlibs=no
9927 fi
9928 ;;
9929
9930 netbsd*)
9931 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9932 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9933 wlarc=
9934 else
9935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9936 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9937 fi
9938 ;;
9939
9940 solaris*)
9941 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9942 ld_shlibs=no
9943 cat <<_LT_EOF 1>&2
9944
9945 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9946 *** create shared libraries on Solaris systems. Therefore, libtool
9947 *** is disabling shared libraries support. We urge you to upgrade GNU
9948 *** binutils to release 2.9.1 or newer. Another option is to modify
9949 *** your PATH or compiler configuration so that the native linker is
9950 *** used, and then restart.
9951
9952 _LT_EOF
9953 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9956 else
9957 ld_shlibs=no
9958 fi
9959 ;;
9960
9961 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9962 case `$LD -v 2>&1` in
9963 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9964 ld_shlibs=no
9965 cat <<_LT_EOF 1>&2
9966
9967 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9968 *** reliably create shared libraries on SCO systems. Therefore, libtool
9969 *** is disabling shared libraries support. We urge you to upgrade GNU
9970 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9971 *** your PATH or compiler configuration so that the native linker is
9972 *** used, and then restart.
9973
9974 _LT_EOF
9975 ;;
9976 *)
9977 # For security reasons, it is highly recommended that you always
9978 # use absolute paths for naming shared libraries, and exclude the
9979 # DT_RUNPATH tag from executables and libraries. But doing so
9980 # requires that you compile everything twice, which is a pain.
9981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9982 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9985 else
9986 ld_shlibs=no
9987 fi
9988 ;;
9989 esac
9990 ;;
9991
9992 sunos4*)
9993 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9994 wlarc=
9995 hardcode_direct=yes
9996 hardcode_shlibpath_var=no
9997 ;;
9998
9999 *)
10000 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
10007 esac
10008
10009 if test "$ld_shlibs" = no; then
10010 runpath_var=
10011 hardcode_libdir_flag_spec=
10012 export_dynamic_flag_spec=
10013 whole_archive_flag_spec=
10014 fi
10015 else
10016 # PORTME fill in a description of your system's linker (not GNU ld)
10017 case $host_os in
10018 aix3*)
10019 allow_undefined_flag=unsupported
10020 always_export_symbols=yes
10021 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'
10022 # Note: this linker hardcodes the directories in LIBPATH if there
10023 # are no directories specified by -L.
10024 hardcode_minus_L=yes
10025 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10026 # Neither direct hardcoding nor static linking is supported with a
10027 # broken collect2.
10028 hardcode_direct=unsupported
10029 fi
10030 ;;
10031
10032 aix[4-9]*)
10033 if test "$host_cpu" = ia64; then
10034 # On IA64, the linker does run time linking by default, so we don't
10035 # have to do anything special.
10036 aix_use_runtimelinking=no
10037 exp_sym_flag='-Bexport'
10038 no_entry_flag=""
10039 else
10040 # If we're using GNU nm, then we don't want the "-C" option.
10041 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10042 # Also, AIX nm treats weak defined symbols like other global
10043 # defined symbols, whereas GNU nm marks them as "W".
10044 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10045 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10046 else
10047 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10048 fi
10049 aix_use_runtimelinking=no
10050
10051 # Test if we are trying to use run time linking or normal
10052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10053 # need to do runtime linking.
10054 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10055 for ld_flag in $LDFLAGS; do
10056 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10057 aix_use_runtimelinking=yes
10058 break
10059 fi
10060 done
10061 ;;
10062 esac
10063
10064 exp_sym_flag='-bexport'
10065 no_entry_flag='-bnoentry'
10066 fi
10067
10068 # When large executables or shared objects are built, AIX ld can
10069 # have problems creating the table of contents. If linking a library
10070 # or program results in "error TOC overflow" add -mminimal-toc to
10071 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10072 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10073
10074 archive_cmds=''
10075 hardcode_direct=yes
10076 hardcode_direct_absolute=yes
10077 hardcode_libdir_separator=':'
10078 link_all_deplibs=yes
10079 file_list_spec='${wl}-f,'
10080
10081 if test "$GCC" = yes; then
10082 case $host_os in aix4.[012]|aix4.[012].*)
10083 # We only want to do this on AIX 4.2 and lower, the check
10084 # below for broken collect2 doesn't work under 4.3+
10085 collect2name=`${CC} -print-prog-name=collect2`
10086 if test -f "$collect2name" &&
10087 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10088 then
10089 # We have reworked collect2
10090 :
10091 else
10092 # We have old collect2
10093 hardcode_direct=unsupported
10094 # It fails to find uninstalled libraries when the uninstalled
10095 # path is not listed in the libpath. Setting hardcode_minus_L
10096 # to unsupported forces relinking
10097 hardcode_minus_L=yes
10098 hardcode_libdir_flag_spec='-L$libdir'
10099 hardcode_libdir_separator=
10100 fi
10101 ;;
10102 esac
10103 shared_flag='-shared'
10104 if test "$aix_use_runtimelinking" = yes; then
10105 shared_flag="$shared_flag "'${wl}-G'
10106 fi
10107 else
10108 # not using gcc
10109 if test "$host_cpu" = ia64; then
10110 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10111 # chokes on -Wl,-G. The following line is correct:
10112 shared_flag='-G'
10113 else
10114 if test "$aix_use_runtimelinking" = yes; then
10115 shared_flag='${wl}-G'
10116 else
10117 shared_flag='${wl}-bM:SRE'
10118 fi
10119 fi
10120 fi
10121
10122 export_dynamic_flag_spec='${wl}-bexpall'
10123 # It seems that -bexpall does not export symbols beginning with
10124 # underscore (_), so it is better to generate a list of symbols to export.
10125 always_export_symbols=yes
10126 if test "$aix_use_runtimelinking" = yes; then
10127 # Warning - without using the other runtime loading flags (-brtl),
10128 # -berok will link without error, but may produce a broken library.
10129 allow_undefined_flag='-berok'
10130 # Determine the default libpath from the value encoded in an
10131 # empty executable.
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134
10135 int
10136 main ()
10137 {
10138
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144
10145 lt_aix_libpath_sed='
10146 /Import File Strings/,/^$/ {
10147 /^0/ {
10148 s/^0 *\(.*\)$/\1/
10149 p
10150 }
10151 }'
10152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10153 # Check for a 64-bit object if we didn't find anything.
10154 if test -z "$aix_libpath"; then
10155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10156 fi
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext \
10159 conftest$ac_exeext conftest.$ac_ext
10160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10161
10162 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10163 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10164 else
10165 if test "$host_cpu" = ia64; then
10166 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10167 allow_undefined_flag="-z nodefs"
10168 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"
10169 else
10170 # Determine the default libpath from the value encoded in an
10171 # empty executable.
10172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173 /* end confdefs.h. */
10174
10175 int
10176 main ()
10177 {
10178
10179 ;
10180 return 0;
10181 }
10182 _ACEOF
10183 if ac_fn_c_try_link "$LINENO"; then :
10184
10185 lt_aix_libpath_sed='
10186 /Import File Strings/,/^$/ {
10187 /^0/ {
10188 s/^0 *\(.*\)$/\1/
10189 p
10190 }
10191 }'
10192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10193 # Check for a 64-bit object if we didn't find anything.
10194 if test -z "$aix_libpath"; then
10195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10196 fi
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10201
10202 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10203 # Warning - without using the other run time loading flags,
10204 # -berok will link without error, but may produce a broken library.
10205 no_undefined_flag=' ${wl}-bernotok'
10206 allow_undefined_flag=' ${wl}-berok'
10207 if test "$with_gnu_ld" = yes; then
10208 # We only use this code for GNU lds that support --whole-archive.
10209 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10210 else
10211 # Exported symbols can be pulled into shared objects from archives
10212 whole_archive_flag_spec='$convenience'
10213 fi
10214 archive_cmds_need_lc=yes
10215 # This is similar to how AIX traditionally builds its shared libraries.
10216 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10217 fi
10218 fi
10219 ;;
10220
10221 amigaos*)
10222 case $host_cpu in
10223 powerpc)
10224 # see comment about AmigaOS4 .so support
10225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226 archive_expsym_cmds=''
10227 ;;
10228 m68k)
10229 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)'
10230 hardcode_libdir_flag_spec='-L$libdir'
10231 hardcode_minus_L=yes
10232 ;;
10233 esac
10234 ;;
10235
10236 bsdi[45]*)
10237 export_dynamic_flag_spec=-rdynamic
10238 ;;
10239
10240 cygwin* | mingw* | pw32* | cegcc*)
10241 # When not using gcc, we currently assume that we are using
10242 # Microsoft Visual C++.
10243 # hardcode_libdir_flag_spec is actually meaningless, as there is
10244 # no search path for DLLs.
10245 hardcode_libdir_flag_spec=' '
10246 allow_undefined_flag=unsupported
10247 # Tell ltmain to make .lib files, not .a files.
10248 libext=lib
10249 # Tell ltmain to make .dll files, not .so files.
10250 shrext_cmds=".dll"
10251 # FIXME: Setting linknames here is a bad hack.
10252 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10253 # The linker will automatically build a .lib file if we build a DLL.
10254 old_archive_from_new_cmds='true'
10255 # FIXME: Should let the user specify the lib program.
10256 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10257 fix_srcfile_path='`cygpath -w "$srcfile"`'
10258 enable_shared_with_static_runtimes=yes
10259 ;;
10260
10261 darwin* | rhapsody*)
10262
10263
10264 archive_cmds_need_lc=no
10265 hardcode_direct=no
10266 hardcode_automatic=yes
10267 hardcode_shlibpath_var=unsupported
10268 if test "$lt_cv_ld_force_load" = "yes"; then
10269 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\"`'
10270 else
10271 whole_archive_flag_spec=''
10272 fi
10273 link_all_deplibs=yes
10274 allow_undefined_flag="$_lt_dar_allow_undefined"
10275 case $cc_basename in
10276 ifort*) _lt_dar_can_shared=yes ;;
10277 *) _lt_dar_can_shared=$GCC ;;
10278 esac
10279 if test "$_lt_dar_can_shared" = "yes"; then
10280 output_verbose_link_cmd=func_echo_all
10281 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10282 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10283 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}"
10284 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}"
10285
10286 else
10287 ld_shlibs=no
10288 fi
10289
10290 ;;
10291
10292 dgux*)
10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_shlibpath_var=no
10296 ;;
10297
10298 freebsd1*)
10299 ld_shlibs=no
10300 ;;
10301
10302 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10303 # support. Future versions do this automatically, but an explicit c++rt0.o
10304 # does not break anything, and helps significantly (at the cost of a little
10305 # extra space).
10306 freebsd2.2*)
10307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10308 hardcode_libdir_flag_spec='-R$libdir'
10309 hardcode_direct=yes
10310 hardcode_shlibpath_var=no
10311 ;;
10312
10313 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10314 freebsd2*)
10315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10316 hardcode_direct=yes
10317 hardcode_minus_L=yes
10318 hardcode_shlibpath_var=no
10319 ;;
10320
10321 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10322 freebsd* | dragonfly*)
10323 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10324 hardcode_libdir_flag_spec='-R$libdir'
10325 hardcode_direct=yes
10326 hardcode_shlibpath_var=no
10327 ;;
10328
10329 hpux9*)
10330 if test "$GCC" = yes; then
10331 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10332 else
10333 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10334 fi
10335 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10336 hardcode_libdir_separator=:
10337 hardcode_direct=yes
10338
10339 # hardcode_minus_L: Not really in the search PATH,
10340 # but as the default location of the library.
10341 hardcode_minus_L=yes
10342 export_dynamic_flag_spec='${wl}-E'
10343 ;;
10344
10345 hpux10*)
10346 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10347 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10348 else
10349 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10350 fi
10351 if test "$with_gnu_ld" = no; then
10352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10353 hardcode_libdir_flag_spec_ld='+b $libdir'
10354 hardcode_libdir_separator=:
10355 hardcode_direct=yes
10356 hardcode_direct_absolute=yes
10357 export_dynamic_flag_spec='${wl}-E'
10358 # hardcode_minus_L: Not really in the search PATH,
10359 # but as the default location of the library.
10360 hardcode_minus_L=yes
10361 fi
10362 ;;
10363
10364 hpux11*)
10365 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10366 case $host_cpu in
10367 hppa*64*)
10368 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 ;;
10370 ia64*)
10371 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10372 ;;
10373 *)
10374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10375 ;;
10376 esac
10377 else
10378 case $host_cpu in
10379 hppa*64*)
10380 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10381 ;;
10382 ia64*)
10383 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10384 ;;
10385 *)
10386
10387 # Older versions of the 11.00 compiler do not understand -b yet
10388 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10390 $as_echo_n "checking if $CC understands -b... " >&6; }
10391 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10393 else
10394 lt_cv_prog_compiler__b=no
10395 save_LDFLAGS="$LDFLAGS"
10396 LDFLAGS="$LDFLAGS -b"
10397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10399 # The linker can only warn and ignore the option if not recognized
10400 # So say no if there are warnings
10401 if test -s conftest.err; then
10402 # Append any errors to the config.log.
10403 cat conftest.err 1>&5
10404 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10406 if diff conftest.exp conftest.er2 >/dev/null; then
10407 lt_cv_prog_compiler__b=yes
10408 fi
10409 else
10410 lt_cv_prog_compiler__b=yes
10411 fi
10412 fi
10413 $RM -r conftest*
10414 LDFLAGS="$save_LDFLAGS"
10415
10416 fi
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10418 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10419
10420 if test x"$lt_cv_prog_compiler__b" = xyes; then
10421 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10422 else
10423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10424 fi
10425
10426 ;;
10427 esac
10428 fi
10429 if test "$with_gnu_ld" = no; then
10430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10431 hardcode_libdir_separator=:
10432
10433 case $host_cpu in
10434 hppa*64*|ia64*)
10435 hardcode_direct=no
10436 hardcode_shlibpath_var=no
10437 ;;
10438 *)
10439 hardcode_direct=yes
10440 hardcode_direct_absolute=yes
10441 export_dynamic_flag_spec='${wl}-E'
10442
10443 # hardcode_minus_L: Not really in the search PATH,
10444 # but as the default location of the library.
10445 hardcode_minus_L=yes
10446 ;;
10447 esac
10448 fi
10449 ;;
10450
10451 irix5* | irix6* | nonstopux*)
10452 if test "$GCC" = yes; then
10453 archive_cmds='$CC -shared $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'
10454 # Try to use the -exported_symbol ld option, if it does not
10455 # work, assume that -exports_file does not work either and
10456 # implicitly export all symbols.
10457 save_LDFLAGS="$LDFLAGS"
10458 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460 /* end confdefs.h. */
10461 int foo(void) {}
10462 _ACEOF
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 archive_expsym_cmds='$CC -shared $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'
10465
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LDFLAGS="$save_LDFLAGS"
10470 else
10471 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'
10472 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'
10473 fi
10474 archive_cmds_need_lc='no'
10475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10476 hardcode_libdir_separator=:
10477 inherit_rpath=yes
10478 link_all_deplibs=yes
10479 ;;
10480
10481 netbsd*)
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10484 else
10485 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10486 fi
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 newsos6)
10493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494 hardcode_direct=yes
10495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10496 hardcode_libdir_separator=:
10497 hardcode_shlibpath_var=no
10498 ;;
10499
10500 *nto* | *qnx*)
10501 ;;
10502
10503 openbsd*)
10504 if test -f /usr/libexec/ld.so; then
10505 hardcode_direct=yes
10506 hardcode_shlibpath_var=no
10507 hardcode_direct_absolute=yes
10508 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10509 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10510 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10512 export_dynamic_flag_spec='${wl}-E'
10513 else
10514 case $host_os in
10515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10517 hardcode_libdir_flag_spec='-R$libdir'
10518 ;;
10519 *)
10520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10522 ;;
10523 esac
10524 fi
10525 else
10526 ld_shlibs=no
10527 fi
10528 ;;
10529
10530 os2*)
10531 hardcode_libdir_flag_spec='-L$libdir'
10532 hardcode_minus_L=yes
10533 allow_undefined_flag=unsupported
10534 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10535 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10536 ;;
10537
10538 osf3*)
10539 if test "$GCC" = yes; then
10540 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10541 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'
10542 else
10543 allow_undefined_flag=' -expect_unresolved \*'
10544 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'
10545 fi
10546 archive_cmds_need_lc='no'
10547 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10548 hardcode_libdir_separator=:
10549 ;;
10550
10551 osf4* | osf5*) # as osf3* with the addition of -msym flag
10552 if test "$GCC" = yes; then
10553 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10554 archive_cmds='$CC -shared${allow_undefined_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'
10555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556 else
10557 allow_undefined_flag=' -expect_unresolved \*'
10558 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'
10559 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~
10560 $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'
10561
10562 # Both c and cxx compiler support -rpath directly
10563 hardcode_libdir_flag_spec='-rpath $libdir'
10564 fi
10565 archive_cmds_need_lc='no'
10566 hardcode_libdir_separator=:
10567 ;;
10568
10569 solaris*)
10570 no_undefined_flag=' -z defs'
10571 if test "$GCC" = yes; then
10572 wlarc='${wl}'
10573 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10575 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10576 else
10577 case `$CC -V 2>&1` in
10578 *"Compilers 5.0"*)
10579 wlarc=''
10580 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10582 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10583 ;;
10584 *)
10585 wlarc='${wl}'
10586 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10587 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10588 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10589 ;;
10590 esac
10591 fi
10592 hardcode_libdir_flag_spec='-R$libdir'
10593 hardcode_shlibpath_var=no
10594 case $host_os in
10595 solaris2.[0-5] | solaris2.[0-5].*) ;;
10596 *)
10597 # The compiler driver will combine and reorder linker options,
10598 # but understands `-z linker_flag'. GCC discards it without `$wl',
10599 # but is careful enough not to reorder.
10600 # Supported since Solaris 2.6 (maybe 2.5.1?)
10601 if test "$GCC" = yes; then
10602 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10603 else
10604 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10605 fi
10606 ;;
10607 esac
10608 link_all_deplibs=yes
10609 ;;
10610
10611 sunos4*)
10612 if test "x$host_vendor" = xsequent; then
10613 # Use $CC to link under sequent, because it throws in some extra .o
10614 # files that make .init and .fini sections work.
10615 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10616 else
10617 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10618 fi
10619 hardcode_libdir_flag_spec='-L$libdir'
10620 hardcode_direct=yes
10621 hardcode_minus_L=yes
10622 hardcode_shlibpath_var=no
10623 ;;
10624
10625 sysv4)
10626 case $host_vendor in
10627 sni)
10628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10629 hardcode_direct=yes # is this really true???
10630 ;;
10631 siemens)
10632 ## LD is ld it makes a PLAMLIB
10633 ## CC just makes a GrossModule.
10634 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10635 reload_cmds='$CC -r -o $output$reload_objs'
10636 hardcode_direct=no
10637 ;;
10638 motorola)
10639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10641 ;;
10642 esac
10643 runpath_var='LD_RUN_PATH'
10644 hardcode_shlibpath_var=no
10645 ;;
10646
10647 sysv4.3*)
10648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10649 hardcode_shlibpath_var=no
10650 export_dynamic_flag_spec='-Bexport'
10651 ;;
10652
10653 sysv4*MP*)
10654 if test -d /usr/nec; then
10655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_shlibpath_var=no
10657 runpath_var=LD_RUN_PATH
10658 hardcode_runpath_var=yes
10659 ld_shlibs=yes
10660 fi
10661 ;;
10662
10663 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10664 no_undefined_flag='${wl}-z,text'
10665 archive_cmds_need_lc=no
10666 hardcode_shlibpath_var=no
10667 runpath_var='LD_RUN_PATH'
10668
10669 if test "$GCC" = yes; then
10670 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 else
10673 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 fi
10676 ;;
10677
10678 sysv5* | sco3.2v5* | sco5v6*)
10679 # Note: We can NOT use -z defs as we might desire, because we do not
10680 # link with -lc, and that would cause any symbols used from libc to
10681 # always be unresolved, which means just about no library would
10682 # ever link correctly. If we're not using GNU ld we use -z text
10683 # though, which does catch some bad symbols but isn't as heavy-handed
10684 # as -z defs.
10685 no_undefined_flag='${wl}-z,text'
10686 allow_undefined_flag='${wl}-z,nodefs'
10687 archive_cmds_need_lc=no
10688 hardcode_shlibpath_var=no
10689 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10690 hardcode_libdir_separator=':'
10691 link_all_deplibs=yes
10692 export_dynamic_flag_spec='${wl}-Bexport'
10693 runpath_var='LD_RUN_PATH'
10694
10695 if test "$GCC" = yes; then
10696 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 else
10699 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10701 fi
10702 ;;
10703
10704 uts4*)
10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_libdir_flag_spec='-L$libdir'
10707 hardcode_shlibpath_var=no
10708 ;;
10709
10710 *)
10711 ld_shlibs=no
10712 ;;
10713 esac
10714
10715 if test x$host_vendor = xsni; then
10716 case $host in
10717 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10718 export_dynamic_flag_spec='${wl}-Blargedynsym'
10719 ;;
10720 esac
10721 fi
10722 fi
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10725 $as_echo "$ld_shlibs" >&6; }
10726 test "$ld_shlibs" = no && can_build_shared=no
10727
10728 with_gnu_ld=$with_gnu_ld
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744 #
10745 # Do we need to explicitly link libc?
10746 #
10747 case "x$archive_cmds_need_lc" in
10748 x|xyes)
10749 # Assume -lc should be added
10750 archive_cmds_need_lc=yes
10751
10752 if test "$enable_shared" = yes && test "$GCC" = yes; then
10753 case $archive_cmds in
10754 *'~'*)
10755 # FIXME: we may have to deal with multi-command sequences.
10756 ;;
10757 '$CC '*)
10758 # Test whether the compiler implicitly links with -lc since on some
10759 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10760 # to ld, don't add -lc before -lgcc.
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10762 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10763 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 $RM conftest*
10767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10768
10769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10770 (eval $ac_compile) 2>&5
10771 ac_status=$?
10772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10773 test $ac_status = 0; } 2>conftest.err; then
10774 soname=conftest
10775 lib=conftest
10776 libobjs=conftest.$ac_objext
10777 deplibs=
10778 wl=$lt_prog_compiler_wl
10779 pic_flag=$lt_prog_compiler_pic
10780 compiler_flags=-v
10781 linker_flags=-v
10782 verstring=
10783 output_objdir=.
10784 libname=conftest
10785 lt_save_allow_undefined_flag=$allow_undefined_flag
10786 allow_undefined_flag=
10787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10788 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10789 ac_status=$?
10790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10791 test $ac_status = 0; }
10792 then
10793 lt_cv_archive_cmds_need_lc=no
10794 else
10795 lt_cv_archive_cmds_need_lc=yes
10796 fi
10797 allow_undefined_flag=$lt_save_allow_undefined_flag
10798 else
10799 cat conftest.err 1>&5
10800 fi
10801 $RM conftest*
10802
10803 fi
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10805 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10806 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10807 ;;
10808 esac
10809 fi
10810 ;;
10811 esac
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10970 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10971
10972 if test "$GCC" = yes; then
10973 case $host_os in
10974 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10975 *) lt_awk_arg="/^libraries:/" ;;
10976 esac
10977 case $host_os in
10978 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10979 *) lt_sed_strip_eq="s,=/,/,g" ;;
10980 esac
10981 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10982 case $lt_search_path_spec in
10983 *\;*)
10984 # if the path contains ";" then we assume it to be the separator
10985 # otherwise default to the standard path separator (i.e. ":") - it is
10986 # assumed that no part of a normal pathname contains ";" but that should
10987 # okay in the real world where ";" in dirpaths is itself problematic.
10988 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10989 ;;
10990 *)
10991 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10992 ;;
10993 esac
10994 # Ok, now we have the path, separated by spaces, we can step through it
10995 # and add multilib dir if necessary.
10996 lt_tmp_lt_search_path_spec=
10997 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10998 for lt_sys_path in $lt_search_path_spec; do
10999 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11000 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11001 else
11002 test -d "$lt_sys_path" && \
11003 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11004 fi
11005 done
11006 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11007 BEGIN {RS=" "; FS="/|\n";} {
11008 lt_foo="";
11009 lt_count=0;
11010 for (lt_i = NF; lt_i > 0; lt_i--) {
11011 if ($lt_i != "" && $lt_i != ".") {
11012 if ($lt_i == "..") {
11013 lt_count++;
11014 } else {
11015 if (lt_count == 0) {
11016 lt_foo="/" $lt_i lt_foo;
11017 } else {
11018 lt_count--;
11019 }
11020 }
11021 }
11022 }
11023 if (lt_foo != "") { lt_freq[lt_foo]++; }
11024 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11025 }'`
11026 # AWK program above erroneously prepends '/' to C:/dos/paths
11027 # for these hosts.
11028 case $host_os in
11029 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11030 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11031 esac
11032 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11033 else
11034 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11035 fi
11036 library_names_spec=
11037 libname_spec='lib$name'
11038 soname_spec=
11039 shrext_cmds=".so"
11040 postinstall_cmds=
11041 postuninstall_cmds=
11042 finish_cmds=
11043 finish_eval=
11044 shlibpath_var=
11045 shlibpath_overrides_runpath=unknown
11046 version_type=none
11047 dynamic_linker="$host_os ld.so"
11048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11049 need_lib_prefix=unknown
11050 hardcode_into_libs=no
11051
11052 # when you set need_version to no, make sure it does not cause -set_version
11053 # flags to be left without arguments
11054 need_version=unknown
11055
11056 case $host_os in
11057 aix3*)
11058 version_type=linux
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11060 shlibpath_var=LIBPATH
11061
11062 # AIX 3 has no versioning support, so we append a major version to the name.
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 ;;
11065
11066 aix[4-9]*)
11067 version_type=linux
11068 need_lib_prefix=no
11069 need_version=no
11070 hardcode_into_libs=yes
11071 if test "$host_cpu" = ia64; then
11072 # AIX 5 supports IA64
11073 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 else
11076 # With GCC up to 2.95.x, collect2 would create an import file
11077 # for dependence libraries. The import file would start with
11078 # the line `#! .'. This would cause the generated library to
11079 # depend on `.', always an invalid library. This was fixed in
11080 # development snapshots of GCC prior to 3.0.
11081 case $host_os in
11082 aix4 | aix4.[01] | aix4.[01].*)
11083 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11084 echo ' yes '
11085 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11086 :
11087 else
11088 can_build_shared=no
11089 fi
11090 ;;
11091 esac
11092 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11093 # soname into executable. Probably we can add versioning support to
11094 # collect2, so additional links can be useful in future.
11095 if test "$aix_use_runtimelinking" = yes; then
11096 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11097 # instead of lib<name>.a to let people know that these are not
11098 # typical AIX shared libraries.
11099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100 else
11101 # We preserve .a as extension for shared libraries through AIX4.2
11102 # and later when we are not doing run time linking.
11103 library_names_spec='${libname}${release}.a $libname.a'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 fi
11106 shlibpath_var=LIBPATH
11107 fi
11108 ;;
11109
11110 amigaos*)
11111 case $host_cpu in
11112 powerpc)
11113 # Since July 2007 AmigaOS4 officially supports .so libraries.
11114 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 ;;
11117 m68k)
11118 library_names_spec='$libname.ixlibrary $libname.a'
11119 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11120 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11121 ;;
11122 esac
11123 ;;
11124
11125 beos*)
11126 library_names_spec='${libname}${shared_ext}'
11127 dynamic_linker="$host_os ld.so"
11128 shlibpath_var=LIBRARY_PATH
11129 ;;
11130
11131 bsdi[45]*)
11132 version_type=linux
11133 need_version=no
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11140 # the default ld.so.conf also contains /usr/contrib/lib and
11141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11142 # libtool to hard-code these into programs
11143 ;;
11144
11145 cygwin* | mingw* | pw32* | cegcc*)
11146 version_type=windows
11147 shrext_cmds=".dll"
11148 need_version=no
11149 need_lib_prefix=no
11150
11151 case $GCC,$host_os in
11152 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11153 library_names_spec='$libname.dll.a'
11154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11155 postinstall_cmds='base_file=`basename \${file}`~
11156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11157 dldir=$destdir/`dirname \$dlpath`~
11158 test -d \$dldir || mkdir -p \$dldir~
11159 $install_prog $dir/$dlname \$dldir/$dlname~
11160 chmod a+x \$dldir/$dlname~
11161 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11162 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11163 fi'
11164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11165 dlpath=$dir/\$dldll~
11166 $RM \$dlpath'
11167 shlibpath_overrides_runpath=yes
11168
11169 case $host_os in
11170 cygwin*)
11171 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11172 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11173
11174 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11175 ;;
11176 mingw* | cegcc*)
11177 # MinGW DLLs use traditional 'lib' prefix
11178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11179 ;;
11180 pw32*)
11181 # pw32 DLLs use 'pw' prefix rather than 'lib'
11182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11183 ;;
11184 esac
11185 ;;
11186
11187 *)
11188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11189 ;;
11190 esac
11191 dynamic_linker='Win32 ld.exe'
11192 # FIXME: first we should search . and the directory the executable is in
11193 shlibpath_var=PATH
11194 ;;
11195
11196 darwin* | rhapsody*)
11197 dynamic_linker="$host_os dyld"
11198 version_type=darwin
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11202 soname_spec='${libname}${release}${major}$shared_ext'
11203 shlibpath_overrides_runpath=yes
11204 shlibpath_var=DYLD_LIBRARY_PATH
11205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11206
11207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11209 ;;
11210
11211 dgux*)
11212 version_type=linux
11213 need_lib_prefix=no
11214 need_version=no
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11218 ;;
11219
11220 freebsd1*)
11221 dynamic_linker=no
11222 ;;
11223
11224 freebsd* | dragonfly*)
11225 # DragonFly does not have aout. When/if they implement a new
11226 # versioning mechanism, adjust this.
11227 if test -x /usr/bin/objformat; then
11228 objformat=`/usr/bin/objformat`
11229 else
11230 case $host_os in
11231 freebsd[123]*) objformat=aout ;;
11232 *) objformat=elf ;;
11233 esac
11234 fi
11235 version_type=freebsd-$objformat
11236 case $version_type in
11237 freebsd-elf*)
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11239 need_version=no
11240 need_lib_prefix=no
11241 ;;
11242 freebsd-*)
11243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11244 need_version=yes
11245 ;;
11246 esac
11247 shlibpath_var=LD_LIBRARY_PATH
11248 case $host_os in
11249 freebsd2*)
11250 shlibpath_overrides_runpath=yes
11251 ;;
11252 freebsd3.[01]* | freebsdelf3.[01]*)
11253 shlibpath_overrides_runpath=yes
11254 hardcode_into_libs=yes
11255 ;;
11256 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11257 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11258 shlibpath_overrides_runpath=no
11259 hardcode_into_libs=yes
11260 ;;
11261 *) # from 4.6 on, and DragonFly
11262 shlibpath_overrides_runpath=yes
11263 hardcode_into_libs=yes
11264 ;;
11265 esac
11266 ;;
11267
11268 gnu*)
11269 version_type=linux
11270 need_lib_prefix=no
11271 need_version=no
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 hardcode_into_libs=yes
11276 ;;
11277
11278 haiku*)
11279 version_type=linux
11280 need_lib_prefix=no
11281 need_version=no
11282 dynamic_linker="$host_os runtime_loader"
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 shlibpath_var=LIBRARY_PATH
11286 shlibpath_overrides_runpath=yes
11287 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11288 hardcode_into_libs=yes
11289 ;;
11290
11291 hpux9* | hpux10* | hpux11*)
11292 # Give a soname corresponding to the major version so that dld.sl refuses to
11293 # link against other versions.
11294 version_type=sunos
11295 need_lib_prefix=no
11296 need_version=no
11297 case $host_cpu in
11298 ia64*)
11299 shrext_cmds='.so'
11300 hardcode_into_libs=yes
11301 dynamic_linker="$host_os dld.so"
11302 shlibpath_var=LD_LIBRARY_PATH
11303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 if test "X$HPUX_IA64_MODE" = X32; then
11307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11308 else
11309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11310 fi
11311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11312 ;;
11313 hppa*64*)
11314 shrext_cmds='.sl'
11315 hardcode_into_libs=yes
11316 dynamic_linker="$host_os dld.sl"
11317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11323 ;;
11324 *)
11325 shrext_cmds='.sl'
11326 dynamic_linker="$host_os dld.sl"
11327 shlibpath_var=SHLIB_PATH
11328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 ;;
11332 esac
11333 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11334 postinstall_cmds='chmod 555 $lib'
11335 # or fails outright, so override atomically:
11336 install_override_mode=555
11337 ;;
11338
11339 interix[3-9]*)
11340 version_type=linux
11341 need_lib_prefix=no
11342 need_version=no
11343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11344 soname_spec='${libname}${release}${shared_ext}$major'
11345 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=no
11348 hardcode_into_libs=yes
11349 ;;
11350
11351 irix5* | irix6* | nonstopux*)
11352 case $host_os in
11353 nonstopux*) version_type=nonstopux ;;
11354 *)
11355 if test "$lt_cv_prog_gnu_ld" = yes; then
11356 version_type=linux
11357 else
11358 version_type=irix
11359 fi ;;
11360 esac
11361 need_lib_prefix=no
11362 need_version=no
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11365 case $host_os in
11366 irix5* | nonstopux*)
11367 libsuff= shlibsuff=
11368 ;;
11369 *)
11370 case $LD in # libtool.m4 will add one of these switches to LD
11371 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11372 libsuff= shlibsuff= libmagic=32-bit;;
11373 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11374 libsuff=32 shlibsuff=N32 libmagic=N32;;
11375 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11376 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11377 *) libsuff= shlibsuff= libmagic=never-match;;
11378 esac
11379 ;;
11380 esac
11381 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11382 shlibpath_overrides_runpath=no
11383 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11384 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11385 hardcode_into_libs=yes
11386 ;;
11387
11388 # No shared lib support for Linux oldld, aout, or coff.
11389 linux*oldld* | linux*aout* | linux*coff*)
11390 dynamic_linker=no
11391 ;;
11392
11393 # This must be Linux ELF.
11394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11395 version_type=linux
11396 need_lib_prefix=no
11397 need_version=no
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11401 shlibpath_var=LD_LIBRARY_PATH
11402 shlibpath_overrides_runpath=no
11403
11404 # Some binutils ld are patched to set DT_RUNPATH
11405 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 lt_cv_shlibpath_overrides_runpath=no
11409 save_LDFLAGS=$LDFLAGS
11410 save_libdir=$libdir
11411 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11412 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415
11416 int
11417 main ()
11418 {
11419
11420 ;
11421 return 0;
11422 }
11423 _ACEOF
11424 if ac_fn_c_try_link "$LINENO"; then :
11425 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11426 lt_cv_shlibpath_overrides_runpath=yes
11427 fi
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext \
11430 conftest$ac_exeext conftest.$ac_ext
11431 LDFLAGS=$save_LDFLAGS
11432 libdir=$save_libdir
11433
11434 fi
11435
11436 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11437
11438 # This implies no fast_install, which is unacceptable.
11439 # Some rework will be needed to allow for fast_install
11440 # before this can be enabled.
11441 hardcode_into_libs=yes
11442
11443 # Add ABI-specific directories to the system library path.
11444 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11445
11446 # Append ld.so.conf contents to the search path
11447 if test -f /etc/ld.so.conf; then
11448 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' ' '`
11449 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11450
11451 fi
11452
11453 # We used to test for /lib/ld.so.1 and disable shared libraries on
11454 # powerpc, because MkLinux only supported shared libraries with the
11455 # GNU dynamic linker. Since this was broken with cross compilers,
11456 # most powerpc-linux boxes support dynamic linking these days and
11457 # people can always --disable-shared, the test was removed, and we
11458 # assume the GNU/Linux dynamic linker is in use.
11459 dynamic_linker='GNU/Linux ld.so'
11460 ;;
11461
11462 netbsd*)
11463 version_type=sunos
11464 need_lib_prefix=no
11465 need_version=no
11466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469 dynamic_linker='NetBSD (a.out) ld.so'
11470 else
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 dynamic_linker='NetBSD ld.elf_so'
11474 fi
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11478 ;;
11479
11480 newsos6)
11481 version_type=linux
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=yes
11485 ;;
11486
11487 *nto* | *qnx*)
11488 version_type=qnx
11489 need_lib_prefix=no
11490 need_version=no
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11496 dynamic_linker='ldqnx.so'
11497 ;;
11498
11499 openbsd*)
11500 version_type=sunos
11501 sys_lib_dlsearch_path_spec="/usr/lib"
11502 need_lib_prefix=no
11503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11504 case $host_os in
11505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11506 *) need_version=no ;;
11507 esac
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11512 case $host_os in
11513 openbsd2.[89] | openbsd2.[89].*)
11514 shlibpath_overrides_runpath=no
11515 ;;
11516 *)
11517 shlibpath_overrides_runpath=yes
11518 ;;
11519 esac
11520 else
11521 shlibpath_overrides_runpath=yes
11522 fi
11523 ;;
11524
11525 os2*)
11526 libname_spec='$name'
11527 shrext_cmds=".dll"
11528 need_lib_prefix=no
11529 library_names_spec='$libname${shared_ext} $libname.a'
11530 dynamic_linker='OS/2 ld.exe'
11531 shlibpath_var=LIBPATH
11532 ;;
11533
11534 osf3* | osf4* | osf5*)
11535 version_type=osf
11536 need_lib_prefix=no
11537 need_version=no
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11543 ;;
11544
11545 rdos*)
11546 dynamic_linker=no
11547 ;;
11548
11549 solaris*)
11550 version_type=linux
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes
11557 hardcode_into_libs=yes
11558 # ldd complains unless libraries are executable
11559 postinstall_cmds='chmod +x $lib'
11560 ;;
11561
11562 sunos4*)
11563 version_type=sunos
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 shlibpath_overrides_runpath=yes
11568 if test "$with_gnu_ld" = yes; then
11569 need_lib_prefix=no
11570 fi
11571 need_version=yes
11572 ;;
11573
11574 sysv4 | sysv4.3*)
11575 version_type=linux
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 case $host_vendor in
11580 sni)
11581 shlibpath_overrides_runpath=no
11582 need_lib_prefix=no
11583 runpath_var=LD_RUN_PATH
11584 ;;
11585 siemens)
11586 need_lib_prefix=no
11587 ;;
11588 motorola)
11589 need_lib_prefix=no
11590 need_version=no
11591 shlibpath_overrides_runpath=no
11592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11593 ;;
11594 esac
11595 ;;
11596
11597 sysv4*MP*)
11598 if test -d /usr/nec ;then
11599 version_type=linux
11600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11601 soname_spec='$libname${shared_ext}.$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 fi
11604 ;;
11605
11606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11607 version_type=freebsd-elf
11608 need_lib_prefix=no
11609 need_version=no
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=yes
11614 hardcode_into_libs=yes
11615 if test "$with_gnu_ld" = yes; then
11616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11617 else
11618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11619 case $host_os in
11620 sco3.2v5*)
11621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11622 ;;
11623 esac
11624 fi
11625 sys_lib_dlsearch_path_spec='/usr/lib'
11626 ;;
11627
11628 tpf*)
11629 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11630 version_type=linux
11631 need_lib_prefix=no
11632 need_version=no
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11637 ;;
11638
11639 uts4*)
11640 version_type=linux
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 ;;
11645
11646 *)
11647 dynamic_linker=no
11648 ;;
11649 esac
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11651 $as_echo "$dynamic_linker" >&6; }
11652 test "$dynamic_linker" = no && can_build_shared=no
11653
11654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11655 if test "$GCC" = yes; then
11656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11657 fi
11658
11659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11661 fi
11662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11663 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11664 fi
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11758 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11759 hardcode_action=
11760 if test -n "$hardcode_libdir_flag_spec" ||
11761 test -n "$runpath_var" ||
11762 test "X$hardcode_automatic" = "Xyes" ; then
11763
11764 # We can hardcode non-existent directories.
11765 if test "$hardcode_direct" != no &&
11766 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11767 # have to relink, otherwise we might link with an installed library
11768 # when we should be linking with a yet-to-be-installed one
11769 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11770 test "$hardcode_minus_L" != no; then
11771 # Linking always hardcodes the temporary library directory.
11772 hardcode_action=relink
11773 else
11774 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11775 hardcode_action=immediate
11776 fi
11777 else
11778 # We cannot hardcode anything, or else we can only hardcode existing
11779 # directories.
11780 hardcode_action=unsupported
11781 fi
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11783 $as_echo "$hardcode_action" >&6; }
11784
11785 if test "$hardcode_action" = relink ||
11786 test "$inherit_rpath" = yes; then
11787 # Fast installation is not supported
11788 enable_fast_install=no
11789 elif test "$shlibpath_overrides_runpath" = yes ||
11790 test "$enable_shared" = no; then
11791 # Fast installation is not necessary
11792 enable_fast_install=needless
11793 fi
11794
11795
11796
11797
11798
11799
11800 if test "x$enable_dlopen" != xyes; then
11801 enable_dlopen=unknown
11802 enable_dlopen_self=unknown
11803 enable_dlopen_self_static=unknown
11804 else
11805 lt_cv_dlopen=no
11806 lt_cv_dlopen_libs=
11807
11808 case $host_os in
11809 beos*)
11810 lt_cv_dlopen="load_add_on"
11811 lt_cv_dlopen_libs=
11812 lt_cv_dlopen_self=yes
11813 ;;
11814
11815 mingw* | pw32* | cegcc*)
11816 lt_cv_dlopen="LoadLibrary"
11817 lt_cv_dlopen_libs=
11818 ;;
11819
11820 cygwin*)
11821 lt_cv_dlopen="dlopen"
11822 lt_cv_dlopen_libs=
11823 ;;
11824
11825 darwin*)
11826 # if libdl is installed we need to link against it
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11829 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
11831 else
11832 ac_check_lib_save_LIBS=$LIBS
11833 LIBS="-ldl $LIBS"
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11840 #ifdef __cplusplus
11841 extern "C"
11842 #endif
11843 char dlopen ();
11844 int
11845 main ()
11846 {
11847 return dlopen ();
11848 ;
11849 return 0;
11850 }
11851 _ACEOF
11852 if ac_fn_c_try_link "$LINENO"; then :
11853 ac_cv_lib_dl_dlopen=yes
11854 else
11855 ac_cv_lib_dl_dlopen=no
11856 fi
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_check_lib_save_LIBS
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11863 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11865 else
11866
11867 lt_cv_dlopen="dyld"
11868 lt_cv_dlopen_libs=
11869 lt_cv_dlopen_self=yes
11870
11871 fi
11872
11873 ;;
11874
11875 *)
11876 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11877 if test "x$ac_cv_func_shl_load" = x""yes; then :
11878 lt_cv_dlopen="shl_load"
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11881 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11882 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-ldld $LIBS"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11889
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char shl_load ();
11897 int
11898 main ()
11899 {
11900 return shl_load ();
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_dld_shl_load=yes
11907 else
11908 ac_cv_lib_dld_shl_load=no
11909 fi
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11913 fi
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11915 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11916 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11918 else
11919 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11920 if test "x$ac_cv_func_dlopen" = x""yes; then :
11921 lt_cv_dlopen="dlopen"
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11926 $as_echo_n "(cached) " >&6
11927 else
11928 ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-ldl $LIBS"
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11932
11933 /* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 char dlopen ();
11940 int
11941 main ()
11942 {
11943 return dlopen ();
11944 ;
11945 return 0;
11946 }
11947 _ACEOF
11948 if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_lib_dl_dlopen=yes
11950 else
11951 ac_cv_lib_dl_dlopen=no
11952 fi
11953 rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955 LIBS=$ac_check_lib_save_LIBS
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11959 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11961 else
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11963 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11964 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11965 $as_echo_n "(cached) " >&6
11966 else
11967 ac_check_lib_save_LIBS=$LIBS
11968 LIBS="-lsvld $LIBS"
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11971
11972 /* Override any GCC internal prototype to avoid an error.
11973 Use char because int might match the return type of a GCC
11974 builtin and then its argument prototype would still apply. */
11975 #ifdef __cplusplus
11976 extern "C"
11977 #endif
11978 char dlopen ();
11979 int
11980 main ()
11981 {
11982 return dlopen ();
11983 ;
11984 return 0;
11985 }
11986 _ACEOF
11987 if ac_fn_c_try_link "$LINENO"; then :
11988 ac_cv_lib_svld_dlopen=yes
11989 else
11990 ac_cv_lib_svld_dlopen=no
11991 fi
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11994 LIBS=$ac_check_lib_save_LIBS
11995 fi
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11998 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12000 else
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12003 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-ldld $LIBS"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char dld_link ();
12018 int
12019 main ()
12020 {
12021 return dld_link ();
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_lib_dld_dld_link=yes
12028 else
12029 ac_cv_lib_dld_dld_link=no
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12036 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12037 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12038 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12039 fi
12040
12041
12042 fi
12043
12044
12045 fi
12046
12047
12048 fi
12049
12050
12051 fi
12052
12053
12054 fi
12055
12056 ;;
12057 esac
12058
12059 if test "x$lt_cv_dlopen" != xno; then
12060 enable_dlopen=yes
12061 else
12062 enable_dlopen=no
12063 fi
12064
12065 case $lt_cv_dlopen in
12066 dlopen)
12067 save_CPPFLAGS="$CPPFLAGS"
12068 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12069
12070 save_LDFLAGS="$LDFLAGS"
12071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12072
12073 save_LIBS="$LIBS"
12074 LIBS="$lt_cv_dlopen_libs $LIBS"
12075
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12077 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12078 if test "${lt_cv_dlopen_self+set}" = set; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test "$cross_compiling" = yes; then :
12082 lt_cv_dlopen_self=cross
12083 else
12084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12085 lt_status=$lt_dlunknown
12086 cat > conftest.$ac_ext <<_LT_EOF
12087 #line $LINENO "configure"
12088 #include "confdefs.h"
12089
12090 #if HAVE_DLFCN_H
12091 #include <dlfcn.h>
12092 #endif
12093
12094 #include <stdio.h>
12095
12096 #ifdef RTLD_GLOBAL
12097 # define LT_DLGLOBAL RTLD_GLOBAL
12098 #else
12099 # ifdef DL_GLOBAL
12100 # define LT_DLGLOBAL DL_GLOBAL
12101 # else
12102 # define LT_DLGLOBAL 0
12103 # endif
12104 #endif
12105
12106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12107 find out it does not work in some platform. */
12108 #ifndef LT_DLLAZY_OR_NOW
12109 # ifdef RTLD_LAZY
12110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12111 # else
12112 # ifdef DL_LAZY
12113 # define LT_DLLAZY_OR_NOW DL_LAZY
12114 # else
12115 # ifdef RTLD_NOW
12116 # define LT_DLLAZY_OR_NOW RTLD_NOW
12117 # else
12118 # ifdef DL_NOW
12119 # define LT_DLLAZY_OR_NOW DL_NOW
12120 # else
12121 # define LT_DLLAZY_OR_NOW 0
12122 # endif
12123 # endif
12124 # endif
12125 # endif
12126 #endif
12127
12128 /* When -fvisbility=hidden is used, assume the code has been annotated
12129 correspondingly for the symbols needed. */
12130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12131 void fnord () __attribute__((visibility("default")));
12132 #endif
12133
12134 void fnord () { int i=42; }
12135 int main ()
12136 {
12137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12138 int status = $lt_dlunknown;
12139
12140 if (self)
12141 {
12142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12143 else
12144 {
12145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146 else puts (dlerror ());
12147 }
12148 /* dlclose (self); */
12149 }
12150 else
12151 puts (dlerror ());
12152
12153 return status;
12154 }
12155 _LT_EOF
12156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12157 (eval $ac_link) 2>&5
12158 ac_status=$?
12159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12161 (./conftest; exit; ) >&5 2>/dev/null
12162 lt_status=$?
12163 case x$lt_status in
12164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12166 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12167 esac
12168 else :
12169 # compilation failed
12170 lt_cv_dlopen_self=no
12171 fi
12172 fi
12173 rm -fr conftest*
12174
12175
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12178 $as_echo "$lt_cv_dlopen_self" >&6; }
12179
12180 if test "x$lt_cv_dlopen_self" = xyes; then
12181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12183 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12184 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test "$cross_compiling" = yes; then :
12188 lt_cv_dlopen_self_static=cross
12189 else
12190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12191 lt_status=$lt_dlunknown
12192 cat > conftest.$ac_ext <<_LT_EOF
12193 #line $LINENO "configure"
12194 #include "confdefs.h"
12195
12196 #if HAVE_DLFCN_H
12197 #include <dlfcn.h>
12198 #endif
12199
12200 #include <stdio.h>
12201
12202 #ifdef RTLD_GLOBAL
12203 # define LT_DLGLOBAL RTLD_GLOBAL
12204 #else
12205 # ifdef DL_GLOBAL
12206 # define LT_DLGLOBAL DL_GLOBAL
12207 # else
12208 # define LT_DLGLOBAL 0
12209 # endif
12210 #endif
12211
12212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12213 find out it does not work in some platform. */
12214 #ifndef LT_DLLAZY_OR_NOW
12215 # ifdef RTLD_LAZY
12216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12217 # else
12218 # ifdef DL_LAZY
12219 # define LT_DLLAZY_OR_NOW DL_LAZY
12220 # else
12221 # ifdef RTLD_NOW
12222 # define LT_DLLAZY_OR_NOW RTLD_NOW
12223 # else
12224 # ifdef DL_NOW
12225 # define LT_DLLAZY_OR_NOW DL_NOW
12226 # else
12227 # define LT_DLLAZY_OR_NOW 0
12228 # endif
12229 # endif
12230 # endif
12231 # endif
12232 #endif
12233
12234 /* When -fvisbility=hidden is used, assume the code has been annotated
12235 correspondingly for the symbols needed. */
12236 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12237 void fnord () __attribute__((visibility("default")));
12238 #endif
12239
12240 void fnord () { int i=42; }
12241 int main ()
12242 {
12243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12244 int status = $lt_dlunknown;
12245
12246 if (self)
12247 {
12248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12249 else
12250 {
12251 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252 else puts (dlerror ());
12253 }
12254 /* dlclose (self); */
12255 }
12256 else
12257 puts (dlerror ());
12258
12259 return status;
12260 }
12261 _LT_EOF
12262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12263 (eval $ac_link) 2>&5
12264 ac_status=$?
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12267 (./conftest; exit; ) >&5 2>/dev/null
12268 lt_status=$?
12269 case x$lt_status in
12270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12273 esac
12274 else :
12275 # compilation failed
12276 lt_cv_dlopen_self_static=no
12277 fi
12278 fi
12279 rm -fr conftest*
12280
12281
12282 fi
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12284 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12285 fi
12286
12287 CPPFLAGS="$save_CPPFLAGS"
12288 LDFLAGS="$save_LDFLAGS"
12289 LIBS="$save_LIBS"
12290 ;;
12291 esac
12292
12293 case $lt_cv_dlopen_self in
12294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12295 *) enable_dlopen_self=unknown ;;
12296 esac
12297
12298 case $lt_cv_dlopen_self_static in
12299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12300 *) enable_dlopen_self_static=unknown ;;
12301 esac
12302 fi
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320 striplib=
12321 old_striplib=
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12323 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12328 $as_echo "yes" >&6; }
12329 else
12330 # FIXME - insert some real tests, host_os isn't really good enough
12331 case $host_os in
12332 darwin*)
12333 if test -n "$STRIP" ; then
12334 striplib="$STRIP -x"
12335 old_striplib="$STRIP -S"
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337 $as_echo "yes" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342 ;;
12343 *)
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12346 ;;
12347 esac
12348 fi
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361 # Report which library types will actually be built
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12363 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12365 $as_echo "$can_build_shared" >&6; }
12366
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12368 $as_echo_n "checking whether to build shared libraries... " >&6; }
12369 test "$can_build_shared" = "no" && enable_shared=no
12370
12371 # On AIX, shared libraries and static libraries use the same namespace, and
12372 # are all built from PIC.
12373 case $host_os in
12374 aix3*)
12375 test "$enable_shared" = yes && enable_static=no
12376 if test -n "$RANLIB"; then
12377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12378 postinstall_cmds='$RANLIB $lib'
12379 fi
12380 ;;
12381
12382 aix[4-9]*)
12383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12384 test "$enable_shared" = yes && enable_static=no
12385 fi
12386 ;;
12387 esac
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12389 $as_echo "$enable_shared" >&6; }
12390
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12392 $as_echo_n "checking whether to build static libraries... " >&6; }
12393 # Make sure either enable_shared or enable_static is yes.
12394 test "$enable_shared" = yes || enable_static=yes
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12396 $as_echo "$enable_static" >&6; }
12397
12398
12399
12400
12401 fi
12402 ac_ext=c
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12407
12408 CC="$lt_save_CC"
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422 ac_config_commands="$ac_config_commands libtool"
12423
12424
12425
12426
12427 # Only expand once:
12428
12429
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12431 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12432 if test "${ac_cv_path_SED+set}" = set; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12436 for ac_i in 1 2 3 4 5 6 7; do
12437 ac_script="$ac_script$as_nl$ac_script"
12438 done
12439 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12440 { ac_script=; unset ac_script;}
12441 if test -z "$SED"; then
12442 ac_path_SED_found=false
12443 # Loop through the user's path and test for each of PROGNAME-LIST
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12446 do
12447 IFS=$as_save_IFS
12448 test -z "$as_dir" && as_dir=.
12449 for ac_prog in sed gsed; do
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12452 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
12453 # Check for GNU ac_path_SED and select it if it is found.
12454 # Check for GNU $ac_path_SED
12455 case `"$ac_path_SED" --version 2>&1` in
12456 *GNU*)
12457 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12458 *)
12459 ac_count=0
12460 $as_echo_n 0123456789 >"conftest.in"
12461 while :
12462 do
12463 cat "conftest.in" "conftest.in" >"conftest.tmp"
12464 mv "conftest.tmp" "conftest.in"
12465 cp "conftest.in" "conftest.nl"
12466 $as_echo '' >> "conftest.nl"
12467 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12469 as_fn_arith $ac_count + 1 && ac_count=$as_val
12470 if test $ac_count -gt ${ac_path_SED_max-0}; then
12471 # Best one so far, save it but keep looking for a better one
12472 ac_cv_path_SED="$ac_path_SED"
12473 ac_path_SED_max=$ac_count
12474 fi
12475 # 10*(2^10) chars as input seems more than enough
12476 test $ac_count -gt 10 && break
12477 done
12478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12479 esac
12480
12481 $ac_path_SED_found && break 3
12482 done
12483 done
12484 done
12485 IFS=$as_save_IFS
12486 if test -z "$ac_cv_path_SED"; then
12487 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12488 fi
12489 else
12490 ac_cv_path_SED=$SED
12491 fi
12492
12493 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12495 $as_echo "$ac_cv_path_SED" >&6; }
12496 SED="$ac_cv_path_SED"
12497 rm -f conftest.sed
12498
12499
12500 # Checks for pkg-config packages
12501
12502 pkg_failed=no
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XI" >&5
12504 $as_echo_n "checking for XI... " >&6; }
12505
12506 if test -n "$XI_CFLAGS"; then
12507 pkg_cv_XI_CFLAGS="$XI_CFLAGS"
12508 elif test -n "$PKG_CONFIG"; then
12509 if test -n "$PKG_CONFIG" && \
12510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
12511 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
12512 ac_status=$?
12513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12514 test $ac_status = 0; }; then
12515 pkg_cv_XI_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
12516 else
12517 pkg_failed=yes
12518 fi
12519 else
12520 pkg_failed=untried
12521 fi
12522 if test -n "$XI_LIBS"; then
12523 pkg_cv_XI_LIBS="$XI_LIBS"
12524 elif test -n "$PKG_CONFIG"; then
12525 if test -n "$PKG_CONFIG" && \
12526 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902\""; } >&5
12527 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902") 2>&5
12528 ac_status=$?
12529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12530 test $ac_status = 0; }; then
12531 pkg_cv_XI_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>/dev/null`
12532 else
12533 pkg_failed=yes
12534 fi
12535 else
12536 pkg_failed=untried
12537 fi
12538
12539
12540
12541 if test $pkg_failed = yes; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12543 $as_echo "no" >&6; }
12544
12545 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12546 _pkg_short_errors_supported=yes
12547 else
12548 _pkg_short_errors_supported=no
12549 fi
12550 if test $_pkg_short_errors_supported = yes; then
12551 XI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
12552 else
12553 XI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902" 2>&1`
12554 fi
12555 # Put the nasty error message in config.log where it belongs
12556 echo "$XI_PKG_ERRORS" >&5
12557
12558 as_fn_error $? "Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:
12559
12560 $XI_PKG_ERRORS
12561
12562 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12563 installed software in a non-standard prefix.
12564
12565 Alternatively, you may set the environment variables XI_CFLAGS
12566 and XI_LIBS to avoid the need to call pkg-config.
12567 See the pkg-config man page for more details." "$LINENO" 5
12568
12569 elif test $pkg_failed = untried; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12574 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12575 is in your PATH or set the PKG_CONFIG environment variable to the full
12576 path to pkg-config.
12577
12578 Alternatively, you may set the environment variables XI_CFLAGS
12579 and XI_LIBS to avoid the need to call pkg-config.
12580 See the pkg-config man page for more details.
12581
12582 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12583 See \`config.log' for more details" "$LINENO" 5; }
12584
12585 else
12586 XI_CFLAGS=$pkg_cv_XI_CFLAGS
12587 XI_LIBS=$pkg_cv_XI_LIBS
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589 $as_echo "yes" >&6; }
12590
12591 fi
12592
12593 # Check for xmlto and asciidoc for man page conversion
12594 # (only needed by people building tarballs)
12595 if test "$have_xmlto" = yes && test "$have_asciidoc" = yes; then
12596 have_doctools=yes
12597 else
12598 have_doctools=no
12599 fi
12600 if test $have_doctools = yes; then
12601 HAVE_DOCTOOLS_TRUE=
12602 HAVE_DOCTOOLS_FALSE='#'
12603 else
12604 HAVE_DOCTOOLS_TRUE='#'
12605 HAVE_DOCTOOLS_FALSE=
12606 fi
12607
12608 if test $have_doctools = no; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&5
12610 $as_echo "$as_me: WARNING: xmlto or asciidoc not found - cannot create man pages without it" >&2;}
12611 fi
12612
12613 # Determine if the source for man pages is available
12614 # It may already be present (tarball) or can be generated using doctools
12615 if test -f "$srcdir/man/XAllowDeviceEvents.man" || \
12616 test $have_doctools = yes; then
12617 INSTALL_MANPAGES_TRUE=
12618 INSTALL_MANPAGES_FALSE='#'
12619 else
12620 INSTALL_MANPAGES_TRUE='#'
12621 INSTALL_MANPAGES_FALSE=
12622 fi
12623
12624
12625
12626 # Check whether --enable-malloc0returnsnull was given.
12627 if test "${enable_malloc0returnsnull+set}" = set; then :
12628 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
12629 else
12630 MALLOC_ZERO_RETURNS_NULL=auto
12631 fi
12632
12633
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
12635 $as_echo_n "checking whether malloc(0) returns NULL... " >&6; }
12636 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
12637 if test "$cross_compiling" = yes; then :
12638 MALLOC_ZERO_RETURNS_NULL=yes
12639 else
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642
12643 char *malloc();
12644 char *realloc();
12645 char *calloc();
12646 main() {
12647 char *m0, *r0, *c0, *p;
12648 m0 = malloc(0);
12649 p = malloc(10);
12650 r0 = realloc(p,0);
12651 c0 = calloc(0);
12652 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_run "$LINENO"; then :
12656 MALLOC_ZERO_RETURNS_NULL=yes
12657 else
12658 MALLOC_ZERO_RETURNS_NULL=no
12659 fi
12660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12661 conftest.$ac_objext conftest.beam conftest.$ac_ext
12662 fi
12663
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
12666 $as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; }
12667
12668 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
12669 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
12670 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
12671 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
12672 else
12673 MALLOC_ZERO_CFLAGS=""
12674 XMALLOC_ZERO_CFLAGS=""
12675 XTMALLOC_ZERO_CFLAGS=""
12676 fi
12677
12678
12679
12680
12681
12682
12683 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile doc/Makefile specs/Makefile xi.pc"
12684
12685 cat >confcache <<\_ACEOF
12686 # This file is a shell script that caches the results of configure
12687 # tests run on this system so they can be shared between configure
12688 # scripts and configure runs, see configure's option --config-cache.
12689 # It is not useful on other systems. If it contains results you don't
12690 # want to keep, you may remove or edit it.
12691 #
12692 # config.status only pays attention to the cache file if you give it
12693 # the --recheck option to rerun configure.
12694 #
12695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12697 # following values.
12698
12699 _ACEOF
12700
12701 # The following way of writing the cache mishandles newlines in values,
12702 # but we know of no workaround that is simple, portable, and efficient.
12703 # So, we kill variables containing newlines.
12704 # Ultrix sh set writes to stderr and can't be redirected directly,
12705 # and sets the high bit in the cache file unless we assign to the vars.
12706 (
12707 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12708 eval ac_val=\$$ac_var
12709 case $ac_val in #(
12710 *${as_nl}*)
12711 case $ac_var in #(
12712 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12713 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12714 esac
12715 case $ac_var in #(
12716 _ | IFS | as_nl) ;; #(
12717 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12718 *) { eval $ac_var=; unset $ac_var;} ;;
12719 esac ;;
12720 esac
12721 done
12722
12723 (set) 2>&1 |
12724 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12725 *${as_nl}ac_space=\ *)
12726 # `set' does not quote correctly, so add quotes: double-quote
12727 # substitution turns \\\\ into \\, and sed turns \\ into \.
12728 sed -n \
12729 "s/'/'\\\\''/g;
12730 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12731 ;; #(
12732 *)
12733 # `set' quotes correctly as required by POSIX, so do not add quotes.
12734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12735 ;;
12736 esac |
12737 sort
12738 ) |
12739 sed '
12740 /^ac_cv_env_/b end
12741 t clear
12742 :clear
12743 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12744 t end
12745 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12746 :end' >>confcache
12747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12748 if test -w "$cache_file"; then
12749 test "x$cache_file" != "x/dev/null" &&
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12751 $as_echo "$as_me: updating cache $cache_file" >&6;}
12752 cat confcache >$cache_file
12753 else
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12755 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12756 fi
12757 fi
12758 rm -f confcache
12759
12760 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12761 # Let make expand exec_prefix.
12762 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12763
12764 DEFS=-DHAVE_CONFIG_H
12765
12766 ac_libobjs=
12767 ac_ltlibobjs=
12768 U=
12769 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12770 # 1. Remove the extension, and $U if already installed.
12771 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12772 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12773 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12774 # will be set to the directory where LIBOBJS objects are built.
12775 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12776 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12777 done
12778 LIBOBJS=$ac_libobjs
12779
12780 LTLIBOBJS=$ac_ltlibobjs
12781
12782
12783 if test -n "$EXEEXT"; then
12784 am__EXEEXT_TRUE=
12785 am__EXEEXT_FALSE='#'
12786 else
12787 am__EXEEXT_TRUE='#'
12788 am__EXEEXT_FALSE=
12789 fi
12790
12791 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12792 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12794 fi
12795 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12796 as_fn_error $? "conditional \"AMDEP\" was never defined.
12797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12798 fi
12799 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12800 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12802 fi
12803 if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
12804 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
12805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12806 fi
12807 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
12808 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
12809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12810 fi
12811 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
12812 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
12813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12814 fi
12815 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
12816 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
12817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12818 fi
12819 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
12820 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
12821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12822 fi
12823 if test -z "${HAVE_ASCIIDOC_TRUE}" && test -z "${HAVE_ASCIIDOC_FALSE}"; then
12824 as_fn_error $? "conditional \"HAVE_ASCIIDOC\" was never defined.
12825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12826 fi
12827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12828 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12830 fi
12831 if test -z "${HAVE_DOCTOOLS_TRUE}" && test -z "${HAVE_DOCTOOLS_FALSE}"; then
12832 as_fn_error $? "conditional \"HAVE_DOCTOOLS\" was never defined.
12833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12834 fi
12835 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
12836 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
12837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12838 fi
12839
12840 : ${CONFIG_STATUS=./config.status}
12841 ac_write_fail=0
12842 ac_clean_files_save=$ac_clean_files
12843 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12845 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12846 as_write_fail=0
12847 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12848 #! $SHELL
12849 # Generated by $as_me.
12850 # Run this file to recreate the current configuration.
12851 # Compiler output produced by configure, useful for debugging
12852 # configure, is in config.log if it exists.
12853
12854 debug=false
12855 ac_cs_recheck=false
12856 ac_cs_silent=false
12857
12858 SHELL=\${CONFIG_SHELL-$SHELL}
12859 export SHELL
12860 _ASEOF
12861 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12862 ## -------------------- ##
12863 ## M4sh Initialization. ##
12864 ## -------------------- ##
12865
12866 # Be more Bourne compatible
12867 DUALCASE=1; export DUALCASE # for MKS sh
12868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12869 emulate sh
12870 NULLCMD=:
12871 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12872 # is contrary to our usage. Disable this feature.
12873 alias -g '${1+"$@"}'='"$@"'
12874 setopt NO_GLOB_SUBST
12875 else
12876 case `(set -o) 2>/dev/null` in #(
12877 *posix*) :
12878 set -o posix ;; #(
12879 *) :
12880 ;;
12881 esac
12882 fi
12883
12884
12885 as_nl='
12886 '
12887 export as_nl
12888 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12889 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12891 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12892 # Prefer a ksh shell builtin over an external printf program on Solaris,
12893 # but without wasting forks for bash or zsh.
12894 if test -z "$BASH_VERSION$ZSH_VERSION" \
12895 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12896 as_echo='print -r --'
12897 as_echo_n='print -rn --'
12898 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12899 as_echo='printf %s\n'
12900 as_echo_n='printf %s'
12901 else
12902 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12903 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12904 as_echo_n='/usr/ucb/echo -n'
12905 else
12906 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12907 as_echo_n_body='eval
12908 arg=$1;
12909 case $arg in #(
12910 *"$as_nl"*)
12911 expr "X$arg" : "X\\(.*\\)$as_nl";
12912 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12913 esac;
12914 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12915 '
12916 export as_echo_n_body
12917 as_echo_n='sh -c $as_echo_n_body as_echo'
12918 fi
12919 export as_echo_body
12920 as_echo='sh -c $as_echo_body as_echo'
12921 fi
12922
12923 # The user is always right.
12924 if test "${PATH_SEPARATOR+set}" != set; then
12925 PATH_SEPARATOR=:
12926 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12927 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12928 PATH_SEPARATOR=';'
12929 }
12930 fi
12931
12932
12933 # IFS
12934 # We need space, tab and new line, in precisely that order. Quoting is
12935 # there to prevent editors from complaining about space-tab.
12936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12937 # splitting by setting IFS to empty value.)
12938 IFS=" "" $as_nl"
12939
12940 # Find who we are. Look in the path if we contain no directory separator.
12941 case $0 in #((
12942 *[\\/]* ) as_myself=$0 ;;
12943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12945 do
12946 IFS=$as_save_IFS
12947 test -z "$as_dir" && as_dir=.
12948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12949 done
12950 IFS=$as_save_IFS
12951
12952 ;;
12953 esac
12954 # We did not find ourselves, most probably we were run as `sh COMMAND'
12955 # in which case we are not to be found in the path.
12956 if test "x$as_myself" = x; then
12957 as_myself=$0
12958 fi
12959 if test ! -f "$as_myself"; then
12960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12961 exit 1
12962 fi
12963
12964 # Unset variables that we do not need and which cause bugs (e.g. in
12965 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12966 # suppresses any "Segmentation fault" message there. '((' could
12967 # trigger a bug in pdksh 5.2.14.
12968 for as_var in BASH_ENV ENV MAIL MAILPATH
12969 do eval test x\${$as_var+set} = xset \
12970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12971 done
12972 PS1='$ '
12973 PS2='> '
12974 PS4='+ '
12975
12976 # NLS nuisances.
12977 LC_ALL=C
12978 export LC_ALL
12979 LANGUAGE=C
12980 export LANGUAGE
12981
12982 # CDPATH.
12983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12984
12985
12986 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12987 # ----------------------------------------
12988 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12989 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12990 # script with STATUS, using 1 if that was 0.
12991 as_fn_error ()
12992 {
12993 as_status=$1; test $as_status -eq 0 && as_status=1
12994 if test "$4"; then
12995 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12996 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12997 fi
12998 $as_echo "$as_me: error: $2" >&2
12999 as_fn_exit $as_status
13000 } # as_fn_error
13001
13002
13003 # as_fn_set_status STATUS
13004 # -----------------------
13005 # Set $? to STATUS, without forking.
13006 as_fn_set_status ()
13007 {
13008 return $1
13009 } # as_fn_set_status
13010
13011 # as_fn_exit STATUS
13012 # -----------------
13013 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13014 as_fn_exit ()
13015 {
13016 set +e
13017 as_fn_set_status $1
13018 exit $1
13019 } # as_fn_exit
13020
13021 # as_fn_unset VAR
13022 # ---------------
13023 # Portably unset VAR.
13024 as_fn_unset ()
13025 {
13026 { eval $1=; unset $1;}
13027 }
13028 as_unset=as_fn_unset
13029 # as_fn_append VAR VALUE
13030 # ----------------------
13031 # Append the text in VALUE to the end of the definition contained in VAR. Take
13032 # advantage of any shell optimizations that allow amortized linear growth over
13033 # repeated appends, instead of the typical quadratic growth present in naive
13034 # implementations.
13035 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13036 eval 'as_fn_append ()
13037 {
13038 eval $1+=\$2
13039 }'
13040 else
13041 as_fn_append ()
13042 {
13043 eval $1=\$$1\$2
13044 }
13045 fi # as_fn_append
13046
13047 # as_fn_arith ARG...
13048 # ------------------
13049 # Perform arithmetic evaluation on the ARGs, and store the result in the
13050 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13051 # must be portable across $(()) and expr.
13052 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13053 eval 'as_fn_arith ()
13054 {
13055 as_val=$(( $* ))
13056 }'
13057 else
13058 as_fn_arith ()
13059 {
13060 as_val=`expr "$@" || test $? -eq 1`
13061 }
13062 fi # as_fn_arith
13063
13064
13065 if expr a : '\(a\)' >/dev/null 2>&1 &&
13066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13067 as_expr=expr
13068 else
13069 as_expr=false
13070 fi
13071
13072 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13073 as_basename=basename
13074 else
13075 as_basename=false
13076 fi
13077
13078 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13079 as_dirname=dirname
13080 else
13081 as_dirname=false
13082 fi
13083
13084 as_me=`$as_basename -- "$0" ||
13085 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13086 X"$0" : 'X\(//\)$' \| \
13087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13088 $as_echo X/"$0" |
13089 sed '/^.*\/\([^/][^/]*\)\/*$/{
13090 s//\1/
13091 q
13092 }
13093 /^X\/\(\/\/\)$/{
13094 s//\1/
13095 q
13096 }
13097 /^X\/\(\/\).*/{
13098 s//\1/
13099 q
13100 }
13101 s/.*/./; q'`
13102
13103 # Avoid depending upon Character Ranges.
13104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13107 as_cr_digits='0123456789'
13108 as_cr_alnum=$as_cr_Letters$as_cr_digits
13109
13110 ECHO_C= ECHO_N= ECHO_T=
13111 case `echo -n x` in #(((((
13112 -n*)
13113 case `echo 'xy\c'` in
13114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13115 xy) ECHO_C='\c';;
13116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13117 ECHO_T=' ';;
13118 esac;;
13119 *)
13120 ECHO_N='-n';;
13121 esac
13122
13123 rm -f conf$$ conf$$.exe conf$$.file
13124 if test -d conf$$.dir; then
13125 rm -f conf$$.dir/conf$$.file
13126 else
13127 rm -f conf$$.dir
13128 mkdir conf$$.dir 2>/dev/null
13129 fi
13130 if (echo >conf$$.file) 2>/dev/null; then
13131 if ln -s conf$$.file conf$$ 2>/dev/null; then
13132 as_ln_s='ln -s'
13133 # ... but there are two gotchas:
13134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13136 # In both cases, we have to default to `cp -p'.
13137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13138 as_ln_s='cp -p'
13139 elif ln conf$$.file conf$$ 2>/dev/null; then
13140 as_ln_s=ln
13141 else
13142 as_ln_s='cp -p'
13143 fi
13144 else
13145 as_ln_s='cp -p'
13146 fi
13147 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13148 rmdir conf$$.dir 2>/dev/null
13149
13150
13151 # as_fn_mkdir_p
13152 # -------------
13153 # Create "$as_dir" as a directory, including parents if necessary.
13154 as_fn_mkdir_p ()
13155 {
13156
13157 case $as_dir in #(
13158 -*) as_dir=./$as_dir;;
13159 esac
13160 test -d "$as_dir" || eval $as_mkdir_p || {
13161 as_dirs=
13162 while :; do
13163 case $as_dir in #(
13164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13165 *) as_qdir=$as_dir;;
13166 esac
13167 as_dirs="'$as_qdir' $as_dirs"
13168 as_dir=`$as_dirname -- "$as_dir" ||
13169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13170 X"$as_dir" : 'X\(//\)[^/]' \| \
13171 X"$as_dir" : 'X\(//\)$' \| \
13172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13173 $as_echo X"$as_dir" |
13174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13175 s//\1/
13176 q
13177 }
13178 /^X\(\/\/\)[^/].*/{
13179 s//\1/
13180 q
13181 }
13182 /^X\(\/\/\)$/{
13183 s//\1/
13184 q
13185 }
13186 /^X\(\/\).*/{
13187 s//\1/
13188 q
13189 }
13190 s/.*/./; q'`
13191 test -d "$as_dir" && break
13192 done
13193 test -z "$as_dirs" || eval "mkdir $as_dirs"
13194 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13195
13196
13197 } # as_fn_mkdir_p
13198 if mkdir -p . 2>/dev/null; then
13199 as_mkdir_p='mkdir -p "$as_dir"'
13200 else
13201 test -d ./-p && rmdir ./-p
13202 as_mkdir_p=false
13203 fi
13204
13205 if test -x / >/dev/null 2>&1; then
13206 as_test_x='test -x'
13207 else
13208 if ls -dL / >/dev/null 2>&1; then
13209 as_ls_L_option=L
13210 else
13211 as_ls_L_option=
13212 fi
13213 as_test_x='
13214 eval sh -c '\''
13215 if test -d "$1"; then
13216 test -d "$1/.";
13217 else
13218 case $1 in #(
13219 -*)set "./$1";;
13220 esac;
13221 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13222 ???[sx]*):;;*)false;;esac;fi
13223 '\'' sh
13224 '
13225 fi
13226 as_executable_p=$as_test_x
13227
13228 # Sed expression to map a string onto a valid CPP name.
13229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13230
13231 # Sed expression to map a string onto a valid variable name.
13232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13233
13234
13235 exec 6>&1
13236 ## ----------------------------------- ##
13237 ## Main body of $CONFIG_STATUS script. ##
13238 ## ----------------------------------- ##
13239 _ASEOF
13240 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13241
13242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13243 # Save the log message, to keep $0 and so on meaningful, and to
13244 # report actual input values of CONFIG_FILES etc. instead of their
13245 # values after options handling.
13246 ac_log="
13247 This file was extended by libXi $as_me 1.4.1, which was
13248 generated by GNU Autoconf 2.66. Invocation command line was
13249
13250 CONFIG_FILES = $CONFIG_FILES
13251 CONFIG_HEADERS = $CONFIG_HEADERS
13252 CONFIG_LINKS = $CONFIG_LINKS
13253 CONFIG_COMMANDS = $CONFIG_COMMANDS
13254 $ $0 $@
13255
13256 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13257 "
13258
13259 _ACEOF
13260
13261 case $ac_config_files in *"
13262 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13263 esac
13264
13265 case $ac_config_headers in *"
13266 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13267 esac
13268
13269
13270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13271 # Files that config.status was made for.
13272 config_files="$ac_config_files"
13273 config_headers="$ac_config_headers"
13274 config_commands="$ac_config_commands"
13275
13276 _ACEOF
13277
13278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13279 ac_cs_usage="\
13280 \`$as_me' instantiates files and other configuration actions
13281 from templates according to the current configuration. Unless the files
13282 and actions are specified as TAGs, all are instantiated by default.
13283
13284 Usage: $0 [OPTION]... [TAG]...
13285
13286 -h, --help print this help, then exit
13287 -V, --version print version number and configuration settings, then exit
13288 --config print configuration, then exit
13289 -q, --quiet, --silent
13290 do not print progress messages
13291 -d, --debug don't remove temporary files
13292 --recheck update $as_me by reconfiguring in the same conditions
13293 --file=FILE[:TEMPLATE]
13294 instantiate the configuration file FILE
13295 --header=FILE[:TEMPLATE]
13296 instantiate the configuration header FILE
13297
13298 Configuration files:
13299 $config_files
13300
13301 Configuration headers:
13302 $config_headers
13303
13304 Configuration commands:
13305 $config_commands
13306
13307 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
13308
13309 _ACEOF
13310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13311 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13312 ac_cs_version="\\
13313 libXi config.status 1.4.1
13314 configured by $0, generated by GNU Autoconf 2.66,
13315 with options \\"\$ac_cs_config\\"
13316
13317 Copyright (C) 2010 Free Software Foundation, Inc.
13318 This config.status script is free software; the Free Software Foundation
13319 gives unlimited permission to copy, distribute and modify it."
13320
13321 ac_pwd='$ac_pwd'
13322 srcdir='$srcdir'
13323 INSTALL='$INSTALL'
13324 MKDIR_P='$MKDIR_P'
13325 AWK='$AWK'
13326 test -n "\$AWK" || AWK=awk
13327 _ACEOF
13328
13329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13330 # The default lists apply if the user does not specify any file.
13331 ac_need_defaults=:
13332 while test $# != 0
13333 do
13334 case $1 in
13335 --*=*)
13336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13337 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13338 ac_shift=:
13339 ;;
13340 *)
13341 ac_option=$1
13342 ac_optarg=$2
13343 ac_shift=shift
13344 ;;
13345 esac
13346
13347 case $ac_option in
13348 # Handling of the options.
13349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13350 ac_cs_recheck=: ;;
13351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13352 $as_echo "$ac_cs_version"; exit ;;
13353 --config | --confi | --conf | --con | --co | --c )
13354 $as_echo "$ac_cs_config"; exit ;;
13355 --debug | --debu | --deb | --de | --d | -d )
13356 debug=: ;;
13357 --file | --fil | --fi | --f )
13358 $ac_shift
13359 case $ac_optarg in
13360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13361 esac
13362 as_fn_append CONFIG_FILES " '$ac_optarg'"
13363 ac_need_defaults=false;;
13364 --header | --heade | --head | --hea )
13365 $ac_shift
13366 case $ac_optarg in
13367 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13368 esac
13369 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13370 ac_need_defaults=false;;
13371 --he | --h)
13372 # Conflict between --help and --header
13373 as_fn_error $? "ambiguous option: \`$1'
13374 Try \`$0 --help' for more information.";;
13375 --help | --hel | -h )
13376 $as_echo "$ac_cs_usage"; exit ;;
13377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13378 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13379 ac_cs_silent=: ;;
13380
13381 # This is an error.
13382 -*) as_fn_error $? "unrecognized option: \`$1'
13383 Try \`$0 --help' for more information." ;;
13384
13385 *) as_fn_append ac_config_targets " $1"
13386 ac_need_defaults=false ;;
13387
13388 esac
13389 shift
13390 done
13391
13392 ac_configure_extra_args=
13393
13394 if $ac_cs_silent; then
13395 exec 6>/dev/null
13396 ac_configure_extra_args="$ac_configure_extra_args --silent"
13397 fi
13398
13399 _ACEOF
13400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13401 if \$ac_cs_recheck; then
13402 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13403 shift
13404 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13405 CONFIG_SHELL='$SHELL'
13406 export CONFIG_SHELL
13407 exec "\$@"
13408 fi
13409
13410 _ACEOF
13411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412 exec 5>>config.log
13413 {
13414 echo
13415 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13416 ## Running $as_me. ##
13417 _ASBOX
13418 $as_echo "$ac_log"
13419 } >&5
13420
13421 _ACEOF
13422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13423 #
13424 # INIT-COMMANDS
13425 #
13426 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13427
13428
13429 # The HP-UX ksh and POSIX shell print the target directory to stdout
13430 # if CDPATH is set.
13431 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13432
13433 sed_quote_subst='$sed_quote_subst'
13434 double_quote_subst='$double_quote_subst'
13435 delay_variable_subst='$delay_variable_subst'
13436 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13437 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13438 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13439 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13440 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13441 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13442 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13443 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13444 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13445 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13446 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13447 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13448 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13449 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13450 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13451 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13452 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13453 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13454 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13455 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13456 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13457 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13458 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13459 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13460 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13461 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13462 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13463 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13464 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13465 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13466 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13467 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13468 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13469 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13470 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13471 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13472 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13473 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13474 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13475 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13476 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13477 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13478 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13479 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13480 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13481 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13482 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13483 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13484 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"`'
13485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13488 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13489 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13493 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13494 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13495 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13496 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13497 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13498 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13499 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13500 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13501 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13502 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13503 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13504 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13505 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13506 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13507 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13508 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13509 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13510 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13511 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13512 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13513 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13514 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13515 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13516 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13517 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13518 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13519 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13520 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13521 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13522 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13523 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13524 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13525 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13526 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13527 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13528 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13529 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13530 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13531 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13532 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13533 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13534 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13535 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13536 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13537 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13538 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13539 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13540 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13541 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13542 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13543 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13544 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13545 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13546 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13547 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13548 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13549 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13550 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13551 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13552 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13553 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13554 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13555 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13556
13557 LTCC='$LTCC'
13558 LTCFLAGS='$LTCFLAGS'
13559 compiler='$compiler_DEFAULT'
13560
13561 # A function that is used when there is no print builtin or printf.
13562 func_fallback_echo ()
13563 {
13564 eval 'cat <<_LTECHO_EOF
13565 \$1
13566 _LTECHO_EOF'
13567 }
13568
13569 # Quote evaled strings.
13570 for var in SHELL \
13571 ECHO \
13572 SED \
13573 GREP \
13574 EGREP \
13575 FGREP \
13576 LD \
13577 NM \
13578 LN_S \
13579 lt_SP2NL \
13580 lt_NL2SP \
13581 reload_flag \
13582 OBJDUMP \
13583 deplibs_check_method \
13584 file_magic_cmd \
13585 AR \
13586 AR_FLAGS \
13587 STRIP \
13588 RANLIB \
13589 CC \
13590 CFLAGS \
13591 compiler \
13592 lt_cv_sys_global_symbol_pipe \
13593 lt_cv_sys_global_symbol_to_cdecl \
13594 lt_cv_sys_global_symbol_to_c_name_address \
13595 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13596 lt_prog_compiler_no_builtin_flag \
13597 lt_prog_compiler_wl \
13598 lt_prog_compiler_pic \
13599 lt_prog_compiler_static \
13600 lt_cv_prog_compiler_c_o \
13601 need_locks \
13602 DSYMUTIL \
13603 NMEDIT \
13604 LIPO \
13605 OTOOL \
13606 OTOOL64 \
13607 shrext_cmds \
13608 export_dynamic_flag_spec \
13609 whole_archive_flag_spec \
13610 compiler_needs_object \
13611 with_gnu_ld \
13612 allow_undefined_flag \
13613 no_undefined_flag \
13614 hardcode_libdir_flag_spec \
13615 hardcode_libdir_flag_spec_ld \
13616 hardcode_libdir_separator \
13617 fix_srcfile_path \
13618 exclude_expsyms \
13619 include_expsyms \
13620 file_list_spec \
13621 variables_saved_for_relink \
13622 libname_spec \
13623 library_names_spec \
13624 soname_spec \
13625 install_override_mode \
13626 finish_eval \
13627 old_striplib \
13628 striplib; do
13629 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13630 *[\\\\\\\`\\"\\\$]*)
13631 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13632 ;;
13633 *)
13634 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13635 ;;
13636 esac
13637 done
13638
13639 # Double-quote double-evaled strings.
13640 for var in reload_cmds \
13641 old_postinstall_cmds \
13642 old_postuninstall_cmds \
13643 old_archive_cmds \
13644 extract_expsyms_cmds \
13645 old_archive_from_new_cmds \
13646 old_archive_from_expsyms_cmds \
13647 archive_cmds \
13648 archive_expsym_cmds \
13649 module_cmds \
13650 module_expsym_cmds \
13651 export_symbols_cmds \
13652 prelink_cmds \
13653 postinstall_cmds \
13654 postuninstall_cmds \
13655 finish_cmds \
13656 sys_lib_search_path_spec \
13657 sys_lib_dlsearch_path_spec; do
13658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13659 *[\\\\\\\`\\"\\\$]*)
13660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13661 ;;
13662 *)
13663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13664 ;;
13665 esac
13666 done
13667
13668 ac_aux_dir='$ac_aux_dir'
13669 xsi_shell='$xsi_shell'
13670 lt_shell_append='$lt_shell_append'
13671
13672 # See if we are running on zsh, and set the options which allow our
13673 # commands through without removal of \ escapes INIT.
13674 if test -n "\${ZSH_VERSION+set}" ; then
13675 setopt NO_GLOB_SUBST
13676 fi
13677
13678
13679 PACKAGE='$PACKAGE'
13680 VERSION='$VERSION'
13681 TIMESTAMP='$TIMESTAMP'
13682 RM='$RM'
13683 ofile='$ofile'
13684
13685
13686
13687
13688 _ACEOF
13689
13690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13691
13692 # Handling of arguments.
13693 for ac_config_target in $ac_config_targets
13694 do
13695 case $ac_config_target in
13696 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13697 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13698 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13699 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13700 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13701 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13702 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13703 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
13704 "xi.pc") CONFIG_FILES="$CONFIG_FILES xi.pc" ;;
13705
13706 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13707 esac
13708 done
13709
13710
13711 # If the user did not use the arguments to specify the items to instantiate,
13712 # then the envvar interface is used. Set only those that are not.
13713 # We use the long form for the default assignment because of an extremely
13714 # bizarre bug on SunOS 4.1.3.
13715 if $ac_need_defaults; then
13716 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13717 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13718 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13719 fi
13720
13721 # Have a temporary directory for convenience. Make it in the build tree
13722 # simply because there is no reason against having it here, and in addition,
13723 # creating and moving files from /tmp can sometimes cause problems.
13724 # Hook for its removal unless debugging.
13725 # Note that there is a small window in which the directory will not be cleaned:
13726 # after its creation but before its name has been assigned to `$tmp'.
13727 $debug ||
13728 {
13729 tmp=
13730 trap 'exit_status=$?
13731 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13732 ' 0
13733 trap 'as_fn_exit 1' 1 2 13 15
13734 }
13735 # Create a (secure) tmp directory for tmp files.
13736
13737 {
13738 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13739 test -n "$tmp" && test -d "$tmp"
13740 } ||
13741 {
13742 tmp=./conf$$-$RANDOM
13743 (umask 077 && mkdir "$tmp")
13744 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13745
13746 # Set up the scripts for CONFIG_FILES section.
13747 # No need to generate them if there are no CONFIG_FILES.
13748 # This happens for instance with `./config.status config.h'.
13749 if test -n "$CONFIG_FILES"; then
13750
13751
13752 ac_cr=`echo X | tr X '\015'`
13753 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13754 # But we know of no other shell where ac_cr would be empty at this
13755 # point, so we can use a bashism as a fallback.
13756 if test "x$ac_cr" = x; then
13757 eval ac_cr=\$\'\\r\'
13758 fi
13759 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13760 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13761 ac_cs_awk_cr='\\r'
13762 else
13763 ac_cs_awk_cr=$ac_cr
13764 fi
13765
13766 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13767 _ACEOF
13768
13769
13770 {
13771 echo "cat >conf$$subs.awk <<_ACEOF" &&
13772 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13773 echo "_ACEOF"
13774 } >conf$$subs.sh ||
13775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13776 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13777 ac_delim='%!_!# '
13778 for ac_last_try in false false false false false :; do
13779 . ./conf$$subs.sh ||
13780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13781
13782 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13783 if test $ac_delim_n = $ac_delim_num; then
13784 break
13785 elif $ac_last_try; then
13786 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13787 else
13788 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13789 fi
13790 done
13791 rm -f conf$$subs.sh
13792
13793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13794 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13795 _ACEOF
13796 sed -n '
13797 h
13798 s/^/S["/; s/!.*/"]=/
13799 p
13800 g
13801 s/^[^!]*!//
13802 :repl
13803 t repl
13804 s/'"$ac_delim"'$//
13805 t delim
13806 :nl
13807 h
13808 s/\(.\{148\}\)..*/\1/
13809 t more1
13810 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13811 p
13812 n
13813 b repl
13814 :more1
13815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13816 p
13817 g
13818 s/.\{148\}//
13819 t nl
13820 :delim
13821 h
13822 s/\(.\{148\}\)..*/\1/
13823 t more2
13824 s/["\\]/\\&/g; s/^/"/; s/$/"/
13825 p
13826 b
13827 :more2
13828 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13829 p
13830 g
13831 s/.\{148\}//
13832 t delim
13833 ' <conf$$subs.awk | sed '
13834 /^[^""]/{
13835 N
13836 s/\n//
13837 }
13838 ' >>$CONFIG_STATUS || ac_write_fail=1
13839 rm -f conf$$subs.awk
13840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13841 _ACAWK
13842 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13843 for (key in S) S_is_set[key] = 1
13844 FS = ""
13845
13846 }
13847 {
13848 line = $ 0
13849 nfields = split(line, field, "@")
13850 substed = 0
13851 len = length(field[1])
13852 for (i = 2; i < nfields; i++) {
13853 key = field[i]
13854 keylen = length(key)
13855 if (S_is_set[key]) {
13856 value = S[key]
13857 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13858 len += length(value) + length(field[++i])
13859 substed = 1
13860 } else
13861 len += 1 + keylen
13862 }
13863
13864 print line
13865 }
13866
13867 _ACAWK
13868 _ACEOF
13869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13870 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13871 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13872 else
13873 cat
13874 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13875 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13876 _ACEOF
13877
13878 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13879 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13880 # trailing colons and then remove the whole line if VPATH becomes empty
13881 # (actually we leave an empty line to preserve line numbers).
13882 if test "x$srcdir" = x.; then
13883 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13884 h
13885 s///
13886 s/^/:/
13887 s/[ ]*$/:/
13888 s/:\$(srcdir):/:/g
13889 s/:\${srcdir}:/:/g
13890 s/:@srcdir@:/:/g
13891 s/^:*//
13892 s/:*$//
13893 x
13894 s/\(=[ ]*\).*/\1/
13895 G
13896 s/\n//
13897 s/^[^=]*=[ ]*$//
13898 }'
13899 fi
13900
13901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13902 fi # test -n "$CONFIG_FILES"
13903
13904 # Set up the scripts for CONFIG_HEADERS section.
13905 # No need to generate them if there are no CONFIG_HEADERS.
13906 # This happens for instance with `./config.status Makefile'.
13907 if test -n "$CONFIG_HEADERS"; then
13908 cat >"$tmp/defines.awk" <<\_ACAWK ||
13909 BEGIN {
13910 _ACEOF
13911
13912 # Transform confdefs.h into an awk script `defines.awk', embedded as
13913 # here-document in config.status, that substitutes the proper values into
13914 # config.h.in to produce config.h.
13915
13916 # Create a delimiter string that does not exist in confdefs.h, to ease
13917 # handling of long lines.
13918 ac_delim='%!_!# '
13919 for ac_last_try in false false :; do
13920 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13921 if test -z "$ac_t"; then
13922 break
13923 elif $ac_last_try; then
13924 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13925 else
13926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13927 fi
13928 done
13929
13930 # For the awk script, D is an array of macro values keyed by name,
13931 # likewise P contains macro parameters if any. Preserve backslash
13932 # newline sequences.
13933
13934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13935 sed -n '
13936 s/.\{148\}/&'"$ac_delim"'/g
13937 t rset
13938 :rset
13939 s/^[ ]*#[ ]*define[ ][ ]*/ /
13940 t def
13941 d
13942 :def
13943 s/\\$//
13944 t bsnl
13945 s/["\\]/\\&/g
13946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13947 D["\1"]=" \3"/p
13948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13949 d
13950 :bsnl
13951 s/["\\]/\\&/g
13952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13953 D["\1"]=" \3\\\\\\n"\\/p
13954 t cont
13955 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13956 t cont
13957 d
13958 :cont
13959 n
13960 s/.\{148\}/&'"$ac_delim"'/g
13961 t clear
13962 :clear
13963 s/\\$//
13964 t bsnlc
13965 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13966 d
13967 :bsnlc
13968 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13969 b cont
13970 ' <confdefs.h | sed '
13971 s/'"$ac_delim"'/"\\\
13972 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13973
13974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13975 for (key in D) D_is_set[key] = 1
13976 FS = ""
13977 }
13978 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13979 line = \$ 0
13980 split(line, arg, " ")
13981 if (arg[1] == "#") {
13982 defundef = arg[2]
13983 mac1 = arg[3]
13984 } else {
13985 defundef = substr(arg[1], 2)
13986 mac1 = arg[2]
13987 }
13988 split(mac1, mac2, "(") #)
13989 macro = mac2[1]
13990 prefix = substr(line, 1, index(line, defundef) - 1)
13991 if (D_is_set[macro]) {
13992 # Preserve the white space surrounding the "#".
13993 print prefix "define", macro P[macro] D[macro]
13994 next
13995 } else {
13996 # Replace #undef with comments. This is necessary, for example,
13997 # in the case of _POSIX_SOURCE, which is predefined and required
13998 # on some systems where configure will not decide to define it.
13999 if (defundef == "undef") {
14000 print "/*", prefix defundef, macro, "*/"
14001 next
14002 }
14003 }
14004 }
14005 { print }
14006 _ACAWK
14007 _ACEOF
14008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14010 fi # test -n "$CONFIG_HEADERS"
14011
14012
14013 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14014 shift
14015 for ac_tag
14016 do
14017 case $ac_tag in
14018 :[FHLC]) ac_mode=$ac_tag; continue;;
14019 esac
14020 case $ac_mode$ac_tag in
14021 :[FHL]*:*);;
14022 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14023 :[FH]-) ac_tag=-:-;;
14024 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14025 esac
14026 ac_save_IFS=$IFS
14027 IFS=:
14028 set x $ac_tag
14029 IFS=$ac_save_IFS
14030 shift
14031 ac_file=$1
14032 shift
14033
14034 case $ac_mode in
14035 :L) ac_source=$1;;
14036 :[FH])
14037 ac_file_inputs=
14038 for ac_f
14039 do
14040 case $ac_f in
14041 -) ac_f="$tmp/stdin";;
14042 *) # Look for the file first in the build tree, then in the source tree
14043 # (if the path is not absolute). The absolute path cannot be DOS-style,
14044 # because $ac_f cannot contain `:'.
14045 test -f "$ac_f" ||
14046 case $ac_f in
14047 [\\/$]*) false;;
14048 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14049 esac ||
14050 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14051 esac
14052 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14053 as_fn_append ac_file_inputs " '$ac_f'"
14054 done
14055
14056 # Let's still pretend it is `configure' which instantiates (i.e., don't
14057 # use $as_me), people would be surprised to read:
14058 # /* config.h. Generated by config.status. */
14059 configure_input='Generated from '`
14060 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14061 `' by configure.'
14062 if test x"$ac_file" != x-; then
14063 configure_input="$ac_file. $configure_input"
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14065 $as_echo "$as_me: creating $ac_file" >&6;}
14066 fi
14067 # Neutralize special characters interpreted by sed in replacement strings.
14068 case $configure_input in #(
14069 *\&* | *\|* | *\\* )
14070 ac_sed_conf_input=`$as_echo "$configure_input" |
14071 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14072 *) ac_sed_conf_input=$configure_input;;
14073 esac
14074
14075 case $ac_tag in
14076 *:-:* | *:-) cat >"$tmp/stdin" \
14077 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14078 esac
14079 ;;
14080 esac
14081
14082 ac_dir=`$as_dirname -- "$ac_file" ||
14083 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14084 X"$ac_file" : 'X\(//\)[^/]' \| \
14085 X"$ac_file" : 'X\(//\)$' \| \
14086 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14087 $as_echo X"$ac_file" |
14088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14089 s//\1/
14090 q
14091 }
14092 /^X\(\/\/\)[^/].*/{
14093 s//\1/
14094 q
14095 }
14096 /^X\(\/\/\)$/{
14097 s//\1/
14098 q
14099 }
14100 /^X\(\/\).*/{
14101 s//\1/
14102 q
14103 }
14104 s/.*/./; q'`
14105 as_dir="$ac_dir"; as_fn_mkdir_p
14106 ac_builddir=.
14107
14108 case "$ac_dir" in
14109 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14110 *)
14111 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14112 # A ".." for each directory in $ac_dir_suffix.
14113 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14114 case $ac_top_builddir_sub in
14115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14117 esac ;;
14118 esac
14119 ac_abs_top_builddir=$ac_pwd
14120 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14121 # for backward compatibility:
14122 ac_top_builddir=$ac_top_build_prefix
14123
14124 case $srcdir in
14125 .) # We are building in place.
14126 ac_srcdir=.
14127 ac_top_srcdir=$ac_top_builddir_sub
14128 ac_abs_top_srcdir=$ac_pwd ;;
14129 [\\/]* | ?:[\\/]* ) # Absolute name.
14130 ac_srcdir=$srcdir$ac_dir_suffix;
14131 ac_top_srcdir=$srcdir
14132 ac_abs_top_srcdir=$srcdir ;;
14133 *) # Relative name.
14134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14135 ac_top_srcdir=$ac_top_build_prefix$srcdir
14136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14137 esac
14138 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14139
14140
14141 case $ac_mode in
14142 :F)
14143 #
14144 # CONFIG_FILE
14145 #
14146
14147 case $INSTALL in
14148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14150 esac
14151 ac_MKDIR_P=$MKDIR_P
14152 case $MKDIR_P in
14153 [\\/$]* | ?:[\\/]* ) ;;
14154 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14155 esac
14156 _ACEOF
14157
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 # If the template does not know about datarootdir, expand it.
14160 # FIXME: This hack should be removed a few years after 2.60.
14161 ac_datarootdir_hack=; ac_datarootdir_seen=
14162 ac_sed_dataroot='
14163 /datarootdir/ {
14164 p
14165 q
14166 }
14167 /@datadir@/p
14168 /@docdir@/p
14169 /@infodir@/p
14170 /@localedir@/p
14171 /@mandir@/p'
14172 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14173 *datarootdir*) ac_datarootdir_seen=yes;;
14174 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14176 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14177 _ACEOF
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179 ac_datarootdir_hack='
14180 s&@datadir@&$datadir&g
14181 s&@docdir@&$docdir&g
14182 s&@infodir@&$infodir&g
14183 s&@localedir@&$localedir&g
14184 s&@mandir@&$mandir&g
14185 s&\\\${datarootdir}&$datarootdir&g' ;;
14186 esac
14187 _ACEOF
14188
14189 # Neutralize VPATH when `$srcdir' = `.'.
14190 # Shell code in configure.ac might set extrasub.
14191 # FIXME: do we really want to maintain this feature?
14192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14193 ac_sed_extra="$ac_vpsub
14194 $extrasub
14195 _ACEOF
14196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197 :t
14198 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14199 s|@configure_input@|$ac_sed_conf_input|;t t
14200 s&@top_builddir@&$ac_top_builddir_sub&;t t
14201 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14202 s&@srcdir@&$ac_srcdir&;t t
14203 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14204 s&@top_srcdir@&$ac_top_srcdir&;t t
14205 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14206 s&@builddir@&$ac_builddir&;t t
14207 s&@abs_builddir@&$ac_abs_builddir&;t t
14208 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14209 s&@INSTALL@&$ac_INSTALL&;t t
14210 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14211 $ac_datarootdir_hack
14212 "
14213 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14215
14216 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14217 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14218 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14220 which seems to be undefined. Please make sure it is defined" >&5
14221 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14222 which seems to be undefined. Please make sure it is defined" >&2;}
14223
14224 rm -f "$tmp/stdin"
14225 case $ac_file in
14226 -) cat "$tmp/out" && rm -f "$tmp/out";;
14227 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14228 esac \
14229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14230 ;;
14231 :H)
14232 #
14233 # CONFIG_HEADER
14234 #
14235 if test x"$ac_file" != x-; then
14236 {
14237 $as_echo "/* $configure_input */" \
14238 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14239 } >"$tmp/config.h" \
14240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14241 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14243 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14244 else
14245 rm -f "$ac_file"
14246 mv "$tmp/config.h" "$ac_file" \
14247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14248 fi
14249 else
14250 $as_echo "/* $configure_input */" \
14251 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14252 || as_fn_error $? "could not create -" "$LINENO" 5
14253 fi
14254 # Compute "$ac_file"'s index in $config_headers.
14255 _am_arg="$ac_file"
14256 _am_stamp_count=1
14257 for _am_header in $config_headers :; do
14258 case $_am_header in
14259 $_am_arg | $_am_arg:* )
14260 break ;;
14261 * )
14262 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14263 esac
14264 done
14265 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14266 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14267 X"$_am_arg" : 'X\(//\)[^/]' \| \
14268 X"$_am_arg" : 'X\(//\)$' \| \
14269 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14270 $as_echo X"$_am_arg" |
14271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14272 s//\1/
14273 q
14274 }
14275 /^X\(\/\/\)[^/].*/{
14276 s//\1/
14277 q
14278 }
14279 /^X\(\/\/\)$/{
14280 s//\1/
14281 q
14282 }
14283 /^X\(\/\).*/{
14284 s//\1/
14285 q
14286 }
14287 s/.*/./; q'`/stamp-h$_am_stamp_count
14288 ;;
14289
14290 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14291 $as_echo "$as_me: executing $ac_file commands" >&6;}
14292 ;;
14293 esac
14294
14295
14296 case $ac_file$ac_mode in
14297 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14298 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14299 # are listed without --file. Let's play safe and only enable the eval
14300 # if we detect the quoting.
14301 case $CONFIG_FILES in
14302 *\'*) eval set x "$CONFIG_FILES" ;;
14303 *) set x $CONFIG_FILES ;;
14304 esac
14305 shift
14306 for mf
14307 do
14308 # Strip MF so we end up with the name of the file.
14309 mf=`echo "$mf" | sed -e 's/:.*$//'`
14310 # Check whether this is an Automake generated Makefile or not.
14311 # We used to match only the files named `Makefile.in', but
14312 # some people rename them; so instead we look at the file content.
14313 # Grep'ing the first line is not enough: some people post-process
14314 # each Makefile.in and add a new line on top of each file to say so.
14315 # Grep'ing the whole file is not good either: AIX grep has a line
14316 # limit of 2048, but all sed's we know have understand at least 4000.
14317 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14318 dirpart=`$as_dirname -- "$mf" ||
14319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320 X"$mf" : 'X\(//\)[^/]' \| \
14321 X"$mf" : 'X\(//\)$' \| \
14322 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14323 $as_echo X"$mf" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14325 s//\1/
14326 q
14327 }
14328 /^X\(\/\/\)[^/].*/{
14329 s//\1/
14330 q
14331 }
14332 /^X\(\/\/\)$/{
14333 s//\1/
14334 q
14335 }
14336 /^X\(\/\).*/{
14337 s//\1/
14338 q
14339 }
14340 s/.*/./; q'`
14341 else
14342 continue
14343 fi
14344 # Extract the definition of DEPDIR, am__include, and am__quote
14345 # from the Makefile without running `make'.
14346 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14347 test -z "$DEPDIR" && continue
14348 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14349 test -z "am__include" && continue
14350 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14351 # When using ansi2knr, U may be empty or an underscore; expand it
14352 U=`sed -n 's/^U = //p' < "$mf"`
14353 # Find all dependency output files, they are included files with
14354 # $(DEPDIR) in their names. We invoke sed twice because it is the
14355 # simplest approach to changing $(DEPDIR) to its actual value in the
14356 # expansion.
14357 for file in `sed -n "
14358 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14359 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14360 # Make sure the directory exists.
14361 test -f "$dirpart/$file" && continue
14362 fdir=`$as_dirname -- "$file" ||
14363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364 X"$file" : 'X\(//\)[^/]' \| \
14365 X"$file" : 'X\(//\)$' \| \
14366 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14367 $as_echo X"$file" |
14368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14369 s//\1/
14370 q
14371 }
14372 /^X\(\/\/\)[^/].*/{
14373 s//\1/
14374 q
14375 }
14376 /^X\(\/\/\)$/{
14377 s//\1/
14378 q
14379 }
14380 /^X\(\/\).*/{
14381 s//\1/
14382 q
14383 }
14384 s/.*/./; q'`
14385 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14386 # echo "creating $dirpart/$file"
14387 echo '# dummy' > "$dirpart/$file"
14388 done
14389 done
14390 }
14391 ;;
14392 "libtool":C)
14393
14394 # See if we are running on zsh, and set the options which allow our
14395 # commands through without removal of \ escapes.
14396 if test -n "${ZSH_VERSION+set}" ; then
14397 setopt NO_GLOB_SUBST
14398 fi
14399
14400 cfgfile="${ofile}T"
14401 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14402 $RM "$cfgfile"
14403
14404 cat <<_LT_EOF >> "$cfgfile"
14405 #! $SHELL
14406
14407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14411 #
14412 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14413 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14414 # Inc.
14415 # Written by Gordon Matzigkeit, 1996
14416 #
14417 # This file is part of GNU Libtool.
14418 #
14419 # GNU Libtool is free software; you can redistribute it and/or
14420 # modify it under the terms of the GNU General Public License as
14421 # published by the Free Software Foundation; either version 2 of
14422 # the License, or (at your option) any later version.
14423 #
14424 # As a special exception to the GNU General Public License,
14425 # if you distribute this file as part of a program or library that
14426 # is built using GNU Libtool, you may include this file under the
14427 # same distribution terms that you use for the rest of that program.
14428 #
14429 # GNU Libtool is distributed in the hope that it will be useful,
14430 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14431 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14432 # GNU General Public License for more details.
14433 #
14434 # You should have received a copy of the GNU General Public License
14435 # along with GNU Libtool; see the file COPYING. If not, a copy
14436 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14437 # obtained by writing to the Free Software Foundation, Inc.,
14438 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14439
14440
14441 # The names of the tagged configurations supported by this script.
14442 available_tags=""
14443
14444 # ### BEGIN LIBTOOL CONFIG
14445
14446 # Which release of libtool.m4 was used?
14447 macro_version=$macro_version
14448 macro_revision=$macro_revision
14449
14450 # Whether or not to build shared libraries.
14451 build_libtool_libs=$enable_shared
14452
14453 # Whether or not to build static libraries.
14454 build_old_libs=$enable_static
14455
14456 # What type of objects to build.
14457 pic_mode=$pic_mode
14458
14459 # Whether or not to optimize for fast installation.
14460 fast_install=$enable_fast_install
14461
14462 # Shell to use when invoking shell scripts.
14463 SHELL=$lt_SHELL
14464
14465 # An echo program that protects backslashes.
14466 ECHO=$lt_ECHO
14467
14468 # The host system.
14469 host_alias=$host_alias
14470 host=$host
14471 host_os=$host_os
14472
14473 # The build system.
14474 build_alias=$build_alias
14475 build=$build
14476 build_os=$build_os
14477
14478 # A sed program that does not truncate output.
14479 SED=$lt_SED
14480
14481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14482 Xsed="\$SED -e 1s/^X//"
14483
14484 # A grep program that handles long lines.
14485 GREP=$lt_GREP
14486
14487 # An ERE matcher.
14488 EGREP=$lt_EGREP
14489
14490 # A literal string matcher.
14491 FGREP=$lt_FGREP
14492
14493 # A BSD- or MS-compatible name lister.
14494 NM=$lt_NM
14495
14496 # Whether we need soft or hard links.
14497 LN_S=$lt_LN_S
14498
14499 # What is the maximum length of a command?
14500 max_cmd_len=$max_cmd_len
14501
14502 # Object file suffix (normally "o").
14503 objext=$ac_objext
14504
14505 # Executable file suffix (normally "").
14506 exeext=$exeext
14507
14508 # whether the shell understands "unset".
14509 lt_unset=$lt_unset
14510
14511 # turn spaces into newlines.
14512 SP2NL=$lt_lt_SP2NL
14513
14514 # turn newlines into spaces.
14515 NL2SP=$lt_lt_NL2SP
14516
14517 # An object symbol dumper.
14518 OBJDUMP=$lt_OBJDUMP
14519
14520 # Method to check whether dependent libraries are shared objects.
14521 deplibs_check_method=$lt_deplibs_check_method
14522
14523 # Command to use when deplibs_check_method == "file_magic".
14524 file_magic_cmd=$lt_file_magic_cmd
14525
14526 # The archiver.
14527 AR=$lt_AR
14528 AR_FLAGS=$lt_AR_FLAGS
14529
14530 # A symbol stripping program.
14531 STRIP=$lt_STRIP
14532
14533 # Commands used to install an old-style archive.
14534 RANLIB=$lt_RANLIB
14535 old_postinstall_cmds=$lt_old_postinstall_cmds
14536 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14537
14538 # Whether to use a lock for old archive extraction.
14539 lock_old_archive_extraction=$lock_old_archive_extraction
14540
14541 # A C compiler.
14542 LTCC=$lt_CC
14543
14544 # LTCC compiler flags.
14545 LTCFLAGS=$lt_CFLAGS
14546
14547 # Take the output of nm and produce a listing of raw symbols and C names.
14548 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14549
14550 # Transform the output of nm in a proper C declaration.
14551 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14552
14553 # Transform the output of nm in a C name address pair.
14554 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14555
14556 # Transform the output of nm in a C name address pair when lib prefix is needed.
14557 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14558
14559 # The name of the directory that contains temporary libtool files.
14560 objdir=$objdir
14561
14562 # Used to examine libraries when file_magic_cmd begins with "file".
14563 MAGIC_CMD=$MAGIC_CMD
14564
14565 # Must we lock files when doing compilation?
14566 need_locks=$lt_need_locks
14567
14568 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14569 DSYMUTIL=$lt_DSYMUTIL
14570
14571 # Tool to change global to local symbols on Mac OS X.
14572 NMEDIT=$lt_NMEDIT
14573
14574 # Tool to manipulate fat objects and archives on Mac OS X.
14575 LIPO=$lt_LIPO
14576
14577 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14578 OTOOL=$lt_OTOOL
14579
14580 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14581 OTOOL64=$lt_OTOOL64
14582
14583 # Old archive suffix (normally "a").
14584 libext=$libext
14585
14586 # Shared library suffix (normally ".so").
14587 shrext_cmds=$lt_shrext_cmds
14588
14589 # The commands to extract the exported symbol list from a shared archive.
14590 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14591
14592 # Variables whose values should be saved in libtool wrapper scripts and
14593 # restored at link time.
14594 variables_saved_for_relink=$lt_variables_saved_for_relink
14595
14596 # Do we need the "lib" prefix for modules?
14597 need_lib_prefix=$need_lib_prefix
14598
14599 # Do we need a version for libraries?
14600 need_version=$need_version
14601
14602 # Library versioning type.
14603 version_type=$version_type
14604
14605 # Shared library runtime path variable.
14606 runpath_var=$runpath_var
14607
14608 # Shared library path variable.
14609 shlibpath_var=$shlibpath_var
14610
14611 # Is shlibpath searched before the hard-coded library search path?
14612 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14613
14614 # Format of library name prefix.
14615 libname_spec=$lt_libname_spec
14616
14617 # List of archive names. First name is the real one, the rest are links.
14618 # The last name is the one that the linker finds with -lNAME
14619 library_names_spec=$lt_library_names_spec
14620
14621 # The coded name of the library, if different from the real name.
14622 soname_spec=$lt_soname_spec
14623
14624 # Permission mode override for installation of shared libraries.
14625 install_override_mode=$lt_install_override_mode
14626
14627 # Command to use after installation of a shared archive.
14628 postinstall_cmds=$lt_postinstall_cmds
14629
14630 # Command to use after uninstallation of a shared archive.
14631 postuninstall_cmds=$lt_postuninstall_cmds
14632
14633 # Commands used to finish a libtool library installation in a directory.
14634 finish_cmds=$lt_finish_cmds
14635
14636 # As "finish_cmds", except a single script fragment to be evaled but
14637 # not shown.
14638 finish_eval=$lt_finish_eval
14639
14640 # Whether we should hardcode library paths into libraries.
14641 hardcode_into_libs=$hardcode_into_libs
14642
14643 # Compile-time system search path for libraries.
14644 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14645
14646 # Run-time system search path for libraries.
14647 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14648
14649 # Whether dlopen is supported.
14650 dlopen_support=$enable_dlopen
14651
14652 # Whether dlopen of programs is supported.
14653 dlopen_self=$enable_dlopen_self
14654
14655 # Whether dlopen of statically linked programs is supported.
14656 dlopen_self_static=$enable_dlopen_self_static
14657
14658 # Commands to strip libraries.
14659 old_striplib=$lt_old_striplib
14660 striplib=$lt_striplib
14661
14662
14663 # The linker used to build libraries.
14664 LD=$lt_LD
14665
14666 # How to create reloadable object files.
14667 reload_flag=$lt_reload_flag
14668 reload_cmds=$lt_reload_cmds
14669
14670 # Commands used to build an old-style archive.
14671 old_archive_cmds=$lt_old_archive_cmds
14672
14673 # A language specific compiler.
14674 CC=$lt_compiler
14675
14676 # Is the compiler the GNU compiler?
14677 with_gcc=$GCC
14678
14679 # Compiler flag to turn off builtin functions.
14680 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14681
14682 # How to pass a linker flag through the compiler.
14683 wl=$lt_lt_prog_compiler_wl
14684
14685 # Additional compiler flags for building library objects.
14686 pic_flag=$lt_lt_prog_compiler_pic
14687
14688 # Compiler flag to prevent dynamic linking.
14689 link_static_flag=$lt_lt_prog_compiler_static
14690
14691 # Does compiler simultaneously support -c and -o options?
14692 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14693
14694 # Whether or not to add -lc for building shared libraries.
14695 build_libtool_need_lc=$archive_cmds_need_lc
14696
14697 # Whether or not to disallow shared libs when runtime libs are static.
14698 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14699
14700 # Compiler flag to allow reflexive dlopens.
14701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14702
14703 # Compiler flag to generate shared objects directly from archives.
14704 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14705
14706 # Whether the compiler copes with passing no objects directly.
14707 compiler_needs_object=$lt_compiler_needs_object
14708
14709 # Create an old-style archive from a shared archive.
14710 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14711
14712 # Create a temporary old-style archive to link instead of a shared archive.
14713 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14714
14715 # Commands used to build a shared archive.
14716 archive_cmds=$lt_archive_cmds
14717 archive_expsym_cmds=$lt_archive_expsym_cmds
14718
14719 # Commands used to build a loadable module if different from building
14720 # a shared archive.
14721 module_cmds=$lt_module_cmds
14722 module_expsym_cmds=$lt_module_expsym_cmds
14723
14724 # Whether we are building with GNU ld or not.
14725 with_gnu_ld=$lt_with_gnu_ld
14726
14727 # Flag that allows shared libraries with undefined symbols to be built.
14728 allow_undefined_flag=$lt_allow_undefined_flag
14729
14730 # Flag that enforces no undefined symbols.
14731 no_undefined_flag=$lt_no_undefined_flag
14732
14733 # Flag to hardcode \$libdir into a binary during linking.
14734 # This must work even if \$libdir does not exist
14735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14736
14737 # If ld is used when linking, flag to hardcode \$libdir into a binary
14738 # during linking. This must work even if \$libdir does not exist.
14739 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14740
14741 # Whether we need a single "-rpath" flag with a separated argument.
14742 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14743
14744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14745 # DIR into the resulting binary.
14746 hardcode_direct=$hardcode_direct
14747
14748 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14749 # DIR into the resulting binary and the resulting library dependency is
14750 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14751 # library is relocated.
14752 hardcode_direct_absolute=$hardcode_direct_absolute
14753
14754 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14755 # into the resulting binary.
14756 hardcode_minus_L=$hardcode_minus_L
14757
14758 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14759 # into the resulting binary.
14760 hardcode_shlibpath_var=$hardcode_shlibpath_var
14761
14762 # Set to "yes" if building a shared library automatically hardcodes DIR
14763 # into the library and all subsequent libraries and executables linked
14764 # against it.
14765 hardcode_automatic=$hardcode_automatic
14766
14767 # Set to yes if linker adds runtime paths of dependent libraries
14768 # to runtime path list.
14769 inherit_rpath=$inherit_rpath
14770
14771 # Whether libtool must link a program against all its dependency libraries.
14772 link_all_deplibs=$link_all_deplibs
14773
14774 # Fix the shell variable \$srcfile for the compiler.
14775 fix_srcfile_path=$lt_fix_srcfile_path
14776
14777 # Set to "yes" if exported symbols are required.
14778 always_export_symbols=$always_export_symbols
14779
14780 # The commands to list exported symbols.
14781 export_symbols_cmds=$lt_export_symbols_cmds
14782
14783 # Symbols that should not be listed in the preloaded symbols.
14784 exclude_expsyms=$lt_exclude_expsyms
14785
14786 # Symbols that must always be exported.
14787 include_expsyms=$lt_include_expsyms
14788
14789 # Commands necessary for linking programs (against libraries) with templates.
14790 prelink_cmds=$lt_prelink_cmds
14791
14792 # Specify filename containing input files.
14793 file_list_spec=$lt_file_list_spec
14794
14795 # How to hardcode a shared library path into an executable.
14796 hardcode_action=$hardcode_action
14797
14798 # ### END LIBTOOL CONFIG
14799
14800 _LT_EOF
14801
14802 case $host_os in
14803 aix3*)
14804 cat <<\_LT_EOF >> "$cfgfile"
14805 # AIX sometimes has problems with the GCC collect2 program. For some
14806 # reason, if we set the COLLECT_NAMES environment variable, the problems
14807 # vanish in a puff of smoke.
14808 if test "X${COLLECT_NAMES+set}" != Xset; then
14809 COLLECT_NAMES=
14810 export COLLECT_NAMES
14811 fi
14812 _LT_EOF
14813 ;;
14814 esac
14815
14816
14817 ltmain="$ac_aux_dir/ltmain.sh"
14818
14819
14820 # We use sed instead of cat because bash on DJGPP gets confused if
14821 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14822 # text mode, it properly converts lines to CR/LF. This bash problem
14823 # is reportedly fixed, but why not run on old versions too?
14824 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14825 || (rm -f "$cfgfile"; exit 1)
14826
14827 case $xsi_shell in
14828 yes)
14829 cat << \_LT_EOF >> "$cfgfile"
14830
14831 # func_dirname file append nondir_replacement
14832 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14833 # otherwise set result to NONDIR_REPLACEMENT.
14834 func_dirname ()
14835 {
14836 case ${1} in
14837 */*) func_dirname_result="${1%/*}${2}" ;;
14838 * ) func_dirname_result="${3}" ;;
14839 esac
14840 }
14841
14842 # func_basename file
14843 func_basename ()
14844 {
14845 func_basename_result="${1##*/}"
14846 }
14847
14848 # func_dirname_and_basename file append nondir_replacement
14849 # perform func_basename and func_dirname in a single function
14850 # call:
14851 # dirname: Compute the dirname of FILE. If nonempty,
14852 # add APPEND to the result, otherwise set result
14853 # to NONDIR_REPLACEMENT.
14854 # value returned in "$func_dirname_result"
14855 # basename: Compute filename of FILE.
14856 # value retuned in "$func_basename_result"
14857 # Implementation must be kept synchronized with func_dirname
14858 # and func_basename. For efficiency, we do not delegate to
14859 # those functions but instead duplicate the functionality here.
14860 func_dirname_and_basename ()
14861 {
14862 case ${1} in
14863 */*) func_dirname_result="${1%/*}${2}" ;;
14864 * ) func_dirname_result="${3}" ;;
14865 esac
14866 func_basename_result="${1##*/}"
14867 }
14868
14869 # func_stripname prefix suffix name
14870 # strip PREFIX and SUFFIX off of NAME.
14871 # PREFIX and SUFFIX must not contain globbing or regex special
14872 # characters, hashes, percent signs, but SUFFIX may contain a leading
14873 # dot (in which case that matches only a dot).
14874 func_stripname ()
14875 {
14876 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14877 # positional parameters, so assign one to ordinary parameter first.
14878 func_stripname_result=${3}
14879 func_stripname_result=${func_stripname_result#"${1}"}
14880 func_stripname_result=${func_stripname_result%"${2}"}
14881 }
14882
14883 # func_opt_split
14884 func_opt_split ()
14885 {
14886 func_opt_split_opt=${1%%=*}
14887 func_opt_split_arg=${1#*=}
14888 }
14889
14890 # func_lo2o object
14891 func_lo2o ()
14892 {
14893 case ${1} in
14894 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14895 *) func_lo2o_result=${1} ;;
14896 esac
14897 }
14898
14899 # func_xform libobj-or-source
14900 func_xform ()
14901 {
14902 func_xform_result=${1%.*}.lo
14903 }
14904
14905 # func_arith arithmetic-term...
14906 func_arith ()
14907 {
14908 func_arith_result=$(( $* ))
14909 }
14910
14911 # func_len string
14912 # STRING may not start with a hyphen.
14913 func_len ()
14914 {
14915 func_len_result=${#1}
14916 }
14917
14918 _LT_EOF
14919 ;;
14920 *) # Bourne compatible functions.
14921 cat << \_LT_EOF >> "$cfgfile"
14922
14923 # func_dirname file append nondir_replacement
14924 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14925 # otherwise set result to NONDIR_REPLACEMENT.
14926 func_dirname ()
14927 {
14928 # Extract subdirectory from the argument.
14929 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14930 if test "X$func_dirname_result" = "X${1}"; then
14931 func_dirname_result="${3}"
14932 else
14933 func_dirname_result="$func_dirname_result${2}"
14934 fi
14935 }
14936
14937 # func_basename file
14938 func_basename ()
14939 {
14940 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14941 }
14942
14943
14944 # func_stripname prefix suffix name
14945 # strip PREFIX and SUFFIX off of NAME.
14946 # PREFIX and SUFFIX must not contain globbing or regex special
14947 # characters, hashes, percent signs, but SUFFIX may contain a leading
14948 # dot (in which case that matches only a dot).
14949 # func_strip_suffix prefix name
14950 func_stripname ()
14951 {
14952 case ${2} in
14953 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14954 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14955 esac
14956 }
14957
14958 # sed scripts:
14959 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14960 my_sed_long_arg='1s/^-[^=]*=//'
14961
14962 # func_opt_split
14963 func_opt_split ()
14964 {
14965 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14966 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14967 }
14968
14969 # func_lo2o object
14970 func_lo2o ()
14971 {
14972 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14973 }
14974
14975 # func_xform libobj-or-source
14976 func_xform ()
14977 {
14978 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14979 }
14980
14981 # func_arith arithmetic-term...
14982 func_arith ()
14983 {
14984 func_arith_result=`expr "$@"`
14985 }
14986
14987 # func_len string
14988 # STRING may not start with a hyphen.
14989 func_len ()
14990 {
14991 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14992 }
14993
14994 _LT_EOF
14995 esac
14996
14997 case $lt_shell_append in
14998 yes)
14999 cat << \_LT_EOF >> "$cfgfile"
15000
15001 # func_append var value
15002 # Append VALUE to the end of shell variable VAR.
15003 func_append ()
15004 {
15005 eval "$1+=\$2"
15006 }
15007 _LT_EOF
15008 ;;
15009 *)
15010 cat << \_LT_EOF >> "$cfgfile"
15011
15012 # func_append var value
15013 # Append VALUE to the end of shell variable VAR.
15014 func_append ()
15015 {
15016 eval "$1=\$$1\$2"
15017 }
15018
15019 _LT_EOF
15020 ;;
15021 esac
15022
15023
15024 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15025 || (rm -f "$cfgfile"; exit 1)
15026
15027 mv -f "$cfgfile" "$ofile" ||
15028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15029 chmod +x "$ofile"
15030
15031 ;;
15032
15033 esac
15034 done # for ac_tag
15035
15036
15037 as_fn_exit 0
15038 _ACEOF
15039 ac_clean_files=$ac_clean_files_save
15040
15041 test $ac_write_fail = 0 ||
15042 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15043
15044
15045 # configure is writing to config.log, and then calls config.status.
15046 # config.status does its own redirection, appending to config.log.
15047 # Unfortunately, on DOS this fails, as config.log is still kept open
15048 # by configure, so config.status won't be able to write to it; its
15049 # output is simply discarded. So we exec the FD to /dev/null,
15050 # effectively closing config.log, so it can be properly (re)opened and
15051 # appended to by config.status. When coming back to configure, we
15052 # need to make the FD available again.
15053 if test "$no_create" != yes; then
15054 ac_cs_success=:
15055 ac_config_status_args=
15056 test "$silent" = yes &&
15057 ac_config_status_args="$ac_config_status_args --quiet"
15058 exec 5>/dev/null
15059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15060 exec 5>>config.log
15061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15062 # would make configure fail if this is the last instruction.
15063 $ac_cs_success || as_fn_exit 1
15064 fi
15065 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15067 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15068 fi
15069
15070
15071