Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for Guile-Reader 0.6.3.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and
279 $0: [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='Guile-Reader'
623 PACKAGE_TARNAME='guile-reader'
624 PACKAGE_VERSION='0.6.3'
625 PACKAGE_STRING='Guile-Reader 0.6.3'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL='https://nongnu.org/guile-reader/'
628
629 ac_unique_file="src/reader.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 guileobjectdir
666 guilemoduledir
667 HAVE_GUILE2_FALSE
668 HAVE_GUILE2_TRUE
669 GUILE_EXTENSION
670 GUILE_SITE_CCACHE
671 GUILE_SITE
672 guile_snarf
673 GUILE_LDFLAGS
674 GUILE_LTLIBS
675 CPP
676 GUILE_LIBS
677 GUILE_CFLAGS
678 GUILE_TOOLS
679 GUILE_CONFIG
680 GUILD
681 GUILE
682 GUILE_EFFECTIVE_VERSION
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 GPERF
687 LIBOBJS
688 GCC_CFLAGS
689 LT_SYS_LIBRARY_PATH
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 MANIFEST_TOOL
696 RANLIB
697 DLLTOOL
698 OBJDUMP
699 FILECMD
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 ac_ct_AR
718 AR
719 SED
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__include
728 DEPDIR
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 AM_BACKSLASH
737 AM_DEFAULT_VERBOSITY
738 AM_DEFAULT_V
739 AM_V
740 CSCOPE
741 ETAGS
742 CTAGS
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 target_alias
767 host_alias
768 build_alias
769 LIBS
770 ECHO_T
771 ECHO_N
772 ECHO_C
773 DEFS
774 mandir
775 localedir
776 libdir
777 psdir
778 pdfdir
779 dvidir
780 htmldir
781 infodir
782 docdir
783 oldincludedir
784 includedir
785 runstatedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_URL
798 PACKAGE_BUGREPORT
799 PACKAGE_STRING
800 PACKAGE_VERSION
801 PACKAGE_TARNAME
802 PACKAGE_NAME
803 PATH_SEPARATOR
804 SHELL
805 am__quote'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_silent_rules
810 with_guilemoduledir
811 enable_dependency_tracking
812 enable_static
813 enable_shared
814 with_pic
815 enable_fast_install
816 with_aix_soname
817 with_gnu_ld
818 with_sysroot
819 enable_libtool_lock
820 enable_rpath
821 '
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 LT_SYS_LIBRARY_PATH
831 PKG_CONFIG
832 PKG_CONFIG_PATH
833 PKG_CONFIG_LIBDIR
834 GUILE_CFLAGS
835 GUILE_LIBS
836 CPP'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: \`$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -runstatedir | --runstatedir | --runstatedi | --runstated \
1127 | --runstate | --runstat | --runsta | --runst | --runs \
1128 | --run | --ru | --r)
1129 ac_prev=runstatedir ;;
1130 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132 | --run=* | --ru=* | --r=*)
1133 runstatedir=$ac_optarg ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: \`$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: \`$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir runstatedir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 printf "%s\n" X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures Guile-Reader 0.6.3 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/guile-reader]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of Guile-Reader 0.6.3:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-dependency-tracking
1467 do not reject slow dependency extractors
1468 --disable-dependency-tracking
1469 speeds up one-time build
1470 --enable-static[=PKGS] build static libraries [default=no]
1471 --enable-shared[=PKGS] build shared libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --disable-rpath do not hardcode runtime library paths
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-guilemoduledir=DIR
1481 install Guile modules under DIR
1482 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1483 both]
1484 --with-aix-soname=aix|svr4|both
1485 shared library versioning (aka "SONAME") variant to
1486 provide on AIX, [default=aix].
1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1488 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1489 compiler's sysroot if not specified).
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
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 LT_SYS_LIBRARY_PATH
1501 User-defined run-time library search path.
1502 PKG_CONFIG path to pkg-config utility
1503 PKG_CONFIG_PATH
1504 directories to add to pkg-config's search path
1505 PKG_CONFIG_LIBDIR
1506 path overriding pkg-config's built-in search path
1507 GUILE_CFLAGS
1508 C compiler flags for GUILE, overriding pkg-config
1509 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1510 CPP C preprocessor
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <[email protected]>.
1516 Guile-Reader home page: <https://nongnu.org/guile-reader/>.
1517 _ACEOF
1518 ac_status=$?
1519 fi
1520
1521 if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
1527 ac_builddir=.
1528
1529 case "$ac_dir" in
1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *)
1532 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1533 # A ".." for each directory in $ac_dir_suffix.
1534 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539 esac
1540 ac_abs_top_builddir=$ac_pwd
1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542 # for backward compatibility:
1543 ac_top_builddir=$ac_top_build_prefix
1544
1545 case $srcdir in
1546 .) # We are building in place.
1547 ac_srcdir=.
1548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
1551 ac_srcdir=$srcdir$ac_dir_suffix;
1552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 esac
1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560
1561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for configure.gnu first; this name is used for a wrapper for
1563 # Metaconfig's "Configure" on case-insensitive file systems.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 Guile-Reader configure 0.6.3
1581 generated by GNU Autoconf 2.71
1582
1583 Copyright (C) 2021 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest.beam
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 printf "%s\n" "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext
1620 then :
1621 ac_retval=0
1622 else $as_nop
1623 printf "%s\n" "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 printf "%s\n" "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }
1662 then :
1663 ac_retval=0
1664 else $as_nop
1665 printf "%s\n" "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_link
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 printf %s "checking for $2... " >&6; }
1689 if eval test \${$3+y}
1690 then :
1691 printf %s "(cached) " >&6
1692 else $as_nop
1693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1694 /* end confdefs.h. */
1695 $4
1696 #include <$2>
1697 _ACEOF
1698 if ac_fn_c_try_compile "$LINENO"
1699 then :
1700 eval "$3=yes"
1701 else $as_nop
1702 eval "$3=no"
1703 fi
1704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1705 fi
1706 eval ac_res=\$$3
1707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 printf "%s\n" "$ac_res" >&6; }
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710
1711 } # ac_fn_c_check_header_compile
1712
1713 # ac_fn_c_check_func LINENO FUNC VAR
1714 # ----------------------------------
1715 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1716 ac_fn_c_check_func ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 printf %s "checking for $2... " >&6; }
1721 if eval test \${$3+y}
1722 then :
1723 printf %s "(cached) " >&6
1724 else $as_nop
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1730
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below. */
1733
1734 #include <limits.h>
1735 #undef $2
1736
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 ();
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1750
1751 int
1752 main (void)
1753 {
1754 return $2 ();
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"
1760 then :
1761 eval "$3=yes"
1762 else $as_nop
1763 eval "$3=no"
1764 fi
1765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1766 conftest$ac_exeext conftest.$ac_ext
1767 fi
1768 eval ac_res=\$$3
1769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 printf "%s\n" "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_func
1774
1775 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1776 # -------------------------------------------
1777 # Tests whether TYPE exists after having included INCLUDES, setting cache
1778 # variable VAR accordingly.
1779 ac_fn_c_check_type ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 printf %s "checking for $2... " >&6; }
1784 if eval test \${$3+y}
1785 then :
1786 printf %s "(cached) " >&6
1787 else $as_nop
1788 eval "$3=no"
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 int
1793 main (void)
1794 {
1795 if (sizeof ($2))
1796 return 0;
1797 ;
1798 return 0;
1799 }
1800 _ACEOF
1801 if ac_fn_c_try_compile "$LINENO"
1802 then :
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1805 $4
1806 int
1807 main (void)
1808 {
1809 if (sizeof (($2)))
1810 return 0;
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_compile "$LINENO"
1816 then :
1817
1818 else $as_nop
1819 eval "$3=yes"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 printf "%s\n" "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830 } # ac_fn_c_check_type
1831
1832 # ac_fn_c_try_run LINENO
1833 # ----------------------
1834 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1835 # executables *can* be run.
1836 ac_fn_c_try_run ()
1837 {
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_link"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 printf "%s\n" "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>&5
1847 ac_status=$?
1848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1850 { { case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 printf "%s\n" "$ac_try_echo"; } >&5
1856 (eval "$ac_try") 2>&5
1857 ac_status=$?
1858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; }; }
1860 then :
1861 ac_retval=0
1862 else $as_nop
1863 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1864 printf "%s\n" "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867 ac_retval=$ac_status
1868 fi
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1872
1873 } # ac_fn_c_try_run
1874
1875 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1876 # --------------------------------------------
1877 # Tries to find the compile-time value of EXPR in a program that includes
1878 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1879 # computed
1880 ac_fn_c_compute_int ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if test "$cross_compiling" = yes; then
1884 # Depending upon the size, compute the lo and hi bounds.
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 $4
1888 int
1889 main (void)
1890 {
1891 static int test_array [1 - 2 * !(($2) >= 0)];
1892 test_array [0] = 0;
1893 return test_array [0];
1894
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"
1900 then :
1901 ac_lo=0 ac_mid=0
1902 while :; do
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main (void)
1908 {
1909 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1910 test_array [0] = 0;
1911 return test_array [0];
1912
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"
1918 then :
1919 ac_hi=$ac_mid; break
1920 else $as_nop
1921 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1922 if test $ac_lo -le $ac_mid; then
1923 ac_lo= ac_hi=
1924 break
1925 fi
1926 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1929 done
1930 else $as_nop
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 int
1935 main (void)
1936 {
1937 static int test_array [1 - 2 * !(($2) < 0)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"
1946 then :
1947 ac_hi=-1 ac_mid=-1
1948 while :; do
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 int
1953 main (void)
1954 {
1955 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1956 test_array [0] = 0;
1957 return test_array [0];
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"
1964 then :
1965 ac_lo=$ac_mid; break
1966 else $as_nop
1967 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1968 if test $ac_mid -le $ac_hi; then
1969 ac_lo= ac_hi=
1970 break
1971 fi
1972 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1975 done
1976 else $as_nop
1977 ac_lo= ac_hi=
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1980 fi
1981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1982 # Binary search between lo and hi bounds.
1983 while test "x$ac_lo" != "x$ac_hi"; do
1984 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 int
1989 main (void)
1990 {
1991 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1992 test_array [0] = 0;
1993 return test_array [0];
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"
2000 then :
2001 ac_hi=$ac_mid
2002 else $as_nop
2003 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2006 done
2007 case $ac_lo in #((
2008 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2009 '') ac_retval=1 ;;
2010 esac
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $4
2015 static long int longval (void) { return $2; }
2016 static unsigned long int ulongval (void) { return $2; }
2017 #include <stdio.h>
2018 #include <stdlib.h>
2019 int
2020 main (void)
2021 {
2022
2023 FILE *f = fopen ("conftest.val", "w");
2024 if (! f)
2025 return 1;
2026 if (($2) < 0)
2027 {
2028 long int i = longval ();
2029 if (i != ($2))
2030 return 1;
2031 fprintf (f, "%ld", i);
2032 }
2033 else
2034 {
2035 unsigned long int i = ulongval ();
2036 if (i != ($2))
2037 return 1;
2038 fprintf (f, "%lu", i);
2039 }
2040 /* Do not output a trailing newline, as this causes \r\n confusion
2041 on some platforms. */
2042 return ferror (f) || fclose (f) != 0;
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_run "$LINENO"
2049 then :
2050 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2051 else $as_nop
2052 ac_retval=1
2053 fi
2054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2055 conftest.$ac_objext conftest.beam conftest.$ac_ext
2056 rm -f conftest.val
2057
2058 fi
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 as_fn_set_status $ac_retval
2061
2062 } # ac_fn_c_compute_int
2063
2064 # ac_fn_c_try_cpp LINENO
2065 # ----------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_c_try_cpp ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if { { ac_try="$ac_cpp conftest.$ac_ext"
2071 case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 printf "%s\n" "$ac_try_echo"; } >&5
2077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2078 ac_status=$?
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2083 fi
2084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } > conftest.i && {
2086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2087 test ! -s conftest.err
2088 }
2089 then :
2090 ac_retval=0
2091 else $as_nop
2092 printf "%s\n" "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 ac_retval=1
2096 fi
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 as_fn_set_status $ac_retval
2099
2100 } # ac_fn_c_try_cpp
2101 ac_configure_args_raw=
2102 for ac_arg
2103 do
2104 case $ac_arg in
2105 *\'*)
2106 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 esac
2108 as_fn_append ac_configure_args_raw " '$ac_arg'"
2109 done
2110
2111 case $ac_configure_args_raw in
2112 *$as_nl*)
2113 ac_safe_unquote= ;;
2114 *)
2115 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2116 ac_unsafe_a="$ac_unsafe_z#~"
2117 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2118 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2119 esac
2120
2121 cat >config.log <<_ACEOF
2122 This file contains any messages produced by compilers while
2123 running configure, to aid debugging if configure makes a mistake.
2124
2125 It was created by Guile-Reader $as_me 0.6.3, which was
2126 generated by GNU Autoconf 2.71. Invocation command line was
2127
2128 $ $0$ac_configure_args_raw
2129
2130 _ACEOF
2131 exec 5>>config.log
2132 {
2133 cat <<_ASUNAME
2134 ## --------- ##
2135 ## Platform. ##
2136 ## --------- ##
2137
2138 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143
2144 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2146
2147 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2148 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2149 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2151 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2152 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2153 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2154
2155 _ASUNAME
2156
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160 IFS=$as_save_IFS
2161 case $as_dir in #(((
2162 '') as_dir=./ ;;
2163 */) ;;
2164 *) as_dir=$as_dir/ ;;
2165 esac
2166 printf "%s\n" "PATH: $as_dir"
2167 done
2168 IFS=$as_save_IFS
2169
2170 } >&5
2171
2172 cat >&5 <<_ACEOF
2173
2174
2175 ## ----------- ##
2176 ## Core tests. ##
2177 ## ----------- ##
2178
2179 _ACEOF
2180
2181
2182 # Keep a trace of the command line.
2183 # Strip out --no-create and --no-recursion so they do not pile up.
2184 # Strip out --silent because we don't want to record it for future runs.
2185 # Also quote any args containing shell meta-characters.
2186 # Make two passes to allow for proper duplicate-argument suppression.
2187 ac_configure_args=
2188 ac_configure_args0=
2189 ac_configure_args1=
2190 ac_must_keep_next=false
2191 for ac_pass in 1 2
2192 do
2193 for ac_arg
2194 do
2195 case $ac_arg in
2196 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2198 | -silent | --silent | --silen | --sile | --sil)
2199 continue ;;
2200 *\'*)
2201 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 esac
2203 case $ac_pass in
2204 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205 2)
2206 as_fn_append ac_configure_args1 " '$ac_arg'"
2207 if test $ac_must_keep_next = true; then
2208 ac_must_keep_next=false # Got value, back to normal.
2209 else
2210 case $ac_arg in
2211 *=* | --config-cache | -C | -disable-* | --disable-* \
2212 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2213 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2214 | -with-* | --with-* | -without-* | --without-* | --x)
2215 case "$ac_configure_args0 " in
2216 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2217 esac
2218 ;;
2219 -* ) ac_must_keep_next=true ;;
2220 esac
2221 fi
2222 as_fn_append ac_configure_args " '$ac_arg'"
2223 ;;
2224 esac
2225 done
2226 done
2227 { ac_configure_args0=; unset ac_configure_args0;}
2228 { ac_configure_args1=; unset ac_configure_args1;}
2229
2230 # When interrupted or exit'd, cleanup temporary files, and complete
2231 # config.log. We remove comments because anyway the quotes in there
2232 # would cause problems or look ugly.
2233 # WARNING: Use '\'' to represent an apostrophe within the trap.
2234 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2235 trap 'exit_status=$?
2236 # Sanitize IFS.
2237 IFS=" "" $as_nl"
2238 # Save into config.log some information that might help in debugging.
2239 {
2240 echo
2241
2242 printf "%s\n" "## ---------------- ##
2243 ## Cache variables. ##
2244 ## ---------------- ##"
2245 echo
2246 # The following way of writing the cache mishandles newlines in values,
2247 (
2248 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in #(
2251 *${as_nl}*)
2252 case $ac_var in #(
2253 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2254 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2255 esac
2256 case $ac_var in #(
2257 _ | IFS | as_nl) ;; #(
2258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2259 *) { eval $ac_var=; unset $ac_var;} ;;
2260 esac ;;
2261 esac
2262 done
2263 (set) 2>&1 |
2264 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2265 *${as_nl}ac_space=\ *)
2266 sed -n \
2267 "s/'\''/'\''\\\\'\'''\''/g;
2268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2269 ;; #(
2270 *)
2271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2272 ;;
2273 esac |
2274 sort
2275 )
2276 echo
2277
2278 printf "%s\n" "## ----------------- ##
2279 ## Output variables. ##
2280 ## ----------------- ##"
2281 echo
2282 for ac_var in $ac_subst_vars
2283 do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 esac
2288 printf "%s\n" "$ac_var='\''$ac_val'\''"
2289 done | sort
2290 echo
2291
2292 if test -n "$ac_subst_files"; then
2293 printf "%s\n" "## ------------------- ##
2294 ## File substitutions. ##
2295 ## ------------------- ##"
2296 echo
2297 for ac_var in $ac_subst_files
2298 do
2299 eval ac_val=\$$ac_var
2300 case $ac_val in
2301 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302 esac
2303 printf "%s\n" "$ac_var='\''$ac_val'\''"
2304 done | sort
2305 echo
2306 fi
2307
2308 if test -s confdefs.h; then
2309 printf "%s\n" "## ----------- ##
2310 ## confdefs.h. ##
2311 ## ----------- ##"
2312 echo
2313 cat confdefs.h
2314 echo
2315 fi
2316 test "$ac_signal" != 0 &&
2317 printf "%s\n" "$as_me: caught signal $ac_signal"
2318 printf "%s\n" "$as_me: exit $exit_status"
2319 } >&5
2320 rm -f core *.core core.conftest.* &&
2321 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2322 exit $exit_status
2323 ' 0
2324 for ac_signal in 1 2 13 15; do
2325 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2326 done
2327 ac_signal=0
2328
2329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2330 rm -f -r conftest* confdefs.h
2331
2332 printf "%s\n" "/* confdefs.h */" > confdefs.h
2333
2334 # Predefined preprocessor variables.
2335
2336 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2337
2338 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2339
2340 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2341
2342 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2343
2344 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2345
2346 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2347
2348
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 if test -n "$CONFIG_SITE"; then
2352 ac_site_files="$CONFIG_SITE"
2353 elif test "x$prefix" != xNONE; then
2354 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2355 else
2356 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2357 fi
2358
2359 for ac_site_file in $ac_site_files
2360 do
2361 case $ac_site_file in #(
2362 */*) :
2363 ;; #(
2364 *) :
2365 ac_site_file=./$ac_site_file ;;
2366 esac
2367 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2370 sed 's/^/| /' "$ac_site_file" >&5
2371 . "$ac_site_file" \
2372 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $? "failed to load site script $ac_site_file
2375 See \`config.log' for more details" "$LINENO" 5; }
2376 fi
2377 done
2378
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special files
2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2389 fi
2390 else
2391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2393 >$cache_file
2394 fi
2395
2396 # Test code for whether the C compiler supports C89 (global declarations)
2397 ac_c_conftest_c89_globals='
2398 /* Does the compiler advertise C89 conformance?
2399 Do not test the value of __STDC__, because some compilers set it to 0
2400 while being otherwise adequately conformant. */
2401 #if !defined __STDC__
2402 # error "Compiler does not advertise C89 conformance"
2403 #endif
2404
2405 #include <stddef.h>
2406 #include <stdarg.h>
2407 struct stat;
2408 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2409 struct buf { int x; };
2410 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2411 static char *e (p, i)
2412 char **p;
2413 int i;
2414 {
2415 return p[i];
2416 }
2417 static char *f (char * (*g) (char **, int), char **p, ...)
2418 {
2419 char *s;
2420 va_list v;
2421 va_start (v,p);
2422 s = g (p, va_arg (v,int));
2423 va_end (v);
2424 return s;
2425 }
2426
2427 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2428 function prototypes and stuff, but not \xHH hex character constants.
2429 These do not provoke an error unfortunately, instead are silently treated
2430 as an "x". The following induces an error, until -std is added to get
2431 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2432 array size at least. It is necessary to write \x00 == 0 to get something
2433 that is true only with -std. */
2434 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2435
2436 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2437 inside strings and character constants. */
2438 #define FOO(x) '\''x'\''
2439 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2440
2441 int test (int i, double x);
2442 struct s1 {int (*f) (int a);};
2443 struct s2 {int (*f) (double a);};
2444 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2445 int, int);'
2446
2447 # Test code for whether the C compiler supports C89 (body of main).
2448 ac_c_conftest_c89_main='
2449 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2450 '
2451
2452 # Test code for whether the C compiler supports C99 (global declarations)
2453 ac_c_conftest_c99_globals='
2454 // Does the compiler advertise C99 conformance?
2455 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2456 # error "Compiler does not advertise C99 conformance"
2457 #endif
2458
2459 #include <stdbool.h>
2460 extern int puts (const char *);
2461 extern int printf (const char *, ...);
2462 extern int dprintf (int, const char *, ...);
2463 extern void *malloc (size_t);
2464
2465 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2466 // dprintf is used instead of fprintf to avoid needing to declare
2467 // FILE and stderr.
2468 #define debug(...) dprintf (2, __VA_ARGS__)
2469 #define showlist(...) puts (#__VA_ARGS__)
2470 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2471 static void
2472 test_varargs_macros (void)
2473 {
2474 int x = 1234;
2475 int y = 5678;
2476 debug ("Flag");
2477 debug ("X = %d\n", x);
2478 showlist (The first, second, and third items.);
2479 report (x>y, "x is %d but y is %d", x, y);
2480 }
2481
2482 // Check long long types.
2483 #define BIG64 18446744073709551615ull
2484 #define BIG32 4294967295ul
2485 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2486 #if !BIG_OK
2487 #error "your preprocessor is broken"
2488 #endif
2489 #if BIG_OK
2490 #else
2491 #error "your preprocessor is broken"
2492 #endif
2493 static long long int bignum = -9223372036854775807LL;
2494 static unsigned long long int ubignum = BIG64;
2495
2496 struct incomplete_array
2497 {
2498 int datasize;
2499 double data[];
2500 };
2501
2502 struct named_init {
2503 int number;
2504 const wchar_t *name;
2505 double average;
2506 };
2507
2508 typedef const char *ccp;
2509
2510 static inline int
2511 test_restrict (ccp restrict text)
2512 {
2513 // See if C++-style comments work.
2514 // Iterate through items via the restricted pointer.
2515 // Also check for declarations in for loops.
2516 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2517 continue;
2518 return 0;
2519 }
2520
2521 // Check varargs and va_copy.
2522 static bool
2523 test_varargs (const char *format, ...)
2524 {
2525 va_list args;
2526 va_start (args, format);
2527 va_list args_copy;
2528 va_copy (args_copy, args);
2529
2530 const char *str = "";
2531 int number = 0;
2532 float fnumber = 0;
2533
2534 while (*format)
2535 {
2536 switch (*format++)
2537 {
2538 case '\''s'\'': // string
2539 str = va_arg (args_copy, const char *);
2540 break;
2541 case '\''d'\'': // int
2542 number = va_arg (args_copy, int);
2543 break;
2544 case '\''f'\'': // float
2545 fnumber = va_arg (args_copy, double);
2546 break;
2547 default:
2548 break;
2549 }
2550 }
2551 va_end (args_copy);
2552 va_end (args);
2553
2554 return *str && number && fnumber;
2555 }
2556 '
2557
2558 # Test code for whether the C compiler supports C99 (body of main).
2559 ac_c_conftest_c99_main='
2560 // Check bool.
2561 _Bool success = false;
2562 success |= (argc != 0);
2563
2564 // Check restrict.
2565 if (test_restrict ("String literal") == 0)
2566 success = true;
2567 char *restrict newvar = "Another string";
2568
2569 // Check varargs.
2570 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2571 test_varargs_macros ();
2572
2573 // Check flexible array members.
2574 struct incomplete_array *ia =
2575 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2576 ia->datasize = 10;
2577 for (int i = 0; i < ia->datasize; ++i)
2578 ia->data[i] = i * 1.234;
2579
2580 // Check named initializers.
2581 struct named_init ni = {
2582 .number = 34,
2583 .name = L"Test wide string",
2584 .average = 543.34343,
2585 };
2586
2587 ni.number = 58;
2588
2589 int dynamic_array[ni.number];
2590 dynamic_array[0] = argv[0][0];
2591 dynamic_array[ni.number - 1] = 543;
2592
2593 // work around unused variable warnings
2594 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2595 || dynamic_array[ni.number - 1] != 543);
2596 '
2597
2598 # Test code for whether the C compiler supports C11 (global declarations)
2599 ac_c_conftest_c11_globals='
2600 // Does the compiler advertise C11 conformance?
2601 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2602 # error "Compiler does not advertise C11 conformance"
2603 #endif
2604
2605 // Check _Alignas.
2606 char _Alignas (double) aligned_as_double;
2607 char _Alignas (0) no_special_alignment;
2608 extern char aligned_as_int;
2609 char _Alignas (0) _Alignas (int) aligned_as_int;
2610
2611 // Check _Alignof.
2612 enum
2613 {
2614 int_alignment = _Alignof (int),
2615 int_array_alignment = _Alignof (int[100]),
2616 char_alignment = _Alignof (char)
2617 };
2618 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2619
2620 // Check _Noreturn.
2621 int _Noreturn does_not_return (void) { for (;;) continue; }
2622
2623 // Check _Static_assert.
2624 struct test_static_assert
2625 {
2626 int x;
2627 _Static_assert (sizeof (int) <= sizeof (long int),
2628 "_Static_assert does not work in struct");
2629 long int y;
2630 };
2631
2632 // Check UTF-8 literals.
2633 #define u8 syntax error!
2634 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2635
2636 // Check duplicate typedefs.
2637 typedef long *long_ptr;
2638 typedef long int *long_ptr;
2639 typedef long_ptr long_ptr;
2640
2641 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2642 struct anonymous
2643 {
2644 union {
2645 struct { int i; int j; };
2646 struct { int k; long int l; } w;
2647 };
2648 int m;
2649 } v1;
2650 '
2651
2652 # Test code for whether the C compiler supports C11 (body of main).
2653 ac_c_conftest_c11_main='
2654 _Static_assert ((offsetof (struct anonymous, i)
2655 == offsetof (struct anonymous, w.k)),
2656 "Anonymous union alignment botch");
2657 v1.i = 2;
2658 v1.w.k = 5;
2659 ok |= v1.i != 5;
2660 '
2661
2662 # Test code for whether the C compiler supports C11 (complete).
2663 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2664 ${ac_c_conftest_c99_globals}
2665 ${ac_c_conftest_c11_globals}
2666
2667 int
2668 main (int argc, char **argv)
2669 {
2670 int ok = 0;
2671 ${ac_c_conftest_c89_main}
2672 ${ac_c_conftest_c99_main}
2673 ${ac_c_conftest_c11_main}
2674 return ok;
2675 }
2676 "
2677
2678 # Test code for whether the C compiler supports C99 (complete).
2679 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2680 ${ac_c_conftest_c99_globals}
2681
2682 int
2683 main (int argc, char **argv)
2684 {
2685 int ok = 0;
2686 ${ac_c_conftest_c89_main}
2687 ${ac_c_conftest_c99_main}
2688 return ok;
2689 }
2690 "
2691
2692 # Test code for whether the C compiler supports C89 (complete).
2693 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2694
2695 int
2696 main (int argc, char **argv)
2697 {
2698 int ok = 0;
2699 ${ac_c_conftest_c89_main}
2700 return ok;
2701 }
2702 "
2703
2704 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2705 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2706 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2707 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2708 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2709 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2710 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2711 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2712 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2713
2714 # Auxiliary files required by this configure script.
2715 ac_aux_files="config.rpath config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2716
2717 # Locations in which to look for auxiliary files.
2718 ac_aux_dir_candidates="${srcdir}/build-aux"
2719
2720 # Search for a directory containing all of the required auxiliary files,
2721 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2722 # If we don't find one directory that contains all the files we need,
2723 # we report the set of missing files from the *first* directory in
2724 # $ac_aux_dir_candidates and give up.
2725 ac_missing_aux_files=""
2726 ac_first_candidate=:
2727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 as_found=false
2730 for as_dir in $ac_aux_dir_candidates
2731 do
2732 IFS=$as_save_IFS
2733 case $as_dir in #(((
2734 '') as_dir=./ ;;
2735 */) ;;
2736 *) as_dir=$as_dir/ ;;
2737 esac
2738 as_found=:
2739
2740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2741 ac_aux_dir_found=yes
2742 ac_install_sh=
2743 for ac_aux in $ac_aux_files
2744 do
2745 # As a special case, if "install-sh" is required, that requirement
2746 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2747 # and $ac_install_sh is set appropriately for whichever one is found.
2748 if test x"$ac_aux" = x"install-sh"
2749 then
2750 if test -f "${as_dir}install-sh"; then
2751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2752 ac_install_sh="${as_dir}install-sh -c"
2753 elif test -f "${as_dir}install.sh"; then
2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2755 ac_install_sh="${as_dir}install.sh -c"
2756 elif test -f "${as_dir}shtool"; then
2757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2758 ac_install_sh="${as_dir}shtool install -c"
2759 else
2760 ac_aux_dir_found=no
2761 if $ac_first_candidate; then
2762 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2763 else
2764 break
2765 fi
2766 fi
2767 else
2768 if test -f "${as_dir}${ac_aux}"; then
2769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2770 else
2771 ac_aux_dir_found=no
2772 if $ac_first_candidate; then
2773 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2774 else
2775 break
2776 fi
2777 fi
2778 fi
2779 done
2780 if test "$ac_aux_dir_found" = yes; then
2781 ac_aux_dir="$as_dir"
2782 break
2783 fi
2784 ac_first_candidate=false
2785
2786 as_found=false
2787 done
2788 IFS=$as_save_IFS
2789 if $as_found
2790 then :
2791
2792 else $as_nop
2793 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2794 fi
2795
2796
2797 # These three variables are undocumented and unsupported,
2798 # and are intended to be withdrawn in a future Autoconf release.
2799 # They can cause serious problems if a builder's source tree is in a directory
2800 # whose full name contains unusual characters.
2801 if test -f "${ac_aux_dir}config.guess"; then
2802 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2803 fi
2804 if test -f "${ac_aux_dir}config.sub"; then
2805 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2806 fi
2807 if test -f "$ac_aux_dir/configure"; then
2808 ac_configure="$SHELL ${ac_aux_dir}configure"
2809 fi
2810
2811 # Check that the precious variables saved in the cache have kept the same
2812 # value.
2813 ac_cache_corrupted=false
2814 for ac_var in $ac_precious_vars; do
2815 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2816 eval ac_new_set=\$ac_env_${ac_var}_set
2817 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2818 eval ac_new_val=\$ac_env_${ac_var}_value
2819 case $ac_old_set,$ac_new_set in
2820 set,)
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2822 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2823 ac_cache_corrupted=: ;;
2824 ,set)
2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2826 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2827 ac_cache_corrupted=: ;;
2828 ,);;
2829 *)
2830 if test "x$ac_old_val" != "x$ac_new_val"; then
2831 # differences in whitespace do not lead to failure.
2832 ac_old_val_w=`echo x $ac_old_val`
2833 ac_new_val_w=`echo x $ac_new_val`
2834 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2836 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2837 ac_cache_corrupted=:
2838 else
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2840 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2841 eval $ac_var=\$ac_old_val
2842 fi
2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2844 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2846 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2847 fi;;
2848 esac
2849 # Pass precious variables to config.status.
2850 if test "$ac_new_set" = set; then
2851 case $ac_new_val in
2852 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2853 *) ac_arg=$ac_var=$ac_new_val ;;
2854 esac
2855 case " $ac_configure_args " in
2856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2857 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2858 esac
2859 fi
2860 done
2861 if $ac_cache_corrupted; then
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2865 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2866 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2867 and start over" "$LINENO" 5
2868 fi
2869 ## -------------------- ##
2870 ## Main body of script. ##
2871 ## -------------------- ##
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
2879
2880
2881
2882 am__api_version='1.16'
2883
2884
2885
2886 # Find a good install program. We prefer a C program (faster),
2887 # so one script is as good as another. But avoid the broken or
2888 # incompatible versions:
2889 # SysV /etc/install, /usr/sbin/install
2890 # SunOS /usr/etc/install
2891 # IRIX /sbin/install
2892 # AIX /bin/install
2893 # AmigaOS /C/install, which installs bootblocks on floppy discs
2894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2897 # OS/2's system install, which has a completely different semantic
2898 # ./install, which can be erroneously created by make from ./install.sh.
2899 # Reject install programs that cannot install multiple files.
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2901 printf %s "checking for a BSD-compatible install... " >&6; }
2902 if test -z "$INSTALL"; then
2903 if test ${ac_cv_path_install+y}
2904 then :
2905 printf %s "(cached) " >&6
2906 else $as_nop
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 case $as_dir in #(((
2912 '') as_dir=./ ;;
2913 */) ;;
2914 *) as_dir=$as_dir/ ;;
2915 esac
2916 # Account for fact that we put trailing slashes in our PATH walk.
2917 case $as_dir in #((
2918 ./ | /[cC]/* | \
2919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2920 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2921 /usr/ucb/* ) ;;
2922 *)
2923 # OSF1 and SCO ODT 3.0 have their own names for install.
2924 # Don't use installbsd from OSF since it installs stuff as root
2925 # by default.
2926 for ac_prog in ginstall scoinst install; do
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2929 if test $ac_prog = install &&
2930 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2931 # AIX install. It has an incompatible calling convention.
2932 :
2933 elif test $ac_prog = install &&
2934 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2935 # program-specific install script used by HP pwplus--don't use.
2936 :
2937 else
2938 rm -rf conftest.one conftest.two conftest.dir
2939 echo one > conftest.one
2940 echo two > conftest.two
2941 mkdir conftest.dir
2942 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2943 test -s conftest.one && test -s conftest.two &&
2944 test -s conftest.dir/conftest.one &&
2945 test -s conftest.dir/conftest.two
2946 then
2947 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2948 break 3
2949 fi
2950 fi
2951 fi
2952 done
2953 done
2954 ;;
2955 esac
2956
2957 done
2958 IFS=$as_save_IFS
2959
2960 rm -rf conftest.one conftest.two conftest.dir
2961
2962 fi
2963 if test ${ac_cv_path_install+y}; then
2964 INSTALL=$ac_cv_path_install
2965 else
2966 # As a last resort, use the slow shell script. Don't cache a
2967 # value for INSTALL within a source directory, because that will
2968 # break other packages using the cache if that directory is
2969 # removed, or if the value is a relative name.
2970 INSTALL=$ac_install_sh
2971 fi
2972 fi
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2974 printf "%s\n" "$INSTALL" >&6; }
2975
2976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2977 # It thinks the first close brace ends the variable substitution.
2978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2979
2980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2981
2982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2983
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2985 printf %s "checking whether build environment is sane... " >&6; }
2986 # Reject unsafe characters in $srcdir or the absolute working directory
2987 # name. Accept space and tab only in the latter.
2988 am_lf='
2989 '
2990 case `pwd` in
2991 *[\\\"\#\$\&\'\`$am_lf]*)
2992 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2993 esac
2994 case $srcdir in
2995 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2996 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2997 esac
2998
2999 # Do 'set' in a subshell so we don't clobber the current shell's
3000 # arguments. Must try -L first in case configure is actually a
3001 # symlink; some systems play weird games with the mod time of symlinks
3002 # (eg FreeBSD returns the mod time of the symlink's containing
3003 # directory).
3004 if (
3005 am_has_slept=no
3006 for am_try in 1 2; do
3007 echo "timestamp, slept: $am_has_slept" > conftest.file
3008 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3009 if test "$*" = "X"; then
3010 # -L didn't work.
3011 set X `ls -t "$srcdir/configure" conftest.file`
3012 fi
3013 if test "$*" != "X $srcdir/configure conftest.file" \
3014 && test "$*" != "X conftest.file $srcdir/configure"; then
3015
3016 # If neither matched, then we have a broken ls. This can happen
3017 # if, for instance, CONFIG_SHELL is bash and it inherits a
3018 # broken ls alias from the environment. This has actually
3019 # happened. Such a system could not be considered "sane".
3020 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3021 alias in your environment" "$LINENO" 5
3022 fi
3023 if test "$2" = conftest.file || test $am_try -eq 2; then
3024 break
3025 fi
3026 # Just in case.
3027 sleep 1
3028 am_has_slept=yes
3029 done
3030 test "$2" = conftest.file
3031 )
3032 then
3033 # Ok.
3034 :
3035 else
3036 as_fn_error $? "newly created file is older than distributed files!
3037 Check your system clock" "$LINENO" 5
3038 fi
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3040 printf "%s\n" "yes" >&6; }
3041 # If we didn't sleep, we still need to ensure time stamps of config.status and
3042 # generated files are strictly newer.
3043 am_sleep_pid=
3044 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3045 ( sleep 1 ) &
3046 am_sleep_pid=$!
3047 fi
3048
3049 rm -f conftest.file
3050
3051 test "$program_prefix" != NONE &&
3052 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3053 # Use a double $ so make ignores it.
3054 test "$program_suffix" != NONE &&
3055 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3056 # Double any \ or $.
3057 # By default was `s,x,x', remove it if useless.
3058 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3059 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3060
3061
3062 # Expand $ac_aux_dir to an absolute path.
3063 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3064
3065
3066 if test x"${MISSING+set}" != xset; then
3067 MISSING="\${SHELL} '$am_aux_dir/missing'"
3068 fi
3069 # Use eval to expand $SHELL
3070 if eval "$MISSING --is-lightweight"; then
3071 am_missing_run="$MISSING "
3072 else
3073 am_missing_run=
3074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3075 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3076 fi
3077
3078 if test x"${install_sh+set}" != xset; then
3079 case $am_aux_dir in
3080 *\ * | *\ *)
3081 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3082 *)
3083 install_sh="\${SHELL} $am_aux_dir/install-sh"
3084 esac
3085 fi
3086
3087 # Installed binaries are usually stripped using 'strip' when the user
3088 # run "make install-strip". However 'strip' might not be the right
3089 # tool to use in cross-compilation environments, therefore Automake
3090 # will honor the 'STRIP' environment variable to overrule this program.
3091 if test "$cross_compiling" != no; then
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}strip; ac_word=$2
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 printf %s "checking for $ac_word... " >&6; }
3097 if test ${ac_cv_prog_STRIP+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else $as_nop
3101 if test -n "$STRIP"; then
3102 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 case $as_dir in #(((
3109 '') as_dir=./ ;;
3110 */) ;;
3111 *) as_dir=$as_dir/ ;;
3112 esac
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 STRIP=$ac_cv_prog_STRIP
3126 if test -n "$STRIP"; then
3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3128 printf "%s\n" "$STRIP" >&6; }
3129 else
3130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 printf "%s\n" "no" >&6; }
3132 fi
3133
3134
3135 fi
3136 if test -z "$ac_cv_prog_STRIP"; then
3137 ac_ct_STRIP=$STRIP
3138 # Extract the first word of "strip", so it can be a program name with args.
3139 set dummy strip; ac_word=$2
3140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 printf %s "checking for $ac_word... " >&6; }
3142 if test ${ac_cv_prog_ac_ct_STRIP+y}
3143 then :
3144 printf %s "(cached) " >&6
3145 else $as_nop
3146 if test -n "$ac_ct_STRIP"; then
3147 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 case $as_dir in #(((
3154 '') as_dir=./ ;;
3155 */) ;;
3156 *) as_dir=$as_dir/ ;;
3157 esac
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3160 ac_cv_prog_ac_ct_STRIP="strip"
3161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164 done
3165 done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3171 if test -n "$ac_ct_STRIP"; then
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3173 printf "%s\n" "$ac_ct_STRIP" >&6; }
3174 else
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 printf "%s\n" "no" >&6; }
3177 fi
3178
3179 if test "x$ac_ct_STRIP" = x; then
3180 STRIP=":"
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 STRIP=$ac_ct_STRIP
3189 fi
3190 else
3191 STRIP="$ac_cv_prog_STRIP"
3192 fi
3193
3194 fi
3195 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3196
3197
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3199 printf %s "checking for a race-free mkdir -p... " >&6; }
3200 if test -z "$MKDIR_P"; then
3201 if test ${ac_cv_path_mkdir+y}
3202 then :
3203 printf %s "(cached) " >&6
3204 else $as_nop
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3207 do
3208 IFS=$as_save_IFS
3209 case $as_dir in #(((
3210 '') as_dir=./ ;;
3211 */) ;;
3212 *) as_dir=$as_dir/ ;;
3213 esac
3214 for ac_prog in mkdir gmkdir; do
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3217 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3218 'mkdir ('*'coreutils) '* | \
3219 'BusyBox '* | \
3220 'mkdir (fileutils) '4.1*)
3221 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3222 break 3;;
3223 esac
3224 done
3225 done
3226 done
3227 IFS=$as_save_IFS
3228
3229 fi
3230
3231 test -d ./--version && rmdir ./--version
3232 if test ${ac_cv_path_mkdir+y}; then
3233 MKDIR_P="$ac_cv_path_mkdir -p"
3234 else
3235 # As a last resort, use the slow shell script. Don't cache a
3236 # value for MKDIR_P within a source directory, because that will
3237 # break other packages using the cache if that directory is
3238 # removed, or if the value is a relative name.
3239 MKDIR_P="$ac_install_sh -d"
3240 fi
3241 fi
3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3243 printf "%s\n" "$MKDIR_P" >&6; }
3244
3245 for ac_prog in gawk mawk nawk awk
3246 do
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy $ac_prog; ac_word=$2
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 printf %s "checking for $ac_word... " >&6; }
3251 if test ${ac_cv_prog_AWK+y}
3252 then :
3253 printf %s "(cached) " >&6
3254 else $as_nop
3255 if test -n "$AWK"; then
3256 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261 IFS=$as_save_IFS
3262 case $as_dir in #(((
3263 '') as_dir=./ ;;
3264 */) ;;
3265 *) as_dir=$as_dir/ ;;
3266 esac
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_AWK="$ac_prog"
3270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 AWK=$ac_cv_prog_AWK
3280 if test -n "$AWK"; then
3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3282 printf "%s\n" "$AWK" >&6; }
3283 else
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 printf "%s\n" "no" >&6; }
3286 fi
3287
3288
3289 test -n "$AWK" && break
3290 done
3291
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3293 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3294 set x ${MAKE-make}
3295 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3296 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3297 then :
3298 printf %s "(cached) " >&6
3299 else $as_nop
3300 cat >conftest.make <<\_ACEOF
3301 SHELL = /bin/sh
3302 all:
3303 @echo '@@@%%%=$(MAKE)=@@@%%%'
3304 _ACEOF
3305 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3307 *@@@%%%=?*=@@@%%%*)
3308 eval ac_cv_prog_make_${ac_make}_set=yes;;
3309 *)
3310 eval ac_cv_prog_make_${ac_make}_set=no;;
3311 esac
3312 rm -f conftest.make
3313 fi
3314 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 printf "%s\n" "yes" >&6; }
3317 SET_MAKE=
3318 else
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 printf "%s\n" "no" >&6; }
3321 SET_MAKE="MAKE=${MAKE-make}"
3322 fi
3323
3324 rm -rf .tst 2>/dev/null
3325 mkdir .tst 2>/dev/null
3326 if test -d .tst; then
3327 am__leading_dot=.
3328 else
3329 am__leading_dot=_
3330 fi
3331 rmdir .tst 2>/dev/null
3332
3333 # Check whether --enable-silent-rules was given.
3334 if test ${enable_silent_rules+y}
3335 then :
3336 enableval=$enable_silent_rules;
3337 fi
3338
3339 case $enable_silent_rules in # (((
3340 yes) AM_DEFAULT_VERBOSITY=0;;
3341 no) AM_DEFAULT_VERBOSITY=1;;
3342 *) AM_DEFAULT_VERBOSITY=1;;
3343 esac
3344 am_make=${MAKE-make}
3345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3346 printf %s "checking whether $am_make supports nested variables... " >&6; }
3347 if test ${am_cv_make_support_nested_variables+y}
3348 then :
3349 printf %s "(cached) " >&6
3350 else $as_nop
3351 if printf "%s\n" 'TRUE=$(BAR$(V))
3352 BAR0=false
3353 BAR1=true
3354 V=1
3355 am__doit:
3356 @$(TRUE)
3357 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3358 am_cv_make_support_nested_variables=yes
3359 else
3360 am_cv_make_support_nested_variables=no
3361 fi
3362 fi
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3364 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3365 if test $am_cv_make_support_nested_variables = yes; then
3366 AM_V='$(V)'
3367 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3368 else
3369 AM_V=$AM_DEFAULT_VERBOSITY
3370 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3371 fi
3372 AM_BACKSLASH='\'
3373
3374 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3375 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3376 # is not polluted with repeated "-I."
3377 am__isrc=' -I$(srcdir)'
3378 # test to see if srcdir already configured
3379 if test -f $srcdir/config.status; then
3380 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3381 fi
3382 fi
3383
3384 # test whether we have cygpath
3385 if test -z "$CYGPATH_W"; then
3386 if (cygpath --version) >/dev/null 2>/dev/null; then
3387 CYGPATH_W='cygpath -w'
3388 else
3389 CYGPATH_W=echo
3390 fi
3391 fi
3392
3393
3394 # Define the identity of the package.
3395 PACKAGE='guile-reader'
3396 VERSION='0.6.3'
3397
3398
3399 # Some tools Automake needs.
3400
3401 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3402
3403
3404 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3405
3406
3407 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3408
3409
3410 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3411
3412
3413 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3414
3415 # For better backward compatibility. To be removed once Automake 1.9.x
3416 # dies out for good. For more background, see:
3417 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3418 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3419 mkdir_p='$(MKDIR_P)'
3420
3421 # We need awk for the "check" target (and possibly the TAP driver). The
3422 # system "awk" is bad on some platforms.
3423 # Always define AMTAR for backward compatibility. Yes, it's still used
3424 # in the wild :-( We should find a proper way to deprecate it ...
3425 AMTAR='$${TAR-tar}'
3426
3427
3428 # We'll loop over all known methods to create a tar archive until one works.
3429 _am_tools='gnutar pax cpio none'
3430
3431 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3432
3433
3434
3435
3436
3437 # Variables for tags utilities; see am/tags.am
3438 if test -z "$CTAGS"; then
3439 CTAGS=ctags
3440 fi
3441
3442 if test -z "$ETAGS"; then
3443 ETAGS=etags
3444 fi
3445
3446 if test -z "$CSCOPE"; then
3447 CSCOPE=cscope
3448 fi
3449
3450
3451
3452 # POSIX will say in a future version that running "rm -f" with no argument
3453 # is OK; and we want to be able to make that assumption in our Makefile
3454 # recipes. So use an aggressive probe to check that the usage we want is
3455 # actually supported "in the wild" to an acceptable degree.
3456 # See automake bug#10828.
3457 # To make any issue more visible, cause the running configure to be aborted
3458 # by default if the 'rm' program in use doesn't match our expectations; the
3459 # user can still override this though.
3460 if rm -f && rm -fr && rm -rf; then : OK; else
3461 cat >&2 <<'END'
3462 Oops!
3463
3464 Your 'rm' program seems unable to run without file operands specified
3465 on the command line, even when the '-f' option is present. This is contrary
3466 to the behaviour of most rm programs out there, and not conforming with
3467 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3468
3469 Please tell [email protected] about your system, including the value
3470 of your $PATH and any error possibly output before this message. This
3471 can help us improve future automake versions.
3472
3473 END
3474 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3475 echo 'Configuration will proceed anyway, since you have set the' >&2
3476 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3477 echo >&2
3478 else
3479 cat >&2 <<'END'
3480 Aborting the configuration process, to ensure you take notice of the issue.
3481
3482 You can download and install GNU coreutils to get an 'rm' implementation
3483 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3484
3485 If you want to complete the configuration process using your problematic
3486 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3487 to "yes", and re-run configure.
3488
3489 END
3490 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3491 fi
3492 fi
3493
3494
3495 # Check whether --enable-silent-rules was given.
3496 if test ${enable_silent_rules+y}
3497 then :
3498 enableval=$enable_silent_rules;
3499 fi
3500
3501 case $enable_silent_rules in # (((
3502 yes) AM_DEFAULT_VERBOSITY=0;;
3503 no) AM_DEFAULT_VERBOSITY=1;;
3504 *) AM_DEFAULT_VERBOSITY=0;;
3505 esac
3506 am_make=${MAKE-make}
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3508 printf %s "checking whether $am_make supports nested variables... " >&6; }
3509 if test ${am_cv_make_support_nested_variables+y}
3510 then :
3511 printf %s "(cached) " >&6
3512 else $as_nop
3513 if printf "%s\n" 'TRUE=$(BAR$(V))
3514 BAR0=false
3515 BAR1=true
3516 V=1
3517 am__doit:
3518 @$(TRUE)
3519 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3520 am_cv_make_support_nested_variables=yes
3521 else
3522 am_cv_make_support_nested_variables=no
3523 fi
3524 fi
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3526 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3527 if test $am_cv_make_support_nested_variables = yes; then
3528 AM_V='$(V)'
3529 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3530 else
3531 AM_V=$AM_DEFAULT_VERBOSITY
3532 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3533 fi
3534 AM_BACKSLASH='\'
3535
3536
3537
3538 ac_config_headers="$ac_config_headers config.h src/reader-config.h"
3539
3540
3541
3542 # Check whether --with-guilemoduledir was given.
3543 if test ${with_guilemoduledir+y}
3544 then :
3545 withval=$with_guilemoduledir; case "x$withval" in
3546 xyes|xno) guilemoduledir="";;
3547 *) guilemoduledir="$withval";;
3548 esac
3549 else $as_nop
3550 guilemoduledir=""
3551 fi
3552
3553
3554
3555 # Checks for programs.
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570 if test -n "$ac_tool_prefix"; then
3571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3572 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 printf %s "checking for $ac_word... " >&6; }
3575 if test ${ac_cv_prog_CC+y}
3576 then :
3577 printf %s "(cached) " >&6
3578 else $as_nop
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585 IFS=$as_save_IFS
3586 case $as_dir in #(((
3587 '') as_dir=./ ;;
3588 */) ;;
3589 *) as_dir=$as_dir/ ;;
3590 esac
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 printf "%s\n" "$CC" >&6; }
3607 else
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 printf "%s\n" "no" >&6; }
3610 fi
3611
3612
3613 fi
3614 if test -z "$ac_cv_prog_CC"; then
3615 ac_ct_CC=$CC
3616 # Extract the first word of "gcc", so it can be a program name with args.
3617 set dummy gcc; ac_word=$2
3618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 printf %s "checking for $ac_word... " >&6; }
3620 if test ${ac_cv_prog_ac_ct_CC+y}
3621 then :
3622 printf %s "(cached) " >&6
3623 else $as_nop
3624 if test -n "$ac_ct_CC"; then
3625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630 IFS=$as_save_IFS
3631 case $as_dir in #(((
3632 '') as_dir=./ ;;
3633 */) ;;
3634 *) as_dir=$as_dir/ ;;
3635 esac
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_ac_ct_CC="gcc"
3639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 fi
3647 fi
3648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3649 if test -n "$ac_ct_CC"; then
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3651 printf "%s\n" "$ac_ct_CC" >&6; }
3652 else
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 printf "%s\n" "no" >&6; }
3655 fi
3656
3657 if test "x$ac_ct_CC" = x; then
3658 CC=""
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661 yes:)
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned=yes ;;
3665 esac
3666 CC=$ac_ct_CC
3667 fi
3668 else
3669 CC="$ac_cv_prog_CC"
3670 fi
3671
3672 if test -z "$CC"; then
3673 if test -n "$ac_tool_prefix"; then
3674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3675 set dummy ${ac_tool_prefix}cc; ac_word=$2
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 printf %s "checking for $ac_word... " >&6; }
3678 if test ${ac_cv_prog_CC+y}
3679 then :
3680 printf %s "(cached) " >&6
3681 else $as_nop
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 case $as_dir in #(((
3690 '') as_dir=./ ;;
3691 */) ;;
3692 *) as_dir=$as_dir/ ;;
3693 esac
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_CC="${ac_tool_prefix}cc"
3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 printf "%s\n" "$CC" >&6; }
3710 else
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 printf "%s\n" "no" >&6; }
3713 fi
3714
3715
3716 fi
3717 fi
3718 if test -z "$CC"; then
3719 # Extract the first word of "cc", so it can be a program name with args.
3720 set dummy cc; ac_word=$2
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 printf %s "checking for $ac_word... " >&6; }
3723 if test ${ac_cv_prog_CC+y}
3724 then :
3725 printf %s "(cached) " >&6
3726 else $as_nop
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 ac_prog_rejected=no
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 case $as_dir in #(((
3736 '') as_dir=./ ;;
3737 */) ;;
3738 *) as_dir=$as_dir/ ;;
3739 esac
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3742 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3743 ac_prog_rejected=yes
3744 continue
3745 fi
3746 ac_cv_prog_CC="cc"
3747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 if test $ac_prog_rejected = yes; then
3755 # We found a bogon in the path, so make sure we never use it.
3756 set dummy $ac_cv_prog_CC
3757 shift
3758 if test $# != 0; then
3759 # We chose a different compiler from the bogus one.
3760 # However, it has the same basename, so the bogon will be chosen
3761 # first if we set CC to just the basename; use the full file name.
3762 shift
3763 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3764 fi
3765 fi
3766 fi
3767 fi
3768 CC=$ac_cv_prog_CC
3769 if test -n "$CC"; then
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771 printf "%s\n" "$CC" >&6; }
3772 else
3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 printf "%s\n" "no" >&6; }
3775 fi
3776
3777
3778 fi
3779 if test -z "$CC"; then
3780 if test -n "$ac_tool_prefix"; then
3781 for ac_prog in cl.exe
3782 do
3783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 printf %s "checking for $ac_word... " >&6; }
3787 if test ${ac_cv_prog_CC+y}
3788 then :
3789 printf %s "(cached) " >&6
3790 else $as_nop
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797 IFS=$as_save_IFS
3798 case $as_dir in #(((
3799 '') as_dir=./ ;;
3800 */) ;;
3801 *) as_dir=$as_dir/ ;;
3802 esac
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3807 break 2
3808 fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 CC=$ac_cv_prog_CC
3816 if test -n "$CC"; then
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3818 printf "%s\n" "$CC" >&6; }
3819 else
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 printf "%s\n" "no" >&6; }
3822 fi
3823
3824
3825 test -n "$CC" && break
3826 done
3827 fi
3828 if test -z "$CC"; then
3829 ac_ct_CC=$CC
3830 for ac_prog in cl.exe
3831 do
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 printf %s "checking for $ac_word... " >&6; }
3836 if test ${ac_cv_prog_ac_ct_CC+y}
3837 then :
3838 printf %s "(cached) " >&6
3839 else $as_nop
3840 if test -n "$ac_ct_CC"; then
3841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 case $as_dir in #(((
3848 '') as_dir=./ ;;
3849 */) ;;
3850 *) as_dir=$as_dir/ ;;
3851 esac
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3854 ac_cv_prog_ac_ct_CC="$ac_prog"
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3856 break 2
3857 fi
3858 done
3859 done
3860 IFS=$as_save_IFS
3861
3862 fi
3863 fi
3864 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3865 if test -n "$ac_ct_CC"; then
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3867 printf "%s\n" "$ac_ct_CC" >&6; }
3868 else
3869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 printf "%s\n" "no" >&6; }
3871 fi
3872
3873
3874 test -n "$ac_ct_CC" && break
3875 done
3876
3877 if test "x$ac_ct_CC" = x; then
3878 CC=""
3879 else
3880 case $cross_compiling:$ac_tool_warned in
3881 yes:)
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3885 esac
3886 CC=$ac_ct_CC
3887 fi
3888 fi
3889
3890 fi
3891 if test -z "$CC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3894 set dummy ${ac_tool_prefix}clang; ac_word=$2
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 printf %s "checking for $ac_word... " >&6; }
3897 if test ${ac_cv_prog_CC+y}
3898 then :
3899 printf %s "(cached) " >&6
3900 else $as_nop
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 case $as_dir in #(((
3909 '') as_dir=./ ;;
3910 */) ;;
3911 *) as_dir=$as_dir/ ;;
3912 esac
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_CC="${ac_tool_prefix}clang"
3916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919 done
3920 done
3921 IFS=$as_save_IFS
3922
3923 fi
3924 fi
3925 CC=$ac_cv_prog_CC
3926 if test -n "$CC"; then
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 printf "%s\n" "$CC" >&6; }
3929 else
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 printf "%s\n" "no" >&6; }
3932 fi
3933
3934
3935 fi
3936 if test -z "$ac_cv_prog_CC"; then
3937 ac_ct_CC=$CC
3938 # Extract the first word of "clang", so it can be a program name with args.
3939 set dummy clang; ac_word=$2
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 printf %s "checking for $ac_word... " >&6; }
3942 if test ${ac_cv_prog_ac_ct_CC+y}
3943 then :
3944 printf %s "(cached) " >&6
3945 else $as_nop
3946 if test -n "$ac_ct_CC"; then
3947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952 IFS=$as_save_IFS
3953 case $as_dir in #(((
3954 '') as_dir=./ ;;
3955 */) ;;
3956 *) as_dir=$as_dir/ ;;
3957 esac
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_ac_ct_CC="clang"
3961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3962 break 2
3963 fi
3964 done
3965 done
3966 IFS=$as_save_IFS
3967
3968 fi
3969 fi
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973 printf "%s\n" "$ac_ct_CC" >&6; }
3974 else
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 printf "%s\n" "no" >&6; }
3977 fi
3978
3979 if test "x$ac_ct_CC" = x; then
3980 CC=""
3981 else
3982 case $cross_compiling:$ac_tool_warned in
3983 yes:)
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3987 esac
3988 CC=$ac_ct_CC
3989 fi
3990 else
3991 CC="$ac_cv_prog_CC"
3992 fi
3993
3994 fi
3995
3996
3997 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error $? "no acceptable C compiler found in \$PATH
4000 See \`config.log' for more details" "$LINENO" 5; }
4001
4002 # Provide some information about the compiler.
4003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4004 set X $ac_compile
4005 ac_compiler=$2
4006 for ac_option in --version -v -V -qversion -version; do
4007 { { ac_try="$ac_compiler $ac_option >&5"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4013 printf "%s\n" "$ac_try_echo"; } >&5
4014 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4015 ac_status=$?
4016 if test -s conftest.err; then
4017 sed '10a\
4018 ... rest of stderr output deleted ...
4019 10q' conftest.err >conftest.er1
4020 cat conftest.er1 >&5
4021 fi
4022 rm -f conftest.er1 conftest.err
4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024 test $ac_status = 0; }
4025 done
4026
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4029
4030 int
4031 main (void)
4032 {
4033
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 ac_clean_files_save=$ac_clean_files
4039 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4040 # Try to create an executable without -o first, disregard a.out.
4041 # It will help us diagnose broken compilers, and finding out an intuition
4042 # of exeext.
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4044 printf %s "checking whether the C compiler works... " >&6; }
4045 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4046
4047 # The possible output files:
4048 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4049
4050 ac_rmfiles=
4051 for ac_file in $ac_files
4052 do
4053 case $ac_file in
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4055 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4056 esac
4057 done
4058 rm -f $ac_rmfiles
4059
4060 if { { ac_try="$ac_link_default"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066 printf "%s\n" "$ac_try_echo"; } >&5
4067 (eval "$ac_link_default") 2>&5
4068 ac_status=$?
4069 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4070 test $ac_status = 0; }
4071 then :
4072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4073 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4074 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4075 # so that the user can short-circuit this test for compilers unknown to
4076 # Autoconf.
4077 for ac_file in $ac_files ''
4078 do
4079 test -f "$ac_file" || continue
4080 case $ac_file in
4081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4082 ;;
4083 [ab].out )
4084 # We found the default executable, but exeext='' is most
4085 # certainly right.
4086 break;;
4087 *.* )
4088 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4089 then :; else
4090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4091 fi
4092 # We set ac_cv_exeext here because the later test for it is not
4093 # safe: cross compilers may not add the suffix if given an `-o'
4094 # argument, so we may need to know it at that point already.
4095 # Even if this section looks crufty: it has the advantage of
4096 # actually working.
4097 break;;
4098 * )
4099 break;;
4100 esac
4101 done
4102 test "$ac_cv_exeext" = no && ac_cv_exeext=
4103
4104 else $as_nop
4105 ac_file=''
4106 fi
4107 if test -z "$ac_file"
4108 then :
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 printf "%s\n" "no" >&6; }
4111 printf "%s\n" "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4115 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4116 as_fn_error 77 "C compiler cannot create executables
4117 See \`config.log' for more details" "$LINENO" 5; }
4118 else $as_nop
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 printf "%s\n" "yes" >&6; }
4121 fi
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4123 printf %s "checking for C compiler default output file name... " >&6; }
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4125 printf "%s\n" "$ac_file" >&6; }
4126 ac_exeext=$ac_cv_exeext
4127
4128 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4129 ac_clean_files=$ac_clean_files_save
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4131 printf %s "checking for suffix of executables... " >&6; }
4132 if { { ac_try="$ac_link"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138 printf "%s\n" "$ac_try_echo"; } >&5
4139 (eval "$ac_link") 2>&5
4140 ac_status=$?
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4142 test $ac_status = 0; }
4143 then :
4144 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4145 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4146 # work properly (i.e., refer to `conftest.exe'), while it won't with
4147 # `rm'.
4148 for ac_file in conftest.exe conftest conftest.*; do
4149 test -f "$ac_file" || continue
4150 case $ac_file in
4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4152 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4153 break;;
4154 * ) break;;
4155 esac
4156 done
4157 else $as_nop
4158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4159 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4160 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4161 See \`config.log' for more details" "$LINENO" 5; }
4162 fi
4163 rm -f conftest conftest$ac_cv_exeext
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4165 printf "%s\n" "$ac_cv_exeext" >&6; }
4166
4167 rm -f conftest.$ac_ext
4168 EXEEXT=$ac_cv_exeext
4169 ac_exeext=$EXEEXT
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 #include <stdio.h>
4173 int
4174 main (void)
4175 {
4176 FILE *f = fopen ("conftest.out", "w");
4177 return ferror (f) || fclose (f) != 0;
4178
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 ac_clean_files="$ac_clean_files conftest.out"
4184 # Check that the compiler produces executables we can run. If not, either
4185 # the compiler is broken, or we cross compile.
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4187 printf %s "checking whether we are cross compiling... " >&6; }
4188 if test "$cross_compiling" != yes; then
4189 { { ac_try="$ac_link"
4190 case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193 esac
4194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195 printf "%s\n" "$ac_try_echo"; } >&5
4196 (eval "$ac_link") 2>&5
4197 ac_status=$?
4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }
4200 if { ac_try='./conftest$ac_cv_exeext'
4201 { { case "(($ac_try" in
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 printf "%s\n" "$ac_try_echo"; } >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4210 test $ac_status = 0; }; }; then
4211 cross_compiling=no
4212 else
4213 if test "$cross_compiling" = maybe; then
4214 cross_compiling=yes
4215 else
4216 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4217 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4218 as_fn_error 77 "cannot run C compiled programs.
4219 If you meant to cross compile, use \`--host'.
4220 See \`config.log' for more details" "$LINENO" 5; }
4221 fi
4222 fi
4223 fi
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4225 printf "%s\n" "$cross_compiling" >&6; }
4226
4227 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4228 ac_clean_files=$ac_clean_files_save
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4230 printf %s "checking for suffix of object files... " >&6; }
4231 if test ${ac_cv_objext+y}
4232 then :
4233 printf %s "(cached) " >&6
4234 else $as_nop
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237
4238 int
4239 main (void)
4240 {
4241
4242 ;
4243 return 0;
4244 }
4245 _ACEOF
4246 rm -f conftest.o conftest.obj
4247 if { { ac_try="$ac_compile"
4248 case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 printf "%s\n" "$ac_try_echo"; } >&5
4254 (eval "$ac_compile") 2>&5
4255 ac_status=$?
4256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; }
4258 then :
4259 for ac_file in conftest.o conftest.obj conftest.*; do
4260 test -f "$ac_file" || continue;
4261 case $ac_file in
4262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4263 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4264 break;;
4265 esac
4266 done
4267 else $as_nop
4268 printf "%s\n" "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4270
4271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error $? "cannot compute suffix of object files: cannot compile
4274 See \`config.log' for more details" "$LINENO" 5; }
4275 fi
4276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4277 fi
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4279 printf "%s\n" "$ac_cv_objext" >&6; }
4280 OBJEXT=$ac_cv_objext
4281 ac_objext=$OBJEXT
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4283 printf %s "checking whether the compiler supports GNU C... " >&6; }
4284 if test ${ac_cv_c_compiler_gnu+y}
4285 then :
4286 printf %s "(cached) " >&6
4287 else $as_nop
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290
4291 int
4292 main (void)
4293 {
4294 #ifndef __GNUC__
4295 choke me
4296 #endif
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"
4303 then :
4304 ac_compiler_gnu=yes
4305 else $as_nop
4306 ac_compiler_gnu=no
4307 fi
4308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4310
4311 fi
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4313 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315
4316 if test $ac_compiler_gnu = yes; then
4317 GCC=yes
4318 else
4319 GCC=
4320 fi
4321 ac_test_CFLAGS=${CFLAGS+y}
4322 ac_save_CFLAGS=$CFLAGS
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4324 printf %s "checking whether $CC accepts -g... " >&6; }
4325 if test ${ac_cv_prog_cc_g+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else $as_nop
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4331 ac_cv_prog_cc_g=no
4332 CFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main (void)
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"
4345 then :
4346 ac_cv_prog_cc_g=yes
4347 else $as_nop
4348 CFLAGS=""
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351
4352 int
4353 main (void)
4354 {
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"
4361 then :
4362
4363 else $as_nop
4364 ac_c_werror_flag=$ac_save_c_werror_flag
4365 CFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4368
4369 int
4370 main (void)
4371 {
4372
4373 ;
4374 return 0;
4375 }
4376 _ACEOF
4377 if ac_fn_c_try_compile "$LINENO"
4378 then :
4379 ac_cv_prog_cc_g=yes
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4384 fi
4385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4387 fi
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4390 if test $ac_test_CFLAGS; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4394 CFLAGS="-g -O2"
4395 else
4396 CFLAGS="-g"
4397 fi
4398 else
4399 if test "$GCC" = yes; then
4400 CFLAGS="-O2"
4401 else
4402 CFLAGS=
4403 fi
4404 fi
4405 ac_prog_cc_stdc=no
4406 if test x$ac_prog_cc_stdc = xno
4407 then :
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4409 printf %s "checking for $CC option to enable C11 features... " >&6; }
4410 if test ${ac_cv_prog_cc_c11+y}
4411 then :
4412 printf %s "(cached) " >&6
4413 else $as_nop
4414 ac_cv_prog_cc_c11=no
4415 ac_save_CC=$CC
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4418 $ac_c_conftest_c11_program
4419 _ACEOF
4420 for ac_arg in '' -std=gnu11
4421 do
4422 CC="$ac_save_CC $ac_arg"
4423 if ac_fn_c_try_compile "$LINENO"
4424 then :
4425 ac_cv_prog_cc_c11=$ac_arg
4426 fi
4427 rm -f core conftest.err conftest.$ac_objext conftest.beam
4428 test "x$ac_cv_prog_cc_c11" != "xno" && break
4429 done
4430 rm -f conftest.$ac_ext
4431 CC=$ac_save_CC
4432 fi
4433
4434 if test "x$ac_cv_prog_cc_c11" = xno
4435 then :
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4437 printf "%s\n" "unsupported" >&6; }
4438 else $as_nop
4439 if test "x$ac_cv_prog_cc_c11" = x
4440 then :
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442 printf "%s\n" "none needed" >&6; }
4443 else $as_nop
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4445 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4446 CC="$CC $ac_cv_prog_cc_c11"
4447 fi
4448 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4449 ac_prog_cc_stdc=c11
4450 fi
4451 fi
4452 if test x$ac_prog_cc_stdc = xno
4453 then :
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4455 printf %s "checking for $CC option to enable C99 features... " >&6; }
4456 if test ${ac_cv_prog_cc_c99+y}
4457 then :
4458 printf %s "(cached) " >&6
4459 else $as_nop
4460 ac_cv_prog_cc_c99=no
4461 ac_save_CC=$CC
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 $ac_c_conftest_c99_program
4465 _ACEOF
4466 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4467 do
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"
4470 then :
4471 ac_cv_prog_cc_c99=$ac_arg
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext conftest.beam
4474 test "x$ac_cv_prog_cc_c99" != "xno" && break
4475 done
4476 rm -f conftest.$ac_ext
4477 CC=$ac_save_CC
4478 fi
4479
4480 if test "x$ac_cv_prog_cc_c99" = xno
4481 then :
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 printf "%s\n" "unsupported" >&6; }
4484 else $as_nop
4485 if test "x$ac_cv_prog_cc_c99" = x
4486 then :
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4488 printf "%s\n" "none needed" >&6; }
4489 else $as_nop
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4491 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4492 CC="$CC $ac_cv_prog_cc_c99"
4493 fi
4494 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4495 ac_prog_cc_stdc=c99
4496 fi
4497 fi
4498 if test x$ac_prog_cc_stdc = xno
4499 then :
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4501 printf %s "checking for $CC option to enable C89 features... " >&6; }
4502 if test ${ac_cv_prog_cc_c89+y}
4503 then :
4504 printf %s "(cached) " >&6
4505 else $as_nop
4506 ac_cv_prog_cc_c89=no
4507 ac_save_CC=$CC
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4510 $ac_c_conftest_c89_program
4511 _ACEOF
4512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4513 do
4514 CC="$ac_save_CC $ac_arg"
4515 if ac_fn_c_try_compile "$LINENO"
4516 then :
4517 ac_cv_prog_cc_c89=$ac_arg
4518 fi
4519 rm -f core conftest.err conftest.$ac_objext conftest.beam
4520 test "x$ac_cv_prog_cc_c89" != "xno" && break
4521 done
4522 rm -f conftest.$ac_ext
4523 CC=$ac_save_CC
4524 fi
4525
4526 if test "x$ac_cv_prog_cc_c89" = xno
4527 then :
4528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4529 printf "%s\n" "unsupported" >&6; }
4530 else $as_nop
4531 if test "x$ac_cv_prog_cc_c89" = x
4532 then :
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4534 printf "%s\n" "none needed" >&6; }
4535 else $as_nop
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4537 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4538 CC="$CC $ac_cv_prog_cc_c89"
4539 fi
4540 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4541 ac_prog_cc_stdc=c89
4542 fi
4543 fi
4544
4545 ac_ext=c
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
4551
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4558 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4559 if test ${am_cv_prog_cc_c_o+y}
4560 then :
4561 printf %s "(cached) " >&6
4562 else $as_nop
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565
4566 int
4567 main (void)
4568 {
4569
4570 ;
4571 return 0;
4572 }
4573 _ACEOF
4574 # Make sure it works both with $CC and with simple cc.
4575 # Following AC_PROG_CC_C_O, we do the test twice because some
4576 # compilers refuse to overwrite an existing .o file with -o,
4577 # though they will create one.
4578 am_cv_prog_cc_c_o=yes
4579 for am_i in 1 2; do
4580 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4581 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4582 ac_status=$?
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } \
4585 && test -f conftest2.$ac_objext; then
4586 : OK
4587 else
4588 am_cv_prog_cc_c_o=no
4589 break
4590 fi
4591 done
4592 rm -f core conftest*
4593 unset am_i
4594 fi
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4596 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4597 if test "$am_cv_prog_cc_c_o" != yes; then
4598 # Losing compiler, so override with the script.
4599 # FIXME: It is wrong to rewrite CC.
4600 # But if we don't then we get into trouble of one sort or another.
4601 # A longer-term fix would be to have automake use am__CC in this case,
4602 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4603 CC="$am_aux_dir/compile $CC"
4604 fi
4605 ac_ext=c
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611 DEPDIR="${am__leading_dot}deps"
4612
4613 ac_config_commands="$ac_config_commands depfiles"
4614
4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4616 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4617 cat > confinc.mk << 'END'
4618 am__doit:
4619 @echo this is the am__doit target >confinc.out
4620 .PHONY: am__doit
4621 END
4622 am__include="#"
4623 am__quote=
4624 # BSD make does it like this.
4625 echo '.include "confinc.mk" # ignored' > confmf.BSD
4626 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4627 echo 'include confinc.mk # ignored' > confmf.GNU
4628 _am_result=no
4629 for s in GNU BSD; do
4630 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4631 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4632 ac_status=$?
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }
4635 case $?:`cat confinc.out 2>/dev/null` in #(
4636 '0:this is the am__doit target') :
4637 case $s in #(
4638 BSD) :
4639 am__include='.include' am__quote='"' ;; #(
4640 *) :
4641 am__include='include' am__quote='' ;;
4642 esac ;; #(
4643 *) :
4644 ;;
4645 esac
4646 if test "$am__include" != "#"; then
4647 _am_result="yes ($s style)"
4648 break
4649 fi
4650 done
4651 rm -f confinc.* confmf.*
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4653 printf "%s\n" "${_am_result}" >&6; }
4654
4655 # Check whether --enable-dependency-tracking was given.
4656 if test ${enable_dependency_tracking+y}
4657 then :
4658 enableval=$enable_dependency_tracking;
4659 fi
4660
4661 if test "x$enable_dependency_tracking" != xno; then
4662 am_depcomp="$ac_aux_dir/depcomp"
4663 AMDEPBACKSLASH='\'
4664 am__nodep='_no'
4665 fi
4666 if test "x$enable_dependency_tracking" != xno; then
4667 AMDEP_TRUE=
4668 AMDEP_FALSE='#'
4669 else
4670 AMDEP_TRUE='#'
4671 AMDEP_FALSE=
4672 fi
4673
4674
4675
4676 depcc="$CC" am_compiler_list=
4677
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4679 printf %s "checking dependency style of $depcc... " >&6; }
4680 if test ${am_cv_CC_dependencies_compiler_type+y}
4681 then :
4682 printf %s "(cached) " >&6
4683 else $as_nop
4684 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4685 # We make a subdir and do the tests there. Otherwise we can end up
4686 # making bogus files that we don't know about and never remove. For
4687 # instance it was reported that on HP-UX the gcc test will end up
4688 # making a dummy file named 'D' -- because '-MD' means "put the output
4689 # in D".
4690 rm -rf conftest.dir
4691 mkdir conftest.dir
4692 # Copy depcomp to subdir because otherwise we won't find it if we're
4693 # using a relative directory.
4694 cp "$am_depcomp" conftest.dir
4695 cd conftest.dir
4696 # We will build objects and dependencies in a subdirectory because
4697 # it helps to detect inapplicable dependency modes. For instance
4698 # both Tru64's cc and ICC support -MD to output dependencies as a
4699 # side effect of compilation, but ICC will put the dependencies in
4700 # the current directory while Tru64 will put them in the object
4701 # directory.
4702 mkdir sub
4703
4704 am_cv_CC_dependencies_compiler_type=none
4705 if test "$am_compiler_list" = ""; then
4706 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4707 fi
4708 am__universal=false
4709 case " $depcc " in #(
4710 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4711 esac
4712
4713 for depmode in $am_compiler_list; do
4714 # Setup a source with many dependencies, because some compilers
4715 # like to wrap large dependency lists on column 80 (with \), and
4716 # we should not choose a depcomp mode which is confused by this.
4717 #
4718 # We need to recreate these files for each test, as the compiler may
4719 # overwrite some of them when testing with obscure command lines.
4720 # This happens at least with the AIX C compiler.
4721 : > sub/conftest.c
4722 for i in 1 2 3 4 5 6; do
4723 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4724 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4725 # Solaris 10 /bin/sh.
4726 echo '/* dummy */' > sub/conftst$i.h
4727 done
4728 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4729
4730 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4731 # mode. It turns out that the SunPro C++ compiler does not properly
4732 # handle '-M -o', and we need to detect this. Also, some Intel
4733 # versions had trouble with output in subdirs.
4734 am__obj=sub/conftest.${OBJEXT-o}
4735 am__minus_obj="-o $am__obj"
4736 case $depmode in
4737 gcc)
4738 # This depmode causes a compiler race in universal mode.
4739 test "$am__universal" = false || continue
4740 ;;
4741 nosideeffect)
4742 # After this tag, mechanisms are not by side-effect, so they'll
4743 # only be used when explicitly requested.
4744 if test "x$enable_dependency_tracking" = xyes; then
4745 continue
4746 else
4747 break
4748 fi
4749 ;;
4750 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4751 # This compiler won't grok '-c -o', but also, the minuso test has
4752 # not run yet. These depmodes are late enough in the game, and
4753 # so weak that their functioning should not be impacted.
4754 am__obj=conftest.${OBJEXT-o}
4755 am__minus_obj=
4756 ;;
4757 none) break ;;
4758 esac
4759 if depmode=$depmode \
4760 source=sub/conftest.c object=$am__obj \
4761 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4762 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4763 >/dev/null 2>conftest.err &&
4764 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4765 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4766 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4767 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4768 # icc doesn't choke on unknown options, it will just issue warnings
4769 # or remarks (even with -Werror). So we grep stderr for any message
4770 # that says an option was ignored or not supported.
4771 # When given -MP, icc 7.0 and 7.1 complain thusly:
4772 # icc: Command line warning: ignoring option '-M'; no argument required
4773 # The diagnosis changed in icc 8.0:
4774 # icc: Command line remark: option '-MP' not supported
4775 if (grep 'ignoring option' conftest.err ||
4776 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4777 am_cv_CC_dependencies_compiler_type=$depmode
4778 break
4779 fi
4780 fi
4781 done
4782
4783 cd ..
4784 rm -rf conftest.dir
4785 else
4786 am_cv_CC_dependencies_compiler_type=none
4787 fi
4788
4789 fi
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4791 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4792 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4793
4794 if
4795 test "x$enable_dependency_tracking" != xno \
4796 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4797 am__fastdepCC_TRUE=
4798 am__fastdepCC_FALSE='#'
4799 else
4800 am__fastdepCC_TRUE='#'
4801 am__fastdepCC_FALSE=
4802 fi
4803
4804
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4806 printf %s "checking for a sed that does not truncate output... " >&6; }
4807 if test ${ac_cv_path_SED+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else $as_nop
4811 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4812 for ac_i in 1 2 3 4 5 6 7; do
4813 ac_script="$ac_script$as_nl$ac_script"
4814 done
4815 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4816 { ac_script=; unset ac_script;}
4817 if test -z "$SED"; then
4818 ac_path_SED_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823 IFS=$as_save_IFS
4824 case $as_dir in #(((
4825 '') as_dir=./ ;;
4826 */) ;;
4827 *) as_dir=$as_dir/ ;;
4828 esac
4829 for ac_prog in sed gsed
4830 do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4833 as_fn_executable_p "$ac_path_SED" || continue
4834 # Check for GNU ac_path_SED and select it if it is found.
4835 # Check for GNU $ac_path_SED
4836 case `"$ac_path_SED" --version 2>&1` in
4837 *GNU*)
4838 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4839 *)
4840 ac_count=0
4841 printf %s 0123456789 >"conftest.in"
4842 while :
4843 do
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 printf "%s\n" '' >> "conftest.nl"
4848 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_SED_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_SED="$ac_path_SED"
4854 ac_path_SED_max=$ac_count
4855 fi
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4861
4862 $ac_path_SED_found && break 3
4863 done
4864 done
4865 done
4866 IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_SED"; then
4868 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4869 fi
4870 else
4871 ac_cv_path_SED=$SED
4872 fi
4873
4874 fi
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4876 printf "%s\n" "$ac_cv_path_SED" >&6; }
4877 SED="$ac_cv_path_SED"
4878 rm -f conftest.sed
4879
4880
4881
4882
4883 if test -n "$ac_tool_prefix"; then
4884 for ac_prog in ar lib "link -lib"
4885 do
4886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 printf %s "checking for $ac_word... " >&6; }
4890 if test ${ac_cv_prog_AR+y}
4891 then :
4892 printf %s "(cached) " >&6
4893 else $as_nop
4894 if test -n "$AR"; then
4895 ac_cv_prog_AR="$AR" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900 IFS=$as_save_IFS
4901 case $as_dir in #(((
4902 '') as_dir=./ ;;
4903 */) ;;
4904 *) as_dir=$as_dir/ ;;
4905 esac
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912 done
4913 done
4914 IFS=$as_save_IFS
4915
4916 fi
4917 fi
4918 AR=$ac_cv_prog_AR
4919 if test -n "$AR"; then
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4921 printf "%s\n" "$AR" >&6; }
4922 else
4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 printf "%s\n" "no" >&6; }
4925 fi
4926
4927
4928 test -n "$AR" && break
4929 done
4930 fi
4931 if test -z "$AR"; then
4932 ac_ct_AR=$AR
4933 for ac_prog in ar lib "link -lib"
4934 do
4935 # Extract the first word of "$ac_prog", so it can be a program name with args.
4936 set dummy $ac_prog; ac_word=$2
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 printf %s "checking for $ac_word... " >&6; }
4939 if test ${ac_cv_prog_ac_ct_AR+y}
4940 then :
4941 printf %s "(cached) " >&6
4942 else $as_nop
4943 if test -n "$ac_ct_AR"; then
4944 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 case $as_dir in #(((
4951 '') as_dir=./ ;;
4952 */) ;;
4953 *) as_dir=$as_dir/ ;;
4954 esac
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_ac_ct_AR="$ac_prog"
4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961 done
4962 done
4963 IFS=$as_save_IFS
4964
4965 fi
4966 fi
4967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4968 if test -n "$ac_ct_AR"; then
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4970 printf "%s\n" "$ac_ct_AR" >&6; }
4971 else
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 printf "%s\n" "no" >&6; }
4974 fi
4975
4976
4977 test -n "$ac_ct_AR" && break
4978 done
4979
4980 if test "x$ac_ct_AR" = x; then
4981 AR="false"
4982 else
4983 case $cross_compiling:$ac_tool_warned in
4984 yes:)
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987 ac_tool_warned=yes ;;
4988 esac
4989 AR=$ac_ct_AR
4990 fi
4991 fi
4992
4993 : ${AR=ar}
4994
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4996 printf %s "checking the archiver ($AR) interface... " >&6; }
4997 if test ${am_cv_ar_interface+y}
4998 then :
4999 printf %s "(cached) " >&6
5000 else $as_nop
5001 ac_ext=c
5002 ac_cpp='$CPP $CPPFLAGS'
5003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007 am_cv_ar_interface=ar
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 int some_variable = 0;
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"
5013 then :
5014 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5016 (eval $am_ar_try) 2>&5
5017 ac_status=$?
5018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5019 test $ac_status = 0; }
5020 if test "$ac_status" -eq 0; then
5021 am_cv_ar_interface=ar
5022 else
5023 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5025 (eval $am_ar_try) 2>&5
5026 ac_status=$?
5027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028 test $ac_status = 0; }
5029 if test "$ac_status" -eq 0; then
5030 am_cv_ar_interface=lib
5031 else
5032 am_cv_ar_interface=unknown
5033 fi
5034 fi
5035 rm -f conftest.lib libconftest.a
5036
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5039 ac_ext=c
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044
5045 fi
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5047 printf "%s\n" "$am_cv_ar_interface" >&6; }
5048
5049 case $am_cv_ar_interface in
5050 ar)
5051 ;;
5052 lib)
5053 # Microsoft lib, so override with the ar-lib wrapper script.
5054 # FIXME: It is wrong to rewrite AR.
5055 # But if we don't then we get into trouble of one sort or another.
5056 # A longer-term fix would be to have automake use am__AR in this case,
5057 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5058 # similar.
5059 AR="$am_aux_dir/ar-lib $AR"
5060 ;;
5061 unknown)
5062 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5063 ;;
5064 esac
5065
5066
5067 # Libtool.
5068
5069 case `pwd` in
5070 *\ * | *\ *)
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5072 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5073 esac
5074
5075
5076
5077 macro_version='2.4.7'
5078 macro_revision='2.4.7'
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 ltmain=$ac_aux_dir/ltmain.sh
5094
5095
5096
5097 # Make sure we can run config.sub.
5098 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5099 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5100
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5102 printf %s "checking build system type... " >&6; }
5103 if test ${ac_cv_build+y}
5104 then :
5105 printf %s "(cached) " >&6
5106 else $as_nop
5107 ac_build_alias=$build_alias
5108 test "x$ac_build_alias" = x &&
5109 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5110 test "x$ac_build_alias" = x &&
5111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5112 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5113 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5114
5115 fi
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5117 printf "%s\n" "$ac_cv_build" >&6; }
5118 case $ac_cv_build in
5119 *-*-*) ;;
5120 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5121 esac
5122 build=$ac_cv_build
5123 ac_save_IFS=$IFS; IFS='-'
5124 set x $ac_cv_build
5125 shift
5126 build_cpu=$1
5127 build_vendor=$2
5128 shift; shift
5129 # Remember, the first character of IFS is used to create $*,
5130 # except with old shells:
5131 build_os=$*
5132 IFS=$ac_save_IFS
5133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5134
5135
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5137 printf %s "checking host system type... " >&6; }
5138 if test ${ac_cv_host+y}
5139 then :
5140 printf %s "(cached) " >&6
5141 else $as_nop
5142 if test "x$host_alias" = x; then
5143 ac_cv_host=$ac_cv_build
5144 else
5145 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5146 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5147 fi
5148
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5151 printf "%s\n" "$ac_cv_host" >&6; }
5152 case $ac_cv_host in
5153 *-*-*) ;;
5154 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5155 esac
5156 host=$ac_cv_host
5157 ac_save_IFS=$IFS; IFS='-'
5158 set x $ac_cv_host
5159 shift
5160 host_cpu=$1
5161 host_vendor=$2
5162 shift; shift
5163 # Remember, the first character of IFS is used to create $*,
5164 # except with old shells:
5165 host_os=$*
5166 IFS=$ac_save_IFS
5167 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5168
5169
5170 # Backslashify metacharacters that are still active within
5171 # double-quoted strings.
5172 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5173
5174 # Same as above, but do not quote variable references.
5175 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5176
5177 # Sed substitution to delay expansion of an escaped shell variable in a
5178 # double_quote_subst'ed string.
5179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5180
5181 # Sed substitution to delay expansion of an escaped single quote.
5182 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5183
5184 # Sed substitution to avoid accidental globbing in evaled expressions
5185 no_glob_subst='s/\*/\\\*/g'
5186
5187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5190
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5192 printf %s "checking how to print strings... " >&6; }
5193 # Test print first, because it will be a builtin if present.
5194 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5196 ECHO='print -r --'
5197 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5198 ECHO='printf %s\n'
5199 else
5200 # Use this function as a fallback that always works.
5201 func_fallback_echo ()
5202 {
5203 eval 'cat <<_LTECHO_EOF
5204 $1
5205 _LTECHO_EOF'
5206 }
5207 ECHO='func_fallback_echo'
5208 fi
5209
5210 # func_echo_all arg...
5211 # Invoke $ECHO with all args, space-separated.
5212 func_echo_all ()
5213 {
5214 $ECHO ""
5215 }
5216
5217 case $ECHO in
5218 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5219 printf "%s\n" "printf" >&6; } ;;
5220 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5221 printf "%s\n" "print -r" >&6; } ;;
5222 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5223 printf "%s\n" "cat" >&6; } ;;
5224 esac
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5240 printf %s "checking for a sed that does not truncate output... " >&6; }
5241 if test ${ac_cv_path_SED+y}
5242 then :
5243 printf %s "(cached) " >&6
5244 else $as_nop
5245 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5246 for ac_i in 1 2 3 4 5 6 7; do
5247 ac_script="$ac_script$as_nl$ac_script"
5248 done
5249 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5250 { ac_script=; unset ac_script;}
5251 if test -z "$SED"; then
5252 ac_path_SED_found=false
5253 # Loop through the user's path and test for each of PROGNAME-LIST
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 case $as_dir in #(((
5259 '') as_dir=./ ;;
5260 */) ;;
5261 *) as_dir=$as_dir/ ;;
5262 esac
5263 for ac_prog in sed gsed
5264 do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5267 as_fn_executable_p "$ac_path_SED" || continue
5268 # Check for GNU ac_path_SED and select it if it is found.
5269 # Check for GNU $ac_path_SED
5270 case `"$ac_path_SED" --version 2>&1` in
5271 *GNU*)
5272 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5273 *)
5274 ac_count=0
5275 printf %s 0123456789 >"conftest.in"
5276 while :
5277 do
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 printf "%s\n" '' >> "conftest.nl"
5282 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 as_fn_arith $ac_count + 1 && ac_count=$as_val
5285 if test $ac_count -gt ${ac_path_SED_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_SED="$ac_path_SED"
5288 ac_path_SED_max=$ac_count
5289 fi
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5292 done
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296 $ac_path_SED_found && break 3
5297 done
5298 done
5299 done
5300 IFS=$as_save_IFS
5301 if test -z "$ac_cv_path_SED"; then
5302 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5303 fi
5304 else
5305 ac_cv_path_SED=$SED
5306 fi
5307
5308 fi
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5310 printf "%s\n" "$ac_cv_path_SED" >&6; }
5311 SED="$ac_cv_path_SED"
5312 rm -f conftest.sed
5313
5314 test -z "$SED" && SED=sed
5315 Xsed="$SED -e 1s/^X//"
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5328 printf %s "checking for grep that handles long lines and -e... " >&6; }
5329 if test ${ac_cv_path_GREP+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else $as_nop
5333 if test -z "$GREP"; then
5334 ac_path_GREP_found=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5338 do
5339 IFS=$as_save_IFS
5340 case $as_dir in #(((
5341 '') as_dir=./ ;;
5342 */) ;;
5343 *) as_dir=$as_dir/ ;;
5344 esac
5345 for ac_prog in grep ggrep
5346 do
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5349 as_fn_executable_p "$ac_path_GREP" || continue
5350 # Check for GNU ac_path_GREP and select it if it is found.
5351 # Check for GNU $ac_path_GREP
5352 case `"$ac_path_GREP" --version 2>&1` in
5353 *GNU*)
5354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5355 *)
5356 ac_count=0
5357 printf %s 0123456789 >"conftest.in"
5358 while :
5359 do
5360 cat "conftest.in" "conftest.in" >"conftest.tmp"
5361 mv "conftest.tmp" "conftest.in"
5362 cp "conftest.in" "conftest.nl"
5363 printf "%s\n" 'GREP' >> "conftest.nl"
5364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5366 as_fn_arith $ac_count + 1 && ac_count=$as_val
5367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5368 # Best one so far, save it but keep looking for a better one
5369 ac_cv_path_GREP="$ac_path_GREP"
5370 ac_path_GREP_max=$ac_count
5371 fi
5372 # 10*(2^10) chars as input seems more than enough
5373 test $ac_count -gt 10 && break
5374 done
5375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5376 esac
5377
5378 $ac_path_GREP_found && break 3
5379 done
5380 done
5381 done
5382 IFS=$as_save_IFS
5383 if test -z "$ac_cv_path_GREP"; then
5384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5385 fi
5386 else
5387 ac_cv_path_GREP=$GREP
5388 fi
5389
5390 fi
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5392 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5393 GREP="$ac_cv_path_GREP"
5394
5395
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5397 printf %s "checking for egrep... " >&6; }
5398 if test ${ac_cv_path_EGREP+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else $as_nop
5402 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5403 then ac_cv_path_EGREP="$GREP -E"
5404 else
5405 if test -z "$EGREP"; then
5406 ac_path_EGREP_found=false
5407 # Loop through the user's path and test for each of PROGNAME-LIST
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5410 do
5411 IFS=$as_save_IFS
5412 case $as_dir in #(((
5413 '') as_dir=./ ;;
5414 */) ;;
5415 *) as_dir=$as_dir/ ;;
5416 esac
5417 for ac_prog in egrep
5418 do
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5421 as_fn_executable_p "$ac_path_EGREP" || continue
5422 # Check for GNU ac_path_EGREP and select it if it is found.
5423 # Check for GNU $ac_path_EGREP
5424 case `"$ac_path_EGREP" --version 2>&1` in
5425 *GNU*)
5426 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5427 *)
5428 ac_count=0
5429 printf %s 0123456789 >"conftest.in"
5430 while :
5431 do
5432 cat "conftest.in" "conftest.in" >"conftest.tmp"
5433 mv "conftest.tmp" "conftest.in"
5434 cp "conftest.in" "conftest.nl"
5435 printf "%s\n" 'EGREP' >> "conftest.nl"
5436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5438 as_fn_arith $ac_count + 1 && ac_count=$as_val
5439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5440 # Best one so far, save it but keep looking for a better one
5441 ac_cv_path_EGREP="$ac_path_EGREP"
5442 ac_path_EGREP_max=$ac_count
5443 fi
5444 # 10*(2^10) chars as input seems more than enough
5445 test $ac_count -gt 10 && break
5446 done
5447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5448 esac
5449
5450 $ac_path_EGREP_found && break 3
5451 done
5452 done
5453 done
5454 IFS=$as_save_IFS
5455 if test -z "$ac_cv_path_EGREP"; then
5456 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5457 fi
5458 else
5459 ac_cv_path_EGREP=$EGREP
5460 fi
5461
5462 fi
5463 fi
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5465 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5466 EGREP="$ac_cv_path_EGREP"
5467
5468
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5470 printf %s "checking for fgrep... " >&6; }
5471 if test ${ac_cv_path_FGREP+y}
5472 then :
5473 printf %s "(cached) " >&6
5474 else $as_nop
5475 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5476 then ac_cv_path_FGREP="$GREP -F"
5477 else
5478 if test -z "$FGREP"; then
5479 ac_path_FGREP_found=false
5480 # Loop through the user's path and test for each of PROGNAME-LIST
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5483 do
5484 IFS=$as_save_IFS
5485 case $as_dir in #(((
5486 '') as_dir=./ ;;
5487 */) ;;
5488 *) as_dir=$as_dir/ ;;
5489 esac
5490 for ac_prog in fgrep
5491 do
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5494 as_fn_executable_p "$ac_path_FGREP" || continue
5495 # Check for GNU ac_path_FGREP and select it if it is found.
5496 # Check for GNU $ac_path_FGREP
5497 case `"$ac_path_FGREP" --version 2>&1` in
5498 *GNU*)
5499 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5500 *)
5501 ac_count=0
5502 printf %s 0123456789 >"conftest.in"
5503 while :
5504 do
5505 cat "conftest.in" "conftest.in" >"conftest.tmp"
5506 mv "conftest.tmp" "conftest.in"
5507 cp "conftest.in" "conftest.nl"
5508 printf "%s\n" 'FGREP' >> "conftest.nl"
5509 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5511 as_fn_arith $ac_count + 1 && ac_count=$as_val
5512 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5513 # Best one so far, save it but keep looking for a better one
5514 ac_cv_path_FGREP="$ac_path_FGREP"
5515 ac_path_FGREP_max=$ac_count
5516 fi
5517 # 10*(2^10) chars as input seems more than enough
5518 test $ac_count -gt 10 && break
5519 done
5520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5521 esac
5522
5523 $ac_path_FGREP_found && break 3
5524 done
5525 done
5526 done
5527 IFS=$as_save_IFS
5528 if test -z "$ac_cv_path_FGREP"; then
5529 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5530 fi
5531 else
5532 ac_cv_path_FGREP=$FGREP
5533 fi
5534
5535 fi
5536 fi
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5538 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5539 FGREP="$ac_cv_path_FGREP"
5540
5541
5542 test -z "$GREP" && GREP=grep
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 # Check whether --with-gnu-ld was given.
5563 if test ${with_gnu_ld+y}
5564 then :
5565 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5566 else $as_nop
5567 with_gnu_ld=no
5568 fi
5569
5570 ac_prog=ld
5571 if test yes = "$GCC"; then
5572 # Check if gcc -print-prog-name=ld gives a path.
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5574 printf %s "checking for ld used by $CC... " >&6; }
5575 case $host in
5576 *-*-mingw*)
5577 # gcc leaves a trailing carriage return, which upsets mingw
5578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5579 *)
5580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5581 esac
5582 case $ac_prog in
5583 # Accept absolute paths.
5584 [\\/]* | ?:[\\/]*)
5585 re_direlt='/[^/][^/]*/\.\./'
5586 # Canonicalize the pathname of ld
5587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5590 done
5591 test -z "$LD" && LD=$ac_prog
5592 ;;
5593 "")
5594 # If it fails, then pretend we aren't using GCC.
5595 ac_prog=ld
5596 ;;
5597 *)
5598 # If it is relative, then search for the first ld in PATH.
5599 with_gnu_ld=unknown
5600 ;;
5601 esac
5602 elif test yes = "$with_gnu_ld"; then
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5604 printf %s "checking for GNU ld... " >&6; }
5605 else
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5607 printf %s "checking for non-GNU ld... " >&6; }
5608 fi
5609 if test ${lt_cv_path_LD+y}
5610 then :
5611 printf %s "(cached) " >&6
5612 else $as_nop
5613 if test -z "$LD"; then
5614 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5615 for ac_dir in $PATH; do
5616 IFS=$lt_save_ifs
5617 test -z "$ac_dir" && ac_dir=.
5618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5619 lt_cv_path_LD=$ac_dir/$ac_prog
5620 # Check to see if the program is GNU ld. I'd rather use --version,
5621 # but apparently some variants of GNU ld only accept -v.
5622 # Break only if it was the GNU/non-GNU ld that we prefer.
5623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5624 *GNU* | *'with BFD'*)
5625 test no != "$with_gnu_ld" && break
5626 ;;
5627 *)
5628 test yes != "$with_gnu_ld" && break
5629 ;;
5630 esac
5631 fi
5632 done
5633 IFS=$lt_save_ifs
5634 else
5635 lt_cv_path_LD=$LD # Let the user override the test with a path.
5636 fi
5637 fi
5638
5639 LD=$lt_cv_path_LD
5640 if test -n "$LD"; then
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5642 printf "%s\n" "$LD" >&6; }
5643 else
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 printf "%s\n" "no" >&6; }
5646 fi
5647 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5649 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5650 if test ${lt_cv_prog_gnu_ld+y}
5651 then :
5652 printf %s "(cached) " >&6
5653 else $as_nop
5654 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5655 case `$LD -v 2>&1 </dev/null` in
5656 *GNU* | *'with BFD'*)
5657 lt_cv_prog_gnu_ld=yes
5658 ;;
5659 *)
5660 lt_cv_prog_gnu_ld=no
5661 ;;
5662 esac
5663 fi
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5665 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5666 with_gnu_ld=$lt_cv_prog_gnu_ld
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5677 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5678 if test ${lt_cv_path_NM+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else $as_nop
5682 if test -n "$NM"; then
5683 # Let the user override the test.
5684 lt_cv_path_NM=$NM
5685 else
5686 lt_nm_to_check=${ac_tool_prefix}nm
5687 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5688 lt_nm_to_check="$lt_nm_to_check nm"
5689 fi
5690 for lt_tmp_nm in $lt_nm_to_check; do
5691 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5692 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5693 IFS=$lt_save_ifs
5694 test -z "$ac_dir" && ac_dir=.
5695 tmp_nm=$ac_dir/$lt_tmp_nm
5696 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5697 # Check to see if the nm accepts a BSD-compat flag.
5698 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5699 # nm: unknown option "B" ignored
5700 # Tru64's nm complains that /dev/null is an invalid object file
5701 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5702 case $build_os in
5703 mingw*) lt_bad_file=conftest.nm/nofile ;;
5704 *) lt_bad_file=/dev/null ;;
5705 esac
5706 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5707 *$lt_bad_file* | *'Invalid file or object type'*)
5708 lt_cv_path_NM="$tmp_nm -B"
5709 break 2
5710 ;;
5711 *)
5712 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5713 */dev/null*)
5714 lt_cv_path_NM="$tmp_nm -p"
5715 break 2
5716 ;;
5717 *)
5718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5719 continue # so that we can try to find one that supports BSD flags
5720 ;;
5721 esac
5722 ;;
5723 esac
5724 fi
5725 done
5726 IFS=$lt_save_ifs
5727 done
5728 : ${lt_cv_path_NM=no}
5729 fi
5730 fi
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5732 printf "%s\n" "$lt_cv_path_NM" >&6; }
5733 if test no != "$lt_cv_path_NM"; then
5734 NM=$lt_cv_path_NM
5735 else
5736 # Didn't find any BSD compatible name lister, look for dumpbin.
5737 if test -n "$DUMPBIN"; then :
5738 # Let the user override the test.
5739 else
5740 if test -n "$ac_tool_prefix"; then
5741 for ac_prog in dumpbin "link -dump"
5742 do
5743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 printf %s "checking for $ac_word... " >&6; }
5747 if test ${ac_cv_prog_DUMPBIN+y}
5748 then :
5749 printf %s "(cached) " >&6
5750 else $as_nop
5751 if test -n "$DUMPBIN"; then
5752 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757 IFS=$as_save_IFS
5758 case $as_dir in #(((
5759 '') as_dir=./ ;;
5760 */) ;;
5761 *) as_dir=$as_dir/ ;;
5762 esac
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5767 break 2
5768 fi
5769 done
5770 done
5771 IFS=$as_save_IFS
5772
5773 fi
5774 fi
5775 DUMPBIN=$ac_cv_prog_DUMPBIN
5776 if test -n "$DUMPBIN"; then
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5778 printf "%s\n" "$DUMPBIN" >&6; }
5779 else
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 printf "%s\n" "no" >&6; }
5782 fi
5783
5784
5785 test -n "$DUMPBIN" && break
5786 done
5787 fi
5788 if test -z "$DUMPBIN"; then
5789 ac_ct_DUMPBIN=$DUMPBIN
5790 for ac_prog in dumpbin "link -dump"
5791 do
5792 # Extract the first word of "$ac_prog", so it can be a program name with args.
5793 set dummy $ac_prog; ac_word=$2
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 printf %s "checking for $ac_word... " >&6; }
5796 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5797 then :
5798 printf %s "(cached) " >&6
5799 else $as_nop
5800 if test -n "$ac_ct_DUMPBIN"; then
5801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806 IFS=$as_save_IFS
5807 case $as_dir in #(((
5808 '') as_dir=./ ;;
5809 */) ;;
5810 *) as_dir=$as_dir/ ;;
5811 esac
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5821
5822 fi
5823 fi
5824 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5825 if test -n "$ac_ct_DUMPBIN"; then
5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5827 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5828 else
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830 printf "%s\n" "no" >&6; }
5831 fi
5832
5833
5834 test -n "$ac_ct_DUMPBIN" && break
5835 done
5836
5837 if test "x$ac_ct_DUMPBIN" = x; then
5838 DUMPBIN=":"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841 yes:)
5842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844 ac_tool_warned=yes ;;
5845 esac
5846 DUMPBIN=$ac_ct_DUMPBIN
5847 fi
5848 fi
5849
5850 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5851 *COFF*)
5852 DUMPBIN="$DUMPBIN -symbols -headers"
5853 ;;
5854 *)
5855 DUMPBIN=:
5856 ;;
5857 esac
5858 fi
5859
5860 if test : != "$DUMPBIN"; then
5861 NM=$DUMPBIN
5862 fi
5863 fi
5864 test -z "$NM" && NM=nm
5865
5866
5867
5868
5869
5870
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5872 printf %s "checking the name lister ($NM) interface... " >&6; }
5873 if test ${lt_cv_nm_interface+y}
5874 then :
5875 printf %s "(cached) " >&6
5876 else $as_nop
5877 lt_cv_nm_interface="BSD nm"
5878 echo "int some_variable = 0;" > conftest.$ac_ext
5879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5880 (eval "$ac_compile" 2>conftest.err)
5881 cat conftest.err >&5
5882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5884 cat conftest.err >&5
5885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5886 cat conftest.out >&5
5887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5888 lt_cv_nm_interface="MS dumpbin"
5889 fi
5890 rm -f conftest*
5891 fi
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5893 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5894
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5896 printf %s "checking whether ln -s works... " >&6; }
5897 LN_S=$as_ln_s
5898 if test "$LN_S" = "ln -s"; then
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 printf "%s\n" "yes" >&6; }
5901 else
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5903 printf "%s\n" "no, using $LN_S" >&6; }
5904 fi
5905
5906 # find the maximum length of command line arguments
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5908 printf %s "checking the maximum length of command line arguments... " >&6; }
5909 if test ${lt_cv_sys_max_cmd_len+y}
5910 then :
5911 printf %s "(cached) " >&6
5912 else $as_nop
5913 i=0
5914 teststring=ABCD
5915
5916 case $build_os in
5917 msdosdjgpp*)
5918 # On DJGPP, this test can blow up pretty badly due to problems in libc
5919 # (any single argument exceeding 2000 bytes causes a buffer overrun
5920 # during glob expansion). Even if it were fixed, the result of this
5921 # check would be larger than it should be.
5922 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5923 ;;
5924
5925 gnu*)
5926 # Under GNU Hurd, this test is not required because there is
5927 # no limit to the length of command line arguments.
5928 # Libtool will interpret -1 as no limit whatsoever
5929 lt_cv_sys_max_cmd_len=-1;
5930 ;;
5931
5932 cygwin* | mingw* | cegcc*)
5933 # On Win9x/ME, this test blows up -- it succeeds, but takes
5934 # about 5 minutes as the teststring grows exponentially.
5935 # Worse, since 9x/ME are not pre-emptively multitasking,
5936 # you end up with a "frozen" computer, even though with patience
5937 # the test eventually succeeds (with a max line length of 256k).
5938 # Instead, let's just punt: use the minimum linelength reported by
5939 # all of the supported platforms: 8192 (on NT/2K/XP).
5940 lt_cv_sys_max_cmd_len=8192;
5941 ;;
5942
5943 mint*)
5944 # On MiNT this can take a long time and run out of memory.
5945 lt_cv_sys_max_cmd_len=8192;
5946 ;;
5947
5948 amigaos*)
5949 # On AmigaOS with pdksh, this test takes hours, literally.
5950 # So we just punt and use a minimum line length of 8192.
5951 lt_cv_sys_max_cmd_len=8192;
5952 ;;
5953
5954 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5955 # This has been around since 386BSD, at least. Likely further.
5956 if test -x /sbin/sysctl; then
5957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5958 elif test -x /usr/sbin/sysctl; then
5959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5960 else
5961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5962 fi
5963 # And add a safety zone
5964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5966 ;;
5967
5968 interix*)
5969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5970 lt_cv_sys_max_cmd_len=196608
5971 ;;
5972
5973 os2*)
5974 # The test takes a long time on OS/2.
5975 lt_cv_sys_max_cmd_len=8192
5976 ;;
5977
5978 osf*)
5979 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5980 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5981 # nice to cause kernel panics so lets avoid the loop below.
5982 # First set a reasonable default.
5983 lt_cv_sys_max_cmd_len=16384
5984 #
5985 if test -x /sbin/sysconfig; then
5986 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5987 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5988 esac
5989 fi
5990 ;;
5991 sco3.2v5*)
5992 lt_cv_sys_max_cmd_len=102400
5993 ;;
5994 sysv5* | sco5v6* | sysv4.2uw2*)
5995 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5996 if test -n "$kargmax"; then
5997 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5998 else
5999 lt_cv_sys_max_cmd_len=32768
6000 fi
6001 ;;
6002 *)
6003 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6004 if test -n "$lt_cv_sys_max_cmd_len" && \
6005 test undefined != "$lt_cv_sys_max_cmd_len"; then
6006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6008 else
6009 # Make teststring a little bigger before we do anything with it.
6010 # a 1K string should be a reasonable start.
6011 for i in 1 2 3 4 5 6 7 8; do
6012 teststring=$teststring$teststring
6013 done
6014 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6015 # If test is not a shell built-in, we'll probably end up computing a
6016 # maximum length that is only half of the actual maximum length, but
6017 # we can't tell.
6018 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6019 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6020 test 17 != "$i" # 1/2 MB should be enough
6021 do
6022 i=`expr $i + 1`
6023 teststring=$teststring$teststring
6024 done
6025 # Only check the string length outside the loop.
6026 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6027 teststring=
6028 # Add a significant safety factor because C++ compilers can tack on
6029 # massive amounts of additional arguments before passing them to the
6030 # linker. It appears as though 1/2 is a usable value.
6031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6032 fi
6033 ;;
6034 esac
6035
6036 fi
6037
6038 if test -n "$lt_cv_sys_max_cmd_len"; then
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6040 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6041 else
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6043 printf "%s\n" "none" >&6; }
6044 fi
6045 max_cmd_len=$lt_cv_sys_max_cmd_len
6046
6047
6048
6049
6050
6051
6052 : ${CP="cp -f"}
6053 : ${MV="mv -f"}
6054 : ${RM="rm -f"}
6055
6056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6057 lt_unset=unset
6058 else
6059 lt_unset=false
6060 fi
6061
6062
6063
6064
6065
6066 # test EBCDIC or ASCII
6067 case `echo X|tr X '\101'` in
6068 A) # ASCII based system
6069 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6070 lt_SP2NL='tr \040 \012'
6071 lt_NL2SP='tr \015\012 \040\040'
6072 ;;
6073 *) # EBCDIC based system
6074 lt_SP2NL='tr \100 \n'
6075 lt_NL2SP='tr \r\n \100\100'
6076 ;;
6077 esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6088 printf %s "checking how to convert $build file names to $host format... " >&6; }
6089 if test ${lt_cv_to_host_file_cmd+y}
6090 then :
6091 printf %s "(cached) " >&6
6092 else $as_nop
6093 case $host in
6094 *-*-mingw* )
6095 case $build in
6096 *-*-mingw* ) # actually msys
6097 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6098 ;;
6099 *-*-cygwin* )
6100 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6101 ;;
6102 * ) # otherwise, assume *nix
6103 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6104 ;;
6105 esac
6106 ;;
6107 *-*-cygwin* )
6108 case $build in
6109 *-*-mingw* ) # actually msys
6110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6111 ;;
6112 *-*-cygwin* )
6113 lt_cv_to_host_file_cmd=func_convert_file_noop
6114 ;;
6115 * ) # otherwise, assume *nix
6116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6117 ;;
6118 esac
6119 ;;
6120 * ) # unhandled hosts (and "normal" native builds)
6121 lt_cv_to_host_file_cmd=func_convert_file_noop
6122 ;;
6123 esac
6124
6125 fi
6126
6127 to_host_file_cmd=$lt_cv_to_host_file_cmd
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6129 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6130
6131
6132
6133
6134
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6136 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6137 if test ${lt_cv_to_tool_file_cmd+y}
6138 then :
6139 printf %s "(cached) " >&6
6140 else $as_nop
6141 #assume ordinary cross tools, or native build.
6142 lt_cv_to_tool_file_cmd=func_convert_file_noop
6143 case $host in
6144 *-*-mingw* )
6145 case $build in
6146 *-*-mingw* ) # actually msys
6147 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6148 ;;
6149 esac
6150 ;;
6151 esac
6152
6153 fi
6154
6155 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6157 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6158
6159
6160
6161
6162
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6164 printf %s "checking for $LD option to reload object files... " >&6; }
6165 if test ${lt_cv_ld_reload_flag+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else $as_nop
6169 lt_cv_ld_reload_flag='-r'
6170 fi
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6172 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6175 "" | " "*) ;;
6176 *) reload_flag=" $reload_flag" ;;
6177 esac
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179 case $host_os in
6180 cygwin* | mingw* | pw32* | cegcc*)
6181 if test yes != "$GCC"; then
6182 reload_cmds=false
6183 fi
6184 ;;
6185 darwin*)
6186 if test yes = "$GCC"; then
6187 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6188 else
6189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6190 fi
6191 ;;
6192 esac
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 if test -n "$ac_tool_prefix"; then
6203 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6204 set dummy ${ac_tool_prefix}file; ac_word=$2
6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 printf %s "checking for $ac_word... " >&6; }
6207 if test ${ac_cv_prog_FILECMD+y}
6208 then :
6209 printf %s "(cached) " >&6
6210 else $as_nop
6211 if test -n "$FILECMD"; then
6212 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6216 do
6217 IFS=$as_save_IFS
6218 case $as_dir in #(((
6219 '') as_dir=./ ;;
6220 */) ;;
6221 *) as_dir=$as_dir/ ;;
6222 esac
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 FILECMD=$ac_cv_prog_FILECMD
6236 if test -n "$FILECMD"; then
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6238 printf "%s\n" "$FILECMD" >&6; }
6239 else
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 printf "%s\n" "no" >&6; }
6242 fi
6243
6244
6245 fi
6246 if test -z "$ac_cv_prog_FILECMD"; then
6247 ac_ct_FILECMD=$FILECMD
6248 # Extract the first word of "file", so it can be a program name with args.
6249 set dummy file; ac_word=$2
6250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 printf %s "checking for $ac_word... " >&6; }
6252 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6253 then :
6254 printf %s "(cached) " >&6
6255 else $as_nop
6256 if test -n "$ac_ct_FILECMD"; then
6257 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 case $as_dir in #(((
6264 '') as_dir=./ ;;
6265 */) ;;
6266 *) as_dir=$as_dir/ ;;
6267 esac
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6270 ac_cv_prog_ac_ct_FILECMD="file"
6271 printf "%s\n" "$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_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6281 if test -n "$ac_ct_FILECMD"; then
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6283 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6284 else
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 printf "%s\n" "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_FILECMD" = x; then
6290 FILECMD=":"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 FILECMD=$ac_ct_FILECMD
6299 fi
6300 else
6301 FILECMD="$ac_cv_prog_FILECMD"
6302 fi
6303
6304
6305
6306
6307
6308
6309
6310 if test -n "$ac_tool_prefix"; then
6311 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6312 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 printf %s "checking for $ac_word... " >&6; }
6315 if test ${ac_cv_prog_OBJDUMP+y}
6316 then :
6317 printf %s "(cached) " >&6
6318 else $as_nop
6319 if test -n "$OBJDUMP"; then
6320 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325 IFS=$as_save_IFS
6326 case $as_dir in #(((
6327 '') as_dir=./ ;;
6328 */) ;;
6329 *) as_dir=$as_dir/ ;;
6330 esac
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 OBJDUMP=$ac_cv_prog_OBJDUMP
6344 if test -n "$OBJDUMP"; then
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6346 printf "%s\n" "$OBJDUMP" >&6; }
6347 else
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 printf "%s\n" "no" >&6; }
6350 fi
6351
6352
6353 fi
6354 if test -z "$ac_cv_prog_OBJDUMP"; then
6355 ac_ct_OBJDUMP=$OBJDUMP
6356 # Extract the first word of "objdump", so it can be a program name with args.
6357 set dummy objdump; ac_word=$2
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 printf %s "checking for $ac_word... " >&6; }
6360 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6361 then :
6362 printf %s "(cached) " >&6
6363 else $as_nop
6364 if test -n "$ac_ct_OBJDUMP"; then
6365 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 case $as_dir in #(((
6372 '') as_dir=./ ;;
6373 */) ;;
6374 *) as_dir=$as_dir/ ;;
6375 esac
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6380 break 2
6381 fi
6382 done
6383 done
6384 IFS=$as_save_IFS
6385
6386 fi
6387 fi
6388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6389 if test -n "$ac_ct_OBJDUMP"; then
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6391 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6392 else
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 printf "%s\n" "no" >&6; }
6395 fi
6396
6397 if test "x$ac_ct_OBJDUMP" = x; then
6398 OBJDUMP="false"
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406 OBJDUMP=$ac_ct_OBJDUMP
6407 fi
6408 else
6409 OBJDUMP="$ac_cv_prog_OBJDUMP"
6410 fi
6411
6412 test -z "$OBJDUMP" && OBJDUMP=objdump
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6423 printf %s "checking how to recognize dependent libraries... " >&6; }
6424 if test ${lt_cv_deplibs_check_method+y}
6425 then :
6426 printf %s "(cached) " >&6
6427 else $as_nop
6428 lt_cv_file_magic_cmd='$MAGIC_CMD'
6429 lt_cv_file_magic_test_file=
6430 lt_cv_deplibs_check_method='unknown'
6431 # Need to set the preceding variable on all platforms that support
6432 # interlibrary dependencies.
6433 # 'none' -- dependencies not supported.
6434 # 'unknown' -- same as none, but documents that we really don't know.
6435 # 'pass_all' -- all dependencies passed with no checks.
6436 # 'test_compile' -- check by making test program.
6437 # 'file_magic [[regex]]' -- check by looking for files in library path
6438 # that responds to the $file_magic_cmd with a given extended regex.
6439 # If you have 'file' or equivalent on your system and you're not sure
6440 # whether 'pass_all' will *always* work, you probably want this one.
6441
6442 case $host_os in
6443 aix[4-9]*)
6444 lt_cv_deplibs_check_method=pass_all
6445 ;;
6446
6447 beos*)
6448 lt_cv_deplibs_check_method=pass_all
6449 ;;
6450
6451 bsdi[45]*)
6452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6453 lt_cv_file_magic_cmd='$FILECMD -L'
6454 lt_cv_file_magic_test_file=/shlib/libc.so
6455 ;;
6456
6457 cygwin*)
6458 # func_win32_libid is a shell function defined in ltmain.sh
6459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6460 lt_cv_file_magic_cmd='func_win32_libid'
6461 ;;
6462
6463 mingw* | pw32*)
6464 # Base MSYS/MinGW do not provide the 'file' command needed by
6465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6466 # unless we find 'file', for example because we are cross-compiling.
6467 if ( file / ) >/dev/null 2>&1; then
6468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6469 lt_cv_file_magic_cmd='func_win32_libid'
6470 else
6471 # Keep this pattern in sync with the one in func_win32_libid.
6472 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6473 lt_cv_file_magic_cmd='$OBJDUMP -f'
6474 fi
6475 ;;
6476
6477 cegcc*)
6478 # use the weaker test based on 'objdump'. See mingw*.
6479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6480 lt_cv_file_magic_cmd='$OBJDUMP -f'
6481 ;;
6482
6483 darwin* | rhapsody*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486
6487 freebsd* | dragonfly* | midnightbsd*)
6488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6489 case $host_cpu in
6490 i*86 )
6491 # Not sure whether the presence of OpenBSD here was a mistake.
6492 # Let's accept both of them until this is cleared up.
6493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6494 lt_cv_file_magic_cmd=$FILECMD
6495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6496 ;;
6497 esac
6498 else
6499 lt_cv_deplibs_check_method=pass_all
6500 fi
6501 ;;
6502
6503 haiku*)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507 hpux10.20* | hpux11*)
6508 lt_cv_file_magic_cmd=$FILECMD
6509 case $host_cpu in
6510 ia64*)
6511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6513 ;;
6514 hppa*64*)
6515 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]'
6516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6517 ;;
6518 *)
6519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6521 ;;
6522 esac
6523 ;;
6524
6525 interix[3-9]*)
6526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6528 ;;
6529
6530 irix5* | irix6* | nonstopux*)
6531 case $LD in
6532 *-32|*"-32 ") libmagic=32-bit;;
6533 *-n32|*"-n32 ") libmagic=N32;;
6534 *-64|*"-64 ") libmagic=64-bit;;
6535 *) libmagic=never-match;;
6536 esac
6537 lt_cv_deplibs_check_method=pass_all
6538 ;;
6539
6540 # This must be glibc/ELF.
6541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544
6545 netbsd* | netbsdelf*-gnu)
6546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6548 else
6549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6550 fi
6551 ;;
6552
6553 newos6*)
6554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6555 lt_cv_file_magic_cmd=$FILECMD
6556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6557 ;;
6558
6559 *nto* | *qnx*)
6560 lt_cv_deplibs_check_method=pass_all
6561 ;;
6562
6563 openbsd* | bitrig*)
6564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6566 else
6567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6568 fi
6569 ;;
6570
6571 osf3* | osf4* | osf5*)
6572 lt_cv_deplibs_check_method=pass_all
6573 ;;
6574
6575 rdos*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 solaris*)
6580 lt_cv_deplibs_check_method=pass_all
6581 ;;
6582
6583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6584 lt_cv_deplibs_check_method=pass_all
6585 ;;
6586
6587 sysv4 | sysv4.3*)
6588 case $host_vendor in
6589 motorola)
6590 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]'
6591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6592 ;;
6593 ncr)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596 sequent)
6597 lt_cv_file_magic_cmd='/bin/file'
6598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6599 ;;
6600 sni)
6601 lt_cv_file_magic_cmd='/bin/file'
6602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6603 lt_cv_file_magic_test_file=/lib/libc.so
6604 ;;
6605 siemens)
6606 lt_cv_deplibs_check_method=pass_all
6607 ;;
6608 pc)
6609 lt_cv_deplibs_check_method=pass_all
6610 ;;
6611 esac
6612 ;;
6613
6614 tpf*)
6615 lt_cv_deplibs_check_method=pass_all
6616 ;;
6617 os2*)
6618 lt_cv_deplibs_check_method=pass_all
6619 ;;
6620 esac
6621
6622 fi
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6624 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6625
6626 file_magic_glob=
6627 want_nocaseglob=no
6628 if test "$build" = "$host"; then
6629 case $host_os in
6630 mingw* | pw32*)
6631 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6632 want_nocaseglob=yes
6633 else
6634 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6635 fi
6636 ;;
6637 esac
6638 fi
6639
6640 file_magic_cmd=$lt_cv_file_magic_cmd
6641 deplibs_check_method=$lt_cv_deplibs_check_method
6642 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665 if test -n "$ac_tool_prefix"; then
6666 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6667 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 printf %s "checking for $ac_word... " >&6; }
6670 if test ${ac_cv_prog_DLLTOOL+y}
6671 then :
6672 printf %s "(cached) " >&6
6673 else $as_nop
6674 if test -n "$DLLTOOL"; then
6675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680 IFS=$as_save_IFS
6681 case $as_dir in #(((
6682 '') as_dir=./ ;;
6683 */) ;;
6684 *) as_dir=$as_dir/ ;;
6685 esac
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6690 break 2
6691 fi
6692 done
6693 done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 DLLTOOL=$ac_cv_prog_DLLTOOL
6699 if test -n "$DLLTOOL"; then
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6701 printf "%s\n" "$DLLTOOL" >&6; }
6702 else
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 printf "%s\n" "no" >&6; }
6705 fi
6706
6707
6708 fi
6709 if test -z "$ac_cv_prog_DLLTOOL"; then
6710 ac_ct_DLLTOOL=$DLLTOOL
6711 # Extract the first word of "dlltool", so it can be a program name with args.
6712 set dummy dlltool; ac_word=$2
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 printf %s "checking for $ac_word... " >&6; }
6715 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else $as_nop
6719 if test -n "$ac_ct_DLLTOOL"; then
6720 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 case $as_dir in #(((
6727 '') as_dir=./ ;;
6728 */) ;;
6729 *) as_dir=$as_dir/ ;;
6730 esac
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6744 if test -n "$ac_ct_DLLTOOL"; then
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6746 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6747 else
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6749 printf "%s\n" "no" >&6; }
6750 fi
6751
6752 if test "x$ac_ct_DLLTOOL" = x; then
6753 DLLTOOL="false"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 DLLTOOL=$ac_ct_DLLTOOL
6762 fi
6763 else
6764 DLLTOOL="$ac_cv_prog_DLLTOOL"
6765 fi
6766
6767 test -z "$DLLTOOL" && DLLTOOL=dlltool
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6779 printf %s "checking how to associate runtime and link libraries... " >&6; }
6780 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6781 then :
6782 printf %s "(cached) " >&6
6783 else $as_nop
6784 lt_cv_sharedlib_from_linklib_cmd='unknown'
6785
6786 case $host_os in
6787 cygwin* | mingw* | pw32* | cegcc*)
6788 # two different shell functions defined in ltmain.sh;
6789 # decide which one to use based on capabilities of $DLLTOOL
6790 case `$DLLTOOL --help 2>&1` in
6791 *--identify-strict*)
6792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6793 ;;
6794 *)
6795 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6796 ;;
6797 esac
6798 ;;
6799 *)
6800 # fallback: assume linklib IS sharedlib
6801 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6802 ;;
6803 esac
6804
6805 fi
6806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6807 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6808 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6809 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6810
6811
6812
6813
6814
6815
6816
6817 if test -n "$ac_tool_prefix"; then
6818 for ac_prog in ar
6819 do
6820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 printf %s "checking for $ac_word... " >&6; }
6824 if test ${ac_cv_prog_AR+y}
6825 then :
6826 printf %s "(cached) " >&6
6827 else $as_nop
6828 if test -n "$AR"; then
6829 ac_cv_prog_AR="$AR" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 case $as_dir in #(((
6836 '') as_dir=./ ;;
6837 */) ;;
6838 *) as_dir=$as_dir/ ;;
6839 esac
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6842 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 AR=$ac_cv_prog_AR
6853 if test -n "$AR"; then
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6855 printf "%s\n" "$AR" >&6; }
6856 else
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6858 printf "%s\n" "no" >&6; }
6859 fi
6860
6861
6862 test -n "$AR" && break
6863 done
6864 fi
6865 if test -z "$AR"; then
6866 ac_ct_AR=$AR
6867 for ac_prog in ar
6868 do
6869 # Extract the first word of "$ac_prog", so it can be a program name with args.
6870 set dummy $ac_prog; ac_word=$2
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 printf %s "checking for $ac_word... " >&6; }
6873 if test ${ac_cv_prog_ac_ct_AR+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else $as_nop
6877 if test -n "$ac_ct_AR"; then
6878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883 IFS=$as_save_IFS
6884 case $as_dir in #(((
6885 '') as_dir=./ ;;
6886 */) ;;
6887 *) as_dir=$as_dir/ ;;
6888 esac
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_AR="$ac_prog"
6892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6902 if test -n "$ac_ct_AR"; then
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6904 printf "%s\n" "$ac_ct_AR" >&6; }
6905 else
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 printf "%s\n" "no" >&6; }
6908 fi
6909
6910
6911 test -n "$ac_ct_AR" && break
6912 done
6913
6914 if test "x$ac_ct_AR" = x; then
6915 AR="false"
6916 else
6917 case $cross_compiling:$ac_tool_warned in
6918 yes:)
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6921 ac_tool_warned=yes ;;
6922 esac
6923 AR=$ac_ct_AR
6924 fi
6925 fi
6926
6927 : ${AR=ar}
6928
6929
6930
6931
6932
6933
6934 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6935 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6936 # higher priority because thats what people were doing historically (setting
6937 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6938 # variable obsoleted/removed.
6939
6940 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6941 lt_ar_flags=$AR_FLAGS
6942
6943
6944
6945
6946
6947
6948 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6949 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6950
6951
6952
6953
6954
6955
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6957 printf %s "checking for archiver @FILE support... " >&6; }
6958 if test ${lt_cv_ar_at_file+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else $as_nop
6962 lt_cv_ar_at_file=no
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 int
6967 main (void)
6968 {
6969
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_compile "$LINENO"
6975 then :
6976 echo conftest.$ac_objext > conftest.lst
6977 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6979 (eval $lt_ar_try) 2>&5
6980 ac_status=$?
6981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6982 test $ac_status = 0; }
6983 if test 0 -eq "$ac_status"; then
6984 # Ensure the archiver fails upon bogus file names.
6985 rm -f conftest.$ac_objext libconftest.a
6986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6987 (eval $lt_ar_try) 2>&5
6988 ac_status=$?
6989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }
6991 if test 0 -ne "$ac_status"; then
6992 lt_cv_ar_at_file=@
6993 fi
6994 fi
6995 rm -f conftest.* libconftest.a
6996
6997 fi
6998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6999
7000 fi
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7002 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7003
7004 if test no = "$lt_cv_ar_at_file"; then
7005 archiver_list_spec=
7006 else
7007 archiver_list_spec=$lt_cv_ar_at_file
7008 fi
7009
7010
7011
7012
7013
7014
7015
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}strip; ac_word=$2
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 printf %s "checking for $ac_word... " >&6; }
7021 if test ${ac_cv_prog_STRIP+y}
7022 then :
7023 printf %s "(cached) " >&6
7024 else $as_nop
7025 if test -n "$STRIP"; then
7026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 case $as_dir in #(((
7033 '') as_dir=./ ;;
7034 */) ;;
7035 *) as_dir=$as_dir/ ;;
7036 esac
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7041 break 2
7042 fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047 fi
7048 fi
7049 STRIP=$ac_cv_prog_STRIP
7050 if test -n "$STRIP"; then
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7052 printf "%s\n" "$STRIP" >&6; }
7053 else
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 printf "%s\n" "no" >&6; }
7056 fi
7057
7058
7059 fi
7060 if test -z "$ac_cv_prog_STRIP"; then
7061 ac_ct_STRIP=$STRIP
7062 # Extract the first word of "strip", so it can be a program name with args.
7063 set dummy strip; ac_word=$2
7064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 printf %s "checking for $ac_word... " >&6; }
7066 if test ${ac_cv_prog_ac_ct_STRIP+y}
7067 then :
7068 printf %s "(cached) " >&6
7069 else $as_nop
7070 if test -n "$ac_ct_STRIP"; then
7071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076 IFS=$as_save_IFS
7077 case $as_dir in #(((
7078 '') as_dir=./ ;;
7079 */) ;;
7080 *) as_dir=$as_dir/ ;;
7081 esac
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_STRIP="strip"
7085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7086 break 2
7087 fi
7088 done
7089 done
7090 IFS=$as_save_IFS
7091
7092 fi
7093 fi
7094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7095 if test -n "$ac_ct_STRIP"; then
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7097 printf "%s\n" "$ac_ct_STRIP" >&6; }
7098 else
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 printf "%s\n" "no" >&6; }
7101 fi
7102
7103 if test "x$ac_ct_STRIP" = x; then
7104 STRIP=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 STRIP=$ac_ct_STRIP
7113 fi
7114 else
7115 STRIP="$ac_cv_prog_STRIP"
7116 fi
7117
7118 test -z "$STRIP" && STRIP=:
7119
7120
7121
7122
7123
7124
7125 if test -n "$ac_tool_prefix"; then
7126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7129 printf %s "checking for $ac_word... " >&6; }
7130 if test ${ac_cv_prog_RANLIB+y}
7131 then :
7132 printf %s "(cached) " >&6
7133 else $as_nop
7134 if test -n "$RANLIB"; then
7135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 case $as_dir in #(((
7142 '') as_dir=./ ;;
7143 */) ;;
7144 *) as_dir=$as_dir/ ;;
7145 esac
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 RANLIB=$ac_cv_prog_RANLIB
7159 if test -n "$RANLIB"; then
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7161 printf "%s\n" "$RANLIB" >&6; }
7162 else
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 printf "%s\n" "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_RANLIB"; then
7170 ac_ct_RANLIB=$RANLIB
7171 # Extract the first word of "ranlib", so it can be a program name with args.
7172 set dummy ranlib; ac_word=$2
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 printf %s "checking for $ac_word... " >&6; }
7175 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179 if test -n "$ac_ct_RANLIB"; then
7180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7181 else
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7183 for as_dir in $PATH
7184 do
7185 IFS=$as_save_IFS
7186 case $as_dir in #(((
7187 '') as_dir=./ ;;
7188 */) ;;
7189 *) as_dir=$as_dir/ ;;
7190 esac
7191 for ac_exec_ext in '' $ac_executable_extensions; do
7192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7193 ac_cv_prog_ac_ct_RANLIB="ranlib"
7194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7195 break 2
7196 fi
7197 done
7198 done
7199 IFS=$as_save_IFS
7200
7201 fi
7202 fi
7203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7204 if test -n "$ac_ct_RANLIB"; then
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7206 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7207 else
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7209 printf "%s\n" "no" >&6; }
7210 fi
7211
7212 if test "x$ac_ct_RANLIB" = x; then
7213 RANLIB=":"
7214 else
7215 case $cross_compiling:$ac_tool_warned in
7216 yes:)
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7218 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7219 ac_tool_warned=yes ;;
7220 esac
7221 RANLIB=$ac_ct_RANLIB
7222 fi
7223 else
7224 RANLIB="$ac_cv_prog_RANLIB"
7225 fi
7226
7227 test -z "$RANLIB" && RANLIB=:
7228
7229
7230
7231
7232
7233
7234 # Determine commands to create old-style static archives.
7235 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7236 old_postinstall_cmds='chmod 644 $oldlib'
7237 old_postuninstall_cmds=
7238
7239 if test -n "$RANLIB"; then
7240 case $host_os in
7241 bitrig* | openbsd*)
7242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7243 ;;
7244 *)
7245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7246 ;;
7247 esac
7248 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7249 fi
7250
7251 case $host_os in
7252 darwin*)
7253 lock_old_archive_extraction=yes ;;
7254 *)
7255 lock_old_archive_extraction=no ;;
7256 esac
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 # If no C compiler was specified, use CC.
7297 LTCC=${LTCC-"$CC"}
7298
7299 # If no C compiler flags were specified, use CFLAGS.
7300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7301
7302 # Allow CC to be a program name with arguments.
7303 compiler=$CC
7304
7305
7306 # Check for command to grab the raw symbol name followed by C symbol from nm.
7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7308 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7309 if test ${lt_cv_sys_global_symbol_pipe+y}
7310 then :
7311 printf %s "(cached) " >&6
7312 else $as_nop
7313
7314 # These are sane defaults that work on at least a few old systems.
7315 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7316
7317 # Character class describing NM global symbol codes.
7318 symcode='[BCDEGRST]'
7319
7320 # Regexp to match symbols that can be accessed directly from C.
7321 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7322
7323 # Define system-specific variables.
7324 case $host_os in
7325 aix*)
7326 symcode='[BCDT]'
7327 ;;
7328 cygwin* | mingw* | pw32* | cegcc*)
7329 symcode='[ABCDGISTW]'
7330 ;;
7331 hpux*)
7332 if test ia64 = "$host_cpu"; then
7333 symcode='[ABCDEGRST]'
7334 fi
7335 ;;
7336 irix* | nonstopux*)
7337 symcode='[BCDEGRST]'
7338 ;;
7339 osf*)
7340 symcode='[BCDEGQRST]'
7341 ;;
7342 solaris*)
7343 symcode='[BDRT]'
7344 ;;
7345 sco3.2v5*)
7346 symcode='[DT]'
7347 ;;
7348 sysv4.2uw2*)
7349 symcode='[DT]'
7350 ;;
7351 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7352 symcode='[ABDT]'
7353 ;;
7354 sysv4)
7355 symcode='[DFNSTU]'
7356 ;;
7357 esac
7358
7359 # If we're using GNU nm, then use its standard symbol codes.
7360 case `$NM -V 2>&1` in
7361 *GNU* | *'with BFD'*)
7362 symcode='[ABCDGIRSTW]' ;;
7363 esac
7364
7365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7366 # Gets list of data symbols to import.
7367 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7368 # Adjust the below global symbol transforms to fixup imported variables.
7369 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7370 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7371 lt_c_name_lib_hook="\
7372 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7373 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7374 else
7375 # Disable hooks by default.
7376 lt_cv_sys_global_symbol_to_import=
7377 lt_cdecl_hook=
7378 lt_c_name_hook=
7379 lt_c_name_lib_hook=
7380 fi
7381
7382 # Transform an extracted symbol line into a proper C declaration.
7383 # Some systems (esp. on ia64) link data and code symbols differently,
7384 # so use this general approach.
7385 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7386 $lt_cdecl_hook\
7387 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7388 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7389
7390 # Transform an extracted symbol line into symbol name and symbol address
7391 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7392 $lt_c_name_hook\
7393 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7394 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7395
7396 # Transform an extracted symbol line into symbol name with lib prefix and
7397 # symbol address.
7398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7399 $lt_c_name_lib_hook\
7400 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7401 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7402 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7403
7404 # Handle CRLF in mingw tool chain
7405 opt_cr=
7406 case $build_os in
7407 mingw*)
7408 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7409 ;;
7410 esac
7411
7412 # Try without a prefix underscore, then with it.
7413 for ac_symprfx in "" "_"; do
7414
7415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7416 symxfrm="\\1 $ac_symprfx\\2 \\2"
7417
7418 # Write the raw and C identifiers.
7419 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7420 # Fake it for dumpbin and say T for any non-static function,
7421 # D for any global variable and I for any imported variable.
7422 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7423 # which start with @ or ?.
7424 lt_cv_sys_global_symbol_pipe="$AWK '"\
7425 " {last_section=section; section=\$ 3};"\
7426 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7427 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7428 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7429 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7430 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7431 " \$ 0!~/External *\|/{next};"\
7432 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7433 " {if(hide[section]) next};"\
7434 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7435 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7436 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7437 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7438 " ' prfx=^$ac_symprfx"
7439 else
7440 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7441 fi
7442 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7443
7444 # Check to see that the pipe works correctly.
7445 pipe_works=no
7446
7447 rm -f conftest*
7448 cat > conftest.$ac_ext <<_LT_EOF
7449 #ifdef __cplusplus
7450 extern "C" {
7451 #endif
7452 char nm_test_var;
7453 void nm_test_func(void);
7454 void nm_test_func(void){}
7455 #ifdef __cplusplus
7456 }
7457 #endif
7458 int main(){nm_test_var='a';nm_test_func();return(0);}
7459 _LT_EOF
7460
7461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7462 (eval $ac_compile) 2>&5
7463 ac_status=$?
7464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465 test $ac_status = 0; }; then
7466 # Now try to grab the symbols.
7467 nlist=conftest.nm
7468 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7469 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7470 # Try sorting and uniquifying the output.
7471 if sort "$nlist" | uniq > "$nlist"T; then
7472 mv -f "$nlist"T "$nlist"
7473 else
7474 rm -f "$nlist"T
7475 fi
7476
7477 # Make sure that we snagged all the symbols we need.
7478 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7479 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7480 cat <<_LT_EOF > conftest.$ac_ext
7481 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7482 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7483 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7484 relocations are performed -- see ld's documentation on pseudo-relocs. */
7485 # define LT_DLSYM_CONST
7486 #elif defined __osf__
7487 /* This system does not cope well with relocations in const data. */
7488 # define LT_DLSYM_CONST
7489 #else
7490 # define LT_DLSYM_CONST const
7491 #endif
7492
7493 #ifdef __cplusplus
7494 extern "C" {
7495 #endif
7496
7497 _LT_EOF
7498 # Now generate the symbol file.
7499 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7500
7501 cat <<_LT_EOF >> conftest.$ac_ext
7502
7503 /* The mapping between symbol names and symbols. */
7504 LT_DLSYM_CONST struct {
7505 const char *name;
7506 void *address;
7507 }
7508 lt__PROGRAM__LTX_preloaded_symbols[] =
7509 {
7510 { "@PROGRAM@", (void *) 0 },
7511 _LT_EOF
7512 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7513 cat <<\_LT_EOF >> conftest.$ac_ext
7514 {0, (void *) 0}
7515 };
7516
7517 /* This works around a problem in FreeBSD linker */
7518 #ifdef FREEBSD_WORKAROUND
7519 static const void *lt_preloaded_setup() {
7520 return lt__PROGRAM__LTX_preloaded_symbols;
7521 }
7522 #endif
7523
7524 #ifdef __cplusplus
7525 }
7526 #endif
7527 _LT_EOF
7528 # Now try linking the two files.
7529 mv conftest.$ac_objext conftstm.$ac_objext
7530 lt_globsym_save_LIBS=$LIBS
7531 lt_globsym_save_CFLAGS=$CFLAGS
7532 LIBS=conftstm.$ac_objext
7533 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7535 (eval $ac_link) 2>&5
7536 ac_status=$?
7537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7539 pipe_works=yes
7540 fi
7541 LIBS=$lt_globsym_save_LIBS
7542 CFLAGS=$lt_globsym_save_CFLAGS
7543 else
7544 echo "cannot find nm_test_func in $nlist" >&5
7545 fi
7546 else
7547 echo "cannot find nm_test_var in $nlist" >&5
7548 fi
7549 else
7550 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7551 fi
7552 else
7553 echo "$progname: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 fi
7556 rm -rf conftest* conftst*
7557
7558 # Do not use the global_symbol_pipe unless it works.
7559 if test yes = "$pipe_works"; then
7560 break
7561 else
7562 lt_cv_sys_global_symbol_pipe=
7563 fi
7564 done
7565
7566 fi
7567
7568 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7569 lt_cv_sys_global_symbol_to_cdecl=
7570 fi
7571 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7573 printf "%s\n" "failed" >&6; }
7574 else
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7576 printf "%s\n" "ok" >&6; }
7577 fi
7578
7579 # Response file support.
7580 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7581 nm_file_list_spec='@'
7582 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7583 nm_file_list_spec='@'
7584 fi
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7623 printf %s "checking for sysroot... " >&6; }
7624
7625 # Check whether --with-sysroot was given.
7626 if test ${with_sysroot+y}
7627 then :
7628 withval=$with_sysroot;
7629 else $as_nop
7630 with_sysroot=no
7631 fi
7632
7633
7634 lt_sysroot=
7635 case $with_sysroot in #(
7636 yes)
7637 if test yes = "$GCC"; then
7638 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7639 fi
7640 ;; #(
7641 /*)
7642 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7643 ;; #(
7644 no|'')
7645 ;; #(
7646 *)
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7648 printf "%s\n" "$with_sysroot" >&6; }
7649 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7650 ;;
7651 esac
7652
7653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7654 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7655
7656
7657
7658
7659
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7661 printf %s "checking for a working dd... " >&6; }
7662 if test ${ac_cv_path_lt_DD+y}
7663 then :
7664 printf %s "(cached) " >&6
7665 else $as_nop
7666 printf 0123456789abcdef0123456789abcdef >conftest.i
7667 cat conftest.i conftest.i >conftest2.i
7668 : ${lt_DD:=$DD}
7669 if test -z "$lt_DD"; then
7670 ac_path_lt_DD_found=false
7671 # Loop through the user's path and test for each of PROGNAME-LIST
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675 IFS=$as_save_IFS
7676 case $as_dir in #(((
7677 '') as_dir=./ ;;
7678 */) ;;
7679 *) as_dir=$as_dir/ ;;
7680 esac
7681 for ac_prog in dd
7682 do
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7685 as_fn_executable_p "$ac_path_lt_DD" || continue
7686 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7687 cmp -s conftest.i conftest.out \
7688 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7689 fi
7690 $ac_path_lt_DD_found && break 3
7691 done
7692 done
7693 done
7694 IFS=$as_save_IFS
7695 if test -z "$ac_cv_path_lt_DD"; then
7696 :
7697 fi
7698 else
7699 ac_cv_path_lt_DD=$lt_DD
7700 fi
7701
7702 rm -f conftest.i conftest2.i conftest.out
7703 fi
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7705 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7706
7707
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7709 printf %s "checking how to truncate binary pipes... " >&6; }
7710 if test ${lt_cv_truncate_bin+y}
7711 then :
7712 printf %s "(cached) " >&6
7713 else $as_nop
7714 printf 0123456789abcdef0123456789abcdef >conftest.i
7715 cat conftest.i conftest.i >conftest2.i
7716 lt_cv_truncate_bin=
7717 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7718 cmp -s conftest.i conftest.out \
7719 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7720 fi
7721 rm -f conftest.i conftest2.i conftest.out
7722 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7723 fi
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7725 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7726
7727
7728
7729
7730
7731
7732
7733 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7734 func_cc_basename ()
7735 {
7736 for cc_temp in $*""; do
7737 case $cc_temp in
7738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7740 \-*) ;;
7741 *) break;;
7742 esac
7743 done
7744 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7745 }
7746
7747 # Check whether --enable-libtool-lock was given.
7748 if test ${enable_libtool_lock+y}
7749 then :
7750 enableval=$enable_libtool_lock;
7751 fi
7752
7753 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7754
7755 # Some flags need to be propagated to the compiler or linker for good
7756 # libtool support.
7757 case $host in
7758 ia64-*-hpux*)
7759 # Find out what ABI is being produced by ac_compile, and set mode
7760 # options accordingly.
7761 echo 'int i;' > conftest.$ac_ext
7762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7763 (eval $ac_compile) 2>&5
7764 ac_status=$?
7765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766 test $ac_status = 0; }; then
7767 case `$FILECMD conftest.$ac_objext` in
7768 *ELF-32*)
7769 HPUX_IA64_MODE=32
7770 ;;
7771 *ELF-64*)
7772 HPUX_IA64_MODE=64
7773 ;;
7774 esac
7775 fi
7776 rm -rf conftest*
7777 ;;
7778 *-*-irix6*)
7779 # Find out what ABI is being produced by ac_compile, and set linker
7780 # options accordingly.
7781 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783 (eval $ac_compile) 2>&5
7784 ac_status=$?
7785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 if test yes = "$lt_cv_prog_gnu_ld"; then
7788 case `$FILECMD conftest.$ac_objext` in
7789 *32-bit*)
7790 LD="${LD-ld} -melf32bsmip"
7791 ;;
7792 *N32*)
7793 LD="${LD-ld} -melf32bmipn32"
7794 ;;
7795 *64-bit*)
7796 LD="${LD-ld} -melf64bmip"
7797 ;;
7798 esac
7799 else
7800 case `$FILECMD conftest.$ac_objext` in
7801 *32-bit*)
7802 LD="${LD-ld} -32"
7803 ;;
7804 *N32*)
7805 LD="${LD-ld} -n32"
7806 ;;
7807 *64-bit*)
7808 LD="${LD-ld} -64"
7809 ;;
7810 esac
7811 fi
7812 fi
7813 rm -rf conftest*
7814 ;;
7815
7816 mips64*-*linux*)
7817 # Find out what ABI is being produced by ac_compile, and set linker
7818 # options accordingly.
7819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7822 ac_status=$?
7823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 emul=elf
7826 case `$FILECMD conftest.$ac_objext` in
7827 *32-bit*)
7828 emul="${emul}32"
7829 ;;
7830 *64-bit*)
7831 emul="${emul}64"
7832 ;;
7833 esac
7834 case `$FILECMD conftest.$ac_objext` in
7835 *MSB*)
7836 emul="${emul}btsmip"
7837 ;;
7838 *LSB*)
7839 emul="${emul}ltsmip"
7840 ;;
7841 esac
7842 case `$FILECMD conftest.$ac_objext` in
7843 *N32*)
7844 emul="${emul}n32"
7845 ;;
7846 esac
7847 LD="${LD-ld} -m $emul"
7848 fi
7849 rm -rf conftest*
7850 ;;
7851
7852 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7853 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7854 # Find out what ABI is being produced by ac_compile, and set linker
7855 # options accordingly. Note that the listed cases only cover the
7856 # situations where additional linker options are needed (such as when
7857 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7858 # vice versa); the common cases where no linker options are needed do
7859 # not appear in the list.
7860 echo 'int i;' > conftest.$ac_ext
7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862 (eval $ac_compile) 2>&5
7863 ac_status=$?
7864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865 test $ac_status = 0; }; then
7866 case `$FILECMD conftest.o` in
7867 *32-bit*)
7868 case $host in
7869 x86_64-*kfreebsd*-gnu)
7870 LD="${LD-ld} -m elf_i386_fbsd"
7871 ;;
7872 x86_64-*linux*)
7873 case `$FILECMD conftest.o` in
7874 *x86-64*)
7875 LD="${LD-ld} -m elf32_x86_64"
7876 ;;
7877 *)
7878 LD="${LD-ld} -m elf_i386"
7879 ;;
7880 esac
7881 ;;
7882 powerpc64le-*linux*)
7883 LD="${LD-ld} -m elf32lppclinux"
7884 ;;
7885 powerpc64-*linux*)
7886 LD="${LD-ld} -m elf32ppclinux"
7887 ;;
7888 s390x-*linux*)
7889 LD="${LD-ld} -m elf_s390"
7890 ;;
7891 sparc64-*linux*)
7892 LD="${LD-ld} -m elf32_sparc"
7893 ;;
7894 esac
7895 ;;
7896 *64-bit*)
7897 case $host in
7898 x86_64-*kfreebsd*-gnu)
7899 LD="${LD-ld} -m elf_x86_64_fbsd"
7900 ;;
7901 x86_64-*linux*)
7902 LD="${LD-ld} -m elf_x86_64"
7903 ;;
7904 powerpcle-*linux*)
7905 LD="${LD-ld} -m elf64lppc"
7906 ;;
7907 powerpc-*linux*)
7908 LD="${LD-ld} -m elf64ppc"
7909 ;;
7910 s390*-*linux*|s390*-*tpf*)
7911 LD="${LD-ld} -m elf64_s390"
7912 ;;
7913 sparc*-*linux*)
7914 LD="${LD-ld} -m elf64_sparc"
7915 ;;
7916 esac
7917 ;;
7918 esac
7919 fi
7920 rm -rf conftest*
7921 ;;
7922
7923 *-*-sco3.2v5*)
7924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7925 SAVE_CFLAGS=$CFLAGS
7926 CFLAGS="$CFLAGS -belf"
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7928 printf %s "checking whether the C compiler needs -belf... " >&6; }
7929 if test ${lt_cv_cc_needs_belf+y}
7930 then :
7931 printf %s "(cached) " >&6
7932 else $as_nop
7933 ac_ext=c
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941
7942 int
7943 main (void)
7944 {
7945
7946 ;
7947 return 0;
7948 }
7949 _ACEOF
7950 if ac_fn_c_try_link "$LINENO"
7951 then :
7952 lt_cv_cc_needs_belf=yes
7953 else $as_nop
7954 lt_cv_cc_needs_belf=no
7955 fi
7956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7957 conftest$ac_exeext conftest.$ac_ext
7958 ac_ext=c
7959 ac_cpp='$CPP $CPPFLAGS'
7960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964 fi
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7966 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7967 if test yes != "$lt_cv_cc_needs_belf"; then
7968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7969 CFLAGS=$SAVE_CFLAGS
7970 fi
7971 ;;
7972 *-*solaris*)
7973 # Find out what ABI is being produced by ac_compile, and set linker
7974 # options accordingly.
7975 echo 'int i;' > conftest.$ac_ext
7976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7977 (eval $ac_compile) 2>&5
7978 ac_status=$?
7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980 test $ac_status = 0; }; then
7981 case `$FILECMD conftest.o` in
7982 *64-bit*)
7983 case $lt_cv_prog_gnu_ld in
7984 yes*)
7985 case $host in
7986 i?86-*-solaris*|x86_64-*-solaris*)
7987 LD="${LD-ld} -m elf_x86_64"
7988 ;;
7989 sparc*-*-solaris*)
7990 LD="${LD-ld} -m elf64_sparc"
7991 ;;
7992 esac
7993 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7994 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7995 LD=${LD-ld}_sol2
7996 fi
7997 ;;
7998 *)
7999 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8000 LD="${LD-ld} -64"
8001 fi
8002 ;;
8003 esac
8004 ;;
8005 esac
8006 fi
8007 rm -rf conftest*
8008 ;;
8009 esac
8010
8011 need_locks=$enable_libtool_lock
8012
8013 if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8015 set dummy ${ac_tool_prefix}mt; ac_word=$2
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8017 printf %s "checking for $ac_word... " >&6; }
8018 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else $as_nop
8022 if test -n "$MANIFEST_TOOL"; then
8023 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8024 else
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 case $as_dir in #(((
8030 '') as_dir=./ ;;
8031 */) ;;
8032 *) as_dir=$as_dir/ ;;
8033 esac
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8036 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040 done
8041 done
8042 IFS=$as_save_IFS
8043
8044 fi
8045 fi
8046 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8047 if test -n "$MANIFEST_TOOL"; then
8048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8049 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8050 else
8051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 printf "%s\n" "no" >&6; }
8053 fi
8054
8055
8056 fi
8057 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8058 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8059 # Extract the first word of "mt", so it can be a program name with args.
8060 set dummy mt; ac_word=$2
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 printf %s "checking for $ac_word... " >&6; }
8063 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else $as_nop
8067 if test -n "$ac_ct_MANIFEST_TOOL"; then
8068 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073 IFS=$as_save_IFS
8074 case $as_dir in #(((
8075 '') as_dir=./ ;;
8076 */) ;;
8077 *) as_dir=$as_dir/ ;;
8078 esac
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8083 break 2
8084 fi
8085 done
8086 done
8087 IFS=$as_save_IFS
8088
8089 fi
8090 fi
8091 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8092 if test -n "$ac_ct_MANIFEST_TOOL"; then
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8094 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8095 else
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 printf "%s\n" "no" >&6; }
8098 fi
8099
8100 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8101 MANIFEST_TOOL=":"
8102 else
8103 case $cross_compiling:$ac_tool_warned in
8104 yes:)
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8107 ac_tool_warned=yes ;;
8108 esac
8109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8110 fi
8111 else
8112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8113 fi
8114
8115 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8117 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8118 if test ${lt_cv_path_mainfest_tool+y}
8119 then :
8120 printf %s "(cached) " >&6
8121 else $as_nop
8122 lt_cv_path_mainfest_tool=no
8123 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8124 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8125 cat conftest.err >&5
8126 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8127 lt_cv_path_mainfest_tool=yes
8128 fi
8129 rm -f conftest*
8130 fi
8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8132 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8133 if test yes != "$lt_cv_path_mainfest_tool"; then
8134 MANIFEST_TOOL=:
8135 fi
8136
8137
8138
8139
8140
8141
8142 case $host_os in
8143 rhapsody* | darwin*)
8144 if test -n "$ac_tool_prefix"; then
8145 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8146 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148 printf %s "checking for $ac_word... " >&6; }
8149 if test ${ac_cv_prog_DSYMUTIL+y}
8150 then :
8151 printf %s "(cached) " >&6
8152 else $as_nop
8153 if test -n "$DSYMUTIL"; then
8154 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8155 else
8156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157 for as_dir in $PATH
8158 do
8159 IFS=$as_save_IFS
8160 case $as_dir in #(((
8161 '') as_dir=./ ;;
8162 */) ;;
8163 *) as_dir=$as_dir/ ;;
8164 esac
8165 for ac_exec_ext in '' $ac_executable_extensions; do
8166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8167 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8169 break 2
8170 fi
8171 done
8172 done
8173 IFS=$as_save_IFS
8174
8175 fi
8176 fi
8177 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8178 if test -n "$DSYMUTIL"; then
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8180 printf "%s\n" "$DSYMUTIL" >&6; }
8181 else
8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 printf "%s\n" "no" >&6; }
8184 fi
8185
8186
8187 fi
8188 if test -z "$ac_cv_prog_DSYMUTIL"; then
8189 ac_ct_DSYMUTIL=$DSYMUTIL
8190 # Extract the first word of "dsymutil", so it can be a program name with args.
8191 set dummy dsymutil; ac_word=$2
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 printf %s "checking for $ac_word... " >&6; }
8194 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else $as_nop
8198 if test -n "$ac_ct_DSYMUTIL"; then
8199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204 IFS=$as_save_IFS
8205 case $as_dir in #(((
8206 '') as_dir=./ ;;
8207 */) ;;
8208 *) as_dir=$as_dir/ ;;
8209 esac
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8223 if test -n "$ac_ct_DSYMUTIL"; then
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8225 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8226 else
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 printf "%s\n" "no" >&6; }
8229 fi
8230
8231 if test "x$ac_ct_DSYMUTIL" = x; then
8232 DSYMUTIL=":"
8233 else
8234 case $cross_compiling:$ac_tool_warned in
8235 yes:)
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8239 esac
8240 DSYMUTIL=$ac_ct_DSYMUTIL
8241 fi
8242 else
8243 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8244 fi
8245
8246 if test -n "$ac_tool_prefix"; then
8247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 printf %s "checking for $ac_word... " >&6; }
8251 if test ${ac_cv_prog_NMEDIT+y}
8252 then :
8253 printf %s "(cached) " >&6
8254 else $as_nop
8255 if test -n "$NMEDIT"; then
8256 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8257 else
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8260 do
8261 IFS=$as_save_IFS
8262 case $as_dir in #(((
8263 '') as_dir=./ ;;
8264 */) ;;
8265 *) as_dir=$as_dir/ ;;
8266 esac
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273 done
8274 done
8275 IFS=$as_save_IFS
8276
8277 fi
8278 fi
8279 NMEDIT=$ac_cv_prog_NMEDIT
8280 if test -n "$NMEDIT"; then
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8282 printf "%s\n" "$NMEDIT" >&6; }
8283 else
8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285 printf "%s\n" "no" >&6; }
8286 fi
8287
8288
8289 fi
8290 if test -z "$ac_cv_prog_NMEDIT"; then
8291 ac_ct_NMEDIT=$NMEDIT
8292 # Extract the first word of "nmedit", so it can be a program name with args.
8293 set dummy nmedit; ac_word=$2
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 printf %s "checking for $ac_word... " >&6; }
8296 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else $as_nop
8300 if test -n "$ac_ct_NMEDIT"; then
8301 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8302 else
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8304 for as_dir in $PATH
8305 do
8306 IFS=$as_save_IFS
8307 case $as_dir in #(((
8308 '') as_dir=./ ;;
8309 */) ;;
8310 *) as_dir=$as_dir/ ;;
8311 esac
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8316 break 2
8317 fi
8318 done
8319 done
8320 IFS=$as_save_IFS
8321
8322 fi
8323 fi
8324 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8325 if test -n "$ac_ct_NMEDIT"; then
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8327 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8328 else
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 printf "%s\n" "no" >&6; }
8331 fi
8332
8333 if test "x$ac_ct_NMEDIT" = x; then
8334 NMEDIT=":"
8335 else
8336 case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342 NMEDIT=$ac_ct_NMEDIT
8343 fi
8344 else
8345 NMEDIT="$ac_cv_prog_NMEDIT"
8346 fi
8347
8348 if test -n "$ac_tool_prefix"; then
8349 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8350 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 printf %s "checking for $ac_word... " >&6; }
8353 if test ${ac_cv_prog_LIPO+y}
8354 then :
8355 printf %s "(cached) " >&6
8356 else $as_nop
8357 if test -n "$LIPO"; then
8358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363 IFS=$as_save_IFS
8364 case $as_dir in #(((
8365 '') as_dir=./ ;;
8366 */) ;;
8367 *) as_dir=$as_dir/ ;;
8368 esac
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8371 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8373 break 2
8374 fi
8375 done
8376 done
8377 IFS=$as_save_IFS
8378
8379 fi
8380 fi
8381 LIPO=$ac_cv_prog_LIPO
8382 if test -n "$LIPO"; then
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8384 printf "%s\n" "$LIPO" >&6; }
8385 else
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 printf "%s\n" "no" >&6; }
8388 fi
8389
8390
8391 fi
8392 if test -z "$ac_cv_prog_LIPO"; then
8393 ac_ct_LIPO=$LIPO
8394 # Extract the first word of "lipo", so it can be a program name with args.
8395 set dummy lipo; ac_word=$2
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 printf %s "checking for $ac_word... " >&6; }
8398 if test ${ac_cv_prog_ac_ct_LIPO+y}
8399 then :
8400 printf %s "(cached) " >&6
8401 else $as_nop
8402 if test -n "$ac_ct_LIPO"; then
8403 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408 IFS=$as_save_IFS
8409 case $as_dir in #(((
8410 '') as_dir=./ ;;
8411 */) ;;
8412 *) as_dir=$as_dir/ ;;
8413 esac
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8416 ac_cv_prog_ac_ct_LIPO="lipo"
8417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8418 break 2
8419 fi
8420 done
8421 done
8422 IFS=$as_save_IFS
8423
8424 fi
8425 fi
8426 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8427 if test -n "$ac_ct_LIPO"; then
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8429 printf "%s\n" "$ac_ct_LIPO" >&6; }
8430 else
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 printf "%s\n" "no" >&6; }
8433 fi
8434
8435 if test "x$ac_ct_LIPO" = x; then
8436 LIPO=":"
8437 else
8438 case $cross_compiling:$ac_tool_warned in
8439 yes:)
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442 ac_tool_warned=yes ;;
8443 esac
8444 LIPO=$ac_ct_LIPO
8445 fi
8446 else
8447 LIPO="$ac_cv_prog_LIPO"
8448 fi
8449
8450 if test -n "$ac_tool_prefix"; then
8451 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8452 set dummy ${ac_tool_prefix}otool; ac_word=$2
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 printf %s "checking for $ac_word... " >&6; }
8455 if test ${ac_cv_prog_OTOOL+y}
8456 then :
8457 printf %s "(cached) " >&6
8458 else $as_nop
8459 if test -n "$OTOOL"; then
8460 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8464 do
8465 IFS=$as_save_IFS
8466 case $as_dir in #(((
8467 '') as_dir=./ ;;
8468 */) ;;
8469 *) as_dir=$as_dir/ ;;
8470 esac
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8473 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8475 break 2
8476 fi
8477 done
8478 done
8479 IFS=$as_save_IFS
8480
8481 fi
8482 fi
8483 OTOOL=$ac_cv_prog_OTOOL
8484 if test -n "$OTOOL"; then
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8486 printf "%s\n" "$OTOOL" >&6; }
8487 else
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 printf "%s\n" "no" >&6; }
8490 fi
8491
8492
8493 fi
8494 if test -z "$ac_cv_prog_OTOOL"; then
8495 ac_ct_OTOOL=$OTOOL
8496 # Extract the first word of "otool", so it can be a program name with args.
8497 set dummy otool; ac_word=$2
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499 printf %s "checking for $ac_word... " >&6; }
8500 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8501 then :
8502 printf %s "(cached) " >&6
8503 else $as_nop
8504 if test -n "$ac_ct_OTOOL"; then
8505 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8506 else
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508 for as_dir in $PATH
8509 do
8510 IFS=$as_save_IFS
8511 case $as_dir in #(((
8512 '') as_dir=./ ;;
8513 */) ;;
8514 *) as_dir=$as_dir/ ;;
8515 esac
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8518 ac_cv_prog_ac_ct_OTOOL="otool"
8519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8520 break 2
8521 fi
8522 done
8523 done
8524 IFS=$as_save_IFS
8525
8526 fi
8527 fi
8528 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8529 if test -n "$ac_ct_OTOOL"; then
8530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8531 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8532 else
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534 printf "%s\n" "no" >&6; }
8535 fi
8536
8537 if test "x$ac_ct_OTOOL" = x; then
8538 OTOOL=":"
8539 else
8540 case $cross_compiling:$ac_tool_warned in
8541 yes:)
8542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8543 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8544 ac_tool_warned=yes ;;
8545 esac
8546 OTOOL=$ac_ct_OTOOL
8547 fi
8548 else
8549 OTOOL="$ac_cv_prog_OTOOL"
8550 fi
8551
8552 if test -n "$ac_tool_prefix"; then
8553 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8554 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 printf %s "checking for $ac_word... " >&6; }
8557 if test ${ac_cv_prog_OTOOL64+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else $as_nop
8561 if test -n "$OTOOL64"; then
8562 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8563 else
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in $PATH
8566 do
8567 IFS=$as_save_IFS
8568 case $as_dir in #(((
8569 '') as_dir=./ ;;
8570 */) ;;
8571 *) as_dir=$as_dir/ ;;
8572 esac
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8577 break 2
8578 fi
8579 done
8580 done
8581 IFS=$as_save_IFS
8582
8583 fi
8584 fi
8585 OTOOL64=$ac_cv_prog_OTOOL64
8586 if test -n "$OTOOL64"; then
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8588 printf "%s\n" "$OTOOL64" >&6; }
8589 else
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 printf "%s\n" "no" >&6; }
8592 fi
8593
8594
8595 fi
8596 if test -z "$ac_cv_prog_OTOOL64"; then
8597 ac_ct_OTOOL64=$OTOOL64
8598 # Extract the first word of "otool64", so it can be a program name with args.
8599 set dummy otool64; ac_word=$2
8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 printf %s "checking for $ac_word... " >&6; }
8602 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8603 then :
8604 printf %s "(cached) " >&6
8605 else $as_nop
8606 if test -n "$ac_ct_OTOOL64"; then
8607 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8608 else
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612 IFS=$as_save_IFS
8613 case $as_dir in #(((
8614 '') as_dir=./ ;;
8615 */) ;;
8616 *) as_dir=$as_dir/ ;;
8617 esac
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_ac_ct_OTOOL64="otool64"
8621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624 done
8625 done
8626 IFS=$as_save_IFS
8627
8628 fi
8629 fi
8630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8631 if test -n "$ac_ct_OTOOL64"; then
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8633 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8634 else
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 printf "%s\n" "no" >&6; }
8637 fi
8638
8639 if test "x$ac_ct_OTOOL64" = x; then
8640 OTOOL64=":"
8641 else
8642 case $cross_compiling:$ac_tool_warned in
8643 yes:)
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646 ac_tool_warned=yes ;;
8647 esac
8648 OTOOL64=$ac_ct_OTOOL64
8649 fi
8650 else
8651 OTOOL64="$ac_cv_prog_OTOOL64"
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8681 printf %s "checking for -single_module linker flag... " >&6; }
8682 if test ${lt_cv_apple_cc_single_mod+y}
8683 then :
8684 printf %s "(cached) " >&6
8685 else $as_nop
8686 lt_cv_apple_cc_single_mod=no
8687 if test -z "$LT_MULTI_MODULE"; then
8688 # By default we will add the -single_module flag. You can override
8689 # by either setting the environment variable LT_MULTI_MODULE
8690 # non-empty at configure time, or by adding -multi_module to the
8691 # link flags.
8692 rm -rf libconftest.dylib*
8693 echo "int foo(void){return 1;}" > conftest.c
8694 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8695 -dynamiclib -Wl,-single_module conftest.c" >&5
8696 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8697 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8698 _lt_result=$?
8699 # If there is a non-empty error log, and "single_module"
8700 # appears in it, assume the flag caused a linker warning
8701 if test -s conftest.err && $GREP single_module conftest.err; then
8702 cat conftest.err >&5
8703 # Otherwise, if the output was created with a 0 exit code from
8704 # the compiler, it worked.
8705 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8706 lt_cv_apple_cc_single_mod=yes
8707 else
8708 cat conftest.err >&5
8709 fi
8710 rm -rf libconftest.dylib*
8711 rm -f conftest.*
8712 fi
8713 fi
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8715 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8716
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8718 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8719 if test ${lt_cv_ld_exported_symbols_list+y}
8720 then :
8721 printf %s "(cached) " >&6
8722 else $as_nop
8723 lt_cv_ld_exported_symbols_list=no
8724 save_LDFLAGS=$LDFLAGS
8725 echo "_main" > conftest.sym
8726 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730 int
8731 main (void)
8732 {
8733
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"
8739 then :
8740 lt_cv_ld_exported_symbols_list=yes
8741 else $as_nop
8742 lt_cv_ld_exported_symbols_list=no
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8745 conftest$ac_exeext conftest.$ac_ext
8746 LDFLAGS=$save_LDFLAGS
8747
8748 fi
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8750 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8751
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8753 printf %s "checking for -force_load linker flag... " >&6; }
8754 if test ${lt_cv_ld_force_load+y}
8755 then :
8756 printf %s "(cached) " >&6
8757 else $as_nop
8758 lt_cv_ld_force_load=no
8759 cat > conftest.c << _LT_EOF
8760 int forced_loaded() { return 2;}
8761 _LT_EOF
8762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8764 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8765 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8766 echo "$RANLIB libconftest.a" >&5
8767 $RANLIB libconftest.a 2>&5
8768 cat > conftest.c << _LT_EOF
8769 int main() { return 0;}
8770 _LT_EOF
8771 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8772 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8773 _lt_result=$?
8774 if test -s conftest.err && $GREP force_load conftest.err; then
8775 cat conftest.err >&5
8776 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8777 lt_cv_ld_force_load=yes
8778 else
8779 cat conftest.err >&5
8780 fi
8781 rm -f conftest.err libconftest.a conftest conftest.c
8782 rm -rf conftest.dSYM
8783
8784 fi
8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8786 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8787 case $host_os in
8788 rhapsody* | darwin1.[012])
8789 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8790 darwin1.*)
8791 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8792 darwin*)
8793 case $MACOSX_DEPLOYMENT_TARGET,$host in
8794 10.[012],*|,*powerpc*-darwin[5-8]*)
8795 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8796 *)
8797 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8798 esac
8799 ;;
8800 esac
8801 if test yes = "$lt_cv_apple_cc_single_mod"; then
8802 _lt_dar_single_mod='$single_module'
8803 fi
8804 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8805 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8806 else
8807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8808 fi
8809 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8810 _lt_dsymutil='~$DSYMUTIL $lib || :'
8811 else
8812 _lt_dsymutil=
8813 fi
8814 ;;
8815 esac
8816
8817 # func_munge_path_list VARIABLE PATH
8818 # -----------------------------------
8819 # VARIABLE is name of variable containing _space_ separated list of
8820 # directories to be munged by the contents of PATH, which is string
8821 # having a format:
8822 # "DIR[:DIR]:"
8823 # string "DIR[ DIR]" will be prepended to VARIABLE
8824 # ":DIR[:DIR]"
8825 # string "DIR[ DIR]" will be appended to VARIABLE
8826 # "DIRP[:DIRP]::[DIRA:]DIRA"
8827 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8828 # "DIRA[ DIRA]" will be appended to VARIABLE
8829 # "DIR[:DIR]"
8830 # VARIABLE will be replaced by "DIR[ DIR]"
8831 func_munge_path_list ()
8832 {
8833 case x$2 in
8834 x)
8835 ;;
8836 *:)
8837 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8838 ;;
8839 x:*)
8840 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8841 ;;
8842 *::*)
8843 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8844 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8845 ;;
8846 *)
8847 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8848 ;;
8849 esac
8850 }
8851
8852 ac_header= ac_cache=
8853 for ac_item in $ac_header_c_list
8854 do
8855 if test $ac_cache; then
8856 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8857 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8858 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8859 fi
8860 ac_header= ac_cache=
8861 elif test $ac_header; then
8862 ac_cache=$ac_item
8863 else
8864 ac_header=$ac_item
8865 fi
8866 done
8867
8868
8869
8870
8871
8872
8873
8874
8875 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8876 then :
8877
8878 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8879
8880 fi
8881 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8882 "
8883 if test "x$ac_cv_header_dlfcn_h" = xyes
8884 then :
8885 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8886
8887 fi
8888
8889
8890
8891
8892
8893 # Set options
8894 # Check whether --enable-static was given.
8895 if test ${enable_static+y}
8896 then :
8897 enableval=$enable_static; p=${PACKAGE-default}
8898 case $enableval in
8899 yes) enable_static=yes ;;
8900 no) enable_static=no ;;
8901 *)
8902 enable_static=no
8903 # Look at the argument we got. We use all the common list separators.
8904 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8905 for pkg in $enableval; do
8906 IFS=$lt_save_ifs
8907 if test "X$pkg" = "X$p"; then
8908 enable_static=yes
8909 fi
8910 done
8911 IFS=$lt_save_ifs
8912 ;;
8913 esac
8914 else $as_nop
8915 enable_static=no
8916 fi
8917
8918
8919
8920
8921
8922
8923
8924 enable_dlopen=yes
8925
8926
8927
8928
8929 enable_win32_dll=no
8930
8931
8932 # Check whether --enable-shared was given.
8933 if test ${enable_shared+y}
8934 then :
8935 enableval=$enable_shared; p=${PACKAGE-default}
8936 case $enableval in
8937 yes) enable_shared=yes ;;
8938 no) enable_shared=no ;;
8939 *)
8940 enable_shared=no
8941 # Look at the argument we got. We use all the common list separators.
8942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8943 for pkg in $enableval; do
8944 IFS=$lt_save_ifs
8945 if test "X$pkg" = "X$p"; then
8946 enable_shared=yes
8947 fi
8948 done
8949 IFS=$lt_save_ifs
8950 ;;
8951 esac
8952 else $as_nop
8953 enable_shared=yes
8954 fi
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 # Check whether --with-pic was given.
8967 if test ${with_pic+y}
8968 then :
8969 withval=$with_pic; lt_p=${PACKAGE-default}
8970 case $withval in
8971 yes|no) pic_mode=$withval ;;
8972 *)
8973 pic_mode=default
8974 # Look at the argument we got. We use all the common list separators.
8975 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8976 for lt_pkg in $withval; do
8977 IFS=$lt_save_ifs
8978 if test "X$lt_pkg" = "X$lt_p"; then
8979 pic_mode=yes
8980 fi
8981 done
8982 IFS=$lt_save_ifs
8983 ;;
8984 esac
8985 else $as_nop
8986 pic_mode=default
8987 fi
8988
8989
8990
8991
8992
8993
8994
8995
8996 # Check whether --enable-fast-install was given.
8997 if test ${enable_fast_install+y}
8998 then :
8999 enableval=$enable_fast_install; p=${PACKAGE-default}
9000 case $enableval in
9001 yes) enable_fast_install=yes ;;
9002 no) enable_fast_install=no ;;
9003 *)
9004 enable_fast_install=no
9005 # Look at the argument we got. We use all the common list separators.
9006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9007 for pkg in $enableval; do
9008 IFS=$lt_save_ifs
9009 if test "X$pkg" = "X$p"; then
9010 enable_fast_install=yes
9011 fi
9012 done
9013 IFS=$lt_save_ifs
9014 ;;
9015 esac
9016 else $as_nop
9017 enable_fast_install=yes
9018 fi
9019
9020
9021
9022
9023
9024
9025
9026
9027 shared_archive_member_spec=
9028 case $host,$enable_shared in
9029 power*-*-aix[5-9]*,yes)
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9031 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9032
9033 # Check whether --with-aix-soname was given.
9034 if test ${with_aix_soname+y}
9035 then :
9036 withval=$with_aix_soname; case $withval in
9037 aix|svr4|both)
9038 ;;
9039 *)
9040 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9041 ;;
9042 esac
9043 lt_cv_with_aix_soname=$with_aix_soname
9044 else $as_nop
9045 if test ${lt_cv_with_aix_soname+y}
9046 then :
9047 printf %s "(cached) " >&6
9048 else $as_nop
9049 lt_cv_with_aix_soname=aix
9050 fi
9051
9052 with_aix_soname=$lt_cv_with_aix_soname
9053 fi
9054
9055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9056 printf "%s\n" "$with_aix_soname" >&6; }
9057 if test aix != "$with_aix_soname"; then
9058 # For the AIX way of multilib, we name the shared archive member
9059 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9060 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9061 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9062 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9063 if test 64 = "${OBJECT_MODE-32}"; then
9064 shared_archive_member_spec=shr_64
9065 else
9066 shared_archive_member_spec=shr
9067 fi
9068 fi
9069 ;;
9070 *)
9071 with_aix_soname=aix
9072 ;;
9073 esac
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084 # This can be used to rebuild libtool when needed
9085 LIBTOOL_DEPS=$ltmain
9086
9087 # Always use our own libtool.
9088 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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 test -z "$LN_S" && LN_S="ln -s"
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134 if test -n "${ZSH_VERSION+set}"; then
9135 setopt NO_GLOB_SUBST
9136 fi
9137
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9139 printf %s "checking for objdir... " >&6; }
9140 if test ${lt_cv_objdir+y}
9141 then :
9142 printf %s "(cached) " >&6
9143 else $as_nop
9144 rm -f .libs 2>/dev/null
9145 mkdir .libs 2>/dev/null
9146 if test -d .libs; then
9147 lt_cv_objdir=.libs
9148 else
9149 # MS-DOS does not allow filenames that begin with a dot.
9150 lt_cv_objdir=_libs
9151 fi
9152 rmdir .libs 2>/dev/null
9153 fi
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9155 printf "%s\n" "$lt_cv_objdir" >&6; }
9156 objdir=$lt_cv_objdir
9157
9158
9159
9160
9161
9162 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9163
9164
9165
9166
9167 case $host_os in
9168 aix3*)
9169 # AIX sometimes has problems with the GCC collect2 program. For some
9170 # reason, if we set the COLLECT_NAMES environment variable, the problems
9171 # vanish in a puff of smoke.
9172 if test set != "${COLLECT_NAMES+set}"; then
9173 COLLECT_NAMES=
9174 export COLLECT_NAMES
9175 fi
9176 ;;
9177 esac
9178
9179 # Global variables:
9180 ofile=libtool
9181 can_build_shared=yes
9182
9183 # All known linkers require a '.a' archive for static linking (except MSVC and
9184 # ICC, which need '.lib').
9185 libext=a
9186
9187 with_gnu_ld=$lt_cv_prog_gnu_ld
9188
9189 old_CC=$CC
9190 old_CFLAGS=$CFLAGS
9191
9192 # Set sane defaults for various variables
9193 test -z "$CC" && CC=cc
9194 test -z "$LTCC" && LTCC=$CC
9195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9196 test -z "$LD" && LD=ld
9197 test -z "$ac_objext" && ac_objext=o
9198
9199 func_cc_basename $compiler
9200 cc_basename=$func_cc_basename_result
9201
9202
9203 # Only perform the check for file, if the check method requires it
9204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9205 case $deplibs_check_method in
9206 file_magic*)
9207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9209 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9210 if test ${lt_cv_path_MAGIC_CMD+y}
9211 then :
9212 printf %s "(cached) " >&6
9213 else $as_nop
9214 case $MAGIC_CMD in
9215 [\\/*] | ?:[\\/]*)
9216 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9217 ;;
9218 *)
9219 lt_save_MAGIC_CMD=$MAGIC_CMD
9220 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9222 for ac_dir in $ac_dummy; do
9223 IFS=$lt_save_ifs
9224 test -z "$ac_dir" && ac_dir=.
9225 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9226 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9227 if test -n "$file_magic_test_file"; then
9228 case $deplibs_check_method in
9229 "file_magic "*)
9230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9231 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9233 $EGREP "$file_magic_regex" > /dev/null; then
9234 :
9235 else
9236 cat <<_LT_EOF 1>&2
9237
9238 *** Warning: the command libtool uses to detect shared libraries,
9239 *** $file_magic_cmd, produces output that libtool cannot recognize.
9240 *** The result is that libtool may fail to recognize shared libraries
9241 *** as such. This will affect the creation of libtool libraries that
9242 *** depend on shared libraries, but programs linked with such libtool
9243 *** libraries will work regardless of this problem. Nevertheless, you
9244 *** may want to report the problem to your system manager and/or to
9245 *** [email protected]
9246
9247 _LT_EOF
9248 fi ;;
9249 esac
9250 fi
9251 break
9252 fi
9253 done
9254 IFS=$lt_save_ifs
9255 MAGIC_CMD=$lt_save_MAGIC_CMD
9256 ;;
9257 esac
9258 fi
9259
9260 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9261 if test -n "$MAGIC_CMD"; then
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9263 printf "%s\n" "$MAGIC_CMD" >&6; }
9264 else
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266 printf "%s\n" "no" >&6; }
9267 fi
9268
9269
9270
9271
9272
9273 if test -z "$lt_cv_path_MAGIC_CMD"; then
9274 if test -n "$ac_tool_prefix"; then
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9276 printf %s "checking for file... " >&6; }
9277 if test ${lt_cv_path_MAGIC_CMD+y}
9278 then :
9279 printf %s "(cached) " >&6
9280 else $as_nop
9281 case $MAGIC_CMD in
9282 [\\/*] | ?:[\\/]*)
9283 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9284 ;;
9285 *)
9286 lt_save_MAGIC_CMD=$MAGIC_CMD
9287 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9289 for ac_dir in $ac_dummy; do
9290 IFS=$lt_save_ifs
9291 test -z "$ac_dir" && ac_dir=.
9292 if test -f "$ac_dir/file"; then
9293 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9294 if test -n "$file_magic_test_file"; then
9295 case $deplibs_check_method in
9296 "file_magic "*)
9297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9298 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9300 $EGREP "$file_magic_regex" > /dev/null; then
9301 :
9302 else
9303 cat <<_LT_EOF 1>&2
9304
9305 *** Warning: the command libtool uses to detect shared libraries,
9306 *** $file_magic_cmd, produces output that libtool cannot recognize.
9307 *** The result is that libtool may fail to recognize shared libraries
9308 *** as such. This will affect the creation of libtool libraries that
9309 *** depend on shared libraries, but programs linked with such libtool
9310 *** libraries will work regardless of this problem. Nevertheless, you
9311 *** may want to report the problem to your system manager and/or to
9312 *** [email protected]
9313
9314 _LT_EOF
9315 fi ;;
9316 esac
9317 fi
9318 break
9319 fi
9320 done
9321 IFS=$lt_save_ifs
9322 MAGIC_CMD=$lt_save_MAGIC_CMD
9323 ;;
9324 esac
9325 fi
9326
9327 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9328 if test -n "$MAGIC_CMD"; then
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9330 printf "%s\n" "$MAGIC_CMD" >&6; }
9331 else
9332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 printf "%s\n" "no" >&6; }
9334 fi
9335
9336
9337 else
9338 MAGIC_CMD=:
9339 fi
9340 fi
9341
9342 fi
9343 ;;
9344 esac
9345
9346 # Use C for the default configuration in the libtool script
9347
9348 lt_save_CC=$CC
9349 ac_ext=c
9350 ac_cpp='$CPP $CPPFLAGS'
9351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9354
9355
9356 # Source file extension for C test sources.
9357 ac_ext=c
9358
9359 # Object file extension for compiled C test sources.
9360 objext=o
9361 objext=$objext
9362
9363 # Code to be used in simple compile tests
9364 lt_simple_compile_test_code="int some_variable = 0;"
9365
9366 # Code to be used in simple link tests
9367 lt_simple_link_test_code='int main(){return(0);}'
9368
9369
9370
9371
9372
9373
9374
9375 # If no C compiler was specified, use CC.
9376 LTCC=${LTCC-"$CC"}
9377
9378 # If no C compiler flags were specified, use CFLAGS.
9379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9380
9381 # Allow CC to be a program name with arguments.
9382 compiler=$CC
9383
9384 # Save the default compiler, since it gets overwritten when the other
9385 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9386 compiler_DEFAULT=$CC
9387
9388 # save warnings/boilerplate of simple test code
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_compiler_boilerplate=`cat conftest.err`
9393 $RM conftest*
9394
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_linker_boilerplate=`cat conftest.err`
9399 $RM -r conftest*
9400
9401
9402 if test -n "$compiler"; then
9403
9404 lt_prog_compiler_no_builtin_flag=
9405
9406 if test yes = "$GCC"; then
9407 case $cc_basename in
9408 nvcc*)
9409 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9410 *)
9411 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9412 esac
9413
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9415 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9416 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9417 then :
9418 printf %s "(cached) " >&6
9419 else $as_nop
9420 lt_cv_prog_compiler_rtti_exceptions=no
9421 ac_outfile=conftest.$ac_objext
9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9423 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9424 # Insert the option either (1) after the last *FLAGS variable, or
9425 # (2) before a word containing "conftest.", or (3) at the end.
9426 # Note that $ac_compile itself does not contain backslashes and begins
9427 # with a dollar sign (not a hyphen), so the echo should work correctly.
9428 # The option is referenced via a variable to avoid confusing sed.
9429 lt_compile=`echo "$ac_compile" | $SED \
9430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9432 -e 's:$: $lt_compiler_flag:'`
9433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9434 (eval "$lt_compile" 2>conftest.err)
9435 ac_status=$?
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 if (exit $ac_status) && test -s "$ac_outfile"; then
9439 # The compiler can only warn and ignore the option if not recognized
9440 # So say no if there are warnings other than the usual output.
9441 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9442 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9443 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9444 lt_cv_prog_compiler_rtti_exceptions=yes
9445 fi
9446 fi
9447 $RM conftest*
9448
9449 fi
9450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9451 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9452
9453 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9454 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9455 else
9456 :
9457 fi
9458
9459 fi
9460
9461
9462
9463
9464
9465
9466 lt_prog_compiler_wl=
9467 lt_prog_compiler_pic=
9468 lt_prog_compiler_static=
9469
9470
9471 if test yes = "$GCC"; then
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_static='-static'
9474
9475 case $host_os in
9476 aix*)
9477 # All AIX code is PIC.
9478 if test ia64 = "$host_cpu"; then
9479 # AIX 5 now supports IA64 processor
9480 lt_prog_compiler_static='-Bstatic'
9481 fi
9482 lt_prog_compiler_pic='-fPIC'
9483 ;;
9484
9485 amigaos*)
9486 case $host_cpu in
9487 powerpc)
9488 # see comment about AmigaOS4 .so support
9489 lt_prog_compiler_pic='-fPIC'
9490 ;;
9491 m68k)
9492 # FIXME: we need at least 68020 code to build shared libraries, but
9493 # adding the '-m68020' flag to GCC prevents building anything better,
9494 # like '-m68040'.
9495 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9496 ;;
9497 esac
9498 ;;
9499
9500 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9501 # PIC is the default for these OSes.
9502 ;;
9503
9504 mingw* | cygwin* | pw32* | os2* | cegcc*)
9505 # This hack is so that the source file can tell whether it is being
9506 # built for inclusion in a dll (and should export symbols for example).
9507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9508 # (--disable-auto-import) libraries
9509 lt_prog_compiler_pic='-DDLL_EXPORT'
9510 case $host_os in
9511 os2*)
9512 lt_prog_compiler_static='$wl-static'
9513 ;;
9514 esac
9515 ;;
9516
9517 darwin* | rhapsody*)
9518 # PIC is the default on this platform
9519 # Common symbols not allowed in MH_DYLIB files
9520 lt_prog_compiler_pic='-fno-common'
9521 ;;
9522
9523 haiku*)
9524 # PIC is the default for Haiku.
9525 # The "-static" flag exists, but is broken.
9526 lt_prog_compiler_static=
9527 ;;
9528
9529 hpux*)
9530 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9531 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9532 # sets the default TLS model and affects inlining.
9533 case $host_cpu in
9534 hppa*64*)
9535 # +Z the default
9536 ;;
9537 *)
9538 lt_prog_compiler_pic='-fPIC'
9539 ;;
9540 esac
9541 ;;
9542
9543 interix[3-9]*)
9544 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9545 # Instead, we relocate shared libraries at runtime.
9546 ;;
9547
9548 msdosdjgpp*)
9549 # Just because we use GCC doesn't mean we suddenly get shared libraries
9550 # on systems that don't support them.
9551 lt_prog_compiler_can_build_shared=no
9552 enable_shared=no
9553 ;;
9554
9555 *nto* | *qnx*)
9556 # QNX uses GNU C++, but need to define -shared option too, otherwise
9557 # it will coredump.
9558 lt_prog_compiler_pic='-fPIC -shared'
9559 ;;
9560
9561 sysv4*MP*)
9562 if test -d /usr/nec; then
9563 lt_prog_compiler_pic=-Kconform_pic
9564 fi
9565 ;;
9566
9567 *)
9568 lt_prog_compiler_pic='-fPIC'
9569 ;;
9570 esac
9571
9572 case $cc_basename in
9573 nvcc*) # Cuda Compiler Driver 2.2
9574 lt_prog_compiler_wl='-Xlinker '
9575 if test -n "$lt_prog_compiler_pic"; then
9576 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9577 fi
9578 ;;
9579 esac
9580 else
9581 # PORTME Check for flag to pass linker flags through the system compiler.
9582 case $host_os in
9583 aix*)
9584 lt_prog_compiler_wl='-Wl,'
9585 if test ia64 = "$host_cpu"; then
9586 # AIX 5 now supports IA64 processor
9587 lt_prog_compiler_static='-Bstatic'
9588 else
9589 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9590 fi
9591 ;;
9592
9593 darwin* | rhapsody*)
9594 # PIC is the default on this platform
9595 # Common symbols not allowed in MH_DYLIB files
9596 lt_prog_compiler_pic='-fno-common'
9597 case $cc_basename in
9598 nagfor*)
9599 # NAG Fortran compiler
9600 lt_prog_compiler_wl='-Wl,-Wl,,'
9601 lt_prog_compiler_pic='-PIC'
9602 lt_prog_compiler_static='-Bstatic'
9603 ;;
9604 esac
9605 ;;
9606
9607 mingw* | cygwin* | pw32* | os2* | cegcc*)
9608 # This hack is so that the source file can tell whether it is being
9609 # built for inclusion in a dll (and should export symbols for example).
9610 lt_prog_compiler_pic='-DDLL_EXPORT'
9611 case $host_os in
9612 os2*)
9613 lt_prog_compiler_static='$wl-static'
9614 ;;
9615 esac
9616 ;;
9617
9618 hpux9* | hpux10* | hpux11*)
9619 lt_prog_compiler_wl='-Wl,'
9620 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9621 # not for PA HP-UX.
9622 case $host_cpu in
9623 hppa*64*|ia64*)
9624 # +Z the default
9625 ;;
9626 *)
9627 lt_prog_compiler_pic='+Z'
9628 ;;
9629 esac
9630 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9631 lt_prog_compiler_static='$wl-a ${wl}archive'
9632 ;;
9633
9634 irix5* | irix6* | nonstopux*)
9635 lt_prog_compiler_wl='-Wl,'
9636 # PIC (with -KPIC) is the default.
9637 lt_prog_compiler_static='-non_shared'
9638 ;;
9639
9640 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9641 case $cc_basename in
9642 # old Intel for x86_64, which still supported -KPIC.
9643 ecc*)
9644 lt_prog_compiler_wl='-Wl,'
9645 lt_prog_compiler_pic='-KPIC'
9646 lt_prog_compiler_static='-static'
9647 ;;
9648 # flang / f18. f95 an alias for gfortran or flang on Debian
9649 flang* | f18* | f95*)
9650 lt_prog_compiler_wl='-Wl,'
9651 lt_prog_compiler_pic='-fPIC'
9652 lt_prog_compiler_static='-static'
9653 ;;
9654 # icc used to be incompatible with GCC.
9655 # ICC 10 doesn't accept -KPIC any more.
9656 icc* | ifort*)
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_pic='-fPIC'
9659 lt_prog_compiler_static='-static'
9660 ;;
9661 # Lahey Fortran 8.1.
9662 lf95*)
9663 lt_prog_compiler_wl='-Wl,'
9664 lt_prog_compiler_pic='--shared'
9665 lt_prog_compiler_static='--static'
9666 ;;
9667 nagfor*)
9668 # NAG Fortran compiler
9669 lt_prog_compiler_wl='-Wl,-Wl,,'
9670 lt_prog_compiler_pic='-PIC'
9671 lt_prog_compiler_static='-Bstatic'
9672 ;;
9673 tcc*)
9674 # Fabrice Bellard et al's Tiny C Compiler
9675 lt_prog_compiler_wl='-Wl,'
9676 lt_prog_compiler_pic='-fPIC'
9677 lt_prog_compiler_static='-static'
9678 ;;
9679 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9680 # Portland Group compilers (*not* the Pentium gcc compiler,
9681 # which looks to be a dead project)
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-fpic'
9684 lt_prog_compiler_static='-Bstatic'
9685 ;;
9686 ccc*)
9687 lt_prog_compiler_wl='-Wl,'
9688 # All Alpha code is PIC.
9689 lt_prog_compiler_static='-non_shared'
9690 ;;
9691 xl* | bgxl* | bgf* | mpixl*)
9692 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9693 lt_prog_compiler_wl='-Wl,'
9694 lt_prog_compiler_pic='-qpic'
9695 lt_prog_compiler_static='-qstaticlink'
9696 ;;
9697 *)
9698 case `$CC -V 2>&1 | $SED 5q` in
9699 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9700 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9701 lt_prog_compiler_pic='-KPIC'
9702 lt_prog_compiler_static='-Bstatic'
9703 lt_prog_compiler_wl=''
9704 ;;
9705 *Sun\ F* | *Sun*Fortran*)
9706 lt_prog_compiler_pic='-KPIC'
9707 lt_prog_compiler_static='-Bstatic'
9708 lt_prog_compiler_wl='-Qoption ld '
9709 ;;
9710 *Sun\ C*)
9711 # Sun C 5.9
9712 lt_prog_compiler_pic='-KPIC'
9713 lt_prog_compiler_static='-Bstatic'
9714 lt_prog_compiler_wl='-Wl,'
9715 ;;
9716 *Intel*\ [CF]*Compiler*)
9717 lt_prog_compiler_wl='-Wl,'
9718 lt_prog_compiler_pic='-fPIC'
9719 lt_prog_compiler_static='-static'
9720 ;;
9721 *Portland\ Group*)
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-fpic'
9724 lt_prog_compiler_static='-Bstatic'
9725 ;;
9726 esac
9727 ;;
9728 esac
9729 ;;
9730
9731 newsos6)
9732 lt_prog_compiler_pic='-KPIC'
9733 lt_prog_compiler_static='-Bstatic'
9734 ;;
9735
9736 *nto* | *qnx*)
9737 # QNX uses GNU C++, but need to define -shared option too, otherwise
9738 # it will coredump.
9739 lt_prog_compiler_pic='-fPIC -shared'
9740 ;;
9741
9742 osf3* | osf4* | osf5*)
9743 lt_prog_compiler_wl='-Wl,'
9744 # All OSF/1 code is PIC.
9745 lt_prog_compiler_static='-non_shared'
9746 ;;
9747
9748 rdos*)
9749 lt_prog_compiler_static='-non_shared'
9750 ;;
9751
9752 solaris*)
9753 lt_prog_compiler_pic='-KPIC'
9754 lt_prog_compiler_static='-Bstatic'
9755 case $cc_basename in
9756 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9757 lt_prog_compiler_wl='-Qoption ld ';;
9758 *)
9759 lt_prog_compiler_wl='-Wl,';;
9760 esac
9761 ;;
9762
9763 sunos4*)
9764 lt_prog_compiler_wl='-Qoption ld '
9765 lt_prog_compiler_pic='-PIC'
9766 lt_prog_compiler_static='-Bstatic'
9767 ;;
9768
9769 sysv4 | sysv4.2uw2* | sysv4.3*)
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='-KPIC'
9772 lt_prog_compiler_static='-Bstatic'
9773 ;;
9774
9775 sysv4*MP*)
9776 if test -d /usr/nec; then
9777 lt_prog_compiler_pic='-Kconform_pic'
9778 lt_prog_compiler_static='-Bstatic'
9779 fi
9780 ;;
9781
9782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9783 lt_prog_compiler_wl='-Wl,'
9784 lt_prog_compiler_pic='-KPIC'
9785 lt_prog_compiler_static='-Bstatic'
9786 ;;
9787
9788 unicos*)
9789 lt_prog_compiler_wl='-Wl,'
9790 lt_prog_compiler_can_build_shared=no
9791 ;;
9792
9793 uts4*)
9794 lt_prog_compiler_pic='-pic'
9795 lt_prog_compiler_static='-Bstatic'
9796 ;;
9797
9798 *)
9799 lt_prog_compiler_can_build_shared=no
9800 ;;
9801 esac
9802 fi
9803
9804 case $host_os in
9805 # For platforms that do not support PIC, -DPIC is meaningless:
9806 *djgpp*)
9807 lt_prog_compiler_pic=
9808 ;;
9809 *)
9810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9811 ;;
9812 esac
9813
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9815 printf %s "checking for $compiler option to produce PIC... " >&6; }
9816 if test ${lt_cv_prog_compiler_pic+y}
9817 then :
9818 printf %s "(cached) " >&6
9819 else $as_nop
9820 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9821 fi
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9823 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9824 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9825
9826 #
9827 # Check to make sure the PIC flag actually works.
9828 #
9829 if test -n "$lt_prog_compiler_pic"; then
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9831 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9832 if test ${lt_cv_prog_compiler_pic_works+y}
9833 then :
9834 printf %s "(cached) " >&6
9835 else $as_nop
9836 lt_cv_prog_compiler_pic_works=no
9837 ac_outfile=conftest.$ac_objext
9838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9839 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9840 # Insert the option either (1) after the last *FLAGS variable, or
9841 # (2) before a word containing "conftest.", or (3) at the end.
9842 # Note that $ac_compile itself does not contain backslashes and begins
9843 # with a dollar sign (not a hyphen), so the echo should work correctly.
9844 # The option is referenced via a variable to avoid confusing sed.
9845 lt_compile=`echo "$ac_compile" | $SED \
9846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9848 -e 's:$: $lt_compiler_flag:'`
9849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9850 (eval "$lt_compile" 2>conftest.err)
9851 ac_status=$?
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 if (exit $ac_status) && test -s "$ac_outfile"; then
9855 # The compiler can only warn and ignore the option if not recognized
9856 # So say no if there are warnings other than the usual output.
9857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9860 lt_cv_prog_compiler_pic_works=yes
9861 fi
9862 fi
9863 $RM conftest*
9864
9865 fi
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9867 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9868
9869 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9870 case $lt_prog_compiler_pic in
9871 "" | " "*) ;;
9872 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9873 esac
9874 else
9875 lt_prog_compiler_pic=
9876 lt_prog_compiler_can_build_shared=no
9877 fi
9878
9879 fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891 #
9892 # Check to make sure the static flag actually works.
9893 #
9894 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9896 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9897 if test ${lt_cv_prog_compiler_static_works+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else $as_nop
9901 lt_cv_prog_compiler_static_works=no
9902 save_LDFLAGS=$LDFLAGS
9903 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9904 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9905 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9906 # The linker can only warn and ignore the option if not recognized
9907 # So say no if there are warnings
9908 if test -s conftest.err; then
9909 # Append any errors to the config.log.
9910 cat conftest.err 1>&5
9911 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9913 if diff conftest.exp conftest.er2 >/dev/null; then
9914 lt_cv_prog_compiler_static_works=yes
9915 fi
9916 else
9917 lt_cv_prog_compiler_static_works=yes
9918 fi
9919 fi
9920 $RM -r conftest*
9921 LDFLAGS=$save_LDFLAGS
9922
9923 fi
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9925 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9926
9927 if test yes = "$lt_cv_prog_compiler_static_works"; then
9928 :
9929 else
9930 lt_prog_compiler_static=
9931 fi
9932
9933
9934
9935
9936
9937
9938
9939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9940 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9941 if test ${lt_cv_prog_compiler_c_o+y}
9942 then :
9943 printf %s "(cached) " >&6
9944 else $as_nop
9945 lt_cv_prog_compiler_c_o=no
9946 $RM -r conftest 2>/dev/null
9947 mkdir conftest
9948 cd conftest
9949 mkdir out
9950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9951
9952 lt_compiler_flag="-o out/conftest2.$ac_objext"
9953 # Insert the option either (1) after the last *FLAGS variable, or
9954 # (2) before a word containing "conftest.", or (3) at the end.
9955 # Note that $ac_compile itself does not contain backslashes and begins
9956 # with a dollar sign (not a hyphen), so the echo should work correctly.
9957 lt_compile=`echo "$ac_compile" | $SED \
9958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9960 -e 's:$: $lt_compiler_flag:'`
9961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9962 (eval "$lt_compile" 2>out/conftest.err)
9963 ac_status=$?
9964 cat out/conftest.err >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9967 then
9968 # The compiler can only warn and ignore the option if not recognized
9969 # So say no if there are warnings
9970 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9971 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9972 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9973 lt_cv_prog_compiler_c_o=yes
9974 fi
9975 fi
9976 chmod u+w . 2>&5
9977 $RM conftest*
9978 # SGI C++ compiler will create directory out/ii_files/ for
9979 # template instantiation
9980 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9981 $RM out/* && rmdir out
9982 cd ..
9983 $RM -r conftest
9984 $RM conftest*
9985
9986 fi
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9988 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9989
9990
9991
9992
9993
9994
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9996 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9997 if test ${lt_cv_prog_compiler_c_o+y}
9998 then :
9999 printf %s "(cached) " >&6
10000 else $as_nop
10001 lt_cv_prog_compiler_c_o=no
10002 $RM -r conftest 2>/dev/null
10003 mkdir conftest
10004 cd conftest
10005 mkdir out
10006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10007
10008 lt_compiler_flag="-o out/conftest2.$ac_objext"
10009 # Insert the option either (1) after the last *FLAGS variable, or
10010 # (2) before a word containing "conftest.", or (3) at the end.
10011 # Note that $ac_compile itself does not contain backslashes and begins
10012 # with a dollar sign (not a hyphen), so the echo should work correctly.
10013 lt_compile=`echo "$ac_compile" | $SED \
10014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10016 -e 's:$: $lt_compiler_flag:'`
10017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10018 (eval "$lt_compile" 2>out/conftest.err)
10019 ac_status=$?
10020 cat out/conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10023 then
10024 # The compiler can only warn and ignore the option if not recognized
10025 # So say no if there are warnings
10026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10029 lt_cv_prog_compiler_c_o=yes
10030 fi
10031 fi
10032 chmod u+w . 2>&5
10033 $RM conftest*
10034 # SGI C++ compiler will create directory out/ii_files/ for
10035 # template instantiation
10036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10037 $RM out/* && rmdir out
10038 cd ..
10039 $RM -r conftest
10040 $RM conftest*
10041
10042 fi
10043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10044 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10045
10046
10047
10048
10049 hard_links=nottested
10050 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10051 # do not overwrite the value of need_locks provided by the user
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10053 printf %s "checking if we can lock with hard links... " >&6; }
10054 hard_links=yes
10055 $RM conftest*
10056 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10057 touch conftest.a
10058 ln conftest.a conftest.b 2>&5 || hard_links=no
10059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10061 printf "%s\n" "$hard_links" >&6; }
10062 if test no = "$hard_links"; then
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10064 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10065 need_locks=warn
10066 fi
10067 else
10068 need_locks=no
10069 fi
10070
10071
10072
10073
10074
10075
10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10077 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10078
10079 runpath_var=
10080 allow_undefined_flag=
10081 always_export_symbols=no
10082 archive_cmds=
10083 archive_expsym_cmds=
10084 compiler_needs_object=no
10085 enable_shared_with_static_runtimes=no
10086 export_dynamic_flag_spec=
10087 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10088 hardcode_automatic=no
10089 hardcode_direct=no
10090 hardcode_direct_absolute=no
10091 hardcode_libdir_flag_spec=
10092 hardcode_libdir_separator=
10093 hardcode_minus_L=no
10094 hardcode_shlibpath_var=unsupported
10095 inherit_rpath=no
10096 link_all_deplibs=unknown
10097 module_cmds=
10098 module_expsym_cmds=
10099 old_archive_from_new_cmds=
10100 old_archive_from_expsyms_cmds=
10101 thread_safe_flag_spec=
10102 whole_archive_flag_spec=
10103 # include_expsyms should be a list of space-separated symbols to be *always*
10104 # included in the symbol list
10105 include_expsyms=
10106 # exclude_expsyms can be an extended regexp of symbols to exclude
10107 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10108 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10109 # as well as any symbol that contains 'd'.
10110 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10111 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10112 # platforms (ab)use it in PIC code, but their linkers get confused if
10113 # the symbol is explicitly referenced. Since portable code cannot
10114 # rely on this symbol name, it's probably fine to never include it in
10115 # preloaded symbol tables.
10116 # Exclude shared library initialization/finalization symbols.
10117 extract_expsyms_cmds=
10118
10119 case $host_os in
10120 cygwin* | mingw* | pw32* | cegcc*)
10121 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10122 # When not using gcc, we currently assume that we are using
10123 # Microsoft Visual C++ or Intel C++ Compiler.
10124 if test yes != "$GCC"; then
10125 with_gnu_ld=no
10126 fi
10127 ;;
10128 interix*)
10129 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10130 with_gnu_ld=yes
10131 ;;
10132 openbsd* | bitrig*)
10133 with_gnu_ld=no
10134 ;;
10135 linux* | k*bsd*-gnu | gnu*)
10136 link_all_deplibs=no
10137 ;;
10138 esac
10139
10140 ld_shlibs=yes
10141
10142 # On some targets, GNU ld is compatible enough with the native linker
10143 # that we're better off using the native interface for both.
10144 lt_use_gnu_ld_interface=no
10145 if test yes = "$with_gnu_ld"; then
10146 case $host_os in
10147 aix*)
10148 # The AIX port of GNU ld has always aspired to compatibility
10149 # with the native linker. However, as the warning in the GNU ld
10150 # block says, versions before 2.19.5* couldn't really create working
10151 # shared libraries, regardless of the interface used.
10152 case `$LD -v 2>&1` in
10153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10156 *)
10157 lt_use_gnu_ld_interface=yes
10158 ;;
10159 esac
10160 ;;
10161 *)
10162 lt_use_gnu_ld_interface=yes
10163 ;;
10164 esac
10165 fi
10166
10167 if test yes = "$lt_use_gnu_ld_interface"; then
10168 # If archive_cmds runs LD, not CC, wlarc should be empty
10169 wlarc='$wl'
10170
10171 # Set some defaults for GNU ld with shared library support. These
10172 # are reset later if shared libraries are not supported. Putting them
10173 # here allows them to be overridden if necessary.
10174 runpath_var=LD_RUN_PATH
10175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10176 export_dynamic_flag_spec='$wl--export-dynamic'
10177 # ancient GNU ld didn't support --whole-archive et. al.
10178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10179 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10180 else
10181 whole_archive_flag_spec=
10182 fi
10183 supports_anon_versioning=no
10184 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10185 *GNU\ gold*) supports_anon_versioning=yes ;;
10186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10189 *\ 2.11.*) ;; # other 2.11 versions
10190 *) supports_anon_versioning=yes ;;
10191 esac
10192
10193 # See if GNU ld supports shared libraries.
10194 case $host_os in
10195 aix[3-9]*)
10196 # On AIX/PPC, the GNU linker is very broken
10197 if test ia64 != "$host_cpu"; then
10198 ld_shlibs=no
10199 cat <<_LT_EOF 1>&2
10200
10201 *** Warning: the GNU linker, at least up to release 2.19, is reported
10202 *** to be unable to reliably create shared libraries on AIX.
10203 *** Therefore, libtool is disabling shared libraries support. If you
10204 *** really care for shared libraries, you may want to install binutils
10205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10206 *** You will then need to restart the configuration process.
10207
10208 _LT_EOF
10209 fi
10210 ;;
10211
10212 amigaos*)
10213 case $host_cpu in
10214 powerpc)
10215 # see comment about AmigaOS4 .so support
10216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10217 archive_expsym_cmds=''
10218 ;;
10219 m68k)
10220 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)'
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10223 ;;
10224 esac
10225 ;;
10226
10227 beos*)
10228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10229 allow_undefined_flag=unsupported
10230 # Joseph Beckenbach <[email protected]> says some releases of gcc
10231 # support --undefined. This deserves some investigation. FIXME
10232 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10233 else
10234 ld_shlibs=no
10235 fi
10236 ;;
10237
10238 cygwin* | mingw* | pw32* | cegcc*)
10239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10240 # as there is no search path for DLLs.
10241 hardcode_libdir_flag_spec='-L$libdir'
10242 export_dynamic_flag_spec='$wl--export-all-symbols'
10243 allow_undefined_flag=unsupported
10244 always_export_symbols=no
10245 enable_shared_with_static_runtimes=yes
10246 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10247 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10248
10249 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10251 # If the export-symbols file already is a .def file, use it as
10252 # is; otherwise, prepend EXPORTS...
10253 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10254 cp $export_symbols $output_objdir/$soname.def;
10255 else
10256 echo EXPORTS > $output_objdir/$soname.def;
10257 cat $export_symbols >> $output_objdir/$soname.def;
10258 fi~
10259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10260 else
10261 ld_shlibs=no
10262 fi
10263 ;;
10264
10265 haiku*)
10266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10267 link_all_deplibs=yes
10268 ;;
10269
10270 os2*)
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_minus_L=yes
10273 allow_undefined_flag=unsupported
10274 shrext_cmds=.dll
10275 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10278 $ECHO EXPORTS >> $output_objdir/$libname.def~
10279 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10280 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10281 emximp -o $lib $output_objdir/$libname.def'
10282 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10283 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10284 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10285 $ECHO EXPORTS >> $output_objdir/$libname.def~
10286 prefix_cmds="$SED"~
10287 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10288 prefix_cmds="$prefix_cmds -e 1d";
10289 fi~
10290 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10291 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10292 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10293 emximp -o $lib $output_objdir/$libname.def'
10294 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10295 enable_shared_with_static_runtimes=yes
10296 file_list_spec='@'
10297 ;;
10298
10299 interix[3-9]*)
10300 hardcode_direct=no
10301 hardcode_shlibpath_var=no
10302 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10303 export_dynamic_flag_spec='$wl-E'
10304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10305 # Instead, shared libraries are loaded at an image base (0x10000000 by
10306 # default) and relocated if they conflict, which is a slow very memory
10307 # consuming and fragmenting process. To avoid this, we pick a random,
10308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10310 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10311 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'
10312 ;;
10313
10314 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10315 tmp_diet=no
10316 if test linux-dietlibc = "$host_os"; then
10317 case $cc_basename in
10318 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10319 esac
10320 fi
10321 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10322 && test no = "$tmp_diet"
10323 then
10324 tmp_addflag=' $pic_flag'
10325 tmp_sharedflag='-shared'
10326 case $cc_basename,$host_cpu in
10327 pgcc*) # Portland Group C compiler
10328 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'
10329 tmp_addflag=' $pic_flag'
10330 ;;
10331 pgf77* | pgf90* | pgf95* | pgfortran*)
10332 # Portland Group f77 and f90 compilers
10333 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'
10334 tmp_addflag=' $pic_flag -Mnomain' ;;
10335 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10336 tmp_addflag=' -i_dynamic' ;;
10337 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10338 tmp_addflag=' -i_dynamic -nofor_main' ;;
10339 ifc* | ifort*) # Intel Fortran compiler
10340 tmp_addflag=' -nofor_main' ;;
10341 lf95*) # Lahey Fortran 8.1
10342 whole_archive_flag_spec=
10343 tmp_sharedflag='--shared' ;;
10344 nagfor*) # NAGFOR 5.3
10345 tmp_sharedflag='-Wl,-shared' ;;
10346 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10347 tmp_sharedflag='-qmkshrobj'
10348 tmp_addflag= ;;
10349 nvcc*) # Cuda Compiler Driver 2.2
10350 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'
10351 compiler_needs_object=yes
10352 ;;
10353 esac
10354 case `$CC -V 2>&1 | $SED 5q` in
10355 *Sun\ C*) # Sun C 5.9
10356 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'
10357 compiler_needs_object=yes
10358 tmp_sharedflag='-G' ;;
10359 *Sun\ F*) # Sun Fortran 8.3
10360 tmp_sharedflag='-G' ;;
10361 esac
10362 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10363
10364 if test yes = "$supports_anon_versioning"; then
10365 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10366 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10367 echo "local: *; };" >> $output_objdir/$libname.ver~
10368 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10369 fi
10370
10371 case $cc_basename in
10372 tcc*)
10373 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10374 export_dynamic_flag_spec='-rdynamic'
10375 ;;
10376 xlf* | bgf* | bgxlf* | mpixlf*)
10377 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10378 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10379 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10380 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10381 if test yes = "$supports_anon_versioning"; then
10382 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10383 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10384 echo "local: *; };" >> $output_objdir/$libname.ver~
10385 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10386 fi
10387 ;;
10388 esac
10389 else
10390 ld_shlibs=no
10391 fi
10392 ;;
10393
10394 netbsd* | netbsdelf*-gnu)
10395 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10396 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10397 wlarc=
10398 else
10399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10400 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10401 fi
10402 ;;
10403
10404 solaris*)
10405 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10406 ld_shlibs=no
10407 cat <<_LT_EOF 1>&2
10408
10409 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10410 *** create shared libraries on Solaris systems. Therefore, libtool
10411 *** is disabling shared libraries support. We urge you to upgrade GNU
10412 *** binutils to release 2.9.1 or newer. Another option is to modify
10413 *** your PATH or compiler configuration so that the native linker is
10414 *** used, and then restart.
10415
10416 _LT_EOF
10417 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10419 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10420 else
10421 ld_shlibs=no
10422 fi
10423 ;;
10424
10425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10426 case `$LD -v 2>&1` in
10427 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10428 ld_shlibs=no
10429 cat <<_LT_EOF 1>&2
10430
10431 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10432 *** reliably create shared libraries on SCO systems. Therefore, libtool
10433 *** is disabling shared libraries support. We urge you to upgrade GNU
10434 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10435 *** your PATH or compiler configuration so that the native linker is
10436 *** used, and then restart.
10437
10438 _LT_EOF
10439 ;;
10440 *)
10441 # For security reasons, it is highly recommended that you always
10442 # use absolute paths for naming shared libraries, and exclude the
10443 # DT_RUNPATH tag from executables and libraries. But doing so
10444 # requires that you compile everything twice, which is a pain.
10445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10449 else
10450 ld_shlibs=no
10451 fi
10452 ;;
10453 esac
10454 ;;
10455
10456 sunos4*)
10457 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10458 wlarc=
10459 hardcode_direct=yes
10460 hardcode_shlibpath_var=no
10461 ;;
10462
10463 *)
10464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10465 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10466 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10467 else
10468 ld_shlibs=no
10469 fi
10470 ;;
10471 esac
10472
10473 if test no = "$ld_shlibs"; then
10474 runpath_var=
10475 hardcode_libdir_flag_spec=
10476 export_dynamic_flag_spec=
10477 whole_archive_flag_spec=
10478 fi
10479 else
10480 # PORTME fill in a description of your system's linker (not GNU ld)
10481 case $host_os in
10482 aix3*)
10483 allow_undefined_flag=unsupported
10484 always_export_symbols=yes
10485 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'
10486 # Note: this linker hardcodes the directories in LIBPATH if there
10487 # are no directories specified by -L.
10488 hardcode_minus_L=yes
10489 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10490 # Neither direct hardcoding nor static linking is supported with a
10491 # broken collect2.
10492 hardcode_direct=unsupported
10493 fi
10494 ;;
10495
10496 aix[4-9]*)
10497 if test ia64 = "$host_cpu"; then
10498 # On IA64, the linker does run time linking by default, so we don't
10499 # have to do anything special.
10500 aix_use_runtimelinking=no
10501 exp_sym_flag='-Bexport'
10502 no_entry_flag=
10503 else
10504 # If we're using GNU nm, then we don't want the "-C" option.
10505 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10506 # Without the "-l" option, or with the "-B" option, AIX nm treats
10507 # weak defined symbols like other global defined symbols, whereas
10508 # GNU nm marks them as "W".
10509 # While the 'weak' keyword is ignored in the Export File, we need
10510 # it in the Import File for the 'aix-soname' feature, so we have
10511 # to replace the "-B" option with "-P" for AIX nm.
10512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10513 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10514 else
10515 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10516 fi
10517 aix_use_runtimelinking=no
10518
10519 # Test if we are trying to use run time linking or normal
10520 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10521 # have runtime linking enabled, and use it for executables.
10522 # For shared libraries, we enable/disable runtime linking
10523 # depending on the kind of the shared library created -
10524 # when "with_aix_soname,aix_use_runtimelinking" is:
10525 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10526 # "aix,yes" lib.so shared, rtl:yes, for executables
10527 # lib.a static archive
10528 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10529 # lib.a(lib.so.V) shared, rtl:no, for executables
10530 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10531 # lib.a(lib.so.V) shared, rtl:no
10532 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10533 # lib.a static archive
10534 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10535 for ld_flag in $LDFLAGS; do
10536 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10537 aix_use_runtimelinking=yes
10538 break
10539 fi
10540 done
10541 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10542 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10543 # so we don't have lib.a shared libs to link our executables.
10544 # We have to force runtime linking in this case.
10545 aix_use_runtimelinking=yes
10546 LDFLAGS="$LDFLAGS -Wl,-brtl"
10547 fi
10548 ;;
10549 esac
10550
10551 exp_sym_flag='-bexport'
10552 no_entry_flag='-bnoentry'
10553 fi
10554
10555 # When large executables or shared objects are built, AIX ld can
10556 # have problems creating the table of contents. If linking a library
10557 # or program results in "error TOC overflow" add -mminimal-toc to
10558 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10559 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10560
10561 archive_cmds=''
10562 hardcode_direct=yes
10563 hardcode_direct_absolute=yes
10564 hardcode_libdir_separator=':'
10565 link_all_deplibs=yes
10566 file_list_spec='$wl-f,'
10567 case $with_aix_soname,$aix_use_runtimelinking in
10568 aix,*) ;; # traditional, no import file
10569 svr4,* | *,yes) # use import file
10570 # The Import File defines what to hardcode.
10571 hardcode_direct=no
10572 hardcode_direct_absolute=no
10573 ;;
10574 esac
10575
10576 if test yes = "$GCC"; then
10577 case $host_os in aix4.[012]|aix4.[012].*)
10578 # We only want to do this on AIX 4.2 and lower, the check
10579 # below for broken collect2 doesn't work under 4.3+
10580 collect2name=`$CC -print-prog-name=collect2`
10581 if test -f "$collect2name" &&
10582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10583 then
10584 # We have reworked collect2
10585 :
10586 else
10587 # We have old collect2
10588 hardcode_direct=unsupported
10589 # It fails to find uninstalled libraries when the uninstalled
10590 # path is not listed in the libpath. Setting hardcode_minus_L
10591 # to unsupported forces relinking
10592 hardcode_minus_L=yes
10593 hardcode_libdir_flag_spec='-L$libdir'
10594 hardcode_libdir_separator=
10595 fi
10596 ;;
10597 esac
10598 shared_flag='-shared'
10599 if test yes = "$aix_use_runtimelinking"; then
10600 shared_flag="$shared_flag "'$wl-G'
10601 fi
10602 # Need to ensure runtime linking is disabled for the traditional
10603 # shared library, or the linker may eventually find shared libraries
10604 # /with/ Import File - we do not want to mix them.
10605 shared_flag_aix='-shared'
10606 shared_flag_svr4='-shared $wl-G'
10607 else
10608 # not using gcc
10609 if test ia64 = "$host_cpu"; then
10610 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10611 # chokes on -Wl,-G. The following line is correct:
10612 shared_flag='-G'
10613 else
10614 if test yes = "$aix_use_runtimelinking"; then
10615 shared_flag='$wl-G'
10616 else
10617 shared_flag='$wl-bM:SRE'
10618 fi
10619 shared_flag_aix='$wl-bM:SRE'
10620 shared_flag_svr4='$wl-G'
10621 fi
10622 fi
10623
10624 export_dynamic_flag_spec='$wl-bexpall'
10625 # It seems that -bexpall does not export symbols beginning with
10626 # underscore (_), so it is better to generate a list of symbols to export.
10627 always_export_symbols=yes
10628 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10629 # Warning - without using the other runtime loading flags (-brtl),
10630 # -berok will link without error, but may produce a broken library.
10631 allow_undefined_flag='-berok'
10632 # Determine the default libpath from the value encoded in an
10633 # empty executable.
10634 if test set = "${lt_cv_aix_libpath+set}"; then
10635 aix_libpath=$lt_cv_aix_libpath
10636 else
10637 if test ${lt_cv_aix_libpath_+y}
10638 then :
10639 printf %s "(cached) " >&6
10640 else $as_nop
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643
10644 int
10645 main (void)
10646 {
10647
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"
10653 then :
10654
10655 lt_aix_libpath_sed='
10656 /Import File Strings/,/^$/ {
10657 /^0/ {
10658 s/^0 *\([^ ]*\) *$/\1/
10659 p
10660 }
10661 }'
10662 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10663 # Check for a 64-bit object if we didn't find anything.
10664 if test -z "$lt_cv_aix_libpath_"; then
10665 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10666 fi
10667 fi
10668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10669 conftest$ac_exeext conftest.$ac_ext
10670 if test -z "$lt_cv_aix_libpath_"; then
10671 lt_cv_aix_libpath_=/usr/lib:/lib
10672 fi
10673
10674 fi
10675
10676 aix_libpath=$lt_cv_aix_libpath_
10677 fi
10678
10679 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10680 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10681 else
10682 if test ia64 = "$host_cpu"; then
10683 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10684 allow_undefined_flag="-z nodefs"
10685 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"
10686 else
10687 # Determine the default libpath from the value encoded in an
10688 # empty executable.
10689 if test set = "${lt_cv_aix_libpath+set}"; then
10690 aix_libpath=$lt_cv_aix_libpath
10691 else
10692 if test ${lt_cv_aix_libpath_+y}
10693 then :
10694 printf %s "(cached) " >&6
10695 else $as_nop
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698
10699 int
10700 main (void)
10701 {
10702
10703 ;
10704 return 0;
10705 }
10706 _ACEOF
10707 if ac_fn_c_try_link "$LINENO"
10708 then :
10709
10710 lt_aix_libpath_sed='
10711 /Import File Strings/,/^$/ {
10712 /^0/ {
10713 s/^0 *\([^ ]*\) *$/\1/
10714 p
10715 }
10716 }'
10717 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10718 # Check for a 64-bit object if we didn't find anything.
10719 if test -z "$lt_cv_aix_libpath_"; then
10720 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10721 fi
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10724 conftest$ac_exeext conftest.$ac_ext
10725 if test -z "$lt_cv_aix_libpath_"; then
10726 lt_cv_aix_libpath_=/usr/lib:/lib
10727 fi
10728
10729 fi
10730
10731 aix_libpath=$lt_cv_aix_libpath_
10732 fi
10733
10734 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10735 # Warning - without using the other run time loading flags,
10736 # -berok will link without error, but may produce a broken library.
10737 no_undefined_flag=' $wl-bernotok'
10738 allow_undefined_flag=' $wl-berok'
10739 if test yes = "$with_gnu_ld"; then
10740 # We only use this code for GNU lds that support --whole-archive.
10741 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10742 else
10743 # Exported symbols can be pulled into shared objects from archives
10744 whole_archive_flag_spec='$convenience'
10745 fi
10746 archive_cmds_need_lc=yes
10747 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10748 # -brtl affects multiple linker settings, -berok does not and is overridden later
10749 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10750 if test svr4 != "$with_aix_soname"; then
10751 # This is similar to how AIX traditionally builds its shared libraries.
10752 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10753 fi
10754 if test aix != "$with_aix_soname"; then
10755 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10756 else
10757 # used by -dlpreopen to get the symbols
10758 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10759 fi
10760 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10761 fi
10762 fi
10763 ;;
10764
10765 amigaos*)
10766 case $host_cpu in
10767 powerpc)
10768 # see comment about AmigaOS4 .so support
10769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10770 archive_expsym_cmds=''
10771 ;;
10772 m68k)
10773 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)'
10774 hardcode_libdir_flag_spec='-L$libdir'
10775 hardcode_minus_L=yes
10776 ;;
10777 esac
10778 ;;
10779
10780 bsdi[45]*)
10781 export_dynamic_flag_spec=-rdynamic
10782 ;;
10783
10784 cygwin* | mingw* | pw32* | cegcc*)
10785 # When not using gcc, we currently assume that we are using
10786 # Microsoft Visual C++ or Intel C++ Compiler.
10787 # hardcode_libdir_flag_spec is actually meaningless, as there is
10788 # no search path for DLLs.
10789 case $cc_basename in
10790 cl* | icl*)
10791 # Native MSVC or ICC
10792 hardcode_libdir_flag_spec=' '
10793 allow_undefined_flag=unsupported
10794 always_export_symbols=yes
10795 file_list_spec='@'
10796 # Tell ltmain to make .lib files, not .a files.
10797 libext=lib
10798 # Tell ltmain to make .dll files, not .so files.
10799 shrext_cmds=.dll
10800 # FIXME: Setting linknames here is a bad hack.
10801 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10802 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10803 cp "$export_symbols" "$output_objdir/$soname.def";
10804 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10805 else
10806 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10807 fi~
10808 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10809 linknames='
10810 # The linker will not automatically build a static lib if we build a DLL.
10811 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10812 enable_shared_with_static_runtimes=yes
10813 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10815 # Don't use ranlib
10816 old_postinstall_cmds='chmod 644 $oldlib'
10817 postlink_cmds='lt_outputfile="@OUTPUT@"~
10818 lt_tool_outputfile="@TOOL_OUTPUT@"~
10819 case $lt_outputfile in
10820 *.exe|*.EXE) ;;
10821 *)
10822 lt_outputfile=$lt_outputfile.exe
10823 lt_tool_outputfile=$lt_tool_outputfile.exe
10824 ;;
10825 esac~
10826 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10828 $RM "$lt_outputfile.manifest";
10829 fi'
10830 ;;
10831 *)
10832 # Assume MSVC and ICC wrapper
10833 hardcode_libdir_flag_spec=' '
10834 allow_undefined_flag=unsupported
10835 # Tell ltmain to make .lib files, not .a files.
10836 libext=lib
10837 # Tell ltmain to make .dll files, not .so files.
10838 shrext_cmds=.dll
10839 # FIXME: Setting linknames here is a bad hack.
10840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10841 # The linker will automatically build a .lib file if we build a DLL.
10842 old_archive_from_new_cmds='true'
10843 # FIXME: Should let the user specify the lib program.
10844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10845 enable_shared_with_static_runtimes=yes
10846 ;;
10847 esac
10848 ;;
10849
10850 darwin* | rhapsody*)
10851
10852
10853 archive_cmds_need_lc=no
10854 hardcode_direct=no
10855 hardcode_automatic=yes
10856 hardcode_shlibpath_var=unsupported
10857 if test yes = "$lt_cv_ld_force_load"; then
10858 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\"`'
10859
10860 else
10861 whole_archive_flag_spec=''
10862 fi
10863 link_all_deplibs=yes
10864 allow_undefined_flag=$_lt_dar_allow_undefined
10865 case $cc_basename in
10866 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10867 *) _lt_dar_can_shared=$GCC ;;
10868 esac
10869 if test yes = "$_lt_dar_can_shared"; then
10870 output_verbose_link_cmd=func_echo_all
10871 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10872 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10873 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"
10874 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"
10875
10876 else
10877 ld_shlibs=no
10878 fi
10879
10880 ;;
10881
10882 dgux*)
10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_libdir_flag_spec='-L$libdir'
10885 hardcode_shlibpath_var=no
10886 ;;
10887
10888 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10889 # support. Future versions do this automatically, but an explicit c++rt0.o
10890 # does not break anything, and helps significantly (at the cost of a little
10891 # extra space).
10892 freebsd2.2*)
10893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10894 hardcode_libdir_flag_spec='-R$libdir'
10895 hardcode_direct=yes
10896 hardcode_shlibpath_var=no
10897 ;;
10898
10899 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10900 freebsd2.*)
10901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10902 hardcode_direct=yes
10903 hardcode_minus_L=yes
10904 hardcode_shlibpath_var=no
10905 ;;
10906
10907 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10908 freebsd* | dragonfly* | midnightbsd*)
10909 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10910 hardcode_libdir_flag_spec='-R$libdir'
10911 hardcode_direct=yes
10912 hardcode_shlibpath_var=no
10913 ;;
10914
10915 hpux9*)
10916 if test yes = "$GCC"; then
10917 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10918 else
10919 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10920 fi
10921 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10922 hardcode_libdir_separator=:
10923 hardcode_direct=yes
10924
10925 # hardcode_minus_L: Not really in the search PATH,
10926 # but as the default location of the library.
10927 hardcode_minus_L=yes
10928 export_dynamic_flag_spec='$wl-E'
10929 ;;
10930
10931 hpux10*)
10932 if test yes,no = "$GCC,$with_gnu_ld"; then
10933 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10934 else
10935 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10936 fi
10937 if test no = "$with_gnu_ld"; then
10938 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10939 hardcode_libdir_separator=:
10940 hardcode_direct=yes
10941 hardcode_direct_absolute=yes
10942 export_dynamic_flag_spec='$wl-E'
10943 # hardcode_minus_L: Not really in the search PATH,
10944 # but as the default location of the library.
10945 hardcode_minus_L=yes
10946 fi
10947 ;;
10948
10949 hpux11*)
10950 if test yes,no = "$GCC,$with_gnu_ld"; then
10951 case $host_cpu in
10952 hppa*64*)
10953 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10954 ;;
10955 ia64*)
10956 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10957 ;;
10958 *)
10959 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10960 ;;
10961 esac
10962 else
10963 case $host_cpu in
10964 hppa*64*)
10965 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10966 ;;
10967 ia64*)
10968 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10969 ;;
10970 *)
10971
10972 # Older versions of the 11.00 compiler do not understand -b yet
10973 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10975 printf %s "checking if $CC understands -b... " >&6; }
10976 if test ${lt_cv_prog_compiler__b+y}
10977 then :
10978 printf %s "(cached) " >&6
10979 else $as_nop
10980 lt_cv_prog_compiler__b=no
10981 save_LDFLAGS=$LDFLAGS
10982 LDFLAGS="$LDFLAGS -b"
10983 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10985 # The linker can only warn and ignore the option if not recognized
10986 # So say no if there are warnings
10987 if test -s conftest.err; then
10988 # Append any errors to the config.log.
10989 cat conftest.err 1>&5
10990 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10992 if diff conftest.exp conftest.er2 >/dev/null; then
10993 lt_cv_prog_compiler__b=yes
10994 fi
10995 else
10996 lt_cv_prog_compiler__b=yes
10997 fi
10998 fi
10999 $RM -r conftest*
11000 LDFLAGS=$save_LDFLAGS
11001
11002 fi
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11004 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11005
11006 if test yes = "$lt_cv_prog_compiler__b"; then
11007 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11008 else
11009 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11010 fi
11011
11012 ;;
11013 esac
11014 fi
11015 if test no = "$with_gnu_ld"; then
11016 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11017 hardcode_libdir_separator=:
11018
11019 case $host_cpu in
11020 hppa*64*|ia64*)
11021 hardcode_direct=no
11022 hardcode_shlibpath_var=no
11023 ;;
11024 *)
11025 hardcode_direct=yes
11026 hardcode_direct_absolute=yes
11027 export_dynamic_flag_spec='$wl-E'
11028
11029 # hardcode_minus_L: Not really in the search PATH,
11030 # but as the default location of the library.
11031 hardcode_minus_L=yes
11032 ;;
11033 esac
11034 fi
11035 ;;
11036
11037 irix5* | irix6* | nonstopux*)
11038 if test yes = "$GCC"; then
11039 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11040 # Try to use the -exported_symbol ld option, if it does not
11041 # work, assume that -exports_file does not work either and
11042 # implicitly export all symbols.
11043 # This should be the same for all languages, so no per-tag cache variable.
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11045 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11046 if test ${lt_cv_irix_exported_symbol+y}
11047 then :
11048 printf %s "(cached) " >&6
11049 else $as_nop
11050 save_LDFLAGS=$LDFLAGS
11051 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 int foo (void) { return 0; }
11055 _ACEOF
11056 if ac_fn_c_try_link "$LINENO"
11057 then :
11058 lt_cv_irix_exported_symbol=yes
11059 else $as_nop
11060 lt_cv_irix_exported_symbol=no
11061 fi
11062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LDFLAGS=$save_LDFLAGS
11065 fi
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11067 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11068 if test yes = "$lt_cv_irix_exported_symbol"; then
11069 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11070 fi
11071 link_all_deplibs=no
11072 else
11073 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'
11074 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'
11075 fi
11076 archive_cmds_need_lc='no'
11077 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11078 hardcode_libdir_separator=:
11079 inherit_rpath=yes
11080 link_all_deplibs=yes
11081 ;;
11082
11083 linux*)
11084 case $cc_basename in
11085 tcc*)
11086 # Fabrice Bellard et al's Tiny C Compiler
11087 ld_shlibs=yes
11088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11089 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11090 ;;
11091 esac
11092 ;;
11093
11094 netbsd* | netbsdelf*-gnu)
11095 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11096 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11097 else
11098 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11099 fi
11100 hardcode_libdir_flag_spec='-R$libdir'
11101 hardcode_direct=yes
11102 hardcode_shlibpath_var=no
11103 ;;
11104
11105 newsos6)
11106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_direct=yes
11108 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11109 hardcode_libdir_separator=:
11110 hardcode_shlibpath_var=no
11111 ;;
11112
11113 *nto* | *qnx*)
11114 ;;
11115
11116 openbsd* | bitrig*)
11117 if test -f /usr/libexec/ld.so; then
11118 hardcode_direct=yes
11119 hardcode_shlibpath_var=no
11120 hardcode_direct_absolute=yes
11121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11123 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11124 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11125 export_dynamic_flag_spec='$wl-E'
11126 else
11127 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11128 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11129 fi
11130 else
11131 ld_shlibs=no
11132 fi
11133 ;;
11134
11135 os2*)
11136 hardcode_libdir_flag_spec='-L$libdir'
11137 hardcode_minus_L=yes
11138 allow_undefined_flag=unsupported
11139 shrext_cmds=.dll
11140 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11141 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11142 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11143 $ECHO EXPORTS >> $output_objdir/$libname.def~
11144 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11145 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11146 emximp -o $lib $output_objdir/$libname.def'
11147 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11148 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11149 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11150 $ECHO EXPORTS >> $output_objdir/$libname.def~
11151 prefix_cmds="$SED"~
11152 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11153 prefix_cmds="$prefix_cmds -e 1d";
11154 fi~
11155 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11156 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11157 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11158 emximp -o $lib $output_objdir/$libname.def'
11159 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11160 enable_shared_with_static_runtimes=yes
11161 file_list_spec='@'
11162 ;;
11163
11164 osf3*)
11165 if test yes = "$GCC"; then
11166 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11167 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'
11168 else
11169 allow_undefined_flag=' -expect_unresolved \*'
11170 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'
11171 fi
11172 archive_cmds_need_lc='no'
11173 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11174 hardcode_libdir_separator=:
11175 ;;
11176
11177 osf4* | osf5*) # as osf3* with the addition of -msym flag
11178 if test yes = "$GCC"; then
11179 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11180 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11181 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11182 else
11183 allow_undefined_flag=' -expect_unresolved \*'
11184 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'
11185 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~
11186 $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'
11187
11188 # Both c and cxx compiler support -rpath directly
11189 hardcode_libdir_flag_spec='-rpath $libdir'
11190 fi
11191 archive_cmds_need_lc='no'
11192 hardcode_libdir_separator=:
11193 ;;
11194
11195 solaris*)
11196 no_undefined_flag=' -z defs'
11197 if test yes = "$GCC"; then
11198 wlarc='$wl'
11199 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11200 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11201 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11202 else
11203 case `$CC -V 2>&1` in
11204 *"Compilers 5.0"*)
11205 wlarc=''
11206 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11208 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11209 ;;
11210 *)
11211 wlarc='$wl'
11212 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11213 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11214 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11215 ;;
11216 esac
11217 fi
11218 hardcode_libdir_flag_spec='-R$libdir'
11219 hardcode_shlibpath_var=no
11220 case $host_os in
11221 solaris2.[0-5] | solaris2.[0-5].*) ;;
11222 *)
11223 # The compiler driver will combine and reorder linker options,
11224 # but understands '-z linker_flag'. GCC discards it without '$wl',
11225 # but is careful enough not to reorder.
11226 # Supported since Solaris 2.6 (maybe 2.5.1?)
11227 if test yes = "$GCC"; then
11228 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11229 else
11230 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11231 fi
11232 ;;
11233 esac
11234 link_all_deplibs=yes
11235 ;;
11236
11237 sunos4*)
11238 if test sequent = "$host_vendor"; then
11239 # Use $CC to link under sequent, because it throws in some extra .o
11240 # files that make .init and .fini sections work.
11241 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11242 else
11243 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11244 fi
11245 hardcode_libdir_flag_spec='-L$libdir'
11246 hardcode_direct=yes
11247 hardcode_minus_L=yes
11248 hardcode_shlibpath_var=no
11249 ;;
11250
11251 sysv4)
11252 case $host_vendor in
11253 sni)
11254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255 hardcode_direct=yes # is this really true???
11256 ;;
11257 siemens)
11258 ## LD is ld it makes a PLAMLIB
11259 ## CC just makes a GrossModule.
11260 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11261 reload_cmds='$CC -r -o $output$reload_objs'
11262 hardcode_direct=no
11263 ;;
11264 motorola)
11265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11266 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11267 ;;
11268 esac
11269 runpath_var='LD_RUN_PATH'
11270 hardcode_shlibpath_var=no
11271 ;;
11272
11273 sysv4.3*)
11274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_shlibpath_var=no
11276 export_dynamic_flag_spec='-Bexport'
11277 ;;
11278
11279 sysv4*MP*)
11280 if test -d /usr/nec; then
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_shlibpath_var=no
11283 runpath_var=LD_RUN_PATH
11284 hardcode_runpath_var=yes
11285 ld_shlibs=yes
11286 fi
11287 ;;
11288
11289 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11290 no_undefined_flag='$wl-z,text'
11291 archive_cmds_need_lc=no
11292 hardcode_shlibpath_var=no
11293 runpath_var='LD_RUN_PATH'
11294
11295 if test yes = "$GCC"; then
11296 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11297 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 else
11299 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11300 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11301 fi
11302 ;;
11303
11304 sysv5* | sco3.2v5* | sco5v6*)
11305 # Note: We CANNOT use -z defs as we might desire, because we do not
11306 # link with -lc, and that would cause any symbols used from libc to
11307 # always be unresolved, which means just about no library would
11308 # ever link correctly. If we're not using GNU ld we use -z text
11309 # though, which does catch some bad symbols but isn't as heavy-handed
11310 # as -z defs.
11311 no_undefined_flag='$wl-z,text'
11312 allow_undefined_flag='$wl-z,nodefs'
11313 archive_cmds_need_lc=no
11314 hardcode_shlibpath_var=no
11315 hardcode_libdir_flag_spec='$wl-R,$libdir'
11316 hardcode_libdir_separator=':'
11317 link_all_deplibs=yes
11318 export_dynamic_flag_spec='$wl-Bexport'
11319 runpath_var='LD_RUN_PATH'
11320
11321 if test yes = "$GCC"; then
11322 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11323 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11324 else
11325 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11326 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 fi
11328 ;;
11329
11330 uts4*)
11331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332 hardcode_libdir_flag_spec='-L$libdir'
11333 hardcode_shlibpath_var=no
11334 ;;
11335
11336 *)
11337 ld_shlibs=no
11338 ;;
11339 esac
11340
11341 if test sni = "$host_vendor"; then
11342 case $host in
11343 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11344 export_dynamic_flag_spec='$wl-Blargedynsym'
11345 ;;
11346 esac
11347 fi
11348 fi
11349
11350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11351 printf "%s\n" "$ld_shlibs" >&6; }
11352 test no = "$ld_shlibs" && can_build_shared=no
11353
11354 with_gnu_ld=$with_gnu_ld
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370 #
11371 # Do we need to explicitly link libc?
11372 #
11373 case "x$archive_cmds_need_lc" in
11374 x|xyes)
11375 # Assume -lc should be added
11376 archive_cmds_need_lc=yes
11377
11378 if test yes,yes = "$GCC,$enable_shared"; then
11379 case $archive_cmds in
11380 *'~'*)
11381 # FIXME: we may have to deal with multi-command sequences.
11382 ;;
11383 '$CC '*)
11384 # Test whether the compiler implicitly links with -lc since on some
11385 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11386 # to ld, don't add -lc before -lgcc.
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11388 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11389 if test ${lt_cv_archive_cmds_need_lc+y}
11390 then :
11391 printf %s "(cached) " >&6
11392 else $as_nop
11393 $RM conftest*
11394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11395
11396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11397 (eval $ac_compile) 2>&5
11398 ac_status=$?
11399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11400 test $ac_status = 0; } 2>conftest.err; then
11401 soname=conftest
11402 lib=conftest
11403 libobjs=conftest.$ac_objext
11404 deplibs=
11405 wl=$lt_prog_compiler_wl
11406 pic_flag=$lt_prog_compiler_pic
11407 compiler_flags=-v
11408 linker_flags=-v
11409 verstring=
11410 output_objdir=.
11411 libname=conftest
11412 lt_save_allow_undefined_flag=$allow_undefined_flag
11413 allow_undefined_flag=
11414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11416 ac_status=$?
11417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11418 test $ac_status = 0; }
11419 then
11420 lt_cv_archive_cmds_need_lc=no
11421 else
11422 lt_cv_archive_cmds_need_lc=yes
11423 fi
11424 allow_undefined_flag=$lt_save_allow_undefined_flag
11425 else
11426 cat conftest.err 1>&5
11427 fi
11428 $RM conftest*
11429
11430 fi
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11432 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11433 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11434 ;;
11435 esac
11436 fi
11437 ;;
11438 esac
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11592 printf %s "checking dynamic linker characteristics... " >&6; }
11593
11594 if test yes = "$GCC"; then
11595 case $host_os in
11596 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11597 *) lt_awk_arg='/^libraries:/' ;;
11598 esac
11599 case $host_os in
11600 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11601 *) lt_sed_strip_eq='s|=/|/|g' ;;
11602 esac
11603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11604 case $lt_search_path_spec in
11605 *\;*)
11606 # if the path contains ";" then we assume it to be the separator
11607 # otherwise default to the standard path separator (i.e. ":") - it is
11608 # assumed that no part of a normal pathname contains ";" but that should
11609 # okay in the real world where ";" in dirpaths is itself problematic.
11610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11611 ;;
11612 *)
11613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11614 ;;
11615 esac
11616 # Ok, now we have the path, separated by spaces, we can step through it
11617 # and add multilib dir if necessary...
11618 lt_tmp_lt_search_path_spec=
11619 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11620 # ...but if some path component already ends with the multilib dir we assume
11621 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11622 case "$lt_multi_os_dir; $lt_search_path_spec " in
11623 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11624 lt_multi_os_dir=
11625 ;;
11626 esac
11627 for lt_sys_path in $lt_search_path_spec; do
11628 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11629 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11630 elif test -n "$lt_multi_os_dir"; then
11631 test -d "$lt_sys_path" && \
11632 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11633 fi
11634 done
11635 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11636 BEGIN {RS = " "; FS = "/|\n";} {
11637 lt_foo = "";
11638 lt_count = 0;
11639 for (lt_i = NF; lt_i > 0; lt_i--) {
11640 if ($lt_i != "" && $lt_i != ".") {
11641 if ($lt_i == "..") {
11642 lt_count++;
11643 } else {
11644 if (lt_count == 0) {
11645 lt_foo = "/" $lt_i lt_foo;
11646 } else {
11647 lt_count--;
11648 }
11649 }
11650 }
11651 }
11652 if (lt_foo != "") { lt_freq[lt_foo]++; }
11653 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11654 }'`
11655 # AWK program above erroneously prepends '/' to C:/dos/paths
11656 # for these hosts.
11657 case $host_os in
11658 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11659 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11660 esac
11661 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11662 else
11663 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11664 fi
11665 library_names_spec=
11666 libname_spec='lib$name'
11667 soname_spec=
11668 shrext_cmds=.so
11669 postinstall_cmds=
11670 postuninstall_cmds=
11671 finish_cmds=
11672 finish_eval=
11673 shlibpath_var=
11674 shlibpath_overrides_runpath=unknown
11675 version_type=none
11676 dynamic_linker="$host_os ld.so"
11677 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11678 need_lib_prefix=unknown
11679 hardcode_into_libs=no
11680
11681 # when you set need_version to no, make sure it does not cause -set_version
11682 # flags to be left without arguments
11683 need_version=unknown
11684
11685
11686
11687 case $host_os in
11688 aix3*)
11689 version_type=linux # correct to gnu/linux during the next big refactor
11690 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11691 shlibpath_var=LIBPATH
11692
11693 # AIX 3 has no versioning support, so we append a major version to the name.
11694 soname_spec='$libname$release$shared_ext$major'
11695 ;;
11696
11697 aix[4-9]*)
11698 version_type=linux # correct to gnu/linux during the next big refactor
11699 need_lib_prefix=no
11700 need_version=no
11701 hardcode_into_libs=yes
11702 if test ia64 = "$host_cpu"; then
11703 # AIX 5 supports IA64
11704 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 else
11707 # With GCC up to 2.95.x, collect2 would create an import file
11708 # for dependence libraries. The import file would start with
11709 # the line '#! .'. This would cause the generated library to
11710 # depend on '.', always an invalid library. This was fixed in
11711 # development snapshots of GCC prior to 3.0.
11712 case $host_os in
11713 aix4 | aix4.[01] | aix4.[01].*)
11714 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11715 echo ' yes '
11716 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11717 :
11718 else
11719 can_build_shared=no
11720 fi
11721 ;;
11722 esac
11723 # Using Import Files as archive members, it is possible to support
11724 # filename-based versioning of shared library archives on AIX. While
11725 # this would work for both with and without runtime linking, it will
11726 # prevent static linking of such archives. So we do filename-based
11727 # shared library versioning with .so extension only, which is used
11728 # when both runtime linking and shared linking is enabled.
11729 # Unfortunately, runtime linking may impact performance, so we do
11730 # not want this to be the default eventually. Also, we use the
11731 # versioned .so libs for executables only if there is the -brtl
11732 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11733 # To allow for filename-based versioning support, we need to create
11734 # libNAME.so.V as an archive file, containing:
11735 # *) an Import File, referring to the versioned filename of the
11736 # archive as well as the shared archive member, telling the
11737 # bitwidth (32 or 64) of that shared object, and providing the
11738 # list of exported symbols of that shared object, eventually
11739 # decorated with the 'weak' keyword
11740 # *) the shared object with the F_LOADONLY flag set, to really avoid
11741 # it being seen by the linker.
11742 # At run time we better use the real file rather than another symlink,
11743 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11744
11745 case $with_aix_soname,$aix_use_runtimelinking in
11746 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11747 # soname into executable. Probably we can add versioning support to
11748 # collect2, so additional links can be useful in future.
11749 aix,yes) # traditional libtool
11750 dynamic_linker='AIX unversionable lib.so'
11751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11752 # instead of lib<name>.a to let people know that these are not
11753 # typical AIX shared libraries.
11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11755 ;;
11756 aix,no) # traditional AIX only
11757 dynamic_linker='AIX lib.a(lib.so.V)'
11758 # We preserve .a as extension for shared libraries through AIX4.2
11759 # and later when we are not doing run time linking.
11760 library_names_spec='$libname$release.a $libname.a'
11761 soname_spec='$libname$release$shared_ext$major'
11762 ;;
11763 svr4,*) # full svr4 only
11764 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11765 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11766 # We do not specify a path in Import Files, so LIBPATH fires.
11767 shlibpath_overrides_runpath=yes
11768 ;;
11769 *,yes) # both, prefer svr4
11770 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11771 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11772 # unpreferred sharedlib libNAME.a needs extra handling
11773 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11774 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11775 # We do not specify a path in Import Files, so LIBPATH fires.
11776 shlibpath_overrides_runpath=yes
11777 ;;
11778 *,no) # both, prefer aix
11779 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11780 library_names_spec='$libname$release.a $libname.a'
11781 soname_spec='$libname$release$shared_ext$major'
11782 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11783 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11784 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11785 ;;
11786 esac
11787 shlibpath_var=LIBPATH
11788 fi
11789 ;;
11790
11791 amigaos*)
11792 case $host_cpu in
11793 powerpc)
11794 # Since July 2007 AmigaOS4 officially supports .so libraries.
11795 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11797 ;;
11798 m68k)
11799 library_names_spec='$libname.ixlibrary $libname.a'
11800 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11801 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11802 ;;
11803 esac
11804 ;;
11805
11806 beos*)
11807 library_names_spec='$libname$shared_ext'
11808 dynamic_linker="$host_os ld.so"
11809 shlibpath_var=LIBRARY_PATH
11810 ;;
11811
11812 bsdi[45]*)
11813 version_type=linux # correct to gnu/linux during the next big refactor
11814 need_version=no
11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11816 soname_spec='$libname$release$shared_ext$major'
11817 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11818 shlibpath_var=LD_LIBRARY_PATH
11819 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11820 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11821 # the default ld.so.conf also contains /usr/contrib/lib and
11822 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11823 # libtool to hard-code these into programs
11824 ;;
11825
11826 cygwin* | mingw* | pw32* | cegcc*)
11827 version_type=windows
11828 shrext_cmds=.dll
11829 need_version=no
11830 need_lib_prefix=no
11831
11832 case $GCC,$cc_basename in
11833 yes,*)
11834 # gcc
11835 library_names_spec='$libname.dll.a'
11836 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11837 postinstall_cmds='base_file=`basename \$file`~
11838 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11839 dldir=$destdir/`dirname \$dlpath`~
11840 test -d \$dldir || mkdir -p \$dldir~
11841 $install_prog $dir/$dlname \$dldir/$dlname~
11842 chmod a+x \$dldir/$dlname~
11843 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11844 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11845 fi'
11846 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11847 dlpath=$dir/\$dldll~
11848 $RM \$dlpath'
11849 shlibpath_overrides_runpath=yes
11850
11851 case $host_os in
11852 cygwin*)
11853 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11854 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11855
11856 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11857 ;;
11858 mingw* | cegcc*)
11859 # MinGW DLLs use traditional 'lib' prefix
11860 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11861 ;;
11862 pw32*)
11863 # pw32 DLLs use 'pw' prefix rather than 'lib'
11864 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11865 ;;
11866 esac
11867 dynamic_linker='Win32 ld.exe'
11868 ;;
11869
11870 *,cl* | *,icl*)
11871 # Native MSVC or ICC
11872 libname_spec='$name'
11873 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11874 library_names_spec='$libname.dll.lib'
11875
11876 case $build_os in
11877 mingw*)
11878 sys_lib_search_path_spec=
11879 lt_save_ifs=$IFS
11880 IFS=';'
11881 for lt_path in $LIB
11882 do
11883 IFS=$lt_save_ifs
11884 # Let DOS variable expansion print the short 8.3 style file name.
11885 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11886 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11887 done
11888 IFS=$lt_save_ifs
11889 # Convert to MSYS style.
11890 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11891 ;;
11892 cygwin*)
11893 # Convert to unix form, then to dos form, then back to unix form
11894 # but this time dos style (no spaces!) so that the unix form looks
11895 # like /cygdrive/c/PROGRA~1:/cygdr...
11896 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11897 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11898 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11899 ;;
11900 *)
11901 sys_lib_search_path_spec=$LIB
11902 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11903 # It is most probably a Windows format PATH.
11904 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11905 else
11906 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11907 fi
11908 # FIXME: find the short name or the path components, as spaces are
11909 # common. (e.g. "Program Files" -> "PROGRA~1")
11910 ;;
11911 esac
11912
11913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11914 postinstall_cmds='base_file=`basename \$file`~
11915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11916 dldir=$destdir/`dirname \$dlpath`~
11917 test -d \$dldir || mkdir -p \$dldir~
11918 $install_prog $dir/$dlname \$dldir/$dlname'
11919 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11920 dlpath=$dir/\$dldll~
11921 $RM \$dlpath'
11922 shlibpath_overrides_runpath=yes
11923 dynamic_linker='Win32 link.exe'
11924 ;;
11925
11926 *)
11927 # Assume MSVC and ICC wrapper
11928 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11929 dynamic_linker='Win32 ld.exe'
11930 ;;
11931 esac
11932 # FIXME: first we should search . and the directory the executable is in
11933 shlibpath_var=PATH
11934 ;;
11935
11936 darwin* | rhapsody*)
11937 dynamic_linker="$host_os dyld"
11938 version_type=darwin
11939 need_lib_prefix=no
11940 need_version=no
11941 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11942 soname_spec='$libname$release$major$shared_ext'
11943 shlibpath_overrides_runpath=yes
11944 shlibpath_var=DYLD_LIBRARY_PATH
11945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11946
11947 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11949 ;;
11950
11951 dgux*)
11952 version_type=linux # correct to gnu/linux during the next big refactor
11953 need_lib_prefix=no
11954 need_version=no
11955 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11956 soname_spec='$libname$release$shared_ext$major'
11957 shlibpath_var=LD_LIBRARY_PATH
11958 ;;
11959
11960 freebsd* | dragonfly* | midnightbsd*)
11961 # DragonFly does not have aout. When/if they implement a new
11962 # versioning mechanism, adjust this.
11963 if test -x /usr/bin/objformat; then
11964 objformat=`/usr/bin/objformat`
11965 else
11966 case $host_os in
11967 freebsd[23].*) objformat=aout ;;
11968 *) objformat=elf ;;
11969 esac
11970 fi
11971 version_type=freebsd-$objformat
11972 case $version_type in
11973 freebsd-elf*)
11974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11975 soname_spec='$libname$release$shared_ext$major'
11976 need_version=no
11977 need_lib_prefix=no
11978 ;;
11979 freebsd-*)
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11981 need_version=yes
11982 ;;
11983 esac
11984 shlibpath_var=LD_LIBRARY_PATH
11985 case $host_os in
11986 freebsd2.*)
11987 shlibpath_overrides_runpath=yes
11988 ;;
11989 freebsd3.[01]* | freebsdelf3.[01]*)
11990 shlibpath_overrides_runpath=yes
11991 hardcode_into_libs=yes
11992 ;;
11993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11995 shlibpath_overrides_runpath=no
11996 hardcode_into_libs=yes
11997 ;;
11998 *) # from 4.6 on, and DragonFly
11999 shlibpath_overrides_runpath=yes
12000 hardcode_into_libs=yes
12001 ;;
12002 esac
12003 ;;
12004
12005 haiku*)
12006 version_type=linux # correct to gnu/linux during the next big refactor
12007 need_lib_prefix=no
12008 need_version=no
12009 dynamic_linker="$host_os runtime_loader"
12010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12011 soname_spec='$libname$release$shared_ext$major'
12012 shlibpath_var=LIBRARY_PATH
12013 shlibpath_overrides_runpath=no
12014 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12015 hardcode_into_libs=yes
12016 ;;
12017
12018 hpux9* | hpux10* | hpux11*)
12019 # Give a soname corresponding to the major version so that dld.sl refuses to
12020 # link against other versions.
12021 version_type=sunos
12022 need_lib_prefix=no
12023 need_version=no
12024 case $host_cpu in
12025 ia64*)
12026 shrext_cmds='.so'
12027 hardcode_into_libs=yes
12028 dynamic_linker="$host_os dld.so"
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12031 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12032 soname_spec='$libname$release$shared_ext$major'
12033 if test 32 = "$HPUX_IA64_MODE"; then
12034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12035 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12036 else
12037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12038 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12039 fi
12040 ;;
12041 hppa*64*)
12042 shrext_cmds='.sl'
12043 hardcode_into_libs=yes
12044 dynamic_linker="$host_os dld.sl"
12045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12048 soname_spec='$libname$release$shared_ext$major'
12049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12051 ;;
12052 *)
12053 shrext_cmds='.sl'
12054 dynamic_linker="$host_os dld.sl"
12055 shlibpath_var=SHLIB_PATH
12056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058 soname_spec='$libname$release$shared_ext$major'
12059 ;;
12060 esac
12061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12062 postinstall_cmds='chmod 555 $lib'
12063 # or fails outright, so override atomically:
12064 install_override_mode=555
12065 ;;
12066
12067 interix[3-9]*)
12068 version_type=linux # correct to gnu/linux during the next big refactor
12069 need_lib_prefix=no
12070 need_version=no
12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12072 soname_spec='$libname$release$shared_ext$major'
12073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12074 shlibpath_var=LD_LIBRARY_PATH
12075 shlibpath_overrides_runpath=no
12076 hardcode_into_libs=yes
12077 ;;
12078
12079 irix5* | irix6* | nonstopux*)
12080 case $host_os in
12081 nonstopux*) version_type=nonstopux ;;
12082 *)
12083 if test yes = "$lt_cv_prog_gnu_ld"; then
12084 version_type=linux # correct to gnu/linux during the next big refactor
12085 else
12086 version_type=irix
12087 fi ;;
12088 esac
12089 need_lib_prefix=no
12090 need_version=no
12091 soname_spec='$libname$release$shared_ext$major'
12092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12093 case $host_os in
12094 irix5* | nonstopux*)
12095 libsuff= shlibsuff=
12096 ;;
12097 *)
12098 case $LD in # libtool.m4 will add one of these switches to LD
12099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12100 libsuff= shlibsuff= libmagic=32-bit;;
12101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12102 libsuff=32 shlibsuff=N32 libmagic=N32;;
12103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12105 *) libsuff= shlibsuff= libmagic=never-match;;
12106 esac
12107 ;;
12108 esac
12109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12110 shlibpath_overrides_runpath=no
12111 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12112 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12113 hardcode_into_libs=yes
12114 ;;
12115
12116 # No shared lib support for Linux oldld, aout, or coff.
12117 linux*oldld* | linux*aout* | linux*coff*)
12118 dynamic_linker=no
12119 ;;
12120
12121 linux*android*)
12122 version_type=none # Android doesn't support versioned libraries.
12123 need_lib_prefix=no
12124 need_version=no
12125 library_names_spec='$libname$release$shared_ext'
12126 soname_spec='$libname$release$shared_ext'
12127 finish_cmds=
12128 shlibpath_var=LD_LIBRARY_PATH
12129 shlibpath_overrides_runpath=yes
12130
12131 # This implies no fast_install, which is unacceptable.
12132 # Some rework will be needed to allow for fast_install
12133 # before this can be enabled.
12134 hardcode_into_libs=yes
12135
12136 dynamic_linker='Android linker'
12137 # Don't embed -rpath directories since the linker doesn't support them.
12138 hardcode_libdir_flag_spec='-L$libdir'
12139 ;;
12140
12141 # This must be glibc/ELF.
12142 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12143 version_type=linux # correct to gnu/linux during the next big refactor
12144 need_lib_prefix=no
12145 need_version=no
12146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12147 soname_spec='$libname$release$shared_ext$major'
12148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12149 shlibpath_var=LD_LIBRARY_PATH
12150 shlibpath_overrides_runpath=no
12151
12152 # Some binutils ld are patched to set DT_RUNPATH
12153 if test ${lt_cv_shlibpath_overrides_runpath+y}
12154 then :
12155 printf %s "(cached) " >&6
12156 else $as_nop
12157 lt_cv_shlibpath_overrides_runpath=no
12158 save_LDFLAGS=$LDFLAGS
12159 save_libdir=$libdir
12160 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12161 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164
12165 int
12166 main (void)
12167 {
12168
12169 ;
12170 return 0;
12171 }
12172 _ACEOF
12173 if ac_fn_c_try_link "$LINENO"
12174 then :
12175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12176 then :
12177 lt_cv_shlibpath_overrides_runpath=yes
12178 fi
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12181 conftest$ac_exeext conftest.$ac_ext
12182 LDFLAGS=$save_LDFLAGS
12183 libdir=$save_libdir
12184
12185 fi
12186
12187 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12188
12189 # This implies no fast_install, which is unacceptable.
12190 # Some rework will be needed to allow for fast_install
12191 # before this can be enabled.
12192 hardcode_into_libs=yes
12193
12194 # Ideally, we could use ldconfig to report *all* directores which are
12195 # searched for libraries, however this is still not possible. Aside from not
12196 # being certain /sbin/ldconfig is available, command
12197 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12198 # even though it is searched at run-time. Try to do the best guess by
12199 # appending ld.so.conf contents (and includes) to the search path.
12200 if test -f /etc/ld.so.conf; then
12201 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' ' '`
12202 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12203 fi
12204
12205 # We used to test for /lib/ld.so.1 and disable shared libraries on
12206 # powerpc, because MkLinux only supported shared libraries with the
12207 # GNU dynamic linker. Since this was broken with cross compilers,
12208 # most powerpc-linux boxes support dynamic linking these days and
12209 # people can always --disable-shared, the test was removed, and we
12210 # assume the GNU/Linux dynamic linker is in use.
12211 dynamic_linker='GNU/Linux ld.so'
12212 ;;
12213
12214 netbsdelf*-gnu)
12215 version_type=linux
12216 need_lib_prefix=no
12217 need_version=no
12218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12219 soname_spec='${libname}${release}${shared_ext}$major'
12220 shlibpath_var=LD_LIBRARY_PATH
12221 shlibpath_overrides_runpath=no
12222 hardcode_into_libs=yes
12223 dynamic_linker='NetBSD ld.elf_so'
12224 ;;
12225
12226 netbsd*)
12227 version_type=sunos
12228 need_lib_prefix=no
12229 need_version=no
12230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233 dynamic_linker='NetBSD (a.out) ld.so'
12234 else
12235 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12236 soname_spec='$libname$release$shared_ext$major'
12237 dynamic_linker='NetBSD ld.elf_so'
12238 fi
12239 shlibpath_var=LD_LIBRARY_PATH
12240 shlibpath_overrides_runpath=yes
12241 hardcode_into_libs=yes
12242 ;;
12243
12244 newsos6)
12245 version_type=linux # correct to gnu/linux during the next big refactor
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 shlibpath_overrides_runpath=yes
12249 ;;
12250
12251 *nto* | *qnx*)
12252 version_type=qnx
12253 need_lib_prefix=no
12254 need_version=no
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext$major'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259 hardcode_into_libs=yes
12260 dynamic_linker='ldqnx.so'
12261 ;;
12262
12263 openbsd* | bitrig*)
12264 version_type=sunos
12265 sys_lib_dlsearch_path_spec=/usr/lib
12266 need_lib_prefix=no
12267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12268 need_version=no
12269 else
12270 need_version=yes
12271 fi
12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12274 shlibpath_var=LD_LIBRARY_PATH
12275 shlibpath_overrides_runpath=yes
12276 ;;
12277
12278 os2*)
12279 libname_spec='$name'
12280 version_type=windows
12281 shrext_cmds=.dll
12282 need_version=no
12283 need_lib_prefix=no
12284 # OS/2 can only load a DLL with a base name of 8 characters or less.
12285 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12286 v=$($ECHO $release$versuffix | tr -d .-);
12287 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12288 $ECHO $n$v`$shared_ext'
12289 library_names_spec='${libname}_dll.$libext'
12290 dynamic_linker='OS/2 ld.exe'
12291 shlibpath_var=BEGINLIBPATH
12292 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12294 postinstall_cmds='base_file=`basename \$file`~
12295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12296 dldir=$destdir/`dirname \$dlpath`~
12297 test -d \$dldir || mkdir -p \$dldir~
12298 $install_prog $dir/$dlname \$dldir/$dlname~
12299 chmod a+x \$dldir/$dlname~
12300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12302 fi'
12303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12304 dlpath=$dir/\$dldll~
12305 $RM \$dlpath'
12306 ;;
12307
12308 osf3* | osf4* | osf5*)
12309 version_type=osf
12310 need_lib_prefix=no
12311 need_version=no
12312 soname_spec='$libname$release$shared_ext$major'
12313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12317 ;;
12318
12319 rdos*)
12320 dynamic_linker=no
12321 ;;
12322
12323 solaris*)
12324 version_type=linux # correct to gnu/linux during the next big refactor
12325 need_lib_prefix=no
12326 need_version=no
12327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328 soname_spec='$libname$release$shared_ext$major'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=yes
12331 hardcode_into_libs=yes
12332 # ldd complains unless libraries are executable
12333 postinstall_cmds='chmod +x $lib'
12334 ;;
12335
12336 sunos4*)
12337 version_type=sunos
12338 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12339 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12340 shlibpath_var=LD_LIBRARY_PATH
12341 shlibpath_overrides_runpath=yes
12342 if test yes = "$with_gnu_ld"; then
12343 need_lib_prefix=no
12344 fi
12345 need_version=yes
12346 ;;
12347
12348 sysv4 | sysv4.3*)
12349 version_type=linux # correct to gnu/linux during the next big refactor
12350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12351 soname_spec='$libname$release$shared_ext$major'
12352 shlibpath_var=LD_LIBRARY_PATH
12353 case $host_vendor in
12354 sni)
12355 shlibpath_overrides_runpath=no
12356 need_lib_prefix=no
12357 runpath_var=LD_RUN_PATH
12358 ;;
12359 siemens)
12360 need_lib_prefix=no
12361 ;;
12362 motorola)
12363 need_lib_prefix=no
12364 need_version=no
12365 shlibpath_overrides_runpath=no
12366 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12367 ;;
12368 esac
12369 ;;
12370
12371 sysv4*MP*)
12372 if test -d /usr/nec; then
12373 version_type=linux # correct to gnu/linux during the next big refactor
12374 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12375 soname_spec='$libname$shared_ext.$major'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 fi
12378 ;;
12379
12380 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12381 version_type=sco
12382 need_lib_prefix=no
12383 need_version=no
12384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12385 soname_spec='$libname$release$shared_ext$major'
12386 shlibpath_var=LD_LIBRARY_PATH
12387 shlibpath_overrides_runpath=yes
12388 hardcode_into_libs=yes
12389 if test yes = "$with_gnu_ld"; then
12390 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12391 else
12392 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12393 case $host_os in
12394 sco3.2v5*)
12395 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12396 ;;
12397 esac
12398 fi
12399 sys_lib_dlsearch_path_spec='/usr/lib'
12400 ;;
12401
12402 tpf*)
12403 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12404 version_type=linux # correct to gnu/linux during the next big refactor
12405 need_lib_prefix=no
12406 need_version=no
12407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 shlibpath_overrides_runpath=no
12410 hardcode_into_libs=yes
12411 ;;
12412
12413 uts4*)
12414 version_type=linux # correct to gnu/linux during the next big refactor
12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12416 soname_spec='$libname$release$shared_ext$major'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 ;;
12419
12420 *)
12421 dynamic_linker=no
12422 ;;
12423 esac
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12425 printf "%s\n" "$dynamic_linker" >&6; }
12426 test no = "$dynamic_linker" && can_build_shared=no
12427
12428 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12429 if test yes = "$GCC"; then
12430 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12431 fi
12432
12433 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12434 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12435 fi
12436
12437 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12438 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12439 fi
12440
12441 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12442 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12443
12444 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12445 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12446
12447 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12448 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12547 printf %s "checking how to hardcode library paths into programs... " >&6; }
12548 hardcode_action=
12549 if test -n "$hardcode_libdir_flag_spec" ||
12550 test -n "$runpath_var" ||
12551 test yes = "$hardcode_automatic"; then
12552
12553 # We can hardcode non-existent directories.
12554 if test no != "$hardcode_direct" &&
12555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12556 # have to relink, otherwise we might link with an installed library
12557 # when we should be linking with a yet-to-be-installed one
12558 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12559 test no != "$hardcode_minus_L"; then
12560 # Linking always hardcodes the temporary library directory.
12561 hardcode_action=relink
12562 else
12563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12564 hardcode_action=immediate
12565 fi
12566 else
12567 # We cannot hardcode anything, or else we can only hardcode existing
12568 # directories.
12569 hardcode_action=unsupported
12570 fi
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12572 printf "%s\n" "$hardcode_action" >&6; }
12573
12574 if test relink = "$hardcode_action" ||
12575 test yes = "$inherit_rpath"; then
12576 # Fast installation is not supported
12577 enable_fast_install=no
12578 elif test yes = "$shlibpath_overrides_runpath" ||
12579 test no = "$enable_shared"; then
12580 # Fast installation is not necessary
12581 enable_fast_install=needless
12582 fi
12583
12584
12585
12586
12587
12588
12589 if test yes != "$enable_dlopen"; then
12590 enable_dlopen=unknown
12591 enable_dlopen_self=unknown
12592 enable_dlopen_self_static=unknown
12593 else
12594 lt_cv_dlopen=no
12595 lt_cv_dlopen_libs=
12596
12597 case $host_os in
12598 beos*)
12599 lt_cv_dlopen=load_add_on
12600 lt_cv_dlopen_libs=
12601 lt_cv_dlopen_self=yes
12602 ;;
12603
12604 mingw* | pw32* | cegcc*)
12605 lt_cv_dlopen=LoadLibrary
12606 lt_cv_dlopen_libs=
12607 ;;
12608
12609 cygwin*)
12610 lt_cv_dlopen=dlopen
12611 lt_cv_dlopen_libs=
12612 ;;
12613
12614 darwin*)
12615 # if libdl is installed we need to link against it
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12617 printf %s "checking for dlopen in -ldl... " >&6; }
12618 if test ${ac_cv_lib_dl_dlopen+y}
12619 then :
12620 printf %s "(cached) " >&6
12621 else $as_nop
12622 ac_check_lib_save_LIBS=$LIBS
12623 LIBS="-ldl $LIBS"
12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625 /* end confdefs.h. */
12626
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12630 char dlopen ();
12631 int
12632 main (void)
12633 {
12634 return dlopen ();
12635 ;
12636 return 0;
12637 }
12638 _ACEOF
12639 if ac_fn_c_try_link "$LINENO"
12640 then :
12641 ac_cv_lib_dl_dlopen=yes
12642 else $as_nop
12643 ac_cv_lib_dl_dlopen=no
12644 fi
12645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12650 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12651 if test "x$ac_cv_lib_dl_dlopen" = xyes
12652 then :
12653 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12654 else $as_nop
12655
12656 lt_cv_dlopen=dyld
12657 lt_cv_dlopen_libs=
12658 lt_cv_dlopen_self=yes
12659
12660 fi
12661
12662 ;;
12663
12664 tpf*)
12665 # Don't try to run any link tests for TPF. We know it's impossible
12666 # because TPF is a cross-compiler, and we know how we open DSOs.
12667 lt_cv_dlopen=dlopen
12668 lt_cv_dlopen_libs=
12669 lt_cv_dlopen_self=no
12670 ;;
12671
12672 *)
12673 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12674 if test "x$ac_cv_func_shl_load" = xyes
12675 then :
12676 lt_cv_dlopen=shl_load
12677 else $as_nop
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12679 printf %s "checking for shl_load in -ldld... " >&6; }
12680 if test ${ac_cv_lib_dld_shl_load+y}
12681 then :
12682 printf %s "(cached) " >&6
12683 else $as_nop
12684 ac_check_lib_save_LIBS=$LIBS
12685 LIBS="-ldld $LIBS"
12686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687 /* end confdefs.h. */
12688
12689 /* Override any GCC internal prototype to avoid an error.
12690 Use char because int might match the return type of a GCC
12691 builtin and then its argument prototype would still apply. */
12692 char shl_load ();
12693 int
12694 main (void)
12695 {
12696 return shl_load ();
12697 ;
12698 return 0;
12699 }
12700 _ACEOF
12701 if ac_fn_c_try_link "$LINENO"
12702 then :
12703 ac_cv_lib_dld_shl_load=yes
12704 else $as_nop
12705 ac_cv_lib_dld_shl_load=no
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12708 conftest$ac_exeext conftest.$ac_ext
12709 LIBS=$ac_check_lib_save_LIBS
12710 fi
12711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12712 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12713 if test "x$ac_cv_lib_dld_shl_load" = xyes
12714 then :
12715 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12716 else $as_nop
12717 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12718 if test "x$ac_cv_func_dlopen" = xyes
12719 then :
12720 lt_cv_dlopen=dlopen
12721 else $as_nop
12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12723 printf %s "checking for dlopen in -ldl... " >&6; }
12724 if test ${ac_cv_lib_dl_dlopen+y}
12725 then :
12726 printf %s "(cached) " >&6
12727 else $as_nop
12728 ac_check_lib_save_LIBS=$LIBS
12729 LIBS="-ldl $LIBS"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732
12733 /* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12736 char dlopen ();
12737 int
12738 main (void)
12739 {
12740 return dlopen ();
12741 ;
12742 return 0;
12743 }
12744 _ACEOF
12745 if ac_fn_c_try_link "$LINENO"
12746 then :
12747 ac_cv_lib_dl_dlopen=yes
12748 else $as_nop
12749 ac_cv_lib_dl_dlopen=no
12750 fi
12751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12752 conftest$ac_exeext conftest.$ac_ext
12753 LIBS=$ac_check_lib_save_LIBS
12754 fi
12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12756 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12757 if test "x$ac_cv_lib_dl_dlopen" = xyes
12758 then :
12759 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12760 else $as_nop
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12762 printf %s "checking for dlopen in -lsvld... " >&6; }
12763 if test ${ac_cv_lib_svld_dlopen+y}
12764 then :
12765 printf %s "(cached) " >&6
12766 else $as_nop
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lsvld $LIBS"
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771
12772 /* Override any GCC internal prototype to avoid an error.
12773 Use char because int might match the return type of a GCC
12774 builtin and then its argument prototype would still apply. */
12775 char dlopen ();
12776 int
12777 main (void)
12778 {
12779 return dlopen ();
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 if ac_fn_c_try_link "$LINENO"
12785 then :
12786 ac_cv_lib_svld_dlopen=yes
12787 else $as_nop
12788 ac_cv_lib_svld_dlopen=no
12789 fi
12790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12791 conftest$ac_exeext conftest.$ac_ext
12792 LIBS=$ac_check_lib_save_LIBS
12793 fi
12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12795 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12796 if test "x$ac_cv_lib_svld_dlopen" = xyes
12797 then :
12798 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12799 else $as_nop
12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12801 printf %s "checking for dld_link in -ldld... " >&6; }
12802 if test ${ac_cv_lib_dld_dld_link+y}
12803 then :
12804 printf %s "(cached) " >&6
12805 else $as_nop
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-ldld $LIBS"
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814 char dld_link ();
12815 int
12816 main (void)
12817 {
12818 return dld_link ();
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_c_try_link "$LINENO"
12824 then :
12825 ac_cv_lib_dld_dld_link=yes
12826 else $as_nop
12827 ac_cv_lib_dld_dld_link=no
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12832 fi
12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12834 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12835 if test "x$ac_cv_lib_dld_dld_link" = xyes
12836 then :
12837 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12838 fi
12839
12840
12841 fi
12842
12843
12844 fi
12845
12846
12847 fi
12848
12849
12850 fi
12851
12852
12853 fi
12854
12855 ;;
12856 esac
12857
12858 if test no = "$lt_cv_dlopen"; then
12859 enable_dlopen=no
12860 else
12861 enable_dlopen=yes
12862 fi
12863
12864 case $lt_cv_dlopen in
12865 dlopen)
12866 save_CPPFLAGS=$CPPFLAGS
12867 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12868
12869 save_LDFLAGS=$LDFLAGS
12870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12871
12872 save_LIBS=$LIBS
12873 LIBS="$lt_cv_dlopen_libs $LIBS"
12874
12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12876 printf %s "checking whether a program can dlopen itself... " >&6; }
12877 if test ${lt_cv_dlopen_self+y}
12878 then :
12879 printf %s "(cached) " >&6
12880 else $as_nop
12881 if test yes = "$cross_compiling"; then :
12882 lt_cv_dlopen_self=cross
12883 else
12884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12885 lt_status=$lt_dlunknown
12886 cat > conftest.$ac_ext <<_LT_EOF
12887 #line $LINENO "configure"
12888 #include "confdefs.h"
12889
12890 #if HAVE_DLFCN_H
12891 #include <dlfcn.h>
12892 #endif
12893
12894 #include <stdio.h>
12895
12896 #ifdef RTLD_GLOBAL
12897 # define LT_DLGLOBAL RTLD_GLOBAL
12898 #else
12899 # ifdef DL_GLOBAL
12900 # define LT_DLGLOBAL DL_GLOBAL
12901 # else
12902 # define LT_DLGLOBAL 0
12903 # endif
12904 #endif
12905
12906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12907 find out it does not work in some platform. */
12908 #ifndef LT_DLLAZY_OR_NOW
12909 # ifdef RTLD_LAZY
12910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12911 # else
12912 # ifdef DL_LAZY
12913 # define LT_DLLAZY_OR_NOW DL_LAZY
12914 # else
12915 # ifdef RTLD_NOW
12916 # define LT_DLLAZY_OR_NOW RTLD_NOW
12917 # else
12918 # ifdef DL_NOW
12919 # define LT_DLLAZY_OR_NOW DL_NOW
12920 # else
12921 # define LT_DLLAZY_OR_NOW 0
12922 # endif
12923 # endif
12924 # endif
12925 # endif
12926 #endif
12927
12928 /* When -fvisibility=hidden is used, assume the code has been annotated
12929 correspondingly for the symbols needed. */
12930 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12931 int fnord () __attribute__((visibility("default")));
12932 #endif
12933
12934 int fnord () { return 42; }
12935 int main ()
12936 {
12937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12938 int status = $lt_dlunknown;
12939
12940 if (self)
12941 {
12942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12943 else
12944 {
12945 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12946 else puts (dlerror ());
12947 }
12948 /* dlclose (self); */
12949 }
12950 else
12951 puts (dlerror ());
12952
12953 return status;
12954 }
12955 _LT_EOF
12956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12957 (eval $ac_link) 2>&5
12958 ac_status=$?
12959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12960 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12961 (./conftest; exit; ) >&5 2>/dev/null
12962 lt_status=$?
12963 case x$lt_status in
12964 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12965 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12966 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12967 esac
12968 else :
12969 # compilation failed
12970 lt_cv_dlopen_self=no
12971 fi
12972 fi
12973 rm -fr conftest*
12974
12975
12976 fi
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12978 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12979
12980 if test yes = "$lt_cv_dlopen_self"; then
12981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12983 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12984 if test ${lt_cv_dlopen_self_static+y}
12985 then :
12986 printf %s "(cached) " >&6
12987 else $as_nop
12988 if test yes = "$cross_compiling"; then :
12989 lt_cv_dlopen_self_static=cross
12990 else
12991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12992 lt_status=$lt_dlunknown
12993 cat > conftest.$ac_ext <<_LT_EOF
12994 #line $LINENO "configure"
12995 #include "confdefs.h"
12996
12997 #if HAVE_DLFCN_H
12998 #include <dlfcn.h>
12999 #endif
13000
13001 #include <stdio.h>
13002
13003 #ifdef RTLD_GLOBAL
13004 # define LT_DLGLOBAL RTLD_GLOBAL
13005 #else
13006 # ifdef DL_GLOBAL
13007 # define LT_DLGLOBAL DL_GLOBAL
13008 # else
13009 # define LT_DLGLOBAL 0
13010 # endif
13011 #endif
13012
13013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13014 find out it does not work in some platform. */
13015 #ifndef LT_DLLAZY_OR_NOW
13016 # ifdef RTLD_LAZY
13017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13018 # else
13019 # ifdef DL_LAZY
13020 # define LT_DLLAZY_OR_NOW DL_LAZY
13021 # else
13022 # ifdef RTLD_NOW
13023 # define LT_DLLAZY_OR_NOW RTLD_NOW
13024 # else
13025 # ifdef DL_NOW
13026 # define LT_DLLAZY_OR_NOW DL_NOW
13027 # else
13028 # define LT_DLLAZY_OR_NOW 0
13029 # endif
13030 # endif
13031 # endif
13032 # endif
13033 #endif
13034
13035 /* When -fvisibility=hidden is used, assume the code has been annotated
13036 correspondingly for the symbols needed. */
13037 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13038 int fnord () __attribute__((visibility("default")));
13039 #endif
13040
13041 int fnord () { return 42; }
13042 int main ()
13043 {
13044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13045 int status = $lt_dlunknown;
13046
13047 if (self)
13048 {
13049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13050 else
13051 {
13052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13053 else puts (dlerror ());
13054 }
13055 /* dlclose (self); */
13056 }
13057 else
13058 puts (dlerror ());
13059
13060 return status;
13061 }
13062 _LT_EOF
13063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13064 (eval $ac_link) 2>&5
13065 ac_status=$?
13066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13067 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13068 (./conftest; exit; ) >&5 2>/dev/null
13069 lt_status=$?
13070 case x$lt_status in
13071 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13072 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13073 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13074 esac
13075 else :
13076 # compilation failed
13077 lt_cv_dlopen_self_static=no
13078 fi
13079 fi
13080 rm -fr conftest*
13081
13082
13083 fi
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13085 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13086 fi
13087
13088 CPPFLAGS=$save_CPPFLAGS
13089 LDFLAGS=$save_LDFLAGS
13090 LIBS=$save_LIBS
13091 ;;
13092 esac
13093
13094 case $lt_cv_dlopen_self in
13095 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13096 *) enable_dlopen_self=unknown ;;
13097 esac
13098
13099 case $lt_cv_dlopen_self_static in
13100 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13101 *) enable_dlopen_self_static=unknown ;;
13102 esac
13103 fi
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121 striplib=
13122 old_striplib=
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13124 printf %s "checking whether stripping libraries is possible... " >&6; }
13125 if test -z "$STRIP"; then
13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 printf "%s\n" "no" >&6; }
13128 else
13129 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13130 old_striplib="$STRIP --strip-debug"
13131 striplib="$STRIP --strip-unneeded"
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133 printf "%s\n" "yes" >&6; }
13134 else
13135 case $host_os in
13136 darwin*)
13137 # FIXME - insert some real tests, host_os isn't really good enough
13138 striplib="$STRIP -x"
13139 old_striplib="$STRIP -S"
13140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141 printf "%s\n" "yes" >&6; }
13142 ;;
13143 freebsd*)
13144 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13145 old_striplib="$STRIP --strip-debug"
13146 striplib="$STRIP --strip-unneeded"
13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13148 printf "%s\n" "yes" >&6; }
13149 else
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13151 printf "%s\n" "no" >&6; }
13152 fi
13153 ;;
13154 *)
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13156 printf "%s\n" "no" >&6; }
13157 ;;
13158 esac
13159 fi
13160 fi
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173 # Report what library types will actually be built
13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13175 printf %s "checking if libtool supports shared libraries... " >&6; }
13176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13177 printf "%s\n" "$can_build_shared" >&6; }
13178
13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13180 printf %s "checking whether to build shared libraries... " >&6; }
13181 test no = "$can_build_shared" && enable_shared=no
13182
13183 # On AIX, shared libraries and static libraries use the same namespace, and
13184 # are all built from PIC.
13185 case $host_os in
13186 aix3*)
13187 test yes = "$enable_shared" && enable_static=no
13188 if test -n "$RANLIB"; then
13189 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13190 postinstall_cmds='$RANLIB $lib'
13191 fi
13192 ;;
13193
13194 aix[4-9]*)
13195 if test ia64 != "$host_cpu"; then
13196 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13197 yes,aix,yes) ;; # shared object as lib.so file only
13198 yes,svr4,*) ;; # shared object as lib.so archive member only
13199 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13200 esac
13201 fi
13202 ;;
13203 esac
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13205 printf "%s\n" "$enable_shared" >&6; }
13206
13207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13208 printf %s "checking whether to build static libraries... " >&6; }
13209 # Make sure either enable_shared or enable_static is yes.
13210 test yes = "$enable_shared" || enable_static=yes
13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13212 printf "%s\n" "$enable_static" >&6; }
13213
13214
13215
13216
13217 fi
13218 ac_ext=c
13219 ac_cpp='$CPP $CPPFLAGS'
13220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13223
13224 CC=$lt_save_CC
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240 ac_config_commands="$ac_config_commands libtool"
13241
13242
13243
13244
13245 # Only expand once:
13246
13247
13248
13249 if test "x$GCC" = "xyes"; then
13250 # Enable useful GCC compilation flags.
13251 GCC_CFLAGS="-Wall"
13252 GCC_CFLAGS="-Wcast-align -Wpointer-arith $GCC_CFLAGS"
13253 GCC_CFLAGS="-Winline -Wdeclaration-after-statement $GCC_CFLAGS"
13254 else
13255 GCC_CFLAGS=""
13256 fi
13257
13258
13259 # Checks for libraries.
13260
13261 # Checks for header files.
13262 # Autoupdate added the next two lines to ensure that your configure
13263 # script's behavior did not change. They are probably safe to remove.
13264
13265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13266 printf %s "checking for egrep... " >&6; }
13267 if test ${ac_cv_path_EGREP+y}
13268 then :
13269 printf %s "(cached) " >&6
13270 else $as_nop
13271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13272 then ac_cv_path_EGREP="$GREP -E"
13273 else
13274 if test -z "$EGREP"; then
13275 ac_path_EGREP_found=false
13276 # Loop through the user's path and test for each of PROGNAME-LIST
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13279 do
13280 IFS=$as_save_IFS
13281 case $as_dir in #(((
13282 '') as_dir=./ ;;
13283 */) ;;
13284 *) as_dir=$as_dir/ ;;
13285 esac
13286 for ac_prog in egrep
13287 do
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13290 as_fn_executable_p "$ac_path_EGREP" || continue
13291 # Check for GNU ac_path_EGREP and select it if it is found.
13292 # Check for GNU $ac_path_EGREP
13293 case `"$ac_path_EGREP" --version 2>&1` in
13294 *GNU*)
13295 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13296 *)
13297 ac_count=0
13298 printf %s 0123456789 >"conftest.in"
13299 while :
13300 do
13301 cat "conftest.in" "conftest.in" >"conftest.tmp"
13302 mv "conftest.tmp" "conftest.in"
13303 cp "conftest.in" "conftest.nl"
13304 printf "%s\n" 'EGREP' >> "conftest.nl"
13305 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13307 as_fn_arith $ac_count + 1 && ac_count=$as_val
13308 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13309 # Best one so far, save it but keep looking for a better one
13310 ac_cv_path_EGREP="$ac_path_EGREP"
13311 ac_path_EGREP_max=$ac_count
13312 fi
13313 # 10*(2^10) chars as input seems more than enough
13314 test $ac_count -gt 10 && break
13315 done
13316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13317 esac
13318
13319 $ac_path_EGREP_found && break 3
13320 done
13321 done
13322 done
13323 IFS=$as_save_IFS
13324 if test -z "$ac_cv_path_EGREP"; then
13325 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13326 fi
13327 else
13328 ac_cv_path_EGREP=$EGREP
13329 fi
13330
13331 fi
13332 fi
13333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13334 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13335 EGREP="$ac_cv_path_EGREP"
13336
13337
13338
13339 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13340 if test "x$ac_cv_header_stdlib_h" = xyes
13341 then :
13342 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
13343
13344 fi
13345 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13346 if test "x$ac_cv_header_string_h" = xyes
13347 then :
13348 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
13349
13350 fi
13351 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
13352 if test "x$ac_cv_header_strings_h" = xyes
13353 then :
13354 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
13355
13356 fi
13357
13358
13359 # GNU lightning.
13360
13361 # We don't bundle GNU lightning with Guile-Reader, as `lightningize'
13362 # would do. Instead we simply use the available version of lightning,
13363 # if any. This rules out use of `LIGHTNING_CONFIGURE_IF_NOT_FOUND'.
13364 ac_fn_c_check_header_compile "$LINENO" "lightning.h" "ac_cv_header_lightning_h" "$ac_includes_default"
13365 if test "x$ac_cv_header_lightning_h" = xyes
13366 then :
13367 have_lightning=yes
13368 else $as_nop
13369 have_lightning=no
13370 fi
13371
13372 if test "x$have_lightning" = "xyes"; then
13373 if test "x$GCC" = "xyes"; then
13374 # lightning's macros yield a lot of unused return values. In addition,
13375 # `jit_get_ip ()' yields this warning:
13376 #
13377 # dereferencing type-punned pointer will break strict-aliasing rules
13378 #
13379 # ... hence the `-fno-strict-aliasing'.
13380 GCC_CFLAGS="$GCC_CFLAGS -Wno-unused-value -fno-strict-aliasing"
13381 fi
13382
13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GNU lightning supports \`jit_allocai'" >&5
13384 printf %s "checking whether GNU lightning supports \`jit_allocai'... " >&6; }
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <lightning.h>
13388 int
13389 main (void)
13390 {
13391 int x = jit_allocai (7);
13392 ;
13393 return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_link "$LINENO"
13397 then :
13398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13399 printf "%s\n" "yes" >&6; }
13400 else $as_nop
13401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 printf "%s\n" "no" >&6; }
13403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU lightning is too old or too recent (try version 1.2); not using it" >&5
13404 printf "%s\n" "$as_me: WARNING: GNU lightning is too old or too recent (try version 1.2); not using it" >&2;}
13405 have_lightning=no
13406 fi
13407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13408 conftest$ac_exeext conftest.$ac_ext
13409 else
13410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU lightning not found; GNU lightning enhancements not compiled." >&5
13411 printf "%s\n" "$as_me: WARNING: GNU lightning not found; GNU lightning enhancements not compiled." >&2;}
13412 fi
13413 if test "x$have_lightning" = "xyes"; then
13414
13415 printf "%s\n" "#define HAVE_LIGHTNING 1" >>confdefs.h
13416
13417 fi
13418
13419 # Checks for typedefs, structures, and compiler characteristics.
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13421 printf %s "checking for an ANSI C-conforming const... " >&6; }
13422 if test ${ac_cv_c_const+y}
13423 then :
13424 printf %s "(cached) " >&6
13425 else $as_nop
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13428
13429 int
13430 main (void)
13431 {
13432
13433 #ifndef __cplusplus
13434 /* Ultrix mips cc rejects this sort of thing. */
13435 typedef int charset[2];
13436 const charset cs = { 0, 0 };
13437 /* SunOS 4.1.1 cc rejects this. */
13438 char const *const *pcpcc;
13439 char **ppc;
13440 /* NEC SVR4.0.2 mips cc rejects this. */
13441 struct point {int x, y;};
13442 static struct point const zero = {0,0};
13443 /* IBM XL C 1.02.0.0 rejects this.
13444 It does not let you subtract one const X* pointer from another in
13445 an arm of an if-expression whose if-part is not a constant
13446 expression */
13447 const char *g = "string";
13448 pcpcc = &g + (g ? g-g : 0);
13449 /* HPUX 7.0 cc rejects these. */
13450 ++pcpcc;
13451 ppc = (char**) pcpcc;
13452 pcpcc = (char const *const *) ppc;
13453 { /* SCO 3.2v4 cc rejects this sort of thing. */
13454 char tx;
13455 char *t = &tx;
13456 char const *s = 0 ? (char *) 0 : (char const *) 0;
13457
13458 *t++ = 0;
13459 if (s) return 0;
13460 }
13461 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13462 int x[] = {25, 17};
13463 const int *foo = &x[0];
13464 ++foo;
13465 }
13466 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13467 typedef const int *iptr;
13468 iptr p = 0;
13469 ++p;
13470 }
13471 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13472 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13473 struct s { int j; const int *ap[3]; } bx;
13474 struct s *b = &bx; b->j = 5;
13475 }
13476 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13477 const int foo = 10;
13478 if (!foo) return 0;
13479 }
13480 return !cs[0] && !zero.x;
13481 #endif
13482
13483 ;
13484 return 0;
13485 }
13486 _ACEOF
13487 if ac_fn_c_try_compile "$LINENO"
13488 then :
13489 ac_cv_c_const=yes
13490 else $as_nop
13491 ac_cv_c_const=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13494 fi
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13496 printf "%s\n" "$ac_cv_c_const" >&6; }
13497 if test $ac_cv_c_const = no; then
13498
13499 printf "%s\n" "#define const /**/" >>confdefs.h
13500
13501 fi
13502
13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13504 printf %s "checking for inline... " >&6; }
13505 if test ${ac_cv_c_inline+y}
13506 then :
13507 printf %s "(cached) " >&6
13508 else $as_nop
13509 ac_cv_c_inline=no
13510 for ac_kw in inline __inline__ __inline; do
13511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13512 /* end confdefs.h. */
13513 #ifndef __cplusplus
13514 typedef int foo_t;
13515 static $ac_kw foo_t static_foo (void) {return 0; }
13516 $ac_kw foo_t foo (void) {return 0; }
13517 #endif
13518
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"
13521 then :
13522 ac_cv_c_inline=$ac_kw
13523 fi
13524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13525 test "$ac_cv_c_inline" != no && break
13526 done
13527
13528 fi
13529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13530 printf "%s\n" "$ac_cv_c_inline" >&6; }
13531
13532 case $ac_cv_c_inline in
13533 inline | yes) ;;
13534 *)
13535 case $ac_cv_c_inline in
13536 no) ac_val=;;
13537 *) ac_val=$ac_cv_c_inline;;
13538 esac
13539 cat >>confdefs.h <<_ACEOF
13540 #ifndef __cplusplus
13541 #define inline $ac_val
13542 #endif
13543 _ACEOF
13544 ;;
13545 esac
13546
13547 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13548 if test "x$ac_cv_type_size_t" = xyes
13549 then :
13550
13551 else $as_nop
13552
13553 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13554
13555 fi
13556
13557
13558 # The cast to long int works around a bug in the HP C Compiler
13559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13561 # This bug is HP SR number 8606223364.
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13563 printf %s "checking size of void *... " >&6; }
13564 if test ${ac_cv_sizeof_void_p+y}
13565 then :
13566 printf %s "(cached) " >&6
13567 else $as_nop
13568 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
13569 then :
13570
13571 else $as_nop
13572 if test "$ac_cv_type_void_p" = yes; then
13573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13575 as_fn_error 77 "cannot compute sizeof (void *)
13576 See \`config.log' for more details" "$LINENO" 5; }
13577 else
13578 ac_cv_sizeof_void_p=0
13579 fi
13580 fi
13581
13582 fi
13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13584 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
13585
13586
13587
13588 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
13589
13590
13591
13592 # Checks for library functions.
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13594 printf %s "checking for GNU libc compatible malloc... " >&6; }
13595 if test ${ac_cv_func_malloc_0_nonnull+y}
13596 then :
13597 printf %s "(cached) " >&6
13598 else $as_nop
13599 if test "$cross_compiling" = yes
13600 then :
13601 case "$host_os" in # ((
13602 # Guess yes on platforms where we know the result.
13603 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13604 | hpux* | solaris* | cygwin* | mingw* | msys* )
13605 ac_cv_func_malloc_0_nonnull=yes ;;
13606 # If we don't know, assume the worst.
13607 *) ac_cv_func_malloc_0_nonnull=no ;;
13608 esac
13609 else $as_nop
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 #include <stdlib.h>
13613
13614 int
13615 main (void)
13616 {
13617 void *p = malloc (0);
13618 int result = !p;
13619 free (p);
13620 return result;
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 if ac_fn_c_try_run "$LINENO"
13626 then :
13627 ac_cv_func_malloc_0_nonnull=yes
13628 else $as_nop
13629 ac_cv_func_malloc_0_nonnull=no
13630 fi
13631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13632 conftest.$ac_objext conftest.beam conftest.$ac_ext
13633 fi
13634
13635 fi
13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13637 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
13638 if test $ac_cv_func_malloc_0_nonnull = yes
13639 then :
13640
13641 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
13642
13643 else $as_nop
13644 printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
13645
13646 case " $LIBOBJS " in
13647 *" malloc.$ac_objext "* ) ;;
13648 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13649 ;;
13650 esac
13651
13652
13653 printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
13654
13655 fi
13656
13657
13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
13659 printf %s "checking for GNU libc compatible realloc... " >&6; }
13660 if test ${ac_cv_func_realloc_0_nonnull+y}
13661 then :
13662 printf %s "(cached) " >&6
13663 else $as_nop
13664 if test "$cross_compiling" = yes
13665 then :
13666 case "$host_os" in # ((
13667 # Guess yes on platforms where we know the result.
13668 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13669 | hpux* | solaris* | cygwin* | mingw* | msys* )
13670 ac_cv_func_realloc_0_nonnull=yes ;;
13671 # If we don't know, assume the worst.
13672 *) ac_cv_func_realloc_0_nonnull=no ;;
13673 esac
13674 else $as_nop
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677 #include <stdlib.h>
13678
13679 int
13680 main (void)
13681 {
13682 void *p = realloc (0, 0);
13683 int result = !p;
13684 free (p);
13685 return result;
13686 ;
13687 return 0;
13688 }
13689 _ACEOF
13690 if ac_fn_c_try_run "$LINENO"
13691 then :
13692 ac_cv_func_realloc_0_nonnull=yes
13693 else $as_nop
13694 ac_cv_func_realloc_0_nonnull=no
13695 fi
13696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13697 conftest.$ac_objext conftest.beam conftest.$ac_ext
13698 fi
13699
13700 fi
13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
13702 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
13703 if test $ac_cv_func_realloc_0_nonnull = yes
13704 then :
13705
13706 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
13707
13708 else $as_nop
13709 printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
13710
13711 case " $LIBOBJS " in
13712 *" realloc.$ac_objext "* ) ;;
13713 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
13714 ;;
13715 esac
13716
13717
13718 printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
13719
13720 fi
13721
13722
13723 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
13724 if test "x$ac_cv_func_strncasecmp" = xyes
13725 then :
13726 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
13727
13728 fi
13729
13730
13731 # Gperf
13732 # Extract the first word of "gperf", so it can be a program name with args.
13733 set dummy gperf; ac_word=$2
13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735 printf %s "checking for $ac_word... " >&6; }
13736 if test ${ac_cv_path_GPERF+y}
13737 then :
13738 printf %s "(cached) " >&6
13739 else $as_nop
13740 case $GPERF in
13741 [\\/]* | ?:[\\/]*)
13742 ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
13743 ;;
13744 *)
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13747 do
13748 IFS=$as_save_IFS
13749 case $as_dir in #(((
13750 '') as_dir=./ ;;
13751 */) ;;
13752 *) as_dir=$as_dir/ ;;
13753 esac
13754 for ac_exec_ext in '' $ac_executable_extensions; do
13755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13756 ac_cv_path_GPERF="$as_dir$ac_word$ac_exec_ext"
13757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13758 break 2
13759 fi
13760 done
13761 done
13762 IFS=$as_save_IFS
13763
13764 test -z "$ac_cv_path_GPERF" && ac_cv_path_GPERF="not-found"
13765 ;;
13766 esac
13767 fi
13768 GPERF=$ac_cv_path_GPERF
13769 if test -n "$GPERF"; then
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
13771 printf "%s\n" "$GPERF" >&6; }
13772 else
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774 printf "%s\n" "no" >&6; }
13775 fi
13776
13777
13778 if test "x$GPERF" = "xnot-found"; then
13779 as_fn_error $? "GNU Gperf not found. Please install it first." "$LINENO" 5
13780 fi
13781
13782 # Guile!
13783
13784
13785
13786
13787
13788
13789
13790 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13791 if test -n "$ac_tool_prefix"; then
13792 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13793 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13795 printf %s "checking for $ac_word... " >&6; }
13796 if test ${ac_cv_path_PKG_CONFIG+y}
13797 then :
13798 printf %s "(cached) " >&6
13799 else $as_nop
13800 case $PKG_CONFIG in
13801 [\\/]* | ?:[\\/]*)
13802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13803 ;;
13804 *)
13805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13806 for as_dir in $PATH
13807 do
13808 IFS=$as_save_IFS
13809 case $as_dir in #(((
13810 '') as_dir=./ ;;
13811 */) ;;
13812 *) as_dir=$as_dir/ ;;
13813 esac
13814 for ac_exec_ext in '' $ac_executable_extensions; do
13815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13816 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13818 break 2
13819 fi
13820 done
13821 done
13822 IFS=$as_save_IFS
13823
13824 ;;
13825 esac
13826 fi
13827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13828 if test -n "$PKG_CONFIG"; then
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13830 printf "%s\n" "$PKG_CONFIG" >&6; }
13831 else
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833 printf "%s\n" "no" >&6; }
13834 fi
13835
13836
13837 fi
13838 if test -z "$ac_cv_path_PKG_CONFIG"; then
13839 ac_pt_PKG_CONFIG=$PKG_CONFIG
13840 # Extract the first word of "pkg-config", so it can be a program name with args.
13841 set dummy pkg-config; ac_word=$2
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13843 printf %s "checking for $ac_word... " >&6; }
13844 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13845 then :
13846 printf %s "(cached) " >&6
13847 else $as_nop
13848 case $ac_pt_PKG_CONFIG in
13849 [\\/]* | ?:[\\/]*)
13850 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13851 ;;
13852 *)
13853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13854 for as_dir in $PATH
13855 do
13856 IFS=$as_save_IFS
13857 case $as_dir in #(((
13858 '') as_dir=./ ;;
13859 */) ;;
13860 *) as_dir=$as_dir/ ;;
13861 esac
13862 for ac_exec_ext in '' $ac_executable_extensions; do
13863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13864 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13866 break 2
13867 fi
13868 done
13869 done
13870 IFS=$as_save_IFS
13871
13872 ;;
13873 esac
13874 fi
13875 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13876 if test -n "$ac_pt_PKG_CONFIG"; then
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13878 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13879 else
13880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 printf "%s\n" "no" >&6; }
13882 fi
13883
13884 if test "x$ac_pt_PKG_CONFIG" = x; then
13885 PKG_CONFIG=""
13886 else
13887 case $cross_compiling:$ac_tool_warned in
13888 yes:)
13889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13891 ac_tool_warned=yes ;;
13892 esac
13893 PKG_CONFIG=$ac_pt_PKG_CONFIG
13894 fi
13895 else
13896 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13897 fi
13898
13899 fi
13900 if test -n "$PKG_CONFIG"; then
13901 _pkg_min_version=0.9.0
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13903 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13904 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13906 printf "%s\n" "yes" >&6; }
13907 else
13908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 printf "%s\n" "no" >&6; }
13910 PKG_CONFIG=""
13911 fi
13912 fi
13913
13914 if test "x$PKG_CONFIG" = x; then
13915 as_fn_error $? "pkg-config is missing, please install it" "$LINENO" 5
13916 fi
13917 _guile_versions_to_search="3.0 2.2 2.0 1.8"
13918 if test -n "$GUILE_EFFECTIVE_VERSION"; then
13919 _guile_tmp=""
13920 for v in $_guile_versions_to_search; do
13921 if test "$v" = "$GUILE_EFFECTIVE_VERSION"; then
13922 _guile_tmp=$v
13923 fi
13924 done
13925 if test -z "$_guile_tmp"; then
13926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13927 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13928 as_fn_error $? "searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION
13929 See \`config.log' for more details" "$LINENO" 5; }
13930 fi
13931 _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION
13932 fi
13933 GUILE_EFFECTIVE_VERSION=""
13934 _guile_errors=""
13935 for v in $_guile_versions_to_search; do
13936 if test -z "$GUILE_EFFECTIVE_VERSION"; then
13937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile $v" >&5
13938 printf "%s\n" "$as_me: checking for guile $v" >&6;}
13939 if test -n "$PKG_CONFIG" && \
13940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
13941 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
13942 ac_status=$?
13943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13944 test $ac_status = 0; }; then
13945 GUILE_EFFECTIVE_VERSION=$v
13946 fi
13947 fi
13948 done
13949
13950 if test -z "$GUILE_EFFECTIVE_VERSION"; then
13951 as_fn_error $? "
13952 No Guile development packages were found.
13953
13954 Please verify that you have Guile installed. If you installed Guile
13955 from a binary distribution, please verify that you have also installed
13956 the development packages. If you installed it yourself, you might need
13957 to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more.
13958 " "$LINENO" 5
13959 fi
13960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found guile $GUILE_EFFECTIVE_VERSION" >&5
13961 printf "%s\n" "$as_me: found guile $GUILE_EFFECTIVE_VERSION" >&6;}
13962
13963
13964 _guile_required_version="$GUILE_EFFECTIVE_VERSION"
13965 if test -z "$_guile_required_version"; then
13966 _guile_required_version=3.0
13967 fi
13968
13969 _guile_candidates=guile
13970 _tmp=
13971 for v in `echo "$_guile_required_version" | tr . ' '`; do
13972 if test -n "$_tmp"; then _tmp=$_tmp.; fi
13973 _tmp=$_tmp$v
13974 _guile_candidates="guile-$_tmp guile$_tmp $_guile_candidates"
13975 done
13976
13977 for ac_prog in $_guile_candidates
13978 do
13979 # Extract the first word of "$ac_prog", so it can be a program name with args.
13980 set dummy $ac_prog; ac_word=$2
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13982 printf %s "checking for $ac_word... " >&6; }
13983 if test ${ac_cv_path_GUILE+y}
13984 then :
13985 printf %s "(cached) " >&6
13986 else $as_nop
13987 case $GUILE in
13988 [\\/]* | ?:[\\/]*)
13989 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
13990 ;;
13991 *)
13992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13993 for as_dir in $PATH
13994 do
13995 IFS=$as_save_IFS
13996 case $as_dir in #(((
13997 '') as_dir=./ ;;
13998 */) ;;
13999 *) as_dir=$as_dir/ ;;
14000 esac
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14003 ac_cv_path_GUILE="$as_dir$ac_word$ac_exec_ext"
14004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14005 break 2
14006 fi
14007 done
14008 done
14009 IFS=$as_save_IFS
14010
14011 ;;
14012 esac
14013 fi
14014 GUILE=$ac_cv_path_GUILE
14015 if test -n "$GUILE"; then
14016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
14017 printf "%s\n" "$GUILE" >&6; }
14018 else
14019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14020 printf "%s\n" "no" >&6; }
14021 fi
14022
14023
14024 test -n "$GUILE" && break
14025 done
14026
14027 if test -z "$GUILE"; then
14028 as_fn_error $? "guile required but not found" "$LINENO" 5
14029 fi
14030
14031 _guile_suffix=`echo "$GUILE" | sed -e 's,^.*/guile\(.*\)$,\1,'`
14032 _guile_effective_version=`$GUILE -c "(display (effective-version))"`
14033 if test -z "$GUILE_EFFECTIVE_VERSION"; then
14034 GUILE_EFFECTIVE_VERSION=$_guile_effective_version
14035 elif test "$GUILE_EFFECTIVE_VERSION" != "$_guile_effective_version"; then
14036 as_fn_error $? "found development files for Guile $GUILE_EFFECTIVE_VERSION, but $GUILE has effective version $_guile_effective_version" "$LINENO" 5
14037 fi
14038
14039 _guile_major_version=`$GUILE -c "(display (major-version))"`
14040 _guile_minor_version=`$GUILE -c "(display (minor-version))"`
14041 _guile_micro_version=`$GUILE -c "(display (micro-version))"`
14042 _guile_prog_version="$_guile_major_version.$_guile_minor_version.$_guile_micro_version"
14043
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile version >= $_guile_required_version" >&5
14045 printf %s "checking for Guile version >= $_guile_required_version... " >&6; }
14046 _major_version=`echo $_guile_required_version | cut -d . -f 1`
14047 _minor_version=`echo $_guile_required_version | cut -d . -f 2`
14048 _micro_version=`echo $_guile_required_version | cut -d . -f 3`
14049 if test "$_guile_major_version" -gt "$_major_version"; then
14050 true
14051 elif test "$_guile_major_version" -eq "$_major_version"; then
14052 if test "$_guile_minor_version" -gt "$_minor_version"; then
14053 true
14054 elif test "$_guile_minor_version" -eq "$_minor_version"; then
14055 if test -n "$_micro_version"; then
14056 if test "$_guile_micro_version" -lt "$_micro_version"; then
14057 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
14058 fi
14059 fi
14060 elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
14061 # Allow prereleases that have the right effective version.
14062 true
14063 else
14064 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
14065 fi
14066 elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
14067 # Allow prereleases that have the right effective version.
14068 true
14069 else
14070 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
14071 fi
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_guile_prog_version" >&5
14073 printf "%s\n" "$_guile_prog_version" >&6; }
14074
14075 # Extract the first word of "guild$_guile_suffix", so it can be a program name with args.
14076 set dummy guild$_guile_suffix; ac_word=$2
14077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14078 printf %s "checking for $ac_word... " >&6; }
14079 if test ${ac_cv_path_GUILD+y}
14080 then :
14081 printf %s "(cached) " >&6
14082 else $as_nop
14083 case $GUILD in
14084 [\\/]* | ?:[\\/]*)
14085 ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
14086 ;;
14087 *)
14088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089 for as_dir in $PATH
14090 do
14091 IFS=$as_save_IFS
14092 case $as_dir in #(((
14093 '') as_dir=./ ;;
14094 */) ;;
14095 *) as_dir=$as_dir/ ;;
14096 esac
14097 for ac_exec_ext in '' $ac_executable_extensions; do
14098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14099 ac_cv_path_GUILD="$as_dir$ac_word$ac_exec_ext"
14100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14101 break 2
14102 fi
14103 done
14104 done
14105 IFS=$as_save_IFS
14106
14107 ;;
14108 esac
14109 fi
14110 GUILD=$ac_cv_path_GUILD
14111 if test -n "$GUILD"; then
14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
14113 printf "%s\n" "$GUILD" >&6; }
14114 else
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14116 printf "%s\n" "no" >&6; }
14117 fi
14118
14119
14120
14121
14122 # Extract the first word of "guile-config$_guile_suffix", so it can be a program name with args.
14123 set dummy guile-config$_guile_suffix; ac_word=$2
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14125 printf %s "checking for $ac_word... " >&6; }
14126 if test ${ac_cv_path_GUILE_CONFIG+y}
14127 then :
14128 printf %s "(cached) " >&6
14129 else $as_nop
14130 case $GUILE_CONFIG in
14131 [\\/]* | ?:[\\/]*)
14132 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
14133 ;;
14134 *)
14135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136 for as_dir in $PATH
14137 do
14138 IFS=$as_save_IFS
14139 case $as_dir in #(((
14140 '') as_dir=./ ;;
14141 */) ;;
14142 *) as_dir=$as_dir/ ;;
14143 esac
14144 for ac_exec_ext in '' $ac_executable_extensions; do
14145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14146 ac_cv_path_GUILE_CONFIG="$as_dir$ac_word$ac_exec_ext"
14147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14148 break 2
14149 fi
14150 done
14151 done
14152 IFS=$as_save_IFS
14153
14154 ;;
14155 esac
14156 fi
14157 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
14158 if test -n "$GUILE_CONFIG"; then
14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
14160 printf "%s\n" "$GUILE_CONFIG" >&6; }
14161 else
14162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14163 printf "%s\n" "no" >&6; }
14164 fi
14165
14166
14167
14168 if test -n "$GUILD"; then
14169 GUILE_TOOLS=$GUILD
14170 else
14171 # Extract the first word of "guile-tools$_guile_suffix", so it can be a program name with args.
14172 set dummy guile-tools$_guile_suffix; ac_word=$2
14173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14174 printf %s "checking for $ac_word... " >&6; }
14175 if test ${ac_cv_path_GUILE_TOOLS+y}
14176 then :
14177 printf %s "(cached) " >&6
14178 else $as_nop
14179 case $GUILE_TOOLS in
14180 [\\/]* | ?:[\\/]*)
14181 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
14182 ;;
14183 *)
14184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185 for as_dir in $PATH
14186 do
14187 IFS=$as_save_IFS
14188 case $as_dir in #(((
14189 '') as_dir=./ ;;
14190 */) ;;
14191 *) as_dir=$as_dir/ ;;
14192 esac
14193 for ac_exec_ext in '' $ac_executable_extensions; do
14194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14195 ac_cv_path_GUILE_TOOLS="$as_dir$ac_word$ac_exec_ext"
14196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14197 break 2
14198 fi
14199 done
14200 done
14201 IFS=$as_save_IFS
14202
14203 ;;
14204 esac
14205 fi
14206 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
14207 if test -n "$GUILE_TOOLS"; then
14208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
14209 printf "%s\n" "$GUILE_TOOLS" >&6; }
14210 else
14211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212 printf "%s\n" "no" >&6; }
14213 fi
14214
14215
14216 fi
14217
14218
14219
14220
14221 # Check whether --with-gnu-ld was given.
14222 if test ${with_gnu_ld+y}
14223 then :
14224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14225 else $as_nop
14226 with_gnu_ld=no
14227 fi
14228
14229 # Prepare PATH_SEPARATOR.
14230 # The user is always right.
14231 if test "${PATH_SEPARATOR+set}" != set; then
14232 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14233 # contains only /bin. Note that ksh looks also at the FPATH variable,
14234 # so we have to set that as well for the test.
14235 PATH_SEPARATOR=:
14236 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14237 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14238 || PATH_SEPARATOR=';'
14239 }
14240 fi
14241
14242 if test -n "$LD"; then
14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
14244 printf %s "checking for ld... " >&6; }
14245 elif test "$GCC" = yes; then
14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14247 printf %s "checking for ld used by $CC... " >&6; }
14248 elif test "$with_gnu_ld" = yes; then
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14250 printf %s "checking for GNU ld... " >&6; }
14251 else
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14253 printf %s "checking for non-GNU ld... " >&6; }
14254 fi
14255 if test -n "$LD"; then
14256 # Let the user override the test with a path.
14257 :
14258 else
14259 if test ${acl_cv_path_LD+y}
14260 then :
14261 printf %s "(cached) " >&6
14262 else $as_nop
14263
14264 acl_cv_path_LD= # Final result of this test
14265 ac_prog=ld # Program to search in $PATH
14266 if test "$GCC" = yes; then
14267 # Check if gcc -print-prog-name=ld gives a path.
14268 case $host in
14269 *-*-mingw*)
14270 # gcc leaves a trailing carriage return which upsets mingw
14271 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14272 *)
14273 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
14274 esac
14275 case $acl_output in
14276 # Accept absolute paths.
14277 [\\/]* | ?:[\\/]*)
14278 re_direlt='/[^/][^/]*/\.\./'
14279 # Canonicalize the pathname of ld
14280 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
14281 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
14282 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
14283 done
14284 # Got the pathname. No search in PATH is needed.
14285 acl_cv_path_LD="$acl_output"
14286 ac_prog=
14287 ;;
14288 "")
14289 # If it fails, then pretend we aren't using GCC.
14290 ;;
14291 *)
14292 # If it is relative, then search for the first ld in PATH.
14293 with_gnu_ld=unknown
14294 ;;
14295 esac
14296 fi
14297 if test -n "$ac_prog"; then
14298 # Search for $ac_prog in $PATH.
14299 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14300 for ac_dir in $PATH; do
14301 IFS="$acl_save_ifs"
14302 test -z "$ac_dir" && ac_dir=.
14303 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14304 acl_cv_path_LD="$ac_dir/$ac_prog"
14305 # Check to see if the program is GNU ld. I'd rather use --version,
14306 # but apparently some variants of GNU ld only accept -v.
14307 # Break only if it was the GNU/non-GNU ld that we prefer.
14308 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14309 *GNU* | *'with BFD'*)
14310 test "$with_gnu_ld" != no && break
14311 ;;
14312 *)
14313 test "$with_gnu_ld" != yes && break
14314 ;;
14315 esac
14316 fi
14317 done
14318 IFS="$acl_save_ifs"
14319 fi
14320 case $host in
14321 *-*-aix*)
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 #if defined __powerpc64__ || defined _ARCH_PPC64
14325 int ok;
14326 #else
14327 error fail
14328 #endif
14329
14330 _ACEOF
14331 if ac_fn_c_try_compile "$LINENO"
14332 then :
14333 # The compiler produces 64-bit code. Add option '-b64' so that the
14334 # linker groks 64-bit object files.
14335 case "$acl_cv_path_LD " in
14336 *" -b64 "*) ;;
14337 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
14338 esac
14339
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14342 ;;
14343 sparc64-*-netbsd*)
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14346 #if defined __sparcv9 || defined __arch64__
14347 int ok;
14348 #else
14349 error fail
14350 #endif
14351
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"
14354 then :
14355
14356 else $as_nop
14357 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
14358 # so that the linker groks 32-bit object files.
14359 case "$acl_cv_path_LD " in
14360 *" -m elf32_sparc "*) ;;
14361 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
14362 esac
14363
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14366 ;;
14367 esac
14368
14369 fi
14370
14371 LD="$acl_cv_path_LD"
14372 fi
14373 if test -n "$LD"; then
14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14375 printf "%s\n" "$LD" >&6; }
14376 else
14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 printf "%s\n" "no" >&6; }
14379 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14380 fi
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14382 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14383 if test ${acl_cv_prog_gnu_ld+y}
14384 then :
14385 printf %s "(cached) " >&6
14386 else $as_nop
14387 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14388 case `$LD -v 2>&1 </dev/null` in
14389 *GNU* | *'with BFD'*)
14390 acl_cv_prog_gnu_ld=yes
14391 ;;
14392 *)
14393 acl_cv_prog_gnu_ld=no
14394 ;;
14395 esac
14396 fi
14397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14398 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14399 with_gnu_ld=$acl_cv_prog_gnu_ld
14400
14401
14402
14403
14404
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14406 printf %s "checking for shared library run path origin... " >&6; }
14407 if test ${acl_cv_rpath+y}
14408 then :
14409 printf %s "(cached) " >&6
14410 else $as_nop
14411
14412 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14413 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14414 . ./conftest.sh
14415 rm -f ./conftest.sh
14416 acl_cv_rpath=done
14417
14418 fi
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14420 printf "%s\n" "$acl_cv_rpath" >&6; }
14421 wl="$acl_cv_wl"
14422 acl_libext="$acl_cv_libext"
14423 acl_shlibext="$acl_cv_shlibext"
14424 acl_libname_spec="$acl_cv_libname_spec"
14425 acl_library_names_spec="$acl_cv_library_names_spec"
14426 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14427 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14428 acl_hardcode_direct="$acl_cv_hardcode_direct"
14429 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14430 # Check whether --enable-rpath was given.
14431 if test ${enable_rpath+y}
14432 then :
14433 enableval=$enable_rpath; :
14434 else $as_nop
14435 enable_rpath=yes
14436 fi
14437
14438
14439
14440
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
14442 printf %s "checking 32-bit host C ABI... " >&6; }
14443 if test ${gl_cv_host_cpu_c_abi_32bit+y}
14444 then :
14445 printf %s "(cached) " >&6
14446 else $as_nop
14447 if test -n "$gl_cv_host_cpu_c_abi"; then
14448 case "$gl_cv_host_cpu_c_abi" in
14449 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
14450 gl_cv_host_cpu_c_abi_32bit=yes ;;
14451 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
14452 gl_cv_host_cpu_c_abi_32bit=no ;;
14453 *)
14454 gl_cv_host_cpu_c_abi_32bit=unknown ;;
14455 esac
14456 else
14457 case "$host_cpu" in
14458
14459 # CPUs that only support a 32-bit ABI.
14460 arc \
14461 | bfin \
14462 | cris* \
14463 | csky \
14464 | epiphany \
14465 | ft32 \
14466 | h8300 \
14467 | m68k \
14468 | microblaze | microblazeel \
14469 | nds32 | nds32le | nds32be \
14470 | nios2 | nios2eb | nios2el \
14471 | or1k* \
14472 | or32 \
14473 | sh | sh1234 | sh1234elb \
14474 | tic6x \
14475 | xtensa* )
14476 gl_cv_host_cpu_c_abi_32bit=yes
14477 ;;
14478
14479 # CPUs that only support a 64-bit ABI.
14480 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
14481 | mmix )
14482 gl_cv_host_cpu_c_abi_32bit=no
14483 ;;
14484
14485 i[34567]86 )
14486 gl_cv_host_cpu_c_abi_32bit=yes
14487 ;;
14488
14489 x86_64 )
14490 # On x86_64 systems, the C compiler may be generating code in one of
14491 # these ABIs:
14492 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
14493 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
14494 # with native Windows (mingw, MSVC).
14495 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
14496 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 #if (defined __x86_64__ || defined __amd64__ \
14500 || defined _M_X64 || defined _M_AMD64) \
14501 && !(defined __ILP32__ || defined _ILP32)
14502 int ok;
14503 #else
14504 error fail
14505 #endif
14506
14507 _ACEOF
14508 if ac_fn_c_try_compile "$LINENO"
14509 then :
14510 gl_cv_host_cpu_c_abi_32bit=no
14511 else $as_nop
14512 gl_cv_host_cpu_c_abi_32bit=yes
14513 fi
14514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14515 ;;
14516
14517 arm* | aarch64 )
14518 # Assume arm with EABI.
14519 # On arm64 systems, the C compiler may be generating code in one of
14520 # these ABIs:
14521 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
14522 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
14523 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
14524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h. */
14526 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
14527 int ok;
14528 #else
14529 error fail
14530 #endif
14531
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"
14534 then :
14535 gl_cv_host_cpu_c_abi_32bit=no
14536 else $as_nop
14537 gl_cv_host_cpu_c_abi_32bit=yes
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14540 ;;
14541
14542 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
14543 # On hppa, the C compiler may be generating 32-bit code or 64-bit
14544 # code. In the latter case, it defines _LP64 and __LP64__.
14545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14546 /* end confdefs.h. */
14547 #ifdef __LP64__
14548 int ok;
14549 #else
14550 error fail
14551 #endif
14552
14553 _ACEOF
14554 if ac_fn_c_try_compile "$LINENO"
14555 then :
14556 gl_cv_host_cpu_c_abi_32bit=no
14557 else $as_nop
14558 gl_cv_host_cpu_c_abi_32bit=yes
14559 fi
14560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14561 ;;
14562
14563 ia64* )
14564 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
14565 # 32-bit code. In the latter case, it defines _ILP32.
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 #ifdef _ILP32
14569 int ok;
14570 #else
14571 error fail
14572 #endif
14573
14574 _ACEOF
14575 if ac_fn_c_try_compile "$LINENO"
14576 then :
14577 gl_cv_host_cpu_c_abi_32bit=yes
14578 else $as_nop
14579 gl_cv_host_cpu_c_abi_32bit=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14582 ;;
14583
14584 mips* )
14585 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
14586 # at 32.
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14589 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
14590 int ok;
14591 #else
14592 error fail
14593 #endif
14594
14595 _ACEOF
14596 if ac_fn_c_try_compile "$LINENO"
14597 then :
14598 gl_cv_host_cpu_c_abi_32bit=no
14599 else $as_nop
14600 gl_cv_host_cpu_c_abi_32bit=yes
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14603 ;;
14604
14605 powerpc* )
14606 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
14607 # No need to distinguish them here; the caller may distinguish
14608 # them based on the OS.
14609 # On powerpc64 systems, the C compiler may still be generating
14610 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
14611 # be generating 64-bit code.
14612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h. */
14614 #if defined __powerpc64__ || defined _ARCH_PPC64
14615 int ok;
14616 #else
14617 error fail
14618 #endif
14619
14620 _ACEOF
14621 if ac_fn_c_try_compile "$LINENO"
14622 then :
14623 gl_cv_host_cpu_c_abi_32bit=no
14624 else $as_nop
14625 gl_cv_host_cpu_c_abi_32bit=yes
14626 fi
14627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14628 ;;
14629
14630 rs6000 )
14631 gl_cv_host_cpu_c_abi_32bit=yes
14632 ;;
14633
14634 riscv32 | riscv64 )
14635 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
14636 # Size of 'long' and 'void *':
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14639 #if defined __LP64__
14640 int ok;
14641 #else
14642 error fail
14643 #endif
14644
14645 _ACEOF
14646 if ac_fn_c_try_compile "$LINENO"
14647 then :
14648 gl_cv_host_cpu_c_abi_32bit=no
14649 else $as_nop
14650 gl_cv_host_cpu_c_abi_32bit=yes
14651 fi
14652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14653 ;;
14654
14655 s390* )
14656 # On s390x, the C compiler may be generating 64-bit (= s390x) code
14657 # or 31-bit (= s390) code.
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 #if defined __LP64__ || defined __s390x__
14661 int ok;
14662 #else
14663 error fail
14664 #endif
14665
14666 _ACEOF
14667 if ac_fn_c_try_compile "$LINENO"
14668 then :
14669 gl_cv_host_cpu_c_abi_32bit=no
14670 else $as_nop
14671 gl_cv_host_cpu_c_abi_32bit=yes
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14674 ;;
14675
14676 sparc | sparc64 )
14677 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
14678 # C compiler still generates 32-bit code.
14679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681 #if defined __sparcv9 || defined __arch64__
14682 int ok;
14683 #else
14684 error fail
14685 #endif
14686
14687 _ACEOF
14688 if ac_fn_c_try_compile "$LINENO"
14689 then :
14690 gl_cv_host_cpu_c_abi_32bit=no
14691 else $as_nop
14692 gl_cv_host_cpu_c_abi_32bit=yes
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14695 ;;
14696
14697 *)
14698 gl_cv_host_cpu_c_abi_32bit=unknown
14699 ;;
14700 esac
14701 fi
14702
14703 fi
14704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
14705 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
14706
14707 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
14708
14709 ac_ext=c
14710 ac_cpp='$CPP $CPPFLAGS'
14711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14715 printf %s "checking how to run the C preprocessor... " >&6; }
14716 # On Suns, sometimes $CPP names a directory.
14717 if test -n "$CPP" && test -d "$CPP"; then
14718 CPP=
14719 fi
14720 if test -z "$CPP"; then
14721 if test ${ac_cv_prog_CPP+y}
14722 then :
14723 printf %s "(cached) " >&6
14724 else $as_nop
14725 # Double quotes because $CC needs to be expanded
14726 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
14727 do
14728 ac_preproc_ok=false
14729 for ac_c_preproc_warn_flag in '' yes
14730 do
14731 # Use a header file that comes with gcc, so configuring glibc
14732 # with a fresh cross-compiler works.
14733 # On the NeXT, cc -E runs the code through the compiler's parser,
14734 # not just through cpp. "Syntax error" is here to catch this case.
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14737 #include <limits.h>
14738 Syntax error
14739 _ACEOF
14740 if ac_fn_c_try_cpp "$LINENO"
14741 then :
14742
14743 else $as_nop
14744 # Broken: fails on valid input.
14745 continue
14746 fi
14747 rm -f conftest.err conftest.i conftest.$ac_ext
14748
14749 # OK, works on sane cases. Now check whether nonexistent headers
14750 # can be detected and how.
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 #include <ac_nonexistent.h>
14754 _ACEOF
14755 if ac_fn_c_try_cpp "$LINENO"
14756 then :
14757 # Broken: success on invalid input.
14758 continue
14759 else $as_nop
14760 # Passes both tests.
14761 ac_preproc_ok=:
14762 break
14763 fi
14764 rm -f conftest.err conftest.i conftest.$ac_ext
14765
14766 done
14767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14768 rm -f conftest.i conftest.err conftest.$ac_ext
14769 if $ac_preproc_ok
14770 then :
14771 break
14772 fi
14773
14774 done
14775 ac_cv_prog_CPP=$CPP
14776
14777 fi
14778 CPP=$ac_cv_prog_CPP
14779 else
14780 ac_cv_prog_CPP=$CPP
14781 fi
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14783 printf "%s\n" "$CPP" >&6; }
14784 ac_preproc_ok=false
14785 for ac_c_preproc_warn_flag in '' yes
14786 do
14787 # Use a header file that comes with gcc, so configuring glibc
14788 # with a fresh cross-compiler works.
14789 # On the NeXT, cc -E runs the code through the compiler's parser,
14790 # not just through cpp. "Syntax error" is here to catch this case.
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <limits.h>
14794 Syntax error
14795 _ACEOF
14796 if ac_fn_c_try_cpp "$LINENO"
14797 then :
14798
14799 else $as_nop
14800 # Broken: fails on valid input.
14801 continue
14802 fi
14803 rm -f conftest.err conftest.i conftest.$ac_ext
14804
14805 # OK, works on sane cases. Now check whether nonexistent headers
14806 # can be detected and how.
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809 #include <ac_nonexistent.h>
14810 _ACEOF
14811 if ac_fn_c_try_cpp "$LINENO"
14812 then :
14813 # Broken: success on invalid input.
14814 continue
14815 else $as_nop
14816 # Passes both tests.
14817 ac_preproc_ok=:
14818 break
14819 fi
14820 rm -f conftest.err conftest.i conftest.$ac_ext
14821
14822 done
14823 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14824 rm -f conftest.i conftest.err conftest.$ac_ext
14825 if $ac_preproc_ok
14826 then :
14827
14828 else $as_nop
14829 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14830 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14831 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14832 See \`config.log' for more details" "$LINENO" 5; }
14833 fi
14834
14835 ac_ext=c
14836 ac_cpp='$CPP $CPPFLAGS'
14837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14840
14841
14842
14843
14844
14845
14846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
14847 printf %s "checking for ELF binary format... " >&6; }
14848 if test ${gl_cv_elf+y}
14849 then :
14850 printf %s "(cached) " >&6
14851 else $as_nop
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14854 #ifdef __ELF__
14855 Extensible Linking Format
14856 #endif
14857
14858 _ACEOF
14859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14860 $EGREP "Extensible Linking Format" >/dev/null 2>&1
14861 then :
14862 gl_cv_elf=yes
14863 else $as_nop
14864 gl_cv_elf=no
14865 fi
14866 rm -rf conftest*
14867
14868
14869 fi
14870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
14871 printf "%s\n" "$gl_cv_elf" >&6; }
14872 if test $gl_cv_elf; then
14873 # Extract the ELF class of a file (5th byte) in decimal.
14874 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
14875 if od -A x < /dev/null >/dev/null 2>/dev/null; then
14876 # Use POSIX od.
14877 func_elfclass ()
14878 {
14879 od -A n -t d1 -j 4 -N 1
14880 }
14881 else
14882 # Use BSD hexdump.
14883 func_elfclass ()
14884 {
14885 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
14886 echo
14887 }
14888 fi
14889 case $HOST_CPU_C_ABI_32BIT in
14890 yes)
14891 # 32-bit ABI.
14892 acl_is_expected_elfclass ()
14893 {
14894 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
14895 }
14896 ;;
14897 no)
14898 # 64-bit ABI.
14899 acl_is_expected_elfclass ()
14900 {
14901 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
14902 }
14903 ;;
14904 *)
14905 # Unknown.
14906 acl_is_expected_elfclass ()
14907 {
14908 :
14909 }
14910 ;;
14911 esac
14912 else
14913 acl_is_expected_elfclass ()
14914 {
14915 :
14916 }
14917 fi
14918
14919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
14920 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
14921 if test ${acl_cv_libdirstems+y}
14922 then :
14923 printf %s "(cached) " >&6
14924 else $as_nop
14925 acl_libdirstem=lib
14926 acl_libdirstem2=
14927 acl_libdirstem3=
14928 case "$host_os" in
14929 solaris*)
14930 if test $HOST_CPU_C_ABI_32BIT = no; then
14931 acl_libdirstem2=lib/64
14932 case "$host_cpu" in
14933 sparc*) acl_libdirstem3=lib/sparcv9 ;;
14934 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
14935 esac
14936 fi
14937 ;;
14938 *)
14939 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
14940 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14941 if test $HOST_CPU_C_ABI_32BIT != no; then
14942 # 32-bit or unknown ABI.
14943 if test -d /usr/lib32; then
14944 acl_libdirstem2=lib32
14945 fi
14946 fi
14947 if test $HOST_CPU_C_ABI_32BIT != yes; then
14948 # 64-bit or unknown ABI.
14949 if test -d /usr/lib64; then
14950 acl_libdirstem3=lib64
14951 fi
14952 fi
14953 if test -n "$searchpath"; then
14954 acl_save_IFS="${IFS= }"; IFS=":"
14955 for searchdir in $searchpath; do
14956 if test -d "$searchdir"; then
14957 case "$searchdir" in
14958 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
14959 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
14960 */../ | */.. )
14961 # Better ignore directories of this form. They are misleading.
14962 ;;
14963 *) searchdir=`cd "$searchdir" && pwd`
14964 case "$searchdir" in
14965 */lib32 ) acl_libdirstem2=lib32 ;;
14966 */lib64 ) acl_libdirstem3=lib64 ;;
14967 esac ;;
14968 esac
14969 fi
14970 done
14971 IFS="$acl_save_IFS"
14972 if test $HOST_CPU_C_ABI_32BIT = yes; then
14973 # 32-bit ABI.
14974 acl_libdirstem3=
14975 fi
14976 if test $HOST_CPU_C_ABI_32BIT = no; then
14977 # 64-bit ABI.
14978 acl_libdirstem2=
14979 fi
14980 fi
14981 ;;
14982 esac
14983 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14984 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
14985 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
14986
14987 fi
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
14989 printf "%s\n" "$acl_cv_libdirstems" >&6; }
14990 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
14991 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
14992 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
14993
14994
14995
14996 pkg_failed=no
14997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile-$GUILE_EFFECTIVE_VERSION" >&5
14998 printf %s "checking for guile-$GUILE_EFFECTIVE_VERSION... " >&6; }
14999
15000 if test -n "$GUILE_CFLAGS"; then
15001 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
15002 elif test -n "$PKG_CONFIG"; then
15003 if test -n "$PKG_CONFIG" && \
15004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5
15005 ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5
15006 ac_status=$?
15007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008 test $ac_status = 0; }; then
15009 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null`
15010 test "x$?" != "x0" && pkg_failed=yes
15011 else
15012 pkg_failed=yes
15013 fi
15014 else
15015 pkg_failed=untried
15016 fi
15017 if test -n "$GUILE_LIBS"; then
15018 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
15019 elif test -n "$PKG_CONFIG"; then
15020 if test -n "$PKG_CONFIG" && \
15021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$GUILE_EFFECTIVE_VERSION\""; } >&5
15022 ($PKG_CONFIG --exists --print-errors "guile-$GUILE_EFFECTIVE_VERSION") 2>&5
15023 ac_status=$?
15024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15025 test $ac_status = 0; }; then
15026 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>/dev/null`
15027 test "x$?" != "x0" && pkg_failed=yes
15028 else
15029 pkg_failed=yes
15030 fi
15031 else
15032 pkg_failed=untried
15033 fi
15034
15035
15036
15037 if test $pkg_failed = yes; then
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 printf "%s\n" "no" >&6; }
15040
15041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15042 _pkg_short_errors_supported=yes
15043 else
15044 _pkg_short_errors_supported=no
15045 fi
15046 if test $_pkg_short_errors_supported = yes; then
15047 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>&1`
15048 else
15049 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$GUILE_EFFECTIVE_VERSION" 2>&1`
15050 fi
15051 # Put the nasty error message in config.log where it belongs
15052 echo "$GUILE_PKG_ERRORS" >&5
15053
15054 as_fn_error $? "Package requirements (guile-$GUILE_EFFECTIVE_VERSION) were not met:
15055
15056 $GUILE_PKG_ERRORS
15057
15058 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15059 installed software in a non-standard prefix.
15060
15061 Alternatively, you may set the environment variables GUILE_CFLAGS
15062 and GUILE_LIBS to avoid the need to call pkg-config.
15063 See the pkg-config man page for more details." "$LINENO" 5
15064 elif test $pkg_failed = untried; then
15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15066 printf "%s\n" "no" >&6; }
15067 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15068 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15069 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15070 is in your PATH or set the PKG_CONFIG environment variable to the full
15071 path to pkg-config.
15072
15073 Alternatively, you may set the environment variables GUILE_CFLAGS
15074 and GUILE_LIBS to avoid the need to call pkg-config.
15075 See the pkg-config man page for more details.
15076
15077 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15078 See \`config.log' for more details" "$LINENO" 5; }
15079 else
15080 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
15081 GUILE_LIBS=$pkg_cv_GUILE_LIBS
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15083 printf "%s\n" "yes" >&6; }
15084
15085 fi
15086
15087
15088 GUILE_LDFLAGS=$GUILE_LIBS
15089
15090
15091
15092
15093 GUILE_LIBS=
15094 if test "$enable_rpath" != no; then
15095 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15096 rpathdirs=
15097 next=
15098 for opt in $GUILE_LDFLAGS; do
15099 if test -n "$next"; then
15100 dir="$next"
15101 if test "X$dir" != "X/usr/$acl_libdirstem" \
15102 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15103 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15104 rpathdirs="$rpathdirs $dir"
15105 fi
15106 next=
15107 else
15108 case $opt in
15109 -L) next=yes ;;
15110 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
15111 if test "X$dir" != "X/usr/$acl_libdirstem" \
15112 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15113 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15114 rpathdirs="$rpathdirs $dir"
15115 fi
15116 next= ;;
15117 *) next= ;;
15118 esac
15119 fi
15120 done
15121 if test "X$rpathdirs" != "X"; then
15122 if test -n """"; then
15123 for dir in $rpathdirs; do
15124 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
15125 done
15126 else
15127 if test -n "$acl_hardcode_libdir_separator"; then
15128 alldirs=
15129 for dir in $rpathdirs; do
15130 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
15131 done
15132 acl_save_libdir="$libdir"
15133 libdir="$alldirs"
15134 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15135 libdir="$acl_save_libdir"
15136 GUILE_LIBS="$flag"
15137 else
15138 for dir in $rpathdirs; do
15139 acl_save_libdir="$libdir"
15140 libdir="$dir"
15141 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15142 libdir="$acl_save_libdir"
15143 GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
15144 done
15145 fi
15146 fi
15147 fi
15148 fi
15149 fi
15150
15151
15152 GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
15153
15154
15155
15156 GUILE_LTLIBS=
15157 if test "$enable_rpath" != no; then
15158 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15159 rpathdirs=
15160 next=
15161 for opt in $GUILE_LDFLAGS; do
15162 if test -n "$next"; then
15163 dir="$next"
15164 if test "X$dir" != "X/usr/$acl_libdirstem" \
15165 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15166 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15167 rpathdirs="$rpathdirs $dir"
15168 fi
15169 next=
15170 else
15171 case $opt in
15172 -L) next=yes ;;
15173 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
15174 if test "X$dir" != "X/usr/$acl_libdirstem" \
15175 && test "X$dir" != "X/usr/$acl_libdirstem2" \
15176 && test "X$dir" != "X/usr/$acl_libdirstem3"; then
15177 rpathdirs="$rpathdirs $dir"
15178 fi
15179 next= ;;
15180 *) next= ;;
15181 esac
15182 fi
15183 done
15184 if test "X$rpathdirs" != "X"; then
15185 if test -n ""yes""; then
15186 for dir in $rpathdirs; do
15187 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
15188 done
15189 else
15190 if test -n "$acl_hardcode_libdir_separator"; then
15191 alldirs=
15192 for dir in $rpathdirs; do
15193 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
15194 done
15195 acl_save_libdir="$libdir"
15196 libdir="$alldirs"
15197 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15198 libdir="$acl_save_libdir"
15199 GUILE_LTLIBS="$flag"
15200 else
15201 for dir in $rpathdirs; do
15202 acl_save_libdir="$libdir"
15203 libdir="$dir"
15204 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15205 libdir="$acl_save_libdir"
15206 GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
15207 done
15208 fi
15209 fi
15210 fi
15211 fi
15212 fi
15213
15214
15215 GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
15216
15217
15218
15219
15220
15221
15222
15223 # Extract the first word of "guile-snarf", so it can be a program name with args.
15224 set dummy guile-snarf; ac_word=$2
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15226 printf %s "checking for $ac_word... " >&6; }
15227 if test ${ac_cv_path_guile_snarf+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else $as_nop
15231 case $guile_snarf in
15232 [\\/]* | ?:[\\/]*)
15233 ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
15234 ;;
15235 *)
15236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237 for as_dir in $PATH
15238 do
15239 IFS=$as_save_IFS
15240 case $as_dir in #(((
15241 '') as_dir=./ ;;
15242 */) ;;
15243 *) as_dir=$as_dir/ ;;
15244 esac
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15247 ac_cv_path_guile_snarf="$as_dir$ac_word$ac_exec_ext"
15248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15249 break 2
15250 fi
15251 done
15252 done
15253 IFS=$as_save_IFS
15254
15255 test -z "$ac_cv_path_guile_snarf" && ac_cv_path_guile_snarf="not-found"
15256 ;;
15257 esac
15258 fi
15259 guile_snarf=$ac_cv_path_guile_snarf
15260 if test -n "$guile_snarf"; then
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
15262 printf "%s\n" "$guile_snarf" >&6; }
15263 else
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 printf "%s\n" "no" >&6; }
15266 fi
15267
15268
15269 if test "x$guile_snarf" = "xnot-found"; then
15270 as_fn_error $? "\`guile-snarf' not found. Please install Guile 1.8.x or later." "$LINENO" 5
15271 fi
15272 for ac_prog in guild guile-tools
15273 do
15274 # Extract the first word of "$ac_prog", so it can be a program name with args.
15275 set dummy $ac_prog; ac_word=$2
15276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15277 printf %s "checking for $ac_word... " >&6; }
15278 if test ${ac_cv_path_GUILD+y}
15279 then :
15280 printf %s "(cached) " >&6
15281 else $as_nop
15282 case $GUILD in
15283 [\\/]* | ?:[\\/]*)
15284 ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
15285 ;;
15286 *)
15287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288 for as_dir in $PATH
15289 do
15290 IFS=$as_save_IFS
15291 case $as_dir in #(((
15292 '') as_dir=./ ;;
15293 */) ;;
15294 *) as_dir=$as_dir/ ;;
15295 esac
15296 for ac_exec_ext in '' $ac_executable_extensions; do
15297 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15298 ac_cv_path_GUILD="$as_dir$ac_word$ac_exec_ext"
15299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15300 break 2
15301 fi
15302 done
15303 done
15304 IFS=$as_save_IFS
15305
15306 ;;
15307 esac
15308 fi
15309 GUILD=$ac_cv_path_GUILD
15310 if test -n "$GUILD"; then
15311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
15312 printf "%s\n" "$GUILD" >&6; }
15313 else
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315 printf "%s\n" "no" >&6; }
15316 fi
15317
15318
15319 test -n "$GUILD" && break
15320 done
15321
15322
15323
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
15325 printf %s "checking for Guile site directory... " >&6; }
15326 GUILE_SITE=`$PKG_CONFIG --print-errors --variable=sitedir guile-$GUILE_EFFECTIVE_VERSION`
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
15328 printf "%s\n" "$GUILE_SITE" >&6; }
15329 if test "$GUILE_SITE" = ""; then
15330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15331 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15332 as_fn_error $? "sitedir not found
15333 See \`config.log' for more details" "$LINENO" 5; }
15334 fi
15335
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using pkgconfig" >&5
15337 printf %s "checking for Guile site-ccache directory using pkgconfig... " >&6; }
15338 GUILE_SITE_CCACHE=`$PKG_CONFIG --variable=siteccachedir guile-$GUILE_EFFECTIVE_VERSION`
15339 if test "$GUILE_SITE_CCACHE" = ""; then
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15341 printf "%s\n" "no" >&6; }
15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using interpreter" >&5
15343 printf %s "checking for Guile site-ccache directory using interpreter... " >&6; }
15344 GUILE_SITE_CCACHE=`$GUILE -c "(display (if (defined? '%site-ccache-dir) (%site-ccache-dir) \"\"))"`
15345 if test $? != "0" -o "$GUILE_SITE_CCACHE" = ""; then
15346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347 printf "%s\n" "no" >&6; }
15348 GUILE_SITE_CCACHE=""
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: siteccachedir not found" >&5
15350 printf "%s\n" "$as_me: WARNING: siteccachedir not found" >&2;}
15351 fi
15352 fi
15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE_CCACHE" >&5
15354 printf "%s\n" "$GUILE_SITE_CCACHE" >&6; }
15355
15356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Guile extensions directory" >&5
15357 printf %s "checking for Guile extensions directory... " >&6; }
15358 GUILE_EXTENSION=`$PKG_CONFIG --print-errors --variable=extensiondir guile-$GUILE_EFFECTIVE_VERSION`
15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GUILE_EXTENSION" >&5
15360 printf "%s\n" "$GUILE_EXTENSION" >&6; }
15361 if test "$GUILE_EXTENSION" = ""; then
15362 GUILE_EXTENSION=""
15363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: extensiondir not found" >&5
15364 printf "%s\n" "$as_me: WARNING: extensiondir not found" >&2;}
15365 fi
15366
15367
15368
15369 clean_LIBS="$LIBS"
15370 clean_CFLAGS="$CFLAGS"
15371 LIBS="$LIBS $GUILE_LIBS"
15372 CFLAGS="$CFLAGS $GUILE_CFLAGS"
15373
15374 ac_fn_c_check_func "$LINENO" "scm_take_u8vector" "ac_cv_func_scm_take_u8vector"
15375 if test "x$ac_cv_func_scm_take_u8vector" = xyes
15376 then :
15377 have_guile_1_8=yes
15378 else $as_nop
15379 have_guile_1_8=no
15380 fi
15381
15382 if test "x$have_guile_1_8" != "xyes"; then
15383 as_fn_error $? "You need Guile 1.8.x or higher." "$LINENO" 5
15384 fi
15385
15386 # `scm_c_locale_stringn_to_number ()' was introduced after 1.8.0. It is
15387 # equivalent to the former `scm_i_mem2number ()'.
15388 ac_fn_c_check_func "$LINENO" "scm_c_locale_stringn_to_number" "ac_cv_func_scm_c_locale_stringn_to_number"
15389 if test "x$ac_cv_func_scm_c_locale_stringn_to_number" = xyes
15390 then :
15391 printf "%s\n" "#define HAVE_SCM_C_LOCALE_STRINGN_TO_NUMBER 1" >>confdefs.h
15392
15393 fi
15394 ac_fn_c_check_func "$LINENO" "scm_i_mem2number" "ac_cv_func_scm_i_mem2number"
15395 if test "x$ac_cv_func_scm_i_mem2number" = xyes
15396 then :
15397 printf "%s\n" "#define HAVE_SCM_I_MEM2NUMBER 1" >>confdefs.h
15398
15399 fi
15400
15401
15402 # `scm_i_' functions may eventually be no longer exported, so avoid
15403 # relying on it.
15404 ac_fn_c_check_func "$LINENO" "scm_i_input_error" "ac_cv_func_scm_i_input_error"
15405 if test "x$ac_cv_func_scm_i_input_error" = xyes
15406 then :
15407 printf "%s\n" "#define HAVE_SCM_I_INPUT_ERROR 1" >>confdefs.h
15408
15409 fi
15410 ac_fn_c_check_func "$LINENO" "scm_i_read_array" "ac_cv_func_scm_i_read_array"
15411 if test "x$ac_cv_func_scm_i_read_array" = xyes
15412 then :
15413 printf "%s\n" "#define HAVE_SCM_I_READ_ARRAY 1" >>confdefs.h
15414
15415 fi
15416
15417
15418 # These symbols (which are not actual functions) vanished in 1.9.3.
15419 ac_fn_c_check_func "$LINENO" "scm_charnames" "ac_cv_func_scm_charnames"
15420 if test "x$ac_cv_func_scm_charnames" = xyes
15421 then :
15422 printf "%s\n" "#define HAVE_SCM_CHARNAMES 1" >>confdefs.h
15423
15424 fi
15425 ac_fn_c_check_func "$LINENO" "scm_charnums" "ac_cv_func_scm_charnums"
15426 if test "x$ac_cv_func_scm_charnums" = xyes
15427 then :
15428 printf "%s\n" "#define HAVE_SCM_CHARNUMS 1" >>confdefs.h
15429
15430 fi
15431
15432
15433 # Functions for Unicode support that appeared in Guile 2.0.
15434 ac_fn_c_check_func "$LINENO" "scm_from_stringn" "ac_cv_func_scm_from_stringn"
15435 if test "x$ac_cv_func_scm_from_stringn" = xyes
15436 then :
15437 printf "%s\n" "#define HAVE_SCM_FROM_STRINGN 1" >>confdefs.h
15438
15439 fi
15440 ac_fn_c_check_func "$LINENO" "scm_get_byte_or_eof" "ac_cv_func_scm_get_byte_or_eof"
15441 if test "x$ac_cv_func_scm_get_byte_or_eof" = xyes
15442 then :
15443 printf "%s\n" "#define HAVE_SCM_GET_BYTE_OR_EOF 1" >>confdefs.h
15444
15445 fi
15446 ac_fn_c_check_func "$LINENO" "scm_unget_byte" "ac_cv_func_scm_unget_byte"
15447 if test "x$ac_cv_func_scm_unget_byte" = xyes
15448 then :
15449 printf "%s\n" "#define HAVE_SCM_UNGET_BYTE 1" >>confdefs.h
15450
15451 fi
15452 ac_fn_c_check_func "$LINENO" "scm_from_utf32_stringn" "ac_cv_func_scm_from_utf32_stringn"
15453 if test "x$ac_cv_func_scm_from_utf32_stringn" = xyes
15454 then :
15455 printf "%s\n" "#define HAVE_SCM_FROM_UTF32_STRINGN 1" >>confdefs.h
15456
15457 fi
15458 ac_fn_c_check_func "$LINENO" "scm_gc_malloc_pointerless" "ac_cv_func_scm_gc_malloc_pointerless"
15459 if test "x$ac_cv_func_scm_gc_malloc_pointerless" = xyes
15460 then :
15461 printf "%s\n" "#define HAVE_SCM_GC_MALLOC_POINTERLESS 1" >>confdefs.h
15462
15463 fi
15464
15465
15466 if test "x$ac_cv_func_scm_from_utf32_stringn" = "xyes"; then
15467 HAVE_GUILE2_TRUE=
15468 HAVE_GUILE2_FALSE='#'
15469 else
15470 HAVE_GUILE2_TRUE='#'
15471 HAVE_GUILE2_FALSE=
15472 fi
15473
15474
15475 # This type appeared in Guile 2.0.
15476 ac_fn_c_check_type "$LINENO" "scm_t_wchar" "ac_cv_type_scm_t_wchar" "#include <libguile.h>
15477 "
15478 if test "x$ac_cv_type_scm_t_wchar" = xyes
15479 then :
15480
15481 printf "%s\n" "#define SCM_READER_HAVE_SCM_T_WCHAR 1" >>confdefs.h
15482
15483 else $as_nop
15484 :
15485 fi
15486
15487
15488 CFLAGS="$clean_CFLAGS"
15489 LIBS="$clean_LIBS"
15490
15491
15492 pkgdatadir="$datadir/$PACKAGE_NAME"
15493 if test "x$guilemoduledir" = "x"; then
15494 guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
15495 guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"
15496 else
15497 guileobjectdir="$guilemoduledir"
15498 fi
15499
15500
15501
15502 if test "$guilemoduledir" != "$GUILE_SITE"; then
15503 # Guile won't be able to locate the module "out of the box", so
15504 # warn the user.
15505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \`guilemoduledir' ($guilemoduledir) is different from \`GUILE_SITE' ($GUILE_SITE)." >&5
15506 printf "%s\n" "$as_me: WARNING: \`guilemoduledir' ($guilemoduledir) is different from \`GUILE_SITE' ($GUILE_SITE)." >&2;}
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Make sure to adjust the \`GUILE_LOAD_PATH' environment variable accordingly," >&5
15508 printf "%s\n" "$as_me: WARNING: Make sure to adjust the \`GUILE_LOAD_PATH' environment variable accordingly," >&2;}
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: or re-run \`configure' with \`--with-guilemoduledir=$GUILE_SITE'." >&5
15510 printf "%s\n" "$as_me: WARNING: or re-run \`configure' with \`--with-guilemoduledir=$GUILE_SITE'." >&2;}
15511 fi
15512
15513 ac_config_files="$ac_config_files Makefile pre-inst-guile src/Makefile tests/Makefile modules/Makefile doc/Makefile"
15514
15515
15516 ac_config_commands="$ac_config_commands pre-inst-guile-exec"
15517
15518
15519 cat >confcache <<\_ACEOF
15520 # This file is a shell script that caches the results of configure
15521 # tests run on this system so they can be shared between configure
15522 # scripts and configure runs, see configure's option --config-cache.
15523 # It is not useful on other systems. If it contains results you don't
15524 # want to keep, you may remove or edit it.
15525 #
15526 # config.status only pays attention to the cache file if you give it
15527 # the --recheck option to rerun configure.
15528 #
15529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15531 # following values.
15532
15533 _ACEOF
15534
15535 # The following way of writing the cache mishandles newlines in values,
15536 # but we know of no workaround that is simple, portable, and efficient.
15537 # So, we kill variables containing newlines.
15538 # Ultrix sh set writes to stderr and can't be redirected directly,
15539 # and sets the high bit in the cache file unless we assign to the vars.
15540 (
15541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15542 eval ac_val=\$$ac_var
15543 case $ac_val in #(
15544 *${as_nl}*)
15545 case $ac_var in #(
15546 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15547 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15548 esac
15549 case $ac_var in #(
15550 _ | IFS | as_nl) ;; #(
15551 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15552 *) { eval $ac_var=; unset $ac_var;} ;;
15553 esac ;;
15554 esac
15555 done
15556
15557 (set) 2>&1 |
15558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15559 *${as_nl}ac_space=\ *)
15560 # `set' does not quote correctly, so add quotes: double-quote
15561 # substitution turns \\\\ into \\, and sed turns \\ into \.
15562 sed -n \
15563 "s/'/'\\\\''/g;
15564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15565 ;; #(
15566 *)
15567 # `set' quotes correctly as required by POSIX, so do not add quotes.
15568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15569 ;;
15570 esac |
15571 sort
15572 ) |
15573 sed '
15574 /^ac_cv_env_/b end
15575 t clear
15576 :clear
15577 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15578 t end
15579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15580 :end' >>confcache
15581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15582 if test -w "$cache_file"; then
15583 if test "x$cache_file" != "x/dev/null"; then
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15585 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15586 if test ! -f "$cache_file" || test -h "$cache_file"; then
15587 cat confcache >"$cache_file"
15588 else
15589 case $cache_file in #(
15590 */* | ?:*)
15591 mv -f confcache "$cache_file"$$ &&
15592 mv -f "$cache_file"$$ "$cache_file" ;; #(
15593 *)
15594 mv -f confcache "$cache_file" ;;
15595 esac
15596 fi
15597 fi
15598 else
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15600 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15601 fi
15602 fi
15603 rm -f confcache
15604
15605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15606 # Let make expand exec_prefix.
15607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15608
15609 DEFS=-DHAVE_CONFIG_H
15610
15611 ac_libobjs=
15612 ac_ltlibobjs=
15613 U=
15614 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15615 # 1. Remove the extension, and $U if already installed.
15616 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15617 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15618 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15619 # will be set to the directory where LIBOBJS objects are built.
15620 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15621 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15622 done
15623 LIBOBJS=$ac_libobjs
15624
15625 LTLIBOBJS=$ac_ltlibobjs
15626
15627
15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15629 printf %s "checking that generated files are newer than configure... " >&6; }
15630 if test -n "$am_sleep_pid"; then
15631 # Hide warnings about reused PIDs.
15632 wait $am_sleep_pid 2>/dev/null
15633 fi
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15635 printf "%s\n" "done" >&6; }
15636 if test -n "$EXEEXT"; then
15637 am__EXEEXT_TRUE=
15638 am__EXEEXT_FALSE='#'
15639 else
15640 am__EXEEXT_TRUE='#'
15641 am__EXEEXT_FALSE=
15642 fi
15643
15644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15645 as_fn_error $? "conditional \"AMDEP\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 fi
15648 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15649 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 fi
15652 if test -z "${HAVE_GUILE2_TRUE}" && test -z "${HAVE_GUILE2_FALSE}"; then
15653 as_fn_error $? "conditional \"HAVE_GUILE2\" was never defined.
15654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15655 fi
15656
15657 : "${CONFIG_STATUS=./config.status}"
15658 ac_write_fail=0
15659 ac_clean_files_save=$ac_clean_files
15660 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15662 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15663 as_write_fail=0
15664 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15665 #! $SHELL
15666 # Generated by $as_me.
15667 # Run this file to recreate the current configuration.
15668 # Compiler output produced by configure, useful for debugging
15669 # configure, is in config.log if it exists.
15670
15671 debug=false
15672 ac_cs_recheck=false
15673 ac_cs_silent=false
15674
15675 SHELL=\${CONFIG_SHELL-$SHELL}
15676 export SHELL
15677 _ASEOF
15678 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15679 ## -------------------- ##
15680 ## M4sh Initialization. ##
15681 ## -------------------- ##
15682
15683 # Be more Bourne compatible
15684 DUALCASE=1; export DUALCASE # for MKS sh
15685 as_nop=:
15686 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15687 then :
15688 emulate sh
15689 NULLCMD=:
15690 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15691 # is contrary to our usage. Disable this feature.
15692 alias -g '${1+"$@"}'='"$@"'
15693 setopt NO_GLOB_SUBST
15694 else $as_nop
15695 case `(set -o) 2>/dev/null` in #(
15696 *posix*) :
15697 set -o posix ;; #(
15698 *) :
15699 ;;
15700 esac
15701 fi
15702
15703
15704
15705 # Reset variables that may have inherited troublesome values from
15706 # the environment.
15707
15708 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15709 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15710 # side effect of setting IFS to empty, thus disabling word splitting.)
15711 # Quoting is to prevent editors from complaining about space-tab.
15712 as_nl='
15713 '
15714 export as_nl
15715 IFS=" "" $as_nl"
15716
15717 PS1='$ '
15718 PS2='> '
15719 PS4='+ '
15720
15721 # Ensure predictable behavior from utilities with locale-dependent output.
15722 LC_ALL=C
15723 export LC_ALL
15724 LANGUAGE=C
15725 export LANGUAGE
15726
15727 # We cannot yet rely on "unset" to work, but we need these variables
15728 # to be unset--not just set to an empty or harmless value--now, to
15729 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15730 # also avoids known problems related to "unset" and subshell syntax
15731 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15732 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15733 do eval test \${$as_var+y} \
15734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15735 done
15736
15737 # Ensure that fds 0, 1, and 2 are open.
15738 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15739 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15740 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15741
15742 # The user is always right.
15743 if ${PATH_SEPARATOR+false} :; then
15744 PATH_SEPARATOR=:
15745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15747 PATH_SEPARATOR=';'
15748 }
15749 fi
15750
15751
15752 # Find who we are. Look in the path if we contain no directory separator.
15753 as_myself=
15754 case $0 in #((
15755 *[\\/]* ) as_myself=$0 ;;
15756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $PATH
15758 do
15759 IFS=$as_save_IFS
15760 case $as_dir in #(((
15761 '') as_dir=./ ;;
15762 */) ;;
15763 *) as_dir=$as_dir/ ;;
15764 esac
15765 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15766 done
15767 IFS=$as_save_IFS
15768
15769 ;;
15770 esac
15771 # We did not find ourselves, most probably we were run as `sh COMMAND'
15772 # in which case we are not to be found in the path.
15773 if test "x$as_myself" = x; then
15774 as_myself=$0
15775 fi
15776 if test ! -f "$as_myself"; then
15777 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15778 exit 1
15779 fi
15780
15781
15782
15783 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15784 # ----------------------------------------
15785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15787 # script with STATUS, using 1 if that was 0.
15788 as_fn_error ()
15789 {
15790 as_status=$1; test $as_status -eq 0 && as_status=1
15791 if test "$4"; then
15792 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15794 fi
15795 printf "%s\n" "$as_me: error: $2" >&2
15796 as_fn_exit $as_status
15797 } # as_fn_error
15798
15799
15800
15801 # as_fn_set_status STATUS
15802 # -----------------------
15803 # Set $? to STATUS, without forking.
15804 as_fn_set_status ()
15805 {
15806 return $1
15807 } # as_fn_set_status
15808
15809 # as_fn_exit STATUS
15810 # -----------------
15811 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15812 as_fn_exit ()
15813 {
15814 set +e
15815 as_fn_set_status $1
15816 exit $1
15817 } # as_fn_exit
15818
15819 # as_fn_unset VAR
15820 # ---------------
15821 # Portably unset VAR.
15822 as_fn_unset ()
15823 {
15824 { eval $1=; unset $1;}
15825 }
15826 as_unset=as_fn_unset
15827
15828 # as_fn_append VAR VALUE
15829 # ----------------------
15830 # Append the text in VALUE to the end of the definition contained in VAR. Take
15831 # advantage of any shell optimizations that allow amortized linear growth over
15832 # repeated appends, instead of the typical quadratic growth present in naive
15833 # implementations.
15834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15835 then :
15836 eval 'as_fn_append ()
15837 {
15838 eval $1+=\$2
15839 }'
15840 else $as_nop
15841 as_fn_append ()
15842 {
15843 eval $1=\$$1\$2
15844 }
15845 fi # as_fn_append
15846
15847 # as_fn_arith ARG...
15848 # ------------------
15849 # Perform arithmetic evaluation on the ARGs, and store the result in the
15850 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15851 # must be portable across $(()) and expr.
15852 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15853 then :
15854 eval 'as_fn_arith ()
15855 {
15856 as_val=$(( $* ))
15857 }'
15858 else $as_nop
15859 as_fn_arith ()
15860 {
15861 as_val=`expr "$@" || test $? -eq 1`
15862 }
15863 fi # as_fn_arith
15864
15865
15866 if expr a : '\(a\)' >/dev/null 2>&1 &&
15867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15868 as_expr=expr
15869 else
15870 as_expr=false
15871 fi
15872
15873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15874 as_basename=basename
15875 else
15876 as_basename=false
15877 fi
15878
15879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15880 as_dirname=dirname
15881 else
15882 as_dirname=false
15883 fi
15884
15885 as_me=`$as_basename -- "$0" ||
15886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15887 X"$0" : 'X\(//\)$' \| \
15888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15889 printf "%s\n" X/"$0" |
15890 sed '/^.*\/\([^/][^/]*\)\/*$/{
15891 s//\1/
15892 q
15893 }
15894 /^X\/\(\/\/\)$/{
15895 s//\1/
15896 q
15897 }
15898 /^X\/\(\/\).*/{
15899 s//\1/
15900 q
15901 }
15902 s/.*/./; q'`
15903
15904 # Avoid depending upon Character Ranges.
15905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15908 as_cr_digits='0123456789'
15909 as_cr_alnum=$as_cr_Letters$as_cr_digits
15910
15911
15912 # Determine whether it's possible to make 'echo' print without a newline.
15913 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15914 # for compatibility with existing Makefiles.
15915 ECHO_C= ECHO_N= ECHO_T=
15916 case `echo -n x` in #(((((
15917 -n*)
15918 case `echo 'xy\c'` in
15919 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15920 xy) ECHO_C='\c';;
15921 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15922 ECHO_T=' ';;
15923 esac;;
15924 *)
15925 ECHO_N='-n';;
15926 esac
15927
15928 # For backward compatibility with old third-party macros, we provide
15929 # the shell variables $as_echo and $as_echo_n. New code should use
15930 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15931 as_echo='printf %s\n'
15932 as_echo_n='printf %s'
15933
15934 rm -f conf$$ conf$$.exe conf$$.file
15935 if test -d conf$$.dir; then
15936 rm -f conf$$.dir/conf$$.file
15937 else
15938 rm -f conf$$.dir
15939 mkdir conf$$.dir 2>/dev/null
15940 fi
15941 if (echo >conf$$.file) 2>/dev/null; then
15942 if ln -s conf$$.file conf$$ 2>/dev/null; then
15943 as_ln_s='ln -s'
15944 # ... but there are two gotchas:
15945 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15946 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15947 # In both cases, we have to default to `cp -pR'.
15948 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15949 as_ln_s='cp -pR'
15950 elif ln conf$$.file conf$$ 2>/dev/null; then
15951 as_ln_s=ln
15952 else
15953 as_ln_s='cp -pR'
15954 fi
15955 else
15956 as_ln_s='cp -pR'
15957 fi
15958 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15959 rmdir conf$$.dir 2>/dev/null
15960
15961
15962 # as_fn_mkdir_p
15963 # -------------
15964 # Create "$as_dir" as a directory, including parents if necessary.
15965 as_fn_mkdir_p ()
15966 {
15967
15968 case $as_dir in #(
15969 -*) as_dir=./$as_dir;;
15970 esac
15971 test -d "$as_dir" || eval $as_mkdir_p || {
15972 as_dirs=
15973 while :; do
15974 case $as_dir in #(
15975 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15976 *) as_qdir=$as_dir;;
15977 esac
15978 as_dirs="'$as_qdir' $as_dirs"
15979 as_dir=`$as_dirname -- "$as_dir" ||
15980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15981 X"$as_dir" : 'X\(//\)[^/]' \| \
15982 X"$as_dir" : 'X\(//\)$' \| \
15983 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15984 printf "%s\n" X"$as_dir" |
15985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15986 s//\1/
15987 q
15988 }
15989 /^X\(\/\/\)[^/].*/{
15990 s//\1/
15991 q
15992 }
15993 /^X\(\/\/\)$/{
15994 s//\1/
15995 q
15996 }
15997 /^X\(\/\).*/{
15998 s//\1/
15999 q
16000 }
16001 s/.*/./; q'`
16002 test -d "$as_dir" && break
16003 done
16004 test -z "$as_dirs" || eval "mkdir $as_dirs"
16005 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16006
16007
16008 } # as_fn_mkdir_p
16009 if mkdir -p . 2>/dev/null; then
16010 as_mkdir_p='mkdir -p "$as_dir"'
16011 else
16012 test -d ./-p && rmdir ./-p
16013 as_mkdir_p=false
16014 fi
16015
16016
16017 # as_fn_executable_p FILE
16018 # -----------------------
16019 # Test if FILE is an executable regular file.
16020 as_fn_executable_p ()
16021 {
16022 test -f "$1" && test -x "$1"
16023 } # as_fn_executable_p
16024 as_test_x='test -x'
16025 as_executable_p=as_fn_executable_p
16026
16027 # Sed expression to map a string onto a valid CPP name.
16028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16029
16030 # Sed expression to map a string onto a valid variable name.
16031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16032
16033
16034 exec 6>&1
16035 ## ----------------------------------- ##
16036 ## Main body of $CONFIG_STATUS script. ##
16037 ## ----------------------------------- ##
16038 _ASEOF
16039 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16040
16041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16042 # Save the log message, to keep $0 and so on meaningful, and to
16043 # report actual input values of CONFIG_FILES etc. instead of their
16044 # values after options handling.
16045 ac_log="
16046 This file was extended by Guile-Reader $as_me 0.6.3, which was
16047 generated by GNU Autoconf 2.71. Invocation command line was
16048
16049 CONFIG_FILES = $CONFIG_FILES
16050 CONFIG_HEADERS = $CONFIG_HEADERS
16051 CONFIG_LINKS = $CONFIG_LINKS
16052 CONFIG_COMMANDS = $CONFIG_COMMANDS
16053 $ $0 $@
16054
16055 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16056 "
16057
16058 _ACEOF
16059
16060 case $ac_config_files in *"
16061 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16062 esac
16063
16064 case $ac_config_headers in *"
16065 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16066 esac
16067
16068
16069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16070 # Files that config.status was made for.
16071 config_files="$ac_config_files"
16072 config_headers="$ac_config_headers"
16073 config_commands="$ac_config_commands"
16074
16075 _ACEOF
16076
16077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16078 ac_cs_usage="\
16079 \`$as_me' instantiates files and other configuration actions
16080 from templates according to the current configuration. Unless the files
16081 and actions are specified as TAGs, all are instantiated by default.
16082
16083 Usage: $0 [OPTION]... [TAG]...
16084
16085 -h, --help print this help, then exit
16086 -V, --version print version number and configuration settings, then exit
16087 --config print configuration, then exit
16088 -q, --quiet, --silent
16089 do not print progress messages
16090 -d, --debug don't remove temporary files
16091 --recheck update $as_me by reconfiguring in the same conditions
16092 --file=FILE[:TEMPLATE]
16093 instantiate the configuration file FILE
16094 --header=FILE[:TEMPLATE]
16095 instantiate the configuration header FILE
16096
16097 Configuration files:
16098 $config_files
16099
16100 Configuration headers:
16101 $config_headers
16102
16103 Configuration commands:
16104 $config_commands
16105
16106 Report bugs to <[email protected]>.
16107 Guile-Reader home page: <https://nongnu.org/guile-reader/>."
16108
16109 _ACEOF
16110 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16111 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 ac_cs_config='$ac_cs_config_escaped'
16114 ac_cs_version="\\
16115 Guile-Reader config.status 0.6.3
16116 configured by $0, generated by GNU Autoconf 2.71,
16117 with options \\"\$ac_cs_config\\"
16118
16119 Copyright (C) 2021 Free Software Foundation, Inc.
16120 This config.status script is free software; the Free Software Foundation
16121 gives unlimited permission to copy, distribute and modify it."
16122
16123 ac_pwd='$ac_pwd'
16124 srcdir='$srcdir'
16125 INSTALL='$INSTALL'
16126 MKDIR_P='$MKDIR_P'
16127 AWK='$AWK'
16128 test -n "\$AWK" || AWK=awk
16129 _ACEOF
16130
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 # The default lists apply if the user does not specify any file.
16133 ac_need_defaults=:
16134 while test $# != 0
16135 do
16136 case $1 in
16137 --*=?*)
16138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16140 ac_shift=:
16141 ;;
16142 --*=)
16143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16144 ac_optarg=
16145 ac_shift=:
16146 ;;
16147 *)
16148 ac_option=$1
16149 ac_optarg=$2
16150 ac_shift=shift
16151 ;;
16152 esac
16153
16154 case $ac_option in
16155 # Handling of the options.
16156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16157 ac_cs_recheck=: ;;
16158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16159 printf "%s\n" "$ac_cs_version"; exit ;;
16160 --config | --confi | --conf | --con | --co | --c )
16161 printf "%s\n" "$ac_cs_config"; exit ;;
16162 --debug | --debu | --deb | --de | --d | -d )
16163 debug=: ;;
16164 --file | --fil | --fi | --f )
16165 $ac_shift
16166 case $ac_optarg in
16167 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16168 '') as_fn_error $? "missing file argument" ;;
16169 esac
16170 as_fn_append CONFIG_FILES " '$ac_optarg'"
16171 ac_need_defaults=false;;
16172 --header | --heade | --head | --hea )
16173 $ac_shift
16174 case $ac_optarg in
16175 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16176 esac
16177 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16178 ac_need_defaults=false;;
16179 --he | --h)
16180 # Conflict between --help and --header
16181 as_fn_error $? "ambiguous option: \`$1'
16182 Try \`$0 --help' for more information.";;
16183 --help | --hel | -h )
16184 printf "%s\n" "$ac_cs_usage"; exit ;;
16185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16186 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16187 ac_cs_silent=: ;;
16188
16189 # This is an error.
16190 -*) as_fn_error $? "unrecognized option: \`$1'
16191 Try \`$0 --help' for more information." ;;
16192
16193 *) as_fn_append ac_config_targets " $1"
16194 ac_need_defaults=false ;;
16195
16196 esac
16197 shift
16198 done
16199
16200 ac_configure_extra_args=
16201
16202 if $ac_cs_silent; then
16203 exec 6>/dev/null
16204 ac_configure_extra_args="$ac_configure_extra_args --silent"
16205 fi
16206
16207 _ACEOF
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 if \$ac_cs_recheck; then
16210 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16211 shift
16212 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16213 CONFIG_SHELL='$SHELL'
16214 export CONFIG_SHELL
16215 exec "\$@"
16216 fi
16217
16218 _ACEOF
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 exec 5>>config.log
16221 {
16222 echo
16223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16224 ## Running $as_me. ##
16225 _ASBOX
16226 printf "%s\n" "$ac_log"
16227 } >&5
16228
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 #
16232 # INIT-COMMANDS
16233 #
16234 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16235
16236
16237 # The HP-UX ksh and POSIX shell print the target directory to stdout
16238 # if CDPATH is set.
16239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16240
16241 sed_quote_subst='$sed_quote_subst'
16242 double_quote_subst='$double_quote_subst'
16243 delay_variable_subst='$delay_variable_subst'
16244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16246 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16247 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16248 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16249 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16250 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16251 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16252 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16253 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16254 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16255 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16256 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16257 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16258 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16259 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16260 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16261 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16262 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16263 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16264 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16265 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16266 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16267 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16268 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16269 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16270 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16271 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16272 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16273 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16275 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16276 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16277 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16278 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16279 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16280 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16281 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16282 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16283 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16284 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16285 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16286 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16287 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16288 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16289 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16290 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16291 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16292 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16293 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16294 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16295 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16296 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16297 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16298 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16299 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16300 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16301 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16302 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16303 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16304 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"`'
16305 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16306 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16307 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16308 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16309 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16310 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16311 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16312 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16313 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16314 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16315 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16316 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16317 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16318 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16319 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16320 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16321 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16322 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16323 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16324 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16325 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16326 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16327 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16328 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16329 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16330 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16331 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16332 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16333 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16334 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16335 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16336 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16337 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16338 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16339 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16340 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16341 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16342 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16343 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16344 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16345 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16346 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16347 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16348 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16349 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16350 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16351 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16352 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16353 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16354 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16355 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16356 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16357 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16358 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16359 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16360 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16361 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16362 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16363 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16364 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16365 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16366 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16367 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16368 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16369 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16370 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16371 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16372 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16373 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16374 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16375 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16376 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16377 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16378 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16379 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16380 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16381
16382 LTCC='$LTCC'
16383 LTCFLAGS='$LTCFLAGS'
16384 compiler='$compiler_DEFAULT'
16385
16386 # A function that is used when there is no print builtin or printf.
16387 func_fallback_echo ()
16388 {
16389 eval 'cat <<_LTECHO_EOF
16390 \$1
16391 _LTECHO_EOF'
16392 }
16393
16394 # Quote evaled strings.
16395 for var in SHELL \
16396 ECHO \
16397 PATH_SEPARATOR \
16398 SED \
16399 GREP \
16400 EGREP \
16401 FGREP \
16402 LD \
16403 NM \
16404 LN_S \
16405 lt_SP2NL \
16406 lt_NL2SP \
16407 reload_flag \
16408 FILECMD \
16409 OBJDUMP \
16410 deplibs_check_method \
16411 file_magic_cmd \
16412 file_magic_glob \
16413 want_nocaseglob \
16414 DLLTOOL \
16415 sharedlib_from_linklib_cmd \
16416 AR \
16417 archiver_list_spec \
16418 STRIP \
16419 RANLIB \
16420 CC \
16421 CFLAGS \
16422 compiler \
16423 lt_cv_sys_global_symbol_pipe \
16424 lt_cv_sys_global_symbol_to_cdecl \
16425 lt_cv_sys_global_symbol_to_import \
16426 lt_cv_sys_global_symbol_to_c_name_address \
16427 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16428 lt_cv_nm_interface \
16429 nm_file_list_spec \
16430 lt_cv_truncate_bin \
16431 lt_prog_compiler_no_builtin_flag \
16432 lt_prog_compiler_pic \
16433 lt_prog_compiler_wl \
16434 lt_prog_compiler_static \
16435 lt_cv_prog_compiler_c_o \
16436 need_locks \
16437 MANIFEST_TOOL \
16438 DSYMUTIL \
16439 NMEDIT \
16440 LIPO \
16441 OTOOL \
16442 OTOOL64 \
16443 shrext_cmds \
16444 export_dynamic_flag_spec \
16445 whole_archive_flag_spec \
16446 compiler_needs_object \
16447 with_gnu_ld \
16448 allow_undefined_flag \
16449 no_undefined_flag \
16450 hardcode_libdir_flag_spec \
16451 hardcode_libdir_separator \
16452 exclude_expsyms \
16453 include_expsyms \
16454 file_list_spec \
16455 variables_saved_for_relink \
16456 libname_spec \
16457 library_names_spec \
16458 soname_spec \
16459 install_override_mode \
16460 finish_eval \
16461 old_striplib \
16462 striplib; do
16463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16464 *[\\\\\\\`\\"\\\$]*)
16465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16466 ;;
16467 *)
16468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16469 ;;
16470 esac
16471 done
16472
16473 # Double-quote double-evaled strings.
16474 for var in reload_cmds \
16475 old_postinstall_cmds \
16476 old_postuninstall_cmds \
16477 old_archive_cmds \
16478 extract_expsyms_cmds \
16479 old_archive_from_new_cmds \
16480 old_archive_from_expsyms_cmds \
16481 archive_cmds \
16482 archive_expsym_cmds \
16483 module_cmds \
16484 module_expsym_cmds \
16485 export_symbols_cmds \
16486 prelink_cmds \
16487 postlink_cmds \
16488 postinstall_cmds \
16489 postuninstall_cmds \
16490 finish_cmds \
16491 sys_lib_search_path_spec \
16492 configure_time_dlsearch_path \
16493 configure_time_lt_sys_library_path; do
16494 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16495 *[\\\\\\\`\\"\\\$]*)
16496 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16497 ;;
16498 *)
16499 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16500 ;;
16501 esac
16502 done
16503
16504 ac_aux_dir='$ac_aux_dir'
16505
16506 # See if we are running on zsh, and set the options that allow our
16507 # commands through without removal of \ escapes INIT.
16508 if test -n "\${ZSH_VERSION+set}"; then
16509 setopt NO_GLOB_SUBST
16510 fi
16511
16512
16513 PACKAGE='$PACKAGE'
16514 VERSION='$VERSION'
16515 RM='$RM'
16516 ofile='$ofile'
16517
16518
16519
16520
16521 _ACEOF
16522
16523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16524
16525 # Handling of arguments.
16526 for ac_config_target in $ac_config_targets
16527 do
16528 case $ac_config_target in
16529 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16530 "src/reader-config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/reader-config.h" ;;
16531 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16532 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16533 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16534 "pre-inst-guile") CONFIG_FILES="$CONFIG_FILES pre-inst-guile" ;;
16535 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16536 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16537 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16538 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16539 "pre-inst-guile-exec") CONFIG_COMMANDS="$CONFIG_COMMANDS pre-inst-guile-exec" ;;
16540
16541 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16542 esac
16543 done
16544
16545
16546 # If the user did not use the arguments to specify the items to instantiate,
16547 # then the envvar interface is used. Set only those that are not.
16548 # We use the long form for the default assignment because of an extremely
16549 # bizarre bug on SunOS 4.1.3.
16550 if $ac_need_defaults; then
16551 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16552 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16553 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16554 fi
16555
16556 # Have a temporary directory for convenience. Make it in the build tree
16557 # simply because there is no reason against having it here, and in addition,
16558 # creating and moving files from /tmp can sometimes cause problems.
16559 # Hook for its removal unless debugging.
16560 # Note that there is a small window in which the directory will not be cleaned:
16561 # after its creation but before its name has been assigned to `$tmp'.
16562 $debug ||
16563 {
16564 tmp= ac_tmp=
16565 trap 'exit_status=$?
16566 : "${ac_tmp:=$tmp}"
16567 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16568 ' 0
16569 trap 'as_fn_exit 1' 1 2 13 15
16570 }
16571 # Create a (secure) tmp directory for tmp files.
16572
16573 {
16574 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16575 test -d "$tmp"
16576 } ||
16577 {
16578 tmp=./conf$$-$RANDOM
16579 (umask 077 && mkdir "$tmp")
16580 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16581 ac_tmp=$tmp
16582
16583 # Set up the scripts for CONFIG_FILES section.
16584 # No need to generate them if there are no CONFIG_FILES.
16585 # This happens for instance with `./config.status config.h'.
16586 if test -n "$CONFIG_FILES"; then
16587
16588
16589 ac_cr=`echo X | tr X '\015'`
16590 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16591 # But we know of no other shell where ac_cr would be empty at this
16592 # point, so we can use a bashism as a fallback.
16593 if test "x$ac_cr" = x; then
16594 eval ac_cr=\$\'\\r\'
16595 fi
16596 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16597 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16598 ac_cs_awk_cr='\\r'
16599 else
16600 ac_cs_awk_cr=$ac_cr
16601 fi
16602
16603 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16604 _ACEOF
16605
16606
16607 {
16608 echo "cat >conf$$subs.awk <<_ACEOF" &&
16609 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16610 echo "_ACEOF"
16611 } >conf$$subs.sh ||
16612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16613 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16614 ac_delim='%!_!# '
16615 for ac_last_try in false false false false false :; do
16616 . ./conf$$subs.sh ||
16617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16618
16619 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16620 if test $ac_delim_n = $ac_delim_num; then
16621 break
16622 elif $ac_last_try; then
16623 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16624 else
16625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16626 fi
16627 done
16628 rm -f conf$$subs.sh
16629
16630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16631 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16632 _ACEOF
16633 sed -n '
16634 h
16635 s/^/S["/; s/!.*/"]=/
16636 p
16637 g
16638 s/^[^!]*!//
16639 :repl
16640 t repl
16641 s/'"$ac_delim"'$//
16642 t delim
16643 :nl
16644 h
16645 s/\(.\{148\}\)..*/\1/
16646 t more1
16647 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16648 p
16649 n
16650 b repl
16651 :more1
16652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16653 p
16654 g
16655 s/.\{148\}//
16656 t nl
16657 :delim
16658 h
16659 s/\(.\{148\}\)..*/\1/
16660 t more2
16661 s/["\\]/\\&/g; s/^/"/; s/$/"/
16662 p
16663 b
16664 :more2
16665 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16666 p
16667 g
16668 s/.\{148\}//
16669 t delim
16670 ' <conf$$subs.awk | sed '
16671 /^[^""]/{
16672 N
16673 s/\n//
16674 }
16675 ' >>$CONFIG_STATUS || ac_write_fail=1
16676 rm -f conf$$subs.awk
16677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16678 _ACAWK
16679 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16680 for (key in S) S_is_set[key] = 1
16681 FS = ""
16682
16683 }
16684 {
16685 line = $ 0
16686 nfields = split(line, field, "@")
16687 substed = 0
16688 len = length(field[1])
16689 for (i = 2; i < nfields; i++) {
16690 key = field[i]
16691 keylen = length(key)
16692 if (S_is_set[key]) {
16693 value = S[key]
16694 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16695 len += length(value) + length(field[++i])
16696 substed = 1
16697 } else
16698 len += 1 + keylen
16699 }
16700
16701 print line
16702 }
16703
16704 _ACAWK
16705 _ACEOF
16706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16708 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16709 else
16710 cat
16711 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16712 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16713 _ACEOF
16714
16715 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16716 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16717 # trailing colons and then remove the whole line if VPATH becomes empty
16718 # (actually we leave an empty line to preserve line numbers).
16719 if test "x$srcdir" = x.; then
16720 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16721 h
16722 s///
16723 s/^/:/
16724 s/[ ]*$/:/
16725 s/:\$(srcdir):/:/g
16726 s/:\${srcdir}:/:/g
16727 s/:@srcdir@:/:/g
16728 s/^:*//
16729 s/:*$//
16730 x
16731 s/\(=[ ]*\).*/\1/
16732 G
16733 s/\n//
16734 s/^[^=]*=[ ]*$//
16735 }'
16736 fi
16737
16738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16739 fi # test -n "$CONFIG_FILES"
16740
16741 # Set up the scripts for CONFIG_HEADERS section.
16742 # No need to generate them if there are no CONFIG_HEADERS.
16743 # This happens for instance with `./config.status Makefile'.
16744 if test -n "$CONFIG_HEADERS"; then
16745 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16746 BEGIN {
16747 _ACEOF
16748
16749 # Transform confdefs.h into an awk script `defines.awk', embedded as
16750 # here-document in config.status, that substitutes the proper values into
16751 # config.h.in to produce config.h.
16752
16753 # Create a delimiter string that does not exist in confdefs.h, to ease
16754 # handling of long lines.
16755 ac_delim='%!_!# '
16756 for ac_last_try in false false :; do
16757 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16758 if test -z "$ac_tt"; then
16759 break
16760 elif $ac_last_try; then
16761 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16762 else
16763 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16764 fi
16765 done
16766
16767 # For the awk script, D is an array of macro values keyed by name,
16768 # likewise P contains macro parameters if any. Preserve backslash
16769 # newline sequences.
16770
16771 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16772 sed -n '
16773 s/.\{148\}/&'"$ac_delim"'/g
16774 t rset
16775 :rset
16776 s/^[ ]*#[ ]*define[ ][ ]*/ /
16777 t def
16778 d
16779 :def
16780 s/\\$//
16781 t bsnl
16782 s/["\\]/\\&/g
16783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16784 D["\1"]=" \3"/p
16785 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16786 d
16787 :bsnl
16788 s/["\\]/\\&/g
16789 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16790 D["\1"]=" \3\\\\\\n"\\/p
16791 t cont
16792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16793 t cont
16794 d
16795 :cont
16796 n
16797 s/.\{148\}/&'"$ac_delim"'/g
16798 t clear
16799 :clear
16800 s/\\$//
16801 t bsnlc
16802 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16803 d
16804 :bsnlc
16805 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16806 b cont
16807 ' <confdefs.h | sed '
16808 s/'"$ac_delim"'/"\\\
16809 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16810
16811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16812 for (key in D) D_is_set[key] = 1
16813 FS = ""
16814 }
16815 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16816 line = \$ 0
16817 split(line, arg, " ")
16818 if (arg[1] == "#") {
16819 defundef = arg[2]
16820 mac1 = arg[3]
16821 } else {
16822 defundef = substr(arg[1], 2)
16823 mac1 = arg[2]
16824 }
16825 split(mac1, mac2, "(") #)
16826 macro = mac2[1]
16827 prefix = substr(line, 1, index(line, defundef) - 1)
16828 if (D_is_set[macro]) {
16829 # Preserve the white space surrounding the "#".
16830 print prefix "define", macro P[macro] D[macro]
16831 next
16832 } else {
16833 # Replace #undef with comments. This is necessary, for example,
16834 # in the case of _POSIX_SOURCE, which is predefined and required
16835 # on some systems where configure will not decide to define it.
16836 if (defundef == "undef") {
16837 print "/*", prefix defundef, macro, "*/"
16838 next
16839 }
16840 }
16841 }
16842 { print }
16843 _ACAWK
16844 _ACEOF
16845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16846 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16847 fi # test -n "$CONFIG_HEADERS"
16848
16849
16850 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16851 shift
16852 for ac_tag
16853 do
16854 case $ac_tag in
16855 :[FHLC]) ac_mode=$ac_tag; continue;;
16856 esac
16857 case $ac_mode$ac_tag in
16858 :[FHL]*:*);;
16859 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16860 :[FH]-) ac_tag=-:-;;
16861 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16862 esac
16863 ac_save_IFS=$IFS
16864 IFS=:
16865 set x $ac_tag
16866 IFS=$ac_save_IFS
16867 shift
16868 ac_file=$1
16869 shift
16870
16871 case $ac_mode in
16872 :L) ac_source=$1;;
16873 :[FH])
16874 ac_file_inputs=
16875 for ac_f
16876 do
16877 case $ac_f in
16878 -) ac_f="$ac_tmp/stdin";;
16879 *) # Look for the file first in the build tree, then in the source tree
16880 # (if the path is not absolute). The absolute path cannot be DOS-style,
16881 # because $ac_f cannot contain `:'.
16882 test -f "$ac_f" ||
16883 case $ac_f in
16884 [\\/$]*) false;;
16885 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16886 esac ||
16887 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16888 esac
16889 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16890 as_fn_append ac_file_inputs " '$ac_f'"
16891 done
16892
16893 # Let's still pretend it is `configure' which instantiates (i.e., don't
16894 # use $as_me), people would be surprised to read:
16895 # /* config.h. Generated by config.status. */
16896 configure_input='Generated from '`
16897 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16898 `' by configure.'
16899 if test x"$ac_file" != x-; then
16900 configure_input="$ac_file. $configure_input"
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16902 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16903 fi
16904 # Neutralize special characters interpreted by sed in replacement strings.
16905 case $configure_input in #(
16906 *\&* | *\|* | *\\* )
16907 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16908 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16909 *) ac_sed_conf_input=$configure_input;;
16910 esac
16911
16912 case $ac_tag in
16913 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16914 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16915 esac
16916 ;;
16917 esac
16918
16919 ac_dir=`$as_dirname -- "$ac_file" ||
16920 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16921 X"$ac_file" : 'X\(//\)[^/]' \| \
16922 X"$ac_file" : 'X\(//\)$' \| \
16923 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16924 printf "%s\n" X"$ac_file" |
16925 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16926 s//\1/
16927 q
16928 }
16929 /^X\(\/\/\)[^/].*/{
16930 s//\1/
16931 q
16932 }
16933 /^X\(\/\/\)$/{
16934 s//\1/
16935 q
16936 }
16937 /^X\(\/\).*/{
16938 s//\1/
16939 q
16940 }
16941 s/.*/./; q'`
16942 as_dir="$ac_dir"; as_fn_mkdir_p
16943 ac_builddir=.
16944
16945 case "$ac_dir" in
16946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16947 *)
16948 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16949 # A ".." for each directory in $ac_dir_suffix.
16950 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16951 case $ac_top_builddir_sub in
16952 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16953 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16954 esac ;;
16955 esac
16956 ac_abs_top_builddir=$ac_pwd
16957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16958 # for backward compatibility:
16959 ac_top_builddir=$ac_top_build_prefix
16960
16961 case $srcdir in
16962 .) # We are building in place.
16963 ac_srcdir=.
16964 ac_top_srcdir=$ac_top_builddir_sub
16965 ac_abs_top_srcdir=$ac_pwd ;;
16966 [\\/]* | ?:[\\/]* ) # Absolute name.
16967 ac_srcdir=$srcdir$ac_dir_suffix;
16968 ac_top_srcdir=$srcdir
16969 ac_abs_top_srcdir=$srcdir ;;
16970 *) # Relative name.
16971 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16972 ac_top_srcdir=$ac_top_build_prefix$srcdir
16973 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16974 esac
16975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16976
16977
16978 case $ac_mode in
16979 :F)
16980 #
16981 # CONFIG_FILE
16982 #
16983
16984 case $INSTALL in
16985 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16986 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16987 esac
16988 ac_MKDIR_P=$MKDIR_P
16989 case $MKDIR_P in
16990 [\\/$]* | ?:[\\/]* ) ;;
16991 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16992 esac
16993 _ACEOF
16994
16995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16996 # If the template does not know about datarootdir, expand it.
16997 # FIXME: This hack should be removed a few years after 2.60.
16998 ac_datarootdir_hack=; ac_datarootdir_seen=
16999 ac_sed_dataroot='
17000 /datarootdir/ {
17001 p
17002 q
17003 }
17004 /@datadir@/p
17005 /@docdir@/p
17006 /@infodir@/p
17007 /@localedir@/p
17008 /@mandir@/p'
17009 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17010 *datarootdir*) ac_datarootdir_seen=yes;;
17011 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17013 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17014 _ACEOF
17015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17016 ac_datarootdir_hack='
17017 s&@datadir@&$datadir&g
17018 s&@docdir@&$docdir&g
17019 s&@infodir@&$infodir&g
17020 s&@localedir@&$localedir&g
17021 s&@mandir@&$mandir&g
17022 s&\\\${datarootdir}&$datarootdir&g' ;;
17023 esac
17024 _ACEOF
17025
17026 # Neutralize VPATH when `$srcdir' = `.'.
17027 # Shell code in configure.ac might set extrasub.
17028 # FIXME: do we really want to maintain this feature?
17029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17030 ac_sed_extra="$ac_vpsub
17031 $extrasub
17032 _ACEOF
17033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17034 :t
17035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17036 s|@configure_input@|$ac_sed_conf_input|;t t
17037 s&@top_builddir@&$ac_top_builddir_sub&;t t
17038 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17039 s&@srcdir@&$ac_srcdir&;t t
17040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17041 s&@top_srcdir@&$ac_top_srcdir&;t t
17042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17043 s&@builddir@&$ac_builddir&;t t
17044 s&@abs_builddir@&$ac_abs_builddir&;t t
17045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17046 s&@INSTALL@&$ac_INSTALL&;t t
17047 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17048 $ac_datarootdir_hack
17049 "
17050 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17051 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17052
17053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17054 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17056 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17058 which seems to be undefined. Please make sure it is defined" >&5
17059 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17060 which seems to be undefined. Please make sure it is defined" >&2;}
17061
17062 rm -f "$ac_tmp/stdin"
17063 case $ac_file in
17064 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17065 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17066 esac \
17067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17068 ;;
17069 :H)
17070 #
17071 # CONFIG_HEADER
17072 #
17073 if test x"$ac_file" != x-; then
17074 {
17075 printf "%s\n" "/* $configure_input */" >&1 \
17076 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17077 } >"$ac_tmp/config.h" \
17078 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17079 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17081 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17082 else
17083 rm -f "$ac_file"
17084 mv "$ac_tmp/config.h" "$ac_file" \
17085 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17086 fi
17087 else
17088 printf "%s\n" "/* $configure_input */" >&1 \
17089 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17090 || as_fn_error $? "could not create -" "$LINENO" 5
17091 fi
17092 # Compute "$ac_file"'s index in $config_headers.
17093 _am_arg="$ac_file"
17094 _am_stamp_count=1
17095 for _am_header in $config_headers :; do
17096 case $_am_header in
17097 $_am_arg | $_am_arg:* )
17098 break ;;
17099 * )
17100 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17101 esac
17102 done
17103 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17104 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17105 X"$_am_arg" : 'X\(//\)[^/]' \| \
17106 X"$_am_arg" : 'X\(//\)$' \| \
17107 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17108 printf "%s\n" X"$_am_arg" |
17109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17110 s//\1/
17111 q
17112 }
17113 /^X\(\/\/\)[^/].*/{
17114 s//\1/
17115 q
17116 }
17117 /^X\(\/\/\)$/{
17118 s//\1/
17119 q
17120 }
17121 /^X\(\/\).*/{
17122 s//\1/
17123 q
17124 }
17125 s/.*/./; q'`/stamp-h$_am_stamp_count
17126 ;;
17127
17128 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17129 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17130 ;;
17131 esac
17132
17133
17134 case $ac_file$ac_mode in
17135 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17136 # Older Autoconf quotes --file arguments for eval, but not when files
17137 # are listed without --file. Let's play safe and only enable the eval
17138 # if we detect the quoting.
17139 # TODO: see whether this extra hack can be removed once we start
17140 # requiring Autoconf 2.70 or later.
17141 case $CONFIG_FILES in #(
17142 *\'*) :
17143 eval set x "$CONFIG_FILES" ;; #(
17144 *) :
17145 set x $CONFIG_FILES ;; #(
17146 *) :
17147 ;;
17148 esac
17149 shift
17150 # Used to flag and report bootstrapping failures.
17151 am_rc=0
17152 for am_mf
17153 do
17154 # Strip MF so we end up with the name of the file.
17155 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17156 # Check whether this is an Automake generated Makefile which includes
17157 # dependency-tracking related rules and includes.
17158 # Grep'ing the whole file directly is not great: AIX grep has a line
17159 # limit of 2048, but all sed's we know have understand at least 4000.
17160 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17161 || continue
17162 am_dirpart=`$as_dirname -- "$am_mf" ||
17163 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17164 X"$am_mf" : 'X\(//\)[^/]' \| \
17165 X"$am_mf" : 'X\(//\)$' \| \
17166 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17167 printf "%s\n" X"$am_mf" |
17168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17169 s//\1/
17170 q
17171 }
17172 /^X\(\/\/\)[^/].*/{
17173 s//\1/
17174 q
17175 }
17176 /^X\(\/\/\)$/{
17177 s//\1/
17178 q
17179 }
17180 /^X\(\/\).*/{
17181 s//\1/
17182 q
17183 }
17184 s/.*/./; q'`
17185 am_filepart=`$as_basename -- "$am_mf" ||
17186 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17187 X"$am_mf" : 'X\(//\)$' \| \
17188 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17189 printf "%s\n" X/"$am_mf" |
17190 sed '/^.*\/\([^/][^/]*\)\/*$/{
17191 s//\1/
17192 q
17193 }
17194 /^X\/\(\/\/\)$/{
17195 s//\1/
17196 q
17197 }
17198 /^X\/\(\/\).*/{
17199 s//\1/
17200 q
17201 }
17202 s/.*/./; q'`
17203 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17204 && sed -e '/# am--include-marker/d' "$am_filepart" \
17205 | $MAKE -f - am--depfiles" >&5
17206 (cd "$am_dirpart" \
17207 && sed -e '/# am--include-marker/d' "$am_filepart" \
17208 | $MAKE -f - am--depfiles) >&5 2>&5
17209 ac_status=$?
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); } || am_rc=$?
17212 done
17213 if test $am_rc -ne 0; then
17214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17215 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17216 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17217 for automatic dependency tracking. If GNU make was not used, consider
17218 re-running the configure script with MAKE=\"gmake\" (or whatever is
17219 necessary). You can also try re-running configure with the
17220 '--disable-dependency-tracking' option to at least be able to build
17221 the package (albeit without support for automatic dependency tracking).
17222 See \`config.log' for more details" "$LINENO" 5; }
17223 fi
17224 { am_dirpart=; unset am_dirpart;}
17225 { am_filepart=; unset am_filepart;}
17226 { am_mf=; unset am_mf;}
17227 { am_rc=; unset am_rc;}
17228 rm -f conftest-deps.mk
17229 }
17230 ;;
17231 "libtool":C)
17232
17233 # See if we are running on zsh, and set the options that allow our
17234 # commands through without removal of \ escapes.
17235 if test -n "${ZSH_VERSION+set}"; then
17236 setopt NO_GLOB_SUBST
17237 fi
17238
17239 cfgfile=${ofile}T
17240 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17241 $RM "$cfgfile"
17242
17243 cat <<_LT_EOF >> "$cfgfile"
17244 #! $SHELL
17245 # Generated automatically by $as_me ($PACKAGE) $VERSION
17246 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17247
17248 # Provide generalized library-building support services.
17249 # Written by Gordon Matzigkeit, 1996
17250
17251 # Copyright (C) 2014 Free Software Foundation, Inc.
17252 # This is free software; see the source for copying conditions. There is NO
17253 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17254
17255 # GNU Libtool is free software; you can redistribute it and/or modify
17256 # it under the terms of the GNU General Public License as published by
17257 # the Free Software Foundation; either version 2 of of the License, or
17258 # (at your option) any later version.
17259 #
17260 # As a special exception to the GNU General Public License, if you
17261 # distribute this file as part of a program or library that is built
17262 # using GNU Libtool, you may include this file under the same
17263 # distribution terms that you use for the rest of that program.
17264 #
17265 # GNU Libtool is distributed in the hope that it will be useful, but
17266 # WITHOUT ANY WARRANTY; without even the implied warranty of
17267 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17268 # GNU General Public License for more details.
17269 #
17270 # You should have received a copy of the GNU General Public License
17271 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17272
17273
17274 # The names of the tagged configurations supported by this script.
17275 available_tags=''
17276
17277 # Configured defaults for sys_lib_dlsearch_path munging.
17278 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17279
17280 # ### BEGIN LIBTOOL CONFIG
17281
17282 # Which release of libtool.m4 was used?
17283 macro_version=$macro_version
17284 macro_revision=$macro_revision
17285
17286 # Whether or not to build static libraries.
17287 build_old_libs=$enable_static
17288
17289 # Whether or not to build shared libraries.
17290 build_libtool_libs=$enable_shared
17291
17292 # What type of objects to build.
17293 pic_mode=$pic_mode
17294
17295 # Whether or not to optimize for fast installation.
17296 fast_install=$enable_fast_install
17297
17298 # Shared archive member basename,for filename based shared library versioning on AIX.
17299 shared_archive_member_spec=$shared_archive_member_spec
17300
17301 # Shell to use when invoking shell scripts.
17302 SHELL=$lt_SHELL
17303
17304 # An echo program that protects backslashes.
17305 ECHO=$lt_ECHO
17306
17307 # The PATH separator for the build system.
17308 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17309
17310 # The host system.
17311 host_alias=$host_alias
17312 host=$host
17313 host_os=$host_os
17314
17315 # The build system.
17316 build_alias=$build_alias
17317 build=$build
17318 build_os=$build_os
17319
17320 # A sed program that does not truncate output.
17321 SED=$lt_SED
17322
17323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17324 Xsed="\$SED -e 1s/^X//"
17325
17326 # A grep program that handles long lines.
17327 GREP=$lt_GREP
17328
17329 # An ERE matcher.
17330 EGREP=$lt_EGREP
17331
17332 # A literal string matcher.
17333 FGREP=$lt_FGREP
17334
17335 # A BSD- or MS-compatible name lister.
17336 NM=$lt_NM
17337
17338 # Whether we need soft or hard links.
17339 LN_S=$lt_LN_S
17340
17341 # What is the maximum length of a command?
17342 max_cmd_len=$max_cmd_len
17343
17344 # Object file suffix (normally "o").
17345 objext=$ac_objext
17346
17347 # Executable file suffix (normally "").
17348 exeext=$exeext
17349
17350 # whether the shell understands "unset".
17351 lt_unset=$lt_unset
17352
17353 # turn spaces into newlines.
17354 SP2NL=$lt_lt_SP2NL
17355
17356 # turn newlines into spaces.
17357 NL2SP=$lt_lt_NL2SP
17358
17359 # convert \$build file names to \$host format.
17360 to_host_file_cmd=$lt_cv_to_host_file_cmd
17361
17362 # convert \$build files to toolchain format.
17363 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17364
17365 # A file(cmd) program that detects file types.
17366 FILECMD=$lt_FILECMD
17367
17368 # An object symbol dumper.
17369 OBJDUMP=$lt_OBJDUMP
17370
17371 # Method to check whether dependent libraries are shared objects.
17372 deplibs_check_method=$lt_deplibs_check_method
17373
17374 # Command to use when deplibs_check_method = "file_magic".
17375 file_magic_cmd=$lt_file_magic_cmd
17376
17377 # How to find potential files when deplibs_check_method = "file_magic".
17378 file_magic_glob=$lt_file_magic_glob
17379
17380 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17381 want_nocaseglob=$lt_want_nocaseglob
17382
17383 # DLL creation program.
17384 DLLTOOL=$lt_DLLTOOL
17385
17386 # Command to associate shared and link libraries.
17387 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17388
17389 # The archiver.
17390 AR=$lt_AR
17391
17392 # Flags to create an archive (by configure).
17393 lt_ar_flags=$lt_ar_flags
17394
17395 # Flags to create an archive.
17396 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17397
17398 # How to feed a file listing to the archiver.
17399 archiver_list_spec=$lt_archiver_list_spec
17400
17401 # A symbol stripping program.
17402 STRIP=$lt_STRIP
17403
17404 # Commands used to install an old-style archive.
17405 RANLIB=$lt_RANLIB
17406 old_postinstall_cmds=$lt_old_postinstall_cmds
17407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17408
17409 # Whether to use a lock for old archive extraction.
17410 lock_old_archive_extraction=$lock_old_archive_extraction
17411
17412 # A C compiler.
17413 LTCC=$lt_CC
17414
17415 # LTCC compiler flags.
17416 LTCFLAGS=$lt_CFLAGS
17417
17418 # Take the output of nm and produce a listing of raw symbols and C names.
17419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17420
17421 # Transform the output of nm in a proper C declaration.
17422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17423
17424 # Transform the output of nm into a list of symbols to manually relocate.
17425 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17426
17427 # Transform the output of nm in a C name address pair.
17428 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17429
17430 # Transform the output of nm in a C name address pair when lib prefix is needed.
17431 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17432
17433 # The name lister interface.
17434 nm_interface=$lt_lt_cv_nm_interface
17435
17436 # Specify filename containing input files for \$NM.
17437 nm_file_list_spec=$lt_nm_file_list_spec
17438
17439 # The root where to search for dependent libraries,and where our libraries should be installed.
17440 lt_sysroot=$lt_sysroot
17441
17442 # Command to truncate a binary pipe.
17443 lt_truncate_bin=$lt_lt_cv_truncate_bin
17444
17445 # The name of the directory that contains temporary libtool files.
17446 objdir=$objdir
17447
17448 # Used to examine libraries when file_magic_cmd begins with "file".
17449 MAGIC_CMD=$MAGIC_CMD
17450
17451 # Must we lock files when doing compilation?
17452 need_locks=$lt_need_locks
17453
17454 # Manifest tool.
17455 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17456
17457 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17458 DSYMUTIL=$lt_DSYMUTIL
17459
17460 # Tool to change global to local symbols on Mac OS X.
17461 NMEDIT=$lt_NMEDIT
17462
17463 # Tool to manipulate fat objects and archives on Mac OS X.
17464 LIPO=$lt_LIPO
17465
17466 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17467 OTOOL=$lt_OTOOL
17468
17469 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17470 OTOOL64=$lt_OTOOL64
17471
17472 # Old archive suffix (normally "a").
17473 libext=$libext
17474
17475 # Shared library suffix (normally ".so").
17476 shrext_cmds=$lt_shrext_cmds
17477
17478 # The commands to extract the exported symbol list from a shared archive.
17479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17480
17481 # Variables whose values should be saved in libtool wrapper scripts and
17482 # restored at link time.
17483 variables_saved_for_relink=$lt_variables_saved_for_relink
17484
17485 # Do we need the "lib" prefix for modules?
17486 need_lib_prefix=$need_lib_prefix
17487
17488 # Do we need a version for libraries?
17489 need_version=$need_version
17490
17491 # Library versioning type.
17492 version_type=$version_type
17493
17494 # Shared library runtime path variable.
17495 runpath_var=$runpath_var
17496
17497 # Shared library path variable.
17498 shlibpath_var=$shlibpath_var
17499
17500 # Is shlibpath searched before the hard-coded library search path?
17501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17502
17503 # Format of library name prefix.
17504 libname_spec=$lt_libname_spec
17505
17506 # List of archive names. First name is the real one, the rest are links.
17507 # The last name is the one that the linker finds with -lNAME
17508 library_names_spec=$lt_library_names_spec
17509
17510 # The coded name of the library, if different from the real name.
17511 soname_spec=$lt_soname_spec
17512
17513 # Permission mode override for installation of shared libraries.
17514 install_override_mode=$lt_install_override_mode
17515
17516 # Command to use after installation of a shared archive.
17517 postinstall_cmds=$lt_postinstall_cmds
17518
17519 # Command to use after uninstallation of a shared archive.
17520 postuninstall_cmds=$lt_postuninstall_cmds
17521
17522 # Commands used to finish a libtool library installation in a directory.
17523 finish_cmds=$lt_finish_cmds
17524
17525 # As "finish_cmds", except a single script fragment to be evaled but
17526 # not shown.
17527 finish_eval=$lt_finish_eval
17528
17529 # Whether we should hardcode library paths into libraries.
17530 hardcode_into_libs=$hardcode_into_libs
17531
17532 # Compile-time system search path for libraries.
17533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17534
17535 # Detected run-time system search path for libraries.
17536 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17537
17538 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17539 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17540
17541 # Whether dlopen is supported.
17542 dlopen_support=$enable_dlopen
17543
17544 # Whether dlopen of programs is supported.
17545 dlopen_self=$enable_dlopen_self
17546
17547 # Whether dlopen of statically linked programs is supported.
17548 dlopen_self_static=$enable_dlopen_self_static
17549
17550 # Commands to strip libraries.
17551 old_striplib=$lt_old_striplib
17552 striplib=$lt_striplib
17553
17554
17555 # The linker used to build libraries.
17556 LD=$lt_LD
17557
17558 # How to create reloadable object files.
17559 reload_flag=$lt_reload_flag
17560 reload_cmds=$lt_reload_cmds
17561
17562 # Commands used to build an old-style archive.
17563 old_archive_cmds=$lt_old_archive_cmds
17564
17565 # A language specific compiler.
17566 CC=$lt_compiler
17567
17568 # Is the compiler the GNU compiler?
17569 with_gcc=$GCC
17570
17571 # Compiler flag to turn off builtin functions.
17572 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17573
17574 # Additional compiler flags for building library objects.
17575 pic_flag=$lt_lt_prog_compiler_pic
17576
17577 # How to pass a linker flag through the compiler.
17578 wl=$lt_lt_prog_compiler_wl
17579
17580 # Compiler flag to prevent dynamic linking.
17581 link_static_flag=$lt_lt_prog_compiler_static
17582
17583 # Does compiler simultaneously support -c and -o options?
17584 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17585
17586 # Whether or not to add -lc for building shared libraries.
17587 build_libtool_need_lc=$archive_cmds_need_lc
17588
17589 # Whether or not to disallow shared libs when runtime libs are static.
17590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17591
17592 # Compiler flag to allow reflexive dlopens.
17593 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17594
17595 # Compiler flag to generate shared objects directly from archives.
17596 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17597
17598 # Whether the compiler copes with passing no objects directly.
17599 compiler_needs_object=$lt_compiler_needs_object
17600
17601 # Create an old-style archive from a shared archive.
17602 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17603
17604 # Create a temporary old-style archive to link instead of a shared archive.
17605 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17606
17607 # Commands used to build a shared archive.
17608 archive_cmds=$lt_archive_cmds
17609 archive_expsym_cmds=$lt_archive_expsym_cmds
17610
17611 # Commands used to build a loadable module if different from building
17612 # a shared archive.
17613 module_cmds=$lt_module_cmds
17614 module_expsym_cmds=$lt_module_expsym_cmds
17615
17616 # Whether we are building with GNU ld or not.
17617 with_gnu_ld=$lt_with_gnu_ld
17618
17619 # Flag that allows shared libraries with undefined symbols to be built.
17620 allow_undefined_flag=$lt_allow_undefined_flag
17621
17622 # Flag that enforces no undefined symbols.
17623 no_undefined_flag=$lt_no_undefined_flag
17624
17625 # Flag to hardcode \$libdir into a binary during linking.
17626 # This must work even if \$libdir does not exist
17627 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17628
17629 # Whether we need a single "-rpath" flag with a separated argument.
17630 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17631
17632 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17633 # DIR into the resulting binary.
17634 hardcode_direct=$hardcode_direct
17635
17636 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17637 # DIR into the resulting binary and the resulting library dependency is
17638 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17639 # library is relocated.
17640 hardcode_direct_absolute=$hardcode_direct_absolute
17641
17642 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17643 # into the resulting binary.
17644 hardcode_minus_L=$hardcode_minus_L
17645
17646 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17647 # into the resulting binary.
17648 hardcode_shlibpath_var=$hardcode_shlibpath_var
17649
17650 # Set to "yes" if building a shared library automatically hardcodes DIR
17651 # into the library and all subsequent libraries and executables linked
17652 # against it.
17653 hardcode_automatic=$hardcode_automatic
17654
17655 # Set to yes if linker adds runtime paths of dependent libraries
17656 # to runtime path list.
17657 inherit_rpath=$inherit_rpath
17658
17659 # Whether libtool must link a program against all its dependency libraries.
17660 link_all_deplibs=$link_all_deplibs
17661
17662 # Set to "yes" if exported symbols are required.
17663 always_export_symbols=$always_export_symbols
17664
17665 # The commands to list exported symbols.
17666 export_symbols_cmds=$lt_export_symbols_cmds
17667
17668 # Symbols that should not be listed in the preloaded symbols.
17669 exclude_expsyms=$lt_exclude_expsyms
17670
17671 # Symbols that must always be exported.
17672 include_expsyms=$lt_include_expsyms
17673
17674 # Commands necessary for linking programs (against libraries) with templates.
17675 prelink_cmds=$lt_prelink_cmds
17676
17677 # Commands necessary for finishing linking programs.
17678 postlink_cmds=$lt_postlink_cmds
17679
17680 # Specify filename containing input files.
17681 file_list_spec=$lt_file_list_spec
17682
17683 # How to hardcode a shared library path into an executable.
17684 hardcode_action=$hardcode_action
17685
17686 # ### END LIBTOOL CONFIG
17687
17688 _LT_EOF
17689
17690 cat <<'_LT_EOF' >> "$cfgfile"
17691
17692 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17693
17694 # func_munge_path_list VARIABLE PATH
17695 # -----------------------------------
17696 # VARIABLE is name of variable containing _space_ separated list of
17697 # directories to be munged by the contents of PATH, which is string
17698 # having a format:
17699 # "DIR[:DIR]:"
17700 # string "DIR[ DIR]" will be prepended to VARIABLE
17701 # ":DIR[:DIR]"
17702 # string "DIR[ DIR]" will be appended to VARIABLE
17703 # "DIRP[:DIRP]::[DIRA:]DIRA"
17704 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17705 # "DIRA[ DIRA]" will be appended to VARIABLE
17706 # "DIR[:DIR]"
17707 # VARIABLE will be replaced by "DIR[ DIR]"
17708 func_munge_path_list ()
17709 {
17710 case x$2 in
17711 x)
17712 ;;
17713 *:)
17714 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17715 ;;
17716 x:*)
17717 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17718 ;;
17719 *::*)
17720 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17721 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17722 ;;
17723 *)
17724 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17725 ;;
17726 esac
17727 }
17728
17729
17730 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17731 func_cc_basename ()
17732 {
17733 for cc_temp in $*""; do
17734 case $cc_temp in
17735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17737 \-*) ;;
17738 *) break;;
17739 esac
17740 done
17741 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17742 }
17743
17744
17745 # ### END FUNCTIONS SHARED WITH CONFIGURE
17746
17747 _LT_EOF
17748
17749 case $host_os in
17750 aix3*)
17751 cat <<\_LT_EOF >> "$cfgfile"
17752 # AIX sometimes has problems with the GCC collect2 program. For some
17753 # reason, if we set the COLLECT_NAMES environment variable, the problems
17754 # vanish in a puff of smoke.
17755 if test set != "${COLLECT_NAMES+set}"; then
17756 COLLECT_NAMES=
17757 export COLLECT_NAMES
17758 fi
17759 _LT_EOF
17760 ;;
17761 esac
17762
17763
17764
17765 ltmain=$ac_aux_dir/ltmain.sh
17766
17767
17768 # We use sed instead of cat because bash on DJGPP gets confused if
17769 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17770 # text mode, it properly converts lines to CR/LF. This bash problem
17771 # is reportedly fixed, but why not run on old versions too?
17772 $SED '$q' "$ltmain" >> "$cfgfile" \
17773 || (rm -f "$cfgfile"; exit 1)
17774
17775 mv -f "$cfgfile" "$ofile" ||
17776 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17777 chmod +x "$ofile"
17778
17779 ;;
17780 "pre-inst-guile-exec":C) chmod +x pre-inst-guile ;;
17781
17782 esac
17783 done # for ac_tag
17784
17785
17786 as_fn_exit 0
17787 _ACEOF
17788 ac_clean_files=$ac_clean_files_save
17789
17790 test $ac_write_fail = 0 ||
17791 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17792
17793
17794 # configure is writing to config.log, and then calls config.status.
17795 # config.status does its own redirection, appending to config.log.
17796 # Unfortunately, on DOS this fails, as config.log is still kept open
17797 # by configure, so config.status won't be able to write to it; its
17798 # output is simply discarded. So we exec the FD to /dev/null,
17799 # effectively closing config.log, so it can be properly (re)opened and
17800 # appended to by config.status. When coming back to configure, we
17801 # need to make the FD available again.
17802 if test "$no_create" != yes; then
17803 ac_cs_success=:
17804 ac_config_status_args=
17805 test "$silent" = yes &&
17806 ac_config_status_args="$ac_config_status_args --quiet"
17807 exec 5>/dev/null
17808 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17809 exec 5>>config.log
17810 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17811 # would make configure fail if this is the last instruction.
17812 $ac_cs_success || as_fn_exit 1
17813 fi
17814 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17816 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17817 fi
17818
17819