configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXcomposite 0.4.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550 as_awk_strverscmp='
551 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
553 END {
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565 if (d1 ~ /^0/) {
566 if (d2 ~ /^0/) {
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
571 }
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
575 d1 = -len1
576 d2 = -len2
577 } else {
578 # Otherwise, compare as strings.
579 d1 = "x" d1
580 d2 = "x" d2
581 }
582 } else {
583 # A fraction is less than an integer.
584 exit 1
585 }
586 } else {
587 if (d2 ~ /^0/) {
588 # An integer is greater than a fraction.
589 exit 2
590 } else {
591 # Compare two integers.
592 d1 += 0
593 d2 += 0
594 }
595 }
596 } else {
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600 }
601 if (d1 < d2) exit 1
602 if (d1 > d2) exit 2
603 }
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
608 }
609 '
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='libXcomposite'
633 PACKAGE_TARNAME='libXcomposite'
634 PACKAGE_VERSION='0.4.3'
635 PACKAGE_STRING='libXcomposite 0.4.3'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637 PACKAGE_URL=''
638
639 # Factoring default headers for most tests.
640 ac_includes_default="\
641 #include <stdio.h>
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef STDC_HEADERS
649 # include <stdlib.h>
650 # include <stddef.h>
651 #else
652 # ifdef HAVE_STDLIB_H
653 # include <stdlib.h>
654 # endif
655 #endif
656 #ifdef HAVE_STRING_H
657 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
658 # include <memory.h>
659 # endif
660 # include <string.h>
661 #endif
662 #ifdef HAVE_STRINGS_H
663 # include <strings.h>
664 #endif
665 #ifdef HAVE_INTTYPES_H
666 # include <inttypes.h>
667 #endif
668 #ifdef HAVE_STDINT_H
669 # include <stdint.h>
670 #endif
671 #ifdef HAVE_UNISTD_H
672 # include <unistd.h>
673 #endif"
674
675 ac_subst_vars='am__EXEEXT_FALSE
676 am__EXEEXT_TRUE
677 LTLIBOBJS
678 LIBOBJS
679 XFIXES_LIBS
680 XFIXES_CFLAGS
681 XCOMPOSITE_LIBS
682 XCOMPOSITE_CFLAGS
683 COMPOSITEEXT_VERSION
684 INSTALL_MANPAGES_FALSE
685 INSTALL_MANPAGES_TRUE
686 HAVE_XMLTO_FALSE
687 HAVE_XMLTO_TRUE
688 HAVE_XMLTO_TEXT_FALSE
689 HAVE_XMLTO_TEXT_TRUE
690 XMLTO
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 MAN_SUBSTS
694 XORG_MAN_PAGE
695 ADMIN_MAN_DIR
696 DRIVER_MAN_DIR
697 MISC_MAN_DIR
698 FILE_MAN_DIR
699 LIB_MAN_DIR
700 APP_MAN_DIR
701 ADMIN_MAN_SUFFIX
702 DRIVER_MAN_SUFFIX
703 MISC_MAN_SUFFIX
704 FILE_MAN_SUFFIX
705 LIB_MAN_SUFFIX
706 APP_MAN_SUFFIX
707 INSTALL_CMD
708 PKG_CONFIG
709 CHANGELOG_CMD
710 CWARNFLAGS
711 CPP
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 RANLIB
718 AR
719 OBJDUMP
720 LN_S
721 NM
722 ac_ct_DUMPBIN
723 DUMPBIN
724 LD
725 FGREP
726 EGREP
727 GREP
728 SED
729 host_os
730 host_vendor
731 host_cpu
732 host
733 build_os
734 build_vendor
735 build_cpu
736 build
737 LIBTOOL
738 am__fastdepCC_FALSE
739 am__fastdepCC_TRUE
740 CCDEPMODE
741 AMDEPBACKSLASH
742 AMDEP_FALSE
743 AMDEP_TRUE
744 am__quote
745 am__include
746 DEPDIR
747 OBJEXT
748 EXEEXT
749 ac_ct_CC
750 CPPFLAGS
751 LDFLAGS
752 CFLAGS
753 CC
754 MAINT
755 MAINTAINER_MODE_FALSE
756 MAINTAINER_MODE_TRUE
757 am__untar
758 am__tar
759 AMTAR
760 am__leading_dot
761 SET_MAKE
762 AWK
763 mkdir_p
764 MKDIR_P
765 INSTALL_STRIP_PROGRAM
766 STRIP
767 install_sh
768 MAKEINFO
769 AUTOHEADER
770 AUTOMAKE
771 AUTOCONF
772 ACLOCAL
773 VERSION
774 PACKAGE
775 CYGPATH_W
776 am__isrc
777 INSTALL_DATA
778 INSTALL_SCRIPT
779 INSTALL_PROGRAM
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_maintainer_mode
822 enable_dependency_tracking
823 enable_shared
824 enable_static
825 with_pic
826 enable_fast_install
827 with_gnu_ld
828 enable_libtool_lock
829 enable_strict_compilation
830 enable_silent_rules
831 with_xmlto
832 '
833 ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP
842 PKG_CONFIG
843 XMLTO
844 XCOMPOSITE_CFLAGS
845 XCOMPOSITE_LIBS
846 XFIXES_CFLAGS
847 XFIXES_LIBS'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *=) ac_optarg= ;;
912 *) ac_optarg=yes ;;
913 esac
914
915 # Accept the important Cygnus configure options, so we can diagnose typos.
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1143
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1154
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1159
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1164
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1171
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1176
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1179
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1182
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1234 Try \`$0 --help' for more information"
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error $? "missing argument to $ac_option"
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1269 fi
1270
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir
1276 do
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1304 If a cross compiler is detected then cross compile mode will be used" >&2
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures libXcomposite 0.4.3 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcomposite]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 _ACEOF
1456 fi
1457
1458 if test -n "$ac_init_help"; then
1459 case $ac_init_help in
1460 short | recursive ) echo "Configuration of libXcomposite 0.4.3:";;
1461 esac
1462 cat <<\_ACEOF
1463
1464 Optional Features:
1465 --disable-option-checking ignore unrecognized --enable/--with options
1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1468 --enable-maintainer-mode enable make rules and dependencies not useful
1469 (and sometimes confusing) to the casual installer
1470 --disable-dependency-tracking speeds up one-time build
1471 --enable-dependency-tracking do not reject slow dependency extractors
1472 --enable-shared[=PKGS] build shared libraries [default=yes]
1473 --enable-static[=PKGS] build static libraries [default=yes]
1474 --enable-fast-install[=PKGS]
1475 optimize for fast installation [default=yes]
1476 --disable-libtool-lock avoid locking (might break parallel builds)
1477 --enable-strict-compilation
1478 Enable all warnings from compiler and make them
1479 errors (default: disabled)
1480 --enable-silent-rules less verbose build output (undo: `make V=1')
1481 --disable-silent-rules verbose build output (undo: `make V=0')
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-pic try to use only PIC/non-PIC objects [default=use
1487 both]
1488 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1489 --with-xmlto Use xmlto to regenerate documentation (default: yes,
1490 if installed)
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 PKG_CONFIG path to pkg-config utility
1502 XMLTO Path to xmlto command
1503 XCOMPOSITE_CFLAGS
1504 C compiler flags for XCOMPOSITE, overriding pkg-config
1505 XCOMPOSITE_LIBS
1506 linker flags for XCOMPOSITE, overriding pkg-config
1507 XFIXES_CFLAGS
1508 C compiler flags for XFIXES, overriding pkg-config
1509 XFIXES_LIBS linker flags for XFIXES, overriding pkg-config
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 libXcomposite configure 0.4.3
1578 generated by GNU Autoconf 2.68
1579
1580 Copyright (C) 2010 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 $as_test_x conftest$ac_exeext
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_link
1674
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694 else
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_cpp
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1801
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1812
1813 #undef $2
1814
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828
1829 int
1830 main ()
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_func
1851
1852 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1853 # ---------------------------------------------
1854 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_decl ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 as_decl_name=`echo $2|sed 's/ *(.*//'`
1860 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1862 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main ()
1871 {
1872 #ifndef $as_decl_name
1873 #ifdef __cplusplus
1874 (void) $as_decl_use;
1875 #else
1876 (void) $as_decl_name;
1877 #endif
1878 #endif
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_decl
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1900
1901 It was created by libXcomposite $as_me 0.4.3, which was
1902 generated by GNU Autoconf 2.68. Invocation command line was
1903
1904 $ $0 $@
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1922
1923 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1924 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1927 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1928 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1929 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936 IFS=$as_save_IFS
1937 test -z "$as_dir" && as_dir=.
1938 $as_echo "PATH: $as_dir"
1939 done
1940 IFS=$as_save_IFS
1941
1942 } >&5
1943
1944 cat >&5 <<_ACEOF
1945
1946
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1950
1951 _ACEOF
1952
1953
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1964 do
1965 for ac_arg
1966 do
1967 case $ac_arg in
1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970 | -silent | --silent | --silen | --sile | --sil)
1971 continue ;;
1972 *\'*)
1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974 esac
1975 case $ac_pass in
1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977 2)
1978 as_fn_append ac_configure_args1 " '$ac_arg'"
1979 if test $ac_must_keep_next = true; then
1980 ac_must_keep_next=false # Got value, back to normal.
1981 else
1982 case $ac_arg in
1983 *=* | --config-cache | -C | -disable-* | --disable-* \
1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986 | -with-* | --with-* | -without-* | --without-* | --x)
1987 case "$ac_configure_args0 " in
1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989 esac
1990 ;;
1991 -* ) ac_must_keep_next=true ;;
1992 esac
1993 fi
1994 as_fn_append ac_configure_args " '$ac_arg'"
1995 ;;
1996 esac
1997 done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2001
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log. We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008 # Save into config.log some information that might help in debugging.
2009 {
2010 echo
2011
2012 $as_echo "## ---------------- ##
2013 ## Cache variables. ##
2014 ## ---------------- ##"
2015 echo
2016 # The following way of writing the cache mishandles newlines in values,
2017 (
2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019 eval ac_val=\$$ac_var
2020 case $ac_val in #(
2021 *${as_nl}*)
2022 case $ac_var in #(
2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025 esac
2026 case $ac_var in #(
2027 _ | IFS | as_nl) ;; #(
2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029 *) { eval $ac_var=; unset $ac_var;} ;;
2030 esac ;;
2031 esac
2032 done
2033 (set) 2>&1 |
2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035 *${as_nl}ac_space=\ *)
2036 sed -n \
2037 "s/'\''/'\''\\\\'\'''\''/g;
2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039 ;; #(
2040 *)
2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042 ;;
2043 esac |
2044 sort
2045 )
2046 echo
2047
2048 $as_echo "## ----------------- ##
2049 ## Output variables. ##
2050 ## ----------------- ##"
2051 echo
2052 for ac_var in $ac_subst_vars
2053 do
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2061
2062 if test -n "$ac_subst_files"; then
2063 $as_echo "## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##"
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 $as_echo "## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##"
2082 echo
2083 cat confdefs.h
2084 echo
2085 fi
2086 test "$ac_signal" != 0 &&
2087 $as_echo "$as_me: caught signal $ac_signal"
2088 $as_echo "$as_me: exit $exit_status"
2089 } >&5
2090 rm -f core *.core core.conftest.* &&
2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092 exit $exit_status
2093 ' 0
2094 for ac_signal in 1 2 13 15; do
2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 done
2097 ac_signal=0
2098
2099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 rm -f -r conftest* confdefs.h
2101
2102 $as_echo "/* confdefs.h */" > confdefs.h
2103
2104 # Predefined preprocessor variables.
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_URL "$PACKAGE_URL"
2128 _ACEOF
2129
2130
2131 # Let the site file select an alternate cache file if it wants to.
2132 # Prefer an explicitly selected file to automatically selected ones.
2133 ac_site_file1=NONE
2134 ac_site_file2=NONE
2135 if test -n "$CONFIG_SITE"; then
2136 # We do not want a PATH search for config.site.
2137 case $CONFIG_SITE in #((
2138 -*) ac_site_file1=./$CONFIG_SITE;;
2139 */*) ac_site_file1=$CONFIG_SITE;;
2140 *) ac_site_file1=./$CONFIG_SITE;;
2141 esac
2142 elif test "x$prefix" != xNONE; then
2143 ac_site_file1=$prefix/share/config.site
2144 ac_site_file2=$prefix/etc/config.site
2145 else
2146 ac_site_file1=$ac_default_prefix/share/config.site
2147 ac_site_file2=$ac_default_prefix/etc/config.site
2148 fi
2149 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 do
2151 test "x$ac_site_file" = xNONE && continue
2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155 sed 's/^/| /' "$ac_site_file" >&5
2156 . "$ac_site_file" \
2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See \`config.log' for more details" "$LINENO" 5; }
2161 fi
2162 done
2163
2164 if test -r "$cache_file"; then
2165 # Some versions of bash will fail to source /dev/null (special files
2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170 case $cache_file in
2171 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172 *) . "./$cache_file";;
2173 esac
2174 fi
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 $as_echo "$as_me: creating cache $cache_file" >&6;}
2178 >$cache_file
2179 fi
2180
2181 # Check that the precious variables saved in the cache have kept the same
2182 # value.
2183 ac_cache_corrupted=false
2184 for ac_var in $ac_precious_vars; do
2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186 eval ac_new_set=\$ac_env_${ac_var}_set
2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188 eval ac_new_val=\$ac_env_${ac_var}_value
2189 case $ac_old_set,$ac_new_set in
2190 set,)
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193 ac_cache_corrupted=: ;;
2194 ,set)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,);;
2199 *)
2200 if test "x$ac_old_val" != "x$ac_new_val"; then
2201 # differences in whitespace do not lead to failure.
2202 ac_old_val_w=`echo x $ac_old_val`
2203 ac_new_val_w=`echo x $ac_new_val`
2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207 ac_cache_corrupted=:
2208 else
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211 eval $ac_var=\$ac_old_val
2212 fi
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2214 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2216 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2217 fi;;
2218 esac
2219 # Pass precious variables to config.status.
2220 if test "$ac_new_set" = set; then
2221 case $ac_new_val in
2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 *) ac_arg=$ac_var=$ac_new_val ;;
2224 esac
2225 case " $ac_configure_args " in
2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228 esac
2229 fi
2230 done
2231 if $ac_cache_corrupted; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237 fi
2238 ## -------------------- ##
2239 ## Main body of script. ##
2240 ## -------------------- ##
2241
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249 am__api_version='1.11'
2250
2251 ac_aux_dir=
2252 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2253 if test -f "$ac_dir/install-sh"; then
2254 ac_aux_dir=$ac_dir
2255 ac_install_sh="$ac_aux_dir/install-sh -c"
2256 break
2257 elif test -f "$ac_dir/install.sh"; then
2258 ac_aux_dir=$ac_dir
2259 ac_install_sh="$ac_aux_dir/install.sh -c"
2260 break
2261 elif test -f "$ac_dir/shtool"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/shtool install -c"
2264 break
2265 fi
2266 done
2267 if test -z "$ac_aux_dir"; then
2268 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2269 fi
2270
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2278
2279
2280 # Find a good install program. We prefer a C program (faster),
2281 # so one script is as good as another. But avoid the broken or
2282 # incompatible versions:
2283 # SysV /etc/install, /usr/sbin/install
2284 # SunOS /usr/etc/install
2285 # IRIX /sbin/install
2286 # AIX /bin/install
2287 # AmigaOS /C/install, which installs bootblocks on floppy discs
2288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2291 # OS/2's system install, which has a completely different semantic
2292 # ./install, which can be erroneously created by make from ./install.sh.
2293 # Reject install programs that cannot install multiple files.
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2295 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2296 if test -z "$INSTALL"; then
2297 if ${ac_cv_path_install+:} false; then :
2298 $as_echo_n "(cached) " >&6
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 # Account for people who put trailing slashes in PATH elements.
2306 case $as_dir/ in #((
2307 ./ | .// | /[cC]/* | \
2308 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2309 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2310 /usr/ucb/* ) ;;
2311 *)
2312 # OSF1 and SCO ODT 3.0 have their own names for install.
2313 # Don't use installbsd from OSF since it installs stuff as root
2314 # by default.
2315 for ac_prog in ginstall scoinst install; do
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2318 if test $ac_prog = install &&
2319 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2320 # AIX install. It has an incompatible calling convention.
2321 :
2322 elif test $ac_prog = install &&
2323 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324 # program-specific install script used by HP pwplus--don't use.
2325 :
2326 else
2327 rm -rf conftest.one conftest.two conftest.dir
2328 echo one > conftest.one
2329 echo two > conftest.two
2330 mkdir conftest.dir
2331 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2332 test -s conftest.one && test -s conftest.two &&
2333 test -s conftest.dir/conftest.one &&
2334 test -s conftest.dir/conftest.two
2335 then
2336 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2337 break 3
2338 fi
2339 fi
2340 fi
2341 done
2342 done
2343 ;;
2344 esac
2345
2346 done
2347 IFS=$as_save_IFS
2348
2349 rm -rf conftest.one conftest.two conftest.dir
2350
2351 fi
2352 if test "${ac_cv_path_install+set}" = set; then
2353 INSTALL=$ac_cv_path_install
2354 else
2355 # As a last resort, use the slow shell script. Don't cache a
2356 # value for INSTALL within a source directory, because that will
2357 # break other packages using the cache if that directory is
2358 # removed, or if the value is a relative name.
2359 INSTALL=$ac_install_sh
2360 fi
2361 fi
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2363 $as_echo "$INSTALL" >&6; }
2364
2365 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2366 # It thinks the first close brace ends the variable substitution.
2367 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2368
2369 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2370
2371 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2372
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2374 $as_echo_n "checking whether build environment is sane... " >&6; }
2375 # Just in case
2376 sleep 1
2377 echo timestamp > conftest.file
2378 # Reject unsafe characters in $srcdir or the absolute working directory
2379 # name. Accept space and tab only in the latter.
2380 am_lf='
2381 '
2382 case `pwd` in
2383 *[\\\"\#\$\&\'\`$am_lf]*)
2384 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2385 esac
2386 case $srcdir in
2387 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2388 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2389 esac
2390
2391 # Do `set' in a subshell so we don't clobber the current shell's
2392 # arguments. Must try -L first in case configure is actually a
2393 # symlink; some systems play weird games with the mod time of symlinks
2394 # (eg FreeBSD returns the mod time of the symlink's containing
2395 # directory).
2396 if (
2397 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2398 if test "$*" = "X"; then
2399 # -L didn't work.
2400 set X `ls -t "$srcdir/configure" conftest.file`
2401 fi
2402 rm -f conftest.file
2403 if test "$*" != "X $srcdir/configure conftest.file" \
2404 && test "$*" != "X conftest.file $srcdir/configure"; then
2405
2406 # If neither matched, then we have a broken ls. This can happen
2407 # if, for instance, CONFIG_SHELL is bash and it inherits a
2408 # broken ls alias from the environment. This has actually
2409 # happened. Such a system could not be considered "sane".
2410 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2411 alias in your environment" "$LINENO" 5
2412 fi
2413
2414 test "$2" = conftest.file
2415 )
2416 then
2417 # Ok.
2418 :
2419 else
2420 as_fn_error $? "newly created file is older than distributed files!
2421 Check your system clock" "$LINENO" 5
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2424 $as_echo "yes" >&6; }
2425 test "$program_prefix" != NONE &&
2426 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2427 # Use a double $ so make ignores it.
2428 test "$program_suffix" != NONE &&
2429 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2430 # Double any \ or $.
2431 # By default was `s,x,x', remove it if useless.
2432 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2433 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2434
2435 # expand $ac_aux_dir to an absolute path
2436 am_aux_dir=`cd $ac_aux_dir && pwd`
2437
2438 if test x"${MISSING+set}" != xset; then
2439 case $am_aux_dir in
2440 *\ * | *\ *)
2441 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2442 *)
2443 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2444 esac
2445 fi
2446 # Use eval to expand $SHELL
2447 if eval "$MISSING --run true"; then
2448 am_missing_run="$MISSING --run "
2449 else
2450 am_missing_run=
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2452 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2453 fi
2454
2455 if test x"${install_sh}" != xset; then
2456 case $am_aux_dir in
2457 *\ * | *\ *)
2458 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2459 *)
2460 install_sh="\${SHELL} $am_aux_dir/install-sh"
2461 esac
2462 fi
2463
2464 # Installed binaries are usually stripped using `strip' when the user
2465 # run `make install-strip'. However `strip' might not be the right
2466 # tool to use in cross-compilation environments, therefore Automake
2467 # will honor the `STRIP' environment variable to overrule this program.
2468 if test "$cross_compiling" != no; then
2469 if test -n "$ac_tool_prefix"; then
2470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2471 set dummy ${ac_tool_prefix}strip; ac_word=$2
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if ${ac_cv_prog_STRIP+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test -n "$STRIP"; then
2478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 STRIP=$ac_cv_prog_STRIP
2498 if test -n "$STRIP"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2500 $as_echo "$STRIP" >&6; }
2501 else
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2503 $as_echo "no" >&6; }
2504 fi
2505
2506
2507 fi
2508 if test -z "$ac_cv_prog_STRIP"; then
2509 ac_ct_STRIP=$STRIP
2510 # Extract the first word of "strip", so it can be a program name with args.
2511 set dummy strip; ac_word=$2
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2513 $as_echo_n "checking for $ac_word... " >&6; }
2514 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2515 $as_echo_n "(cached) " >&6
2516 else
2517 if test -n "$ac_ct_STRIP"; then
2518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2527 ac_cv_prog_ac_ct_STRIP="strip"
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531 done
2532 done
2533 IFS=$as_save_IFS
2534
2535 fi
2536 fi
2537 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2538 if test -n "$ac_ct_STRIP"; then
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2540 $as_echo "$ac_ct_STRIP" >&6; }
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2544 fi
2545
2546 if test "x$ac_ct_STRIP" = x; then
2547 STRIP=":"
2548 else
2549 case $cross_compiling:$ac_tool_warned in
2550 yes:)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2553 ac_tool_warned=yes ;;
2554 esac
2555 STRIP=$ac_ct_STRIP
2556 fi
2557 else
2558 STRIP="$ac_cv_prog_STRIP"
2559 fi
2560
2561 fi
2562 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2563
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2565 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2566 if test -z "$MKDIR_P"; then
2567 if ${ac_cv_path_mkdir+:} false; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_prog in mkdir gmkdir; do
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2578 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2579 'mkdir (GNU coreutils) '* | \
2580 'mkdir (coreutils) '* | \
2581 'mkdir (fileutils) '4.1*)
2582 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2583 break 3;;
2584 esac
2585 done
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 fi
2591
2592 test -d ./--version && rmdir ./--version
2593 if test "${ac_cv_path_mkdir+set}" = set; then
2594 MKDIR_P="$ac_cv_path_mkdir -p"
2595 else
2596 # As a last resort, use the slow shell script. Don't cache a
2597 # value for MKDIR_P within a source directory, because that will
2598 # break other packages using the cache if that directory is
2599 # removed, or if the value is a relative name.
2600 MKDIR_P="$ac_install_sh -d"
2601 fi
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2604 $as_echo "$MKDIR_P" >&6; }
2605
2606 mkdir_p="$MKDIR_P"
2607 case $mkdir_p in
2608 [\\/$]* | ?:[\\/]*) ;;
2609 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2610 esac
2611
2612 for ac_prog in gawk mawk nawk awk
2613 do
2614 # Extract the first word of "$ac_prog", so it can be a program name with args.
2615 set dummy $ac_prog; ac_word=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_AWK+:} false; then :
2619 $as_echo_n "(cached) " >&6
2620 else
2621 if test -n "$AWK"; then
2622 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2631 ac_cv_prog_AWK="$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635 done
2636 done
2637 IFS=$as_save_IFS
2638
2639 fi
2640 fi
2641 AWK=$ac_cv_prog_AWK
2642 if test -n "$AWK"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2644 $as_echo "$AWK" >&6; }
2645 else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2648 fi
2649
2650
2651 test -n "$AWK" && break
2652 done
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2655 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2656 set x ${MAKE-make}
2657 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2658 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2659 $as_echo_n "(cached) " >&6
2660 else
2661 cat >conftest.make <<\_ACEOF
2662 SHELL = /bin/sh
2663 all:
2664 @echo '@@@%%%=$(MAKE)=@@@%%%'
2665 _ACEOF
2666 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2667 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2668 *@@@%%%=?*=@@@%%%*)
2669 eval ac_cv_prog_make_${ac_make}_set=yes;;
2670 *)
2671 eval ac_cv_prog_make_${ac_make}_set=no;;
2672 esac
2673 rm -f conftest.make
2674 fi
2675 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 $as_echo "yes" >&6; }
2678 SET_MAKE=
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 SET_MAKE="MAKE=${MAKE-make}"
2683 fi
2684
2685 rm -rf .tst 2>/dev/null
2686 mkdir .tst 2>/dev/null
2687 if test -d .tst; then
2688 am__leading_dot=.
2689 else
2690 am__leading_dot=_
2691 fi
2692 rmdir .tst 2>/dev/null
2693
2694 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2695 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2696 # is not polluted with repeated "-I."
2697 am__isrc=' -I$(srcdir)'
2698 # test to see if srcdir already configured
2699 if test -f $srcdir/config.status; then
2700 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2701 fi
2702 fi
2703
2704 # test whether we have cygpath
2705 if test -z "$CYGPATH_W"; then
2706 if (cygpath --version) >/dev/null 2>/dev/null; then
2707 CYGPATH_W='cygpath -w'
2708 else
2709 CYGPATH_W=echo
2710 fi
2711 fi
2712
2713
2714 # Define the identity of the package.
2715 PACKAGE='libXcomposite'
2716 VERSION='0.4.3'
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define PACKAGE "$PACKAGE"
2721 _ACEOF
2722
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define VERSION "$VERSION"
2726 _ACEOF
2727
2728 # Some tools Automake needs.
2729
2730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2731
2732
2733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2734
2735
2736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2737
2738
2739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2740
2741
2742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2743
2744 # We need awk for the "check" target. The system "awk" is bad on
2745 # some platforms.
2746 # Always define AMTAR for backward compatibility.
2747
2748 AMTAR=${AMTAR-"${am_missing_run}tar"}
2749
2750 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2751
2752
2753
2754
2755
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2758 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2759 # Check whether --enable-maintainer-mode was given.
2760 if test "${enable_maintainer_mode+set}" = set; then :
2761 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2762 else
2763 USE_MAINTAINER_MODE=no
2764 fi
2765
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2767 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2768 if test $USE_MAINTAINER_MODE = yes; then
2769 MAINTAINER_MODE_TRUE=
2770 MAINTAINER_MODE_FALSE='#'
2771 else
2772 MAINTAINER_MODE_TRUE='#'
2773 MAINTAINER_MODE_FALSE=
2774 fi
2775
2776 MAINT=$MAINTAINER_MODE_TRUE
2777
2778
2779
2780 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792 ac_config_headers="$ac_config_headers config.h"
2793
2794
2795 # Check for progs
2796 ac_ext=c
2797 ac_cpp='$CPP $CPPFLAGS'
2798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2801 if test -n "$ac_tool_prefix"; then
2802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2803 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CC+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 break 2
2822 fi
2823 done
2824 done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 CC=$ac_cv_prog_CC
2830 if test -n "$CC"; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2832 $as_echo "$CC" >&6; }
2833 else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839 fi
2840 if test -z "$ac_cv_prog_CC"; then
2841 ac_ct_CC=$CC
2842 # Extract the first word of "gcc", so it can be a program name with args.
2843 set dummy gcc; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 if test -n "$ac_ct_CC"; then
2850 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859 ac_cv_prog_ac_ct_CC="gcc"
2860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2862 fi
2863 done
2864 done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2870 if test -n "$ac_ct_CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2872 $as_echo "$ac_ct_CC" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878 if test "x$ac_ct_CC" = x; then
2879 CC=""
2880 else
2881 case $cross_compiling:$ac_tool_warned in
2882 yes:)
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885 ac_tool_warned=yes ;;
2886 esac
2887 CC=$ac_ct_CC
2888 fi
2889 else
2890 CC="$ac_cv_prog_CC"
2891 fi
2892
2893 if test -z "$CC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}cc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_CC="${ac_tool_prefix}cc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CC=$ac_cv_prog_CC
2923 if test -n "$CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925 $as_echo "$CC" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 fi
2934 if test -z "$CC"; then
2935 # Extract the first word of "cc", so it can be a program name with args.
2936 set dummy cc; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_CC+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2944 else
2945 ac_prog_rejected=no
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2954 ac_prog_rejected=yes
2955 continue
2956 fi
2957 ac_cv_prog_CC="cc"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959 break 2
2960 fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 if test $ac_prog_rejected = yes; then
2966 # We found a bogon in the path, so make sure we never use it.
2967 set dummy $ac_cv_prog_CC
2968 shift
2969 if test $# != 0; then
2970 # We chose a different compiler from the bogus one.
2971 # However, it has the same basename, so the bogon will be chosen
2972 # first if we set CC to just the basename; use the full file name.
2973 shift
2974 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2975 fi
2976 fi
2977 fi
2978 fi
2979 CC=$ac_cv_prog_CC
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 fi
2990 if test -z "$CC"; then
2991 if test -n "$ac_tool_prefix"; then
2992 for ac_prog in cl.exe
2993 do
2994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$CC"; then
3002 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 test -n "$CC" && break
3032 done
3033 fi
3034 if test -z "$CC"; then
3035 ac_ct_CC=$CC
3036 for ac_prog in cl.exe
3037 do
3038 # Extract the first word of "$ac_prog", so it can be a program name with args.
3039 set dummy $ac_prog; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$ac_ct_CC"; then
3046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 ac_cv_prog_ac_ct_CC="$ac_prog"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3068 $as_echo "$ac_ct_CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 test -n "$ac_ct_CC" && break
3076 done
3077
3078 if test "x$ac_ct_CC" = x; then
3079 CC=""
3080 else
3081 case $cross_compiling:$ac_tool_warned in
3082 yes:)
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3086 esac
3087 CC=$ac_ct_CC
3088 fi
3089 fi
3090
3091 fi
3092
3093
3094 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 as_fn_error $? "no acceptable C compiler found in \$PATH
3097 See \`config.log' for more details" "$LINENO" 5; }
3098
3099 # Provide some information about the compiler.
3100 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3101 set X $ac_compile
3102 ac_compiler=$2
3103 for ac_option in --version -v -V -qversion; do
3104 { { ac_try="$ac_compiler $ac_option >&5"
3105 case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3112 ac_status=$?
3113 if test -s conftest.err; then
3114 sed '10a\
3115 ... rest of stderr output deleted ...
3116 10q' conftest.err >conftest.er1
3117 cat conftest.er1 >&5
3118 fi
3119 rm -f conftest.er1 conftest.err
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }
3122 done
3123
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3126
3127 int
3128 main ()
3129 {
3130
3131 ;
3132 return 0;
3133 }
3134 _ACEOF
3135 ac_clean_files_save=$ac_clean_files
3136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3137 # Try to create an executable without -o first, disregard a.out.
3138 # It will help us diagnose broken compilers, and finding out an intuition
3139 # of exeext.
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3141 $as_echo_n "checking whether the C compiler works... " >&6; }
3142 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3143
3144 # The possible output files:
3145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3146
3147 ac_rmfiles=
3148 for ac_file in $ac_files
3149 do
3150 case $ac_file in
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3153 esac
3154 done
3155 rm -f $ac_rmfiles
3156
3157 if { { ac_try="$ac_link_default"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_link_default") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3170 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3171 # so that the user can short-circuit this test for compilers unknown to
3172 # Autoconf.
3173 for ac_file in $ac_files ''
3174 do
3175 test -f "$ac_file" || continue
3176 case $ac_file in
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3178 ;;
3179 [ab].out )
3180 # We found the default executable, but exeext='' is most
3181 # certainly right.
3182 break;;
3183 *.* )
3184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3185 then :; else
3186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 fi
3188 # We set ac_cv_exeext here because the later test for it is not
3189 # safe: cross compilers may not add the suffix if given an `-o'
3190 # argument, so we may need to know it at that point already.
3191 # Even if this section looks crufty: it has the advantage of
3192 # actually working.
3193 break;;
3194 * )
3195 break;;
3196 esac
3197 done
3198 test "$ac_cv_exeext" = no && ac_cv_exeext=
3199
3200 else
3201 ac_file=''
3202 fi
3203 if test -z "$ac_file"; then :
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3208
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error 77 "C compiler cannot create executables
3212 See \`config.log' for more details" "$LINENO" 5; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3215 $as_echo "yes" >&6; }
3216 fi
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3218 $as_echo_n "checking for C compiler default output file name... " >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3220 $as_echo "$ac_file" >&6; }
3221 ac_exeext=$ac_cv_exeext
3222
3223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3224 ac_clean_files=$ac_clean_files_save
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3226 $as_echo_n "checking for suffix of executables... " >&6; }
3227 if { { ac_try="$ac_link"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }; then :
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3241 # `rm'.
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 break;;
3248 * ) break;;
3249 esac
3250 done
3251 else
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details" "$LINENO" 5; }
3256 fi
3257 rm -f conftest conftest$ac_cv_exeext
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3259 $as_echo "$ac_cv_exeext" >&6; }
3260
3261 rm -f conftest.$ac_ext
3262 EXEEXT=$ac_cv_exeext
3263 ac_exeext=$EXEEXT
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3266 #include <stdio.h>
3267 int
3268 main ()
3269 {
3270 FILE *f = fopen ("conftest.out", "w");
3271 return ferror (f) || fclose (f) != 0;
3272
3273 ;
3274 return 0;
3275 }
3276 _ACEOF
3277 ac_clean_files="$ac_clean_files conftest.out"
3278 # Check that the compiler produces executables we can run. If not, either
3279 # the compiler is broken, or we cross compile.
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3281 $as_echo_n "checking whether we are cross compiling... " >&6; }
3282 if test "$cross_compiling" != yes; then
3283 { { ac_try="$ac_link"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link") 2>&5
3291 ac_status=$?
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }
3294 if { ac_try='./conftest$ac_cv_exeext'
3295 { { case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_try") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; }; then
3305 cross_compiling=no
3306 else
3307 if test "$cross_compiling" = maybe; then
3308 cross_compiling=yes
3309 else
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error $? "cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details" "$LINENO" 5; }
3315 fi
3316 fi
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3320
3321 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3322 ac_clean_files=$ac_clean_files_save
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3324 $as_echo_n "checking for suffix of object files... " >&6; }
3325 if ${ac_cv_objext+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330
3331 int
3332 main ()
3333 {
3334
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.o conftest.obj
3340 if { { ac_try="$ac_compile"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_compile") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
3351 for ac_file in conftest.o conftest.obj conftest.*; do
3352 test -f "$ac_file" || continue;
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3356 break;;
3357 esac
3358 done
3359 else
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details" "$LINENO" 5; }
3367 fi
3368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3369 fi
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3371 $as_echo "$ac_cv_objext" >&6; }
3372 OBJEXT=$ac_cv_objext
3373 ac_objext=$OBJEXT
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3376 if ${ac_cv_c_compiler_gnu+:} false; then :
3377 $as_echo_n "(cached) " >&6
3378 else
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3381
3382 int
3383 main ()
3384 {
3385 #ifndef __GNUC__
3386 choke me
3387 #endif
3388
3389 ;
3390 return 0;
3391 }
3392 _ACEOF
3393 if ac_fn_c_try_compile "$LINENO"; then :
3394 ac_compiler_gnu=yes
3395 else
3396 ac_compiler_gnu=no
3397 fi
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3400
3401 fi
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3404 if test $ac_compiler_gnu = yes; then
3405 GCC=yes
3406 else
3407 GCC=
3408 fi
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3413 if ${ac_cv_prog_cc_g+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 ac_save_c_werror_flag=$ac_c_werror_flag
3417 ac_c_werror_flag=yes
3418 ac_cv_prog_cc_g=no
3419 CFLAGS="-g"
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3422
3423 int
3424 main ()
3425 {
3426
3427 ;
3428 return 0;
3429 }
3430 _ACEOF
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432 ac_cv_prog_cc_g=yes
3433 else
3434 CFLAGS=""
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3437
3438 int
3439 main ()
3440 {
3441
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447
3448 else
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3450 CFLAGS="-g"
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453
3454 int
3455 main ()
3456 {
3457
3458 ;
3459 return 0;
3460 }
3461 _ACEOF
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_cv_prog_cc_g=yes
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3471 fi
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3473 $as_echo "$ac_cv_prog_cc_g" >&6; }
3474 if test "$ac_test_CFLAGS" = set; then
3475 CFLAGS=$ac_save_CFLAGS
3476 elif test $ac_cv_prog_cc_g = yes; then
3477 if test "$GCC" = yes; then
3478 CFLAGS="-g -O2"
3479 else
3480 CFLAGS="-g"
3481 fi
3482 else
3483 if test "$GCC" = yes; then
3484 CFLAGS="-O2"
3485 else
3486 CFLAGS=
3487 fi
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3491 if ${ac_cv_prog_cc_c89+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 ac_cv_prog_cc_c89=no
3495 ac_save_CC=$CC
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498 #include <stdarg.h>
3499 #include <stdio.h>
3500 #include <sys/types.h>
3501 #include <sys/stat.h>
3502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3503 struct buf { int x; };
3504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3505 static char *e (p, i)
3506 char **p;
3507 int i;
3508 {
3509 return p[i];
3510 }
3511 static char *f (char * (*g) (char **, int), char **p, ...)
3512 {
3513 char *s;
3514 va_list v;
3515 va_start (v,p);
3516 s = g (p, va_arg (v,int));
3517 va_end (v);
3518 return s;
3519 }
3520
3521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3522 function prototypes and stuff, but not '\xHH' hex character constants.
3523 These don't provoke an error unfortunately, instead are silently treated
3524 as 'x'. The following induces an error, until -std is added to get
3525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3526 array size at least. It's necessary to write '\x00'==0 to get something
3527 that's true only with -std. */
3528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3529
3530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3531 inside strings and character constants. */
3532 #define FOO(x) 'x'
3533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3534
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539 int argc;
3540 char **argv;
3541 int
3542 main ()
3543 {
3544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3551 do
3552 CC="$ac_save_CC $ac_arg"
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_c89=$ac_arg
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext
3557 test "x$ac_cv_prog_cc_c89" != "xno" && break
3558 done
3559 rm -f conftest.$ac_ext
3560 CC=$ac_save_CC
3561
3562 fi
3563 # AC_CACHE_VAL
3564 case "x$ac_cv_prog_cc_c89" in
3565 x)
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567 $as_echo "none needed" >&6; } ;;
3568 xno)
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3570 $as_echo "unsupported" >&6; } ;;
3571 *)
3572 CC="$CC $ac_cv_prog_cc_c89"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3575 esac
3576 if test "x$ac_cv_prog_cc_c89" != xno; then :
3577
3578 fi
3579
3580 ac_ext=c
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 DEPDIR="${am__leading_dot}deps"
3586
3587 ac_config_commands="$ac_config_commands depfiles"
3588
3589
3590 am_make=${MAKE-make}
3591 cat > confinc << 'END'
3592 am__doit:
3593 @echo this is the am__doit target
3594 .PHONY: am__doit
3595 END
3596 # If we don't find an include directive, just comment out the code.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3598 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3599 am__include="#"
3600 am__quote=
3601 _am_result=none
3602 # First try GNU make style include.
3603 echo "include confinc" > confmf
3604 # Ignore all kinds of additional output from `make'.
3605 case `$am_make -s -f confmf 2> /dev/null` in #(
3606 *the\ am__doit\ target*)
3607 am__include=include
3608 am__quote=
3609 _am_result=GNU
3610 ;;
3611 esac
3612 # Now try BSD make style include.
3613 if test "$am__include" = "#"; then
3614 echo '.include "confinc"' > confmf
3615 case `$am_make -s -f confmf 2> /dev/null` in #(
3616 *the\ am__doit\ target*)
3617 am__include=.include
3618 am__quote="\""
3619 _am_result=BSD
3620 ;;
3621 esac
3622 fi
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3626 $as_echo "$_am_result" >&6; }
3627 rm -f confinc confmf
3628
3629 # Check whether --enable-dependency-tracking was given.
3630 if test "${enable_dependency_tracking+set}" = set; then :
3631 enableval=$enable_dependency_tracking;
3632 fi
3633
3634 if test "x$enable_dependency_tracking" != xno; then
3635 am_depcomp="$ac_aux_dir/depcomp"
3636 AMDEPBACKSLASH='\'
3637 fi
3638 if test "x$enable_dependency_tracking" != xno; then
3639 AMDEP_TRUE=
3640 AMDEP_FALSE='#'
3641 else
3642 AMDEP_TRUE='#'
3643 AMDEP_FALSE=
3644 fi
3645
3646
3647
3648 depcc="$CC" am_compiler_list=
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3651 $as_echo_n "checking dependency style of $depcc... " >&6; }
3652 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3656 # We make a subdir and do the tests there. Otherwise we can end up
3657 # making bogus files that we don't know about and never remove. For
3658 # instance it was reported that on HP-UX the gcc test will end up
3659 # making a dummy file named `D' -- because `-MD' means `put the output
3660 # in D'.
3661 mkdir conftest.dir
3662 # Copy depcomp to subdir because otherwise we won't find it if we're
3663 # using a relative directory.
3664 cp "$am_depcomp" conftest.dir
3665 cd conftest.dir
3666 # We will build objects and dependencies in a subdirectory because
3667 # it helps to detect inapplicable dependency modes. For instance
3668 # both Tru64's cc and ICC support -MD to output dependencies as a
3669 # side effect of compilation, but ICC will put the dependencies in
3670 # the current directory while Tru64 will put them in the object
3671 # directory.
3672 mkdir sub
3673
3674 am_cv_CC_dependencies_compiler_type=none
3675 if test "$am_compiler_list" = ""; then
3676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3677 fi
3678 am__universal=false
3679 case " $depcc " in #(
3680 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3681 esac
3682
3683 for depmode in $am_compiler_list; do
3684 # Setup a source with many dependencies, because some compilers
3685 # like to wrap large dependency lists on column 80 (with \), and
3686 # we should not choose a depcomp mode which is confused by this.
3687 #
3688 # We need to recreate these files for each test, as the compiler may
3689 # overwrite some of them when testing with obscure command lines.
3690 # This happens at least with the AIX C compiler.
3691 : > sub/conftest.c
3692 for i in 1 2 3 4 5 6; do
3693 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3694 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3695 # Solaris 8's {/usr,}/bin/sh.
3696 touch sub/conftst$i.h
3697 done
3698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3699
3700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3701 # mode. It turns out that the SunPro C++ compiler does not properly
3702 # handle `-M -o', and we need to detect this. Also, some Intel
3703 # versions had trouble with output in subdirs
3704 am__obj=sub/conftest.${OBJEXT-o}
3705 am__minus_obj="-o $am__obj"
3706 case $depmode in
3707 gcc)
3708 # This depmode causes a compiler race in universal mode.
3709 test "$am__universal" = false || continue
3710 ;;
3711 nosideeffect)
3712 # after this tag, mechanisms are not by side-effect, so they'll
3713 # only be used when explicitly requested
3714 if test "x$enable_dependency_tracking" = xyes; then
3715 continue
3716 else
3717 break
3718 fi
3719 ;;
3720 msvisualcpp | msvcmsys)
3721 # This compiler won't grok `-c -o', but also, the minuso test has
3722 # not run yet. These depmodes are late enough in the game, and
3723 # so weak that their functioning should not be impacted.
3724 am__obj=conftest.${OBJEXT-o}
3725 am__minus_obj=
3726 ;;
3727 none) break ;;
3728 esac
3729 if depmode=$depmode \
3730 source=sub/conftest.c object=$am__obj \
3731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3733 >/dev/null 2>conftest.err &&
3734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3738 # icc doesn't choke on unknown options, it will just issue warnings
3739 # or remarks (even with -Werror). So we grep stderr for any message
3740 # that says an option was ignored or not supported.
3741 # When given -MP, icc 7.0 and 7.1 complain thusly:
3742 # icc: Command line warning: ignoring option '-M'; no argument required
3743 # The diagnosis changed in icc 8.0:
3744 # icc: Command line remark: option '-MP' not supported
3745 if (grep 'ignoring option' conftest.err ||
3746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3747 am_cv_CC_dependencies_compiler_type=$depmode
3748 break
3749 fi
3750 fi
3751 done
3752
3753 cd ..
3754 rm -rf conftest.dir
3755 else
3756 am_cv_CC_dependencies_compiler_type=none
3757 fi
3758
3759 fi
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3761 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3762 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3763
3764 if
3765 test "x$enable_dependency_tracking" != xno \
3766 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3767 am__fastdepCC_TRUE=
3768 am__fastdepCC_FALSE='#'
3769 else
3770 am__fastdepCC_TRUE='#'
3771 am__fastdepCC_FALSE=
3772 fi
3773
3774
3775 case `pwd` in
3776 *\ * | *\ *)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3778 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3779 esac
3780
3781
3782
3783 macro_version='2.2.10'
3784 macro_revision='1.3175'
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798 ltmain="$ac_aux_dir/ltmain.sh"
3799
3800 # Make sure we can run config.sub.
3801 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3802 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3805 $as_echo_n "checking build system type... " >&6; }
3806 if ${ac_cv_build+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 ac_build_alias=$build_alias
3810 test "x$ac_build_alias" = x &&
3811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3812 test "x$ac_build_alias" = x &&
3813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3816
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3819 $as_echo "$ac_cv_build" >&6; }
3820 case $ac_cv_build in
3821 *-*-*) ;;
3822 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3823 esac
3824 build=$ac_cv_build
3825 ac_save_IFS=$IFS; IFS='-'
3826 set x $ac_cv_build
3827 shift
3828 build_cpu=$1
3829 build_vendor=$2
3830 shift; shift
3831 # Remember, the first character of IFS is used to create $*,
3832 # except with old shells:
3833 build_os=$*
3834 IFS=$ac_save_IFS
3835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3836
3837
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3839 $as_echo_n "checking host system type... " >&6; }
3840 if ${ac_cv_host+:} false; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test "x$host_alias" = x; then
3844 ac_cv_host=$ac_cv_build
3845 else
3846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3848 fi
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3852 $as_echo "$ac_cv_host" >&6; }
3853 case $ac_cv_host in
3854 *-*-*) ;;
3855 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3856 esac
3857 host=$ac_cv_host
3858 ac_save_IFS=$IFS; IFS='-'
3859 set x $ac_cv_host
3860 shift
3861 host_cpu=$1
3862 host_vendor=$2
3863 shift; shift
3864 # Remember, the first character of IFS is used to create $*,
3865 # except with old shells:
3866 host_os=$*
3867 IFS=$ac_save_IFS
3868 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3869
3870
3871 # Backslashify metacharacters that are still active within
3872 # double-quoted strings.
3873 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3874
3875 # Same as above, but do not quote variable references.
3876 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3877
3878 # Sed substitution to delay expansion of an escaped shell variable in a
3879 # double_quote_subst'ed string.
3880 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3881
3882 # Sed substitution to delay expansion of an escaped single quote.
3883 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3884
3885 # Sed substitution to avoid accidental globbing in evaled expressions
3886 no_glob_subst='s/\*/\\\*/g'
3887
3888 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3889 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3890 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3893 $as_echo_n "checking how to print strings... " >&6; }
3894 # Test print first, because it will be a builtin if present.
3895 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3896 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3897 ECHO='print -r --'
3898 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3899 ECHO='printf %s\n'
3900 else
3901 # Use this function as a fallback that always works.
3902 func_fallback_echo ()
3903 {
3904 eval 'cat <<_LTECHO_EOF
3905 $1
3906 _LTECHO_EOF'
3907 }
3908 ECHO='func_fallback_echo'
3909 fi
3910
3911 # func_echo_all arg...
3912 # Invoke $ECHO with all args, space-separated.
3913 func_echo_all ()
3914 {
3915 $ECHO ""
3916 }
3917
3918 case "$ECHO" in
3919 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3920 $as_echo "printf" >&6; } ;;
3921 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3922 $as_echo "print -r" >&6; } ;;
3923 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3924 $as_echo "cat" >&6; } ;;
3925 esac
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3942 if ${ac_cv_path_SED+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3946 for ac_i in 1 2 3 4 5 6 7; do
3947 ac_script="$ac_script$as_nl$ac_script"
3948 done
3949 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3950 { ac_script=; unset ac_script;}
3951 if test -z "$SED"; then
3952 ac_path_SED_found=false
3953 # Loop through the user's path and test for each of PROGNAME-LIST
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in sed gsed; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3963 # Check for GNU ac_path_SED and select it if it is found.
3964 # Check for GNU $ac_path_SED
3965 case `"$ac_path_SED" --version 2>&1` in
3966 *GNU*)
3967 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3968 *)
3969 ac_count=0
3970 $as_echo_n 0123456789 >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 $as_echo '' >> "conftest.nl"
3977 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 as_fn_arith $ac_count + 1 && ac_count=$as_val
3980 if test $ac_count -gt ${ac_path_SED_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_SED="$ac_path_SED"
3983 ac_path_SED_max=$ac_count
3984 fi
3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989 esac
3990
3991 $ac_path_SED_found && break 3
3992 done
3993 done
3994 done
3995 IFS=$as_save_IFS
3996 if test -z "$ac_cv_path_SED"; then
3997 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3998 fi
3999 else
4000 ac_cv_path_SED=$SED
4001 fi
4002
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4005 $as_echo "$ac_cv_path_SED" >&6; }
4006 SED="$ac_cv_path_SED"
4007 rm -f conftest.sed
4008
4009 test -z "$SED" && SED=sed
4010 Xsed="$SED -e 1s/^X//"
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4023 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4024 if ${ac_cv_path_GREP+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -z "$GREP"; then
4028 ac_path_GREP_found=false
4029 # Loop through the user's path and test for each of PROGNAME-LIST
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4032 do
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_prog in grep ggrep; do
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4038 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4039 # Check for GNU ac_path_GREP and select it if it is found.
4040 # Check for GNU $ac_path_GREP
4041 case `"$ac_path_GREP" --version 2>&1` in
4042 *GNU*)
4043 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4044 *)
4045 ac_count=0
4046 $as_echo_n 0123456789 >"conftest.in"
4047 while :
4048 do
4049 cat "conftest.in" "conftest.in" >"conftest.tmp"
4050 mv "conftest.tmp" "conftest.in"
4051 cp "conftest.in" "conftest.nl"
4052 $as_echo 'GREP' >> "conftest.nl"
4053 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4055 as_fn_arith $ac_count + 1 && ac_count=$as_val
4056 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4057 # Best one so far, save it but keep looking for a better one
4058 ac_cv_path_GREP="$ac_path_GREP"
4059 ac_path_GREP_max=$ac_count
4060 fi
4061 # 10*(2^10) chars as input seems more than enough
4062 test $ac_count -gt 10 && break
4063 done
4064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4065 esac
4066
4067 $ac_path_GREP_found && break 3
4068 done
4069 done
4070 done
4071 IFS=$as_save_IFS
4072 if test -z "$ac_cv_path_GREP"; then
4073 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4074 fi
4075 else
4076 ac_cv_path_GREP=$GREP
4077 fi
4078
4079 fi
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4081 $as_echo "$ac_cv_path_GREP" >&6; }
4082 GREP="$ac_cv_path_GREP"
4083
4084
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4086 $as_echo_n "checking for egrep... " >&6; }
4087 if ${ac_cv_path_EGREP+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4091 then ac_cv_path_EGREP="$GREP -E"
4092 else
4093 if test -z "$EGREP"; then
4094 ac_path_EGREP_found=false
4095 # Loop through the user's path and test for each of PROGNAME-LIST
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_prog in egrep; do
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4104 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4105 # Check for GNU ac_path_EGREP and select it if it is found.
4106 # Check for GNU $ac_path_EGREP
4107 case `"$ac_path_EGREP" --version 2>&1` in
4108 *GNU*)
4109 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4110 *)
4111 ac_count=0
4112 $as_echo_n 0123456789 >"conftest.in"
4113 while :
4114 do
4115 cat "conftest.in" "conftest.in" >"conftest.tmp"
4116 mv "conftest.tmp" "conftest.in"
4117 cp "conftest.in" "conftest.nl"
4118 $as_echo 'EGREP' >> "conftest.nl"
4119 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4121 as_fn_arith $ac_count + 1 && ac_count=$as_val
4122 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4123 # Best one so far, save it but keep looking for a better one
4124 ac_cv_path_EGREP="$ac_path_EGREP"
4125 ac_path_EGREP_max=$ac_count
4126 fi
4127 # 10*(2^10) chars as input seems more than enough
4128 test $ac_count -gt 10 && break
4129 done
4130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4131 esac
4132
4133 $ac_path_EGREP_found && break 3
4134 done
4135 done
4136 done
4137 IFS=$as_save_IFS
4138 if test -z "$ac_cv_path_EGREP"; then
4139 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140 fi
4141 else
4142 ac_cv_path_EGREP=$EGREP
4143 fi
4144
4145 fi
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4148 $as_echo "$ac_cv_path_EGREP" >&6; }
4149 EGREP="$ac_cv_path_EGREP"
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4153 $as_echo_n "checking for fgrep... " >&6; }
4154 if ${ac_cv_path_FGREP+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4158 then ac_cv_path_FGREP="$GREP -F"
4159 else
4160 if test -z "$FGREP"; then
4161 ac_path_FGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in fgrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4172 # Check for GNU ac_path_FGREP and select it if it is found.
4173 # Check for GNU $ac_path_FGREP
4174 case `"$ac_path_FGREP" --version 2>&1` in
4175 *GNU*)
4176 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4177 *)
4178 ac_count=0
4179 $as_echo_n 0123456789 >"conftest.in"
4180 while :
4181 do
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo 'FGREP' >> "conftest.nl"
4186 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_FGREP="$ac_path_FGREP"
4192 ac_path_FGREP_max=$ac_count
4193 fi
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4196 done
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4199
4200 $ac_path_FGREP_found && break 3
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205 if test -z "$ac_cv_path_FGREP"; then
4206 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207 fi
4208 else
4209 ac_cv_path_FGREP=$FGREP
4210 fi
4211
4212 fi
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4215 $as_echo "$ac_cv_path_FGREP" >&6; }
4216 FGREP="$ac_cv_path_FGREP"
4217
4218
4219 test -z "$GREP" && GREP=grep
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239 # Check whether --with-gnu-ld was given.
4240 if test "${with_gnu_ld+set}" = set; then :
4241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4242 else
4243 with_gnu_ld=no
4244 fi
4245
4246 ac_prog=ld
4247 if test "$GCC" = yes; then
4248 # Check if gcc -print-prog-name=ld gives a path.
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4250 $as_echo_n "checking for ld used by $CC... " >&6; }
4251 case $host in
4252 *-*-mingw*)
4253 # gcc leaves a trailing carriage return which upsets mingw
4254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4255 *)
4256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4257 esac
4258 case $ac_prog in
4259 # Accept absolute paths.
4260 [\\/]* | ?:[\\/]*)
4261 re_direlt='/[^/][^/]*/\.\./'
4262 # Canonicalize the pathname of ld
4263 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4264 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4265 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4266 done
4267 test -z "$LD" && LD="$ac_prog"
4268 ;;
4269 "")
4270 # If it fails, then pretend we aren't using GCC.
4271 ac_prog=ld
4272 ;;
4273 *)
4274 # If it is relative, then search for the first ld in PATH.
4275 with_gnu_ld=unknown
4276 ;;
4277 esac
4278 elif test "$with_gnu_ld" = yes; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4280 $as_echo_n "checking for GNU ld... " >&6; }
4281 else
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4283 $as_echo_n "checking for non-GNU ld... " >&6; }
4284 fi
4285 if ${lt_cv_path_LD+:} false; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -z "$LD"; then
4289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4290 for ac_dir in $PATH; do
4291 IFS="$lt_save_ifs"
4292 test -z "$ac_dir" && ac_dir=.
4293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4294 lt_cv_path_LD="$ac_dir/$ac_prog"
4295 # Check to see if the program is GNU ld. I'd rather use --version,
4296 # but apparently some variants of GNU ld only accept -v.
4297 # Break only if it was the GNU/non-GNU ld that we prefer.
4298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4299 *GNU* | *'with BFD'*)
4300 test "$with_gnu_ld" != no && break
4301 ;;
4302 *)
4303 test "$with_gnu_ld" != yes && break
4304 ;;
4305 esac
4306 fi
4307 done
4308 IFS="$lt_save_ifs"
4309 else
4310 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4311 fi
4312 fi
4313
4314 LD="$lt_cv_path_LD"
4315 if test -n "$LD"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4317 $as_echo "$LD" >&6; }
4318 else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4321 fi
4322 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4324 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4325 if ${lt_cv_prog_gnu_ld+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4329 case `$LD -v 2>&1 </dev/null` in
4330 *GNU* | *'with BFD'*)
4331 lt_cv_prog_gnu_ld=yes
4332 ;;
4333 *)
4334 lt_cv_prog_gnu_ld=no
4335 ;;
4336 esac
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4339 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4340 with_gnu_ld=$lt_cv_prog_gnu_ld
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4351 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4352 if ${lt_cv_path_NM+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354 else
4355 if test -n "$NM"; then
4356 # Let the user override the test.
4357 lt_cv_path_NM="$NM"
4358 else
4359 lt_nm_to_check="${ac_tool_prefix}nm"
4360 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4361 lt_nm_to_check="$lt_nm_to_check nm"
4362 fi
4363 for lt_tmp_nm in $lt_nm_to_check; do
4364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4366 IFS="$lt_save_ifs"
4367 test -z "$ac_dir" && ac_dir=.
4368 tmp_nm="$ac_dir/$lt_tmp_nm"
4369 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4370 # Check to see if the nm accepts a BSD-compat flag.
4371 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4372 # nm: unknown option "B" ignored
4373 # Tru64's nm complains that /dev/null is an invalid object file
4374 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4375 */dev/null* | *'Invalid file or object type'*)
4376 lt_cv_path_NM="$tmp_nm -B"
4377 break
4378 ;;
4379 *)
4380 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4381 */dev/null*)
4382 lt_cv_path_NM="$tmp_nm -p"
4383 break
4384 ;;
4385 *)
4386 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4387 continue # so that we can try to find one that supports BSD flags
4388 ;;
4389 esac
4390 ;;
4391 esac
4392 fi
4393 done
4394 IFS="$lt_save_ifs"
4395 done
4396 : ${lt_cv_path_NM=no}
4397 fi
4398 fi
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4400 $as_echo "$lt_cv_path_NM" >&6; }
4401 if test "$lt_cv_path_NM" != "no"; then
4402 NM="$lt_cv_path_NM"
4403 else
4404 # Didn't find any BSD compatible name lister, look for dumpbin.
4405 if test -n "$DUMPBIN"; then :
4406 # Let the user override the test.
4407 else
4408 if test -n "$ac_tool_prefix"; then
4409 for ac_prog in dumpbin "link -dump"
4410 do
4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_DUMPBIN+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$DUMPBIN"; then
4419 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432 done
4433 done
4434 IFS=$as_save_IFS
4435
4436 fi
4437 fi
4438 DUMPBIN=$ac_cv_prog_DUMPBIN
4439 if test -n "$DUMPBIN"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4441 $as_echo "$DUMPBIN" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448 test -n "$DUMPBIN" && break
4449 done
4450 fi
4451 if test -z "$DUMPBIN"; then
4452 ac_ct_DUMPBIN=$DUMPBIN
4453 for ac_prog in dumpbin "link -dump"
4454 do
4455 # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$ac_ct_DUMPBIN"; then
4463 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480 fi
4481 fi
4482 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4483 if test -n "$ac_ct_DUMPBIN"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4485 $as_echo "$ac_ct_DUMPBIN" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491
4492 test -n "$ac_ct_DUMPBIN" && break
4493 done
4494
4495 if test "x$ac_ct_DUMPBIN" = x; then
4496 DUMPBIN=":"
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499 yes:)
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502 ac_tool_warned=yes ;;
4503 esac
4504 DUMPBIN=$ac_ct_DUMPBIN
4505 fi
4506 fi
4507
4508 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4509 *COFF*)
4510 DUMPBIN="$DUMPBIN -symbols"
4511 ;;
4512 *)
4513 DUMPBIN=:
4514 ;;
4515 esac
4516 fi
4517
4518 if test "$DUMPBIN" != ":"; then
4519 NM="$DUMPBIN"
4520 fi
4521 fi
4522 test -z "$NM" && NM=nm
4523
4524
4525
4526
4527
4528
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4530 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4531 if ${lt_cv_nm_interface+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 lt_cv_nm_interface="BSD nm"
4535 echo "int some_variable = 0;" > conftest.$ac_ext
4536 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4537 (eval "$ac_compile" 2>conftest.err)
4538 cat conftest.err >&5
4539 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4540 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4541 cat conftest.err >&5
4542 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4543 cat conftest.out >&5
4544 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4545 lt_cv_nm_interface="MS dumpbin"
4546 fi
4547 rm -f conftest*
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4550 $as_echo "$lt_cv_nm_interface" >&6; }
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4553 $as_echo_n "checking whether ln -s works... " >&6; }
4554 LN_S=$as_ln_s
4555 if test "$LN_S" = "ln -s"; then
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558 else
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4560 $as_echo "no, using $LN_S" >&6; }
4561 fi
4562
4563 # find the maximum length of command line arguments
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4565 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4566 if ${lt_cv_sys_max_cmd_len+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 i=0
4570 teststring="ABCD"
4571
4572 case $build_os in
4573 msdosdjgpp*)
4574 # On DJGPP, this test can blow up pretty badly due to problems in libc
4575 # (any single argument exceeding 2000 bytes causes a buffer overrun
4576 # during glob expansion). Even if it were fixed, the result of this
4577 # check would be larger than it should be.
4578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4579 ;;
4580
4581 gnu*)
4582 # Under GNU Hurd, this test is not required because there is
4583 # no limit to the length of command line arguments.
4584 # Libtool will interpret -1 as no limit whatsoever
4585 lt_cv_sys_max_cmd_len=-1;
4586 ;;
4587
4588 cygwin* | mingw* | cegcc*)
4589 # On Win9x/ME, this test blows up -- it succeeds, but takes
4590 # about 5 minutes as the teststring grows exponentially.
4591 # Worse, since 9x/ME are not pre-emptively multitasking,
4592 # you end up with a "frozen" computer, even though with patience
4593 # the test eventually succeeds (with a max line length of 256k).
4594 # Instead, let's just punt: use the minimum linelength reported by
4595 # all of the supported platforms: 8192 (on NT/2K/XP).
4596 lt_cv_sys_max_cmd_len=8192;
4597 ;;
4598
4599 mint*)
4600 # On MiNT this can take a long time and run out of memory.
4601 lt_cv_sys_max_cmd_len=8192;
4602 ;;
4603
4604 amigaos*)
4605 # On AmigaOS with pdksh, this test takes hours, literally.
4606 # So we just punt and use a minimum line length of 8192.
4607 lt_cv_sys_max_cmd_len=8192;
4608 ;;
4609
4610 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4611 # This has been around since 386BSD, at least. Likely further.
4612 if test -x /sbin/sysctl; then
4613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4614 elif test -x /usr/sbin/sysctl; then
4615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4616 else
4617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4618 fi
4619 # And add a safety zone
4620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4622 ;;
4623
4624 interix*)
4625 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4626 lt_cv_sys_max_cmd_len=196608
4627 ;;
4628
4629 osf*)
4630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4632 # nice to cause kernel panics so lets avoid the loop below.
4633 # First set a reasonable default.
4634 lt_cv_sys_max_cmd_len=16384
4635 #
4636 if test -x /sbin/sysconfig; then
4637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4638 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4639 esac
4640 fi
4641 ;;
4642 sco3.2v5*)
4643 lt_cv_sys_max_cmd_len=102400
4644 ;;
4645 sysv5* | sco5v6* | sysv4.2uw2*)
4646 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4647 if test -n "$kargmax"; then
4648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4649 else
4650 lt_cv_sys_max_cmd_len=32768
4651 fi
4652 ;;
4653 *)
4654 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4655 if test -n "$lt_cv_sys_max_cmd_len"; then
4656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4658 else
4659 # Make teststring a little bigger before we do anything with it.
4660 # a 1K string should be a reasonable start.
4661 for i in 1 2 3 4 5 6 7 8 ; do
4662 teststring=$teststring$teststring
4663 done
4664 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4665 # If test is not a shell built-in, we'll probably end up computing a
4666 # maximum length that is only half of the actual maximum length, but
4667 # we can't tell.
4668 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4669 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4670 test $i != 17 # 1/2 MB should be enough
4671 do
4672 i=`expr $i + 1`
4673 teststring=$teststring$teststring
4674 done
4675 # Only check the string length outside the loop.
4676 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4677 teststring=
4678 # Add a significant safety factor because C++ compilers can tack on
4679 # massive amounts of additional arguments before passing them to the
4680 # linker. It appears as though 1/2 is a usable value.
4681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4682 fi
4683 ;;
4684 esac
4685
4686 fi
4687
4688 if test -n $lt_cv_sys_max_cmd_len ; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4690 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4693 $as_echo "none" >&6; }
4694 fi
4695 max_cmd_len=$lt_cv_sys_max_cmd_len
4696
4697
4698
4699
4700
4701
4702 : ${CP="cp -f"}
4703 : ${MV="mv -f"}
4704 : ${RM="rm -f"}
4705
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4707 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4708 # Try some XSI features
4709 xsi_shell=no
4710 ( _lt_dummy="a/b/c"
4711 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4712 = c,a/b,, \
4713 && eval 'test $(( 1 + 1 )) -eq 2 \
4714 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4715 && xsi_shell=yes
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4717 $as_echo "$xsi_shell" >&6; }
4718
4719
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4721 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4722 lt_shell_append=no
4723 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4724 >/dev/null 2>&1 \
4725 && lt_shell_append=yes
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4727 $as_echo "$lt_shell_append" >&6; }
4728
4729
4730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4731 lt_unset=unset
4732 else
4733 lt_unset=false
4734 fi
4735
4736
4737
4738
4739
4740 # test EBCDIC or ASCII
4741 case `echo X|tr X '\101'` in
4742 A) # ASCII based system
4743 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4744 lt_SP2NL='tr \040 \012'
4745 lt_NL2SP='tr \015\012 \040\040'
4746 ;;
4747 *) # EBCDIC based system
4748 lt_SP2NL='tr \100 \n'
4749 lt_NL2SP='tr \r\n \100\100'
4750 ;;
4751 esac
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4762 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4763 if ${lt_cv_ld_reload_flag+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 lt_cv_ld_reload_flag='-r'
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4769 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4770 reload_flag=$lt_cv_ld_reload_flag
4771 case $reload_flag in
4772 "" | " "*) ;;
4773 *) reload_flag=" $reload_flag" ;;
4774 esac
4775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4776 case $host_os in
4777 darwin*)
4778 if test "$GCC" = yes; then
4779 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4780 else
4781 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4782 fi
4783 ;;
4784 esac
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794 if test -n "$ac_tool_prefix"; then
4795 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4796 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_OBJDUMP+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$OBJDUMP"; then
4803 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4815 fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820 fi
4821 fi
4822 OBJDUMP=$ac_cv_prog_OBJDUMP
4823 if test -n "$OBJDUMP"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4825 $as_echo "$OBJDUMP" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830
4831
4832 fi
4833 if test -z "$ac_cv_prog_OBJDUMP"; then
4834 ac_ct_OBJDUMP=$OBJDUMP
4835 # Extract the first word of "objdump", so it can be a program name with args.
4836 set dummy objdump; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if test -n "$ac_ct_OBJDUMP"; then
4843 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4844 else
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH
4847 do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856 done
4857 done
4858 IFS=$as_save_IFS
4859
4860 fi
4861 fi
4862 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4863 if test -n "$ac_ct_OBJDUMP"; then
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4865 $as_echo "$ac_ct_OBJDUMP" >&6; }
4866 else
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868 $as_echo "no" >&6; }
4869 fi
4870
4871 if test "x$ac_ct_OBJDUMP" = x; then
4872 OBJDUMP="false"
4873 else
4874 case $cross_compiling:$ac_tool_warned in
4875 yes:)
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4878 ac_tool_warned=yes ;;
4879 esac
4880 OBJDUMP=$ac_ct_OBJDUMP
4881 fi
4882 else
4883 OBJDUMP="$ac_cv_prog_OBJDUMP"
4884 fi
4885
4886 test -z "$OBJDUMP" && OBJDUMP=objdump
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4897 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4898 if ${lt_cv_deplibs_check_method+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900 else
4901 lt_cv_file_magic_cmd='$MAGIC_CMD'
4902 lt_cv_file_magic_test_file=
4903 lt_cv_deplibs_check_method='unknown'
4904 # Need to set the preceding variable on all platforms that support
4905 # interlibrary dependencies.
4906 # 'none' -- dependencies not supported.
4907 # `unknown' -- same as none, but documents that we really don't know.
4908 # 'pass_all' -- all dependencies passed with no checks.
4909 # 'test_compile' -- check by making test program.
4910 # 'file_magic [[regex]]' -- check by looking for files in library path
4911 # which responds to the $file_magic_cmd with a given extended regex.
4912 # If you have `file' or equivalent on your system and you're not sure
4913 # whether `pass_all' will *always* work, you probably want this one.
4914
4915 case $host_os in
4916 aix[4-9]*)
4917 lt_cv_deplibs_check_method=pass_all
4918 ;;
4919
4920 beos*)
4921 lt_cv_deplibs_check_method=pass_all
4922 ;;
4923
4924 bsdi[45]*)
4925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4926 lt_cv_file_magic_cmd='/usr/bin/file -L'
4927 lt_cv_file_magic_test_file=/shlib/libc.so
4928 ;;
4929
4930 cygwin*)
4931 # func_win32_libid is a shell function defined in ltmain.sh
4932 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4933 lt_cv_file_magic_cmd='func_win32_libid'
4934 ;;
4935
4936 mingw* | pw32*)
4937 # Base MSYS/MinGW do not provide the 'file' command needed by
4938 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4939 # unless we find 'file', for example because we are cross-compiling.
4940 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4941 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4942 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4943 lt_cv_file_magic_cmd='func_win32_libid'
4944 else
4945 # Keep this pattern in sync with the one in func_win32_libid.
4946 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4947 lt_cv_file_magic_cmd='$OBJDUMP -f'
4948 fi
4949 ;;
4950
4951 cegcc*)
4952 # use the weaker test based on 'objdump'. See mingw*.
4953 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4954 lt_cv_file_magic_cmd='$OBJDUMP -f'
4955 ;;
4956
4957 darwin* | rhapsody*)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
4960
4961 freebsd* | dragonfly*)
4962 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4963 case $host_cpu in
4964 i*86 )
4965 # Not sure whether the presence of OpenBSD here was a mistake.
4966 # Let's accept both of them until this is cleared up.
4967 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4968 lt_cv_file_magic_cmd=/usr/bin/file
4969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4970 ;;
4971 esac
4972 else
4973 lt_cv_deplibs_check_method=pass_all
4974 fi
4975 ;;
4976
4977 gnu*)
4978 lt_cv_deplibs_check_method=pass_all
4979 ;;
4980
4981 haiku*)
4982 lt_cv_deplibs_check_method=pass_all
4983 ;;
4984
4985 hpux10.20* | hpux11*)
4986 lt_cv_file_magic_cmd=/usr/bin/file
4987 case $host_cpu in
4988 ia64*)
4989 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4990 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4991 ;;
4992 hppa*64*)
4993 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]'
4994 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4995 ;;
4996 *)
4997 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4998 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4999 ;;
5000 esac
5001 ;;
5002
5003 interix[3-9]*)
5004 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5006 ;;
5007
5008 irix5* | irix6* | nonstopux*)
5009 case $LD in
5010 *-32|*"-32 ") libmagic=32-bit;;
5011 *-n32|*"-n32 ") libmagic=N32;;
5012 *-64|*"-64 ") libmagic=64-bit;;
5013 *) libmagic=never-match;;
5014 esac
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
5018 # This must be Linux ELF.
5019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5020 lt_cv_deplibs_check_method=pass_all
5021 ;;
5022
5023 netbsd*)
5024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5026 else
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5028 fi
5029 ;;
5030
5031 newos6*)
5032 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5033 lt_cv_file_magic_cmd=/usr/bin/file
5034 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5035 ;;
5036
5037 *nto* | *qnx*)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5040
5041 openbsd*)
5042 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5044 else
5045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5046 fi
5047 ;;
5048
5049 osf3* | osf4* | osf5*)
5050 lt_cv_deplibs_check_method=pass_all
5051 ;;
5052
5053 rdos*)
5054 lt_cv_deplibs_check_method=pass_all
5055 ;;
5056
5057 solaris*)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060
5061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065 sysv4 | sysv4.3*)
5066 case $host_vendor in
5067 motorola)
5068 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]'
5069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5070 ;;
5071 ncr)
5072 lt_cv_deplibs_check_method=pass_all
5073 ;;
5074 sequent)
5075 lt_cv_file_magic_cmd='/bin/file'
5076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5077 ;;
5078 sni)
5079 lt_cv_file_magic_cmd='/bin/file'
5080 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5081 lt_cv_file_magic_test_file=/lib/libc.so
5082 ;;
5083 siemens)
5084 lt_cv_deplibs_check_method=pass_all
5085 ;;
5086 pc)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089 esac
5090 ;;
5091
5092 tpf*)
5093 lt_cv_deplibs_check_method=pass_all
5094 ;;
5095 esac
5096
5097 fi
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5099 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5100 file_magic_cmd=$lt_cv_file_magic_cmd
5101 deplibs_check_method=$lt_cv_deplibs_check_method
5102 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}ar; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_AR+:} false; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 if test -n "$AR"; then
5124 ac_cv_prog_AR="$AR" # Let the user override the test.
5125 else
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_prog_AR="${ac_tool_prefix}ar"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 fi
5142 fi
5143 AR=$ac_cv_prog_AR
5144 if test -n "$AR"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5146 $as_echo "$AR" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153 fi
5154 if test -z "$ac_cv_prog_AR"; then
5155 ac_ct_AR=$AR
5156 # Extract the first word of "ar", so it can be a program name with args.
5157 set dummy ar; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -n "$ac_ct_AR"; then
5164 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5165 else
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173 ac_cv_prog_ac_ct_AR="ar"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 break 2
5176 fi
5177 done
5178 done
5179 IFS=$as_save_IFS
5180
5181 fi
5182 fi
5183 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5184 if test -n "$ac_ct_AR"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5186 $as_echo "$ac_ct_AR" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192 if test "x$ac_ct_AR" = x; then
5193 AR="false"
5194 else
5195 case $cross_compiling:$ac_tool_warned in
5196 yes:)
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5200 esac
5201 AR=$ac_ct_AR
5202 fi
5203 else
5204 AR="$ac_cv_prog_AR"
5205 fi
5206
5207 test -z "$AR" && AR=ar
5208 test -z "$AR_FLAGS" && AR_FLAGS=cru
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}strip; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_STRIP+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$STRIP"; then
5229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 STRIP=$ac_cv_prog_STRIP
5249 if test -n "$STRIP"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5251 $as_echo "$STRIP" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_STRIP"; then
5260 ac_ct_STRIP=$STRIP
5261 # Extract the first word of "strip", so it can be a program name with args.
5262 set dummy strip; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$ac_ct_STRIP"; then
5269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5278 ac_cv_prog_ac_ct_STRIP="strip"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5289 if test -n "$ac_ct_STRIP"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5291 $as_echo "$ac_ct_STRIP" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297 if test "x$ac_ct_STRIP" = x; then
5298 STRIP=":"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306 STRIP=$ac_ct_STRIP
5307 fi
5308 else
5309 STRIP="$ac_cv_prog_STRIP"
5310 fi
5311
5312 test -z "$STRIP" && STRIP=:
5313
5314
5315
5316
5317
5318
5319 if test -n "$ac_tool_prefix"; then
5320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if ${ac_cv_prog_RANLIB+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 if test -n "$RANLIB"; then
5328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5329 else
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5331 for as_dir in $PATH
5332 do
5333 IFS=$as_save_IFS
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5339 break 2
5340 fi
5341 done
5342 done
5343 IFS=$as_save_IFS
5344
5345 fi
5346 fi
5347 RANLIB=$ac_cv_prog_RANLIB
5348 if test -n "$RANLIB"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5350 $as_echo "$RANLIB" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 fi
5358 if test -z "$ac_cv_prog_RANLIB"; then
5359 ac_ct_RANLIB=$RANLIB
5360 # Extract the first word of "ranlib", so it can be a program name with args.
5361 set dummy ranlib; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$ac_ct_RANLIB"; then
5368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5377 ac_cv_prog_ac_ct_RANLIB="ranlib"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5388 if test -n "$ac_ct_RANLIB"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5390 $as_echo "$ac_ct_RANLIB" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396 if test "x$ac_ct_RANLIB" = x; then
5397 RANLIB=":"
5398 else
5399 case $cross_compiling:$ac_tool_warned in
5400 yes:)
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5403 ac_tool_warned=yes ;;
5404 esac
5405 RANLIB=$ac_ct_RANLIB
5406 fi
5407 else
5408 RANLIB="$ac_cv_prog_RANLIB"
5409 fi
5410
5411 test -z "$RANLIB" && RANLIB=:
5412
5413
5414
5415
5416
5417
5418 # Determine commands to create old-style static archives.
5419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5420 old_postinstall_cmds='chmod 644 $oldlib'
5421 old_postuninstall_cmds=
5422
5423 if test -n "$RANLIB"; then
5424 case $host_os in
5425 openbsd*)
5426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5427 ;;
5428 *)
5429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5430 ;;
5431 esac
5432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5433 fi
5434
5435 case $host_os in
5436 darwin*)
5437 lock_old_archive_extraction=yes ;;
5438 *)
5439 lock_old_archive_extraction=no ;;
5440 esac
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 # If no C compiler was specified, use CC.
5481 LTCC=${LTCC-"$CC"}
5482
5483 # If no C compiler flags were specified, use CFLAGS.
5484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5485
5486 # Allow CC to be a program name with arguments.
5487 compiler=$CC
5488
5489
5490 # Check for command to grab the raw symbol name followed by C symbol from nm.
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5492 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5493 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496
5497 # These are sane defaults that work on at least a few old systems.
5498 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5499
5500 # Character class describing NM global symbol codes.
5501 symcode='[BCDEGRST]'
5502
5503 # Regexp to match symbols that can be accessed directly from C.
5504 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5505
5506 # Define system-specific variables.
5507 case $host_os in
5508 aix*)
5509 symcode='[BCDT]'
5510 ;;
5511 cygwin* | mingw* | pw32* | cegcc*)
5512 symcode='[ABCDGISTW]'
5513 ;;
5514 hpux*)
5515 if test "$host_cpu" = ia64; then
5516 symcode='[ABCDEGRST]'
5517 fi
5518 ;;
5519 irix* | nonstopux*)
5520 symcode='[BCDEGRST]'
5521 ;;
5522 osf*)
5523 symcode='[BCDEGQRST]'
5524 ;;
5525 solaris*)
5526 symcode='[BDRT]'
5527 ;;
5528 sco3.2v5*)
5529 symcode='[DT]'
5530 ;;
5531 sysv4.2uw2*)
5532 symcode='[DT]'
5533 ;;
5534 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5535 symcode='[ABDT]'
5536 ;;
5537 sysv4)
5538 symcode='[DFNSTU]'
5539 ;;
5540 esac
5541
5542 # If we're using GNU nm, then use its standard symbol codes.
5543 case `$NM -V 2>&1` in
5544 *GNU* | *'with BFD'*)
5545 symcode='[ABCDGIRSTW]' ;;
5546 esac
5547
5548 # Transform an extracted symbol line into a proper C declaration.
5549 # Some systems (esp. on ia64) link data and code symbols differently,
5550 # so use this general approach.
5551 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5552
5553 # Transform an extracted symbol line into symbol name and symbol address
5554 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5555 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'"
5556
5557 # Handle CRLF in mingw tool chain
5558 opt_cr=
5559 case $build_os in
5560 mingw*)
5561 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5562 ;;
5563 esac
5564
5565 # Try without a prefix underscore, then with it.
5566 for ac_symprfx in "" "_"; do
5567
5568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5569 symxfrm="\\1 $ac_symprfx\\2 \\2"
5570
5571 # Write the raw and C identifiers.
5572 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5573 # Fake it for dumpbin and say T for any non-static function
5574 # and D for any global variable.
5575 # Also find C++ and __fastcall symbols from MSVC++,
5576 # which start with @ or ?.
5577 lt_cv_sys_global_symbol_pipe="$AWK '"\
5578 " {last_section=section; section=\$ 3};"\
5579 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5580 " \$ 0!~/External *\|/{next};"\
5581 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5582 " {if(hide[section]) next};"\
5583 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5584 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5585 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5586 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5587 " ' prfx=^$ac_symprfx"
5588 else
5589 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5590 fi
5591
5592 # Check to see that the pipe works correctly.
5593 pipe_works=no
5594
5595 rm -f conftest*
5596 cat > conftest.$ac_ext <<_LT_EOF
5597 #ifdef __cplusplus
5598 extern "C" {
5599 #endif
5600 char nm_test_var;
5601 void nm_test_func(void);
5602 void nm_test_func(void){}
5603 #ifdef __cplusplus
5604 }
5605 #endif
5606 int main(){nm_test_var='a';nm_test_func();return(0);}
5607 _LT_EOF
5608
5609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5610 (eval $ac_compile) 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5613 test $ac_status = 0; }; then
5614 # Now try to grab the symbols.
5615 nlist=conftest.nm
5616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5617 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5618 ac_status=$?
5619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5620 test $ac_status = 0; } && test -s "$nlist"; then
5621 # Try sorting and uniquifying the output.
5622 if sort "$nlist" | uniq > "$nlist"T; then
5623 mv -f "$nlist"T "$nlist"
5624 else
5625 rm -f "$nlist"T
5626 fi
5627
5628 # Make sure that we snagged all the symbols we need.
5629 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5630 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5631 cat <<_LT_EOF > conftest.$ac_ext
5632 #ifdef __cplusplus
5633 extern "C" {
5634 #endif
5635
5636 _LT_EOF
5637 # Now generate the symbol file.
5638 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5639
5640 cat <<_LT_EOF >> conftest.$ac_ext
5641
5642 /* The mapping between symbol names and symbols. */
5643 const struct {
5644 const char *name;
5645 void *address;
5646 }
5647 lt__PROGRAM__LTX_preloaded_symbols[] =
5648 {
5649 { "@PROGRAM@", (void *) 0 },
5650 _LT_EOF
5651 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5652 cat <<\_LT_EOF >> conftest.$ac_ext
5653 {0, (void *) 0}
5654 };
5655
5656 /* This works around a problem in FreeBSD linker */
5657 #ifdef FREEBSD_WORKAROUND
5658 static const void *lt_preloaded_setup() {
5659 return lt__PROGRAM__LTX_preloaded_symbols;
5660 }
5661 #endif
5662
5663 #ifdef __cplusplus
5664 }
5665 #endif
5666 _LT_EOF
5667 # Now try linking the two files.
5668 mv conftest.$ac_objext conftstm.$ac_objext
5669 lt_save_LIBS="$LIBS"
5670 lt_save_CFLAGS="$CFLAGS"
5671 LIBS="conftstm.$ac_objext"
5672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5674 (eval $ac_link) 2>&5
5675 ac_status=$?
5676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5677 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5678 pipe_works=yes
5679 fi
5680 LIBS="$lt_save_LIBS"
5681 CFLAGS="$lt_save_CFLAGS"
5682 else
5683 echo "cannot find nm_test_func in $nlist" >&5
5684 fi
5685 else
5686 echo "cannot find nm_test_var in $nlist" >&5
5687 fi
5688 else
5689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5690 fi
5691 else
5692 echo "$progname: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5694 fi
5695 rm -rf conftest* conftst*
5696
5697 # Do not use the global_symbol_pipe unless it works.
5698 if test "$pipe_works" = yes; then
5699 break
5700 else
5701 lt_cv_sys_global_symbol_pipe=
5702 fi
5703 done
5704
5705 fi
5706
5707 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5708 lt_cv_sys_global_symbol_to_cdecl=
5709 fi
5710 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5712 $as_echo "failed" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5715 $as_echo "ok" >&6; }
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740 # Check whether --enable-libtool-lock was given.
5741 if test "${enable_libtool_lock+set}" = set; then :
5742 enableval=$enable_libtool_lock;
5743 fi
5744
5745 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5746
5747 # Some flags need to be propagated to the compiler or linker for good
5748 # libtool support.
5749 case $host in
5750 ia64-*-hpux*)
5751 # Find out which ABI we are using.
5752 echo 'int i;' > conftest.$ac_ext
5753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5754 (eval $ac_compile) 2>&5
5755 ac_status=$?
5756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5757 test $ac_status = 0; }; then
5758 case `/usr/bin/file conftest.$ac_objext` in
5759 *ELF-32*)
5760 HPUX_IA64_MODE="32"
5761 ;;
5762 *ELF-64*)
5763 HPUX_IA64_MODE="64"
5764 ;;
5765 esac
5766 fi
5767 rm -rf conftest*
5768 ;;
5769 *-*-irix6*)
5770 # Find out which ABI we are using.
5771 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5773 (eval $ac_compile) 2>&5
5774 ac_status=$?
5775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5776 test $ac_status = 0; }; then
5777 if test "$lt_cv_prog_gnu_ld" = yes; then
5778 case `/usr/bin/file conftest.$ac_objext` in
5779 *32-bit*)
5780 LD="${LD-ld} -melf32bsmip"
5781 ;;
5782 *N32*)
5783 LD="${LD-ld} -melf32bmipn32"
5784 ;;
5785 *64-bit*)
5786 LD="${LD-ld} -melf64bmip"
5787 ;;
5788 esac
5789 else
5790 case `/usr/bin/file conftest.$ac_objext` in
5791 *32-bit*)
5792 LD="${LD-ld} -32"
5793 ;;
5794 *N32*)
5795 LD="${LD-ld} -n32"
5796 ;;
5797 *64-bit*)
5798 LD="${LD-ld} -64"
5799 ;;
5800 esac
5801 fi
5802 fi
5803 rm -rf conftest*
5804 ;;
5805
5806 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5807 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5808 # Find out which ABI we are using.
5809 echo 'int i;' > conftest.$ac_ext
5810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5811 (eval $ac_compile) 2>&5
5812 ac_status=$?
5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814 test $ac_status = 0; }; then
5815 case `/usr/bin/file conftest.o` in
5816 *32-bit*)
5817 case $host in
5818 x86_64-*kfreebsd*-gnu)
5819 LD="${LD-ld} -m elf_i386_fbsd"
5820 ;;
5821 x86_64-*linux*)
5822 LD="${LD-ld} -m elf_i386"
5823 ;;
5824 ppc64-*linux*|powerpc64-*linux*)
5825 LD="${LD-ld} -m elf32ppclinux"
5826 ;;
5827 s390x-*linux*)
5828 LD="${LD-ld} -m elf_s390"
5829 ;;
5830 sparc64-*linux*)
5831 LD="${LD-ld} -m elf32_sparc"
5832 ;;
5833 esac
5834 ;;
5835 *64-bit*)
5836 case $host in
5837 x86_64-*kfreebsd*-gnu)
5838 LD="${LD-ld} -m elf_x86_64_fbsd"
5839 ;;
5840 x86_64-*linux*)
5841 LD="${LD-ld} -m elf_x86_64"
5842 ;;
5843 ppc*-*linux*|powerpc*-*linux*)
5844 LD="${LD-ld} -m elf64ppc"
5845 ;;
5846 s390*-*linux*|s390*-*tpf*)
5847 LD="${LD-ld} -m elf64_s390"
5848 ;;
5849 sparc*-*linux*)
5850 LD="${LD-ld} -m elf64_sparc"
5851 ;;
5852 esac
5853 ;;
5854 esac
5855 fi
5856 rm -rf conftest*
5857 ;;
5858
5859 *-*-sco3.2v5*)
5860 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5861 SAVE_CFLAGS="$CFLAGS"
5862 CFLAGS="$CFLAGS -belf"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5864 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5865 if ${lt_cv_cc_needs_belf+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 ac_ext=c
5869 ac_cpp='$CPP $CPPFLAGS'
5870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5873
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876
5877 int
5878 main ()
5879 {
5880
5881 ;
5882 return 0;
5883 }
5884 _ACEOF
5885 if ac_fn_c_try_link "$LINENO"; then :
5886 lt_cv_cc_needs_belf=yes
5887 else
5888 lt_cv_cc_needs_belf=no
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext \
5891 conftest$ac_exeext conftest.$ac_ext
5892 ac_ext=c
5893 ac_cpp='$CPP $CPPFLAGS'
5894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5897
5898 fi
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5900 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5901 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5903 CFLAGS="$SAVE_CFLAGS"
5904 fi
5905 ;;
5906 sparc*-*solaris*)
5907 # Find out which ABI we are using.
5908 echo 'int i;' > conftest.$ac_ext
5909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5910 (eval $ac_compile) 2>&5
5911 ac_status=$?
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; }; then
5914 case `/usr/bin/file conftest.o` in
5915 *64-bit*)
5916 case $lt_cv_prog_gnu_ld in
5917 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5918 *)
5919 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5920 LD="${LD-ld} -64"
5921 fi
5922 ;;
5923 esac
5924 ;;
5925 esac
5926 fi
5927 rm -rf conftest*
5928 ;;
5929 esac
5930
5931 need_locks="$enable_libtool_lock"
5932
5933
5934 case $host_os in
5935 rhapsody* | darwin*)
5936 if test -n "$ac_tool_prefix"; then
5937 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5938 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5940 $as_echo_n "checking for $ac_word... " >&6; }
5941 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if test -n "$DSYMUTIL"; then
5945 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5946 else
5947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 for as_dir in $PATH
5949 do
5950 IFS=$as_save_IFS
5951 test -z "$as_dir" && as_dir=.
5952 for ac_exec_ext in '' $ac_executable_extensions; do
5953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 break 2
5957 fi
5958 done
5959 done
5960 IFS=$as_save_IFS
5961
5962 fi
5963 fi
5964 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5965 if test -n "$DSYMUTIL"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5967 $as_echo "$DSYMUTIL" >&6; }
5968 else
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5970 $as_echo "no" >&6; }
5971 fi
5972
5973
5974 fi
5975 if test -z "$ac_cv_prog_DSYMUTIL"; then
5976 ac_ct_DSYMUTIL=$DSYMUTIL
5977 # Extract the first word of "dsymutil", so it can be a program name with args.
5978 set dummy dsymutil; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if test -n "$ac_ct_DSYMUTIL"; then
5985 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5994 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6005 if test -n "$ac_ct_DSYMUTIL"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6007 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013 if test "x$ac_ct_DSYMUTIL" = x; then
6014 DSYMUTIL=":"
6015 else
6016 case $cross_compiling:$ac_tool_warned in
6017 yes:)
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6020 ac_tool_warned=yes ;;
6021 esac
6022 DSYMUTIL=$ac_ct_DSYMUTIL
6023 fi
6024 else
6025 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6026 fi
6027
6028 if test -n "$ac_tool_prefix"; then
6029 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_NMEDIT+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$NMEDIT"; then
6037 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 NMEDIT=$ac_cv_prog_NMEDIT
6057 if test -n "$NMEDIT"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6059 $as_echo "$NMEDIT" >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_NMEDIT"; then
6068 ac_ct_NMEDIT=$NMEDIT
6069 # Extract the first word of "nmedit", so it can be a program name with args.
6070 set dummy nmedit; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 if test -n "$ac_ct_NMEDIT"; then
6077 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082 IFS=$as_save_IFS
6083 test -z "$as_dir" && as_dir=.
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6097 if test -n "$ac_ct_NMEDIT"; then
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6099 $as_echo "$ac_ct_NMEDIT" >&6; }
6100 else
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105 if test "x$ac_ct_NMEDIT" = x; then
6106 NMEDIT=":"
6107 else
6108 case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114 NMEDIT=$ac_ct_NMEDIT
6115 fi
6116 else
6117 NMEDIT="$ac_cv_prog_NMEDIT"
6118 fi
6119
6120 if test -n "$ac_tool_prefix"; then
6121 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6122 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_LIPO+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 if test -n "$LIPO"; then
6129 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 LIPO=$ac_cv_prog_LIPO
6149 if test -n "$LIPO"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6151 $as_echo "$LIPO" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157
6158 fi
6159 if test -z "$ac_cv_prog_LIPO"; then
6160 ac_ct_LIPO=$LIPO
6161 # Extract the first word of "lipo", so it can be a program name with args.
6162 set dummy lipo; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6166 $as_echo_n "(cached) " >&6
6167 else
6168 if test -n "$ac_ct_LIPO"; then
6169 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_ac_ct_LIPO="lipo"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180 break 2
6181 fi
6182 done
6183 done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6189 if test -n "$ac_ct_LIPO"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6191 $as_echo "$ac_ct_LIPO" >&6; }
6192 else
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197 if test "x$ac_ct_LIPO" = x; then
6198 LIPO=":"
6199 else
6200 case $cross_compiling:$ac_tool_warned in
6201 yes:)
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6204 ac_tool_warned=yes ;;
6205 esac
6206 LIPO=$ac_ct_LIPO
6207 fi
6208 else
6209 LIPO="$ac_cv_prog_LIPO"
6210 fi
6211
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}otool; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_OTOOL+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$OTOOL"; then
6221 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 OTOOL=$ac_cv_prog_OTOOL
6241 if test -n "$OTOOL"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6243 $as_echo "$OTOOL" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_OTOOL"; then
6252 ac_ct_OTOOL=$OTOOL
6253 # Extract the first word of "otool", so it can be a program name with args.
6254 set dummy otool; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$ac_ct_OTOOL"; then
6261 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_OTOOL="otool"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6281 if test -n "$ac_ct_OTOOL"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6283 $as_echo "$ac_ct_OTOOL" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_OTOOL" = x; then
6290 OTOOL=":"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 OTOOL=$ac_ct_OTOOL
6299 fi
6300 else
6301 OTOOL="$ac_cv_prog_OTOOL"
6302 fi
6303
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_OTOOL64+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$OTOOL64"; then
6313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6317 do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi
6331 fi
6332 OTOOL64=$ac_cv_prog_OTOOL64
6333 if test -n "$OTOOL64"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6335 $as_echo "$OTOOL64" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340
6341
6342 fi
6343 if test -z "$ac_cv_prog_OTOOL64"; then
6344 ac_ct_OTOOL64=$OTOOL64
6345 # Extract the first word of "otool64", so it can be a program name with args.
6346 set dummy otool64; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_OTOOL64"; then
6353 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6357 do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_OTOOL64="otool64"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366 done
6367 done
6368 IFS=$as_save_IFS
6369
6370 fi
6371 fi
6372 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6373 if test -n "$ac_ct_OTOOL64"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6375 $as_echo "$ac_ct_OTOOL64" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6379 fi
6380
6381 if test "x$ac_ct_OTOOL64" = x; then
6382 OTOOL64=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 OTOOL64=$ac_ct_OTOOL64
6391 fi
6392 else
6393 OTOOL64="$ac_cv_prog_OTOOL64"
6394 fi
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6423 $as_echo_n "checking for -single_module linker flag... " >&6; }
6424 if ${lt_cv_apple_cc_single_mod+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 lt_cv_apple_cc_single_mod=no
6428 if test -z "${LT_MULTI_MODULE}"; then
6429 # By default we will add the -single_module flag. You can override
6430 # by either setting the environment variable LT_MULTI_MODULE
6431 # non-empty at configure time, or by adding -multi_module to the
6432 # link flags.
6433 rm -rf libconftest.dylib*
6434 echo "int foo(void){return 1;}" > conftest.c
6435 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6436 -dynamiclib -Wl,-single_module conftest.c" >&5
6437 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6438 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6439 _lt_result=$?
6440 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6441 lt_cv_apple_cc_single_mod=yes
6442 else
6443 cat conftest.err >&5
6444 fi
6445 rm -rf libconftest.dylib*
6446 rm -f conftest.*
6447 fi
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6450 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6452 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6453 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 lt_cv_ld_exported_symbols_list=no
6457 save_LDFLAGS=$LDFLAGS
6458 echo "_main" > conftest.sym
6459 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_link "$LINENO"; then :
6472 lt_cv_ld_exported_symbols_list=yes
6473 else
6474 lt_cv_ld_exported_symbols_list=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext \
6477 conftest$ac_exeext conftest.$ac_ext
6478 LDFLAGS="$save_LDFLAGS"
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6482 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6484 $as_echo_n "checking for -force_load linker flag... " >&6; }
6485 if ${lt_cv_ld_force_load+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 lt_cv_ld_force_load=no
6489 cat > conftest.c << _LT_EOF
6490 int forced_loaded() { return 2;}
6491 _LT_EOF
6492 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6493 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6494 echo "$AR cru libconftest.a conftest.o" >&5
6495 $AR cru libconftest.a conftest.o 2>&5
6496 echo "$RANLIB libconftest.a" >&5
6497 $RANLIB libconftest.a 2>&5
6498 cat > conftest.c << _LT_EOF
6499 int main() { return 0;}
6500 _LT_EOF
6501 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6502 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6503 _lt_result=$?
6504 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6505 lt_cv_ld_force_load=yes
6506 else
6507 cat conftest.err >&5
6508 fi
6509 rm -f conftest.err libconftest.a conftest conftest.c
6510 rm -rf conftest.dSYM
6511
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6514 $as_echo "$lt_cv_ld_force_load" >&6; }
6515 case $host_os in
6516 rhapsody* | darwin1.[012])
6517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6518 darwin1.*)
6519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6520 darwin*) # darwin 5.x on
6521 # if running on 10.5 or later, the deployment target defaults
6522 # to the OS version, if on x86, and 10.4, the deployment
6523 # target defaults to 10.4. Don't you love it?
6524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6525 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6527 10.[012]*)
6528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6529 10.*)
6530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6531 esac
6532 ;;
6533 esac
6534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6535 _lt_dar_single_mod='$single_module'
6536 fi
6537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6539 else
6540 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6541 fi
6542 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6543 _lt_dsymutil='~$DSYMUTIL $lib || :'
6544 else
6545 _lt_dsymutil=
6546 fi
6547 ;;
6548 esac
6549
6550 ac_ext=c
6551 ac_cpp='$CPP $CPPFLAGS'
6552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6556 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6557 # On Suns, sometimes $CPP names a directory.
6558 if test -n "$CPP" && test -d "$CPP"; then
6559 CPP=
6560 fi
6561 if test -z "$CPP"; then
6562 if ${ac_cv_prog_CPP+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 # Double quotes because CPP needs to be expanded
6566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6567 do
6568 ac_preproc_ok=false
6569 for ac_c_preproc_warn_flag in '' yes
6570 do
6571 # Use a header file that comes with gcc, so configuring glibc
6572 # with a fresh cross-compiler works.
6573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574 # <limits.h> exists even on freestanding compilers.
6575 # On the NeXT, cc -E runs the code through the compiler's parser,
6576 # not just through cpp. "Syntax error" is here to catch this case.
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6579 #ifdef __STDC__
6580 # include <limits.h>
6581 #else
6582 # include <assert.h>
6583 #endif
6584 Syntax error
6585 _ACEOF
6586 if ac_fn_c_try_cpp "$LINENO"; then :
6587
6588 else
6589 # Broken: fails on valid input.
6590 continue
6591 fi
6592 rm -f conftest.err conftest.i conftest.$ac_ext
6593
6594 # OK, works on sane cases. Now check whether nonexistent headers
6595 # can be detected and how.
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #include <ac_nonexistent.h>
6599 _ACEOF
6600 if ac_fn_c_try_cpp "$LINENO"; then :
6601 # Broken: success on invalid input.
6602 continue
6603 else
6604 # Passes both tests.
6605 ac_preproc_ok=:
6606 break
6607 fi
6608 rm -f conftest.err conftest.i conftest.$ac_ext
6609
6610 done
6611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6612 rm -f conftest.i conftest.err conftest.$ac_ext
6613 if $ac_preproc_ok; then :
6614 break
6615 fi
6616
6617 done
6618 ac_cv_prog_CPP=$CPP
6619
6620 fi
6621 CPP=$ac_cv_prog_CPP
6622 else
6623 ac_cv_prog_CPP=$CPP
6624 fi
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6626 $as_echo "$CPP" >&6; }
6627 ac_preproc_ok=false
6628 for ac_c_preproc_warn_flag in '' yes
6629 do
6630 # Use a header file that comes with gcc, so configuring glibc
6631 # with a fresh cross-compiler works.
6632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6633 # <limits.h> exists even on freestanding compilers.
6634 # On the NeXT, cc -E runs the code through the compiler's parser,
6635 # not just through cpp. "Syntax error" is here to catch this case.
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6638 #ifdef __STDC__
6639 # include <limits.h>
6640 #else
6641 # include <assert.h>
6642 #endif
6643 Syntax error
6644 _ACEOF
6645 if ac_fn_c_try_cpp "$LINENO"; then :
6646
6647 else
6648 # Broken: fails on valid input.
6649 continue
6650 fi
6651 rm -f conftest.err conftest.i conftest.$ac_ext
6652
6653 # OK, works on sane cases. Now check whether nonexistent headers
6654 # can be detected and how.
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6657 #include <ac_nonexistent.h>
6658 _ACEOF
6659 if ac_fn_c_try_cpp "$LINENO"; then :
6660 # Broken: success on invalid input.
6661 continue
6662 else
6663 # Passes both tests.
6664 ac_preproc_ok=:
6665 break
6666 fi
6667 rm -f conftest.err conftest.i conftest.$ac_ext
6668
6669 done
6670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6671 rm -f conftest.i conftest.err conftest.$ac_ext
6672 if $ac_preproc_ok; then :
6673
6674 else
6675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6677 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6678 See \`config.log' for more details" "$LINENO" 5; }
6679 fi
6680
6681 ac_ext=c
6682 ac_cpp='$CPP $CPPFLAGS'
6683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6686
6687
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6689 $as_echo_n "checking for ANSI C header files... " >&6; }
6690 if ${ac_cv_header_stdc+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 #include <stdlib.h>
6696 #include <stdarg.h>
6697 #include <string.h>
6698 #include <float.h>
6699
6700 int
6701 main ()
6702 {
6703
6704 ;
6705 return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 ac_cv_header_stdc=yes
6710 else
6711 ac_cv_header_stdc=no
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714
6715 if test $ac_cv_header_stdc = yes; then
6716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <string.h>
6720
6721 _ACEOF
6722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6723 $EGREP "memchr" >/dev/null 2>&1; then :
6724
6725 else
6726 ac_cv_header_stdc=no
6727 fi
6728 rm -f conftest*
6729
6730 fi
6731
6732 if test $ac_cv_header_stdc = yes; then
6733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 #include <stdlib.h>
6737
6738 _ACEOF
6739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6740 $EGREP "free" >/dev/null 2>&1; then :
6741
6742 else
6743 ac_cv_header_stdc=no
6744 fi
6745 rm -f conftest*
6746
6747 fi
6748
6749 if test $ac_cv_header_stdc = yes; then
6750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6751 if test "$cross_compiling" = yes; then :
6752 :
6753 else
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6756 #include <ctype.h>
6757 #include <stdlib.h>
6758 #if ((' ' & 0x0FF) == 0x020)
6759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6761 #else
6762 # define ISLOWER(c) \
6763 (('a' <= (c) && (c) <= 'i') \
6764 || ('j' <= (c) && (c) <= 'r') \
6765 || ('s' <= (c) && (c) <= 'z'))
6766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6767 #endif
6768
6769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6770 int
6771 main ()
6772 {
6773 int i;
6774 for (i = 0; i < 256; i++)
6775 if (XOR (islower (i), ISLOWER (i))
6776 || toupper (i) != TOUPPER (i))
6777 return 2;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_run "$LINENO"; then :
6782
6783 else
6784 ac_cv_header_stdc=no
6785 fi
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6787 conftest.$ac_objext conftest.beam conftest.$ac_ext
6788 fi
6789
6790 fi
6791 fi
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6793 $as_echo "$ac_cv_header_stdc" >&6; }
6794 if test $ac_cv_header_stdc = yes; then
6795
6796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6797
6798 fi
6799
6800 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6802 inttypes.h stdint.h unistd.h
6803 do :
6804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6806 "
6807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6811
6812 fi
6813
6814 done
6815
6816
6817 for ac_header in dlfcn.h
6818 do :
6819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6820 "
6821 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DLFCN_H 1
6824 _ACEOF
6825
6826 fi
6827
6828 done
6829
6830
6831
6832
6833
6834 # Set options
6835
6836
6837
6838 enable_dlopen=no
6839
6840
6841 enable_win32_dll=no
6842
6843
6844 # Check whether --enable-shared was given.
6845 if test "${enable_shared+set}" = set; then :
6846 enableval=$enable_shared; p=${PACKAGE-default}
6847 case $enableval in
6848 yes) enable_shared=yes ;;
6849 no) enable_shared=no ;;
6850 *)
6851 enable_shared=no
6852 # Look at the argument we got. We use all the common list separators.
6853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6854 for pkg in $enableval; do
6855 IFS="$lt_save_ifs"
6856 if test "X$pkg" = "X$p"; then
6857 enable_shared=yes
6858 fi
6859 done
6860 IFS="$lt_save_ifs"
6861 ;;
6862 esac
6863 else
6864 enable_shared=yes
6865 fi
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875 # Check whether --enable-static was given.
6876 if test "${enable_static+set}" = set; then :
6877 enableval=$enable_static; p=${PACKAGE-default}
6878 case $enableval in
6879 yes) enable_static=yes ;;
6880 no) enable_static=no ;;
6881 *)
6882 enable_static=no
6883 # Look at the argument we got. We use all the common list separators.
6884 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6885 for pkg in $enableval; do
6886 IFS="$lt_save_ifs"
6887 if test "X$pkg" = "X$p"; then
6888 enable_static=yes
6889 fi
6890 done
6891 IFS="$lt_save_ifs"
6892 ;;
6893 esac
6894 else
6895 enable_static=yes
6896 fi
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 # Check whether --with-pic was given.
6908 if test "${with_pic+set}" = set; then :
6909 withval=$with_pic; pic_mode="$withval"
6910 else
6911 pic_mode=default
6912 fi
6913
6914
6915 test -z "$pic_mode" && pic_mode=default
6916
6917
6918
6919
6920
6921
6922
6923 # Check whether --enable-fast-install was given.
6924 if test "${enable_fast_install+set}" = set; then :
6925 enableval=$enable_fast_install; p=${PACKAGE-default}
6926 case $enableval in
6927 yes) enable_fast_install=yes ;;
6928 no) enable_fast_install=no ;;
6929 *)
6930 enable_fast_install=no
6931 # Look at the argument we got. We use all the common list separators.
6932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6933 for pkg in $enableval; do
6934 IFS="$lt_save_ifs"
6935 if test "X$pkg" = "X$p"; then
6936 enable_fast_install=yes
6937 fi
6938 done
6939 IFS="$lt_save_ifs"
6940 ;;
6941 esac
6942 else
6943 enable_fast_install=yes
6944 fi
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956 # This can be used to rebuild libtool when needed
6957 LIBTOOL_DEPS="$ltmain"
6958
6959 # Always use our own libtool.
6960 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987 test -z "$LN_S" && LN_S="ln -s"
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002 if test -n "${ZSH_VERSION+set}" ; then
7003 setopt NO_GLOB_SUBST
7004 fi
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7007 $as_echo_n "checking for objdir... " >&6; }
7008 if ${lt_cv_objdir+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 rm -f .libs 2>/dev/null
7012 mkdir .libs 2>/dev/null
7013 if test -d .libs; then
7014 lt_cv_objdir=.libs
7015 else
7016 # MS-DOS does not allow filenames that begin with a dot.
7017 lt_cv_objdir=_libs
7018 fi
7019 rmdir .libs 2>/dev/null
7020 fi
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7022 $as_echo "$lt_cv_objdir" >&6; }
7023 objdir=$lt_cv_objdir
7024
7025
7026
7027
7028
7029 cat >>confdefs.h <<_ACEOF
7030 #define LT_OBJDIR "$lt_cv_objdir/"
7031 _ACEOF
7032
7033
7034
7035
7036 case $host_os in
7037 aix3*)
7038 # AIX sometimes has problems with the GCC collect2 program. For some
7039 # reason, if we set the COLLECT_NAMES environment variable, the problems
7040 # vanish in a puff of smoke.
7041 if test "X${COLLECT_NAMES+set}" != Xset; then
7042 COLLECT_NAMES=
7043 export COLLECT_NAMES
7044 fi
7045 ;;
7046 esac
7047
7048 # Global variables:
7049 ofile=libtool
7050 can_build_shared=yes
7051
7052 # All known linkers require a `.a' archive for static linking (except MSVC,
7053 # which needs '.lib').
7054 libext=a
7055
7056 with_gnu_ld="$lt_cv_prog_gnu_ld"
7057
7058 old_CC="$CC"
7059 old_CFLAGS="$CFLAGS"
7060
7061 # Set sane defaults for various variables
7062 test -z "$CC" && CC=cc
7063 test -z "$LTCC" && LTCC=$CC
7064 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7065 test -z "$LD" && LD=ld
7066 test -z "$ac_objext" && ac_objext=o
7067
7068 for cc_temp in $compiler""; do
7069 case $cc_temp in
7070 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7071 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7072 \-*) ;;
7073 *) break;;
7074 esac
7075 done
7076 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7077
7078
7079 # Only perform the check for file, if the check method requires it
7080 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7081 case $deplibs_check_method in
7082 file_magic*)
7083 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7085 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7086 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 case $MAGIC_CMD in
7090 [\\/*] | ?:[\\/]*)
7091 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7092 ;;
7093 *)
7094 lt_save_MAGIC_CMD="$MAGIC_CMD"
7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7097 for ac_dir in $ac_dummy; do
7098 IFS="$lt_save_ifs"
7099 test -z "$ac_dir" && ac_dir=.
7100 if test -f $ac_dir/${ac_tool_prefix}file; then
7101 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7102 if test -n "$file_magic_test_file"; then
7103 case $deplibs_check_method in
7104 "file_magic "*)
7105 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7106 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7107 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7108 $EGREP "$file_magic_regex" > /dev/null; then
7109 :
7110 else
7111 cat <<_LT_EOF 1>&2
7112
7113 *** Warning: the command libtool uses to detect shared libraries,
7114 *** $file_magic_cmd, produces output that libtool cannot recognize.
7115 *** The result is that libtool may fail to recognize shared libraries
7116 *** as such. This will affect the creation of libtool libraries that
7117 *** depend on shared libraries, but programs linked with such libtool
7118 *** libraries will work regardless of this problem. Nevertheless, you
7119 *** may want to report the problem to your system manager and/or to
7120 *** bug-libtool@gnu.org
7121
7122 _LT_EOF
7123 fi ;;
7124 esac
7125 fi
7126 break
7127 fi
7128 done
7129 IFS="$lt_save_ifs"
7130 MAGIC_CMD="$lt_save_MAGIC_CMD"
7131 ;;
7132 esac
7133 fi
7134
7135 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136 if test -n "$MAGIC_CMD"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7138 $as_echo "$MAGIC_CMD" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144
7145
7146
7147
7148 if test -z "$lt_cv_path_MAGIC_CMD"; then
7149 if test -n "$ac_tool_prefix"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7151 $as_echo_n "checking for file... " >&6; }
7152 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 case $MAGIC_CMD in
7156 [\\/*] | ?:[\\/]*)
7157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7158 ;;
7159 *)
7160 lt_save_MAGIC_CMD="$MAGIC_CMD"
7161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7162 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7163 for ac_dir in $ac_dummy; do
7164 IFS="$lt_save_ifs"
7165 test -z "$ac_dir" && ac_dir=.
7166 if test -f $ac_dir/file; then
7167 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7168 if test -n "$file_magic_test_file"; then
7169 case $deplibs_check_method in
7170 "file_magic "*)
7171 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7173 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7174 $EGREP "$file_magic_regex" > /dev/null; then
7175 :
7176 else
7177 cat <<_LT_EOF 1>&2
7178
7179 *** Warning: the command libtool uses to detect shared libraries,
7180 *** $file_magic_cmd, produces output that libtool cannot recognize.
7181 *** The result is that libtool may fail to recognize shared libraries
7182 *** as such. This will affect the creation of libtool libraries that
7183 *** depend on shared libraries, but programs linked with such libtool
7184 *** libraries will work regardless of this problem. Nevertheless, you
7185 *** may want to report the problem to your system manager and/or to
7186 *** bug-libtool@gnu.org
7187
7188 _LT_EOF
7189 fi ;;
7190 esac
7191 fi
7192 break
7193 fi
7194 done
7195 IFS="$lt_save_ifs"
7196 MAGIC_CMD="$lt_save_MAGIC_CMD"
7197 ;;
7198 esac
7199 fi
7200
7201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7202 if test -n "$MAGIC_CMD"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7204 $as_echo "$MAGIC_CMD" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7208 fi
7209
7210
7211 else
7212 MAGIC_CMD=:
7213 fi
7214 fi
7215
7216 fi
7217 ;;
7218 esac
7219
7220 # Use C for the default configuration in the libtool script
7221
7222 lt_save_CC="$CC"
7223 ac_ext=c
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
7229
7230 # Source file extension for C test sources.
7231 ac_ext=c
7232
7233 # Object file extension for compiled C test sources.
7234 objext=o
7235 objext=$objext
7236
7237 # Code to be used in simple compile tests
7238 lt_simple_compile_test_code="int some_variable = 0;"
7239
7240 # Code to be used in simple link tests
7241 lt_simple_link_test_code='int main(){return(0);}'
7242
7243
7244
7245
7246
7247
7248
7249 # If no C compiler was specified, use CC.
7250 LTCC=${LTCC-"$CC"}
7251
7252 # If no C compiler flags were specified, use CFLAGS.
7253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7254
7255 # Allow CC to be a program name with arguments.
7256 compiler=$CC
7257
7258 # Save the default compiler, since it gets overwritten when the other
7259 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7260 compiler_DEFAULT=$CC
7261
7262 # save warnings/boilerplate of simple test code
7263 ac_outfile=conftest.$ac_objext
7264 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7265 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7266 _lt_compiler_boilerplate=`cat conftest.err`
7267 $RM conftest*
7268
7269 ac_outfile=conftest.$ac_objext
7270 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7271 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7272 _lt_linker_boilerplate=`cat conftest.err`
7273 $RM -r conftest*
7274
7275
7276 if test -n "$compiler"; then
7277
7278 lt_prog_compiler_no_builtin_flag=
7279
7280 if test "$GCC" = yes; then
7281 case $cc_basename in
7282 nvcc*)
7283 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7284 *)
7285 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7286 esac
7287
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7289 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7290 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 lt_cv_prog_compiler_rtti_exceptions=no
7294 ac_outfile=conftest.$ac_objext
7295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7296 lt_compiler_flag="-fno-rtti -fno-exceptions"
7297 # Insert the option either (1) after the last *FLAGS variable, or
7298 # (2) before a word containing "conftest.", or (3) at the end.
7299 # Note that $ac_compile itself does not contain backslashes and begins
7300 # with a dollar sign (not a hyphen), so the echo should work correctly.
7301 # The option is referenced via a variable to avoid confusing sed.
7302 lt_compile=`echo "$ac_compile" | $SED \
7303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7305 -e 's:$: $lt_compiler_flag:'`
7306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7307 (eval "$lt_compile" 2>conftest.err)
7308 ac_status=$?
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 if (exit $ac_status) && test -s "$ac_outfile"; then
7312 # The compiler can only warn and ignore the option if not recognized
7313 # So say no if there are warnings other than the usual output.
7314 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7317 lt_cv_prog_compiler_rtti_exceptions=yes
7318 fi
7319 fi
7320 $RM conftest*
7321
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7324 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7325
7326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7328 else
7329 :
7330 fi
7331
7332 fi
7333
7334
7335
7336
7337
7338
7339 lt_prog_compiler_wl=
7340 lt_prog_compiler_pic=
7341 lt_prog_compiler_static=
7342
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7344 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7345
7346 if test "$GCC" = yes; then
7347 lt_prog_compiler_wl='-Wl,'
7348 lt_prog_compiler_static='-static'
7349
7350 case $host_os in
7351 aix*)
7352 # All AIX code is PIC.
7353 if test "$host_cpu" = ia64; then
7354 # AIX 5 now supports IA64 processor
7355 lt_prog_compiler_static='-Bstatic'
7356 fi
7357 ;;
7358
7359 amigaos*)
7360 case $host_cpu in
7361 powerpc)
7362 # see comment about AmigaOS4 .so support
7363 lt_prog_compiler_pic='-fPIC'
7364 ;;
7365 m68k)
7366 # FIXME: we need at least 68020 code to build shared libraries, but
7367 # adding the `-m68020' flag to GCC prevents building anything better,
7368 # like `-m68040'.
7369 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7370 ;;
7371 esac
7372 ;;
7373
7374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7375 # PIC is the default for these OSes.
7376 ;;
7377
7378 mingw* | cygwin* | pw32* | os2* | cegcc*)
7379 # This hack is so that the source file can tell whether it is being
7380 # built for inclusion in a dll (and should export symbols for example).
7381 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7382 # (--disable-auto-import) libraries
7383 lt_prog_compiler_pic='-DDLL_EXPORT'
7384 ;;
7385
7386 darwin* | rhapsody*)
7387 # PIC is the default on this platform
7388 # Common symbols not allowed in MH_DYLIB files
7389 lt_prog_compiler_pic='-fno-common'
7390 ;;
7391
7392 haiku*)
7393 # PIC is the default for Haiku.
7394 # The "-static" flag exists, but is broken.
7395 lt_prog_compiler_static=
7396 ;;
7397
7398 hpux*)
7399 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7400 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7401 # sets the default TLS model and affects inlining.
7402 case $host_cpu in
7403 hppa*64*)
7404 # +Z the default
7405 ;;
7406 *)
7407 lt_prog_compiler_pic='-fPIC'
7408 ;;
7409 esac
7410 ;;
7411
7412 interix[3-9]*)
7413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7414 # Instead, we relocate shared libraries at runtime.
7415 ;;
7416
7417 msdosdjgpp*)
7418 # Just because we use GCC doesn't mean we suddenly get shared libraries
7419 # on systems that don't support them.
7420 lt_prog_compiler_can_build_shared=no
7421 enable_shared=no
7422 ;;
7423
7424 *nto* | *qnx*)
7425 # QNX uses GNU C++, but need to define -shared option too, otherwise
7426 # it will coredump.
7427 lt_prog_compiler_pic='-fPIC -shared'
7428 ;;
7429
7430 sysv4*MP*)
7431 if test -d /usr/nec; then
7432 lt_prog_compiler_pic=-Kconform_pic
7433 fi
7434 ;;
7435
7436 *)
7437 lt_prog_compiler_pic='-fPIC'
7438 ;;
7439 esac
7440
7441 case $cc_basename in
7442 nvcc*) # Cuda Compiler Driver 2.2
7443 lt_prog_compiler_wl='-Xlinker '
7444 lt_prog_compiler_pic='-Xcompiler -fPIC'
7445 ;;
7446 esac
7447 else
7448 # PORTME Check for flag to pass linker flags through the system compiler.
7449 case $host_os in
7450 aix*)
7451 lt_prog_compiler_wl='-Wl,'
7452 if test "$host_cpu" = ia64; then
7453 # AIX 5 now supports IA64 processor
7454 lt_prog_compiler_static='-Bstatic'
7455 else
7456 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7457 fi
7458 ;;
7459
7460 mingw* | cygwin* | pw32* | os2* | cegcc*)
7461 # This hack is so that the source file can tell whether it is being
7462 # built for inclusion in a dll (and should export symbols for example).
7463 lt_prog_compiler_pic='-DDLL_EXPORT'
7464 ;;
7465
7466 hpux9* | hpux10* | hpux11*)
7467 lt_prog_compiler_wl='-Wl,'
7468 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7469 # not for PA HP-UX.
7470 case $host_cpu in
7471 hppa*64*|ia64*)
7472 # +Z the default
7473 ;;
7474 *)
7475 lt_prog_compiler_pic='+Z'
7476 ;;
7477 esac
7478 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7479 lt_prog_compiler_static='${wl}-a ${wl}archive'
7480 ;;
7481
7482 irix5* | irix6* | nonstopux*)
7483 lt_prog_compiler_wl='-Wl,'
7484 # PIC (with -KPIC) is the default.
7485 lt_prog_compiler_static='-non_shared'
7486 ;;
7487
7488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7489 case $cc_basename in
7490 # old Intel for x86_64 which still supported -KPIC.
7491 ecc*)
7492 lt_prog_compiler_wl='-Wl,'
7493 lt_prog_compiler_pic='-KPIC'
7494 lt_prog_compiler_static='-static'
7495 ;;
7496 # icc used to be incompatible with GCC.
7497 # ICC 10 doesn't accept -KPIC any more.
7498 icc* | ifort*)
7499 lt_prog_compiler_wl='-Wl,'
7500 lt_prog_compiler_pic='-fPIC'
7501 lt_prog_compiler_static='-static'
7502 ;;
7503 # Lahey Fortran 8.1.
7504 lf95*)
7505 lt_prog_compiler_wl='-Wl,'
7506 lt_prog_compiler_pic='--shared'
7507 lt_prog_compiler_static='--static'
7508 ;;
7509 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7510 # Portland Group compilers (*not* the Pentium gcc compiler,
7511 # which looks to be a dead project)
7512 lt_prog_compiler_wl='-Wl,'
7513 lt_prog_compiler_pic='-fpic'
7514 lt_prog_compiler_static='-Bstatic'
7515 ;;
7516 ccc*)
7517 lt_prog_compiler_wl='-Wl,'
7518 # All Alpha code is PIC.
7519 lt_prog_compiler_static='-non_shared'
7520 ;;
7521 xl* | bgxl* | bgf* | mpixl*)
7522 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7523 lt_prog_compiler_wl='-Wl,'
7524 lt_prog_compiler_pic='-qpic'
7525 lt_prog_compiler_static='-qstaticlink'
7526 ;;
7527 *)
7528 case `$CC -V 2>&1 | sed 5q` in
7529 *Sun\ F* | *Sun*Fortran*)
7530 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7531 lt_prog_compiler_pic='-KPIC'
7532 lt_prog_compiler_static='-Bstatic'
7533 lt_prog_compiler_wl=''
7534 ;;
7535 *Sun\ C*)
7536 # Sun C 5.9
7537 lt_prog_compiler_pic='-KPIC'
7538 lt_prog_compiler_static='-Bstatic'
7539 lt_prog_compiler_wl='-Wl,'
7540 ;;
7541 esac
7542 ;;
7543 esac
7544 ;;
7545
7546 newsos6)
7547 lt_prog_compiler_pic='-KPIC'
7548 lt_prog_compiler_static='-Bstatic'
7549 ;;
7550
7551 *nto* | *qnx*)
7552 # QNX uses GNU C++, but need to define -shared option too, otherwise
7553 # it will coredump.
7554 lt_prog_compiler_pic='-fPIC -shared'
7555 ;;
7556
7557 osf3* | osf4* | osf5*)
7558 lt_prog_compiler_wl='-Wl,'
7559 # All OSF/1 code is PIC.
7560 lt_prog_compiler_static='-non_shared'
7561 ;;
7562
7563 rdos*)
7564 lt_prog_compiler_static='-non_shared'
7565 ;;
7566
7567 solaris*)
7568 lt_prog_compiler_pic='-KPIC'
7569 lt_prog_compiler_static='-Bstatic'
7570 case $cc_basename in
7571 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7572 lt_prog_compiler_wl='-Qoption ld ';;
7573 *)
7574 lt_prog_compiler_wl='-Wl,';;
7575 esac
7576 ;;
7577
7578 sunos4*)
7579 lt_prog_compiler_wl='-Qoption ld '
7580 lt_prog_compiler_pic='-PIC'
7581 lt_prog_compiler_static='-Bstatic'
7582 ;;
7583
7584 sysv4 | sysv4.2uw2* | sysv4.3*)
7585 lt_prog_compiler_wl='-Wl,'
7586 lt_prog_compiler_pic='-KPIC'
7587 lt_prog_compiler_static='-Bstatic'
7588 ;;
7589
7590 sysv4*MP*)
7591 if test -d /usr/nec ;then
7592 lt_prog_compiler_pic='-Kconform_pic'
7593 lt_prog_compiler_static='-Bstatic'
7594 fi
7595 ;;
7596
7597 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7598 lt_prog_compiler_wl='-Wl,'
7599 lt_prog_compiler_pic='-KPIC'
7600 lt_prog_compiler_static='-Bstatic'
7601 ;;
7602
7603 unicos*)
7604 lt_prog_compiler_wl='-Wl,'
7605 lt_prog_compiler_can_build_shared=no
7606 ;;
7607
7608 uts4*)
7609 lt_prog_compiler_pic='-pic'
7610 lt_prog_compiler_static='-Bstatic'
7611 ;;
7612
7613 *)
7614 lt_prog_compiler_can_build_shared=no
7615 ;;
7616 esac
7617 fi
7618
7619 case $host_os in
7620 # For platforms which do not support PIC, -DPIC is meaningless:
7621 *djgpp*)
7622 lt_prog_compiler_pic=
7623 ;;
7624 *)
7625 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7626 ;;
7627 esac
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7629 $as_echo "$lt_prog_compiler_pic" >&6; }
7630
7631
7632
7633
7634
7635
7636 #
7637 # Check to make sure the PIC flag actually works.
7638 #
7639 if test -n "$lt_prog_compiler_pic"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7641 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7642 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 lt_cv_prog_compiler_pic_works=no
7646 ac_outfile=conftest.$ac_objext
7647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7649 # Insert the option either (1) after the last *FLAGS variable, or
7650 # (2) before a word containing "conftest.", or (3) at the end.
7651 # Note that $ac_compile itself does not contain backslashes and begins
7652 # with a dollar sign (not a hyphen), so the echo should work correctly.
7653 # The option is referenced via a variable to avoid confusing sed.
7654 lt_compile=`echo "$ac_compile" | $SED \
7655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657 -e 's:$: $lt_compiler_flag:'`
7658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7659 (eval "$lt_compile" 2>conftest.err)
7660 ac_status=$?
7661 cat conftest.err >&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 if (exit $ac_status) && test -s "$ac_outfile"; then
7664 # The compiler can only warn and ignore the option if not recognized
7665 # So say no if there are warnings other than the usual output.
7666 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669 lt_cv_prog_compiler_pic_works=yes
7670 fi
7671 fi
7672 $RM conftest*
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7676 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7677
7678 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7679 case $lt_prog_compiler_pic in
7680 "" | " "*) ;;
7681 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7682 esac
7683 else
7684 lt_prog_compiler_pic=
7685 lt_prog_compiler_can_build_shared=no
7686 fi
7687
7688 fi
7689
7690
7691
7692
7693
7694
7695 #
7696 # Check to make sure the static flag actually works.
7697 #
7698 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7700 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7701 if ${lt_cv_prog_compiler_static_works+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 lt_cv_prog_compiler_static_works=no
7705 save_LDFLAGS="$LDFLAGS"
7706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7709 # The linker can only warn and ignore the option if not recognized
7710 # So say no if there are warnings
7711 if test -s conftest.err; then
7712 # Append any errors to the config.log.
7713 cat conftest.err 1>&5
7714 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7716 if diff conftest.exp conftest.er2 >/dev/null; then
7717 lt_cv_prog_compiler_static_works=yes
7718 fi
7719 else
7720 lt_cv_prog_compiler_static_works=yes
7721 fi
7722 fi
7723 $RM -r conftest*
7724 LDFLAGS="$save_LDFLAGS"
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7728 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7729
7730 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7731 :
7732 else
7733 lt_prog_compiler_static=
7734 fi
7735
7736
7737
7738
7739
7740
7741
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7744 if ${lt_cv_prog_compiler_c_o+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 lt_cv_prog_compiler_c_o=no
7748 $RM -r conftest 2>/dev/null
7749 mkdir conftest
7750 cd conftest
7751 mkdir out
7752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7753
7754 lt_compiler_flag="-o out/conftest2.$ac_objext"
7755 # Insert the option either (1) after the last *FLAGS variable, or
7756 # (2) before a word containing "conftest.", or (3) at the end.
7757 # Note that $ac_compile itself does not contain backslashes and begins
7758 # with a dollar sign (not a hyphen), so the echo should work correctly.
7759 lt_compile=`echo "$ac_compile" | $SED \
7760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7762 -e 's:$: $lt_compiler_flag:'`
7763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7764 (eval "$lt_compile" 2>out/conftest.err)
7765 ac_status=$?
7766 cat out/conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7769 then
7770 # The compiler can only warn and ignore the option if not recognized
7771 # So say no if there are warnings
7772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7775 lt_cv_prog_compiler_c_o=yes
7776 fi
7777 fi
7778 chmod u+w . 2>&5
7779 $RM conftest*
7780 # SGI C++ compiler will create directory out/ii_files/ for
7781 # template instantiation
7782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7783 $RM out/* && rmdir out
7784 cd ..
7785 $RM -r conftest
7786 $RM conftest*
7787
7788 fi
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7790 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7791
7792
7793
7794
7795
7796
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7799 if ${lt_cv_prog_compiler_c_o+:} false; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 lt_cv_prog_compiler_c_o=no
7803 $RM -r conftest 2>/dev/null
7804 mkdir conftest
7805 cd conftest
7806 mkdir out
7807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808
7809 lt_compiler_flag="-o out/conftest2.$ac_objext"
7810 # Insert the option either (1) after the last *FLAGS variable, or
7811 # (2) before a word containing "conftest.", or (3) at the end.
7812 # Note that $ac_compile itself does not contain backslashes and begins
7813 # with a dollar sign (not a hyphen), so the echo should work correctly.
7814 lt_compile=`echo "$ac_compile" | $SED \
7815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817 -e 's:$: $lt_compiler_flag:'`
7818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7819 (eval "$lt_compile" 2>out/conftest.err)
7820 ac_status=$?
7821 cat out/conftest.err >&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7824 then
7825 # The compiler can only warn and ignore the option if not recognized
7826 # So say no if there are warnings
7827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7830 lt_cv_prog_compiler_c_o=yes
7831 fi
7832 fi
7833 chmod u+w . 2>&5
7834 $RM conftest*
7835 # SGI C++ compiler will create directory out/ii_files/ for
7836 # template instantiation
7837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7838 $RM out/* && rmdir out
7839 cd ..
7840 $RM -r conftest
7841 $RM conftest*
7842
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7845 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7846
7847
7848
7849
7850 hard_links="nottested"
7851 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7852 # do not overwrite the value of need_locks provided by the user
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7854 $as_echo_n "checking if we can lock with hard links... " >&6; }
7855 hard_links=yes
7856 $RM conftest*
7857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7858 touch conftest.a
7859 ln conftest.a conftest.b 2>&5 || hard_links=no
7860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7862 $as_echo "$hard_links" >&6; }
7863 if test "$hard_links" = no; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7865 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7866 need_locks=warn
7867 fi
7868 else
7869 need_locks=no
7870 fi
7871
7872
7873
7874
7875
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7878 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7879
7880 runpath_var=
7881 allow_undefined_flag=
7882 always_export_symbols=no
7883 archive_cmds=
7884 archive_expsym_cmds=
7885 compiler_needs_object=no
7886 enable_shared_with_static_runtimes=no
7887 export_dynamic_flag_spec=
7888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7889 hardcode_automatic=no
7890 hardcode_direct=no
7891 hardcode_direct_absolute=no
7892 hardcode_libdir_flag_spec=
7893 hardcode_libdir_flag_spec_ld=
7894 hardcode_libdir_separator=
7895 hardcode_minus_L=no
7896 hardcode_shlibpath_var=unsupported
7897 inherit_rpath=no
7898 link_all_deplibs=unknown
7899 module_cmds=
7900 module_expsym_cmds=
7901 old_archive_from_new_cmds=
7902 old_archive_from_expsyms_cmds=
7903 thread_safe_flag_spec=
7904 whole_archive_flag_spec=
7905 # include_expsyms should be a list of space-separated symbols to be *always*
7906 # included in the symbol list
7907 include_expsyms=
7908 # exclude_expsyms can be an extended regexp of symbols to exclude
7909 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7910 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7911 # as well as any symbol that contains `d'.
7912 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7913 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7914 # platforms (ab)use it in PIC code, but their linkers get confused if
7915 # the symbol is explicitly referenced. Since portable code cannot
7916 # rely on this symbol name, it's probably fine to never include it in
7917 # preloaded symbol tables.
7918 # Exclude shared library initialization/finalization symbols.
7919 extract_expsyms_cmds=
7920
7921 case $host_os in
7922 cygwin* | mingw* | pw32* | cegcc*)
7923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7924 # When not using gcc, we currently assume that we are using
7925 # Microsoft Visual C++.
7926 if test "$GCC" != yes; then
7927 with_gnu_ld=no
7928 fi
7929 ;;
7930 interix*)
7931 # we just hope/assume this is gcc and not c89 (= MSVC++)
7932 with_gnu_ld=yes
7933 ;;
7934 openbsd*)
7935 with_gnu_ld=no
7936 ;;
7937 esac
7938
7939 ld_shlibs=yes
7940
7941 # On some targets, GNU ld is compatible enough with the native linker
7942 # that we're better off using the native interface for both.
7943 lt_use_gnu_ld_interface=no
7944 if test "$with_gnu_ld" = yes; then
7945 case $host_os in
7946 aix*)
7947 # The AIX port of GNU ld has always aspired to compatibility
7948 # with the native linker. However, as the warning in the GNU ld
7949 # block says, versions before 2.19.5* couldn't really create working
7950 # shared libraries, regardless of the interface used.
7951 case `$LD -v 2>&1` in
7952 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7953 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7954 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7955 *)
7956 lt_use_gnu_ld_interface=yes
7957 ;;
7958 esac
7959 ;;
7960 *)
7961 lt_use_gnu_ld_interface=yes
7962 ;;
7963 esac
7964 fi
7965
7966 if test "$lt_use_gnu_ld_interface" = yes; then
7967 # If archive_cmds runs LD, not CC, wlarc should be empty
7968 wlarc='${wl}'
7969
7970 # Set some defaults for GNU ld with shared library support. These
7971 # are reset later if shared libraries are not supported. Putting them
7972 # here allows them to be overridden if necessary.
7973 runpath_var=LD_RUN_PATH
7974 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7975 export_dynamic_flag_spec='${wl}--export-dynamic'
7976 # ancient GNU ld didn't support --whole-archive et. al.
7977 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7978 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7979 else
7980 whole_archive_flag_spec=
7981 fi
7982 supports_anon_versioning=no
7983 case `$LD -v 2>&1` in
7984 *GNU\ gold*) supports_anon_versioning=yes ;;
7985 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7986 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7987 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7988 *\ 2.11.*) ;; # other 2.11 versions
7989 *) supports_anon_versioning=yes ;;
7990 esac
7991
7992 # See if GNU ld supports shared libraries.
7993 case $host_os in
7994 aix[3-9]*)
7995 # On AIX/PPC, the GNU linker is very broken
7996 if test "$host_cpu" != ia64; then
7997 ld_shlibs=no
7998 cat <<_LT_EOF 1>&2
7999
8000 *** Warning: the GNU linker, at least up to release 2.19, is reported
8001 *** to be unable to reliably create shared libraries on AIX.
8002 *** Therefore, libtool is disabling shared libraries support. If you
8003 *** really care for shared libraries, you may want to install binutils
8004 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8005 *** You will then need to restart the configuration process.
8006
8007 _LT_EOF
8008 fi
8009 ;;
8010
8011 amigaos*)
8012 case $host_cpu in
8013 powerpc)
8014 # see comment about AmigaOS4 .so support
8015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8016 archive_expsym_cmds=''
8017 ;;
8018 m68k)
8019 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)'
8020 hardcode_libdir_flag_spec='-L$libdir'
8021 hardcode_minus_L=yes
8022 ;;
8023 esac
8024 ;;
8025
8026 beos*)
8027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8028 allow_undefined_flag=unsupported
8029 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8030 # support --undefined. This deserves some investigation. FIXME
8031 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8032 else
8033 ld_shlibs=no
8034 fi
8035 ;;
8036
8037 cygwin* | mingw* | pw32* | cegcc*)
8038 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8039 # as there is no search path for DLLs.
8040 hardcode_libdir_flag_spec='-L$libdir'
8041 export_dynamic_flag_spec='${wl}--export-all-symbols'
8042 allow_undefined_flag=unsupported
8043 always_export_symbols=no
8044 enable_shared_with_static_runtimes=yes
8045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8046
8047 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8049 # If the export-symbols file already is a .def file (1st line
8050 # is EXPORTS), use it as is; otherwise, prepend...
8051 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8052 cp $export_symbols $output_objdir/$soname.def;
8053 else
8054 echo EXPORTS > $output_objdir/$soname.def;
8055 cat $export_symbols >> $output_objdir/$soname.def;
8056 fi~
8057 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8058 else
8059 ld_shlibs=no
8060 fi
8061 ;;
8062
8063 haiku*)
8064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8065 link_all_deplibs=yes
8066 ;;
8067
8068 interix[3-9]*)
8069 hardcode_direct=no
8070 hardcode_shlibpath_var=no
8071 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8072 export_dynamic_flag_spec='${wl}-E'
8073 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8074 # Instead, shared libraries are loaded at an image base (0x10000000 by
8075 # default) and relocated if they conflict, which is a slow very memory
8076 # consuming and fragmenting process. To avoid this, we pick a random,
8077 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8078 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8079 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8080 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'
8081 ;;
8082
8083 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8084 tmp_diet=no
8085 if test "$host_os" = linux-dietlibc; then
8086 case $cc_basename in
8087 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8088 esac
8089 fi
8090 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8091 && test "$tmp_diet" = no
8092 then
8093 tmp_addflag=
8094 tmp_sharedflag='-shared'
8095 case $cc_basename,$host_cpu in
8096 pgcc*) # Portland Group C compiler
8097 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'
8098 tmp_addflag=' $pic_flag'
8099 ;;
8100 pgf77* | pgf90* | pgf95* | pgfortran*)
8101 # Portland Group f77 and f90 compilers
8102 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'
8103 tmp_addflag=' $pic_flag -Mnomain' ;;
8104 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8105 tmp_addflag=' -i_dynamic' ;;
8106 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8107 tmp_addflag=' -i_dynamic -nofor_main' ;;
8108 ifc* | ifort*) # Intel Fortran compiler
8109 tmp_addflag=' -nofor_main' ;;
8110 lf95*) # Lahey Fortran 8.1
8111 whole_archive_flag_spec=
8112 tmp_sharedflag='--shared' ;;
8113 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8114 tmp_sharedflag='-qmkshrobj'
8115 tmp_addflag= ;;
8116 nvcc*) # Cuda Compiler Driver 2.2
8117 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'
8118 compiler_needs_object=yes
8119 ;;
8120 esac
8121 case `$CC -V 2>&1 | sed 5q` in
8122 *Sun\ C*) # Sun C 5.9
8123 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'
8124 compiler_needs_object=yes
8125 tmp_sharedflag='-G' ;;
8126 *Sun\ F*) # Sun Fortran 8.3
8127 tmp_sharedflag='-G' ;;
8128 esac
8129 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130
8131 if test "x$supports_anon_versioning" = xyes; then
8132 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8134 echo "local: *; };" >> $output_objdir/$libname.ver~
8135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8136 fi
8137
8138 case $cc_basename in
8139 xlf* | bgf* | bgxlf* | mpixlf*)
8140 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8141 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8142 hardcode_libdir_flag_spec=
8143 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8144 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8145 if test "x$supports_anon_versioning" = xyes; then
8146 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8148 echo "local: *; };" >> $output_objdir/$libname.ver~
8149 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8150 fi
8151 ;;
8152 esac
8153 else
8154 ld_shlibs=no
8155 fi
8156 ;;
8157
8158 netbsd*)
8159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8160 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8161 wlarc=
8162 else
8163 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8164 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8165 fi
8166 ;;
8167
8168 solaris*)
8169 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8170 ld_shlibs=no
8171 cat <<_LT_EOF 1>&2
8172
8173 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8174 *** create shared libraries on Solaris systems. Therefore, libtool
8175 *** is disabling shared libraries support. We urge you to upgrade GNU
8176 *** binutils to release 2.9.1 or newer. Another option is to modify
8177 *** your PATH or compiler configuration so that the native linker is
8178 *** used, and then restart.
8179
8180 _LT_EOF
8181 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8184 else
8185 ld_shlibs=no
8186 fi
8187 ;;
8188
8189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8190 case `$LD -v 2>&1` in
8191 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8192 ld_shlibs=no
8193 cat <<_LT_EOF 1>&2
8194
8195 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8196 *** reliably create shared libraries on SCO systems. Therefore, libtool
8197 *** is disabling shared libraries support. We urge you to upgrade GNU
8198 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8199 *** your PATH or compiler configuration so that the native linker is
8200 *** used, and then restart.
8201
8202 _LT_EOF
8203 ;;
8204 *)
8205 # For security reasons, it is highly recommended that you always
8206 # use absolute paths for naming shared libraries, and exclude the
8207 # DT_RUNPATH tag from executables and libraries. But doing so
8208 # requires that you compile everything twice, which is a pain.
8209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8213 else
8214 ld_shlibs=no
8215 fi
8216 ;;
8217 esac
8218 ;;
8219
8220 sunos4*)
8221 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8222 wlarc=
8223 hardcode_direct=yes
8224 hardcode_shlibpath_var=no
8225 ;;
8226
8227 *)
8228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231 else
8232 ld_shlibs=no
8233 fi
8234 ;;
8235 esac
8236
8237 if test "$ld_shlibs" = no; then
8238 runpath_var=
8239 hardcode_libdir_flag_spec=
8240 export_dynamic_flag_spec=
8241 whole_archive_flag_spec=
8242 fi
8243 else
8244 # PORTME fill in a description of your system's linker (not GNU ld)
8245 case $host_os in
8246 aix3*)
8247 allow_undefined_flag=unsupported
8248 always_export_symbols=yes
8249 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'
8250 # Note: this linker hardcodes the directories in LIBPATH if there
8251 # are no directories specified by -L.
8252 hardcode_minus_L=yes
8253 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8254 # Neither direct hardcoding nor static linking is supported with a
8255 # broken collect2.
8256 hardcode_direct=unsupported
8257 fi
8258 ;;
8259
8260 aix[4-9]*)
8261 if test "$host_cpu" = ia64; then
8262 # On IA64, the linker does run time linking by default, so we don't
8263 # have to do anything special.
8264 aix_use_runtimelinking=no
8265 exp_sym_flag='-Bexport'
8266 no_entry_flag=""
8267 else
8268 # If we're using GNU nm, then we don't want the "-C" option.
8269 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8270 # Also, AIX nm treats weak defined symbols like other global
8271 # defined symbols, whereas GNU nm marks them as "W".
8272 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8273 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'
8274 else
8275 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'
8276 fi
8277 aix_use_runtimelinking=no
8278
8279 # Test if we are trying to use run time linking or normal
8280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8281 # need to do runtime linking.
8282 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8283 for ld_flag in $LDFLAGS; do
8284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8285 aix_use_runtimelinking=yes
8286 break
8287 fi
8288 done
8289 ;;
8290 esac
8291
8292 exp_sym_flag='-bexport'
8293 no_entry_flag='-bnoentry'
8294 fi
8295
8296 # When large executables or shared objects are built, AIX ld can
8297 # have problems creating the table of contents. If linking a library
8298 # or program results in "error TOC overflow" add -mminimal-toc to
8299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8301
8302 archive_cmds=''
8303 hardcode_direct=yes
8304 hardcode_direct_absolute=yes
8305 hardcode_libdir_separator=':'
8306 link_all_deplibs=yes
8307 file_list_spec='${wl}-f,'
8308
8309 if test "$GCC" = yes; then
8310 case $host_os in aix4.[012]|aix4.[012].*)
8311 # We only want to do this on AIX 4.2 and lower, the check
8312 # below for broken collect2 doesn't work under 4.3+
8313 collect2name=`${CC} -print-prog-name=collect2`
8314 if test -f "$collect2name" &&
8315 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8316 then
8317 # We have reworked collect2
8318 :
8319 else
8320 # We have old collect2
8321 hardcode_direct=unsupported
8322 # It fails to find uninstalled libraries when the uninstalled
8323 # path is not listed in the libpath. Setting hardcode_minus_L
8324 # to unsupported forces relinking
8325 hardcode_minus_L=yes
8326 hardcode_libdir_flag_spec='-L$libdir'
8327 hardcode_libdir_separator=
8328 fi
8329 ;;
8330 esac
8331 shared_flag='-shared'
8332 if test "$aix_use_runtimelinking" = yes; then
8333 shared_flag="$shared_flag "'${wl}-G'
8334 fi
8335 else
8336 # not using gcc
8337 if test "$host_cpu" = ia64; then
8338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8339 # chokes on -Wl,-G. The following line is correct:
8340 shared_flag='-G'
8341 else
8342 if test "$aix_use_runtimelinking" = yes; then
8343 shared_flag='${wl}-G'
8344 else
8345 shared_flag='${wl}-bM:SRE'
8346 fi
8347 fi
8348 fi
8349
8350 export_dynamic_flag_spec='${wl}-bexpall'
8351 # It seems that -bexpall does not export symbols beginning with
8352 # underscore (_), so it is better to generate a list of symbols to export.
8353 always_export_symbols=yes
8354 if test "$aix_use_runtimelinking" = yes; then
8355 # Warning - without using the other runtime loading flags (-brtl),
8356 # -berok will link without error, but may produce a broken library.
8357 allow_undefined_flag='-berok'
8358 # Determine the default libpath from the value encoded in an
8359 # empty executable.
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362
8363 int
8364 main ()
8365 {
8366
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 if ac_fn_c_try_link "$LINENO"; then :
8372
8373 lt_aix_libpath_sed='
8374 /Import File Strings/,/^$/ {
8375 /^0/ {
8376 s/^0 *\(.*\)$/\1/
8377 p
8378 }
8379 }'
8380 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8381 # Check for a 64-bit object if we didn't find anything.
8382 if test -z "$aix_libpath"; then
8383 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8384 fi
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8389
8390 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8391 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"
8392 else
8393 if test "$host_cpu" = ia64; then
8394 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8395 allow_undefined_flag="-z nodefs"
8396 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"
8397 else
8398 # Determine the default libpath from the value encoded in an
8399 # empty executable.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8402
8403 int
8404 main ()
8405 {
8406
8407 ;
8408 return 0;
8409 }
8410 _ACEOF
8411 if ac_fn_c_try_link "$LINENO"; then :
8412
8413 lt_aix_libpath_sed='
8414 /Import File Strings/,/^$/ {
8415 /^0/ {
8416 s/^0 *\(.*\)$/\1/
8417 p
8418 }
8419 }'
8420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8421 # Check for a 64-bit object if we didn't find anything.
8422 if test -z "$aix_libpath"; then
8423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8424 fi
8425 fi
8426 rm -f core conftest.err conftest.$ac_objext \
8427 conftest$ac_exeext conftest.$ac_ext
8428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8429
8430 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8431 # Warning - without using the other run time loading flags,
8432 # -berok will link without error, but may produce a broken library.
8433 no_undefined_flag=' ${wl}-bernotok'
8434 allow_undefined_flag=' ${wl}-berok'
8435 if test "$with_gnu_ld" = yes; then
8436 # We only use this code for GNU lds that support --whole-archive.
8437 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8438 else
8439 # Exported symbols can be pulled into shared objects from archives
8440 whole_archive_flag_spec='$convenience'
8441 fi
8442 archive_cmds_need_lc=yes
8443 # This is similar to how AIX traditionally builds its shared libraries.
8444 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'
8445 fi
8446 fi
8447 ;;
8448
8449 amigaos*)
8450 case $host_cpu in
8451 powerpc)
8452 # see comment about AmigaOS4 .so support
8453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454 archive_expsym_cmds=''
8455 ;;
8456 m68k)
8457 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)'
8458 hardcode_libdir_flag_spec='-L$libdir'
8459 hardcode_minus_L=yes
8460 ;;
8461 esac
8462 ;;
8463
8464 bsdi[45]*)
8465 export_dynamic_flag_spec=-rdynamic
8466 ;;
8467
8468 cygwin* | mingw* | pw32* | cegcc*)
8469 # When not using gcc, we currently assume that we are using
8470 # Microsoft Visual C++.
8471 # hardcode_libdir_flag_spec is actually meaningless, as there is
8472 # no search path for DLLs.
8473 hardcode_libdir_flag_spec=' '
8474 allow_undefined_flag=unsupported
8475 # Tell ltmain to make .lib files, not .a files.
8476 libext=lib
8477 # Tell ltmain to make .dll files, not .so files.
8478 shrext_cmds=".dll"
8479 # FIXME: Setting linknames here is a bad hack.
8480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8481 # The linker will automatically build a .lib file if we build a DLL.
8482 old_archive_from_new_cmds='true'
8483 # FIXME: Should let the user specify the lib program.
8484 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8485 fix_srcfile_path='`cygpath -w "$srcfile"`'
8486 enable_shared_with_static_runtimes=yes
8487 ;;
8488
8489 darwin* | rhapsody*)
8490
8491
8492 archive_cmds_need_lc=no
8493 hardcode_direct=no
8494 hardcode_automatic=yes
8495 hardcode_shlibpath_var=unsupported
8496 if test "$lt_cv_ld_force_load" = "yes"; then
8497 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\"`'
8498 else
8499 whole_archive_flag_spec=''
8500 fi
8501 link_all_deplibs=yes
8502 allow_undefined_flag="$_lt_dar_allow_undefined"
8503 case $cc_basename in
8504 ifort*) _lt_dar_can_shared=yes ;;
8505 *) _lt_dar_can_shared=$GCC ;;
8506 esac
8507 if test "$_lt_dar_can_shared" = "yes"; then
8508 output_verbose_link_cmd=func_echo_all
8509 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8510 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8511 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}"
8512 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}"
8513
8514 else
8515 ld_shlibs=no
8516 fi
8517
8518 ;;
8519
8520 dgux*)
8521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_libdir_flag_spec='-L$libdir'
8523 hardcode_shlibpath_var=no
8524 ;;
8525
8526 freebsd1*)
8527 ld_shlibs=no
8528 ;;
8529
8530 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8531 # support. Future versions do this automatically, but an explicit c++rt0.o
8532 # does not break anything, and helps significantly (at the cost of a little
8533 # extra space).
8534 freebsd2.2*)
8535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8536 hardcode_libdir_flag_spec='-R$libdir'
8537 hardcode_direct=yes
8538 hardcode_shlibpath_var=no
8539 ;;
8540
8541 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8542 freebsd2*)
8543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_direct=yes
8545 hardcode_minus_L=yes
8546 hardcode_shlibpath_var=no
8547 ;;
8548
8549 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8550 freebsd* | dragonfly*)
8551 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8552 hardcode_libdir_flag_spec='-R$libdir'
8553 hardcode_direct=yes
8554 hardcode_shlibpath_var=no
8555 ;;
8556
8557 hpux9*)
8558 if test "$GCC" = yes; then
8559 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'
8560 else
8561 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'
8562 fi
8563 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8564 hardcode_libdir_separator=:
8565 hardcode_direct=yes
8566
8567 # hardcode_minus_L: Not really in the search PATH,
8568 # but as the default location of the library.
8569 hardcode_minus_L=yes
8570 export_dynamic_flag_spec='${wl}-E'
8571 ;;
8572
8573 hpux10*)
8574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8575 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8576 else
8577 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8578 fi
8579 if test "$with_gnu_ld" = no; then
8580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8581 hardcode_libdir_flag_spec_ld='+b $libdir'
8582 hardcode_libdir_separator=:
8583 hardcode_direct=yes
8584 hardcode_direct_absolute=yes
8585 export_dynamic_flag_spec='${wl}-E'
8586 # hardcode_minus_L: Not really in the search PATH,
8587 # but as the default location of the library.
8588 hardcode_minus_L=yes
8589 fi
8590 ;;
8591
8592 hpux11*)
8593 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8594 case $host_cpu in
8595 hppa*64*)
8596 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597 ;;
8598 ia64*)
8599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8600 ;;
8601 *)
8602 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603 ;;
8604 esac
8605 else
8606 case $host_cpu in
8607 hppa*64*)
8608 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 ;;
8610 ia64*)
8611 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8612 ;;
8613 *)
8614
8615 # Older versions of the 11.00 compiler do not understand -b yet
8616 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8618 $as_echo_n "checking if $CC understands -b... " >&6; }
8619 if ${lt_cv_prog_compiler__b+:} false; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 lt_cv_prog_compiler__b=no
8623 save_LDFLAGS="$LDFLAGS"
8624 LDFLAGS="$LDFLAGS -b"
8625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8627 # The linker can only warn and ignore the option if not recognized
8628 # So say no if there are warnings
8629 if test -s conftest.err; then
8630 # Append any errors to the config.log.
8631 cat conftest.err 1>&5
8632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8634 if diff conftest.exp conftest.er2 >/dev/null; then
8635 lt_cv_prog_compiler__b=yes
8636 fi
8637 else
8638 lt_cv_prog_compiler__b=yes
8639 fi
8640 fi
8641 $RM -r conftest*
8642 LDFLAGS="$save_LDFLAGS"
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8646 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8647
8648 if test x"$lt_cv_prog_compiler__b" = xyes; then
8649 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8650 else
8651 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8652 fi
8653
8654 ;;
8655 esac
8656 fi
8657 if test "$with_gnu_ld" = no; then
8658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659 hardcode_libdir_separator=:
8660
8661 case $host_cpu in
8662 hppa*64*|ia64*)
8663 hardcode_direct=no
8664 hardcode_shlibpath_var=no
8665 ;;
8666 *)
8667 hardcode_direct=yes
8668 hardcode_direct_absolute=yes
8669 export_dynamic_flag_spec='${wl}-E'
8670
8671 # hardcode_minus_L: Not really in the search PATH,
8672 # but as the default location of the library.
8673 hardcode_minus_L=yes
8674 ;;
8675 esac
8676 fi
8677 ;;
8678
8679 irix5* | irix6* | nonstopux*)
8680 if test "$GCC" = yes; then
8681 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'
8682 # Try to use the -exported_symbol ld option, if it does not
8683 # work, assume that -exports_file does not work either and
8684 # implicitly export all symbols.
8685 save_LDFLAGS="$LDFLAGS"
8686 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int foo(void) {}
8690 _ACEOF
8691 if ac_fn_c_try_link "$LINENO"; then :
8692 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'
8693
8694 fi
8695 rm -f core conftest.err conftest.$ac_objext \
8696 conftest$ac_exeext conftest.$ac_ext
8697 LDFLAGS="$save_LDFLAGS"
8698 else
8699 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'
8700 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'
8701 fi
8702 archive_cmds_need_lc='no'
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 hardcode_libdir_separator=:
8705 inherit_rpath=yes
8706 link_all_deplibs=yes
8707 ;;
8708
8709 netbsd*)
8710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8711 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8712 else
8713 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8714 fi
8715 hardcode_libdir_flag_spec='-R$libdir'
8716 hardcode_direct=yes
8717 hardcode_shlibpath_var=no
8718 ;;
8719
8720 newsos6)
8721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8722 hardcode_direct=yes
8723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8724 hardcode_libdir_separator=:
8725 hardcode_shlibpath_var=no
8726 ;;
8727
8728 *nto* | *qnx*)
8729 ;;
8730
8731 openbsd*)
8732 if test -f /usr/libexec/ld.so; then
8733 hardcode_direct=yes
8734 hardcode_shlibpath_var=no
8735 hardcode_direct_absolute=yes
8736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8737 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8739 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8740 export_dynamic_flag_spec='${wl}-E'
8741 else
8742 case $host_os in
8743 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8745 hardcode_libdir_flag_spec='-R$libdir'
8746 ;;
8747 *)
8748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750 ;;
8751 esac
8752 fi
8753 else
8754 ld_shlibs=no
8755 fi
8756 ;;
8757
8758 os2*)
8759 hardcode_libdir_flag_spec='-L$libdir'
8760 hardcode_minus_L=yes
8761 allow_undefined_flag=unsupported
8762 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'
8763 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8764 ;;
8765
8766 osf3*)
8767 if test "$GCC" = yes; then
8768 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8769 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'
8770 else
8771 allow_undefined_flag=' -expect_unresolved \*'
8772 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'
8773 fi
8774 archive_cmds_need_lc='no'
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 hardcode_libdir_separator=:
8777 ;;
8778
8779 osf4* | osf5*) # as osf3* with the addition of -msym flag
8780 if test "$GCC" = yes; then
8781 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8782 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'
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 else
8785 allow_undefined_flag=' -expect_unresolved \*'
8786 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'
8787 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~
8788 $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'
8789
8790 # Both c and cxx compiler support -rpath directly
8791 hardcode_libdir_flag_spec='-rpath $libdir'
8792 fi
8793 archive_cmds_need_lc='no'
8794 hardcode_libdir_separator=:
8795 ;;
8796
8797 solaris*)
8798 no_undefined_flag=' -z defs'
8799 if test "$GCC" = yes; then
8800 wlarc='${wl}'
8801 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8803 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8804 else
8805 case `$CC -V 2>&1` in
8806 *"Compilers 5.0"*)
8807 wlarc=''
8808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8811 ;;
8812 *)
8813 wlarc='${wl}'
8814 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8815 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8816 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8817 ;;
8818 esac
8819 fi
8820 hardcode_libdir_flag_spec='-R$libdir'
8821 hardcode_shlibpath_var=no
8822 case $host_os in
8823 solaris2.[0-5] | solaris2.[0-5].*) ;;
8824 *)
8825 # The compiler driver will combine and reorder linker options,
8826 # but understands `-z linker_flag'. GCC discards it without `$wl',
8827 # but is careful enough not to reorder.
8828 # Supported since Solaris 2.6 (maybe 2.5.1?)
8829 if test "$GCC" = yes; then
8830 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8831 else
8832 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8833 fi
8834 ;;
8835 esac
8836 link_all_deplibs=yes
8837 ;;
8838
8839 sunos4*)
8840 if test "x$host_vendor" = xsequent; then
8841 # Use $CC to link under sequent, because it throws in some extra .o
8842 # files that make .init and .fini sections work.
8843 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8844 else
8845 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8846 fi
8847 hardcode_libdir_flag_spec='-L$libdir'
8848 hardcode_direct=yes
8849 hardcode_minus_L=yes
8850 hardcode_shlibpath_var=no
8851 ;;
8852
8853 sysv4)
8854 case $host_vendor in
8855 sni)
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_direct=yes # is this really true???
8858 ;;
8859 siemens)
8860 ## LD is ld it makes a PLAMLIB
8861 ## CC just makes a GrossModule.
8862 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8863 reload_cmds='$CC -r -o $output$reload_objs'
8864 hardcode_direct=no
8865 ;;
8866 motorola)
8867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8869 ;;
8870 esac
8871 runpath_var='LD_RUN_PATH'
8872 hardcode_shlibpath_var=no
8873 ;;
8874
8875 sysv4.3*)
8876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8877 hardcode_shlibpath_var=no
8878 export_dynamic_flag_spec='-Bexport'
8879 ;;
8880
8881 sysv4*MP*)
8882 if test -d /usr/nec; then
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 runpath_var=LD_RUN_PATH
8886 hardcode_runpath_var=yes
8887 ld_shlibs=yes
8888 fi
8889 ;;
8890
8891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8892 no_undefined_flag='${wl}-z,text'
8893 archive_cmds_need_lc=no
8894 hardcode_shlibpath_var=no
8895 runpath_var='LD_RUN_PATH'
8896
8897 if test "$GCC" = yes; then
8898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8900 else
8901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8903 fi
8904 ;;
8905
8906 sysv5* | sco3.2v5* | sco5v6*)
8907 # Note: We can NOT use -z defs as we might desire, because we do not
8908 # link with -lc, and that would cause any symbols used from libc to
8909 # always be unresolved, which means just about no library would
8910 # ever link correctly. If we're not using GNU ld we use -z text
8911 # though, which does catch some bad symbols but isn't as heavy-handed
8912 # as -z defs.
8913 no_undefined_flag='${wl}-z,text'
8914 allow_undefined_flag='${wl}-z,nodefs'
8915 archive_cmds_need_lc=no
8916 hardcode_shlibpath_var=no
8917 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8918 hardcode_libdir_separator=':'
8919 link_all_deplibs=yes
8920 export_dynamic_flag_spec='${wl}-Bexport'
8921 runpath_var='LD_RUN_PATH'
8922
8923 if test "$GCC" = yes; then
8924 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8925 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 else
8927 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8928 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8929 fi
8930 ;;
8931
8932 uts4*)
8933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934 hardcode_libdir_flag_spec='-L$libdir'
8935 hardcode_shlibpath_var=no
8936 ;;
8937
8938 *)
8939 ld_shlibs=no
8940 ;;
8941 esac
8942
8943 if test x$host_vendor = xsni; then
8944 case $host in
8945 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8946 export_dynamic_flag_spec='${wl}-Blargedynsym'
8947 ;;
8948 esac
8949 fi
8950 fi
8951
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8953 $as_echo "$ld_shlibs" >&6; }
8954 test "$ld_shlibs" = no && can_build_shared=no
8955
8956 with_gnu_ld=$with_gnu_ld
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972 #
8973 # Do we need to explicitly link libc?
8974 #
8975 case "x$archive_cmds_need_lc" in
8976 x|xyes)
8977 # Assume -lc should be added
8978 archive_cmds_need_lc=yes
8979
8980 if test "$enable_shared" = yes && test "$GCC" = yes; then
8981 case $archive_cmds in
8982 *'~'*)
8983 # FIXME: we may have to deal with multi-command sequences.
8984 ;;
8985 '$CC '*)
8986 # Test whether the compiler implicitly links with -lc since on some
8987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8988 # to ld, don't add -lc before -lgcc.
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8990 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8991 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 $RM conftest*
8995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8996
8997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8998 (eval $ac_compile) 2>&5
8999 ac_status=$?
9000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9001 test $ac_status = 0; } 2>conftest.err; then
9002 soname=conftest
9003 lib=conftest
9004 libobjs=conftest.$ac_objext
9005 deplibs=
9006 wl=$lt_prog_compiler_wl
9007 pic_flag=$lt_prog_compiler_pic
9008 compiler_flags=-v
9009 linker_flags=-v
9010 verstring=
9011 output_objdir=.
9012 libname=conftest
9013 lt_save_allow_undefined_flag=$allow_undefined_flag
9014 allow_undefined_flag=
9015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9016 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9017 ac_status=$?
9018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9019 test $ac_status = 0; }
9020 then
9021 lt_cv_archive_cmds_need_lc=no
9022 else
9023 lt_cv_archive_cmds_need_lc=yes
9024 fi
9025 allow_undefined_flag=$lt_save_allow_undefined_flag
9026 else
9027 cat conftest.err 1>&5
9028 fi
9029 $RM conftest*
9030
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9033 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9034 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9035 ;;
9036 esac
9037 fi
9038 ;;
9039 esac
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9198 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9199
9200 if test "$GCC" = yes; then
9201 case $host_os in
9202 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9203 *) lt_awk_arg="/^libraries:/" ;;
9204 esac
9205 case $host_os in
9206 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9207 *) lt_sed_strip_eq="s,=/,/,g" ;;
9208 esac
9209 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9210 case $lt_search_path_spec in
9211 *\;*)
9212 # if the path contains ";" then we assume it to be the separator
9213 # otherwise default to the standard path separator (i.e. ":") - it is
9214 # assumed that no part of a normal pathname contains ";" but that should
9215 # okay in the real world where ";" in dirpaths is itself problematic.
9216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9217 ;;
9218 *)
9219 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9220 ;;
9221 esac
9222 # Ok, now we have the path, separated by spaces, we can step through it
9223 # and add multilib dir if necessary.
9224 lt_tmp_lt_search_path_spec=
9225 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9226 for lt_sys_path in $lt_search_path_spec; do
9227 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9229 else
9230 test -d "$lt_sys_path" && \
9231 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9232 fi
9233 done
9234 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9235 BEGIN {RS=" "; FS="/|\n";} {
9236 lt_foo="";
9237 lt_count=0;
9238 for (lt_i = NF; lt_i > 0; lt_i--) {
9239 if ($lt_i != "" && $lt_i != ".") {
9240 if ($lt_i == "..") {
9241 lt_count++;
9242 } else {
9243 if (lt_count == 0) {
9244 lt_foo="/" $lt_i lt_foo;
9245 } else {
9246 lt_count--;
9247 }
9248 }
9249 }
9250 }
9251 if (lt_foo != "") { lt_freq[lt_foo]++; }
9252 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9253 }'`
9254 # AWK program above erroneously prepends '/' to C:/dos/paths
9255 # for these hosts.
9256 case $host_os in
9257 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9258 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9259 esac
9260 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9261 else
9262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9263 fi
9264 library_names_spec=
9265 libname_spec='lib$name'
9266 soname_spec=
9267 shrext_cmds=".so"
9268 postinstall_cmds=
9269 postuninstall_cmds=
9270 finish_cmds=
9271 finish_eval=
9272 shlibpath_var=
9273 shlibpath_overrides_runpath=unknown
9274 version_type=none
9275 dynamic_linker="$host_os ld.so"
9276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9277 need_lib_prefix=unknown
9278 hardcode_into_libs=no
9279
9280 # when you set need_version to no, make sure it does not cause -set_version
9281 # flags to be left without arguments
9282 need_version=unknown
9283
9284 case $host_os in
9285 aix3*)
9286 version_type=linux
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9288 shlibpath_var=LIBPATH
9289
9290 # AIX 3 has no versioning support, so we append a major version to the name.
9291 soname_spec='${libname}${release}${shared_ext}$major'
9292 ;;
9293
9294 aix[4-9]*)
9295 version_type=linux
9296 need_lib_prefix=no
9297 need_version=no
9298 hardcode_into_libs=yes
9299 if test "$host_cpu" = ia64; then
9300 # AIX 5 supports IA64
9301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 else
9304 # With GCC up to 2.95.x, collect2 would create an import file
9305 # for dependence libraries. The import file would start with
9306 # the line `#! .'. This would cause the generated library to
9307 # depend on `.', always an invalid library. This was fixed in
9308 # development snapshots of GCC prior to 3.0.
9309 case $host_os in
9310 aix4 | aix4.[01] | aix4.[01].*)
9311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9312 echo ' yes '
9313 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9314 :
9315 else
9316 can_build_shared=no
9317 fi
9318 ;;
9319 esac
9320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9321 # soname into executable. Probably we can add versioning support to
9322 # collect2, so additional links can be useful in future.
9323 if test "$aix_use_runtimelinking" = yes; then
9324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9325 # instead of lib<name>.a to let people know that these are not
9326 # typical AIX shared libraries.
9327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9328 else
9329 # We preserve .a as extension for shared libraries through AIX4.2
9330 # and later when we are not doing run time linking.
9331 library_names_spec='${libname}${release}.a $libname.a'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 fi
9334 shlibpath_var=LIBPATH
9335 fi
9336 ;;
9337
9338 amigaos*)
9339 case $host_cpu in
9340 powerpc)
9341 # Since July 2007 AmigaOS4 officially supports .so libraries.
9342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 ;;
9345 m68k)
9346 library_names_spec='$libname.ixlibrary $libname.a'
9347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9348 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'
9349 ;;
9350 esac
9351 ;;
9352
9353 beos*)
9354 library_names_spec='${libname}${shared_ext}'
9355 dynamic_linker="$host_os ld.so"
9356 shlibpath_var=LIBRARY_PATH
9357 ;;
9358
9359 bsdi[45]*)
9360 version_type=linux
9361 need_version=no
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9365 shlibpath_var=LD_LIBRARY_PATH
9366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9368 # the default ld.so.conf also contains /usr/contrib/lib and
9369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9370 # libtool to hard-code these into programs
9371 ;;
9372
9373 cygwin* | mingw* | pw32* | cegcc*)
9374 version_type=windows
9375 shrext_cmds=".dll"
9376 need_version=no
9377 need_lib_prefix=no
9378
9379 case $GCC,$host_os in
9380 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9381 library_names_spec='$libname.dll.a'
9382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9383 postinstall_cmds='base_file=`basename \${file}`~
9384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9385 dldir=$destdir/`dirname \$dlpath`~
9386 test -d \$dldir || mkdir -p \$dldir~
9387 $install_prog $dir/$dlname \$dldir/$dlname~
9388 chmod a+x \$dldir/$dlname~
9389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9391 fi'
9392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9393 dlpath=$dir/\$dldll~
9394 $RM \$dlpath'
9395 shlibpath_overrides_runpath=yes
9396
9397 case $host_os in
9398 cygwin*)
9399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9401
9402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9403 ;;
9404 mingw* | cegcc*)
9405 # MinGW DLLs use traditional 'lib' prefix
9406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9407 ;;
9408 pw32*)
9409 # pw32 DLLs use 'pw' prefix rather than 'lib'
9410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9411 ;;
9412 esac
9413 ;;
9414
9415 *)
9416 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9417 ;;
9418 esac
9419 dynamic_linker='Win32 ld.exe'
9420 # FIXME: first we should search . and the directory the executable is in
9421 shlibpath_var=PATH
9422 ;;
9423
9424 darwin* | rhapsody*)
9425 dynamic_linker="$host_os dyld"
9426 version_type=darwin
9427 need_lib_prefix=no
9428 need_version=no
9429 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9430 soname_spec='${libname}${release}${major}$shared_ext'
9431 shlibpath_overrides_runpath=yes
9432 shlibpath_var=DYLD_LIBRARY_PATH
9433 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9434
9435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9437 ;;
9438
9439 dgux*)
9440 version_type=linux
9441 need_lib_prefix=no
9442 need_version=no
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 shlibpath_var=LD_LIBRARY_PATH
9446 ;;
9447
9448 freebsd1*)
9449 dynamic_linker=no
9450 ;;
9451
9452 freebsd* | dragonfly*)
9453 # DragonFly does not have aout. When/if they implement a new
9454 # versioning mechanism, adjust this.
9455 if test -x /usr/bin/objformat; then
9456 objformat=`/usr/bin/objformat`
9457 else
9458 case $host_os in
9459 freebsd[123]*) objformat=aout ;;
9460 *) objformat=elf ;;
9461 esac
9462 fi
9463 version_type=freebsd-$objformat
9464 case $version_type in
9465 freebsd-elf*)
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9467 need_version=no
9468 need_lib_prefix=no
9469 ;;
9470 freebsd-*)
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9472 need_version=yes
9473 ;;
9474 esac
9475 shlibpath_var=LD_LIBRARY_PATH
9476 case $host_os in
9477 freebsd2*)
9478 shlibpath_overrides_runpath=yes
9479 ;;
9480 freebsd3.[01]* | freebsdelf3.[01]*)
9481 shlibpath_overrides_runpath=yes
9482 hardcode_into_libs=yes
9483 ;;
9484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9486 shlibpath_overrides_runpath=no
9487 hardcode_into_libs=yes
9488 ;;
9489 *) # from 4.6 on, and DragonFly
9490 shlibpath_overrides_runpath=yes
9491 hardcode_into_libs=yes
9492 ;;
9493 esac
9494 ;;
9495
9496 gnu*)
9497 version_type=linux
9498 need_lib_prefix=no
9499 need_version=no
9500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 shlibpath_var=LD_LIBRARY_PATH
9503 hardcode_into_libs=yes
9504 ;;
9505
9506 haiku*)
9507 version_type=linux
9508 need_lib_prefix=no
9509 need_version=no
9510 dynamic_linker="$host_os runtime_loader"
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9512 soname_spec='${libname}${release}${shared_ext}$major'
9513 shlibpath_var=LIBRARY_PATH
9514 shlibpath_overrides_runpath=yes
9515 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9516 hardcode_into_libs=yes
9517 ;;
9518
9519 hpux9* | hpux10* | hpux11*)
9520 # Give a soname corresponding to the major version so that dld.sl refuses to
9521 # link against other versions.
9522 version_type=sunos
9523 need_lib_prefix=no
9524 need_version=no
9525 case $host_cpu in
9526 ia64*)
9527 shrext_cmds='.so'
9528 hardcode_into_libs=yes
9529 dynamic_linker="$host_os dld.so"
9530 shlibpath_var=LD_LIBRARY_PATH
9531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec='${libname}${release}${shared_ext}$major'
9534 if test "X$HPUX_IA64_MODE" = X32; then
9535 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9536 else
9537 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9538 fi
9539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9540 ;;
9541 hppa*64*)
9542 shrext_cmds='.sl'
9543 hardcode_into_libs=yes
9544 dynamic_linker="$host_os dld.sl"
9545 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9546 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 soname_spec='${libname}${release}${shared_ext}$major'
9549 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9551 ;;
9552 *)
9553 shrext_cmds='.sl'
9554 dynamic_linker="$host_os dld.sl"
9555 shlibpath_var=SHLIB_PATH
9556 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 ;;
9560 esac
9561 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9562 postinstall_cmds='chmod 555 $lib'
9563 # or fails outright, so override atomically:
9564 install_override_mode=555
9565 ;;
9566
9567 interix[3-9]*)
9568 version_type=linux
9569 need_lib_prefix=no
9570 need_version=no
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9572 soname_spec='${libname}${release}${shared_ext}$major'
9573 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=no
9576 hardcode_into_libs=yes
9577 ;;
9578
9579 irix5* | irix6* | nonstopux*)
9580 case $host_os in
9581 nonstopux*) version_type=nonstopux ;;
9582 *)
9583 if test "$lt_cv_prog_gnu_ld" = yes; then
9584 version_type=linux
9585 else
9586 version_type=irix
9587 fi ;;
9588 esac
9589 need_lib_prefix=no
9590 need_version=no
9591 soname_spec='${libname}${release}${shared_ext}$major'
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9593 case $host_os in
9594 irix5* | nonstopux*)
9595 libsuff= shlibsuff=
9596 ;;
9597 *)
9598 case $LD in # libtool.m4 will add one of these switches to LD
9599 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9600 libsuff= shlibsuff= libmagic=32-bit;;
9601 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9602 libsuff=32 shlibsuff=N32 libmagic=N32;;
9603 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9604 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9605 *) libsuff= shlibsuff= libmagic=never-match;;
9606 esac
9607 ;;
9608 esac
9609 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9610 shlibpath_overrides_runpath=no
9611 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9612 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9613 hardcode_into_libs=yes
9614 ;;
9615
9616 # No shared lib support for Linux oldld, aout, or coff.
9617 linux*oldld* | linux*aout* | linux*coff*)
9618 dynamic_linker=no
9619 ;;
9620
9621 # This must be Linux ELF.
9622 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9623 version_type=linux
9624 need_lib_prefix=no
9625 need_version=no
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9629 shlibpath_var=LD_LIBRARY_PATH
9630 shlibpath_overrides_runpath=no
9631
9632 # Some binutils ld are patched to set DT_RUNPATH
9633 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9634 $as_echo_n "(cached) " >&6
9635 else
9636 lt_cv_shlibpath_overrides_runpath=no
9637 save_LDFLAGS=$LDFLAGS
9638 save_libdir=$libdir
9639 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9640 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643
9644 int
9645 main ()
9646 {
9647
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 if ac_fn_c_try_link "$LINENO"; then :
9653 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9654 lt_cv_shlibpath_overrides_runpath=yes
9655 fi
9656 fi
9657 rm -f core conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LDFLAGS=$save_LDFLAGS
9660 libdir=$save_libdir
9661
9662 fi
9663
9664 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9665
9666 # This implies no fast_install, which is unacceptable.
9667 # Some rework will be needed to allow for fast_install
9668 # before this can be enabled.
9669 hardcode_into_libs=yes
9670
9671 # Append ld.so.conf contents to the search path
9672 if test -f /etc/ld.so.conf; then
9673 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' ' '`
9674 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9675 fi
9676
9677 # We used to test for /lib/ld.so.1 and disable shared libraries on
9678 # powerpc, because MkLinux only supported shared libraries with the
9679 # GNU dynamic linker. Since this was broken with cross compilers,
9680 # most powerpc-linux boxes support dynamic linking these days and
9681 # people can always --disable-shared, the test was removed, and we
9682 # assume the GNU/Linux dynamic linker is in use.
9683 dynamic_linker='GNU/Linux ld.so'
9684 ;;
9685
9686 netbsd*)
9687 version_type=sunos
9688 need_lib_prefix=no
9689 need_version=no
9690 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9693 dynamic_linker='NetBSD (a.out) ld.so'
9694 else
9695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9696 soname_spec='${libname}${release}${shared_ext}$major'
9697 dynamic_linker='NetBSD ld.elf_so'
9698 fi
9699 shlibpath_var=LD_LIBRARY_PATH
9700 shlibpath_overrides_runpath=yes
9701 hardcode_into_libs=yes
9702 ;;
9703
9704 newsos6)
9705 version_type=linux
9706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707 shlibpath_var=LD_LIBRARY_PATH
9708 shlibpath_overrides_runpath=yes
9709 ;;
9710
9711 *nto* | *qnx*)
9712 version_type=qnx
9713 need_lib_prefix=no
9714 need_version=no
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 soname_spec='${libname}${release}${shared_ext}$major'
9717 shlibpath_var=LD_LIBRARY_PATH
9718 shlibpath_overrides_runpath=no
9719 hardcode_into_libs=yes
9720 dynamic_linker='ldqnx.so'
9721 ;;
9722
9723 openbsd*)
9724 version_type=sunos
9725 sys_lib_dlsearch_path_spec="/usr/lib"
9726 need_lib_prefix=no
9727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9728 case $host_os in
9729 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9730 *) need_version=no ;;
9731 esac
9732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9736 case $host_os in
9737 openbsd2.[89] | openbsd2.[89].*)
9738 shlibpath_overrides_runpath=no
9739 ;;
9740 *)
9741 shlibpath_overrides_runpath=yes
9742 ;;
9743 esac
9744 else
9745 shlibpath_overrides_runpath=yes
9746 fi
9747 ;;
9748
9749 os2*)
9750 libname_spec='$name'
9751 shrext_cmds=".dll"
9752 need_lib_prefix=no
9753 library_names_spec='$libname${shared_ext} $libname.a'
9754 dynamic_linker='OS/2 ld.exe'
9755 shlibpath_var=LIBPATH
9756 ;;
9757
9758 osf3* | osf4* | osf5*)
9759 version_type=osf
9760 need_lib_prefix=no
9761 need_version=no
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9767 ;;
9768
9769 rdos*)
9770 dynamic_linker=no
9771 ;;
9772
9773 solaris*)
9774 version_type=linux
9775 need_lib_prefix=no
9776 need_version=no
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 soname_spec='${libname}${release}${shared_ext}$major'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes
9781 hardcode_into_libs=yes
9782 # ldd complains unless libraries are executable
9783 postinstall_cmds='chmod +x $lib'
9784 ;;
9785
9786 sunos4*)
9787 version_type=sunos
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes
9792 if test "$with_gnu_ld" = yes; then
9793 need_lib_prefix=no
9794 fi
9795 need_version=yes
9796 ;;
9797
9798 sysv4 | sysv4.3*)
9799 version_type=linux
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 shlibpath_var=LD_LIBRARY_PATH
9803 case $host_vendor in
9804 sni)
9805 shlibpath_overrides_runpath=no
9806 need_lib_prefix=no
9807 runpath_var=LD_RUN_PATH
9808 ;;
9809 siemens)
9810 need_lib_prefix=no
9811 ;;
9812 motorola)
9813 need_lib_prefix=no
9814 need_version=no
9815 shlibpath_overrides_runpath=no
9816 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9817 ;;
9818 esac
9819 ;;
9820
9821 sysv4*MP*)
9822 if test -d /usr/nec ;then
9823 version_type=linux
9824 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9825 soname_spec='$libname${shared_ext}.$major'
9826 shlibpath_var=LD_LIBRARY_PATH
9827 fi
9828 ;;
9829
9830 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9831 version_type=freebsd-elf
9832 need_lib_prefix=no
9833 need_version=no
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9839 if test "$with_gnu_ld" = yes; then
9840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9841 else
9842 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9843 case $host_os in
9844 sco3.2v5*)
9845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9846 ;;
9847 esac
9848 fi
9849 sys_lib_dlsearch_path_spec='/usr/lib'
9850 ;;
9851
9852 tpf*)
9853 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9854 version_type=linux
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 shlibpath_var=LD_LIBRARY_PATH
9859 shlibpath_overrides_runpath=no
9860 hardcode_into_libs=yes
9861 ;;
9862
9863 uts4*)
9864 version_type=linux
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 ;;
9869
9870 *)
9871 dynamic_linker=no
9872 ;;
9873 esac
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9875 $as_echo "$dynamic_linker" >&6; }
9876 test "$dynamic_linker" = no && can_build_shared=no
9877
9878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9879 if test "$GCC" = yes; then
9880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9881 fi
9882
9883 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9884 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9885 fi
9886 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9887 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9888 fi
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9982 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9983 hardcode_action=
9984 if test -n "$hardcode_libdir_flag_spec" ||
9985 test -n "$runpath_var" ||
9986 test "X$hardcode_automatic" = "Xyes" ; then
9987
9988 # We can hardcode non-existent directories.
9989 if test "$hardcode_direct" != no &&
9990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9991 # have to relink, otherwise we might link with an installed library
9992 # when we should be linking with a yet-to-be-installed one
9993 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9994 test "$hardcode_minus_L" != no; then
9995 # Linking always hardcodes the temporary library directory.
9996 hardcode_action=relink
9997 else
9998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9999 hardcode_action=immediate
10000 fi
10001 else
10002 # We cannot hardcode anything, or else we can only hardcode existing
10003 # directories.
10004 hardcode_action=unsupported
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10007 $as_echo "$hardcode_action" >&6; }
10008
10009 if test "$hardcode_action" = relink ||
10010 test "$inherit_rpath" = yes; then
10011 # Fast installation is not supported
10012 enable_fast_install=no
10013 elif test "$shlibpath_overrides_runpath" = yes ||
10014 test "$enable_shared" = no; then
10015 # Fast installation is not necessary
10016 enable_fast_install=needless
10017 fi
10018
10019
10020
10021
10022
10023
10024 if test "x$enable_dlopen" != xyes; then
10025 enable_dlopen=unknown
10026 enable_dlopen_self=unknown
10027 enable_dlopen_self_static=unknown
10028 else
10029 lt_cv_dlopen=no
10030 lt_cv_dlopen_libs=
10031
10032 case $host_os in
10033 beos*)
10034 lt_cv_dlopen="load_add_on"
10035 lt_cv_dlopen_libs=
10036 lt_cv_dlopen_self=yes
10037 ;;
10038
10039 mingw* | pw32* | cegcc*)
10040 lt_cv_dlopen="LoadLibrary"
10041 lt_cv_dlopen_libs=
10042 ;;
10043
10044 cygwin*)
10045 lt_cv_dlopen="dlopen"
10046 lt_cv_dlopen_libs=
10047 ;;
10048
10049 darwin*)
10050 # if libdl is installed we need to link against it
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10052 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10053 if ${ac_cv_lib_dl_dlopen+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 ac_check_lib_save_LIBS=$LIBS
10057 LIBS="-ldl $LIBS"
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060
10061 /* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 char dlopen ();
10068 int
10069 main ()
10070 {
10071 return dlopen ();
10072 ;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 ac_cv_lib_dl_dlopen=yes
10078 else
10079 ac_cv_lib_dl_dlopen=no
10080 fi
10081 rm -f core conftest.err conftest.$ac_objext \
10082 conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10084 fi
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10086 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10087 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10089 else
10090
10091 lt_cv_dlopen="dyld"
10092 lt_cv_dlopen_libs=
10093 lt_cv_dlopen_self=yes
10094
10095 fi
10096
10097 ;;
10098
10099 *)
10100 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10101 if test "x$ac_cv_func_shl_load" = xyes; then :
10102 lt_cv_dlopen="shl_load"
10103 else
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10105 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10106 if ${ac_cv_lib_dld_shl_load+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 ac_check_lib_save_LIBS=$LIBS
10110 LIBS="-ldld $LIBS"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10113
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char shl_load ();
10121 int
10122 main ()
10123 {
10124 return shl_load ();
10125 ;
10126 return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10130 ac_cv_lib_dld_shl_load=yes
10131 else
10132 ac_cv_lib_dld_shl_load=no
10133 fi
10134 rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136 LIBS=$ac_check_lib_save_LIBS
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10139 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10140 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10141 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10142 else
10143 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10144 if test "x$ac_cv_func_dlopen" = xyes; then :
10145 lt_cv_dlopen="dlopen"
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10148 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10149 if ${ac_cv_lib_dl_dlopen+:} false; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 ac_check_lib_save_LIBS=$LIBS
10153 LIBS="-ldl $LIBS"
10154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10155 /* end confdefs.h. */
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char dlopen ();
10164 int
10165 main ()
10166 {
10167 return dlopen ();
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"; then :
10173 ac_cv_lib_dl_dlopen=yes
10174 else
10175 ac_cv_lib_dl_dlopen=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext \
10178 conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10182 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10183 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10185 else
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10187 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10188 if ${ac_cv_lib_svld_dlopen+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-lsvld $LIBS"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char dlopen ();
10203 int
10204 main ()
10205 {
10206 return dlopen ();
10207 ;
10208 return 0;
10209 }
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_svld_dlopen=yes
10213 else
10214 ac_cv_lib_svld_dlopen=no
10215 fi
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10219 fi
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10221 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10222 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10223 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10224 else
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10226 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10227 if ${ac_cv_lib_dld_dld_link+:} false; then :
10228 $as_echo_n "(cached) " >&6
10229 else
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-ldld $LIBS"
10232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234
10235 /* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
10238 #ifdef __cplusplus
10239 extern "C"
10240 #endif
10241 char dld_link ();
10242 int
10243 main ()
10244 {
10245 return dld_link ();
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 ac_cv_lib_dld_dld_link=yes
10252 else
10253 ac_cv_lib_dld_dld_link=no
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LIBS=$ac_check_lib_save_LIBS
10258 fi
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10260 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10261 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10262 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10263 fi
10264
10265
10266 fi
10267
10268
10269 fi
10270
10271
10272 fi
10273
10274
10275 fi
10276
10277
10278 fi
10279
10280 ;;
10281 esac
10282
10283 if test "x$lt_cv_dlopen" != xno; then
10284 enable_dlopen=yes
10285 else
10286 enable_dlopen=no
10287 fi
10288
10289 case $lt_cv_dlopen in
10290 dlopen)
10291 save_CPPFLAGS="$CPPFLAGS"
10292 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10293
10294 save_LDFLAGS="$LDFLAGS"
10295 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10296
10297 save_LIBS="$LIBS"
10298 LIBS="$lt_cv_dlopen_libs $LIBS"
10299
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10301 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10302 if ${lt_cv_dlopen_self+:} false; then :
10303 $as_echo_n "(cached) " >&6
10304 else
10305 if test "$cross_compiling" = yes; then :
10306 lt_cv_dlopen_self=cross
10307 else
10308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10309 lt_status=$lt_dlunknown
10310 cat > conftest.$ac_ext <<_LT_EOF
10311 #line $LINENO "configure"
10312 #include "confdefs.h"
10313
10314 #if HAVE_DLFCN_H
10315 #include <dlfcn.h>
10316 #endif
10317
10318 #include <stdio.h>
10319
10320 #ifdef RTLD_GLOBAL
10321 # define LT_DLGLOBAL RTLD_GLOBAL
10322 #else
10323 # ifdef DL_GLOBAL
10324 # define LT_DLGLOBAL DL_GLOBAL
10325 # else
10326 # define LT_DLGLOBAL 0
10327 # endif
10328 #endif
10329
10330 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10331 find out it does not work in some platform. */
10332 #ifndef LT_DLLAZY_OR_NOW
10333 # ifdef RTLD_LAZY
10334 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10335 # else
10336 # ifdef DL_LAZY
10337 # define LT_DLLAZY_OR_NOW DL_LAZY
10338 # else
10339 # ifdef RTLD_NOW
10340 # define LT_DLLAZY_OR_NOW RTLD_NOW
10341 # else
10342 # ifdef DL_NOW
10343 # define LT_DLLAZY_OR_NOW DL_NOW
10344 # else
10345 # define LT_DLLAZY_OR_NOW 0
10346 # endif
10347 # endif
10348 # endif
10349 # endif
10350 #endif
10351
10352 /* When -fvisbility=hidden is used, assume the code has been annotated
10353 correspondingly for the symbols needed. */
10354 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10355 void fnord () __attribute__((visibility("default")));
10356 #endif
10357
10358 void fnord () { int i=42; }
10359 int main ()
10360 {
10361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10362 int status = $lt_dlunknown;
10363
10364 if (self)
10365 {
10366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10367 else
10368 {
10369 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370 else puts (dlerror ());
10371 }
10372 /* dlclose (self); */
10373 }
10374 else
10375 puts (dlerror ());
10376
10377 return status;
10378 }
10379 _LT_EOF
10380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10381 (eval $ac_link) 2>&5
10382 ac_status=$?
10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10384 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10385 (./conftest; exit; ) >&5 2>/dev/null
10386 lt_status=$?
10387 case x$lt_status in
10388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10391 esac
10392 else :
10393 # compilation failed
10394 lt_cv_dlopen_self=no
10395 fi
10396 fi
10397 rm -fr conftest*
10398
10399
10400 fi
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10402 $as_echo "$lt_cv_dlopen_self" >&6; }
10403
10404 if test "x$lt_cv_dlopen_self" = xyes; then
10405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10407 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10408 if ${lt_cv_dlopen_self_static+:} false; then :
10409 $as_echo_n "(cached) " >&6
10410 else
10411 if test "$cross_compiling" = yes; then :
10412 lt_cv_dlopen_self_static=cross
10413 else
10414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10415 lt_status=$lt_dlunknown
10416 cat > conftest.$ac_ext <<_LT_EOF
10417 #line $LINENO "configure"
10418 #include "confdefs.h"
10419
10420 #if HAVE_DLFCN_H
10421 #include <dlfcn.h>
10422 #endif
10423
10424 #include <stdio.h>
10425
10426 #ifdef RTLD_GLOBAL
10427 # define LT_DLGLOBAL RTLD_GLOBAL
10428 #else
10429 # ifdef DL_GLOBAL
10430 # define LT_DLGLOBAL DL_GLOBAL
10431 # else
10432 # define LT_DLGLOBAL 0
10433 # endif
10434 #endif
10435
10436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10437 find out it does not work in some platform. */
10438 #ifndef LT_DLLAZY_OR_NOW
10439 # ifdef RTLD_LAZY
10440 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10441 # else
10442 # ifdef DL_LAZY
10443 # define LT_DLLAZY_OR_NOW DL_LAZY
10444 # else
10445 # ifdef RTLD_NOW
10446 # define LT_DLLAZY_OR_NOW RTLD_NOW
10447 # else
10448 # ifdef DL_NOW
10449 # define LT_DLLAZY_OR_NOW DL_NOW
10450 # else
10451 # define LT_DLLAZY_OR_NOW 0
10452 # endif
10453 # endif
10454 # endif
10455 # endif
10456 #endif
10457
10458 /* When -fvisbility=hidden is used, assume the code has been annotated
10459 correspondingly for the symbols needed. */
10460 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10461 void fnord () __attribute__((visibility("default")));
10462 #endif
10463
10464 void fnord () { int i=42; }
10465 int main ()
10466 {
10467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10468 int status = $lt_dlunknown;
10469
10470 if (self)
10471 {
10472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10473 else
10474 {
10475 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10476 else puts (dlerror ());
10477 }
10478 /* dlclose (self); */
10479 }
10480 else
10481 puts (dlerror ());
10482
10483 return status;
10484 }
10485 _LT_EOF
10486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10487 (eval $ac_link) 2>&5
10488 ac_status=$?
10489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10491 (./conftest; exit; ) >&5 2>/dev/null
10492 lt_status=$?
10493 case x$lt_status in
10494 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10495 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10496 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10497 esac
10498 else :
10499 # compilation failed
10500 lt_cv_dlopen_self_static=no
10501 fi
10502 fi
10503 rm -fr conftest*
10504
10505
10506 fi
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10508 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10509 fi
10510
10511 CPPFLAGS="$save_CPPFLAGS"
10512 LDFLAGS="$save_LDFLAGS"
10513 LIBS="$save_LIBS"
10514 ;;
10515 esac
10516
10517 case $lt_cv_dlopen_self in
10518 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10519 *) enable_dlopen_self=unknown ;;
10520 esac
10521
10522 case $lt_cv_dlopen_self_static in
10523 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10524 *) enable_dlopen_self_static=unknown ;;
10525 esac
10526 fi
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 striplib=
10545 old_striplib=
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10547 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10548 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10549 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10550 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10552 $as_echo "yes" >&6; }
10553 else
10554 # FIXME - insert some real tests, host_os isn't really good enough
10555 case $host_os in
10556 darwin*)
10557 if test -n "$STRIP" ; then
10558 striplib="$STRIP -x"
10559 old_striplib="$STRIP -S"
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561 $as_echo "yes" >&6; }
10562 else
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564 $as_echo "no" >&6; }
10565 fi
10566 ;;
10567 *)
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10570 ;;
10571 esac
10572 fi
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585 # Report which library types will actually be built
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10587 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10589 $as_echo "$can_build_shared" >&6; }
10590
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10592 $as_echo_n "checking whether to build shared libraries... " >&6; }
10593 test "$can_build_shared" = "no" && enable_shared=no
10594
10595 # On AIX, shared libraries and static libraries use the same namespace, and
10596 # are all built from PIC.
10597 case $host_os in
10598 aix3*)
10599 test "$enable_shared" = yes && enable_static=no
10600 if test -n "$RANLIB"; then
10601 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10602 postinstall_cmds='$RANLIB $lib'
10603 fi
10604 ;;
10605
10606 aix[4-9]*)
10607 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10608 test "$enable_shared" = yes && enable_static=no
10609 fi
10610 ;;
10611 esac
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10613 $as_echo "$enable_shared" >&6; }
10614
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10616 $as_echo_n "checking whether to build static libraries... " >&6; }
10617 # Make sure either enable_shared or enable_static is yes.
10618 test "$enable_shared" = yes || enable_static=yes
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10620 $as_echo "$enable_static" >&6; }
10621
10622
10623
10624
10625 fi
10626 ac_ext=c
10627 ac_cpp='$CPP $CPPFLAGS'
10628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10631
10632 CC="$lt_save_CC"
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646 ac_config_commands="$ac_config_commands libtool"
10647
10648
10649
10650
10651 # Only expand once:
10652
10653
10654
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
10656 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
10657 if ${ac_cv_prog_cc_c99+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659 else
10660 ac_cv_prog_cc_c99=no
10661 ac_save_CC=$CC
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <stdarg.h>
10665 #include <stdbool.h>
10666 #include <stdlib.h>
10667 #include <wchar.h>
10668 #include <stdio.h>
10669
10670 // Check varargs macros. These examples are taken from C99 6.10.3.5.
10671 #define debug(...) fprintf (stderr, __VA_ARGS__)
10672 #define showlist(...) puts (#__VA_ARGS__)
10673 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
10674 static void
10675 test_varargs_macros (void)
10676 {
10677 int x = 1234;
10678 int y = 5678;
10679 debug ("Flag");
10680 debug ("X = %d\n", x);
10681 showlist (The first, second, and third items.);
10682 report (x>y, "x is %d but y is %d", x, y);
10683 }
10684
10685 // Check long long types.
10686 #define BIG64 18446744073709551615ull
10687 #define BIG32 4294967295ul
10688 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
10689 #if !BIG_OK
10690 your preprocessor is broken;
10691 #endif
10692 #if BIG_OK
10693 #else
10694 your preprocessor is broken;
10695 #endif
10696 static long long int bignum = -9223372036854775807LL;
10697 static unsigned long long int ubignum = BIG64;
10698
10699 struct incomplete_array
10700 {
10701 int datasize;
10702 double data[];
10703 };
10704
10705 struct named_init {
10706 int number;
10707 const wchar_t *name;
10708 double average;
10709 };
10710
10711 typedef const char *ccp;
10712
10713 static inline int
10714 test_restrict (ccp restrict text)
10715 {
10716 // See if C++-style comments work.
10717 // Iterate through items via the restricted pointer.
10718 // Also check for declarations in for loops.
10719 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
10720 continue;
10721 return 0;
10722 }
10723
10724 // Check varargs and va_copy.
10725 static void
10726 test_varargs (const char *format, ...)
10727 {
10728 va_list args;
10729 va_start (args, format);
10730 va_list args_copy;
10731 va_copy (args_copy, args);
10732
10733 const char *str;
10734 int number;
10735 float fnumber;
10736
10737 while (*format)
10738 {
10739 switch (*format++)
10740 {
10741 case 's': // string
10742 str = va_arg (args_copy, const char *);
10743 break;
10744 case 'd': // int
10745 number = va_arg (args_copy, int);
10746 break;
10747 case 'f': // float
10748 fnumber = va_arg (args_copy, double);
10749 break;
10750 default:
10751 break;
10752 }
10753 }
10754 va_end (args_copy);
10755 va_end (args);
10756 }
10757
10758 int
10759 main ()
10760 {
10761
10762 // Check bool.
10763 _Bool success = false;
10764
10765 // Check restrict.
10766 if (test_restrict ("String literal") == 0)
10767 success = true;
10768 char *restrict newvar = "Another string";
10769
10770 // Check varargs.
10771 test_varargs ("s, d' f .", "string", 65, 34.234);
10772 test_varargs_macros ();
10773
10774 // Check flexible array members.
10775 struct incomplete_array *ia =
10776 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
10777 ia->datasize = 10;
10778 for (int i = 0; i < ia->datasize; ++i)
10779 ia->data[i] = i * 1.234;
10780
10781 // Check named initializers.
10782 struct named_init ni = {
10783 .number = 34,
10784 .name = L"Test wide string",
10785 .average = 543.34343,
10786 };
10787
10788 ni.number = 58;
10789
10790 int dynamic_array[ni.number];
10791 dynamic_array[ni.number - 1] = 543;
10792
10793 // work around unused variable warnings
10794 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
10795 || dynamic_array[ni.number - 1] != 543);
10796
10797 ;
10798 return 0;
10799 }
10800 _ACEOF
10801 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
10802 do
10803 CC="$ac_save_CC $ac_arg"
10804 if ac_fn_c_try_compile "$LINENO"; then :
10805 ac_cv_prog_cc_c99=$ac_arg
10806 fi
10807 rm -f core conftest.err conftest.$ac_objext
10808 test "x$ac_cv_prog_cc_c99" != "xno" && break
10809 done
10810 rm -f conftest.$ac_ext
10811 CC=$ac_save_CC
10812
10813 fi
10814 # AC_CACHE_VAL
10815 case "x$ac_cv_prog_cc_c99" in
10816 x)
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
10818 $as_echo "none needed" >&6; } ;;
10819 xno)
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
10821 $as_echo "unsupported" >&6; } ;;
10822 *)
10823 CC="$CC $ac_cv_prog_cc_c99"
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
10825 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
10826 esac
10827 if test "x$ac_cv_prog_cc_c99" != xno; then :
10828
10829 fi
10830
10831
10832
10833
10834 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10835 if test -n "$ac_tool_prefix"; then
10836 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10837 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10839 $as_echo_n "checking for $ac_word... " >&6; }
10840 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10841 $as_echo_n "(cached) " >&6
10842 else
10843 case $PKG_CONFIG in
10844 [\\/]* | ?:[\\/]*)
10845 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10846 ;;
10847 *)
10848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10849 for as_dir in $PATH
10850 do
10851 IFS=$as_save_IFS
10852 test -z "$as_dir" && as_dir=.
10853 for ac_exec_ext in '' $ac_executable_extensions; do
10854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10855 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10857 break 2
10858 fi
10859 done
10860 done
10861 IFS=$as_save_IFS
10862
10863 ;;
10864 esac
10865 fi
10866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10867 if test -n "$PKG_CONFIG"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10869 $as_echo "$PKG_CONFIG" >&6; }
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10873 fi
10874
10875
10876 fi
10877 if test -z "$ac_cv_path_PKG_CONFIG"; then
10878 ac_pt_PKG_CONFIG=$PKG_CONFIG
10879 # Extract the first word of "pkg-config", so it can be a program name with args.
10880 set dummy pkg-config; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; }
10883 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 case $ac_pt_PKG_CONFIG in
10887 [\\/]* | ?:[\\/]*)
10888 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10889 ;;
10890 *)
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10893 do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902 done
10903 done
10904 IFS=$as_save_IFS
10905
10906 ;;
10907 esac
10908 fi
10909 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10910 if test -n "$ac_pt_PKG_CONFIG"; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10912 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915 $as_echo "no" >&6; }
10916 fi
10917
10918 if test "x$ac_pt_PKG_CONFIG" = x; then
10919 PKG_CONFIG=""
10920 else
10921 case $cross_compiling:$ac_tool_warned in
10922 yes:)
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10925 ac_tool_warned=yes ;;
10926 esac
10927 PKG_CONFIG=$ac_pt_PKG_CONFIG
10928 fi
10929 else
10930 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10931 fi
10932
10933 fi
10934 if test -n "$PKG_CONFIG"; then
10935 _pkg_min_version=0.9.0
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10937 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10938 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10940 $as_echo "yes" >&6; }
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943 $as_echo "no" >&6; }
10944 PKG_CONFIG=""
10945 fi
10946
10947 fi
10948
10949
10950
10951
10952 if test "x$GCC" = xyes ; then
10953 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
10954 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
10955 -Wbad-function-cast -Wformat=2"
10956 case `$CC -dumpversion` in
10957 3.4.* | 4.*)
10958 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
10959 ;;
10960 esac
10961 else
10962 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10963 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10964 SUNCC="yes"
10965 else
10966 SUNCC="no"
10967 fi
10968
10969 if test "x$SUNCC" = "xyes"; then
10970 CWARNFLAGS="-v"
10971 fi
10972 fi
10973
10974
10975
10976 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
10977
10978
10979
10980 # Check whether --enable-strict-compilation was given.
10981 if test "${enable_strict_compilation+set}" = set; then :
10982 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10983 else
10984 STRICT_COMPILE=no
10985 fi
10986
10987 if test "x$STRICT_COMPILE" = "xyes"; then
10988 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
10989 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
10990 SUNCC="yes"
10991 else
10992 SUNCC="no"
10993 fi
10994
10995 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
10996 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
10997 INTELCC="yes"
10998 else
10999 INTELCC="no"
11000 fi
11001
11002 if test "x$GCC" = xyes ; then
11003 STRICT_CFLAGS="-pedantic -Werror"
11004 elif test "x$SUNCC" = "xyes"; then
11005 STRICT_CFLAGS="-errwarn"
11006 elif test "x$INTELCC" = "xyes"; then
11007 STRICT_CFLAGS="-Werror"
11008 fi
11009 fi
11010 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11011
11012
11013
11014
11015 cat >>confdefs.h <<_ACEOF
11016 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11017 _ACEOF
11018
11019 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11020 if test "x$PVM" = "x"; then
11021 PVM="0"
11022 fi
11023
11024 cat >>confdefs.h <<_ACEOF
11025 #define PACKAGE_VERSION_MINOR $PVM
11026 _ACEOF
11027
11028 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11029 if test "x$PVP" = "x"; then
11030 PVP="0"
11031 fi
11032
11033 cat >>confdefs.h <<_ACEOF
11034 #define PACKAGE_VERSION_PATCHLEVEL $PVP
11035 _ACEOF
11036
11037
11038
11039 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11040 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11041 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11042 echo 'git directory not found: installing possibly empty changelog.' >&2)"
11043
11044
11045
11046
11047 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11048 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11049 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11050 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11051 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11052
11053
11054
11055
11056
11057
11058 if test x$APP_MAN_SUFFIX = x ; then
11059 APP_MAN_SUFFIX=1
11060 fi
11061 if test x$APP_MAN_DIR = x ; then
11062 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11063 fi
11064
11065 if test x$LIB_MAN_SUFFIX = x ; then
11066 LIB_MAN_SUFFIX=3
11067 fi
11068 if test x$LIB_MAN_DIR = x ; then
11069 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11070 fi
11071
11072 if test x$FILE_MAN_SUFFIX = x ; then
11073 case $host_os in
11074 solaris*) FILE_MAN_SUFFIX=4 ;;
11075 *) FILE_MAN_SUFFIX=5 ;;
11076 esac
11077 fi
11078 if test x$FILE_MAN_DIR = x ; then
11079 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11080 fi
11081
11082 if test x$MISC_MAN_SUFFIX = x ; then
11083 case $host_os in
11084 solaris*) MISC_MAN_SUFFIX=5 ;;
11085 *) MISC_MAN_SUFFIX=7 ;;
11086 esac
11087 fi
11088 if test x$MISC_MAN_DIR = x ; then
11089 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11090 fi
11091
11092 if test x$DRIVER_MAN_SUFFIX = x ; then
11093 case $host_os in
11094 solaris*) DRIVER_MAN_SUFFIX=7 ;;
11095 *) DRIVER_MAN_SUFFIX=4 ;;
11096 esac
11097 fi
11098 if test x$DRIVER_MAN_DIR = x ; then
11099 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11100 fi
11101
11102 if test x$ADMIN_MAN_SUFFIX = x ; then
11103 case $host_os in
11104 solaris*) ADMIN_MAN_SUFFIX=1m ;;
11105 *) ADMIN_MAN_SUFFIX=8 ;;
11106 esac
11107 fi
11108 if test x$ADMIN_MAN_DIR = x ; then
11109 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11110 fi
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 XORG_MAN_PAGE="X Version 11"
11127
11128 MAN_SUBSTS="\
11129 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11130 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11131 -e 's|__xservername__|Xorg|g' \
11132 -e 's|__xconfigfile__|xorg.conf|g' \
11133 -e 's|__projectroot__|\$(prefix)|g' \
11134 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11135 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11136 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11137 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11138 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11139 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11140 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11141
11142
11143
11144 # Check whether --enable-silent-rules was given.
11145 if test "${enable_silent_rules+set}" = set; then :
11146 enableval=$enable_silent_rules;
11147 fi
11148
11149 case $enable_silent_rules in
11150 yes) AM_DEFAULT_VERBOSITY=0;;
11151 no) AM_DEFAULT_VERBOSITY=1;;
11152 *) AM_DEFAULT_VERBOSITY=0;;
11153 esac
11154 AM_BACKSLASH='\'
11155
11156
11157
11158
11159
11160 # Check whether --with-xmlto was given.
11161 if test "${with_xmlto+set}" = set; then :
11162 withval=$with_xmlto; use_xmlto=$withval
11163 else
11164 use_xmlto=auto
11165 fi
11166
11167
11168 if test "x$use_xmlto" = x"auto"; then
11169 # Extract the first word of "xmlto", so it can be a program name with args.
11170 set dummy xmlto; ac_word=$2
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 $as_echo_n "checking for $ac_word... " >&6; }
11173 if ${ac_cv_path_XMLTO+:} false; then :
11174 $as_echo_n "(cached) " >&6
11175 else
11176 case $XMLTO in
11177 [\\/]* | ?:[\\/]*)
11178 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11179 ;;
11180 *)
11181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11182 for as_dir in $PATH
11183 do
11184 IFS=$as_save_IFS
11185 test -z "$as_dir" && as_dir=.
11186 for ac_exec_ext in '' $ac_executable_extensions; do
11187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11188 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11190 break 2
11191 fi
11192 done
11193 done
11194 IFS=$as_save_IFS
11195
11196 ;;
11197 esac
11198 fi
11199 XMLTO=$ac_cv_path_XMLTO
11200 if test -n "$XMLTO"; then
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11202 $as_echo "$XMLTO" >&6; }
11203 else
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11205 $as_echo "no" >&6; }
11206 fi
11207
11208
11209 if test "x$XMLTO" = "x"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
11211 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
11212 have_xmlto=no
11213 else
11214 have_xmlto=yes
11215 fi
11216 elif test "x$use_xmlto" = x"yes" ; then
11217 # Extract the first word of "xmlto", so it can be a program name with args.
11218 set dummy xmlto; ac_word=$2
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220 $as_echo_n "checking for $ac_word... " >&6; }
11221 if ${ac_cv_path_XMLTO+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 case $XMLTO in
11225 [\\/]* | ?:[\\/]*)
11226 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
11227 ;;
11228 *)
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11231 do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11236 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240 done
11241 done
11242 IFS=$as_save_IFS
11243
11244 ;;
11245 esac
11246 fi
11247 XMLTO=$ac_cv_path_XMLTO
11248 if test -n "$XMLTO"; then
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
11250 $as_echo "$XMLTO" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253 $as_echo "no" >&6; }
11254 fi
11255
11256
11257 if test "x$XMLTO" = "x"; then
11258 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
11259 fi
11260 have_xmlto=yes
11261 elif test "x$use_xmlto" = x"no" ; then
11262 if test "x$XMLTO" != "x"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
11264 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
11265 fi
11266 have_xmlto=no
11267 else
11268 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
11269 fi
11270
11271 # Test for a minimum version of xmlto, if provided.
11272 if test "$have_xmlto" = yes; then
11273 # scrape the xmlto version
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
11275 $as_echo_n "checking the xmlto version... " >&6; }
11276 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
11278 $as_echo "$xmlto_version" >&6; }
11279 as_arg_v1=$xmlto_version
11280 as_arg_v2=0.0.20
11281 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
11282 case $? in #(
11283 1) :
11284 if test "x$use_xmlto" = xauto; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
11286 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
11287 have_xmlto=no
11288 else
11289 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
11290 fi ;; #(
11291 0) :
11292 ;; #(
11293 2) :
11294 ;; #(
11295 *) :
11296 ;;
11297 esac
11298 fi
11299
11300 # Test for the ability of xmlto to generate a text target
11301 have_xmlto_text=no
11302 cat > conftest.xml << "EOF"
11303 EOF
11304 if test "$have_xmlto" = yes; then :
11305 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
11306 have_xmlto_text=yes
11307 else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
11309 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
11310 fi
11311 fi
11312 rm -f conftest.xml
11313 if test $have_xmlto_text = yes; then
11314 HAVE_XMLTO_TEXT_TRUE=
11315 HAVE_XMLTO_TEXT_FALSE='#'
11316 else
11317 HAVE_XMLTO_TEXT_TRUE='#'
11318 HAVE_XMLTO_TEXT_FALSE=
11319 fi
11320
11321 if test "$have_xmlto" = yes; then
11322 HAVE_XMLTO_TRUE=
11323 HAVE_XMLTO_FALSE='#'
11324 else
11325 HAVE_XMLTO_TRUE='#'
11326 HAVE_XMLTO_FALSE=
11327 fi
11328
11329
11330
11331 # Determine if the source for man pages is available
11332 # It may already be present (tarball) or can be generated using xmlto
11333 if test -f "$srcdir/man/Xcomposite.man" || test "x$have_xmlto" = xyes; then
11334 INSTALL_MANPAGES_TRUE=
11335 INSTALL_MANPAGES_FALSE='#'
11336 else
11337 INSTALL_MANPAGES_TRUE='#'
11338 INSTALL_MANPAGES_FALSE=
11339 fi
11340
11341
11342 # Check compositeext configuration, strip extra digits from package version to
11343 # find the required protocol version
11344
11345 if test "$VERSION" = "" ; then
11346 VERSION=$PACKAGE_VERSION;
11347 fi
11348 COMPOSITEEXT_VERSION=`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`
11349
11350
11351 pkg_failed=no
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCOMPOSITE" >&5
11353 $as_echo_n "checking for XCOMPOSITE... " >&6; }
11354
11355 if test -n "$XCOMPOSITE_CFLAGS"; then
11356 pkg_cv_XCOMPOSITE_CFLAGS="$XCOMPOSITE_CFLAGS"
11357 elif test -n "$PKG_CONFIG"; then
11358 if test -n "$PKG_CONFIG" && \
11359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11\""; } >&5
11360 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11") 2>&5
11361 ac_status=$?
11362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11363 test $ac_status = 0; }; then
11364 pkg_cv_XCOMPOSITE_CFLAGS=`$PKG_CONFIG --cflags "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>/dev/null`
11365 else
11366 pkg_failed=yes
11367 fi
11368 else
11369 pkg_failed=untried
11370 fi
11371 if test -n "$XCOMPOSITE_LIBS"; then
11372 pkg_cv_XCOMPOSITE_LIBS="$XCOMPOSITE_LIBS"
11373 elif test -n "$PKG_CONFIG"; then
11374 if test -n "$PKG_CONFIG" && \
11375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"compositeproto >= \$COMPOSITEEXT_VERSION x11\""; } >&5
11376 ($PKG_CONFIG --exists --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11") 2>&5
11377 ac_status=$?
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; }; then
11380 pkg_cv_XCOMPOSITE_LIBS=`$PKG_CONFIG --libs "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>/dev/null`
11381 else
11382 pkg_failed=yes
11383 fi
11384 else
11385 pkg_failed=untried
11386 fi
11387
11388
11389
11390 if test $pkg_failed = yes; then
11391
11392 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11393 _pkg_short_errors_supported=yes
11394 else
11395 _pkg_short_errors_supported=no
11396 fi
11397 if test $_pkg_short_errors_supported = yes; then
11398 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>&1`
11399 else
11400 XCOMPOSITE_PKG_ERRORS=`$PKG_CONFIG --print-errors "compositeproto >= $COMPOSITEEXT_VERSION x11" 2>&1`
11401 fi
11402 # Put the nasty error message in config.log where it belongs
11403 echo "$XCOMPOSITE_PKG_ERRORS" >&5
11404
11405 as_fn_error $? "Package requirements (compositeproto >= $COMPOSITEEXT_VERSION x11) were not met:
11406
11407 $XCOMPOSITE_PKG_ERRORS
11408
11409 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11410 installed software in a non-standard prefix.
11411
11412 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
11413 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
11414 See the pkg-config man page for more details.
11415 " "$LINENO" 5
11416 elif test $pkg_failed = untried; then
11417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11419 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11420 is in your PATH or set the PKG_CONFIG environment variable to the full
11421 path to pkg-config.
11422
11423 Alternatively, you may set the environment variables XCOMPOSITE_CFLAGS
11424 and XCOMPOSITE_LIBS to avoid the need to call pkg-config.
11425 See the pkg-config man page for more details.
11426
11427 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11428 See \`config.log' for more details" "$LINENO" 5; }
11429 else
11430 XCOMPOSITE_CFLAGS=$pkg_cv_XCOMPOSITE_CFLAGS
11431 XCOMPOSITE_LIBS=$pkg_cv_XCOMPOSITE_LIBS
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11433 $as_echo "yes" >&6; }
11434 :
11435 fi
11436
11437 pkg_failed=no
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFIXES" >&5
11439 $as_echo_n "checking for XFIXES... " >&6; }
11440
11441 if test -n "$XFIXES_CFLAGS"; then
11442 pkg_cv_XFIXES_CFLAGS="$XFIXES_CFLAGS"
11443 elif test -n "$PKG_CONFIG"; then
11444 if test -n "$PKG_CONFIG" && \
11445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
11446 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
11447 ac_status=$?
11448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11449 test $ac_status = 0; }; then
11450 pkg_cv_XFIXES_CFLAGS=`$PKG_CONFIG --cflags "xfixes" 2>/dev/null`
11451 else
11452 pkg_failed=yes
11453 fi
11454 else
11455 pkg_failed=untried
11456 fi
11457 if test -n "$XFIXES_LIBS"; then
11458 pkg_cv_XFIXES_LIBS="$XFIXES_LIBS"
11459 elif test -n "$PKG_CONFIG"; then
11460 if test -n "$PKG_CONFIG" && \
11461 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xfixes\""; } >&5
11462 ($PKG_CONFIG --exists --print-errors "xfixes") 2>&5
11463 ac_status=$?
11464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465 test $ac_status = 0; }; then
11466 pkg_cv_XFIXES_LIBS=`$PKG_CONFIG --libs "xfixes" 2>/dev/null`
11467 else
11468 pkg_failed=yes
11469 fi
11470 else
11471 pkg_failed=untried
11472 fi
11473
11474
11475
11476 if test $pkg_failed = yes; then
11477
11478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11479 _pkg_short_errors_supported=yes
11480 else
11481 _pkg_short_errors_supported=no
11482 fi
11483 if test $_pkg_short_errors_supported = yes; then
11484 XFIXES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xfixes" 2>&1`
11485 else
11486 XFIXES_PKG_ERRORS=`$PKG_CONFIG --print-errors "xfixes" 2>&1`
11487 fi
11488 # Put the nasty error message in config.log where it belongs
11489 echo "$XFIXES_PKG_ERRORS" >&5
11490
11491 as_fn_error $? "Package requirements (xfixes) were not met:
11492
11493 $XFIXES_PKG_ERRORS
11494
11495 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11496 installed software in a non-standard prefix.
11497
11498 Alternatively, you may set the environment variables XFIXES_CFLAGS
11499 and XFIXES_LIBS to avoid the need to call pkg-config.
11500 See the pkg-config man page for more details.
11501 " "$LINENO" 5
11502 elif test $pkg_failed = untried; then
11503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11505 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11506 is in your PATH or set the PKG_CONFIG environment variable to the full
11507 path to pkg-config.
11508
11509 Alternatively, you may set the environment variables XFIXES_CFLAGS
11510 and XFIXES_LIBS to avoid the need to call pkg-config.
11511 See the pkg-config man page for more details.
11512
11513 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11514 See \`config.log' for more details" "$LINENO" 5; }
11515 else
11516 XFIXES_CFLAGS=$pkg_cv_XFIXES_CFLAGS
11517 XFIXES_LIBS=$pkg_cv_XFIXES_LIBS
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519 $as_echo "yes" >&6; }
11520 :
11521 fi
11522
11523 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcomposite.pc"
11524
11525 cat >confcache <<\_ACEOF
11526 # This file is a shell script that caches the results of configure
11527 # tests run on this system so they can be shared between configure
11528 # scripts and configure runs, see configure's option --config-cache.
11529 # It is not useful on other systems. If it contains results you don't
11530 # want to keep, you may remove or edit it.
11531 #
11532 # config.status only pays attention to the cache file if you give it
11533 # the --recheck option to rerun configure.
11534 #
11535 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11536 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11537 # following values.
11538
11539 _ACEOF
11540
11541 # The following way of writing the cache mishandles newlines in values,
11542 # but we know of no workaround that is simple, portable, and efficient.
11543 # So, we kill variables containing newlines.
11544 # Ultrix sh set writes to stderr and can't be redirected directly,
11545 # and sets the high bit in the cache file unless we assign to the vars.
11546 (
11547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11548 eval ac_val=\$$ac_var
11549 case $ac_val in #(
11550 *${as_nl}*)
11551 case $ac_var in #(
11552 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11553 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11554 esac
11555 case $ac_var in #(
11556 _ | IFS | as_nl) ;; #(
11557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11558 *) { eval $ac_var=; unset $ac_var;} ;;
11559 esac ;;
11560 esac
11561 done
11562
11563 (set) 2>&1 |
11564 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11565 *${as_nl}ac_space=\ *)
11566 # `set' does not quote correctly, so add quotes: double-quote
11567 # substitution turns \\\\ into \\, and sed turns \\ into \.
11568 sed -n \
11569 "s/'/'\\\\''/g;
11570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11571 ;; #(
11572 *)
11573 # `set' quotes correctly as required by POSIX, so do not add quotes.
11574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11575 ;;
11576 esac |
11577 sort
11578 ) |
11579 sed '
11580 /^ac_cv_env_/b end
11581 t clear
11582 :clear
11583 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11584 t end
11585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11586 :end' >>confcache
11587 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11588 if test -w "$cache_file"; then
11589 if test "x$cache_file" != "x/dev/null"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11591 $as_echo "$as_me: updating cache $cache_file" >&6;}
11592 if test ! -f "$cache_file" || test -h "$cache_file"; then
11593 cat confcache >"$cache_file"
11594 else
11595 case $cache_file in #(
11596 */* | ?:*)
11597 mv -f confcache "$cache_file"$$ &&
11598 mv -f "$cache_file"$$ "$cache_file" ;; #(
11599 *)
11600 mv -f confcache "$cache_file" ;;
11601 esac
11602 fi
11603 fi
11604 else
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11606 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11607 fi
11608 fi
11609 rm -f confcache
11610
11611 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11612 # Let make expand exec_prefix.
11613 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11614
11615 DEFS=-DHAVE_CONFIG_H
11616
11617 ac_libobjs=
11618 ac_ltlibobjs=
11619 U=
11620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11621 # 1. Remove the extension, and $U if already installed.
11622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11623 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11625 # will be set to the directory where LIBOBJS objects are built.
11626 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11627 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11628 done
11629 LIBOBJS=$ac_libobjs
11630
11631 LTLIBOBJS=$ac_ltlibobjs
11632
11633
11634 if test -n "$EXEEXT"; then
11635 am__EXEEXT_TRUE=
11636 am__EXEEXT_FALSE='#'
11637 else
11638 am__EXEEXT_TRUE='#'
11639 am__EXEEXT_FALSE=
11640 fi
11641
11642 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11643 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11645 fi
11646 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11647 as_fn_error $? "conditional \"AMDEP\" was never defined.
11648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11649 fi
11650 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11651 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11653 fi
11654 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
11655 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
11656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11657 fi
11658 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
11659 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
11660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11661 fi
11662 if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then
11663 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined.
11664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11665 fi
11666
11667 : "${CONFIG_STATUS=./config.status}"
11668 ac_write_fail=0
11669 ac_clean_files_save=$ac_clean_files
11670 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11672 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11673 as_write_fail=0
11674 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11675 #! $SHELL
11676 # Generated by $as_me.
11677 # Run this file to recreate the current configuration.
11678 # Compiler output produced by configure, useful for debugging
11679 # configure, is in config.log if it exists.
11680
11681 debug=false
11682 ac_cs_recheck=false
11683 ac_cs_silent=false
11684
11685 SHELL=\${CONFIG_SHELL-$SHELL}
11686 export SHELL
11687 _ASEOF
11688 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11689 ## -------------------- ##
11690 ## M4sh Initialization. ##
11691 ## -------------------- ##
11692
11693 # Be more Bourne compatible
11694 DUALCASE=1; export DUALCASE # for MKS sh
11695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11696 emulate sh
11697 NULLCMD=:
11698 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11699 # is contrary to our usage. Disable this feature.
11700 alias -g '${1+"$@"}'='"$@"'
11701 setopt NO_GLOB_SUBST
11702 else
11703 case `(set -o) 2>/dev/null` in #(
11704 *posix*) :
11705 set -o posix ;; #(
11706 *) :
11707 ;;
11708 esac
11709 fi
11710
11711
11712 as_nl='
11713 '
11714 export as_nl
11715 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11716 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11717 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11719 # Prefer a ksh shell builtin over an external printf program on Solaris,
11720 # but without wasting forks for bash or zsh.
11721 if test -z "$BASH_VERSION$ZSH_VERSION" \
11722 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11723 as_echo='print -r --'
11724 as_echo_n='print -rn --'
11725 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11726 as_echo='printf %s\n'
11727 as_echo_n='printf %s'
11728 else
11729 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11730 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11731 as_echo_n='/usr/ucb/echo -n'
11732 else
11733 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11734 as_echo_n_body='eval
11735 arg=$1;
11736 case $arg in #(
11737 *"$as_nl"*)
11738 expr "X$arg" : "X\\(.*\\)$as_nl";
11739 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11740 esac;
11741 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11742 '
11743 export as_echo_n_body
11744 as_echo_n='sh -c $as_echo_n_body as_echo'
11745 fi
11746 export as_echo_body
11747 as_echo='sh -c $as_echo_body as_echo'
11748 fi
11749
11750 # The user is always right.
11751 if test "${PATH_SEPARATOR+set}" != set; then
11752 PATH_SEPARATOR=:
11753 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11754 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11755 PATH_SEPARATOR=';'
11756 }
11757 fi
11758
11759
11760 # IFS
11761 # We need space, tab and new line, in precisely that order. Quoting is
11762 # there to prevent editors from complaining about space-tab.
11763 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11764 # splitting by setting IFS to empty value.)
11765 IFS=" "" $as_nl"
11766
11767 # Find who we are. Look in the path if we contain no directory separator.
11768 as_myself=
11769 case $0 in #((
11770 *[\\/]* ) as_myself=$0 ;;
11771 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11773 do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
11776 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11777 done
11778 IFS=$as_save_IFS
11779
11780 ;;
11781 esac
11782 # We did not find ourselves, most probably we were run as `sh COMMAND'
11783 # in which case we are not to be found in the path.
11784 if test "x$as_myself" = x; then
11785 as_myself=$0
11786 fi
11787 if test ! -f "$as_myself"; then
11788 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11789 exit 1
11790 fi
11791
11792 # Unset variables that we do not need and which cause bugs (e.g. in
11793 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11794 # suppresses any "Segmentation fault" message there. '((' could
11795 # trigger a bug in pdksh 5.2.14.
11796 for as_var in BASH_ENV ENV MAIL MAILPATH
11797 do eval test x\${$as_var+set} = xset \
11798 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11799 done
11800 PS1='$ '
11801 PS2='> '
11802 PS4='+ '
11803
11804 # NLS nuisances.
11805 LC_ALL=C
11806 export LC_ALL
11807 LANGUAGE=C
11808 export LANGUAGE
11809
11810 # CDPATH.
11811 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11812
11813
11814 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11815 # ----------------------------------------
11816 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11817 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11818 # script with STATUS, using 1 if that was 0.
11819 as_fn_error ()
11820 {
11821 as_status=$1; test $as_status -eq 0 && as_status=1
11822 if test "$4"; then
11823 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11824 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11825 fi
11826 $as_echo "$as_me: error: $2" >&2
11827 as_fn_exit $as_status
11828 } # as_fn_error
11829
11830
11831 # as_fn_set_status STATUS
11832 # -----------------------
11833 # Set $? to STATUS, without forking.
11834 as_fn_set_status ()
11835 {
11836 return $1
11837 } # as_fn_set_status
11838
11839 # as_fn_exit STATUS
11840 # -----------------
11841 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11842 as_fn_exit ()
11843 {
11844 set +e
11845 as_fn_set_status $1
11846 exit $1
11847 } # as_fn_exit
11848
11849 # as_fn_unset VAR
11850 # ---------------
11851 # Portably unset VAR.
11852 as_fn_unset ()
11853 {
11854 { eval $1=; unset $1;}
11855 }
11856 as_unset=as_fn_unset
11857 # as_fn_append VAR VALUE
11858 # ----------------------
11859 # Append the text in VALUE to the end of the definition contained in VAR. Take
11860 # advantage of any shell optimizations that allow amortized linear growth over
11861 # repeated appends, instead of the typical quadratic growth present in naive
11862 # implementations.
11863 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11864 eval 'as_fn_append ()
11865 {
11866 eval $1+=\$2
11867 }'
11868 else
11869 as_fn_append ()
11870 {
11871 eval $1=\$$1\$2
11872 }
11873 fi # as_fn_append
11874
11875 # as_fn_arith ARG...
11876 # ------------------
11877 # Perform arithmetic evaluation on the ARGs, and store the result in the
11878 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11879 # must be portable across $(()) and expr.
11880 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11881 eval 'as_fn_arith ()
11882 {
11883 as_val=$(( $* ))
11884 }'
11885 else
11886 as_fn_arith ()
11887 {
11888 as_val=`expr "$@" || test $? -eq 1`
11889 }
11890 fi # as_fn_arith
11891
11892
11893 if expr a : '\(a\)' >/dev/null 2>&1 &&
11894 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11895 as_expr=expr
11896 else
11897 as_expr=false
11898 fi
11899
11900 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11901 as_basename=basename
11902 else
11903 as_basename=false
11904 fi
11905
11906 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11907 as_dirname=dirname
11908 else
11909 as_dirname=false
11910 fi
11911
11912 as_me=`$as_basename -- "$0" ||
11913 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11914 X"$0" : 'X\(//\)$' \| \
11915 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11916 $as_echo X/"$0" |
11917 sed '/^.*\/\([^/][^/]*\)\/*$/{
11918 s//\1/
11919 q
11920 }
11921 /^X\/\(\/\/\)$/{
11922 s//\1/
11923 q
11924 }
11925 /^X\/\(\/\).*/{
11926 s//\1/
11927 q
11928 }
11929 s/.*/./; q'`
11930
11931 # Avoid depending upon Character Ranges.
11932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11935 as_cr_digits='0123456789'
11936 as_cr_alnum=$as_cr_Letters$as_cr_digits
11937
11938 ECHO_C= ECHO_N= ECHO_T=
11939 case `echo -n x` in #(((((
11940 -n*)
11941 case `echo 'xy\c'` in
11942 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11943 xy) ECHO_C='\c';;
11944 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11945 ECHO_T=' ';;
11946 esac;;
11947 *)
11948 ECHO_N='-n';;
11949 esac
11950
11951 rm -f conf$$ conf$$.exe conf$$.file
11952 if test -d conf$$.dir; then
11953 rm -f conf$$.dir/conf$$.file
11954 else
11955 rm -f conf$$.dir
11956 mkdir conf$$.dir 2>/dev/null
11957 fi
11958 if (echo >conf$$.file) 2>/dev/null; then
11959 if ln -s conf$$.file conf$$ 2>/dev/null; then
11960 as_ln_s='ln -s'
11961 # ... but there are two gotchas:
11962 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11963 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11964 # In both cases, we have to default to `cp -p'.
11965 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11966 as_ln_s='cp -p'
11967 elif ln conf$$.file conf$$ 2>/dev/null; then
11968 as_ln_s=ln
11969 else
11970 as_ln_s='cp -p'
11971 fi
11972 else
11973 as_ln_s='cp -p'
11974 fi
11975 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11976 rmdir conf$$.dir 2>/dev/null
11977
11978
11979 # as_fn_mkdir_p
11980 # -------------
11981 # Create "$as_dir" as a directory, including parents if necessary.
11982 as_fn_mkdir_p ()
11983 {
11984
11985 case $as_dir in #(
11986 -*) as_dir=./$as_dir;;
11987 esac
11988 test -d "$as_dir" || eval $as_mkdir_p || {
11989 as_dirs=
11990 while :; do
11991 case $as_dir in #(
11992 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11993 *) as_qdir=$as_dir;;
11994 esac
11995 as_dirs="'$as_qdir' $as_dirs"
11996 as_dir=`$as_dirname -- "$as_dir" ||
11997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11998 X"$as_dir" : 'X\(//\)[^/]' \| \
11999 X"$as_dir" : 'X\(//\)$' \| \
12000 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12001 $as_echo X"$as_dir" |
12002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12003 s//\1/
12004 q
12005 }
12006 /^X\(\/\/\)[^/].*/{
12007 s//\1/
12008 q
12009 }
12010 /^X\(\/\/\)$/{
12011 s//\1/
12012 q
12013 }
12014 /^X\(\/\).*/{
12015 s//\1/
12016 q
12017 }
12018 s/.*/./; q'`
12019 test -d "$as_dir" && break
12020 done
12021 test -z "$as_dirs" || eval "mkdir $as_dirs"
12022 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12023
12024
12025 } # as_fn_mkdir_p
12026 if mkdir -p . 2>/dev/null; then
12027 as_mkdir_p='mkdir -p "$as_dir"'
12028 else
12029 test -d ./-p && rmdir ./-p
12030 as_mkdir_p=false
12031 fi
12032
12033 if test -x / >/dev/null 2>&1; then
12034 as_test_x='test -x'
12035 else
12036 if ls -dL / >/dev/null 2>&1; then
12037 as_ls_L_option=L
12038 else
12039 as_ls_L_option=
12040 fi
12041 as_test_x='
12042 eval sh -c '\''
12043 if test -d "$1"; then
12044 test -d "$1/.";
12045 else
12046 case $1 in #(
12047 -*)set "./$1";;
12048 esac;
12049 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12050 ???[sx]*):;;*)false;;esac;fi
12051 '\'' sh
12052 '
12053 fi
12054 as_executable_p=$as_test_x
12055
12056 # Sed expression to map a string onto a valid CPP name.
12057 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12058
12059 # Sed expression to map a string onto a valid variable name.
12060 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12061
12062
12063 exec 6>&1
12064 ## ----------------------------------- ##
12065 ## Main body of $CONFIG_STATUS script. ##
12066 ## ----------------------------------- ##
12067 _ASEOF
12068 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12069
12070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12071 # Save the log message, to keep $0 and so on meaningful, and to
12072 # report actual input values of CONFIG_FILES etc. instead of their
12073 # values after options handling.
12074 ac_log="
12075 This file was extended by libXcomposite $as_me 0.4.3, which was
12076 generated by GNU Autoconf 2.68. Invocation command line was
12077
12078 CONFIG_FILES = $CONFIG_FILES
12079 CONFIG_HEADERS = $CONFIG_HEADERS
12080 CONFIG_LINKS = $CONFIG_LINKS
12081 CONFIG_COMMANDS = $CONFIG_COMMANDS
12082 $ $0 $@
12083
12084 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12085 "
12086
12087 _ACEOF
12088
12089 case $ac_config_files in *"
12090 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12091 esac
12092
12093 case $ac_config_headers in *"
12094 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12095 esac
12096
12097
12098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12099 # Files that config.status was made for.
12100 config_files="$ac_config_files"
12101 config_headers="$ac_config_headers"
12102 config_commands="$ac_config_commands"
12103
12104 _ACEOF
12105
12106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107 ac_cs_usage="\
12108 \`$as_me' instantiates files and other configuration actions
12109 from templates according to the current configuration. Unless the files
12110 and actions are specified as TAGs, all are instantiated by default.
12111
12112 Usage: $0 [OPTION]... [TAG]...
12113
12114 -h, --help print this help, then exit
12115 -V, --version print version number and configuration settings, then exit
12116 --config print configuration, then exit
12117 -q, --quiet, --silent
12118 do not print progress messages
12119 -d, --debug don't remove temporary files
12120 --recheck update $as_me by reconfiguring in the same conditions
12121 --file=FILE[:TEMPLATE]
12122 instantiate the configuration file FILE
12123 --header=FILE[:TEMPLATE]
12124 instantiate the configuration header FILE
12125
12126 Configuration files:
12127 $config_files
12128
12129 Configuration headers:
12130 $config_headers
12131
12132 Configuration commands:
12133 $config_commands
12134
12135 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
12136
12137 _ACEOF
12138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12139 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12140 ac_cs_version="\\
12141 libXcomposite config.status 0.4.3
12142 configured by $0, generated by GNU Autoconf 2.68,
12143 with options \\"\$ac_cs_config\\"
12144
12145 Copyright (C) 2010 Free Software Foundation, Inc.
12146 This config.status script is free software; the Free Software Foundation
12147 gives unlimited permission to copy, distribute and modify it."
12148
12149 ac_pwd='$ac_pwd'
12150 srcdir='$srcdir'
12151 INSTALL='$INSTALL'
12152 MKDIR_P='$MKDIR_P'
12153 AWK='$AWK'
12154 test -n "\$AWK" || AWK=awk
12155 _ACEOF
12156
12157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12158 # The default lists apply if the user does not specify any file.
12159 ac_need_defaults=:
12160 while test $# != 0
12161 do
12162 case $1 in
12163 --*=?*)
12164 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12165 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12166 ac_shift=:
12167 ;;
12168 --*=)
12169 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12170 ac_optarg=
12171 ac_shift=:
12172 ;;
12173 *)
12174 ac_option=$1
12175 ac_optarg=$2
12176 ac_shift=shift
12177 ;;
12178 esac
12179
12180 case $ac_option in
12181 # Handling of the options.
12182 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12183 ac_cs_recheck=: ;;
12184 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12185 $as_echo "$ac_cs_version"; exit ;;
12186 --config | --confi | --conf | --con | --co | --c )
12187 $as_echo "$ac_cs_config"; exit ;;
12188 --debug | --debu | --deb | --de | --d | -d )
12189 debug=: ;;
12190 --file | --fil | --fi | --f )
12191 $ac_shift
12192 case $ac_optarg in
12193 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12194 '') as_fn_error $? "missing file argument" ;;
12195 esac
12196 as_fn_append CONFIG_FILES " '$ac_optarg'"
12197 ac_need_defaults=false;;
12198 --header | --heade | --head | --hea )
12199 $ac_shift
12200 case $ac_optarg in
12201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12202 esac
12203 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12204 ac_need_defaults=false;;
12205 --he | --h)
12206 # Conflict between --help and --header
12207 as_fn_error $? "ambiguous option: \`$1'
12208 Try \`$0 --help' for more information.";;
12209 --help | --hel | -h )
12210 $as_echo "$ac_cs_usage"; exit ;;
12211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12213 ac_cs_silent=: ;;
12214
12215 # This is an error.
12216 -*) as_fn_error $? "unrecognized option: \`$1'
12217 Try \`$0 --help' for more information." ;;
12218
12219 *) as_fn_append ac_config_targets " $1"
12220 ac_need_defaults=false ;;
12221
12222 esac
12223 shift
12224 done
12225
12226 ac_configure_extra_args=
12227
12228 if $ac_cs_silent; then
12229 exec 6>/dev/null
12230 ac_configure_extra_args="$ac_configure_extra_args --silent"
12231 fi
12232
12233 _ACEOF
12234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12235 if \$ac_cs_recheck; then
12236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12237 shift
12238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12239 CONFIG_SHELL='$SHELL'
12240 export CONFIG_SHELL
12241 exec "\$@"
12242 fi
12243
12244 _ACEOF
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 exec 5>>config.log
12247 {
12248 echo
12249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12250 ## Running $as_me. ##
12251 _ASBOX
12252 $as_echo "$ac_log"
12253 } >&5
12254
12255 _ACEOF
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257 #
12258 # INIT-COMMANDS
12259 #
12260 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12261
12262
12263 # The HP-UX ksh and POSIX shell print the target directory to stdout
12264 # if CDPATH is set.
12265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12266
12267 sed_quote_subst='$sed_quote_subst'
12268 double_quote_subst='$double_quote_subst'
12269 delay_variable_subst='$delay_variable_subst'
12270 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12271 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12272 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12273 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12274 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12275 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12276 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12277 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12278 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12279 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12280 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12281 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12282 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12283 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12284 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12285 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12286 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12287 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12288 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12289 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12290 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12291 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12292 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12293 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12294 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12295 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12296 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12297 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12298 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12299 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12300 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12301 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12302 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12303 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12304 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12305 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12306 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12307 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12308 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12309 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12310 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12311 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12312 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12313 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12314 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12315 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12316 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12317 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12318 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"`'
12319 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12320 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12321 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12322 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12323 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12324 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12325 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12326 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12327 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12328 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12329 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12330 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12331 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12332 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12333 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12334 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12335 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12336 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12337 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12338 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12339 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12340 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12341 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12342 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12343 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12344 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12345 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12346 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12347 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12348 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12349 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12350 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12351 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12352 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12353 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12354 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12355 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12356 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12357 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12358 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12359 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12360 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12361 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12362 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12363 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12364 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12365 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12366 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12367 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12368 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12369 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12370 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12371 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12372 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12373 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12374 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12375 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12376 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12377 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12378 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12379 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12380 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12381 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12382 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12383 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12384 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12385 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12386 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12387 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12388 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12389 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12390
12391 LTCC='$LTCC'
12392 LTCFLAGS='$LTCFLAGS'
12393 compiler='$compiler_DEFAULT'
12394
12395 # A function that is used when there is no print builtin or printf.
12396 func_fallback_echo ()
12397 {
12398 eval 'cat <<_LTECHO_EOF
12399 \$1
12400 _LTECHO_EOF'
12401 }
12402
12403 # Quote evaled strings.
12404 for var in SHELL \
12405 ECHO \
12406 SED \
12407 GREP \
12408 EGREP \
12409 FGREP \
12410 LD \
12411 NM \
12412 LN_S \
12413 lt_SP2NL \
12414 lt_NL2SP \
12415 reload_flag \
12416 OBJDUMP \
12417 deplibs_check_method \
12418 file_magic_cmd \
12419 AR \
12420 AR_FLAGS \
12421 STRIP \
12422 RANLIB \
12423 CC \
12424 CFLAGS \
12425 compiler \
12426 lt_cv_sys_global_symbol_pipe \
12427 lt_cv_sys_global_symbol_to_cdecl \
12428 lt_cv_sys_global_symbol_to_c_name_address \
12429 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12430 lt_prog_compiler_no_builtin_flag \
12431 lt_prog_compiler_wl \
12432 lt_prog_compiler_pic \
12433 lt_prog_compiler_static \
12434 lt_cv_prog_compiler_c_o \
12435 need_locks \
12436 DSYMUTIL \
12437 NMEDIT \
12438 LIPO \
12439 OTOOL \
12440 OTOOL64 \
12441 shrext_cmds \
12442 export_dynamic_flag_spec \
12443 whole_archive_flag_spec \
12444 compiler_needs_object \
12445 with_gnu_ld \
12446 allow_undefined_flag \
12447 no_undefined_flag \
12448 hardcode_libdir_flag_spec \
12449 hardcode_libdir_flag_spec_ld \
12450 hardcode_libdir_separator \
12451 fix_srcfile_path \
12452 exclude_expsyms \
12453 include_expsyms \
12454 file_list_spec \
12455 variables_saved_for_relink \
12456 libname_spec \
12457 library_names_spec \
12458 soname_spec \
12459 install_override_mode \
12460 finish_eval \
12461 old_striplib \
12462 striplib; do
12463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12464 *[\\\\\\\`\\"\\\$]*)
12465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12466 ;;
12467 *)
12468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12469 ;;
12470 esac
12471 done
12472
12473 # Double-quote double-evaled strings.
12474 for var in reload_cmds \
12475 old_postinstall_cmds \
12476 old_postuninstall_cmds \
12477 old_archive_cmds \
12478 extract_expsyms_cmds \
12479 old_archive_from_new_cmds \
12480 old_archive_from_expsyms_cmds \
12481 archive_cmds \
12482 archive_expsym_cmds \
12483 module_cmds \
12484 module_expsym_cmds \
12485 export_symbols_cmds \
12486 prelink_cmds \
12487 postinstall_cmds \
12488 postuninstall_cmds \
12489 finish_cmds \
12490 sys_lib_search_path_spec \
12491 sys_lib_dlsearch_path_spec; do
12492 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12493 *[\\\\\\\`\\"\\\$]*)
12494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12495 ;;
12496 *)
12497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12498 ;;
12499 esac
12500 done
12501
12502 ac_aux_dir='$ac_aux_dir'
12503 xsi_shell='$xsi_shell'
12504 lt_shell_append='$lt_shell_append'
12505
12506 # See if we are running on zsh, and set the options which allow our
12507 # commands through without removal of \ escapes INIT.
12508 if test -n "\${ZSH_VERSION+set}" ; then
12509 setopt NO_GLOB_SUBST
12510 fi
12511
12512
12513 PACKAGE='$PACKAGE'
12514 VERSION='$VERSION'
12515 TIMESTAMP='$TIMESTAMP'
12516 RM='$RM'
12517 ofile='$ofile'
12518
12519
12520
12521
12522 _ACEOF
12523
12524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525
12526 # Handling of arguments.
12527 for ac_config_target in $ac_config_targets
12528 do
12529 case $ac_config_target in
12530 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12532 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12533 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12534 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12535 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12536 "xcomposite.pc") CONFIG_FILES="$CONFIG_FILES xcomposite.pc" ;;
12537
12538 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12539 esac
12540 done
12541
12542
12543 # If the user did not use the arguments to specify the items to instantiate,
12544 # then the envvar interface is used. Set only those that are not.
12545 # We use the long form for the default assignment because of an extremely
12546 # bizarre bug on SunOS 4.1.3.
12547 if $ac_need_defaults; then
12548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12551 fi
12552
12553 # Have a temporary directory for convenience. Make it in the build tree
12554 # simply because there is no reason against having it here, and in addition,
12555 # creating and moving files from /tmp can sometimes cause problems.
12556 # Hook for its removal unless debugging.
12557 # Note that there is a small window in which the directory will not be cleaned:
12558 # after its creation but before its name has been assigned to `$tmp'.
12559 $debug ||
12560 {
12561 tmp= ac_tmp=
12562 trap 'exit_status=$?
12563 : "${ac_tmp:=$tmp}"
12564 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12565 ' 0
12566 trap 'as_fn_exit 1' 1 2 13 15
12567 }
12568 # Create a (secure) tmp directory for tmp files.
12569
12570 {
12571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12572 test -d "$tmp"
12573 } ||
12574 {
12575 tmp=./conf$$-$RANDOM
12576 (umask 077 && mkdir "$tmp")
12577 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12578 ac_tmp=$tmp
12579
12580 # Set up the scripts for CONFIG_FILES section.
12581 # No need to generate them if there are no CONFIG_FILES.
12582 # This happens for instance with `./config.status config.h'.
12583 if test -n "$CONFIG_FILES"; then
12584
12585
12586 ac_cr=`echo X | tr X '\015'`
12587 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12588 # But we know of no other shell where ac_cr would be empty at this
12589 # point, so we can use a bashism as a fallback.
12590 if test "x$ac_cr" = x; then
12591 eval ac_cr=\$\'\\r\'
12592 fi
12593 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12594 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12595 ac_cs_awk_cr='\\r'
12596 else
12597 ac_cs_awk_cr=$ac_cr
12598 fi
12599
12600 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12601 _ACEOF
12602
12603
12604 {
12605 echo "cat >conf$$subs.awk <<_ACEOF" &&
12606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12607 echo "_ACEOF"
12608 } >conf$$subs.sh ||
12609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12610 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12611 ac_delim='%!_!# '
12612 for ac_last_try in false false false false false :; do
12613 . ./conf$$subs.sh ||
12614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12615
12616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12617 if test $ac_delim_n = $ac_delim_num; then
12618 break
12619 elif $ac_last_try; then
12620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12621 else
12622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12623 fi
12624 done
12625 rm -f conf$$subs.sh
12626
12627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12628 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12629 _ACEOF
12630 sed -n '
12631 h
12632 s/^/S["/; s/!.*/"]=/
12633 p
12634 g
12635 s/^[^!]*!//
12636 :repl
12637 t repl
12638 s/'"$ac_delim"'$//
12639 t delim
12640 :nl
12641 h
12642 s/\(.\{148\}\)..*/\1/
12643 t more1
12644 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12645 p
12646 n
12647 b repl
12648 :more1
12649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12650 p
12651 g
12652 s/.\{148\}//
12653 t nl
12654 :delim
12655 h
12656 s/\(.\{148\}\)..*/\1/
12657 t more2
12658 s/["\\]/\\&/g; s/^/"/; s/$/"/
12659 p
12660 b
12661 :more2
12662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12663 p
12664 g
12665 s/.\{148\}//
12666 t delim
12667 ' <conf$$subs.awk | sed '
12668 /^[^""]/{
12669 N
12670 s/\n//
12671 }
12672 ' >>$CONFIG_STATUS || ac_write_fail=1
12673 rm -f conf$$subs.awk
12674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12675 _ACAWK
12676 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12677 for (key in S) S_is_set[key] = 1
12678 FS = ""
12679
12680 }
12681 {
12682 line = $ 0
12683 nfields = split(line, field, "@")
12684 substed = 0
12685 len = length(field[1])
12686 for (i = 2; i < nfields; i++) {
12687 key = field[i]
12688 keylen = length(key)
12689 if (S_is_set[key]) {
12690 value = S[key]
12691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12692 len += length(value) + length(field[++i])
12693 substed = 1
12694 } else
12695 len += 1 + keylen
12696 }
12697
12698 print line
12699 }
12700
12701 _ACAWK
12702 _ACEOF
12703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12704 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12706 else
12707 cat
12708 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12710 _ACEOF
12711
12712 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12713 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12714 # trailing colons and then remove the whole line if VPATH becomes empty
12715 # (actually we leave an empty line to preserve line numbers).
12716 if test "x$srcdir" = x.; then
12717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12718 h
12719 s///
12720 s/^/:/
12721 s/[ ]*$/:/
12722 s/:\$(srcdir):/:/g
12723 s/:\${srcdir}:/:/g
12724 s/:@srcdir@:/:/g
12725 s/^:*//
12726 s/:*$//
12727 x
12728 s/\(=[ ]*\).*/\1/
12729 G
12730 s/\n//
12731 s/^[^=]*=[ ]*$//
12732 }'
12733 fi
12734
12735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736 fi # test -n "$CONFIG_FILES"
12737
12738 # Set up the scripts for CONFIG_HEADERS section.
12739 # No need to generate them if there are no CONFIG_HEADERS.
12740 # This happens for instance with `./config.status Makefile'.
12741 if test -n "$CONFIG_HEADERS"; then
12742 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12743 BEGIN {
12744 _ACEOF
12745
12746 # Transform confdefs.h into an awk script `defines.awk', embedded as
12747 # here-document in config.status, that substitutes the proper values into
12748 # config.h.in to produce config.h.
12749
12750 # Create a delimiter string that does not exist in confdefs.h, to ease
12751 # handling of long lines.
12752 ac_delim='%!_!# '
12753 for ac_last_try in false false :; do
12754 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12755 if test -z "$ac_tt"; then
12756 break
12757 elif $ac_last_try; then
12758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12759 else
12760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12761 fi
12762 done
12763
12764 # For the awk script, D is an array of macro values keyed by name,
12765 # likewise P contains macro parameters if any. Preserve backslash
12766 # newline sequences.
12767
12768 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12769 sed -n '
12770 s/.\{148\}/&'"$ac_delim"'/g
12771 t rset
12772 :rset
12773 s/^[ ]*#[ ]*define[ ][ ]*/ /
12774 t def
12775 d
12776 :def
12777 s/\\$//
12778 t bsnl
12779 s/["\\]/\\&/g
12780 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12781 D["\1"]=" \3"/p
12782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12783 d
12784 :bsnl
12785 s/["\\]/\\&/g
12786 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12787 D["\1"]=" \3\\\\\\n"\\/p
12788 t cont
12789 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12790 t cont
12791 d
12792 :cont
12793 n
12794 s/.\{148\}/&'"$ac_delim"'/g
12795 t clear
12796 :clear
12797 s/\\$//
12798 t bsnlc
12799 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12800 d
12801 :bsnlc
12802 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12803 b cont
12804 ' <confdefs.h | sed '
12805 s/'"$ac_delim"'/"\\\
12806 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12807
12808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12809 for (key in D) D_is_set[key] = 1
12810 FS = ""
12811 }
12812 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12813 line = \$ 0
12814 split(line, arg, " ")
12815 if (arg[1] == "#") {
12816 defundef = arg[2]
12817 mac1 = arg[3]
12818 } else {
12819 defundef = substr(arg[1], 2)
12820 mac1 = arg[2]
12821 }
12822 split(mac1, mac2, "(") #)
12823 macro = mac2[1]
12824 prefix = substr(line, 1, index(line, defundef) - 1)
12825 if (D_is_set[macro]) {
12826 # Preserve the white space surrounding the "#".
12827 print prefix "define", macro P[macro] D[macro]
12828 next
12829 } else {
12830 # Replace #undef with comments. This is necessary, for example,
12831 # in the case of _POSIX_SOURCE, which is predefined and required
12832 # on some systems where configure will not decide to define it.
12833 if (defundef == "undef") {
12834 print "/*", prefix defundef, macro, "*/"
12835 next
12836 }
12837 }
12838 }
12839 { print }
12840 _ACAWK
12841 _ACEOF
12842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12844 fi # test -n "$CONFIG_HEADERS"
12845
12846
12847 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12848 shift
12849 for ac_tag
12850 do
12851 case $ac_tag in
12852 :[FHLC]) ac_mode=$ac_tag; continue;;
12853 esac
12854 case $ac_mode$ac_tag in
12855 :[FHL]*:*);;
12856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12857 :[FH]-) ac_tag=-:-;;
12858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12859 esac
12860 ac_save_IFS=$IFS
12861 IFS=:
12862 set x $ac_tag
12863 IFS=$ac_save_IFS
12864 shift
12865 ac_file=$1
12866 shift
12867
12868 case $ac_mode in
12869 :L) ac_source=$1;;
12870 :[FH])
12871 ac_file_inputs=
12872 for ac_f
12873 do
12874 case $ac_f in
12875 -) ac_f="$ac_tmp/stdin";;
12876 *) # Look for the file first in the build tree, then in the source tree
12877 # (if the path is not absolute). The absolute path cannot be DOS-style,
12878 # because $ac_f cannot contain `:'.
12879 test -f "$ac_f" ||
12880 case $ac_f in
12881 [\\/$]*) false;;
12882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12883 esac ||
12884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12885 esac
12886 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12887 as_fn_append ac_file_inputs " '$ac_f'"
12888 done
12889
12890 # Let's still pretend it is `configure' which instantiates (i.e., don't
12891 # use $as_me), people would be surprised to read:
12892 # /* config.h. Generated by config.status. */
12893 configure_input='Generated from '`
12894 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12895 `' by configure.'
12896 if test x"$ac_file" != x-; then
12897 configure_input="$ac_file. $configure_input"
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12899 $as_echo "$as_me: creating $ac_file" >&6;}
12900 fi
12901 # Neutralize special characters interpreted by sed in replacement strings.
12902 case $configure_input in #(
12903 *\&* | *\|* | *\\* )
12904 ac_sed_conf_input=`$as_echo "$configure_input" |
12905 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12906 *) ac_sed_conf_input=$configure_input;;
12907 esac
12908
12909 case $ac_tag in
12910 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12912 esac
12913 ;;
12914 esac
12915
12916 ac_dir=`$as_dirname -- "$ac_file" ||
12917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12918 X"$ac_file" : 'X\(//\)[^/]' \| \
12919 X"$ac_file" : 'X\(//\)$' \| \
12920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12921 $as_echo X"$ac_file" |
12922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12923 s//\1/
12924 q
12925 }
12926 /^X\(\/\/\)[^/].*/{
12927 s//\1/
12928 q
12929 }
12930 /^X\(\/\/\)$/{
12931 s//\1/
12932 q
12933 }
12934 /^X\(\/\).*/{
12935 s//\1/
12936 q
12937 }
12938 s/.*/./; q'`
12939 as_dir="$ac_dir"; as_fn_mkdir_p
12940 ac_builddir=.
12941
12942 case "$ac_dir" in
12943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12944 *)
12945 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12946 # A ".." for each directory in $ac_dir_suffix.
12947 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12948 case $ac_top_builddir_sub in
12949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12951 esac ;;
12952 esac
12953 ac_abs_top_builddir=$ac_pwd
12954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12955 # for backward compatibility:
12956 ac_top_builddir=$ac_top_build_prefix
12957
12958 case $srcdir in
12959 .) # We are building in place.
12960 ac_srcdir=.
12961 ac_top_srcdir=$ac_top_builddir_sub
12962 ac_abs_top_srcdir=$ac_pwd ;;
12963 [\\/]* | ?:[\\/]* ) # Absolute name.
12964 ac_srcdir=$srcdir$ac_dir_suffix;
12965 ac_top_srcdir=$srcdir
12966 ac_abs_top_srcdir=$srcdir ;;
12967 *) # Relative name.
12968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12969 ac_top_srcdir=$ac_top_build_prefix$srcdir
12970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12971 esac
12972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12973
12974
12975 case $ac_mode in
12976 :F)
12977 #
12978 # CONFIG_FILE
12979 #
12980
12981 case $INSTALL in
12982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12984 esac
12985 ac_MKDIR_P=$MKDIR_P
12986 case $MKDIR_P in
12987 [\\/$]* | ?:[\\/]* ) ;;
12988 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12989 esac
12990 _ACEOF
12991
12992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12993 # If the template does not know about datarootdir, expand it.
12994 # FIXME: This hack should be removed a few years after 2.60.
12995 ac_datarootdir_hack=; ac_datarootdir_seen=
12996 ac_sed_dataroot='
12997 /datarootdir/ {
12998 p
12999 q
13000 }
13001 /@datadir@/p
13002 /@docdir@/p
13003 /@infodir@/p
13004 /@localedir@/p
13005 /@mandir@/p'
13006 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13007 *datarootdir*) ac_datarootdir_seen=yes;;
13008 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13010 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13011 _ACEOF
13012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013 ac_datarootdir_hack='
13014 s&@datadir@&$datadir&g
13015 s&@docdir@&$docdir&g
13016 s&@infodir@&$infodir&g
13017 s&@localedir@&$localedir&g
13018 s&@mandir@&$mandir&g
13019 s&\\\${datarootdir}&$datarootdir&g' ;;
13020 esac
13021 _ACEOF
13022
13023 # Neutralize VPATH when `$srcdir' = `.'.
13024 # Shell code in configure.ac might set extrasub.
13025 # FIXME: do we really want to maintain this feature?
13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027 ac_sed_extra="$ac_vpsub
13028 $extrasub
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031 :t
13032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13033 s|@configure_input@|$ac_sed_conf_input|;t t
13034 s&@top_builddir@&$ac_top_builddir_sub&;t t
13035 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13036 s&@srcdir@&$ac_srcdir&;t t
13037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13038 s&@top_srcdir@&$ac_top_srcdir&;t t
13039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13040 s&@builddir@&$ac_builddir&;t t
13041 s&@abs_builddir@&$ac_abs_builddir&;t t
13042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13043 s&@INSTALL@&$ac_INSTALL&;t t
13044 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13045 $ac_datarootdir_hack
13046 "
13047 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13049
13050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13053 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13055 which seems to be undefined. Please make sure it is defined" >&5
13056 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13057 which seems to be undefined. Please make sure it is defined" >&2;}
13058
13059 rm -f "$ac_tmp/stdin"
13060 case $ac_file in
13061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13063 esac \
13064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13065 ;;
13066 :H)
13067 #
13068 # CONFIG_HEADER
13069 #
13070 if test x"$ac_file" != x-; then
13071 {
13072 $as_echo "/* $configure_input */" \
13073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13074 } >"$ac_tmp/config.h" \
13075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13078 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13079 else
13080 rm -f "$ac_file"
13081 mv "$ac_tmp/config.h" "$ac_file" \
13082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13083 fi
13084 else
13085 $as_echo "/* $configure_input */" \
13086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13087 || as_fn_error $? "could not create -" "$LINENO" 5
13088 fi
13089 # Compute "$ac_file"'s index in $config_headers.
13090 _am_arg="$ac_file"
13091 _am_stamp_count=1
13092 for _am_header in $config_headers :; do
13093 case $_am_header in
13094 $_am_arg | $_am_arg:* )
13095 break ;;
13096 * )
13097 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13098 esac
13099 done
13100 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13101 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13102 X"$_am_arg" : 'X\(//\)[^/]' \| \
13103 X"$_am_arg" : 'X\(//\)$' \| \
13104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13105 $as_echo X"$_am_arg" |
13106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13107 s//\1/
13108 q
13109 }
13110 /^X\(\/\/\)[^/].*/{
13111 s//\1/
13112 q
13113 }
13114 /^X\(\/\/\)$/{
13115 s//\1/
13116 q
13117 }
13118 /^X\(\/\).*/{
13119 s//\1/
13120 q
13121 }
13122 s/.*/./; q'`/stamp-h$_am_stamp_count
13123 ;;
13124
13125 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13126 $as_echo "$as_me: executing $ac_file commands" >&6;}
13127 ;;
13128 esac
13129
13130
13131 case $ac_file$ac_mode in
13132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13133 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13134 # are listed without --file. Let's play safe and only enable the eval
13135 # if we detect the quoting.
13136 case $CONFIG_FILES in
13137 *\'*) eval set x "$CONFIG_FILES" ;;
13138 *) set x $CONFIG_FILES ;;
13139 esac
13140 shift
13141 for mf
13142 do
13143 # Strip MF so we end up with the name of the file.
13144 mf=`echo "$mf" | sed -e 's/:.*$//'`
13145 # Check whether this is an Automake generated Makefile or not.
13146 # We used to match only the files named `Makefile.in', but
13147 # some people rename them; so instead we look at the file content.
13148 # Grep'ing the first line is not enough: some people post-process
13149 # each Makefile.in and add a new line on top of each file to say so.
13150 # Grep'ing the whole file is not good either: AIX grep has a line
13151 # limit of 2048, but all sed's we know have understand at least 4000.
13152 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13153 dirpart=`$as_dirname -- "$mf" ||
13154 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13155 X"$mf" : 'X\(//\)[^/]' \| \
13156 X"$mf" : 'X\(//\)$' \| \
13157 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13158 $as_echo X"$mf" |
13159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13160 s//\1/
13161 q
13162 }
13163 /^X\(\/\/\)[^/].*/{
13164 s//\1/
13165 q
13166 }
13167 /^X\(\/\/\)$/{
13168 s//\1/
13169 q
13170 }
13171 /^X\(\/\).*/{
13172 s//\1/
13173 q
13174 }
13175 s/.*/./; q'`
13176 else
13177 continue
13178 fi
13179 # Extract the definition of DEPDIR, am__include, and am__quote
13180 # from the Makefile without running `make'.
13181 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13182 test -z "$DEPDIR" && continue
13183 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13184 test -z "am__include" && continue
13185 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13186 # When using ansi2knr, U may be empty or an underscore; expand it
13187 U=`sed -n 's/^U = //p' < "$mf"`
13188 # Find all dependency output files, they are included files with
13189 # $(DEPDIR) in their names. We invoke sed twice because it is the
13190 # simplest approach to changing $(DEPDIR) to its actual value in the
13191 # expansion.
13192 for file in `sed -n "
13193 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13194 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13195 # Make sure the directory exists.
13196 test -f "$dirpart/$file" && continue
13197 fdir=`$as_dirname -- "$file" ||
13198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13199 X"$file" : 'X\(//\)[^/]' \| \
13200 X"$file" : 'X\(//\)$' \| \
13201 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13202 $as_echo X"$file" |
13203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13204 s//\1/
13205 q
13206 }
13207 /^X\(\/\/\)[^/].*/{
13208 s//\1/
13209 q
13210 }
13211 /^X\(\/\/\)$/{
13212 s//\1/
13213 q
13214 }
13215 /^X\(\/\).*/{
13216 s//\1/
13217 q
13218 }
13219 s/.*/./; q'`
13220 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13221 # echo "creating $dirpart/$file"
13222 echo '# dummy' > "$dirpart/$file"
13223 done
13224 done
13225 }
13226 ;;
13227 "libtool":C)
13228
13229 # See if we are running on zsh, and set the options which allow our
13230 # commands through without removal of \ escapes.
13231 if test -n "${ZSH_VERSION+set}" ; then
13232 setopt NO_GLOB_SUBST
13233 fi
13234
13235 cfgfile="${ofile}T"
13236 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13237 $RM "$cfgfile"
13238
13239 cat <<_LT_EOF >> "$cfgfile"
13240 #! $SHELL
13241
13242 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13243 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13245 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13246 #
13247 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13248 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13249 # Inc.
13250 # Written by Gordon Matzigkeit, 1996
13251 #
13252 # This file is part of GNU Libtool.
13253 #
13254 # GNU Libtool is free software; you can redistribute it and/or
13255 # modify it under the terms of the GNU General Public License as
13256 # published by the Free Software Foundation; either version 2 of
13257 # the License, or (at your option) any later version.
13258 #
13259 # As a special exception to the GNU General Public License,
13260 # if you distribute this file as part of a program or library that
13261 # is built using GNU Libtool, you may include this file under the
13262 # same distribution terms that you use for the rest of that program.
13263 #
13264 # GNU Libtool is distributed in the hope that it will be useful,
13265 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13267 # GNU General Public License for more details.
13268 #
13269 # You should have received a copy of the GNU General Public License
13270 # along with GNU Libtool; see the file COPYING. If not, a copy
13271 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13272 # obtained by writing to the Free Software Foundation, Inc.,
13273 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13274
13275
13276 # The names of the tagged configurations supported by this script.
13277 available_tags=""
13278
13279 # ### BEGIN LIBTOOL CONFIG
13280
13281 # Which release of libtool.m4 was used?
13282 macro_version=$macro_version
13283 macro_revision=$macro_revision
13284
13285 # Whether or not to build shared libraries.
13286 build_libtool_libs=$enable_shared
13287
13288 # Whether or not to build static libraries.
13289 build_old_libs=$enable_static
13290
13291 # What type of objects to build.
13292 pic_mode=$pic_mode
13293
13294 # Whether or not to optimize for fast installation.
13295 fast_install=$enable_fast_install
13296
13297 # Shell to use when invoking shell scripts.
13298 SHELL=$lt_SHELL
13299
13300 # An echo program that protects backslashes.
13301 ECHO=$lt_ECHO
13302
13303 # The host system.
13304 host_alias=$host_alias
13305 host=$host
13306 host_os=$host_os
13307
13308 # The build system.
13309 build_alias=$build_alias
13310 build=$build
13311 build_os=$build_os
13312
13313 # A sed program that does not truncate output.
13314 SED=$lt_SED
13315
13316 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13317 Xsed="\$SED -e 1s/^X//"
13318
13319 # A grep program that handles long lines.
13320 GREP=$lt_GREP
13321
13322 # An ERE matcher.
13323 EGREP=$lt_EGREP
13324
13325 # A literal string matcher.
13326 FGREP=$lt_FGREP
13327
13328 # A BSD- or MS-compatible name lister.
13329 NM=$lt_NM
13330
13331 # Whether we need soft or hard links.
13332 LN_S=$lt_LN_S
13333
13334 # What is the maximum length of a command?
13335 max_cmd_len=$max_cmd_len
13336
13337 # Object file suffix (normally "o").
13338 objext=$ac_objext
13339
13340 # Executable file suffix (normally "").
13341 exeext=$exeext
13342
13343 # whether the shell understands "unset".
13344 lt_unset=$lt_unset
13345
13346 # turn spaces into newlines.
13347 SP2NL=$lt_lt_SP2NL
13348
13349 # turn newlines into spaces.
13350 NL2SP=$lt_lt_NL2SP
13351
13352 # An object symbol dumper.
13353 OBJDUMP=$lt_OBJDUMP
13354
13355 # Method to check whether dependent libraries are shared objects.
13356 deplibs_check_method=$lt_deplibs_check_method
13357
13358 # Command to use when deplibs_check_method == "file_magic".
13359 file_magic_cmd=$lt_file_magic_cmd
13360
13361 # The archiver.
13362 AR=$lt_AR
13363 AR_FLAGS=$lt_AR_FLAGS
13364
13365 # A symbol stripping program.
13366 STRIP=$lt_STRIP
13367
13368 # Commands used to install an old-style archive.
13369 RANLIB=$lt_RANLIB
13370 old_postinstall_cmds=$lt_old_postinstall_cmds
13371 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13372
13373 # Whether to use a lock for old archive extraction.
13374 lock_old_archive_extraction=$lock_old_archive_extraction
13375
13376 # A C compiler.
13377 LTCC=$lt_CC
13378
13379 # LTCC compiler flags.
13380 LTCFLAGS=$lt_CFLAGS
13381
13382 # Take the output of nm and produce a listing of raw symbols and C names.
13383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13384
13385 # Transform the output of nm in a proper C declaration.
13386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13387
13388 # Transform the output of nm in a C name address pair.
13389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13390
13391 # Transform the output of nm in a C name address pair when lib prefix is needed.
13392 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13393
13394 # The name of the directory that contains temporary libtool files.
13395 objdir=$objdir
13396
13397 # Used to examine libraries when file_magic_cmd begins with "file".
13398 MAGIC_CMD=$MAGIC_CMD
13399
13400 # Must we lock files when doing compilation?
13401 need_locks=$lt_need_locks
13402
13403 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13404 DSYMUTIL=$lt_DSYMUTIL
13405
13406 # Tool to change global to local symbols on Mac OS X.
13407 NMEDIT=$lt_NMEDIT
13408
13409 # Tool to manipulate fat objects and archives on Mac OS X.
13410 LIPO=$lt_LIPO
13411
13412 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13413 OTOOL=$lt_OTOOL
13414
13415 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13416 OTOOL64=$lt_OTOOL64
13417
13418 # Old archive suffix (normally "a").
13419 libext=$libext
13420
13421 # Shared library suffix (normally ".so").
13422 shrext_cmds=$lt_shrext_cmds
13423
13424 # The commands to extract the exported symbol list from a shared archive.
13425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13426
13427 # Variables whose values should be saved in libtool wrapper scripts and
13428 # restored at link time.
13429 variables_saved_for_relink=$lt_variables_saved_for_relink
13430
13431 # Do we need the "lib" prefix for modules?
13432 need_lib_prefix=$need_lib_prefix
13433
13434 # Do we need a version for libraries?
13435 need_version=$need_version
13436
13437 # Library versioning type.
13438 version_type=$version_type
13439
13440 # Shared library runtime path variable.
13441 runpath_var=$runpath_var
13442
13443 # Shared library path variable.
13444 shlibpath_var=$shlibpath_var
13445
13446 # Is shlibpath searched before the hard-coded library search path?
13447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13448
13449 # Format of library name prefix.
13450 libname_spec=$lt_libname_spec
13451
13452 # List of archive names. First name is the real one, the rest are links.
13453 # The last name is the one that the linker finds with -lNAME
13454 library_names_spec=$lt_library_names_spec
13455
13456 # The coded name of the library, if different from the real name.
13457 soname_spec=$lt_soname_spec
13458
13459 # Permission mode override for installation of shared libraries.
13460 install_override_mode=$lt_install_override_mode
13461
13462 # Command to use after installation of a shared archive.
13463 postinstall_cmds=$lt_postinstall_cmds
13464
13465 # Command to use after uninstallation of a shared archive.
13466 postuninstall_cmds=$lt_postuninstall_cmds
13467
13468 # Commands used to finish a libtool library installation in a directory.
13469 finish_cmds=$lt_finish_cmds
13470
13471 # As "finish_cmds", except a single script fragment to be evaled but
13472 # not shown.
13473 finish_eval=$lt_finish_eval
13474
13475 # Whether we should hardcode library paths into libraries.
13476 hardcode_into_libs=$hardcode_into_libs
13477
13478 # Compile-time system search path for libraries.
13479 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13480
13481 # Run-time system search path for libraries.
13482 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13483
13484 # Whether dlopen is supported.
13485 dlopen_support=$enable_dlopen
13486
13487 # Whether dlopen of programs is supported.
13488 dlopen_self=$enable_dlopen_self
13489
13490 # Whether dlopen of statically linked programs is supported.
13491 dlopen_self_static=$enable_dlopen_self_static
13492
13493 # Commands to strip libraries.
13494 old_striplib=$lt_old_striplib
13495 striplib=$lt_striplib
13496
13497
13498 # The linker used to build libraries.
13499 LD=$lt_LD
13500
13501 # How to create reloadable object files.
13502 reload_flag=$lt_reload_flag
13503 reload_cmds=$lt_reload_cmds
13504
13505 # Commands used to build an old-style archive.
13506 old_archive_cmds=$lt_old_archive_cmds
13507
13508 # A language specific compiler.
13509 CC=$lt_compiler
13510
13511 # Is the compiler the GNU compiler?
13512 with_gcc=$GCC
13513
13514 # Compiler flag to turn off builtin functions.
13515 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13516
13517 # How to pass a linker flag through the compiler.
13518 wl=$lt_lt_prog_compiler_wl
13519
13520 # Additional compiler flags for building library objects.
13521 pic_flag=$lt_lt_prog_compiler_pic
13522
13523 # Compiler flag to prevent dynamic linking.
13524 link_static_flag=$lt_lt_prog_compiler_static
13525
13526 # Does compiler simultaneously support -c and -o options?
13527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13528
13529 # Whether or not to add -lc for building shared libraries.
13530 build_libtool_need_lc=$archive_cmds_need_lc
13531
13532 # Whether or not to disallow shared libs when runtime libs are static.
13533 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13534
13535 # Compiler flag to allow reflexive dlopens.
13536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13537
13538 # Compiler flag to generate shared objects directly from archives.
13539 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13540
13541 # Whether the compiler copes with passing no objects directly.
13542 compiler_needs_object=$lt_compiler_needs_object
13543
13544 # Create an old-style archive from a shared archive.
13545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13546
13547 # Create a temporary old-style archive to link instead of a shared archive.
13548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13549
13550 # Commands used to build a shared archive.
13551 archive_cmds=$lt_archive_cmds
13552 archive_expsym_cmds=$lt_archive_expsym_cmds
13553
13554 # Commands used to build a loadable module if different from building
13555 # a shared archive.
13556 module_cmds=$lt_module_cmds
13557 module_expsym_cmds=$lt_module_expsym_cmds
13558
13559 # Whether we are building with GNU ld or not.
13560 with_gnu_ld=$lt_with_gnu_ld
13561
13562 # Flag that allows shared libraries with undefined symbols to be built.
13563 allow_undefined_flag=$lt_allow_undefined_flag
13564
13565 # Flag that enforces no undefined symbols.
13566 no_undefined_flag=$lt_no_undefined_flag
13567
13568 # Flag to hardcode \$libdir into a binary during linking.
13569 # This must work even if \$libdir does not exist
13570 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13571
13572 # If ld is used when linking, flag to hardcode \$libdir into a binary
13573 # during linking. This must work even if \$libdir does not exist.
13574 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13575
13576 # Whether we need a single "-rpath" flag with a separated argument.
13577 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13578
13579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13580 # DIR into the resulting binary.
13581 hardcode_direct=$hardcode_direct
13582
13583 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13584 # DIR into the resulting binary and the resulting library dependency is
13585 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13586 # library is relocated.
13587 hardcode_direct_absolute=$hardcode_direct_absolute
13588
13589 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13590 # into the resulting binary.
13591 hardcode_minus_L=$hardcode_minus_L
13592
13593 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13594 # into the resulting binary.
13595 hardcode_shlibpath_var=$hardcode_shlibpath_var
13596
13597 # Set to "yes" if building a shared library automatically hardcodes DIR
13598 # into the library and all subsequent libraries and executables linked
13599 # against it.
13600 hardcode_automatic=$hardcode_automatic
13601
13602 # Set to yes if linker adds runtime paths of dependent libraries
13603 # to runtime path list.
13604 inherit_rpath=$inherit_rpath
13605
13606 # Whether libtool must link a program against all its dependency libraries.
13607 link_all_deplibs=$link_all_deplibs
13608
13609 # Fix the shell variable \$srcfile for the compiler.
13610 fix_srcfile_path=$lt_fix_srcfile_path
13611
13612 # Set to "yes" if exported symbols are required.
13613 always_export_symbols=$always_export_symbols
13614
13615 # The commands to list exported symbols.
13616 export_symbols_cmds=$lt_export_symbols_cmds
13617
13618 # Symbols that should not be listed in the preloaded symbols.
13619 exclude_expsyms=$lt_exclude_expsyms
13620
13621 # Symbols that must always be exported.
13622 include_expsyms=$lt_include_expsyms
13623
13624 # Commands necessary for linking programs (against libraries) with templates.
13625 prelink_cmds=$lt_prelink_cmds
13626
13627 # Specify filename containing input files.
13628 file_list_spec=$lt_file_list_spec
13629
13630 # How to hardcode a shared library path into an executable.
13631 hardcode_action=$hardcode_action
13632
13633 # ### END LIBTOOL CONFIG
13634
13635 _LT_EOF
13636
13637 case $host_os in
13638 aix3*)
13639 cat <<\_LT_EOF >> "$cfgfile"
13640 # AIX sometimes has problems with the GCC collect2 program. For some
13641 # reason, if we set the COLLECT_NAMES environment variable, the problems
13642 # vanish in a puff of smoke.
13643 if test "X${COLLECT_NAMES+set}" != Xset; then
13644 COLLECT_NAMES=
13645 export COLLECT_NAMES
13646 fi
13647 _LT_EOF
13648 ;;
13649 esac
13650
13651
13652 ltmain="$ac_aux_dir/ltmain.sh"
13653
13654
13655 # We use sed instead of cat because bash on DJGPP gets confused if
13656 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13657 # text mode, it properly converts lines to CR/LF. This bash problem
13658 # is reportedly fixed, but why not run on old versions too?
13659 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13660 || (rm -f "$cfgfile"; exit 1)
13661
13662 case $xsi_shell in
13663 yes)
13664 cat << \_LT_EOF >> "$cfgfile"
13665
13666 # func_dirname file append nondir_replacement
13667 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13668 # otherwise set result to NONDIR_REPLACEMENT.
13669 func_dirname ()
13670 {
13671 case ${1} in
13672 */*) func_dirname_result="${1%/*}${2}" ;;
13673 * ) func_dirname_result="${3}" ;;
13674 esac
13675 }
13676
13677 # func_basename file
13678 func_basename ()
13679 {
13680 func_basename_result="${1##*/}"
13681 }
13682
13683 # func_dirname_and_basename file append nondir_replacement
13684 # perform func_basename and func_dirname in a single function
13685 # call:
13686 # dirname: Compute the dirname of FILE. If nonempty,
13687 # add APPEND to the result, otherwise set result
13688 # to NONDIR_REPLACEMENT.
13689 # value returned in "$func_dirname_result"
13690 # basename: Compute filename of FILE.
13691 # value retuned in "$func_basename_result"
13692 # Implementation must be kept synchronized with func_dirname
13693 # and func_basename. For efficiency, we do not delegate to
13694 # those functions but instead duplicate the functionality here.
13695 func_dirname_and_basename ()
13696 {
13697 case ${1} in
13698 */*) func_dirname_result="${1%/*}${2}" ;;
13699 * ) func_dirname_result="${3}" ;;
13700 esac
13701 func_basename_result="${1##*/}"
13702 }
13703
13704 # func_stripname prefix suffix name
13705 # strip PREFIX and SUFFIX off of NAME.
13706 # PREFIX and SUFFIX must not contain globbing or regex special
13707 # characters, hashes, percent signs, but SUFFIX may contain a leading
13708 # dot (in which case that matches only a dot).
13709 func_stripname ()
13710 {
13711 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13712 # positional parameters, so assign one to ordinary parameter first.
13713 func_stripname_result=${3}
13714 func_stripname_result=${func_stripname_result#"${1}"}
13715 func_stripname_result=${func_stripname_result%"${2}"}
13716 }
13717
13718 # func_opt_split
13719 func_opt_split ()
13720 {
13721 func_opt_split_opt=${1%%=*}
13722 func_opt_split_arg=${1#*=}
13723 }
13724
13725 # func_lo2o object
13726 func_lo2o ()
13727 {
13728 case ${1} in
13729 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13730 *) func_lo2o_result=${1} ;;
13731 esac
13732 }
13733
13734 # func_xform libobj-or-source
13735 func_xform ()
13736 {
13737 func_xform_result=${1%.*}.lo
13738 }
13739
13740 # func_arith arithmetic-term...
13741 func_arith ()
13742 {
13743 func_arith_result=$(( $* ))
13744 }
13745
13746 # func_len string
13747 # STRING may not start with a hyphen.
13748 func_len ()
13749 {
13750 func_len_result=${#1}
13751 }
13752
13753 _LT_EOF
13754 ;;
13755 *) # Bourne compatible functions.
13756 cat << \_LT_EOF >> "$cfgfile"
13757
13758 # func_dirname file append nondir_replacement
13759 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13760 # otherwise set result to NONDIR_REPLACEMENT.
13761 func_dirname ()
13762 {
13763 # Extract subdirectory from the argument.
13764 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13765 if test "X$func_dirname_result" = "X${1}"; then
13766 func_dirname_result="${3}"
13767 else
13768 func_dirname_result="$func_dirname_result${2}"
13769 fi
13770 }
13771
13772 # func_basename file
13773 func_basename ()
13774 {
13775 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13776 }
13777
13778
13779 # func_stripname prefix suffix name
13780 # strip PREFIX and SUFFIX off of NAME.
13781 # PREFIX and SUFFIX must not contain globbing or regex special
13782 # characters, hashes, percent signs, but SUFFIX may contain a leading
13783 # dot (in which case that matches only a dot).
13784 # func_strip_suffix prefix name
13785 func_stripname ()
13786 {
13787 case ${2} in
13788 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13789 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13790 esac
13791 }
13792
13793 # sed scripts:
13794 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13795 my_sed_long_arg='1s/^-[^=]*=//'
13796
13797 # func_opt_split
13798 func_opt_split ()
13799 {
13800 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13801 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13802 }
13803
13804 # func_lo2o object
13805 func_lo2o ()
13806 {
13807 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13808 }
13809
13810 # func_xform libobj-or-source
13811 func_xform ()
13812 {
13813 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13814 }
13815
13816 # func_arith arithmetic-term...
13817 func_arith ()
13818 {
13819 func_arith_result=`expr "$@"`
13820 }
13821
13822 # func_len string
13823 # STRING may not start with a hyphen.
13824 func_len ()
13825 {
13826 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13827 }
13828
13829 _LT_EOF
13830 esac
13831
13832 case $lt_shell_append in
13833 yes)
13834 cat << \_LT_EOF >> "$cfgfile"
13835
13836 # func_append var value
13837 # Append VALUE to the end of shell variable VAR.
13838 func_append ()
13839 {
13840 eval "$1+=\$2"
13841 }
13842 _LT_EOF
13843 ;;
13844 *)
13845 cat << \_LT_EOF >> "$cfgfile"
13846
13847 # func_append var value
13848 # Append VALUE to the end of shell variable VAR.
13849 func_append ()
13850 {
13851 eval "$1=\$$1\$2"
13852 }
13853
13854 _LT_EOF
13855 ;;
13856 esac
13857
13858
13859 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13860 || (rm -f "$cfgfile"; exit 1)
13861
13862 mv -f "$cfgfile" "$ofile" ||
13863 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13864 chmod +x "$ofile"
13865
13866 ;;
13867
13868 esac
13869 done # for ac_tag
13870
13871
13872 as_fn_exit 0
13873 _ACEOF
13874 ac_clean_files=$ac_clean_files_save
13875
13876 test $ac_write_fail = 0 ||
13877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13878
13879
13880 # configure is writing to config.log, and then calls config.status.
13881 # config.status does its own redirection, appending to config.log.
13882 # Unfortunately, on DOS this fails, as config.log is still kept open
13883 # by configure, so config.status won't be able to write to it; its
13884 # output is simply discarded. So we exec the FD to /dev/null,
13885 # effectively closing config.log, so it can be properly (re)opened and
13886 # appended to by config.status. When coming back to configure, we
13887 # need to make the FD available again.
13888 if test "$no_create" != yes; then
13889 ac_cs_success=:
13890 ac_config_status_args=
13891 test "$silent" = yes &&
13892 ac_config_status_args="$ac_config_status_args --quiet"
13893 exec 5>/dev/null
13894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13895 exec 5>>config.log
13896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13897 # would make configure fail if this is the last instruction.
13898 $ac_cs_success || as_fn_exit 1
13899 fi
13900 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13902 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13903 fi
13904
13905
13906