Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Guile-Avahi 0.4.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='Guile-Avahi'
592 PACKAGE_TARNAME='guile-avahi'
593 PACKAGE_VERSION='0.4.1'
594 PACKAGE_STRING='Guile-Avahi 0.4.1'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/common.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 LIBOBJS
639 maybe_guileextensiondir
640 guileextensiondir
641 guilemoduledir
642 CROSS_COMPILING_FALSE
643 CROSS_COMPILING_TRUE
644 HAVE_AVAHI_ERR_NO_CHANGE_FALSE
645 HAVE_AVAHI_ERR_NO_CHANGE_TRUE
646 AVAHI_CPPFLAGS
647 AVAHI_LIBS
648 AVAHI_CFLAGS
649 GUILE_LDFLAGS
650 GUILE_CFLAGS
651 GUILE_EXTENSION
652 GUILE_SITE_CCACHE
653 GUILE_SITE
654 guile_snarf
655 GUILE_TOOLS
656 GUILE_CONFIG
657 GUILD
658 GUILE
659 GUILE_EFFECTIVE_VERSION
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 GCC_CFLAGS
664 CPP
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__nodep
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__include
694 DEPDIR
695 OBJEXT
696 EXEEXT
697 ac_ct_CC
698 CPPFLAGS
699 LDFLAGS
700 CFLAGS
701 CC
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 LIBTOOL
711 AM_BACKSLASH
712 AM_DEFAULT_VERBOSITY
713 AM_DEFAULT_V
714 AM_V
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL
776 am__quote'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_silent_rules
781 with_guilemoduledir
782 enable_static
783 enable_shared
784 with_pic
785 enable_fast_install
786 with_aix_soname
787 enable_dependency_tracking
788 with_gnu_ld
789 with_sysroot
790 enable_libtool_lock
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 LT_SYS_LIBRARY_PATH
801 CPP
802 PKG_CONFIG
803 PKG_CONFIG_PATH
804 PKG_CONFIG_LIBDIR
805 AVAHI_CFLAGS
806 AVAHI_LIBS'
807
808
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
830
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 # Accept the important Cygnus configure options, so we can diagnose typos.
875
876 case $ac_dashdash$ac_option in
877 --)
878 ac_dashdash=yes ;;
879
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
884
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
889
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
896
897 --config-cache | -C)
898 cache_file=config.cache ;;
899
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
904
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
911
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
920 *"
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
927
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
932
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
937
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
953
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
962
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
966
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
973
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
978
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
984
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
991
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
996
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1001
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1008
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1013
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1020
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1025
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1029
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1033
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1037
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1046
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1051
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1058
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1065
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1082
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1087
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1092
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures Guile-Avahi 0.4.1 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/guile-avahi]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1401
1402 cat <<\_ACEOF
1403
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1413 fi
1414
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of Guile-Avahi 0.4.1:";;
1418 esac
1419 cat <<\_ACEOF
1420
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-silent-rules less verbose build output (undo: "make V=1")
1426 --disable-silent-rules verbose build output (undo: "make V=0")
1427 --enable-static[=PKGS] build static libraries [default=no]
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-fast-install[=PKGS]
1430 optimize for fast installation [default=yes]
1431 --enable-dependency-tracking
1432 do not reject slow dependency extractors
1433 --disable-dependency-tracking
1434 speeds up one-time build
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 use the specified installation path for Guile modules
1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-aix-soname=aix|svr4|both
1444 shared library versioning (aka "SONAME") variant to
1445 provide on AIX, [default=aix].
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1448 compiler's sysroot if not specified).
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 LT_SYS_LIBRARY_PATH
1459 User-defined run-time library search path.
1460 CPP C preprocessor
1461 PKG_CONFIG path to pkg-config utility
1462 PKG_CONFIG_PATH
1463 directories to add to pkg-config's search path
1464 PKG_CONFIG_LIBDIR
1465 path overriding pkg-config's built-in search path
1466 AVAHI_CFLAGS
1467 C compiler flags for AVAHI, overriding pkg-config
1468 AVAHI_LIBS linker flags for AVAHI, overriding pkg-config
1469
1470 Use these variables to override the choices made by `configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <[email protected]>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1526 else
1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1528 fi || ac_status=$?
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1530 done
1531 fi
1532
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1535 cat <<\_ACEOF
1536 Guile-Avahi configure 0.4.1
1537 generated by GNU Autoconf 2.69
1538
1539 Copyright (C) 2012 Free Software Foundation, Inc.
1540 This configure script is free software; the Free Software Foundation
1541 gives unlimited permission to copy, distribute and modify it.
1542 _ACEOF
1543 exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_c_try_compile LINENO
1551 # --------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_c_try_compile ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_c_try_link LINENO
1589 # -----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_link ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext conftest$ac_exeext
1595 if { { ac_try="$ac_link"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest$ac_exeext && {
1614 test "$cross_compiling" = yes ||
1615 test -x conftest$ac_exeext
1616 }; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1625 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1626 # interfere with the next link command; also delete a directory that is
1627 # left behind by Apple's compiler. We do this before executing the actions.
1628 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1631
1632 } # ac_fn_c_try_link
1633
1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_c_check_header_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1647 /* end confdefs.h. */
1648 $4
1649 #include <$2>
1650 _ACEOF
1651 if ac_fn_c_try_compile "$LINENO"; then :
1652 eval "$3=yes"
1653 else
1654 eval "$3=no"
1655 fi
1656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662
1663 } # ac_fn_c_check_header_compile
1664
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_cpp ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } > conftest.i && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_cpp
1701
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1706 ac_fn_c_try_run ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737 fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1741
1742 } # ac_fn_c_try_run
1743
1744 # ac_fn_c_check_func LINENO FUNC VAR
1745 # ----------------------------------
1746 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1747 ac_fn_c_check_func ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751 $as_echo_n "checking for $2... " >&6; }
1752 if eval \${$3+:} false; then :
1753 $as_echo_n "(cached) " >&6
1754 else
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1759 #define $2 innocuous_$2
1760
1761 /* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char $2 (); below.
1763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1764 <limits.h> exists even on freestanding compilers. */
1765
1766 #ifdef __STDC__
1767 # include <limits.h>
1768 #else
1769 # include <assert.h>
1770 #endif
1771
1772 #undef $2
1773
1774 /* Override any GCC internal prototype to avoid an error.
1775 Use char because int might match the return type of a GCC
1776 builtin and then its argument prototype would still apply. */
1777 #ifdef __cplusplus
1778 extern "C"
1779 #endif
1780 char $2 ();
1781 /* The GNU C library defines this for functions which it implements
1782 to always fail with ENOSYS. Some functions are actually named
1783 something starting with __ and the normal name is an alias. */
1784 #if defined __stub_$2 || defined __stub___$2
1785 choke me
1786 #endif
1787
1788 int
1789 main ()
1790 {
1791 return $2 ();
1792 ;
1793 return 0;
1794 }
1795 _ACEOF
1796 if ac_fn_c_try_link "$LINENO"; then :
1797 eval "$3=yes"
1798 else
1799 eval "$3=no"
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext \
1802 conftest$ac_exeext conftest.$ac_ext
1803 fi
1804 eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809 } # ac_fn_c_check_func
1810
1811 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1814 # the include files in INCLUDES and setting the cache variable VAR
1815 # accordingly.
1816 ac_fn_c_check_header_mongrel ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if eval \${$3+:} false; then :
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 fi
1825 eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828 else
1829 # Is the header compilable?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1831 $as_echo_n "checking $2 usability... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 #include <$2>
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_header_compiler=yes
1839 else
1840 ac_header_compiler=no
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1844 $as_echo "$ac_header_compiler" >&6; }
1845
1846 # Is the header present?
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1848 $as_echo_n "checking $2 presence... " >&6; }
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_cpp "$LINENO"; then :
1854 ac_header_preproc=yes
1855 else
1856 ac_header_preproc=no
1857 fi
1858 rm -f conftest.err conftest.i conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1860 $as_echo "$ac_header_preproc" >&6; }
1861
1862 # So? What about this header?
1863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1864 yes:no: )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1866 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870 no:yes:* )
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1872 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1874 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1876 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1878 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 ( $as_echo "## ------------------------------------------ ##
1882 ## Report this to [email protected] ##
1883 ## ------------------------------------------ ##"
1884 ) | sed "s/^/$as_me: WARNING: /" >&2
1885 ;;
1886 esac
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1891 else
1892 eval "$3=\$ac_header_compiler"
1893 fi
1894 eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896 $as_echo "$ac_res" >&6; }
1897 fi
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_header_mongrel
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1904
1905 It was created by Guile-Avahi $as_me 0.4.1, which was
1906 generated by GNU Autoconf 2.69. Invocation command line was
1907
1908 $ $0 $@
1909
1910 _ACEOF
1911 exec 5>>config.log
1912 {
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1917
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935 _ASUNAME
1936
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1943 done
1944 IFS=$as_save_IFS
1945
1946 } >&5
1947
1948 cat >&5 <<_ACEOF
1949
1950
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1954
1955 _ACEOF
1956
1957
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1968 do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 esac
1979 case $ac_pass in
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981 2)
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
1998 as_fn_append ac_configure_args " '$ac_arg'"
1999 ;;
2000 esac
2001 done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2005
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019 echo
2020 # The following way of writing the cache mishandles newlines in values,
2021 (
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2024 case $ac_val in #(
2025 *${as_nl}*)
2026 case $ac_var in #(
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029 esac
2030 case $ac_var in #(
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2034 esac ;;
2035 esac
2036 done
2037 (set) 2>&1 |
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2040 sed -n \
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043 ;; #(
2044 *)
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046 ;;
2047 esac |
2048 sort
2049 )
2050 echo
2051
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055 echo
2056 for ac_var in $ac_subst_vars
2057 do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 esac
2062 $as_echo "$ac_var='\''$ac_val'\''"
2063 done | sort
2064 echo
2065
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070 echo
2071 for ac_var in $ac_subst_files
2072 do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 esac
2077 $as_echo "$ac_var='\''$ac_val'\''"
2078 done | sort
2079 echo
2080 fi
2081
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086 echo
2087 cat confdefs.h
2088 echo
2089 fi
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2093 } >&5
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096 exit $exit_status
2097 ' 0
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2102
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2105
2106 $as_echo "/* confdefs.h */" > confdefs.h
2107
2108 # Predefined preprocessor variables.
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2133
2134
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2145 esac
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2149 else
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2152 fi
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154 do
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2160 . "$ac_site_file" \
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2165 fi
2166 done
2167
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174 case $cache_file in
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2177 esac
2178 fi
2179 else
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2182 >$cache_file
2183 fi
2184
2185 # Check that the precious variables saved in the cache have kept the same
2186 # value.
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2194 set,)
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2198 ,set)
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2202 ,);;
2203 *)
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2216 fi
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2221 fi;;
2222 esac
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2225 case $ac_new_val in
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2228 esac
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2232 esac
2233 fi
2234 done
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2241 fi
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2245
2246 ac_ext=c
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2251
2252
2253 ac_aux_dir=
2254 for ac_dir in build-aux "$srcdir"/build-aux; do
2255 if test -f "$ac_dir/install-sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install-sh -c"
2258 break
2259 elif test -f "$ac_dir/install.sh"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/install.sh -c"
2262 break
2263 elif test -f "$ac_dir/shtool"; then
2264 ac_aux_dir=$ac_dir
2265 ac_install_sh="$ac_aux_dir/shtool install -c"
2266 break
2267 fi
2268 done
2269 if test -z "$ac_aux_dir"; then
2270 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2271 fi
2272
2273 # These three variables are undocumented and unsupported,
2274 # and are intended to be withdrawn in a future Autoconf release.
2275 # They can cause serious problems if a builder's source tree is in a directory
2276 # whose full name contains unusual characters.
2277 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2278 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2279 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280
2281
2282
2283
2284 am__api_version='1.16'
2285
2286 # Find a good install program. We prefer a C program (faster),
2287 # so one script is as good as another. But avoid the broken or
2288 # incompatible versions:
2289 # SysV /etc/install, /usr/sbin/install
2290 # SunOS /usr/etc/install
2291 # IRIX /sbin/install
2292 # AIX /bin/install
2293 # AmigaOS /C/install, which installs bootblocks on floppy discs
2294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2297 # OS/2's system install, which has a completely different semantic
2298 # ./install, which can be erroneously created by make from ./install.sh.
2299 # Reject install programs that cannot install multiple files.
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2301 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2302 if test -z "$INSTALL"; then
2303 if ${ac_cv_path_install+:} false; then :
2304 $as_echo_n "(cached) " >&6
2305 else
2306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309 IFS=$as_save_IFS
2310 test -z "$as_dir" && as_dir=.
2311 # Account for people who put trailing slashes in PATH elements.
2312 case $as_dir/ in #((
2313 ./ | .// | /[cC]/* | \
2314 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2315 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2316 /usr/ucb/* ) ;;
2317 *)
2318 # OSF1 and SCO ODT 3.0 have their own names for install.
2319 # Don't use installbsd from OSF since it installs stuff as root
2320 # by default.
2321 for ac_prog in ginstall scoinst install; do
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2324 if test $ac_prog = install &&
2325 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2326 # AIX install. It has an incompatible calling convention.
2327 :
2328 elif test $ac_prog = install &&
2329 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330 # program-specific install script used by HP pwplus--don't use.
2331 :
2332 else
2333 rm -rf conftest.one conftest.two conftest.dir
2334 echo one > conftest.one
2335 echo two > conftest.two
2336 mkdir conftest.dir
2337 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2338 test -s conftest.one && test -s conftest.two &&
2339 test -s conftest.dir/conftest.one &&
2340 test -s conftest.dir/conftest.two
2341 then
2342 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2343 break 3
2344 fi
2345 fi
2346 fi
2347 done
2348 done
2349 ;;
2350 esac
2351
2352 done
2353 IFS=$as_save_IFS
2354
2355 rm -rf conftest.one conftest.two conftest.dir
2356
2357 fi
2358 if test "${ac_cv_path_install+set}" = set; then
2359 INSTALL=$ac_cv_path_install
2360 else
2361 # As a last resort, use the slow shell script. Don't cache a
2362 # value for INSTALL within a source directory, because that will
2363 # break other packages using the cache if that directory is
2364 # removed, or if the value is a relative name.
2365 INSTALL=$ac_install_sh
2366 fi
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2369 $as_echo "$INSTALL" >&6; }
2370
2371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2372 # It thinks the first close brace ends the variable substitution.
2373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2374
2375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2376
2377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2378
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2380 $as_echo_n "checking whether build environment is sane... " >&6; }
2381 # Reject unsafe characters in $srcdir or the absolute working directory
2382 # name. Accept space and tab only in the latter.
2383 am_lf='
2384 '
2385 case `pwd` in
2386 *[\\\"\#\$\&\'\`$am_lf]*)
2387 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2388 esac
2389 case $srcdir in
2390 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2391 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2392 esac
2393
2394 # Do 'set' in a subshell so we don't clobber the current shell's
2395 # arguments. Must try -L first in case configure is actually a
2396 # symlink; some systems play weird games with the mod time of symlinks
2397 # (eg FreeBSD returns the mod time of the symlink's containing
2398 # directory).
2399 if (
2400 am_has_slept=no
2401 for am_try in 1 2; do
2402 echo "timestamp, slept: $am_has_slept" > conftest.file
2403 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2404 if test "$*" = "X"; then
2405 # -L didn't work.
2406 set X `ls -t "$srcdir/configure" conftest.file`
2407 fi
2408 if test "$*" != "X $srcdir/configure conftest.file" \
2409 && test "$*" != "X conftest.file $srcdir/configure"; then
2410
2411 # If neither matched, then we have a broken ls. This can happen
2412 # if, for instance, CONFIG_SHELL is bash and it inherits a
2413 # broken ls alias from the environment. This has actually
2414 # happened. Such a system could not be considered "sane".
2415 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2416 alias in your environment" "$LINENO" 5
2417 fi
2418 if test "$2" = conftest.file || test $am_try -eq 2; then
2419 break
2420 fi
2421 # Just in case.
2422 sleep 1
2423 am_has_slept=yes
2424 done
2425 test "$2" = conftest.file
2426 )
2427 then
2428 # Ok.
2429 :
2430 else
2431 as_fn_error $? "newly created file is older than distributed files!
2432 Check your system clock" "$LINENO" 5
2433 fi
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2435 $as_echo "yes" >&6; }
2436 # If we didn't sleep, we still need to ensure time stamps of config.status and
2437 # generated files are strictly newer.
2438 am_sleep_pid=
2439 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2440 ( sleep 1 ) &
2441 am_sleep_pid=$!
2442 fi
2443
2444 rm -f conftest.file
2445
2446 test "$program_prefix" != NONE &&
2447 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2448 # Use a double $ so make ignores it.
2449 test "$program_suffix" != NONE &&
2450 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2451 # Double any \ or $.
2452 # By default was `s,x,x', remove it if useless.
2453 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2454 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2455
2456 # Expand $ac_aux_dir to an absolute path.
2457 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2458
2459 if test x"${MISSING+set}" != xset; then
2460 MISSING="\${SHELL} '$am_aux_dir/missing'"
2461 fi
2462 # Use eval to expand $SHELL
2463 if eval "$MISSING --is-lightweight"; then
2464 am_missing_run="$MISSING "
2465 else
2466 am_missing_run=
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2468 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2469 fi
2470
2471 if test x"${install_sh+set}" != xset; then
2472 case $am_aux_dir in
2473 *\ * | *\ *)
2474 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2475 *)
2476 install_sh="\${SHELL} $am_aux_dir/install-sh"
2477 esac
2478 fi
2479
2480 # Installed binaries are usually stripped using 'strip' when the user
2481 # run "make install-strip". However 'strip' might not be the right
2482 # tool to use in cross-compilation environments, therefore Automake
2483 # will honor the 'STRIP' environment variable to overrule this program.
2484 if test "$cross_compiling" != no; then
2485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}strip; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if ${ac_cv_prog_STRIP+:} false; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test -n "$STRIP"; then
2494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2506 fi
2507 done
2508 done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 STRIP=$ac_cv_prog_STRIP
2514 if test -n "$STRIP"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2516 $as_echo "$STRIP" >&6; }
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2520 fi
2521
2522
2523 fi
2524 if test -z "$ac_cv_prog_STRIP"; then
2525 ac_ct_STRIP=$STRIP
2526 # Extract the first word of "strip", so it can be a program name with args.
2527 set dummy strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$ac_ct_STRIP"; then
2534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_ac_ct_STRIP="strip"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554 if test -n "$ac_ct_STRIP"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2556 $as_echo "$ac_ct_STRIP" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562 if test "x$ac_ct_STRIP" = x; then
2563 STRIP=":"
2564 else
2565 case $cross_compiling:$ac_tool_warned in
2566 yes:)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571 STRIP=$ac_ct_STRIP
2572 fi
2573 else
2574 STRIP="$ac_cv_prog_STRIP"
2575 fi
2576
2577 fi
2578 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2581 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2582 if test -z "$MKDIR_P"; then
2583 if ${ac_cv_path_mkdir+:} false; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2588 do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in mkdir gmkdir; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2594 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2595 'mkdir (GNU coreutils) '* | \
2596 'mkdir (coreutils) '* | \
2597 'mkdir (fileutils) '4.1*)
2598 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 break 3;;
2600 esac
2601 done
2602 done
2603 done
2604 IFS=$as_save_IFS
2605
2606 fi
2607
2608 test -d ./--version && rmdir ./--version
2609 if test "${ac_cv_path_mkdir+set}" = set; then
2610 MKDIR_P="$ac_cv_path_mkdir -p"
2611 else
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for MKDIR_P within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 MKDIR_P="$ac_install_sh -d"
2617 fi
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2620 $as_echo "$MKDIR_P" >&6; }
2621
2622 for ac_prog in gawk mawk nawk awk
2623 do
2624 # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 if test -n "$AWK"; then
2632 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641 ac_cv_prog_AWK="$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 break 2
2644 fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661 test -n "$AWK" && break
2662 done
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 set x ${MAKE-make}
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 cat >conftest.make <<\_ACEOF
2672 SHELL = /bin/sh
2673 all:
2674 @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 _ACEOF
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678 *@@@%%%=?*=@@@%%%*)
2679 eval ac_cv_prog_make_${ac_make}_set=yes;;
2680 *)
2681 eval ac_cv_prog_make_${ac_make}_set=no;;
2682 esac
2683 rm -f conftest.make
2684 fi
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688 SET_MAKE=
2689 else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 SET_MAKE="MAKE=${MAKE-make}"
2693 fi
2694
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2698 am__leading_dot=.
2699 else
2700 am__leading_dot=_
2701 fi
2702 rmdir .tst 2>/dev/null
2703
2704 # Check whether --enable-silent-rules was given.
2705 if test "${enable_silent_rules+set}" = set; then :
2706 enableval=$enable_silent_rules;
2707 fi
2708
2709 case $enable_silent_rules in # (((
2710 yes) AM_DEFAULT_VERBOSITY=0;;
2711 no) AM_DEFAULT_VERBOSITY=1;;
2712 *) AM_DEFAULT_VERBOSITY=1;;
2713 esac
2714 am_make=${MAKE-make}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2716 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2717 if ${am_cv_make_support_nested_variables+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if $as_echo 'TRUE=$(BAR$(V))
2721 BAR0=false
2722 BAR1=true
2723 V=1
2724 am__doit:
2725 @$(TRUE)
2726 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2727 am_cv_make_support_nested_variables=yes
2728 else
2729 am_cv_make_support_nested_variables=no
2730 fi
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2733 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2734 if test $am_cv_make_support_nested_variables = yes; then
2735 AM_V='$(V)'
2736 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2737 else
2738 AM_V=$AM_DEFAULT_VERBOSITY
2739 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2740 fi
2741 AM_BACKSLASH='\'
2742
2743 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2744 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2745 # is not polluted with repeated "-I."
2746 am__isrc=' -I$(srcdir)'
2747 # test to see if srcdir already configured
2748 if test -f $srcdir/config.status; then
2749 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2750 fi
2751 fi
2752
2753 # test whether we have cygpath
2754 if test -z "$CYGPATH_W"; then
2755 if (cygpath --version) >/dev/null 2>/dev/null; then
2756 CYGPATH_W='cygpath -w'
2757 else
2758 CYGPATH_W=echo
2759 fi
2760 fi
2761
2762
2763 # Define the identity of the package.
2764 PACKAGE='guile-avahi'
2765 VERSION='0.4.1'
2766
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE "$PACKAGE"
2770 _ACEOF
2771
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define VERSION "$VERSION"
2775 _ACEOF
2776
2777 # Some tools Automake needs.
2778
2779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2780
2781
2782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2783
2784
2785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2786
2787
2788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2789
2790
2791 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2792
2793 # For better backward compatibility. To be removed once Automake 1.9.x
2794 # dies out for good. For more background, see:
2795 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2796 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2797 mkdir_p='$(MKDIR_P)'
2798
2799 # We need awk for the "check" target (and possibly the TAP driver). The
2800 # system "awk" is bad on some platforms.
2801 # Always define AMTAR for backward compatibility. Yes, it's still used
2802 # in the wild :-( We should find a proper way to deprecate it ...
2803 AMTAR='$${TAR-tar}'
2804
2805
2806 # We'll loop over all known methods to create a tar archive until one works.
2807 _am_tools='gnutar pax cpio none'
2808
2809 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2810
2811
2812
2813
2814
2815
2816 # POSIX will say in a future version that running "rm -f" with no argument
2817 # is OK; and we want to be able to make that assumption in our Makefile
2818 # recipes. So use an aggressive probe to check that the usage we want is
2819 # actually supported "in the wild" to an acceptable degree.
2820 # See automake bug#10828.
2821 # To make any issue more visible, cause the running configure to be aborted
2822 # by default if the 'rm' program in use doesn't match our expectations; the
2823 # user can still override this though.
2824 if rm -f && rm -fr && rm -rf; then : OK; else
2825 cat >&2 <<'END'
2826 Oops!
2827
2828 Your 'rm' program seems unable to run without file operands specified
2829 on the command line, even when the '-f' option is present. This is contrary
2830 to the behaviour of most rm programs out there, and not conforming with
2831 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2832
2833 Please tell [email protected] about your system, including the value
2834 of your $PATH and any error possibly output before this message. This
2835 can help us improve future automake versions.
2836
2837 END
2838 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2839 echo 'Configuration will proceed anyway, since you have set the' >&2
2840 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2841 echo >&2
2842 else
2843 cat >&2 <<'END'
2844 Aborting the configuration process, to ensure you take notice of the issue.
2845
2846 You can download and install GNU coreutils to get an 'rm' implementation
2847 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2848
2849 If you want to complete the configuration process using your problematic
2850 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2851 to "yes", and re-run configure.
2852
2853 END
2854 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2855 fi
2856 fi
2857
2858
2859 # Check whether --enable-silent-rules was given.
2860 if test "${enable_silent_rules+set}" = set; then :
2861 enableval=$enable_silent_rules;
2862 fi
2863
2864 case $enable_silent_rules in # (((
2865 yes) AM_DEFAULT_VERBOSITY=0;;
2866 no) AM_DEFAULT_VERBOSITY=1;;
2867 *) AM_DEFAULT_VERBOSITY=0;;
2868 esac
2869 am_make=${MAKE-make}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2871 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2872 if ${am_cv_make_support_nested_variables+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 if $as_echo 'TRUE=$(BAR$(V))
2876 BAR0=false
2877 BAR1=true
2878 V=1
2879 am__doit:
2880 @$(TRUE)
2881 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2882 am_cv_make_support_nested_variables=yes
2883 else
2884 am_cv_make_support_nested_variables=no
2885 fi
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2888 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2889 if test $am_cv_make_support_nested_variables = yes; then
2890 AM_V='$(V)'
2891 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2892 else
2893 AM_V=$AM_DEFAULT_VERBOSITY
2894 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2895 fi
2896 AM_BACKSLASH='\'
2897
2898
2899
2900 ac_config_headers="$ac_config_headers src/config.h"
2901
2902
2903
2904
2905
2906
2907 # Check whether --with-guilemoduledir was given.
2908 if test "${with_guilemoduledir+set}" = set; then :
2909 withval=$with_guilemoduledir; case "x$withval" in
2910 xyes|xno) guilemoduledir="";;
2911 *) guilemoduledir="$withval";;
2912 esac
2913 else
2914 guilemoduledir=""
2915 fi
2916
2917
2918 # Libtool.
2919
2920 case `pwd` in
2921 *\ * | *\ *)
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2923 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2924 esac
2925
2926
2927
2928 macro_version='2.4.6'
2929 macro_revision='2.4.6'
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943 ltmain=$ac_aux_dir/ltmain.sh
2944
2945 # Make sure we can run config.sub.
2946 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2947 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2948
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2950 $as_echo_n "checking build system type... " >&6; }
2951 if ${ac_cv_build+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 ac_build_alias=$build_alias
2955 test "x$ac_build_alias" = x &&
2956 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2957 test "x$ac_build_alias" = x &&
2958 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2959 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2960 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2961
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2964 $as_echo "$ac_cv_build" >&6; }
2965 case $ac_cv_build in
2966 *-*-*) ;;
2967 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2968 esac
2969 build=$ac_cv_build
2970 ac_save_IFS=$IFS; IFS='-'
2971 set x $ac_cv_build
2972 shift
2973 build_cpu=$1
2974 build_vendor=$2
2975 shift; shift
2976 # Remember, the first character of IFS is used to create $*,
2977 # except with old shells:
2978 build_os=$*
2979 IFS=$ac_save_IFS
2980 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2981
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2984 $as_echo_n "checking host system type... " >&6; }
2985 if ${ac_cv_host+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test "x$host_alias" = x; then
2989 ac_cv_host=$ac_cv_build
2990 else
2991 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2992 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2993 fi
2994
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2997 $as_echo "$ac_cv_host" >&6; }
2998 case $ac_cv_host in
2999 *-*-*) ;;
3000 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3001 esac
3002 host=$ac_cv_host
3003 ac_save_IFS=$IFS; IFS='-'
3004 set x $ac_cv_host
3005 shift
3006 host_cpu=$1
3007 host_vendor=$2
3008 shift; shift
3009 # Remember, the first character of IFS is used to create $*,
3010 # except with old shells:
3011 host_os=$*
3012 IFS=$ac_save_IFS
3013 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3014
3015
3016 # Backslashify metacharacters that are still active within
3017 # double-quoted strings.
3018 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3019
3020 # Same as above, but do not quote variable references.
3021 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3022
3023 # Sed substitution to delay expansion of an escaped shell variable in a
3024 # double_quote_subst'ed string.
3025 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3026
3027 # Sed substitution to delay expansion of an escaped single quote.
3028 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3029
3030 # Sed substitution to avoid accidental globbing in evaled expressions
3031 no_glob_subst='s/\*/\\\*/g'
3032
3033 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3034 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3036
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3038 $as_echo_n "checking how to print strings... " >&6; }
3039 # Test print first, because it will be a builtin if present.
3040 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3041 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3042 ECHO='print -r --'
3043 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3044 ECHO='printf %s\n'
3045 else
3046 # Use this function as a fallback that always works.
3047 func_fallback_echo ()
3048 {
3049 eval 'cat <<_LTECHO_EOF
3050 $1
3051 _LTECHO_EOF'
3052 }
3053 ECHO='func_fallback_echo'
3054 fi
3055
3056 # func_echo_all arg...
3057 # Invoke $ECHO with all args, space-separated.
3058 func_echo_all ()
3059 {
3060 $ECHO ""
3061 }
3062
3063 case $ECHO in
3064 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3065 $as_echo "printf" >&6; } ;;
3066 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3067 $as_echo "print -r" >&6; } ;;
3068 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3069 $as_echo "cat" >&6; } ;;
3070 esac
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085 DEPDIR="${am__leading_dot}deps"
3086
3087 ac_config_commands="$ac_config_commands depfiles"
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3090 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3091 cat > confinc.mk << 'END'
3092 am__doit:
3093 @echo this is the am__doit target >confinc.out
3094 .PHONY: am__doit
3095 END
3096 am__include="#"
3097 am__quote=
3098 # BSD make does it like this.
3099 echo '.include "confinc.mk" # ignored' > confmf.BSD
3100 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3101 echo 'include confinc.mk # ignored' > confmf.GNU
3102 _am_result=no
3103 for s in GNU BSD; do
3104 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3105 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }
3109 case $?:`cat confinc.out 2>/dev/null` in #(
3110 '0:this is the am__doit target') :
3111 case $s in #(
3112 BSD) :
3113 am__include='.include' am__quote='"' ;; #(
3114 *) :
3115 am__include='include' am__quote='' ;;
3116 esac ;; #(
3117 *) :
3118 ;;
3119 esac
3120 if test "$am__include" != "#"; then
3121 _am_result="yes ($s style)"
3122 break
3123 fi
3124 done
3125 rm -f confinc.* confmf.*
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3127 $as_echo "${_am_result}" >&6; }
3128
3129 # Check whether --enable-dependency-tracking was given.
3130 if test "${enable_dependency_tracking+set}" = set; then :
3131 enableval=$enable_dependency_tracking;
3132 fi
3133
3134 if test "x$enable_dependency_tracking" != xno; then
3135 am_depcomp="$ac_aux_dir/depcomp"
3136 AMDEPBACKSLASH='\'
3137 am__nodep='_no'
3138 fi
3139 if test "x$enable_dependency_tracking" != xno; then
3140 AMDEP_TRUE=
3141 AMDEP_FALSE='#'
3142 else
3143 AMDEP_TRUE='#'
3144 AMDEP_FALSE=
3145 fi
3146
3147
3148 ac_ext=c
3149 ac_cpp='$CPP $CPPFLAGS'
3150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3153 if test -n "$ac_tool_prefix"; then
3154 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3155 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3174 fi
3175 done
3176 done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191 fi
3192 if test -z "$ac_cv_prog_CC"; then
3193 ac_ct_CC=$CC
3194 # Extract the first word of "gcc", so it can be a program name with args.
3195 set dummy gcc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_ac_ct_CC="gcc"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215 done
3216 done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224 $as_echo "$ac_ct_CC" >&6; }
3225 else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230 if test "x$ac_ct_CC" = x; then
3231 CC=""
3232 else
3233 case $cross_compiling:$ac_tool_warned in
3234 yes:)
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3237 ac_tool_warned=yes ;;
3238 esac
3239 CC=$ac_ct_CC
3240 fi
3241 else
3242 CC="$ac_cv_prog_CC"
3243 fi
3244
3245 if test -z "$CC"; then
3246 if test -n "$ac_tool_prefix"; then
3247 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3248 set dummy ${ac_tool_prefix}cc; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_CC+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$CC"; then
3255 ac_cv_prog_CC="$CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_CC="${ac_tool_prefix}cc"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi
3273 fi
3274 CC=$ac_cv_prog_CC
3275 if test -n "$CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277 $as_echo "$CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284 fi
3285 fi
3286 if test -z "$CC"; then
3287 # Extract the first word of "cc", so it can be a program name with args.
3288 set dummy cc; ac_word=$2
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if ${ac_cv_prog_CC+:} false; then :
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$CC"; then
3295 ac_cv_prog_CC="$CC" # Let the user override the test.
3296 else
3297 ac_prog_rejected=no
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3306 ac_prog_rejected=yes
3307 continue
3308 fi
3309 ac_cv_prog_CC="cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 if test $ac_prog_rejected = yes; then
3318 # We found a bogon in the path, so make sure we never use it.
3319 set dummy $ac_cv_prog_CC
3320 shift
3321 if test $# != 0; then
3322 # We chose a different compiler from the bogus one.
3323 # However, it has the same basename, so the bogon will be chosen
3324 # first if we set CC to just the basename; use the full file name.
3325 shift
3326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3327 fi
3328 fi
3329 fi
3330 fi
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3338 fi
3339
3340
3341 fi
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 for ac_prog in cl.exe
3345 do
3346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_CC+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359 IFS=$as_save_IFS
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3365 break 2
3366 fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 fi
3372 fi
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3377 else
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 fi
3381
3382
3383 test -n "$CC" && break
3384 done
3385 fi
3386 if test -z "$CC"; then
3387 ac_ct_CC=$CC
3388 for ac_prog in cl.exe
3389 do
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$ac_ct_CC"; then
3398 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_ac_ct_CC="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3410 fi
3411 done
3412 done
3413 IFS=$as_save_IFS
3414
3415 fi
3416 fi
3417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3418 if test -n "$ac_ct_CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3420 $as_echo "$ac_ct_CC" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3424 fi
3425
3426
3427 test -n "$ac_ct_CC" && break
3428 done
3429
3430 if test "x$ac_ct_CC" = x; then
3431 CC=""
3432 else
3433 case $cross_compiling:$ac_tool_warned in
3434 yes:)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3437 ac_tool_warned=yes ;;
3438 esac
3439 CC=$ac_ct_CC
3440 fi
3441 fi
3442
3443 fi
3444
3445
3446 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error $? "no acceptable C compiler found in \$PATH
3449 See \`config.log' for more details" "$LINENO" 5; }
3450
3451 # Provide some information about the compiler.
3452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3453 set X $ac_compile
3454 ac_compiler=$2
3455 for ac_option in --version -v -V -qversion; do
3456 { { ac_try="$ac_compiler $ac_option >&5"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3464 ac_status=$?
3465 if test -s conftest.err; then
3466 sed '10a\
3467 ... rest of stderr output deleted ...
3468 10q' conftest.err >conftest.er1
3469 cat conftest.er1 >&5
3470 fi
3471 rm -f conftest.er1 conftest.err
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }
3474 done
3475
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3478
3479 int
3480 main ()
3481 {
3482
3483 ;
3484 return 0;
3485 }
3486 _ACEOF
3487 ac_clean_files_save=$ac_clean_files
3488 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3489 # Try to create an executable without -o first, disregard a.out.
3490 # It will help us diagnose broken compilers, and finding out an intuition
3491 # of exeext.
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3495
3496 # The possible output files:
3497 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3498
3499 ac_rmfiles=
3500 for ac_file in $ac_files
3501 do
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3505 esac
3506 done
3507 rm -f $ac_rmfiles
3508
3509 if { { ac_try="$ac_link_default"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_link_default") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3521 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3522 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3523 # so that the user can short-circuit this test for compilers unknown to
3524 # Autoconf.
3525 for ac_file in $ac_files ''
3526 do
3527 test -f "$ac_file" || continue
3528 case $ac_file in
3529 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3530 ;;
3531 [ab].out )
3532 # We found the default executable, but exeext='' is most
3533 # certainly right.
3534 break;;
3535 *.* )
3536 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3537 then :; else
3538 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3539 fi
3540 # We set ac_cv_exeext here because the later test for it is not
3541 # safe: cross compilers may not add the suffix if given an `-o'
3542 # argument, so we may need to know it at that point already.
3543 # Even if this section looks crufty: it has the advantage of
3544 # actually working.
3545 break;;
3546 * )
3547 break;;
3548 esac
3549 done
3550 test "$ac_cv_exeext" = no && ac_cv_exeext=
3551
3552 else
3553 ac_file=''
3554 fi
3555 if test -z "$ac_file"; then :
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 $as_echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3560
3561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563 as_fn_error 77 "C compiler cannot create executables
3564 See \`config.log' for more details" "$LINENO" 5; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3567 $as_echo "yes" >&6; }
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3570 $as_echo_n "checking for C compiler default output file name... " >&6; }
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3572 $as_echo "$ac_file" >&6; }
3573 ac_exeext=$ac_cv_exeext
3574
3575 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3576 ac_clean_files=$ac_clean_files_save
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3578 $as_echo_n "checking for suffix of executables... " >&6; }
3579 if { { ac_try="$ac_link"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3591 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3592 # work properly (i.e., refer to `conftest.exe'), while it won't with
3593 # `rm'.
3594 for ac_file in conftest.exe conftest conftest.*; do
3595 test -f "$ac_file" || continue
3596 case $ac_file in
3597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3598 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 break;;
3600 * ) break;;
3601 esac
3602 done
3603 else
3604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3606 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3607 See \`config.log' for more details" "$LINENO" 5; }
3608 fi
3609 rm -f conftest conftest$ac_cv_exeext
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3611 $as_echo "$ac_cv_exeext" >&6; }
3612
3613 rm -f conftest.$ac_ext
3614 EXEEXT=$ac_cv_exeext
3615 ac_exeext=$EXEEXT
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618 #include <stdio.h>
3619 int
3620 main ()
3621 {
3622 FILE *f = fopen ("conftest.out", "w");
3623 return ferror (f) || fclose (f) != 0;
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 ac_clean_files="$ac_clean_files conftest.out"
3630 # Check that the compiler produces executables we can run. If not, either
3631 # the compiler is broken, or we cross compile.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3633 $as_echo_n "checking whether we are cross compiling... " >&6; }
3634 if test "$cross_compiling" != yes; then
3635 { { ac_try="$ac_link"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_link") 2>&5
3643 ac_status=$?
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }
3646 if { ac_try='./conftest$ac_cv_exeext'
3647 { { case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_try") 2>&5
3654 ac_status=$?
3655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656 test $ac_status = 0; }; }; then
3657 cross_compiling=no
3658 else
3659 if test "$cross_compiling" = maybe; then
3660 cross_compiling=yes
3661 else
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "cannot run C compiled programs.
3665 If you meant to cross compile, use \`--host'.
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 fi
3668 fi
3669 fi
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3671 $as_echo "$cross_compiling" >&6; }
3672
3673 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3674 ac_clean_files=$ac_clean_files_save
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3676 $as_echo_n "checking for suffix of object files... " >&6; }
3677 if ${ac_cv_objext+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main ()
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 rm -f conftest.o conftest.obj
3692 if { { ac_try="$ac_compile"
3693 case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696 esac
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_compile") 2>&5
3700 ac_status=$?
3701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3702 test $ac_status = 0; }; then :
3703 for ac_file in conftest.o conftest.obj conftest.*; do
3704 test -f "$ac_file" || continue;
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3708 break;;
3709 esac
3710 done
3711 else
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717 as_fn_error $? "cannot compute suffix of object files: cannot compile
3718 See \`config.log' for more details" "$LINENO" 5; }
3719 fi
3720 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3723 $as_echo "$ac_cv_objext" >&6; }
3724 OBJEXT=$ac_cv_objext
3725 ac_objext=$OBJEXT
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3727 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3728 if ${ac_cv_c_compiler_gnu+:} false; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3733
3734 int
3735 main ()
3736 {
3737 #ifndef __GNUC__
3738 choke me
3739 #endif
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_compiler_gnu=yes
3747 else
3748 ac_compiler_gnu=no
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3752
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3755 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3756 if test $ac_compiler_gnu = yes; then
3757 GCC=yes
3758 else
3759 GCC=
3760 fi
3761 ac_test_CFLAGS=${CFLAGS+set}
3762 ac_save_CFLAGS=$CFLAGS
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3764 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3765 if ${ac_cv_prog_cc_g+:} false; then :
3766 $as_echo_n "(cached) " >&6
3767 else
3768 ac_save_c_werror_flag=$ac_c_werror_flag
3769 ac_c_werror_flag=yes
3770 ac_cv_prog_cc_g=no
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3774
3775 int
3776 main ()
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3785 else
3786 CFLAGS=""
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799
3800 else
3801 ac_c_werror_flag=$ac_save_c_werror_flag
3802 CFLAGS="-g"
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806 int
3807 main ()
3808 {
3809
3810 ;
3811 return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_prog_cc_g=yes
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_c_werror_flag=$ac_save_c_werror_flag
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3825 $as_echo "$ac_cv_prog_cc_g" >&6; }
3826 if test "$ac_test_CFLAGS" = set; then
3827 CFLAGS=$ac_save_CFLAGS
3828 elif test $ac_cv_prog_cc_g = yes; then
3829 if test "$GCC" = yes; then
3830 CFLAGS="-g -O2"
3831 else
3832 CFLAGS="-g"
3833 fi
3834 else
3835 if test "$GCC" = yes; then
3836 CFLAGS="-O2"
3837 else
3838 CFLAGS=
3839 fi
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3842 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3843 if ${ac_cv_prog_cc_c89+:} false; then :
3844 $as_echo_n "(cached) " >&6
3845 else
3846 ac_cv_prog_cc_c89=no
3847 ac_save_CC=$CC
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3850 #include <stdarg.h>
3851 #include <stdio.h>
3852 struct stat;
3853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3854 struct buf { int x; };
3855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3856 static char *e (p, i)
3857 char **p;
3858 int i;
3859 {
3860 return p[i];
3861 }
3862 static char *f (char * (*g) (char **, int), char **p, ...)
3863 {
3864 char *s;
3865 va_list v;
3866 va_start (v,p);
3867 s = g (p, va_arg (v,int));
3868 va_end (v);
3869 return s;
3870 }
3871
3872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3873 function prototypes and stuff, but not '\xHH' hex character constants.
3874 These don't provoke an error unfortunately, instead are silently treated
3875 as 'x'. The following induces an error, until -std is added to get
3876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3877 array size at least. It's necessary to write '\x00'==0 to get something
3878 that's true only with -std. */
3879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3880
3881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3882 inside strings and character constants. */
3883 #define FOO(x) 'x'
3884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3885
3886 int test (int i, double x);
3887 struct s1 {int (*f) (int a);};
3888 struct s2 {int (*f) (double a);};
3889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3890 int argc;
3891 char **argv;
3892 int
3893 main ()
3894 {
3895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3902 do
3903 CC="$ac_save_CC $ac_arg"
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_cv_prog_cc_c89=$ac_arg
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext
3908 test "x$ac_cv_prog_cc_c89" != "xno" && break
3909 done
3910 rm -f conftest.$ac_ext
3911 CC=$ac_save_CC
3912
3913 fi
3914 # AC_CACHE_VAL
3915 case "x$ac_cv_prog_cc_c89" in
3916 x)
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3918 $as_echo "none needed" >&6; } ;;
3919 xno)
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3921 $as_echo "unsupported" >&6; } ;;
3922 *)
3923 CC="$CC $ac_cv_prog_cc_c89"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3925 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3926 esac
3927 if test "x$ac_cv_prog_cc_c89" != xno; then :
3928
3929 fi
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3943 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3944 if ${am_cv_prog_cc_c_o+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main ()
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 # Make sure it works both with $CC and with simple cc.
3959 # Following AC_PROG_CC_C_O, we do the test twice because some
3960 # compilers refuse to overwrite an existing .o file with -o,
3961 # though they will create one.
3962 am_cv_prog_cc_c_o=yes
3963 for am_i in 1 2; do
3964 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3965 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } \
3969 && test -f conftest2.$ac_objext; then
3970 : OK
3971 else
3972 am_cv_prog_cc_c_o=no
3973 break
3974 fi
3975 done
3976 rm -f core conftest*
3977 unset am_i
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3980 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3981 if test "$am_cv_prog_cc_c_o" != yes; then
3982 # Losing compiler, so override with the script.
3983 # FIXME: It is wrong to rewrite CC.
3984 # But if we don't then we get into trouble of one sort or another.
3985 # A longer-term fix would be to have automake use am__CC in this case,
3986 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3987 CC="$am_aux_dir/compile $CC"
3988 fi
3989 ac_ext=c
3990 ac_cpp='$CPP $CPPFLAGS'
3991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995
3996 depcc="$CC" am_compiler_list=
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
4007 # making a dummy file named 'D' -- because '-MD' means "put the output
4008 # in D".
4009 rm -rf conftest.dir
4010 mkdir conftest.dir
4011 # Copy depcomp to subdir because otherwise we won't find it if we're
4012 # using a relative directory.
4013 cp "$am_depcomp" conftest.dir
4014 cd conftest.dir
4015 # We will build objects and dependencies in a subdirectory because
4016 # it helps to detect inapplicable dependency modes. For instance
4017 # both Tru64's cc and ICC support -MD to output dependencies as a
4018 # side effect of compilation, but ICC will put the dependencies in
4019 # the current directory while Tru64 will put them in the object
4020 # directory.
4021 mkdir sub
4022
4023 am_cv_CC_dependencies_compiler_type=none
4024 if test "$am_compiler_list" = ""; then
4025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026 fi
4027 am__universal=false
4028 case " $depcc " in #(
4029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030 esac
4031
4032 for depmode in $am_compiler_list; do
4033 # Setup a source with many dependencies, because some compilers
4034 # like to wrap large dependency lists on column 80 (with \), and
4035 # we should not choose a depcomp mode which is confused by this.
4036 #
4037 # We need to recreate these files for each test, as the compiler may
4038 # overwrite some of them when testing with obscure command lines.
4039 # This happens at least with the AIX C compiler.
4040 : > sub/conftest.c
4041 for i in 1 2 3 4 5 6; do
4042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4044 # Solaris 10 /bin/sh.
4045 echo '/* dummy */' > sub/conftst$i.h
4046 done
4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048
4049 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4050 # mode. It turns out that the SunPro C++ compiler does not properly
4051 # handle '-M -o', and we need to detect this. Also, some Intel
4052 # versions had trouble with output in subdirs.
4053 am__obj=sub/conftest.${OBJEXT-o}
4054 am__minus_obj="-o $am__obj"
4055 case $depmode in
4056 gcc)
4057 # This depmode causes a compiler race in universal mode.
4058 test "$am__universal" = false || continue
4059 ;;
4060 nosideeffect)
4061 # After this tag, mechanisms are not by side-effect, so they'll
4062 # only be used when explicitly requested.
4063 if test "x$enable_dependency_tracking" = xyes; then
4064 continue
4065 else
4066 break
4067 fi
4068 ;;
4069 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4070 # This compiler won't grok '-c -o', but also, the minuso test has
4071 # not run yet. These depmodes are late enough in the game, and
4072 # so weak that their functioning should not be impacted.
4073 am__obj=conftest.${OBJEXT-o}
4074 am__minus_obj=
4075 ;;
4076 none) break ;;
4077 esac
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=$am__obj \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096 am_cv_CC_dependencies_compiler_type=$depmode
4097 break
4098 fi
4099 fi
4100 done
4101
4102 cd ..
4103 rm -rf conftest.dir
4104 else
4105 am_cv_CC_dependencies_compiler_type=none
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
4113 if
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116 am__fastdepCC_TRUE=
4117 am__fastdepCC_FALSE='#'
4118 else
4119 am__fastdepCC_TRUE='#'
4120 am__fastdepCC_FALSE=
4121 fi
4122
4123
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4126 if ${ac_cv_path_SED+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4130 for ac_i in 1 2 3 4 5 6 7; do
4131 ac_script="$ac_script$as_nl$ac_script"
4132 done
4133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4134 { ac_script=; unset ac_script;}
4135 if test -z "$SED"; then
4136 ac_path_SED_found=false
4137 # Loop through the user's path and test for each of PROGNAME-LIST
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_prog in sed gsed; do
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4146 as_fn_executable_p "$ac_path_SED" || continue
4147 # Check for GNU ac_path_SED and select it if it is found.
4148 # Check for GNU $ac_path_SED
4149 case `"$ac_path_SED" --version 2>&1` in
4150 *GNU*)
4151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4152 *)
4153 ac_count=0
4154 $as_echo_n 0123456789 >"conftest.in"
4155 while :
4156 do
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 $as_echo '' >> "conftest.nl"
4161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4163 as_fn_arith $ac_count + 1 && ac_count=$as_val
4164 if test $ac_count -gt ${ac_path_SED_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_SED="$ac_path_SED"
4167 ac_path_SED_max=$ac_count
4168 fi
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4171 done
4172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4173 esac
4174
4175 $ac_path_SED_found && break 3
4176 done
4177 done
4178 done
4179 IFS=$as_save_IFS
4180 if test -z "$ac_cv_path_SED"; then
4181 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4182 fi
4183 else
4184 ac_cv_path_SED=$SED
4185 fi
4186
4187 fi
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4189 $as_echo "$ac_cv_path_SED" >&6; }
4190 SED="$ac_cv_path_SED"
4191 rm -f conftest.sed
4192
4193 test -z "$SED" && SED=sed
4194 Xsed="$SED -e 1s/^X//"
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4207 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4208 if ${ac_cv_path_GREP+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -z "$GREP"; then
4212 ac_path_GREP_found=false
4213 # Loop through the user's path and test for each of PROGNAME-LIST
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4216 do
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_prog in grep ggrep; do
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4222 as_fn_executable_p "$ac_path_GREP" || continue
4223 # Check for GNU ac_path_GREP and select it if it is found.
4224 # Check for GNU $ac_path_GREP
4225 case `"$ac_path_GREP" --version 2>&1` in
4226 *GNU*)
4227 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4228 *)
4229 ac_count=0
4230 $as_echo_n 0123456789 >"conftest.in"
4231 while :
4232 do
4233 cat "conftest.in" "conftest.in" >"conftest.tmp"
4234 mv "conftest.tmp" "conftest.in"
4235 cp "conftest.in" "conftest.nl"
4236 $as_echo 'GREP' >> "conftest.nl"
4237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4239 as_fn_arith $ac_count + 1 && ac_count=$as_val
4240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4241 # Best one so far, save it but keep looking for a better one
4242 ac_cv_path_GREP="$ac_path_GREP"
4243 ac_path_GREP_max=$ac_count
4244 fi
4245 # 10*(2^10) chars as input seems more than enough
4246 test $ac_count -gt 10 && break
4247 done
4248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4249 esac
4250
4251 $ac_path_GREP_found && break 3
4252 done
4253 done
4254 done
4255 IFS=$as_save_IFS
4256 if test -z "$ac_cv_path_GREP"; then
4257 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4258 fi
4259 else
4260 ac_cv_path_GREP=$GREP
4261 fi
4262
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4265 $as_echo "$ac_cv_path_GREP" >&6; }
4266 GREP="$ac_cv_path_GREP"
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4270 $as_echo_n "checking for egrep... " >&6; }
4271 if ${ac_cv_path_EGREP+:} false; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4275 then ac_cv_path_EGREP="$GREP -E"
4276 else
4277 if test -z "$EGREP"; then
4278 ac_path_EGREP_found=false
4279 # Loop through the user's path and test for each of PROGNAME-LIST
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4282 do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_prog in egrep; do
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4288 as_fn_executable_p "$ac_path_EGREP" || continue
4289 # Check for GNU ac_path_EGREP and select it if it is found.
4290 # Check for GNU $ac_path_EGREP
4291 case `"$ac_path_EGREP" --version 2>&1` in
4292 *GNU*)
4293 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4294 *)
4295 ac_count=0
4296 $as_echo_n 0123456789 >"conftest.in"
4297 while :
4298 do
4299 cat "conftest.in" "conftest.in" >"conftest.tmp"
4300 mv "conftest.tmp" "conftest.in"
4301 cp "conftest.in" "conftest.nl"
4302 $as_echo 'EGREP' >> "conftest.nl"
4303 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4304 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4305 as_fn_arith $ac_count + 1 && ac_count=$as_val
4306 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4307 # Best one so far, save it but keep looking for a better one
4308 ac_cv_path_EGREP="$ac_path_EGREP"
4309 ac_path_EGREP_max=$ac_count
4310 fi
4311 # 10*(2^10) chars as input seems more than enough
4312 test $ac_count -gt 10 && break
4313 done
4314 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4315 esac
4316
4317 $ac_path_EGREP_found && break 3
4318 done
4319 done
4320 done
4321 IFS=$as_save_IFS
4322 if test -z "$ac_cv_path_EGREP"; then
4323 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4324 fi
4325 else
4326 ac_cv_path_EGREP=$EGREP
4327 fi
4328
4329 fi
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4332 $as_echo "$ac_cv_path_EGREP" >&6; }
4333 EGREP="$ac_cv_path_EGREP"
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4337 $as_echo_n "checking for fgrep... " >&6; }
4338 if ${ac_cv_path_FGREP+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4342 then ac_cv_path_FGREP="$GREP -F"
4343 else
4344 if test -z "$FGREP"; then
4345 ac_path_FGREP_found=false
4346 # Loop through the user's path and test for each of PROGNAME-LIST
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_prog in fgrep; do
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4355 as_fn_executable_p "$ac_path_FGREP" || continue
4356 # Check for GNU ac_path_FGREP and select it if it is found.
4357 # Check for GNU $ac_path_FGREP
4358 case `"$ac_path_FGREP" --version 2>&1` in
4359 *GNU*)
4360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4361 *)
4362 ac_count=0
4363 $as_echo_n 0123456789 >"conftest.in"
4364 while :
4365 do
4366 cat "conftest.in" "conftest.in" >"conftest.tmp"
4367 mv "conftest.tmp" "conftest.in"
4368 cp "conftest.in" "conftest.nl"
4369 $as_echo 'FGREP' >> "conftest.nl"
4370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4372 as_fn_arith $ac_count + 1 && ac_count=$as_val
4373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4374 # Best one so far, save it but keep looking for a better one
4375 ac_cv_path_FGREP="$ac_path_FGREP"
4376 ac_path_FGREP_max=$ac_count
4377 fi
4378 # 10*(2^10) chars as input seems more than enough
4379 test $ac_count -gt 10 && break
4380 done
4381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4382 esac
4383
4384 $ac_path_FGREP_found && break 3
4385 done
4386 done
4387 done
4388 IFS=$as_save_IFS
4389 if test -z "$ac_cv_path_FGREP"; then
4390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391 fi
4392 else
4393 ac_cv_path_FGREP=$FGREP
4394 fi
4395
4396 fi
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4399 $as_echo "$ac_cv_path_FGREP" >&6; }
4400 FGREP="$ac_cv_path_FGREP"
4401
4402
4403 test -z "$GREP" && GREP=grep
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423 # Check whether --with-gnu-ld was given.
4424 if test "${with_gnu_ld+set}" = set; then :
4425 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4426 else
4427 with_gnu_ld=no
4428 fi
4429
4430 ac_prog=ld
4431 if test yes = "$GCC"; then
4432 # Check if gcc -print-prog-name=ld gives a path.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4434 $as_echo_n "checking for ld used by $CC... " >&6; }
4435 case $host in
4436 *-*-mingw*)
4437 # gcc leaves a trailing carriage return, which upsets mingw
4438 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4439 *)
4440 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4441 esac
4442 case $ac_prog in
4443 # Accept absolute paths.
4444 [\\/]* | ?:[\\/]*)
4445 re_direlt='/[^/][^/]*/\.\./'
4446 # Canonicalize the pathname of ld
4447 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4448 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4449 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4450 done
4451 test -z "$LD" && LD=$ac_prog
4452 ;;
4453 "")
4454 # If it fails, then pretend we aren't using GCC.
4455 ac_prog=ld
4456 ;;
4457 *)
4458 # If it is relative, then search for the first ld in PATH.
4459 with_gnu_ld=unknown
4460 ;;
4461 esac
4462 elif test yes = "$with_gnu_ld"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4464 $as_echo_n "checking for GNU ld... " >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4467 $as_echo_n "checking for non-GNU ld... " >&6; }
4468 fi
4469 if ${lt_cv_path_LD+:} false; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -z "$LD"; then
4473 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4474 for ac_dir in $PATH; do
4475 IFS=$lt_save_ifs
4476 test -z "$ac_dir" && ac_dir=.
4477 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4478 lt_cv_path_LD=$ac_dir/$ac_prog
4479 # Check to see if the program is GNU ld. I'd rather use --version,
4480 # but apparently some variants of GNU ld only accept -v.
4481 # Break only if it was the GNU/non-GNU ld that we prefer.
4482 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4483 *GNU* | *'with BFD'*)
4484 test no != "$with_gnu_ld" && break
4485 ;;
4486 *)
4487 test yes != "$with_gnu_ld" && break
4488 ;;
4489 esac
4490 fi
4491 done
4492 IFS=$lt_save_ifs
4493 else
4494 lt_cv_path_LD=$LD # Let the user override the test with a path.
4495 fi
4496 fi
4497
4498 LD=$lt_cv_path_LD
4499 if test -n "$LD"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4501 $as_echo "$LD" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4505 fi
4506 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4508 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4509 if ${lt_cv_prog_gnu_ld+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4513 case `$LD -v 2>&1 </dev/null` in
4514 *GNU* | *'with BFD'*)
4515 lt_cv_prog_gnu_ld=yes
4516 ;;
4517 *)
4518 lt_cv_prog_gnu_ld=no
4519 ;;
4520 esac
4521 fi
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4523 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4524 with_gnu_ld=$lt_cv_prog_gnu_ld
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4535 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4536 if ${lt_cv_path_NM+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$NM"; then
4540 # Let the user override the test.
4541 lt_cv_path_NM=$NM
4542 else
4543 lt_nm_to_check=${ac_tool_prefix}nm
4544 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4545 lt_nm_to_check="$lt_nm_to_check nm"
4546 fi
4547 for lt_tmp_nm in $lt_nm_to_check; do
4548 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4549 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4550 IFS=$lt_save_ifs
4551 test -z "$ac_dir" && ac_dir=.
4552 tmp_nm=$ac_dir/$lt_tmp_nm
4553 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4554 # Check to see if the nm accepts a BSD-compat flag.
4555 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4556 # nm: unknown option "B" ignored
4557 # Tru64's nm complains that /dev/null is an invalid object file
4558 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4559 case $build_os in
4560 mingw*) lt_bad_file=conftest.nm/nofile ;;
4561 *) lt_bad_file=/dev/null ;;
4562 esac
4563 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4564 *$lt_bad_file* | *'Invalid file or object type'*)
4565 lt_cv_path_NM="$tmp_nm -B"
4566 break 2
4567 ;;
4568 *)
4569 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4570 */dev/null*)
4571 lt_cv_path_NM="$tmp_nm -p"
4572 break 2
4573 ;;
4574 *)
4575 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4576 continue # so that we can try to find one that supports BSD flags
4577 ;;
4578 esac
4579 ;;
4580 esac
4581 fi
4582 done
4583 IFS=$lt_save_ifs
4584 done
4585 : ${lt_cv_path_NM=no}
4586 fi
4587 fi
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4589 $as_echo "$lt_cv_path_NM" >&6; }
4590 if test no != "$lt_cv_path_NM"; then
4591 NM=$lt_cv_path_NM
4592 else
4593 # Didn't find any BSD compatible name lister, look for dumpbin.
4594 if test -n "$DUMPBIN"; then :
4595 # Let the user override the test.
4596 else
4597 if test -n "$ac_tool_prefix"; then
4598 for ac_prog in dumpbin "link -dump"
4599 do
4600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4601 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if ${ac_cv_prog_DUMPBIN+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$DUMPBIN"; then
4608 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4617 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4620 fi
4621 done
4622 done
4623 IFS=$as_save_IFS
4624
4625 fi
4626 fi
4627 DUMPBIN=$ac_cv_prog_DUMPBIN
4628 if test -n "$DUMPBIN"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4630 $as_echo "$DUMPBIN" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636
4637 test -n "$DUMPBIN" && break
4638 done
4639 fi
4640 if test -z "$DUMPBIN"; then
4641 ac_ct_DUMPBIN=$DUMPBIN
4642 for ac_prog in dumpbin "link -dump"
4643 do
4644 # Extract the first word of "$ac_prog", so it can be a program name with args.
4645 set dummy $ac_prog; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$ac_ct_DUMPBIN"; then
4652 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4672 if test -n "$ac_ct_DUMPBIN"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4674 $as_echo "$ac_ct_DUMPBIN" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 test -n "$ac_ct_DUMPBIN" && break
4682 done
4683
4684 if test "x$ac_ct_DUMPBIN" = x; then
4685 DUMPBIN=":"
4686 else
4687 case $cross_compiling:$ac_tool_warned in
4688 yes:)
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691 ac_tool_warned=yes ;;
4692 esac
4693 DUMPBIN=$ac_ct_DUMPBIN
4694 fi
4695 fi
4696
4697 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4698 *COFF*)
4699 DUMPBIN="$DUMPBIN -symbols -headers"
4700 ;;
4701 *)
4702 DUMPBIN=:
4703 ;;
4704 esac
4705 fi
4706
4707 if test : != "$DUMPBIN"; then
4708 NM=$DUMPBIN
4709 fi
4710 fi
4711 test -z "$NM" && NM=nm
4712
4713
4714
4715
4716
4717
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4719 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4720 if ${lt_cv_nm_interface+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 lt_cv_nm_interface="BSD nm"
4724 echo "int some_variable = 0;" > conftest.$ac_ext
4725 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4726 (eval "$ac_compile" 2>conftest.err)
4727 cat conftest.err >&5
4728 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4729 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4730 cat conftest.err >&5
4731 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4732 cat conftest.out >&5
4733 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4734 lt_cv_nm_interface="MS dumpbin"
4735 fi
4736 rm -f conftest*
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4739 $as_echo "$lt_cv_nm_interface" >&6; }
4740
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4742 $as_echo_n "checking whether ln -s works... " >&6; }
4743 LN_S=$as_ln_s
4744 if test "$LN_S" = "ln -s"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746 $as_echo "yes" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4749 $as_echo "no, using $LN_S" >&6; }
4750 fi
4751
4752 # find the maximum length of command line arguments
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4754 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4755 if ${lt_cv_sys_max_cmd_len+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 i=0
4759 teststring=ABCD
4760
4761 case $build_os in
4762 msdosdjgpp*)
4763 # On DJGPP, this test can blow up pretty badly due to problems in libc
4764 # (any single argument exceeding 2000 bytes causes a buffer overrun
4765 # during glob expansion). Even if it were fixed, the result of this
4766 # check would be larger than it should be.
4767 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4768 ;;
4769
4770 gnu*)
4771 # Under GNU Hurd, this test is not required because there is
4772 # no limit to the length of command line arguments.
4773 # Libtool will interpret -1 as no limit whatsoever
4774 lt_cv_sys_max_cmd_len=-1;
4775 ;;
4776
4777 cygwin* | mingw* | cegcc*)
4778 # On Win9x/ME, this test blows up -- it succeeds, but takes
4779 # about 5 minutes as the teststring grows exponentially.
4780 # Worse, since 9x/ME are not pre-emptively multitasking,
4781 # you end up with a "frozen" computer, even though with patience
4782 # the test eventually succeeds (with a max line length of 256k).
4783 # Instead, let's just punt: use the minimum linelength reported by
4784 # all of the supported platforms: 8192 (on NT/2K/XP).
4785 lt_cv_sys_max_cmd_len=8192;
4786 ;;
4787
4788 mint*)
4789 # On MiNT this can take a long time and run out of memory.
4790 lt_cv_sys_max_cmd_len=8192;
4791 ;;
4792
4793 amigaos*)
4794 # On AmigaOS with pdksh, this test takes hours, literally.
4795 # So we just punt and use a minimum line length of 8192.
4796 lt_cv_sys_max_cmd_len=8192;
4797 ;;
4798
4799 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4800 # This has been around since 386BSD, at least. Likely further.
4801 if test -x /sbin/sysctl; then
4802 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4803 elif test -x /usr/sbin/sysctl; then
4804 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4805 else
4806 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4807 fi
4808 # And add a safety zone
4809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4811 ;;
4812
4813 interix*)
4814 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4815 lt_cv_sys_max_cmd_len=196608
4816 ;;
4817
4818 os2*)
4819 # The test takes a long time on OS/2.
4820 lt_cv_sys_max_cmd_len=8192
4821 ;;
4822
4823 osf*)
4824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4826 # nice to cause kernel panics so lets avoid the loop below.
4827 # First set a reasonable default.
4828 lt_cv_sys_max_cmd_len=16384
4829 #
4830 if test -x /sbin/sysconfig; then
4831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4832 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4833 esac
4834 fi
4835 ;;
4836 sco3.2v5*)
4837 lt_cv_sys_max_cmd_len=102400
4838 ;;
4839 sysv5* | sco5v6* | sysv4.2uw2*)
4840 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4841 if test -n "$kargmax"; then
4842 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4843 else
4844 lt_cv_sys_max_cmd_len=32768
4845 fi
4846 ;;
4847 *)
4848 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4849 if test -n "$lt_cv_sys_max_cmd_len" && \
4850 test undefined != "$lt_cv_sys_max_cmd_len"; then
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4853 else
4854 # Make teststring a little bigger before we do anything with it.
4855 # a 1K string should be a reasonable start.
4856 for i in 1 2 3 4 5 6 7 8; do
4857 teststring=$teststring$teststring
4858 done
4859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4860 # If test is not a shell built-in, we'll probably end up computing a
4861 # maximum length that is only half of the actual maximum length, but
4862 # we can't tell.
4863 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4864 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4865 test 17 != "$i" # 1/2 MB should be enough
4866 do
4867 i=`expr $i + 1`
4868 teststring=$teststring$teststring
4869 done
4870 # Only check the string length outside the loop.
4871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4872 teststring=
4873 # Add a significant safety factor because C++ compilers can tack on
4874 # massive amounts of additional arguments before passing them to the
4875 # linker. It appears as though 1/2 is a usable value.
4876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4877 fi
4878 ;;
4879 esac
4880
4881 fi
4882
4883 if test -n "$lt_cv_sys_max_cmd_len"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4888 $as_echo "none" >&6; }
4889 fi
4890 max_cmd_len=$lt_cv_sys_max_cmd_len
4891
4892
4893
4894
4895
4896
4897 : ${CP="cp -f"}
4898 : ${MV="mv -f"}
4899 : ${RM="rm -f"}
4900
4901 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4902 lt_unset=unset
4903 else
4904 lt_unset=false
4905 fi
4906
4907
4908
4909
4910
4911 # test EBCDIC or ASCII
4912 case `echo X|tr X '\101'` in
4913 A) # ASCII based system
4914 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4915 lt_SP2NL='tr \040 \012'
4916 lt_NL2SP='tr \015\012 \040\040'
4917 ;;
4918 *) # EBCDIC based system
4919 lt_SP2NL='tr \100 \n'
4920 lt_NL2SP='tr \r\n \100\100'
4921 ;;
4922 esac
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4933 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4934 if ${lt_cv_to_host_file_cmd+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 case $host in
4938 *-*-mingw* )
4939 case $build in
4940 *-*-mingw* ) # actually msys
4941 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4942 ;;
4943 *-*-cygwin* )
4944 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4945 ;;
4946 * ) # otherwise, assume *nix
4947 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4948 ;;
4949 esac
4950 ;;
4951 *-*-cygwin* )
4952 case $build in
4953 *-*-mingw* ) # actually msys
4954 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4955 ;;
4956 *-*-cygwin* )
4957 lt_cv_to_host_file_cmd=func_convert_file_noop
4958 ;;
4959 * ) # otherwise, assume *nix
4960 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4961 ;;
4962 esac
4963 ;;
4964 * ) # unhandled hosts (and "normal" native builds)
4965 lt_cv_to_host_file_cmd=func_convert_file_noop
4966 ;;
4967 esac
4968
4969 fi
4970
4971 to_host_file_cmd=$lt_cv_to_host_file_cmd
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4973 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4974
4975
4976
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4980 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4981 if ${lt_cv_to_tool_file_cmd+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 #assume ordinary cross tools, or native build.
4985 lt_cv_to_tool_file_cmd=func_convert_file_noop
4986 case $host in
4987 *-*-mingw* )
4988 case $build in
4989 *-*-mingw* ) # actually msys
4990 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4991 ;;
4992 esac
4993 ;;
4994 esac
4995
4996 fi
4997
4998 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5000 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5007 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5008 if ${lt_cv_ld_reload_flag+:} false; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 lt_cv_ld_reload_flag='-r'
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5014 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5015 reload_flag=$lt_cv_ld_reload_flag
5016 case $reload_flag in
5017 "" | " "*) ;;
5018 *) reload_flag=" $reload_flag" ;;
5019 esac
5020 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5021 case $host_os in
5022 cygwin* | mingw* | pw32* | cegcc*)
5023 if test yes != "$GCC"; then
5024 reload_cmds=false
5025 fi
5026 ;;
5027 darwin*)
5028 if test yes = "$GCC"; then
5029 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5030 else
5031 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5032 fi
5033 ;;
5034 esac
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if ${ac_cv_prog_OBJDUMP+:} false; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$OBJDUMP"; then
5053 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 fi
5071 fi
5072 OBJDUMP=$ac_cv_prog_OBJDUMP
5073 if test -n "$OBJDUMP"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5075 $as_echo "$OBJDUMP" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5079 fi
5080
5081
5082 fi
5083 if test -z "$ac_cv_prog_OBJDUMP"; then
5084 ac_ct_OBJDUMP=$OBJDUMP
5085 # Extract the first word of "objdump", so it can be a program name with args.
5086 set dummy objdump; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_OBJDUMP"; then
5093 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5113 if test -n "$ac_ct_OBJDUMP"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5115 $as_echo "$ac_ct_OBJDUMP" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121 if test "x$ac_ct_OBJDUMP" = x; then
5122 OBJDUMP="false"
5123 else
5124 case $cross_compiling:$ac_tool_warned in
5125 yes:)
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5128 ac_tool_warned=yes ;;
5129 esac
5130 OBJDUMP=$ac_ct_OBJDUMP
5131 fi
5132 else
5133 OBJDUMP="$ac_cv_prog_OBJDUMP"
5134 fi
5135
5136 test -z "$OBJDUMP" && OBJDUMP=objdump
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5147 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5148 if ${lt_cv_deplibs_check_method+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 lt_cv_file_magic_cmd='$MAGIC_CMD'
5152 lt_cv_file_magic_test_file=
5153 lt_cv_deplibs_check_method='unknown'
5154 # Need to set the preceding variable on all platforms that support
5155 # interlibrary dependencies.
5156 # 'none' -- dependencies not supported.
5157 # 'unknown' -- same as none, but documents that we really don't know.
5158 # 'pass_all' -- all dependencies passed with no checks.
5159 # 'test_compile' -- check by making test program.
5160 # 'file_magic [[regex]]' -- check by looking for files in library path
5161 # that responds to the $file_magic_cmd with a given extended regex.
5162 # If you have 'file' or equivalent on your system and you're not sure
5163 # whether 'pass_all' will *always* work, you probably want this one.
5164
5165 case $host_os in
5166 aix[4-9]*)
5167 lt_cv_deplibs_check_method=pass_all
5168 ;;
5169
5170 beos*)
5171 lt_cv_deplibs_check_method=pass_all
5172 ;;
5173
5174 bsdi[45]*)
5175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5176 lt_cv_file_magic_cmd='/usr/bin/file -L'
5177 lt_cv_file_magic_test_file=/shlib/libc.so
5178 ;;
5179
5180 cygwin*)
5181 # func_win32_libid is a shell function defined in ltmain.sh
5182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5183 lt_cv_file_magic_cmd='func_win32_libid'
5184 ;;
5185
5186 mingw* | pw32*)
5187 # Base MSYS/MinGW do not provide the 'file' command needed by
5188 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5189 # unless we find 'file', for example because we are cross-compiling.
5190 if ( file / ) >/dev/null 2>&1; then
5191 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5192 lt_cv_file_magic_cmd='func_win32_libid'
5193 else
5194 # Keep this pattern in sync with the one in func_win32_libid.
5195 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5196 lt_cv_file_magic_cmd='$OBJDUMP -f'
5197 fi
5198 ;;
5199
5200 cegcc*)
5201 # use the weaker test based on 'objdump'. See mingw*.
5202 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5203 lt_cv_file_magic_cmd='$OBJDUMP -f'
5204 ;;
5205
5206 darwin* | rhapsody*)
5207 lt_cv_deplibs_check_method=pass_all
5208 ;;
5209
5210 freebsd* | dragonfly*)
5211 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5212 case $host_cpu in
5213 i*86 )
5214 # Not sure whether the presence of OpenBSD here was a mistake.
5215 # Let's accept both of them until this is cleared up.
5216 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5217 lt_cv_file_magic_cmd=/usr/bin/file
5218 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5219 ;;
5220 esac
5221 else
5222 lt_cv_deplibs_check_method=pass_all
5223 fi
5224 ;;
5225
5226 haiku*)
5227 lt_cv_deplibs_check_method=pass_all
5228 ;;
5229
5230 hpux10.20* | hpux11*)
5231 lt_cv_file_magic_cmd=/usr/bin/file
5232 case $host_cpu in
5233 ia64*)
5234 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5235 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5236 ;;
5237 hppa*64*)
5238 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]'
5239 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5240 ;;
5241 *)
5242 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5243 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5244 ;;
5245 esac
5246 ;;
5247
5248 interix[3-9]*)
5249 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5251 ;;
5252
5253 irix5* | irix6* | nonstopux*)
5254 case $LD in
5255 *-32|*"-32 ") libmagic=32-bit;;
5256 *-n32|*"-n32 ") libmagic=N32;;
5257 *-64|*"-64 ") libmagic=64-bit;;
5258 *) libmagic=never-match;;
5259 esac
5260 lt_cv_deplibs_check_method=pass_all
5261 ;;
5262
5263 # This must be glibc/ELF.
5264 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5265 lt_cv_deplibs_check_method=pass_all
5266 ;;
5267
5268 netbsd*)
5269 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5271 else
5272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5273 fi
5274 ;;
5275
5276 newos6*)
5277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5278 lt_cv_file_magic_cmd=/usr/bin/file
5279 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5280 ;;
5281
5282 *nto* | *qnx*)
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286 openbsd* | bitrig*)
5287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5289 else
5290 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5291 fi
5292 ;;
5293
5294 osf3* | osf4* | osf5*)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297
5298 rdos*)
5299 lt_cv_deplibs_check_method=pass_all
5300 ;;
5301
5302 solaris*)
5303 lt_cv_deplibs_check_method=pass_all
5304 ;;
5305
5306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309
5310 sysv4 | sysv4.3*)
5311 case $host_vendor in
5312 motorola)
5313 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]'
5314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5315 ;;
5316 ncr)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319 sequent)
5320 lt_cv_file_magic_cmd='/bin/file'
5321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5322 ;;
5323 sni)
5324 lt_cv_file_magic_cmd='/bin/file'
5325 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5326 lt_cv_file_magic_test_file=/lib/libc.so
5327 ;;
5328 siemens)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331 pc)
5332 lt_cv_deplibs_check_method=pass_all
5333 ;;
5334 esac
5335 ;;
5336
5337 tpf*)
5338 lt_cv_deplibs_check_method=pass_all
5339 ;;
5340 os2*)
5341 lt_cv_deplibs_check_method=pass_all
5342 ;;
5343 esac
5344
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5347 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5348
5349 file_magic_glob=
5350 want_nocaseglob=no
5351 if test "$build" = "$host"; then
5352 case $host_os in
5353 mingw* | pw32*)
5354 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5355 want_nocaseglob=yes
5356 else
5357 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5358 fi
5359 ;;
5360 esac
5361 fi
5362
5363 file_magic_cmd=$lt_cv_file_magic_cmd
5364 deplibs_check_method=$lt_cv_deplibs_check_method
5365 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_prog_DLLTOOL+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$DLLTOOL"; then
5397 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5409 fi
5410 done
5411 done
5412 IFS=$as_save_IFS
5413
5414 fi
5415 fi
5416 DLLTOOL=$ac_cv_prog_DLLTOOL
5417 if test -n "$DLLTOOL"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5419 $as_echo "$DLLTOOL" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 fi
5427 if test -z "$ac_cv_prog_DLLTOOL"; then
5428 ac_ct_DLLTOOL=$DLLTOOL
5429 # Extract the first word of "dlltool", so it can be a program name with args.
5430 set dummy dlltool; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$ac_ct_DLLTOOL"; then
5437 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5457 if test -n "$ac_ct_DLLTOOL"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5459 $as_echo "$ac_ct_DLLTOOL" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465 if test "x$ac_ct_DLLTOOL" = x; then
5466 DLLTOOL="false"
5467 else
5468 case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5473 esac
5474 DLLTOOL=$ac_ct_DLLTOOL
5475 fi
5476 else
5477 DLLTOOL="$ac_cv_prog_DLLTOOL"
5478 fi
5479
5480 test -z "$DLLTOOL" && DLLTOOL=dlltool
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5492 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5493 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5494 $as_echo_n "(cached) " >&6
5495 else
5496 lt_cv_sharedlib_from_linklib_cmd='unknown'
5497
5498 case $host_os in
5499 cygwin* | mingw* | pw32* | cegcc*)
5500 # two different shell functions defined in ltmain.sh;
5501 # decide which one to use based on capabilities of $DLLTOOL
5502 case `$DLLTOOL --help 2>&1` in
5503 *--identify-strict*)
5504 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5505 ;;
5506 *)
5507 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5508 ;;
5509 esac
5510 ;;
5511 *)
5512 # fallback: assume linklib IS sharedlib
5513 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5514 ;;
5515 esac
5516
5517 fi
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5519 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5520 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5521 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5522
5523
5524
5525
5526
5527
5528
5529
5530 if test -n "$ac_tool_prefix"; then
5531 for ac_prog in ar
5532 do
5533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_AR+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$AR"; then
5541 ac_cv_prog_AR="$AR" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5550 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5553 fi
5554 done
5555 done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 AR=$ac_cv_prog_AR
5561 if test -n "$AR"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5563 $as_echo "$AR" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569
5570 test -n "$AR" && break
5571 done
5572 fi
5573 if test -z "$AR"; then
5574 ac_ct_AR=$AR
5575 for ac_prog in ar
5576 do
5577 # Extract the first word of "$ac_prog", so it can be a program name with args.
5578 set dummy $ac_prog; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if test -n "$ac_ct_AR"; then
5585 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_ac_ct_AR="$ac_prog"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5597 fi
5598 done
5599 done
5600 IFS=$as_save_IFS
5601
5602 fi
5603 fi
5604 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5605 if test -n "$ac_ct_AR"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5607 $as_echo "$ac_ct_AR" >&6; }
5608 else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 test -n "$ac_ct_AR" && break
5615 done
5616
5617 if test "x$ac_ct_AR" = x; then
5618 AR="false"
5619 else
5620 case $cross_compiling:$ac_tool_warned in
5621 yes:)
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624 ac_tool_warned=yes ;;
5625 esac
5626 AR=$ac_ct_AR
5627 fi
5628 fi
5629
5630 : ${AR=ar}
5631 : ${AR_FLAGS=cru}
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5644 $as_echo_n "checking for archiver @FILE support... " >&6; }
5645 if ${lt_cv_ar_at_file+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 lt_cv_ar_at_file=no
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651
5652 int
5653 main ()
5654 {
5655
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 if ac_fn_c_try_compile "$LINENO"; then :
5661 echo conftest.$ac_objext > conftest.lst
5662 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5664 (eval $lt_ar_try) 2>&5
5665 ac_status=$?
5666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667 test $ac_status = 0; }
5668 if test 0 -eq "$ac_status"; then
5669 # Ensure the archiver fails upon bogus file names.
5670 rm -f conftest.$ac_objext libconftest.a
5671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5672 (eval $lt_ar_try) 2>&5
5673 ac_status=$?
5674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5675 test $ac_status = 0; }
5676 if test 0 -ne "$ac_status"; then
5677 lt_cv_ar_at_file=@
5678 fi
5679 fi
5680 rm -f conftest.* libconftest.a
5681
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5687 $as_echo "$lt_cv_ar_at_file" >&6; }
5688
5689 if test no = "$lt_cv_ar_at_file"; then
5690 archiver_list_spec=
5691 else
5692 archiver_list_spec=$lt_cv_ar_at_file
5693 fi
5694
5695
5696
5697
5698
5699
5700
5701 if test -n "$ac_tool_prefix"; then
5702 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}strip; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_STRIP+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$STRIP"; then
5710 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 STRIP=$ac_cv_prog_STRIP
5730 if test -n "$STRIP"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5732 $as_echo "$STRIP" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738
5739 fi
5740 if test -z "$ac_cv_prog_STRIP"; then
5741 ac_ct_STRIP=$STRIP
5742 # Extract the first word of "strip", so it can be a program name with args.
5743 set dummy strip; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 if test -n "$ac_ct_STRIP"; then
5750 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5754 do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_ac_ct_STRIP="strip"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763 done
5764 done
5765 IFS=$as_save_IFS
5766
5767 fi
5768 fi
5769 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5770 if test -n "$ac_ct_STRIP"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5772 $as_echo "$ac_ct_STRIP" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5776 fi
5777
5778 if test "x$ac_ct_STRIP" = x; then
5779 STRIP=":"
5780 else
5781 case $cross_compiling:$ac_tool_warned in
5782 yes:)
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5785 ac_tool_warned=yes ;;
5786 esac
5787 STRIP=$ac_ct_STRIP
5788 fi
5789 else
5790 STRIP="$ac_cv_prog_STRIP"
5791 fi
5792
5793 test -z "$STRIP" && STRIP=:
5794
5795
5796
5797
5798
5799
5800 if test -n "$ac_tool_prefix"; then
5801 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5802 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_RANLIB+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$RANLIB"; then
5809 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 RANLIB=$ac_cv_prog_RANLIB
5829 if test -n "$RANLIB"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5831 $as_echo "$RANLIB" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838 fi
5839 if test -z "$ac_cv_prog_RANLIB"; then
5840 ac_ct_RANLIB=$RANLIB
5841 # Extract the first word of "ranlib", so it can be a program name with args.
5842 set dummy ranlib; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test -n "$ac_ct_RANLIB"; then
5849 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854 IFS=$as_save_IFS
5855 test -z "$as_dir" && as_dir=.
5856 for ac_exec_ext in '' $ac_executable_extensions; do
5857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858 ac_cv_prog_ac_ct_RANLIB="ranlib"
5859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 break 2
5861 fi
5862 done
5863 done
5864 IFS=$as_save_IFS
5865
5866 fi
5867 fi
5868 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5869 if test -n "$ac_ct_RANLIB"; then
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5871 $as_echo "$ac_ct_RANLIB" >&6; }
5872 else
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874 $as_echo "no" >&6; }
5875 fi
5876
5877 if test "x$ac_ct_RANLIB" = x; then
5878 RANLIB=":"
5879 else
5880 case $cross_compiling:$ac_tool_warned in
5881 yes:)
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886 RANLIB=$ac_ct_RANLIB
5887 fi
5888 else
5889 RANLIB="$ac_cv_prog_RANLIB"
5890 fi
5891
5892 test -z "$RANLIB" && RANLIB=:
5893
5894
5895
5896
5897
5898
5899 # Determine commands to create old-style static archives.
5900 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5901 old_postinstall_cmds='chmod 644 $oldlib'
5902 old_postuninstall_cmds=
5903
5904 if test -n "$RANLIB"; then
5905 case $host_os in
5906 bitrig* | openbsd*)
5907 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5908 ;;
5909 *)
5910 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5911 ;;
5912 esac
5913 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5914 fi
5915
5916 case $host_os in
5917 darwin*)
5918 lock_old_archive_extraction=yes ;;
5919 *)
5920 lock_old_archive_extraction=no ;;
5921 esac
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 # If no C compiler was specified, use CC.
5962 LTCC=${LTCC-"$CC"}
5963
5964 # If no C compiler flags were specified, use CFLAGS.
5965 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5966
5967 # Allow CC to be a program name with arguments.
5968 compiler=$CC
5969
5970
5971 # Check for command to grab the raw symbol name followed by C symbol from nm.
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5973 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5974 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977
5978 # These are sane defaults that work on at least a few old systems.
5979 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5980
5981 # Character class describing NM global symbol codes.
5982 symcode='[BCDEGRST]'
5983
5984 # Regexp to match symbols that can be accessed directly from C.
5985 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5986
5987 # Define system-specific variables.
5988 case $host_os in
5989 aix*)
5990 symcode='[BCDT]'
5991 ;;
5992 cygwin* | mingw* | pw32* | cegcc*)
5993 symcode='[ABCDGISTW]'
5994 ;;
5995 hpux*)
5996 if test ia64 = "$host_cpu"; then
5997 symcode='[ABCDEGRST]'
5998 fi
5999 ;;
6000 irix* | nonstopux*)
6001 symcode='[BCDEGRST]'
6002 ;;
6003 osf*)
6004 symcode='[BCDEGQRST]'
6005 ;;
6006 solaris*)
6007 symcode='[BDRT]'
6008 ;;
6009 sco3.2v5*)
6010 symcode='[DT]'
6011 ;;
6012 sysv4.2uw2*)
6013 symcode='[DT]'
6014 ;;
6015 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6016 symcode='[ABDT]'
6017 ;;
6018 sysv4)
6019 symcode='[DFNSTU]'
6020 ;;
6021 esac
6022
6023 # If we're using GNU nm, then use its standard symbol codes.
6024 case `$NM -V 2>&1` in
6025 *GNU* | *'with BFD'*)
6026 symcode='[ABCDGIRSTW]' ;;
6027 esac
6028
6029 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6030 # Gets list of data symbols to import.
6031 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6032 # Adjust the below global symbol transforms to fixup imported variables.
6033 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6034 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6035 lt_c_name_lib_hook="\
6036 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6037 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6038 else
6039 # Disable hooks by default.
6040 lt_cv_sys_global_symbol_to_import=
6041 lt_cdecl_hook=
6042 lt_c_name_hook=
6043 lt_c_name_lib_hook=
6044 fi
6045
6046 # Transform an extracted symbol line into a proper C declaration.
6047 # Some systems (esp. on ia64) link data and code symbols differently,
6048 # so use this general approach.
6049 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6050 $lt_cdecl_hook\
6051 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6052 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6053
6054 # Transform an extracted symbol line into symbol name and symbol address
6055 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6056 $lt_c_name_hook\
6057 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6058 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6059
6060 # Transform an extracted symbol line into symbol name with lib prefix and
6061 # symbol address.
6062 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6063 $lt_c_name_lib_hook\
6064 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6065 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6066 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6067
6068 # Handle CRLF in mingw tool chain
6069 opt_cr=
6070 case $build_os in
6071 mingw*)
6072 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6073 ;;
6074 esac
6075
6076 # Try without a prefix underscore, then with it.
6077 for ac_symprfx in "" "_"; do
6078
6079 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6080 symxfrm="\\1 $ac_symprfx\\2 \\2"
6081
6082 # Write the raw and C identifiers.
6083 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6084 # Fake it for dumpbin and say T for any non-static function,
6085 # D for any global variable and I for any imported variable.
6086 # Also find C++ and __fastcall symbols from MSVC++,
6087 # which start with @ or ?.
6088 lt_cv_sys_global_symbol_pipe="$AWK '"\
6089 " {last_section=section; section=\$ 3};"\
6090 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6091 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6092 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6093 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6094 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6095 " \$ 0!~/External *\|/{next};"\
6096 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6097 " {if(hide[section]) next};"\
6098 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6099 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6100 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6101 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6102 " ' prfx=^$ac_symprfx"
6103 else
6104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6105 fi
6106 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6107
6108 # Check to see that the pipe works correctly.
6109 pipe_works=no
6110
6111 rm -f conftest*
6112 cat > conftest.$ac_ext <<_LT_EOF
6113 #ifdef __cplusplus
6114 extern "C" {
6115 #endif
6116 char nm_test_var;
6117 void nm_test_func(void);
6118 void nm_test_func(void){}
6119 #ifdef __cplusplus
6120 }
6121 #endif
6122 int main(){nm_test_var='a';nm_test_func();return(0);}
6123 _LT_EOF
6124
6125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6126 (eval $ac_compile) 2>&5
6127 ac_status=$?
6128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6129 test $ac_status = 0; }; then
6130 # Now try to grab the symbols.
6131 nlist=conftest.nm
6132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6133 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6134 ac_status=$?
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; } && test -s "$nlist"; then
6137 # Try sorting and uniquifying the output.
6138 if sort "$nlist" | uniq > "$nlist"T; then
6139 mv -f "$nlist"T "$nlist"
6140 else
6141 rm -f "$nlist"T
6142 fi
6143
6144 # Make sure that we snagged all the symbols we need.
6145 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6146 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6147 cat <<_LT_EOF > conftest.$ac_ext
6148 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6149 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6150 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6151 relocations are performed -- see ld's documentation on pseudo-relocs. */
6152 # define LT_DLSYM_CONST
6153 #elif defined __osf__
6154 /* This system does not cope well with relocations in const data. */
6155 # define LT_DLSYM_CONST
6156 #else
6157 # define LT_DLSYM_CONST const
6158 #endif
6159
6160 #ifdef __cplusplus
6161 extern "C" {
6162 #endif
6163
6164 _LT_EOF
6165 # Now generate the symbol file.
6166 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6167
6168 cat <<_LT_EOF >> conftest.$ac_ext
6169
6170 /* The mapping between symbol names and symbols. */
6171 LT_DLSYM_CONST struct {
6172 const char *name;
6173 void *address;
6174 }
6175 lt__PROGRAM__LTX_preloaded_symbols[] =
6176 {
6177 { "@PROGRAM@", (void *) 0 },
6178 _LT_EOF
6179 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6180 cat <<\_LT_EOF >> conftest.$ac_ext
6181 {0, (void *) 0}
6182 };
6183
6184 /* This works around a problem in FreeBSD linker */
6185 #ifdef FREEBSD_WORKAROUND
6186 static const void *lt_preloaded_setup() {
6187 return lt__PROGRAM__LTX_preloaded_symbols;
6188 }
6189 #endif
6190
6191 #ifdef __cplusplus
6192 }
6193 #endif
6194 _LT_EOF
6195 # Now try linking the two files.
6196 mv conftest.$ac_objext conftstm.$ac_objext
6197 lt_globsym_save_LIBS=$LIBS
6198 lt_globsym_save_CFLAGS=$CFLAGS
6199 LIBS=conftstm.$ac_objext
6200 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6202 (eval $ac_link) 2>&5
6203 ac_status=$?
6204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6206 pipe_works=yes
6207 fi
6208 LIBS=$lt_globsym_save_LIBS
6209 CFLAGS=$lt_globsym_save_CFLAGS
6210 else
6211 echo "cannot find nm_test_func in $nlist" >&5
6212 fi
6213 else
6214 echo "cannot find nm_test_var in $nlist" >&5
6215 fi
6216 else
6217 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6218 fi
6219 else
6220 echo "$progname: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6222 fi
6223 rm -rf conftest* conftst*
6224
6225 # Do not use the global_symbol_pipe unless it works.
6226 if test yes = "$pipe_works"; then
6227 break
6228 else
6229 lt_cv_sys_global_symbol_pipe=
6230 fi
6231 done
6232
6233 fi
6234
6235 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6236 lt_cv_sys_global_symbol_to_cdecl=
6237 fi
6238 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6240 $as_echo "failed" >&6; }
6241 else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6243 $as_echo "ok" >&6; }
6244 fi
6245
6246 # Response file support.
6247 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6248 nm_file_list_spec='@'
6249 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6250 nm_file_list_spec='@'
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6290 $as_echo_n "checking for sysroot... " >&6; }
6291
6292 # Check whether --with-sysroot was given.
6293 if test "${with_sysroot+set}" = set; then :
6294 withval=$with_sysroot;
6295 else
6296 with_sysroot=no
6297 fi
6298
6299
6300 lt_sysroot=
6301 case $with_sysroot in #(
6302 yes)
6303 if test yes = "$GCC"; then
6304 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6305 fi
6306 ;; #(
6307 /*)
6308 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6309 ;; #(
6310 no|'')
6311 ;; #(
6312 *)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6314 $as_echo "$with_sysroot" >&6; }
6315 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6316 ;;
6317 esac
6318
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6320 $as_echo "${lt_sysroot:-no}" >&6; }
6321
6322
6323
6324
6325
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6327 $as_echo_n "checking for a working dd... " >&6; }
6328 if ${ac_cv_path_lt_DD+:} false; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 printf 0123456789abcdef0123456789abcdef >conftest.i
6332 cat conftest.i conftest.i >conftest2.i
6333 : ${lt_DD:=$DD}
6334 if test -z "$lt_DD"; then
6335 ac_path_lt_DD_found=false
6336 # Loop through the user's path and test for each of PROGNAME-LIST
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_prog in dd; do
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6345 as_fn_executable_p "$ac_path_lt_DD" || continue
6346 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6347 cmp -s conftest.i conftest.out \
6348 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6349 fi
6350 $ac_path_lt_DD_found && break 3
6351 done
6352 done
6353 done
6354 IFS=$as_save_IFS
6355 if test -z "$ac_cv_path_lt_DD"; then
6356 :
6357 fi
6358 else
6359 ac_cv_path_lt_DD=$lt_DD
6360 fi
6361
6362 rm -f conftest.i conftest2.i conftest.out
6363 fi
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6365 $as_echo "$ac_cv_path_lt_DD" >&6; }
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6369 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6370 if ${lt_cv_truncate_bin+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 printf 0123456789abcdef0123456789abcdef >conftest.i
6374 cat conftest.i conftest.i >conftest2.i
6375 lt_cv_truncate_bin=
6376 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6377 cmp -s conftest.i conftest.out \
6378 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6379 fi
6380 rm -f conftest.i conftest2.i conftest.out
6381 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6382 fi
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6384 $as_echo "$lt_cv_truncate_bin" >&6; }
6385
6386
6387
6388
6389
6390
6391
6392 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6393 func_cc_basename ()
6394 {
6395 for cc_temp in $*""; do
6396 case $cc_temp in
6397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6399 \-*) ;;
6400 *) break;;
6401 esac
6402 done
6403 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6404 }
6405
6406 # Check whether --enable-libtool-lock was given.
6407 if test "${enable_libtool_lock+set}" = set; then :
6408 enableval=$enable_libtool_lock;
6409 fi
6410
6411 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6412
6413 # Some flags need to be propagated to the compiler or linker for good
6414 # libtool support.
6415 case $host in
6416 ia64-*-hpux*)
6417 # Find out what ABI is being produced by ac_compile, and set mode
6418 # options accordingly.
6419 echo 'int i;' > conftest.$ac_ext
6420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6421 (eval $ac_compile) 2>&5
6422 ac_status=$?
6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; then
6425 case `/usr/bin/file conftest.$ac_objext` in
6426 *ELF-32*)
6427 HPUX_IA64_MODE=32
6428 ;;
6429 *ELF-64*)
6430 HPUX_IA64_MODE=64
6431 ;;
6432 esac
6433 fi
6434 rm -rf conftest*
6435 ;;
6436 *-*-irix6*)
6437 # Find out what ABI is being produced by ac_compile, and set linker
6438 # options accordingly.
6439 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441 (eval $ac_compile) 2>&5
6442 ac_status=$?
6443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444 test $ac_status = 0; }; then
6445 if test yes = "$lt_cv_prog_gnu_ld"; then
6446 case `/usr/bin/file conftest.$ac_objext` in
6447 *32-bit*)
6448 LD="${LD-ld} -melf32bsmip"
6449 ;;
6450 *N32*)
6451 LD="${LD-ld} -melf32bmipn32"
6452 ;;
6453 *64-bit*)
6454 LD="${LD-ld} -melf64bmip"
6455 ;;
6456 esac
6457 else
6458 case `/usr/bin/file conftest.$ac_objext` in
6459 *32-bit*)
6460 LD="${LD-ld} -32"
6461 ;;
6462 *N32*)
6463 LD="${LD-ld} -n32"
6464 ;;
6465 *64-bit*)
6466 LD="${LD-ld} -64"
6467 ;;
6468 esac
6469 fi
6470 fi
6471 rm -rf conftest*
6472 ;;
6473
6474 mips64*-*linux*)
6475 # Find out what ABI is being produced by ac_compile, and set linker
6476 # options accordingly.
6477 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479 (eval $ac_compile) 2>&5
6480 ac_status=$?
6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482 test $ac_status = 0; }; then
6483 emul=elf
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *32-bit*)
6486 emul="${emul}32"
6487 ;;
6488 *64-bit*)
6489 emul="${emul}64"
6490 ;;
6491 esac
6492 case `/usr/bin/file conftest.$ac_objext` in
6493 *MSB*)
6494 emul="${emul}btsmip"
6495 ;;
6496 *LSB*)
6497 emul="${emul}ltsmip"
6498 ;;
6499 esac
6500 case `/usr/bin/file conftest.$ac_objext` in
6501 *N32*)
6502 emul="${emul}n32"
6503 ;;
6504 esac
6505 LD="${LD-ld} -m $emul"
6506 fi
6507 rm -rf conftest*
6508 ;;
6509
6510 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6511 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6512 # Find out what ABI is being produced by ac_compile, and set linker
6513 # options accordingly. Note that the listed cases only cover the
6514 # situations where additional linker options are needed (such as when
6515 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6516 # vice versa); the common cases where no linker options are needed do
6517 # not appear in the list.
6518 echo 'int i;' > conftest.$ac_ext
6519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520 (eval $ac_compile) 2>&5
6521 ac_status=$?
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; then
6524 case `/usr/bin/file conftest.o` in
6525 *32-bit*)
6526 case $host in
6527 x86_64-*kfreebsd*-gnu)
6528 LD="${LD-ld} -m elf_i386_fbsd"
6529 ;;
6530 x86_64-*linux*)
6531 case `/usr/bin/file conftest.o` in
6532 *x86-64*)
6533 LD="${LD-ld} -m elf32_x86_64"
6534 ;;
6535 *)
6536 LD="${LD-ld} -m elf_i386"
6537 ;;
6538 esac
6539 ;;
6540 powerpc64le-*linux*)
6541 LD="${LD-ld} -m elf32lppclinux"
6542 ;;
6543 powerpc64-*linux*)
6544 LD="${LD-ld} -m elf32ppclinux"
6545 ;;
6546 s390x-*linux*)
6547 LD="${LD-ld} -m elf_s390"
6548 ;;
6549 sparc64-*linux*)
6550 LD="${LD-ld} -m elf32_sparc"
6551 ;;
6552 esac
6553 ;;
6554 *64-bit*)
6555 case $host in
6556 x86_64-*kfreebsd*-gnu)
6557 LD="${LD-ld} -m elf_x86_64_fbsd"
6558 ;;
6559 x86_64-*linux*)
6560 LD="${LD-ld} -m elf_x86_64"
6561 ;;
6562 powerpcle-*linux*)
6563 LD="${LD-ld} -m elf64lppc"
6564 ;;
6565 powerpc-*linux*)
6566 LD="${LD-ld} -m elf64ppc"
6567 ;;
6568 s390*-*linux*|s390*-*tpf*)
6569 LD="${LD-ld} -m elf64_s390"
6570 ;;
6571 sparc*-*linux*)
6572 LD="${LD-ld} -m elf64_sparc"
6573 ;;
6574 esac
6575 ;;
6576 esac
6577 fi
6578 rm -rf conftest*
6579 ;;
6580
6581 *-*-sco3.2v5*)
6582 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6583 SAVE_CFLAGS=$CFLAGS
6584 CFLAGS="$CFLAGS -belf"
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6586 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6587 if ${lt_cv_cc_needs_belf+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598
6599 int
6600 main ()
6601 {
6602
6603 ;
6604 return 0;
6605 }
6606 _ACEOF
6607 if ac_fn_c_try_link "$LINENO"; then :
6608 lt_cv_cc_needs_belf=yes
6609 else
6610 lt_cv_cc_needs_belf=no
6611 fi
6612 rm -f core conftest.err conftest.$ac_objext \
6613 conftest$ac_exeext conftest.$ac_ext
6614 ac_ext=c
6615 ac_cpp='$CPP $CPPFLAGS'
6616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6622 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6623 if test yes != "$lt_cv_cc_needs_belf"; then
6624 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6625 CFLAGS=$SAVE_CFLAGS
6626 fi
6627 ;;
6628 *-*solaris*)
6629 # Find out what ABI is being produced by ac_compile, and set linker
6630 # options accordingly.
6631 echo 'int i;' > conftest.$ac_ext
6632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6633 (eval $ac_compile) 2>&5
6634 ac_status=$?
6635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636 test $ac_status = 0; }; then
6637 case `/usr/bin/file conftest.o` in
6638 *64-bit*)
6639 case $lt_cv_prog_gnu_ld in
6640 yes*)
6641 case $host in
6642 i?86-*-solaris*|x86_64-*-solaris*)
6643 LD="${LD-ld} -m elf_x86_64"
6644 ;;
6645 sparc*-*-solaris*)
6646 LD="${LD-ld} -m elf64_sparc"
6647 ;;
6648 esac
6649 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6650 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6651 LD=${LD-ld}_sol2
6652 fi
6653 ;;
6654 *)
6655 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6656 LD="${LD-ld} -64"
6657 fi
6658 ;;
6659 esac
6660 ;;
6661 esac
6662 fi
6663 rm -rf conftest*
6664 ;;
6665 esac
6666
6667 need_locks=$enable_libtool_lock
6668
6669 if test -n "$ac_tool_prefix"; then
6670 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}mt; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$MANIFEST_TOOL"; then
6678 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6698 if test -n "$MANIFEST_TOOL"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6700 $as_echo "$MANIFEST_TOOL" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6709 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6710 # Extract the first word of "mt", so it can be a program name with args.
6711 set dummy mt; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 if test -n "$ac_ct_MANIFEST_TOOL"; then
6718 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723 IFS=$as_save_IFS
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729 break 2
6730 fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6738 if test -n "$ac_ct_MANIFEST_TOOL"; then
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6740 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6741 else
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6747 MANIFEST_TOOL=":"
6748 else
6749 case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6756 fi
6757 else
6758 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6759 fi
6760
6761 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6763 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6764 if ${lt_cv_path_mainfest_tool+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 lt_cv_path_mainfest_tool=no
6768 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6769 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6770 cat conftest.err >&5
6771 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6772 lt_cv_path_mainfest_tool=yes
6773 fi
6774 rm -f conftest*
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6777 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6778 if test yes != "$lt_cv_path_mainfest_tool"; then
6779 MANIFEST_TOOL=:
6780 fi
6781
6782
6783
6784
6785
6786
6787 case $host_os in
6788 rhapsody* | darwin*)
6789 if test -n "$ac_tool_prefix"; then
6790 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6795 $as_echo_n "(cached) " >&6
6796 else
6797 if test -n "$DSYMUTIL"; then
6798 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803 IFS=$as_save_IFS
6804 test -z "$as_dir" && as_dir=.
6805 for ac_exec_ext in '' $ac_executable_extensions; do
6806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809 break 2
6810 fi
6811 done
6812 done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818 if test -n "$DSYMUTIL"; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6820 $as_echo "$DSYMUTIL" >&6; }
6821 else
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_DSYMUTIL"; then
6829 ac_ct_DSYMUTIL=$DSYMUTIL
6830 # Extract the first word of "dsymutil", so it can be a program name with args.
6831 set dummy dsymutil; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6835 $as_echo_n "(cached) " >&6
6836 else
6837 if test -n "$ac_ct_DSYMUTIL"; then
6838 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843 IFS=$as_save_IFS
6844 test -z "$as_dir" && as_dir=.
6845 for ac_exec_ext in '' $ac_executable_extensions; do
6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 break 2
6850 fi
6851 done
6852 done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858 if test -n "$ac_ct_DSYMUTIL"; then
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6860 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6861 else
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866 if test "x$ac_ct_DSYMUTIL" = x; then
6867 DSYMUTIL=":"
6868 else
6869 case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875 DSYMUTIL=$ac_ct_DSYMUTIL
6876 fi
6877 else
6878 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6879 fi
6880
6881 if test -n "$ac_tool_prefix"; then
6882 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_NMEDIT+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$NMEDIT"; then
6890 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 NMEDIT=$ac_cv_prog_NMEDIT
6910 if test -n "$NMEDIT"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6912 $as_echo "$NMEDIT" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919 fi
6920 if test -z "$ac_cv_prog_NMEDIT"; then
6921 ac_ct_NMEDIT=$NMEDIT
6922 # Extract the first word of "nmedit", so it can be a program name with args.
6923 set dummy nmedit; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 if test -n "$ac_ct_NMEDIT"; then
6930 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935 IFS=$as_save_IFS
6936 test -z "$as_dir" && as_dir=.
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941 break 2
6942 fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950 if test -n "$ac_ct_NMEDIT"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6952 $as_echo "$ac_ct_NMEDIT" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957
6958 if test "x$ac_ct_NMEDIT" = x; then
6959 NMEDIT=":"
6960 else
6961 case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967 NMEDIT=$ac_ct_NMEDIT
6968 fi
6969 else
6970 NMEDIT="$ac_cv_prog_NMEDIT"
6971 fi
6972
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_LIPO+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$LIPO"; then
6982 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 LIPO=$ac_cv_prog_LIPO
7002 if test -n "$LIPO"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7004 $as_echo "$LIPO" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7008 fi
7009
7010
7011 fi
7012 if test -z "$ac_cv_prog_LIPO"; then
7013 ac_ct_LIPO=$LIPO
7014 # Extract the first word of "lipo", so it can be a program name with args.
7015 set dummy lipo; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 if test -n "$ac_ct_LIPO"; then
7022 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_ac_ct_LIPO="lipo"
7032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042 if test -n "$ac_ct_LIPO"; then
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7044 $as_echo "$ac_ct_LIPO" >&6; }
7045 else
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050 if test "x$ac_ct_LIPO" = x; then
7051 LIPO=":"
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059 LIPO=$ac_ct_LIPO
7060 fi
7061 else
7062 LIPO="$ac_cv_prog_LIPO"
7063 fi
7064
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}otool; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_OTOOL+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$OTOOL"; then
7074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 OTOOL=$ac_cv_prog_OTOOL
7094 if test -n "$OTOOL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7096 $as_echo "$OTOOL" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102
7103 fi
7104 if test -z "$ac_cv_prog_OTOOL"; then
7105 ac_ct_OTOOL=$OTOOL
7106 # Extract the first word of "otool", so it can be a program name with args.
7107 set dummy otool; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_OTOOL"; then
7114 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_ac_ct_OTOOL="otool"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127 done
7128 done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134 if test -n "$ac_ct_OTOOL"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7136 $as_echo "$ac_ct_OTOOL" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142 if test "x$ac_ct_OTOOL" = x; then
7143 OTOOL=":"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 OTOOL=$ac_ct_OTOOL
7152 fi
7153 else
7154 OTOOL="$ac_cv_prog_OTOOL"
7155 fi
7156
7157 if test -n "$ac_tool_prefix"; then
7158 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_OTOOL64+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$OTOOL64"; then
7166 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 OTOOL64=$ac_cv_prog_OTOOL64
7186 if test -n "$OTOOL64"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7188 $as_echo "$OTOOL64" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195 fi
7196 if test -z "$ac_cv_prog_OTOOL64"; then
7197 ac_ct_OTOOL64=$OTOOL64
7198 # Extract the first word of "otool64", so it can be a program name with args.
7199 set dummy otool64; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 if test -n "$ac_ct_OTOOL64"; then
7206 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211 IFS=$as_save_IFS
7212 test -z "$as_dir" && as_dir=.
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215 ac_cv_prog_ac_ct_OTOOL64="otool64"
7216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217 break 2
7218 fi
7219 done
7220 done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226 if test -n "$ac_ct_OTOOL64"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7228 $as_echo "$ac_ct_OTOOL64" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234 if test "x$ac_ct_OTOOL64" = x; then
7235 OTOOL64=":"
7236 else
7237 case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243 OTOOL64=$ac_ct_OTOOL64
7244 fi
7245 else
7246 OTOOL64="$ac_cv_prog_OTOOL64"
7247 fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7276 $as_echo_n "checking for -single_module linker flag... " >&6; }
7277 if ${lt_cv_apple_cc_single_mod+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 lt_cv_apple_cc_single_mod=no
7281 if test -z "$LT_MULTI_MODULE"; then
7282 # By default we will add the -single_module flag. You can override
7283 # by either setting the environment variable LT_MULTI_MODULE
7284 # non-empty at configure time, or by adding -multi_module to the
7285 # link flags.
7286 rm -rf libconftest.dylib*
7287 echo "int foo(void){return 1;}" > conftest.c
7288 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib -Wl,-single_module conftest.c" >&5
7290 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292 _lt_result=$?
7293 # If there is a non-empty error log, and "single_module"
7294 # appears in it, assume the flag caused a linker warning
7295 if test -s conftest.err && $GREP single_module conftest.err; then
7296 cat conftest.err >&5
7297 # Otherwise, if the output was created with a 0 exit code from
7298 # the compiler, it worked.
7299 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7300 lt_cv_apple_cc_single_mod=yes
7301 else
7302 cat conftest.err >&5
7303 fi
7304 rm -rf libconftest.dylib*
7305 rm -f conftest.*
7306 fi
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7309 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7310
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7312 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7313 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 lt_cv_ld_exported_symbols_list=no
7317 save_LDFLAGS=$LDFLAGS
7318 echo "_main" > conftest.sym
7319 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322
7323 int
7324 main ()
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_link "$LINENO"; then :
7332 lt_cv_ld_exported_symbols_list=yes
7333 else
7334 lt_cv_ld_exported_symbols_list=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext \
7337 conftest$ac_exeext conftest.$ac_ext
7338 LDFLAGS=$save_LDFLAGS
7339
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7342 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7345 $as_echo_n "checking for -force_load linker flag... " >&6; }
7346 if ${lt_cv_ld_force_load+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 lt_cv_ld_force_load=no
7350 cat > conftest.c << _LT_EOF
7351 int forced_loaded() { return 2;}
7352 _LT_EOF
7353 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7354 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7355 echo "$AR cru libconftest.a conftest.o" >&5
7356 $AR cru libconftest.a conftest.o 2>&5
7357 echo "$RANLIB libconftest.a" >&5
7358 $RANLIB libconftest.a 2>&5
7359 cat > conftest.c << _LT_EOF
7360 int main() { return 0;}
7361 _LT_EOF
7362 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7363 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7364 _lt_result=$?
7365 if test -s conftest.err && $GREP force_load conftest.err; then
7366 cat conftest.err >&5
7367 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7368 lt_cv_ld_force_load=yes
7369 else
7370 cat conftest.err >&5
7371 fi
7372 rm -f conftest.err libconftest.a conftest conftest.c
7373 rm -rf conftest.dSYM
7374
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7377 $as_echo "$lt_cv_ld_force_load" >&6; }
7378 case $host_os in
7379 rhapsody* | darwin1.[012])
7380 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7381 darwin1.*)
7382 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7383 darwin*) # darwin 5.x on
7384 # if running on 10.5 or later, the deployment target defaults
7385 # to the OS version, if on x86, and 10.4, the deployment
7386 # target defaults to 10.4. Don't you love it?
7387 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7388 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7389 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7390 10.[012][,.]*)
7391 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7392 10.*)
7393 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7394 esac
7395 ;;
7396 esac
7397 if test yes = "$lt_cv_apple_cc_single_mod"; then
7398 _lt_dar_single_mod='$single_module'
7399 fi
7400 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7401 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7402 else
7403 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7404 fi
7405 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7406 _lt_dsymutil='~$DSYMUTIL $lib || :'
7407 else
7408 _lt_dsymutil=
7409 fi
7410 ;;
7411 esac
7412
7413 # func_munge_path_list VARIABLE PATH
7414 # -----------------------------------
7415 # VARIABLE is name of variable containing _space_ separated list of
7416 # directories to be munged by the contents of PATH, which is string
7417 # having a format:
7418 # "DIR[:DIR]:"
7419 # string "DIR[ DIR]" will be prepended to VARIABLE
7420 # ":DIR[:DIR]"
7421 # string "DIR[ DIR]" will be appended to VARIABLE
7422 # "DIRP[:DIRP]::[DIRA:]DIRA"
7423 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7424 # "DIRA[ DIRA]" will be appended to VARIABLE
7425 # "DIR[:DIR]"
7426 # VARIABLE will be replaced by "DIR[ DIR]"
7427 func_munge_path_list ()
7428 {
7429 case x$2 in
7430 x)
7431 ;;
7432 *:)
7433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7434 ;;
7435 x:*)
7436 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7437 ;;
7438 *::*)
7439 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7440 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7441 ;;
7442 *)
7443 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7444 ;;
7445 esac
7446 }
7447
7448 ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7455 # On Suns, sometimes $CPP names a directory.
7456 if test -n "$CPP" && test -d "$CPP"; then
7457 CPP=
7458 fi
7459 if test -z "$CPP"; then
7460 if ${ac_cv_prog_CPP+:} false; then :
7461 $as_echo_n "(cached) " >&6
7462 else
7463 # Double quotes because CPP needs to be expanded
7464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7465 do
7466 ac_preproc_ok=false
7467 for ac_c_preproc_warn_flag in '' yes
7468 do
7469 # Use a header file that comes with gcc, so configuring glibc
7470 # with a fresh cross-compiler works.
7471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7472 # <limits.h> exists even on freestanding compilers.
7473 # On the NeXT, cc -E runs the code through the compiler's parser,
7474 # not just through cpp. "Syntax error" is here to catch this case.
7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #ifdef __STDC__
7478 # include <limits.h>
7479 #else
7480 # include <assert.h>
7481 #endif
7482 Syntax error
7483 _ACEOF
7484 if ac_fn_c_try_cpp "$LINENO"; then :
7485
7486 else
7487 # Broken: fails on valid input.
7488 continue
7489 fi
7490 rm -f conftest.err conftest.i conftest.$ac_ext
7491
7492 # OK, works on sane cases. Now check whether nonexistent headers
7493 # can be detected and how.
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7496 #include <ac_nonexistent.h>
7497 _ACEOF
7498 if ac_fn_c_try_cpp "$LINENO"; then :
7499 # Broken: success on invalid input.
7500 continue
7501 else
7502 # Passes both tests.
7503 ac_preproc_ok=:
7504 break
7505 fi
7506 rm -f conftest.err conftest.i conftest.$ac_ext
7507
7508 done
7509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7510 rm -f conftest.i conftest.err conftest.$ac_ext
7511 if $ac_preproc_ok; then :
7512 break
7513 fi
7514
7515 done
7516 ac_cv_prog_CPP=$CPP
7517
7518 fi
7519 CPP=$ac_cv_prog_CPP
7520 else
7521 ac_cv_prog_CPP=$CPP
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7524 $as_echo "$CPP" >&6; }
7525 ac_preproc_ok=false
7526 for ac_c_preproc_warn_flag in '' yes
7527 do
7528 # Use a header file that comes with gcc, so configuring glibc
7529 # with a fresh cross-compiler works.
7530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7531 # <limits.h> exists even on freestanding compilers.
7532 # On the NeXT, cc -E runs the code through the compiler's parser,
7533 # not just through cpp. "Syntax error" is here to catch this case.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #ifdef __STDC__
7537 # include <limits.h>
7538 #else
7539 # include <assert.h>
7540 #endif
7541 Syntax error
7542 _ACEOF
7543 if ac_fn_c_try_cpp "$LINENO"; then :
7544
7545 else
7546 # Broken: fails on valid input.
7547 continue
7548 fi
7549 rm -f conftest.err conftest.i conftest.$ac_ext
7550
7551 # OK, works on sane cases. Now check whether nonexistent headers
7552 # can be detected and how.
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 #include <ac_nonexistent.h>
7556 _ACEOF
7557 if ac_fn_c_try_cpp "$LINENO"; then :
7558 # Broken: success on invalid input.
7559 continue
7560 else
7561 # Passes both tests.
7562 ac_preproc_ok=:
7563 break
7564 fi
7565 rm -f conftest.err conftest.i conftest.$ac_ext
7566
7567 done
7568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7569 rm -f conftest.i conftest.err conftest.$ac_ext
7570 if $ac_preproc_ok; then :
7571
7572 else
7573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7576 See \`config.log' for more details" "$LINENO" 5; }
7577 fi
7578
7579 ac_ext=c
7580 ac_cpp='$CPP $CPPFLAGS'
7581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7584
7585
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7587 $as_echo_n "checking for ANSI C header files... " >&6; }
7588 if ${ac_cv_header_stdc+:} false; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <stdlib.h>
7594 #include <stdarg.h>
7595 #include <string.h>
7596 #include <float.h>
7597
7598 int
7599 main ()
7600 {
7601
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_compile "$LINENO"; then :
7607 ac_cv_header_stdc=yes
7608 else
7609 ac_cv_header_stdc=no
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612
7613 if test $ac_cv_header_stdc = yes; then
7614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7617 #include <string.h>
7618
7619 _ACEOF
7620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7621 $EGREP "memchr" >/dev/null 2>&1; then :
7622
7623 else
7624 ac_cv_header_stdc=no
7625 fi
7626 rm -f conftest*
7627
7628 fi
7629
7630 if test $ac_cv_header_stdc = yes; then
7631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634 #include <stdlib.h>
7635
7636 _ACEOF
7637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7638 $EGREP "free" >/dev/null 2>&1; then :
7639
7640 else
7641 ac_cv_header_stdc=no
7642 fi
7643 rm -f conftest*
7644
7645 fi
7646
7647 if test $ac_cv_header_stdc = yes; then
7648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7649 if test "$cross_compiling" = yes; then :
7650 :
7651 else
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654 #include <ctype.h>
7655 #include <stdlib.h>
7656 #if ((' ' & 0x0FF) == 0x020)
7657 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7658 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7659 #else
7660 # define ISLOWER(c) \
7661 (('a' <= (c) && (c) <= 'i') \
7662 || ('j' <= (c) && (c) <= 'r') \
7663 || ('s' <= (c) && (c) <= 'z'))
7664 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7665 #endif
7666
7667 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7668 int
7669 main ()
7670 {
7671 int i;
7672 for (i = 0; i < 256; i++)
7673 if (XOR (islower (i), ISLOWER (i))
7674 || toupper (i) != TOUPPER (i))
7675 return 2;
7676 return 0;
7677 }
7678 _ACEOF
7679 if ac_fn_c_try_run "$LINENO"; then :
7680
7681 else
7682 ac_cv_header_stdc=no
7683 fi
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685 conftest.$ac_objext conftest.beam conftest.$ac_ext
7686 fi
7687
7688 fi
7689 fi
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7691 $as_echo "$ac_cv_header_stdc" >&6; }
7692 if test $ac_cv_header_stdc = yes; then
7693
7694 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7695
7696 fi
7697
7698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7700 inttypes.h stdint.h unistd.h
7701 do :
7702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7703 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7704 "
7705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7706 cat >>confdefs.h <<_ACEOF
7707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7708 _ACEOF
7709
7710 fi
7711
7712 done
7713
7714
7715 for ac_header in dlfcn.h
7716 do :
7717 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7718 "
7719 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7720 cat >>confdefs.h <<_ACEOF
7721 #define HAVE_DLFCN_H 1
7722 _ACEOF
7723
7724 fi
7725
7726 done
7727
7728
7729
7730
7731
7732 # Set options
7733 # Check whether --enable-static was given.
7734 if test "${enable_static+set}" = set; then :
7735 enableval=$enable_static; p=${PACKAGE-default}
7736 case $enableval in
7737 yes) enable_static=yes ;;
7738 no) enable_static=no ;;
7739 *)
7740 enable_static=no
7741 # Look at the argument we got. We use all the common list separators.
7742 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7743 for pkg in $enableval; do
7744 IFS=$lt_save_ifs
7745 if test "X$pkg" = "X$p"; then
7746 enable_static=yes
7747 fi
7748 done
7749 IFS=$lt_save_ifs
7750 ;;
7751 esac
7752 else
7753 enable_static=no
7754 fi
7755
7756
7757
7758
7759
7760
7761
7762 enable_dlopen=yes
7763
7764
7765
7766
7767 enable_win32_dll=no
7768
7769
7770 # Check whether --enable-shared was given.
7771 if test "${enable_shared+set}" = set; then :
7772 enableval=$enable_shared; p=${PACKAGE-default}
7773 case $enableval in
7774 yes) enable_shared=yes ;;
7775 no) enable_shared=no ;;
7776 *)
7777 enable_shared=no
7778 # Look at the argument we got. We use all the common list separators.
7779 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7780 for pkg in $enableval; do
7781 IFS=$lt_save_ifs
7782 if test "X$pkg" = "X$p"; then
7783 enable_shared=yes
7784 fi
7785 done
7786 IFS=$lt_save_ifs
7787 ;;
7788 esac
7789 else
7790 enable_shared=yes
7791 fi
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803 # Check whether --with-pic was given.
7804 if test "${with_pic+set}" = set; then :
7805 withval=$with_pic; lt_p=${PACKAGE-default}
7806 case $withval in
7807 yes|no) pic_mode=$withval ;;
7808 *)
7809 pic_mode=default
7810 # Look at the argument we got. We use all the common list separators.
7811 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7812 for lt_pkg in $withval; do
7813 IFS=$lt_save_ifs
7814 if test "X$lt_pkg" = "X$lt_p"; then
7815 pic_mode=yes
7816 fi
7817 done
7818 IFS=$lt_save_ifs
7819 ;;
7820 esac
7821 else
7822 pic_mode=default
7823 fi
7824
7825
7826
7827
7828
7829
7830
7831
7832 # Check whether --enable-fast-install was given.
7833 if test "${enable_fast_install+set}" = set; then :
7834 enableval=$enable_fast_install; p=${PACKAGE-default}
7835 case $enableval in
7836 yes) enable_fast_install=yes ;;
7837 no) enable_fast_install=no ;;
7838 *)
7839 enable_fast_install=no
7840 # Look at the argument we got. We use all the common list separators.
7841 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7842 for pkg in $enableval; do
7843 IFS=$lt_save_ifs
7844 if test "X$pkg" = "X$p"; then
7845 enable_fast_install=yes
7846 fi
7847 done
7848 IFS=$lt_save_ifs
7849 ;;
7850 esac
7851 else
7852 enable_fast_install=yes
7853 fi
7854
7855
7856
7857
7858
7859
7860
7861
7862 shared_archive_member_spec=
7863 case $host,$enable_shared in
7864 power*-*-aix[5-9]*,yes)
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7866 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7867
7868 # Check whether --with-aix-soname was given.
7869 if test "${with_aix_soname+set}" = set; then :
7870 withval=$with_aix_soname; case $withval in
7871 aix|svr4|both)
7872 ;;
7873 *)
7874 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7875 ;;
7876 esac
7877 lt_cv_with_aix_soname=$with_aix_soname
7878 else
7879 if ${lt_cv_with_aix_soname+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 lt_cv_with_aix_soname=aix
7883 fi
7884
7885 with_aix_soname=$lt_cv_with_aix_soname
7886 fi
7887
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7889 $as_echo "$with_aix_soname" >&6; }
7890 if test aix != "$with_aix_soname"; then
7891 # For the AIX way of multilib, we name the shared archive member
7892 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7893 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7894 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7895 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7896 if test 64 = "${OBJECT_MODE-32}"; then
7897 shared_archive_member_spec=shr_64
7898 else
7899 shared_archive_member_spec=shr
7900 fi
7901 fi
7902 ;;
7903 *)
7904 with_aix_soname=aix
7905 ;;
7906 esac
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917 # This can be used to rebuild libtool when needed
7918 LIBTOOL_DEPS=$ltmain
7919
7920 # Always use our own libtool.
7921 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952 test -z "$LN_S" && LN_S="ln -s"
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967 if test -n "${ZSH_VERSION+set}"; then
7968 setopt NO_GLOB_SUBST
7969 fi
7970
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7972 $as_echo_n "checking for objdir... " >&6; }
7973 if ${lt_cv_objdir+:} false; then :
7974 $as_echo_n "(cached) " >&6
7975 else
7976 rm -f .libs 2>/dev/null
7977 mkdir .libs 2>/dev/null
7978 if test -d .libs; then
7979 lt_cv_objdir=.libs
7980 else
7981 # MS-DOS does not allow filenames that begin with a dot.
7982 lt_cv_objdir=_libs
7983 fi
7984 rmdir .libs 2>/dev/null
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7987 $as_echo "$lt_cv_objdir" >&6; }
7988 objdir=$lt_cv_objdir
7989
7990
7991
7992
7993
7994 cat >>confdefs.h <<_ACEOF
7995 #define LT_OBJDIR "$lt_cv_objdir/"
7996 _ACEOF
7997
7998
7999
8000
8001 case $host_os in
8002 aix3*)
8003 # AIX sometimes has problems with the GCC collect2 program. For some
8004 # reason, if we set the COLLECT_NAMES environment variable, the problems
8005 # vanish in a puff of smoke.
8006 if test set != "${COLLECT_NAMES+set}"; then
8007 COLLECT_NAMES=
8008 export COLLECT_NAMES
8009 fi
8010 ;;
8011 esac
8012
8013 # Global variables:
8014 ofile=libtool
8015 can_build_shared=yes
8016
8017 # All known linkers require a '.a' archive for static linking (except MSVC,
8018 # which needs '.lib').
8019 libext=a
8020
8021 with_gnu_ld=$lt_cv_prog_gnu_ld
8022
8023 old_CC=$CC
8024 old_CFLAGS=$CFLAGS
8025
8026 # Set sane defaults for various variables
8027 test -z "$CC" && CC=cc
8028 test -z "$LTCC" && LTCC=$CC
8029 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8030 test -z "$LD" && LD=ld
8031 test -z "$ac_objext" && ac_objext=o
8032
8033 func_cc_basename $compiler
8034 cc_basename=$func_cc_basename_result
8035
8036
8037 # Only perform the check for file, if the check method requires it
8038 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8039 case $deplibs_check_method in
8040 file_magic*)
8041 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8043 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8044 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8045 $as_echo_n "(cached) " >&6
8046 else
8047 case $MAGIC_CMD in
8048 [\\/*] | ?:[\\/]*)
8049 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8050 ;;
8051 *)
8052 lt_save_MAGIC_CMD=$MAGIC_CMD
8053 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8055 for ac_dir in $ac_dummy; do
8056 IFS=$lt_save_ifs
8057 test -z "$ac_dir" && ac_dir=.
8058 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8059 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8060 if test -n "$file_magic_test_file"; then
8061 case $deplibs_check_method in
8062 "file_magic "*)
8063 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8064 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8066 $EGREP "$file_magic_regex" > /dev/null; then
8067 :
8068 else
8069 cat <<_LT_EOF 1>&2
8070
8071 *** Warning: the command libtool uses to detect shared libraries,
8072 *** $file_magic_cmd, produces output that libtool cannot recognize.
8073 *** The result is that libtool may fail to recognize shared libraries
8074 *** as such. This will affect the creation of libtool libraries that
8075 *** depend on shared libraries, but programs linked with such libtool
8076 *** libraries will work regardless of this problem. Nevertheless, you
8077 *** may want to report the problem to your system manager and/or to
8078 *** [email protected]
8079
8080 _LT_EOF
8081 fi ;;
8082 esac
8083 fi
8084 break
8085 fi
8086 done
8087 IFS=$lt_save_ifs
8088 MAGIC_CMD=$lt_save_MAGIC_CMD
8089 ;;
8090 esac
8091 fi
8092
8093 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8094 if test -n "$MAGIC_CMD"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8096 $as_echo "$MAGIC_CMD" >&6; }
8097 else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8100 fi
8101
8102
8103
8104
8105
8106 if test -z "$lt_cv_path_MAGIC_CMD"; then
8107 if test -n "$ac_tool_prefix"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8109 $as_echo_n "checking for file... " >&6; }
8110 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 case $MAGIC_CMD in
8114 [\\/*] | ?:[\\/]*)
8115 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8116 ;;
8117 *)
8118 lt_save_MAGIC_CMD=$MAGIC_CMD
8119 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8120 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8121 for ac_dir in $ac_dummy; do
8122 IFS=$lt_save_ifs
8123 test -z "$ac_dir" && ac_dir=.
8124 if test -f "$ac_dir/file"; then
8125 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8126 if test -n "$file_magic_test_file"; then
8127 case $deplibs_check_method in
8128 "file_magic "*)
8129 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8130 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8131 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8132 $EGREP "$file_magic_regex" > /dev/null; then
8133 :
8134 else
8135 cat <<_LT_EOF 1>&2
8136
8137 *** Warning: the command libtool uses to detect shared libraries,
8138 *** $file_magic_cmd, produces output that libtool cannot recognize.
8139 *** The result is that libtool may fail to recognize shared libraries
8140 *** as such. This will affect the creation of libtool libraries that
8141 *** depend on shared libraries, but programs linked with such libtool
8142 *** libraries will work regardless of this problem. Nevertheless, you
8143 *** may want to report the problem to your system manager and/or to
8144 *** [email protected]
8145
8146 _LT_EOF
8147 fi ;;
8148 esac
8149 fi
8150 break
8151 fi
8152 done
8153 IFS=$lt_save_ifs
8154 MAGIC_CMD=$lt_save_MAGIC_CMD
8155 ;;
8156 esac
8157 fi
8158
8159 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8160 if test -n "$MAGIC_CMD"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8162 $as_echo "$MAGIC_CMD" >&6; }
8163 else
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8166 fi
8167
8168
8169 else
8170 MAGIC_CMD=:
8171 fi
8172 fi
8173
8174 fi
8175 ;;
8176 esac
8177
8178 # Use C for the default configuration in the libtool script
8179
8180 lt_save_CC=$CC
8181 ac_ext=c
8182 ac_cpp='$CPP $CPPFLAGS'
8183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8186
8187
8188 # Source file extension for C test sources.
8189 ac_ext=c
8190
8191 # Object file extension for compiled C test sources.
8192 objext=o
8193 objext=$objext
8194
8195 # Code to be used in simple compile tests
8196 lt_simple_compile_test_code="int some_variable = 0;"
8197
8198 # Code to be used in simple link tests
8199 lt_simple_link_test_code='int main(){return(0);}'
8200
8201
8202
8203
8204
8205
8206
8207 # If no C compiler was specified, use CC.
8208 LTCC=${LTCC-"$CC"}
8209
8210 # If no C compiler flags were specified, use CFLAGS.
8211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8212
8213 # Allow CC to be a program name with arguments.
8214 compiler=$CC
8215
8216 # Save the default compiler, since it gets overwritten when the other
8217 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8218 compiler_DEFAULT=$CC
8219
8220 # save warnings/boilerplate of simple test code
8221 ac_outfile=conftest.$ac_objext
8222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8224 _lt_compiler_boilerplate=`cat conftest.err`
8225 $RM conftest*
8226
8227 ac_outfile=conftest.$ac_objext
8228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8230 _lt_linker_boilerplate=`cat conftest.err`
8231 $RM -r conftest*
8232
8233
8234 ## CAVEAT EMPTOR:
8235 ## There is no encapsulation within the following macros, do not change
8236 ## the running order or otherwise move them around unless you know exactly
8237 ## what you are doing...
8238 if test -n "$compiler"; then
8239
8240 lt_prog_compiler_no_builtin_flag=
8241
8242 if test yes = "$GCC"; then
8243 case $cc_basename in
8244 nvcc*)
8245 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8246 *)
8247 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8248 esac
8249
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8251 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8252 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 lt_cv_prog_compiler_rtti_exceptions=no
8256 ac_outfile=conftest.$ac_objext
8257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8258 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8259 # Insert the option either (1) after the last *FLAGS variable, or
8260 # (2) before a word containing "conftest.", or (3) at the end.
8261 # Note that $ac_compile itself does not contain backslashes and begins
8262 # with a dollar sign (not a hyphen), so the echo should work correctly.
8263 # The option is referenced via a variable to avoid confusing sed.
8264 lt_compile=`echo "$ac_compile" | $SED \
8265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8267 -e 's:$: $lt_compiler_flag:'`
8268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8269 (eval "$lt_compile" 2>conftest.err)
8270 ac_status=$?
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 if (exit $ac_status) && test -s "$ac_outfile"; then
8274 # The compiler can only warn and ignore the option if not recognized
8275 # So say no if there are warnings other than the usual output.
8276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8277 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8278 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8279 lt_cv_prog_compiler_rtti_exceptions=yes
8280 fi
8281 fi
8282 $RM conftest*
8283
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8286 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8287
8288 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8289 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8290 else
8291 :
8292 fi
8293
8294 fi
8295
8296
8297
8298
8299
8300
8301 lt_prog_compiler_wl=
8302 lt_prog_compiler_pic=
8303 lt_prog_compiler_static=
8304
8305
8306 if test yes = "$GCC"; then
8307 lt_prog_compiler_wl='-Wl,'
8308 lt_prog_compiler_static='-static'
8309
8310 case $host_os in
8311 aix*)
8312 # All AIX code is PIC.
8313 if test ia64 = "$host_cpu"; then
8314 # AIX 5 now supports IA64 processor
8315 lt_prog_compiler_static='-Bstatic'
8316 fi
8317 lt_prog_compiler_pic='-fPIC'
8318 ;;
8319
8320 amigaos*)
8321 case $host_cpu in
8322 powerpc)
8323 # see comment about AmigaOS4 .so support
8324 lt_prog_compiler_pic='-fPIC'
8325 ;;
8326 m68k)
8327 # FIXME: we need at least 68020 code to build shared libraries, but
8328 # adding the '-m68020' flag to GCC prevents building anything better,
8329 # like '-m68040'.
8330 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8331 ;;
8332 esac
8333 ;;
8334
8335 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8336 # PIC is the default for these OSes.
8337 ;;
8338
8339 mingw* | cygwin* | pw32* | os2* | cegcc*)
8340 # This hack is so that the source file can tell whether it is being
8341 # built for inclusion in a dll (and should export symbols for example).
8342 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8343 # (--disable-auto-import) libraries
8344 lt_prog_compiler_pic='-DDLL_EXPORT'
8345 case $host_os in
8346 os2*)
8347 lt_prog_compiler_static='$wl-static'
8348 ;;
8349 esac
8350 ;;
8351
8352 darwin* | rhapsody*)
8353 # PIC is the default on this platform
8354 # Common symbols not allowed in MH_DYLIB files
8355 lt_prog_compiler_pic='-fno-common'
8356 ;;
8357
8358 haiku*)
8359 # PIC is the default for Haiku.
8360 # The "-static" flag exists, but is broken.
8361 lt_prog_compiler_static=
8362 ;;
8363
8364 hpux*)
8365 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8366 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8367 # sets the default TLS model and affects inlining.
8368 case $host_cpu in
8369 hppa*64*)
8370 # +Z the default
8371 ;;
8372 *)
8373 lt_prog_compiler_pic='-fPIC'
8374 ;;
8375 esac
8376 ;;
8377
8378 interix[3-9]*)
8379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8380 # Instead, we relocate shared libraries at runtime.
8381 ;;
8382
8383 msdosdjgpp*)
8384 # Just because we use GCC doesn't mean we suddenly get shared libraries
8385 # on systems that don't support them.
8386 lt_prog_compiler_can_build_shared=no
8387 enable_shared=no
8388 ;;
8389
8390 *nto* | *qnx*)
8391 # QNX uses GNU C++, but need to define -shared option too, otherwise
8392 # it will coredump.
8393 lt_prog_compiler_pic='-fPIC -shared'
8394 ;;
8395
8396 sysv4*MP*)
8397 if test -d /usr/nec; then
8398 lt_prog_compiler_pic=-Kconform_pic
8399 fi
8400 ;;
8401
8402 *)
8403 lt_prog_compiler_pic='-fPIC'
8404 ;;
8405 esac
8406
8407 case $cc_basename in
8408 nvcc*) # Cuda Compiler Driver 2.2
8409 lt_prog_compiler_wl='-Xlinker '
8410 if test -n "$lt_prog_compiler_pic"; then
8411 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8412 fi
8413 ;;
8414 esac
8415 else
8416 # PORTME Check for flag to pass linker flags through the system compiler.
8417 case $host_os in
8418 aix*)
8419 lt_prog_compiler_wl='-Wl,'
8420 if test ia64 = "$host_cpu"; then
8421 # AIX 5 now supports IA64 processor
8422 lt_prog_compiler_static='-Bstatic'
8423 else
8424 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8425 fi
8426 ;;
8427
8428 darwin* | rhapsody*)
8429 # PIC is the default on this platform
8430 # Common symbols not allowed in MH_DYLIB files
8431 lt_prog_compiler_pic='-fno-common'
8432 case $cc_basename in
8433 nagfor*)
8434 # NAG Fortran compiler
8435 lt_prog_compiler_wl='-Wl,-Wl,,'
8436 lt_prog_compiler_pic='-PIC'
8437 lt_prog_compiler_static='-Bstatic'
8438 ;;
8439 esac
8440 ;;
8441
8442 mingw* | cygwin* | pw32* | os2* | cegcc*)
8443 # This hack is so that the source file can tell whether it is being
8444 # built for inclusion in a dll (and should export symbols for example).
8445 lt_prog_compiler_pic='-DDLL_EXPORT'
8446 case $host_os in
8447 os2*)
8448 lt_prog_compiler_static='$wl-static'
8449 ;;
8450 esac
8451 ;;
8452
8453 hpux9* | hpux10* | hpux11*)
8454 lt_prog_compiler_wl='-Wl,'
8455 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8456 # not for PA HP-UX.
8457 case $host_cpu in
8458 hppa*64*|ia64*)
8459 # +Z the default
8460 ;;
8461 *)
8462 lt_prog_compiler_pic='+Z'
8463 ;;
8464 esac
8465 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8466 lt_prog_compiler_static='$wl-a ${wl}archive'
8467 ;;
8468
8469 irix5* | irix6* | nonstopux*)
8470 lt_prog_compiler_wl='-Wl,'
8471 # PIC (with -KPIC) is the default.
8472 lt_prog_compiler_static='-non_shared'
8473 ;;
8474
8475 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8476 case $cc_basename in
8477 # old Intel for x86_64, which still supported -KPIC.
8478 ecc*)
8479 lt_prog_compiler_wl='-Wl,'
8480 lt_prog_compiler_pic='-KPIC'
8481 lt_prog_compiler_static='-static'
8482 ;;
8483 # icc used to be incompatible with GCC.
8484 # ICC 10 doesn't accept -KPIC any more.
8485 icc* | ifort*)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_pic='-fPIC'
8488 lt_prog_compiler_static='-static'
8489 ;;
8490 # Lahey Fortran 8.1.
8491 lf95*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='--shared'
8494 lt_prog_compiler_static='--static'
8495 ;;
8496 nagfor*)
8497 # NAG Fortran compiler
8498 lt_prog_compiler_wl='-Wl,-Wl,,'
8499 lt_prog_compiler_pic='-PIC'
8500 lt_prog_compiler_static='-Bstatic'
8501 ;;
8502 tcc*)
8503 # Fabrice Bellard et al's Tiny C Compiler
8504 lt_prog_compiler_wl='-Wl,'
8505 lt_prog_compiler_pic='-fPIC'
8506 lt_prog_compiler_static='-static'
8507 ;;
8508 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8509 # Portland Group compilers (*not* the Pentium gcc compiler,
8510 # which looks to be a dead project)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-fpic'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
8515 ccc*)
8516 lt_prog_compiler_wl='-Wl,'
8517 # All Alpha code is PIC.
8518 lt_prog_compiler_static='-non_shared'
8519 ;;
8520 xl* | bgxl* | bgf* | mpixl*)
8521 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='-qpic'
8524 lt_prog_compiler_static='-qstaticlink'
8525 ;;
8526 *)
8527 case `$CC -V 2>&1 | sed 5q` in
8528 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8529 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8530 lt_prog_compiler_pic='-KPIC'
8531 lt_prog_compiler_static='-Bstatic'
8532 lt_prog_compiler_wl=''
8533 ;;
8534 *Sun\ F* | *Sun*Fortran*)
8535 lt_prog_compiler_pic='-KPIC'
8536 lt_prog_compiler_static='-Bstatic'
8537 lt_prog_compiler_wl='-Qoption ld '
8538 ;;
8539 *Sun\ C*)
8540 # Sun C 5.9
8541 lt_prog_compiler_pic='-KPIC'
8542 lt_prog_compiler_static='-Bstatic'
8543 lt_prog_compiler_wl='-Wl,'
8544 ;;
8545 *Intel*\ [CF]*Compiler*)
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-fPIC'
8548 lt_prog_compiler_static='-static'
8549 ;;
8550 *Portland\ Group*)
8551 lt_prog_compiler_wl='-Wl,'
8552 lt_prog_compiler_pic='-fpic'
8553 lt_prog_compiler_static='-Bstatic'
8554 ;;
8555 esac
8556 ;;
8557 esac
8558 ;;
8559
8560 newsos6)
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 ;;
8564
8565 *nto* | *qnx*)
8566 # QNX uses GNU C++, but need to define -shared option too, otherwise
8567 # it will coredump.
8568 lt_prog_compiler_pic='-fPIC -shared'
8569 ;;
8570
8571 osf3* | osf4* | osf5*)
8572 lt_prog_compiler_wl='-Wl,'
8573 # All OSF/1 code is PIC.
8574 lt_prog_compiler_static='-non_shared'
8575 ;;
8576
8577 rdos*)
8578 lt_prog_compiler_static='-non_shared'
8579 ;;
8580
8581 solaris*)
8582 lt_prog_compiler_pic='-KPIC'
8583 lt_prog_compiler_static='-Bstatic'
8584 case $cc_basename in
8585 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8586 lt_prog_compiler_wl='-Qoption ld ';;
8587 *)
8588 lt_prog_compiler_wl='-Wl,';;
8589 esac
8590 ;;
8591
8592 sunos4*)
8593 lt_prog_compiler_wl='-Qoption ld '
8594 lt_prog_compiler_pic='-PIC'
8595 lt_prog_compiler_static='-Bstatic'
8596 ;;
8597
8598 sysv4 | sysv4.2uw2* | sysv4.3*)
8599 lt_prog_compiler_wl='-Wl,'
8600 lt_prog_compiler_pic='-KPIC'
8601 lt_prog_compiler_static='-Bstatic'
8602 ;;
8603
8604 sysv4*MP*)
8605 if test -d /usr/nec; then
8606 lt_prog_compiler_pic='-Kconform_pic'
8607 lt_prog_compiler_static='-Bstatic'
8608 fi
8609 ;;
8610
8611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8612 lt_prog_compiler_wl='-Wl,'
8613 lt_prog_compiler_pic='-KPIC'
8614 lt_prog_compiler_static='-Bstatic'
8615 ;;
8616
8617 unicos*)
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_can_build_shared=no
8620 ;;
8621
8622 uts4*)
8623 lt_prog_compiler_pic='-pic'
8624 lt_prog_compiler_static='-Bstatic'
8625 ;;
8626
8627 *)
8628 lt_prog_compiler_can_build_shared=no
8629 ;;
8630 esac
8631 fi
8632
8633 case $host_os in
8634 # For platforms that do not support PIC, -DPIC is meaningless:
8635 *djgpp*)
8636 lt_prog_compiler_pic=
8637 ;;
8638 *)
8639 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8640 ;;
8641 esac
8642
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8644 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8645 if ${lt_cv_prog_compiler_pic+:} false; then :
8646 $as_echo_n "(cached) " >&6
8647 else
8648 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8651 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8652 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8653
8654 #
8655 # Check to make sure the PIC flag actually works.
8656 #
8657 if test -n "$lt_prog_compiler_pic"; then
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8660 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 lt_cv_prog_compiler_pic_works=no
8664 ac_outfile=conftest.$ac_objext
8665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8666 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8667 # Insert the option either (1) after the last *FLAGS variable, or
8668 # (2) before a word containing "conftest.", or (3) at the end.
8669 # Note that $ac_compile itself does not contain backslashes and begins
8670 # with a dollar sign (not a hyphen), so the echo should work correctly.
8671 # The option is referenced via a variable to avoid confusing sed.
8672 lt_compile=`echo "$ac_compile" | $SED \
8673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8675 -e 's:$: $lt_compiler_flag:'`
8676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8677 (eval "$lt_compile" 2>conftest.err)
8678 ac_status=$?
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 if (exit $ac_status) && test -s "$ac_outfile"; then
8682 # The compiler can only warn and ignore the option if not recognized
8683 # So say no if there are warnings other than the usual output.
8684 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8686 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8687 lt_cv_prog_compiler_pic_works=yes
8688 fi
8689 fi
8690 $RM conftest*
8691
8692 fi
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8694 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8695
8696 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8697 case $lt_prog_compiler_pic in
8698 "" | " "*) ;;
8699 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8700 esac
8701 else
8702 lt_prog_compiler_pic=
8703 lt_prog_compiler_can_build_shared=no
8704 fi
8705
8706 fi
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718 #
8719 # Check to make sure the static flag actually works.
8720 #
8721 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8723 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8724 if ${lt_cv_prog_compiler_static_works+:} false; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 lt_cv_prog_compiler_static_works=no
8728 save_LDFLAGS=$LDFLAGS
8729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8730 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8732 # The linker can only warn and ignore the option if not recognized
8733 # So say no if there are warnings
8734 if test -s conftest.err; then
8735 # Append any errors to the config.log.
8736 cat conftest.err 1>&5
8737 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8739 if diff conftest.exp conftest.er2 >/dev/null; then
8740 lt_cv_prog_compiler_static_works=yes
8741 fi
8742 else
8743 lt_cv_prog_compiler_static_works=yes
8744 fi
8745 fi
8746 $RM -r conftest*
8747 LDFLAGS=$save_LDFLAGS
8748
8749 fi
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8751 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8752
8753 if test yes = "$lt_cv_prog_compiler_static_works"; then
8754 :
8755 else
8756 lt_prog_compiler_static=
8757 fi
8758
8759
8760
8761
8762
8763
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8767 if ${lt_cv_prog_compiler_c_o+:} false; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 lt_cv_prog_compiler_c_o=no
8771 $RM -r conftest 2>/dev/null
8772 mkdir conftest
8773 cd conftest
8774 mkdir out
8775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8776
8777 lt_compiler_flag="-o out/conftest2.$ac_objext"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 lt_compile=`echo "$ac_compile" | $SED \
8783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8785 -e 's:$: $lt_compiler_flag:'`
8786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8787 (eval "$lt_compile" 2>out/conftest.err)
8788 ac_status=$?
8789 cat out/conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8792 then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_c_o=yes
8799 fi
8800 fi
8801 chmod u+w . 2>&5
8802 $RM conftest*
8803 # SGI C++ compiler will create directory out/ii_files/ for
8804 # template instantiation
8805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8806 $RM out/* && rmdir out
8807 cd ..
8808 $RM -r conftest
8809 $RM conftest*
8810
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8813 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8814
8815
8816
8817
8818
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8822 if ${lt_cv_prog_compiler_c_o+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 lt_cv_prog_compiler_c_o=no
8826 $RM -r conftest 2>/dev/null
8827 mkdir conftest
8828 cd conftest
8829 mkdir out
8830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8831
8832 lt_compiler_flag="-o out/conftest2.$ac_objext"
8833 # Insert the option either (1) after the last *FLAGS variable, or
8834 # (2) before a word containing "conftest.", or (3) at the end.
8835 # Note that $ac_compile itself does not contain backslashes and begins
8836 # with a dollar sign (not a hyphen), so the echo should work correctly.
8837 lt_compile=`echo "$ac_compile" | $SED \
8838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8840 -e 's:$: $lt_compiler_flag:'`
8841 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8842 (eval "$lt_compile" 2>out/conftest.err)
8843 ac_status=$?
8844 cat out/conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8847 then
8848 # The compiler can only warn and ignore the option if not recognized
8849 # So say no if there are warnings
8850 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8853 lt_cv_prog_compiler_c_o=yes
8854 fi
8855 fi
8856 chmod u+w . 2>&5
8857 $RM conftest*
8858 # SGI C++ compiler will create directory out/ii_files/ for
8859 # template instantiation
8860 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8861 $RM out/* && rmdir out
8862 cd ..
8863 $RM -r conftest
8864 $RM conftest*
8865
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8869
8870
8871
8872
8873 hard_links=nottested
8874 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8875 # do not overwrite the value of need_locks provided by the user
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8877 $as_echo_n "checking if we can lock with hard links... " >&6; }
8878 hard_links=yes
8879 $RM conftest*
8880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8881 touch conftest.a
8882 ln conftest.a conftest.b 2>&5 || hard_links=no
8883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8885 $as_echo "$hard_links" >&6; }
8886 if test no = "$hard_links"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8888 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8889 need_locks=warn
8890 fi
8891 else
8892 need_locks=no
8893 fi
8894
8895
8896
8897
8898
8899
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8901 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8902
8903 runpath_var=
8904 allow_undefined_flag=
8905 always_export_symbols=no
8906 archive_cmds=
8907 archive_expsym_cmds=
8908 compiler_needs_object=no
8909 enable_shared_with_static_runtimes=no
8910 export_dynamic_flag_spec=
8911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8912 hardcode_automatic=no
8913 hardcode_direct=no
8914 hardcode_direct_absolute=no
8915 hardcode_libdir_flag_spec=
8916 hardcode_libdir_separator=
8917 hardcode_minus_L=no
8918 hardcode_shlibpath_var=unsupported
8919 inherit_rpath=no
8920 link_all_deplibs=unknown
8921 module_cmds=
8922 module_expsym_cmds=
8923 old_archive_from_new_cmds=
8924 old_archive_from_expsyms_cmds=
8925 thread_safe_flag_spec=
8926 whole_archive_flag_spec=
8927 # include_expsyms should be a list of space-separated symbols to be *always*
8928 # included in the symbol list
8929 include_expsyms=
8930 # exclude_expsyms can be an extended regexp of symbols to exclude
8931 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8932 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8933 # as well as any symbol that contains 'd'.
8934 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8936 # platforms (ab)use it in PIC code, but their linkers get confused if
8937 # the symbol is explicitly referenced. Since portable code cannot
8938 # rely on this symbol name, it's probably fine to never include it in
8939 # preloaded symbol tables.
8940 # Exclude shared library initialization/finalization symbols.
8941 extract_expsyms_cmds=
8942
8943 case $host_os in
8944 cygwin* | mingw* | pw32* | cegcc*)
8945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8946 # When not using gcc, we currently assume that we are using
8947 # Microsoft Visual C++.
8948 if test yes != "$GCC"; then
8949 with_gnu_ld=no
8950 fi
8951 ;;
8952 interix*)
8953 # we just hope/assume this is gcc and not c89 (= MSVC++)
8954 with_gnu_ld=yes
8955 ;;
8956 openbsd* | bitrig*)
8957 with_gnu_ld=no
8958 ;;
8959 esac
8960
8961 ld_shlibs=yes
8962
8963 # On some targets, GNU ld is compatible enough with the native linker
8964 # that we're better off using the native interface for both.
8965 lt_use_gnu_ld_interface=no
8966 if test yes = "$with_gnu_ld"; then
8967 case $host_os in
8968 aix*)
8969 # The AIX port of GNU ld has always aspired to compatibility
8970 # with the native linker. However, as the warning in the GNU ld
8971 # block says, versions before 2.19.5* couldn't really create working
8972 # shared libraries, regardless of the interface used.
8973 case `$LD -v 2>&1` in
8974 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8975 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8976 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8977 *)
8978 lt_use_gnu_ld_interface=yes
8979 ;;
8980 esac
8981 ;;
8982 *)
8983 lt_use_gnu_ld_interface=yes
8984 ;;
8985 esac
8986 fi
8987
8988 if test yes = "$lt_use_gnu_ld_interface"; then
8989 # If archive_cmds runs LD, not CC, wlarc should be empty
8990 wlarc='$wl'
8991
8992 # Set some defaults for GNU ld with shared library support. These
8993 # are reset later if shared libraries are not supported. Putting them
8994 # here allows them to be overridden if necessary.
8995 runpath_var=LD_RUN_PATH
8996 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8997 export_dynamic_flag_spec='$wl--export-dynamic'
8998 # ancient GNU ld didn't support --whole-archive et. al.
8999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9000 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9001 else
9002 whole_archive_flag_spec=
9003 fi
9004 supports_anon_versioning=no
9005 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9006 *GNU\ gold*) supports_anon_versioning=yes ;;
9007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9010 *\ 2.11.*) ;; # other 2.11 versions
9011 *) supports_anon_versioning=yes ;;
9012 esac
9013
9014 # See if GNU ld supports shared libraries.
9015 case $host_os in
9016 aix[3-9]*)
9017 # On AIX/PPC, the GNU linker is very broken
9018 if test ia64 != "$host_cpu"; then
9019 ld_shlibs=no
9020 cat <<_LT_EOF 1>&2
9021
9022 *** Warning: the GNU linker, at least up to release 2.19, is reported
9023 *** to be unable to reliably create shared libraries on AIX.
9024 *** Therefore, libtool is disabling shared libraries support. If you
9025 *** really care for shared libraries, you may want to install binutils
9026 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9027 *** You will then need to restart the configuration process.
9028
9029 _LT_EOF
9030 fi
9031 ;;
9032
9033 amigaos*)
9034 case $host_cpu in
9035 powerpc)
9036 # see comment about AmigaOS4 .so support
9037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9038 archive_expsym_cmds=''
9039 ;;
9040 m68k)
9041 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)'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_minus_L=yes
9044 ;;
9045 esac
9046 ;;
9047
9048 beos*)
9049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9050 allow_undefined_flag=unsupported
9051 # Joseph Beckenbach <[email protected]> says some releases of gcc
9052 # support --undefined. This deserves some investigation. FIXME
9053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9054 else
9055 ld_shlibs=no
9056 fi
9057 ;;
9058
9059 cygwin* | mingw* | pw32* | cegcc*)
9060 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9061 # as there is no search path for DLLs.
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 export_dynamic_flag_spec='$wl--export-all-symbols'
9064 allow_undefined_flag=unsupported
9065 always_export_symbols=no
9066 enable_shared_with_static_runtimes=yes
9067 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'
9068 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9069
9070 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9072 # If the export-symbols file already is a .def file, use it as
9073 # is; otherwise, prepend EXPORTS...
9074 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9075 cp $export_symbols $output_objdir/$soname.def;
9076 else
9077 echo EXPORTS > $output_objdir/$soname.def;
9078 cat $export_symbols >> $output_objdir/$soname.def;
9079 fi~
9080 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9081 else
9082 ld_shlibs=no
9083 fi
9084 ;;
9085
9086 haiku*)
9087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9088 link_all_deplibs=yes
9089 ;;
9090
9091 os2*)
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 hardcode_minus_L=yes
9094 allow_undefined_flag=unsupported
9095 shrext_cmds=.dll
9096 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9097 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9098 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9099 $ECHO EXPORTS >> $output_objdir/$libname.def~
9100 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9101 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9102 emximp -o $lib $output_objdir/$libname.def'
9103 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9104 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9105 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9106 $ECHO EXPORTS >> $output_objdir/$libname.def~
9107 prefix_cmds="$SED"~
9108 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9109 prefix_cmds="$prefix_cmds -e 1d";
9110 fi~
9111 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9112 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9113 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9114 emximp -o $lib $output_objdir/$libname.def'
9115 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9116 enable_shared_with_static_runtimes=yes
9117 ;;
9118
9119 interix[3-9]*)
9120 hardcode_direct=no
9121 hardcode_shlibpath_var=no
9122 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9123 export_dynamic_flag_spec='$wl-E'
9124 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9125 # Instead, shared libraries are loaded at an image base (0x10000000 by
9126 # default) and relocated if they conflict, which is a slow very memory
9127 # consuming and fragmenting process. To avoid this, we pick a random,
9128 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9129 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9130 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9131 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'
9132 ;;
9133
9134 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9135 tmp_diet=no
9136 if test linux-dietlibc = "$host_os"; then
9137 case $cc_basename in
9138 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9139 esac
9140 fi
9141 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9142 && test no = "$tmp_diet"
9143 then
9144 tmp_addflag=' $pic_flag'
9145 tmp_sharedflag='-shared'
9146 case $cc_basename,$host_cpu in
9147 pgcc*) # Portland Group C compiler
9148 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'
9149 tmp_addflag=' $pic_flag'
9150 ;;
9151 pgf77* | pgf90* | pgf95* | pgfortran*)
9152 # Portland Group f77 and f90 compilers
9153 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'
9154 tmp_addflag=' $pic_flag -Mnomain' ;;
9155 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9156 tmp_addflag=' -i_dynamic' ;;
9157 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9158 tmp_addflag=' -i_dynamic -nofor_main' ;;
9159 ifc* | ifort*) # Intel Fortran compiler
9160 tmp_addflag=' -nofor_main' ;;
9161 lf95*) # Lahey Fortran 8.1
9162 whole_archive_flag_spec=
9163 tmp_sharedflag='--shared' ;;
9164 nagfor*) # NAGFOR 5.3
9165 tmp_sharedflag='-Wl,-shared' ;;
9166 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9167 tmp_sharedflag='-qmkshrobj'
9168 tmp_addflag= ;;
9169 nvcc*) # Cuda Compiler Driver 2.2
9170 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'
9171 compiler_needs_object=yes
9172 ;;
9173 esac
9174 case `$CC -V 2>&1 | sed 5q` in
9175 *Sun\ C*) # Sun C 5.9
9176 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'
9177 compiler_needs_object=yes
9178 tmp_sharedflag='-G' ;;
9179 *Sun\ F*) # Sun Fortran 8.3
9180 tmp_sharedflag='-G' ;;
9181 esac
9182 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9183
9184 if test yes = "$supports_anon_versioning"; then
9185 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9186 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9187 echo "local: *; };" >> $output_objdir/$libname.ver~
9188 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9189 fi
9190
9191 case $cc_basename in
9192 tcc*)
9193 export_dynamic_flag_spec='-rdynamic'
9194 ;;
9195 xlf* | bgf* | bgxlf* | mpixlf*)
9196 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9197 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9199 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9200 if test yes = "$supports_anon_versioning"; then
9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 echo "local: *; };" >> $output_objdir/$libname.ver~
9204 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9205 fi
9206 ;;
9207 esac
9208 else
9209 ld_shlibs=no
9210 fi
9211 ;;
9212
9213 netbsd*)
9214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9215 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9216 wlarc=
9217 else
9218 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9219 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9220 fi
9221 ;;
9222
9223 solaris*)
9224 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9225 ld_shlibs=no
9226 cat <<_LT_EOF 1>&2
9227
9228 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9229 *** create shared libraries on Solaris systems. Therefore, libtool
9230 *** is disabling shared libraries support. We urge you to upgrade GNU
9231 *** binutils to release 2.9.1 or newer. Another option is to modify
9232 *** your PATH or compiler configuration so that the native linker is
9233 *** used, and then restart.
9234
9235 _LT_EOF
9236 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9238 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9239 else
9240 ld_shlibs=no
9241 fi
9242 ;;
9243
9244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9245 case `$LD -v 2>&1` in
9246 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9247 ld_shlibs=no
9248 cat <<_LT_EOF 1>&2
9249
9250 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9251 *** reliably create shared libraries on SCO systems. Therefore, libtool
9252 *** is disabling shared libraries support. We urge you to upgrade GNU
9253 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9254 *** your PATH or compiler configuration so that the native linker is
9255 *** used, and then restart.
9256
9257 _LT_EOF
9258 ;;
9259 *)
9260 # For security reasons, it is highly recommended that you always
9261 # use absolute paths for naming shared libraries, and exclude the
9262 # DT_RUNPATH tag from executables and libraries. But doing so
9263 # requires that you compile everything twice, which is a pain.
9264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9265 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9268 else
9269 ld_shlibs=no
9270 fi
9271 ;;
9272 esac
9273 ;;
9274
9275 sunos4*)
9276 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9277 wlarc=
9278 hardcode_direct=yes
9279 hardcode_shlibpath_var=no
9280 ;;
9281
9282 *)
9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290 esac
9291
9292 if test no = "$ld_shlibs"; then
9293 runpath_var=
9294 hardcode_libdir_flag_spec=
9295 export_dynamic_flag_spec=
9296 whole_archive_flag_spec=
9297 fi
9298 else
9299 # PORTME fill in a description of your system's linker (not GNU ld)
9300 case $host_os in
9301 aix3*)
9302 allow_undefined_flag=unsupported
9303 always_export_symbols=yes
9304 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'
9305 # Note: this linker hardcodes the directories in LIBPATH if there
9306 # are no directories specified by -L.
9307 hardcode_minus_L=yes
9308 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9309 # Neither direct hardcoding nor static linking is supported with a
9310 # broken collect2.
9311 hardcode_direct=unsupported
9312 fi
9313 ;;
9314
9315 aix[4-9]*)
9316 if test ia64 = "$host_cpu"; then
9317 # On IA64, the linker does run time linking by default, so we don't
9318 # have to do anything special.
9319 aix_use_runtimelinking=no
9320 exp_sym_flag='-Bexport'
9321 no_entry_flag=
9322 else
9323 # If we're using GNU nm, then we don't want the "-C" option.
9324 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9325 # Without the "-l" option, or with the "-B" option, AIX nm treats
9326 # weak defined symbols like other global defined symbols, whereas
9327 # GNU nm marks them as "W".
9328 # While the 'weak' keyword is ignored in the Export File, we need
9329 # it in the Import File for the 'aix-soname' feature, so we have
9330 # to replace the "-B" option with "-P" for AIX nm.
9331 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9332 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'
9333 else
9334 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9335 fi
9336 aix_use_runtimelinking=no
9337
9338 # Test if we are trying to use run time linking or normal
9339 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9340 # have runtime linking enabled, and use it for executables.
9341 # For shared libraries, we enable/disable runtime linking
9342 # depending on the kind of the shared library created -
9343 # when "with_aix_soname,aix_use_runtimelinking" is:
9344 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9345 # "aix,yes" lib.so shared, rtl:yes, for executables
9346 # lib.a static archive
9347 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9348 # lib.a(lib.so.V) shared, rtl:no, for executables
9349 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9350 # lib.a(lib.so.V) shared, rtl:no
9351 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9352 # lib.a static archive
9353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9354 for ld_flag in $LDFLAGS; do
9355 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9356 aix_use_runtimelinking=yes
9357 break
9358 fi
9359 done
9360 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9361 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9362 # so we don't have lib.a shared libs to link our executables.
9363 # We have to force runtime linking in this case.
9364 aix_use_runtimelinking=yes
9365 LDFLAGS="$LDFLAGS -Wl,-brtl"
9366 fi
9367 ;;
9368 esac
9369
9370 exp_sym_flag='-bexport'
9371 no_entry_flag='-bnoentry'
9372 fi
9373
9374 # When large executables or shared objects are built, AIX ld can
9375 # have problems creating the table of contents. If linking a library
9376 # or program results in "error TOC overflow" add -mminimal-toc to
9377 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9378 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9379
9380 archive_cmds=''
9381 hardcode_direct=yes
9382 hardcode_direct_absolute=yes
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 file_list_spec='$wl-f,'
9386 case $with_aix_soname,$aix_use_runtimelinking in
9387 aix,*) ;; # traditional, no import file
9388 svr4,* | *,yes) # use import file
9389 # The Import File defines what to hardcode.
9390 hardcode_direct=no
9391 hardcode_direct_absolute=no
9392 ;;
9393 esac
9394
9395 if test yes = "$GCC"; then
9396 case $host_os in aix4.[012]|aix4.[012].*)
9397 # We only want to do this on AIX 4.2 and lower, the check
9398 # below for broken collect2 doesn't work under 4.3+
9399 collect2name=`$CC -print-prog-name=collect2`
9400 if test -f "$collect2name" &&
9401 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9402 then
9403 # We have reworked collect2
9404 :
9405 else
9406 # We have old collect2
9407 hardcode_direct=unsupported
9408 # It fails to find uninstalled libraries when the uninstalled
9409 # path is not listed in the libpath. Setting hardcode_minus_L
9410 # to unsupported forces relinking
9411 hardcode_minus_L=yes
9412 hardcode_libdir_flag_spec='-L$libdir'
9413 hardcode_libdir_separator=
9414 fi
9415 ;;
9416 esac
9417 shared_flag='-shared'
9418 if test yes = "$aix_use_runtimelinking"; then
9419 shared_flag="$shared_flag "'$wl-G'
9420 fi
9421 # Need to ensure runtime linking is disabled for the traditional
9422 # shared library, or the linker may eventually find shared libraries
9423 # /with/ Import File - we do not want to mix them.
9424 shared_flag_aix='-shared'
9425 shared_flag_svr4='-shared $wl-G'
9426 else
9427 # not using gcc
9428 if test ia64 = "$host_cpu"; then
9429 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9430 # chokes on -Wl,-G. The following line is correct:
9431 shared_flag='-G'
9432 else
9433 if test yes = "$aix_use_runtimelinking"; then
9434 shared_flag='$wl-G'
9435 else
9436 shared_flag='$wl-bM:SRE'
9437 fi
9438 shared_flag_aix='$wl-bM:SRE'
9439 shared_flag_svr4='$wl-G'
9440 fi
9441 fi
9442
9443 export_dynamic_flag_spec='$wl-bexpall'
9444 # It seems that -bexpall does not export symbols beginning with
9445 # underscore (_), so it is better to generate a list of symbols to export.
9446 always_export_symbols=yes
9447 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9448 # Warning - without using the other runtime loading flags (-brtl),
9449 # -berok will link without error, but may produce a broken library.
9450 allow_undefined_flag='-berok'
9451 # Determine the default libpath from the value encoded in an
9452 # empty executable.
9453 if test set = "${lt_cv_aix_libpath+set}"; then
9454 aix_libpath=$lt_cv_aix_libpath
9455 else
9456 if ${lt_cv_aix_libpath_+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9461
9462 int
9463 main ()
9464 {
9465
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 if ac_fn_c_try_link "$LINENO"; then :
9471
9472 lt_aix_libpath_sed='
9473 /Import File Strings/,/^$/ {
9474 /^0/ {
9475 s/^0 *\([^ ]*\) *$/\1/
9476 p
9477 }
9478 }'
9479 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9480 # Check for a 64-bit object if we didn't find anything.
9481 if test -z "$lt_cv_aix_libpath_"; then
9482 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9483 fi
9484 fi
9485 rm -f core conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487 if test -z "$lt_cv_aix_libpath_"; then
9488 lt_cv_aix_libpath_=/usr/lib:/lib
9489 fi
9490
9491 fi
9492
9493 aix_libpath=$lt_cv_aix_libpath_
9494 fi
9495
9496 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9497 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
9498 else
9499 if test ia64 = "$host_cpu"; then
9500 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9501 allow_undefined_flag="-z nodefs"
9502 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"
9503 else
9504 # Determine the default libpath from the value encoded in an
9505 # empty executable.
9506 if test set = "${lt_cv_aix_libpath+set}"; then
9507 aix_libpath=$lt_cv_aix_libpath
9508 else
9509 if ${lt_cv_aix_libpath_+:} false; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515 int
9516 main ()
9517 {
9518
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524
9525 lt_aix_libpath_sed='
9526 /Import File Strings/,/^$/ {
9527 /^0/ {
9528 s/^0 *\([^ ]*\) *$/\1/
9529 p
9530 }
9531 }'
9532 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9533 # Check for a 64-bit object if we didn't find anything.
9534 if test -z "$lt_cv_aix_libpath_"; then
9535 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9536 fi
9537 fi
9538 rm -f core conftest.err conftest.$ac_objext \
9539 conftest$ac_exeext conftest.$ac_ext
9540 if test -z "$lt_cv_aix_libpath_"; then
9541 lt_cv_aix_libpath_=/usr/lib:/lib
9542 fi
9543
9544 fi
9545
9546 aix_libpath=$lt_cv_aix_libpath_
9547 fi
9548
9549 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9550 # Warning - without using the other run time loading flags,
9551 # -berok will link without error, but may produce a broken library.
9552 no_undefined_flag=' $wl-bernotok'
9553 allow_undefined_flag=' $wl-berok'
9554 if test yes = "$with_gnu_ld"; then
9555 # We only use this code for GNU lds that support --whole-archive.
9556 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9557 else
9558 # Exported symbols can be pulled into shared objects from archives
9559 whole_archive_flag_spec='$convenience'
9560 fi
9561 archive_cmds_need_lc=yes
9562 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9563 # -brtl affects multiple linker settings, -berok does not and is overridden later
9564 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9565 if test svr4 != "$with_aix_soname"; then
9566 # This is similar to how AIX traditionally builds its shared libraries.
9567 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'
9568 fi
9569 if test aix != "$with_aix_soname"; then
9570 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'
9571 else
9572 # used by -dlpreopen to get the symbols
9573 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9574 fi
9575 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9576 fi
9577 fi
9578 ;;
9579
9580 amigaos*)
9581 case $host_cpu in
9582 powerpc)
9583 # see comment about AmigaOS4 .so support
9584 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9585 archive_expsym_cmds=''
9586 ;;
9587 m68k)
9588 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)'
9589 hardcode_libdir_flag_spec='-L$libdir'
9590 hardcode_minus_L=yes
9591 ;;
9592 esac
9593 ;;
9594
9595 bsdi[45]*)
9596 export_dynamic_flag_spec=-rdynamic
9597 ;;
9598
9599 cygwin* | mingw* | pw32* | cegcc*)
9600 # When not using gcc, we currently assume that we are using
9601 # Microsoft Visual C++.
9602 # hardcode_libdir_flag_spec is actually meaningless, as there is
9603 # no search path for DLLs.
9604 case $cc_basename in
9605 cl*)
9606 # Native MSVC
9607 hardcode_libdir_flag_spec=' '
9608 allow_undefined_flag=unsupported
9609 always_export_symbols=yes
9610 file_list_spec='@'
9611 # Tell ltmain to make .lib files, not .a files.
9612 libext=lib
9613 # Tell ltmain to make .dll files, not .so files.
9614 shrext_cmds=.dll
9615 # FIXME: Setting linknames here is a bad hack.
9616 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9617 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9618 cp "$export_symbols" "$output_objdir/$soname.def";
9619 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9620 else
9621 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9622 fi~
9623 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9624 linknames='
9625 # The linker will not automatically build a static lib if we build a DLL.
9626 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9627 enable_shared_with_static_runtimes=yes
9628 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9629 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9630 # Don't use ranlib
9631 old_postinstall_cmds='chmod 644 $oldlib'
9632 postlink_cmds='lt_outputfile="@OUTPUT@"~
9633 lt_tool_outputfile="@TOOL_OUTPUT@"~
9634 case $lt_outputfile in
9635 *.exe|*.EXE) ;;
9636 *)
9637 lt_outputfile=$lt_outputfile.exe
9638 lt_tool_outputfile=$lt_tool_outputfile.exe
9639 ;;
9640 esac~
9641 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9642 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9643 $RM "$lt_outputfile.manifest";
9644 fi'
9645 ;;
9646 *)
9647 # Assume MSVC wrapper
9648 hardcode_libdir_flag_spec=' '
9649 allow_undefined_flag=unsupported
9650 # Tell ltmain to make .lib files, not .a files.
9651 libext=lib
9652 # Tell ltmain to make .dll files, not .so files.
9653 shrext_cmds=.dll
9654 # FIXME: Setting linknames here is a bad hack.
9655 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9656 # The linker will automatically build a .lib file if we build a DLL.
9657 old_archive_from_new_cmds='true'
9658 # FIXME: Should let the user specify the lib program.
9659 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9660 enable_shared_with_static_runtimes=yes
9661 ;;
9662 esac
9663 ;;
9664
9665 darwin* | rhapsody*)
9666
9667
9668 archive_cmds_need_lc=no
9669 hardcode_direct=no
9670 hardcode_automatic=yes
9671 hardcode_shlibpath_var=unsupported
9672 if test yes = "$lt_cv_ld_force_load"; then
9673 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\"`'
9674
9675 else
9676 whole_archive_flag_spec=''
9677 fi
9678 link_all_deplibs=yes
9679 allow_undefined_flag=$_lt_dar_allow_undefined
9680 case $cc_basename in
9681 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9682 *) _lt_dar_can_shared=$GCC ;;
9683 esac
9684 if test yes = "$_lt_dar_can_shared"; then
9685 output_verbose_link_cmd=func_echo_all
9686 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9687 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9688 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"
9689 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"
9690
9691 else
9692 ld_shlibs=no
9693 fi
9694
9695 ;;
9696
9697 dgux*)
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_libdir_flag_spec='-L$libdir'
9700 hardcode_shlibpath_var=no
9701 ;;
9702
9703 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9704 # support. Future versions do this automatically, but an explicit c++rt0.o
9705 # does not break anything, and helps significantly (at the cost of a little
9706 # extra space).
9707 freebsd2.2*)
9708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9709 hardcode_libdir_flag_spec='-R$libdir'
9710 hardcode_direct=yes
9711 hardcode_shlibpath_var=no
9712 ;;
9713
9714 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9715 freebsd2.*)
9716 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_direct=yes
9718 hardcode_minus_L=yes
9719 hardcode_shlibpath_var=no
9720 ;;
9721
9722 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9723 freebsd* | dragonfly*)
9724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9725 hardcode_libdir_flag_spec='-R$libdir'
9726 hardcode_direct=yes
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 hpux9*)
9731 if test yes = "$GCC"; then
9732 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'
9733 else
9734 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'
9735 fi
9736 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9737 hardcode_libdir_separator=:
9738 hardcode_direct=yes
9739
9740 # hardcode_minus_L: Not really in the search PATH,
9741 # but as the default location of the library.
9742 hardcode_minus_L=yes
9743 export_dynamic_flag_spec='$wl-E'
9744 ;;
9745
9746 hpux10*)
9747 if test yes,no = "$GCC,$with_gnu_ld"; then
9748 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9749 else
9750 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9751 fi
9752 if test no = "$with_gnu_ld"; then
9753 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9754 hardcode_libdir_separator=:
9755 hardcode_direct=yes
9756 hardcode_direct_absolute=yes
9757 export_dynamic_flag_spec='$wl-E'
9758 # hardcode_minus_L: Not really in the search PATH,
9759 # but as the default location of the library.
9760 hardcode_minus_L=yes
9761 fi
9762 ;;
9763
9764 hpux11*)
9765 if test yes,no = "$GCC,$with_gnu_ld"; then
9766 case $host_cpu in
9767 hppa*64*)
9768 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 ;;
9770 ia64*)
9771 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9772 ;;
9773 *)
9774 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9775 ;;
9776 esac
9777 else
9778 case $host_cpu in
9779 hppa*64*)
9780 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9781 ;;
9782 ia64*)
9783 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9784 ;;
9785 *)
9786
9787 # Older versions of the 11.00 compiler do not understand -b yet
9788 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9790 $as_echo_n "checking if $CC understands -b... " >&6; }
9791 if ${lt_cv_prog_compiler__b+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 lt_cv_prog_compiler__b=no
9795 save_LDFLAGS=$LDFLAGS
9796 LDFLAGS="$LDFLAGS -b"
9797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9799 # The linker can only warn and ignore the option if not recognized
9800 # So say no if there are warnings
9801 if test -s conftest.err; then
9802 # Append any errors to the config.log.
9803 cat conftest.err 1>&5
9804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9806 if diff conftest.exp conftest.er2 >/dev/null; then
9807 lt_cv_prog_compiler__b=yes
9808 fi
9809 else
9810 lt_cv_prog_compiler__b=yes
9811 fi
9812 fi
9813 $RM -r conftest*
9814 LDFLAGS=$save_LDFLAGS
9815
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9818 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9819
9820 if test yes = "$lt_cv_prog_compiler__b"; then
9821 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9822 else
9823 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9824 fi
9825
9826 ;;
9827 esac
9828 fi
9829 if test no = "$with_gnu_ld"; then
9830 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9831 hardcode_libdir_separator=:
9832
9833 case $host_cpu in
9834 hppa*64*|ia64*)
9835 hardcode_direct=no
9836 hardcode_shlibpath_var=no
9837 ;;
9838 *)
9839 hardcode_direct=yes
9840 hardcode_direct_absolute=yes
9841 export_dynamic_flag_spec='$wl-E'
9842
9843 # hardcode_minus_L: Not really in the search PATH,
9844 # but as the default location of the library.
9845 hardcode_minus_L=yes
9846 ;;
9847 esac
9848 fi
9849 ;;
9850
9851 irix5* | irix6* | nonstopux*)
9852 if test yes = "$GCC"; then
9853 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'
9854 # Try to use the -exported_symbol ld option, if it does not
9855 # work, assume that -exports_file does not work either and
9856 # implicitly export all symbols.
9857 # This should be the same for all languages, so no per-tag cache variable.
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9859 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9860 if ${lt_cv_irix_exported_symbol+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862 else
9863 save_LDFLAGS=$LDFLAGS
9864 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 int foo (void) { return 0; }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870 lt_cv_irix_exported_symbol=yes
9871 else
9872 lt_cv_irix_exported_symbol=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 LDFLAGS=$save_LDFLAGS
9877 fi
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9879 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9880 if test yes = "$lt_cv_irix_exported_symbol"; then
9881 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'
9882 fi
9883 else
9884 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'
9885 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'
9886 fi
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9889 hardcode_libdir_separator=:
9890 inherit_rpath=yes
9891 link_all_deplibs=yes
9892 ;;
9893
9894 linux*)
9895 case $cc_basename in
9896 tcc*)
9897 # Fabrice Bellard et al's Tiny C Compiler
9898 ld_shlibs=yes
9899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9900 ;;
9901 esac
9902 ;;
9903
9904 netbsd*)
9905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9907 else
9908 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9909 fi
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 hardcode_direct=yes
9912 hardcode_shlibpath_var=no
9913 ;;
9914
9915 newsos6)
9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_direct=yes
9918 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9919 hardcode_libdir_separator=:
9920 hardcode_shlibpath_var=no
9921 ;;
9922
9923 *nto* | *qnx*)
9924 ;;
9925
9926 openbsd* | bitrig*)
9927 if test -f /usr/libexec/ld.so; then
9928 hardcode_direct=yes
9929 hardcode_shlibpath_var=no
9930 hardcode_direct_absolute=yes
9931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9933 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9934 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9935 export_dynamic_flag_spec='$wl-E'
9936 else
9937 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9939 fi
9940 else
9941 ld_shlibs=no
9942 fi
9943 ;;
9944
9945 os2*)
9946 hardcode_libdir_flag_spec='-L$libdir'
9947 hardcode_minus_L=yes
9948 allow_undefined_flag=unsupported
9949 shrext_cmds=.dll
9950 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9951 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9952 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9953 $ECHO EXPORTS >> $output_objdir/$libname.def~
9954 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9955 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9956 emximp -o $lib $output_objdir/$libname.def'
9957 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9958 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9959 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9960 $ECHO EXPORTS >> $output_objdir/$libname.def~
9961 prefix_cmds="$SED"~
9962 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9963 prefix_cmds="$prefix_cmds -e 1d";
9964 fi~
9965 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9966 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9967 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9968 emximp -o $lib $output_objdir/$libname.def'
9969 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9970 enable_shared_with_static_runtimes=yes
9971 ;;
9972
9973 osf3*)
9974 if test yes = "$GCC"; then
9975 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9976 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'
9977 else
9978 allow_undefined_flag=' -expect_unresolved \*'
9979 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'
9980 fi
9981 archive_cmds_need_lc='no'
9982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9983 hardcode_libdir_separator=:
9984 ;;
9985
9986 osf4* | osf5*) # as osf3* with the addition of -msym flag
9987 if test yes = "$GCC"; then
9988 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9989 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'
9990 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9991 else
9992 allow_undefined_flag=' -expect_unresolved \*'
9993 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'
9994 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~
9995 $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'
9996
9997 # Both c and cxx compiler support -rpath directly
9998 hardcode_libdir_flag_spec='-rpath $libdir'
9999 fi
10000 archive_cmds_need_lc='no'
10001 hardcode_libdir_separator=:
10002 ;;
10003
10004 solaris*)
10005 no_undefined_flag=' -z defs'
10006 if test yes = "$GCC"; then
10007 wlarc='$wl'
10008 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10010 $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'
10011 else
10012 case `$CC -V 2>&1` in
10013 *"Compilers 5.0"*)
10014 wlarc=''
10015 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10017 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10018 ;;
10019 *)
10020 wlarc='$wl'
10021 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10023 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10024 ;;
10025 esac
10026 fi
10027 hardcode_libdir_flag_spec='-R$libdir'
10028 hardcode_shlibpath_var=no
10029 case $host_os in
10030 solaris2.[0-5] | solaris2.[0-5].*) ;;
10031 *)
10032 # The compiler driver will combine and reorder linker options,
10033 # but understands '-z linker_flag'. GCC discards it without '$wl',
10034 # but is careful enough not to reorder.
10035 # Supported since Solaris 2.6 (maybe 2.5.1?)
10036 if test yes = "$GCC"; then
10037 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10038 else
10039 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10040 fi
10041 ;;
10042 esac
10043 link_all_deplibs=yes
10044 ;;
10045
10046 sunos4*)
10047 if test sequent = "$host_vendor"; then
10048 # Use $CC to link under sequent, because it throws in some extra .o
10049 # files that make .init and .fini sections work.
10050 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10051 else
10052 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10053 fi
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_direct=yes
10056 hardcode_minus_L=yes
10057 hardcode_shlibpath_var=no
10058 ;;
10059
10060 sysv4)
10061 case $host_vendor in
10062 sni)
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_direct=yes # is this really true???
10065 ;;
10066 siemens)
10067 ## LD is ld it makes a PLAMLIB
10068 ## CC just makes a GrossModule.
10069 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10070 reload_cmds='$CC -r -o $output$reload_objs'
10071 hardcode_direct=no
10072 ;;
10073 motorola)
10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10076 ;;
10077 esac
10078 runpath_var='LD_RUN_PATH'
10079 hardcode_shlibpath_var=no
10080 ;;
10081
10082 sysv4.3*)
10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084 hardcode_shlibpath_var=no
10085 export_dynamic_flag_spec='-Bexport'
10086 ;;
10087
10088 sysv4*MP*)
10089 if test -d /usr/nec; then
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_shlibpath_var=no
10092 runpath_var=LD_RUN_PATH
10093 hardcode_runpath_var=yes
10094 ld_shlibs=yes
10095 fi
10096 ;;
10097
10098 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10099 no_undefined_flag='$wl-z,text'
10100 archive_cmds_need_lc=no
10101 hardcode_shlibpath_var=no
10102 runpath_var='LD_RUN_PATH'
10103
10104 if test yes = "$GCC"; then
10105 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10106 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 else
10108 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 fi
10111 ;;
10112
10113 sysv5* | sco3.2v5* | sco5v6*)
10114 # Note: We CANNOT use -z defs as we might desire, because we do not
10115 # link with -lc, and that would cause any symbols used from libc to
10116 # always be unresolved, which means just about no library would
10117 # ever link correctly. If we're not using GNU ld we use -z text
10118 # though, which does catch some bad symbols but isn't as heavy-handed
10119 # as -z defs.
10120 no_undefined_flag='$wl-z,text'
10121 allow_undefined_flag='$wl-z,nodefs'
10122 archive_cmds_need_lc=no
10123 hardcode_shlibpath_var=no
10124 hardcode_libdir_flag_spec='$wl-R,$libdir'
10125 hardcode_libdir_separator=':'
10126 link_all_deplibs=yes
10127 export_dynamic_flag_spec='$wl-Bexport'
10128 runpath_var='LD_RUN_PATH'
10129
10130 if test yes = "$GCC"; then
10131 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 else
10134 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136 fi
10137 ;;
10138
10139 uts4*)
10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10141 hardcode_libdir_flag_spec='-L$libdir'
10142 hardcode_shlibpath_var=no
10143 ;;
10144
10145 *)
10146 ld_shlibs=no
10147 ;;
10148 esac
10149
10150 if test sni = "$host_vendor"; then
10151 case $host in
10152 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10153 export_dynamic_flag_spec='$wl-Blargedynsym'
10154 ;;
10155 esac
10156 fi
10157 fi
10158
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10160 $as_echo "$ld_shlibs" >&6; }
10161 test no = "$ld_shlibs" && can_build_shared=no
10162
10163 with_gnu_ld=$with_gnu_ld
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179 #
10180 # Do we need to explicitly link libc?
10181 #
10182 case "x$archive_cmds_need_lc" in
10183 x|xyes)
10184 # Assume -lc should be added
10185 archive_cmds_need_lc=yes
10186
10187 if test yes,yes = "$GCC,$enable_shared"; then
10188 case $archive_cmds in
10189 *'~'*)
10190 # FIXME: we may have to deal with multi-command sequences.
10191 ;;
10192 '$CC '*)
10193 # Test whether the compiler implicitly links with -lc since on some
10194 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10195 # to ld, don't add -lc before -lgcc.
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10197 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10198 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 $RM conftest*
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203
10204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10205 (eval $ac_compile) 2>&5
10206 ac_status=$?
10207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208 test $ac_status = 0; } 2>conftest.err; then
10209 soname=conftest
10210 lib=conftest
10211 libobjs=conftest.$ac_objext
10212 deplibs=
10213 wl=$lt_prog_compiler_wl
10214 pic_flag=$lt_prog_compiler_pic
10215 compiler_flags=-v
10216 linker_flags=-v
10217 verstring=
10218 output_objdir=.
10219 libname=conftest
10220 lt_save_allow_undefined_flag=$allow_undefined_flag
10221 allow_undefined_flag=
10222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10223 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10224 ac_status=$?
10225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10226 test $ac_status = 0; }
10227 then
10228 lt_cv_archive_cmds_need_lc=no
10229 else
10230 lt_cv_archive_cmds_need_lc=yes
10231 fi
10232 allow_undefined_flag=$lt_save_allow_undefined_flag
10233 else
10234 cat conftest.err 1>&5
10235 fi
10236 $RM conftest*
10237
10238 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10240 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10241 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10242 ;;
10243 esac
10244 fi
10245 ;;
10246 esac
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10400 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10401
10402 if test yes = "$GCC"; then
10403 case $host_os in
10404 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10405 *) lt_awk_arg='/^libraries:/' ;;
10406 esac
10407 case $host_os in
10408 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10409 *) lt_sed_strip_eq='s|=/|/|g' ;;
10410 esac
10411 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10412 case $lt_search_path_spec in
10413 *\;*)
10414 # if the path contains ";" then we assume it to be the separator
10415 # otherwise default to the standard path separator (i.e. ":") - it is
10416 # assumed that no part of a normal pathname contains ";" but that should
10417 # okay in the real world where ";" in dirpaths is itself problematic.
10418 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10419 ;;
10420 *)
10421 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10422 ;;
10423 esac
10424 # Ok, now we have the path, separated by spaces, we can step through it
10425 # and add multilib dir if necessary...
10426 lt_tmp_lt_search_path_spec=
10427 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10428 # ...but if some path component already ends with the multilib dir we assume
10429 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10430 case "$lt_multi_os_dir; $lt_search_path_spec " in
10431 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10432 lt_multi_os_dir=
10433 ;;
10434 esac
10435 for lt_sys_path in $lt_search_path_spec; do
10436 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10437 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10438 elif test -n "$lt_multi_os_dir"; then
10439 test -d "$lt_sys_path" && \
10440 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10441 fi
10442 done
10443 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10444 BEGIN {RS = " "; FS = "/|\n";} {
10445 lt_foo = "";
10446 lt_count = 0;
10447 for (lt_i = NF; lt_i > 0; lt_i--) {
10448 if ($lt_i != "" && $lt_i != ".") {
10449 if ($lt_i == "..") {
10450 lt_count++;
10451 } else {
10452 if (lt_count == 0) {
10453 lt_foo = "/" $lt_i lt_foo;
10454 } else {
10455 lt_count--;
10456 }
10457 }
10458 }
10459 }
10460 if (lt_foo != "") { lt_freq[lt_foo]++; }
10461 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10462 }'`
10463 # AWK program above erroneously prepends '/' to C:/dos/paths
10464 # for these hosts.
10465 case $host_os in
10466 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10467 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10468 esac
10469 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10470 else
10471 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10472 fi
10473 library_names_spec=
10474 libname_spec='lib$name'
10475 soname_spec=
10476 shrext_cmds=.so
10477 postinstall_cmds=
10478 postuninstall_cmds=
10479 finish_cmds=
10480 finish_eval=
10481 shlibpath_var=
10482 shlibpath_overrides_runpath=unknown
10483 version_type=none
10484 dynamic_linker="$host_os ld.so"
10485 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10486 need_lib_prefix=unknown
10487 hardcode_into_libs=no
10488
10489 # when you set need_version to no, make sure it does not cause -set_version
10490 # flags to be left without arguments
10491 need_version=unknown
10492
10493
10494
10495 case $host_os in
10496 aix3*)
10497 version_type=linux # correct to gnu/linux during the next big refactor
10498 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10499 shlibpath_var=LIBPATH
10500
10501 # AIX 3 has no versioning support, so we append a major version to the name.
10502 soname_spec='$libname$release$shared_ext$major'
10503 ;;
10504
10505 aix[4-9]*)
10506 version_type=linux # correct to gnu/linux during the next big refactor
10507 need_lib_prefix=no
10508 need_version=no
10509 hardcode_into_libs=yes
10510 if test ia64 = "$host_cpu"; then
10511 # AIX 5 supports IA64
10512 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10513 shlibpath_var=LD_LIBRARY_PATH
10514 else
10515 # With GCC up to 2.95.x, collect2 would create an import file
10516 # for dependence libraries. The import file would start with
10517 # the line '#! .'. This would cause the generated library to
10518 # depend on '.', always an invalid library. This was fixed in
10519 # development snapshots of GCC prior to 3.0.
10520 case $host_os in
10521 aix4 | aix4.[01] | aix4.[01].*)
10522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10523 echo ' yes '
10524 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10525 :
10526 else
10527 can_build_shared=no
10528 fi
10529 ;;
10530 esac
10531 # Using Import Files as archive members, it is possible to support
10532 # filename-based versioning of shared library archives on AIX. While
10533 # this would work for both with and without runtime linking, it will
10534 # prevent static linking of such archives. So we do filename-based
10535 # shared library versioning with .so extension only, which is used
10536 # when both runtime linking and shared linking is enabled.
10537 # Unfortunately, runtime linking may impact performance, so we do
10538 # not want this to be the default eventually. Also, we use the
10539 # versioned .so libs for executables only if there is the -brtl
10540 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10541 # To allow for filename-based versioning support, we need to create
10542 # libNAME.so.V as an archive file, containing:
10543 # *) an Import File, referring to the versioned filename of the
10544 # archive as well as the shared archive member, telling the
10545 # bitwidth (32 or 64) of that shared object, and providing the
10546 # list of exported symbols of that shared object, eventually
10547 # decorated with the 'weak' keyword
10548 # *) the shared object with the F_LOADONLY flag set, to really avoid
10549 # it being seen by the linker.
10550 # At run time we better use the real file rather than another symlink,
10551 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10552
10553 case $with_aix_soname,$aix_use_runtimelinking in
10554 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10555 # soname into executable. Probably we can add versioning support to
10556 # collect2, so additional links can be useful in future.
10557 aix,yes) # traditional libtool
10558 dynamic_linker='AIX unversionable lib.so'
10559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10560 # instead of lib<name>.a to let people know that these are not
10561 # typical AIX shared libraries.
10562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10563 ;;
10564 aix,no) # traditional AIX only
10565 dynamic_linker='AIX lib.a(lib.so.V)'
10566 # We preserve .a as extension for shared libraries through AIX4.2
10567 # and later when we are not doing run time linking.
10568 library_names_spec='$libname$release.a $libname.a'
10569 soname_spec='$libname$release$shared_ext$major'
10570 ;;
10571 svr4,*) # full svr4 only
10572 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10573 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10574 # We do not specify a path in Import Files, so LIBPATH fires.
10575 shlibpath_overrides_runpath=yes
10576 ;;
10577 *,yes) # both, prefer svr4
10578 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10579 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10580 # unpreferred sharedlib libNAME.a needs extra handling
10581 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"'
10582 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"'
10583 # We do not specify a path in Import Files, so LIBPATH fires.
10584 shlibpath_overrides_runpath=yes
10585 ;;
10586 *,no) # both, prefer aix
10587 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10588 library_names_spec='$libname$release.a $libname.a'
10589 soname_spec='$libname$release$shared_ext$major'
10590 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10591 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)'
10592 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"'
10593 ;;
10594 esac
10595 shlibpath_var=LIBPATH
10596 fi
10597 ;;
10598
10599 amigaos*)
10600 case $host_cpu in
10601 powerpc)
10602 # Since July 2007 AmigaOS4 officially supports .so libraries.
10603 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10605 ;;
10606 m68k)
10607 library_names_spec='$libname.ixlibrary $libname.a'
10608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10609 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'
10610 ;;
10611 esac
10612 ;;
10613
10614 beos*)
10615 library_names_spec='$libname$shared_ext'
10616 dynamic_linker="$host_os ld.so"
10617 shlibpath_var=LIBRARY_PATH
10618 ;;
10619
10620 bsdi[45]*)
10621 version_type=linux # correct to gnu/linux during the next big refactor
10622 need_version=no
10623 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10624 soname_spec='$libname$release$shared_ext$major'
10625 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10626 shlibpath_var=LD_LIBRARY_PATH
10627 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10628 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10629 # the default ld.so.conf also contains /usr/contrib/lib and
10630 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10631 # libtool to hard-code these into programs
10632 ;;
10633
10634 cygwin* | mingw* | pw32* | cegcc*)
10635 version_type=windows
10636 shrext_cmds=.dll
10637 need_version=no
10638 need_lib_prefix=no
10639
10640 case $GCC,$cc_basename in
10641 yes,*)
10642 # gcc
10643 library_names_spec='$libname.dll.a'
10644 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10645 postinstall_cmds='base_file=`basename \$file`~
10646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10647 dldir=$destdir/`dirname \$dlpath`~
10648 test -d \$dldir || mkdir -p \$dldir~
10649 $install_prog $dir/$dlname \$dldir/$dlname~
10650 chmod a+x \$dldir/$dlname~
10651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10653 fi'
10654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10655 dlpath=$dir/\$dldll~
10656 $RM \$dlpath'
10657 shlibpath_overrides_runpath=yes
10658
10659 case $host_os in
10660 cygwin*)
10661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10662 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10663
10664 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10665 ;;
10666 mingw* | cegcc*)
10667 # MinGW DLLs use traditional 'lib' prefix
10668 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10669 ;;
10670 pw32*)
10671 # pw32 DLLs use 'pw' prefix rather than 'lib'
10672 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10673 ;;
10674 esac
10675 dynamic_linker='Win32 ld.exe'
10676 ;;
10677
10678 *,cl*)
10679 # Native MSVC
10680 libname_spec='$name'
10681 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10682 library_names_spec='$libname.dll.lib'
10683
10684 case $build_os in
10685 mingw*)
10686 sys_lib_search_path_spec=
10687 lt_save_ifs=$IFS
10688 IFS=';'
10689 for lt_path in $LIB
10690 do
10691 IFS=$lt_save_ifs
10692 # Let DOS variable expansion print the short 8.3 style file name.
10693 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10694 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10695 done
10696 IFS=$lt_save_ifs
10697 # Convert to MSYS style.
10698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10699 ;;
10700 cygwin*)
10701 # Convert to unix form, then to dos form, then back to unix form
10702 # but this time dos style (no spaces!) so that the unix form looks
10703 # like /cygdrive/c/PROGRA~1:/cygdr...
10704 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10705 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10706 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10707 ;;
10708 *)
10709 sys_lib_search_path_spec=$LIB
10710 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10711 # It is most probably a Windows format PATH.
10712 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10713 else
10714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10715 fi
10716 # FIXME: find the short name or the path components, as spaces are
10717 # common. (e.g. "Program Files" -> "PROGRA~1")
10718 ;;
10719 esac
10720
10721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10722 postinstall_cmds='base_file=`basename \$file`~
10723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10724 dldir=$destdir/`dirname \$dlpath`~
10725 test -d \$dldir || mkdir -p \$dldir~
10726 $install_prog $dir/$dlname \$dldir/$dlname'
10727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10728 dlpath=$dir/\$dldll~
10729 $RM \$dlpath'
10730 shlibpath_overrides_runpath=yes
10731 dynamic_linker='Win32 link.exe'
10732 ;;
10733
10734 *)
10735 # Assume MSVC wrapper
10736 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10737 dynamic_linker='Win32 ld.exe'
10738 ;;
10739 esac
10740 # FIXME: first we should search . and the directory the executable is in
10741 shlibpath_var=PATH
10742 ;;
10743
10744 darwin* | rhapsody*)
10745 dynamic_linker="$host_os dyld"
10746 version_type=darwin
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10750 soname_spec='$libname$release$major$shared_ext'
10751 shlibpath_overrides_runpath=yes
10752 shlibpath_var=DYLD_LIBRARY_PATH
10753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10754
10755 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10756 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10757 ;;
10758
10759 dgux*)
10760 version_type=linux # correct to gnu/linux during the next big refactor
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10764 soname_spec='$libname$release$shared_ext$major'
10765 shlibpath_var=LD_LIBRARY_PATH
10766 ;;
10767
10768 freebsd* | dragonfly*)
10769 # DragonFly does not have aout. When/if they implement a new
10770 # versioning mechanism, adjust this.
10771 if test -x /usr/bin/objformat; then
10772 objformat=`/usr/bin/objformat`
10773 else
10774 case $host_os in
10775 freebsd[23].*) objformat=aout ;;
10776 *) objformat=elf ;;
10777 esac
10778 fi
10779 version_type=freebsd-$objformat
10780 case $version_type in
10781 freebsd-elf*)
10782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10783 soname_spec='$libname$release$shared_ext$major'
10784 need_version=no
10785 need_lib_prefix=no
10786 ;;
10787 freebsd-*)
10788 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10789 need_version=yes
10790 ;;
10791 esac
10792 shlibpath_var=LD_LIBRARY_PATH
10793 case $host_os in
10794 freebsd2.*)
10795 shlibpath_overrides_runpath=yes
10796 ;;
10797 freebsd3.[01]* | freebsdelf3.[01]*)
10798 shlibpath_overrides_runpath=yes
10799 hardcode_into_libs=yes
10800 ;;
10801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10803 shlibpath_overrides_runpath=no
10804 hardcode_into_libs=yes
10805 ;;
10806 *) # from 4.6 on, and DragonFly
10807 shlibpath_overrides_runpath=yes
10808 hardcode_into_libs=yes
10809 ;;
10810 esac
10811 ;;
10812
10813 haiku*)
10814 version_type=linux # correct to gnu/linux during the next big refactor
10815 need_lib_prefix=no
10816 need_version=no
10817 dynamic_linker="$host_os runtime_loader"
10818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819 soname_spec='$libname$release$shared_ext$major'
10820 shlibpath_var=LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10822 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10823 hardcode_into_libs=yes
10824 ;;
10825
10826 hpux9* | hpux10* | hpux11*)
10827 # Give a soname corresponding to the major version so that dld.sl refuses to
10828 # link against other versions.
10829 version_type=sunos
10830 need_lib_prefix=no
10831 need_version=no
10832 case $host_cpu in
10833 ia64*)
10834 shrext_cmds='.so'
10835 hardcode_into_libs=yes
10836 dynamic_linker="$host_os dld.so"
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10840 soname_spec='$libname$release$shared_ext$major'
10841 if test 32 = "$HPUX_IA64_MODE"; then
10842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10843 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10844 else
10845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10846 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10847 fi
10848 ;;
10849 hppa*64*)
10850 shrext_cmds='.sl'
10851 hardcode_into_libs=yes
10852 dynamic_linker="$host_os dld.sl"
10853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10856 soname_spec='$libname$release$shared_ext$major'
10857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10859 ;;
10860 *)
10861 shrext_cmds='.sl'
10862 dynamic_linker="$host_os dld.sl"
10863 shlibpath_var=SHLIB_PATH
10864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10866 soname_spec='$libname$release$shared_ext$major'
10867 ;;
10868 esac
10869 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10870 postinstall_cmds='chmod 555 $lib'
10871 # or fails outright, so override atomically:
10872 install_override_mode=555
10873 ;;
10874
10875 interix[3-9]*)
10876 version_type=linux # correct to gnu/linux during the next big refactor
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10880 soname_spec='$libname$release$shared_ext$major'
10881 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10884 hardcode_into_libs=yes
10885 ;;
10886
10887 irix5* | irix6* | nonstopux*)
10888 case $host_os in
10889 nonstopux*) version_type=nonstopux ;;
10890 *)
10891 if test yes = "$lt_cv_prog_gnu_ld"; then
10892 version_type=linux # correct to gnu/linux during the next big refactor
10893 else
10894 version_type=irix
10895 fi ;;
10896 esac
10897 need_lib_prefix=no
10898 need_version=no
10899 soname_spec='$libname$release$shared_ext$major'
10900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10901 case $host_os in
10902 irix5* | nonstopux*)
10903 libsuff= shlibsuff=
10904 ;;
10905 *)
10906 case $LD in # libtool.m4 will add one of these switches to LD
10907 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10908 libsuff= shlibsuff= libmagic=32-bit;;
10909 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10910 libsuff=32 shlibsuff=N32 libmagic=N32;;
10911 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10912 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10913 *) libsuff= shlibsuff= libmagic=never-match;;
10914 esac
10915 ;;
10916 esac
10917 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10918 shlibpath_overrides_runpath=no
10919 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10920 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10921 hardcode_into_libs=yes
10922 ;;
10923
10924 # No shared lib support for Linux oldld, aout, or coff.
10925 linux*oldld* | linux*aout* | linux*coff*)
10926 dynamic_linker=no
10927 ;;
10928
10929 linux*android*)
10930 version_type=none # Android doesn't support versioned libraries.
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='$libname$release$shared_ext'
10934 soname_spec='$libname$release$shared_ext'
10935 finish_cmds=
10936 shlibpath_var=LD_LIBRARY_PATH
10937 shlibpath_overrides_runpath=yes
10938
10939 # This implies no fast_install, which is unacceptable.
10940 # Some rework will be needed to allow for fast_install
10941 # before this can be enabled.
10942 hardcode_into_libs=yes
10943
10944 dynamic_linker='Android linker'
10945 # Don't embed -rpath directories since the linker doesn't support them.
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 ;;
10948
10949 # This must be glibc/ELF.
10950 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10951 version_type=linux # correct to gnu/linux during the next big refactor
10952 need_lib_prefix=no
10953 need_version=no
10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10955 soname_spec='$libname$release$shared_ext$major'
10956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=no
10959
10960 # Some binutils ld are patched to set DT_RUNPATH
10961 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10962 $as_echo_n "(cached) " >&6
10963 else
10964 lt_cv_shlibpath_overrides_runpath=no
10965 save_LDFLAGS=$LDFLAGS
10966 save_libdir=$libdir
10967 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10968 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970 /* end confdefs.h. */
10971
10972 int
10973 main ()
10974 {
10975
10976 ;
10977 return 0;
10978 }
10979 _ACEOF
10980 if ac_fn_c_try_link "$LINENO"; then :
10981 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10982 lt_cv_shlibpath_overrides_runpath=yes
10983 fi
10984 fi
10985 rm -f core conftest.err conftest.$ac_objext \
10986 conftest$ac_exeext conftest.$ac_ext
10987 LDFLAGS=$save_LDFLAGS
10988 libdir=$save_libdir
10989
10990 fi
10991
10992 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10993
10994 # This implies no fast_install, which is unacceptable.
10995 # Some rework will be needed to allow for fast_install
10996 # before this can be enabled.
10997 hardcode_into_libs=yes
10998
10999 # Ideally, we could use ldconfig to report *all* directores which are
11000 # searched for libraries, however this is still not possible. Aside from not
11001 # being certain /sbin/ldconfig is available, command
11002 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11003 # even though it is searched at run-time. Try to do the best guess by
11004 # appending ld.so.conf contents (and includes) to the search path.
11005 if test -f /etc/ld.so.conf; then
11006 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' ' '`
11007 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11008 fi
11009
11010 # We used to test for /lib/ld.so.1 and disable shared libraries on
11011 # powerpc, because MkLinux only supported shared libraries with the
11012 # GNU dynamic linker. Since this was broken with cross compilers,
11013 # most powerpc-linux boxes support dynamic linking these days and
11014 # people can always --disable-shared, the test was removed, and we
11015 # assume the GNU/Linux dynamic linker is in use.
11016 dynamic_linker='GNU/Linux ld.so'
11017 ;;
11018
11019 netbsd*)
11020 version_type=sunos
11021 need_lib_prefix=no
11022 need_version=no
11023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11026 dynamic_linker='NetBSD (a.out) ld.so'
11027 else
11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11029 soname_spec='$libname$release$shared_ext$major'
11030 dynamic_linker='NetBSD ld.elf_so'
11031 fi
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=yes
11034 hardcode_into_libs=yes
11035 ;;
11036
11037 newsos6)
11038 version_type=linux # correct to gnu/linux during the next big refactor
11039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11040 shlibpath_var=LD_LIBRARY_PATH
11041 shlibpath_overrides_runpath=yes
11042 ;;
11043
11044 *nto* | *qnx*)
11045 version_type=qnx
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11049 soname_spec='$libname$release$shared_ext$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=no
11052 hardcode_into_libs=yes
11053 dynamic_linker='ldqnx.so'
11054 ;;
11055
11056 openbsd* | bitrig*)
11057 version_type=sunos
11058 sys_lib_dlsearch_path_spec=/usr/lib
11059 need_lib_prefix=no
11060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11061 need_version=no
11062 else
11063 need_version=yes
11064 fi
11065 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes
11069 ;;
11070
11071 os2*)
11072 libname_spec='$name'
11073 version_type=windows
11074 shrext_cmds=.dll
11075 need_version=no
11076 need_lib_prefix=no
11077 # OS/2 can only load a DLL with a base name of 8 characters or less.
11078 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11079 v=$($ECHO $release$versuffix | tr -d .-);
11080 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11081 $ECHO $n$v`$shared_ext'
11082 library_names_spec='${libname}_dll.$libext'
11083 dynamic_linker='OS/2 ld.exe'
11084 shlibpath_var=BEGINLIBPATH
11085 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11087 postinstall_cmds='base_file=`basename \$file`~
11088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11089 dldir=$destdir/`dirname \$dlpath`~
11090 test -d \$dldir || mkdir -p \$dldir~
11091 $install_prog $dir/$dlname \$dldir/$dlname~
11092 chmod a+x \$dldir/$dlname~
11093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11095 fi'
11096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11097 dlpath=$dir/\$dldll~
11098 $RM \$dlpath'
11099 ;;
11100
11101 osf3* | osf4* | osf5*)
11102 version_type=osf
11103 need_lib_prefix=no
11104 need_version=no
11105 soname_spec='$libname$release$shared_ext$major'
11106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11110 ;;
11111
11112 rdos*)
11113 dynamic_linker=no
11114 ;;
11115
11116 solaris*)
11117 version_type=linux # correct to gnu/linux during the next big refactor
11118 need_lib_prefix=no
11119 need_version=no
11120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11121 soname_spec='$libname$release$shared_ext$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 shlibpath_overrides_runpath=yes
11124 hardcode_into_libs=yes
11125 # ldd complains unless libraries are executable
11126 postinstall_cmds='chmod +x $lib'
11127 ;;
11128
11129 sunos4*)
11130 version_type=sunos
11131 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=yes
11135 if test yes = "$with_gnu_ld"; then
11136 need_lib_prefix=no
11137 fi
11138 need_version=yes
11139 ;;
11140
11141 sysv4 | sysv4.3*)
11142 version_type=linux # correct to gnu/linux during the next big refactor
11143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11144 soname_spec='$libname$release$shared_ext$major'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 case $host_vendor in
11147 sni)
11148 shlibpath_overrides_runpath=no
11149 need_lib_prefix=no
11150 runpath_var=LD_RUN_PATH
11151 ;;
11152 siemens)
11153 need_lib_prefix=no
11154 ;;
11155 motorola)
11156 need_lib_prefix=no
11157 need_version=no
11158 shlibpath_overrides_runpath=no
11159 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11160 ;;
11161 esac
11162 ;;
11163
11164 sysv4*MP*)
11165 if test -d /usr/nec; then
11166 version_type=linux # correct to gnu/linux during the next big refactor
11167 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11168 soname_spec='$libname$shared_ext.$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 fi
11171 ;;
11172
11173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11174 version_type=sco
11175 need_lib_prefix=no
11176 need_version=no
11177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11178 soname_spec='$libname$release$shared_ext$major'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181 hardcode_into_libs=yes
11182 if test yes = "$with_gnu_ld"; then
11183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11184 else
11185 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11186 case $host_os in
11187 sco3.2v5*)
11188 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11189 ;;
11190 esac
11191 fi
11192 sys_lib_dlsearch_path_spec='/usr/lib'
11193 ;;
11194
11195 tpf*)
11196 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11197 version_type=linux # correct to gnu/linux during the next big refactor
11198 need_lib_prefix=no
11199 need_version=no
11200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=no
11203 hardcode_into_libs=yes
11204 ;;
11205
11206 uts4*)
11207 version_type=linux # correct to gnu/linux during the next big refactor
11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11209 soname_spec='$libname$release$shared_ext$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 ;;
11212
11213 *)
11214 dynamic_linker=no
11215 ;;
11216 esac
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11218 $as_echo "$dynamic_linker" >&6; }
11219 test no = "$dynamic_linker" && can_build_shared=no
11220
11221 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11222 if test yes = "$GCC"; then
11223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11224 fi
11225
11226 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11227 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11228 fi
11229
11230 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11231 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11232 fi
11233
11234 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11235 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11236
11237 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11238 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11239
11240 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11241 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11340 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11341 hardcode_action=
11342 if test -n "$hardcode_libdir_flag_spec" ||
11343 test -n "$runpath_var" ||
11344 test yes = "$hardcode_automatic"; then
11345
11346 # We can hardcode non-existent directories.
11347 if test no != "$hardcode_direct" &&
11348 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11349 # have to relink, otherwise we might link with an installed library
11350 # when we should be linking with a yet-to-be-installed one
11351 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11352 test no != "$hardcode_minus_L"; then
11353 # Linking always hardcodes the temporary library directory.
11354 hardcode_action=relink
11355 else
11356 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11357 hardcode_action=immediate
11358 fi
11359 else
11360 # We cannot hardcode anything, or else we can only hardcode existing
11361 # directories.
11362 hardcode_action=unsupported
11363 fi
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11365 $as_echo "$hardcode_action" >&6; }
11366
11367 if test relink = "$hardcode_action" ||
11368 test yes = "$inherit_rpath"; then
11369 # Fast installation is not supported
11370 enable_fast_install=no
11371 elif test yes = "$shlibpath_overrides_runpath" ||
11372 test no = "$enable_shared"; then
11373 # Fast installation is not necessary
11374 enable_fast_install=needless
11375 fi
11376
11377
11378
11379
11380
11381
11382 if test yes != "$enable_dlopen"; then
11383 enable_dlopen=unknown
11384 enable_dlopen_self=unknown
11385 enable_dlopen_self_static=unknown
11386 else
11387 lt_cv_dlopen=no
11388 lt_cv_dlopen_libs=
11389
11390 case $host_os in
11391 beos*)
11392 lt_cv_dlopen=load_add_on
11393 lt_cv_dlopen_libs=
11394 lt_cv_dlopen_self=yes
11395 ;;
11396
11397 mingw* | pw32* | cegcc*)
11398 lt_cv_dlopen=LoadLibrary
11399 lt_cv_dlopen_libs=
11400 ;;
11401
11402 cygwin*)
11403 lt_cv_dlopen=dlopen
11404 lt_cv_dlopen_libs=
11405 ;;
11406
11407 darwin*)
11408 # if libdl is installed we need to link against it
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11410 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11411 if ${ac_cv_lib_dl_dlopen+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 ac_check_lib_save_LIBS=$LIBS
11415 LIBS="-ldl $LIBS"
11416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11417 /* end confdefs.h. */
11418
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11422 #ifdef __cplusplus
11423 extern "C"
11424 #endif
11425 char dlopen ();
11426 int
11427 main ()
11428 {
11429 return dlopen ();
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_link "$LINENO"; then :
11435 ac_cv_lib_dl_dlopen=yes
11436 else
11437 ac_cv_lib_dl_dlopen=no
11438 fi
11439 rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext conftest.$ac_ext
11441 LIBS=$ac_check_lib_save_LIBS
11442 fi
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11444 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11445 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11446 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11447 else
11448
11449 lt_cv_dlopen=dyld
11450 lt_cv_dlopen_libs=
11451 lt_cv_dlopen_self=yes
11452
11453 fi
11454
11455 ;;
11456
11457 tpf*)
11458 # Don't try to run any link tests for TPF. We know it's impossible
11459 # because TPF is a cross-compiler, and we know how we open DSOs.
11460 lt_cv_dlopen=dlopen
11461 lt_cv_dlopen_libs=
11462 lt_cv_dlopen_self=no
11463 ;;
11464
11465 *)
11466 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11467 if test "x$ac_cv_func_shl_load" = xyes; then :
11468 lt_cv_dlopen=shl_load
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11471 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11472 if ${ac_cv_lib_dld_shl_load+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474 else
11475 ac_check_lib_save_LIBS=$LIBS
11476 LIBS="-ldld $LIBS"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char shl_load ();
11487 int
11488 main ()
11489 {
11490 return shl_load ();
11491 ;
11492 return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496 ac_cv_lib_dld_shl_load=yes
11497 else
11498 ac_cv_lib_dld_shl_load=no
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_lib_save_LIBS
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11505 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11506 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11507 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11508 else
11509 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11510 if test "x$ac_cv_func_dlopen" = xyes; then :
11511 lt_cv_dlopen=dlopen
11512 else
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11514 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11515 if ${ac_cv_lib_dl_dlopen+:} false; then :
11516 $as_echo_n "(cached) " >&6
11517 else
11518 ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-ldl $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h. */
11522
11523 /* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char dlopen ();
11530 int
11531 main ()
11532 {
11533 return dlopen ();
11534 ;
11535 return 0;
11536 }
11537 _ACEOF
11538 if ac_fn_c_try_link "$LINENO"; then :
11539 ac_cv_lib_dl_dlopen=yes
11540 else
11541 ac_cv_lib_dl_dlopen=no
11542 fi
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11548 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11549 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11550 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11553 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11554 if ${ac_cv_lib_svld_dlopen+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-lsvld $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char dlopen ();
11569 int
11570 main ()
11571 {
11572 return dlopen ();
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_svld_dlopen=yes
11579 else
11580 ac_cv_lib_svld_dlopen=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11587 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11588 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11589 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11592 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11593 if ${ac_cv_lib_dld_dld_link+:} false; then :
11594 $as_echo_n "(cached) " >&6
11595 else
11596 ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-ldld $LIBS"
11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11599 /* end confdefs.h. */
11600
11601 /* Override any GCC internal prototype to avoid an error.
11602 Use char because int might match the return type of a GCC
11603 builtin and then its argument prototype would still apply. */
11604 #ifdef __cplusplus
11605 extern "C"
11606 #endif
11607 char dld_link ();
11608 int
11609 main ()
11610 {
11611 return dld_link ();
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 if ac_fn_c_try_link "$LINENO"; then :
11617 ac_cv_lib_dld_dld_link=yes
11618 else
11619 ac_cv_lib_dld_dld_link=no
11620 fi
11621 rm -f core conftest.err conftest.$ac_objext \
11622 conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11626 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11627 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11628 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11629 fi
11630
11631
11632 fi
11633
11634
11635 fi
11636
11637
11638 fi
11639
11640
11641 fi
11642
11643
11644 fi
11645
11646 ;;
11647 esac
11648
11649 if test no = "$lt_cv_dlopen"; then
11650 enable_dlopen=no
11651 else
11652 enable_dlopen=yes
11653 fi
11654
11655 case $lt_cv_dlopen in
11656 dlopen)
11657 save_CPPFLAGS=$CPPFLAGS
11658 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11659
11660 save_LDFLAGS=$LDFLAGS
11661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11662
11663 save_LIBS=$LIBS
11664 LIBS="$lt_cv_dlopen_libs $LIBS"
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11667 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11668 if ${lt_cv_dlopen_self+:} false; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test yes = "$cross_compiling"; then :
11672 lt_cv_dlopen_self=cross
11673 else
11674 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11675 lt_status=$lt_dlunknown
11676 cat > conftest.$ac_ext <<_LT_EOF
11677 #line $LINENO "configure"
11678 #include "confdefs.h"
11679
11680 #if HAVE_DLFCN_H
11681 #include <dlfcn.h>
11682 #endif
11683
11684 #include <stdio.h>
11685
11686 #ifdef RTLD_GLOBAL
11687 # define LT_DLGLOBAL RTLD_GLOBAL
11688 #else
11689 # ifdef DL_GLOBAL
11690 # define LT_DLGLOBAL DL_GLOBAL
11691 # else
11692 # define LT_DLGLOBAL 0
11693 # endif
11694 #endif
11695
11696 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11697 find out it does not work in some platform. */
11698 #ifndef LT_DLLAZY_OR_NOW
11699 # ifdef RTLD_LAZY
11700 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11701 # else
11702 # ifdef DL_LAZY
11703 # define LT_DLLAZY_OR_NOW DL_LAZY
11704 # else
11705 # ifdef RTLD_NOW
11706 # define LT_DLLAZY_OR_NOW RTLD_NOW
11707 # else
11708 # ifdef DL_NOW
11709 # define LT_DLLAZY_OR_NOW DL_NOW
11710 # else
11711 # define LT_DLLAZY_OR_NOW 0
11712 # endif
11713 # endif
11714 # endif
11715 # endif
11716 #endif
11717
11718 /* When -fvisibility=hidden is used, assume the code has been annotated
11719 correspondingly for the symbols needed. */
11720 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11721 int fnord () __attribute__((visibility("default")));
11722 #endif
11723
11724 int fnord () { return 42; }
11725 int main ()
11726 {
11727 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11728 int status = $lt_dlunknown;
11729
11730 if (self)
11731 {
11732 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11733 else
11734 {
11735 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11736 else puts (dlerror ());
11737 }
11738 /* dlclose (self); */
11739 }
11740 else
11741 puts (dlerror ());
11742
11743 return status;
11744 }
11745 _LT_EOF
11746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11747 (eval $ac_link) 2>&5
11748 ac_status=$?
11749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11750 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11751 (./conftest; exit; ) >&5 2>/dev/null
11752 lt_status=$?
11753 case x$lt_status in
11754 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11755 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11756 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11757 esac
11758 else :
11759 # compilation failed
11760 lt_cv_dlopen_self=no
11761 fi
11762 fi
11763 rm -fr conftest*
11764
11765
11766 fi
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11768 $as_echo "$lt_cv_dlopen_self" >&6; }
11769
11770 if test yes = "$lt_cv_dlopen_self"; then
11771 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11773 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11774 if ${lt_cv_dlopen_self_static+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 if test yes = "$cross_compiling"; then :
11778 lt_cv_dlopen_self_static=cross
11779 else
11780 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11781 lt_status=$lt_dlunknown
11782 cat > conftest.$ac_ext <<_LT_EOF
11783 #line $LINENO "configure"
11784 #include "confdefs.h"
11785
11786 #if HAVE_DLFCN_H
11787 #include <dlfcn.h>
11788 #endif
11789
11790 #include <stdio.h>
11791
11792 #ifdef RTLD_GLOBAL
11793 # define LT_DLGLOBAL RTLD_GLOBAL
11794 #else
11795 # ifdef DL_GLOBAL
11796 # define LT_DLGLOBAL DL_GLOBAL
11797 # else
11798 # define LT_DLGLOBAL 0
11799 # endif
11800 #endif
11801
11802 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11803 find out it does not work in some platform. */
11804 #ifndef LT_DLLAZY_OR_NOW
11805 # ifdef RTLD_LAZY
11806 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11807 # else
11808 # ifdef DL_LAZY
11809 # define LT_DLLAZY_OR_NOW DL_LAZY
11810 # else
11811 # ifdef RTLD_NOW
11812 # define LT_DLLAZY_OR_NOW RTLD_NOW
11813 # else
11814 # ifdef DL_NOW
11815 # define LT_DLLAZY_OR_NOW DL_NOW
11816 # else
11817 # define LT_DLLAZY_OR_NOW 0
11818 # endif
11819 # endif
11820 # endif
11821 # endif
11822 #endif
11823
11824 /* When -fvisibility=hidden is used, assume the code has been annotated
11825 correspondingly for the symbols needed. */
11826 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11827 int fnord () __attribute__((visibility("default")));
11828 #endif
11829
11830 int fnord () { return 42; }
11831 int main ()
11832 {
11833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11834 int status = $lt_dlunknown;
11835
11836 if (self)
11837 {
11838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11839 else
11840 {
11841 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11842 else puts (dlerror ());
11843 }
11844 /* dlclose (self); */
11845 }
11846 else
11847 puts (dlerror ());
11848
11849 return status;
11850 }
11851 _LT_EOF
11852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11853 (eval $ac_link) 2>&5
11854 ac_status=$?
11855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11856 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11857 (./conftest; exit; ) >&5 2>/dev/null
11858 lt_status=$?
11859 case x$lt_status in
11860 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11861 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11862 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11863 esac
11864 else :
11865 # compilation failed
11866 lt_cv_dlopen_self_static=no
11867 fi
11868 fi
11869 rm -fr conftest*
11870
11871
11872 fi
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11874 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11875 fi
11876
11877 CPPFLAGS=$save_CPPFLAGS
11878 LDFLAGS=$save_LDFLAGS
11879 LIBS=$save_LIBS
11880 ;;
11881 esac
11882
11883 case $lt_cv_dlopen_self in
11884 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11885 *) enable_dlopen_self=unknown ;;
11886 esac
11887
11888 case $lt_cv_dlopen_self_static in
11889 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11890 *) enable_dlopen_self_static=unknown ;;
11891 esac
11892 fi
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910 striplib=
11911 old_striplib=
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11913 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11914 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11915 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11916 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11918 $as_echo "yes" >&6; }
11919 else
11920 # FIXME - insert some real tests, host_os isn't really good enough
11921 case $host_os in
11922 darwin*)
11923 if test -n "$STRIP"; then
11924 striplib="$STRIP -x"
11925 old_striplib="$STRIP -S"
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11927 $as_echo "yes" >&6; }
11928 else
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11931 fi
11932 ;;
11933 *)
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 ;;
11937 esac
11938 fi
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951 # Report what library types will actually be built
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11953 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11955 $as_echo "$can_build_shared" >&6; }
11956
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11958 $as_echo_n "checking whether to build shared libraries... " >&6; }
11959 test no = "$can_build_shared" && enable_shared=no
11960
11961 # On AIX, shared libraries and static libraries use the same namespace, and
11962 # are all built from PIC.
11963 case $host_os in
11964 aix3*)
11965 test yes = "$enable_shared" && enable_static=no
11966 if test -n "$RANLIB"; then
11967 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11968 postinstall_cmds='$RANLIB $lib'
11969 fi
11970 ;;
11971
11972 aix[4-9]*)
11973 if test ia64 != "$host_cpu"; then
11974 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11975 yes,aix,yes) ;; # shared object as lib.so file only
11976 yes,svr4,*) ;; # shared object as lib.so archive member only
11977 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11978 esac
11979 fi
11980 ;;
11981 esac
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11983 $as_echo "$enable_shared" >&6; }
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11986 $as_echo_n "checking whether to build static libraries... " >&6; }
11987 # Make sure either enable_shared or enable_static is yes.
11988 test yes = "$enable_shared" || enable_static=yes
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11990 $as_echo "$enable_static" >&6; }
11991
11992
11993
11994
11995 fi
11996 ac_ext=c
11997 ac_cpp='$CPP $CPPFLAGS'
11998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12001
12002 CC=$lt_save_CC
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018 ac_config_commands="$ac_config_commands libtool"
12019
12020
12021
12022
12023 # Only expand once:
12024
12025
12026
12027 # Checks for programs.
12028 ac_ext=c
12029 ac_cpp='$CPP $CPPFLAGS'
12030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12033 if test -n "$ac_tool_prefix"; then
12034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_prog_CC+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 if test -n "$CC"; then
12042 ac_cv_prog_CC="$CC" # Let the user override the test.
12043 else
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12046 do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055 done
12056 done
12057 IFS=$as_save_IFS
12058
12059 fi
12060 fi
12061 CC=$ac_cv_prog_CC
12062 if test -n "$CC"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12064 $as_echo "$CC" >&6; }
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12068 fi
12069
12070
12071 fi
12072 if test -z "$ac_cv_prog_CC"; then
12073 ac_ct_CC=$CC
12074 # Extract the first word of "gcc", so it can be a program name with args.
12075 set dummy gcc; ac_word=$2
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077 $as_echo_n "checking for $ac_word... " >&6; }
12078 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 if test -n "$ac_ct_CC"; then
12082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12083 else
12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_prog_ac_ct_CC="gcc"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12094 fi
12095 done
12096 done
12097 IFS=$as_save_IFS
12098
12099 fi
12100 fi
12101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12102 if test -n "$ac_ct_CC"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12104 $as_echo "$ac_ct_CC" >&6; }
12105 else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110 if test "x$ac_ct_CC" = x; then
12111 CC=""
12112 else
12113 case $cross_compiling:$ac_tool_warned in
12114 yes:)
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12117 ac_tool_warned=yes ;;
12118 esac
12119 CC=$ac_ct_CC
12120 fi
12121 else
12122 CC="$ac_cv_prog_CC"
12123 fi
12124
12125 if test -z "$CC"; then
12126 if test -n "$ac_tool_prefix"; then
12127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12128 set dummy ${ac_tool_prefix}cc; ac_word=$2
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130 $as_echo_n "checking for $ac_word... " >&6; }
12131 if ${ac_cv_prog_CC+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 if test -n "$CC"; then
12135 ac_cv_prog_CC="$CC" # Let the user override the test.
12136 else
12137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138 for as_dir in $PATH
12139 do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
12142 for ac_exec_ext in '' $ac_executable_extensions; do
12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12144 ac_cv_prog_CC="${ac_tool_prefix}cc"
12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12146 break 2
12147 fi
12148 done
12149 done
12150 IFS=$as_save_IFS
12151
12152 fi
12153 fi
12154 CC=$ac_cv_prog_CC
12155 if test -n "$CC"; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12157 $as_echo "$CC" >&6; }
12158 else
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160 $as_echo "no" >&6; }
12161 fi
12162
12163
12164 fi
12165 fi
12166 if test -z "$CC"; then
12167 # Extract the first word of "cc", so it can be a program name with args.
12168 set dummy cc; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if ${ac_cv_prog_CC+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 if test -n "$CC"; then
12175 ac_cv_prog_CC="$CC" # Let the user override the test.
12176 else
12177 ac_prog_rejected=no
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12186 ac_prog_rejected=yes
12187 continue
12188 fi
12189 ac_cv_prog_CC="cc"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12192 fi
12193 done
12194 done
12195 IFS=$as_save_IFS
12196
12197 if test $ac_prog_rejected = yes; then
12198 # We found a bogon in the path, so make sure we never use it.
12199 set dummy $ac_cv_prog_CC
12200 shift
12201 if test $# != 0; then
12202 # We chose a different compiler from the bogus one.
12203 # However, it has the same basename, so the bogon will be chosen
12204 # first if we set CC to just the basename; use the full file name.
12205 shift
12206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12207 fi
12208 fi
12209 fi
12210 fi
12211 CC=$ac_cv_prog_CC
12212 if test -n "$CC"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12214 $as_echo "$CC" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12218 fi
12219
12220
12221 fi
12222 if test -z "$CC"; then
12223 if test -n "$ac_tool_prefix"; then
12224 for ac_prog in cl.exe
12225 do
12226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_CC+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 if test -n "$CC"; then
12234 ac_cv_prog_CC="$CC" # Let the user override the test.
12235 else
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12238 do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 break 2
12246 fi
12247 done
12248 done
12249 IFS=$as_save_IFS
12250
12251 fi
12252 fi
12253 CC=$ac_cv_prog_CC
12254 if test -n "$CC"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12256 $as_echo "$CC" >&6; }
12257 else
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12260 fi
12261
12262
12263 test -n "$CC" && break
12264 done
12265 fi
12266 if test -z "$CC"; then
12267 ac_ct_CC=$CC
12268 for ac_prog in cl.exe
12269 do
12270 # Extract the first word of "$ac_prog", so it can be a program name with args.
12271 set dummy $ac_prog; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if test -n "$ac_ct_CC"; then
12278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12279 else
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12282 do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_prog_ac_ct_CC="$ac_prog"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291 done
12292 done
12293 IFS=$as_save_IFS
12294
12295 fi
12296 fi
12297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12298 if test -n "$ac_ct_CC"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12300 $as_echo "$ac_ct_CC" >&6; }
12301 else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12304 fi
12305
12306
12307 test -n "$ac_ct_CC" && break
12308 done
12309
12310 if test "x$ac_ct_CC" = x; then
12311 CC=""
12312 else
12313 case $cross_compiling:$ac_tool_warned in
12314 yes:)
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12317 ac_tool_warned=yes ;;
12318 esac
12319 CC=$ac_ct_CC
12320 fi
12321 fi
12322
12323 fi
12324
12325
12326 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12328 as_fn_error $? "no acceptable C compiler found in \$PATH
12329 See \`config.log' for more details" "$LINENO" 5; }
12330
12331 # Provide some information about the compiler.
12332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12333 set X $ac_compile
12334 ac_compiler=$2
12335 for ac_option in --version -v -V -qversion; do
12336 { { ac_try="$ac_compiler $ac_option >&5"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340 esac
12341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12342 $as_echo "$ac_try_echo"; } >&5
12343 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12344 ac_status=$?
12345 if test -s conftest.err; then
12346 sed '10a\
12347 ... rest of stderr output deleted ...
12348 10q' conftest.err >conftest.er1
12349 cat conftest.er1 >&5
12350 fi
12351 rm -f conftest.er1 conftest.err
12352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12353 test $ac_status = 0; }
12354 done
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12357 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12358 if ${ac_cv_c_compiler_gnu+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h. */
12363
12364 int
12365 main ()
12366 {
12367 #ifndef __GNUC__
12368 choke me
12369 #endif
12370
12371 ;
12372 return 0;
12373 }
12374 _ACEOF
12375 if ac_fn_c_try_compile "$LINENO"; then :
12376 ac_compiler_gnu=yes
12377 else
12378 ac_compiler_gnu=no
12379 fi
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12381 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12382
12383 fi
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12385 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12386 if test $ac_compiler_gnu = yes; then
12387 GCC=yes
12388 else
12389 GCC=
12390 fi
12391 ac_test_CFLAGS=${CFLAGS+set}
12392 ac_save_CFLAGS=$CFLAGS
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12394 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12395 if ${ac_cv_prog_cc_g+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 ac_save_c_werror_flag=$ac_c_werror_flag
12399 ac_c_werror_flag=yes
12400 ac_cv_prog_cc_g=no
12401 CFLAGS="-g"
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404
12405 int
12406 main ()
12407 {
12408
12409 ;
12410 return 0;
12411 }
12412 _ACEOF
12413 if ac_fn_c_try_compile "$LINENO"; then :
12414 ac_cv_prog_cc_g=yes
12415 else
12416 CFLAGS=""
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419
12420 int
12421 main ()
12422 {
12423
12424 ;
12425 return 0;
12426 }
12427 _ACEOF
12428 if ac_fn_c_try_compile "$LINENO"; then :
12429
12430 else
12431 ac_c_werror_flag=$ac_save_c_werror_flag
12432 CFLAGS="-g"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 int
12437 main ()
12438 {
12439
12440 ;
12441 return 0;
12442 }
12443 _ACEOF
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 ac_cv_prog_cc_g=yes
12446 fi
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 fi
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 ac_c_werror_flag=$ac_save_c_werror_flag
12453 fi
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12455 $as_echo "$ac_cv_prog_cc_g" >&6; }
12456 if test "$ac_test_CFLAGS" = set; then
12457 CFLAGS=$ac_save_CFLAGS
12458 elif test $ac_cv_prog_cc_g = yes; then
12459 if test "$GCC" = yes; then
12460 CFLAGS="-g -O2"
12461 else
12462 CFLAGS="-g"
12463 fi
12464 else
12465 if test "$GCC" = yes; then
12466 CFLAGS="-O2"
12467 else
12468 CFLAGS=
12469 fi
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12472 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12473 if ${ac_cv_prog_cc_c89+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_cv_prog_cc_c89=no
12477 ac_save_CC=$CC
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12480 #include <stdarg.h>
12481 #include <stdio.h>
12482 struct stat;
12483 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12484 struct buf { int x; };
12485 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12486 static char *e (p, i)
12487 char **p;
12488 int i;
12489 {
12490 return p[i];
12491 }
12492 static char *f (char * (*g) (char **, int), char **p, ...)
12493 {
12494 char *s;
12495 va_list v;
12496 va_start (v,p);
12497 s = g (p, va_arg (v,int));
12498 va_end (v);
12499 return s;
12500 }
12501
12502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12503 function prototypes and stuff, but not '\xHH' hex character constants.
12504 These don't provoke an error unfortunately, instead are silently treated
12505 as 'x'. The following induces an error, until -std is added to get
12506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12507 array size at least. It's necessary to write '\x00'==0 to get something
12508 that's true only with -std. */
12509 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12510
12511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12512 inside strings and character constants. */
12513 #define FOO(x) 'x'
12514 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12515
12516 int test (int i, double x);
12517 struct s1 {int (*f) (int a);};
12518 struct s2 {int (*f) (double a);};
12519 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12520 int argc;
12521 char **argv;
12522 int
12523 main ()
12524 {
12525 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12526 ;
12527 return 0;
12528 }
12529 _ACEOF
12530 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12532 do
12533 CC="$ac_save_CC $ac_arg"
12534 if ac_fn_c_try_compile "$LINENO"; then :
12535 ac_cv_prog_cc_c89=$ac_arg
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext
12538 test "x$ac_cv_prog_cc_c89" != "xno" && break
12539 done
12540 rm -f conftest.$ac_ext
12541 CC=$ac_save_CC
12542
12543 fi
12544 # AC_CACHE_VAL
12545 case "x$ac_cv_prog_cc_c89" in
12546 x)
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12548 $as_echo "none needed" >&6; } ;;
12549 xno)
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12551 $as_echo "unsupported" >&6; } ;;
12552 *)
12553 CC="$CC $ac_cv_prog_cc_c89"
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12555 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12556 esac
12557 if test "x$ac_cv_prog_cc_c89" != xno; then :
12558
12559 fi
12560
12561 ac_ext=c
12562 ac_cpp='$CPP $CPPFLAGS'
12563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12566
12567 ac_ext=c
12568 ac_cpp='$CPP $CPPFLAGS'
12569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12573 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12574 if ${am_cv_prog_cc_c_o+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 int
12581 main ()
12582 {
12583
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 # Make sure it works both with $CC and with simple cc.
12589 # Following AC_PROG_CC_C_O, we do the test twice because some
12590 # compilers refuse to overwrite an existing .o file with -o,
12591 # though they will create one.
12592 am_cv_prog_cc_c_o=yes
12593 for am_i in 1 2; do
12594 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12595 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } \
12599 && test -f conftest2.$ac_objext; then
12600 : OK
12601 else
12602 am_cv_prog_cc_c_o=no
12603 break
12604 fi
12605 done
12606 rm -f core conftest*
12607 unset am_i
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12610 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12611 if test "$am_cv_prog_cc_c_o" != yes; then
12612 # Losing compiler, so override with the script.
12613 # FIXME: It is wrong to rewrite CC.
12614 # But if we don't then we get into trouble of one sort or another.
12615 # A longer-term fix would be to have automake use am__CC in this case,
12616 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12617 CC="$am_aux_dir/compile $CC"
12618 fi
12619 ac_ext=c
12620 ac_cpp='$CPP $CPPFLAGS'
12621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12624
12625
12626 depcc="$CC" am_compiler_list=
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12629 $as_echo_n "checking dependency style of $depcc... " >&6; }
12630 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12634 # We make a subdir and do the tests there. Otherwise we can end up
12635 # making bogus files that we don't know about and never remove. For
12636 # instance it was reported that on HP-UX the gcc test will end up
12637 # making a dummy file named 'D' -- because '-MD' means "put the output
12638 # in D".
12639 rm -rf conftest.dir
12640 mkdir conftest.dir
12641 # Copy depcomp to subdir because otherwise we won't find it if we're
12642 # using a relative directory.
12643 cp "$am_depcomp" conftest.dir
12644 cd conftest.dir
12645 # We will build objects and dependencies in a subdirectory because
12646 # it helps to detect inapplicable dependency modes. For instance
12647 # both Tru64's cc and ICC support -MD to output dependencies as a
12648 # side effect of compilation, but ICC will put the dependencies in
12649 # the current directory while Tru64 will put them in the object
12650 # directory.
12651 mkdir sub
12652
12653 am_cv_CC_dependencies_compiler_type=none
12654 if test "$am_compiler_list" = ""; then
12655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12656 fi
12657 am__universal=false
12658 case " $depcc " in #(
12659 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12660 esac
12661
12662 for depmode in $am_compiler_list; do
12663 # Setup a source with many dependencies, because some compilers
12664 # like to wrap large dependency lists on column 80 (with \), and
12665 # we should not choose a depcomp mode which is confused by this.
12666 #
12667 # We need to recreate these files for each test, as the compiler may
12668 # overwrite some of them when testing with obscure command lines.
12669 # This happens at least with the AIX C compiler.
12670 : > sub/conftest.c
12671 for i in 1 2 3 4 5 6; do
12672 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12673 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12674 # Solaris 10 /bin/sh.
12675 echo '/* dummy */' > sub/conftst$i.h
12676 done
12677 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12678
12679 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12680 # mode. It turns out that the SunPro C++ compiler does not properly
12681 # handle '-M -o', and we need to detect this. Also, some Intel
12682 # versions had trouble with output in subdirs.
12683 am__obj=sub/conftest.${OBJEXT-o}
12684 am__minus_obj="-o $am__obj"
12685 case $depmode in
12686 gcc)
12687 # This depmode causes a compiler race in universal mode.
12688 test "$am__universal" = false || continue
12689 ;;
12690 nosideeffect)
12691 # After this tag, mechanisms are not by side-effect, so they'll
12692 # only be used when explicitly requested.
12693 if test "x$enable_dependency_tracking" = xyes; then
12694 continue
12695 else
12696 break
12697 fi
12698 ;;
12699 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12700 # This compiler won't grok '-c -o', but also, the minuso test has
12701 # not run yet. These depmodes are late enough in the game, and
12702 # so weak that their functioning should not be impacted.
12703 am__obj=conftest.${OBJEXT-o}
12704 am__minus_obj=
12705 ;;
12706 none) break ;;
12707 esac
12708 if depmode=$depmode \
12709 source=sub/conftest.c object=$am__obj \
12710 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12711 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12712 >/dev/null 2>conftest.err &&
12713 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12714 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12715 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12716 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12717 # icc doesn't choke on unknown options, it will just issue warnings
12718 # or remarks (even with -Werror). So we grep stderr for any message
12719 # that says an option was ignored or not supported.
12720 # When given -MP, icc 7.0 and 7.1 complain thusly:
12721 # icc: Command line warning: ignoring option '-M'; no argument required
12722 # The diagnosis changed in icc 8.0:
12723 # icc: Command line remark: option '-MP' not supported
12724 if (grep 'ignoring option' conftest.err ||
12725 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12726 am_cv_CC_dependencies_compiler_type=$depmode
12727 break
12728 fi
12729 fi
12730 done
12731
12732 cd ..
12733 rm -rf conftest.dir
12734 else
12735 am_cv_CC_dependencies_compiler_type=none
12736 fi
12737
12738 fi
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12740 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12741 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12742
12743 if
12744 test "x$enable_dependency_tracking" != xno \
12745 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12746 am__fastdepCC_TRUE=
12747 am__fastdepCC_FALSE='#'
12748 else
12749 am__fastdepCC_TRUE='#'
12750 am__fastdepCC_FALSE=
12751 fi
12752
12753
12754 ac_ext=c
12755 ac_cpp='$CPP $CPPFLAGS'
12756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12759
12760
12761 if test "x$GCC" = "xyes"; then
12762 # Enable useful GCC compilation flags.
12763 GCC_CFLAGS="-Wall -Werror"
12764 GCC_CFLAGS="-Wcast-align -Wpointer-arith $GCC_CFLAGS"
12765 GCC_CFLAGS="-Wdeclaration-after-statement $GCC_CFLAGS"
12766 else
12767 GCC_CFLAGS=""
12768 fi
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12780 if test -n "$ac_tool_prefix"; then
12781 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12782 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784 $as_echo_n "checking for $ac_word... " >&6; }
12785 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 case $PKG_CONFIG in
12789 [\\/]* | ?:[\\/]*)
12790 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12791 ;;
12792 *)
12793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794 for as_dir in $PATH
12795 do
12796 IFS=$as_save_IFS
12797 test -z "$as_dir" && as_dir=.
12798 for ac_exec_ext in '' $ac_executable_extensions; do
12799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12802 break 2
12803 fi
12804 done
12805 done
12806 IFS=$as_save_IFS
12807
12808 ;;
12809 esac
12810 fi
12811 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12812 if test -n "$PKG_CONFIG"; then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12814 $as_echo "$PKG_CONFIG" >&6; }
12815 else
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817 $as_echo "no" >&6; }
12818 fi
12819
12820
12821 fi
12822 if test -z "$ac_cv_path_PKG_CONFIG"; then
12823 ac_pt_PKG_CONFIG=$PKG_CONFIG
12824 # Extract the first word of "pkg-config", so it can be a program name with args.
12825 set dummy pkg-config; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 case $ac_pt_PKG_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847 done
12848 done
12849 IFS=$as_save_IFS
12850
12851 ;;
12852 esac
12853 fi
12854 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12855 if test -n "$ac_pt_PKG_CONFIG"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12857 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12858 else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12861 fi
12862
12863 if test "x$ac_pt_PKG_CONFIG" = x; then
12864 PKG_CONFIG=""
12865 else
12866 case $cross_compiling:$ac_tool_warned in
12867 yes:)
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12870 ac_tool_warned=yes ;;
12871 esac
12872 PKG_CONFIG=$ac_pt_PKG_CONFIG
12873 fi
12874 else
12875 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12876 fi
12877
12878 fi
12879 if test -n "$PKG_CONFIG"; then
12880 _pkg_min_version=0.9.0
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12882 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12883 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12885 $as_echo "yes" >&6; }
12886 else
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12888 $as_echo "no" >&6; }
12889 PKG_CONFIG=""
12890 fi
12891 fi
12892
12893 if test "x$PKG_CONFIG" = x; then
12894 as_fn_error $? "pkg-config is missing, please install it" "$LINENO" 5
12895 fi
12896 _guile_versions_to_search="3.0 2.2 2.0"
12897 if test -n "$GUILE_EFFECTIVE_VERSION"; then
12898 _guile_tmp=""
12899 for v in $_guile_versions_to_search; do
12900 if test "$v" = "$GUILE_EFFECTIVE_VERSION"; then
12901 _guile_tmp=$v
12902 fi
12903 done
12904 if test -z "$_guile_tmp"; then
12905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12907 as_fn_error $? "searching for guile development files for versions $_guile_versions_to_search, but previously found $GUILE version $GUILE_EFFECTIVE_VERSION
12908 See \`config.log' for more details" "$LINENO" 5; }
12909 fi
12910 _guile_versions_to_search=$GUILE_EFFECTIVE_VERSION
12911 fi
12912 GUILE_EFFECTIVE_VERSION=""
12913 _guile_errors=""
12914 for v in $_guile_versions_to_search; do
12915 if test -z "$GUILE_EFFECTIVE_VERSION"; then
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for guile $v" >&5
12917 $as_echo "$as_me: checking for guile $v" >&6;}
12918 if test -n "$PKG_CONFIG" && \
12919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
12920 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
12921 ac_status=$?
12922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12923 test $ac_status = 0; }; then
12924 GUILE_EFFECTIVE_VERSION=$v
12925 fi
12926 fi
12927 done
12928
12929 if test -z "$GUILE_EFFECTIVE_VERSION"; then
12930 as_fn_error $? "
12931 No Guile development packages were found.
12932
12933 Please verify that you have Guile installed. If you installed Guile
12934 from a binary distribution, please verify that you have also installed
12935 the development packages. If you installed it yourself, you might need
12936 to adjust your PKG_CONFIG_PATH; see the pkg-config man page for more.
12937 " "$LINENO" 5
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: found guile $GUILE_EFFECTIVE_VERSION" >&5
12940 $as_echo "$as_me: found guile $GUILE_EFFECTIVE_VERSION" >&6;}
12941
12942
12943 _guile_required_version="$GUILE_EFFECTIVE_VERSION"
12944 if test -z "$_guile_required_version"; then
12945 _guile_required_version=3.0
12946 fi
12947
12948 _guile_candidates=guile
12949 _tmp=
12950 for v in `echo "$_guile_required_version" | tr . ' '`; do
12951 if test -n "$_tmp"; then _tmp=$_tmp.; fi
12952 _tmp=$_tmp$v
12953 _guile_candidates="guile-$_tmp guile$_tmp $_guile_candidates"
12954 done
12955
12956 for ac_prog in $_guile_candidates
12957 do
12958 # Extract the first word of "$ac_prog", so it can be a program name with args.
12959 set dummy $ac_prog; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_path_GUILE+:} false; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 case $GUILE in
12966 [\\/]* | ?:[\\/]*)
12967 ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
12968 ;;
12969 *)
12970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12972 do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977 ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12980 fi
12981 done
12982 done
12983 IFS=$as_save_IFS
12984
12985 ;;
12986 esac
12987 fi
12988 GUILE=$ac_cv_path_GUILE
12989 if test -n "$GUILE"; then
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
12991 $as_echo "$GUILE" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996
12997
12998 test -n "$GUILE" && break
12999 done
13000
13001 if test -z "$GUILE"; then
13002 as_fn_error $? "guile required but not found" "$LINENO" 5
13003 fi
13004
13005 _guile_suffix=`echo "$GUILE" | sed -e 's,^.*/guile\(.*\)$,\1,'`
13006 _guile_effective_version=`$GUILE -c "(display (effective-version))"`
13007 if test -z "$GUILE_EFFECTIVE_VERSION"; then
13008 GUILE_EFFECTIVE_VERSION=$_guile_effective_version
13009 elif test "$GUILE_EFFECTIVE_VERSION" != "$_guile_effective_version"; then
13010 as_fn_error $? "found development files for Guile $GUILE_EFFECTIVE_VERSION, but $GUILE has effective version $_guile_effective_version" "$LINENO" 5
13011 fi
13012
13013 _guile_major_version=`$GUILE -c "(display (major-version))"`
13014 _guile_minor_version=`$GUILE -c "(display (minor-version))"`
13015 _guile_micro_version=`$GUILE -c "(display (micro-version))"`
13016 _guile_prog_version="$_guile_major_version.$_guile_minor_version.$_guile_micro_version"
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile version >= $_guile_required_version" >&5
13019 $as_echo_n "checking for Guile version >= $_guile_required_version... " >&6; }
13020 _major_version=`echo $_guile_required_version | cut -d . -f 1`
13021 _minor_version=`echo $_guile_required_version | cut -d . -f 2`
13022 _micro_version=`echo $_guile_required_version | cut -d . -f 3`
13023 if test "$_guile_major_version" -gt "$_major_version"; then
13024 true
13025 elif test "$_guile_major_version" -eq "$_major_version"; then
13026 if test "$_guile_minor_version" -gt "$_minor_version"; then
13027 true
13028 elif test "$_guile_minor_version" -eq "$_minor_version"; then
13029 if test -n "$_micro_version"; then
13030 if test "$_guile_micro_version" -lt "$_micro_version"; then
13031 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
13032 fi
13033 fi
13034 elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
13035 # Allow prereleases that have the right effective version.
13036 true
13037 else
13038 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
13039 fi
13040 elif test "$GUILE_EFFECTIVE_VERSION" = "$_major_version.$_minor_version" -a -z "$_micro_version"; then
13041 # Allow prereleases that have the right effective version.
13042 true
13043 else
13044 as_fn_error $? "Guile $_guile_required_version required, but $_guile_prog_version found" "$LINENO" 5
13045 fi
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_guile_prog_version" >&5
13047 $as_echo "$_guile_prog_version" >&6; }
13048
13049 # Extract the first word of "guild$_guile_suffix", so it can be a program name with args.
13050 set dummy guild$_guile_suffix; ac_word=$2
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13052 $as_echo_n "checking for $ac_word... " >&6; }
13053 if ${ac_cv_path_GUILD+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 case $GUILD in
13057 [\\/]* | ?:[\\/]*)
13058 ac_cv_path_GUILD="$GUILD" # Let the user override the test with a path.
13059 ;;
13060 *)
13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062 for as_dir in $PATH
13063 do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
13066 for ac_exec_ext in '' $ac_executable_extensions; do
13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13068 ac_cv_path_GUILD="$as_dir/$ac_word$ac_exec_ext"
13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13070 break 2
13071 fi
13072 done
13073 done
13074 IFS=$as_save_IFS
13075
13076 ;;
13077 esac
13078 fi
13079 GUILD=$ac_cv_path_GUILD
13080 if test -n "$GUILD"; then
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILD" >&5
13082 $as_echo "$GUILD" >&6; }
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085 $as_echo "no" >&6; }
13086 fi
13087
13088
13089
13090
13091 # Extract the first word of "guile-config$_guile_suffix", so it can be a program name with args.
13092 set dummy guile-config$_guile_suffix; ac_word=$2
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13094 $as_echo_n "checking for $ac_word... " >&6; }
13095 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 case $GUILE_CONFIG in
13099 [\\/]* | ?:[\\/]*)
13100 ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
13101 ;;
13102 *)
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13105 do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13110 ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13112 break 2
13113 fi
13114 done
13115 done
13116 IFS=$as_save_IFS
13117
13118 ;;
13119 esac
13120 fi
13121 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
13122 if test -n "$GUILE_CONFIG"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
13124 $as_echo "$GUILE_CONFIG" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129
13130
13131
13132 if test -n "$GUILD"; then
13133 GUILE_TOOLS=$GUILD
13134 else
13135 # Extract the first word of "guile-tools$_guile_suffix", so it can be a program name with args.
13136 set dummy guile-tools$_guile_suffix; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
13140 $as_echo_n "(cached) " >&6
13141 else
13142 case $GUILE_TOOLS in
13143 [\\/]* | ?:[\\/]*)
13144 ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
13145 ;;
13146 *)
13147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150 IFS=$as_save_IFS
13151 test -z "$as_dir" && as_dir=.
13152 for ac_exec_ext in '' $ac_executable_extensions; do
13153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154 ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
13155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 break 2
13157 fi
13158 done
13159 done
13160 IFS=$as_save_IFS
13161
13162 ;;
13163 esac
13164 fi
13165 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
13166 if test -n "$GUILE_TOOLS"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
13168 $as_echo "$GUILE_TOOLS" >&6; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13172 fi
13173
13174
13175 fi
13176
13177
13178 # Extract the first word of "guile-snarf", so it can be a program name with args.
13179 set dummy guile-snarf; ac_word=$2
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13181 $as_echo_n "checking for $ac_word... " >&6; }
13182 if ${ac_cv_path_guile_snarf+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 case $guile_snarf in
13186 [\\/]* | ?:[\\/]*)
13187 ac_cv_path_guile_snarf="$guile_snarf" # Let the user override the test with a path.
13188 ;;
13189 *)
13190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191 for as_dir in $PATH
13192 do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13197 ac_cv_path_guile_snarf="$as_dir/$ac_word$ac_exec_ext"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201 done
13202 done
13203 IFS=$as_save_IFS
13204
13205 test -z "$ac_cv_path_guile_snarf" && ac_cv_path_guile_snarf="not-found"
13206 ;;
13207 esac
13208 fi
13209 guile_snarf=$ac_cv_path_guile_snarf
13210 if test -n "$guile_snarf"; then
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_snarf" >&5
13212 $as_echo "$guile_snarf" >&6; }
13213 else
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215 $as_echo "no" >&6; }
13216 fi
13217
13218
13219 if test "x$guile_snarf" = "xnot-found"; then
13220 as_fn_error $? "\`guile-snarf' not found. Please install Guile 2.x, 3.x or later." "$LINENO" 5
13221 fi
13222
13223
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site directory" >&5
13225 $as_echo_n "checking for Guile site directory... " >&6; }
13226 GUILE_SITE=`$PKG_CONFIG --print-errors --variable=sitedir guile-$GUILE_EFFECTIVE_VERSION`
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE" >&5
13228 $as_echo "$GUILE_SITE" >&6; }
13229 if test "$GUILE_SITE" = ""; then
13230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13232 as_fn_error $? "sitedir not found
13233 See \`config.log' for more details" "$LINENO" 5; }
13234 fi
13235
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using pkgconfig" >&5
13237 $as_echo_n "checking for Guile site-ccache directory using pkgconfig... " >&6; }
13238 GUILE_SITE_CCACHE=`$PKG_CONFIG --variable=siteccachedir guile-$GUILE_EFFECTIVE_VERSION`
13239 if test "$GUILE_SITE_CCACHE" = ""; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241 $as_echo "no" >&6; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile site-ccache directory using interpreter" >&5
13243 $as_echo_n "checking for Guile site-ccache directory using interpreter... " >&6; }
13244 GUILE_SITE_CCACHE=`$GUILE -c "(display (if (defined? '%site-ccache-dir) (%site-ccache-dir) \"\"))"`
13245 if test $? != "0" -o "$GUILE_SITE_CCACHE" = ""; then
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13247 $as_echo "no" >&6; }
13248 GUILE_SITE_CCACHE=""
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: siteccachedir not found" >&5
13250 $as_echo "$as_me: WARNING: siteccachedir not found" >&2;}
13251 fi
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_SITE_CCACHE" >&5
13254 $as_echo "$GUILE_SITE_CCACHE" >&6; }
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Guile extensions directory" >&5
13257 $as_echo_n "checking for Guile extensions directory... " >&6; }
13258 GUILE_EXTENSION=`$PKG_CONFIG --print-errors --variable=extensiondir guile-$GUILE_EFFECTIVE_VERSION`
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_EXTENSION" >&5
13260 $as_echo "$GUILE_EXTENSION" >&6; }
13261 if test "$GUILE_EXTENSION" = ""; then
13262 GUILE_EXTENSION=""
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: extensiondir not found" >&5
13264 $as_echo "$as_me: WARNING: extensiondir not found" >&2;}
13265 fi
13266
13267
13268
13269 GUILE_CFLAGS="`$PKG_CONFIG guile-$GUILE_EFFECTIVE_VERSION --cflags`"
13270 GUILE_LDFLAGS="`$PKG_CONFIG guile-$GUILE_EFFECTIVE_VERSION --libs`"
13271
13272
13273
13274 cat >confcache <<\_ACEOF
13275 # This file is a shell script that caches the results of configure
13276 # tests run on this system so they can be shared between configure
13277 # scripts and configure runs, see configure's option --config-cache.
13278 # It is not useful on other systems. If it contains results you don't
13279 # want to keep, you may remove or edit it.
13280 #
13281 # config.status only pays attention to the cache file if you give it
13282 # the --recheck option to rerun configure.
13283 #
13284 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13285 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13286 # following values.
13287
13288 _ACEOF
13289
13290 # The following way of writing the cache mishandles newlines in values,
13291 # but we know of no workaround that is simple, portable, and efficient.
13292 # So, we kill variables containing newlines.
13293 # Ultrix sh set writes to stderr and can't be redirected directly,
13294 # and sets the high bit in the cache file unless we assign to the vars.
13295 (
13296 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13297 eval ac_val=\$$ac_var
13298 case $ac_val in #(
13299 *${as_nl}*)
13300 case $ac_var in #(
13301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13303 esac
13304 case $ac_var in #(
13305 _ | IFS | as_nl) ;; #(
13306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13307 *) { eval $ac_var=; unset $ac_var;} ;;
13308 esac ;;
13309 esac
13310 done
13311
13312 (set) 2>&1 |
13313 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13314 *${as_nl}ac_space=\ *)
13315 # `set' does not quote correctly, so add quotes: double-quote
13316 # substitution turns \\\\ into \\, and sed turns \\ into \.
13317 sed -n \
13318 "s/'/'\\\\''/g;
13319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13320 ;; #(
13321 *)
13322 # `set' quotes correctly as required by POSIX, so do not add quotes.
13323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13324 ;;
13325 esac |
13326 sort
13327 ) |
13328 sed '
13329 /^ac_cv_env_/b end
13330 t clear
13331 :clear
13332 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13333 t end
13334 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13335 :end' >>confcache
13336 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13337 if test -w "$cache_file"; then
13338 if test "x$cache_file" != "x/dev/null"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13340 $as_echo "$as_me: updating cache $cache_file" >&6;}
13341 if test ! -f "$cache_file" || test -h "$cache_file"; then
13342 cat confcache >"$cache_file"
13343 else
13344 case $cache_file in #(
13345 */* | ?:*)
13346 mv -f confcache "$cache_file"$$ &&
13347 mv -f "$cache_file"$$ "$cache_file" ;; #(
13348 *)
13349 mv -f confcache "$cache_file" ;;
13350 esac
13351 fi
13352 fi
13353 else
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13355 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13356 fi
13357 fi
13358 rm -f confcache
13359
13360
13361 # Avahi.
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Avahi is available" >&5
13363 $as_echo_n "checking whether Avahi is available... " >&6; }
13364
13365 pkg_failed=no
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi-client" >&5
13367 $as_echo_n "checking for avahi-client... " >&6; }
13368
13369 if test -n "$AVAHI_CFLAGS"; then
13370 pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
13371 elif test -n "$PKG_CONFIG"; then
13372 if test -n "$PKG_CONFIG" && \
13373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
13374 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
13375 ac_status=$?
13376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13377 test $ac_status = 0; }; then
13378 pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
13379 test "x$?" != "x0" && pkg_failed=yes
13380 else
13381 pkg_failed=yes
13382 fi
13383 else
13384 pkg_failed=untried
13385 fi
13386 if test -n "$AVAHI_LIBS"; then
13387 pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
13388 elif test -n "$PKG_CONFIG"; then
13389 if test -n "$PKG_CONFIG" && \
13390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
13391 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
13392 ac_status=$?
13393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394 test $ac_status = 0; }; then
13395 pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
13396 test "x$?" != "x0" && pkg_failed=yes
13397 else
13398 pkg_failed=yes
13399 fi
13400 else
13401 pkg_failed=untried
13402 fi
13403
13404
13405
13406 if test $pkg_failed = yes; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408 $as_echo "no" >&6; }
13409
13410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13411 _pkg_short_errors_supported=yes
13412 else
13413 _pkg_short_errors_supported=no
13414 fi
13415 if test $_pkg_short_errors_supported = yes; then
13416 AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
13417 else
13418 AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
13419 fi
13420 # Put the nasty error message in config.log where it belongs
13421 echo "$AVAHI_PKG_ERRORS" >&5
13422
13423 as_fn_error $? "Avahi could not be found, please install it first." "$LINENO" 5
13424 elif test $pkg_failed = untried; then
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13426 $as_echo "no" >&6; }
13427 as_fn_error $? "Avahi could not be found, please install it first." "$LINENO" 5
13428 else
13429 AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
13430 AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13432 $as_echo "yes" >&6; }
13433
13434 fi
13435 AVAHI_CPPFLAGS="`$PKG_CONFIG avahi-client --cflags-only-I`"
13436
13437
13438 # Checks for header files.
13439 for ac_header in net/if.h gmp.h
13440 do :
13441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13442 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13443 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13444 cat >>confdefs.h <<_ACEOF
13445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13446 _ACEOF
13447
13448 fi
13449
13450 done
13451
13452 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/thread-watch.h" "ac_cv_header_avahi_common_thread_watch_h" "$ac_includes_default"
13453 if test "x$ac_cv_header_avahi_common_thread_watch_h" = xyes; then :
13454 :
13455 else
13456 as_fn_error $? "Avahi >= 0.6.4 (with \`AvahiThreadedPoll') is needed." "$LINENO" 5
13457 fi
13458
13459
13460
13461 # `AVAHI_ERR_NO_CHANGE' was added in Avahi 0.6.13 (svn rev. 1266).
13462 old_CFLAGS="$CFLAGS"
13463 CFLAGS="$AVAHI_CFLAGS $CFLAGS"
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the \`AVAHI_ERR_NO_CHANGE' enum is defined" >&5
13465 $as_echo_n "checking whether the \`AVAHI_ERR_NO_CHANGE' enum is defined... " >&6; }
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 #include <avahi-common/error.h>
13469 /* Try to redefine the enum value. It will fail
13470 if it's already defined. */
13471 enum ga_check_enum_test { AVAHI_ERR_NO_CHANGE };
13472 int
13473 main ()
13474 {
13475 return AVAHI_ERR_NO_CHANGE;
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"; then :
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13482 $as_echo "no" >&6; }
13483 have_err_no_change=no
13484 else
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486 $as_echo "yes" >&6; }
13487 have_err_no_change=yes
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 if test "x$have_err_no_change" = "xyes"; then
13491 HAVE_AVAHI_ERR_NO_CHANGE_TRUE=
13492 HAVE_AVAHI_ERR_NO_CHANGE_FALSE='#'
13493 else
13494 HAVE_AVAHI_ERR_NO_CHANGE_TRUE='#'
13495 HAVE_AVAHI_ERR_NO_CHANGE_FALSE=
13496 fi
13497
13498 CFLAGS="$old_CFLAGS"
13499
13500 # `avahi_client_set_host_name ()' was added in Avahi 0.6.13.
13501 old_LIBS="$LIBS"
13502 LIBS="$AVAHI_LIBS $LIBS"
13503 for ac_func in avahi_client_set_host_name
13504 do :
13505 ac_fn_c_check_func "$LINENO" "avahi_client_set_host_name" "ac_cv_func_avahi_client_set_host_name"
13506 if test "x$ac_cv_func_avahi_client_set_host_name" = xyes; then :
13507 cat >>confdefs.h <<_ACEOF
13508 #define HAVE_AVAHI_CLIENT_SET_HOST_NAME 1
13509 _ACEOF
13510
13511 fi
13512 done
13513
13514 LIBS="$old_LIBS"
13515
13516 # Checks for typedefs, structures, and compiler characteristics.
13517
13518 # Checks for library functions.
13519 for ac_func in if_nametoindex if_indextoname
13520 do :
13521 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13523 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13524 cat >>confdefs.h <<_ACEOF
13525 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13526 _ACEOF
13527
13528 fi
13529 done
13530
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
13532 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
13533 if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-lgmp $LIBS"
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13544 #ifdef __cplusplus
13545 extern "C"
13546 #endif
13547 char __gmpz_init ();
13548 int
13549 main ()
13550 {
13551 return __gmpz_init ();
13552 ;
13553 return 0;
13554 }
13555 _ACEOF
13556 if ac_fn_c_try_link "$LINENO"; then :
13557 ac_cv_lib_gmp___gmpz_init=yes
13558 else
13559 ac_cv_lib_gmp___gmpz_init=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
13566 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
13567 if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
13568 LIBS="$LIBS -lgmp"
13569 else
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNU MP not found, see README" >&5
13571 $as_echo "$as_me: WARNING: GNU MP not found, see README" >&2;}
13572 fi
13573
13574
13575 if test "x$cross_compiling" = "xyes"; then
13576 CROSS_COMPILING_TRUE=
13577 CROSS_COMPILING_FALSE='#'
13578 else
13579 CROSS_COMPILING_TRUE='#'
13580 CROSS_COMPILING_FALSE=
13581 fi
13582
13583
13584 if test "x$guilemoduledir" = "x"; then
13585 guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
13586 fi
13587
13588
13589 if test "$guilemoduledir" != "$GUILE_SITE"; then
13590 # Guile won't be able to locate the module "out of the box", so
13591 # warn the user.
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`guilemoduledir' ($guilemoduledir) is different from \`GUILE_SITE' ($GUILE_SITE)." >&5
13593 $as_echo "$as_me: WARNING: \`guilemoduledir' ($guilemoduledir) is different from \`GUILE_SITE' ($GUILE_SITE)." >&2;}
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Make sure to adjust the \`GUILE_LOAD_PATH' environment variable accordingly," >&5
13595 $as_echo "$as_me: WARNING: Make sure to adjust the \`GUILE_LOAD_PATH' environment variable accordingly," >&2;}
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or re-run \`configure' with \`--with-guilemoduledir=$GUILE_SITE'." >&5
13597 $as_echo "$as_me: WARNING: or re-run \`configure' with \`--with-guilemoduledir=$GUILE_SITE'." >&2;}
13598 fi
13599
13600 # Location of the dlopenable .so.
13601 guileextensiondir='${libdir}/guile/${GUILE_EFFECTIVE_VERSION}/extensions'
13602
13603
13604 # Do we need to hard-code $guileextensiondir in gnutls.scm?
13605 # This is not necessary when $guileextensiondir is equal to
13606 # Guile's 'extensiondir' as specified in 'guile-MAJOR.MINOR.pc'.
13607 maybe_guileextensiondir="\"$guileextensiondir\""
13608 if test "$guileextensiondir" = "`$PKG_CONFIG guile-$GUILE_EFFECTIVE_VERSION --variable extensiondir`" \
13609 || test "$guileextensiondir" = '$(GUILE_EXTENSION)'; then
13610 maybe_guileextensiondir='#f'
13611 fi
13612
13613
13614 ac_config_files="$ac_config_files Makefile pre-inst-guile"
13615
13616 ac_config_commands="$ac_config_commands pre-inst-guile-exec"
13617
13618
13619 cat >confcache <<\_ACEOF
13620 # This file is a shell script that caches the results of configure
13621 # tests run on this system so they can be shared between configure
13622 # scripts and configure runs, see configure's option --config-cache.
13623 # It is not useful on other systems. If it contains results you don't
13624 # want to keep, you may remove or edit it.
13625 #
13626 # config.status only pays attention to the cache file if you give it
13627 # the --recheck option to rerun configure.
13628 #
13629 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13630 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13631 # following values.
13632
13633 _ACEOF
13634
13635 # The following way of writing the cache mishandles newlines in values,
13636 # but we know of no workaround that is simple, portable, and efficient.
13637 # So, we kill variables containing newlines.
13638 # Ultrix sh set writes to stderr and can't be redirected directly,
13639 # and sets the high bit in the cache file unless we assign to the vars.
13640 (
13641 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13642 eval ac_val=\$$ac_var
13643 case $ac_val in #(
13644 *${as_nl}*)
13645 case $ac_var in #(
13646 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13647 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13648 esac
13649 case $ac_var in #(
13650 _ | IFS | as_nl) ;; #(
13651 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13652 *) { eval $ac_var=; unset $ac_var;} ;;
13653 esac ;;
13654 esac
13655 done
13656
13657 (set) 2>&1 |
13658 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13659 *${as_nl}ac_space=\ *)
13660 # `set' does not quote correctly, so add quotes: double-quote
13661 # substitution turns \\\\ into \\, and sed turns \\ into \.
13662 sed -n \
13663 "s/'/'\\\\''/g;
13664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13665 ;; #(
13666 *)
13667 # `set' quotes correctly as required by POSIX, so do not add quotes.
13668 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13669 ;;
13670 esac |
13671 sort
13672 ) |
13673 sed '
13674 /^ac_cv_env_/b end
13675 t clear
13676 :clear
13677 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13678 t end
13679 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13680 :end' >>confcache
13681 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13682 if test -w "$cache_file"; then
13683 if test "x$cache_file" != "x/dev/null"; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13685 $as_echo "$as_me: updating cache $cache_file" >&6;}
13686 if test ! -f "$cache_file" || test -h "$cache_file"; then
13687 cat confcache >"$cache_file"
13688 else
13689 case $cache_file in #(
13690 */* | ?:*)
13691 mv -f confcache "$cache_file"$$ &&
13692 mv -f "$cache_file"$$ "$cache_file" ;; #(
13693 *)
13694 mv -f confcache "$cache_file" ;;
13695 esac
13696 fi
13697 fi
13698 else
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13700 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13701 fi
13702 fi
13703 rm -f confcache
13704
13705 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13706 # Let make expand exec_prefix.
13707 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13708
13709 DEFS=-DHAVE_CONFIG_H
13710
13711 ac_libobjs=
13712 ac_ltlibobjs=
13713 U=
13714 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13715 # 1. Remove the extension, and $U if already installed.
13716 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13717 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13718 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13719 # will be set to the directory where LIBOBJS objects are built.
13720 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13721 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13722 done
13723 LIBOBJS=$ac_libobjs
13724
13725 LTLIBOBJS=$ac_ltlibobjs
13726
13727
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13729 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13730 if test -n "$am_sleep_pid"; then
13731 # Hide warnings about reused PIDs.
13732 wait $am_sleep_pid 2>/dev/null
13733 fi
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13735 $as_echo "done" >&6; }
13736 if test -n "$EXEEXT"; then
13737 am__EXEEXT_TRUE=
13738 am__EXEEXT_FALSE='#'
13739 else
13740 am__EXEEXT_TRUE='#'
13741 am__EXEEXT_FALSE=
13742 fi
13743
13744 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13745 as_fn_error $? "conditional \"AMDEP\" was never defined.
13746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747 fi
13748 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13749 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13751 fi
13752 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13753 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13755 fi
13756 if test -z "${HAVE_AVAHI_ERR_NO_CHANGE_TRUE}" && test -z "${HAVE_AVAHI_ERR_NO_CHANGE_FALSE}"; then
13757 as_fn_error $? "conditional \"HAVE_AVAHI_ERR_NO_CHANGE\" was never defined.
13758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13759 fi
13760 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
13761 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
13762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13763 fi
13764
13765 : "${CONFIG_STATUS=./config.status}"
13766 ac_write_fail=0
13767 ac_clean_files_save=$ac_clean_files
13768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13771 as_write_fail=0
13772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13773 #! $SHELL
13774 # Generated by $as_me.
13775 # Run this file to recreate the current configuration.
13776 # Compiler output produced by configure, useful for debugging
13777 # configure, is in config.log if it exists.
13778
13779 debug=false
13780 ac_cs_recheck=false
13781 ac_cs_silent=false
13782
13783 SHELL=\${CONFIG_SHELL-$SHELL}
13784 export SHELL
13785 _ASEOF
13786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13787 ## -------------------- ##
13788 ## M4sh Initialization. ##
13789 ## -------------------- ##
13790
13791 # Be more Bourne compatible
13792 DUALCASE=1; export DUALCASE # for MKS sh
13793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13794 emulate sh
13795 NULLCMD=:
13796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13797 # is contrary to our usage. Disable this feature.
13798 alias -g '${1+"$@"}'='"$@"'
13799 setopt NO_GLOB_SUBST
13800 else
13801 case `(set -o) 2>/dev/null` in #(
13802 *posix*) :
13803 set -o posix ;; #(
13804 *) :
13805 ;;
13806 esac
13807 fi
13808
13809
13810 as_nl='
13811 '
13812 export as_nl
13813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13817 # Prefer a ksh shell builtin over an external printf program on Solaris,
13818 # but without wasting forks for bash or zsh.
13819 if test -z "$BASH_VERSION$ZSH_VERSION" \
13820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13821 as_echo='print -r --'
13822 as_echo_n='print -rn --'
13823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13824 as_echo='printf %s\n'
13825 as_echo_n='printf %s'
13826 else
13827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13829 as_echo_n='/usr/ucb/echo -n'
13830 else
13831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13832 as_echo_n_body='eval
13833 arg=$1;
13834 case $arg in #(
13835 *"$as_nl"*)
13836 expr "X$arg" : "X\\(.*\\)$as_nl";
13837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13838 esac;
13839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13840 '
13841 export as_echo_n_body
13842 as_echo_n='sh -c $as_echo_n_body as_echo'
13843 fi
13844 export as_echo_body
13845 as_echo='sh -c $as_echo_body as_echo'
13846 fi
13847
13848 # The user is always right.
13849 if test "${PATH_SEPARATOR+set}" != set; then
13850 PATH_SEPARATOR=:
13851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13853 PATH_SEPARATOR=';'
13854 }
13855 fi
13856
13857
13858 # IFS
13859 # We need space, tab and new line, in precisely that order. Quoting is
13860 # there to prevent editors from complaining about space-tab.
13861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13862 # splitting by setting IFS to empty value.)
13863 IFS=" "" $as_nl"
13864
13865 # Find who we are. Look in the path if we contain no directory separator.
13866 as_myself=
13867 case $0 in #((
13868 *[\\/]* ) as_myself=$0 ;;
13869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870 for as_dir in $PATH
13871 do
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13875 done
13876 IFS=$as_save_IFS
13877
13878 ;;
13879 esac
13880 # We did not find ourselves, most probably we were run as `sh COMMAND'
13881 # in which case we are not to be found in the path.
13882 if test "x$as_myself" = x; then
13883 as_myself=$0
13884 fi
13885 if test ! -f "$as_myself"; then
13886 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13887 exit 1
13888 fi
13889
13890 # Unset variables that we do not need and which cause bugs (e.g. in
13891 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13892 # suppresses any "Segmentation fault" message there. '((' could
13893 # trigger a bug in pdksh 5.2.14.
13894 for as_var in BASH_ENV ENV MAIL MAILPATH
13895 do eval test x\${$as_var+set} = xset \
13896 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13897 done
13898 PS1='$ '
13899 PS2='> '
13900 PS4='+ '
13901
13902 # NLS nuisances.
13903 LC_ALL=C
13904 export LC_ALL
13905 LANGUAGE=C
13906 export LANGUAGE
13907
13908 # CDPATH.
13909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13910
13911
13912 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13913 # ----------------------------------------
13914 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13915 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13916 # script with STATUS, using 1 if that was 0.
13917 as_fn_error ()
13918 {
13919 as_status=$1; test $as_status -eq 0 && as_status=1
13920 if test "$4"; then
13921 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13922 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13923 fi
13924 $as_echo "$as_me: error: $2" >&2
13925 as_fn_exit $as_status
13926 } # as_fn_error
13927
13928
13929 # as_fn_set_status STATUS
13930 # -----------------------
13931 # Set $? to STATUS, without forking.
13932 as_fn_set_status ()
13933 {
13934 return $1
13935 } # as_fn_set_status
13936
13937 # as_fn_exit STATUS
13938 # -----------------
13939 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13940 as_fn_exit ()
13941 {
13942 set +e
13943 as_fn_set_status $1
13944 exit $1
13945 } # as_fn_exit
13946
13947 # as_fn_unset VAR
13948 # ---------------
13949 # Portably unset VAR.
13950 as_fn_unset ()
13951 {
13952 { eval $1=; unset $1;}
13953 }
13954 as_unset=as_fn_unset
13955 # as_fn_append VAR VALUE
13956 # ----------------------
13957 # Append the text in VALUE to the end of the definition contained in VAR. Take
13958 # advantage of any shell optimizations that allow amortized linear growth over
13959 # repeated appends, instead of the typical quadratic growth present in naive
13960 # implementations.
13961 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13962 eval 'as_fn_append ()
13963 {
13964 eval $1+=\$2
13965 }'
13966 else
13967 as_fn_append ()
13968 {
13969 eval $1=\$$1\$2
13970 }
13971 fi # as_fn_append
13972
13973 # as_fn_arith ARG...
13974 # ------------------
13975 # Perform arithmetic evaluation on the ARGs, and store the result in the
13976 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13977 # must be portable across $(()) and expr.
13978 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13979 eval 'as_fn_arith ()
13980 {
13981 as_val=$(( $* ))
13982 }'
13983 else
13984 as_fn_arith ()
13985 {
13986 as_val=`expr "$@" || test $? -eq 1`
13987 }
13988 fi # as_fn_arith
13989
13990
13991 if expr a : '\(a\)' >/dev/null 2>&1 &&
13992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13993 as_expr=expr
13994 else
13995 as_expr=false
13996 fi
13997
13998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13999 as_basename=basename
14000 else
14001 as_basename=false
14002 fi
14003
14004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14005 as_dirname=dirname
14006 else
14007 as_dirname=false
14008 fi
14009
14010 as_me=`$as_basename -- "$0" ||
14011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14012 X"$0" : 'X\(//\)$' \| \
14013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14014 $as_echo X/"$0" |
14015 sed '/^.*\/\([^/][^/]*\)\/*$/{
14016 s//\1/
14017 q
14018 }
14019 /^X\/\(\/\/\)$/{
14020 s//\1/
14021 q
14022 }
14023 /^X\/\(\/\).*/{
14024 s//\1/
14025 q
14026 }
14027 s/.*/./; q'`
14028
14029 # Avoid depending upon Character Ranges.
14030 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14033 as_cr_digits='0123456789'
14034 as_cr_alnum=$as_cr_Letters$as_cr_digits
14035
14036 ECHO_C= ECHO_N= ECHO_T=
14037 case `echo -n x` in #(((((
14038 -n*)
14039 case `echo 'xy\c'` in
14040 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14041 xy) ECHO_C='\c';;
14042 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14043 ECHO_T=' ';;
14044 esac;;
14045 *)
14046 ECHO_N='-n';;
14047 esac
14048
14049 rm -f conf$$ conf$$.exe conf$$.file
14050 if test -d conf$$.dir; then
14051 rm -f conf$$.dir/conf$$.file
14052 else
14053 rm -f conf$$.dir
14054 mkdir conf$$.dir 2>/dev/null
14055 fi
14056 if (echo >conf$$.file) 2>/dev/null; then
14057 if ln -s conf$$.file conf$$ 2>/dev/null; then
14058 as_ln_s='ln -s'
14059 # ... but there are two gotchas:
14060 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14061 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14062 # In both cases, we have to default to `cp -pR'.
14063 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14064 as_ln_s='cp -pR'
14065 elif ln conf$$.file conf$$ 2>/dev/null; then
14066 as_ln_s=ln
14067 else
14068 as_ln_s='cp -pR'
14069 fi
14070 else
14071 as_ln_s='cp -pR'
14072 fi
14073 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14074 rmdir conf$$.dir 2>/dev/null
14075
14076
14077 # as_fn_mkdir_p
14078 # -------------
14079 # Create "$as_dir" as a directory, including parents if necessary.
14080 as_fn_mkdir_p ()
14081 {
14082
14083 case $as_dir in #(
14084 -*) as_dir=./$as_dir;;
14085 esac
14086 test -d "$as_dir" || eval $as_mkdir_p || {
14087 as_dirs=
14088 while :; do
14089 case $as_dir in #(
14090 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14091 *) as_qdir=$as_dir;;
14092 esac
14093 as_dirs="'$as_qdir' $as_dirs"
14094 as_dir=`$as_dirname -- "$as_dir" ||
14095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14096 X"$as_dir" : 'X\(//\)[^/]' \| \
14097 X"$as_dir" : 'X\(//\)$' \| \
14098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14099 $as_echo X"$as_dir" |
14100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14101 s//\1/
14102 q
14103 }
14104 /^X\(\/\/\)[^/].*/{
14105 s//\1/
14106 q
14107 }
14108 /^X\(\/\/\)$/{
14109 s//\1/
14110 q
14111 }
14112 /^X\(\/\).*/{
14113 s//\1/
14114 q
14115 }
14116 s/.*/./; q'`
14117 test -d "$as_dir" && break
14118 done
14119 test -z "$as_dirs" || eval "mkdir $as_dirs"
14120 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14121
14122
14123 } # as_fn_mkdir_p
14124 if mkdir -p . 2>/dev/null; then
14125 as_mkdir_p='mkdir -p "$as_dir"'
14126 else
14127 test -d ./-p && rmdir ./-p
14128 as_mkdir_p=false
14129 fi
14130
14131
14132 # as_fn_executable_p FILE
14133 # -----------------------
14134 # Test if FILE is an executable regular file.
14135 as_fn_executable_p ()
14136 {
14137 test -f "$1" && test -x "$1"
14138 } # as_fn_executable_p
14139 as_test_x='test -x'
14140 as_executable_p=as_fn_executable_p
14141
14142 # Sed expression to map a string onto a valid CPP name.
14143 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14144
14145 # Sed expression to map a string onto a valid variable name.
14146 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14147
14148
14149 exec 6>&1
14150 ## ----------------------------------- ##
14151 ## Main body of $CONFIG_STATUS script. ##
14152 ## ----------------------------------- ##
14153 _ASEOF
14154 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14155
14156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14157 # Save the log message, to keep $0 and so on meaningful, and to
14158 # report actual input values of CONFIG_FILES etc. instead of their
14159 # values after options handling.
14160 ac_log="
14161 This file was extended by Guile-Avahi $as_me 0.4.1, which was
14162 generated by GNU Autoconf 2.69. Invocation command line was
14163
14164 CONFIG_FILES = $CONFIG_FILES
14165 CONFIG_HEADERS = $CONFIG_HEADERS
14166 CONFIG_LINKS = $CONFIG_LINKS
14167 CONFIG_COMMANDS = $CONFIG_COMMANDS
14168 $ $0 $@
14169
14170 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14171 "
14172
14173 _ACEOF
14174
14175 case $ac_config_files in *"
14176 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14177 esac
14178
14179 case $ac_config_headers in *"
14180 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14181 esac
14182
14183
14184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14185 # Files that config.status was made for.
14186 config_files="$ac_config_files"
14187 config_headers="$ac_config_headers"
14188 config_commands="$ac_config_commands"
14189
14190 _ACEOF
14191
14192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14193 ac_cs_usage="\
14194 \`$as_me' instantiates files and other configuration actions
14195 from templates according to the current configuration. Unless the files
14196 and actions are specified as TAGs, all are instantiated by default.
14197
14198 Usage: $0 [OPTION]... [TAG]...
14199
14200 -h, --help print this help, then exit
14201 -V, --version print version number and configuration settings, then exit
14202 --config print configuration, then exit
14203 -q, --quiet, --silent
14204 do not print progress messages
14205 -d, --debug don't remove temporary files
14206 --recheck update $as_me by reconfiguring in the same conditions
14207 --file=FILE[:TEMPLATE]
14208 instantiate the configuration file FILE
14209 --header=FILE[:TEMPLATE]
14210 instantiate the configuration header FILE
14211
14212 Configuration files:
14213 $config_files
14214
14215 Configuration headers:
14216 $config_headers
14217
14218 Configuration commands:
14219 $config_commands
14220
14221 Report bugs to <[email protected]>."
14222
14223 _ACEOF
14224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14225 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14226 ac_cs_version="\\
14227 Guile-Avahi config.status 0.4.1
14228 configured by $0, generated by GNU Autoconf 2.69,
14229 with options \\"\$ac_cs_config\\"
14230
14231 Copyright (C) 2012 Free Software Foundation, Inc.
14232 This config.status script is free software; the Free Software Foundation
14233 gives unlimited permission to copy, distribute and modify it."
14234
14235 ac_pwd='$ac_pwd'
14236 srcdir='$srcdir'
14237 INSTALL='$INSTALL'
14238 MKDIR_P='$MKDIR_P'
14239 AWK='$AWK'
14240 test -n "\$AWK" || AWK=awk
14241 _ACEOF
14242
14243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14244 # The default lists apply if the user does not specify any file.
14245 ac_need_defaults=:
14246 while test $# != 0
14247 do
14248 case $1 in
14249 --*=?*)
14250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14252 ac_shift=:
14253 ;;
14254 --*=)
14255 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14256 ac_optarg=
14257 ac_shift=:
14258 ;;
14259 *)
14260 ac_option=$1
14261 ac_optarg=$2
14262 ac_shift=shift
14263 ;;
14264 esac
14265
14266 case $ac_option in
14267 # Handling of the options.
14268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14269 ac_cs_recheck=: ;;
14270 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14271 $as_echo "$ac_cs_version"; exit ;;
14272 --config | --confi | --conf | --con | --co | --c )
14273 $as_echo "$ac_cs_config"; exit ;;
14274 --debug | --debu | --deb | --de | --d | -d )
14275 debug=: ;;
14276 --file | --fil | --fi | --f )
14277 $ac_shift
14278 case $ac_optarg in
14279 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14280 '') as_fn_error $? "missing file argument" ;;
14281 esac
14282 as_fn_append CONFIG_FILES " '$ac_optarg'"
14283 ac_need_defaults=false;;
14284 --header | --heade | --head | --hea )
14285 $ac_shift
14286 case $ac_optarg in
14287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14288 esac
14289 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14290 ac_need_defaults=false;;
14291 --he | --h)
14292 # Conflict between --help and --header
14293 as_fn_error $? "ambiguous option: \`$1'
14294 Try \`$0 --help' for more information.";;
14295 --help | --hel | -h )
14296 $as_echo "$ac_cs_usage"; exit ;;
14297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14299 ac_cs_silent=: ;;
14300
14301 # This is an error.
14302 -*) as_fn_error $? "unrecognized option: \`$1'
14303 Try \`$0 --help' for more information." ;;
14304
14305 *) as_fn_append ac_config_targets " $1"
14306 ac_need_defaults=false ;;
14307
14308 esac
14309 shift
14310 done
14311
14312 ac_configure_extra_args=
14313
14314 if $ac_cs_silent; then
14315 exec 6>/dev/null
14316 ac_configure_extra_args="$ac_configure_extra_args --silent"
14317 fi
14318
14319 _ACEOF
14320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14321 if \$ac_cs_recheck; then
14322 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14323 shift
14324 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14325 CONFIG_SHELL='$SHELL'
14326 export CONFIG_SHELL
14327 exec "\$@"
14328 fi
14329
14330 _ACEOF
14331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14332 exec 5>>config.log
14333 {
14334 echo
14335 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14336 ## Running $as_me. ##
14337 _ASBOX
14338 $as_echo "$ac_log"
14339 } >&5
14340
14341 _ACEOF
14342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14343 #
14344 # INIT-COMMANDS
14345 #
14346 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14347
14348
14349 # The HP-UX ksh and POSIX shell print the target directory to stdout
14350 # if CDPATH is set.
14351 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14352
14353 sed_quote_subst='$sed_quote_subst'
14354 double_quote_subst='$double_quote_subst'
14355 delay_variable_subst='$delay_variable_subst'
14356 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14357 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14358 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14359 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14360 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14361 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14362 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14363 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14364 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14365 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14366 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14367 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14368 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14369 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14370 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14371 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14372 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14373 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14374 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14375 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14376 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14377 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14378 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14379 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14380 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14381 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14382 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14383 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14384 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14385 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14386 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14387 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14388 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14389 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14390 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14391 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14392 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14393 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14394 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14395 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14396 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14397 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14398 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14399 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14400 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14401 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14402 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14403 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14404 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14405 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14406 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14407 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14408 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14409 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14410 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14411 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14412 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14413 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14414 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"`'
14415 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14416 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14417 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14418 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14419 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14420 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14421 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14422 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14423 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14424 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14425 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14426 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14427 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14428 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14429 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14430 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14431 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14432 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14433 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14434 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14435 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14436 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14437 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14438 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14439 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14440 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14441 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14442 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14443 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14444 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14445 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14446 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14447 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14448 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14449 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14450 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14451 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14452 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14453 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14454 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14455 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14456 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14457 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14458 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14459 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14460 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14461 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14462 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14463 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14464 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14465 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14466 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14467 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14468 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14469 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14470 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14471 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14472 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14473 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14474 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14475 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14476 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14477 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14478 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14479 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14480 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14481 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14482 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14483 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14484 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14485 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14486 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14487 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14488 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14489 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14490 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14491
14492 LTCC='$LTCC'
14493 LTCFLAGS='$LTCFLAGS'
14494 compiler='$compiler_DEFAULT'
14495
14496 # A function that is used when there is no print builtin or printf.
14497 func_fallback_echo ()
14498 {
14499 eval 'cat <<_LTECHO_EOF
14500 \$1
14501 _LTECHO_EOF'
14502 }
14503
14504 # Quote evaled strings.
14505 for var in SHELL \
14506 ECHO \
14507 PATH_SEPARATOR \
14508 SED \
14509 GREP \
14510 EGREP \
14511 FGREP \
14512 LD \
14513 NM \
14514 LN_S \
14515 lt_SP2NL \
14516 lt_NL2SP \
14517 reload_flag \
14518 OBJDUMP \
14519 deplibs_check_method \
14520 file_magic_cmd \
14521 file_magic_glob \
14522 want_nocaseglob \
14523 DLLTOOL \
14524 sharedlib_from_linklib_cmd \
14525 AR \
14526 AR_FLAGS \
14527 archiver_list_spec \
14528 STRIP \
14529 RANLIB \
14530 CC \
14531 CFLAGS \
14532 compiler \
14533 lt_cv_sys_global_symbol_pipe \
14534 lt_cv_sys_global_symbol_to_cdecl \
14535 lt_cv_sys_global_symbol_to_import \
14536 lt_cv_sys_global_symbol_to_c_name_address \
14537 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14538 lt_cv_nm_interface \
14539 nm_file_list_spec \
14540 lt_cv_truncate_bin \
14541 lt_prog_compiler_no_builtin_flag \
14542 lt_prog_compiler_pic \
14543 lt_prog_compiler_wl \
14544 lt_prog_compiler_static \
14545 lt_cv_prog_compiler_c_o \
14546 need_locks \
14547 MANIFEST_TOOL \
14548 DSYMUTIL \
14549 NMEDIT \
14550 LIPO \
14551 OTOOL \
14552 OTOOL64 \
14553 shrext_cmds \
14554 export_dynamic_flag_spec \
14555 whole_archive_flag_spec \
14556 compiler_needs_object \
14557 with_gnu_ld \
14558 allow_undefined_flag \
14559 no_undefined_flag \
14560 hardcode_libdir_flag_spec \
14561 hardcode_libdir_separator \
14562 exclude_expsyms \
14563 include_expsyms \
14564 file_list_spec \
14565 variables_saved_for_relink \
14566 libname_spec \
14567 library_names_spec \
14568 soname_spec \
14569 install_override_mode \
14570 finish_eval \
14571 old_striplib \
14572 striplib; do
14573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14574 *[\\\\\\\`\\"\\\$]*)
14575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14576 ;;
14577 *)
14578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14579 ;;
14580 esac
14581 done
14582
14583 # Double-quote double-evaled strings.
14584 for var in reload_cmds \
14585 old_postinstall_cmds \
14586 old_postuninstall_cmds \
14587 old_archive_cmds \
14588 extract_expsyms_cmds \
14589 old_archive_from_new_cmds \
14590 old_archive_from_expsyms_cmds \
14591 archive_cmds \
14592 archive_expsym_cmds \
14593 module_cmds \
14594 module_expsym_cmds \
14595 export_symbols_cmds \
14596 prelink_cmds \
14597 postlink_cmds \
14598 postinstall_cmds \
14599 postuninstall_cmds \
14600 finish_cmds \
14601 sys_lib_search_path_spec \
14602 configure_time_dlsearch_path \
14603 configure_time_lt_sys_library_path; do
14604 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14605 *[\\\\\\\`\\"\\\$]*)
14606 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14607 ;;
14608 *)
14609 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14610 ;;
14611 esac
14612 done
14613
14614 ac_aux_dir='$ac_aux_dir'
14615
14616 # See if we are running on zsh, and set the options that allow our
14617 # commands through without removal of \ escapes INIT.
14618 if test -n "\${ZSH_VERSION+set}"; then
14619 setopt NO_GLOB_SUBST
14620 fi
14621
14622
14623 PACKAGE='$PACKAGE'
14624 VERSION='$VERSION'
14625 RM='$RM'
14626 ofile='$ofile'
14627
14628
14629
14630
14631 _ACEOF
14632
14633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14634
14635 # Handling of arguments.
14636 for ac_config_target in $ac_config_targets
14637 do
14638 case $ac_config_target in
14639 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
14640 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14641 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14643 "pre-inst-guile") CONFIG_FILES="$CONFIG_FILES pre-inst-guile" ;;
14644 "pre-inst-guile-exec") CONFIG_COMMANDS="$CONFIG_COMMANDS pre-inst-guile-exec" ;;
14645
14646 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14647 esac
14648 done
14649
14650
14651 # If the user did not use the arguments to specify the items to instantiate,
14652 # then the envvar interface is used. Set only those that are not.
14653 # We use the long form for the default assignment because of an extremely
14654 # bizarre bug on SunOS 4.1.3.
14655 if $ac_need_defaults; then
14656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14659 fi
14660
14661 # Have a temporary directory for convenience. Make it in the build tree
14662 # simply because there is no reason against having it here, and in addition,
14663 # creating and moving files from /tmp can sometimes cause problems.
14664 # Hook for its removal unless debugging.
14665 # Note that there is a small window in which the directory will not be cleaned:
14666 # after its creation but before its name has been assigned to `$tmp'.
14667 $debug ||
14668 {
14669 tmp= ac_tmp=
14670 trap 'exit_status=$?
14671 : "${ac_tmp:=$tmp}"
14672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14673 ' 0
14674 trap 'as_fn_exit 1' 1 2 13 15
14675 }
14676 # Create a (secure) tmp directory for tmp files.
14677
14678 {
14679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14680 test -d "$tmp"
14681 } ||
14682 {
14683 tmp=./conf$$-$RANDOM
14684 (umask 077 && mkdir "$tmp")
14685 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14686 ac_tmp=$tmp
14687
14688 # Set up the scripts for CONFIG_FILES section.
14689 # No need to generate them if there are no CONFIG_FILES.
14690 # This happens for instance with `./config.status config.h'.
14691 if test -n "$CONFIG_FILES"; then
14692
14693
14694 ac_cr=`echo X | tr X '\015'`
14695 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14696 # But we know of no other shell where ac_cr would be empty at this
14697 # point, so we can use a bashism as a fallback.
14698 if test "x$ac_cr" = x; then
14699 eval ac_cr=\$\'\\r\'
14700 fi
14701 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14702 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14703 ac_cs_awk_cr='\\r'
14704 else
14705 ac_cs_awk_cr=$ac_cr
14706 fi
14707
14708 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14709 _ACEOF
14710
14711
14712 {
14713 echo "cat >conf$$subs.awk <<_ACEOF" &&
14714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14715 echo "_ACEOF"
14716 } >conf$$subs.sh ||
14717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14718 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14719 ac_delim='%!_!# '
14720 for ac_last_try in false false false false false :; do
14721 . ./conf$$subs.sh ||
14722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14723
14724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14725 if test $ac_delim_n = $ac_delim_num; then
14726 break
14727 elif $ac_last_try; then
14728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14729 else
14730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14731 fi
14732 done
14733 rm -f conf$$subs.sh
14734
14735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14736 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14737 _ACEOF
14738 sed -n '
14739 h
14740 s/^/S["/; s/!.*/"]=/
14741 p
14742 g
14743 s/^[^!]*!//
14744 :repl
14745 t repl
14746 s/'"$ac_delim"'$//
14747 t delim
14748 :nl
14749 h
14750 s/\(.\{148\}\)..*/\1/
14751 t more1
14752 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14753 p
14754 n
14755 b repl
14756 :more1
14757 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14758 p
14759 g
14760 s/.\{148\}//
14761 t nl
14762 :delim
14763 h
14764 s/\(.\{148\}\)..*/\1/
14765 t more2
14766 s/["\\]/\\&/g; s/^/"/; s/$/"/
14767 p
14768 b
14769 :more2
14770 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14771 p
14772 g
14773 s/.\{148\}//
14774 t delim
14775 ' <conf$$subs.awk | sed '
14776 /^[^""]/{
14777 N
14778 s/\n//
14779 }
14780 ' >>$CONFIG_STATUS || ac_write_fail=1
14781 rm -f conf$$subs.awk
14782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14783 _ACAWK
14784 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14785 for (key in S) S_is_set[key] = 1
14786 FS = ""
14787
14788 }
14789 {
14790 line = $ 0
14791 nfields = split(line, field, "@")
14792 substed = 0
14793 len = length(field[1])
14794 for (i = 2; i < nfields; i++) {
14795 key = field[i]
14796 keylen = length(key)
14797 if (S_is_set[key]) {
14798 value = S[key]
14799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14800 len += length(value) + length(field[++i])
14801 substed = 1
14802 } else
14803 len += 1 + keylen
14804 }
14805
14806 print line
14807 }
14808
14809 _ACAWK
14810 _ACEOF
14811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14812 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14814 else
14815 cat
14816 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14817 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14818 _ACEOF
14819
14820 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14821 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14822 # trailing colons and then remove the whole line if VPATH becomes empty
14823 # (actually we leave an empty line to preserve line numbers).
14824 if test "x$srcdir" = x.; then
14825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14826 h
14827 s///
14828 s/^/:/
14829 s/[ ]*$/:/
14830 s/:\$(srcdir):/:/g
14831 s/:\${srcdir}:/:/g
14832 s/:@srcdir@:/:/g
14833 s/^:*//
14834 s/:*$//
14835 x
14836 s/\(=[ ]*\).*/\1/
14837 G
14838 s/\n//
14839 s/^[^=]*=[ ]*$//
14840 }'
14841 fi
14842
14843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14844 fi # test -n "$CONFIG_FILES"
14845
14846 # Set up the scripts for CONFIG_HEADERS section.
14847 # No need to generate them if there are no CONFIG_HEADERS.
14848 # This happens for instance with `./config.status Makefile'.
14849 if test -n "$CONFIG_HEADERS"; then
14850 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14851 BEGIN {
14852 _ACEOF
14853
14854 # Transform confdefs.h into an awk script `defines.awk', embedded as
14855 # here-document in config.status, that substitutes the proper values into
14856 # config.h.in to produce config.h.
14857
14858 # Create a delimiter string that does not exist in confdefs.h, to ease
14859 # handling of long lines.
14860 ac_delim='%!_!# '
14861 for ac_last_try in false false :; do
14862 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14863 if test -z "$ac_tt"; then
14864 break
14865 elif $ac_last_try; then
14866 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14867 else
14868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14869 fi
14870 done
14871
14872 # For the awk script, D is an array of macro values keyed by name,
14873 # likewise P contains macro parameters if any. Preserve backslash
14874 # newline sequences.
14875
14876 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14877 sed -n '
14878 s/.\{148\}/&'"$ac_delim"'/g
14879 t rset
14880 :rset
14881 s/^[ ]*#[ ]*define[ ][ ]*/ /
14882 t def
14883 d
14884 :def
14885 s/\\$//
14886 t bsnl
14887 s/["\\]/\\&/g
14888 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14889 D["\1"]=" \3"/p
14890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14891 d
14892 :bsnl
14893 s/["\\]/\\&/g
14894 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14895 D["\1"]=" \3\\\\\\n"\\/p
14896 t cont
14897 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14898 t cont
14899 d
14900 :cont
14901 n
14902 s/.\{148\}/&'"$ac_delim"'/g
14903 t clear
14904 :clear
14905 s/\\$//
14906 t bsnlc
14907 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14908 d
14909 :bsnlc
14910 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14911 b cont
14912 ' <confdefs.h | sed '
14913 s/'"$ac_delim"'/"\\\
14914 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14915
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14917 for (key in D) D_is_set[key] = 1
14918 FS = ""
14919 }
14920 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14921 line = \$ 0
14922 split(line, arg, " ")
14923 if (arg[1] == "#") {
14924 defundef = arg[2]
14925 mac1 = arg[3]
14926 } else {
14927 defundef = substr(arg[1], 2)
14928 mac1 = arg[2]
14929 }
14930 split(mac1, mac2, "(") #)
14931 macro = mac2[1]
14932 prefix = substr(line, 1, index(line, defundef) - 1)
14933 if (D_is_set[macro]) {
14934 # Preserve the white space surrounding the "#".
14935 print prefix "define", macro P[macro] D[macro]
14936 next
14937 } else {
14938 # Replace #undef with comments. This is necessary, for example,
14939 # in the case of _POSIX_SOURCE, which is predefined and required
14940 # on some systems where configure will not decide to define it.
14941 if (defundef == "undef") {
14942 print "/*", prefix defundef, macro, "*/"
14943 next
14944 }
14945 }
14946 }
14947 { print }
14948 _ACAWK
14949 _ACEOF
14950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14951 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14952 fi # test -n "$CONFIG_HEADERS"
14953
14954
14955 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14956 shift
14957 for ac_tag
14958 do
14959 case $ac_tag in
14960 :[FHLC]) ac_mode=$ac_tag; continue;;
14961 esac
14962 case $ac_mode$ac_tag in
14963 :[FHL]*:*);;
14964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14965 :[FH]-) ac_tag=-:-;;
14966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14967 esac
14968 ac_save_IFS=$IFS
14969 IFS=:
14970 set x $ac_tag
14971 IFS=$ac_save_IFS
14972 shift
14973 ac_file=$1
14974 shift
14975
14976 case $ac_mode in
14977 :L) ac_source=$1;;
14978 :[FH])
14979 ac_file_inputs=
14980 for ac_f
14981 do
14982 case $ac_f in
14983 -) ac_f="$ac_tmp/stdin";;
14984 *) # Look for the file first in the build tree, then in the source tree
14985 # (if the path is not absolute). The absolute path cannot be DOS-style,
14986 # because $ac_f cannot contain `:'.
14987 test -f "$ac_f" ||
14988 case $ac_f in
14989 [\\/$]*) false;;
14990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14991 esac ||
14992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14993 esac
14994 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14995 as_fn_append ac_file_inputs " '$ac_f'"
14996 done
14997
14998 # Let's still pretend it is `configure' which instantiates (i.e., don't
14999 # use $as_me), people would be surprised to read:
15000 # /* config.h. Generated by config.status. */
15001 configure_input='Generated from '`
15002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15003 `' by configure.'
15004 if test x"$ac_file" != x-; then
15005 configure_input="$ac_file. $configure_input"
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15007 $as_echo "$as_me: creating $ac_file" >&6;}
15008 fi
15009 # Neutralize special characters interpreted by sed in replacement strings.
15010 case $configure_input in #(
15011 *\&* | *\|* | *\\* )
15012 ac_sed_conf_input=`$as_echo "$configure_input" |
15013 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15014 *) ac_sed_conf_input=$configure_input;;
15015 esac
15016
15017 case $ac_tag in
15018 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15020 esac
15021 ;;
15022 esac
15023
15024 ac_dir=`$as_dirname -- "$ac_file" ||
15025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15026 X"$ac_file" : 'X\(//\)[^/]' \| \
15027 X"$ac_file" : 'X\(//\)$' \| \
15028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15029 $as_echo X"$ac_file" |
15030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15031 s//\1/
15032 q
15033 }
15034 /^X\(\/\/\)[^/].*/{
15035 s//\1/
15036 q
15037 }
15038 /^X\(\/\/\)$/{
15039 s//\1/
15040 q
15041 }
15042 /^X\(\/\).*/{
15043 s//\1/
15044 q
15045 }
15046 s/.*/./; q'`
15047 as_dir="$ac_dir"; as_fn_mkdir_p
15048 ac_builddir=.
15049
15050 case "$ac_dir" in
15051 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15052 *)
15053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15054 # A ".." for each directory in $ac_dir_suffix.
15055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15056 case $ac_top_builddir_sub in
15057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15059 esac ;;
15060 esac
15061 ac_abs_top_builddir=$ac_pwd
15062 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15063 # for backward compatibility:
15064 ac_top_builddir=$ac_top_build_prefix
15065
15066 case $srcdir in
15067 .) # We are building in place.
15068 ac_srcdir=.
15069 ac_top_srcdir=$ac_top_builddir_sub
15070 ac_abs_top_srcdir=$ac_pwd ;;
15071 [\\/]* | ?:[\\/]* ) # Absolute name.
15072 ac_srcdir=$srcdir$ac_dir_suffix;
15073 ac_top_srcdir=$srcdir
15074 ac_abs_top_srcdir=$srcdir ;;
15075 *) # Relative name.
15076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15077 ac_top_srcdir=$ac_top_build_prefix$srcdir
15078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15079 esac
15080 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15081
15082
15083 case $ac_mode in
15084 :F)
15085 #
15086 # CONFIG_FILE
15087 #
15088
15089 case $INSTALL in
15090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15092 esac
15093 ac_MKDIR_P=$MKDIR_P
15094 case $MKDIR_P in
15095 [\\/$]* | ?:[\\/]* ) ;;
15096 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15097 esac
15098 _ACEOF
15099
15100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101 # If the template does not know about datarootdir, expand it.
15102 # FIXME: This hack should be removed a few years after 2.60.
15103 ac_datarootdir_hack=; ac_datarootdir_seen=
15104 ac_sed_dataroot='
15105 /datarootdir/ {
15106 p
15107 q
15108 }
15109 /@datadir@/p
15110 /@docdir@/p
15111 /@infodir@/p
15112 /@localedir@/p
15113 /@mandir@/p'
15114 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15115 *datarootdir*) ac_datarootdir_seen=yes;;
15116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15118 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15119 _ACEOF
15120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15121 ac_datarootdir_hack='
15122 s&@datadir@&$datadir&g
15123 s&@docdir@&$docdir&g
15124 s&@infodir@&$infodir&g
15125 s&@localedir@&$localedir&g
15126 s&@mandir@&$mandir&g
15127 s&\\\${datarootdir}&$datarootdir&g' ;;
15128 esac
15129 _ACEOF
15130
15131 # Neutralize VPATH when `$srcdir' = `.'.
15132 # Shell code in configure.ac might set extrasub.
15133 # FIXME: do we really want to maintain this feature?
15134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15135 ac_sed_extra="$ac_vpsub
15136 $extrasub
15137 _ACEOF
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 :t
15140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15141 s|@configure_input@|$ac_sed_conf_input|;t t
15142 s&@top_builddir@&$ac_top_builddir_sub&;t t
15143 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15144 s&@srcdir@&$ac_srcdir&;t t
15145 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15146 s&@top_srcdir@&$ac_top_srcdir&;t t
15147 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15148 s&@builddir@&$ac_builddir&;t t
15149 s&@abs_builddir@&$ac_abs_builddir&;t t
15150 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15151 s&@INSTALL@&$ac_INSTALL&;t t
15152 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15153 $ac_datarootdir_hack
15154 "
15155 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15156 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15157
15158 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15161 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15163 which seems to be undefined. Please make sure it is defined" >&5
15164 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15165 which seems to be undefined. Please make sure it is defined" >&2;}
15166
15167 rm -f "$ac_tmp/stdin"
15168 case $ac_file in
15169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15171 esac \
15172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15173 ;;
15174 :H)
15175 #
15176 # CONFIG_HEADER
15177 #
15178 if test x"$ac_file" != x-; then
15179 {
15180 $as_echo "/* $configure_input */" \
15181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15182 } >"$ac_tmp/config.h" \
15183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15186 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15187 else
15188 rm -f "$ac_file"
15189 mv "$ac_tmp/config.h" "$ac_file" \
15190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15191 fi
15192 else
15193 $as_echo "/* $configure_input */" \
15194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15195 || as_fn_error $? "could not create -" "$LINENO" 5
15196 fi
15197 # Compute "$ac_file"'s index in $config_headers.
15198 _am_arg="$ac_file"
15199 _am_stamp_count=1
15200 for _am_header in $config_headers :; do
15201 case $_am_header in
15202 $_am_arg | $_am_arg:* )
15203 break ;;
15204 * )
15205 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15206 esac
15207 done
15208 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15209 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15210 X"$_am_arg" : 'X\(//\)[^/]' \| \
15211 X"$_am_arg" : 'X\(//\)$' \| \
15212 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15213 $as_echo X"$_am_arg" |
15214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15215 s//\1/
15216 q
15217 }
15218 /^X\(\/\/\)[^/].*/{
15219 s//\1/
15220 q
15221 }
15222 /^X\(\/\/\)$/{
15223 s//\1/
15224 q
15225 }
15226 /^X\(\/\).*/{
15227 s//\1/
15228 q
15229 }
15230 s/.*/./; q'`/stamp-h$_am_stamp_count
15231 ;;
15232
15233 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15234 $as_echo "$as_me: executing $ac_file commands" >&6;}
15235 ;;
15236 esac
15237
15238
15239 case $ac_file$ac_mode in
15240 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15241 # Older Autoconf quotes --file arguments for eval, but not when files
15242 # are listed without --file. Let's play safe and only enable the eval
15243 # if we detect the quoting.
15244 # TODO: see whether this extra hack can be removed once we start
15245 # requiring Autoconf 2.70 or later.
15246 case $CONFIG_FILES in #(
15247 *\'*) :
15248 eval set x "$CONFIG_FILES" ;; #(
15249 *) :
15250 set x $CONFIG_FILES ;; #(
15251 *) :
15252 ;;
15253 esac
15254 shift
15255 # Used to flag and report bootstrapping failures.
15256 am_rc=0
15257 for am_mf
15258 do
15259 # Strip MF so we end up with the name of the file.
15260 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15261 # Check whether this is an Automake generated Makefile which includes
15262 # dependency-tracking related rules and includes.
15263 # Grep'ing the whole file directly is not great: AIX grep has a line
15264 # limit of 2048, but all sed's we know have understand at least 4000.
15265 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15266 || continue
15267 am_dirpart=`$as_dirname -- "$am_mf" ||
15268 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15269 X"$am_mf" : 'X\(//\)[^/]' \| \
15270 X"$am_mf" : 'X\(//\)$' \| \
15271 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15272 $as_echo X"$am_mf" |
15273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15274 s//\1/
15275 q
15276 }
15277 /^X\(\/\/\)[^/].*/{
15278 s//\1/
15279 q
15280 }
15281 /^X\(\/\/\)$/{
15282 s//\1/
15283 q
15284 }
15285 /^X\(\/\).*/{
15286 s//\1/
15287 q
15288 }
15289 s/.*/./; q'`
15290 am_filepart=`$as_basename -- "$am_mf" ||
15291 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15292 X"$am_mf" : 'X\(//\)$' \| \
15293 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15294 $as_echo X/"$am_mf" |
15295 sed '/^.*\/\([^/][^/]*\)\/*$/{
15296 s//\1/
15297 q
15298 }
15299 /^X\/\(\/\/\)$/{
15300 s//\1/
15301 q
15302 }
15303 /^X\/\(\/\).*/{
15304 s//\1/
15305 q
15306 }
15307 s/.*/./; q'`
15308 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15309 && sed -e '/# am--include-marker/d' "$am_filepart" \
15310 | $MAKE -f - am--depfiles" >&5
15311 (cd "$am_dirpart" \
15312 && sed -e '/# am--include-marker/d' "$am_filepart" \
15313 | $MAKE -f - am--depfiles) >&5 2>&5
15314 ac_status=$?
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); } || am_rc=$?
15317 done
15318 if test $am_rc -ne 0; then
15319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15321 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15322 for automatic dependency tracking. If GNU make was not used, consider
15323 re-running the configure script with MAKE=\"gmake\" (or whatever is
15324 necessary). You can also try re-running configure with the
15325 '--disable-dependency-tracking' option to at least be able to build
15326 the package (albeit without support for automatic dependency tracking).
15327 See \`config.log' for more details" "$LINENO" 5; }
15328 fi
15329 { am_dirpart=; unset am_dirpart;}
15330 { am_filepart=; unset am_filepart;}
15331 { am_mf=; unset am_mf;}
15332 { am_rc=; unset am_rc;}
15333 rm -f conftest-deps.mk
15334 }
15335 ;;
15336 "libtool":C)
15337
15338 # See if we are running on zsh, and set the options that allow our
15339 # commands through without removal of \ escapes.
15340 if test -n "${ZSH_VERSION+set}"; then
15341 setopt NO_GLOB_SUBST
15342 fi
15343
15344 cfgfile=${ofile}T
15345 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15346 $RM "$cfgfile"
15347
15348 cat <<_LT_EOF >> "$cfgfile"
15349 #! $SHELL
15350 # Generated automatically by $as_me ($PACKAGE) $VERSION
15351 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15352 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15353
15354 # Provide generalized library-building support services.
15355 # Written by Gordon Matzigkeit, 1996
15356
15357 # Copyright (C) 2014 Free Software Foundation, Inc.
15358 # This is free software; see the source for copying conditions. There is NO
15359 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15360
15361 # GNU Libtool is free software; you can redistribute it and/or modify
15362 # it under the terms of the GNU General Public License as published by
15363 # the Free Software Foundation; either version 2 of of the License, or
15364 # (at your option) any later version.
15365 #
15366 # As a special exception to the GNU General Public License, if you
15367 # distribute this file as part of a program or library that is built
15368 # using GNU Libtool, you may include this file under the same
15369 # distribution terms that you use for the rest of that program.
15370 #
15371 # GNU Libtool is distributed in the hope that it will be useful, but
15372 # WITHOUT ANY WARRANTY; without even the implied warranty of
15373 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15374 # GNU General Public License for more details.
15375 #
15376 # You should have received a copy of the GNU General Public License
15377 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15378
15379
15380 # The names of the tagged configurations supported by this script.
15381 available_tags=''
15382
15383 # Configured defaults for sys_lib_dlsearch_path munging.
15384 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15385
15386 # ### BEGIN LIBTOOL CONFIG
15387
15388 # Which release of libtool.m4 was used?
15389 macro_version=$macro_version
15390 macro_revision=$macro_revision
15391
15392 # Whether or not to build static libraries.
15393 build_old_libs=$enable_static
15394
15395 # Whether or not to build shared libraries.
15396 build_libtool_libs=$enable_shared
15397
15398 # What type of objects to build.
15399 pic_mode=$pic_mode
15400
15401 # Whether or not to optimize for fast installation.
15402 fast_install=$enable_fast_install
15403
15404 # Shared archive member basename,for filename based shared library versioning on AIX.
15405 shared_archive_member_spec=$shared_archive_member_spec
15406
15407 # Shell to use when invoking shell scripts.
15408 SHELL=$lt_SHELL
15409
15410 # An echo program that protects backslashes.
15411 ECHO=$lt_ECHO
15412
15413 # The PATH separator for the build system.
15414 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15415
15416 # The host system.
15417 host_alias=$host_alias
15418 host=$host
15419 host_os=$host_os
15420
15421 # The build system.
15422 build_alias=$build_alias
15423 build=$build
15424 build_os=$build_os
15425
15426 # A sed program that does not truncate output.
15427 SED=$lt_SED
15428
15429 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15430 Xsed="\$SED -e 1s/^X//"
15431
15432 # A grep program that handles long lines.
15433 GREP=$lt_GREP
15434
15435 # An ERE matcher.
15436 EGREP=$lt_EGREP
15437
15438 # A literal string matcher.
15439 FGREP=$lt_FGREP
15440
15441 # A BSD- or MS-compatible name lister.
15442 NM=$lt_NM
15443
15444 # Whether we need soft or hard links.
15445 LN_S=$lt_LN_S
15446
15447 # What is the maximum length of a command?
15448 max_cmd_len=$max_cmd_len
15449
15450 # Object file suffix (normally "o").
15451 objext=$ac_objext
15452
15453 # Executable file suffix (normally "").
15454 exeext=$exeext
15455
15456 # whether the shell understands "unset".
15457 lt_unset=$lt_unset
15458
15459 # turn spaces into newlines.
15460 SP2NL=$lt_lt_SP2NL
15461
15462 # turn newlines into spaces.
15463 NL2SP=$lt_lt_NL2SP
15464
15465 # convert \$build file names to \$host format.
15466 to_host_file_cmd=$lt_cv_to_host_file_cmd
15467
15468 # convert \$build files to toolchain format.
15469 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15470
15471 # An object symbol dumper.
15472 OBJDUMP=$lt_OBJDUMP
15473
15474 # Method to check whether dependent libraries are shared objects.
15475 deplibs_check_method=$lt_deplibs_check_method
15476
15477 # Command to use when deplibs_check_method = "file_magic".
15478 file_magic_cmd=$lt_file_magic_cmd
15479
15480 # How to find potential files when deplibs_check_method = "file_magic".
15481 file_magic_glob=$lt_file_magic_glob
15482
15483 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15484 want_nocaseglob=$lt_want_nocaseglob
15485
15486 # DLL creation program.
15487 DLLTOOL=$lt_DLLTOOL
15488
15489 # Command to associate shared and link libraries.
15490 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15491
15492 # The archiver.
15493 AR=$lt_AR
15494
15495 # Flags to create an archive.
15496 AR_FLAGS=$lt_AR_FLAGS
15497
15498 # How to feed a file listing to the archiver.
15499 archiver_list_spec=$lt_archiver_list_spec
15500
15501 # A symbol stripping program.
15502 STRIP=$lt_STRIP
15503
15504 # Commands used to install an old-style archive.
15505 RANLIB=$lt_RANLIB
15506 old_postinstall_cmds=$lt_old_postinstall_cmds
15507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15508
15509 # Whether to use a lock for old archive extraction.
15510 lock_old_archive_extraction=$lock_old_archive_extraction
15511
15512 # A C compiler.
15513 LTCC=$lt_CC
15514
15515 # LTCC compiler flags.
15516 LTCFLAGS=$lt_CFLAGS
15517
15518 # Take the output of nm and produce a listing of raw symbols and C names.
15519 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15520
15521 # Transform the output of nm in a proper C declaration.
15522 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15523
15524 # Transform the output of nm into a list of symbols to manually relocate.
15525 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15526
15527 # Transform the output of nm in a C name address pair.
15528 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15529
15530 # Transform the output of nm in a C name address pair when lib prefix is needed.
15531 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15532
15533 # The name lister interface.
15534 nm_interface=$lt_lt_cv_nm_interface
15535
15536 # Specify filename containing input files for \$NM.
15537 nm_file_list_spec=$lt_nm_file_list_spec
15538
15539 # The root where to search for dependent libraries,and where our libraries should be installed.
15540 lt_sysroot=$lt_sysroot
15541
15542 # Command to truncate a binary pipe.
15543 lt_truncate_bin=$lt_lt_cv_truncate_bin
15544
15545 # The name of the directory that contains temporary libtool files.
15546 objdir=$objdir
15547
15548 # Used to examine libraries when file_magic_cmd begins with "file".
15549 MAGIC_CMD=$MAGIC_CMD
15550
15551 # Must we lock files when doing compilation?
15552 need_locks=$lt_need_locks
15553
15554 # Manifest tool.
15555 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15556
15557 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15558 DSYMUTIL=$lt_DSYMUTIL
15559
15560 # Tool to change global to local symbols on Mac OS X.
15561 NMEDIT=$lt_NMEDIT
15562
15563 # Tool to manipulate fat objects and archives on Mac OS X.
15564 LIPO=$lt_LIPO
15565
15566 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15567 OTOOL=$lt_OTOOL
15568
15569 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15570 OTOOL64=$lt_OTOOL64
15571
15572 # Old archive suffix (normally "a").
15573 libext=$libext
15574
15575 # Shared library suffix (normally ".so").
15576 shrext_cmds=$lt_shrext_cmds
15577
15578 # The commands to extract the exported symbol list from a shared archive.
15579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15580
15581 # Variables whose values should be saved in libtool wrapper scripts and
15582 # restored at link time.
15583 variables_saved_for_relink=$lt_variables_saved_for_relink
15584
15585 # Do we need the "lib" prefix for modules?
15586 need_lib_prefix=$need_lib_prefix
15587
15588 # Do we need a version for libraries?
15589 need_version=$need_version
15590
15591 # Library versioning type.
15592 version_type=$version_type
15593
15594 # Shared library runtime path variable.
15595 runpath_var=$runpath_var
15596
15597 # Shared library path variable.
15598 shlibpath_var=$shlibpath_var
15599
15600 # Is shlibpath searched before the hard-coded library search path?
15601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15602
15603 # Format of library name prefix.
15604 libname_spec=$lt_libname_spec
15605
15606 # List of archive names. First name is the real one, the rest are links.
15607 # The last name is the one that the linker finds with -lNAME
15608 library_names_spec=$lt_library_names_spec
15609
15610 # The coded name of the library, if different from the real name.
15611 soname_spec=$lt_soname_spec
15612
15613 # Permission mode override for installation of shared libraries.
15614 install_override_mode=$lt_install_override_mode
15615
15616 # Command to use after installation of a shared archive.
15617 postinstall_cmds=$lt_postinstall_cmds
15618
15619 # Command to use after uninstallation of a shared archive.
15620 postuninstall_cmds=$lt_postuninstall_cmds
15621
15622 # Commands used to finish a libtool library installation in a directory.
15623 finish_cmds=$lt_finish_cmds
15624
15625 # As "finish_cmds", except a single script fragment to be evaled but
15626 # not shown.
15627 finish_eval=$lt_finish_eval
15628
15629 # Whether we should hardcode library paths into libraries.
15630 hardcode_into_libs=$hardcode_into_libs
15631
15632 # Compile-time system search path for libraries.
15633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15634
15635 # Detected run-time system search path for libraries.
15636 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15637
15638 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15639 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15640
15641 # Whether dlopen is supported.
15642 dlopen_support=$enable_dlopen
15643
15644 # Whether dlopen of programs is supported.
15645 dlopen_self=$enable_dlopen_self
15646
15647 # Whether dlopen of statically linked programs is supported.
15648 dlopen_self_static=$enable_dlopen_self_static
15649
15650 # Commands to strip libraries.
15651 old_striplib=$lt_old_striplib
15652 striplib=$lt_striplib
15653
15654
15655 # The linker used to build libraries.
15656 LD=$lt_LD
15657
15658 # How to create reloadable object files.
15659 reload_flag=$lt_reload_flag
15660 reload_cmds=$lt_reload_cmds
15661
15662 # Commands used to build an old-style archive.
15663 old_archive_cmds=$lt_old_archive_cmds
15664
15665 # A language specific compiler.
15666 CC=$lt_compiler
15667
15668 # Is the compiler the GNU compiler?
15669 with_gcc=$GCC
15670
15671 # Compiler flag to turn off builtin functions.
15672 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15673
15674 # Additional compiler flags for building library objects.
15675 pic_flag=$lt_lt_prog_compiler_pic
15676
15677 # How to pass a linker flag through the compiler.
15678 wl=$lt_lt_prog_compiler_wl
15679
15680 # Compiler flag to prevent dynamic linking.
15681 link_static_flag=$lt_lt_prog_compiler_static
15682
15683 # Does compiler simultaneously support -c and -o options?
15684 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15685
15686 # Whether or not to add -lc for building shared libraries.
15687 build_libtool_need_lc=$archive_cmds_need_lc
15688
15689 # Whether or not to disallow shared libs when runtime libs are static.
15690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15691
15692 # Compiler flag to allow reflexive dlopens.
15693 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15694
15695 # Compiler flag to generate shared objects directly from archives.
15696 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15697
15698 # Whether the compiler copes with passing no objects directly.
15699 compiler_needs_object=$lt_compiler_needs_object
15700
15701 # Create an old-style archive from a shared archive.
15702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15703
15704 # Create a temporary old-style archive to link instead of a shared archive.
15705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15706
15707 # Commands used to build a shared archive.
15708 archive_cmds=$lt_archive_cmds
15709 archive_expsym_cmds=$lt_archive_expsym_cmds
15710
15711 # Commands used to build a loadable module if different from building
15712 # a shared archive.
15713 module_cmds=$lt_module_cmds
15714 module_expsym_cmds=$lt_module_expsym_cmds
15715
15716 # Whether we are building with GNU ld or not.
15717 with_gnu_ld=$lt_with_gnu_ld
15718
15719 # Flag that allows shared libraries with undefined symbols to be built.
15720 allow_undefined_flag=$lt_allow_undefined_flag
15721
15722 # Flag that enforces no undefined symbols.
15723 no_undefined_flag=$lt_no_undefined_flag
15724
15725 # Flag to hardcode \$libdir into a binary during linking.
15726 # This must work even if \$libdir does not exist
15727 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15728
15729 # Whether we need a single "-rpath" flag with a separated argument.
15730 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15731
15732 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15733 # DIR into the resulting binary.
15734 hardcode_direct=$hardcode_direct
15735
15736 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15737 # DIR into the resulting binary and the resulting library dependency is
15738 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15739 # library is relocated.
15740 hardcode_direct_absolute=$hardcode_direct_absolute
15741
15742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15743 # into the resulting binary.
15744 hardcode_minus_L=$hardcode_minus_L
15745
15746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15747 # into the resulting binary.
15748 hardcode_shlibpath_var=$hardcode_shlibpath_var
15749
15750 # Set to "yes" if building a shared library automatically hardcodes DIR
15751 # into the library and all subsequent libraries and executables linked
15752 # against it.
15753 hardcode_automatic=$hardcode_automatic
15754
15755 # Set to yes if linker adds runtime paths of dependent libraries
15756 # to runtime path list.
15757 inherit_rpath=$inherit_rpath
15758
15759 # Whether libtool must link a program against all its dependency libraries.
15760 link_all_deplibs=$link_all_deplibs
15761
15762 # Set to "yes" if exported symbols are required.
15763 always_export_symbols=$always_export_symbols
15764
15765 # The commands to list exported symbols.
15766 export_symbols_cmds=$lt_export_symbols_cmds
15767
15768 # Symbols that should not be listed in the preloaded symbols.
15769 exclude_expsyms=$lt_exclude_expsyms
15770
15771 # Symbols that must always be exported.
15772 include_expsyms=$lt_include_expsyms
15773
15774 # Commands necessary for linking programs (against libraries) with templates.
15775 prelink_cmds=$lt_prelink_cmds
15776
15777 # Commands necessary for finishing linking programs.
15778 postlink_cmds=$lt_postlink_cmds
15779
15780 # Specify filename containing input files.
15781 file_list_spec=$lt_file_list_spec
15782
15783 # How to hardcode a shared library path into an executable.
15784 hardcode_action=$hardcode_action
15785
15786 # ### END LIBTOOL CONFIG
15787
15788 _LT_EOF
15789
15790 cat <<'_LT_EOF' >> "$cfgfile"
15791
15792 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15793
15794 # func_munge_path_list VARIABLE PATH
15795 # -----------------------------------
15796 # VARIABLE is name of variable containing _space_ separated list of
15797 # directories to be munged by the contents of PATH, which is string
15798 # having a format:
15799 # "DIR[:DIR]:"
15800 # string "DIR[ DIR]" will be prepended to VARIABLE
15801 # ":DIR[:DIR]"
15802 # string "DIR[ DIR]" will be appended to VARIABLE
15803 # "DIRP[:DIRP]::[DIRA:]DIRA"
15804 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15805 # "DIRA[ DIRA]" will be appended to VARIABLE
15806 # "DIR[:DIR]"
15807 # VARIABLE will be replaced by "DIR[ DIR]"
15808 func_munge_path_list ()
15809 {
15810 case x$2 in
15811 x)
15812 ;;
15813 *:)
15814 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15815 ;;
15816 x:*)
15817 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15818 ;;
15819 *::*)
15820 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15821 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15822 ;;
15823 *)
15824 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15825 ;;
15826 esac
15827 }
15828
15829
15830 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15831 func_cc_basename ()
15832 {
15833 for cc_temp in $*""; do
15834 case $cc_temp in
15835 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15836 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15837 \-*) ;;
15838 *) break;;
15839 esac
15840 done
15841 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15842 }
15843
15844
15845 # ### END FUNCTIONS SHARED WITH CONFIGURE
15846
15847 _LT_EOF
15848
15849 case $host_os in
15850 aix3*)
15851 cat <<\_LT_EOF >> "$cfgfile"
15852 # AIX sometimes has problems with the GCC collect2 program. For some
15853 # reason, if we set the COLLECT_NAMES environment variable, the problems
15854 # vanish in a puff of smoke.
15855 if test set != "${COLLECT_NAMES+set}"; then
15856 COLLECT_NAMES=
15857 export COLLECT_NAMES
15858 fi
15859 _LT_EOF
15860 ;;
15861 esac
15862
15863
15864 ltmain=$ac_aux_dir/ltmain.sh
15865
15866
15867 # We use sed instead of cat because bash on DJGPP gets confused if
15868 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15869 # text mode, it properly converts lines to CR/LF. This bash problem
15870 # is reportedly fixed, but why not run on old versions too?
15871 sed '$q' "$ltmain" >> "$cfgfile" \
15872 || (rm -f "$cfgfile"; exit 1)
15873
15874 mv -f "$cfgfile" "$ofile" ||
15875 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15876 chmod +x "$ofile"
15877
15878 ;;
15879 "pre-inst-guile-exec":C) chmod +x pre-inst-guile ;;
15880
15881 esac
15882 done # for ac_tag
15883
15884
15885 as_fn_exit 0
15886 _ACEOF
15887 ac_clean_files=$ac_clean_files_save
15888
15889 test $ac_write_fail = 0 ||
15890 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15891
15892
15893 # configure is writing to config.log, and then calls config.status.
15894 # config.status does its own redirection, appending to config.log.
15895 # Unfortunately, on DOS this fails, as config.log is still kept open
15896 # by configure, so config.status won't be able to write to it; its
15897 # output is simply discarded. So we exec the FD to /dev/null,
15898 # effectively closing config.log, so it can be properly (re)opened and
15899 # appended to by config.status. When coming back to configure, we
15900 # need to make the FD available again.
15901 if test "$no_create" != yes; then
15902 ac_cs_success=:
15903 ac_config_status_args=
15904 test "$silent" = yes &&
15905 ac_config_status_args="$ac_config_status_args --quiet"
15906 exec 5>/dev/null
15907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15908 exec 5>>config.log
15909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15910 # would make configure fail if this is the last instruction.
15911 $ac_cs_success || as_fn_exit 1
15912 fi
15913 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15915 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15916 fi
15917
15918