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 nss-mdns 0.15.1.
4 #
5 # Report bugs to <https://github.com/lathiat/nss-mdns/issues>.
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 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://github.com/lathiat/nss-mdns/issues about your
279 $0: system, 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='nss-mdns'
592 PACKAGE_TARNAME='nss-mdns'
593 PACKAGE_VERSION='0.15.1'
594 PACKAGE_STRING='nss-mdns 0.15.1'
595 PACKAGE_BUGREPORT='https://github.com/lathiat/nss-mdns/issues'
596 PACKAGE_URL=''
597
598 ac_unique_file="src/nss.c"
599 ac_default_prefix=
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 FREEBSD_NSS_FALSE
641 FREEBSD_NSS_TRUE
642 LT_SYS_LIBRARY_PATH
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 MANIFEST_TOOL
649 RANLIB
650 DLLTOOL
651 OBJDUMP
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 SED
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 LIBTOOL
667 LN_S
668 ac_ct_AR
669 AR
670 MDNS_ALLOW_FILE
671 AVAHI_SOCKET
672 ENABLE_TESTS_FALSE
673 ENABLE_TESTS_TRUE
674 CHECK_LIBS
675 CHECK_CFLAGS
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 EGREP
680 GREP
681 CPP
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 CCDEPMODE
685 am__nodep
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 runstatedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL
764 am__quote'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_silent_rules
769 enable_dependency_tracking
770 enable_tests
771 enable_static
772 enable_shared
773 with_pic
774 enable_fast_install
775 with_aix_soname
776 with_gnu_ld
777 with_sysroot
778 enable_libtool_lock
779 '
780 ac_precious_vars='build_alias
781 host_alias
782 target_alias
783 CC
784 CFLAGS
785 LDFLAGS
786 LIBS
787 CPPFLAGS
788 CPP
789 PKG_CONFIG
790 PKG_CONFIG_PATH
791 PKG_CONFIG_LIBDIR
792 CHECK_CFLAGS
793 CHECK_LIBS
794 AVAHI_SOCKET
795 MDNS_ALLOW_FILE
796 LT_SYS_LIBRARY_PATH'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
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 runstatedir
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 nss-mdns 0.15.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 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/nss-mdns]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of nss-mdns 0.15.1:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-tests disable building tests
1433 --enable-static[=PKGS] build static libraries [default=no]
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-aix-soname=aix|svr4|both
1445 shared library versioning (aka "SONAME") variant to
1446 provide on AIX, [default=aix].
1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1448 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1449 compiler's sysroot if not specified).
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CPP C preprocessor
1460 PKG_CONFIG path to pkg-config utility
1461 PKG_CONFIG_PATH
1462 directories to add to pkg-config's search path
1463 PKG_CONFIG_LIBDIR
1464 path overriding pkg-config's built-in search path
1465 CHECK_CFLAGS
1466 C compiler flags for CHECK, overriding pkg-config
1467 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1468 AVAHI_SOCKET
1469 Full path to the avahi-daemon socket, overriding default
1470 MDNS_ALLOW_FILE
1471 Full path to the mdns.allow file, overriding default
1472 LT_SYS_LIBRARY_PATH
1473 User-defined run-time library search path.
1474
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1477
1478 Report bugs to <https://github.com/lathiat/nss-mdns/issues>.
1479 _ACEOF
1480 ac_status=$?
1481 fi
1482
1483 if test "$ac_init_help" = "recursive"; then
1484 # If there are subdirs, report their specific --help.
1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1486 test -d "$ac_dir" ||
1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1488 continue
1489 ac_builddir=.
1490
1491 case "$ac_dir" in
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *)
1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1500 esac ;;
1501 esac
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1506
1507 case $srcdir in
1508 .) # We are building in place.
1509 ac_srcdir=.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1516 *) # Relative name.
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 esac
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 nss-mdns configure 0.15.1
1542 generated by GNU Autoconf 2.69
1543
1544 Copyright (C) 2012 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 $as_echo "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext; then :
1581 ac_retval=0
1582 else
1583 $as_echo "$as_me: failed program was:" >&5
1584 sed 's/^/| /' conftest.$ac_ext >&5
1585
1586 ac_retval=1
1587 fi
1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1589 as_fn_set_status $ac_retval
1590
1591 } # ac_fn_c_try_compile
1592
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_cpp ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1612 fi
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } > conftest.i && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1622
1623 ac_retval=1
1624 fi
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_cpp
1629
1630 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1633 # the include files in INCLUDES and setting the cache variable VAR
1634 # accordingly.
1635 ac_fn_c_check_header_mongrel ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if eval \${$3+:} false; then :
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 else
1648 # Is the header compilable?
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1650 $as_echo_n "checking $2 usability... " >&6; }
1651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652 /* end confdefs.h. */
1653 $4
1654 #include <$2>
1655 _ACEOF
1656 if ac_fn_c_try_compile "$LINENO"; then :
1657 ac_header_compiler=yes
1658 else
1659 ac_header_compiler=no
1660 fi
1661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1663 $as_echo "$ac_header_compiler" >&6; }
1664
1665 # Is the header present?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1667 $as_echo_n "checking $2 presence... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_cpp "$LINENO"; then :
1673 ac_header_preproc=yes
1674 else
1675 ac_header_preproc=no
1676 fi
1677 rm -f conftest.err conftest.i conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1679 $as_echo "$ac_header_preproc" >&6; }
1680
1681 # So? What about this header?
1682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1683 yes:no: )
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1685 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1687 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1688 ;;
1689 no:yes:* )
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1691 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1693 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1695 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1697 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 ( $as_echo "## --------------------------------------------------------- ##
1701 ## Report this to https://github.com/lathiat/nss-mdns/issues ##
1702 ## --------------------------------------------------------- ##"
1703 ) | sed "s/^/$as_me: WARNING: /" >&2
1704 ;;
1705 esac
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 eval "$3=\$ac_header_compiler"
1712 fi
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_c_check_header_mongrel
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1774 else
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 $4
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791
1792 } # ac_fn_c_check_header_compile
1793
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_link ()
1798 {
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1822 }; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1831 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1832 # interfere with the next link command; also delete a directory that is
1833 # left behind by Apple's compiler. We do this before executing the actions.
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_link
1839
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850 else
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1856
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1861
1862 #ifdef __STDC__
1863 # include <limits.h>
1864 #else
1865 # include <assert.h>
1866 #endif
1867
1868 #undef $2
1869
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1873 #ifdef __cplusplus
1874 extern "C"
1875 #endif
1876 char $2 ();
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1881 choke me
1882 #endif
1883
1884 int
1885 main ()
1886 {
1887 return $2 ();
1888 ;
1889 return 0;
1890 }
1891 _ACEOF
1892 if ac_fn_c_try_link "$LINENO"; then :
1893 eval "$3=yes"
1894 else
1895 eval "$3=no"
1896 fi
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_func
1906 cat >config.log <<_ACEOF
1907 This file contains any messages produced by compilers while
1908 running configure, to aid debugging if configure makes a mistake.
1909
1910 It was created by nss-mdns $as_me 0.15.1, which was
1911 generated by GNU Autoconf 2.69. Invocation command line was
1912
1913 $ $0 $@
1914
1915 _ACEOF
1916 exec 5>>config.log
1917 {
1918 cat <<_ASUNAME
1919 ## --------- ##
1920 ## Platform. ##
1921 ## --------- ##
1922
1923 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1935 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1936 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940 _ASUNAME
1941
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943 for as_dir in $PATH
1944 do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 $as_echo "PATH: $as_dir"
1948 done
1949 IFS=$as_save_IFS
1950
1951 } >&5
1952
1953 cat >&5 <<_ACEOF
1954
1955
1956 ## ----------- ##
1957 ## Core tests. ##
1958 ## ----------- ##
1959
1960 _ACEOF
1961
1962
1963 # Keep a trace of the command line.
1964 # Strip out --no-create and --no-recursion so they do not pile up.
1965 # Strip out --silent because we don't want to record it for future runs.
1966 # Also quote any args containing shell meta-characters.
1967 # Make two passes to allow for proper duplicate-argument suppression.
1968 ac_configure_args=
1969 ac_configure_args0=
1970 ac_configure_args1=
1971 ac_must_keep_next=false
1972 for ac_pass in 1 2
1973 do
1974 for ac_arg
1975 do
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1983 esac
1984 case $ac_pass in
1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1986 2)
1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
1999 ;;
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2002 fi
2003 as_fn_append ac_configure_args " '$ac_arg'"
2004 ;;
2005 esac
2006 done
2007 done
2008 { ac_configure_args0=; unset ac_configure_args0;}
2009 { ac_configure_args1=; unset ac_configure_args1;}
2010
2011 # When interrupted or exit'd, cleanup temporary files, and complete
2012 # config.log. We remove comments because anyway the quotes in there
2013 # would cause problems or look ugly.
2014 # WARNING: Use '\'' to represent an apostrophe within the trap.
2015 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2016 trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 $as_echo "## ---------------- ##
2022 ## Cache variables. ##
2023 ## ---------------- ##"
2024 echo
2025 # The following way of writing the cache mishandles newlines in values,
2026 (
2027 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2028 eval ac_val=\$$ac_var
2029 case $ac_val in #(
2030 *${as_nl}*)
2031 case $ac_var in #(
2032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2034 esac
2035 case $ac_var in #(
2036 _ | IFS | as_nl) ;; #(
2037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2038 *) { eval $ac_var=; unset $ac_var;} ;;
2039 esac ;;
2040 esac
2041 done
2042 (set) 2>&1 |
2043 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2044 *${as_nl}ac_space=\ *)
2045 sed -n \
2046 "s/'\''/'\''\\\\'\'''\''/g;
2047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2048 ;; #(
2049 *)
2050 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2051 ;;
2052 esac |
2053 sort
2054 )
2055 echo
2056
2057 $as_echo "## ----------------- ##
2058 ## Output variables. ##
2059 ## ----------------- ##"
2060 echo
2061 for ac_var in $ac_subst_vars
2062 do
2063 eval ac_val=\$$ac_var
2064 case $ac_val in
2065 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 esac
2067 $as_echo "$ac_var='\''$ac_val'\''"
2068 done | sort
2069 echo
2070
2071 if test -n "$ac_subst_files"; then
2072 $as_echo "## ------------------- ##
2073 ## File substitutions. ##
2074 ## ------------------- ##"
2075 echo
2076 for ac_var in $ac_subst_files
2077 do
2078 eval ac_val=\$$ac_var
2079 case $ac_val in
2080 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 esac
2082 $as_echo "$ac_var='\''$ac_val'\''"
2083 done | sort
2084 echo
2085 fi
2086
2087 if test -s confdefs.h; then
2088 $as_echo "## ----------- ##
2089 ## confdefs.h. ##
2090 ## ----------- ##"
2091 echo
2092 cat confdefs.h
2093 echo
2094 fi
2095 test "$ac_signal" != 0 &&
2096 $as_echo "$as_me: caught signal $ac_signal"
2097 $as_echo "$as_me: exit $exit_status"
2098 } >&5
2099 rm -f core *.core core.conftest.* &&
2100 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2101 exit $exit_status
2102 ' 0
2103 for ac_signal in 1 2 13 15; do
2104 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2105 done
2106 ac_signal=0
2107
2108 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2109 rm -f -r conftest* confdefs.h
2110
2111 $as_echo "/* confdefs.h */" > confdefs.h
2112
2113 # Predefined preprocessor variables.
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_NAME "$PACKAGE_NAME"
2117 _ACEOF
2118
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2121 _ACEOF
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2125 _ACEOF
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_STRING "$PACKAGE_STRING"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_URL "$PACKAGE_URL"
2137 _ACEOF
2138
2139
2140 # Let the site file select an alternate cache file if it wants to.
2141 # Prefer an explicitly selected file to automatically selected ones.
2142 ac_site_file1=NONE
2143 ac_site_file2=NONE
2144 if test -n "$CONFIG_SITE"; then
2145 # We do not want a PATH search for config.site.
2146 case $CONFIG_SITE in #((
2147 -*) ac_site_file1=./$CONFIG_SITE;;
2148 */*) ac_site_file1=$CONFIG_SITE;;
2149 *) ac_site_file1=./$CONFIG_SITE;;
2150 esac
2151 elif test "x$prefix" != xNONE; then
2152 ac_site_file1=$prefix/share/config.site
2153 ac_site_file2=$prefix/etc/config.site
2154 else
2155 ac_site_file1=$ac_default_prefix/share/config.site
2156 ac_site_file2=$ac_default_prefix/etc/config.site
2157 fi
2158 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2159 do
2160 test "x$ac_site_file" = xNONE && continue
2161 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2163 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2164 sed 's/^/| /' "$ac_site_file" >&5
2165 . "$ac_site_file" \
2166 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 as_fn_error $? "failed to load site script $ac_site_file
2169 See \`config.log' for more details" "$LINENO" 5; }
2170 fi
2171 done
2172
2173 if test -r "$cache_file"; then
2174 # Some versions of bash will fail to source /dev/null (special files
2175 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2176 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2178 $as_echo "$as_me: loading cache $cache_file" >&6;}
2179 case $cache_file in
2180 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2181 *) . "./$cache_file";;
2182 esac
2183 fi
2184 else
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2186 $as_echo "$as_me: creating cache $cache_file" >&6;}
2187 >$cache_file
2188 fi
2189
2190 # Check that the precious variables saved in the cache have kept the same
2191 # value.
2192 ac_cache_corrupted=false
2193 for ac_var in $ac_precious_vars; do
2194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set
2196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value
2198 case $ac_old_set,$ac_new_set in
2199 set,)
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2203 ,set)
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2205 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206 ac_cache_corrupted=: ;;
2207 ,);;
2208 *)
2209 if test "x$ac_old_val" != "x$ac_new_val"; then
2210 # differences in whitespace do not lead to failure.
2211 ac_old_val_w=`echo x $ac_old_val`
2212 ac_new_val_w=`echo x $ac_new_val`
2213 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2215 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2216 ac_cache_corrupted=:
2217 else
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2219 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2220 eval $ac_var=\$ac_old_val
2221 fi
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2223 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2225 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2226 fi;;
2227 esac
2228 # Pass precious variables to config.status.
2229 if test "$ac_new_set" = set; then
2230 case $ac_new_val in
2231 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 *) ac_arg=$ac_var=$ac_new_val ;;
2233 esac
2234 case " $ac_configure_args " in
2235 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2236 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2237 esac
2238 fi
2239 done
2240 if $ac_cache_corrupted; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2244 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2245 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2246 fi
2247 ## -------------------- ##
2248 ## Main body of script. ##
2249 ## -------------------- ##
2250
2251 ac_ext=c
2252 ac_cpp='$CPP $CPPFLAGS'
2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256
2257
2258
2259 ac_config_headers="$ac_config_headers config.h"
2260
2261 am__api_version='1.16'
2262
2263 ac_aux_dir=
2264 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 if test -f "$ac_dir/install-sh"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/install-sh -c"
2268 break
2269 elif test -f "$ac_dir/install.sh"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/install.sh -c"
2272 break
2273 elif test -f "$ac_dir/shtool"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/shtool install -c"
2276 break
2277 fi
2278 done
2279 if test -z "$ac_aux_dir"; then
2280 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2281 fi
2282
2283 # These three variables are undocumented and unsupported,
2284 # and are intended to be withdrawn in a future Autoconf release.
2285 # They can cause serious problems if a builder's source tree is in a directory
2286 # whose full name contains unusual characters.
2287 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2290
2291
2292 # Find a good install program. We prefer a C program (faster),
2293 # so one script is as good as another. But avoid the broken or
2294 # incompatible versions:
2295 # SysV /etc/install, /usr/sbin/install
2296 # SunOS /usr/etc/install
2297 # IRIX /sbin/install
2298 # AIX /bin/install
2299 # AmigaOS /C/install, which installs bootblocks on floppy discs
2300 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303 # OS/2's system install, which has a completely different semantic
2304 # ./install, which can be erroneously created by make from ./install.sh.
2305 # Reject install programs that cannot install multiple files.
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2308 if test -z "$INSTALL"; then
2309 if ${ac_cv_path_install+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 # Account for people who put trailing slashes in PATH elements.
2318 case $as_dir/ in #((
2319 ./ | .// | /[cC]/* | \
2320 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2322 /usr/ucb/* ) ;;
2323 *)
2324 # OSF1 and SCO ODT 3.0 have their own names for install.
2325 # Don't use installbsd from OSF since it installs stuff as root
2326 # by default.
2327 for ac_prog in ginstall scoinst install; do
2328 for ac_exec_ext in '' $ac_executable_extensions; do
2329 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2330 if test $ac_prog = install &&
2331 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332 # AIX install. It has an incompatible calling convention.
2333 :
2334 elif test $ac_prog = install &&
2335 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 # program-specific install script used by HP pwplus--don't use.
2337 :
2338 else
2339 rm -rf conftest.one conftest.two conftest.dir
2340 echo one > conftest.one
2341 echo two > conftest.two
2342 mkdir conftest.dir
2343 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344 test -s conftest.one && test -s conftest.two &&
2345 test -s conftest.dir/conftest.one &&
2346 test -s conftest.dir/conftest.two
2347 then
2348 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2349 break 3
2350 fi
2351 fi
2352 fi
2353 done
2354 done
2355 ;;
2356 esac
2357
2358 done
2359 IFS=$as_save_IFS
2360
2361 rm -rf conftest.one conftest.two conftest.dir
2362
2363 fi
2364 if test "${ac_cv_path_install+set}" = set; then
2365 INSTALL=$ac_cv_path_install
2366 else
2367 # As a last resort, use the slow shell script. Don't cache a
2368 # value for INSTALL within a source directory, because that will
2369 # break other packages using the cache if that directory is
2370 # removed, or if the value is a relative name.
2371 INSTALL=$ac_install_sh
2372 fi
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375 $as_echo "$INSTALL" >&6; }
2376
2377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378 # It thinks the first close brace ends the variable substitution.
2379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2380
2381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2382
2383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2384
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386 $as_echo_n "checking whether build environment is sane... " >&6; }
2387 # Reject unsafe characters in $srcdir or the absolute working directory
2388 # name. Accept space and tab only in the latter.
2389 am_lf='
2390 '
2391 case `pwd` in
2392 *[\\\"\#\$\&\'\`$am_lf]*)
2393 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2394 esac
2395 case $srcdir in
2396 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2397 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2398 esac
2399
2400 # Do 'set' in a subshell so we don't clobber the current shell's
2401 # arguments. Must try -L first in case configure is actually a
2402 # symlink; some systems play weird games with the mod time of symlinks
2403 # (eg FreeBSD returns the mod time of the symlink's containing
2404 # directory).
2405 if (
2406 am_has_slept=no
2407 for am_try in 1 2; do
2408 echo "timestamp, slept: $am_has_slept" > conftest.file
2409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410 if test "$*" = "X"; then
2411 # -L didn't work.
2412 set X `ls -t "$srcdir/configure" conftest.file`
2413 fi
2414 if test "$*" != "X $srcdir/configure conftest.file" \
2415 && test "$*" != "X conftest.file $srcdir/configure"; then
2416
2417 # If neither matched, then we have a broken ls. This can happen
2418 # if, for instance, CONFIG_SHELL is bash and it inherits a
2419 # broken ls alias from the environment. This has actually
2420 # happened. Such a system could not be considered "sane".
2421 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2422 alias in your environment" "$LINENO" 5
2423 fi
2424 if test "$2" = conftest.file || test $am_try -eq 2; then
2425 break
2426 fi
2427 # Just in case.
2428 sleep 1
2429 am_has_slept=yes
2430 done
2431 test "$2" = conftest.file
2432 )
2433 then
2434 # Ok.
2435 :
2436 else
2437 as_fn_error $? "newly created file is older than distributed files!
2438 Check your system clock" "$LINENO" 5
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441 $as_echo "yes" >&6; }
2442 # If we didn't sleep, we still need to ensure time stamps of config.status and
2443 # generated files are strictly newer.
2444 am_sleep_pid=
2445 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2446 ( sleep 1 ) &
2447 am_sleep_pid=$!
2448 fi
2449
2450 rm -f conftest.file
2451
2452 test "$program_prefix" != NONE &&
2453 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2454 # Use a double $ so make ignores it.
2455 test "$program_suffix" != NONE &&
2456 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2457 # Double any \ or $.
2458 # By default was `s,x,x', remove it if useless.
2459 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2460 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461
2462 # Expand $ac_aux_dir to an absolute path.
2463 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2464
2465 if test x"${MISSING+set}" != xset; then
2466 case $am_aux_dir in
2467 *\ * | *\ *)
2468 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469 *)
2470 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2471 esac
2472 fi
2473 # Use eval to expand $SHELL
2474 if eval "$MISSING --is-lightweight"; then
2475 am_missing_run="$MISSING "
2476 else
2477 am_missing_run=
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2479 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2480 fi
2481
2482 if test x"${install_sh+set}" != xset; then
2483 case $am_aux_dir in
2484 *\ * | *\ *)
2485 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486 *)
2487 install_sh="\${SHELL} $am_aux_dir/install-sh"
2488 esac
2489 fi
2490
2491 # Installed binaries are usually stripped using 'strip' when the user
2492 # run "make install-strip". However 'strip' might not be the right
2493 # tool to use in cross-compilation environments, therefore Automake
2494 # will honor the 'STRIP' environment variable to overrule this program.
2495 if test "$cross_compiling" != no; then
2496 if test -n "$ac_tool_prefix"; then
2497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}strip; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_STRIP+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test -n "$STRIP"; then
2505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2517 fi
2518 done
2519 done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 STRIP=$ac_cv_prog_STRIP
2525 if test -n "$STRIP"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2527 $as_echo "$STRIP" >&6; }
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 fi
2535 if test -z "$ac_cv_prog_STRIP"; then
2536 ac_ct_STRIP=$STRIP
2537 # Extract the first word of "strip", so it can be a program name with args.
2538 set dummy strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$ac_ct_STRIP"; then
2545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554 ac_cv_prog_ac_ct_STRIP="strip"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2565 if test -n "$ac_ct_STRIP"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2567 $as_echo "$ac_ct_STRIP" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573 if test "x$ac_ct_STRIP" = x; then
2574 STRIP=":"
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582 STRIP=$ac_ct_STRIP
2583 fi
2584 else
2585 STRIP="$ac_cv_prog_STRIP"
2586 fi
2587
2588 fi
2589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2592 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2593 if test -z "$MKDIR_P"; then
2594 if ${ac_cv_path_mkdir+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_prog in mkdir gmkdir; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2605 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2606 'mkdir (GNU coreutils) '* | \
2607 'mkdir (coreutils) '* | \
2608 'mkdir (fileutils) '4.1*)
2609 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2610 break 3;;
2611 esac
2612 done
2613 done
2614 done
2615 IFS=$as_save_IFS
2616
2617 fi
2618
2619 test -d ./--version && rmdir ./--version
2620 if test "${ac_cv_path_mkdir+set}" = set; then
2621 MKDIR_P="$ac_cv_path_mkdir -p"
2622 else
2623 # As a last resort, use the slow shell script. Don't cache a
2624 # value for MKDIR_P within a source directory, because that will
2625 # break other packages using the cache if that directory is
2626 # removed, or if the value is a relative name.
2627 MKDIR_P="$ac_install_sh -d"
2628 fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2631 $as_echo "$MKDIR_P" >&6; }
2632
2633 for ac_prog in gawk mawk nawk awk
2634 do
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_AWK+:} false; then :
2640 $as_echo_n "(cached) " >&6
2641 else
2642 if test -n "$AWK"; then
2643 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648 IFS=$as_save_IFS
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652 ac_cv_prog_AWK="$ac_prog"
2653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 break 2
2655 fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 AWK=$ac_cv_prog_AWK
2663 if test -n "$AWK"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2665 $as_echo "$AWK" >&6; }
2666 else
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672 test -n "$AWK" && break
2673 done
2674
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2677 set x ${MAKE-make}
2678 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2679 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 cat >conftest.make <<\_ACEOF
2683 SHELL = /bin/sh
2684 all:
2685 @echo '@@@%%%=$(MAKE)=@@@%%%'
2686 _ACEOF
2687 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2689 *@@@%%%=?*=@@@%%%*)
2690 eval ac_cv_prog_make_${ac_make}_set=yes;;
2691 *)
2692 eval ac_cv_prog_make_${ac_make}_set=no;;
2693 esac
2694 rm -f conftest.make
2695 fi
2696 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2698 $as_echo "yes" >&6; }
2699 SET_MAKE=
2700 else
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 SET_MAKE="MAKE=${MAKE-make}"
2704 fi
2705
2706 rm -rf .tst 2>/dev/null
2707 mkdir .tst 2>/dev/null
2708 if test -d .tst; then
2709 am__leading_dot=.
2710 else
2711 am__leading_dot=_
2712 fi
2713 rmdir .tst 2>/dev/null
2714
2715 # Check whether --enable-silent-rules was given.
2716 if test "${enable_silent_rules+set}" = set; then :
2717 enableval=$enable_silent_rules;
2718 fi
2719
2720 case $enable_silent_rules in # (((
2721 yes) AM_DEFAULT_VERBOSITY=0;;
2722 no) AM_DEFAULT_VERBOSITY=1;;
2723 *) AM_DEFAULT_VERBOSITY=1;;
2724 esac
2725 am_make=${MAKE-make}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2727 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2728 if ${am_cv_make_support_nested_variables+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if $as_echo 'TRUE=$(BAR$(V))
2732 BAR0=false
2733 BAR1=true
2734 V=1
2735 am__doit:
2736 @$(TRUE)
2737 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2738 am_cv_make_support_nested_variables=yes
2739 else
2740 am_cv_make_support_nested_variables=no
2741 fi
2742 fi
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2744 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2745 if test $am_cv_make_support_nested_variables = yes; then
2746 AM_V='$(V)'
2747 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2748 else
2749 AM_V=$AM_DEFAULT_VERBOSITY
2750 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2751 fi
2752 AM_BACKSLASH='\'
2753
2754 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2755 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2756 # is not polluted with repeated "-I."
2757 am__isrc=' -I$(srcdir)'
2758 # test to see if srcdir already configured
2759 if test -f $srcdir/config.status; then
2760 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2761 fi
2762 fi
2763
2764 # test whether we have cygpath
2765 if test -z "$CYGPATH_W"; then
2766 if (cygpath --version) >/dev/null 2>/dev/null; then
2767 CYGPATH_W='cygpath -w'
2768 else
2769 CYGPATH_W=echo
2770 fi
2771 fi
2772
2773
2774 # Define the identity of the package.
2775 PACKAGE='nss-mdns'
2776 VERSION='0.15.1'
2777
2778
2779 cat >>confdefs.h <<_ACEOF
2780 #define PACKAGE "$PACKAGE"
2781 _ACEOF
2782
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define VERSION "$VERSION"
2786 _ACEOF
2787
2788 # Some tools Automake needs.
2789
2790 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2791
2792
2793 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2794
2795
2796 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2797
2798
2799 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2800
2801
2802 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2803
2804 # For better backward compatibility. To be removed once Automake 1.9.x
2805 # dies out for good. For more background, see:
2806 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2807 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2808 mkdir_p='$(MKDIR_P)'
2809
2810 # We need awk for the "check" target (and possibly the TAP driver). The
2811 # system "awk" is bad on some platforms.
2812 # Always define AMTAR for backward compatibility. Yes, it's still used
2813 # in the wild :-( We should find a proper way to deprecate it ...
2814 AMTAR='$${TAR-tar}'
2815
2816
2817 # We'll loop over all known methods to create a tar archive until one works.
2818 _am_tools='gnutar pax cpio none'
2819
2820 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2821
2822
2823
2824
2825
2826
2827 # POSIX will say in a future version that running "rm -f" with no argument
2828 # is OK; and we want to be able to make that assumption in our Makefile
2829 # recipes. So use an aggressive probe to check that the usage we want is
2830 # actually supported "in the wild" to an acceptable degree.
2831 # See automake bug#10828.
2832 # To make any issue more visible, cause the running configure to be aborted
2833 # by default if the 'rm' program in use doesn't match our expectations; the
2834 # user can still override this though.
2835 if rm -f && rm -fr && rm -rf; then : OK; else
2836 cat >&2 <<'END'
2837 Oops!
2838
2839 Your 'rm' program seems unable to run without file operands specified
2840 on the command line, even when the '-f' option is present. This is contrary
2841 to the behaviour of most rm programs out there, and not conforming with
2842 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2843
2844 Please tell [email protected] about your system, including the value
2845 of your $PATH and any error possibly output before this message. This
2846 can help us improve future automake versions.
2847
2848 END
2849 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2850 echo 'Configuration will proceed anyway, since you have set the' >&2
2851 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2852 echo >&2
2853 else
2854 cat >&2 <<'END'
2855 Aborting the configuration process, to ensure you take notice of the issue.
2856
2857 You can download and install GNU coreutils to get an 'rm' implementation
2858 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2859
2860 If you want to complete the configuration process using your problematic
2861 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2862 to "yes", and re-run configure.
2863
2864 END
2865 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2866 fi
2867 fi
2868
2869
2870
2871 PACKAGE_URL=https://github.com/lathiat/nss-mdns
2872
2873
2874
2875
2876 DEPDIR="${am__leading_dot}deps"
2877
2878 ac_config_commands="$ac_config_commands depfiles"
2879
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2881 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2882 cat > confinc.mk << 'END'
2883 am__doit:
2884 @echo this is the am__doit target >confinc.out
2885 .PHONY: am__doit
2886 END
2887 am__include="#"
2888 am__quote=
2889 # BSD make does it like this.
2890 echo '.include "confinc.mk" # ignored' > confmf.BSD
2891 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2892 echo 'include confinc.mk # ignored' > confmf.GNU
2893 _am_result=no
2894 for s in GNU BSD; do
2895 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2896 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }
2900 case $?:`cat confinc.out 2>/dev/null` in #(
2901 '0:this is the am__doit target') :
2902 case $s in #(
2903 BSD) :
2904 am__include='.include' am__quote='"' ;; #(
2905 *) :
2906 am__include='include' am__quote='' ;;
2907 esac ;; #(
2908 *) :
2909 ;;
2910 esac
2911 if test "$am__include" != "#"; then
2912 _am_result="yes ($s style)"
2913 break
2914 fi
2915 done
2916 rm -f confinc.* confmf.*
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2918 $as_echo "${_am_result}" >&6; }
2919
2920 # Check whether --enable-dependency-tracking was given.
2921 if test "${enable_dependency_tracking+set}" = set; then :
2922 enableval=$enable_dependency_tracking;
2923 fi
2924
2925 if test "x$enable_dependency_tracking" != xno; then
2926 am_depcomp="$ac_aux_dir/depcomp"
2927 AMDEPBACKSLASH='\'
2928 am__nodep='_no'
2929 fi
2930 if test "x$enable_dependency_tracking" != xno; then
2931 AMDEP_TRUE=
2932 AMDEP_FALSE='#'
2933 else
2934 AMDEP_TRUE='#'
2935 AMDEP_FALSE=
2936 fi
2937
2938
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2944 if test -n "$ac_tool_prefix"; then
2945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_CC+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$ac_cv_prog_CC"; then
2984 ac_ct_CC=$CC
2985 # Extract the first word of "gcc", so it can be a program name with args.
2986 set dummy gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$ac_ct_CC"; then
2993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_ac_ct_CC="gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3013 if test -n "$ac_ct_CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3015 $as_echo "$ac_ct_CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021 if test "x$ac_ct_CC" = x; then
3022 CC=""
3023 else
3024 case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030 CC=$ac_ct_CC
3031 fi
3032 else
3033 CC="$ac_cv_prog_CC"
3034 fi
3035
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3039 set dummy ${ac_tool_prefix}cc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_CC+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044 else
3045 if test -n "$CC"; then
3046 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3055 ac_cv_prog_CC="${ac_tool_prefix}cc"
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059 done
3060 done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074
3075 fi
3076 fi
3077 if test -z "$CC"; then
3078 # Extract the first word of "cc", so it can be a program name with args.
3079 set dummy cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 ac_prog_rejected=no
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3097 ac_prog_rejected=yes
3098 continue
3099 fi
3100 ac_cv_prog_CC="cc"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104 done
3105 done
3106 IFS=$as_save_IFS
3107
3108 if test $ac_prog_rejected = yes; then
3109 # We found a bogon in the path, so make sure we never use it.
3110 set dummy $ac_cv_prog_CC
3111 shift
3112 if test $# != 0; then
3113 # We chose a different compiler from the bogus one.
3114 # However, it has the same basename, so the bogon will be chosen
3115 # first if we set CC to just the basename; use the full file name.
3116 shift
3117 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118 fi
3119 fi
3120 fi
3121 fi
3122 CC=$ac_cv_prog_CC
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3126 else
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3128 $as_echo "no" >&6; }
3129 fi
3130
3131
3132 fi
3133 if test -z "$CC"; then
3134 if test -n "$ac_tool_prefix"; then
3135 for ac_prog in cl.exe
3136 do
3137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_CC+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$CC"; then
3145 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3157 fi
3158 done
3159 done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 test -n "$CC" && break
3175 done
3176 fi
3177 if test -z "$CC"; then
3178 ac_ct_CC=$CC
3179 for ac_prog in cl.exe
3180 do
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 test -z "$as_dir" && as_dir=.
3196 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198 ac_cv_prog_ac_ct_CC="$ac_prog"
3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200 break 2
3201 fi
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3209 if test -n "$ac_ct_CC"; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3211 $as_echo "$ac_ct_CC" >&6; }
3212 else
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 test -n "$ac_ct_CC" && break
3219 done
3220
3221 if test "x$ac_ct_CC" = x; then
3222 CC=""
3223 else
3224 case $cross_compiling:$ac_tool_warned in
3225 yes:)
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3228 ac_tool_warned=yes ;;
3229 esac
3230 CC=$ac_ct_CC
3231 fi
3232 fi
3233
3234 fi
3235
3236
3237 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "no acceptable C compiler found in \$PATH
3240 See \`config.log' for more details" "$LINENO" 5; }
3241
3242 # Provide some information about the compiler.
3243 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3244 set X $ac_compile
3245 ac_compiler=$2
3246 for ac_option in --version -v -V -qversion; do
3247 { { ac_try="$ac_compiler $ac_option >&5"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3255 ac_status=$?
3256 if test -s conftest.err; then
3257 sed '10a\
3258 ... rest of stderr output deleted ...
3259 10q' conftest.err >conftest.er1
3260 cat conftest.er1 >&5
3261 fi
3262 rm -f conftest.er1 conftest.err
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 done
3266
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3269
3270 int
3271 main ()
3272 {
3273
3274 ;
3275 return 0;
3276 }
3277 _ACEOF
3278 ac_clean_files_save=$ac_clean_files
3279 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3280 # Try to create an executable without -o first, disregard a.out.
3281 # It will help us diagnose broken compilers, and finding out an intuition
3282 # of exeext.
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3284 $as_echo_n "checking whether the C compiler works... " >&6; }
3285 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3286
3287 # The possible output files:
3288 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3289
3290 ac_rmfiles=
3291 for ac_file in $ac_files
3292 do
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3296 esac
3297 done
3298 rm -f $ac_rmfiles
3299
3300 if { { ac_try="$ac_link_default"
3301 case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307 (eval "$ac_link_default") 2>&5
3308 ac_status=$?
3309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3310 test $ac_status = 0; }; then :
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3315 # Autoconf.
3316 for ac_file in $ac_files ''
3317 do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3321 ;;
3322 [ab].out )
3323 # We found the default executable, but exeext='' is most
3324 # certainly right.
3325 break;;
3326 *.* )
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3328 then :; else
3329 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3330 fi
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3335 # actually working.
3336 break;;
3337 * )
3338 break;;
3339 esac
3340 done
3341 test "$ac_cv_exeext" = no && ac_cv_exeext=
3342
3343 else
3344 ac_file=''
3345 fi
3346 if test -z "$ac_file"; then :
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 $as_echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error 77 "C compiler cannot create executables
3355 See \`config.log' for more details" "$LINENO" 5; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358 $as_echo "yes" >&6; }
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3363 $as_echo "$ac_file" >&6; }
3364 ac_exeext=$ac_cv_exeext
3365
3366 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3367 ac_clean_files=$ac_clean_files_save
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3369 $as_echo_n "checking for suffix of executables... " >&6; }
3370 if { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_link") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; then :
3381 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe'), while it won't with
3384 # `rm'.
3385 for ac_file in conftest.exe conftest conftest.*; do
3386 test -f "$ac_file" || continue
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 break;;
3391 * ) break;;
3392 esac
3393 done
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 fi
3400 rm -f conftest conftest$ac_cv_exeext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3402 $as_echo "$ac_cv_exeext" >&6; }
3403
3404 rm -f conftest.$ac_ext
3405 EXEEXT=$ac_cv_exeext
3406 ac_exeext=$EXEEXT
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <stdio.h>
3410 int
3411 main ()
3412 {
3413 FILE *f = fopen ("conftest.out", "w");
3414 return ferror (f) || fclose (f) != 0;
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 ac_clean_files="$ac_clean_files conftest.out"
3421 # Check that the compiler produces executables we can run. If not, either
3422 # the compiler is broken, or we cross compile.
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3424 $as_echo_n "checking whether we are cross compiling... " >&6; }
3425 if test "$cross_compiling" != yes; then
3426 { { ac_try="$ac_link"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_link") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }
3437 if { ac_try='./conftest$ac_cv_exeext'
3438 { { case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441 esac
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_try") 2>&5
3445 ac_status=$?
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }; }; then
3448 cross_compiling=no
3449 else
3450 if test "$cross_compiling" = maybe; then
3451 cross_compiling=yes
3452 else
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot run C compiled programs.
3456 If you meant to cross compile, use \`--host'.
3457 See \`config.log' for more details" "$LINENO" 5; }
3458 fi
3459 fi
3460 fi
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3462 $as_echo "$cross_compiling" >&6; }
3463
3464 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3465 ac_clean_files=$ac_clean_files_save
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3467 $as_echo_n "checking for suffix of object files... " >&6; }
3468 if ${ac_cv_objext+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3473
3474 int
3475 main ()
3476 {
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 rm -f conftest.o conftest.obj
3483 if { { ac_try="$ac_compile"
3484 case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490 (eval "$ac_compile") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3493 test $ac_status = 0; }; then :
3494 for ac_file in conftest.o conftest.obj conftest.*; do
3495 test -f "$ac_file" || continue;
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3498 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3499 break;;
3500 esac
3501 done
3502 else
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot compute suffix of object files: cannot compile
3509 See \`config.log' for more details" "$LINENO" 5; }
3510 fi
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3512 fi
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3514 $as_echo "$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$OBJEXT
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3518 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3519 if ${ac_cv_c_compiler_gnu+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3524
3525 int
3526 main ()
3527 {
3528 #ifndef __GNUC__
3529 choke me
3530 #endif
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_compiler_gnu=yes
3538 else
3539 ac_compiler_gnu=no
3540 fi
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543
3544 fi
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3546 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3547 if test $ac_compiler_gnu = yes; then
3548 GCC=yes
3549 else
3550 GCC=
3551 fi
3552 ac_test_CFLAGS=${CFLAGS+set}
3553 ac_save_CFLAGS=$CFLAGS
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3555 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3556 if ${ac_cv_prog_cc_g+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 ac_save_c_werror_flag=$ac_c_werror_flag
3560 ac_c_werror_flag=yes
3561 ac_cv_prog_cc_g=no
3562 CFLAGS="-g"
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575 ac_cv_prog_cc_g=yes
3576 else
3577 CFLAGS=""
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590
3591 else
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 CFLAGS="-g"
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_g=yes
3607 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_c_werror_flag=$ac_save_c_werror_flag
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3616 $as_echo "$ac_cv_prog_cc_g" >&6; }
3617 if test "$ac_test_CFLAGS" = set; then
3618 CFLAGS=$ac_save_CFLAGS
3619 elif test $ac_cv_prog_cc_g = yes; then
3620 if test "$GCC" = yes; then
3621 CFLAGS="-g -O2"
3622 else
3623 CFLAGS="-g"
3624 fi
3625 else
3626 if test "$GCC" = yes; then
3627 CFLAGS="-O2"
3628 else
3629 CFLAGS=
3630 fi
3631 fi
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3633 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3634 if ${ac_cv_prog_cc_c89+:} false; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 ac_cv_prog_cc_c89=no
3638 ac_save_CC=$CC
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 struct stat;
3644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3645 struct buf { int x; };
3646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3647 static char *e (p, i)
3648 char **p;
3649 int i;
3650 {
3651 return p[i];
3652 }
3653 static char *f (char * (*g) (char **, int), char **p, ...)
3654 {
3655 char *s;
3656 va_list v;
3657 va_start (v,p);
3658 s = g (p, va_arg (v,int));
3659 va_end (v);
3660 return s;
3661 }
3662
3663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3664 function prototypes and stuff, but not '\xHH' hex character constants.
3665 These don't provoke an error unfortunately, instead are silently treated
3666 as 'x'. The following induces an error, until -std is added to get
3667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3668 array size at least. It's necessary to write '\x00'==0 to get something
3669 that's true only with -std. */
3670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3671
3672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3673 inside strings and character constants. */
3674 #define FOO(x) 'x'
3675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3676
3677 int test (int i, double x);
3678 struct s1 {int (*f) (int a);};
3679 struct s2 {int (*f) (double a);};
3680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681 int argc;
3682 char **argv;
3683 int
3684 main ()
3685 {
3686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3693 do
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c89=$ac_arg
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c89" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3703
3704 fi
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c89" in
3707 x)
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3713 *)
3714 CC="$CC $ac_cv_prog_cc_c89"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3716 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c89" != xno; then :
3719
3720 fi
3721
3722 ac_ext=c
3723 ac_cpp='$CPP $CPPFLAGS'
3724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3727
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3734 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3735 if ${am_cv_prog_cc_c_o+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 # Make sure it works both with $CC and with simple cc.
3750 # Following AC_PROG_CC_C_O, we do the test twice because some
3751 # compilers refuse to overwrite an existing .o file with -o,
3752 # though they will create one.
3753 am_cv_prog_cc_c_o=yes
3754 for am_i in 1 2; do
3755 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3756 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); } \
3760 && test -f conftest2.$ac_objext; then
3761 : OK
3762 else
3763 am_cv_prog_cc_c_o=no
3764 break
3765 fi
3766 done
3767 rm -f core conftest*
3768 unset am_i
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3771 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3772 if test "$am_cv_prog_cc_c_o" != yes; then
3773 # Losing compiler, so override with the script.
3774 # FIXME: It is wrong to rewrite CC.
3775 # But if we don't then we get into trouble of one sort or another.
3776 # A longer-term fix would be to have automake use am__CC in this case,
3777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3778 CC="$am_aux_dir/compile $CC"
3779 fi
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786
3787 depcc="$CC" am_compiler_list=
3788
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named 'D' -- because '-MD' means "put the output
3799 # in D".
3800 rm -rf conftest.dir
3801 mkdir conftest.dir
3802 # Copy depcomp to subdir because otherwise we won't find it if we're
3803 # using a relative directory.
3804 cp "$am_depcomp" conftest.dir
3805 cd conftest.dir
3806 # We will build objects and dependencies in a subdirectory because
3807 # it helps to detect inapplicable dependency modes. For instance
3808 # both Tru64's cc and ICC support -MD to output dependencies as a
3809 # side effect of compilation, but ICC will put the dependencies in
3810 # the current directory while Tru64 will put them in the object
3811 # directory.
3812 mkdir sub
3813
3814 am_cv_CC_dependencies_compiler_type=none
3815 if test "$am_compiler_list" = ""; then
3816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3817 fi
3818 am__universal=false
3819 case " $depcc " in #(
3820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3821 esac
3822
3823 for depmode in $am_compiler_list; do
3824 # Setup a source with many dependencies, because some compilers
3825 # like to wrap large dependency lists on column 80 (with \), and
3826 # we should not choose a depcomp mode which is confused by this.
3827 #
3828 # We need to recreate these files for each test, as the compiler may
3829 # overwrite some of them when testing with obscure command lines.
3830 # This happens at least with the AIX C compiler.
3831 : > sub/conftest.c
3832 for i in 1 2 3 4 5 6; do
3833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3835 # Solaris 10 /bin/sh.
3836 echo '/* dummy */' > sub/conftst$i.h
3837 done
3838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3839
3840 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3841 # mode. It turns out that the SunPro C++ compiler does not properly
3842 # handle '-M -o', and we need to detect this. Also, some Intel
3843 # versions had trouble with output in subdirs.
3844 am__obj=sub/conftest.${OBJEXT-o}
3845 am__minus_obj="-o $am__obj"
3846 case $depmode in
3847 gcc)
3848 # This depmode causes a compiler race in universal mode.
3849 test "$am__universal" = false || continue
3850 ;;
3851 nosideeffect)
3852 # After this tag, mechanisms are not by side-effect, so they'll
3853 # only be used when explicitly requested.
3854 if test "x$enable_dependency_tracking" = xyes; then
3855 continue
3856 else
3857 break
3858 fi
3859 ;;
3860 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3861 # This compiler won't grok '-c -o', but also, the minuso test has
3862 # not run yet. These depmodes are late enough in the game, and
3863 # so weak that their functioning should not be impacted.
3864 am__obj=conftest.${OBJEXT-o}
3865 am__minus_obj=
3866 ;;
3867 none) break ;;
3868 esac
3869 if depmode=$depmode \
3870 source=sub/conftest.c object=$am__obj \
3871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3873 >/dev/null 2>conftest.err &&
3874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3878 # icc doesn't choke on unknown options, it will just issue warnings
3879 # or remarks (even with -Werror). So we grep stderr for any message
3880 # that says an option was ignored or not supported.
3881 # When given -MP, icc 7.0 and 7.1 complain thusly:
3882 # icc: Command line warning: ignoring option '-M'; no argument required
3883 # The diagnosis changed in icc 8.0:
3884 # icc: Command line remark: option '-MP' not supported
3885 if (grep 'ignoring option' conftest.err ||
3886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3887 am_cv_CC_dependencies_compiler_type=$depmode
3888 break
3889 fi
3890 fi
3891 done
3892
3893 cd ..
3894 rm -rf conftest.dir
3895 else
3896 am_cv_CC_dependencies_compiler_type=none
3897 fi
3898
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3903
3904 if
3905 test "x$enable_dependency_tracking" != xno \
3906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3907 am__fastdepCC_TRUE=
3908 am__fastdepCC_FALSE='#'
3909 else
3910 am__fastdepCC_TRUE='#'
3911 am__fastdepCC_FALSE=
3912 fi
3913
3914
3915
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3923 # On Suns, sometimes $CPP names a directory.
3924 if test -n "$CPP" && test -d "$CPP"; then
3925 CPP=
3926 fi
3927 if test -z "$CPP"; then
3928 if ${ac_cv_prog_CPP+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 # Double quotes because CPP needs to be expanded
3932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3933 do
3934 ac_preproc_ok=false
3935 for ac_c_preproc_warn_flag in '' yes
3936 do
3937 # Use a header file that comes with gcc, so configuring glibc
3938 # with a fresh cross-compiler works.
3939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3940 # <limits.h> exists even on freestanding compilers.
3941 # On the NeXT, cc -E runs the code through the compiler's parser,
3942 # not just through cpp. "Syntax error" is here to catch this case.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #ifdef __STDC__
3946 # include <limits.h>
3947 #else
3948 # include <assert.h>
3949 #endif
3950 Syntax error
3951 _ACEOF
3952 if ac_fn_c_try_cpp "$LINENO"; then :
3953
3954 else
3955 # Broken: fails on valid input.
3956 continue
3957 fi
3958 rm -f conftest.err conftest.i conftest.$ac_ext
3959
3960 # OK, works on sane cases. Now check whether nonexistent headers
3961 # can be detected and how.
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964 #include <ac_nonexistent.h>
3965 _ACEOF
3966 if ac_fn_c_try_cpp "$LINENO"; then :
3967 # Broken: success on invalid input.
3968 continue
3969 else
3970 # Passes both tests.
3971 ac_preproc_ok=:
3972 break
3973 fi
3974 rm -f conftest.err conftest.i conftest.$ac_ext
3975
3976 done
3977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3978 rm -f conftest.i conftest.err conftest.$ac_ext
3979 if $ac_preproc_ok; then :
3980 break
3981 fi
3982
3983 done
3984 ac_cv_prog_CPP=$CPP
3985
3986 fi
3987 CPP=$ac_cv_prog_CPP
3988 else
3989 ac_cv_prog_CPP=$CPP
3990 fi
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3992 $as_echo "$CPP" >&6; }
3993 ac_preproc_ok=false
3994 for ac_c_preproc_warn_flag in '' yes
3995 do
3996 # Use a header file that comes with gcc, so configuring glibc
3997 # with a fresh cross-compiler works.
3998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999 # <limits.h> exists even on freestanding compilers.
4000 # On the NeXT, cc -E runs the code through the compiler's parser,
4001 # not just through cpp. "Syntax error" is here to catch this case.
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #ifdef __STDC__
4005 # include <limits.h>
4006 #else
4007 # include <assert.h>
4008 #endif
4009 Syntax error
4010 _ACEOF
4011 if ac_fn_c_try_cpp "$LINENO"; then :
4012
4013 else
4014 # Broken: fails on valid input.
4015 continue
4016 fi
4017 rm -f conftest.err conftest.i conftest.$ac_ext
4018
4019 # OK, works on sane cases. Now check whether nonexistent headers
4020 # can be detected and how.
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <ac_nonexistent.h>
4024 _ACEOF
4025 if ac_fn_c_try_cpp "$LINENO"; then :
4026 # Broken: success on invalid input.
4027 continue
4028 else
4029 # Passes both tests.
4030 ac_preproc_ok=:
4031 break
4032 fi
4033 rm -f conftest.err conftest.i conftest.$ac_ext
4034
4035 done
4036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037 rm -f conftest.i conftest.err conftest.$ac_ext
4038 if $ac_preproc_ok; then :
4039
4040 else
4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4044 See \`config.log' for more details" "$LINENO" 5; }
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4055 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4056 if ${ac_cv_path_GREP+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test -z "$GREP"; then
4060 ac_path_GREP_found=false
4061 # Loop through the user's path and test for each of PROGNAME-LIST
4062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065 IFS=$as_save_IFS
4066 test -z "$as_dir" && as_dir=.
4067 for ac_prog in grep ggrep; do
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4070 as_fn_executable_p "$ac_path_GREP" || continue
4071 # Check for GNU ac_path_GREP and select it if it is found.
4072 # Check for GNU $ac_path_GREP
4073 case `"$ac_path_GREP" --version 2>&1` in
4074 *GNU*)
4075 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4076 *)
4077 ac_count=0
4078 $as_echo_n 0123456789 >"conftest.in"
4079 while :
4080 do
4081 cat "conftest.in" "conftest.in" >"conftest.tmp"
4082 mv "conftest.tmp" "conftest.in"
4083 cp "conftest.in" "conftest.nl"
4084 $as_echo 'GREP' >> "conftest.nl"
4085 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087 as_fn_arith $ac_count + 1 && ac_count=$as_val
4088 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4089 # Best one so far, save it but keep looking for a better one
4090 ac_cv_path_GREP="$ac_path_GREP"
4091 ac_path_GREP_max=$ac_count
4092 fi
4093 # 10*(2^10) chars as input seems more than enough
4094 test $ac_count -gt 10 && break
4095 done
4096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099 $ac_path_GREP_found && break 3
4100 done
4101 done
4102 done
4103 IFS=$as_save_IFS
4104 if test -z "$ac_cv_path_GREP"; then
4105 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106 fi
4107 else
4108 ac_cv_path_GREP=$GREP
4109 fi
4110
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4113 $as_echo "$ac_cv_path_GREP" >&6; }
4114 GREP="$ac_cv_path_GREP"
4115
4116
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4118 $as_echo_n "checking for egrep... " >&6; }
4119 if ${ac_cv_path_EGREP+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4123 then ac_cv_path_EGREP="$GREP -E"
4124 else
4125 if test -z "$EGREP"; then
4126 ac_path_EGREP_found=false
4127 # Loop through the user's path and test for each of PROGNAME-LIST
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_prog in egrep; do
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4136 as_fn_executable_p "$ac_path_EGREP" || continue
4137 # Check for GNU ac_path_EGREP and select it if it is found.
4138 # Check for GNU $ac_path_EGREP
4139 case `"$ac_path_EGREP" --version 2>&1` in
4140 *GNU*)
4141 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4142 *)
4143 ac_count=0
4144 $as_echo_n 0123456789 >"conftest.in"
4145 while :
4146 do
4147 cat "conftest.in" "conftest.in" >"conftest.tmp"
4148 mv "conftest.tmp" "conftest.in"
4149 cp "conftest.in" "conftest.nl"
4150 $as_echo 'EGREP' >> "conftest.nl"
4151 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4153 as_fn_arith $ac_count + 1 && ac_count=$as_val
4154 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4155 # Best one so far, save it but keep looking for a better one
4156 ac_cv_path_EGREP="$ac_path_EGREP"
4157 ac_path_EGREP_max=$ac_count
4158 fi
4159 # 10*(2^10) chars as input seems more than enough
4160 test $ac_count -gt 10 && break
4161 done
4162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4163 esac
4164
4165 $ac_path_EGREP_found && break 3
4166 done
4167 done
4168 done
4169 IFS=$as_save_IFS
4170 if test -z "$ac_cv_path_EGREP"; then
4171 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4172 fi
4173 else
4174 ac_cv_path_EGREP=$EGREP
4175 fi
4176
4177 fi
4178 fi
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4180 $as_echo "$ac_cv_path_EGREP" >&6; }
4181 EGREP="$ac_cv_path_EGREP"
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4185 $as_echo_n "checking for ANSI C header files... " >&6; }
4186 if ${ac_cv_header_stdc+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191 #include <stdlib.h>
4192 #include <stdarg.h>
4193 #include <string.h>
4194 #include <float.h>
4195
4196 int
4197 main ()
4198 {
4199
4200 ;
4201 return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_header_stdc=yes
4206 else
4207 ac_cv_header_stdc=no
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210
4211 if test $ac_cv_header_stdc = yes; then
4212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <string.h>
4216
4217 _ACEOF
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219 $EGREP "memchr" >/dev/null 2>&1; then :
4220
4221 else
4222 ac_cv_header_stdc=no
4223 fi
4224 rm -f conftest*
4225
4226 fi
4227
4228 if test $ac_cv_header_stdc = yes; then
4229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 #include <stdlib.h>
4233
4234 _ACEOF
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "free" >/dev/null 2>&1; then :
4237
4238 else
4239 ac_cv_header_stdc=no
4240 fi
4241 rm -f conftest*
4242
4243 fi
4244
4245 if test $ac_cv_header_stdc = yes; then
4246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4247 if test "$cross_compiling" = yes; then :
4248 :
4249 else
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252 #include <ctype.h>
4253 #include <stdlib.h>
4254 #if ((' ' & 0x0FF) == 0x020)
4255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4257 #else
4258 # define ISLOWER(c) \
4259 (('a' <= (c) && (c) <= 'i') \
4260 || ('j' <= (c) && (c) <= 'r') \
4261 || ('s' <= (c) && (c) <= 'z'))
4262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4263 #endif
4264
4265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4266 int
4267 main ()
4268 {
4269 int i;
4270 for (i = 0; i < 256; i++)
4271 if (XOR (islower (i), ISLOWER (i))
4272 || toupper (i) != TOUPPER (i))
4273 return 2;
4274 return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_c_try_run "$LINENO"; then :
4278
4279 else
4280 ac_cv_header_stdc=no
4281 fi
4282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4283 conftest.$ac_objext conftest.beam conftest.$ac_ext
4284 fi
4285
4286 fi
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4289 $as_echo "$ac_cv_header_stdc" >&6; }
4290 if test $ac_cv_header_stdc = yes; then
4291
4292 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4293
4294 fi
4295
4296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4298 inttypes.h stdint.h unistd.h
4299 do :
4300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4302 "
4303 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4304 cat >>confdefs.h <<_ACEOF
4305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4306 _ACEOF
4307
4308 fi
4309
4310 done
4311
4312
4313
4314 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4315 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4316 MINIX=yes
4317 else
4318 MINIX=
4319 fi
4320
4321
4322 if test "$MINIX" = yes; then
4323
4324 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4325
4326
4327 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4328
4329
4330 $as_echo "#define _MINIX 1" >>confdefs.h
4331
4332 fi
4333
4334
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4336 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4337 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342
4343 # define __EXTENSIONS__ 1
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_c_try_compile "$LINENO"; then :
4354 ac_cv_safe_to_define___extensions__=yes
4355 else
4356 ac_cv_safe_to_define___extensions__=no
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4361 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4362 test $ac_cv_safe_to_define___extensions__ = yes &&
4363 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4364
4365 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4366
4367 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4368
4369 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4370
4371 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4372
4373
4374
4375 # Check whether --enable-silent-rules was given.
4376 if test "${enable_silent_rules+set}" = set; then :
4377 enableval=$enable_silent_rules;
4378 fi
4379
4380 case $enable_silent_rules in # (((
4381 yes) AM_DEFAULT_VERBOSITY=0;;
4382 no) AM_DEFAULT_VERBOSITY=1;;
4383 *) AM_DEFAULT_VERBOSITY=0;;
4384 esac
4385 am_make=${MAKE-make}
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4387 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4388 if ${am_cv_make_support_nested_variables+:} false; then :
4389 $as_echo_n "(cached) " >&6
4390 else
4391 if $as_echo 'TRUE=$(BAR$(V))
4392 BAR0=false
4393 BAR1=true
4394 V=1
4395 am__doit:
4396 @$(TRUE)
4397 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4398 am_cv_make_support_nested_variables=yes
4399 else
4400 am_cv_make_support_nested_variables=no
4401 fi
4402 fi
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4404 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4405 if test $am_cv_make_support_nested_variables = yes; then
4406 AM_V='$(V)'
4407 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4408 else
4409 AM_V=$AM_DEFAULT_VERBOSITY
4410 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4411 fi
4412 AM_BACKSLASH='\'
4413
4414
4415 # Conditionally enable unittests.
4416 # Check whether --enable-tests was given.
4417 if test "${enable_tests+set}" = set; then :
4418 enableval=$enable_tests;
4419 fi
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4430 if test -n "$ac_tool_prefix"; then
4431 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4432 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 case $PKG_CONFIG in
4439 [\\/]* | ?:[\\/]*)
4440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4441 ;;
4442 *)
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 ;;
4459 esac
4460 fi
4461 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4462 if test -n "$PKG_CONFIG"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4464 $as_echo "$PKG_CONFIG" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470
4471 fi
4472 if test -z "$ac_cv_path_PKG_CONFIG"; then
4473 ac_pt_PKG_CONFIG=$PKG_CONFIG
4474 # Extract the first word of "pkg-config", so it can be a program name with args.
4475 set dummy pkg-config; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 case $ac_pt_PKG_CONFIG in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4484 ;;
4485 *)
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 ;;
4502 esac
4503 fi
4504 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4505 if test -n "$ac_pt_PKG_CONFIG"; then
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4507 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4508 else
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4510 $as_echo "no" >&6; }
4511 fi
4512
4513 if test "x$ac_pt_PKG_CONFIG" = x; then
4514 PKG_CONFIG=""
4515 else
4516 case $cross_compiling:$ac_tool_warned in
4517 yes:)
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520 ac_tool_warned=yes ;;
4521 esac
4522 PKG_CONFIG=$ac_pt_PKG_CONFIG
4523 fi
4524 else
4525 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4526 fi
4527
4528 fi
4529 if test -n "$PKG_CONFIG"; then
4530 _pkg_min_version=0.9.0
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4532 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4533 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4536 else
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4538 $as_echo "no" >&6; }
4539 PKG_CONFIG=""
4540 fi
4541 fi
4542 if test "x$enable_tests" != "xno"; then :
4543
4544 pkg_failed=no
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
4546 $as_echo_n "checking for CHECK... " >&6; }
4547
4548 if test -n "$CHECK_CFLAGS"; then
4549 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
4550 elif test -n "$PKG_CONFIG"; then
4551 if test -n "$PKG_CONFIG" && \
4552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.11\""; } >&5
4553 ($PKG_CONFIG --exists --print-errors "check >= 0.11") 2>&5
4554 ac_status=$?
4555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4556 test $ac_status = 0; }; then
4557 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.11" 2>/dev/null`
4558 test "x$?" != "x0" && pkg_failed=yes
4559 else
4560 pkg_failed=yes
4561 fi
4562 else
4563 pkg_failed=untried
4564 fi
4565 if test -n "$CHECK_LIBS"; then
4566 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
4567 elif test -n "$PKG_CONFIG"; then
4568 if test -n "$PKG_CONFIG" && \
4569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.11\""; } >&5
4570 ($PKG_CONFIG --exists --print-errors "check >= 0.11") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then
4574 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.11" 2>/dev/null`
4575 test "x$?" != "x0" && pkg_failed=yes
4576 else
4577 pkg_failed=yes
4578 fi
4579 else
4580 pkg_failed=untried
4581 fi
4582
4583
4584
4585 if test $pkg_failed = yes; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588
4589 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4590 _pkg_short_errors_supported=yes
4591 else
4592 _pkg_short_errors_supported=no
4593 fi
4594 if test $_pkg_short_errors_supported = yes; then
4595 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.11" 2>&1`
4596 else
4597 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.11" 2>&1`
4598 fi
4599 # Put the nasty error message in config.log where it belongs
4600 echo "$CHECK_PKG_ERRORS" >&5
4601
4602 have_check=no
4603 elif test $pkg_failed = untried; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 have_check=no
4607 else
4608 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
4609 CHECK_LIBS=$pkg_cv_CHECK_LIBS
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 have_check=yes
4613 fi
4614 else
4615 have_check=no
4616 fi
4617
4618 if test "x$have_check" = "xyes"; then :
4619
4620 else
4621 if test "x$enable_tests" = "xyes"; then :
4622 as_fn_error $? "Cannot enable tests: $CHECK_PKG_ERRORS" "$LINENO" 5
4623
4624 fi
4625
4626 fi
4627
4628 if test "x$have_check" = "xyes"; then
4629 ENABLE_TESTS_TRUE=
4630 ENABLE_TESTS_FALSE='#'
4631 else
4632 ENABLE_TESTS_TRUE='#'
4633 ENABLE_TESTS_FALSE=
4634 fi
4635
4636
4637 # Options for file locations.
4638
4639 if test "x$AVAHI_SOCKET" = x; then :
4640 AVAHI_SOCKET="${runstatedir}/avahi-daemon/socket"
4641 fi
4642
4643
4644 if test "x$MDNS_ALLOW_FILE" = x; then :
4645 MDNS_ALLOW_FILE="${sysconfdir}/mdns.allow"
4646 fi
4647
4648 # Checks for programs.
4649 if test -n "$ac_tool_prefix"; then
4650 for ac_prog in ar lib "link -lib"
4651 do
4652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if ${ac_cv_prog_AR+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$AR"; then
4660 ac_cv_prog_AR="$AR" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi
4678 fi
4679 AR=$ac_cv_prog_AR
4680 if test -n "$AR"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4682 $as_echo "$AR" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688
4689 test -n "$AR" && break
4690 done
4691 fi
4692 if test -z "$AR"; then
4693 ac_ct_AR=$AR
4694 for ac_prog in ar lib "link -lib"
4695 do
4696 # Extract the first word of "$ac_prog", so it can be a program name with args.
4697 set dummy $ac_prog; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ac_ct_AR"; then
4704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_ac_ct_AR="$ac_prog"
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4724 if test -n "$ac_ct_AR"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4726 $as_echo "$ac_ct_AR" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732
4733 test -n "$ac_ct_AR" && break
4734 done
4735
4736 if test "x$ac_ct_AR" = x; then
4737 AR="false"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 AR=$ac_ct_AR
4746 fi
4747 fi
4748
4749 : ${AR=ar}
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4752 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4753 if ${am_cv_ar_interface+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 ac_ext=c
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762 am_cv_ar_interface=ar
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4765 int some_variable = 0;
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4770 (eval $am_ar_try) 2>&5
4771 ac_status=$?
4772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4773 test $ac_status = 0; }
4774 if test "$ac_status" -eq 0; then
4775 am_cv_ar_interface=ar
4776 else
4777 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4779 (eval $am_ar_try) 2>&5
4780 ac_status=$?
4781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782 test $ac_status = 0; }
4783 if test "$ac_status" -eq 0; then
4784 am_cv_ar_interface=lib
4785 else
4786 am_cv_ar_interface=unknown
4787 fi
4788 fi
4789 rm -f conftest.lib libconftest.a
4790
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_ext=c
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799 fi
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4801 $as_echo "$am_cv_ar_interface" >&6; }
4802
4803 case $am_cv_ar_interface in
4804 ar)
4805 ;;
4806 lib)
4807 # Microsoft lib, so override with the ar-lib wrapper script.
4808 # FIXME: It is wrong to rewrite AR.
4809 # But if we don't then we get into trouble of one sort or another.
4810 # A longer-term fix would be to have automake use am__AR in this case,
4811 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4812 # similar.
4813 AR="$am_aux_dir/ar-lib $AR"
4814 ;;
4815 unknown)
4816 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4817 ;;
4818 esac
4819
4820 ac_ext=c
4821 ac_cpp='$CPP $CPPFLAGS'
4822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_CC+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$CC"; then
4834 ac_cv_prog_CC="$CC" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 CC=$ac_cv_prog_CC
4854 if test -n "$CC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4856 $as_echo "$CC" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 fi
4864 if test -z "$ac_cv_prog_CC"; then
4865 ac_ct_CC=$CC
4866 # Extract the first word of "gcc", so it can be a program name with args.
4867 set dummy gcc; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$ac_ct_CC"; then
4874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_CC="gcc"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 $as_echo "$ac_ct_CC" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902 if test "x$ac_ct_CC" = x; then
4903 CC=""
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 CC=$ac_ct_CC
4912 fi
4913 else
4914 CC="$ac_cv_prog_CC"
4915 fi
4916
4917 if test -z "$CC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_CC+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$CC"; then
4927 ac_cv_prog_CC="$CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_CC="${ac_tool_prefix}cc"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 CC=$ac_cv_prog_CC
4947 if test -n "$CC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4949 $as_echo "$CC" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955
4956 fi
4957 fi
4958 if test -z "$CC"; then
4959 # Extract the first word of "cc", so it can be a program name with args.
4960 set dummy cc; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_CC+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$CC"; then
4967 ac_cv_prog_CC="$CC" # Let the user override the test.
4968 else
4969 ac_prog_rejected=no
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4978 ac_prog_rejected=yes
4979 continue
4980 fi
4981 ac_cv_prog_CC="cc"
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4984 fi
4985 done
4986 done
4987 IFS=$as_save_IFS
4988
4989 if test $ac_prog_rejected = yes; then
4990 # We found a bogon in the path, so make sure we never use it.
4991 set dummy $ac_cv_prog_CC
4992 shift
4993 if test $# != 0; then
4994 # We chose a different compiler from the bogus one.
4995 # However, it has the same basename, so the bogon will be chosen
4996 # first if we set CC to just the basename; use the full file name.
4997 shift
4998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4999 fi
5000 fi
5001 fi
5002 fi
5003 CC=$ac_cv_prog_CC
5004 if test -n "$CC"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5006 $as_echo "$CC" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013 fi
5014 if test -z "$CC"; then
5015 if test -n "$ac_tool_prefix"; then
5016 for ac_prog in cl.exe
5017 do
5018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_CC+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -n "$CC"; then
5026 ac_cv_prog_CC="$CC" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039 done
5040 done
5041 IFS=$as_save_IFS
5042
5043 fi
5044 fi
5045 CC=$ac_cv_prog_CC
5046 if test -n "$CC"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5048 $as_echo "$CC" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055 test -n "$CC" && break
5056 done
5057 fi
5058 if test -z "$CC"; then
5059 ac_ct_CC=$CC
5060 for ac_prog in cl.exe
5061 do
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063 set dummy $ac_prog; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$ac_ct_CC"; then
5070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ac_ct_CC="$ac_prog"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5092 $as_echo "$ac_ct_CC" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098
5099 test -n "$ac_ct_CC" && break
5100 done
5101
5102 if test "x$ac_ct_CC" = x; then
5103 CC=""
5104 else
5105 case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111 CC=$ac_ct_CC
5112 fi
5113 fi
5114
5115 fi
5116
5117
5118 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5120 as_fn_error $? "no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details" "$LINENO" 5; }
5122
5123 # Provide some information about the compiler.
5124 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5125 set X $ac_compile
5126 ac_compiler=$2
5127 for ac_option in --version -v -V -qversion; do
5128 { { ac_try="$ac_compiler $ac_option >&5"
5129 case "(($ac_try" in
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5134 $as_echo "$ac_try_echo"; } >&5
5135 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5136 ac_status=$?
5137 if test -s conftest.err; then
5138 sed '10a\
5139 ... rest of stderr output deleted ...
5140 10q' conftest.err >conftest.er1
5141 cat conftest.er1 >&5
5142 fi
5143 rm -f conftest.er1 conftest.err
5144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145 test $ac_status = 0; }
5146 done
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5149 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5150 if ${ac_cv_c_compiler_gnu+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152 else
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155
5156 int
5157 main ()
5158 {
5159 #ifndef __GNUC__
5160 choke me
5161 #endif
5162
5163 ;
5164 return 0;
5165 }
5166 _ACEOF
5167 if ac_fn_c_try_compile "$LINENO"; then :
5168 ac_compiler_gnu=yes
5169 else
5170 ac_compiler_gnu=no
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5174
5175 fi
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5177 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5178 if test $ac_compiler_gnu = yes; then
5179 GCC=yes
5180 else
5181 GCC=
5182 fi
5183 ac_test_CFLAGS=${CFLAGS+set}
5184 ac_save_CFLAGS=$CFLAGS
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5186 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5187 if ${ac_cv_prog_cc_g+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 ac_save_c_werror_flag=$ac_c_werror_flag
5191 ac_c_werror_flag=yes
5192 ac_cv_prog_cc_g=no
5193 CFLAGS="-g"
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196
5197 int
5198 main ()
5199 {
5200
5201 ;
5202 return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 ac_cv_prog_cc_g=yes
5207 else
5208 CFLAGS=""
5209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210 /* end confdefs.h. */
5211
5212 int
5213 main ()
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 if ac_fn_c_try_compile "$LINENO"; then :
5221
5222 else
5223 ac_c_werror_flag=$ac_save_c_werror_flag
5224 CFLAGS="-g"
5225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h. */
5227
5228 int
5229 main ()
5230 {
5231
5232 ;
5233 return 0;
5234 }
5235 _ACEOF
5236 if ac_fn_c_try_compile "$LINENO"; then :
5237 ac_cv_prog_cc_g=yes
5238 fi
5239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 fi
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244 ac_c_werror_flag=$ac_save_c_werror_flag
5245 fi
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5247 $as_echo "$ac_cv_prog_cc_g" >&6; }
5248 if test "$ac_test_CFLAGS" = set; then
5249 CFLAGS=$ac_save_CFLAGS
5250 elif test $ac_cv_prog_cc_g = yes; then
5251 if test "$GCC" = yes; then
5252 CFLAGS="-g -O2"
5253 else
5254 CFLAGS="-g"
5255 fi
5256 else
5257 if test "$GCC" = yes; then
5258 CFLAGS="-O2"
5259 else
5260 CFLAGS=
5261 fi
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5264 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5265 if ${ac_cv_prog_cc_c89+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 ac_cv_prog_cc_c89=no
5269 ac_save_CC=$CC
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #include <stdarg.h>
5273 #include <stdio.h>
5274 struct stat;
5275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5276 struct buf { int x; };
5277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5278 static char *e (p, i)
5279 char **p;
5280 int i;
5281 {
5282 return p[i];
5283 }
5284 static char *f (char * (*g) (char **, int), char **p, ...)
5285 {
5286 char *s;
5287 va_list v;
5288 va_start (v,p);
5289 s = g (p, va_arg (v,int));
5290 va_end (v);
5291 return s;
5292 }
5293
5294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5295 function prototypes and stuff, but not '\xHH' hex character constants.
5296 These don't provoke an error unfortunately, instead are silently treated
5297 as 'x'. The following induces an error, until -std is added to get
5298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5299 array size at least. It's necessary to write '\x00'==0 to get something
5300 that's true only with -std. */
5301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5302
5303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5304 inside strings and character constants. */
5305 #define FOO(x) 'x'
5306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5307
5308 int test (int i, double x);
5309 struct s1 {int (*f) (int a);};
5310 struct s2 {int (*f) (double a);};
5311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5312 int argc;
5313 char **argv;
5314 int
5315 main ()
5316 {
5317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5318 ;
5319 return 0;
5320 }
5321 _ACEOF
5322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5324 do
5325 CC="$ac_save_CC $ac_arg"
5326 if ac_fn_c_try_compile "$LINENO"; then :
5327 ac_cv_prog_cc_c89=$ac_arg
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext
5330 test "x$ac_cv_prog_cc_c89" != "xno" && break
5331 done
5332 rm -f conftest.$ac_ext
5333 CC=$ac_save_CC
5334
5335 fi
5336 # AC_CACHE_VAL
5337 case "x$ac_cv_prog_cc_c89" in
5338 x)
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5340 $as_echo "none needed" >&6; } ;;
5341 xno)
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5343 $as_echo "unsupported" >&6; } ;;
5344 *)
5345 CC="$CC $ac_cv_prog_cc_c89"
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5348 esac
5349 if test "x$ac_cv_prog_cc_c89" != xno; then :
5350
5351 fi
5352
5353 ac_ext=c
5354 ac_cpp='$CPP $CPPFLAGS'
5355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358
5359 ac_ext=c
5360 ac_cpp='$CPP $CPPFLAGS'
5361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5365 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5366 if ${am_cv_prog_cc_c_o+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5371
5372 int
5373 main ()
5374 {
5375
5376 ;
5377 return 0;
5378 }
5379 _ACEOF
5380 # Make sure it works both with $CC and with simple cc.
5381 # Following AC_PROG_CC_C_O, we do the test twice because some
5382 # compilers refuse to overwrite an existing .o file with -o,
5383 # though they will create one.
5384 am_cv_prog_cc_c_o=yes
5385 for am_i in 1 2; do
5386 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5387 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } \
5391 && test -f conftest2.$ac_objext; then
5392 : OK
5393 else
5394 am_cv_prog_cc_c_o=no
5395 break
5396 fi
5397 done
5398 rm -f core conftest*
5399 unset am_i
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5402 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5403 if test "$am_cv_prog_cc_c_o" != yes; then
5404 # Losing compiler, so override with the script.
5405 # FIXME: It is wrong to rewrite CC.
5406 # But if we don't then we get into trouble of one sort or another.
5407 # A longer-term fix would be to have automake use am__CC in this case,
5408 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5409 CC="$am_aux_dir/compile $CC"
5410 fi
5411 ac_ext=c
5412 ac_cpp='$CPP $CPPFLAGS'
5413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5416
5417
5418 depcc="$CC" am_compiler_list=
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5421 $as_echo_n "checking dependency style of $depcc... " >&6; }
5422 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5426 # We make a subdir and do the tests there. Otherwise we can end up
5427 # making bogus files that we don't know about and never remove. For
5428 # instance it was reported that on HP-UX the gcc test will end up
5429 # making a dummy file named 'D' -- because '-MD' means "put the output
5430 # in D".
5431 rm -rf conftest.dir
5432 mkdir conftest.dir
5433 # Copy depcomp to subdir because otherwise we won't find it if we're
5434 # using a relative directory.
5435 cp "$am_depcomp" conftest.dir
5436 cd conftest.dir
5437 # We will build objects and dependencies in a subdirectory because
5438 # it helps to detect inapplicable dependency modes. For instance
5439 # both Tru64's cc and ICC support -MD to output dependencies as a
5440 # side effect of compilation, but ICC will put the dependencies in
5441 # the current directory while Tru64 will put them in the object
5442 # directory.
5443 mkdir sub
5444
5445 am_cv_CC_dependencies_compiler_type=none
5446 if test "$am_compiler_list" = ""; then
5447 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5448 fi
5449 am__universal=false
5450 case " $depcc " in #(
5451 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5452 esac
5453
5454 for depmode in $am_compiler_list; do
5455 # Setup a source with many dependencies, because some compilers
5456 # like to wrap large dependency lists on column 80 (with \), and
5457 # we should not choose a depcomp mode which is confused by this.
5458 #
5459 # We need to recreate these files for each test, as the compiler may
5460 # overwrite some of them when testing with obscure command lines.
5461 # This happens at least with the AIX C compiler.
5462 : > sub/conftest.c
5463 for i in 1 2 3 4 5 6; do
5464 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5465 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5466 # Solaris 10 /bin/sh.
5467 echo '/* dummy */' > sub/conftst$i.h
5468 done
5469 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5470
5471 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5472 # mode. It turns out that the SunPro C++ compiler does not properly
5473 # handle '-M -o', and we need to detect this. Also, some Intel
5474 # versions had trouble with output in subdirs.
5475 am__obj=sub/conftest.${OBJEXT-o}
5476 am__minus_obj="-o $am__obj"
5477 case $depmode in
5478 gcc)
5479 # This depmode causes a compiler race in universal mode.
5480 test "$am__universal" = false || continue
5481 ;;
5482 nosideeffect)
5483 # After this tag, mechanisms are not by side-effect, so they'll
5484 # only be used when explicitly requested.
5485 if test "x$enable_dependency_tracking" = xyes; then
5486 continue
5487 else
5488 break
5489 fi
5490 ;;
5491 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5492 # This compiler won't grok '-c -o', but also, the minuso test has
5493 # not run yet. These depmodes are late enough in the game, and
5494 # so weak that their functioning should not be impacted.
5495 am__obj=conftest.${OBJEXT-o}
5496 am__minus_obj=
5497 ;;
5498 none) break ;;
5499 esac
5500 if depmode=$depmode \
5501 source=sub/conftest.c object=$am__obj \
5502 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5503 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5504 >/dev/null 2>conftest.err &&
5505 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5507 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5509 # icc doesn't choke on unknown options, it will just issue warnings
5510 # or remarks (even with -Werror). So we grep stderr for any message
5511 # that says an option was ignored or not supported.
5512 # When given -MP, icc 7.0 and 7.1 complain thusly:
5513 # icc: Command line warning: ignoring option '-M'; no argument required
5514 # The diagnosis changed in icc 8.0:
5515 # icc: Command line remark: option '-MP' not supported
5516 if (grep 'ignoring option' conftest.err ||
5517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5518 am_cv_CC_dependencies_compiler_type=$depmode
5519 break
5520 fi
5521 fi
5522 done
5523
5524 cd ..
5525 rm -rf conftest.dir
5526 else
5527 am_cv_CC_dependencies_compiler_type=none
5528 fi
5529
5530 fi
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5532 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5534
5535 if
5536 test "x$enable_dependency_tracking" != xno \
5537 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5538 am__fastdepCC_TRUE=
5539 am__fastdepCC_FALSE='#'
5540 else
5541 am__fastdepCC_TRUE='#'
5542 am__fastdepCC_FALSE=
5543 fi
5544
5545
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5552 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5553 # On Suns, sometimes $CPP names a directory.
5554 if test -n "$CPP" && test -d "$CPP"; then
5555 CPP=
5556 fi
5557 if test -z "$CPP"; then
5558 if ${ac_cv_prog_CPP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 # Double quotes because CPP needs to be expanded
5562 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563 do
5564 ac_preproc_ok=false
5565 for ac_c_preproc_warn_flag in '' yes
5566 do
5567 # Use a header file that comes with gcc, so configuring glibc
5568 # with a fresh cross-compiler works.
5569 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5570 # <limits.h> exists even on freestanding compilers.
5571 # On the NeXT, cc -E runs the code through the compiler's parser,
5572 # not just through cpp. "Syntax error" is here to catch this case.
5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5575 #ifdef __STDC__
5576 # include <limits.h>
5577 #else
5578 # include <assert.h>
5579 #endif
5580 Syntax error
5581 _ACEOF
5582 if ac_fn_c_try_cpp "$LINENO"; then :
5583
5584 else
5585 # Broken: fails on valid input.
5586 continue
5587 fi
5588 rm -f conftest.err conftest.i conftest.$ac_ext
5589
5590 # OK, works on sane cases. Now check whether nonexistent headers
5591 # can be detected and how.
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <ac_nonexistent.h>
5595 _ACEOF
5596 if ac_fn_c_try_cpp "$LINENO"; then :
5597 # Broken: success on invalid input.
5598 continue
5599 else
5600 # Passes both tests.
5601 ac_preproc_ok=:
5602 break
5603 fi
5604 rm -f conftest.err conftest.i conftest.$ac_ext
5605
5606 done
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.i conftest.err conftest.$ac_ext
5609 if $ac_preproc_ok; then :
5610 break
5611 fi
5612
5613 done
5614 ac_cv_prog_CPP=$CPP
5615
5616 fi
5617 CPP=$ac_cv_prog_CPP
5618 else
5619 ac_cv_prog_CPP=$CPP
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5622 $as_echo "$CPP" >&6; }
5623 ac_preproc_ok=false
5624 for ac_c_preproc_warn_flag in '' yes
5625 do
5626 # Use a header file that comes with gcc, so configuring glibc
5627 # with a fresh cross-compiler works.
5628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5629 # <limits.h> exists even on freestanding compilers.
5630 # On the NeXT, cc -E runs the code through the compiler's parser,
5631 # not just through cpp. "Syntax error" is here to catch this case.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5634 #ifdef __STDC__
5635 # include <limits.h>
5636 #else
5637 # include <assert.h>
5638 #endif
5639 Syntax error
5640 _ACEOF
5641 if ac_fn_c_try_cpp "$LINENO"; then :
5642
5643 else
5644 # Broken: fails on valid input.
5645 continue
5646 fi
5647 rm -f conftest.err conftest.i conftest.$ac_ext
5648
5649 # OK, works on sane cases. Now check whether nonexistent headers
5650 # can be detected and how.
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <ac_nonexistent.h>
5654 _ACEOF
5655 if ac_fn_c_try_cpp "$LINENO"; then :
5656 # Broken: success on invalid input.
5657 continue
5658 else
5659 # Passes both tests.
5660 ac_preproc_ok=:
5661 break
5662 fi
5663 rm -f conftest.err conftest.i conftest.$ac_ext
5664
5665 done
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.i conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then :
5669
5670 else
5671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5673 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5674 See \`config.log' for more details" "$LINENO" 5; }
5675 fi
5676
5677 ac_ext=c
5678 ac_cpp='$CPP $CPPFLAGS'
5679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5685 $as_echo_n "checking whether ln -s works... " >&6; }
5686 LN_S=$as_ln_s
5687 if test "$LN_S" = "ln -s"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5689 $as_echo "yes" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5692 $as_echo "no, using $LN_S" >&6; }
5693 fi
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5696 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5697 set x ${MAKE-make}
5698 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5699 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 cat >conftest.make <<\_ACEOF
5703 SHELL = /bin/sh
5704 all:
5705 @echo '@@@%%%=$(MAKE)=@@@%%%'
5706 _ACEOF
5707 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5708 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5709 *@@@%%%=?*=@@@%%%*)
5710 eval ac_cv_prog_make_${ac_make}_set=yes;;
5711 *)
5712 eval ac_cv_prog_make_${ac_make}_set=no;;
5713 esac
5714 rm -f conftest.make
5715 fi
5716 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5718 $as_echo "yes" >&6; }
5719 SET_MAKE=
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 SET_MAKE="MAKE=${MAKE-make}"
5724 fi
5725
5726
5727 # libtool stuff
5728 # Check whether --enable-static was given.
5729 if test "${enable_static+set}" = set; then :
5730 enableval=$enable_static; p=${PACKAGE-default}
5731 case $enableval in
5732 yes) enable_static=yes ;;
5733 no) enable_static=no ;;
5734 *)
5735 enable_static=no
5736 # Look at the argument we got. We use all the common list separators.
5737 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5738 for pkg in $enableval; do
5739 IFS=$lt_save_ifs
5740 if test "X$pkg" = "X$p"; then
5741 enable_static=yes
5742 fi
5743 done
5744 IFS=$lt_save_ifs
5745 ;;
5746 esac
5747 else
5748 enable_static=no
5749 fi
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 case `pwd` in
5760 *\ * | *\ *)
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5762 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5763 esac
5764
5765
5766
5767 macro_version='2.4.6'
5768 macro_revision='2.4.6'
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782 ltmain=$ac_aux_dir/ltmain.sh
5783
5784 # Make sure we can run config.sub.
5785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5786 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5789 $as_echo_n "checking build system type... " >&6; }
5790 if ${ac_cv_build+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 ac_build_alias=$build_alias
5794 test "x$ac_build_alias" = x &&
5795 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5796 test "x$ac_build_alias" = x &&
5797 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5800
5801 fi
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5803 $as_echo "$ac_cv_build" >&6; }
5804 case $ac_cv_build in
5805 *-*-*) ;;
5806 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5807 esac
5808 build=$ac_cv_build
5809 ac_save_IFS=$IFS; IFS='-'
5810 set x $ac_cv_build
5811 shift
5812 build_cpu=$1
5813 build_vendor=$2
5814 shift; shift
5815 # Remember, the first character of IFS is used to create $*,
5816 # except with old shells:
5817 build_os=$*
5818 IFS=$ac_save_IFS
5819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5820
5821
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5823 $as_echo_n "checking host system type... " >&6; }
5824 if ${ac_cv_host+:} false; then :
5825 $as_echo_n "(cached) " >&6
5826 else
5827 if test "x$host_alias" = x; then
5828 ac_cv_host=$ac_cv_build
5829 else
5830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5832 fi
5833
5834 fi
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5836 $as_echo "$ac_cv_host" >&6; }
5837 case $ac_cv_host in
5838 *-*-*) ;;
5839 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5840 esac
5841 host=$ac_cv_host
5842 ac_save_IFS=$IFS; IFS='-'
5843 set x $ac_cv_host
5844 shift
5845 host_cpu=$1
5846 host_vendor=$2
5847 shift; shift
5848 # Remember, the first character of IFS is used to create $*,
5849 # except with old shells:
5850 host_os=$*
5851 IFS=$ac_save_IFS
5852 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5853
5854
5855 # Backslashify metacharacters that are still active within
5856 # double-quoted strings.
5857 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5858
5859 # Same as above, but do not quote variable references.
5860 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5861
5862 # Sed substitution to delay expansion of an escaped shell variable in a
5863 # double_quote_subst'ed string.
5864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5865
5866 # Sed substitution to delay expansion of an escaped single quote.
5867 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5868
5869 # Sed substitution to avoid accidental globbing in evaled expressions
5870 no_glob_subst='s/\*/\\\*/g'
5871
5872 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5873 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5874 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5875
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5877 $as_echo_n "checking how to print strings... " >&6; }
5878 # Test print first, because it will be a builtin if present.
5879 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5880 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5881 ECHO='print -r --'
5882 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5883 ECHO='printf %s\n'
5884 else
5885 # Use this function as a fallback that always works.
5886 func_fallback_echo ()
5887 {
5888 eval 'cat <<_LTECHO_EOF
5889 $1
5890 _LTECHO_EOF'
5891 }
5892 ECHO='func_fallback_echo'
5893 fi
5894
5895 # func_echo_all arg...
5896 # Invoke $ECHO with all args, space-separated.
5897 func_echo_all ()
5898 {
5899 $ECHO ""
5900 }
5901
5902 case $ECHO in
5903 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5904 $as_echo "printf" >&6; } ;;
5905 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5906 $as_echo "print -r" >&6; } ;;
5907 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5908 $as_echo "cat" >&6; } ;;
5909 esac
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5925 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5926 if ${ac_cv_path_SED+:} false; then :
5927 $as_echo_n "(cached) " >&6
5928 else
5929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5930 for ac_i in 1 2 3 4 5 6 7; do
5931 ac_script="$ac_script$as_nl$ac_script"
5932 done
5933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5934 { ac_script=; unset ac_script;}
5935 if test -z "$SED"; then
5936 ac_path_SED_found=false
5937 # Loop through the user's path and test for each of PROGNAME-LIST
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_prog in sed gsed; do
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5946 as_fn_executable_p "$ac_path_SED" || continue
5947 # Check for GNU ac_path_SED and select it if it is found.
5948 # Check for GNU $ac_path_SED
5949 case `"$ac_path_SED" --version 2>&1` in
5950 *GNU*)
5951 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5952 *)
5953 ac_count=0
5954 $as_echo_n 0123456789 >"conftest.in"
5955 while :
5956 do
5957 cat "conftest.in" "conftest.in" >"conftest.tmp"
5958 mv "conftest.tmp" "conftest.in"
5959 cp "conftest.in" "conftest.nl"
5960 $as_echo '' >> "conftest.nl"
5961 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5963 as_fn_arith $ac_count + 1 && ac_count=$as_val
5964 if test $ac_count -gt ${ac_path_SED_max-0}; then
5965 # Best one so far, save it but keep looking for a better one
5966 ac_cv_path_SED="$ac_path_SED"
5967 ac_path_SED_max=$ac_count
5968 fi
5969 # 10*(2^10) chars as input seems more than enough
5970 test $ac_count -gt 10 && break
5971 done
5972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5973 esac
5974
5975 $ac_path_SED_found && break 3
5976 done
5977 done
5978 done
5979 IFS=$as_save_IFS
5980 if test -z "$ac_cv_path_SED"; then
5981 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5982 fi
5983 else
5984 ac_cv_path_SED=$SED
5985 fi
5986
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5989 $as_echo "$ac_cv_path_SED" >&6; }
5990 SED="$ac_cv_path_SED"
5991 rm -f conftest.sed
5992
5993 test -z "$SED" && SED=sed
5994 Xsed="$SED -e 1s/^X//"
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6007 $as_echo_n "checking for fgrep... " >&6; }
6008 if ${ac_cv_path_FGREP+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6012 then ac_cv_path_FGREP="$GREP -F"
6013 else
6014 if test -z "$FGREP"; then
6015 ac_path_FGREP_found=false
6016 # Loop through the user's path and test for each of PROGNAME-LIST
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6019 do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_prog in fgrep; do
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6025 as_fn_executable_p "$ac_path_FGREP" || continue
6026 # Check for GNU ac_path_FGREP and select it if it is found.
6027 # Check for GNU $ac_path_FGREP
6028 case `"$ac_path_FGREP" --version 2>&1` in
6029 *GNU*)
6030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6031 *)
6032 ac_count=0
6033 $as_echo_n 0123456789 >"conftest.in"
6034 while :
6035 do
6036 cat "conftest.in" "conftest.in" >"conftest.tmp"
6037 mv "conftest.tmp" "conftest.in"
6038 cp "conftest.in" "conftest.nl"
6039 $as_echo 'FGREP' >> "conftest.nl"
6040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6042 as_fn_arith $ac_count + 1 && ac_count=$as_val
6043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6044 # Best one so far, save it but keep looking for a better one
6045 ac_cv_path_FGREP="$ac_path_FGREP"
6046 ac_path_FGREP_max=$ac_count
6047 fi
6048 # 10*(2^10) chars as input seems more than enough
6049 test $ac_count -gt 10 && break
6050 done
6051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6052 esac
6053
6054 $ac_path_FGREP_found && break 3
6055 done
6056 done
6057 done
6058 IFS=$as_save_IFS
6059 if test -z "$ac_cv_path_FGREP"; then
6060 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6061 fi
6062 else
6063 ac_cv_path_FGREP=$FGREP
6064 fi
6065
6066 fi
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6069 $as_echo "$ac_cv_path_FGREP" >&6; }
6070 FGREP="$ac_cv_path_FGREP"
6071
6072
6073 test -z "$GREP" && GREP=grep
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 # Check whether --with-gnu-ld was given.
6094 if test "${with_gnu_ld+set}" = set; then :
6095 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6096 else
6097 with_gnu_ld=no
6098 fi
6099
6100 ac_prog=ld
6101 if test yes = "$GCC"; then
6102 # Check if gcc -print-prog-name=ld gives a path.
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6104 $as_echo_n "checking for ld used by $CC... " >&6; }
6105 case $host in
6106 *-*-mingw*)
6107 # gcc leaves a trailing carriage return, which upsets mingw
6108 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6109 *)
6110 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6111 esac
6112 case $ac_prog in
6113 # Accept absolute paths.
6114 [\\/]* | ?:[\\/]*)
6115 re_direlt='/[^/][^/]*/\.\./'
6116 # Canonicalize the pathname of ld
6117 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6118 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6119 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6120 done
6121 test -z "$LD" && LD=$ac_prog
6122 ;;
6123 "")
6124 # If it fails, then pretend we aren't using GCC.
6125 ac_prog=ld
6126 ;;
6127 *)
6128 # If it is relative, then search for the first ld in PATH.
6129 with_gnu_ld=unknown
6130 ;;
6131 esac
6132 elif test yes = "$with_gnu_ld"; then
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6134 $as_echo_n "checking for GNU ld... " >&6; }
6135 else
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6137 $as_echo_n "checking for non-GNU ld... " >&6; }
6138 fi
6139 if ${lt_cv_path_LD+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -z "$LD"; then
6143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6144 for ac_dir in $PATH; do
6145 IFS=$lt_save_ifs
6146 test -z "$ac_dir" && ac_dir=.
6147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6148 lt_cv_path_LD=$ac_dir/$ac_prog
6149 # Check to see if the program is GNU ld. I'd rather use --version,
6150 # but apparently some variants of GNU ld only accept -v.
6151 # Break only if it was the GNU/non-GNU ld that we prefer.
6152 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6153 *GNU* | *'with BFD'*)
6154 test no != "$with_gnu_ld" && break
6155 ;;
6156 *)
6157 test yes != "$with_gnu_ld" && break
6158 ;;
6159 esac
6160 fi
6161 done
6162 IFS=$lt_save_ifs
6163 else
6164 lt_cv_path_LD=$LD # Let the user override the test with a path.
6165 fi
6166 fi
6167
6168 LD=$lt_cv_path_LD
6169 if test -n "$LD"; then
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6171 $as_echo "$LD" >&6; }
6172 else
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6178 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6179 if ${lt_cv_prog_gnu_ld+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6183 case `$LD -v 2>&1 </dev/null` in
6184 *GNU* | *'with BFD'*)
6185 lt_cv_prog_gnu_ld=yes
6186 ;;
6187 *)
6188 lt_cv_prog_gnu_ld=no
6189 ;;
6190 esac
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6193 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6194 with_gnu_ld=$lt_cv_prog_gnu_ld
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6205 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6206 if ${lt_cv_path_NM+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$NM"; then
6210 # Let the user override the test.
6211 lt_cv_path_NM=$NM
6212 else
6213 lt_nm_to_check=${ac_tool_prefix}nm
6214 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6215 lt_nm_to_check="$lt_nm_to_check nm"
6216 fi
6217 for lt_tmp_nm in $lt_nm_to_check; do
6218 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6219 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6220 IFS=$lt_save_ifs
6221 test -z "$ac_dir" && ac_dir=.
6222 tmp_nm=$ac_dir/$lt_tmp_nm
6223 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6224 # Check to see if the nm accepts a BSD-compat flag.
6225 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6226 # nm: unknown option "B" ignored
6227 # Tru64's nm complains that /dev/null is an invalid object file
6228 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6229 case $build_os in
6230 mingw*) lt_bad_file=conftest.nm/nofile ;;
6231 *) lt_bad_file=/dev/null ;;
6232 esac
6233 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6234 *$lt_bad_file* | *'Invalid file or object type'*)
6235 lt_cv_path_NM="$tmp_nm -B"
6236 break 2
6237 ;;
6238 *)
6239 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6240 */dev/null*)
6241 lt_cv_path_NM="$tmp_nm -p"
6242 break 2
6243 ;;
6244 *)
6245 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6246 continue # so that we can try to find one that supports BSD flags
6247 ;;
6248 esac
6249 ;;
6250 esac
6251 fi
6252 done
6253 IFS=$lt_save_ifs
6254 done
6255 : ${lt_cv_path_NM=no}
6256 fi
6257 fi
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6259 $as_echo "$lt_cv_path_NM" >&6; }
6260 if test no != "$lt_cv_path_NM"; then
6261 NM=$lt_cv_path_NM
6262 else
6263 # Didn't find any BSD compatible name lister, look for dumpbin.
6264 if test -n "$DUMPBIN"; then :
6265 # Let the user override the test.
6266 else
6267 if test -n "$ac_tool_prefix"; then
6268 for ac_prog in dumpbin "link -dump"
6269 do
6270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if ${ac_cv_prog_DUMPBIN+:} false; then :
6275 $as_echo_n "(cached) " >&6
6276 else
6277 if test -n "$DUMPBIN"; then
6278 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6279 else
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283 IFS=$as_save_IFS
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6287 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 break 2
6290 fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295 fi
6296 fi
6297 DUMPBIN=$ac_cv_prog_DUMPBIN
6298 if test -n "$DUMPBIN"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6300 $as_echo "$DUMPBIN" >&6; }
6301 else
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6304 fi
6305
6306
6307 test -n "$DUMPBIN" && break
6308 done
6309 fi
6310 if test -z "$DUMPBIN"; then
6311 ac_ct_DUMPBIN=$DUMPBIN
6312 for ac_prog in dumpbin "link -dump"
6313 do
6314 # Extract the first word of "$ac_prog", so it can be a program name with args.
6315 set dummy $ac_prog; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_DUMPBIN"; then
6322 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6326 do
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6331 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6334 fi
6335 done
6336 done
6337 IFS=$as_save_IFS
6338
6339 fi
6340 fi
6341 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6342 if test -n "$ac_ct_DUMPBIN"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6344 $as_echo "$ac_ct_DUMPBIN" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349
6350
6351 test -n "$ac_ct_DUMPBIN" && break
6352 done
6353
6354 if test "x$ac_ct_DUMPBIN" = x; then
6355 DUMPBIN=":"
6356 else
6357 case $cross_compiling:$ac_tool_warned in
6358 yes:)
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361 ac_tool_warned=yes ;;
6362 esac
6363 DUMPBIN=$ac_ct_DUMPBIN
6364 fi
6365 fi
6366
6367 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6368 *COFF*)
6369 DUMPBIN="$DUMPBIN -symbols -headers"
6370 ;;
6371 *)
6372 DUMPBIN=:
6373 ;;
6374 esac
6375 fi
6376
6377 if test : != "$DUMPBIN"; then
6378 NM=$DUMPBIN
6379 fi
6380 fi
6381 test -z "$NM" && NM=nm
6382
6383
6384
6385
6386
6387
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6389 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6390 if ${lt_cv_nm_interface+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 lt_cv_nm_interface="BSD nm"
6394 echo "int some_variable = 0;" > conftest.$ac_ext
6395 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6396 (eval "$ac_compile" 2>conftest.err)
6397 cat conftest.err >&5
6398 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6399 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6400 cat conftest.err >&5
6401 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6402 cat conftest.out >&5
6403 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6404 lt_cv_nm_interface="MS dumpbin"
6405 fi
6406 rm -f conftest*
6407 fi
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6409 $as_echo "$lt_cv_nm_interface" >&6; }
6410
6411 # find the maximum length of command line arguments
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6414 if ${lt_cv_sys_max_cmd_len+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 i=0
6418 teststring=ABCD
6419
6420 case $build_os in
6421 msdosdjgpp*)
6422 # On DJGPP, this test can blow up pretty badly due to problems in libc
6423 # (any single argument exceeding 2000 bytes causes a buffer overrun
6424 # during glob expansion). Even if it were fixed, the result of this
6425 # check would be larger than it should be.
6426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6427 ;;
6428
6429 gnu*)
6430 # Under GNU Hurd, this test is not required because there is
6431 # no limit to the length of command line arguments.
6432 # Libtool will interpret -1 as no limit whatsoever
6433 lt_cv_sys_max_cmd_len=-1;
6434 ;;
6435
6436 cygwin* | mingw* | cegcc*)
6437 # On Win9x/ME, this test blows up -- it succeeds, but takes
6438 # about 5 minutes as the teststring grows exponentially.
6439 # Worse, since 9x/ME are not pre-emptively multitasking,
6440 # you end up with a "frozen" computer, even though with patience
6441 # the test eventually succeeds (with a max line length of 256k).
6442 # Instead, let's just punt: use the minimum linelength reported by
6443 # all of the supported platforms: 8192 (on NT/2K/XP).
6444 lt_cv_sys_max_cmd_len=8192;
6445 ;;
6446
6447 mint*)
6448 # On MiNT this can take a long time and run out of memory.
6449 lt_cv_sys_max_cmd_len=8192;
6450 ;;
6451
6452 amigaos*)
6453 # On AmigaOS with pdksh, this test takes hours, literally.
6454 # So we just punt and use a minimum line length of 8192.
6455 lt_cv_sys_max_cmd_len=8192;
6456 ;;
6457
6458 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6459 # This has been around since 386BSD, at least. Likely further.
6460 if test -x /sbin/sysctl; then
6461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6462 elif test -x /usr/sbin/sysctl; then
6463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6464 else
6465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6466 fi
6467 # And add a safety zone
6468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6470 ;;
6471
6472 interix*)
6473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6474 lt_cv_sys_max_cmd_len=196608
6475 ;;
6476
6477 os2*)
6478 # The test takes a long time on OS/2.
6479 lt_cv_sys_max_cmd_len=8192
6480 ;;
6481
6482 osf*)
6483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6485 # nice to cause kernel panics so lets avoid the loop below.
6486 # First set a reasonable default.
6487 lt_cv_sys_max_cmd_len=16384
6488 #
6489 if test -x /sbin/sysconfig; then
6490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6492 esac
6493 fi
6494 ;;
6495 sco3.2v5*)
6496 lt_cv_sys_max_cmd_len=102400
6497 ;;
6498 sysv5* | sco5v6* | sysv4.2uw2*)
6499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6500 if test -n "$kargmax"; then
6501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6502 else
6503 lt_cv_sys_max_cmd_len=32768
6504 fi
6505 ;;
6506 *)
6507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6508 if test -n "$lt_cv_sys_max_cmd_len" && \
6509 test undefined != "$lt_cv_sys_max_cmd_len"; then
6510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6512 else
6513 # Make teststring a little bigger before we do anything with it.
6514 # a 1K string should be a reasonable start.
6515 for i in 1 2 3 4 5 6 7 8; do
6516 teststring=$teststring$teststring
6517 done
6518 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6519 # If test is not a shell built-in, we'll probably end up computing a
6520 # maximum length that is only half of the actual maximum length, but
6521 # we can't tell.
6522 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6523 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6524 test 17 != "$i" # 1/2 MB should be enough
6525 do
6526 i=`expr $i + 1`
6527 teststring=$teststring$teststring
6528 done
6529 # Only check the string length outside the loop.
6530 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6531 teststring=
6532 # Add a significant safety factor because C++ compilers can tack on
6533 # massive amounts of additional arguments before passing them to the
6534 # linker. It appears as though 1/2 is a usable value.
6535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6536 fi
6537 ;;
6538 esac
6539
6540 fi
6541
6542 if test -n "$lt_cv_sys_max_cmd_len"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6544 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6547 $as_echo "none" >&6; }
6548 fi
6549 max_cmd_len=$lt_cv_sys_max_cmd_len
6550
6551
6552
6553
6554
6555
6556 : ${CP="cp -f"}
6557 : ${MV="mv -f"}
6558 : ${RM="rm -f"}
6559
6560 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6561 lt_unset=unset
6562 else
6563 lt_unset=false
6564 fi
6565
6566
6567
6568
6569
6570 # test EBCDIC or ASCII
6571 case `echo X|tr X '\101'` in
6572 A) # ASCII based system
6573 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6574 lt_SP2NL='tr \040 \012'
6575 lt_NL2SP='tr \015\012 \040\040'
6576 ;;
6577 *) # EBCDIC based system
6578 lt_SP2NL='tr \100 \n'
6579 lt_NL2SP='tr \r\n \100\100'
6580 ;;
6581 esac
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6592 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6593 if ${lt_cv_to_host_file_cmd+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596 case $host in
6597 *-*-mingw* )
6598 case $build in
6599 *-*-mingw* ) # actually msys
6600 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6601 ;;
6602 *-*-cygwin* )
6603 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6604 ;;
6605 * ) # otherwise, assume *nix
6606 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6607 ;;
6608 esac
6609 ;;
6610 *-*-cygwin* )
6611 case $build in
6612 *-*-mingw* ) # actually msys
6613 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6614 ;;
6615 *-*-cygwin* )
6616 lt_cv_to_host_file_cmd=func_convert_file_noop
6617 ;;
6618 * ) # otherwise, assume *nix
6619 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6620 ;;
6621 esac
6622 ;;
6623 * ) # unhandled hosts (and "normal" native builds)
6624 lt_cv_to_host_file_cmd=func_convert_file_noop
6625 ;;
6626 esac
6627
6628 fi
6629
6630 to_host_file_cmd=$lt_cv_to_host_file_cmd
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6632 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6633
6634
6635
6636
6637
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6639 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6640 if ${lt_cv_to_tool_file_cmd+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 #assume ordinary cross tools, or native build.
6644 lt_cv_to_tool_file_cmd=func_convert_file_noop
6645 case $host in
6646 *-*-mingw* )
6647 case $build in
6648 *-*-mingw* ) # actually msys
6649 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6650 ;;
6651 esac
6652 ;;
6653 esac
6654
6655 fi
6656
6657 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6659 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6660
6661
6662
6663
6664
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6666 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6667 if ${lt_cv_ld_reload_flag+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 lt_cv_ld_reload_flag='-r'
6671 fi
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6673 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6674 reload_flag=$lt_cv_ld_reload_flag
6675 case $reload_flag in
6676 "" | " "*) ;;
6677 *) reload_flag=" $reload_flag" ;;
6678 esac
6679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6680 case $host_os in
6681 cygwin* | mingw* | pw32* | cegcc*)
6682 if test yes != "$GCC"; then
6683 reload_cmds=false
6684 fi
6685 ;;
6686 darwin*)
6687 if test yes = "$GCC"; then
6688 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6689 else
6690 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6691 fi
6692 ;;
6693 esac
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703 if test -n "$ac_tool_prefix"; then
6704 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6705 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_OBJDUMP+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 if test -n "$OBJDUMP"; then
6712 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 OBJDUMP=$ac_cv_prog_OBJDUMP
6732 if test -n "$OBJDUMP"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6734 $as_echo "$OBJDUMP" >&6; }
6735 else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6738 fi
6739
6740
6741 fi
6742 if test -z "$ac_cv_prog_OBJDUMP"; then
6743 ac_ct_OBJDUMP=$OBJDUMP
6744 # Extract the first word of "objdump", so it can be a program name with args.
6745 set dummy objdump; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$ac_ct_OBJDUMP"; then
6752 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6756 do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6761 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765 done
6766 done
6767 IFS=$as_save_IFS
6768
6769 fi
6770 fi
6771 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6772 if test -n "$ac_ct_OBJDUMP"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6774 $as_echo "$ac_ct_OBJDUMP" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6778 fi
6779
6780 if test "x$ac_ct_OBJDUMP" = x; then
6781 OBJDUMP="false"
6782 else
6783 case $cross_compiling:$ac_tool_warned in
6784 yes:)
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6787 ac_tool_warned=yes ;;
6788 esac
6789 OBJDUMP=$ac_ct_OBJDUMP
6790 fi
6791 else
6792 OBJDUMP="$ac_cv_prog_OBJDUMP"
6793 fi
6794
6795 test -z "$OBJDUMP" && OBJDUMP=objdump
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6806 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6807 if ${lt_cv_deplibs_check_method+:} false; then :
6808 $as_echo_n "(cached) " >&6
6809 else
6810 lt_cv_file_magic_cmd='$MAGIC_CMD'
6811 lt_cv_file_magic_test_file=
6812 lt_cv_deplibs_check_method='unknown'
6813 # Need to set the preceding variable on all platforms that support
6814 # interlibrary dependencies.
6815 # 'none' -- dependencies not supported.
6816 # 'unknown' -- same as none, but documents that we really don't know.
6817 # 'pass_all' -- all dependencies passed with no checks.
6818 # 'test_compile' -- check by making test program.
6819 # 'file_magic [[regex]]' -- check by looking for files in library path
6820 # that responds to the $file_magic_cmd with a given extended regex.
6821 # If you have 'file' or equivalent on your system and you're not sure
6822 # whether 'pass_all' will *always* work, you probably want this one.
6823
6824 case $host_os in
6825 aix[4-9]*)
6826 lt_cv_deplibs_check_method=pass_all
6827 ;;
6828
6829 beos*)
6830 lt_cv_deplibs_check_method=pass_all
6831 ;;
6832
6833 bsdi[45]*)
6834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6835 lt_cv_file_magic_cmd='/usr/bin/file -L'
6836 lt_cv_file_magic_test_file=/shlib/libc.so
6837 ;;
6838
6839 cygwin*)
6840 # func_win32_libid is a shell function defined in ltmain.sh
6841 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6842 lt_cv_file_magic_cmd='func_win32_libid'
6843 ;;
6844
6845 mingw* | pw32*)
6846 # Base MSYS/MinGW do not provide the 'file' command needed by
6847 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6848 # unless we find 'file', for example because we are cross-compiling.
6849 if ( file / ) >/dev/null 2>&1; then
6850 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6851 lt_cv_file_magic_cmd='func_win32_libid'
6852 else
6853 # Keep this pattern in sync with the one in func_win32_libid.
6854 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6855 lt_cv_file_magic_cmd='$OBJDUMP -f'
6856 fi
6857 ;;
6858
6859 cegcc*)
6860 # use the weaker test based on 'objdump'. See mingw*.
6861 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6862 lt_cv_file_magic_cmd='$OBJDUMP -f'
6863 ;;
6864
6865 darwin* | rhapsody*)
6866 lt_cv_deplibs_check_method=pass_all
6867 ;;
6868
6869 freebsd* | dragonfly*)
6870 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6871 case $host_cpu in
6872 i*86 )
6873 # Not sure whether the presence of OpenBSD here was a mistake.
6874 # Let's accept both of them until this is cleared up.
6875 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6876 lt_cv_file_magic_cmd=/usr/bin/file
6877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6878 ;;
6879 esac
6880 else
6881 lt_cv_deplibs_check_method=pass_all
6882 fi
6883 ;;
6884
6885 haiku*)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888
6889 hpux10.20* | hpux11*)
6890 lt_cv_file_magic_cmd=/usr/bin/file
6891 case $host_cpu in
6892 ia64*)
6893 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6894 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6895 ;;
6896 hppa*64*)
6897 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]'
6898 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6899 ;;
6900 *)
6901 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6902 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6903 ;;
6904 esac
6905 ;;
6906
6907 interix[3-9]*)
6908 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6909 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6910 ;;
6911
6912 irix5* | irix6* | nonstopux*)
6913 case $LD in
6914 *-32|*"-32 ") libmagic=32-bit;;
6915 *-n32|*"-n32 ") libmagic=N32;;
6916 *-64|*"-64 ") libmagic=64-bit;;
6917 *) libmagic=never-match;;
6918 esac
6919 lt_cv_deplibs_check_method=pass_all
6920 ;;
6921
6922 # This must be glibc/ELF.
6923 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6924 lt_cv_deplibs_check_method=pass_all
6925 ;;
6926
6927 netbsd*)
6928 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6929 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6930 else
6931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6932 fi
6933 ;;
6934
6935 newos6*)
6936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6937 lt_cv_file_magic_cmd=/usr/bin/file
6938 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6939 ;;
6940
6941 *nto* | *qnx*)
6942 lt_cv_deplibs_check_method=pass_all
6943 ;;
6944
6945 openbsd* | bitrig*)
6946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6948 else
6949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6950 fi
6951 ;;
6952
6953 osf3* | osf4* | osf5*)
6954 lt_cv_deplibs_check_method=pass_all
6955 ;;
6956
6957 rdos*)
6958 lt_cv_deplibs_check_method=pass_all
6959 ;;
6960
6961 solaris*)
6962 lt_cv_deplibs_check_method=pass_all
6963 ;;
6964
6965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6966 lt_cv_deplibs_check_method=pass_all
6967 ;;
6968
6969 sysv4 | sysv4.3*)
6970 case $host_vendor in
6971 motorola)
6972 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]'
6973 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6974 ;;
6975 ncr)
6976 lt_cv_deplibs_check_method=pass_all
6977 ;;
6978 sequent)
6979 lt_cv_file_magic_cmd='/bin/file'
6980 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6981 ;;
6982 sni)
6983 lt_cv_file_magic_cmd='/bin/file'
6984 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6985 lt_cv_file_magic_test_file=/lib/libc.so
6986 ;;
6987 siemens)
6988 lt_cv_deplibs_check_method=pass_all
6989 ;;
6990 pc)
6991 lt_cv_deplibs_check_method=pass_all
6992 ;;
6993 esac
6994 ;;
6995
6996 tpf*)
6997 lt_cv_deplibs_check_method=pass_all
6998 ;;
6999 os2*)
7000 lt_cv_deplibs_check_method=pass_all
7001 ;;
7002 esac
7003
7004 fi
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7006 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7007
7008 file_magic_glob=
7009 want_nocaseglob=no
7010 if test "$build" = "$host"; then
7011 case $host_os in
7012 mingw* | pw32*)
7013 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7014 want_nocaseglob=yes
7015 else
7016 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7017 fi
7018 ;;
7019 esac
7020 fi
7021
7022 file_magic_cmd=$lt_cv_file_magic_cmd
7023 deplibs_check_method=$lt_cv_deplibs_check_method
7024 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_DLLTOOL+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$DLLTOOL"; then
7056 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 DLLTOOL=$ac_cv_prog_DLLTOOL
7076 if test -n "$DLLTOOL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7078 $as_echo "$DLLTOOL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_DLLTOOL"; then
7087 ac_ct_DLLTOOL=$DLLTOOL
7088 # Extract the first word of "dlltool", so it can be a program name with args.
7089 set dummy dlltool; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_DLLTOOL"; then
7096 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7116 if test -n "$ac_ct_DLLTOOL"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7118 $as_echo "$ac_ct_DLLTOOL" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124 if test "x$ac_ct_DLLTOOL" = x; then
7125 DLLTOOL="false"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 DLLTOOL=$ac_ct_DLLTOOL
7134 fi
7135 else
7136 DLLTOOL="$ac_cv_prog_DLLTOOL"
7137 fi
7138
7139 test -z "$DLLTOOL" && DLLTOOL=dlltool
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7151 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7152 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 lt_cv_sharedlib_from_linklib_cmd='unknown'
7156
7157 case $host_os in
7158 cygwin* | mingw* | pw32* | cegcc*)
7159 # two different shell functions defined in ltmain.sh;
7160 # decide which one to use based on capabilities of $DLLTOOL
7161 case `$DLLTOOL --help 2>&1` in
7162 *--identify-strict*)
7163 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7164 ;;
7165 *)
7166 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7167 ;;
7168 esac
7169 ;;
7170 *)
7171 # fallback: assume linklib IS sharedlib
7172 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7173 ;;
7174 esac
7175
7176 fi
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7178 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7179 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7180 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7181
7182
7183
7184
7185
7186
7187
7188 if test -n "$ac_tool_prefix"; then
7189 for ac_prog in ar
7190 do
7191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if ${ac_cv_prog_AR+:} false; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$AR"; then
7199 ac_cv_prog_AR="$AR" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7203 do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212 done
7213 done
7214 IFS=$as_save_IFS
7215
7216 fi
7217 fi
7218 AR=$ac_cv_prog_AR
7219 if test -n "$AR"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7221 $as_echo "$AR" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226
7227
7228 test -n "$AR" && break
7229 done
7230 fi
7231 if test -z "$AR"; then
7232 ac_ct_AR=$AR
7233 for ac_prog in ar
7234 do
7235 # Extract the first word of "$ac_prog", so it can be a program name with args.
7236 set dummy $ac_prog; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$ac_ct_AR"; then
7243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_AR="$ac_prog"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7263 if test -n "$ac_ct_AR"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7265 $as_echo "$ac_ct_AR" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271
7272 test -n "$ac_ct_AR" && break
7273 done
7274
7275 if test "x$ac_ct_AR" = x; then
7276 AR="false"
7277 else
7278 case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284 AR=$ac_ct_AR
7285 fi
7286 fi
7287
7288 : ${AR=ar}
7289 : ${AR_FLAGS=cru}
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7302 $as_echo_n "checking for archiver @FILE support... " >&6; }
7303 if ${lt_cv_ar_at_file+:} false; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 lt_cv_ar_at_file=no
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309
7310 int
7311 main ()
7312 {
7313
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_compile "$LINENO"; then :
7319 echo conftest.$ac_objext > conftest.lst
7320 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7322 (eval $lt_ar_try) 2>&5
7323 ac_status=$?
7324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325 test $ac_status = 0; }
7326 if test 0 -eq "$ac_status"; then
7327 # Ensure the archiver fails upon bogus file names.
7328 rm -f conftest.$ac_objext libconftest.a
7329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7330 (eval $lt_ar_try) 2>&5
7331 ac_status=$?
7332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; }
7334 if test 0 -ne "$ac_status"; then
7335 lt_cv_ar_at_file=@
7336 fi
7337 fi
7338 rm -f conftest.* libconftest.a
7339
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342
7343 fi
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7345 $as_echo "$lt_cv_ar_at_file" >&6; }
7346
7347 if test no = "$lt_cv_ar_at_file"; then
7348 archiver_list_spec=
7349 else
7350 archiver_list_spec=$lt_cv_ar_at_file
7351 fi
7352
7353
7354
7355
7356
7357
7358
7359 if test -n "$ac_tool_prefix"; then
7360 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7361 set dummy ${ac_tool_prefix}strip; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_STRIP+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$STRIP"; then
7368 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 STRIP=$ac_cv_prog_STRIP
7388 if test -n "$STRIP"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7390 $as_echo "$STRIP" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396
7397 fi
7398 if test -z "$ac_cv_prog_STRIP"; then
7399 ac_ct_STRIP=$STRIP
7400 # Extract the first word of "strip", so it can be a program name with args.
7401 set dummy strip; ac_word=$2
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403 $as_echo_n "checking for $ac_word... " >&6; }
7404 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$ac_ct_STRIP"; then
7408 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
7416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417 ac_cv_prog_ac_ct_STRIP="strip"
7418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7428 if test -n "$ac_ct_STRIP"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7430 $as_echo "$ac_ct_STRIP" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7434 fi
7435
7436 if test "x$ac_ct_STRIP" = x; then
7437 STRIP=":"
7438 else
7439 case $cross_compiling:$ac_tool_warned in
7440 yes:)
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7443 ac_tool_warned=yes ;;
7444 esac
7445 STRIP=$ac_ct_STRIP
7446 fi
7447 else
7448 STRIP="$ac_cv_prog_STRIP"
7449 fi
7450
7451 test -z "$STRIP" && STRIP=:
7452
7453
7454
7455
7456
7457
7458 if test -n "$ac_tool_prefix"; then
7459 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7460 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_RANLIB+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$RANLIB"; then
7467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 RANLIB=$ac_cv_prog_RANLIB
7487 if test -n "$RANLIB"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7489 $as_echo "$RANLIB" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496 fi
7497 if test -z "$ac_cv_prog_RANLIB"; then
7498 ac_ct_RANLIB=$RANLIB
7499 # Extract the first word of "ranlib", so it can be a program name with args.
7500 set dummy ranlib; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 if test -n "$ac_ct_RANLIB"; then
7507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_RANLIB="ranlib"
7517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7527 if test -n "$ac_ct_RANLIB"; then
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7529 $as_echo "$ac_ct_RANLIB" >&6; }
7530 else
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535 if test "x$ac_ct_RANLIB" = x; then
7536 RANLIB=":"
7537 else
7538 case $cross_compiling:$ac_tool_warned in
7539 yes:)
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7542 ac_tool_warned=yes ;;
7543 esac
7544 RANLIB=$ac_ct_RANLIB
7545 fi
7546 else
7547 RANLIB="$ac_cv_prog_RANLIB"
7548 fi
7549
7550 test -z "$RANLIB" && RANLIB=:
7551
7552
7553
7554
7555
7556
7557 # Determine commands to create old-style static archives.
7558 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7559 old_postinstall_cmds='chmod 644 $oldlib'
7560 old_postuninstall_cmds=
7561
7562 if test -n "$RANLIB"; then
7563 case $host_os in
7564 bitrig* | openbsd*)
7565 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7566 ;;
7567 *)
7568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7569 ;;
7570 esac
7571 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7572 fi
7573
7574 case $host_os in
7575 darwin*)
7576 lock_old_archive_extraction=yes ;;
7577 *)
7578 lock_old_archive_extraction=no ;;
7579 esac
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619 # If no C compiler was specified, use CC.
7620 LTCC=${LTCC-"$CC"}
7621
7622 # If no C compiler flags were specified, use CFLAGS.
7623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7624
7625 # Allow CC to be a program name with arguments.
7626 compiler=$CC
7627
7628
7629 # Check for command to grab the raw symbol name followed by C symbol from nm.
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7631 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7632 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635
7636 # These are sane defaults that work on at least a few old systems.
7637 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7638
7639 # Character class describing NM global symbol codes.
7640 symcode='[BCDEGRST]'
7641
7642 # Regexp to match symbols that can be accessed directly from C.
7643 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7644
7645 # Define system-specific variables.
7646 case $host_os in
7647 aix*)
7648 symcode='[BCDT]'
7649 ;;
7650 cygwin* | mingw* | pw32* | cegcc*)
7651 symcode='[ABCDGISTW]'
7652 ;;
7653 hpux*)
7654 if test ia64 = "$host_cpu"; then
7655 symcode='[ABCDEGRST]'
7656 fi
7657 ;;
7658 irix* | nonstopux*)
7659 symcode='[BCDEGRST]'
7660 ;;
7661 osf*)
7662 symcode='[BCDEGQRST]'
7663 ;;
7664 solaris*)
7665 symcode='[BDRT]'
7666 ;;
7667 sco3.2v5*)
7668 symcode='[DT]'
7669 ;;
7670 sysv4.2uw2*)
7671 symcode='[DT]'
7672 ;;
7673 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7674 symcode='[ABDT]'
7675 ;;
7676 sysv4)
7677 symcode='[DFNSTU]'
7678 ;;
7679 esac
7680
7681 # If we're using GNU nm, then use its standard symbol codes.
7682 case `$NM -V 2>&1` in
7683 *GNU* | *'with BFD'*)
7684 symcode='[ABCDGIRSTW]' ;;
7685 esac
7686
7687 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7688 # Gets list of data symbols to import.
7689 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7690 # Adjust the below global symbol transforms to fixup imported variables.
7691 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7692 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7693 lt_c_name_lib_hook="\
7694 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7695 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7696 else
7697 # Disable hooks by default.
7698 lt_cv_sys_global_symbol_to_import=
7699 lt_cdecl_hook=
7700 lt_c_name_hook=
7701 lt_c_name_lib_hook=
7702 fi
7703
7704 # Transform an extracted symbol line into a proper C declaration.
7705 # Some systems (esp. on ia64) link data and code symbols differently,
7706 # so use this general approach.
7707 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7708 $lt_cdecl_hook\
7709 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7710 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7711
7712 # Transform an extracted symbol line into symbol name and symbol address
7713 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7714 $lt_c_name_hook\
7715 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7716 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7717
7718 # Transform an extracted symbol line into symbol name with lib prefix and
7719 # symbol address.
7720 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7721 $lt_c_name_lib_hook\
7722 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7723 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7724 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7725
7726 # Handle CRLF in mingw tool chain
7727 opt_cr=
7728 case $build_os in
7729 mingw*)
7730 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7731 ;;
7732 esac
7733
7734 # Try without a prefix underscore, then with it.
7735 for ac_symprfx in "" "_"; do
7736
7737 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7738 symxfrm="\\1 $ac_symprfx\\2 \\2"
7739
7740 # Write the raw and C identifiers.
7741 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7742 # Fake it for dumpbin and say T for any non-static function,
7743 # D for any global variable and I for any imported variable.
7744 # Also find C++ and __fastcall symbols from MSVC++,
7745 # which start with @ or ?.
7746 lt_cv_sys_global_symbol_pipe="$AWK '"\
7747 " {last_section=section; section=\$ 3};"\
7748 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7749 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7750 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7751 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7752 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7753 " \$ 0!~/External *\|/{next};"\
7754 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7755 " {if(hide[section]) next};"\
7756 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7757 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7758 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7759 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7760 " ' prfx=^$ac_symprfx"
7761 else
7762 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7763 fi
7764 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7765
7766 # Check to see that the pipe works correctly.
7767 pipe_works=no
7768
7769 rm -f conftest*
7770 cat > conftest.$ac_ext <<_LT_EOF
7771 #ifdef __cplusplus
7772 extern "C" {
7773 #endif
7774 char nm_test_var;
7775 void nm_test_func(void);
7776 void nm_test_func(void){}
7777 #ifdef __cplusplus
7778 }
7779 #endif
7780 int main(){nm_test_var='a';nm_test_func();return(0);}
7781 _LT_EOF
7782
7783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7784 (eval $ac_compile) 2>&5
7785 ac_status=$?
7786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7787 test $ac_status = 0; }; then
7788 # Now try to grab the symbols.
7789 nlist=conftest.nm
7790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7791 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; } && test -s "$nlist"; then
7795 # Try sorting and uniquifying the output.
7796 if sort "$nlist" | uniq > "$nlist"T; then
7797 mv -f "$nlist"T "$nlist"
7798 else
7799 rm -f "$nlist"T
7800 fi
7801
7802 # Make sure that we snagged all the symbols we need.
7803 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7804 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7805 cat <<_LT_EOF > conftest.$ac_ext
7806 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7807 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7808 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7809 relocations are performed -- see ld's documentation on pseudo-relocs. */
7810 # define LT_DLSYM_CONST
7811 #elif defined __osf__
7812 /* This system does not cope well with relocations in const data. */
7813 # define LT_DLSYM_CONST
7814 #else
7815 # define LT_DLSYM_CONST const
7816 #endif
7817
7818 #ifdef __cplusplus
7819 extern "C" {
7820 #endif
7821
7822 _LT_EOF
7823 # Now generate the symbol file.
7824 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7825
7826 cat <<_LT_EOF >> conftest.$ac_ext
7827
7828 /* The mapping between symbol names and symbols. */
7829 LT_DLSYM_CONST struct {
7830 const char *name;
7831 void *address;
7832 }
7833 lt__PROGRAM__LTX_preloaded_symbols[] =
7834 {
7835 { "@PROGRAM@", (void *) 0 },
7836 _LT_EOF
7837 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7838 cat <<\_LT_EOF >> conftest.$ac_ext
7839 {0, (void *) 0}
7840 };
7841
7842 /* This works around a problem in FreeBSD linker */
7843 #ifdef FREEBSD_WORKAROUND
7844 static const void *lt_preloaded_setup() {
7845 return lt__PROGRAM__LTX_preloaded_symbols;
7846 }
7847 #endif
7848
7849 #ifdef __cplusplus
7850 }
7851 #endif
7852 _LT_EOF
7853 # Now try linking the two files.
7854 mv conftest.$ac_objext conftstm.$ac_objext
7855 lt_globsym_save_LIBS=$LIBS
7856 lt_globsym_save_CFLAGS=$CFLAGS
7857 LIBS=conftstm.$ac_objext
7858 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7860 (eval $ac_link) 2>&5
7861 ac_status=$?
7862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7863 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7864 pipe_works=yes
7865 fi
7866 LIBS=$lt_globsym_save_LIBS
7867 CFLAGS=$lt_globsym_save_CFLAGS
7868 else
7869 echo "cannot find nm_test_func in $nlist" >&5
7870 fi
7871 else
7872 echo "cannot find nm_test_var in $nlist" >&5
7873 fi
7874 else
7875 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7876 fi
7877 else
7878 echo "$progname: failed program was:" >&5
7879 cat conftest.$ac_ext >&5
7880 fi
7881 rm -rf conftest* conftst*
7882
7883 # Do not use the global_symbol_pipe unless it works.
7884 if test yes = "$pipe_works"; then
7885 break
7886 else
7887 lt_cv_sys_global_symbol_pipe=
7888 fi
7889 done
7890
7891 fi
7892
7893 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7894 lt_cv_sys_global_symbol_to_cdecl=
7895 fi
7896 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7898 $as_echo "failed" >&6; }
7899 else
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7901 $as_echo "ok" >&6; }
7902 fi
7903
7904 # Response file support.
7905 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7906 nm_file_list_spec='@'
7907 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7908 nm_file_list_spec='@'
7909 fi
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7948 $as_echo_n "checking for sysroot... " >&6; }
7949
7950 # Check whether --with-sysroot was given.
7951 if test "${with_sysroot+set}" = set; then :
7952 withval=$with_sysroot;
7953 else
7954 with_sysroot=no
7955 fi
7956
7957
7958 lt_sysroot=
7959 case $with_sysroot in #(
7960 yes)
7961 if test yes = "$GCC"; then
7962 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7963 fi
7964 ;; #(
7965 /*)
7966 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7967 ;; #(
7968 no|'')
7969 ;; #(
7970 *)
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7972 $as_echo "$with_sysroot" >&6; }
7973 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7974 ;;
7975 esac
7976
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7978 $as_echo "${lt_sysroot:-no}" >&6; }
7979
7980
7981
7982
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7985 $as_echo_n "checking for a working dd... " >&6; }
7986 if ${ac_cv_path_lt_DD+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 printf 0123456789abcdef0123456789abcdef >conftest.i
7990 cat conftest.i conftest.i >conftest2.i
7991 : ${lt_DD:=$DD}
7992 if test -z "$lt_DD"; then
7993 ac_path_lt_DD_found=false
7994 # Loop through the user's path and test for each of PROGNAME-LIST
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_prog in dd; do
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8003 as_fn_executable_p "$ac_path_lt_DD" || continue
8004 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8005 cmp -s conftest.i conftest.out \
8006 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8007 fi
8008 $ac_path_lt_DD_found && break 3
8009 done
8010 done
8011 done
8012 IFS=$as_save_IFS
8013 if test -z "$ac_cv_path_lt_DD"; then
8014 :
8015 fi
8016 else
8017 ac_cv_path_lt_DD=$lt_DD
8018 fi
8019
8020 rm -f conftest.i conftest2.i conftest.out
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8023 $as_echo "$ac_cv_path_lt_DD" >&6; }
8024
8025
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8027 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8028 if ${lt_cv_truncate_bin+:} false; then :
8029 $as_echo_n "(cached) " >&6
8030 else
8031 printf 0123456789abcdef0123456789abcdef >conftest.i
8032 cat conftest.i conftest.i >conftest2.i
8033 lt_cv_truncate_bin=
8034 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8035 cmp -s conftest.i conftest.out \
8036 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8037 fi
8038 rm -f conftest.i conftest2.i conftest.out
8039 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8040 fi
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8042 $as_echo "$lt_cv_truncate_bin" >&6; }
8043
8044
8045
8046
8047
8048
8049
8050 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8051 func_cc_basename ()
8052 {
8053 for cc_temp in $*""; do
8054 case $cc_temp in
8055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8057 \-*) ;;
8058 *) break;;
8059 esac
8060 done
8061 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8062 }
8063
8064 # Check whether --enable-libtool-lock was given.
8065 if test "${enable_libtool_lock+set}" = set; then :
8066 enableval=$enable_libtool_lock;
8067 fi
8068
8069 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8070
8071 # Some flags need to be propagated to the compiler or linker for good
8072 # libtool support.
8073 case $host in
8074 ia64-*-hpux*)
8075 # Find out what ABI is being produced by ac_compile, and set mode
8076 # options accordingly.
8077 echo 'int i;' > conftest.$ac_ext
8078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8079 (eval $ac_compile) 2>&5
8080 ac_status=$?
8081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8082 test $ac_status = 0; }; then
8083 case `/usr/bin/file conftest.$ac_objext` in
8084 *ELF-32*)
8085 HPUX_IA64_MODE=32
8086 ;;
8087 *ELF-64*)
8088 HPUX_IA64_MODE=64
8089 ;;
8090 esac
8091 fi
8092 rm -rf conftest*
8093 ;;
8094 *-*-irix6*)
8095 # Find out what ABI is being produced by ac_compile, and set linker
8096 # options accordingly.
8097 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8099 (eval $ac_compile) 2>&5
8100 ac_status=$?
8101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8102 test $ac_status = 0; }; then
8103 if test yes = "$lt_cv_prog_gnu_ld"; then
8104 case `/usr/bin/file conftest.$ac_objext` in
8105 *32-bit*)
8106 LD="${LD-ld} -melf32bsmip"
8107 ;;
8108 *N32*)
8109 LD="${LD-ld} -melf32bmipn32"
8110 ;;
8111 *64-bit*)
8112 LD="${LD-ld} -melf64bmip"
8113 ;;
8114 esac
8115 else
8116 case `/usr/bin/file conftest.$ac_objext` in
8117 *32-bit*)
8118 LD="${LD-ld} -32"
8119 ;;
8120 *N32*)
8121 LD="${LD-ld} -n32"
8122 ;;
8123 *64-bit*)
8124 LD="${LD-ld} -64"
8125 ;;
8126 esac
8127 fi
8128 fi
8129 rm -rf conftest*
8130 ;;
8131
8132 mips64*-*linux*)
8133 # Find out what ABI is being produced by ac_compile, and set linker
8134 # options accordingly.
8135 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8137 (eval $ac_compile) 2>&5
8138 ac_status=$?
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 emul=elf
8142 case `/usr/bin/file conftest.$ac_objext` in
8143 *32-bit*)
8144 emul="${emul}32"
8145 ;;
8146 *64-bit*)
8147 emul="${emul}64"
8148 ;;
8149 esac
8150 case `/usr/bin/file conftest.$ac_objext` in
8151 *MSB*)
8152 emul="${emul}btsmip"
8153 ;;
8154 *LSB*)
8155 emul="${emul}ltsmip"
8156 ;;
8157 esac
8158 case `/usr/bin/file conftest.$ac_objext` in
8159 *N32*)
8160 emul="${emul}n32"
8161 ;;
8162 esac
8163 LD="${LD-ld} -m $emul"
8164 fi
8165 rm -rf conftest*
8166 ;;
8167
8168 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8169 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8170 # Find out what ABI is being produced by ac_compile, and set linker
8171 # options accordingly. Note that the listed cases only cover the
8172 # situations where additional linker options are needed (such as when
8173 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8174 # vice versa); the common cases where no linker options are needed do
8175 # not appear in the list.
8176 echo 'int i;' > conftest.$ac_ext
8177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8178 (eval $ac_compile) 2>&5
8179 ac_status=$?
8180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181 test $ac_status = 0; }; then
8182 case `/usr/bin/file conftest.o` in
8183 *32-bit*)
8184 case $host in
8185 x86_64-*kfreebsd*-gnu)
8186 LD="${LD-ld} -m elf_i386_fbsd"
8187 ;;
8188 x86_64-*linux*)
8189 case `/usr/bin/file conftest.o` in
8190 *x86-64*)
8191 LD="${LD-ld} -m elf32_x86_64"
8192 ;;
8193 *)
8194 LD="${LD-ld} -m elf_i386"
8195 ;;
8196 esac
8197 ;;
8198 powerpc64le-*linux*)
8199 LD="${LD-ld} -m elf32lppclinux"
8200 ;;
8201 powerpc64-*linux*)
8202 LD="${LD-ld} -m elf32ppclinux"
8203 ;;
8204 s390x-*linux*)
8205 LD="${LD-ld} -m elf_s390"
8206 ;;
8207 sparc64-*linux*)
8208 LD="${LD-ld} -m elf32_sparc"
8209 ;;
8210 esac
8211 ;;
8212 *64-bit*)
8213 case $host in
8214 x86_64-*kfreebsd*-gnu)
8215 LD="${LD-ld} -m elf_x86_64_fbsd"
8216 ;;
8217 x86_64-*linux*)
8218 LD="${LD-ld} -m elf_x86_64"
8219 ;;
8220 powerpcle-*linux*)
8221 LD="${LD-ld} -m elf64lppc"
8222 ;;
8223 powerpc-*linux*)
8224 LD="${LD-ld} -m elf64ppc"
8225 ;;
8226 s390*-*linux*|s390*-*tpf*)
8227 LD="${LD-ld} -m elf64_s390"
8228 ;;
8229 sparc*-*linux*)
8230 LD="${LD-ld} -m elf64_sparc"
8231 ;;
8232 esac
8233 ;;
8234 esac
8235 fi
8236 rm -rf conftest*
8237 ;;
8238
8239 *-*-sco3.2v5*)
8240 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8241 SAVE_CFLAGS=$CFLAGS
8242 CFLAGS="$CFLAGS -belf"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8244 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8245 if ${lt_cv_cc_needs_belf+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 ac_ext=c
8249 ac_cpp='$CPP $CPPFLAGS'
8250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256
8257 int
8258 main ()
8259 {
8260
8261 ;
8262 return 0;
8263 }
8264 _ACEOF
8265 if ac_fn_c_try_link "$LINENO"; then :
8266 lt_cv_cc_needs_belf=yes
8267 else
8268 lt_cv_cc_needs_belf=no
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 ac_ext=c
8273 ac_cpp='$CPP $CPPFLAGS'
8274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8277
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8280 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8281 if test yes != "$lt_cv_cc_needs_belf"; then
8282 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8283 CFLAGS=$SAVE_CFLAGS
8284 fi
8285 ;;
8286 *-*solaris*)
8287 # Find out what ABI is being produced by ac_compile, and set linker
8288 # options accordingly.
8289 echo 'int i;' > conftest.$ac_ext
8290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8291 (eval $ac_compile) 2>&5
8292 ac_status=$?
8293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8294 test $ac_status = 0; }; then
8295 case `/usr/bin/file conftest.o` in
8296 *64-bit*)
8297 case $lt_cv_prog_gnu_ld in
8298 yes*)
8299 case $host in
8300 i?86-*-solaris*|x86_64-*-solaris*)
8301 LD="${LD-ld} -m elf_x86_64"
8302 ;;
8303 sparc*-*-solaris*)
8304 LD="${LD-ld} -m elf64_sparc"
8305 ;;
8306 esac
8307 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8308 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8309 LD=${LD-ld}_sol2
8310 fi
8311 ;;
8312 *)
8313 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8314 LD="${LD-ld} -64"
8315 fi
8316 ;;
8317 esac
8318 ;;
8319 esac
8320 fi
8321 rm -rf conftest*
8322 ;;
8323 esac
8324
8325 need_locks=$enable_libtool_lock
8326
8327 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}mt; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$MANIFEST_TOOL"; then
8336 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353 fi
8354 fi
8355 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8356 if test -n "$MANIFEST_TOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8358 $as_echo "$MANIFEST_TOOL" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8362 fi
8363
8364
8365 fi
8366 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8367 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8368 # Extract the first word of "mt", so it can be a program name with args.
8369 set dummy mt; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 if test -n "$ac_ct_MANIFEST_TOOL"; then
8376 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8380 do
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8388 fi
8389 done
8390 done
8391 IFS=$as_save_IFS
8392
8393 fi
8394 fi
8395 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8396 if test -n "$ac_ct_MANIFEST_TOOL"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8398 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8405 MANIFEST_TOOL=":"
8406 else
8407 case $cross_compiling:$ac_tool_warned in
8408 yes:)
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411 ac_tool_warned=yes ;;
8412 esac
8413 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8414 fi
8415 else
8416 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8417 fi
8418
8419 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8421 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8422 if ${lt_cv_path_mainfest_tool+:} false; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 lt_cv_path_mainfest_tool=no
8426 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8427 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8428 cat conftest.err >&5
8429 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8430 lt_cv_path_mainfest_tool=yes
8431 fi
8432 rm -f conftest*
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8435 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8436 if test yes != "$lt_cv_path_mainfest_tool"; then
8437 MANIFEST_TOOL=:
8438 fi
8439
8440
8441
8442
8443
8444
8445 case $host_os in
8446 rhapsody* | darwin*)
8447 if test -n "$ac_tool_prefix"; then
8448 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8449 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451 $as_echo_n "checking for $ac_word... " >&6; }
8452 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8453 $as_echo_n "(cached) " >&6
8454 else
8455 if test -n "$DSYMUTIL"; then
8456 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8457 else
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8460 do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8468 fi
8469 done
8470 done
8471 IFS=$as_save_IFS
8472
8473 fi
8474 fi
8475 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8476 if test -n "$DSYMUTIL"; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8478 $as_echo "$DSYMUTIL" >&6; }
8479 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481 $as_echo "no" >&6; }
8482 fi
8483
8484
8485 fi
8486 if test -z "$ac_cv_prog_DSYMUTIL"; then
8487 ac_ct_DSYMUTIL=$DSYMUTIL
8488 # Extract the first word of "dsymutil", so it can be a program name with args.
8489 set dummy dsymutil; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 if test -n "$ac_ct_DSYMUTIL"; then
8496 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501 IFS=$as_save_IFS
8502 test -z "$as_dir" && as_dir=.
8503 for ac_exec_ext in '' $ac_executable_extensions; do
8504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 break 2
8508 fi
8509 done
8510 done
8511 IFS=$as_save_IFS
8512
8513 fi
8514 fi
8515 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8516 if test -n "$ac_ct_DSYMUTIL"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8518 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523
8524 if test "x$ac_ct_DSYMUTIL" = x; then
8525 DSYMUTIL=":"
8526 else
8527 case $cross_compiling:$ac_tool_warned in
8528 yes:)
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8531 ac_tool_warned=yes ;;
8532 esac
8533 DSYMUTIL=$ac_ct_DSYMUTIL
8534 fi
8535 else
8536 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8537 fi
8538
8539 if test -n "$ac_tool_prefix"; then
8540 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8541 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if ${ac_cv_prog_NMEDIT+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 if test -n "$NMEDIT"; then
8548 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565 fi
8566 fi
8567 NMEDIT=$ac_cv_prog_NMEDIT
8568 if test -n "$NMEDIT"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8570 $as_echo "$NMEDIT" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 fi
8575
8576
8577 fi
8578 if test -z "$ac_cv_prog_NMEDIT"; then
8579 ac_ct_NMEDIT=$NMEDIT
8580 # Extract the first word of "nmedit", so it can be a program name with args.
8581 set dummy nmedit; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$ac_ct_NMEDIT"; then
8588 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8608 if test -n "$ac_ct_NMEDIT"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8610 $as_echo "$ac_ct_NMEDIT" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616 if test "x$ac_ct_NMEDIT" = x; then
8617 NMEDIT=":"
8618 else
8619 case $cross_compiling:$ac_tool_warned in
8620 yes:)
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623 ac_tool_warned=yes ;;
8624 esac
8625 NMEDIT=$ac_ct_NMEDIT
8626 fi
8627 else
8628 NMEDIT="$ac_cv_prog_NMEDIT"
8629 fi
8630
8631 if test -n "$ac_tool_prefix"; then
8632 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8633 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635 $as_echo_n "checking for $ac_word... " >&6; }
8636 if ${ac_cv_prog_LIPO+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 if test -n "$LIPO"; then
8640 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8641 else
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8644 do
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8652 fi
8653 done
8654 done
8655 IFS=$as_save_IFS
8656
8657 fi
8658 fi
8659 LIPO=$ac_cv_prog_LIPO
8660 if test -n "$LIPO"; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8662 $as_echo "$LIPO" >&6; }
8663 else
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 $as_echo "no" >&6; }
8666 fi
8667
8668
8669 fi
8670 if test -z "$ac_cv_prog_LIPO"; then
8671 ac_ct_LIPO=$LIPO
8672 # Extract the first word of "lipo", so it can be a program name with args.
8673 set dummy lipo; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 if test -n "$ac_ct_LIPO"; then
8680 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8681 else
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8684 do
8685 IFS=$as_save_IFS
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689 ac_cv_prog_ac_ct_LIPO="lipo"
8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 break 2
8692 fi
8693 done
8694 done
8695 IFS=$as_save_IFS
8696
8697 fi
8698 fi
8699 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8700 if test -n "$ac_ct_LIPO"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8702 $as_echo "$ac_ct_LIPO" >&6; }
8703 else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706 fi
8707
8708 if test "x$ac_ct_LIPO" = x; then
8709 LIPO=":"
8710 else
8711 case $cross_compiling:$ac_tool_warned in
8712 yes:)
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8715 ac_tool_warned=yes ;;
8716 esac
8717 LIPO=$ac_ct_LIPO
8718 fi
8719 else
8720 LIPO="$ac_cv_prog_LIPO"
8721 fi
8722
8723 if test -n "$ac_tool_prefix"; then
8724 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8725 set dummy ${ac_tool_prefix}otool; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_prog_OTOOL+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 if test -n "$OTOOL"; then
8732 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737 IFS=$as_save_IFS
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 break 2
8744 fi
8745 done
8746 done
8747 IFS=$as_save_IFS
8748
8749 fi
8750 fi
8751 OTOOL=$ac_cv_prog_OTOOL
8752 if test -n "$OTOOL"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8754 $as_echo "$OTOOL" >&6; }
8755 else
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8758 fi
8759
8760
8761 fi
8762 if test -z "$ac_cv_prog_OTOOL"; then
8763 ac_ct_OTOOL=$OTOOL
8764 # Extract the first word of "otool", so it can be a program name with args.
8765 set dummy otool; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 if test -n "$ac_ct_OTOOL"; then
8772 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_prog_ac_ct_OTOOL="otool"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8784 fi
8785 done
8786 done
8787 IFS=$as_save_IFS
8788
8789 fi
8790 fi
8791 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8792 if test -n "$ac_ct_OTOOL"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8794 $as_echo "$ac_ct_OTOOL" >&6; }
8795 else
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800 if test "x$ac_ct_OTOOL" = x; then
8801 OTOOL=":"
8802 else
8803 case $cross_compiling:$ac_tool_warned in
8804 yes:)
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8807 ac_tool_warned=yes ;;
8808 esac
8809 OTOOL=$ac_ct_OTOOL
8810 fi
8811 else
8812 OTOOL="$ac_cv_prog_OTOOL"
8813 fi
8814
8815 if test -n "$ac_tool_prefix"; then
8816 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8817 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if ${ac_cv_prog_OTOOL64+:} false; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 if test -n "$OTOOL64"; then
8824 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8825 else
8826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8827 for as_dir in $PATH
8828 do
8829 IFS=$as_save_IFS
8830 test -z "$as_dir" && as_dir=.
8831 for ac_exec_ext in '' $ac_executable_extensions; do
8832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8833 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 break 2
8836 fi
8837 done
8838 done
8839 IFS=$as_save_IFS
8840
8841 fi
8842 fi
8843 OTOOL64=$ac_cv_prog_OTOOL64
8844 if test -n "$OTOOL64"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8846 $as_echo "$OTOOL64" >&6; }
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8850 fi
8851
8852
8853 fi
8854 if test -z "$ac_cv_prog_OTOOL64"; then
8855 ac_ct_OTOOL64=$OTOOL64
8856 # Extract the first word of "otool64", so it can be a program name with args.
8857 set dummy otool64; ac_word=$2
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859 $as_echo_n "checking for $ac_word... " >&6; }
8860 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 if test -n "$ac_ct_OTOOL64"; then
8864 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8865 else
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in $PATH
8868 do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8873 ac_cv_prog_ac_ct_OTOOL64="otool64"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8876 fi
8877 done
8878 done
8879 IFS=$as_save_IFS
8880
8881 fi
8882 fi
8883 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8884 if test -n "$ac_ct_OTOOL64"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8886 $as_echo "$ac_ct_OTOOL64" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8890 fi
8891
8892 if test "x$ac_ct_OTOOL64" = x; then
8893 OTOOL64=":"
8894 else
8895 case $cross_compiling:$ac_tool_warned in
8896 yes:)
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8899 ac_tool_warned=yes ;;
8900 esac
8901 OTOOL64=$ac_ct_OTOOL64
8902 fi
8903 else
8904 OTOOL64="$ac_cv_prog_OTOOL64"
8905 fi
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8934 $as_echo_n "checking for -single_module linker flag... " >&6; }
8935 if ${lt_cv_apple_cc_single_mod+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 lt_cv_apple_cc_single_mod=no
8939 if test -z "$LT_MULTI_MODULE"; then
8940 # By default we will add the -single_module flag. You can override
8941 # by either setting the environment variable LT_MULTI_MODULE
8942 # non-empty at configure time, or by adding -multi_module to the
8943 # link flags.
8944 rm -rf libconftest.dylib*
8945 echo "int foo(void){return 1;}" > conftest.c
8946 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8947 -dynamiclib -Wl,-single_module conftest.c" >&5
8948 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8949 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8950 _lt_result=$?
8951 # If there is a non-empty error log, and "single_module"
8952 # appears in it, assume the flag caused a linker warning
8953 if test -s conftest.err && $GREP single_module conftest.err; then
8954 cat conftest.err >&5
8955 # Otherwise, if the output was created with a 0 exit code from
8956 # the compiler, it worked.
8957 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8958 lt_cv_apple_cc_single_mod=yes
8959 else
8960 cat conftest.err >&5
8961 fi
8962 rm -rf libconftest.dylib*
8963 rm -f conftest.*
8964 fi
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8967 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8968
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8970 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8971 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 lt_cv_ld_exported_symbols_list=no
8975 save_LDFLAGS=$LDFLAGS
8976 echo "_main" > conftest.sym
8977 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8980
8981 int
8982 main ()
8983 {
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_c_try_link "$LINENO"; then :
8990 lt_cv_ld_exported_symbols_list=yes
8991 else
8992 lt_cv_ld_exported_symbols_list=no
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext \
8995 conftest$ac_exeext conftest.$ac_ext
8996 LDFLAGS=$save_LDFLAGS
8997
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9000 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9001
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9003 $as_echo_n "checking for -force_load linker flag... " >&6; }
9004 if ${lt_cv_ld_force_load+:} false; then :
9005 $as_echo_n "(cached) " >&6
9006 else
9007 lt_cv_ld_force_load=no
9008 cat > conftest.c << _LT_EOF
9009 int forced_loaded() { return 2;}
9010 _LT_EOF
9011 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9012 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9013 echo "$AR cru libconftest.a conftest.o" >&5
9014 $AR cru libconftest.a conftest.o 2>&5
9015 echo "$RANLIB libconftest.a" >&5
9016 $RANLIB libconftest.a 2>&5
9017 cat > conftest.c << _LT_EOF
9018 int main() { return 0;}
9019 _LT_EOF
9020 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9021 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9022 _lt_result=$?
9023 if test -s conftest.err && $GREP force_load conftest.err; then
9024 cat conftest.err >&5
9025 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9026 lt_cv_ld_force_load=yes
9027 else
9028 cat conftest.err >&5
9029 fi
9030 rm -f conftest.err libconftest.a conftest conftest.c
9031 rm -rf conftest.dSYM
9032
9033 fi
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9035 $as_echo "$lt_cv_ld_force_load" >&6; }
9036 case $host_os in
9037 rhapsody* | darwin1.[012])
9038 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9039 darwin1.*)
9040 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9041 darwin*) # darwin 5.x on
9042 # if running on 10.5 or later, the deployment target defaults
9043 # to the OS version, if on x86, and 10.4, the deployment
9044 # target defaults to 10.4. Don't you love it?
9045 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9046 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9047 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9048 10.[012][,.]*)
9049 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9050 10.*)
9051 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9052 esac
9053 ;;
9054 esac
9055 if test yes = "$lt_cv_apple_cc_single_mod"; then
9056 _lt_dar_single_mod='$single_module'
9057 fi
9058 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9059 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9060 else
9061 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9062 fi
9063 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9064 _lt_dsymutil='~$DSYMUTIL $lib || :'
9065 else
9066 _lt_dsymutil=
9067 fi
9068 ;;
9069 esac
9070
9071 # func_munge_path_list VARIABLE PATH
9072 # -----------------------------------
9073 # VARIABLE is name of variable containing _space_ separated list of
9074 # directories to be munged by the contents of PATH, which is string
9075 # having a format:
9076 # "DIR[:DIR]:"
9077 # string "DIR[ DIR]" will be prepended to VARIABLE
9078 # ":DIR[:DIR]"
9079 # string "DIR[ DIR]" will be appended to VARIABLE
9080 # "DIRP[:DIRP]::[DIRA:]DIRA"
9081 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9082 # "DIRA[ DIRA]" will be appended to VARIABLE
9083 # "DIR[:DIR]"
9084 # VARIABLE will be replaced by "DIR[ DIR]"
9085 func_munge_path_list ()
9086 {
9087 case x$2 in
9088 x)
9089 ;;
9090 *:)
9091 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9092 ;;
9093 x:*)
9094 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9095 ;;
9096 *::*)
9097 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9098 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9099 ;;
9100 *)
9101 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9102 ;;
9103 esac
9104 }
9105
9106 for ac_header in dlfcn.h
9107 do :
9108 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9109 "
9110 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9111 cat >>confdefs.h <<_ACEOF
9112 #define HAVE_DLFCN_H 1
9113 _ACEOF
9114
9115 fi
9116
9117 done
9118
9119
9120
9121
9122
9123 # Set options
9124
9125
9126
9127 enable_dlopen=no
9128
9129
9130 enable_win32_dll=no
9131
9132
9133 # Check whether --enable-shared was given.
9134 if test "${enable_shared+set}" = set; then :
9135 enableval=$enable_shared; p=${PACKAGE-default}
9136 case $enableval in
9137 yes) enable_shared=yes ;;
9138 no) enable_shared=no ;;
9139 *)
9140 enable_shared=no
9141 # Look at the argument we got. We use all the common list separators.
9142 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9143 for pkg in $enableval; do
9144 IFS=$lt_save_ifs
9145 if test "X$pkg" = "X$p"; then
9146 enable_shared=yes
9147 fi
9148 done
9149 IFS=$lt_save_ifs
9150 ;;
9151 esac
9152 else
9153 enable_shared=yes
9154 fi
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166 # Check whether --with-pic was given.
9167 if test "${with_pic+set}" = set; then :
9168 withval=$with_pic; lt_p=${PACKAGE-default}
9169 case $withval in
9170 yes|no) pic_mode=$withval ;;
9171 *)
9172 pic_mode=default
9173 # Look at the argument we got. We use all the common list separators.
9174 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9175 for lt_pkg in $withval; do
9176 IFS=$lt_save_ifs
9177 if test "X$lt_pkg" = "X$lt_p"; then
9178 pic_mode=yes
9179 fi
9180 done
9181 IFS=$lt_save_ifs
9182 ;;
9183 esac
9184 else
9185 pic_mode=default
9186 fi
9187
9188
9189
9190
9191
9192
9193
9194
9195 # Check whether --enable-fast-install was given.
9196 if test "${enable_fast_install+set}" = set; then :
9197 enableval=$enable_fast_install; p=${PACKAGE-default}
9198 case $enableval in
9199 yes) enable_fast_install=yes ;;
9200 no) enable_fast_install=no ;;
9201 *)
9202 enable_fast_install=no
9203 # Look at the argument we got. We use all the common list separators.
9204 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9205 for pkg in $enableval; do
9206 IFS=$lt_save_ifs
9207 if test "X$pkg" = "X$p"; then
9208 enable_fast_install=yes
9209 fi
9210 done
9211 IFS=$lt_save_ifs
9212 ;;
9213 esac
9214 else
9215 enable_fast_install=yes
9216 fi
9217
9218
9219
9220
9221
9222
9223
9224
9225 shared_archive_member_spec=
9226 case $host,$enable_shared in
9227 power*-*-aix[5-9]*,yes)
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9229 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9230
9231 # Check whether --with-aix-soname was given.
9232 if test "${with_aix_soname+set}" = set; then :
9233 withval=$with_aix_soname; case $withval in
9234 aix|svr4|both)
9235 ;;
9236 *)
9237 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9238 ;;
9239 esac
9240 lt_cv_with_aix_soname=$with_aix_soname
9241 else
9242 if ${lt_cv_with_aix_soname+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 lt_cv_with_aix_soname=aix
9246 fi
9247
9248 with_aix_soname=$lt_cv_with_aix_soname
9249 fi
9250
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9252 $as_echo "$with_aix_soname" >&6; }
9253 if test aix != "$with_aix_soname"; then
9254 # For the AIX way of multilib, we name the shared archive member
9255 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9256 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9257 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9258 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9259 if test 64 = "${OBJECT_MODE-32}"; then
9260 shared_archive_member_spec=shr_64
9261 else
9262 shared_archive_member_spec=shr
9263 fi
9264 fi
9265 ;;
9266 *)
9267 with_aix_soname=aix
9268 ;;
9269 esac
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280 # This can be used to rebuild libtool when needed
9281 LIBTOOL_DEPS=$ltmain
9282
9283 # Always use our own libtool.
9284 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315 test -z "$LN_S" && LN_S="ln -s"
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330 if test -n "${ZSH_VERSION+set}"; then
9331 setopt NO_GLOB_SUBST
9332 fi
9333
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9335 $as_echo_n "checking for objdir... " >&6; }
9336 if ${lt_cv_objdir+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 rm -f .libs 2>/dev/null
9340 mkdir .libs 2>/dev/null
9341 if test -d .libs; then
9342 lt_cv_objdir=.libs
9343 else
9344 # MS-DOS does not allow filenames that begin with a dot.
9345 lt_cv_objdir=_libs
9346 fi
9347 rmdir .libs 2>/dev/null
9348 fi
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9350 $as_echo "$lt_cv_objdir" >&6; }
9351 objdir=$lt_cv_objdir
9352
9353
9354
9355
9356
9357 cat >>confdefs.h <<_ACEOF
9358 #define LT_OBJDIR "$lt_cv_objdir/"
9359 _ACEOF
9360
9361
9362
9363
9364 case $host_os in
9365 aix3*)
9366 # AIX sometimes has problems with the GCC collect2 program. For some
9367 # reason, if we set the COLLECT_NAMES environment variable, the problems
9368 # vanish in a puff of smoke.
9369 if test set != "${COLLECT_NAMES+set}"; then
9370 COLLECT_NAMES=
9371 export COLLECT_NAMES
9372 fi
9373 ;;
9374 esac
9375
9376 # Global variables:
9377 ofile=libtool
9378 can_build_shared=yes
9379
9380 # All known linkers require a '.a' archive for static linking (except MSVC,
9381 # which needs '.lib').
9382 libext=a
9383
9384 with_gnu_ld=$lt_cv_prog_gnu_ld
9385
9386 old_CC=$CC
9387 old_CFLAGS=$CFLAGS
9388
9389 # Set sane defaults for various variables
9390 test -z "$CC" && CC=cc
9391 test -z "$LTCC" && LTCC=$CC
9392 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9393 test -z "$LD" && LD=ld
9394 test -z "$ac_objext" && ac_objext=o
9395
9396 func_cc_basename $compiler
9397 cc_basename=$func_cc_basename_result
9398
9399
9400 # Only perform the check for file, if the check method requires it
9401 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9402 case $deplibs_check_method in
9403 file_magic*)
9404 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9406 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9407 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $MAGIC_CMD in
9411 [\\/*] | ?:[\\/]*)
9412 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9413 ;;
9414 *)
9415 lt_save_MAGIC_CMD=$MAGIC_CMD
9416 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9417 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9418 for ac_dir in $ac_dummy; do
9419 IFS=$lt_save_ifs
9420 test -z "$ac_dir" && ac_dir=.
9421 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9422 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9423 if test -n "$file_magic_test_file"; then
9424 case $deplibs_check_method in
9425 "file_magic "*)
9426 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9427 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9429 $EGREP "$file_magic_regex" > /dev/null; then
9430 :
9431 else
9432 cat <<_LT_EOF 1>&2
9433
9434 *** Warning: the command libtool uses to detect shared libraries,
9435 *** $file_magic_cmd, produces output that libtool cannot recognize.
9436 *** The result is that libtool may fail to recognize shared libraries
9437 *** as such. This will affect the creation of libtool libraries that
9438 *** depend on shared libraries, but programs linked with such libtool
9439 *** libraries will work regardless of this problem. Nevertheless, you
9440 *** may want to report the problem to your system manager and/or to
9441 *** [email protected]
9442
9443 _LT_EOF
9444 fi ;;
9445 esac
9446 fi
9447 break
9448 fi
9449 done
9450 IFS=$lt_save_ifs
9451 MAGIC_CMD=$lt_save_MAGIC_CMD
9452 ;;
9453 esac
9454 fi
9455
9456 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9457 if test -n "$MAGIC_CMD"; then
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9459 $as_echo "$MAGIC_CMD" >&6; }
9460 else
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9463 fi
9464
9465
9466
9467
9468
9469 if test -z "$lt_cv_path_MAGIC_CMD"; then
9470 if test -n "$ac_tool_prefix"; then
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9472 $as_echo_n "checking for file... " >&6; }
9473 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9474 $as_echo_n "(cached) " >&6
9475 else
9476 case $MAGIC_CMD in
9477 [\\/*] | ?:[\\/]*)
9478 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9479 ;;
9480 *)
9481 lt_save_MAGIC_CMD=$MAGIC_CMD
9482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9484 for ac_dir in $ac_dummy; do
9485 IFS=$lt_save_ifs
9486 test -z "$ac_dir" && ac_dir=.
9487 if test -f "$ac_dir/file"; then
9488 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9489 if test -n "$file_magic_test_file"; then
9490 case $deplibs_check_method in
9491 "file_magic "*)
9492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9495 $EGREP "$file_magic_regex" > /dev/null; then
9496 :
9497 else
9498 cat <<_LT_EOF 1>&2
9499
9500 *** Warning: the command libtool uses to detect shared libraries,
9501 *** $file_magic_cmd, produces output that libtool cannot recognize.
9502 *** The result is that libtool may fail to recognize shared libraries
9503 *** as such. This will affect the creation of libtool libraries that
9504 *** depend on shared libraries, but programs linked with such libtool
9505 *** libraries will work regardless of this problem. Nevertheless, you
9506 *** may want to report the problem to your system manager and/or to
9507 *** [email protected]
9508
9509 _LT_EOF
9510 fi ;;
9511 esac
9512 fi
9513 break
9514 fi
9515 done
9516 IFS=$lt_save_ifs
9517 MAGIC_CMD=$lt_save_MAGIC_CMD
9518 ;;
9519 esac
9520 fi
9521
9522 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9523 if test -n "$MAGIC_CMD"; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9525 $as_echo "$MAGIC_CMD" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 fi
9530
9531
9532 else
9533 MAGIC_CMD=:
9534 fi
9535 fi
9536
9537 fi
9538 ;;
9539 esac
9540
9541 # Use C for the default configuration in the libtool script
9542
9543 lt_save_CC=$CC
9544 ac_ext=c
9545 ac_cpp='$CPP $CPPFLAGS'
9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9549
9550
9551 # Source file extension for C test sources.
9552 ac_ext=c
9553
9554 # Object file extension for compiled C test sources.
9555 objext=o
9556 objext=$objext
9557
9558 # Code to be used in simple compile tests
9559 lt_simple_compile_test_code="int some_variable = 0;"
9560
9561 # Code to be used in simple link tests
9562 lt_simple_link_test_code='int main(){return(0);}'
9563
9564
9565
9566
9567
9568
9569
9570 # If no C compiler was specified, use CC.
9571 LTCC=${LTCC-"$CC"}
9572
9573 # If no C compiler flags were specified, use CFLAGS.
9574 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9575
9576 # Allow CC to be a program name with arguments.
9577 compiler=$CC
9578
9579 # Save the default compiler, since it gets overwritten when the other
9580 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9581 compiler_DEFAULT=$CC
9582
9583 # save warnings/boilerplate of simple test code
9584 ac_outfile=conftest.$ac_objext
9585 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9586 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9587 _lt_compiler_boilerplate=`cat conftest.err`
9588 $RM conftest*
9589
9590 ac_outfile=conftest.$ac_objext
9591 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9592 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9593 _lt_linker_boilerplate=`cat conftest.err`
9594 $RM -r conftest*
9595
9596
9597 ## CAVEAT EMPTOR:
9598 ## There is no encapsulation within the following macros, do not change
9599 ## the running order or otherwise move them around unless you know exactly
9600 ## what you are doing...
9601 if test -n "$compiler"; then
9602
9603 lt_prog_compiler_no_builtin_flag=
9604
9605 if test yes = "$GCC"; then
9606 case $cc_basename in
9607 nvcc*)
9608 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9609 *)
9610 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9611 esac
9612
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9614 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9615 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 lt_cv_prog_compiler_rtti_exceptions=no
9619 ac_outfile=conftest.$ac_objext
9620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9621 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9622 # Insert the option either (1) after the last *FLAGS variable, or
9623 # (2) before a word containing "conftest.", or (3) at the end.
9624 # Note that $ac_compile itself does not contain backslashes and begins
9625 # with a dollar sign (not a hyphen), so the echo should work correctly.
9626 # The option is referenced via a variable to avoid confusing sed.
9627 lt_compile=`echo "$ac_compile" | $SED \
9628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9630 -e 's:$: $lt_compiler_flag:'`
9631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9632 (eval "$lt_compile" 2>conftest.err)
9633 ac_status=$?
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 if (exit $ac_status) && test -s "$ac_outfile"; then
9637 # The compiler can only warn and ignore the option if not recognized
9638 # So say no if there are warnings other than the usual output.
9639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9642 lt_cv_prog_compiler_rtti_exceptions=yes
9643 fi
9644 fi
9645 $RM conftest*
9646
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9649 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9650
9651 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9652 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9653 else
9654 :
9655 fi
9656
9657 fi
9658
9659
9660
9661
9662
9663
9664 lt_prog_compiler_wl=
9665 lt_prog_compiler_pic=
9666 lt_prog_compiler_static=
9667
9668
9669 if test yes = "$GCC"; then
9670 lt_prog_compiler_wl='-Wl,'
9671 lt_prog_compiler_static='-static'
9672
9673 case $host_os in
9674 aix*)
9675 # All AIX code is PIC.
9676 if test ia64 = "$host_cpu"; then
9677 # AIX 5 now supports IA64 processor
9678 lt_prog_compiler_static='-Bstatic'
9679 fi
9680 lt_prog_compiler_pic='-fPIC'
9681 ;;
9682
9683 amigaos*)
9684 case $host_cpu in
9685 powerpc)
9686 # see comment about AmigaOS4 .so support
9687 lt_prog_compiler_pic='-fPIC'
9688 ;;
9689 m68k)
9690 # FIXME: we need at least 68020 code to build shared libraries, but
9691 # adding the '-m68020' flag to GCC prevents building anything better,
9692 # like '-m68040'.
9693 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9694 ;;
9695 esac
9696 ;;
9697
9698 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9699 # PIC is the default for these OSes.
9700 ;;
9701
9702 mingw* | cygwin* | pw32* | os2* | cegcc*)
9703 # This hack is so that the source file can tell whether it is being
9704 # built for inclusion in a dll (and should export symbols for example).
9705 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9706 # (--disable-auto-import) libraries
9707 lt_prog_compiler_pic='-DDLL_EXPORT'
9708 case $host_os in
9709 os2*)
9710 lt_prog_compiler_static='$wl-static'
9711 ;;
9712 esac
9713 ;;
9714
9715 darwin* | rhapsody*)
9716 # PIC is the default on this platform
9717 # Common symbols not allowed in MH_DYLIB files
9718 lt_prog_compiler_pic='-fno-common'
9719 ;;
9720
9721 haiku*)
9722 # PIC is the default for Haiku.
9723 # The "-static" flag exists, but is broken.
9724 lt_prog_compiler_static=
9725 ;;
9726
9727 hpux*)
9728 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9729 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9730 # sets the default TLS model and affects inlining.
9731 case $host_cpu in
9732 hppa*64*)
9733 # +Z the default
9734 ;;
9735 *)
9736 lt_prog_compiler_pic='-fPIC'
9737 ;;
9738 esac
9739 ;;
9740
9741 interix[3-9]*)
9742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9743 # Instead, we relocate shared libraries at runtime.
9744 ;;
9745
9746 msdosdjgpp*)
9747 # Just because we use GCC doesn't mean we suddenly get shared libraries
9748 # on systems that don't support them.
9749 lt_prog_compiler_can_build_shared=no
9750 enable_shared=no
9751 ;;
9752
9753 *nto* | *qnx*)
9754 # QNX uses GNU C++, but need to define -shared option too, otherwise
9755 # it will coredump.
9756 lt_prog_compiler_pic='-fPIC -shared'
9757 ;;
9758
9759 sysv4*MP*)
9760 if test -d /usr/nec; then
9761 lt_prog_compiler_pic=-Kconform_pic
9762 fi
9763 ;;
9764
9765 *)
9766 lt_prog_compiler_pic='-fPIC'
9767 ;;
9768 esac
9769
9770 case $cc_basename in
9771 nvcc*) # Cuda Compiler Driver 2.2
9772 lt_prog_compiler_wl='-Xlinker '
9773 if test -n "$lt_prog_compiler_pic"; then
9774 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9775 fi
9776 ;;
9777 esac
9778 else
9779 # PORTME Check for flag to pass linker flags through the system compiler.
9780 case $host_os in
9781 aix*)
9782 lt_prog_compiler_wl='-Wl,'
9783 if test ia64 = "$host_cpu"; then
9784 # AIX 5 now supports IA64 processor
9785 lt_prog_compiler_static='-Bstatic'
9786 else
9787 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9788 fi
9789 ;;
9790
9791 darwin* | rhapsody*)
9792 # PIC is the default on this platform
9793 # Common symbols not allowed in MH_DYLIB files
9794 lt_prog_compiler_pic='-fno-common'
9795 case $cc_basename in
9796 nagfor*)
9797 # NAG Fortran compiler
9798 lt_prog_compiler_wl='-Wl,-Wl,,'
9799 lt_prog_compiler_pic='-PIC'
9800 lt_prog_compiler_static='-Bstatic'
9801 ;;
9802 esac
9803 ;;
9804
9805 mingw* | cygwin* | pw32* | os2* | cegcc*)
9806 # This hack is so that the source file can tell whether it is being
9807 # built for inclusion in a dll (and should export symbols for example).
9808 lt_prog_compiler_pic='-DDLL_EXPORT'
9809 case $host_os in
9810 os2*)
9811 lt_prog_compiler_static='$wl-static'
9812 ;;
9813 esac
9814 ;;
9815
9816 hpux9* | hpux10* | hpux11*)
9817 lt_prog_compiler_wl='-Wl,'
9818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9819 # not for PA HP-UX.
9820 case $host_cpu in
9821 hppa*64*|ia64*)
9822 # +Z the default
9823 ;;
9824 *)
9825 lt_prog_compiler_pic='+Z'
9826 ;;
9827 esac
9828 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9829 lt_prog_compiler_static='$wl-a ${wl}archive'
9830 ;;
9831
9832 irix5* | irix6* | nonstopux*)
9833 lt_prog_compiler_wl='-Wl,'
9834 # PIC (with -KPIC) is the default.
9835 lt_prog_compiler_static='-non_shared'
9836 ;;
9837
9838 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9839 case $cc_basename in
9840 # old Intel for x86_64, which still supported -KPIC.
9841 ecc*)
9842 lt_prog_compiler_wl='-Wl,'
9843 lt_prog_compiler_pic='-KPIC'
9844 lt_prog_compiler_static='-static'
9845 ;;
9846 # icc used to be incompatible with GCC.
9847 # ICC 10 doesn't accept -KPIC any more.
9848 icc* | ifort*)
9849 lt_prog_compiler_wl='-Wl,'
9850 lt_prog_compiler_pic='-fPIC'
9851 lt_prog_compiler_static='-static'
9852 ;;
9853 # Lahey Fortran 8.1.
9854 lf95*)
9855 lt_prog_compiler_wl='-Wl,'
9856 lt_prog_compiler_pic='--shared'
9857 lt_prog_compiler_static='--static'
9858 ;;
9859 nagfor*)
9860 # NAG Fortran compiler
9861 lt_prog_compiler_wl='-Wl,-Wl,,'
9862 lt_prog_compiler_pic='-PIC'
9863 lt_prog_compiler_static='-Bstatic'
9864 ;;
9865 tcc*)
9866 # Fabrice Bellard et al's Tiny C Compiler
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_pic='-fPIC'
9869 lt_prog_compiler_static='-static'
9870 ;;
9871 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9872 # Portland Group compilers (*not* the Pentium gcc compiler,
9873 # which looks to be a dead project)
9874 lt_prog_compiler_wl='-Wl,'
9875 lt_prog_compiler_pic='-fpic'
9876 lt_prog_compiler_static='-Bstatic'
9877 ;;
9878 ccc*)
9879 lt_prog_compiler_wl='-Wl,'
9880 # All Alpha code is PIC.
9881 lt_prog_compiler_static='-non_shared'
9882 ;;
9883 xl* | bgxl* | bgf* | mpixl*)
9884 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9885 lt_prog_compiler_wl='-Wl,'
9886 lt_prog_compiler_pic='-qpic'
9887 lt_prog_compiler_static='-qstaticlink'
9888 ;;
9889 *)
9890 case `$CC -V 2>&1 | sed 5q` in
9891 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9892 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9893 lt_prog_compiler_pic='-KPIC'
9894 lt_prog_compiler_static='-Bstatic'
9895 lt_prog_compiler_wl=''
9896 ;;
9897 *Sun\ F* | *Sun*Fortran*)
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-Bstatic'
9900 lt_prog_compiler_wl='-Qoption ld '
9901 ;;
9902 *Sun\ C*)
9903 # Sun C 5.9
9904 lt_prog_compiler_pic='-KPIC'
9905 lt_prog_compiler_static='-Bstatic'
9906 lt_prog_compiler_wl='-Wl,'
9907 ;;
9908 *Intel*\ [CF]*Compiler*)
9909 lt_prog_compiler_wl='-Wl,'
9910 lt_prog_compiler_pic='-fPIC'
9911 lt_prog_compiler_static='-static'
9912 ;;
9913 *Portland\ Group*)
9914 lt_prog_compiler_wl='-Wl,'
9915 lt_prog_compiler_pic='-fpic'
9916 lt_prog_compiler_static='-Bstatic'
9917 ;;
9918 esac
9919 ;;
9920 esac
9921 ;;
9922
9923 newsos6)
9924 lt_prog_compiler_pic='-KPIC'
9925 lt_prog_compiler_static='-Bstatic'
9926 ;;
9927
9928 *nto* | *qnx*)
9929 # QNX uses GNU C++, but need to define -shared option too, otherwise
9930 # it will coredump.
9931 lt_prog_compiler_pic='-fPIC -shared'
9932 ;;
9933
9934 osf3* | osf4* | osf5*)
9935 lt_prog_compiler_wl='-Wl,'
9936 # All OSF/1 code is PIC.
9937 lt_prog_compiler_static='-non_shared'
9938 ;;
9939
9940 rdos*)
9941 lt_prog_compiler_static='-non_shared'
9942 ;;
9943
9944 solaris*)
9945 lt_prog_compiler_pic='-KPIC'
9946 lt_prog_compiler_static='-Bstatic'
9947 case $cc_basename in
9948 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9949 lt_prog_compiler_wl='-Qoption ld ';;
9950 *)
9951 lt_prog_compiler_wl='-Wl,';;
9952 esac
9953 ;;
9954
9955 sunos4*)
9956 lt_prog_compiler_wl='-Qoption ld '
9957 lt_prog_compiler_pic='-PIC'
9958 lt_prog_compiler_static='-Bstatic'
9959 ;;
9960
9961 sysv4 | sysv4.2uw2* | sysv4.3*)
9962 lt_prog_compiler_wl='-Wl,'
9963 lt_prog_compiler_pic='-KPIC'
9964 lt_prog_compiler_static='-Bstatic'
9965 ;;
9966
9967 sysv4*MP*)
9968 if test -d /usr/nec; then
9969 lt_prog_compiler_pic='-Kconform_pic'
9970 lt_prog_compiler_static='-Bstatic'
9971 fi
9972 ;;
9973
9974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9975 lt_prog_compiler_wl='-Wl,'
9976 lt_prog_compiler_pic='-KPIC'
9977 lt_prog_compiler_static='-Bstatic'
9978 ;;
9979
9980 unicos*)
9981 lt_prog_compiler_wl='-Wl,'
9982 lt_prog_compiler_can_build_shared=no
9983 ;;
9984
9985 uts4*)
9986 lt_prog_compiler_pic='-pic'
9987 lt_prog_compiler_static='-Bstatic'
9988 ;;
9989
9990 *)
9991 lt_prog_compiler_can_build_shared=no
9992 ;;
9993 esac
9994 fi
9995
9996 case $host_os in
9997 # For platforms that do not support PIC, -DPIC is meaningless:
9998 *djgpp*)
9999 lt_prog_compiler_pic=
10000 ;;
10001 *)
10002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10003 ;;
10004 esac
10005
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10007 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10008 if ${lt_cv_prog_compiler_pic+:} false; then :
10009 $as_echo_n "(cached) " >&6
10010 else
10011 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10012 fi
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10014 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10015 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10016
10017 #
10018 # Check to make sure the PIC flag actually works.
10019 #
10020 if test -n "$lt_prog_compiler_pic"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10022 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10023 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 lt_cv_prog_compiler_pic_works=no
10027 ac_outfile=conftest.$ac_objext
10028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10029 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10030 # Insert the option either (1) after the last *FLAGS variable, or
10031 # (2) before a word containing "conftest.", or (3) at the end.
10032 # Note that $ac_compile itself does not contain backslashes and begins
10033 # with a dollar sign (not a hyphen), so the echo should work correctly.
10034 # The option is referenced via a variable to avoid confusing sed.
10035 lt_compile=`echo "$ac_compile" | $SED \
10036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10038 -e 's:$: $lt_compiler_flag:'`
10039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10040 (eval "$lt_compile" 2>conftest.err)
10041 ac_status=$?
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 if (exit $ac_status) && test -s "$ac_outfile"; then
10045 # The compiler can only warn and ignore the option if not recognized
10046 # So say no if there are warnings other than the usual output.
10047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10048 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10049 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10050 lt_cv_prog_compiler_pic_works=yes
10051 fi
10052 fi
10053 $RM conftest*
10054
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10057 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10058
10059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10060 case $lt_prog_compiler_pic in
10061 "" | " "*) ;;
10062 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10063 esac
10064 else
10065 lt_prog_compiler_pic=
10066 lt_prog_compiler_can_build_shared=no
10067 fi
10068
10069 fi
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081 #
10082 # Check to make sure the static flag actually works.
10083 #
10084 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10086 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10087 if ${lt_cv_prog_compiler_static_works+:} false; then :
10088 $as_echo_n "(cached) " >&6
10089 else
10090 lt_cv_prog_compiler_static_works=no
10091 save_LDFLAGS=$LDFLAGS
10092 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10093 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10094 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10095 # The linker can only warn and ignore the option if not recognized
10096 # So say no if there are warnings
10097 if test -s conftest.err; then
10098 # Append any errors to the config.log.
10099 cat conftest.err 1>&5
10100 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10102 if diff conftest.exp conftest.er2 >/dev/null; then
10103 lt_cv_prog_compiler_static_works=yes
10104 fi
10105 else
10106 lt_cv_prog_compiler_static_works=yes
10107 fi
10108 fi
10109 $RM -r conftest*
10110 LDFLAGS=$save_LDFLAGS
10111
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10114 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10115
10116 if test yes = "$lt_cv_prog_compiler_static_works"; then
10117 :
10118 else
10119 lt_prog_compiler_static=
10120 fi
10121
10122
10123
10124
10125
10126
10127
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10129 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10130 if ${lt_cv_prog_compiler_c_o+:} false; then :
10131 $as_echo_n "(cached) " >&6
10132 else
10133 lt_cv_prog_compiler_c_o=no
10134 $RM -r conftest 2>/dev/null
10135 mkdir conftest
10136 cd conftest
10137 mkdir out
10138 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10139
10140 lt_compiler_flag="-o out/conftest2.$ac_objext"
10141 # Insert the option either (1) after the last *FLAGS variable, or
10142 # (2) before a word containing "conftest.", or (3) at the end.
10143 # Note that $ac_compile itself does not contain backslashes and begins
10144 # with a dollar sign (not a hyphen), so the echo should work correctly.
10145 lt_compile=`echo "$ac_compile" | $SED \
10146 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10148 -e 's:$: $lt_compiler_flag:'`
10149 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10150 (eval "$lt_compile" 2>out/conftest.err)
10151 ac_status=$?
10152 cat out/conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10155 then
10156 # The compiler can only warn and ignore the option if not recognized
10157 # So say no if there are warnings
10158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10159 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10160 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10161 lt_cv_prog_compiler_c_o=yes
10162 fi
10163 fi
10164 chmod u+w . 2>&5
10165 $RM conftest*
10166 # SGI C++ compiler will create directory out/ii_files/ for
10167 # template instantiation
10168 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10169 $RM out/* && rmdir out
10170 cd ..
10171 $RM -r conftest
10172 $RM conftest*
10173
10174 fi
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10176 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10177
10178
10179
10180
10181
10182
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10184 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10185 if ${lt_cv_prog_compiler_c_o+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 lt_cv_prog_compiler_c_o=no
10189 $RM -r conftest 2>/dev/null
10190 mkdir conftest
10191 cd conftest
10192 mkdir out
10193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10194
10195 lt_compiler_flag="-o out/conftest2.$ac_objext"
10196 # Insert the option either (1) after the last *FLAGS variable, or
10197 # (2) before a word containing "conftest.", or (3) at the end.
10198 # Note that $ac_compile itself does not contain backslashes and begins
10199 # with a dollar sign (not a hyphen), so the echo should work correctly.
10200 lt_compile=`echo "$ac_compile" | $SED \
10201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10203 -e 's:$: $lt_compiler_flag:'`
10204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10205 (eval "$lt_compile" 2>out/conftest.err)
10206 ac_status=$?
10207 cat out/conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10210 then
10211 # The compiler can only warn and ignore the option if not recognized
10212 # So say no if there are warnings
10213 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10216 lt_cv_prog_compiler_c_o=yes
10217 fi
10218 fi
10219 chmod u+w . 2>&5
10220 $RM conftest*
10221 # SGI C++ compiler will create directory out/ii_files/ for
10222 # template instantiation
10223 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10224 $RM out/* && rmdir out
10225 cd ..
10226 $RM -r conftest
10227 $RM conftest*
10228
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10231 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10232
10233
10234
10235
10236 hard_links=nottested
10237 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10238 # do not overwrite the value of need_locks provided by the user
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10240 $as_echo_n "checking if we can lock with hard links... " >&6; }
10241 hard_links=yes
10242 $RM conftest*
10243 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10244 touch conftest.a
10245 ln conftest.a conftest.b 2>&5 || hard_links=no
10246 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10248 $as_echo "$hard_links" >&6; }
10249 if test no = "$hard_links"; then
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10251 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10252 need_locks=warn
10253 fi
10254 else
10255 need_locks=no
10256 fi
10257
10258
10259
10260
10261
10262
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10264 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10265
10266 runpath_var=
10267 allow_undefined_flag=
10268 always_export_symbols=no
10269 archive_cmds=
10270 archive_expsym_cmds=
10271 compiler_needs_object=no
10272 enable_shared_with_static_runtimes=no
10273 export_dynamic_flag_spec=
10274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10275 hardcode_automatic=no
10276 hardcode_direct=no
10277 hardcode_direct_absolute=no
10278 hardcode_libdir_flag_spec=
10279 hardcode_libdir_separator=
10280 hardcode_minus_L=no
10281 hardcode_shlibpath_var=unsupported
10282 inherit_rpath=no
10283 link_all_deplibs=unknown
10284 module_cmds=
10285 module_expsym_cmds=
10286 old_archive_from_new_cmds=
10287 old_archive_from_expsyms_cmds=
10288 thread_safe_flag_spec=
10289 whole_archive_flag_spec=
10290 # include_expsyms should be a list of space-separated symbols to be *always*
10291 # included in the symbol list
10292 include_expsyms=
10293 # exclude_expsyms can be an extended regexp of symbols to exclude
10294 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10295 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10296 # as well as any symbol that contains 'd'.
10297 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10299 # platforms (ab)use it in PIC code, but their linkers get confused if
10300 # the symbol is explicitly referenced. Since portable code cannot
10301 # rely on this symbol name, it's probably fine to never include it in
10302 # preloaded symbol tables.
10303 # Exclude shared library initialization/finalization symbols.
10304 extract_expsyms_cmds=
10305
10306 case $host_os in
10307 cygwin* | mingw* | pw32* | cegcc*)
10308 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10309 # When not using gcc, we currently assume that we are using
10310 # Microsoft Visual C++.
10311 if test yes != "$GCC"; then
10312 with_gnu_ld=no
10313 fi
10314 ;;
10315 interix*)
10316 # we just hope/assume this is gcc and not c89 (= MSVC++)
10317 with_gnu_ld=yes
10318 ;;
10319 openbsd* | bitrig*)
10320 with_gnu_ld=no
10321 ;;
10322 esac
10323
10324 ld_shlibs=yes
10325
10326 # On some targets, GNU ld is compatible enough with the native linker
10327 # that we're better off using the native interface for both.
10328 lt_use_gnu_ld_interface=no
10329 if test yes = "$with_gnu_ld"; then
10330 case $host_os in
10331 aix*)
10332 # The AIX port of GNU ld has always aspired to compatibility
10333 # with the native linker. However, as the warning in the GNU ld
10334 # block says, versions before 2.19.5* couldn't really create working
10335 # shared libraries, regardless of the interface used.
10336 case `$LD -v 2>&1` in
10337 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10338 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10339 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10340 *)
10341 lt_use_gnu_ld_interface=yes
10342 ;;
10343 esac
10344 ;;
10345 *)
10346 lt_use_gnu_ld_interface=yes
10347 ;;
10348 esac
10349 fi
10350
10351 if test yes = "$lt_use_gnu_ld_interface"; then
10352 # If archive_cmds runs LD, not CC, wlarc should be empty
10353 wlarc='$wl'
10354
10355 # Set some defaults for GNU ld with shared library support. These
10356 # are reset later if shared libraries are not supported. Putting them
10357 # here allows them to be overridden if necessary.
10358 runpath_var=LD_RUN_PATH
10359 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10360 export_dynamic_flag_spec='$wl--export-dynamic'
10361 # ancient GNU ld didn't support --whole-archive et. al.
10362 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10363 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10364 else
10365 whole_archive_flag_spec=
10366 fi
10367 supports_anon_versioning=no
10368 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10369 *GNU\ gold*) supports_anon_versioning=yes ;;
10370 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10371 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10372 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10373 *\ 2.11.*) ;; # other 2.11 versions
10374 *) supports_anon_versioning=yes ;;
10375 esac
10376
10377 # See if GNU ld supports shared libraries.
10378 case $host_os in
10379 aix[3-9]*)
10380 # On AIX/PPC, the GNU linker is very broken
10381 if test ia64 != "$host_cpu"; then
10382 ld_shlibs=no
10383 cat <<_LT_EOF 1>&2
10384
10385 *** Warning: the GNU linker, at least up to release 2.19, is reported
10386 *** to be unable to reliably create shared libraries on AIX.
10387 *** Therefore, libtool is disabling shared libraries support. If you
10388 *** really care for shared libraries, you may want to install binutils
10389 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10390 *** You will then need to restart the configuration process.
10391
10392 _LT_EOF
10393 fi
10394 ;;
10395
10396 amigaos*)
10397 case $host_cpu in
10398 powerpc)
10399 # see comment about AmigaOS4 .so support
10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10401 archive_expsym_cmds=''
10402 ;;
10403 m68k)
10404 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)'
10405 hardcode_libdir_flag_spec='-L$libdir'
10406 hardcode_minus_L=yes
10407 ;;
10408 esac
10409 ;;
10410
10411 beos*)
10412 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10413 allow_undefined_flag=unsupported
10414 # Joseph Beckenbach <[email protected]> says some releases of gcc
10415 # support --undefined. This deserves some investigation. FIXME
10416 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10417 else
10418 ld_shlibs=no
10419 fi
10420 ;;
10421
10422 cygwin* | mingw* | pw32* | cegcc*)
10423 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10424 # as there is no search path for DLLs.
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 export_dynamic_flag_spec='$wl--export-all-symbols'
10427 allow_undefined_flag=unsupported
10428 always_export_symbols=no
10429 enable_shared_with_static_runtimes=yes
10430 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'
10431 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10432
10433 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10435 # If the export-symbols file already is a .def file, use it as
10436 # is; otherwise, prepend EXPORTS...
10437 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10438 cp $export_symbols $output_objdir/$soname.def;
10439 else
10440 echo EXPORTS > $output_objdir/$soname.def;
10441 cat $export_symbols >> $output_objdir/$soname.def;
10442 fi~
10443 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10444 else
10445 ld_shlibs=no
10446 fi
10447 ;;
10448
10449 haiku*)
10450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10451 link_all_deplibs=yes
10452 ;;
10453
10454 os2*)
10455 hardcode_libdir_flag_spec='-L$libdir'
10456 hardcode_minus_L=yes
10457 allow_undefined_flag=unsupported
10458 shrext_cmds=.dll
10459 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10460 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10461 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10462 $ECHO EXPORTS >> $output_objdir/$libname.def~
10463 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10464 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10465 emximp -o $lib $output_objdir/$libname.def'
10466 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10467 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10468 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10469 $ECHO EXPORTS >> $output_objdir/$libname.def~
10470 prefix_cmds="$SED"~
10471 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10472 prefix_cmds="$prefix_cmds -e 1d";
10473 fi~
10474 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10475 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10477 emximp -o $lib $output_objdir/$libname.def'
10478 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10479 enable_shared_with_static_runtimes=yes
10480 ;;
10481
10482 interix[3-9]*)
10483 hardcode_direct=no
10484 hardcode_shlibpath_var=no
10485 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10486 export_dynamic_flag_spec='$wl-E'
10487 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10488 # Instead, shared libraries are loaded at an image base (0x10000000 by
10489 # default) and relocated if they conflict, which is a slow very memory
10490 # consuming and fragmenting process. To avoid this, we pick a random,
10491 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10492 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10493 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10494 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'
10495 ;;
10496
10497 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10498 tmp_diet=no
10499 if test linux-dietlibc = "$host_os"; then
10500 case $cc_basename in
10501 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10502 esac
10503 fi
10504 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10505 && test no = "$tmp_diet"
10506 then
10507 tmp_addflag=' $pic_flag'
10508 tmp_sharedflag='-shared'
10509 case $cc_basename,$host_cpu in
10510 pgcc*) # Portland Group C compiler
10511 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'
10512 tmp_addflag=' $pic_flag'
10513 ;;
10514 pgf77* | pgf90* | pgf95* | pgfortran*)
10515 # Portland Group f77 and f90 compilers
10516 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'
10517 tmp_addflag=' $pic_flag -Mnomain' ;;
10518 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10519 tmp_addflag=' -i_dynamic' ;;
10520 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10521 tmp_addflag=' -i_dynamic -nofor_main' ;;
10522 ifc* | ifort*) # Intel Fortran compiler
10523 tmp_addflag=' -nofor_main' ;;
10524 lf95*) # Lahey Fortran 8.1
10525 whole_archive_flag_spec=
10526 tmp_sharedflag='--shared' ;;
10527 nagfor*) # NAGFOR 5.3
10528 tmp_sharedflag='-Wl,-shared' ;;
10529 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10530 tmp_sharedflag='-qmkshrobj'
10531 tmp_addflag= ;;
10532 nvcc*) # Cuda Compiler Driver 2.2
10533 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'
10534 compiler_needs_object=yes
10535 ;;
10536 esac
10537 case `$CC -V 2>&1 | sed 5q` in
10538 *Sun\ C*) # Sun C 5.9
10539 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'
10540 compiler_needs_object=yes
10541 tmp_sharedflag='-G' ;;
10542 *Sun\ F*) # Sun Fortran 8.3
10543 tmp_sharedflag='-G' ;;
10544 esac
10545 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10546
10547 if test yes = "$supports_anon_versioning"; then
10548 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10550 echo "local: *; };" >> $output_objdir/$libname.ver~
10551 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10552 fi
10553
10554 case $cc_basename in
10555 tcc*)
10556 export_dynamic_flag_spec='-rdynamic'
10557 ;;
10558 xlf* | bgf* | bgxlf* | mpixlf*)
10559 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10560 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10561 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10562 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10563 if test yes = "$supports_anon_versioning"; then
10564 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10565 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10566 echo "local: *; };" >> $output_objdir/$libname.ver~
10567 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10568 fi
10569 ;;
10570 esac
10571 else
10572 ld_shlibs=no
10573 fi
10574 ;;
10575
10576 netbsd*)
10577 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10578 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10579 wlarc=
10580 else
10581 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10582 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10583 fi
10584 ;;
10585
10586 solaris*)
10587 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10588 ld_shlibs=no
10589 cat <<_LT_EOF 1>&2
10590
10591 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10592 *** create shared libraries on Solaris systems. Therefore, libtool
10593 *** is disabling shared libraries support. We urge you to upgrade GNU
10594 *** binutils to release 2.9.1 or newer. Another option is to modify
10595 *** your PATH or compiler configuration so that the native linker is
10596 *** used, and then restart.
10597
10598 _LT_EOF
10599 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10601 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10602 else
10603 ld_shlibs=no
10604 fi
10605 ;;
10606
10607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10608 case `$LD -v 2>&1` in
10609 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10610 ld_shlibs=no
10611 cat <<_LT_EOF 1>&2
10612
10613 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10614 *** reliably create shared libraries on SCO systems. Therefore, libtool
10615 *** is disabling shared libraries support. We urge you to upgrade GNU
10616 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10617 *** your PATH or compiler configuration so that the native linker is
10618 *** used, and then restart.
10619
10620 _LT_EOF
10621 ;;
10622 *)
10623 # For security reasons, it is highly recommended that you always
10624 # use absolute paths for naming shared libraries, and exclude the
10625 # DT_RUNPATH tag from executables and libraries. But doing so
10626 # requires that you compile everything twice, which is a pain.
10627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10631 else
10632 ld_shlibs=no
10633 fi
10634 ;;
10635 esac
10636 ;;
10637
10638 sunos4*)
10639 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10640 wlarc=
10641 hardcode_direct=yes
10642 hardcode_shlibpath_var=no
10643 ;;
10644
10645 *)
10646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10647 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10648 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10649 else
10650 ld_shlibs=no
10651 fi
10652 ;;
10653 esac
10654
10655 if test no = "$ld_shlibs"; then
10656 runpath_var=
10657 hardcode_libdir_flag_spec=
10658 export_dynamic_flag_spec=
10659 whole_archive_flag_spec=
10660 fi
10661 else
10662 # PORTME fill in a description of your system's linker (not GNU ld)
10663 case $host_os in
10664 aix3*)
10665 allow_undefined_flag=unsupported
10666 always_export_symbols=yes
10667 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'
10668 # Note: this linker hardcodes the directories in LIBPATH if there
10669 # are no directories specified by -L.
10670 hardcode_minus_L=yes
10671 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10672 # Neither direct hardcoding nor static linking is supported with a
10673 # broken collect2.
10674 hardcode_direct=unsupported
10675 fi
10676 ;;
10677
10678 aix[4-9]*)
10679 if test ia64 = "$host_cpu"; then
10680 # On IA64, the linker does run time linking by default, so we don't
10681 # have to do anything special.
10682 aix_use_runtimelinking=no
10683 exp_sym_flag='-Bexport'
10684 no_entry_flag=
10685 else
10686 # If we're using GNU nm, then we don't want the "-C" option.
10687 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10688 # Without the "-l" option, or with the "-B" option, AIX nm treats
10689 # weak defined symbols like other global defined symbols, whereas
10690 # GNU nm marks them as "W".
10691 # While the 'weak' keyword is ignored in the Export File, we need
10692 # it in the Import File for the 'aix-soname' feature, so we have
10693 # to replace the "-B" option with "-P" for AIX nm.
10694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10695 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'
10696 else
10697 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'
10698 fi
10699 aix_use_runtimelinking=no
10700
10701 # Test if we are trying to use run time linking or normal
10702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10703 # have runtime linking enabled, and use it for executables.
10704 # For shared libraries, we enable/disable runtime linking
10705 # depending on the kind of the shared library created -
10706 # when "with_aix_soname,aix_use_runtimelinking" is:
10707 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10708 # "aix,yes" lib.so shared, rtl:yes, for executables
10709 # lib.a static archive
10710 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10711 # lib.a(lib.so.V) shared, rtl:no, for executables
10712 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10713 # lib.a(lib.so.V) shared, rtl:no
10714 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10715 # lib.a static archive
10716 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10717 for ld_flag in $LDFLAGS; do
10718 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10719 aix_use_runtimelinking=yes
10720 break
10721 fi
10722 done
10723 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10724 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10725 # so we don't have lib.a shared libs to link our executables.
10726 # We have to force runtime linking in this case.
10727 aix_use_runtimelinking=yes
10728 LDFLAGS="$LDFLAGS -Wl,-brtl"
10729 fi
10730 ;;
10731 esac
10732
10733 exp_sym_flag='-bexport'
10734 no_entry_flag='-bnoentry'
10735 fi
10736
10737 # When large executables or shared objects are built, AIX ld can
10738 # have problems creating the table of contents. If linking a library
10739 # or program results in "error TOC overflow" add -mminimal-toc to
10740 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10741 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10742
10743 archive_cmds=''
10744 hardcode_direct=yes
10745 hardcode_direct_absolute=yes
10746 hardcode_libdir_separator=':'
10747 link_all_deplibs=yes
10748 file_list_spec='$wl-f,'
10749 case $with_aix_soname,$aix_use_runtimelinking in
10750 aix,*) ;; # traditional, no import file
10751 svr4,* | *,yes) # use import file
10752 # The Import File defines what to hardcode.
10753 hardcode_direct=no
10754 hardcode_direct_absolute=no
10755 ;;
10756 esac
10757
10758 if test yes = "$GCC"; then
10759 case $host_os in aix4.[012]|aix4.[012].*)
10760 # We only want to do this on AIX 4.2 and lower, the check
10761 # below for broken collect2 doesn't work under 4.3+
10762 collect2name=`$CC -print-prog-name=collect2`
10763 if test -f "$collect2name" &&
10764 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10765 then
10766 # We have reworked collect2
10767 :
10768 else
10769 # We have old collect2
10770 hardcode_direct=unsupported
10771 # It fails to find uninstalled libraries when the uninstalled
10772 # path is not listed in the libpath. Setting hardcode_minus_L
10773 # to unsupported forces relinking
10774 hardcode_minus_L=yes
10775 hardcode_libdir_flag_spec='-L$libdir'
10776 hardcode_libdir_separator=
10777 fi
10778 ;;
10779 esac
10780 shared_flag='-shared'
10781 if test yes = "$aix_use_runtimelinking"; then
10782 shared_flag="$shared_flag "'$wl-G'
10783 fi
10784 # Need to ensure runtime linking is disabled for the traditional
10785 # shared library, or the linker may eventually find shared libraries
10786 # /with/ Import File - we do not want to mix them.
10787 shared_flag_aix='-shared'
10788 shared_flag_svr4='-shared $wl-G'
10789 else
10790 # not using gcc
10791 if test ia64 = "$host_cpu"; then
10792 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10793 # chokes on -Wl,-G. The following line is correct:
10794 shared_flag='-G'
10795 else
10796 if test yes = "$aix_use_runtimelinking"; then
10797 shared_flag='$wl-G'
10798 else
10799 shared_flag='$wl-bM:SRE'
10800 fi
10801 shared_flag_aix='$wl-bM:SRE'
10802 shared_flag_svr4='$wl-G'
10803 fi
10804 fi
10805
10806 export_dynamic_flag_spec='$wl-bexpall'
10807 # It seems that -bexpall does not export symbols beginning with
10808 # underscore (_), so it is better to generate a list of symbols to export.
10809 always_export_symbols=yes
10810 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10811 # Warning - without using the other runtime loading flags (-brtl),
10812 # -berok will link without error, but may produce a broken library.
10813 allow_undefined_flag='-berok'
10814 # Determine the default libpath from the value encoded in an
10815 # empty executable.
10816 if test set = "${lt_cv_aix_libpath+set}"; then
10817 aix_libpath=$lt_cv_aix_libpath
10818 else
10819 if ${lt_cv_aix_libpath_+:} false; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824
10825 int
10826 main ()
10827 {
10828
10829 ;
10830 return 0;
10831 }
10832 _ACEOF
10833 if ac_fn_c_try_link "$LINENO"; then :
10834
10835 lt_aix_libpath_sed='
10836 /Import File Strings/,/^$/ {
10837 /^0/ {
10838 s/^0 *\([^ ]*\) *$/\1/
10839 p
10840 }
10841 }'
10842 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10843 # Check for a 64-bit object if we didn't find anything.
10844 if test -z "$lt_cv_aix_libpath_"; then
10845 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10846 fi
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 if test -z "$lt_cv_aix_libpath_"; then
10851 lt_cv_aix_libpath_=/usr/lib:/lib
10852 fi
10853
10854 fi
10855
10856 aix_libpath=$lt_cv_aix_libpath_
10857 fi
10858
10859 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10860 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
10861 else
10862 if test ia64 = "$host_cpu"; then
10863 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10864 allow_undefined_flag="-z nodefs"
10865 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"
10866 else
10867 # Determine the default libpath from the value encoded in an
10868 # empty executable.
10869 if test set = "${lt_cv_aix_libpath+set}"; then
10870 aix_libpath=$lt_cv_aix_libpath
10871 else
10872 if ${lt_cv_aix_libpath_+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874 else
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10877
10878 int
10879 main ()
10880 {
10881
10882 ;
10883 return 0;
10884 }
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887
10888 lt_aix_libpath_sed='
10889 /Import File Strings/,/^$/ {
10890 /^0/ {
10891 s/^0 *\([^ ]*\) *$/\1/
10892 p
10893 }
10894 }'
10895 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10896 # Check for a 64-bit object if we didn't find anything.
10897 if test -z "$lt_cv_aix_libpath_"; then
10898 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10899 fi
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903 if test -z "$lt_cv_aix_libpath_"; then
10904 lt_cv_aix_libpath_=/usr/lib:/lib
10905 fi
10906
10907 fi
10908
10909 aix_libpath=$lt_cv_aix_libpath_
10910 fi
10911
10912 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10913 # Warning - without using the other run time loading flags,
10914 # -berok will link without error, but may produce a broken library.
10915 no_undefined_flag=' $wl-bernotok'
10916 allow_undefined_flag=' $wl-berok'
10917 if test yes = "$with_gnu_ld"; then
10918 # We only use this code for GNU lds that support --whole-archive.
10919 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10920 else
10921 # Exported symbols can be pulled into shared objects from archives
10922 whole_archive_flag_spec='$convenience'
10923 fi
10924 archive_cmds_need_lc=yes
10925 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10926 # -brtl affects multiple linker settings, -berok does not and is overridden later
10927 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10928 if test svr4 != "$with_aix_soname"; then
10929 # This is similar to how AIX traditionally builds its shared libraries.
10930 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'
10931 fi
10932 if test aix != "$with_aix_soname"; then
10933 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'
10934 else
10935 # used by -dlpreopen to get the symbols
10936 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10937 fi
10938 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10939 fi
10940 fi
10941 ;;
10942
10943 amigaos*)
10944 case $host_cpu in
10945 powerpc)
10946 # see comment about AmigaOS4 .so support
10947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10948 archive_expsym_cmds=''
10949 ;;
10950 m68k)
10951 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)'
10952 hardcode_libdir_flag_spec='-L$libdir'
10953 hardcode_minus_L=yes
10954 ;;
10955 esac
10956 ;;
10957
10958 bsdi[45]*)
10959 export_dynamic_flag_spec=-rdynamic
10960 ;;
10961
10962 cygwin* | mingw* | pw32* | cegcc*)
10963 # When not using gcc, we currently assume that we are using
10964 # Microsoft Visual C++.
10965 # hardcode_libdir_flag_spec is actually meaningless, as there is
10966 # no search path for DLLs.
10967 case $cc_basename in
10968 cl*)
10969 # Native MSVC
10970 hardcode_libdir_flag_spec=' '
10971 allow_undefined_flag=unsupported
10972 always_export_symbols=yes
10973 file_list_spec='@'
10974 # Tell ltmain to make .lib files, not .a files.
10975 libext=lib
10976 # Tell ltmain to make .dll files, not .so files.
10977 shrext_cmds=.dll
10978 # FIXME: Setting linknames here is a bad hack.
10979 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10980 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10981 cp "$export_symbols" "$output_objdir/$soname.def";
10982 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10983 else
10984 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10985 fi~
10986 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10987 linknames='
10988 # The linker will not automatically build a static lib if we build a DLL.
10989 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10990 enable_shared_with_static_runtimes=yes
10991 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10992 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10993 # Don't use ranlib
10994 old_postinstall_cmds='chmod 644 $oldlib'
10995 postlink_cmds='lt_outputfile="@OUTPUT@"~
10996 lt_tool_outputfile="@TOOL_OUTPUT@"~
10997 case $lt_outputfile in
10998 *.exe|*.EXE) ;;
10999 *)
11000 lt_outputfile=$lt_outputfile.exe
11001 lt_tool_outputfile=$lt_tool_outputfile.exe
11002 ;;
11003 esac~
11004 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11005 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11006 $RM "$lt_outputfile.manifest";
11007 fi'
11008 ;;
11009 *)
11010 # Assume MSVC wrapper
11011 hardcode_libdir_flag_spec=' '
11012 allow_undefined_flag=unsupported
11013 # Tell ltmain to make .lib files, not .a files.
11014 libext=lib
11015 # Tell ltmain to make .dll files, not .so files.
11016 shrext_cmds=.dll
11017 # FIXME: Setting linknames here is a bad hack.
11018 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11019 # The linker will automatically build a .lib file if we build a DLL.
11020 old_archive_from_new_cmds='true'
11021 # FIXME: Should let the user specify the lib program.
11022 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11023 enable_shared_with_static_runtimes=yes
11024 ;;
11025 esac
11026 ;;
11027
11028 darwin* | rhapsody*)
11029
11030
11031 archive_cmds_need_lc=no
11032 hardcode_direct=no
11033 hardcode_automatic=yes
11034 hardcode_shlibpath_var=unsupported
11035 if test yes = "$lt_cv_ld_force_load"; then
11036 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\"`'
11037
11038 else
11039 whole_archive_flag_spec=''
11040 fi
11041 link_all_deplibs=yes
11042 allow_undefined_flag=$_lt_dar_allow_undefined
11043 case $cc_basename in
11044 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11045 *) _lt_dar_can_shared=$GCC ;;
11046 esac
11047 if test yes = "$_lt_dar_can_shared"; then
11048 output_verbose_link_cmd=func_echo_all
11049 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11050 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11051 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"
11052 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"
11053
11054 else
11055 ld_shlibs=no
11056 fi
11057
11058 ;;
11059
11060 dgux*)
11061 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11062 hardcode_libdir_flag_spec='-L$libdir'
11063 hardcode_shlibpath_var=no
11064 ;;
11065
11066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11067 # support. Future versions do this automatically, but an explicit c++rt0.o
11068 # does not break anything, and helps significantly (at the cost of a little
11069 # extra space).
11070 freebsd2.2*)
11071 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11072 hardcode_libdir_flag_spec='-R$libdir'
11073 hardcode_direct=yes
11074 hardcode_shlibpath_var=no
11075 ;;
11076
11077 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11078 freebsd2.*)
11079 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11080 hardcode_direct=yes
11081 hardcode_minus_L=yes
11082 hardcode_shlibpath_var=no
11083 ;;
11084
11085 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11086 freebsd* | dragonfly*)
11087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11088 hardcode_libdir_flag_spec='-R$libdir'
11089 hardcode_direct=yes
11090 hardcode_shlibpath_var=no
11091 ;;
11092
11093 hpux9*)
11094 if test yes = "$GCC"; then
11095 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'
11096 else
11097 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'
11098 fi
11099 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11100 hardcode_libdir_separator=:
11101 hardcode_direct=yes
11102
11103 # hardcode_minus_L: Not really in the search PATH,
11104 # but as the default location of the library.
11105 hardcode_minus_L=yes
11106 export_dynamic_flag_spec='$wl-E'
11107 ;;
11108
11109 hpux10*)
11110 if test yes,no = "$GCC,$with_gnu_ld"; then
11111 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11112 else
11113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11114 fi
11115 if test no = "$with_gnu_ld"; then
11116 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11117 hardcode_libdir_separator=:
11118 hardcode_direct=yes
11119 hardcode_direct_absolute=yes
11120 export_dynamic_flag_spec='$wl-E'
11121 # hardcode_minus_L: Not really in the search PATH,
11122 # but as the default location of the library.
11123 hardcode_minus_L=yes
11124 fi
11125 ;;
11126
11127 hpux11*)
11128 if test yes,no = "$GCC,$with_gnu_ld"; then
11129 case $host_cpu in
11130 hppa*64*)
11131 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 ;;
11133 ia64*)
11134 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11135 ;;
11136 *)
11137 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11138 ;;
11139 esac
11140 else
11141 case $host_cpu in
11142 hppa*64*)
11143 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11144 ;;
11145 ia64*)
11146 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11147 ;;
11148 *)
11149
11150 # Older versions of the 11.00 compiler do not understand -b yet
11151 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11153 $as_echo_n "checking if $CC understands -b... " >&6; }
11154 if ${lt_cv_prog_compiler__b+:} false; then :
11155 $as_echo_n "(cached) " >&6
11156 else
11157 lt_cv_prog_compiler__b=no
11158 save_LDFLAGS=$LDFLAGS
11159 LDFLAGS="$LDFLAGS -b"
11160 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11161 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11162 # The linker can only warn and ignore the option if not recognized
11163 # So say no if there are warnings
11164 if test -s conftest.err; then
11165 # Append any errors to the config.log.
11166 cat conftest.err 1>&5
11167 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11168 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11169 if diff conftest.exp conftest.er2 >/dev/null; then
11170 lt_cv_prog_compiler__b=yes
11171 fi
11172 else
11173 lt_cv_prog_compiler__b=yes
11174 fi
11175 fi
11176 $RM -r conftest*
11177 LDFLAGS=$save_LDFLAGS
11178
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11181 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11182
11183 if test yes = "$lt_cv_prog_compiler__b"; then
11184 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11185 else
11186 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11187 fi
11188
11189 ;;
11190 esac
11191 fi
11192 if test no = "$with_gnu_ld"; then
11193 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11194 hardcode_libdir_separator=:
11195
11196 case $host_cpu in
11197 hppa*64*|ia64*)
11198 hardcode_direct=no
11199 hardcode_shlibpath_var=no
11200 ;;
11201 *)
11202 hardcode_direct=yes
11203 hardcode_direct_absolute=yes
11204 export_dynamic_flag_spec='$wl-E'
11205
11206 # hardcode_minus_L: Not really in the search PATH,
11207 # but as the default location of the library.
11208 hardcode_minus_L=yes
11209 ;;
11210 esac
11211 fi
11212 ;;
11213
11214 irix5* | irix6* | nonstopux*)
11215 if test yes = "$GCC"; then
11216 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'
11217 # Try to use the -exported_symbol ld option, if it does not
11218 # work, assume that -exports_file does not work either and
11219 # implicitly export all symbols.
11220 # This should be the same for all languages, so no per-tag cache variable.
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11222 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11223 if ${lt_cv_irix_exported_symbol+:} false; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 save_LDFLAGS=$LDFLAGS
11227 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11230 int foo (void) { return 0; }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"; then :
11233 lt_cv_irix_exported_symbol=yes
11234 else
11235 lt_cv_irix_exported_symbol=no
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext \
11238 conftest$ac_exeext conftest.$ac_ext
11239 LDFLAGS=$save_LDFLAGS
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11242 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11243 if test yes = "$lt_cv_irix_exported_symbol"; then
11244 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'
11245 fi
11246 else
11247 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'
11248 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'
11249 fi
11250 archive_cmds_need_lc='no'
11251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11252 hardcode_libdir_separator=:
11253 inherit_rpath=yes
11254 link_all_deplibs=yes
11255 ;;
11256
11257 linux*)
11258 case $cc_basename in
11259 tcc*)
11260 # Fabrice Bellard et al's Tiny C Compiler
11261 ld_shlibs=yes
11262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11263 ;;
11264 esac
11265 ;;
11266
11267 netbsd*)
11268 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11270 else
11271 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11272 fi
11273 hardcode_libdir_flag_spec='-R$libdir'
11274 hardcode_direct=yes
11275 hardcode_shlibpath_var=no
11276 ;;
11277
11278 newsos6)
11279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11280 hardcode_direct=yes
11281 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11282 hardcode_libdir_separator=:
11283 hardcode_shlibpath_var=no
11284 ;;
11285
11286 *nto* | *qnx*)
11287 ;;
11288
11289 openbsd* | bitrig*)
11290 if test -f /usr/libexec/ld.so; then
11291 hardcode_direct=yes
11292 hardcode_shlibpath_var=no
11293 hardcode_direct_absolute=yes
11294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11296 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11297 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11298 export_dynamic_flag_spec='$wl-E'
11299 else
11300 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11301 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11302 fi
11303 else
11304 ld_shlibs=no
11305 fi
11306 ;;
11307
11308 os2*)
11309 hardcode_libdir_flag_spec='-L$libdir'
11310 hardcode_minus_L=yes
11311 allow_undefined_flag=unsupported
11312 shrext_cmds=.dll
11313 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11314 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11315 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11316 $ECHO EXPORTS >> $output_objdir/$libname.def~
11317 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11318 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11319 emximp -o $lib $output_objdir/$libname.def'
11320 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11321 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11322 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11323 $ECHO EXPORTS >> $output_objdir/$libname.def~
11324 prefix_cmds="$SED"~
11325 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11326 prefix_cmds="$prefix_cmds -e 1d";
11327 fi~
11328 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11329 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11330 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11331 emximp -o $lib $output_objdir/$libname.def'
11332 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11333 enable_shared_with_static_runtimes=yes
11334 ;;
11335
11336 osf3*)
11337 if test yes = "$GCC"; then
11338 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11339 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'
11340 else
11341 allow_undefined_flag=' -expect_unresolved \*'
11342 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'
11343 fi
11344 archive_cmds_need_lc='no'
11345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11346 hardcode_libdir_separator=:
11347 ;;
11348
11349 osf4* | osf5*) # as osf3* with the addition of -msym flag
11350 if test yes = "$GCC"; then
11351 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11352 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'
11353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 else
11355 allow_undefined_flag=' -expect_unresolved \*'
11356 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'
11357 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~
11358 $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'
11359
11360 # Both c and cxx compiler support -rpath directly
11361 hardcode_libdir_flag_spec='-rpath $libdir'
11362 fi
11363 archive_cmds_need_lc='no'
11364 hardcode_libdir_separator=:
11365 ;;
11366
11367 solaris*)
11368 no_undefined_flag=' -z defs'
11369 if test yes = "$GCC"; then
11370 wlarc='$wl'
11371 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11373 $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'
11374 else
11375 case `$CC -V 2>&1` in
11376 *"Compilers 5.0"*)
11377 wlarc=''
11378 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11380 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11381 ;;
11382 *)
11383 wlarc='$wl'
11384 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11386 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11387 ;;
11388 esac
11389 fi
11390 hardcode_libdir_flag_spec='-R$libdir'
11391 hardcode_shlibpath_var=no
11392 case $host_os in
11393 solaris2.[0-5] | solaris2.[0-5].*) ;;
11394 *)
11395 # The compiler driver will combine and reorder linker options,
11396 # but understands '-z linker_flag'. GCC discards it without '$wl',
11397 # but is careful enough not to reorder.
11398 # Supported since Solaris 2.6 (maybe 2.5.1?)
11399 if test yes = "$GCC"; then
11400 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11401 else
11402 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11403 fi
11404 ;;
11405 esac
11406 link_all_deplibs=yes
11407 ;;
11408
11409 sunos4*)
11410 if test sequent = "$host_vendor"; then
11411 # Use $CC to link under sequent, because it throws in some extra .o
11412 # files that make .init and .fini sections work.
11413 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11414 else
11415 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11416 fi
11417 hardcode_libdir_flag_spec='-L$libdir'
11418 hardcode_direct=yes
11419 hardcode_minus_L=yes
11420 hardcode_shlibpath_var=no
11421 ;;
11422
11423 sysv4)
11424 case $host_vendor in
11425 sni)
11426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11427 hardcode_direct=yes # is this really true???
11428 ;;
11429 siemens)
11430 ## LD is ld it makes a PLAMLIB
11431 ## CC just makes a GrossModule.
11432 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11433 reload_cmds='$CC -r -o $output$reload_objs'
11434 hardcode_direct=no
11435 ;;
11436 motorola)
11437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11439 ;;
11440 esac
11441 runpath_var='LD_RUN_PATH'
11442 hardcode_shlibpath_var=no
11443 ;;
11444
11445 sysv4.3*)
11446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11447 hardcode_shlibpath_var=no
11448 export_dynamic_flag_spec='-Bexport'
11449 ;;
11450
11451 sysv4*MP*)
11452 if test -d /usr/nec; then
11453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11454 hardcode_shlibpath_var=no
11455 runpath_var=LD_RUN_PATH
11456 hardcode_runpath_var=yes
11457 ld_shlibs=yes
11458 fi
11459 ;;
11460
11461 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11462 no_undefined_flag='$wl-z,text'
11463 archive_cmds_need_lc=no
11464 hardcode_shlibpath_var=no
11465 runpath_var='LD_RUN_PATH'
11466
11467 if test yes = "$GCC"; then
11468 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11469 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11470 else
11471 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11472 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 fi
11474 ;;
11475
11476 sysv5* | sco3.2v5* | sco5v6*)
11477 # Note: We CANNOT use -z defs as we might desire, because we do not
11478 # link with -lc, and that would cause any symbols used from libc to
11479 # always be unresolved, which means just about no library would
11480 # ever link correctly. If we're not using GNU ld we use -z text
11481 # though, which does catch some bad symbols but isn't as heavy-handed
11482 # as -z defs.
11483 no_undefined_flag='$wl-z,text'
11484 allow_undefined_flag='$wl-z,nodefs'
11485 archive_cmds_need_lc=no
11486 hardcode_shlibpath_var=no
11487 hardcode_libdir_flag_spec='$wl-R,$libdir'
11488 hardcode_libdir_separator=':'
11489 link_all_deplibs=yes
11490 export_dynamic_flag_spec='$wl-Bexport'
11491 runpath_var='LD_RUN_PATH'
11492
11493 if test yes = "$GCC"; then
11494 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11495 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11496 else
11497 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499 fi
11500 ;;
11501
11502 uts4*)
11503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11504 hardcode_libdir_flag_spec='-L$libdir'
11505 hardcode_shlibpath_var=no
11506 ;;
11507
11508 *)
11509 ld_shlibs=no
11510 ;;
11511 esac
11512
11513 if test sni = "$host_vendor"; then
11514 case $host in
11515 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11516 export_dynamic_flag_spec='$wl-Blargedynsym'
11517 ;;
11518 esac
11519 fi
11520 fi
11521
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11523 $as_echo "$ld_shlibs" >&6; }
11524 test no = "$ld_shlibs" && can_build_shared=no
11525
11526 with_gnu_ld=$with_gnu_ld
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542 #
11543 # Do we need to explicitly link libc?
11544 #
11545 case "x$archive_cmds_need_lc" in
11546 x|xyes)
11547 # Assume -lc should be added
11548 archive_cmds_need_lc=yes
11549
11550 if test yes,yes = "$GCC,$enable_shared"; then
11551 case $archive_cmds in
11552 *'~'*)
11553 # FIXME: we may have to deal with multi-command sequences.
11554 ;;
11555 '$CC '*)
11556 # Test whether the compiler implicitly links with -lc since on some
11557 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11558 # to ld, don't add -lc before -lgcc.
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11560 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11561 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 $RM conftest*
11565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11566
11567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11568 (eval $ac_compile) 2>&5
11569 ac_status=$?
11570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11571 test $ac_status = 0; } 2>conftest.err; then
11572 soname=conftest
11573 lib=conftest
11574 libobjs=conftest.$ac_objext
11575 deplibs=
11576 wl=$lt_prog_compiler_wl
11577 pic_flag=$lt_prog_compiler_pic
11578 compiler_flags=-v
11579 linker_flags=-v
11580 verstring=
11581 output_objdir=.
11582 libname=conftest
11583 lt_save_allow_undefined_flag=$allow_undefined_flag
11584 allow_undefined_flag=
11585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11586 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11587 ac_status=$?
11588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11589 test $ac_status = 0; }
11590 then
11591 lt_cv_archive_cmds_need_lc=no
11592 else
11593 lt_cv_archive_cmds_need_lc=yes
11594 fi
11595 allow_undefined_flag=$lt_save_allow_undefined_flag
11596 else
11597 cat conftest.err 1>&5
11598 fi
11599 $RM conftest*
11600
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11603 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11604 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11605 ;;
11606 esac
11607 fi
11608 ;;
11609 esac
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11763 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11764
11765 if test yes = "$GCC"; then
11766 case $host_os in
11767 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11768 *) lt_awk_arg='/^libraries:/' ;;
11769 esac
11770 case $host_os in
11771 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11772 *) lt_sed_strip_eq='s|=/|/|g' ;;
11773 esac
11774 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11775 case $lt_search_path_spec in
11776 *\;*)
11777 # if the path contains ";" then we assume it to be the separator
11778 # otherwise default to the standard path separator (i.e. ":") - it is
11779 # assumed that no part of a normal pathname contains ";" but that should
11780 # okay in the real world where ";" in dirpaths is itself problematic.
11781 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11782 ;;
11783 *)
11784 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11785 ;;
11786 esac
11787 # Ok, now we have the path, separated by spaces, we can step through it
11788 # and add multilib dir if necessary...
11789 lt_tmp_lt_search_path_spec=
11790 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11791 # ...but if some path component already ends with the multilib dir we assume
11792 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11793 case "$lt_multi_os_dir; $lt_search_path_spec " in
11794 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11795 lt_multi_os_dir=
11796 ;;
11797 esac
11798 for lt_sys_path in $lt_search_path_spec; do
11799 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11801 elif test -n "$lt_multi_os_dir"; then
11802 test -d "$lt_sys_path" && \
11803 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11804 fi
11805 done
11806 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11807 BEGIN {RS = " "; FS = "/|\n";} {
11808 lt_foo = "";
11809 lt_count = 0;
11810 for (lt_i = NF; lt_i > 0; lt_i--) {
11811 if ($lt_i != "" && $lt_i != ".") {
11812 if ($lt_i == "..") {
11813 lt_count++;
11814 } else {
11815 if (lt_count == 0) {
11816 lt_foo = "/" $lt_i lt_foo;
11817 } else {
11818 lt_count--;
11819 }
11820 }
11821 }
11822 }
11823 if (lt_foo != "") { lt_freq[lt_foo]++; }
11824 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11825 }'`
11826 # AWK program above erroneously prepends '/' to C:/dos/paths
11827 # for these hosts.
11828 case $host_os in
11829 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11830 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11831 esac
11832 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11833 else
11834 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11835 fi
11836 library_names_spec=
11837 libname_spec='lib$name'
11838 soname_spec=
11839 shrext_cmds=.so
11840 postinstall_cmds=
11841 postuninstall_cmds=
11842 finish_cmds=
11843 finish_eval=
11844 shlibpath_var=
11845 shlibpath_overrides_runpath=unknown
11846 version_type=none
11847 dynamic_linker="$host_os ld.so"
11848 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11849 need_lib_prefix=unknown
11850 hardcode_into_libs=no
11851
11852 # when you set need_version to no, make sure it does not cause -set_version
11853 # flags to be left without arguments
11854 need_version=unknown
11855
11856
11857
11858 case $host_os in
11859 aix3*)
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11862 shlibpath_var=LIBPATH
11863
11864 # AIX 3 has no versioning support, so we append a major version to the name.
11865 soname_spec='$libname$release$shared_ext$major'
11866 ;;
11867
11868 aix[4-9]*)
11869 version_type=linux # correct to gnu/linux during the next big refactor
11870 need_lib_prefix=no
11871 need_version=no
11872 hardcode_into_libs=yes
11873 if test ia64 = "$host_cpu"; then
11874 # AIX 5 supports IA64
11875 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 else
11878 # With GCC up to 2.95.x, collect2 would create an import file
11879 # for dependence libraries. The import file would start with
11880 # the line '#! .'. This would cause the generated library to
11881 # depend on '.', always an invalid library. This was fixed in
11882 # development snapshots of GCC prior to 3.0.
11883 case $host_os in
11884 aix4 | aix4.[01] | aix4.[01].*)
11885 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11886 echo ' yes '
11887 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11888 :
11889 else
11890 can_build_shared=no
11891 fi
11892 ;;
11893 esac
11894 # Using Import Files as archive members, it is possible to support
11895 # filename-based versioning of shared library archives on AIX. While
11896 # this would work for both with and without runtime linking, it will
11897 # prevent static linking of such archives. So we do filename-based
11898 # shared library versioning with .so extension only, which is used
11899 # when both runtime linking and shared linking is enabled.
11900 # Unfortunately, runtime linking may impact performance, so we do
11901 # not want this to be the default eventually. Also, we use the
11902 # versioned .so libs for executables only if there is the -brtl
11903 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11904 # To allow for filename-based versioning support, we need to create
11905 # libNAME.so.V as an archive file, containing:
11906 # *) an Import File, referring to the versioned filename of the
11907 # archive as well as the shared archive member, telling the
11908 # bitwidth (32 or 64) of that shared object, and providing the
11909 # list of exported symbols of that shared object, eventually
11910 # decorated with the 'weak' keyword
11911 # *) the shared object with the F_LOADONLY flag set, to really avoid
11912 # it being seen by the linker.
11913 # At run time we better use the real file rather than another symlink,
11914 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11915
11916 case $with_aix_soname,$aix_use_runtimelinking in
11917 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11918 # soname into executable. Probably we can add versioning support to
11919 # collect2, so additional links can be useful in future.
11920 aix,yes) # traditional libtool
11921 dynamic_linker='AIX unversionable lib.so'
11922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11923 # instead of lib<name>.a to let people know that these are not
11924 # typical AIX shared libraries.
11925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11926 ;;
11927 aix,no) # traditional AIX only
11928 dynamic_linker='AIX lib.a(lib.so.V)'
11929 # We preserve .a as extension for shared libraries through AIX4.2
11930 # and later when we are not doing run time linking.
11931 library_names_spec='$libname$release.a $libname.a'
11932 soname_spec='$libname$release$shared_ext$major'
11933 ;;
11934 svr4,*) # full svr4 only
11935 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11936 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11937 # We do not specify a path in Import Files, so LIBPATH fires.
11938 shlibpath_overrides_runpath=yes
11939 ;;
11940 *,yes) # both, prefer svr4
11941 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11942 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11943 # unpreferred sharedlib libNAME.a needs extra handling
11944 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"'
11945 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"'
11946 # We do not specify a path in Import Files, so LIBPATH fires.
11947 shlibpath_overrides_runpath=yes
11948 ;;
11949 *,no) # both, prefer aix
11950 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11951 library_names_spec='$libname$release.a $libname.a'
11952 soname_spec='$libname$release$shared_ext$major'
11953 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11954 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)'
11955 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"'
11956 ;;
11957 esac
11958 shlibpath_var=LIBPATH
11959 fi
11960 ;;
11961
11962 amigaos*)
11963 case $host_cpu in
11964 powerpc)
11965 # Since July 2007 AmigaOS4 officially supports .so libraries.
11966 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968 ;;
11969 m68k)
11970 library_names_spec='$libname.ixlibrary $libname.a'
11971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11972 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'
11973 ;;
11974 esac
11975 ;;
11976
11977 beos*)
11978 library_names_spec='$libname$shared_ext'
11979 dynamic_linker="$host_os ld.so"
11980 shlibpath_var=LIBRARY_PATH
11981 ;;
11982
11983 bsdi[45]*)
11984 version_type=linux # correct to gnu/linux during the next big refactor
11985 need_version=no
11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11987 soname_spec='$libname$release$shared_ext$major'
11988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11989 shlibpath_var=LD_LIBRARY_PATH
11990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11992 # the default ld.so.conf also contains /usr/contrib/lib and
11993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11994 # libtool to hard-code these into programs
11995 ;;
11996
11997 cygwin* | mingw* | pw32* | cegcc*)
11998 version_type=windows
11999 shrext_cmds=.dll
12000 need_version=no
12001 need_lib_prefix=no
12002
12003 case $GCC,$cc_basename in
12004 yes,*)
12005 # gcc
12006 library_names_spec='$libname.dll.a'
12007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12008 postinstall_cmds='base_file=`basename \$file`~
12009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12010 dldir=$destdir/`dirname \$dlpath`~
12011 test -d \$dldir || mkdir -p \$dldir~
12012 $install_prog $dir/$dlname \$dldir/$dlname~
12013 chmod a+x \$dldir/$dlname~
12014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12016 fi'
12017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12018 dlpath=$dir/\$dldll~
12019 $RM \$dlpath'
12020 shlibpath_overrides_runpath=yes
12021
12022 case $host_os in
12023 cygwin*)
12024 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12025 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12026
12027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12028 ;;
12029 mingw* | cegcc*)
12030 # MinGW DLLs use traditional 'lib' prefix
12031 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12032 ;;
12033 pw32*)
12034 # pw32 DLLs use 'pw' prefix rather than 'lib'
12035 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12036 ;;
12037 esac
12038 dynamic_linker='Win32 ld.exe'
12039 ;;
12040
12041 *,cl*)
12042 # Native MSVC
12043 libname_spec='$name'
12044 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045 library_names_spec='$libname.dll.lib'
12046
12047 case $build_os in
12048 mingw*)
12049 sys_lib_search_path_spec=
12050 lt_save_ifs=$IFS
12051 IFS=';'
12052 for lt_path in $LIB
12053 do
12054 IFS=$lt_save_ifs
12055 # Let DOS variable expansion print the short 8.3 style file name.
12056 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12057 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12058 done
12059 IFS=$lt_save_ifs
12060 # Convert to MSYS style.
12061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12062 ;;
12063 cygwin*)
12064 # Convert to unix form, then to dos form, then back to unix form
12065 # but this time dos style (no spaces!) so that the unix form looks
12066 # like /cygdrive/c/PROGRA~1:/cygdr...
12067 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12068 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12069 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12070 ;;
12071 *)
12072 sys_lib_search_path_spec=$LIB
12073 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12074 # It is most probably a Windows format PATH.
12075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12076 else
12077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12078 fi
12079 # FIXME: find the short name or the path components, as spaces are
12080 # common. (e.g. "Program Files" -> "PROGRA~1")
12081 ;;
12082 esac
12083
12084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12085 postinstall_cmds='base_file=`basename \$file`~
12086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12087 dldir=$destdir/`dirname \$dlpath`~
12088 test -d \$dldir || mkdir -p \$dldir~
12089 $install_prog $dir/$dlname \$dldir/$dlname'
12090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12091 dlpath=$dir/\$dldll~
12092 $RM \$dlpath'
12093 shlibpath_overrides_runpath=yes
12094 dynamic_linker='Win32 link.exe'
12095 ;;
12096
12097 *)
12098 # Assume MSVC wrapper
12099 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12100 dynamic_linker='Win32 ld.exe'
12101 ;;
12102 esac
12103 # FIXME: first we should search . and the directory the executable is in
12104 shlibpath_var=PATH
12105 ;;
12106
12107 darwin* | rhapsody*)
12108 dynamic_linker="$host_os dyld"
12109 version_type=darwin
12110 need_lib_prefix=no
12111 need_version=no
12112 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12113 soname_spec='$libname$release$major$shared_ext'
12114 shlibpath_overrides_runpath=yes
12115 shlibpath_var=DYLD_LIBRARY_PATH
12116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12117
12118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12120 ;;
12121
12122 dgux*)
12123 version_type=linux # correct to gnu/linux during the next big refactor
12124 need_lib_prefix=no
12125 need_version=no
12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127 soname_spec='$libname$release$shared_ext$major'
12128 shlibpath_var=LD_LIBRARY_PATH
12129 ;;
12130
12131 freebsd* | dragonfly*)
12132 # DragonFly does not have aout. When/if they implement a new
12133 # versioning mechanism, adjust this.
12134 if test -x /usr/bin/objformat; then
12135 objformat=`/usr/bin/objformat`
12136 else
12137 case $host_os in
12138 freebsd[23].*) objformat=aout ;;
12139 *) objformat=elf ;;
12140 esac
12141 fi
12142 version_type=freebsd-$objformat
12143 case $version_type in
12144 freebsd-elf*)
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 soname_spec='$libname$release$shared_ext$major'
12147 need_version=no
12148 need_lib_prefix=no
12149 ;;
12150 freebsd-*)
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12152 need_version=yes
12153 ;;
12154 esac
12155 shlibpath_var=LD_LIBRARY_PATH
12156 case $host_os in
12157 freebsd2.*)
12158 shlibpath_overrides_runpath=yes
12159 ;;
12160 freebsd3.[01]* | freebsdelf3.[01]*)
12161 shlibpath_overrides_runpath=yes
12162 hardcode_into_libs=yes
12163 ;;
12164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12166 shlibpath_overrides_runpath=no
12167 hardcode_into_libs=yes
12168 ;;
12169 *) # from 4.6 on, and DragonFly
12170 shlibpath_overrides_runpath=yes
12171 hardcode_into_libs=yes
12172 ;;
12173 esac
12174 ;;
12175
12176 haiku*)
12177 version_type=linux # correct to gnu/linux during the next big refactor
12178 need_lib_prefix=no
12179 need_version=no
12180 dynamic_linker="$host_os runtime_loader"
12181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12182 soname_spec='$libname$release$shared_ext$major'
12183 shlibpath_var=LIBRARY_PATH
12184 shlibpath_overrides_runpath=no
12185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12186 hardcode_into_libs=yes
12187 ;;
12188
12189 hpux9* | hpux10* | hpux11*)
12190 # Give a soname corresponding to the major version so that dld.sl refuses to
12191 # link against other versions.
12192 version_type=sunos
12193 need_lib_prefix=no
12194 need_version=no
12195 case $host_cpu in
12196 ia64*)
12197 shrext_cmds='.so'
12198 hardcode_into_libs=yes
12199 dynamic_linker="$host_os dld.so"
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12203 soname_spec='$libname$release$shared_ext$major'
12204 if test 32 = "$HPUX_IA64_MODE"; then
12205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12206 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12207 else
12208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12209 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12210 fi
12211 ;;
12212 hppa*64*)
12213 shrext_cmds='.sl'
12214 hardcode_into_libs=yes
12215 dynamic_linker="$host_os dld.sl"
12216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12219 soname_spec='$libname$release$shared_ext$major'
12220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12222 ;;
12223 *)
12224 shrext_cmds='.sl'
12225 dynamic_linker="$host_os dld.sl"
12226 shlibpath_var=SHLIB_PATH
12227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
12230 ;;
12231 esac
12232 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12233 postinstall_cmds='chmod 555 $lib'
12234 # or fails outright, so override atomically:
12235 install_override_mode=555
12236 ;;
12237
12238 interix[3-9]*)
12239 version_type=linux # correct to gnu/linux during the next big refactor
12240 need_lib_prefix=no
12241 need_version=no
12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12243 soname_spec='$libname$release$shared_ext$major'
12244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12245 shlibpath_var=LD_LIBRARY_PATH
12246 shlibpath_overrides_runpath=no
12247 hardcode_into_libs=yes
12248 ;;
12249
12250 irix5* | irix6* | nonstopux*)
12251 case $host_os in
12252 nonstopux*) version_type=nonstopux ;;
12253 *)
12254 if test yes = "$lt_cv_prog_gnu_ld"; then
12255 version_type=linux # correct to gnu/linux during the next big refactor
12256 else
12257 version_type=irix
12258 fi ;;
12259 esac
12260 need_lib_prefix=no
12261 need_version=no
12262 soname_spec='$libname$release$shared_ext$major'
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12264 case $host_os in
12265 irix5* | nonstopux*)
12266 libsuff= shlibsuff=
12267 ;;
12268 *)
12269 case $LD in # libtool.m4 will add one of these switches to LD
12270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12271 libsuff= shlibsuff= libmagic=32-bit;;
12272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12273 libsuff=32 shlibsuff=N32 libmagic=N32;;
12274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12276 *) libsuff= shlibsuff= libmagic=never-match;;
12277 esac
12278 ;;
12279 esac
12280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12281 shlibpath_overrides_runpath=no
12282 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12283 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12284 hardcode_into_libs=yes
12285 ;;
12286
12287 # No shared lib support for Linux oldld, aout, or coff.
12288 linux*oldld* | linux*aout* | linux*coff*)
12289 dynamic_linker=no
12290 ;;
12291
12292 linux*android*)
12293 version_type=none # Android doesn't support versioned libraries.
12294 need_lib_prefix=no
12295 need_version=no
12296 library_names_spec='$libname$release$shared_ext'
12297 soname_spec='$libname$release$shared_ext'
12298 finish_cmds=
12299 shlibpath_var=LD_LIBRARY_PATH
12300 shlibpath_overrides_runpath=yes
12301
12302 # This implies no fast_install, which is unacceptable.
12303 # Some rework will be needed to allow for fast_install
12304 # before this can be enabled.
12305 hardcode_into_libs=yes
12306
12307 dynamic_linker='Android linker'
12308 # Don't embed -rpath directories since the linker doesn't support them.
12309 hardcode_libdir_flag_spec='-L$libdir'
12310 ;;
12311
12312 # This must be glibc/ELF.
12313 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12314 version_type=linux # correct to gnu/linux during the next big refactor
12315 need_lib_prefix=no
12316 need_version=no
12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12318 soname_spec='$libname$release$shared_ext$major'
12319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12320 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=no
12322
12323 # Some binutils ld are patched to set DT_RUNPATH
12324 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326 else
12327 lt_cv_shlibpath_overrides_runpath=no
12328 save_LDFLAGS=$LDFLAGS
12329 save_libdir=$libdir
12330 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12331 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h. */
12334
12335 int
12336 main ()
12337 {
12338
12339 ;
12340 return 0;
12341 }
12342 _ACEOF
12343 if ac_fn_c_try_link "$LINENO"; then :
12344 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12345 lt_cv_shlibpath_overrides_runpath=yes
12346 fi
12347 fi
12348 rm -f core conftest.err conftest.$ac_objext \
12349 conftest$ac_exeext conftest.$ac_ext
12350 LDFLAGS=$save_LDFLAGS
12351 libdir=$save_libdir
12352
12353 fi
12354
12355 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12356
12357 # This implies no fast_install, which is unacceptable.
12358 # Some rework will be needed to allow for fast_install
12359 # before this can be enabled.
12360 hardcode_into_libs=yes
12361
12362 # Add ABI-specific directories to the system library path.
12363 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12364
12365 # Ideally, we could use ldconfig to report *all* directores which are
12366 # searched for libraries, however this is still not possible. Aside from not
12367 # being certain /sbin/ldconfig is available, command
12368 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12369 # even though it is searched at run-time. Try to do the best guess by
12370 # appending ld.so.conf contents (and includes) to the search path.
12371 if test -f /etc/ld.so.conf; then
12372 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' ' '`
12373 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12374 fi
12375
12376 # We used to test for /lib/ld.so.1 and disable shared libraries on
12377 # powerpc, because MkLinux only supported shared libraries with the
12378 # GNU dynamic linker. Since this was broken with cross compilers,
12379 # most powerpc-linux boxes support dynamic linking these days and
12380 # people can always --disable-shared, the test was removed, and we
12381 # assume the GNU/Linux dynamic linker is in use.
12382 dynamic_linker='GNU/Linux ld.so'
12383 ;;
12384
12385 netbsd*)
12386 version_type=sunos
12387 need_lib_prefix=no
12388 need_version=no
12389 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12390 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12392 dynamic_linker='NetBSD (a.out) ld.so'
12393 else
12394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395 soname_spec='$libname$release$shared_ext$major'
12396 dynamic_linker='NetBSD ld.elf_so'
12397 fi
12398 shlibpath_var=LD_LIBRARY_PATH
12399 shlibpath_overrides_runpath=yes
12400 hardcode_into_libs=yes
12401 ;;
12402
12403 newsos6)
12404 version_type=linux # correct to gnu/linux during the next big refactor
12405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12406 shlibpath_var=LD_LIBRARY_PATH
12407 shlibpath_overrides_runpath=yes
12408 ;;
12409
12410 *nto* | *qnx*)
12411 version_type=qnx
12412 need_lib_prefix=no
12413 need_version=no
12414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12415 soname_spec='$libname$release$shared_ext$major'
12416 shlibpath_var=LD_LIBRARY_PATH
12417 shlibpath_overrides_runpath=no
12418 hardcode_into_libs=yes
12419 dynamic_linker='ldqnx.so'
12420 ;;
12421
12422 openbsd* | bitrig*)
12423 version_type=sunos
12424 sys_lib_dlsearch_path_spec=/usr/lib
12425 need_lib_prefix=no
12426 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12427 need_version=no
12428 else
12429 need_version=yes
12430 fi
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12433 shlibpath_var=LD_LIBRARY_PATH
12434 shlibpath_overrides_runpath=yes
12435 ;;
12436
12437 os2*)
12438 libname_spec='$name'
12439 version_type=windows
12440 shrext_cmds=.dll
12441 need_version=no
12442 need_lib_prefix=no
12443 # OS/2 can only load a DLL with a base name of 8 characters or less.
12444 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12445 v=$($ECHO $release$versuffix | tr -d .-);
12446 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12447 $ECHO $n$v`$shared_ext'
12448 library_names_spec='${libname}_dll.$libext'
12449 dynamic_linker='OS/2 ld.exe'
12450 shlibpath_var=BEGINLIBPATH
12451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12453 postinstall_cmds='base_file=`basename \$file`~
12454 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12455 dldir=$destdir/`dirname \$dlpath`~
12456 test -d \$dldir || mkdir -p \$dldir~
12457 $install_prog $dir/$dlname \$dldir/$dlname~
12458 chmod a+x \$dldir/$dlname~
12459 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12460 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12461 fi'
12462 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12463 dlpath=$dir/\$dldll~
12464 $RM \$dlpath'
12465 ;;
12466
12467 osf3* | osf4* | osf5*)
12468 version_type=osf
12469 need_lib_prefix=no
12470 need_version=no
12471 soname_spec='$libname$release$shared_ext$major'
12472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12476 ;;
12477
12478 rdos*)
12479 dynamic_linker=no
12480 ;;
12481
12482 solaris*)
12483 version_type=linux # correct to gnu/linux during the next big refactor
12484 need_lib_prefix=no
12485 need_version=no
12486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12487 soname_spec='$libname$release$shared_ext$major'
12488 shlibpath_var=LD_LIBRARY_PATH
12489 shlibpath_overrides_runpath=yes
12490 hardcode_into_libs=yes
12491 # ldd complains unless libraries are executable
12492 postinstall_cmds='chmod +x $lib'
12493 ;;
12494
12495 sunos4*)
12496 version_type=sunos
12497 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12498 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12499 shlibpath_var=LD_LIBRARY_PATH
12500 shlibpath_overrides_runpath=yes
12501 if test yes = "$with_gnu_ld"; then
12502 need_lib_prefix=no
12503 fi
12504 need_version=yes
12505 ;;
12506
12507 sysv4 | sysv4.3*)
12508 version_type=linux # correct to gnu/linux during the next big refactor
12509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12510 soname_spec='$libname$release$shared_ext$major'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 case $host_vendor in
12513 sni)
12514 shlibpath_overrides_runpath=no
12515 need_lib_prefix=no
12516 runpath_var=LD_RUN_PATH
12517 ;;
12518 siemens)
12519 need_lib_prefix=no
12520 ;;
12521 motorola)
12522 need_lib_prefix=no
12523 need_version=no
12524 shlibpath_overrides_runpath=no
12525 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12526 ;;
12527 esac
12528 ;;
12529
12530 sysv4*MP*)
12531 if test -d /usr/nec; then
12532 version_type=linux # correct to gnu/linux during the next big refactor
12533 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12534 soname_spec='$libname$shared_ext.$major'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 fi
12537 ;;
12538
12539 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12540 version_type=sco
12541 need_lib_prefix=no
12542 need_version=no
12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12544 soname_spec='$libname$release$shared_ext$major'
12545 shlibpath_var=LD_LIBRARY_PATH
12546 shlibpath_overrides_runpath=yes
12547 hardcode_into_libs=yes
12548 if test yes = "$with_gnu_ld"; then
12549 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12550 else
12551 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12552 case $host_os in
12553 sco3.2v5*)
12554 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12555 ;;
12556 esac
12557 fi
12558 sys_lib_dlsearch_path_spec='/usr/lib'
12559 ;;
12560
12561 tpf*)
12562 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12563 version_type=linux # correct to gnu/linux during the next big refactor
12564 need_lib_prefix=no
12565 need_version=no
12566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 shlibpath_overrides_runpath=no
12569 hardcode_into_libs=yes
12570 ;;
12571
12572 uts4*)
12573 version_type=linux # correct to gnu/linux during the next big refactor
12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12575 soname_spec='$libname$release$shared_ext$major'
12576 shlibpath_var=LD_LIBRARY_PATH
12577 ;;
12578
12579 *)
12580 dynamic_linker=no
12581 ;;
12582 esac
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12584 $as_echo "$dynamic_linker" >&6; }
12585 test no = "$dynamic_linker" && can_build_shared=no
12586
12587 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12588 if test yes = "$GCC"; then
12589 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12590 fi
12591
12592 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12593 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12594 fi
12595
12596 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12597 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12598 fi
12599
12600 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12601 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12602
12603 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12604 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12605
12606 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12607 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12706 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12707 hardcode_action=
12708 if test -n "$hardcode_libdir_flag_spec" ||
12709 test -n "$runpath_var" ||
12710 test yes = "$hardcode_automatic"; then
12711
12712 # We can hardcode non-existent directories.
12713 if test no != "$hardcode_direct" &&
12714 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12715 # have to relink, otherwise we might link with an installed library
12716 # when we should be linking with a yet-to-be-installed one
12717 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12718 test no != "$hardcode_minus_L"; then
12719 # Linking always hardcodes the temporary library directory.
12720 hardcode_action=relink
12721 else
12722 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12723 hardcode_action=immediate
12724 fi
12725 else
12726 # We cannot hardcode anything, or else we can only hardcode existing
12727 # directories.
12728 hardcode_action=unsupported
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12731 $as_echo "$hardcode_action" >&6; }
12732
12733 if test relink = "$hardcode_action" ||
12734 test yes = "$inherit_rpath"; then
12735 # Fast installation is not supported
12736 enable_fast_install=no
12737 elif test yes = "$shlibpath_overrides_runpath" ||
12738 test no = "$enable_shared"; then
12739 # Fast installation is not necessary
12740 enable_fast_install=needless
12741 fi
12742
12743
12744
12745
12746
12747
12748 if test yes != "$enable_dlopen"; then
12749 enable_dlopen=unknown
12750 enable_dlopen_self=unknown
12751 enable_dlopen_self_static=unknown
12752 else
12753 lt_cv_dlopen=no
12754 lt_cv_dlopen_libs=
12755
12756 case $host_os in
12757 beos*)
12758 lt_cv_dlopen=load_add_on
12759 lt_cv_dlopen_libs=
12760 lt_cv_dlopen_self=yes
12761 ;;
12762
12763 mingw* | pw32* | cegcc*)
12764 lt_cv_dlopen=LoadLibrary
12765 lt_cv_dlopen_libs=
12766 ;;
12767
12768 cygwin*)
12769 lt_cv_dlopen=dlopen
12770 lt_cv_dlopen_libs=
12771 ;;
12772
12773 darwin*)
12774 # if libdl is installed we need to link against it
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12776 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12777 if ${ac_cv_lib_dl_dlopen+:} false; then :
12778 $as_echo_n "(cached) " >&6
12779 else
12780 ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-ldl $LIBS"
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784
12785 /* Override any GCC internal prototype to avoid an error.
12786 Use char because int might match the return type of a GCC
12787 builtin and then its argument prototype would still apply. */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 char dlopen ();
12792 int
12793 main ()
12794 {
12795 return dlopen ();
12796 ;
12797 return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_link "$LINENO"; then :
12801 ac_cv_lib_dl_dlopen=yes
12802 else
12803 ac_cv_lib_dl_dlopen=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12810 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12811 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12812 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12813 else
12814
12815 lt_cv_dlopen=dyld
12816 lt_cv_dlopen_libs=
12817 lt_cv_dlopen_self=yes
12818
12819 fi
12820
12821 ;;
12822
12823 tpf*)
12824 # Don't try to run any link tests for TPF. We know it's impossible
12825 # because TPF is a cross-compiler, and we know how we open DSOs.
12826 lt_cv_dlopen=dlopen
12827 lt_cv_dlopen_libs=
12828 lt_cv_dlopen_self=no
12829 ;;
12830
12831 *)
12832 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12833 if test "x$ac_cv_func_shl_load" = xyes; then :
12834 lt_cv_dlopen=shl_load
12835 else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12837 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12838 if ${ac_cv_lib_dld_shl_load+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-ldld $LIBS"
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845
12846 /* Override any GCC internal prototype to avoid an error.
12847 Use char because int might match the return type of a GCC
12848 builtin and then its argument prototype would still apply. */
12849 #ifdef __cplusplus
12850 extern "C"
12851 #endif
12852 char shl_load ();
12853 int
12854 main ()
12855 {
12856 return shl_load ();
12857 ;
12858 return 0;
12859 }
12860 _ACEOF
12861 if ac_fn_c_try_link "$LINENO"; then :
12862 ac_cv_lib_dld_shl_load=yes
12863 else
12864 ac_cv_lib_dld_shl_load=no
12865 fi
12866 rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_lib_save_LIBS
12869 fi
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12871 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12872 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12873 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12874 else
12875 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12876 if test "x$ac_cv_func_dlopen" = xyes; then :
12877 lt_cv_dlopen=dlopen
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12881 if ${ac_cv_lib_dl_dlopen+:} false; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 ac_check_lib_save_LIBS=$LIBS
12885 LIBS="-ldl $LIBS"
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888
12889 /* Override any GCC internal prototype to avoid an error.
12890 Use char because int might match the return type of a GCC
12891 builtin and then its argument prototype would still apply. */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 char dlopen ();
12896 int
12897 main ()
12898 {
12899 return dlopen ();
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_link "$LINENO"; then :
12905 ac_cv_lib_dl_dlopen=yes
12906 else
12907 ac_cv_lib_dl_dlopen=no
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12915 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12916 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12917 else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12919 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12920 if ${ac_cv_lib_svld_dlopen+:} false; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 ac_check_lib_save_LIBS=$LIBS
12924 LIBS="-lsvld $LIBS"
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927
12928 /* Override any GCC internal prototype to avoid an error.
12929 Use char because int might match the return type of a GCC
12930 builtin and then its argument prototype would still apply. */
12931 #ifdef __cplusplus
12932 extern "C"
12933 #endif
12934 char dlopen ();
12935 int
12936 main ()
12937 {
12938 return dlopen ();
12939 ;
12940 return 0;
12941 }
12942 _ACEOF
12943 if ac_fn_c_try_link "$LINENO"; then :
12944 ac_cv_lib_svld_dlopen=yes
12945 else
12946 ac_cv_lib_svld_dlopen=no
12947 fi
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12953 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12954 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12955 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12958 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12959 if ${ac_cv_lib_dld_dld_link+:} false; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 ac_check_lib_save_LIBS=$LIBS
12963 LIBS="-ldld $LIBS"
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966
12967 /* Override any GCC internal prototype to avoid an error.
12968 Use char because int might match the return type of a GCC
12969 builtin and then its argument prototype would still apply. */
12970 #ifdef __cplusplus
12971 extern "C"
12972 #endif
12973 char dld_link ();
12974 int
12975 main ()
12976 {
12977 return dld_link ();
12978 ;
12979 return 0;
12980 }
12981 _ACEOF
12982 if ac_fn_c_try_link "$LINENO"; then :
12983 ac_cv_lib_dld_dld_link=yes
12984 else
12985 ac_cv_lib_dld_dld_link=no
12986 fi
12987 rm -f core conftest.err conftest.$ac_objext \
12988 conftest$ac_exeext conftest.$ac_ext
12989 LIBS=$ac_check_lib_save_LIBS
12990 fi
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12992 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12993 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12994 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12995 fi
12996
12997
12998 fi
12999
13000
13001 fi
13002
13003
13004 fi
13005
13006
13007 fi
13008
13009
13010 fi
13011
13012 ;;
13013 esac
13014
13015 if test no = "$lt_cv_dlopen"; then
13016 enable_dlopen=no
13017 else
13018 enable_dlopen=yes
13019 fi
13020
13021 case $lt_cv_dlopen in
13022 dlopen)
13023 save_CPPFLAGS=$CPPFLAGS
13024 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13025
13026 save_LDFLAGS=$LDFLAGS
13027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13028
13029 save_LIBS=$LIBS
13030 LIBS="$lt_cv_dlopen_libs $LIBS"
13031
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13033 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13034 if ${lt_cv_dlopen_self+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036 else
13037 if test yes = "$cross_compiling"; then :
13038 lt_cv_dlopen_self=cross
13039 else
13040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13041 lt_status=$lt_dlunknown
13042 cat > conftest.$ac_ext <<_LT_EOF
13043 #line $LINENO "configure"
13044 #include "confdefs.h"
13045
13046 #if HAVE_DLFCN_H
13047 #include <dlfcn.h>
13048 #endif
13049
13050 #include <stdio.h>
13051
13052 #ifdef RTLD_GLOBAL
13053 # define LT_DLGLOBAL RTLD_GLOBAL
13054 #else
13055 # ifdef DL_GLOBAL
13056 # define LT_DLGLOBAL DL_GLOBAL
13057 # else
13058 # define LT_DLGLOBAL 0
13059 # endif
13060 #endif
13061
13062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13063 find out it does not work in some platform. */
13064 #ifndef LT_DLLAZY_OR_NOW
13065 # ifdef RTLD_LAZY
13066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13067 # else
13068 # ifdef DL_LAZY
13069 # define LT_DLLAZY_OR_NOW DL_LAZY
13070 # else
13071 # ifdef RTLD_NOW
13072 # define LT_DLLAZY_OR_NOW RTLD_NOW
13073 # else
13074 # ifdef DL_NOW
13075 # define LT_DLLAZY_OR_NOW DL_NOW
13076 # else
13077 # define LT_DLLAZY_OR_NOW 0
13078 # endif
13079 # endif
13080 # endif
13081 # endif
13082 #endif
13083
13084 /* When -fvisibility=hidden is used, assume the code has been annotated
13085 correspondingly for the symbols needed. */
13086 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13087 int fnord () __attribute__((visibility("default")));
13088 #endif
13089
13090 int fnord () { return 42; }
13091 int main ()
13092 {
13093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13094 int status = $lt_dlunknown;
13095
13096 if (self)
13097 {
13098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13099 else
13100 {
13101 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13102 else puts (dlerror ());
13103 }
13104 /* dlclose (self); */
13105 }
13106 else
13107 puts (dlerror ());
13108
13109 return status;
13110 }
13111 _LT_EOF
13112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13113 (eval $ac_link) 2>&5
13114 ac_status=$?
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13117 (./conftest; exit; ) >&5 2>/dev/null
13118 lt_status=$?
13119 case x$lt_status in
13120 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13121 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13122 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13123 esac
13124 else :
13125 # compilation failed
13126 lt_cv_dlopen_self=no
13127 fi
13128 fi
13129 rm -fr conftest*
13130
13131
13132 fi
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13134 $as_echo "$lt_cv_dlopen_self" >&6; }
13135
13136 if test yes = "$lt_cv_dlopen_self"; then
13137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13139 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13140 if ${lt_cv_dlopen_self_static+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test yes = "$cross_compiling"; then :
13144 lt_cv_dlopen_self_static=cross
13145 else
13146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13147 lt_status=$lt_dlunknown
13148 cat > conftest.$ac_ext <<_LT_EOF
13149 #line $LINENO "configure"
13150 #include "confdefs.h"
13151
13152 #if HAVE_DLFCN_H
13153 #include <dlfcn.h>
13154 #endif
13155
13156 #include <stdio.h>
13157
13158 #ifdef RTLD_GLOBAL
13159 # define LT_DLGLOBAL RTLD_GLOBAL
13160 #else
13161 # ifdef DL_GLOBAL
13162 # define LT_DLGLOBAL DL_GLOBAL
13163 # else
13164 # define LT_DLGLOBAL 0
13165 # endif
13166 #endif
13167
13168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13169 find out it does not work in some platform. */
13170 #ifndef LT_DLLAZY_OR_NOW
13171 # ifdef RTLD_LAZY
13172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13173 # else
13174 # ifdef DL_LAZY
13175 # define LT_DLLAZY_OR_NOW DL_LAZY
13176 # else
13177 # ifdef RTLD_NOW
13178 # define LT_DLLAZY_OR_NOW RTLD_NOW
13179 # else
13180 # ifdef DL_NOW
13181 # define LT_DLLAZY_OR_NOW DL_NOW
13182 # else
13183 # define LT_DLLAZY_OR_NOW 0
13184 # endif
13185 # endif
13186 # endif
13187 # endif
13188 #endif
13189
13190 /* When -fvisibility=hidden is used, assume the code has been annotated
13191 correspondingly for the symbols needed. */
13192 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13193 int fnord () __attribute__((visibility("default")));
13194 #endif
13195
13196 int fnord () { return 42; }
13197 int main ()
13198 {
13199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13200 int status = $lt_dlunknown;
13201
13202 if (self)
13203 {
13204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13205 else
13206 {
13207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13208 else puts (dlerror ());
13209 }
13210 /* dlclose (self); */
13211 }
13212 else
13213 puts (dlerror ());
13214
13215 return status;
13216 }
13217 _LT_EOF
13218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13219 (eval $ac_link) 2>&5
13220 ac_status=$?
13221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13222 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13223 (./conftest; exit; ) >&5 2>/dev/null
13224 lt_status=$?
13225 case x$lt_status in
13226 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13227 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13228 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13229 esac
13230 else :
13231 # compilation failed
13232 lt_cv_dlopen_self_static=no
13233 fi
13234 fi
13235 rm -fr conftest*
13236
13237
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13240 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13241 fi
13242
13243 CPPFLAGS=$save_CPPFLAGS
13244 LDFLAGS=$save_LDFLAGS
13245 LIBS=$save_LIBS
13246 ;;
13247 esac
13248
13249 case $lt_cv_dlopen_self in
13250 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13251 *) enable_dlopen_self=unknown ;;
13252 esac
13253
13254 case $lt_cv_dlopen_self_static in
13255 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13256 *) enable_dlopen_self_static=unknown ;;
13257 esac
13258 fi
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276 striplib=
13277 old_striplib=
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13279 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13280 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13281 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13282 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13284 $as_echo "yes" >&6; }
13285 else
13286 # FIXME - insert some real tests, host_os isn't really good enough
13287 case $host_os in
13288 darwin*)
13289 if test -n "$STRIP"; then
13290 striplib="$STRIP -x"
13291 old_striplib="$STRIP -S"
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13293 $as_echo "yes" >&6; }
13294 else
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298 ;;
13299 *)
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13302 ;;
13303 esac
13304 fi
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317 # Report what library types will actually be built
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13319 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13321 $as_echo "$can_build_shared" >&6; }
13322
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13324 $as_echo_n "checking whether to build shared libraries... " >&6; }
13325 test no = "$can_build_shared" && enable_shared=no
13326
13327 # On AIX, shared libraries and static libraries use the same namespace, and
13328 # are all built from PIC.
13329 case $host_os in
13330 aix3*)
13331 test yes = "$enable_shared" && enable_static=no
13332 if test -n "$RANLIB"; then
13333 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13334 postinstall_cmds='$RANLIB $lib'
13335 fi
13336 ;;
13337
13338 aix[4-9]*)
13339 if test ia64 != "$host_cpu"; then
13340 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13341 yes,aix,yes) ;; # shared object as lib.so file only
13342 yes,svr4,*) ;; # shared object as lib.so archive member only
13343 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13344 esac
13345 fi
13346 ;;
13347 esac
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13349 $as_echo "$enable_shared" >&6; }
13350
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13352 $as_echo_n "checking whether to build static libraries... " >&6; }
13353 # Make sure either enable_shared or enable_static is yes.
13354 test yes = "$enable_shared" || enable_static=yes
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13356 $as_echo "$enable_static" >&6; }
13357
13358
13359
13360
13361 fi
13362 ac_ext=c
13363 ac_cpp='$CPP $CPPFLAGS'
13364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13367
13368 CC=$lt_save_CC
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384 ac_config_commands="$ac_config_commands libtool"
13385
13386
13387
13388
13389 # Only expand once:
13390
13391
13392
13393 # Checks for header files.
13394 for ac_header in arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h
13395 do :
13396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13397 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13401 _ACEOF
13402
13403 fi
13404
13405 done
13406
13407
13408 # Enable C99.
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
13410 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
13411 if ${ac_cv_prog_cc_c99+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 ac_cv_prog_cc_c99=no
13415 ac_save_CC=$CC
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 #include <stdarg.h>
13419 #include <stdbool.h>
13420 #include <stdlib.h>
13421 #include <wchar.h>
13422 #include <stdio.h>
13423
13424 // Check varargs macros. These examples are taken from C99 6.10.3.5.
13425 #define debug(...) fprintf (stderr, __VA_ARGS__)
13426 #define showlist(...) puts (#__VA_ARGS__)
13427 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
13428 static void
13429 test_varargs_macros (void)
13430 {
13431 int x = 1234;
13432 int y = 5678;
13433 debug ("Flag");
13434 debug ("X = %d\n", x);
13435 showlist (The first, second, and third items.);
13436 report (x>y, "x is %d but y is %d", x, y);
13437 }
13438
13439 // Check long long types.
13440 #define BIG64 18446744073709551615ull
13441 #define BIG32 4294967295ul
13442 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
13443 #if !BIG_OK
13444 your preprocessor is broken;
13445 #endif
13446 #if BIG_OK
13447 #else
13448 your preprocessor is broken;
13449 #endif
13450 static long long int bignum = -9223372036854775807LL;
13451 static unsigned long long int ubignum = BIG64;
13452
13453 struct incomplete_array
13454 {
13455 int datasize;
13456 double data[];
13457 };
13458
13459 struct named_init {
13460 int number;
13461 const wchar_t *name;
13462 double average;
13463 };
13464
13465 typedef const char *ccp;
13466
13467 static inline int
13468 test_restrict (ccp restrict text)
13469 {
13470 // See if C++-style comments work.
13471 // Iterate through items via the restricted pointer.
13472 // Also check for declarations in for loops.
13473 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
13474 continue;
13475 return 0;
13476 }
13477
13478 // Check varargs and va_copy.
13479 static void
13480 test_varargs (const char *format, ...)
13481 {
13482 va_list args;
13483 va_start (args, format);
13484 va_list args_copy;
13485 va_copy (args_copy, args);
13486
13487 const char *str;
13488 int number;
13489 float fnumber;
13490
13491 while (*format)
13492 {
13493 switch (*format++)
13494 {
13495 case 's': // string
13496 str = va_arg (args_copy, const char *);
13497 break;
13498 case 'd': // int
13499 number = va_arg (args_copy, int);
13500 break;
13501 case 'f': // float
13502 fnumber = va_arg (args_copy, double);
13503 break;
13504 default:
13505 break;
13506 }
13507 }
13508 va_end (args_copy);
13509 va_end (args);
13510 }
13511
13512 int
13513 main ()
13514 {
13515
13516 // Check bool.
13517 _Bool success = false;
13518
13519 // Check restrict.
13520 if (test_restrict ("String literal") == 0)
13521 success = true;
13522 char *restrict newvar = "Another string";
13523
13524 // Check varargs.
13525 test_varargs ("s, d' f .", "string", 65, 34.234);
13526 test_varargs_macros ();
13527
13528 // Check flexible array members.
13529 struct incomplete_array *ia =
13530 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
13531 ia->datasize = 10;
13532 for (int i = 0; i < ia->datasize; ++i)
13533 ia->data[i] = i * 1.234;
13534
13535 // Check named initializers.
13536 struct named_init ni = {
13537 .number = 34,
13538 .name = L"Test wide string",
13539 .average = 543.34343,
13540 };
13541
13542 ni.number = 58;
13543
13544 int dynamic_array[ni.number];
13545 dynamic_array[ni.number - 1] = 543;
13546
13547 // work around unused variable warnings
13548 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
13549 || dynamic_array[ni.number - 1] != 543);
13550
13551 ;
13552 return 0;
13553 }
13554 _ACEOF
13555 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
13556 do
13557 CC="$ac_save_CC $ac_arg"
13558 if ac_fn_c_try_compile "$LINENO"; then :
13559 ac_cv_prog_cc_c99=$ac_arg
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext
13562 test "x$ac_cv_prog_cc_c99" != "xno" && break
13563 done
13564 rm -f conftest.$ac_ext
13565 CC=$ac_save_CC
13566
13567 fi
13568 # AC_CACHE_VAL
13569 case "x$ac_cv_prog_cc_c99" in
13570 x)
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13572 $as_echo "none needed" >&6; } ;;
13573 xno)
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13575 $as_echo "unsupported" >&6; } ;;
13576 *)
13577 CC="$CC $ac_cv_prog_cc_c99"
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
13579 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
13580 esac
13581 if test "x$ac_cv_prog_cc_c99" != xno; then :
13582
13583 fi
13584
13585
13586
13587 # Checks for library functions.
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_nquery" >&5
13589 $as_echo_n "checking for library containing __res_nquery... " >&6; }
13590 if ${ac_cv_search___res_nquery+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 ac_func_search_save_LIBS=$LIBS
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char __res_nquery ();
13604 int
13605 main ()
13606 {
13607 return __res_nquery ();
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 for ac_lib in '' resolv; do
13613 if test -z "$ac_lib"; then
13614 ac_res="none required"
13615 else
13616 ac_res=-l$ac_lib
13617 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13618 fi
13619 if ac_fn_c_try_link "$LINENO"; then :
13620 ac_cv_search___res_nquery=$ac_res
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext
13624 if ${ac_cv_search___res_nquery+:} false; then :
13625 break
13626 fi
13627 done
13628 if ${ac_cv_search___res_nquery+:} false; then :
13629
13630 else
13631 ac_cv_search___res_nquery=no
13632 fi
13633 rm conftest.$ac_ext
13634 LIBS=$ac_func_search_save_LIBS
13635 fi
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_nquery" >&5
13637 $as_echo "$ac_cv_search___res_nquery" >&6; }
13638 ac_res=$ac_cv_search___res_nquery
13639 if test "$ac_res" != no; then :
13640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13641
13642 fi
13643
13644 for ac_func in gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn
13645 do :
13646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13649 cat >>confdefs.h <<_ACEOF
13650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13651 _ACEOF
13652
13653 fi
13654 done
13655
13656
13657 # FreeBSD has a slightly different NSS interface
13658 case ${host} in
13659 *-freebsd*) freebsd="yes" ;;
13660 esac
13661
13662 if test "x$freebsd" = "xyes"; then
13663 FREEBSD_NSS_TRUE=
13664 FREEBSD_NSS_FALSE='#'
13665 else
13666 FREEBSD_NSS_TRUE='#'
13667 FREEBSD_NSS_FALSE=
13668 fi
13669
13670
13671 ac_config_files="$ac_config_files Makefile"
13672
13673 cat >confcache <<\_ACEOF
13674 # This file is a shell script that caches the results of configure
13675 # tests run on this system so they can be shared between configure
13676 # scripts and configure runs, see configure's option --config-cache.
13677 # It is not useful on other systems. If it contains results you don't
13678 # want to keep, you may remove or edit it.
13679 #
13680 # config.status only pays attention to the cache file if you give it
13681 # the --recheck option to rerun configure.
13682 #
13683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13685 # following values.
13686
13687 _ACEOF
13688
13689 # The following way of writing the cache mishandles newlines in values,
13690 # but we know of no workaround that is simple, portable, and efficient.
13691 # So, we kill variables containing newlines.
13692 # Ultrix sh set writes to stderr and can't be redirected directly,
13693 # and sets the high bit in the cache file unless we assign to the vars.
13694 (
13695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13696 eval ac_val=\$$ac_var
13697 case $ac_val in #(
13698 *${as_nl}*)
13699 case $ac_var in #(
13700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13702 esac
13703 case $ac_var in #(
13704 _ | IFS | as_nl) ;; #(
13705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13706 *) { eval $ac_var=; unset $ac_var;} ;;
13707 esac ;;
13708 esac
13709 done
13710
13711 (set) 2>&1 |
13712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13713 *${as_nl}ac_space=\ *)
13714 # `set' does not quote correctly, so add quotes: double-quote
13715 # substitution turns \\\\ into \\, and sed turns \\ into \.
13716 sed -n \
13717 "s/'/'\\\\''/g;
13718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13719 ;; #(
13720 *)
13721 # `set' quotes correctly as required by POSIX, so do not add quotes.
13722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13723 ;;
13724 esac |
13725 sort
13726 ) |
13727 sed '
13728 /^ac_cv_env_/b end
13729 t clear
13730 :clear
13731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13732 t end
13733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13734 :end' >>confcache
13735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13736 if test -w "$cache_file"; then
13737 if test "x$cache_file" != "x/dev/null"; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13739 $as_echo "$as_me: updating cache $cache_file" >&6;}
13740 if test ! -f "$cache_file" || test -h "$cache_file"; then
13741 cat confcache >"$cache_file"
13742 else
13743 case $cache_file in #(
13744 */* | ?:*)
13745 mv -f confcache "$cache_file"$$ &&
13746 mv -f "$cache_file"$$ "$cache_file" ;; #(
13747 *)
13748 mv -f confcache "$cache_file" ;;
13749 esac
13750 fi
13751 fi
13752 else
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13754 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13755 fi
13756 fi
13757 rm -f confcache
13758
13759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13760 # Let make expand exec_prefix.
13761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13762
13763 DEFS=-DHAVE_CONFIG_H
13764
13765 ac_libobjs=
13766 ac_ltlibobjs=
13767 U=
13768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13769 # 1. Remove the extension, and $U if already installed.
13770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13773 # will be set to the directory where LIBOBJS objects are built.
13774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13776 done
13777 LIBOBJS=$ac_libobjs
13778
13779 LTLIBOBJS=$ac_ltlibobjs
13780
13781
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13783 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13784 if test -n "$am_sleep_pid"; then
13785 # Hide warnings about reused PIDs.
13786 wait $am_sleep_pid 2>/dev/null
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13789 $as_echo "done" >&6; }
13790 if test -n "$EXEEXT"; then
13791 am__EXEEXT_TRUE=
13792 am__EXEEXT_FALSE='#'
13793 else
13794 am__EXEEXT_TRUE='#'
13795 am__EXEEXT_FALSE=
13796 fi
13797
13798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13799 as_fn_error $? "conditional \"AMDEP\" was never defined.
13800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13801 fi
13802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13805 fi
13806 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
13807 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
13808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13809 fi
13810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13813 fi
13814 if test -z "${FREEBSD_NSS_TRUE}" && test -z "${FREEBSD_NSS_FALSE}"; then
13815 as_fn_error $? "conditional \"FREEBSD_NSS\" was never defined.
13816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13817 fi
13818
13819 : "${CONFIG_STATUS=./config.status}"
13820 ac_write_fail=0
13821 ac_clean_files_save=$ac_clean_files
13822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13825 as_write_fail=0
13826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13827 #! $SHELL
13828 # Generated by $as_me.
13829 # Run this file to recreate the current configuration.
13830 # Compiler output produced by configure, useful for debugging
13831 # configure, is in config.log if it exists.
13832
13833 debug=false
13834 ac_cs_recheck=false
13835 ac_cs_silent=false
13836
13837 SHELL=\${CONFIG_SHELL-$SHELL}
13838 export SHELL
13839 _ASEOF
13840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13841 ## -------------------- ##
13842 ## M4sh Initialization. ##
13843 ## -------------------- ##
13844
13845 # Be more Bourne compatible
13846 DUALCASE=1; export DUALCASE # for MKS sh
13847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13848 emulate sh
13849 NULLCMD=:
13850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13851 # is contrary to our usage. Disable this feature.
13852 alias -g '${1+"$@"}'='"$@"'
13853 setopt NO_GLOB_SUBST
13854 else
13855 case `(set -o) 2>/dev/null` in #(
13856 *posix*) :
13857 set -o posix ;; #(
13858 *) :
13859 ;;
13860 esac
13861 fi
13862
13863
13864 as_nl='
13865 '
13866 export as_nl
13867 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13871 # Prefer a ksh shell builtin over an external printf program on Solaris,
13872 # but without wasting forks for bash or zsh.
13873 if test -z "$BASH_VERSION$ZSH_VERSION" \
13874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13875 as_echo='print -r --'
13876 as_echo_n='print -rn --'
13877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13878 as_echo='printf %s\n'
13879 as_echo_n='printf %s'
13880 else
13881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13883 as_echo_n='/usr/ucb/echo -n'
13884 else
13885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13886 as_echo_n_body='eval
13887 arg=$1;
13888 case $arg in #(
13889 *"$as_nl"*)
13890 expr "X$arg" : "X\\(.*\\)$as_nl";
13891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13892 esac;
13893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13894 '
13895 export as_echo_n_body
13896 as_echo_n='sh -c $as_echo_n_body as_echo'
13897 fi
13898 export as_echo_body
13899 as_echo='sh -c $as_echo_body as_echo'
13900 fi
13901
13902 # The user is always right.
13903 if test "${PATH_SEPARATOR+set}" != set; then
13904 PATH_SEPARATOR=:
13905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13907 PATH_SEPARATOR=';'
13908 }
13909 fi
13910
13911
13912 # IFS
13913 # We need space, tab and new line, in precisely that order. Quoting is
13914 # there to prevent editors from complaining about space-tab.
13915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13916 # splitting by setting IFS to empty value.)
13917 IFS=" "" $as_nl"
13918
13919 # Find who we are. Look in the path if we contain no directory separator.
13920 as_myself=
13921 case $0 in #((
13922 *[\\/]* ) as_myself=$0 ;;
13923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13925 do
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13929 done
13930 IFS=$as_save_IFS
13931
13932 ;;
13933 esac
13934 # We did not find ourselves, most probably we were run as `sh COMMAND'
13935 # in which case we are not to be found in the path.
13936 if test "x$as_myself" = x; then
13937 as_myself=$0
13938 fi
13939 if test ! -f "$as_myself"; then
13940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13941 exit 1
13942 fi
13943
13944 # Unset variables that we do not need and which cause bugs (e.g. in
13945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13946 # suppresses any "Segmentation fault" message there. '((' could
13947 # trigger a bug in pdksh 5.2.14.
13948 for as_var in BASH_ENV ENV MAIL MAILPATH
13949 do eval test x\${$as_var+set} = xset \
13950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13951 done
13952 PS1='$ '
13953 PS2='> '
13954 PS4='+ '
13955
13956 # NLS nuisances.
13957 LC_ALL=C
13958 export LC_ALL
13959 LANGUAGE=C
13960 export LANGUAGE
13961
13962 # CDPATH.
13963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13964
13965
13966 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13967 # ----------------------------------------
13968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13970 # script with STATUS, using 1 if that was 0.
13971 as_fn_error ()
13972 {
13973 as_status=$1; test $as_status -eq 0 && as_status=1
13974 if test "$4"; then
13975 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13977 fi
13978 $as_echo "$as_me: error: $2" >&2
13979 as_fn_exit $as_status
13980 } # as_fn_error
13981
13982
13983 # as_fn_set_status STATUS
13984 # -----------------------
13985 # Set $? to STATUS, without forking.
13986 as_fn_set_status ()
13987 {
13988 return $1
13989 } # as_fn_set_status
13990
13991 # as_fn_exit STATUS
13992 # -----------------
13993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13994 as_fn_exit ()
13995 {
13996 set +e
13997 as_fn_set_status $1
13998 exit $1
13999 } # as_fn_exit
14000
14001 # as_fn_unset VAR
14002 # ---------------
14003 # Portably unset VAR.
14004 as_fn_unset ()
14005 {
14006 { eval $1=; unset $1;}
14007 }
14008 as_unset=as_fn_unset
14009 # as_fn_append VAR VALUE
14010 # ----------------------
14011 # Append the text in VALUE to the end of the definition contained in VAR. Take
14012 # advantage of any shell optimizations that allow amortized linear growth over
14013 # repeated appends, instead of the typical quadratic growth present in naive
14014 # implementations.
14015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14016 eval 'as_fn_append ()
14017 {
14018 eval $1+=\$2
14019 }'
14020 else
14021 as_fn_append ()
14022 {
14023 eval $1=\$$1\$2
14024 }
14025 fi # as_fn_append
14026
14027 # as_fn_arith ARG...
14028 # ------------------
14029 # Perform arithmetic evaluation on the ARGs, and store the result in the
14030 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14031 # must be portable across $(()) and expr.
14032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14033 eval 'as_fn_arith ()
14034 {
14035 as_val=$(( $* ))
14036 }'
14037 else
14038 as_fn_arith ()
14039 {
14040 as_val=`expr "$@" || test $? -eq 1`
14041 }
14042 fi # as_fn_arith
14043
14044
14045 if expr a : '\(a\)' >/dev/null 2>&1 &&
14046 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14047 as_expr=expr
14048 else
14049 as_expr=false
14050 fi
14051
14052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14053 as_basename=basename
14054 else
14055 as_basename=false
14056 fi
14057
14058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14059 as_dirname=dirname
14060 else
14061 as_dirname=false
14062 fi
14063
14064 as_me=`$as_basename -- "$0" ||
14065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14066 X"$0" : 'X\(//\)$' \| \
14067 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14068 $as_echo X/"$0" |
14069 sed '/^.*\/\([^/][^/]*\)\/*$/{
14070 s//\1/
14071 q
14072 }
14073 /^X\/\(\/\/\)$/{
14074 s//\1/
14075 q
14076 }
14077 /^X\/\(\/\).*/{
14078 s//\1/
14079 q
14080 }
14081 s/.*/./; q'`
14082
14083 # Avoid depending upon Character Ranges.
14084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14087 as_cr_digits='0123456789'
14088 as_cr_alnum=$as_cr_Letters$as_cr_digits
14089
14090 ECHO_C= ECHO_N= ECHO_T=
14091 case `echo -n x` in #(((((
14092 -n*)
14093 case `echo 'xy\c'` in
14094 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14095 xy) ECHO_C='\c';;
14096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14097 ECHO_T=' ';;
14098 esac;;
14099 *)
14100 ECHO_N='-n';;
14101 esac
14102
14103 rm -f conf$$ conf$$.exe conf$$.file
14104 if test -d conf$$.dir; then
14105 rm -f conf$$.dir/conf$$.file
14106 else
14107 rm -f conf$$.dir
14108 mkdir conf$$.dir 2>/dev/null
14109 fi
14110 if (echo >conf$$.file) 2>/dev/null; then
14111 if ln -s conf$$.file conf$$ 2>/dev/null; then
14112 as_ln_s='ln -s'
14113 # ... but there are two gotchas:
14114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14116 # In both cases, we have to default to `cp -pR'.
14117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14118 as_ln_s='cp -pR'
14119 elif ln conf$$.file conf$$ 2>/dev/null; then
14120 as_ln_s=ln
14121 else
14122 as_ln_s='cp -pR'
14123 fi
14124 else
14125 as_ln_s='cp -pR'
14126 fi
14127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14128 rmdir conf$$.dir 2>/dev/null
14129
14130
14131 # as_fn_mkdir_p
14132 # -------------
14133 # Create "$as_dir" as a directory, including parents if necessary.
14134 as_fn_mkdir_p ()
14135 {
14136
14137 case $as_dir in #(
14138 -*) as_dir=./$as_dir;;
14139 esac
14140 test -d "$as_dir" || eval $as_mkdir_p || {
14141 as_dirs=
14142 while :; do
14143 case $as_dir in #(
14144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14145 *) as_qdir=$as_dir;;
14146 esac
14147 as_dirs="'$as_qdir' $as_dirs"
14148 as_dir=`$as_dirname -- "$as_dir" ||
14149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14150 X"$as_dir" : 'X\(//\)[^/]' \| \
14151 X"$as_dir" : 'X\(//\)$' \| \
14152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14153 $as_echo X"$as_dir" |
14154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14155 s//\1/
14156 q
14157 }
14158 /^X\(\/\/\)[^/].*/{
14159 s//\1/
14160 q
14161 }
14162 /^X\(\/\/\)$/{
14163 s//\1/
14164 q
14165 }
14166 /^X\(\/\).*/{
14167 s//\1/
14168 q
14169 }
14170 s/.*/./; q'`
14171 test -d "$as_dir" && break
14172 done
14173 test -z "$as_dirs" || eval "mkdir $as_dirs"
14174 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14175
14176
14177 } # as_fn_mkdir_p
14178 if mkdir -p . 2>/dev/null; then
14179 as_mkdir_p='mkdir -p "$as_dir"'
14180 else
14181 test -d ./-p && rmdir ./-p
14182 as_mkdir_p=false
14183 fi
14184
14185
14186 # as_fn_executable_p FILE
14187 # -----------------------
14188 # Test if FILE is an executable regular file.
14189 as_fn_executable_p ()
14190 {
14191 test -f "$1" && test -x "$1"
14192 } # as_fn_executable_p
14193 as_test_x='test -x'
14194 as_executable_p=as_fn_executable_p
14195
14196 # Sed expression to map a string onto a valid CPP name.
14197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14198
14199 # Sed expression to map a string onto a valid variable name.
14200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14201
14202
14203 exec 6>&1
14204 ## ----------------------------------- ##
14205 ## Main body of $CONFIG_STATUS script. ##
14206 ## ----------------------------------- ##
14207 _ASEOF
14208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14209
14210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14211 # Save the log message, to keep $0 and so on meaningful, and to
14212 # report actual input values of CONFIG_FILES etc. instead of their
14213 # values after options handling.
14214 ac_log="
14215 This file was extended by nss-mdns $as_me 0.15.1, which was
14216 generated by GNU Autoconf 2.69. Invocation command line was
14217
14218 CONFIG_FILES = $CONFIG_FILES
14219 CONFIG_HEADERS = $CONFIG_HEADERS
14220 CONFIG_LINKS = $CONFIG_LINKS
14221 CONFIG_COMMANDS = $CONFIG_COMMANDS
14222 $ $0 $@
14223
14224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14225 "
14226
14227 _ACEOF
14228
14229 case $ac_config_files in *"
14230 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14231 esac
14232
14233 case $ac_config_headers in *"
14234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14235 esac
14236
14237
14238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14239 # Files that config.status was made for.
14240 config_files="$ac_config_files"
14241 config_headers="$ac_config_headers"
14242 config_commands="$ac_config_commands"
14243
14244 _ACEOF
14245
14246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14247 ac_cs_usage="\
14248 \`$as_me' instantiates files and other configuration actions
14249 from templates according to the current configuration. Unless the files
14250 and actions are specified as TAGs, all are instantiated by default.
14251
14252 Usage: $0 [OPTION]... [TAG]...
14253
14254 -h, --help print this help, then exit
14255 -V, --version print version number and configuration settings, then exit
14256 --config print configuration, then exit
14257 -q, --quiet, --silent
14258 do not print progress messages
14259 -d, --debug don't remove temporary files
14260 --recheck update $as_me by reconfiguring in the same conditions
14261 --file=FILE[:TEMPLATE]
14262 instantiate the configuration file FILE
14263 --header=FILE[:TEMPLATE]
14264 instantiate the configuration header FILE
14265
14266 Configuration files:
14267 $config_files
14268
14269 Configuration headers:
14270 $config_headers
14271
14272 Configuration commands:
14273 $config_commands
14274
14275 Report bugs to <https://github.com/lathiat/nss-mdns/issues>."
14276
14277 _ACEOF
14278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14279 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14280 ac_cs_version="\\
14281 nss-mdns config.status 0.15.1
14282 configured by $0, generated by GNU Autoconf 2.69,
14283 with options \\"\$ac_cs_config\\"
14284
14285 Copyright (C) 2012 Free Software Foundation, Inc.
14286 This config.status script is free software; the Free Software Foundation
14287 gives unlimited permission to copy, distribute and modify it."
14288
14289 ac_pwd='$ac_pwd'
14290 srcdir='$srcdir'
14291 INSTALL='$INSTALL'
14292 MKDIR_P='$MKDIR_P'
14293 AWK='$AWK'
14294 test -n "\$AWK" || AWK=awk
14295 _ACEOF
14296
14297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14298 # The default lists apply if the user does not specify any file.
14299 ac_need_defaults=:
14300 while test $# != 0
14301 do
14302 case $1 in
14303 --*=?*)
14304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14306 ac_shift=:
14307 ;;
14308 --*=)
14309 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14310 ac_optarg=
14311 ac_shift=:
14312 ;;
14313 *)
14314 ac_option=$1
14315 ac_optarg=$2
14316 ac_shift=shift
14317 ;;
14318 esac
14319
14320 case $ac_option in
14321 # Handling of the options.
14322 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14323 ac_cs_recheck=: ;;
14324 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14325 $as_echo "$ac_cs_version"; exit ;;
14326 --config | --confi | --conf | --con | --co | --c )
14327 $as_echo "$ac_cs_config"; exit ;;
14328 --debug | --debu | --deb | --de | --d | -d )
14329 debug=: ;;
14330 --file | --fil | --fi | --f )
14331 $ac_shift
14332 case $ac_optarg in
14333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14334 '') as_fn_error $? "missing file argument" ;;
14335 esac
14336 as_fn_append CONFIG_FILES " '$ac_optarg'"
14337 ac_need_defaults=false;;
14338 --header | --heade | --head | --hea )
14339 $ac_shift
14340 case $ac_optarg in
14341 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14342 esac
14343 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14344 ac_need_defaults=false;;
14345 --he | --h)
14346 # Conflict between --help and --header
14347 as_fn_error $? "ambiguous option: \`$1'
14348 Try \`$0 --help' for more information.";;
14349 --help | --hel | -h )
14350 $as_echo "$ac_cs_usage"; exit ;;
14351 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14352 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14353 ac_cs_silent=: ;;
14354
14355 # This is an error.
14356 -*) as_fn_error $? "unrecognized option: \`$1'
14357 Try \`$0 --help' for more information." ;;
14358
14359 *) as_fn_append ac_config_targets " $1"
14360 ac_need_defaults=false ;;
14361
14362 esac
14363 shift
14364 done
14365
14366 ac_configure_extra_args=
14367
14368 if $ac_cs_silent; then
14369 exec 6>/dev/null
14370 ac_configure_extra_args="$ac_configure_extra_args --silent"
14371 fi
14372
14373 _ACEOF
14374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14375 if \$ac_cs_recheck; then
14376 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14377 shift
14378 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14379 CONFIG_SHELL='$SHELL'
14380 export CONFIG_SHELL
14381 exec "\$@"
14382 fi
14383
14384 _ACEOF
14385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14386 exec 5>>config.log
14387 {
14388 echo
14389 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14390 ## Running $as_me. ##
14391 _ASBOX
14392 $as_echo "$ac_log"
14393 } >&5
14394
14395 _ACEOF
14396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14397 #
14398 # INIT-COMMANDS
14399 #
14400 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14401
14402
14403 # The HP-UX ksh and POSIX shell print the target directory to stdout
14404 # if CDPATH is set.
14405 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14406
14407 sed_quote_subst='$sed_quote_subst'
14408 double_quote_subst='$double_quote_subst'
14409 delay_variable_subst='$delay_variable_subst'
14410 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14411 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14412 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14413 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14414 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14415 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14416 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14417 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14418 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14419 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14420 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14421 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14422 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14423 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14424 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14425 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14426 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14427 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14428 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14429 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14430 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14431 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14432 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14433 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14434 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14435 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14436 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14437 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14438 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14439 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14440 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14441 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14442 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14443 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14444 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14445 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14446 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14447 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14448 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14449 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14450 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14451 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14452 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14453 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14454 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14455 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14456 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14457 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14458 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14459 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14460 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14461 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14462 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14463 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14464 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14465 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14466 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14467 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14468 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"`'
14469 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14470 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14471 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14472 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14473 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14474 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14475 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14476 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14477 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14478 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14479 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14480 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14481 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14482 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14483 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14484 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14485 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14486 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14487 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14488 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14489 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14490 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14491 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14492 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14493 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14494 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14495 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14496 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14497 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14498 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14499 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14500 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14501 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14502 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14503 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14504 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14505 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14506 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14507 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14508 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14509 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14510 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14511 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14512 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14513 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14514 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14515 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14516 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14517 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14518 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14519 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14520 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14521 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14522 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14523 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14524 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14525 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14526 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14527 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14528 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14529 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14530 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14531 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14532 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14533 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14534 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14535 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14536 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14537 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14538 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14539 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14540 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14541 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14542 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14543 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14544 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14545
14546 LTCC='$LTCC'
14547 LTCFLAGS='$LTCFLAGS'
14548 compiler='$compiler_DEFAULT'
14549
14550 # A function that is used when there is no print builtin or printf.
14551 func_fallback_echo ()
14552 {
14553 eval 'cat <<_LTECHO_EOF
14554 \$1
14555 _LTECHO_EOF'
14556 }
14557
14558 # Quote evaled strings.
14559 for var in SHELL \
14560 ECHO \
14561 PATH_SEPARATOR \
14562 SED \
14563 GREP \
14564 EGREP \
14565 FGREP \
14566 LD \
14567 NM \
14568 LN_S \
14569 lt_SP2NL \
14570 lt_NL2SP \
14571 reload_flag \
14572 OBJDUMP \
14573 deplibs_check_method \
14574 file_magic_cmd \
14575 file_magic_glob \
14576 want_nocaseglob \
14577 DLLTOOL \
14578 sharedlib_from_linklib_cmd \
14579 AR \
14580 AR_FLAGS \
14581 archiver_list_spec \
14582 STRIP \
14583 RANLIB \
14584 CC \
14585 CFLAGS \
14586 compiler \
14587 lt_cv_sys_global_symbol_pipe \
14588 lt_cv_sys_global_symbol_to_cdecl \
14589 lt_cv_sys_global_symbol_to_import \
14590 lt_cv_sys_global_symbol_to_c_name_address \
14591 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14592 lt_cv_nm_interface \
14593 nm_file_list_spec \
14594 lt_cv_truncate_bin \
14595 lt_prog_compiler_no_builtin_flag \
14596 lt_prog_compiler_pic \
14597 lt_prog_compiler_wl \
14598 lt_prog_compiler_static \
14599 lt_cv_prog_compiler_c_o \
14600 need_locks \
14601 MANIFEST_TOOL \
14602 DSYMUTIL \
14603 NMEDIT \
14604 LIPO \
14605 OTOOL \
14606 OTOOL64 \
14607 shrext_cmds \
14608 export_dynamic_flag_spec \
14609 whole_archive_flag_spec \
14610 compiler_needs_object \
14611 with_gnu_ld \
14612 allow_undefined_flag \
14613 no_undefined_flag \
14614 hardcode_libdir_flag_spec \
14615 hardcode_libdir_separator \
14616 exclude_expsyms \
14617 include_expsyms \
14618 file_list_spec \
14619 variables_saved_for_relink \
14620 libname_spec \
14621 library_names_spec \
14622 soname_spec \
14623 install_override_mode \
14624 finish_eval \
14625 old_striplib \
14626 striplib; do
14627 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14628 *[\\\\\\\`\\"\\\$]*)
14629 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14630 ;;
14631 *)
14632 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14633 ;;
14634 esac
14635 done
14636
14637 # Double-quote double-evaled strings.
14638 for var in reload_cmds \
14639 old_postinstall_cmds \
14640 old_postuninstall_cmds \
14641 old_archive_cmds \
14642 extract_expsyms_cmds \
14643 old_archive_from_new_cmds \
14644 old_archive_from_expsyms_cmds \
14645 archive_cmds \
14646 archive_expsym_cmds \
14647 module_cmds \
14648 module_expsym_cmds \
14649 export_symbols_cmds \
14650 prelink_cmds \
14651 postlink_cmds \
14652 postinstall_cmds \
14653 postuninstall_cmds \
14654 finish_cmds \
14655 sys_lib_search_path_spec \
14656 configure_time_dlsearch_path \
14657 configure_time_lt_sys_library_path; do
14658 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14659 *[\\\\\\\`\\"\\\$]*)
14660 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14661 ;;
14662 *)
14663 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14664 ;;
14665 esac
14666 done
14667
14668 ac_aux_dir='$ac_aux_dir'
14669
14670 # See if we are running on zsh, and set the options that allow our
14671 # commands through without removal of \ escapes INIT.
14672 if test -n "\${ZSH_VERSION+set}"; then
14673 setopt NO_GLOB_SUBST
14674 fi
14675
14676
14677 PACKAGE='$PACKAGE'
14678 VERSION='$VERSION'
14679 RM='$RM'
14680 ofile='$ofile'
14681
14682
14683
14684
14685 _ACEOF
14686
14687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14688
14689 # Handling of arguments.
14690 for ac_config_target in $ac_config_targets
14691 do
14692 case $ac_config_target in
14693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14694 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14695 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14696 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14697
14698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14699 esac
14700 done
14701
14702
14703 # If the user did not use the arguments to specify the items to instantiate,
14704 # then the envvar interface is used. Set only those that are not.
14705 # We use the long form for the default assignment because of an extremely
14706 # bizarre bug on SunOS 4.1.3.
14707 if $ac_need_defaults; then
14708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14711 fi
14712
14713 # Have a temporary directory for convenience. Make it in the build tree
14714 # simply because there is no reason against having it here, and in addition,
14715 # creating and moving files from /tmp can sometimes cause problems.
14716 # Hook for its removal unless debugging.
14717 # Note that there is a small window in which the directory will not be cleaned:
14718 # after its creation but before its name has been assigned to `$tmp'.
14719 $debug ||
14720 {
14721 tmp= ac_tmp=
14722 trap 'exit_status=$?
14723 : "${ac_tmp:=$tmp}"
14724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14725 ' 0
14726 trap 'as_fn_exit 1' 1 2 13 15
14727 }
14728 # Create a (secure) tmp directory for tmp files.
14729
14730 {
14731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14732 test -d "$tmp"
14733 } ||
14734 {
14735 tmp=./conf$$-$RANDOM
14736 (umask 077 && mkdir "$tmp")
14737 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14738 ac_tmp=$tmp
14739
14740 # Set up the scripts for CONFIG_FILES section.
14741 # No need to generate them if there are no CONFIG_FILES.
14742 # This happens for instance with `./config.status config.h'.
14743 if test -n "$CONFIG_FILES"; then
14744
14745
14746 ac_cr=`echo X | tr X '\015'`
14747 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14748 # But we know of no other shell where ac_cr would be empty at this
14749 # point, so we can use a bashism as a fallback.
14750 if test "x$ac_cr" = x; then
14751 eval ac_cr=\$\'\\r\'
14752 fi
14753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14755 ac_cs_awk_cr='\\r'
14756 else
14757 ac_cs_awk_cr=$ac_cr
14758 fi
14759
14760 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14761 _ACEOF
14762
14763
14764 {
14765 echo "cat >conf$$subs.awk <<_ACEOF" &&
14766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14767 echo "_ACEOF"
14768 } >conf$$subs.sh ||
14769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14770 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14771 ac_delim='%!_!# '
14772 for ac_last_try in false false false false false :; do
14773 . ./conf$$subs.sh ||
14774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14775
14776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14777 if test $ac_delim_n = $ac_delim_num; then
14778 break
14779 elif $ac_last_try; then
14780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14781 else
14782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14783 fi
14784 done
14785 rm -f conf$$subs.sh
14786
14787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14788 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14789 _ACEOF
14790 sed -n '
14791 h
14792 s/^/S["/; s/!.*/"]=/
14793 p
14794 g
14795 s/^[^!]*!//
14796 :repl
14797 t repl
14798 s/'"$ac_delim"'$//
14799 t delim
14800 :nl
14801 h
14802 s/\(.\{148\}\)..*/\1/
14803 t more1
14804 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14805 p
14806 n
14807 b repl
14808 :more1
14809 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14810 p
14811 g
14812 s/.\{148\}//
14813 t nl
14814 :delim
14815 h
14816 s/\(.\{148\}\)..*/\1/
14817 t more2
14818 s/["\\]/\\&/g; s/^/"/; s/$/"/
14819 p
14820 b
14821 :more2
14822 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14823 p
14824 g
14825 s/.\{148\}//
14826 t delim
14827 ' <conf$$subs.awk | sed '
14828 /^[^""]/{
14829 N
14830 s/\n//
14831 }
14832 ' >>$CONFIG_STATUS || ac_write_fail=1
14833 rm -f conf$$subs.awk
14834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14835 _ACAWK
14836 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14837 for (key in S) S_is_set[key] = 1
14838 FS = ""
14839
14840 }
14841 {
14842 line = $ 0
14843 nfields = split(line, field, "@")
14844 substed = 0
14845 len = length(field[1])
14846 for (i = 2; i < nfields; i++) {
14847 key = field[i]
14848 keylen = length(key)
14849 if (S_is_set[key]) {
14850 value = S[key]
14851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14852 len += length(value) + length(field[++i])
14853 substed = 1
14854 } else
14855 len += 1 + keylen
14856 }
14857
14858 print line
14859 }
14860
14861 _ACAWK
14862 _ACEOF
14863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14864 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14866 else
14867 cat
14868 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14870 _ACEOF
14871
14872 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14873 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14874 # trailing colons and then remove the whole line if VPATH becomes empty
14875 # (actually we leave an empty line to preserve line numbers).
14876 if test "x$srcdir" = x.; then
14877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14878 h
14879 s///
14880 s/^/:/
14881 s/[ ]*$/:/
14882 s/:\$(srcdir):/:/g
14883 s/:\${srcdir}:/:/g
14884 s/:@srcdir@:/:/g
14885 s/^:*//
14886 s/:*$//
14887 x
14888 s/\(=[ ]*\).*/\1/
14889 G
14890 s/\n//
14891 s/^[^=]*=[ ]*$//
14892 }'
14893 fi
14894
14895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14896 fi # test -n "$CONFIG_FILES"
14897
14898 # Set up the scripts for CONFIG_HEADERS section.
14899 # No need to generate them if there are no CONFIG_HEADERS.
14900 # This happens for instance with `./config.status Makefile'.
14901 if test -n "$CONFIG_HEADERS"; then
14902 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14903 BEGIN {
14904 _ACEOF
14905
14906 # Transform confdefs.h into an awk script `defines.awk', embedded as
14907 # here-document in config.status, that substitutes the proper values into
14908 # config.h.in to produce config.h.
14909
14910 # Create a delimiter string that does not exist in confdefs.h, to ease
14911 # handling of long lines.
14912 ac_delim='%!_!# '
14913 for ac_last_try in false false :; do
14914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14915 if test -z "$ac_tt"; then
14916 break
14917 elif $ac_last_try; then
14918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14919 else
14920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14921 fi
14922 done
14923
14924 # For the awk script, D is an array of macro values keyed by name,
14925 # likewise P contains macro parameters if any. Preserve backslash
14926 # newline sequences.
14927
14928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14929 sed -n '
14930 s/.\{148\}/&'"$ac_delim"'/g
14931 t rset
14932 :rset
14933 s/^[ ]*#[ ]*define[ ][ ]*/ /
14934 t def
14935 d
14936 :def
14937 s/\\$//
14938 t bsnl
14939 s/["\\]/\\&/g
14940 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14941 D["\1"]=" \3"/p
14942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14943 d
14944 :bsnl
14945 s/["\\]/\\&/g
14946 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14947 D["\1"]=" \3\\\\\\n"\\/p
14948 t cont
14949 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14950 t cont
14951 d
14952 :cont
14953 n
14954 s/.\{148\}/&'"$ac_delim"'/g
14955 t clear
14956 :clear
14957 s/\\$//
14958 t bsnlc
14959 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14960 d
14961 :bsnlc
14962 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14963 b cont
14964 ' <confdefs.h | sed '
14965 s/'"$ac_delim"'/"\\\
14966 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14967
14968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14969 for (key in D) D_is_set[key] = 1
14970 FS = ""
14971 }
14972 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14973 line = \$ 0
14974 split(line, arg, " ")
14975 if (arg[1] == "#") {
14976 defundef = arg[2]
14977 mac1 = arg[3]
14978 } else {
14979 defundef = substr(arg[1], 2)
14980 mac1 = arg[2]
14981 }
14982 split(mac1, mac2, "(") #)
14983 macro = mac2[1]
14984 prefix = substr(line, 1, index(line, defundef) - 1)
14985 if (D_is_set[macro]) {
14986 # Preserve the white space surrounding the "#".
14987 print prefix "define", macro P[macro] D[macro]
14988 next
14989 } else {
14990 # Replace #undef with comments. This is necessary, for example,
14991 # in the case of _POSIX_SOURCE, which is predefined and required
14992 # on some systems where configure will not decide to define it.
14993 if (defundef == "undef") {
14994 print "/*", prefix defundef, macro, "*/"
14995 next
14996 }
14997 }
14998 }
14999 { print }
15000 _ACAWK
15001 _ACEOF
15002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15004 fi # test -n "$CONFIG_HEADERS"
15005
15006
15007 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15008 shift
15009 for ac_tag
15010 do
15011 case $ac_tag in
15012 :[FHLC]) ac_mode=$ac_tag; continue;;
15013 esac
15014 case $ac_mode$ac_tag in
15015 :[FHL]*:*);;
15016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15017 :[FH]-) ac_tag=-:-;;
15018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15019 esac
15020 ac_save_IFS=$IFS
15021 IFS=:
15022 set x $ac_tag
15023 IFS=$ac_save_IFS
15024 shift
15025 ac_file=$1
15026 shift
15027
15028 case $ac_mode in
15029 :L) ac_source=$1;;
15030 :[FH])
15031 ac_file_inputs=
15032 for ac_f
15033 do
15034 case $ac_f in
15035 -) ac_f="$ac_tmp/stdin";;
15036 *) # Look for the file first in the build tree, then in the source tree
15037 # (if the path is not absolute). The absolute path cannot be DOS-style,
15038 # because $ac_f cannot contain `:'.
15039 test -f "$ac_f" ||
15040 case $ac_f in
15041 [\\/$]*) false;;
15042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15043 esac ||
15044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15045 esac
15046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15047 as_fn_append ac_file_inputs " '$ac_f'"
15048 done
15049
15050 # Let's still pretend it is `configure' which instantiates (i.e., don't
15051 # use $as_me), people would be surprised to read:
15052 # /* config.h. Generated by config.status. */
15053 configure_input='Generated from '`
15054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15055 `' by configure.'
15056 if test x"$ac_file" != x-; then
15057 configure_input="$ac_file. $configure_input"
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15059 $as_echo "$as_me: creating $ac_file" >&6;}
15060 fi
15061 # Neutralize special characters interpreted by sed in replacement strings.
15062 case $configure_input in #(
15063 *\&* | *\|* | *\\* )
15064 ac_sed_conf_input=`$as_echo "$configure_input" |
15065 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15066 *) ac_sed_conf_input=$configure_input;;
15067 esac
15068
15069 case $ac_tag in
15070 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15072 esac
15073 ;;
15074 esac
15075
15076 ac_dir=`$as_dirname -- "$ac_file" ||
15077 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15078 X"$ac_file" : 'X\(//\)[^/]' \| \
15079 X"$ac_file" : 'X\(//\)$' \| \
15080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15081 $as_echo X"$ac_file" |
15082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15083 s//\1/
15084 q
15085 }
15086 /^X\(\/\/\)[^/].*/{
15087 s//\1/
15088 q
15089 }
15090 /^X\(\/\/\)$/{
15091 s//\1/
15092 q
15093 }
15094 /^X\(\/\).*/{
15095 s//\1/
15096 q
15097 }
15098 s/.*/./; q'`
15099 as_dir="$ac_dir"; as_fn_mkdir_p
15100 ac_builddir=.
15101
15102 case "$ac_dir" in
15103 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15104 *)
15105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15106 # A ".." for each directory in $ac_dir_suffix.
15107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15108 case $ac_top_builddir_sub in
15109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15111 esac ;;
15112 esac
15113 ac_abs_top_builddir=$ac_pwd
15114 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15115 # for backward compatibility:
15116 ac_top_builddir=$ac_top_build_prefix
15117
15118 case $srcdir in
15119 .) # We are building in place.
15120 ac_srcdir=.
15121 ac_top_srcdir=$ac_top_builddir_sub
15122 ac_abs_top_srcdir=$ac_pwd ;;
15123 [\\/]* | ?:[\\/]* ) # Absolute name.
15124 ac_srcdir=$srcdir$ac_dir_suffix;
15125 ac_top_srcdir=$srcdir
15126 ac_abs_top_srcdir=$srcdir ;;
15127 *) # Relative name.
15128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15129 ac_top_srcdir=$ac_top_build_prefix$srcdir
15130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15131 esac
15132 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15133
15134
15135 case $ac_mode in
15136 :F)
15137 #
15138 # CONFIG_FILE
15139 #
15140
15141 case $INSTALL in
15142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15144 esac
15145 ac_MKDIR_P=$MKDIR_P
15146 case $MKDIR_P in
15147 [\\/$]* | ?:[\\/]* ) ;;
15148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15149 esac
15150 _ACEOF
15151
15152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15153 # If the template does not know about datarootdir, expand it.
15154 # FIXME: This hack should be removed a few years after 2.60.
15155 ac_datarootdir_hack=; ac_datarootdir_seen=
15156 ac_sed_dataroot='
15157 /datarootdir/ {
15158 p
15159 q
15160 }
15161 /@datadir@/p
15162 /@docdir@/p
15163 /@infodir@/p
15164 /@localedir@/p
15165 /@mandir@/p'
15166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15167 *datarootdir*) ac_datarootdir_seen=yes;;
15168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15171 _ACEOF
15172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15173 ac_datarootdir_hack='
15174 s&@datadir@&$datadir&g
15175 s&@docdir@&$docdir&g
15176 s&@infodir@&$infodir&g
15177 s&@localedir@&$localedir&g
15178 s&@mandir@&$mandir&g
15179 s&\\\${datarootdir}&$datarootdir&g' ;;
15180 esac
15181 _ACEOF
15182
15183 # Neutralize VPATH when `$srcdir' = `.'.
15184 # Shell code in configure.ac might set extrasub.
15185 # FIXME: do we really want to maintain this feature?
15186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187 ac_sed_extra="$ac_vpsub
15188 $extrasub
15189 _ACEOF
15190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15191 :t
15192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15193 s|@configure_input@|$ac_sed_conf_input|;t t
15194 s&@top_builddir@&$ac_top_builddir_sub&;t t
15195 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15196 s&@srcdir@&$ac_srcdir&;t t
15197 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15198 s&@top_srcdir@&$ac_top_srcdir&;t t
15199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15200 s&@builddir@&$ac_builddir&;t t
15201 s&@abs_builddir@&$ac_abs_builddir&;t t
15202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15203 s&@INSTALL@&$ac_INSTALL&;t t
15204 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15205 $ac_datarootdir_hack
15206 "
15207 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15209
15210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15213 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15215 which seems to be undefined. Please make sure it is defined" >&5
15216 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15217 which seems to be undefined. Please make sure it is defined" >&2;}
15218
15219 rm -f "$ac_tmp/stdin"
15220 case $ac_file in
15221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15223 esac \
15224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15225 ;;
15226 :H)
15227 #
15228 # CONFIG_HEADER
15229 #
15230 if test x"$ac_file" != x-; then
15231 {
15232 $as_echo "/* $configure_input */" \
15233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15234 } >"$ac_tmp/config.h" \
15235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15238 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15239 else
15240 rm -f "$ac_file"
15241 mv "$ac_tmp/config.h" "$ac_file" \
15242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15243 fi
15244 else
15245 $as_echo "/* $configure_input */" \
15246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15247 || as_fn_error $? "could not create -" "$LINENO" 5
15248 fi
15249 # Compute "$ac_file"'s index in $config_headers.
15250 _am_arg="$ac_file"
15251 _am_stamp_count=1
15252 for _am_header in $config_headers :; do
15253 case $_am_header in
15254 $_am_arg | $_am_arg:* )
15255 break ;;
15256 * )
15257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15258 esac
15259 done
15260 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15261 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15262 X"$_am_arg" : 'X\(//\)[^/]' \| \
15263 X"$_am_arg" : 'X\(//\)$' \| \
15264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15265 $as_echo X"$_am_arg" |
15266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15267 s//\1/
15268 q
15269 }
15270 /^X\(\/\/\)[^/].*/{
15271 s//\1/
15272 q
15273 }
15274 /^X\(\/\/\)$/{
15275 s//\1/
15276 q
15277 }
15278 /^X\(\/\).*/{
15279 s//\1/
15280 q
15281 }
15282 s/.*/./; q'`/stamp-h$_am_stamp_count
15283 ;;
15284
15285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15286 $as_echo "$as_me: executing $ac_file commands" >&6;}
15287 ;;
15288 esac
15289
15290
15291 case $ac_file$ac_mode in
15292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15293 # Older Autoconf quotes --file arguments for eval, but not when files
15294 # are listed without --file. Let's play safe and only enable the eval
15295 # if we detect the quoting.
15296 # TODO: see whether this extra hack can be removed once we start
15297 # requiring Autoconf 2.70 or later.
15298 case $CONFIG_FILES in #(
15299 *\'*) :
15300 eval set x "$CONFIG_FILES" ;; #(
15301 *) :
15302 set x $CONFIG_FILES ;; #(
15303 *) :
15304 ;;
15305 esac
15306 shift
15307 # Used to flag and report bootstrapping failures.
15308 am_rc=0
15309 for am_mf
15310 do
15311 # Strip MF so we end up with the name of the file.
15312 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
15313 # Check whether this is an Automake generated Makefile which includes
15314 # dependency-tracking related rules and includes.
15315 # Grep'ing the whole file directly is not great: AIX grep has a line
15316 # limit of 2048, but all sed's we know have understand at least 4000.
15317 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15318 || continue
15319 am_dirpart=`$as_dirname -- "$am_mf" ||
15320 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15321 X"$am_mf" : 'X\(//\)[^/]' \| \
15322 X"$am_mf" : 'X\(//\)$' \| \
15323 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15324 $as_echo X"$am_mf" |
15325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15326 s//\1/
15327 q
15328 }
15329 /^X\(\/\/\)[^/].*/{
15330 s//\1/
15331 q
15332 }
15333 /^X\(\/\/\)$/{
15334 s//\1/
15335 q
15336 }
15337 /^X\(\/\).*/{
15338 s//\1/
15339 q
15340 }
15341 s/.*/./; q'`
15342 am_filepart=`$as_basename -- "$am_mf" ||
15343 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15344 X"$am_mf" : 'X\(//\)$' \| \
15345 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15346 $as_echo X/"$am_mf" |
15347 sed '/^.*\/\([^/][^/]*\)\/*$/{
15348 s//\1/
15349 q
15350 }
15351 /^X\/\(\/\/\)$/{
15352 s//\1/
15353 q
15354 }
15355 /^X\/\(\/\).*/{
15356 s//\1/
15357 q
15358 }
15359 s/.*/./; q'`
15360 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15361 && sed -e '/# am--include-marker/d' "$am_filepart" \
15362 | $MAKE -f - am--depfiles" >&5
15363 (cd "$am_dirpart" \
15364 && sed -e '/# am--include-marker/d' "$am_filepart" \
15365 | $MAKE -f - am--depfiles) >&5 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } || am_rc=$?
15369 done
15370 if test $am_rc -ne 0; then
15371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15373 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15374 for automatic dependency tracking. If GNU make was not used, consider
15375 re-running the configure script with MAKE=\"gmake\" (or whatever is
15376 necessary). You can also try re-running configure with the
15377 '--disable-dependency-tracking' option to at least be able to build
15378 the package (albeit without support for automatic dependency tracking).
15379 See \`config.log' for more details" "$LINENO" 5; }
15380 fi
15381 { am_dirpart=; unset am_dirpart;}
15382 { am_filepart=; unset am_filepart;}
15383 { am_mf=; unset am_mf;}
15384 { am_rc=; unset am_rc;}
15385 rm -f conftest-deps.mk
15386 }
15387 ;;
15388 "libtool":C)
15389
15390 # See if we are running on zsh, and set the options that allow our
15391 # commands through without removal of \ escapes.
15392 if test -n "${ZSH_VERSION+set}"; then
15393 setopt NO_GLOB_SUBST
15394 fi
15395
15396 cfgfile=${ofile}T
15397 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15398 $RM "$cfgfile"
15399
15400 cat <<_LT_EOF >> "$cfgfile"
15401 #! $SHELL
15402 # Generated automatically by $as_me ($PACKAGE) $VERSION
15403 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15404 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15405
15406 # Provide generalized library-building support services.
15407 # Written by Gordon Matzigkeit, 1996
15408
15409 # Copyright (C) 2014 Free Software Foundation, Inc.
15410 # This is free software; see the source for copying conditions. There is NO
15411 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15412
15413 # GNU Libtool is free software; you can redistribute it and/or modify
15414 # it under the terms of the GNU General Public License as published by
15415 # the Free Software Foundation; either version 2 of of the License, or
15416 # (at your option) any later version.
15417 #
15418 # As a special exception to the GNU General Public License, if you
15419 # distribute this file as part of a program or library that is built
15420 # using GNU Libtool, you may include this file under the same
15421 # distribution terms that you use for the rest of that program.
15422 #
15423 # GNU Libtool is distributed in the hope that it will be useful, but
15424 # WITHOUT ANY WARRANTY; without even the implied warranty of
15425 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15426 # GNU General Public License for more details.
15427 #
15428 # You should have received a copy of the GNU General Public License
15429 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15430
15431
15432 # The names of the tagged configurations supported by this script.
15433 available_tags=''
15434
15435 # Configured defaults for sys_lib_dlsearch_path munging.
15436 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15437
15438 # ### BEGIN LIBTOOL CONFIG
15439
15440 # Whether or not to build static libraries.
15441 build_old_libs=$enable_static
15442
15443 # Which release of libtool.m4 was used?
15444 macro_version=$macro_version
15445 macro_revision=$macro_revision
15446
15447 # Whether or not to build shared libraries.
15448 build_libtool_libs=$enable_shared
15449
15450 # What type of objects to build.
15451 pic_mode=$pic_mode
15452
15453 # Whether or not to optimize for fast installation.
15454 fast_install=$enable_fast_install
15455
15456 # Shared archive member basename,for filename based shared library versioning on AIX.
15457 shared_archive_member_spec=$shared_archive_member_spec
15458
15459 # Shell to use when invoking shell scripts.
15460 SHELL=$lt_SHELL
15461
15462 # An echo program that protects backslashes.
15463 ECHO=$lt_ECHO
15464
15465 # The PATH separator for the build system.
15466 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15467
15468 # The host system.
15469 host_alias=$host_alias
15470 host=$host
15471 host_os=$host_os
15472
15473 # The build system.
15474 build_alias=$build_alias
15475 build=$build
15476 build_os=$build_os
15477
15478 # A sed program that does not truncate output.
15479 SED=$lt_SED
15480
15481 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15482 Xsed="\$SED -e 1s/^X//"
15483
15484 # A grep program that handles long lines.
15485 GREP=$lt_GREP
15486
15487 # An ERE matcher.
15488 EGREP=$lt_EGREP
15489
15490 # A literal string matcher.
15491 FGREP=$lt_FGREP
15492
15493 # A BSD- or MS-compatible name lister.
15494 NM=$lt_NM
15495
15496 # Whether we need soft or hard links.
15497 LN_S=$lt_LN_S
15498
15499 # What is the maximum length of a command?
15500 max_cmd_len=$max_cmd_len
15501
15502 # Object file suffix (normally "o").
15503 objext=$ac_objext
15504
15505 # Executable file suffix (normally "").
15506 exeext=$exeext
15507
15508 # whether the shell understands "unset".
15509 lt_unset=$lt_unset
15510
15511 # turn spaces into newlines.
15512 SP2NL=$lt_lt_SP2NL
15513
15514 # turn newlines into spaces.
15515 NL2SP=$lt_lt_NL2SP
15516
15517 # convert \$build file names to \$host format.
15518 to_host_file_cmd=$lt_cv_to_host_file_cmd
15519
15520 # convert \$build files to toolchain format.
15521 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15522
15523 # An object symbol dumper.
15524 OBJDUMP=$lt_OBJDUMP
15525
15526 # Method to check whether dependent libraries are shared objects.
15527 deplibs_check_method=$lt_deplibs_check_method
15528
15529 # Command to use when deplibs_check_method = "file_magic".
15530 file_magic_cmd=$lt_file_magic_cmd
15531
15532 # How to find potential files when deplibs_check_method = "file_magic".
15533 file_magic_glob=$lt_file_magic_glob
15534
15535 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15536 want_nocaseglob=$lt_want_nocaseglob
15537
15538 # DLL creation program.
15539 DLLTOOL=$lt_DLLTOOL
15540
15541 # Command to associate shared and link libraries.
15542 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15543
15544 # The archiver.
15545 AR=$lt_AR
15546
15547 # Flags to create an archive.
15548 AR_FLAGS=$lt_AR_FLAGS
15549
15550 # How to feed a file listing to the archiver.
15551 archiver_list_spec=$lt_archiver_list_spec
15552
15553 # A symbol stripping program.
15554 STRIP=$lt_STRIP
15555
15556 # Commands used to install an old-style archive.
15557 RANLIB=$lt_RANLIB
15558 old_postinstall_cmds=$lt_old_postinstall_cmds
15559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15560
15561 # Whether to use a lock for old archive extraction.
15562 lock_old_archive_extraction=$lock_old_archive_extraction
15563
15564 # A C compiler.
15565 LTCC=$lt_CC
15566
15567 # LTCC compiler flags.
15568 LTCFLAGS=$lt_CFLAGS
15569
15570 # Take the output of nm and produce a listing of raw symbols and C names.
15571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15572
15573 # Transform the output of nm in a proper C declaration.
15574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15575
15576 # Transform the output of nm into a list of symbols to manually relocate.
15577 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15578
15579 # Transform the output of nm in a C name address pair.
15580 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15581
15582 # Transform the output of nm in a C name address pair when lib prefix is needed.
15583 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15584
15585 # The name lister interface.
15586 nm_interface=$lt_lt_cv_nm_interface
15587
15588 # Specify filename containing input files for \$NM.
15589 nm_file_list_spec=$lt_nm_file_list_spec
15590
15591 # The root where to search for dependent libraries,and where our libraries should be installed.
15592 lt_sysroot=$lt_sysroot
15593
15594 # Command to truncate a binary pipe.
15595 lt_truncate_bin=$lt_lt_cv_truncate_bin
15596
15597 # The name of the directory that contains temporary libtool files.
15598 objdir=$objdir
15599
15600 # Used to examine libraries when file_magic_cmd begins with "file".
15601 MAGIC_CMD=$MAGIC_CMD
15602
15603 # Must we lock files when doing compilation?
15604 need_locks=$lt_need_locks
15605
15606 # Manifest tool.
15607 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15608
15609 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15610 DSYMUTIL=$lt_DSYMUTIL
15611
15612 # Tool to change global to local symbols on Mac OS X.
15613 NMEDIT=$lt_NMEDIT
15614
15615 # Tool to manipulate fat objects and archives on Mac OS X.
15616 LIPO=$lt_LIPO
15617
15618 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15619 OTOOL=$lt_OTOOL
15620
15621 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15622 OTOOL64=$lt_OTOOL64
15623
15624 # Old archive suffix (normally "a").
15625 libext=$libext
15626
15627 # Shared library suffix (normally ".so").
15628 shrext_cmds=$lt_shrext_cmds
15629
15630 # The commands to extract the exported symbol list from a shared archive.
15631 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15632
15633 # Variables whose values should be saved in libtool wrapper scripts and
15634 # restored at link time.
15635 variables_saved_for_relink=$lt_variables_saved_for_relink
15636
15637 # Do we need the "lib" prefix for modules?
15638 need_lib_prefix=$need_lib_prefix
15639
15640 # Do we need a version for libraries?
15641 need_version=$need_version
15642
15643 # Library versioning type.
15644 version_type=$version_type
15645
15646 # Shared library runtime path variable.
15647 runpath_var=$runpath_var
15648
15649 # Shared library path variable.
15650 shlibpath_var=$shlibpath_var
15651
15652 # Is shlibpath searched before the hard-coded library search path?
15653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15654
15655 # Format of library name prefix.
15656 libname_spec=$lt_libname_spec
15657
15658 # List of archive names. First name is the real one, the rest are links.
15659 # The last name is the one that the linker finds with -lNAME
15660 library_names_spec=$lt_library_names_spec
15661
15662 # The coded name of the library, if different from the real name.
15663 soname_spec=$lt_soname_spec
15664
15665 # Permission mode override for installation of shared libraries.
15666 install_override_mode=$lt_install_override_mode
15667
15668 # Command to use after installation of a shared archive.
15669 postinstall_cmds=$lt_postinstall_cmds
15670
15671 # Command to use after uninstallation of a shared archive.
15672 postuninstall_cmds=$lt_postuninstall_cmds
15673
15674 # Commands used to finish a libtool library installation in a directory.
15675 finish_cmds=$lt_finish_cmds
15676
15677 # As "finish_cmds", except a single script fragment to be evaled but
15678 # not shown.
15679 finish_eval=$lt_finish_eval
15680
15681 # Whether we should hardcode library paths into libraries.
15682 hardcode_into_libs=$hardcode_into_libs
15683
15684 # Compile-time system search path for libraries.
15685 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15686
15687 # Detected run-time system search path for libraries.
15688 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15689
15690 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15691 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15692
15693 # Whether dlopen is supported.
15694 dlopen_support=$enable_dlopen
15695
15696 # Whether dlopen of programs is supported.
15697 dlopen_self=$enable_dlopen_self
15698
15699 # Whether dlopen of statically linked programs is supported.
15700 dlopen_self_static=$enable_dlopen_self_static
15701
15702 # Commands to strip libraries.
15703 old_striplib=$lt_old_striplib
15704 striplib=$lt_striplib
15705
15706
15707 # The linker used to build libraries.
15708 LD=$lt_LD
15709
15710 # How to create reloadable object files.
15711 reload_flag=$lt_reload_flag
15712 reload_cmds=$lt_reload_cmds
15713
15714 # Commands used to build an old-style archive.
15715 old_archive_cmds=$lt_old_archive_cmds
15716
15717 # A language specific compiler.
15718 CC=$lt_compiler
15719
15720 # Is the compiler the GNU compiler?
15721 with_gcc=$GCC
15722
15723 # Compiler flag to turn off builtin functions.
15724 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15725
15726 # Additional compiler flags for building library objects.
15727 pic_flag=$lt_lt_prog_compiler_pic
15728
15729 # How to pass a linker flag through the compiler.
15730 wl=$lt_lt_prog_compiler_wl
15731
15732 # Compiler flag to prevent dynamic linking.
15733 link_static_flag=$lt_lt_prog_compiler_static
15734
15735 # Does compiler simultaneously support -c and -o options?
15736 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15737
15738 # Whether or not to add -lc for building shared libraries.
15739 build_libtool_need_lc=$archive_cmds_need_lc
15740
15741 # Whether or not to disallow shared libs when runtime libs are static.
15742 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15743
15744 # Compiler flag to allow reflexive dlopens.
15745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15746
15747 # Compiler flag to generate shared objects directly from archives.
15748 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15749
15750 # Whether the compiler copes with passing no objects directly.
15751 compiler_needs_object=$lt_compiler_needs_object
15752
15753 # Create an old-style archive from a shared archive.
15754 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15755
15756 # Create a temporary old-style archive to link instead of a shared archive.
15757 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15758
15759 # Commands used to build a shared archive.
15760 archive_cmds=$lt_archive_cmds
15761 archive_expsym_cmds=$lt_archive_expsym_cmds
15762
15763 # Commands used to build a loadable module if different from building
15764 # a shared archive.
15765 module_cmds=$lt_module_cmds
15766 module_expsym_cmds=$lt_module_expsym_cmds
15767
15768 # Whether we are building with GNU ld or not.
15769 with_gnu_ld=$lt_with_gnu_ld
15770
15771 # Flag that allows shared libraries with undefined symbols to be built.
15772 allow_undefined_flag=$lt_allow_undefined_flag
15773
15774 # Flag that enforces no undefined symbols.
15775 no_undefined_flag=$lt_no_undefined_flag
15776
15777 # Flag to hardcode \$libdir into a binary during linking.
15778 # This must work even if \$libdir does not exist
15779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15780
15781 # Whether we need a single "-rpath" flag with a separated argument.
15782 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15783
15784 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15785 # DIR into the resulting binary.
15786 hardcode_direct=$hardcode_direct
15787
15788 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15789 # DIR into the resulting binary and the resulting library dependency is
15790 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15791 # library is relocated.
15792 hardcode_direct_absolute=$hardcode_direct_absolute
15793
15794 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15795 # into the resulting binary.
15796 hardcode_minus_L=$hardcode_minus_L
15797
15798 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15799 # into the resulting binary.
15800 hardcode_shlibpath_var=$hardcode_shlibpath_var
15801
15802 # Set to "yes" if building a shared library automatically hardcodes DIR
15803 # into the library and all subsequent libraries and executables linked
15804 # against it.
15805 hardcode_automatic=$hardcode_automatic
15806
15807 # Set to yes if linker adds runtime paths of dependent libraries
15808 # to runtime path list.
15809 inherit_rpath=$inherit_rpath
15810
15811 # Whether libtool must link a program against all its dependency libraries.
15812 link_all_deplibs=$link_all_deplibs
15813
15814 # Set to "yes" if exported symbols are required.
15815 always_export_symbols=$always_export_symbols
15816
15817 # The commands to list exported symbols.
15818 export_symbols_cmds=$lt_export_symbols_cmds
15819
15820 # Symbols that should not be listed in the preloaded symbols.
15821 exclude_expsyms=$lt_exclude_expsyms
15822
15823 # Symbols that must always be exported.
15824 include_expsyms=$lt_include_expsyms
15825
15826 # Commands necessary for linking programs (against libraries) with templates.
15827 prelink_cmds=$lt_prelink_cmds
15828
15829 # Commands necessary for finishing linking programs.
15830 postlink_cmds=$lt_postlink_cmds
15831
15832 # Specify filename containing input files.
15833 file_list_spec=$lt_file_list_spec
15834
15835 # How to hardcode a shared library path into an executable.
15836 hardcode_action=$hardcode_action
15837
15838 # ### END LIBTOOL CONFIG
15839
15840 _LT_EOF
15841
15842 cat <<'_LT_EOF' >> "$cfgfile"
15843
15844 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15845
15846 # func_munge_path_list VARIABLE PATH
15847 # -----------------------------------
15848 # VARIABLE is name of variable containing _space_ separated list of
15849 # directories to be munged by the contents of PATH, which is string
15850 # having a format:
15851 # "DIR[:DIR]:"
15852 # string "DIR[ DIR]" will be prepended to VARIABLE
15853 # ":DIR[:DIR]"
15854 # string "DIR[ DIR]" will be appended to VARIABLE
15855 # "DIRP[:DIRP]::[DIRA:]DIRA"
15856 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15857 # "DIRA[ DIRA]" will be appended to VARIABLE
15858 # "DIR[:DIR]"
15859 # VARIABLE will be replaced by "DIR[ DIR]"
15860 func_munge_path_list ()
15861 {
15862 case x$2 in
15863 x)
15864 ;;
15865 *:)
15866 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15867 ;;
15868 x:*)
15869 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15870 ;;
15871 *::*)
15872 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15873 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15874 ;;
15875 *)
15876 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15877 ;;
15878 esac
15879 }
15880
15881
15882 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15883 func_cc_basename ()
15884 {
15885 for cc_temp in $*""; do
15886 case $cc_temp in
15887 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15888 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15889 \-*) ;;
15890 *) break;;
15891 esac
15892 done
15893 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15894 }
15895
15896
15897 # ### END FUNCTIONS SHARED WITH CONFIGURE
15898
15899 _LT_EOF
15900
15901 case $host_os in
15902 aix3*)
15903 cat <<\_LT_EOF >> "$cfgfile"
15904 # AIX sometimes has problems with the GCC collect2 program. For some
15905 # reason, if we set the COLLECT_NAMES environment variable, the problems
15906 # vanish in a puff of smoke.
15907 if test set != "${COLLECT_NAMES+set}"; then
15908 COLLECT_NAMES=
15909 export COLLECT_NAMES
15910 fi
15911 _LT_EOF
15912 ;;
15913 esac
15914
15915
15916 ltmain=$ac_aux_dir/ltmain.sh
15917
15918
15919 # We use sed instead of cat because bash on DJGPP gets confused if
15920 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15921 # text mode, it properly converts lines to CR/LF. This bash problem
15922 # is reportedly fixed, but why not run on old versions too?
15923 sed '$q' "$ltmain" >> "$cfgfile" \
15924 || (rm -f "$cfgfile"; exit 1)
15925
15926 mv -f "$cfgfile" "$ofile" ||
15927 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15928 chmod +x "$ofile"
15929
15930 ;;
15931
15932 esac
15933 done # for ac_tag
15934
15935
15936 as_fn_exit 0
15937 _ACEOF
15938 ac_clean_files=$ac_clean_files_save
15939
15940 test $ac_write_fail = 0 ||
15941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15942
15943
15944 # configure is writing to config.log, and then calls config.status.
15945 # config.status does its own redirection, appending to config.log.
15946 # Unfortunately, on DOS this fails, as config.log is still kept open
15947 # by configure, so config.status won't be able to write to it; its
15948 # output is simply discarded. So we exec the FD to /dev/null,
15949 # effectively closing config.log, so it can be properly (re)opened and
15950 # appended to by config.status. When coming back to configure, we
15951 # need to make the FD available again.
15952 if test "$no_create" != yes; then
15953 ac_cs_success=:
15954 ac_config_status_args=
15955 test "$silent" = yes &&
15956 ac_config_status_args="$ac_config_status_args --quiet"
15957 exec 5>/dev/null
15958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15959 exec 5>>config.log
15960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15961 # would make configure fail if this is the last instruction.
15962 $ac_cs_success || as_fn_exit 1
15963 fi
15964 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15966 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15967 fi
15968