Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libxml2 2.15.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='libxml2'
620 PACKAGE_TARNAME='libxml2'
621 PACKAGE_VERSION='2.15.3'
622 PACKAGE_STRING='libxml2 2.15.3'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 ac_unique_file="entities.c"
627 # Factoring default headers for most tests.
628 ac_includes_default="\
629 #include <stddef.h>
630 #ifdef HAVE_STDIO_H
631 # include <stdio.h>
632 #endif
633 #ifdef HAVE_STDLIB_H
634 # include <stdlib.h>
635 #endif
636 #ifdef HAVE_STRING_H
637 # include <string.h>
638 #endif
639 #ifdef HAVE_INTTYPES_H
640 # include <inttypes.h>
641 #endif
642 #ifdef HAVE_STDINT_H
643 # include <stdint.h>
644 #endif
645 #ifdef HAVE_STRINGS_H
646 # include <strings.h>
647 #endif
648 #ifdef HAVE_SYS_TYPES_H
649 # include <sys/types.h>
650 #endif
651 #ifdef HAVE_SYS_STAT_H
652 # include <sys/stat.h>
653 #endif
654 #ifdef HAVE_UNISTD_H
655 # include <unistd.h>
656 #endif"
657
658 ac_header_c_list=
659 ac_subst_vars='am__EXEEXT_FALSE
660 am__EXEEXT_TRUE
661 LTLIBOBJS
662 LIBOBJS
663 INSTALL_LIBDIR
664 INSTALL_INCLUDEDIR
665 INSTALL_BINDIR
666 XML_INCLUDEDIR
667 XML_PRIVATE_CFLAGS
668 XML_PRIVATE_LIBS
669 XML_LIBS
670 XML_LIBDIR
671 XML_STATIC_CFLAGS
672 XML_CFLAGS
673 AM_LDFLAGS
674 AM_CFLAGS
675 XML_PC_REQUIRES
676 XML_PC_LIBS
677 BUILD_SHARED_LIBS
678 XML_PC_CFLAGS_PRIVATE
679 XML_PC_LIBS_PRIVATE
680 XML_PC_PRIVATE
681 XML_PRIVATE_LIBS_NO_SHARED
682 WITH_ICU
683 ICU_DEFS
684 ICU_LIBS
685 ICU_CFLAGS
686 ICONV_CFLAGS
687 WITH_ICONV
688 WITH_ZLIB
689 Z_LIBS
690 Z_CFLAGS
691 HISTORY_LIBS
692 HISTORY_CFLAGS
693 RDL_LIBS
694 RDL_CFLAGS
695 WITH_THREAD_ALLOC
696 WITH_THREADS
697 THREAD_LIBS
698 WITH_MODULES_SOURCES_FALSE
699 WITH_MODULES_SOURCES_TRUE
700 MODULE_EXTENSION
701 WITH_MODULES
702 PYTHON_LDFLAGS
703 WITH_DOXYGEN_FALSE
704 WITH_DOXYGEN_TRUE
705 DOXYGEN
706 WITH_PYTHON_FALSE
707 WITH_PYTHON_TRUE
708 PYTHON_LIBS
709 PYTHON_CFLAGS
710 pkgpyexecdir
711 pyexecdir
712 pkgpythondir
713 pythondir
714 PYTHON_EXEC_PREFIX
715 PYTHON_PREFIX
716 PYTHON_PLATFORM
717 PYTHON_VERSION
718 PYTHON
719 WITH_DOCS_FALSE
720 WITH_DOCS_TRUE
721 XSLTPROC
722 WITH_DEBUG_SOURCES_FALSE
723 WITH_DEBUG_SOURCES_TRUE
724 WITH_DEBUG
725 WITH_REGEXPS_SOURCES_FALSE
726 WITH_REGEXPS_SOURCES_TRUE
727 WITH_REGEXPS
728 WITH_SCHEMAS_SOURCES_FALSE
729 WITH_SCHEMAS_SOURCES_TRUE
730 WITH_SCHEMAS
731 WITH_RELAXNG_SOURCES_FALSE
732 WITH_RELAXNG_SOURCES_TRUE
733 WITH_RELAXNG
734 WITH_ISO8859X
735 WITH_OUTPUT_SOURCES_FALSE
736 WITH_OUTPUT_SOURCES_TRUE
737 WITH_OUTPUT
738 WITH_XPATH_SOURCES_FALSE
739 WITH_XPATH_SOURCES_TRUE
740 WITH_XPATH
741 WITH_SCHEMATRON_SOURCES_FALSE
742 WITH_SCHEMATRON_SOURCES_TRUE
743 WITH_SCHEMATRON
744 WITH_XINCLUDE_SOURCES_FALSE
745 WITH_XINCLUDE_SOURCES_TRUE
746 WITH_XINCLUDE
747 WITH_C14N_SOURCES_FALSE
748 WITH_C14N_SOURCES_TRUE
749 WITH_C14N
750 WITH_XPTR_SOURCES_FALSE
751 WITH_XPTR_SOURCES_TRUE
752 WITH_XPTR
753 WITH_CATALOG_SOURCES_FALSE
754 WITH_CATALOG_SOURCES_TRUE
755 WITH_CATALOG
756 WITH_VALID_SOURCES_FALSE
757 WITH_VALID_SOURCES_TRUE
758 WITH_VALID
759 WITH_HTML_SOURCES_FALSE
760 WITH_HTML_SOURCES_TRUE
761 WITH_HTML
762 WITH_PUSH
763 WITH_SAX1_SOURCES_FALSE
764 WITH_SAX1_SOURCES_TRUE
765 WITH_SAX1
766 WITH_PATTERN_SOURCES_FALSE
767 WITH_PATTERN_SOURCES_TRUE
768 WITH_PATTERN
769 WITH_WRITER_SOURCES_FALSE
770 WITH_WRITER_SOURCES_TRUE
771 WITH_WRITER
772 WITH_READER_SOURCES_FALSE
773 WITH_READER_SOURCES_TRUE
774 WITH_READER
775 WITH_HTTP_SOURCES_FALSE
776 WITH_HTTP_SOURCES_TRUE
777 WITH_HTTP
778 WITH_GLOB_FALSE
779 WITH_GLOB_TRUE
780 LIBM
781 LT_SYS_LIBRARY_PATH
782 OTOOL64
783 OTOOL
784 LIPO
785 NMEDIT
786 DSYMUTIL
787 MANIFEST_TOOL
788 RANLIB
789 ac_ct_AR
790 AR
791 DLLTOOL
792 OBJDUMP
793 FILECMD
794 NM
795 ac_ct_DUMPBIN
796 DUMPBIN
797 LD
798 FGREP
799 EGREP
800 GREP
801 SED
802 LIBTOOL
803 PKG_CONFIG_LIBDIR
804 PKG_CONFIG_PATH
805 PKG_CONFIG
806 LN_S
807 am__fastdepCC_FALSE
808 am__fastdepCC_TRUE
809 CCDEPMODE
810 am__nodep
811 AMDEPBACKSLASH
812 AMDEP_FALSE
813 AMDEP_TRUE
814 am__include
815 DEPDIR
816 OBJEXT
817 EXEEXT
818 ac_ct_CC
819 CPPFLAGS
820 LDFLAGS
821 CFLAGS
822 CC
823 MAINT
824 MAINTAINER_MODE_FALSE
825 MAINTAINER_MODE_TRUE
826 AM_BACKSLASH
827 AM_DEFAULT_VERBOSITY
828 AM_DEFAULT_V
829 AM_V
830 CSCOPE
831 ETAGS
832 CTAGS
833 am__untar
834 am__tar
835 AMTAR
836 am__leading_dot
837 SET_MAKE
838 AWK
839 mkdir_p
840 MKDIR_P
841 INSTALL_STRIP_PROGRAM
842 STRIP
843 install_sh
844 MAKEINFO
845 AUTOHEADER
846 AUTOMAKE
847 AUTOCONF
848 ACLOCAL
849 VERSION
850 PACKAGE
851 CYGPATH_W
852 am__isrc
853 INSTALL_DATA
854 INSTALL_SCRIPT
855 INSTALL_PROGRAM
856 LIBXML_VERSION_EXTRA
857 LIBXML_VERSION_NUMBER
858 LIBXML_VERSION_INFO
859 LIBXML_VERSION
860 LIBXML_MICRO_VERSION
861 LIBXML_MINOR_VERSION
862 LIBXML_MAJOR_VERSION
863 host_os
864 host_vendor
865 host_cpu
866 host
867 build_os
868 build_vendor
869 build_cpu
870 build
871 target_alias
872 host_alias
873 build_alias
874 LIBS
875 ECHO_T
876 ECHO_N
877 ECHO_C
878 DEFS
879 mandir
880 localedir
881 libdir
882 psdir
883 pdfdir
884 dvidir
885 htmldir
886 infodir
887 docdir
888 oldincludedir
889 includedir
890 runstatedir
891 localstatedir
892 sharedstatedir
893 sysconfdir
894 datadir
895 datarootdir
896 libexecdir
897 sbindir
898 bindir
899 program_transform_name
900 prefix
901 exec_prefix
902 PACKAGE_URL
903 PACKAGE_BUGREPORT
904 PACKAGE_STRING
905 PACKAGE_VERSION
906 PACKAGE_TARNAME
907 PACKAGE_NAME
908 PATH_SEPARATOR
909 SHELL
910 am__quote'
911 ac_subst_files=''
912 ac_user_opts='
913 enable_option_checking
914 enable_silent_rules
915 enable_maintainer_mode
916 enable_dependency_tracking
917 enable_static
918 enable_shared
919 with_pic
920 enable_fast_install
921 with_aix_soname
922 with_gnu_ld
923 with_sysroot
924 enable_libtool_lock
925 with_c14n
926 with_catalog
927 with_debug
928 with_docs
929 with_history
930 with_readline
931 with_html
932 with_http
933 with_iconv
934 with_icu
935 with_iso8859x
936 with_modules
937 with_output
938 with_pattern
939 with_push
940 with_python
941 with_reader
942 with_regexps
943 with_relaxng
944 with_sax1
945 with_schemas
946 with_schematron
947 with_threads
948 with_thread_alloc
949 with_valid
950 with_writer
951 with_xinclude
952 with_xpath
953 with_xptr
954 with_zlib
955 with_minimum
956 with_legacy
957 with_tls
958 with_python_sys_prefix
959 with_python_prefix
960 with_python_exec_prefix
961 '
962 ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CC
966 CFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
970 PKG_CONFIG
971 PKG_CONFIG_PATH
972 PKG_CONFIG_LIBDIR
973 LT_SYS_LIBRARY_PATH
974 PYTHON
975 PYTHON_CFLAGS
976 PYTHON_LIBS
977 RDL_CFLAGS
978 RDL_LIBS
979 HISTORY_CFLAGS
980 HISTORY_LIBS
981 Z_CFLAGS
982 Z_LIBS
983 ICU_CFLAGS
984 ICU_LIBS
985 ICU_DEFS'
986
987
988 # Initialize some variables set by options.
989 ac_init_help=
990 ac_init_version=false
991 ac_unrecognized_opts=
992 ac_unrecognized_sep=
993 # The variables have the same names as the options, with
994 # dashes changed to underlines.
995 cache_file=/dev/null
996 exec_prefix=NONE
997 no_create=
998 no_recursion=
999 prefix=NONE
1000 program_prefix=NONE
1001 program_suffix=NONE
1002 program_transform_name=s,x,x,
1003 silent=
1004 site=
1005 srcdir=
1006 verbose=
1007 x_includes=NONE
1008 x_libraries=NONE
1009
1010 # Installation directory options.
1011 # These are left unexpanded so users can "make install exec_prefix=/foo"
1012 # and all the variables that are supposed to be based on exec_prefix
1013 # by default will actually change.
1014 # Use braces instead of parens because sh, perl, etc. also accept them.
1015 # (The list follows the same order as the GNU Coding Standards.)
1016 bindir='${exec_prefix}/bin'
1017 sbindir='${exec_prefix}/sbin'
1018 libexecdir='${exec_prefix}/libexec'
1019 datarootdir='${prefix}/share'
1020 datadir='${datarootdir}'
1021 sysconfdir='${prefix}/etc'
1022 sharedstatedir='${prefix}/com'
1023 localstatedir='${prefix}/var'
1024 runstatedir='${localstatedir}/run'
1025 includedir='${prefix}/include'
1026 oldincludedir='/usr/include'
1027 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1028 infodir='${datarootdir}/info'
1029 htmldir='${docdir}'
1030 dvidir='${docdir}'
1031 pdfdir='${docdir}'
1032 psdir='${docdir}'
1033 libdir='${exec_prefix}/lib'
1034 localedir='${datarootdir}/locale'
1035 mandir='${datarootdir}/man'
1036
1037 ac_prev=
1038 ac_dashdash=
1039 for ac_option
1040 do
1041 # If the previous option needs an argument, assign it.
1042 if test -n "$ac_prev"; then
1043 eval $ac_prev=\$ac_option
1044 ac_prev=
1045 continue
1046 fi
1047
1048 case $ac_option in
1049 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050 *=) ac_optarg= ;;
1051 *) ac_optarg=yes ;;
1052 esac
1053
1054 case $ac_dashdash$ac_option in
1055 --)
1056 ac_dashdash=yes ;;
1057
1058 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059 ac_prev=bindir ;;
1060 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061 bindir=$ac_optarg ;;
1062
1063 -build | --build | --buil | --bui | --bu)
1064 ac_prev=build_alias ;;
1065 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066 build_alias=$ac_optarg ;;
1067
1068 -cache-file | --cache-file | --cache-fil | --cache-fi \
1069 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070 ac_prev=cache_file ;;
1071 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073 cache_file=$ac_optarg ;;
1074
1075 --config-cache | -C)
1076 cache_file=config.cache ;;
1077
1078 -datadir | --datadir | --datadi | --datad)
1079 ac_prev=datadir ;;
1080 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081 datadir=$ac_optarg ;;
1082
1083 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084 | --dataroo | --dataro | --datar)
1085 ac_prev=datarootdir ;;
1086 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088 datarootdir=$ac_optarg ;;
1089
1090 -disable-* | --disable-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1098 *"
1099 "enable_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval enable_$ac_useropt=no ;;
1105
1106 -docdir | --docdir | --docdi | --doc | --do)
1107 ac_prev=docdir ;;
1108 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109 docdir=$ac_optarg ;;
1110
1111 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112 ac_prev=dvidir ;;
1113 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114 dvidir=$ac_optarg ;;
1115
1116 -enable-* | --enable-*)
1117 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1124 *"
1125 "enable_$ac_useropt"
1126 "*) ;;
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1129 esac
1130 eval enable_$ac_useropt=\$ac_optarg ;;
1131
1132 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134 | --exec | --exe | --ex)
1135 ac_prev=exec_prefix ;;
1136 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138 | --exec=* | --exe=* | --ex=*)
1139 exec_prefix=$ac_optarg ;;
1140
1141 -gas | --gas | --ga | --g)
1142 # Obsolete; use --with-gas.
1143 with_gas=yes ;;
1144
1145 -help | --help | --hel | --he | -h)
1146 ac_init_help=long ;;
1147 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148 ac_init_help=recursive ;;
1149 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150 ac_init_help=short ;;
1151
1152 -host | --host | --hos | --ho)
1153 ac_prev=host_alias ;;
1154 -host=* | --host=* | --hos=* | --ho=*)
1155 host_alias=$ac_optarg ;;
1156
1157 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158 ac_prev=htmldir ;;
1159 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160 | --ht=*)
1161 htmldir=$ac_optarg ;;
1162
1163 -includedir | --includedir | --includedi | --included | --include \
1164 | --includ | --inclu | --incl | --inc)
1165 ac_prev=includedir ;;
1166 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167 | --includ=* | --inclu=* | --incl=* | --inc=*)
1168 includedir=$ac_optarg ;;
1169
1170 -infodir | --infodir | --infodi | --infod | --info | --inf)
1171 ac_prev=infodir ;;
1172 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173 infodir=$ac_optarg ;;
1174
1175 -libdir | --libdir | --libdi | --libd)
1176 ac_prev=libdir ;;
1177 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178 libdir=$ac_optarg ;;
1179
1180 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181 | --libexe | --libex | --libe)
1182 ac_prev=libexecdir ;;
1183 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184 | --libexe=* | --libex=* | --libe=*)
1185 libexecdir=$ac_optarg ;;
1186
1187 -localedir | --localedir | --localedi | --localed | --locale)
1188 ac_prev=localedir ;;
1189 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190 localedir=$ac_optarg ;;
1191
1192 -localstatedir | --localstatedir | --localstatedi | --localstated \
1193 | --localstate | --localstat | --localsta | --localst | --locals)
1194 ac_prev=localstatedir ;;
1195 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197 localstatedir=$ac_optarg ;;
1198
1199 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200 ac_prev=mandir ;;
1201 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202 mandir=$ac_optarg ;;
1203
1204 -nfp | --nfp | --nf)
1205 # Obsolete; use --without-fp.
1206 with_fp=no ;;
1207
1208 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209 | --no-cr | --no-c | -n)
1210 no_create=yes ;;
1211
1212 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214 no_recursion=yes ;;
1215
1216 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218 | --oldin | --oldi | --old | --ol | --o)
1219 ac_prev=oldincludedir ;;
1220 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223 oldincludedir=$ac_optarg ;;
1224
1225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226 ac_prev=prefix ;;
1227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228 prefix=$ac_optarg ;;
1229
1230 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231 | --program-pre | --program-pr | --program-p)
1232 ac_prev=program_prefix ;;
1233 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235 program_prefix=$ac_optarg ;;
1236
1237 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238 | --program-suf | --program-su | --program-s)
1239 ac_prev=program_suffix ;;
1240 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242 program_suffix=$ac_optarg ;;
1243
1244 -program-transform-name | --program-transform-name \
1245 | --program-transform-nam | --program-transform-na \
1246 | --program-transform-n | --program-transform- \
1247 | --program-transform | --program-transfor \
1248 | --program-transfo | --program-transf \
1249 | --program-trans | --program-tran \
1250 | --progr-tra | --program-tr | --program-t)
1251 ac_prev=program_transform_name ;;
1252 -program-transform-name=* | --program-transform-name=* \
1253 | --program-transform-nam=* | --program-transform-na=* \
1254 | --program-transform-n=* | --program-transform-=* \
1255 | --program-transform=* | --program-transfor=* \
1256 | --program-transfo=* | --program-transf=* \
1257 | --program-trans=* | --program-tran=* \
1258 | --progr-tra=* | --program-tr=* | --program-t=*)
1259 program_transform_name=$ac_optarg ;;
1260
1261 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262 ac_prev=pdfdir ;;
1263 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264 pdfdir=$ac_optarg ;;
1265
1266 -psdir | --psdir | --psdi | --psd | --ps)
1267 ac_prev=psdir ;;
1268 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269 psdir=$ac_optarg ;;
1270
1271 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272 | -silent | --silent | --silen | --sile | --sil)
1273 silent=yes ;;
1274
1275 -runstatedir | --runstatedir | --runstatedi | --runstated \
1276 | --runstate | --runstat | --runsta | --runst | --runs \
1277 | --run | --ru | --r)
1278 ac_prev=runstatedir ;;
1279 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1280 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1281 | --run=* | --ru=* | --r=*)
1282 runstatedir=$ac_optarg ;;
1283
1284 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285 ac_prev=sbindir ;;
1286 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287 | --sbi=* | --sb=*)
1288 sbindir=$ac_optarg ;;
1289
1290 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292 | --sharedst | --shareds | --shared | --share | --shar \
1293 | --sha | --sh)
1294 ac_prev=sharedstatedir ;;
1295 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298 | --sha=* | --sh=*)
1299 sharedstatedir=$ac_optarg ;;
1300
1301 -site | --site | --sit)
1302 ac_prev=site ;;
1303 -site=* | --site=* | --sit=*)
1304 site=$ac_optarg ;;
1305
1306 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307 ac_prev=srcdir ;;
1308 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309 srcdir=$ac_optarg ;;
1310
1311 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312 | --syscon | --sysco | --sysc | --sys | --sy)
1313 ac_prev=sysconfdir ;;
1314 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316 sysconfdir=$ac_optarg ;;
1317
1318 -target | --target | --targe | --targ | --tar | --ta | --t)
1319 ac_prev=target_alias ;;
1320 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321 target_alias=$ac_optarg ;;
1322
1323 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324 verbose=yes ;;
1325
1326 -version | --version | --versio | --versi | --vers | -V)
1327 ac_init_version=: ;;
1328
1329 -with-* | --with-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1333 as_fn_error $? "invalid package name: \`$ac_useropt'"
1334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338 "with_$ac_useropt"
1339 "*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval with_$ac_useropt=\$ac_optarg ;;
1344
1345 -without-* | --without-*)
1346 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1347 # Reject names that are not valid shell variable names.
1348 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1349 as_fn_error $? "invalid package name: \`$ac_useropt'"
1350 ac_useropt_orig=$ac_useropt
1351 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1352 case $ac_user_opts in
1353 *"
1354 "with_$ac_useropt"
1355 "*) ;;
1356 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1357 ac_unrecognized_sep=', ';;
1358 esac
1359 eval with_$ac_useropt=no ;;
1360
1361 --x)
1362 # Obsolete; use --with-x.
1363 with_x=yes ;;
1364
1365 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1366 | --x-incl | --x-inc | --x-in | --x-i)
1367 ac_prev=x_includes ;;
1368 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1369 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1370 x_includes=$ac_optarg ;;
1371
1372 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1373 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1374 ac_prev=x_libraries ;;
1375 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1376 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1377 x_libraries=$ac_optarg ;;
1378
1379 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1380 Try \`$0 --help' for more information"
1381 ;;
1382
1383 *=*)
1384 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1385 # Reject names that are not valid shell variable names.
1386 case $ac_envvar in #(
1387 '' | [0-9]* | *[!_$as_cr_alnum]* )
1388 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1389 esac
1390 eval $ac_envvar=\$ac_optarg
1391 export $ac_envvar ;;
1392
1393 *)
1394 # FIXME: should be removed in autoconf 3.0.
1395 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1396 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1397 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1398 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1399 ;;
1400
1401 esac
1402 done
1403
1404 if test -n "$ac_prev"; then
1405 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1406 as_fn_error $? "missing argument to $ac_option"
1407 fi
1408
1409 if test -n "$ac_unrecognized_opts"; then
1410 case $enable_option_checking in
1411 no) ;;
1412 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1413 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1414 esac
1415 fi
1416
1417 # Check all directory arguments for consistency.
1418 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1419 datadir sysconfdir sharedstatedir localstatedir includedir \
1420 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1421 libdir localedir mandir runstatedir
1422 do
1423 eval ac_val=\$$ac_var
1424 # Remove trailing slashes.
1425 case $ac_val in
1426 */ )
1427 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1428 eval $ac_var=\$ac_val;;
1429 esac
1430 # Be sure to have absolute directory names.
1431 case $ac_val in
1432 [\\/$]* | ?:[\\/]* ) continue;;
1433 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1434 esac
1435 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1436 done
1437
1438 # There might be people who depend on the old broken behavior: `$host'
1439 # used to hold the argument of --host etc.
1440 # FIXME: To remove some day.
1441 build=$build_alias
1442 host=$host_alias
1443 target=$target_alias
1444
1445 # FIXME: To remove some day.
1446 if test "x$host_alias" != x; then
1447 if test "x$build_alias" = x; then
1448 cross_compiling=maybe
1449 elif test "x$build_alias" != "x$host_alias"; then
1450 cross_compiling=yes
1451 fi
1452 fi
1453
1454 ac_tool_prefix=
1455 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1456
1457 test "$silent" = yes && exec 6>/dev/null
1458
1459
1460 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1461 ac_ls_di=`ls -di .` &&
1462 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1463 as_fn_error $? "working directory cannot be determined"
1464 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1465 as_fn_error $? "pwd does not report name of working directory"
1466
1467
1468 # Find the source files, if location was not specified.
1469 if test -z "$srcdir"; then
1470 ac_srcdir_defaulted=yes
1471 # Try the directory containing this script, then the parent directory.
1472 ac_confdir=`$as_dirname -- "$as_myself" ||
1473 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1474 X"$as_myself" : 'X\(//\)[^/]' \| \
1475 X"$as_myself" : 'X\(//\)$' \| \
1476 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1477 printf "%s\n" X"$as_myself" |
1478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1479 s//\1/
1480 q
1481 }
1482 /^X\(\/\/\)[^/].*/{
1483 s//\1/
1484 q
1485 }
1486 /^X\(\/\/\)$/{
1487 s//\1/
1488 q
1489 }
1490 /^X\(\/\).*/{
1491 s//\1/
1492 q
1493 }
1494 s/.*/./; q'`
1495 srcdir=$ac_confdir
1496 if test ! -r "$srcdir/$ac_unique_file"; then
1497 srcdir=..
1498 fi
1499 else
1500 ac_srcdir_defaulted=no
1501 fi
1502 if test ! -r "$srcdir/$ac_unique_file"; then
1503 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1504 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1505 fi
1506 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1507 ac_abs_confdir=`(
1508 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1509 pwd)`
1510 # When building in place, set srcdir=.
1511 if test "$ac_abs_confdir" = "$ac_pwd"; then
1512 srcdir=.
1513 fi
1514 # Remove unnecessary trailing slashes from srcdir.
1515 # Double slashes in file names in object file debugging info
1516 # mess up M-x gdb in Emacs.
1517 case $srcdir in
1518 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1519 esac
1520 for ac_var in $ac_precious_vars; do
1521 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_env_${ac_var}_value=\$${ac_var}
1523 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1524 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1525 done
1526
1527 #
1528 # Report the --help message.
1529 #
1530 if test "$ac_init_help" = "long"; then
1531 # Omit some internal or obsolete options to make the list less imposing.
1532 # This message is too long to be a string in the A/UX 3.1 sh.
1533 cat <<_ACEOF
1534 \`configure' configures libxml2 2.15.3 to adapt to many kinds of systems.
1535
1536 Usage: $0 [OPTION]... [VAR=VALUE]...
1537
1538 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1539 VAR=VALUE. See below for descriptions of some of the useful variables.
1540
1541 Defaults for the options are specified in brackets.
1542
1543 Configuration:
1544 -h, --help display this help and exit
1545 --help=short display options specific to this package
1546 --help=recursive display the short help of all the included packages
1547 -V, --version display version information and exit
1548 -q, --quiet, --silent do not print \`checking ...' messages
1549 --cache-file=FILE cache test results in FILE [disabled]
1550 -C, --config-cache alias for \`--cache-file=config.cache'
1551 -n, --no-create do not create output files
1552 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1553
1554 Installation directories:
1555 --prefix=PREFIX install architecture-independent files in PREFIX
1556 [$ac_default_prefix]
1557 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1558 [PREFIX]
1559
1560 By default, \`make install' will install all the files in
1561 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1562 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1563 for instance \`--prefix=\$HOME'.
1564
1565 For better control, use the options below.
1566
1567 Fine tuning of the installation directories:
1568 --bindir=DIR user executables [EPREFIX/bin]
1569 --sbindir=DIR system admin executables [EPREFIX/sbin]
1570 --libexecdir=DIR program executables [EPREFIX/libexec]
1571 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1572 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1573 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1574 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1575 --libdir=DIR object code libraries [EPREFIX/lib]
1576 --includedir=DIR C header files [PREFIX/include]
1577 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1578 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1579 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1580 --infodir=DIR info documentation [DATAROOTDIR/info]
1581 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1582 --mandir=DIR man documentation [DATAROOTDIR/man]
1583 --docdir=DIR documentation root [DATAROOTDIR/doc/libxml2]
1584 --htmldir=DIR html documentation [DOCDIR]
1585 --dvidir=DIR dvi documentation [DOCDIR]
1586 --pdfdir=DIR pdf documentation [DOCDIR]
1587 --psdir=DIR ps documentation [DOCDIR]
1588 _ACEOF
1589
1590 cat <<\_ACEOF
1591
1592 Program names:
1593 --program-prefix=PREFIX prepend PREFIX to installed program names
1594 --program-suffix=SUFFIX append SUFFIX to installed program names
1595 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1596
1597 System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 _ACEOF
1601 fi
1602
1603 if test -n "$ac_init_help"; then
1604 case $ac_init_help in
1605 short | recursive ) echo "Configuration of libxml2 2.15.3:";;
1606 esac
1607 cat <<\_ACEOF
1608
1609 Optional Features:
1610 --disable-option-checking ignore unrecognized --enable/--with options
1611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1613 --enable-silent-rules less verbose build output (undo: "make V=1")
1614 --disable-silent-rules verbose build output (undo: "make V=0")
1615 --disable-maintainer-mode
1616 disable make rules and dependencies not useful (and
1617 sometimes confusing) to the casual installer
1618 --enable-dependency-tracking
1619 do not reject slow dependency extractors
1620 --disable-dependency-tracking
1621 speeds up one-time build
1622 --enable-static[=PKGS] build static libraries [default=no]
1623 --enable-shared[=PKGS] build shared libraries [default=yes]
1624 --enable-fast-install[=PKGS]
1625 optimize for fast installation [default=yes]
1626 --disable-libtool-lock avoid locking (might break parallel builds)
1627
1628 Optional Packages:
1629 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1630 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1631 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1632 both]
1633 --with-aix-soname=aix|svr4|both
1634 shared library versioning (aka "SONAME") variant to
1635 provide on AIX, [default=aix].
1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1637 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1638 compiler's sysroot if not specified).
1639 --with-c14n Canonical XML 1.0 support (on)
1640 --with-catalog XML Catalogs support (on)
1641 --with-debug debugging module (on)
1642 --with-docs Build documentation (off)
1643 --with-history history support for xmllint shell (off)
1644 --with-readline[=DIR] use readline in DIR for shell (off)
1645 --with-html HTML parser (on)
1646 --with-http ABI compatibility for removed HTTP support (off)
1647 --with-iconv[=DIR] iconv support (on)
1648 --with-icu ICU support (off)
1649 --with-iso8859x ISO-8859-X support if no iconv (on)
1650 --with-modules dynamic modules support (on)
1651 --with-output serialization support (on)
1652 --with-pattern xmlPattern selection interface (on)
1653 --with-push push parser interfaces (on)
1654 --with-python Python bindings (on)
1655 --with-reader xmlReader parsing interface (on)
1656 --with-regexps regular expressions support (on)
1657 --with-relaxng RELAX NG support (on)
1658 --with-sax1 older SAX1 interface (on)
1659 --with-schemas XML Schemas 1.0 support (on)
1660 --with-schematron Schematron support (off)
1661 --with-threads multithreading support (on)
1662 --with-thread-alloc per-thread malloc hooks (off)
1663 --with-valid DTD validation support (on)
1664 --with-writer xmlWriter serialization interface (on)
1665 --with-xinclude XInclude 1.0 support (on)
1666 --with-xpath XPath 1.0 support (on)
1667 --with-xptr XPointer support (on)
1668 --with-zlib[=DIR] use libz in DIR (off)
1669 --with-minimum build a minimally sized library (off)
1670 --with-legacy maximum ABI compatibility (off)
1671 --with-tls thread-local storage (off)
1672 --with-python-sys-prefix
1673 use Python's sys.prefix and sys.exec_prefix values
1674 --with-python_prefix override the default PYTHON_PREFIX
1675 --with-python_exec_prefix
1676 override the default PYTHON_EXEC_PREFIX
1677
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1686 PKG_CONFIG path to pkg-config utility
1687 PKG_CONFIG_PATH
1688 directories to add to pkg-config's search path
1689 PKG_CONFIG_LIBDIR
1690 path overriding pkg-config's built-in search path
1691 LT_SYS_LIBRARY_PATH
1692 User-defined run-time library search path.
1693 PYTHON the Python interpreter
1694 PYTHON_CFLAGS
1695 C compiler flags for PYTHON, overriding pkg-config
1696 PYTHON_LIBS linker flags for PYTHON, overriding pkg-config
1697 RDL_CFLAGS C compiler flags for RDL, overriding pkg-config
1698 RDL_LIBS linker flags for RDL, overriding pkg-config
1699 HISTORY_CFLAGS
1700 C compiler flags for HISTORY, overriding pkg-config
1701 HISTORY_LIBS
1702 linker flags for HISTORY, overriding pkg-config
1703 Z_CFLAGS C compiler flags for Z, overriding pkg-config
1704 Z_LIBS linker flags for Z, overriding pkg-config
1705 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1706 ICU_LIBS linker flags for ICU, overriding pkg-config
1707 ICU_DEFS value of DEFS for icu-uc, overriding pkg-config
1708
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1711
1712 Report bugs to the package provider.
1713 _ACEOF
1714 ac_status=$?
1715 fi
1716
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1723 ac_builddir=.
1724
1725 case "$ac_dir" in
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *)
1728 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735 esac
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1740
1741 case $srcdir in
1742 .) # We are building in place.
1743 ac_srcdir=.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 esac
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1756
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for configure.gnu first; this name is used for a wrapper for
1759 # Metaconfig's "Configure" on case-insensitive file systems.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1766 else
1767 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 fi || ac_status=$?
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1770 done
1771 fi
1772
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775 cat <<\_ACEOF
1776 libxml2 configure 2.15.3
1777 generated by GNU Autoconf 2.71
1778
1779 Copyright (C) 2021 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783 exit
1784 fi
1785
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1789
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext conftest.beam
1797 if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 printf "%s\n" "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext
1816 then :
1817 ac_retval=0
1818 else $as_nop
1819 printf "%s\n" "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_compile
1828
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_link ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1836 if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 printf "%s\n" "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 test -x conftest$ac_exeext
1857 }
1858 then :
1859 ac_retval=0
1860 else $as_nop
1861 printf "%s\n" "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865 fi
1866 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1867 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1868 # interfere with the next link command; also delete a directory that is
1869 # left behind by Apple's compiler. We do this before executing the actions.
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_link
1875
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 printf %s "checking for $2... " >&6; }
1885 if eval test \${$3+y}
1886 then :
1887 printf %s "(cached) " >&6
1888 else $as_nop
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 #include <$2>
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"
1895 then :
1896 eval "$3=yes"
1897 else $as_nop
1898 eval "$3=no"
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1901 fi
1902 eval ac_res=\$$3
1903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 printf "%s\n" "$ac_res" >&6; }
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907 } # ac_fn_c_check_header_compile
1908
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 printf %s "checking for $2... " >&6; }
1917 if eval test \${$3+y}
1918 then :
1919 printf %s "(cached) " >&6
1920 else $as_nop
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1925 #define $2 innocuous_$2
1926
1927 /* System header to define __stub macros and hopefully few prototypes,
1928 which can conflict with char $2 (); below. */
1929
1930 #include <limits.h>
1931 #undef $2
1932
1933 /* Override any GCC internal prototype to avoid an error.
1934 Use char because int might match the return type of a GCC
1935 builtin and then its argument prototype would still apply. */
1936 #ifdef __cplusplus
1937 extern "C"
1938 #endif
1939 char $2 ();
1940 /* The GNU C library defines this for functions which it implements
1941 to always fail with ENOSYS. Some functions are actually named
1942 something starting with __ and the normal name is an alias. */
1943 #if defined __stub_$2 || defined __stub___$2
1944 choke me
1945 #endif
1946
1947 int
1948 main (void)
1949 {
1950 return $2 ();
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_link "$LINENO"
1956 then :
1957 eval "$3=yes"
1958 else $as_nop
1959 eval "$3=no"
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1962 conftest$ac_exeext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 printf "%s\n" "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969 } # ac_fn_c_check_func
1970
1971 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1972 # ------------------------------------------------------------------
1973 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1974 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1975 ac_fn_check_decl ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 as_decl_name=`echo $2|sed 's/ *(.*//'`
1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1980 printf %s "checking whether $as_decl_name is declared... " >&6; }
1981 if eval test \${$3+y}
1982 then :
1983 printf %s "(cached) " >&6
1984 else $as_nop
1985 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1986 eval ac_save_FLAGS=\$$6
1987 as_fn_append $6 " $5"
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1990 $4
1991 int
1992 main (void)
1993 {
1994 #ifndef $as_decl_name
1995 #ifdef __cplusplus
1996 (void) $as_decl_use;
1997 #else
1998 (void) $as_decl_name;
1999 #endif
2000 #endif
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"
2007 then :
2008 eval "$3=yes"
2009 else $as_nop
2010 eval "$3=no"
2011 fi
2012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2013 eval $6=\$ac_save_FLAGS
2014
2015 fi
2016 eval ac_res=\$$3
2017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 printf "%s\n" "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_check_decl
2022 ac_configure_args_raw=
2023 for ac_arg
2024 do
2025 case $ac_arg in
2026 *\'*)
2027 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 esac
2029 as_fn_append ac_configure_args_raw " '$ac_arg'"
2030 done
2031
2032 case $ac_configure_args_raw in
2033 *$as_nl*)
2034 ac_safe_unquote= ;;
2035 *)
2036 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2037 ac_unsafe_a="$ac_unsafe_z#~"
2038 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2039 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2040 esac
2041
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2045
2046 It was created by libxml2 $as_me 2.15.3, which was
2047 generated by GNU Autoconf 2.71. Invocation command line was
2048
2049 $ $0$ac_configure_args_raw
2050
2051 _ACEOF
2052 exec 5>>config.log
2053 {
2054 cat <<_ASUNAME
2055 ## --------- ##
2056 ## Platform. ##
2057 ## --------- ##
2058
2059 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2060 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2061 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2062 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2063 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2064
2065 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2066 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2067
2068 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2069 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2070 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2071 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2072 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2073 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2074 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2075
2076 _ASUNAME
2077
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081 IFS=$as_save_IFS
2082 case $as_dir in #(((
2083 '') as_dir=./ ;;
2084 */) ;;
2085 *) as_dir=$as_dir/ ;;
2086 esac
2087 printf "%s\n" "PATH: $as_dir"
2088 done
2089 IFS=$as_save_IFS
2090
2091 } >&5
2092
2093 cat >&5 <<_ACEOF
2094
2095
2096 ## ----------- ##
2097 ## Core tests. ##
2098 ## ----------- ##
2099
2100 _ACEOF
2101
2102
2103 # Keep a trace of the command line.
2104 # Strip out --no-create and --no-recursion so they do not pile up.
2105 # Strip out --silent because we don't want to record it for future runs.
2106 # Also quote any args containing shell meta-characters.
2107 # Make two passes to allow for proper duplicate-argument suppression.
2108 ac_configure_args=
2109 ac_configure_args0=
2110 ac_configure_args1=
2111 ac_must_keep_next=false
2112 for ac_pass in 1 2
2113 do
2114 for ac_arg
2115 do
2116 case $ac_arg in
2117 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2119 | -silent | --silent | --silen | --sile | --sil)
2120 continue ;;
2121 *\'*)
2122 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2123 esac
2124 case $ac_pass in
2125 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2126 2)
2127 as_fn_append ac_configure_args1 " '$ac_arg'"
2128 if test $ac_must_keep_next = true; then
2129 ac_must_keep_next=false # Got value, back to normal.
2130 else
2131 case $ac_arg in
2132 *=* | --config-cache | -C | -disable-* | --disable-* \
2133 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2134 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2135 | -with-* | --with-* | -without-* | --without-* | --x)
2136 case "$ac_configure_args0 " in
2137 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2138 esac
2139 ;;
2140 -* ) ac_must_keep_next=true ;;
2141 esac
2142 fi
2143 as_fn_append ac_configure_args " '$ac_arg'"
2144 ;;
2145 esac
2146 done
2147 done
2148 { ac_configure_args0=; unset ac_configure_args0;}
2149 { ac_configure_args1=; unset ac_configure_args1;}
2150
2151 # When interrupted or exit'd, cleanup temporary files, and complete
2152 # config.log. We remove comments because anyway the quotes in there
2153 # would cause problems or look ugly.
2154 # WARNING: Use '\'' to represent an apostrophe within the trap.
2155 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2156 trap 'exit_status=$?
2157 # Sanitize IFS.
2158 IFS=" "" $as_nl"
2159 # Save into config.log some information that might help in debugging.
2160 {
2161 echo
2162
2163 printf "%s\n" "## ---------------- ##
2164 ## Cache variables. ##
2165 ## ---------------- ##"
2166 echo
2167 # The following way of writing the cache mishandles newlines in values,
2168 (
2169 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2170 eval ac_val=\$$ac_var
2171 case $ac_val in #(
2172 *${as_nl}*)
2173 case $ac_var in #(
2174 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2175 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2176 esac
2177 case $ac_var in #(
2178 _ | IFS | as_nl) ;; #(
2179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2180 *) { eval $ac_var=; unset $ac_var;} ;;
2181 esac ;;
2182 esac
2183 done
2184 (set) 2>&1 |
2185 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2186 *${as_nl}ac_space=\ *)
2187 sed -n \
2188 "s/'\''/'\''\\\\'\'''\''/g;
2189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2190 ;; #(
2191 *)
2192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2193 ;;
2194 esac |
2195 sort
2196 )
2197 echo
2198
2199 printf "%s\n" "## ----------------- ##
2200 ## Output variables. ##
2201 ## ----------------- ##"
2202 echo
2203 for ac_var in $ac_subst_vars
2204 do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in
2207 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 esac
2209 printf "%s\n" "$ac_var='\''$ac_val'\''"
2210 done | sort
2211 echo
2212
2213 if test -n "$ac_subst_files"; then
2214 printf "%s\n" "## ------------------- ##
2215 ## File substitutions. ##
2216 ## ------------------- ##"
2217 echo
2218 for ac_var in $ac_subst_files
2219 do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in
2222 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2223 esac
2224 printf "%s\n" "$ac_var='\''$ac_val'\''"
2225 done | sort
2226 echo
2227 fi
2228
2229 if test -s confdefs.h; then
2230 printf "%s\n" "## ----------- ##
2231 ## confdefs.h. ##
2232 ## ----------- ##"
2233 echo
2234 cat confdefs.h
2235 echo
2236 fi
2237 test "$ac_signal" != 0 &&
2238 printf "%s\n" "$as_me: caught signal $ac_signal"
2239 printf "%s\n" "$as_me: exit $exit_status"
2240 } >&5
2241 rm -f core *.core core.conftest.* &&
2242 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2243 exit $exit_status
2244 ' 0
2245 for ac_signal in 1 2 13 15; do
2246 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2247 done
2248 ac_signal=0
2249
2250 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2251 rm -f -r conftest* confdefs.h
2252
2253 printf "%s\n" "/* confdefs.h */" > confdefs.h
2254
2255 # Predefined preprocessor variables.
2256
2257 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2258
2259 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2260
2261 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2262
2263 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2264
2265 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2266
2267 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2268
2269
2270 # Let the site file select an alternate cache file if it wants to.
2271 # Prefer an explicitly selected file to automatically selected ones.
2272 if test -n "$CONFIG_SITE"; then
2273 ac_site_files="$CONFIG_SITE"
2274 elif test "x$prefix" != xNONE; then
2275 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2276 else
2277 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2278 fi
2279
2280 for ac_site_file in $ac_site_files
2281 do
2282 case $ac_site_file in #(
2283 */*) :
2284 ;; #(
2285 *) :
2286 ac_site_file=./$ac_site_file ;;
2287 esac
2288 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2290 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2291 sed 's/^/| /' "$ac_site_file" >&5
2292 . "$ac_site_file" \
2293 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2295 as_fn_error $? "failed to load site script $ac_site_file
2296 See \`config.log' for more details" "$LINENO" 5; }
2297 fi
2298 done
2299
2300 if test -r "$cache_file"; then
2301 # Some versions of bash will fail to source /dev/null (special files
2302 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2303 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2305 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2306 case $cache_file in
2307 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2308 *) . "./$cache_file";;
2309 esac
2310 fi
2311 else
2312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2313 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2314 >$cache_file
2315 fi
2316
2317 # Test code for whether the C compiler supports C89 (global declarations)
2318 ac_c_conftest_c89_globals='
2319 /* Does the compiler advertise C89 conformance?
2320 Do not test the value of __STDC__, because some compilers set it to 0
2321 while being otherwise adequately conformant. */
2322 #if !defined __STDC__
2323 # error "Compiler does not advertise C89 conformance"
2324 #endif
2325
2326 #include <stddef.h>
2327 #include <stdarg.h>
2328 struct stat;
2329 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2330 struct buf { int x; };
2331 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2332 static char *e (p, i)
2333 char **p;
2334 int i;
2335 {
2336 return p[i];
2337 }
2338 static char *f (char * (*g) (char **, int), char **p, ...)
2339 {
2340 char *s;
2341 va_list v;
2342 va_start (v,p);
2343 s = g (p, va_arg (v,int));
2344 va_end (v);
2345 return s;
2346 }
2347
2348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2349 function prototypes and stuff, but not \xHH hex character constants.
2350 These do not provoke an error unfortunately, instead are silently treated
2351 as an "x". The following induces an error, until -std is added to get
2352 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2353 array size at least. It is necessary to write \x00 == 0 to get something
2354 that is true only with -std. */
2355 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2356
2357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2358 inside strings and character constants. */
2359 #define FOO(x) '\''x'\''
2360 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2361
2362 int test (int i, double x);
2363 struct s1 {int (*f) (int a);};
2364 struct s2 {int (*f) (double a);};
2365 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2366 int, int);'
2367
2368 # Test code for whether the C compiler supports C89 (body of main).
2369 ac_c_conftest_c89_main='
2370 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2371 '
2372
2373 # Test code for whether the C compiler supports C99 (global declarations)
2374 ac_c_conftest_c99_globals='
2375 // Does the compiler advertise C99 conformance?
2376 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2377 # error "Compiler does not advertise C99 conformance"
2378 #endif
2379
2380 #include <stdbool.h>
2381 extern int puts (const char *);
2382 extern int printf (const char *, ...);
2383 extern int dprintf (int, const char *, ...);
2384 extern void *malloc (size_t);
2385
2386 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2387 // dprintf is used instead of fprintf to avoid needing to declare
2388 // FILE and stderr.
2389 #define debug(...) dprintf (2, __VA_ARGS__)
2390 #define showlist(...) puts (#__VA_ARGS__)
2391 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2392 static void
2393 test_varargs_macros (void)
2394 {
2395 int x = 1234;
2396 int y = 5678;
2397 debug ("Flag");
2398 debug ("X = %d\n", x);
2399 showlist (The first, second, and third items.);
2400 report (x>y, "x is %d but y is %d", x, y);
2401 }
2402
2403 // Check long long types.
2404 #define BIG64 18446744073709551615ull
2405 #define BIG32 4294967295ul
2406 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2407 #if !BIG_OK
2408 #error "your preprocessor is broken"
2409 #endif
2410 #if BIG_OK
2411 #else
2412 #error "your preprocessor is broken"
2413 #endif
2414 static long long int bignum = -9223372036854775807LL;
2415 static unsigned long long int ubignum = BIG64;
2416
2417 struct incomplete_array
2418 {
2419 int datasize;
2420 double data[];
2421 };
2422
2423 struct named_init {
2424 int number;
2425 const wchar_t *name;
2426 double average;
2427 };
2428
2429 typedef const char *ccp;
2430
2431 static inline int
2432 test_restrict (ccp restrict text)
2433 {
2434 // See if C++-style comments work.
2435 // Iterate through items via the restricted pointer.
2436 // Also check for declarations in for loops.
2437 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2438 continue;
2439 return 0;
2440 }
2441
2442 // Check varargs and va_copy.
2443 static bool
2444 test_varargs (const char *format, ...)
2445 {
2446 va_list args;
2447 va_start (args, format);
2448 va_list args_copy;
2449 va_copy (args_copy, args);
2450
2451 const char *str = "";
2452 int number = 0;
2453 float fnumber = 0;
2454
2455 while (*format)
2456 {
2457 switch (*format++)
2458 {
2459 case '\''s'\'': // string
2460 str = va_arg (args_copy, const char *);
2461 break;
2462 case '\''d'\'': // int
2463 number = va_arg (args_copy, int);
2464 break;
2465 case '\''f'\'': // float
2466 fnumber = va_arg (args_copy, double);
2467 break;
2468 default:
2469 break;
2470 }
2471 }
2472 va_end (args_copy);
2473 va_end (args);
2474
2475 return *str && number && fnumber;
2476 }
2477 '
2478
2479 # Test code for whether the C compiler supports C99 (body of main).
2480 ac_c_conftest_c99_main='
2481 // Check bool.
2482 _Bool success = false;
2483 success |= (argc != 0);
2484
2485 // Check restrict.
2486 if (test_restrict ("String literal") == 0)
2487 success = true;
2488 char *restrict newvar = "Another string";
2489
2490 // Check varargs.
2491 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2492 test_varargs_macros ();
2493
2494 // Check flexible array members.
2495 struct incomplete_array *ia =
2496 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2497 ia->datasize = 10;
2498 for (int i = 0; i < ia->datasize; ++i)
2499 ia->data[i] = i * 1.234;
2500
2501 // Check named initializers.
2502 struct named_init ni = {
2503 .number = 34,
2504 .name = L"Test wide string",
2505 .average = 543.34343,
2506 };
2507
2508 ni.number = 58;
2509
2510 int dynamic_array[ni.number];
2511 dynamic_array[0] = argv[0][0];
2512 dynamic_array[ni.number - 1] = 543;
2513
2514 // work around unused variable warnings
2515 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2516 || dynamic_array[ni.number - 1] != 543);
2517 '
2518
2519 # Test code for whether the C compiler supports C11 (global declarations)
2520 ac_c_conftest_c11_globals='
2521 // Does the compiler advertise C11 conformance?
2522 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2523 # error "Compiler does not advertise C11 conformance"
2524 #endif
2525
2526 // Check _Alignas.
2527 char _Alignas (double) aligned_as_double;
2528 char _Alignas (0) no_special_alignment;
2529 extern char aligned_as_int;
2530 char _Alignas (0) _Alignas (int) aligned_as_int;
2531
2532 // Check _Alignof.
2533 enum
2534 {
2535 int_alignment = _Alignof (int),
2536 int_array_alignment = _Alignof (int[100]),
2537 char_alignment = _Alignof (char)
2538 };
2539 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2540
2541 // Check _Noreturn.
2542 int _Noreturn does_not_return (void) { for (;;) continue; }
2543
2544 // Check _Static_assert.
2545 struct test_static_assert
2546 {
2547 int x;
2548 _Static_assert (sizeof (int) <= sizeof (long int),
2549 "_Static_assert does not work in struct");
2550 long int y;
2551 };
2552
2553 // Check UTF-8 literals.
2554 #define u8 syntax error!
2555 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2556
2557 // Check duplicate typedefs.
2558 typedef long *long_ptr;
2559 typedef long int *long_ptr;
2560 typedef long_ptr long_ptr;
2561
2562 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2563 struct anonymous
2564 {
2565 union {
2566 struct { int i; int j; };
2567 struct { int k; long int l; } w;
2568 };
2569 int m;
2570 } v1;
2571 '
2572
2573 # Test code for whether the C compiler supports C11 (body of main).
2574 ac_c_conftest_c11_main='
2575 _Static_assert ((offsetof (struct anonymous, i)
2576 == offsetof (struct anonymous, w.k)),
2577 "Anonymous union alignment botch");
2578 v1.i = 2;
2579 v1.w.k = 5;
2580 ok |= v1.i != 5;
2581 '
2582
2583 # Test code for whether the C compiler supports C11 (complete).
2584 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2585 ${ac_c_conftest_c99_globals}
2586 ${ac_c_conftest_c11_globals}
2587
2588 int
2589 main (int argc, char **argv)
2590 {
2591 int ok = 0;
2592 ${ac_c_conftest_c89_main}
2593 ${ac_c_conftest_c99_main}
2594 ${ac_c_conftest_c11_main}
2595 return ok;
2596 }
2597 "
2598
2599 # Test code for whether the C compiler supports C99 (complete).
2600 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2601 ${ac_c_conftest_c99_globals}
2602
2603 int
2604 main (int argc, char **argv)
2605 {
2606 int ok = 0;
2607 ${ac_c_conftest_c89_main}
2608 ${ac_c_conftest_c99_main}
2609 return ok;
2610 }
2611 "
2612
2613 # Test code for whether the C compiler supports C89 (complete).
2614 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2615
2616 int
2617 main (int argc, char **argv)
2618 {
2619 int ok = 0;
2620 ${ac_c_conftest_c89_main}
2621 return ok;
2622 }
2623 "
2624
2625 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2626 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2627 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2628 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2629 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2630 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2631 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2632 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2633 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2634
2635 # Auxiliary files required by this configure script.
2636 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2637
2638 # Locations in which to look for auxiliary files.
2639 ac_aux_dir_candidates="${srcdir}/."
2640
2641 # Search for a directory containing all of the required auxiliary files,
2642 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2643 # If we don't find one directory that contains all the files we need,
2644 # we report the set of missing files from the *first* directory in
2645 # $ac_aux_dir_candidates and give up.
2646 ac_missing_aux_files=""
2647 ac_first_candidate=:
2648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 as_found=false
2651 for as_dir in $ac_aux_dir_candidates
2652 do
2653 IFS=$as_save_IFS
2654 case $as_dir in #(((
2655 '') as_dir=./ ;;
2656 */) ;;
2657 *) as_dir=$as_dir/ ;;
2658 esac
2659 as_found=:
2660
2661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2662 ac_aux_dir_found=yes
2663 ac_install_sh=
2664 for ac_aux in $ac_aux_files
2665 do
2666 # As a special case, if "install-sh" is required, that requirement
2667 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2668 # and $ac_install_sh is set appropriately for whichever one is found.
2669 if test x"$ac_aux" = x"install-sh"
2670 then
2671 if test -f "${as_dir}install-sh"; then
2672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2673 ac_install_sh="${as_dir}install-sh -c"
2674 elif test -f "${as_dir}install.sh"; then
2675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2676 ac_install_sh="${as_dir}install.sh -c"
2677 elif test -f "${as_dir}shtool"; then
2678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2679 ac_install_sh="${as_dir}shtool install -c"
2680 else
2681 ac_aux_dir_found=no
2682 if $ac_first_candidate; then
2683 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2684 else
2685 break
2686 fi
2687 fi
2688 else
2689 if test -f "${as_dir}${ac_aux}"; then
2690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2691 else
2692 ac_aux_dir_found=no
2693 if $ac_first_candidate; then
2694 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2695 else
2696 break
2697 fi
2698 fi
2699 fi
2700 done
2701 if test "$ac_aux_dir_found" = yes; then
2702 ac_aux_dir="$as_dir"
2703 break
2704 fi
2705 ac_first_candidate=false
2706
2707 as_found=false
2708 done
2709 IFS=$as_save_IFS
2710 if $as_found
2711 then :
2712
2713 else $as_nop
2714 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2715 fi
2716
2717
2718 # These three variables are undocumented and unsupported,
2719 # and are intended to be withdrawn in a future Autoconf release.
2720 # They can cause serious problems if a builder's source tree is in a directory
2721 # whose full name contains unusual characters.
2722 if test -f "${ac_aux_dir}config.guess"; then
2723 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2724 fi
2725 if test -f "${ac_aux_dir}config.sub"; then
2726 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2727 fi
2728 if test -f "$ac_aux_dir/configure"; then
2729 ac_configure="$SHELL ${ac_aux_dir}configure"
2730 fi
2731
2732 # Check that the precious variables saved in the cache have kept the same
2733 # value.
2734 ac_cache_corrupted=false
2735 for ac_var in $ac_precious_vars; do
2736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2737 eval ac_new_set=\$ac_env_${ac_var}_set
2738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2739 eval ac_new_val=\$ac_env_${ac_var}_value
2740 case $ac_old_set,$ac_new_set in
2741 set,)
2742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2743 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2745 ,set)
2746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2747 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2748 ac_cache_corrupted=: ;;
2749 ,);;
2750 *)
2751 if test "x$ac_old_val" != "x$ac_new_val"; then
2752 # differences in whitespace do not lead to failure.
2753 ac_old_val_w=`echo x $ac_old_val`
2754 ac_new_val_w=`echo x $ac_new_val`
2755 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2757 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2758 ac_cache_corrupted=:
2759 else
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2761 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2762 eval $ac_var=\$ac_old_val
2763 fi
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2765 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2767 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2768 fi;;
2769 esac
2770 # Pass precious variables to config.status.
2771 if test "$ac_new_set" = set; then
2772 case $ac_new_val in
2773 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2774 *) ac_arg=$ac_var=$ac_new_val ;;
2775 esac
2776 case " $ac_configure_args " in
2777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2778 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2779 esac
2780 fi
2781 done
2782 if $ac_cache_corrupted; then
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2786 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2787 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2788 and start over" "$LINENO" 5
2789 fi
2790 ## -------------------- ##
2791 ## Main body of script. ##
2792 ## -------------------- ##
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800
2801
2802 ac_config_headers="$ac_config_headers config.h"
2803
2804
2805
2806
2807
2808
2809 # Make sure we can run config.sub.
2810 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
2811 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
2812
2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2814 printf %s "checking build system type... " >&6; }
2815 if test ${ac_cv_build+y}
2816 then :
2817 printf %s "(cached) " >&6
2818 else $as_nop
2819 ac_build_alias=$build_alias
2820 test "x$ac_build_alias" = x &&
2821 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
2822 test "x$ac_build_alias" = x &&
2823 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2824 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
2825 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
2826
2827 fi
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2829 printf "%s\n" "$ac_cv_build" >&6; }
2830 case $ac_cv_build in
2831 *-*-*) ;;
2832 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2833 esac
2834 build=$ac_cv_build
2835 ac_save_IFS=$IFS; IFS='-'
2836 set x $ac_cv_build
2837 shift
2838 build_cpu=$1
2839 build_vendor=$2
2840 shift; shift
2841 # Remember, the first character of IFS is used to create $*,
2842 # except with old shells:
2843 build_os=$*
2844 IFS=$ac_save_IFS
2845 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2846
2847
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2849 printf %s "checking host system type... " >&6; }
2850 if test ${ac_cv_host+y}
2851 then :
2852 printf %s "(cached) " >&6
2853 else $as_nop
2854 if test "x$host_alias" = x; then
2855 ac_cv_host=$ac_cv_build
2856 else
2857 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
2858 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
2859 fi
2860
2861 fi
2862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2863 printf "%s\n" "$ac_cv_host" >&6; }
2864 case $ac_cv_host in
2865 *-*-*) ;;
2866 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2867 esac
2868 host=$ac_cv_host
2869 ac_save_IFS=$IFS; IFS='-'
2870 set x $ac_cv_host
2871 shift
2872 host_cpu=$1
2873 host_vendor=$2
2874 shift; shift
2875 # Remember, the first character of IFS is used to create $*,
2876 # except with old shells:
2877 host_os=$*
2878 IFS=$ac_save_IFS
2879 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2880
2881
2882
2883 LIBXML_VERSION=2.15.3
2884 LIBXML_MAJOR_VERSION=`echo $LIBXML_VERSION | cut -d . -f 1`
2885 LIBXML_MINOR_VERSION=`echo $LIBXML_VERSION | cut -d . -f 2`
2886 LIBXML_MICRO_VERSION=`echo $LIBXML_VERSION | cut -d . -f 3`
2887 LIBXML_MICRO_VERSION_SUFFIX=
2888
2889 # The oldest minor version we are compatible with.
2890 LIBXML_MINOR_COMPAT=14
2891 LIBXML_CURRENT=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`
2892 LIBXML_AGE=`expr $LIBXML_MINOR_VERSION - $LIBXML_MINOR_COMPAT`
2893 # At least on Linux, libtool will set SOVERSION to (CURRENT - AGE)
2894 # which equals (MAJOR + MINOR_COMPAT). The other build systems must
2895 # emulate this behavior.
2896 LIBXML_VERSION_INFO=$LIBXML_CURRENT:$LIBXML_MICRO_VERSION:$LIBXML_AGE
2897
2898 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2899
2900 if test -d .git ; then
2901 extra=`git describe 2>/dev/null`
2902 echo extra=$extra
2903 if test "$extra" != ""
2904 then
2905 LIBXML_VERSION_EXTRA="-GIT$extra"
2906 fi
2907 fi
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917 am__api_version='1.16'
2918
2919
2920 # Find a good install program. We prefer a C program (faster),
2921 # so one script is as good as another. But avoid the broken or
2922 # incompatible versions:
2923 # SysV /etc/install, /usr/sbin/install
2924 # SunOS /usr/etc/install
2925 # IRIX /sbin/install
2926 # AIX /bin/install
2927 # AmigaOS /C/install, which installs bootblocks on floppy discs
2928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2931 # OS/2's system install, which has a completely different semantic
2932 # ./install, which can be erroneously created by make from ./install.sh.
2933 # Reject install programs that cannot install multiple files.
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2935 printf %s "checking for a BSD-compatible install... " >&6; }
2936 if test -z "$INSTALL"; then
2937 if test ${ac_cv_path_install+y}
2938 then :
2939 printf %s "(cached) " >&6
2940 else $as_nop
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2943 do
2944 IFS=$as_save_IFS
2945 case $as_dir in #(((
2946 '') as_dir=./ ;;
2947 */) ;;
2948 *) as_dir=$as_dir/ ;;
2949 esac
2950 # Account for fact that we put trailing slashes in our PATH walk.
2951 case $as_dir in #((
2952 ./ | /[cC]/* | \
2953 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2954 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2955 /usr/ucb/* ) ;;
2956 *)
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2959 # by default.
2960 for ac_prog in ginstall scoinst install; do
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2963 if test $ac_prog = install &&
2964 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2966 :
2967 elif test $ac_prog = install &&
2968 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2970 :
2971 else
2972 rm -rf conftest.one conftest.two conftest.dir
2973 echo one > conftest.one
2974 echo two > conftest.two
2975 mkdir conftest.dir
2976 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2977 test -s conftest.one && test -s conftest.two &&
2978 test -s conftest.dir/conftest.one &&
2979 test -s conftest.dir/conftest.two
2980 then
2981 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2982 break 3
2983 fi
2984 fi
2985 fi
2986 done
2987 done
2988 ;;
2989 esac
2990
2991 done
2992 IFS=$as_save_IFS
2993
2994 rm -rf conftest.one conftest.two conftest.dir
2995
2996 fi
2997 if test ${ac_cv_path_install+y}; then
2998 INSTALL=$ac_cv_path_install
2999 else
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for INSTALL within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 INSTALL=$ac_install_sh
3005 fi
3006 fi
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3008 printf "%s\n" "$INSTALL" >&6; }
3009
3010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3011 # It thinks the first close brace ends the variable substitution.
3012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3013
3014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3015
3016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3017
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3019 printf %s "checking whether build environment is sane... " >&6; }
3020 # Reject unsafe characters in $srcdir or the absolute working directory
3021 # name. Accept space and tab only in the latter.
3022 am_lf='
3023 '
3024 case `pwd` in
3025 *[\\\"\#\$\&\'\`$am_lf]*)
3026 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3027 esac
3028 case $srcdir in
3029 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3030 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3031 esac
3032
3033 # Do 'set' in a subshell so we don't clobber the current shell's
3034 # arguments. Must try -L first in case configure is actually a
3035 # symlink; some systems play weird games with the mod time of symlinks
3036 # (eg FreeBSD returns the mod time of the symlink's containing
3037 # directory).
3038 if (
3039 am_has_slept=no
3040 for am_try in 1 2; do
3041 echo "timestamp, slept: $am_has_slept" > conftest.file
3042 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3043 if test "$*" = "X"; then
3044 # -L didn't work.
3045 set X `ls -t "$srcdir/configure" conftest.file`
3046 fi
3047 if test "$*" != "X $srcdir/configure conftest.file" \
3048 && test "$*" != "X conftest.file $srcdir/configure"; then
3049
3050 # If neither matched, then we have a broken ls. This can happen
3051 # if, for instance, CONFIG_SHELL is bash and it inherits a
3052 # broken ls alias from the environment. This has actually
3053 # happened. Such a system could not be considered "sane".
3054 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3055 alias in your environment" "$LINENO" 5
3056 fi
3057 if test "$2" = conftest.file || test $am_try -eq 2; then
3058 break
3059 fi
3060 # Just in case.
3061 sleep 1
3062 am_has_slept=yes
3063 done
3064 test "$2" = conftest.file
3065 )
3066 then
3067 # Ok.
3068 :
3069 else
3070 as_fn_error $? "newly created file is older than distributed files!
3071 Check your system clock" "$LINENO" 5
3072 fi
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 printf "%s\n" "yes" >&6; }
3075 # If we didn't sleep, we still need to ensure time stamps of config.status and
3076 # generated files are strictly newer.
3077 am_sleep_pid=
3078 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3079 ( sleep 1 ) &
3080 am_sleep_pid=$!
3081 fi
3082
3083 rm -f conftest.file
3084
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3094
3095
3096 # Expand $ac_aux_dir to an absolute path.
3097 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3098
3099
3100 if test x"${MISSING+set}" != xset; then
3101 MISSING="\${SHELL} '$am_aux_dir/missing'"
3102 fi
3103 # Use eval to expand $SHELL
3104 if eval "$MISSING --is-lightweight"; then
3105 am_missing_run="$MISSING "
3106 else
3107 am_missing_run=
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3109 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110 fi
3111
3112 if test x"${install_sh+set}" != xset; then
3113 case $am_aux_dir in
3114 *\ * | *\ *)
3115 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3116 *)
3117 install_sh="\${SHELL} $am_aux_dir/install-sh"
3118 esac
3119 fi
3120
3121 # Installed binaries are usually stripped using 'strip' when the user
3122 # run "make install-strip". However 'strip' might not be the right
3123 # tool to use in cross-compilation environments, therefore Automake
3124 # will honor the 'STRIP' environment variable to overrule this program.
3125 if test "$cross_compiling" != no; then
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}strip; ac_word=$2
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 printf %s "checking for $ac_word... " >&6; }
3131 if test ${ac_cv_prog_STRIP+y}
3132 then :
3133 printf %s "(cached) " >&6
3134 else $as_nop
3135 if test -n "$STRIP"; then
3136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 case $as_dir in #(((
3143 '') as_dir=./ ;;
3144 */) ;;
3145 *) as_dir=$as_dir/ ;;
3146 esac
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 STRIP=$ac_cv_prog_STRIP
3160 if test -n "$STRIP"; then
3161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3162 printf "%s\n" "$STRIP" >&6; }
3163 else
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 printf "%s\n" "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$ac_cv_prog_STRIP"; then
3171 ac_ct_STRIP=$STRIP
3172 # Extract the first word of "strip", so it can be a program name with args.
3173 set dummy strip; ac_word=$2
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 printf %s "checking for $ac_word... " >&6; }
3176 if test ${ac_cv_prog_ac_ct_STRIP+y}
3177 then :
3178 printf %s "(cached) " >&6
3179 else $as_nop
3180 if test -n "$ac_ct_STRIP"; then
3181 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 case $as_dir in #(((
3188 '') as_dir=./ ;;
3189 */) ;;
3190 *) as_dir=$as_dir/ ;;
3191 esac
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_STRIP="strip"
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3205 if test -n "$ac_ct_STRIP"; then
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3207 printf "%s\n" "$ac_ct_STRIP" >&6; }
3208 else
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 printf "%s\n" "no" >&6; }
3211 fi
3212
3213 if test "x$ac_ct_STRIP" = x; then
3214 STRIP=":"
3215 else
3216 case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222 STRIP=$ac_ct_STRIP
3223 fi
3224 else
3225 STRIP="$ac_cv_prog_STRIP"
3226 fi
3227
3228 fi
3229 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3230
3231
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3233 printf %s "checking for a race-free mkdir -p... " >&6; }
3234 if test -z "$MKDIR_P"; then
3235 if test ${ac_cv_path_mkdir+y}
3236 then :
3237 printf %s "(cached) " >&6
3238 else $as_nop
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3241 do
3242 IFS=$as_save_IFS
3243 case $as_dir in #(((
3244 '') as_dir=./ ;;
3245 */) ;;
3246 *) as_dir=$as_dir/ ;;
3247 esac
3248 for ac_prog in mkdir gmkdir; do
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3251 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3252 'mkdir ('*'coreutils) '* | \
3253 'BusyBox '* | \
3254 'mkdir (fileutils) '4.1*)
3255 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3256 break 3;;
3257 esac
3258 done
3259 done
3260 done
3261 IFS=$as_save_IFS
3262
3263 fi
3264
3265 test -d ./--version && rmdir ./--version
3266 if test ${ac_cv_path_mkdir+y}; then
3267 MKDIR_P="$ac_cv_path_mkdir -p"
3268 else
3269 # As a last resort, use the slow shell script. Don't cache a
3270 # value for MKDIR_P within a source directory, because that will
3271 # break other packages using the cache if that directory is
3272 # removed, or if the value is a relative name.
3273 MKDIR_P="$ac_install_sh -d"
3274 fi
3275 fi
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3277 printf "%s\n" "$MKDIR_P" >&6; }
3278
3279 for ac_prog in gawk mawk nawk awk
3280 do
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 printf %s "checking for $ac_word... " >&6; }
3285 if test ${ac_cv_prog_AWK+y}
3286 then :
3287 printf %s "(cached) " >&6
3288 else $as_nop
3289 if test -n "$AWK"; then
3290 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 case $as_dir in #(((
3297 '') as_dir=./ ;;
3298 */) ;;
3299 *) as_dir=$as_dir/ ;;
3300 esac
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_AWK="$ac_prog"
3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi
3312 fi
3313 AWK=$ac_cv_prog_AWK
3314 if test -n "$AWK"; then
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3316 printf "%s\n" "$AWK" >&6; }
3317 else
3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 printf "%s\n" "no" >&6; }
3320 fi
3321
3322
3323 test -n "$AWK" && break
3324 done
3325
3326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3327 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3328 set x ${MAKE-make}
3329 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3330 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3331 then :
3332 printf %s "(cached) " >&6
3333 else $as_nop
3334 cat >conftest.make <<\_ACEOF
3335 SHELL = /bin/sh
3336 all:
3337 @echo '@@@%%%=$(MAKE)=@@@%%%'
3338 _ACEOF
3339 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3341 *@@@%%%=?*=@@@%%%*)
3342 eval ac_cv_prog_make_${ac_make}_set=yes;;
3343 *)
3344 eval ac_cv_prog_make_${ac_make}_set=no;;
3345 esac
3346 rm -f conftest.make
3347 fi
3348 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3350 printf "%s\n" "yes" >&6; }
3351 SET_MAKE=
3352 else
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 printf "%s\n" "no" >&6; }
3355 SET_MAKE="MAKE=${MAKE-make}"
3356 fi
3357
3358 rm -rf .tst 2>/dev/null
3359 mkdir .tst 2>/dev/null
3360 if test -d .tst; then
3361 am__leading_dot=.
3362 else
3363 am__leading_dot=_
3364 fi
3365 rmdir .tst 2>/dev/null
3366
3367 # Check whether --enable-silent-rules was given.
3368 if test ${enable_silent_rules+y}
3369 then :
3370 enableval=$enable_silent_rules;
3371 fi
3372
3373 case $enable_silent_rules in # (((
3374 yes) AM_DEFAULT_VERBOSITY=0;;
3375 no) AM_DEFAULT_VERBOSITY=1;;
3376 *) AM_DEFAULT_VERBOSITY=1;;
3377 esac
3378 am_make=${MAKE-make}
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3380 printf %s "checking whether $am_make supports nested variables... " >&6; }
3381 if test ${am_cv_make_support_nested_variables+y}
3382 then :
3383 printf %s "(cached) " >&6
3384 else $as_nop
3385 if printf "%s\n" 'TRUE=$(BAR$(V))
3386 BAR0=false
3387 BAR1=true
3388 V=1
3389 am__doit:
3390 @$(TRUE)
3391 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3392 am_cv_make_support_nested_variables=yes
3393 else
3394 am_cv_make_support_nested_variables=no
3395 fi
3396 fi
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3398 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3399 if test $am_cv_make_support_nested_variables = yes; then
3400 AM_V='$(V)'
3401 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3402 else
3403 AM_V=$AM_DEFAULT_VERBOSITY
3404 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3405 fi
3406 AM_BACKSLASH='\'
3407
3408 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3409 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3410 # is not polluted with repeated "-I."
3411 am__isrc=' -I$(srcdir)'
3412 # test to see if srcdir already configured
3413 if test -f $srcdir/config.status; then
3414 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3415 fi
3416 fi
3417
3418 # test whether we have cygpath
3419 if test -z "$CYGPATH_W"; then
3420 if (cygpath --version) >/dev/null 2>/dev/null; then
3421 CYGPATH_W='cygpath -w'
3422 else
3423 CYGPATH_W=echo
3424 fi
3425 fi
3426
3427
3428 # Define the identity of the package.
3429 PACKAGE='libxml2'
3430 VERSION='2.15.3'
3431
3432
3433 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3434
3435
3436 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3437
3438 # Some tools Automake needs.
3439
3440 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3441
3442
3443 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3444
3445
3446 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3447
3448
3449 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3450
3451
3452 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3453
3454 # For better backward compatibility. To be removed once Automake 1.9.x
3455 # dies out for good. For more background, see:
3456 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3457 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3458 mkdir_p='$(MKDIR_P)'
3459
3460 # We need awk for the "check" target (and possibly the TAP driver). The
3461 # system "awk" is bad on some platforms.
3462 # Always define AMTAR for backward compatibility. Yes, it's still used
3463 # in the wild :-( We should find a proper way to deprecate it ...
3464 AMTAR='$${TAR-tar}'
3465
3466
3467 # We'll loop over all known methods to create a tar archive until one works.
3468 _am_tools='gnutar pax cpio none'
3469
3470 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3471
3472
3473
3474
3475
3476 # Variables for tags utilities; see am/tags.am
3477 if test -z "$CTAGS"; then
3478 CTAGS=ctags
3479 fi
3480
3481 if test -z "$ETAGS"; then
3482 ETAGS=etags
3483 fi
3484
3485 if test -z "$CSCOPE"; then
3486 CSCOPE=cscope
3487 fi
3488
3489
3490
3491 # POSIX will say in a future version that running "rm -f" with no argument
3492 # is OK; and we want to be able to make that assumption in our Makefile
3493 # recipes. So use an aggressive probe to check that the usage we want is
3494 # actually supported "in the wild" to an acceptable degree.
3495 # See automake bug#10828.
3496 # To make any issue more visible, cause the running configure to be aborted
3497 # by default if the 'rm' program in use doesn't match our expectations; the
3498 # user can still override this though.
3499 if rm -f && rm -fr && rm -rf; then : OK; else
3500 cat >&2 <<'END'
3501 Oops!
3502
3503 Your 'rm' program seems unable to run without file operands specified
3504 on the command line, even when the '-f' option is present. This is contrary
3505 to the behaviour of most rm programs out there, and not conforming with
3506 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3507
3508 Please tell [email protected] about your system, including the value
3509 of your $PATH and any error possibly output before this message. This
3510 can help us improve future automake versions.
3511
3512 END
3513 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3514 echo 'Configuration will proceed anyway, since you have set the' >&2
3515 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3516 echo >&2
3517 else
3518 cat >&2 <<'END'
3519 Aborting the configuration process, to ensure you take notice of the issue.
3520
3521 You can download and install GNU coreutils to get an 'rm' implementation
3522 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3523
3524 If you want to complete the configuration process using your problematic
3525 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3526 to "yes", and re-run configure.
3527
3528 END
3529 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3530 fi
3531 fi
3532
3533
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3535 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3536 # Check whether --enable-maintainer-mode was given.
3537 if test ${enable_maintainer_mode+y}
3538 then :
3539 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3540 else $as_nop
3541 USE_MAINTAINER_MODE=yes
3542 fi
3543
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3545 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3546 if test $USE_MAINTAINER_MODE = yes; then
3547 MAINTAINER_MODE_TRUE=
3548 MAINTAINER_MODE_FALSE='#'
3549 else
3550 MAINTAINER_MODE_TRUE='#'
3551 MAINTAINER_MODE_FALSE=
3552 fi
3553
3554 MAINT=$MAINTAINER_MODE_TRUE
3555
3556
3557 # Check whether --enable-silent-rules was given.
3558 if test ${enable_silent_rules+y}
3559 then :
3560 enableval=$enable_silent_rules;
3561 fi
3562
3563 case $enable_silent_rules in # (((
3564 yes) AM_DEFAULT_VERBOSITY=0;;
3565 no) AM_DEFAULT_VERBOSITY=1;;
3566 *) AM_DEFAULT_VERBOSITY=0;;
3567 esac
3568 am_make=${MAKE-make}
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3570 printf %s "checking whether $am_make supports nested variables... " >&6; }
3571 if test ${am_cv_make_support_nested_variables+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else $as_nop
3575 if printf "%s\n" 'TRUE=$(BAR$(V))
3576 BAR0=false
3577 BAR1=true
3578 V=1
3579 am__doit:
3580 @$(TRUE)
3581 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3582 am_cv_make_support_nested_variables=yes
3583 else
3584 am_cv_make_support_nested_variables=no
3585 fi
3586 fi
3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3588 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3589 if test $am_cv_make_support_nested_variables = yes; then
3590 AM_V='$(V)'
3591 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3592 else
3593 AM_V=$AM_DEFAULT_VERBOSITY
3594 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3595 fi
3596 AM_BACKSLASH='\'
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613 if test -n "$ac_tool_prefix"; then
3614 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3615 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 printf %s "checking for $ac_word... " >&6; }
3618 if test ${ac_cv_prog_CC+y}
3619 then :
3620 printf %s "(cached) " >&6
3621 else $as_nop
3622 if test -n "$CC"; then
3623 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 case $as_dir in #(((
3630 '') as_dir=./ ;;
3631 */) ;;
3632 *) as_dir=$as_dir/ ;;
3633 esac
3634 for ac_exec_ext in '' $ac_executable_extensions; do
3635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 break 2
3639 fi
3640 done
3641 done
3642 IFS=$as_save_IFS
3643
3644 fi
3645 fi
3646 CC=$ac_cv_prog_CC
3647 if test -n "$CC"; then
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3649 printf "%s\n" "$CC" >&6; }
3650 else
3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652 printf "%s\n" "no" >&6; }
3653 fi
3654
3655
3656 fi
3657 if test -z "$ac_cv_prog_CC"; then
3658 ac_ct_CC=$CC
3659 # Extract the first word of "gcc", so it can be a program name with args.
3660 set dummy gcc; ac_word=$2
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 printf %s "checking for $ac_word... " >&6; }
3663 if test ${ac_cv_prog_ac_ct_CC+y}
3664 then :
3665 printf %s "(cached) " >&6
3666 else $as_nop
3667 if test -n "$ac_ct_CC"; then
3668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673 IFS=$as_save_IFS
3674 case $as_dir in #(((
3675 '') as_dir=./ ;;
3676 */) ;;
3677 *) as_dir=$as_dir/ ;;
3678 esac
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3681 ac_cv_prog_ac_ct_CC="gcc"
3682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3688
3689 fi
3690 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3694 printf "%s\n" "$ac_ct_CC" >&6; }
3695 else
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 printf "%s\n" "no" >&6; }
3698 fi
3699
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3708 esac
3709 CC=$ac_ct_CC
3710 fi
3711 else
3712 CC="$ac_cv_prog_CC"
3713 fi
3714
3715 if test -z "$CC"; then
3716 if test -n "$ac_tool_prefix"; then
3717 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3718 set dummy ${ac_tool_prefix}cc; ac_word=$2
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720 printf %s "checking for $ac_word... " >&6; }
3721 if test ${ac_cv_prog_CC+y}
3722 then :
3723 printf %s "(cached) " >&6
3724 else $as_nop
3725 if test -n "$CC"; then
3726 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731 IFS=$as_save_IFS
3732 case $as_dir in #(((
3733 '') as_dir=./ ;;
3734 */) ;;
3735 *) as_dir=$as_dir/ ;;
3736 esac
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3739 ac_cv_prog_CC="${ac_tool_prefix}cc"
3740 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743 done
3744 done
3745 IFS=$as_save_IFS
3746
3747 fi
3748 fi
3749 CC=$ac_cv_prog_CC
3750 if test -n "$CC"; then
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752 printf "%s\n" "$CC" >&6; }
3753 else
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 printf "%s\n" "no" >&6; }
3756 fi
3757
3758
3759 fi
3760 fi
3761 if test -z "$CC"; then
3762 # Extract the first word of "cc", so it can be a program name with args.
3763 set dummy cc; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3767 then :
3768 printf %s "(cached) " >&6
3769 else $as_nop
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3772 else
3773 ac_prog_rejected=no
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 case $as_dir in #(((
3779 '') as_dir=./ ;;
3780 */) ;;
3781 *) as_dir=$as_dir/ ;;
3782 esac
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3785 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3786 ac_prog_rejected=yes
3787 continue
3788 fi
3789 ac_cv_prog_CC="cc"
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3791 break 2
3792 fi
3793 done
3794 done
3795 IFS=$as_save_IFS
3796
3797 if test $ac_prog_rejected = yes; then
3798 # We found a bogon in the path, so make sure we never use it.
3799 set dummy $ac_cv_prog_CC
3800 shift
3801 if test $# != 0; then
3802 # We chose a different compiler from the bogus one.
3803 # However, it has the same basename, so the bogon will be chosen
3804 # first if we set CC to just the basename; use the full file name.
3805 shift
3806 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3807 fi
3808 fi
3809 fi
3810 fi
3811 CC=$ac_cv_prog_CC
3812 if test -n "$CC"; then
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 printf "%s\n" "$CC" >&6; }
3815 else
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 printf "%s\n" "no" >&6; }
3818 fi
3819
3820
3821 fi
3822 if test -z "$CC"; then
3823 if test -n "$ac_tool_prefix"; then
3824 for ac_prog in cl.exe
3825 do
3826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 printf %s "checking for $ac_word... " >&6; }
3830 if test ${ac_cv_prog_CC+y}
3831 then :
3832 printf %s "(cached) " >&6
3833 else $as_nop
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840 IFS=$as_save_IFS
3841 case $as_dir in #(((
3842 '') as_dir=./ ;;
3843 */) ;;
3844 *) as_dir=$as_dir/ ;;
3845 esac
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852 done
3853 done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 CC=$ac_cv_prog_CC
3859 if test -n "$CC"; then
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861 printf "%s\n" "$CC" >&6; }
3862 else
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 fi
3866
3867
3868 test -n "$CC" && break
3869 done
3870 fi
3871 if test -z "$CC"; then
3872 ac_ct_CC=$CC
3873 for ac_prog in cl.exe
3874 do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 printf %s "checking for $ac_word... " >&6; }
3879 if test ${ac_cv_prog_ac_ct_CC+y}
3880 then :
3881 printf %s "(cached) " >&6
3882 else $as_nop
3883 if test -n "$ac_ct_CC"; then
3884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 case $as_dir in #(((
3891 '') as_dir=./ ;;
3892 */) ;;
3893 *) as_dir=$as_dir/ ;;
3894 esac
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_CC="$ac_prog"
3898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901 done
3902 done
3903 IFS=$as_save_IFS
3904
3905 fi
3906 fi
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910 printf "%s\n" "$ac_ct_CC" >&6; }
3911 else
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3914 fi
3915
3916
3917 test -n "$ac_ct_CC" && break
3918 done
3919
3920 if test "x$ac_ct_CC" = x; then
3921 CC=""
3922 else
3923 case $cross_compiling:$ac_tool_warned in
3924 yes:)
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3928 esac
3929 CC=$ac_ct_CC
3930 fi
3931 fi
3932
3933 fi
3934 if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3937 set dummy ${ac_tool_prefix}clang; ac_word=$2
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 printf %s "checking for $ac_word... " >&6; }
3940 if test ${ac_cv_prog_CC+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else $as_nop
3944 if test -n "$CC"; then
3945 ac_cv_prog_CC="$CC" # Let the user override the test.
3946 else
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH
3949 do
3950 IFS=$as_save_IFS
3951 case $as_dir in #(((
3952 '') as_dir=./ ;;
3953 */) ;;
3954 *) as_dir=$as_dir/ ;;
3955 esac
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_CC="${ac_tool_prefix}clang"
3959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3960 break 2
3961 fi
3962 done
3963 done
3964 IFS=$as_save_IFS
3965
3966 fi
3967 fi
3968 CC=$ac_cv_prog_CC
3969 if test -n "$CC"; then
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971 printf "%s\n" "$CC" >&6; }
3972 else
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 printf "%s\n" "no" >&6; }
3975 fi
3976
3977
3978 fi
3979 if test -z "$ac_cv_prog_CC"; then
3980 ac_ct_CC=$CC
3981 # Extract the first word of "clang", so it can be a program name with args.
3982 set dummy clang; ac_word=$2
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 printf %s "checking for $ac_word... " >&6; }
3985 if test ${ac_cv_prog_ac_ct_CC+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else $as_nop
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 case $as_dir in #(((
3997 '') as_dir=./ ;;
3998 */) ;;
3999 *) as_dir=$as_dir/ ;;
4000 esac
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4003 ac_cv_prog_ac_ct_CC="clang"
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4005 break 2
4006 fi
4007 done
4008 done
4009 IFS=$as_save_IFS
4010
4011 fi
4012 fi
4013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4014 if test -n "$ac_ct_CC"; then
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4016 printf "%s\n" "$ac_ct_CC" >&6; }
4017 else
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4019 printf "%s\n" "no" >&6; }
4020 fi
4021
4022 if test "x$ac_ct_CC" = x; then
4023 CC=""
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026 yes:)
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned=yes ;;
4030 esac
4031 CC=$ac_ct_CC
4032 fi
4033 else
4034 CC="$ac_cv_prog_CC"
4035 fi
4036
4037 fi
4038
4039
4040 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4042 as_fn_error $? "no acceptable C compiler found in \$PATH
4043 See \`config.log' for more details" "$LINENO" 5; }
4044
4045 # Provide some information about the compiler.
4046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4047 set X $ac_compile
4048 ac_compiler=$2
4049 for ac_option in --version -v -V -qversion -version; do
4050 { { ac_try="$ac_compiler $ac_option >&5"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 printf "%s\n" "$ac_try_echo"; } >&5
4057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4058 ac_status=$?
4059 if test -s conftest.err; then
4060 sed '10a\
4061 ... rest of stderr output deleted ...
4062 10q' conftest.err >conftest.er1
4063 cat conftest.er1 >&5
4064 fi
4065 rm -f conftest.er1 conftest.err
4066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }
4068 done
4069
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main (void)
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 ac_clean_files_save=$ac_clean_files
4082 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4083 # Try to create an executable without -o first, disregard a.out.
4084 # It will help us diagnose broken compilers, and finding out an intuition
4085 # of exeext.
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4087 printf %s "checking whether the C compiler works... " >&6; }
4088 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4089
4090 # The possible output files:
4091 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4092
4093 ac_rmfiles=
4094 for ac_file in $ac_files
4095 do
4096 case $ac_file in
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4098 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4099 esac
4100 done
4101 rm -f $ac_rmfiles
4102
4103 if { { ac_try="$ac_link_default"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 printf "%s\n" "$ac_try_echo"; } >&5
4110 (eval "$ac_link_default") 2>&5
4111 ac_status=$?
4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 then :
4115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4118 # so that the user can short-circuit this test for compilers unknown to
4119 # Autoconf.
4120 for ac_file in $ac_files ''
4121 do
4122 test -f "$ac_file" || continue
4123 case $ac_file in
4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4125 ;;
4126 [ab].out )
4127 # We found the default executable, but exeext='' is most
4128 # certainly right.
4129 break;;
4130 *.* )
4131 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4132 then :; else
4133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4134 fi
4135 # We set ac_cv_exeext here because the later test for it is not
4136 # safe: cross compilers may not add the suffix if given an `-o'
4137 # argument, so we may need to know it at that point already.
4138 # Even if this section looks crufty: it has the advantage of
4139 # actually working.
4140 break;;
4141 * )
4142 break;;
4143 esac
4144 done
4145 test "$ac_cv_exeext" = no && ac_cv_exeext=
4146
4147 else $as_nop
4148 ac_file=''
4149 fi
4150 if test -z "$ac_file"
4151 then :
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 printf "%s\n" "no" >&6; }
4154 printf "%s\n" "$as_me: failed program was:" >&5
4155 sed 's/^/| /' conftest.$ac_ext >&5
4156
4157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error 77 "C compiler cannot create executables
4160 See \`config.log' for more details" "$LINENO" 5; }
4161 else $as_nop
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4163 printf "%s\n" "yes" >&6; }
4164 fi
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4166 printf %s "checking for C compiler default output file name... " >&6; }
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4168 printf "%s\n" "$ac_file" >&6; }
4169 ac_exeext=$ac_cv_exeext
4170
4171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4172 ac_clean_files=$ac_clean_files_save
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4174 printf %s "checking for suffix of executables... " >&6; }
4175 if { { ac_try="$ac_link"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 printf "%s\n" "$ac_try_echo"; } >&5
4182 (eval "$ac_link") 2>&5
4183 ac_status=$?
4184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }
4186 then :
4187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4189 # work properly (i.e., refer to `conftest.exe'), while it won't with
4190 # `rm'.
4191 for ac_file in conftest.exe conftest conftest.*; do
4192 test -f "$ac_file" || continue
4193 case $ac_file in
4194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4196 break;;
4197 * ) break;;
4198 esac
4199 done
4200 else $as_nop
4201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4204 See \`config.log' for more details" "$LINENO" 5; }
4205 fi
4206 rm -f conftest conftest$ac_cv_exeext
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4208 printf "%s\n" "$ac_cv_exeext" >&6; }
4209
4210 rm -f conftest.$ac_ext
4211 EXEEXT=$ac_cv_exeext
4212 ac_exeext=$EXEEXT
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <stdio.h>
4216 int
4217 main (void)
4218 {
4219 FILE *f = fopen ("conftest.out", "w");
4220 return ferror (f) || fclose (f) != 0;
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 ac_clean_files="$ac_clean_files conftest.out"
4227 # Check that the compiler produces executables we can run. If not, either
4228 # the compiler is broken, or we cross compile.
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4230 printf %s "checking whether we are cross compiling... " >&6; }
4231 if test "$cross_compiling" != yes; then
4232 { { ac_try="$ac_link"
4233 case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236 esac
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 printf "%s\n" "$ac_try_echo"; } >&5
4239 (eval "$ac_link") 2>&5
4240 ac_status=$?
4241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }
4243 if { ac_try='./conftest$ac_cv_exeext'
4244 { { case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 printf "%s\n" "$ac_try_echo"; } >&5
4250 (eval "$ac_try") 2>&5
4251 ac_status=$?
4252 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; }; }; then
4254 cross_compiling=no
4255 else
4256 if test "$cross_compiling" = maybe; then
4257 cross_compiling=yes
4258 else
4259 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4260 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4261 as_fn_error 77 "cannot run C compiled programs.
4262 If you meant to cross compile, use \`--host'.
4263 See \`config.log' for more details" "$LINENO" 5; }
4264 fi
4265 fi
4266 fi
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4268 printf "%s\n" "$cross_compiling" >&6; }
4269
4270 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4271 ac_clean_files=$ac_clean_files_save
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4273 printf %s "checking for suffix of object files... " >&6; }
4274 if test ${ac_cv_objext+y}
4275 then :
4276 printf %s "(cached) " >&6
4277 else $as_nop
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280
4281 int
4282 main (void)
4283 {
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.o conftest.obj
4290 if { { ac_try="$ac_compile"
4291 case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 printf "%s\n" "$ac_try_echo"; } >&5
4297 (eval "$ac_compile") 2>&5
4298 ac_status=$?
4299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; }
4301 then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
4304 case $ac_file in
4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309 done
4310 else $as_nop
4311 printf "%s\n" "$as_me: failed program was:" >&5
4312 sed 's/^/| /' conftest.$ac_ext >&5
4313
4314 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4316 as_fn_error $? "cannot compute suffix of object files: cannot compile
4317 See \`config.log' for more details" "$LINENO" 5; }
4318 fi
4319 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320 fi
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322 printf "%s\n" "$ac_cv_objext" >&6; }
4323 OBJEXT=$ac_cv_objext
4324 ac_objext=$OBJEXT
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4326 printf %s "checking whether the compiler supports GNU C... " >&6; }
4327 if test ${ac_cv_c_compiler_gnu+y}
4328 then :
4329 printf %s "(cached) " >&6
4330 else $as_nop
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333
4334 int
4335 main (void)
4336 {
4337 #ifndef __GNUC__
4338 choke me
4339 #endif
4340
4341 ;
4342 return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_c_try_compile "$LINENO"
4346 then :
4347 ac_compiler_gnu=yes
4348 else $as_nop
4349 ac_compiler_gnu=no
4350 fi
4351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4353
4354 fi
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4356 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359 if test $ac_compiler_gnu = yes; then
4360 GCC=yes
4361 else
4362 GCC=
4363 fi
4364 ac_test_CFLAGS=${CFLAGS+y}
4365 ac_save_CFLAGS=$CFLAGS
4366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4367 printf %s "checking whether $CC accepts -g... " >&6; }
4368 if test ${ac_cv_prog_cc_g+y}
4369 then :
4370 printf %s "(cached) " >&6
4371 else $as_nop
4372 ac_save_c_werror_flag=$ac_c_werror_flag
4373 ac_c_werror_flag=yes
4374 ac_cv_prog_cc_g=no
4375 CFLAGS="-g"
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378
4379 int
4380 main (void)
4381 {
4382
4383 ;
4384 return 0;
4385 }
4386 _ACEOF
4387 if ac_fn_c_try_compile "$LINENO"
4388 then :
4389 ac_cv_prog_cc_g=yes
4390 else $as_nop
4391 CFLAGS=""
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394
4395 int
4396 main (void)
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 if ac_fn_c_try_compile "$LINENO"
4404 then :
4405
4406 else $as_nop
4407 ac_c_werror_flag=$ac_save_c_werror_flag
4408 CFLAGS="-g"
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411
4412 int
4413 main (void)
4414 {
4415
4416 ;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_compile "$LINENO"
4421 then :
4422 ac_cv_prog_cc_g=yes
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4427 fi
4428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 ac_c_werror_flag=$ac_save_c_werror_flag
4430 fi
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4432 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4433 if test $ac_test_CFLAGS; then
4434 CFLAGS=$ac_save_CFLAGS
4435 elif test $ac_cv_prog_cc_g = yes; then
4436 if test "$GCC" = yes; then
4437 CFLAGS="-g -O2"
4438 else
4439 CFLAGS="-g"
4440 fi
4441 else
4442 if test "$GCC" = yes; then
4443 CFLAGS="-O2"
4444 else
4445 CFLAGS=
4446 fi
4447 fi
4448 ac_prog_cc_stdc=no
4449 if test x$ac_prog_cc_stdc = xno
4450 then :
4451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4452 printf %s "checking for $CC option to enable C11 features... " >&6; }
4453 if test ${ac_cv_prog_cc_c11+y}
4454 then :
4455 printf %s "(cached) " >&6
4456 else $as_nop
4457 ac_cv_prog_cc_c11=no
4458 ac_save_CC=$CC
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 $ac_c_conftest_c11_program
4462 _ACEOF
4463 for ac_arg in '' -std=gnu11
4464 do
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"
4467 then :
4468 ac_cv_prog_cc_c11=$ac_arg
4469 fi
4470 rm -f core conftest.err conftest.$ac_objext conftest.beam
4471 test "x$ac_cv_prog_cc_c11" != "xno" && break
4472 done
4473 rm -f conftest.$ac_ext
4474 CC=$ac_save_CC
4475 fi
4476
4477 if test "x$ac_cv_prog_cc_c11" = xno
4478 then :
4479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4480 printf "%s\n" "unsupported" >&6; }
4481 else $as_nop
4482 if test "x$ac_cv_prog_cc_c11" = x
4483 then :
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4485 printf "%s\n" "none needed" >&6; }
4486 else $as_nop
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4488 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4489 CC="$CC $ac_cv_prog_cc_c11"
4490 fi
4491 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4492 ac_prog_cc_stdc=c11
4493 fi
4494 fi
4495 if test x$ac_prog_cc_stdc = xno
4496 then :
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4498 printf %s "checking for $CC option to enable C99 features... " >&6; }
4499 if test ${ac_cv_prog_cc_c99+y}
4500 then :
4501 printf %s "(cached) " >&6
4502 else $as_nop
4503 ac_cv_prog_cc_c99=no
4504 ac_save_CC=$CC
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 $ac_c_conftest_c99_program
4508 _ACEOF
4509 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4510 do
4511 CC="$ac_save_CC $ac_arg"
4512 if ac_fn_c_try_compile "$LINENO"
4513 then :
4514 ac_cv_prog_cc_c99=$ac_arg
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam
4517 test "x$ac_cv_prog_cc_c99" != "xno" && break
4518 done
4519 rm -f conftest.$ac_ext
4520 CC=$ac_save_CC
4521 fi
4522
4523 if test "x$ac_cv_prog_cc_c99" = xno
4524 then :
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4526 printf "%s\n" "unsupported" >&6; }
4527 else $as_nop
4528 if test "x$ac_cv_prog_cc_c99" = x
4529 then :
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4531 printf "%s\n" "none needed" >&6; }
4532 else $as_nop
4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4534 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4535 CC="$CC $ac_cv_prog_cc_c99"
4536 fi
4537 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4538 ac_prog_cc_stdc=c99
4539 fi
4540 fi
4541 if test x$ac_prog_cc_stdc = xno
4542 then :
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4544 printf %s "checking for $CC option to enable C89 features... " >&6; }
4545 if test ${ac_cv_prog_cc_c89+y}
4546 then :
4547 printf %s "(cached) " >&6
4548 else $as_nop
4549 ac_cv_prog_cc_c89=no
4550 ac_save_CC=$CC
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4553 $ac_c_conftest_c89_program
4554 _ACEOF
4555 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4556 do
4557 CC="$ac_save_CC $ac_arg"
4558 if ac_fn_c_try_compile "$LINENO"
4559 then :
4560 ac_cv_prog_cc_c89=$ac_arg
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext conftest.beam
4563 test "x$ac_cv_prog_cc_c89" != "xno" && break
4564 done
4565 rm -f conftest.$ac_ext
4566 CC=$ac_save_CC
4567 fi
4568
4569 if test "x$ac_cv_prog_cc_c89" = xno
4570 then :
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4572 printf "%s\n" "unsupported" >&6; }
4573 else $as_nop
4574 if test "x$ac_cv_prog_cc_c89" = x
4575 then :
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4577 printf "%s\n" "none needed" >&6; }
4578 else $as_nop
4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4580 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4581 CC="$CC $ac_cv_prog_cc_c89"
4582 fi
4583 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4584 ac_prog_cc_stdc=c89
4585 fi
4586 fi
4587
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594
4595 ac_ext=c
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4601 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4602 if test ${am_cv_prog_cc_c_o+y}
4603 then :
4604 printf %s "(cached) " >&6
4605 else $as_nop
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main (void)
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 # Make sure it works both with $CC and with simple cc.
4618 # Following AC_PROG_CC_C_O, we do the test twice because some
4619 # compilers refuse to overwrite an existing .o file with -o,
4620 # though they will create one.
4621 am_cv_prog_cc_c_o=yes
4622 for am_i in 1 2; do
4623 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4624 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4625 ac_status=$?
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); } \
4628 && test -f conftest2.$ac_objext; then
4629 : OK
4630 else
4631 am_cv_prog_cc_c_o=no
4632 break
4633 fi
4634 done
4635 rm -f core conftest*
4636 unset am_i
4637 fi
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4639 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4640 if test "$am_cv_prog_cc_c_o" != yes; then
4641 # Losing compiler, so override with the script.
4642 # FIXME: It is wrong to rewrite CC.
4643 # But if we don't then we get into trouble of one sort or another.
4644 # A longer-term fix would be to have automake use am__CC in this case,
4645 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4646 CC="$am_aux_dir/compile $CC"
4647 fi
4648 ac_ext=c
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4653
4654 DEPDIR="${am__leading_dot}deps"
4655
4656 ac_config_commands="$ac_config_commands depfiles"
4657
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4659 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4660 cat > confinc.mk << 'END'
4661 am__doit:
4662 @echo this is the am__doit target >confinc.out
4663 .PHONY: am__doit
4664 END
4665 am__include="#"
4666 am__quote=
4667 # BSD make does it like this.
4668 echo '.include "confinc.mk" # ignored' > confmf.BSD
4669 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4670 echo 'include confinc.mk # ignored' > confmf.GNU
4671 _am_result=no
4672 for s in GNU BSD; do
4673 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4674 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }
4678 case $?:`cat confinc.out 2>/dev/null` in #(
4679 '0:this is the am__doit target') :
4680 case $s in #(
4681 BSD) :
4682 am__include='.include' am__quote='"' ;; #(
4683 *) :
4684 am__include='include' am__quote='' ;;
4685 esac ;; #(
4686 *) :
4687 ;;
4688 esac
4689 if test "$am__include" != "#"; then
4690 _am_result="yes ($s style)"
4691 break
4692 fi
4693 done
4694 rm -f confinc.* confmf.*
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4696 printf "%s\n" "${_am_result}" >&6; }
4697
4698 # Check whether --enable-dependency-tracking was given.
4699 if test ${enable_dependency_tracking+y}
4700 then :
4701 enableval=$enable_dependency_tracking;
4702 fi
4703
4704 if test "x$enable_dependency_tracking" != xno; then
4705 am_depcomp="$ac_aux_dir/depcomp"
4706 AMDEPBACKSLASH='\'
4707 am__nodep='_no'
4708 fi
4709 if test "x$enable_dependency_tracking" != xno; then
4710 AMDEP_TRUE=
4711 AMDEP_FALSE='#'
4712 else
4713 AMDEP_TRUE='#'
4714 AMDEP_FALSE=
4715 fi
4716
4717
4718
4719 depcc="$CC" am_compiler_list=
4720
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4722 printf %s "checking dependency style of $depcc... " >&6; }
4723 if test ${am_cv_CC_dependencies_compiler_type+y}
4724 then :
4725 printf %s "(cached) " >&6
4726 else $as_nop
4727 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4728 # We make a subdir and do the tests there. Otherwise we can end up
4729 # making bogus files that we don't know about and never remove. For
4730 # instance it was reported that on HP-UX the gcc test will end up
4731 # making a dummy file named 'D' -- because '-MD' means "put the output
4732 # in D".
4733 rm -rf conftest.dir
4734 mkdir conftest.dir
4735 # Copy depcomp to subdir because otherwise we won't find it if we're
4736 # using a relative directory.
4737 cp "$am_depcomp" conftest.dir
4738 cd conftest.dir
4739 # We will build objects and dependencies in a subdirectory because
4740 # it helps to detect inapplicable dependency modes. For instance
4741 # both Tru64's cc and ICC support -MD to output dependencies as a
4742 # side effect of compilation, but ICC will put the dependencies in
4743 # the current directory while Tru64 will put them in the object
4744 # directory.
4745 mkdir sub
4746
4747 am_cv_CC_dependencies_compiler_type=none
4748 if test "$am_compiler_list" = ""; then
4749 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4750 fi
4751 am__universal=false
4752 case " $depcc " in #(
4753 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4754 esac
4755
4756 for depmode in $am_compiler_list; do
4757 # Setup a source with many dependencies, because some compilers
4758 # like to wrap large dependency lists on column 80 (with \), and
4759 # we should not choose a depcomp mode which is confused by this.
4760 #
4761 # We need to recreate these files for each test, as the compiler may
4762 # overwrite some of them when testing with obscure command lines.
4763 # This happens at least with the AIX C compiler.
4764 : > sub/conftest.c
4765 for i in 1 2 3 4 5 6; do
4766 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4767 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4768 # Solaris 10 /bin/sh.
4769 echo '/* dummy */' > sub/conftst$i.h
4770 done
4771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4772
4773 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4774 # mode. It turns out that the SunPro C++ compiler does not properly
4775 # handle '-M -o', and we need to detect this. Also, some Intel
4776 # versions had trouble with output in subdirs.
4777 am__obj=sub/conftest.${OBJEXT-o}
4778 am__minus_obj="-o $am__obj"
4779 case $depmode in
4780 gcc)
4781 # This depmode causes a compiler race in universal mode.
4782 test "$am__universal" = false || continue
4783 ;;
4784 nosideeffect)
4785 # After this tag, mechanisms are not by side-effect, so they'll
4786 # only be used when explicitly requested.
4787 if test "x$enable_dependency_tracking" = xyes; then
4788 continue
4789 else
4790 break
4791 fi
4792 ;;
4793 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4794 # This compiler won't grok '-c -o', but also, the minuso test has
4795 # not run yet. These depmodes are late enough in the game, and
4796 # so weak that their functioning should not be impacted.
4797 am__obj=conftest.${OBJEXT-o}
4798 am__minus_obj=
4799 ;;
4800 none) break ;;
4801 esac
4802 if depmode=$depmode \
4803 source=sub/conftest.c object=$am__obj \
4804 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4805 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4806 >/dev/null 2>conftest.err &&
4807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4809 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4811 # icc doesn't choke on unknown options, it will just issue warnings
4812 # or remarks (even with -Werror). So we grep stderr for any message
4813 # that says an option was ignored or not supported.
4814 # When given -MP, icc 7.0 and 7.1 complain thusly:
4815 # icc: Command line warning: ignoring option '-M'; no argument required
4816 # The diagnosis changed in icc 8.0:
4817 # icc: Command line remark: option '-MP' not supported
4818 if (grep 'ignoring option' conftest.err ||
4819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4820 am_cv_CC_dependencies_compiler_type=$depmode
4821 break
4822 fi
4823 fi
4824 done
4825
4826 cd ..
4827 rm -rf conftest.dir
4828 else
4829 am_cv_CC_dependencies_compiler_type=none
4830 fi
4831
4832 fi
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4834 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4836
4837 if
4838 test "x$enable_dependency_tracking" != xno \
4839 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4840 am__fastdepCC_TRUE=
4841 am__fastdepCC_FALSE='#'
4842 else
4843 am__fastdepCC_TRUE='#'
4844 am__fastdepCC_FALSE=
4845 fi
4846
4847
4848
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4850 printf %s "checking whether ln -s works... " >&6; }
4851 LN_S=$as_ln_s
4852 if test "$LN_S" = "ln -s"; then
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 printf "%s\n" "yes" >&6; }
4855 else
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4857 printf "%s\n" "no, using $LN_S" >&6; }
4858 fi
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4869 if test -n "$ac_tool_prefix"; then
4870 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 printf %s "checking for $ac_word... " >&6; }
4874 if test ${ac_cv_path_PKG_CONFIG+y}
4875 then :
4876 printf %s "(cached) " >&6
4877 else $as_nop
4878 case $PKG_CONFIG in
4879 [\\/]* | ?:[\\/]*)
4880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4881 ;;
4882 *)
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886 IFS=$as_save_IFS
4887 case $as_dir in #(((
4888 '') as_dir=./ ;;
4889 */) ;;
4890 *) as_dir=$as_dir/ ;;
4891 esac
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4894 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902 ;;
4903 esac
4904 fi
4905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4906 if test -n "$PKG_CONFIG"; then
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4908 printf "%s\n" "$PKG_CONFIG" >&6; }
4909 else
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 printf "%s\n" "no" >&6; }
4912 fi
4913
4914
4915 fi
4916 if test -z "$ac_cv_path_PKG_CONFIG"; then
4917 ac_pt_PKG_CONFIG=$PKG_CONFIG
4918 # Extract the first word of "pkg-config", so it can be a program name with args.
4919 set dummy pkg-config; ac_word=$2
4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 printf %s "checking for $ac_word... " >&6; }
4922 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4923 then :
4924 printf %s "(cached) " >&6
4925 else $as_nop
4926 case $ac_pt_PKG_CONFIG in
4927 [\\/]* | ?:[\\/]*)
4928 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4929 ;;
4930 *)
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4933 do
4934 IFS=$as_save_IFS
4935 case $as_dir in #(((
4936 '') as_dir=./ ;;
4937 */) ;;
4938 *) as_dir=$as_dir/ ;;
4939 esac
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4942 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4944 break 2
4945 fi
4946 done
4947 done
4948 IFS=$as_save_IFS
4949
4950 ;;
4951 esac
4952 fi
4953 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4954 if test -n "$ac_pt_PKG_CONFIG"; then
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4956 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4957 else
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 printf "%s\n" "no" >&6; }
4960 fi
4961
4962 if test "x$ac_pt_PKG_CONFIG" = x; then
4963 PKG_CONFIG=""
4964 else
4965 case $cross_compiling:$ac_tool_warned in
4966 yes:)
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4969 ac_tool_warned=yes ;;
4970 esac
4971 PKG_CONFIG=$ac_pt_PKG_CONFIG
4972 fi
4973 else
4974 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4975 fi
4976
4977 fi
4978 if test -n "$PKG_CONFIG"; then
4979 _pkg_min_version=0.9.0
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4981 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4982 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4984 printf "%s\n" "yes" >&6; }
4985 else
4986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 printf "%s\n" "no" >&6; }
4988 PKG_CONFIG=""
4989 fi
4990 fi
4991
4992 case `pwd` in
4993 *\ * | *\ *)
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4995 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4996 esac
4997
4998
4999
5000 macro_version='2.4.7'
5001 macro_revision='2.4.7'
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016 ltmain=$ac_aux_dir/ltmain.sh
5017
5018 # Backslashify metacharacters that are still active within
5019 # double-quoted strings.
5020 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5021
5022 # Same as above, but do not quote variable references.
5023 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5024
5025 # Sed substitution to delay expansion of an escaped shell variable in a
5026 # double_quote_subst'ed string.
5027 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5028
5029 # Sed substitution to delay expansion of an escaped single quote.
5030 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5031
5032 # Sed substitution to avoid accidental globbing in evaled expressions
5033 no_glob_subst='s/\*/\\\*/g'
5034
5035 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5037 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5038
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5040 printf %s "checking how to print strings... " >&6; }
5041 # Test print first, because it will be a builtin if present.
5042 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5043 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5044 ECHO='print -r --'
5045 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5046 ECHO='printf %s\n'
5047 else
5048 # Use this function as a fallback that always works.
5049 func_fallback_echo ()
5050 {
5051 eval 'cat <<_LTECHO_EOF
5052 $1
5053 _LTECHO_EOF'
5054 }
5055 ECHO='func_fallback_echo'
5056 fi
5057
5058 # func_echo_all arg...
5059 # Invoke $ECHO with all args, space-separated.
5060 func_echo_all ()
5061 {
5062 $ECHO ""
5063 }
5064
5065 case $ECHO in
5066 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5067 printf "%s\n" "printf" >&6; } ;;
5068 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5069 printf "%s\n" "print -r" >&6; } ;;
5070 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5071 printf "%s\n" "cat" >&6; } ;;
5072 esac
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5088 printf %s "checking for a sed that does not truncate output... " >&6; }
5089 if test ${ac_cv_path_SED+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else $as_nop
5093 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094 for ac_i in 1 2 3 4 5 6 7; do
5095 ac_script="$ac_script$as_nl$ac_script"
5096 done
5097 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098 { ac_script=; unset ac_script;}
5099 if test -z "$SED"; then
5100 ac_path_SED_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH
5104 do
5105 IFS=$as_save_IFS
5106 case $as_dir in #(((
5107 '') as_dir=./ ;;
5108 */) ;;
5109 *) as_dir=$as_dir/ ;;
5110 esac
5111 for ac_prog in sed gsed
5112 do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5115 as_fn_executable_p "$ac_path_SED" || continue
5116 # Check for GNU ac_path_SED and select it if it is found.
5117 # Check for GNU $ac_path_SED
5118 case `"$ac_path_SED" --version 2>&1` in
5119 *GNU*)
5120 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5121 *)
5122 ac_count=0
5123 printf %s 0123456789 >"conftest.in"
5124 while :
5125 do
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 printf "%s\n" '' >> "conftest.nl"
5130 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 as_fn_arith $ac_count + 1 && ac_count=$as_val
5133 if test $ac_count -gt ${ac_path_SED_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_SED="$ac_path_SED"
5136 ac_path_SED_max=$ac_count
5137 fi
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5140 done
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142 esac
5143
5144 $ac_path_SED_found && break 3
5145 done
5146 done
5147 done
5148 IFS=$as_save_IFS
5149 if test -z "$ac_cv_path_SED"; then
5150 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5151 fi
5152 else
5153 ac_cv_path_SED=$SED
5154 fi
5155
5156 fi
5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5158 printf "%s\n" "$ac_cv_path_SED" >&6; }
5159 SED="$ac_cv_path_SED"
5160 rm -f conftest.sed
5161
5162 test -z "$SED" && SED=sed
5163 Xsed="$SED -e 1s/^X//"
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5176 printf %s "checking for grep that handles long lines and -e... " >&6; }
5177 if test ${ac_cv_path_GREP+y}
5178 then :
5179 printf %s "(cached) " >&6
5180 else $as_nop
5181 if test -z "$GREP"; then
5182 ac_path_GREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5186 do
5187 IFS=$as_save_IFS
5188 case $as_dir in #(((
5189 '') as_dir=./ ;;
5190 */) ;;
5191 *) as_dir=$as_dir/ ;;
5192 esac
5193 for ac_prog in grep ggrep
5194 do
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5197 as_fn_executable_p "$ac_path_GREP" || continue
5198 # Check for GNU ac_path_GREP and select it if it is found.
5199 # Check for GNU $ac_path_GREP
5200 case `"$ac_path_GREP" --version 2>&1` in
5201 *GNU*)
5202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5203 *)
5204 ac_count=0
5205 printf %s 0123456789 >"conftest.in"
5206 while :
5207 do
5208 cat "conftest.in" "conftest.in" >"conftest.tmp"
5209 mv "conftest.tmp" "conftest.in"
5210 cp "conftest.in" "conftest.nl"
5211 printf "%s\n" 'GREP' >> "conftest.nl"
5212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5214 as_fn_arith $ac_count + 1 && ac_count=$as_val
5215 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5216 # Best one so far, save it but keep looking for a better one
5217 ac_cv_path_GREP="$ac_path_GREP"
5218 ac_path_GREP_max=$ac_count
5219 fi
5220 # 10*(2^10) chars as input seems more than enough
5221 test $ac_count -gt 10 && break
5222 done
5223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5224 esac
5225
5226 $ac_path_GREP_found && break 3
5227 done
5228 done
5229 done
5230 IFS=$as_save_IFS
5231 if test -z "$ac_cv_path_GREP"; then
5232 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5233 fi
5234 else
5235 ac_cv_path_GREP=$GREP
5236 fi
5237
5238 fi
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5240 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5241 GREP="$ac_cv_path_GREP"
5242
5243
5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5245 printf %s "checking for egrep... " >&6; }
5246 if test ${ac_cv_path_EGREP+y}
5247 then :
5248 printf %s "(cached) " >&6
5249 else $as_nop
5250 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5251 then ac_cv_path_EGREP="$GREP -E"
5252 else
5253 if test -z "$EGREP"; then
5254 ac_path_EGREP_found=false
5255 # Loop through the user's path and test for each of PROGNAME-LIST
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5258 do
5259 IFS=$as_save_IFS
5260 case $as_dir in #(((
5261 '') as_dir=./ ;;
5262 */) ;;
5263 *) as_dir=$as_dir/ ;;
5264 esac
5265 for ac_prog in egrep
5266 do
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5269 as_fn_executable_p "$ac_path_EGREP" || continue
5270 # Check for GNU ac_path_EGREP and select it if it is found.
5271 # Check for GNU $ac_path_EGREP
5272 case `"$ac_path_EGREP" --version 2>&1` in
5273 *GNU*)
5274 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5275 *)
5276 ac_count=0
5277 printf %s 0123456789 >"conftest.in"
5278 while :
5279 do
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 printf "%s\n" 'EGREP' >> "conftest.nl"
5284 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5286 as_fn_arith $ac_count + 1 && ac_count=$as_val
5287 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_EGREP="$ac_path_EGREP"
5290 ac_path_EGREP_max=$ac_count
5291 fi
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5294 done
5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 esac
5297
5298 $ac_path_EGREP_found && break 3
5299 done
5300 done
5301 done
5302 IFS=$as_save_IFS
5303 if test -z "$ac_cv_path_EGREP"; then
5304 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 fi
5306 else
5307 ac_cv_path_EGREP=$EGREP
5308 fi
5309
5310 fi
5311 fi
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5313 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5314 EGREP="$ac_cv_path_EGREP"
5315
5316
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5318 printf %s "checking for fgrep... " >&6; }
5319 if test ${ac_cv_path_FGREP+y}
5320 then :
5321 printf %s "(cached) " >&6
5322 else $as_nop
5323 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5324 then ac_cv_path_FGREP="$GREP -F"
5325 else
5326 if test -z "$FGREP"; then
5327 ac_path_FGREP_found=false
5328 # Loop through the user's path and test for each of PROGNAME-LIST
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5331 do
5332 IFS=$as_save_IFS
5333 case $as_dir in #(((
5334 '') as_dir=./ ;;
5335 */) ;;
5336 *) as_dir=$as_dir/ ;;
5337 esac
5338 for ac_prog in fgrep
5339 do
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5342 as_fn_executable_p "$ac_path_FGREP" || continue
5343 # Check for GNU ac_path_FGREP and select it if it is found.
5344 # Check for GNU $ac_path_FGREP
5345 case `"$ac_path_FGREP" --version 2>&1` in
5346 *GNU*)
5347 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5348 *)
5349 ac_count=0
5350 printf %s 0123456789 >"conftest.in"
5351 while :
5352 do
5353 cat "conftest.in" "conftest.in" >"conftest.tmp"
5354 mv "conftest.tmp" "conftest.in"
5355 cp "conftest.in" "conftest.nl"
5356 printf "%s\n" 'FGREP' >> "conftest.nl"
5357 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5359 as_fn_arith $ac_count + 1 && ac_count=$as_val
5360 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5361 # Best one so far, save it but keep looking for a better one
5362 ac_cv_path_FGREP="$ac_path_FGREP"
5363 ac_path_FGREP_max=$ac_count
5364 fi
5365 # 10*(2^10) chars as input seems more than enough
5366 test $ac_count -gt 10 && break
5367 done
5368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5369 esac
5370
5371 $ac_path_FGREP_found && break 3
5372 done
5373 done
5374 done
5375 IFS=$as_save_IFS
5376 if test -z "$ac_cv_path_FGREP"; then
5377 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5378 fi
5379 else
5380 ac_cv_path_FGREP=$FGREP
5381 fi
5382
5383 fi
5384 fi
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5386 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5387 FGREP="$ac_cv_path_FGREP"
5388
5389
5390 test -z "$GREP" && GREP=grep
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 # Check whether --with-gnu-ld was given.
5411 if test ${with_gnu_ld+y}
5412 then :
5413 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5414 else $as_nop
5415 with_gnu_ld=no
5416 fi
5417
5418 ac_prog=ld
5419 if test yes = "$GCC"; then
5420 # Check if gcc -print-prog-name=ld gives a path.
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5422 printf %s "checking for ld used by $CC... " >&6; }
5423 case $host in
5424 *-*-mingw*)
5425 # gcc leaves a trailing carriage return, which upsets mingw
5426 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5427 *)
5428 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5429 esac
5430 case $ac_prog in
5431 # Accept absolute paths.
5432 [\\/]* | ?:[\\/]*)
5433 re_direlt='/[^/][^/]*/\.\./'
5434 # Canonicalize the pathname of ld
5435 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5436 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5437 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5438 done
5439 test -z "$LD" && LD=$ac_prog
5440 ;;
5441 "")
5442 # If it fails, then pretend we aren't using GCC.
5443 ac_prog=ld
5444 ;;
5445 *)
5446 # If it is relative, then search for the first ld in PATH.
5447 with_gnu_ld=unknown
5448 ;;
5449 esac
5450 elif test yes = "$with_gnu_ld"; then
5451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5452 printf %s "checking for GNU ld... " >&6; }
5453 else
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5455 printf %s "checking for non-GNU ld... " >&6; }
5456 fi
5457 if test ${lt_cv_path_LD+y}
5458 then :
5459 printf %s "(cached) " >&6
5460 else $as_nop
5461 if test -z "$LD"; then
5462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5463 for ac_dir in $PATH; do
5464 IFS=$lt_save_ifs
5465 test -z "$ac_dir" && ac_dir=.
5466 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5467 lt_cv_path_LD=$ac_dir/$ac_prog
5468 # Check to see if the program is GNU ld. I'd rather use --version,
5469 # but apparently some variants of GNU ld only accept -v.
5470 # Break only if it was the GNU/non-GNU ld that we prefer.
5471 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5472 *GNU* | *'with BFD'*)
5473 test no != "$with_gnu_ld" && break
5474 ;;
5475 *)
5476 test yes != "$with_gnu_ld" && break
5477 ;;
5478 esac
5479 fi
5480 done
5481 IFS=$lt_save_ifs
5482 else
5483 lt_cv_path_LD=$LD # Let the user override the test with a path.
5484 fi
5485 fi
5486
5487 LD=$lt_cv_path_LD
5488 if test -n "$LD"; then
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5490 printf "%s\n" "$LD" >&6; }
5491 else
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 printf "%s\n" "no" >&6; }
5494 fi
5495 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5497 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5498 if test ${lt_cv_prog_gnu_ld+y}
5499 then :
5500 printf %s "(cached) " >&6
5501 else $as_nop
5502 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5503 case `$LD -v 2>&1 </dev/null` in
5504 *GNU* | *'with BFD'*)
5505 lt_cv_prog_gnu_ld=yes
5506 ;;
5507 *)
5508 lt_cv_prog_gnu_ld=no
5509 ;;
5510 esac
5511 fi
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5513 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5514 with_gnu_ld=$lt_cv_prog_gnu_ld
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5525 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5526 if test ${lt_cv_path_NM+y}
5527 then :
5528 printf %s "(cached) " >&6
5529 else $as_nop
5530 if test -n "$NM"; then
5531 # Let the user override the test.
5532 lt_cv_path_NM=$NM
5533 else
5534 lt_nm_to_check=${ac_tool_prefix}nm
5535 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5536 lt_nm_to_check="$lt_nm_to_check nm"
5537 fi
5538 for lt_tmp_nm in $lt_nm_to_check; do
5539 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5540 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5541 IFS=$lt_save_ifs
5542 test -z "$ac_dir" && ac_dir=.
5543 tmp_nm=$ac_dir/$lt_tmp_nm
5544 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5545 # Check to see if the nm accepts a BSD-compat flag.
5546 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5547 # nm: unknown option "B" ignored
5548 # Tru64's nm complains that /dev/null is an invalid object file
5549 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5550 case $build_os in
5551 mingw*) lt_bad_file=conftest.nm/nofile ;;
5552 *) lt_bad_file=/dev/null ;;
5553 esac
5554 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5555 *$lt_bad_file* | *'Invalid file or object type'*)
5556 lt_cv_path_NM="$tmp_nm -B"
5557 break 2
5558 ;;
5559 *)
5560 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5561 */dev/null*)
5562 lt_cv_path_NM="$tmp_nm -p"
5563 break 2
5564 ;;
5565 *)
5566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5567 continue # so that we can try to find one that supports BSD flags
5568 ;;
5569 esac
5570 ;;
5571 esac
5572 fi
5573 done
5574 IFS=$lt_save_ifs
5575 done
5576 : ${lt_cv_path_NM=no}
5577 fi
5578 fi
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5580 printf "%s\n" "$lt_cv_path_NM" >&6; }
5581 if test no != "$lt_cv_path_NM"; then
5582 NM=$lt_cv_path_NM
5583 else
5584 # Didn't find any BSD compatible name lister, look for dumpbin.
5585 if test -n "$DUMPBIN"; then :
5586 # Let the user override the test.
5587 else
5588 if test -n "$ac_tool_prefix"; then
5589 for ac_prog in dumpbin "link -dump"
5590 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 printf %s "checking for $ac_word... " >&6; }
5595 if test ${ac_cv_prog_DUMPBIN+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else $as_nop
5599 if test -n "$DUMPBIN"; then
5600 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 case $as_dir in #(((
5607 '') as_dir=./ ;;
5608 */) ;;
5609 *) as_dir=$as_dir/ ;;
5610 esac
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 DUMPBIN=$ac_cv_prog_DUMPBIN
5624 if test -n "$DUMPBIN"; then
5625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5626 printf "%s\n" "$DUMPBIN" >&6; }
5627 else
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 printf "%s\n" "no" >&6; }
5630 fi
5631
5632
5633 test -n "$DUMPBIN" && break
5634 done
5635 fi
5636 if test -z "$DUMPBIN"; then
5637 ac_ct_DUMPBIN=$DUMPBIN
5638 for ac_prog in dumpbin "link -dump"
5639 do
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641 set dummy $ac_prog; ac_word=$2
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 printf %s "checking for $ac_word... " >&6; }
5644 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5645 then :
5646 printf %s "(cached) " >&6
5647 else $as_nop
5648 if test -n "$ac_ct_DUMPBIN"; then
5649 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5653 do
5654 IFS=$as_save_IFS
5655 case $as_dir in #(((
5656 '') as_dir=./ ;;
5657 */) ;;
5658 *) as_dir=$as_dir/ ;;
5659 esac
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5662 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5664 break 2
5665 fi
5666 done
5667 done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5673 if test -n "$ac_ct_DUMPBIN"; then
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5675 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5676 else
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 printf "%s\n" "no" >&6; }
5679 fi
5680
5681
5682 test -n "$ac_ct_DUMPBIN" && break
5683 done
5684
5685 if test "x$ac_ct_DUMPBIN" = x; then
5686 DUMPBIN=":"
5687 else
5688 case $cross_compiling:$ac_tool_warned in
5689 yes:)
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5693 esac
5694 DUMPBIN=$ac_ct_DUMPBIN
5695 fi
5696 fi
5697
5698 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5699 *COFF*)
5700 DUMPBIN="$DUMPBIN -symbols -headers"
5701 ;;
5702 *)
5703 DUMPBIN=:
5704 ;;
5705 esac
5706 fi
5707
5708 if test : != "$DUMPBIN"; then
5709 NM=$DUMPBIN
5710 fi
5711 fi
5712 test -z "$NM" && NM=nm
5713
5714
5715
5716
5717
5718
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5720 printf %s "checking the name lister ($NM) interface... " >&6; }
5721 if test ${lt_cv_nm_interface+y}
5722 then :
5723 printf %s "(cached) " >&6
5724 else $as_nop
5725 lt_cv_nm_interface="BSD nm"
5726 echo "int some_variable = 0;" > conftest.$ac_ext
5727 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5728 (eval "$ac_compile" 2>conftest.err)
5729 cat conftest.err >&5
5730 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5731 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5732 cat conftest.err >&5
5733 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5734 cat conftest.out >&5
5735 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5736 lt_cv_nm_interface="MS dumpbin"
5737 fi
5738 rm -f conftest*
5739 fi
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5741 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5742
5743 # find the maximum length of command line arguments
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5745 printf %s "checking the maximum length of command line arguments... " >&6; }
5746 if test ${lt_cv_sys_max_cmd_len+y}
5747 then :
5748 printf %s "(cached) " >&6
5749 else $as_nop
5750 i=0
5751 teststring=ABCD
5752
5753 case $build_os in
5754 msdosdjgpp*)
5755 # On DJGPP, this test can blow up pretty badly due to problems in libc
5756 # (any single argument exceeding 2000 bytes causes a buffer overrun
5757 # during glob expansion). Even if it were fixed, the result of this
5758 # check would be larger than it should be.
5759 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5760 ;;
5761
5762 gnu*)
5763 # Under GNU Hurd, this test is not required because there is
5764 # no limit to the length of command line arguments.
5765 # Libtool will interpret -1 as no limit whatsoever
5766 lt_cv_sys_max_cmd_len=-1;
5767 ;;
5768
5769 cygwin* | mingw* | cegcc*)
5770 # On Win9x/ME, this test blows up -- it succeeds, but takes
5771 # about 5 minutes as the teststring grows exponentially.
5772 # Worse, since 9x/ME are not pre-emptively multitasking,
5773 # you end up with a "frozen" computer, even though with patience
5774 # the test eventually succeeds (with a max line length of 256k).
5775 # Instead, let's just punt: use the minimum linelength reported by
5776 # all of the supported platforms: 8192 (on NT/2K/XP).
5777 lt_cv_sys_max_cmd_len=8192;
5778 ;;
5779
5780 mint*)
5781 # On MiNT this can take a long time and run out of memory.
5782 lt_cv_sys_max_cmd_len=8192;
5783 ;;
5784
5785 amigaos*)
5786 # On AmigaOS with pdksh, this test takes hours, literally.
5787 # So we just punt and use a minimum line length of 8192.
5788 lt_cv_sys_max_cmd_len=8192;
5789 ;;
5790
5791 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5792 # This has been around since 386BSD, at least. Likely further.
5793 if test -x /sbin/sysctl; then
5794 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5795 elif test -x /usr/sbin/sysctl; then
5796 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5797 else
5798 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5799 fi
5800 # And add a safety zone
5801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5803 ;;
5804
5805 interix*)
5806 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5807 lt_cv_sys_max_cmd_len=196608
5808 ;;
5809
5810 os2*)
5811 # The test takes a long time on OS/2.
5812 lt_cv_sys_max_cmd_len=8192
5813 ;;
5814
5815 osf*)
5816 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5817 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5818 # nice to cause kernel panics so lets avoid the loop below.
5819 # First set a reasonable default.
5820 lt_cv_sys_max_cmd_len=16384
5821 #
5822 if test -x /sbin/sysconfig; then
5823 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5824 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5825 esac
5826 fi
5827 ;;
5828 sco3.2v5*)
5829 lt_cv_sys_max_cmd_len=102400
5830 ;;
5831 sysv5* | sco5v6* | sysv4.2uw2*)
5832 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5833 if test -n "$kargmax"; then
5834 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5835 else
5836 lt_cv_sys_max_cmd_len=32768
5837 fi
5838 ;;
5839 *)
5840 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5841 if test -n "$lt_cv_sys_max_cmd_len" && \
5842 test undefined != "$lt_cv_sys_max_cmd_len"; then
5843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5845 else
5846 # Make teststring a little bigger before we do anything with it.
5847 # a 1K string should be a reasonable start.
5848 for i in 1 2 3 4 5 6 7 8; do
5849 teststring=$teststring$teststring
5850 done
5851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5852 # If test is not a shell built-in, we'll probably end up computing a
5853 # maximum length that is only half of the actual maximum length, but
5854 # we can't tell.
5855 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5856 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5857 test 17 != "$i" # 1/2 MB should be enough
5858 do
5859 i=`expr $i + 1`
5860 teststring=$teststring$teststring
5861 done
5862 # Only check the string length outside the loop.
5863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5864 teststring=
5865 # Add a significant safety factor because C++ compilers can tack on
5866 # massive amounts of additional arguments before passing them to the
5867 # linker. It appears as though 1/2 is a usable value.
5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5869 fi
5870 ;;
5871 esac
5872
5873 fi
5874
5875 if test -n "$lt_cv_sys_max_cmd_len"; then
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5877 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5878 else
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5880 printf "%s\n" "none" >&6; }
5881 fi
5882 max_cmd_len=$lt_cv_sys_max_cmd_len
5883
5884
5885
5886
5887
5888
5889 : ${CP="cp -f"}
5890 : ${MV="mv -f"}
5891 : ${RM="rm -f"}
5892
5893 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5894 lt_unset=unset
5895 else
5896 lt_unset=false
5897 fi
5898
5899
5900
5901
5902
5903 # test EBCDIC or ASCII
5904 case `echo X|tr X '\101'` in
5905 A) # ASCII based system
5906 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5907 lt_SP2NL='tr \040 \012'
5908 lt_NL2SP='tr \015\012 \040\040'
5909 ;;
5910 *) # EBCDIC based system
5911 lt_SP2NL='tr \100 \n'
5912 lt_NL2SP='tr \r\n \100\100'
5913 ;;
5914 esac
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5925 printf %s "checking how to convert $build file names to $host format... " >&6; }
5926 if test ${lt_cv_to_host_file_cmd+y}
5927 then :
5928 printf %s "(cached) " >&6
5929 else $as_nop
5930 case $host in
5931 *-*-mingw* )
5932 case $build in
5933 *-*-mingw* ) # actually msys
5934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5935 ;;
5936 *-*-cygwin* )
5937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5938 ;;
5939 * ) # otherwise, assume *nix
5940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5941 ;;
5942 esac
5943 ;;
5944 *-*-cygwin* )
5945 case $build in
5946 *-*-mingw* ) # actually msys
5947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5948 ;;
5949 *-*-cygwin* )
5950 lt_cv_to_host_file_cmd=func_convert_file_noop
5951 ;;
5952 * ) # otherwise, assume *nix
5953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5954 ;;
5955 esac
5956 ;;
5957 * ) # unhandled hosts (and "normal" native builds)
5958 lt_cv_to_host_file_cmd=func_convert_file_noop
5959 ;;
5960 esac
5961
5962 fi
5963
5964 to_host_file_cmd=$lt_cv_to_host_file_cmd
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5966 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5967
5968
5969
5970
5971
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5973 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5974 if test ${lt_cv_to_tool_file_cmd+y}
5975 then :
5976 printf %s "(cached) " >&6
5977 else $as_nop
5978 #assume ordinary cross tools, or native build.
5979 lt_cv_to_tool_file_cmd=func_convert_file_noop
5980 case $host in
5981 *-*-mingw* )
5982 case $build in
5983 *-*-mingw* ) # actually msys
5984 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5985 ;;
5986 esac
5987 ;;
5988 esac
5989
5990 fi
5991
5992 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5994 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5995
5996
5997
5998
5999
6000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6001 printf %s "checking for $LD option to reload object files... " >&6; }
6002 if test ${lt_cv_ld_reload_flag+y}
6003 then :
6004 printf %s "(cached) " >&6
6005 else $as_nop
6006 lt_cv_ld_reload_flag='-r'
6007 fi
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6009 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6010 reload_flag=$lt_cv_ld_reload_flag
6011 case $reload_flag in
6012 "" | " "*) ;;
6013 *) reload_flag=" $reload_flag" ;;
6014 esac
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 case $host_os in
6017 cygwin* | mingw* | pw32* | cegcc*)
6018 if test yes != "$GCC"; then
6019 reload_cmds=false
6020 fi
6021 ;;
6022 darwin*)
6023 if test yes = "$GCC"; then
6024 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6025 else
6026 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6027 fi
6028 ;;
6029 esac
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039 if test -n "$ac_tool_prefix"; then
6040 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6041 set dummy ${ac_tool_prefix}file; ac_word=$2
6042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 printf %s "checking for $ac_word... " >&6; }
6044 if test ${ac_cv_prog_FILECMD+y}
6045 then :
6046 printf %s "(cached) " >&6
6047 else $as_nop
6048 if test -n "$FILECMD"; then
6049 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054 IFS=$as_save_IFS
6055 case $as_dir in #(((
6056 '') as_dir=./ ;;
6057 */) ;;
6058 *) as_dir=$as_dir/ ;;
6059 esac
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6062 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 FILECMD=$ac_cv_prog_FILECMD
6073 if test -n "$FILECMD"; then
6074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6075 printf "%s\n" "$FILECMD" >&6; }
6076 else
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 printf "%s\n" "no" >&6; }
6079 fi
6080
6081
6082 fi
6083 if test -z "$ac_cv_prog_FILECMD"; then
6084 ac_ct_FILECMD=$FILECMD
6085 # Extract the first word of "file", so it can be a program name with args.
6086 set dummy file; ac_word=$2
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 printf %s "checking for $ac_word... " >&6; }
6089 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6090 then :
6091 printf %s "(cached) " >&6
6092 else $as_nop
6093 if test -n "$ac_ct_FILECMD"; then
6094 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6095 else
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099 IFS=$as_save_IFS
6100 case $as_dir in #(((
6101 '') as_dir=./ ;;
6102 */) ;;
6103 *) as_dir=$as_dir/ ;;
6104 esac
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_ac_ct_FILECMD="file"
6108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111 done
6112 done
6113 IFS=$as_save_IFS
6114
6115 fi
6116 fi
6117 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6118 if test -n "$ac_ct_FILECMD"; then
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6120 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6121 else
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 printf "%s\n" "no" >&6; }
6124 fi
6125
6126 if test "x$ac_ct_FILECMD" = x; then
6127 FILECMD=":"
6128 else
6129 case $cross_compiling:$ac_tool_warned in
6130 yes:)
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6132 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6133 ac_tool_warned=yes ;;
6134 esac
6135 FILECMD=$ac_ct_FILECMD
6136 fi
6137 else
6138 FILECMD="$ac_cv_prog_FILECMD"
6139 fi
6140
6141
6142
6143
6144
6145
6146
6147 if test -n "$ac_tool_prefix"; then
6148 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6149 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 printf %s "checking for $ac_word... " >&6; }
6152 if test ${ac_cv_prog_OBJDUMP+y}
6153 then :
6154 printf %s "(cached) " >&6
6155 else $as_nop
6156 if test -n "$OBJDUMP"; then
6157 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162 IFS=$as_save_IFS
6163 case $as_dir in #(((
6164 '') as_dir=./ ;;
6165 */) ;;
6166 *) as_dir=$as_dir/ ;;
6167 esac
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6172 break 2
6173 fi
6174 done
6175 done
6176 IFS=$as_save_IFS
6177
6178 fi
6179 fi
6180 OBJDUMP=$ac_cv_prog_OBJDUMP
6181 if test -n "$OBJDUMP"; then
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6183 printf "%s\n" "$OBJDUMP" >&6; }
6184 else
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6186 printf "%s\n" "no" >&6; }
6187 fi
6188
6189
6190 fi
6191 if test -z "$ac_cv_prog_OBJDUMP"; then
6192 ac_ct_OBJDUMP=$OBJDUMP
6193 # Extract the first word of "objdump", so it can be a program name with args.
6194 set dummy objdump; ac_word=$2
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196 printf %s "checking for $ac_word... " >&6; }
6197 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6198 then :
6199 printf %s "(cached) " >&6
6200 else $as_nop
6201 if test -n "$ac_ct_OBJDUMP"; then
6202 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 case $as_dir in #(((
6209 '') as_dir=./ ;;
6210 */) ;;
6211 *) as_dir=$as_dir/ ;;
6212 esac
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6216 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6217 break 2
6218 fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6226 if test -n "$ac_ct_OBJDUMP"; then
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6228 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6229 else
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 printf "%s\n" "no" >&6; }
6232 fi
6233
6234 if test "x$ac_ct_OBJDUMP" = x; then
6235 OBJDUMP="false"
6236 else
6237 case $cross_compiling:$ac_tool_warned in
6238 yes:)
6239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6242 esac
6243 OBJDUMP=$ac_ct_OBJDUMP
6244 fi
6245 else
6246 OBJDUMP="$ac_cv_prog_OBJDUMP"
6247 fi
6248
6249 test -z "$OBJDUMP" && OBJDUMP=objdump
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6260 printf %s "checking how to recognize dependent libraries... " >&6; }
6261 if test ${lt_cv_deplibs_check_method+y}
6262 then :
6263 printf %s "(cached) " >&6
6264 else $as_nop
6265 lt_cv_file_magic_cmd='$MAGIC_CMD'
6266 lt_cv_file_magic_test_file=
6267 lt_cv_deplibs_check_method='unknown'
6268 # Need to set the preceding variable on all platforms that support
6269 # interlibrary dependencies.
6270 # 'none' -- dependencies not supported.
6271 # 'unknown' -- same as none, but documents that we really don't know.
6272 # 'pass_all' -- all dependencies passed with no checks.
6273 # 'test_compile' -- check by making test program.
6274 # 'file_magic [[regex]]' -- check by looking for files in library path
6275 # that responds to the $file_magic_cmd with a given extended regex.
6276 # If you have 'file' or equivalent on your system and you're not sure
6277 # whether 'pass_all' will *always* work, you probably want this one.
6278
6279 case $host_os in
6280 aix[4-9]*)
6281 lt_cv_deplibs_check_method=pass_all
6282 ;;
6283
6284 beos*)
6285 lt_cv_deplibs_check_method=pass_all
6286 ;;
6287
6288 bsdi[45]*)
6289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6290 lt_cv_file_magic_cmd='$FILECMD -L'
6291 lt_cv_file_magic_test_file=/shlib/libc.so
6292 ;;
6293
6294 cygwin*)
6295 # func_win32_libid is a shell function defined in ltmain.sh
6296 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6297 lt_cv_file_magic_cmd='func_win32_libid'
6298 ;;
6299
6300 mingw* | pw32*)
6301 # Base MSYS/MinGW do not provide the 'file' command needed by
6302 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6303 # unless we find 'file', for example because we are cross-compiling.
6304 if ( file / ) >/dev/null 2>&1; then
6305 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6306 lt_cv_file_magic_cmd='func_win32_libid'
6307 else
6308 # Keep this pattern in sync with the one in func_win32_libid.
6309 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6310 lt_cv_file_magic_cmd='$OBJDUMP -f'
6311 fi
6312 ;;
6313
6314 cegcc*)
6315 # use the weaker test based on 'objdump'. See mingw*.
6316 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6317 lt_cv_file_magic_cmd='$OBJDUMP -f'
6318 ;;
6319
6320 darwin* | rhapsody*)
6321 lt_cv_deplibs_check_method=pass_all
6322 ;;
6323
6324 freebsd* | dragonfly* | midnightbsd*)
6325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6326 case $host_cpu in
6327 i*86 )
6328 # Not sure whether the presence of OpenBSD here was a mistake.
6329 # Let's accept both of them until this is cleared up.
6330 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6331 lt_cv_file_magic_cmd=$FILECMD
6332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6333 ;;
6334 esac
6335 else
6336 lt_cv_deplibs_check_method=pass_all
6337 fi
6338 ;;
6339
6340 haiku*)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
6343
6344 hpux10.20* | hpux11*)
6345 lt_cv_file_magic_cmd=$FILECMD
6346 case $host_cpu in
6347 ia64*)
6348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6350 ;;
6351 hppa*64*)
6352 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]'
6353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6354 ;;
6355 *)
6356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6358 ;;
6359 esac
6360 ;;
6361
6362 interix[3-9]*)
6363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6365 ;;
6366
6367 irix5* | irix6* | nonstopux*)
6368 case $LD in
6369 *-32|*"-32 ") libmagic=32-bit;;
6370 *-n32|*"-n32 ") libmagic=N32;;
6371 *-64|*"-64 ") libmagic=64-bit;;
6372 *) libmagic=never-match;;
6373 esac
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377 # This must be glibc/ELF.
6378 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381
6382 netbsd* | netbsdelf*-gnu)
6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6385 else
6386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6387 fi
6388 ;;
6389
6390 newos6*)
6391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6392 lt_cv_file_magic_cmd=$FILECMD
6393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6394 ;;
6395
6396 *nto* | *qnx*)
6397 lt_cv_deplibs_check_method=pass_all
6398 ;;
6399
6400 openbsd* | bitrig*)
6401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6403 else
6404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6405 fi
6406 ;;
6407
6408 osf3* | osf4* | osf5*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412 rdos*)
6413 lt_cv_deplibs_check_method=pass_all
6414 ;;
6415
6416 solaris*)
6417 lt_cv_deplibs_check_method=pass_all
6418 ;;
6419
6420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 sysv4 | sysv4.3*)
6425 case $host_vendor in
6426 motorola)
6427 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]'
6428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6429 ;;
6430 ncr)
6431 lt_cv_deplibs_check_method=pass_all
6432 ;;
6433 sequent)
6434 lt_cv_file_magic_cmd='/bin/file'
6435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6436 ;;
6437 sni)
6438 lt_cv_file_magic_cmd='/bin/file'
6439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6440 lt_cv_file_magic_test_file=/lib/libc.so
6441 ;;
6442 siemens)
6443 lt_cv_deplibs_check_method=pass_all
6444 ;;
6445 pc)
6446 lt_cv_deplibs_check_method=pass_all
6447 ;;
6448 esac
6449 ;;
6450
6451 tpf*)
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
6454 os2*)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457 esac
6458
6459 fi
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6461 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6462
6463 file_magic_glob=
6464 want_nocaseglob=no
6465 if test "$build" = "$host"; then
6466 case $host_os in
6467 mingw* | pw32*)
6468 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6469 want_nocaseglob=yes
6470 else
6471 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6472 fi
6473 ;;
6474 esac
6475 fi
6476
6477 file_magic_cmd=$lt_cv_file_magic_cmd
6478 deplibs_check_method=$lt_cv_deplibs_check_method
6479 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 if test -n "$ac_tool_prefix"; then
6503 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 printf %s "checking for $ac_word... " >&6; }
6507 if test ${ac_cv_prog_DLLTOOL+y}
6508 then :
6509 printf %s "(cached) " >&6
6510 else $as_nop
6511 if test -n "$DLLTOOL"; then
6512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6513 else
6514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 for as_dir in $PATH
6516 do
6517 IFS=$as_save_IFS
6518 case $as_dir in #(((
6519 '') as_dir=./ ;;
6520 */) ;;
6521 *) as_dir=$as_dir/ ;;
6522 esac
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529 done
6530 done
6531 IFS=$as_save_IFS
6532
6533 fi
6534 fi
6535 DLLTOOL=$ac_cv_prog_DLLTOOL
6536 if test -n "$DLLTOOL"; then
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6538 printf "%s\n" "$DLLTOOL" >&6; }
6539 else
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 printf "%s\n" "no" >&6; }
6542 fi
6543
6544
6545 fi
6546 if test -z "$ac_cv_prog_DLLTOOL"; then
6547 ac_ct_DLLTOOL=$DLLTOOL
6548 # Extract the first word of "dlltool", so it can be a program name with args.
6549 set dummy dlltool; ac_word=$2
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 printf %s "checking for $ac_word... " >&6; }
6552 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6553 then :
6554 printf %s "(cached) " >&6
6555 else $as_nop
6556 if test -n "$ac_ct_DLLTOOL"; then
6557 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 case $as_dir in #(((
6564 '') as_dir=./ ;;
6565 */) ;;
6566 *) as_dir=$as_dir/ ;;
6567 esac
6568 for ac_exec_ext in '' $ac_executable_extensions; do
6569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6572 break 2
6573 fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6581 if test -n "$ac_ct_DLLTOOL"; then
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6583 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6584 else
6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 printf "%s\n" "no" >&6; }
6587 fi
6588
6589 if test "x$ac_ct_DLLTOOL" = x; then
6590 DLLTOOL="false"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 DLLTOOL=$ac_ct_DLLTOOL
6599 fi
6600 else
6601 DLLTOOL="$ac_cv_prog_DLLTOOL"
6602 fi
6603
6604 test -z "$DLLTOOL" && DLLTOOL=dlltool
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6616 printf %s "checking how to associate runtime and link libraries... " >&6; }
6617 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6618 then :
6619 printf %s "(cached) " >&6
6620 else $as_nop
6621 lt_cv_sharedlib_from_linklib_cmd='unknown'
6622
6623 case $host_os in
6624 cygwin* | mingw* | pw32* | cegcc*)
6625 # two different shell functions defined in ltmain.sh;
6626 # decide which one to use based on capabilities of $DLLTOOL
6627 case `$DLLTOOL --help 2>&1` in
6628 *--identify-strict*)
6629 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6630 ;;
6631 *)
6632 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6633 ;;
6634 esac
6635 ;;
6636 *)
6637 # fallback: assume linklib IS sharedlib
6638 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6639 ;;
6640 esac
6641
6642 fi
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6644 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6645 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6646 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6647
6648
6649
6650
6651
6652
6653
6654
6655 if test -n "$ac_tool_prefix"; then
6656 for ac_prog in ar
6657 do
6658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661 printf %s "checking for $ac_word... " >&6; }
6662 if test ${ac_cv_prog_AR+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else $as_nop
6666 if test -n "$AR"; then
6667 ac_cv_prog_AR="$AR" # Let the user override the test.
6668 else
6669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672 IFS=$as_save_IFS
6673 case $as_dir in #(((
6674 '') as_dir=./ ;;
6675 */) ;;
6676 *) as_dir=$as_dir/ ;;
6677 esac
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684 done
6685 done
6686 IFS=$as_save_IFS
6687
6688 fi
6689 fi
6690 AR=$ac_cv_prog_AR
6691 if test -n "$AR"; then
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6693 printf "%s\n" "$AR" >&6; }
6694 else
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 printf "%s\n" "no" >&6; }
6697 fi
6698
6699
6700 test -n "$AR" && break
6701 done
6702 fi
6703 if test -z "$AR"; then
6704 ac_ct_AR=$AR
6705 for ac_prog in ar
6706 do
6707 # Extract the first word of "$ac_prog", so it can be a program name with args.
6708 set dummy $ac_prog; ac_word=$2
6709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710 printf %s "checking for $ac_word... " >&6; }
6711 if test ${ac_cv_prog_ac_ct_AR+y}
6712 then :
6713 printf %s "(cached) " >&6
6714 else $as_nop
6715 if test -n "$ac_ct_AR"; then
6716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 case $as_dir in #(((
6723 '') as_dir=./ ;;
6724 */) ;;
6725 *) as_dir=$as_dir/ ;;
6726 esac
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_ac_ct_AR="$ac_prog"
6730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6731 break 2
6732 fi
6733 done
6734 done
6735 IFS=$as_save_IFS
6736
6737 fi
6738 fi
6739 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6740 if test -n "$ac_ct_AR"; then
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6742 printf "%s\n" "$ac_ct_AR" >&6; }
6743 else
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 printf "%s\n" "no" >&6; }
6746 fi
6747
6748
6749 test -n "$ac_ct_AR" && break
6750 done
6751
6752 if test "x$ac_ct_AR" = x; then
6753 AR="false"
6754 else
6755 case $cross_compiling:$ac_tool_warned in
6756 yes:)
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6759 ac_tool_warned=yes ;;
6760 esac
6761 AR=$ac_ct_AR
6762 fi
6763 fi
6764
6765 : ${AR=ar}
6766
6767
6768
6769
6770
6771
6772 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6773 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6774 # higher priority because thats what people were doing historically (setting
6775 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6776 # variable obsoleted/removed.
6777
6778 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6779 lt_ar_flags=$AR_FLAGS
6780
6781
6782
6783
6784
6785
6786 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6787 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6788
6789
6790
6791
6792
6793
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6795 printf %s "checking for archiver @FILE support... " >&6; }
6796 if test ${lt_cv_ar_at_file+y}
6797 then :
6798 printf %s "(cached) " >&6
6799 else $as_nop
6800 lt_cv_ar_at_file=no
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803
6804 int
6805 main (void)
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"
6813 then :
6814 echo conftest.$ac_objext > conftest.lst
6815 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6817 (eval $lt_ar_try) 2>&5
6818 ac_status=$?
6819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6820 test $ac_status = 0; }
6821 if test 0 -eq "$ac_status"; then
6822 # Ensure the archiver fails upon bogus file names.
6823 rm -f conftest.$ac_objext libconftest.a
6824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6825 (eval $lt_ar_try) 2>&5
6826 ac_status=$?
6827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }
6829 if test 0 -ne "$ac_status"; then
6830 lt_cv_ar_at_file=@
6831 fi
6832 fi
6833 rm -f conftest.* libconftest.a
6834
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6837
6838 fi
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6840 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6841
6842 if test no = "$lt_cv_ar_at_file"; then
6843 archiver_list_spec=
6844 else
6845 archiver_list_spec=$lt_cv_ar_at_file
6846 fi
6847
6848
6849
6850
6851
6852
6853
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}strip; ac_word=$2
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 printf %s "checking for $ac_word... " >&6; }
6859 if test ${ac_cv_prog_STRIP+y}
6860 then :
6861 printf %s "(cached) " >&6
6862 else $as_nop
6863 if test -n "$STRIP"; then
6864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 case $as_dir in #(((
6871 '') as_dir=./ ;;
6872 */) ;;
6873 *) as_dir=$as_dir/ ;;
6874 esac
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6879 break 2
6880 fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 STRIP=$ac_cv_prog_STRIP
6888 if test -n "$STRIP"; then
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6890 printf "%s\n" "$STRIP" >&6; }
6891 else
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 printf "%s\n" "no" >&6; }
6894 fi
6895
6896
6897 fi
6898 if test -z "$ac_cv_prog_STRIP"; then
6899 ac_ct_STRIP=$STRIP
6900 # Extract the first word of "strip", so it can be a program name with args.
6901 set dummy strip; ac_word=$2
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 printf %s "checking for $ac_word... " >&6; }
6904 if test ${ac_cv_prog_ac_ct_STRIP+y}
6905 then :
6906 printf %s "(cached) " >&6
6907 else $as_nop
6908 if test -n "$ac_ct_STRIP"; then
6909 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 case $as_dir in #(((
6916 '') as_dir=./ ;;
6917 */) ;;
6918 *) as_dir=$as_dir/ ;;
6919 esac
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_STRIP="strip"
6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6933 if test -n "$ac_ct_STRIP"; then
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6935 printf "%s\n" "$ac_ct_STRIP" >&6; }
6936 else
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 printf "%s\n" "no" >&6; }
6939 fi
6940
6941 if test "x$ac_ct_STRIP" = x; then
6942 STRIP=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6949 esac
6950 STRIP=$ac_ct_STRIP
6951 fi
6952 else
6953 STRIP="$ac_cv_prog_STRIP"
6954 fi
6955
6956 test -z "$STRIP" && STRIP=:
6957
6958
6959
6960
6961
6962
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 printf %s "checking for $ac_word... " >&6; }
6968 if test ${ac_cv_prog_RANLIB+y}
6969 then :
6970 printf %s "(cached) " >&6
6971 else $as_nop
6972 if test -n "$RANLIB"; then
6973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978 IFS=$as_save_IFS
6979 case $as_dir in #(((
6980 '') as_dir=./ ;;
6981 */) ;;
6982 *) as_dir=$as_dir/ ;;
6983 esac
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990 done
6991 done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 RANLIB=$ac_cv_prog_RANLIB
6997 if test -n "$RANLIB"; then
6998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6999 printf "%s\n" "$RANLIB" >&6; }
7000 else
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 printf "%s\n" "no" >&6; }
7003 fi
7004
7005
7006 fi
7007 if test -z "$ac_cv_prog_RANLIB"; then
7008 ac_ct_RANLIB=$RANLIB
7009 # Extract the first word of "ranlib", so it can be a program name with args.
7010 set dummy ranlib; ac_word=$2
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 printf %s "checking for $ac_word... " >&6; }
7013 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7014 then :
7015 printf %s "(cached) " >&6
7016 else $as_nop
7017 if test -n "$ac_ct_RANLIB"; then
7018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7019 else
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 for as_dir in $PATH
7022 do
7023 IFS=$as_save_IFS
7024 case $as_dir in #(((
7025 '') as_dir=./ ;;
7026 */) ;;
7027 *) as_dir=$as_dir/ ;;
7028 esac
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_ac_ct_RANLIB="ranlib"
7032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7042 if test -n "$ac_ct_RANLIB"; then
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7044 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7045 else
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 printf "%s\n" "no" >&6; }
7048 fi
7049
7050 if test "x$ac_ct_RANLIB" = x; then
7051 RANLIB=":"
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059 RANLIB=$ac_ct_RANLIB
7060 fi
7061 else
7062 RANLIB="$ac_cv_prog_RANLIB"
7063 fi
7064
7065 test -z "$RANLIB" && RANLIB=:
7066
7067
7068
7069
7070
7071
7072 # Determine commands to create old-style static archives.
7073 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7074 old_postinstall_cmds='chmod 644 $oldlib'
7075 old_postuninstall_cmds=
7076
7077 if test -n "$RANLIB"; then
7078 case $host_os in
7079 bitrig* | openbsd*)
7080 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7081 ;;
7082 *)
7083 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7084 ;;
7085 esac
7086 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7087 fi
7088
7089 case $host_os in
7090 darwin*)
7091 lock_old_archive_extraction=yes ;;
7092 *)
7093 lock_old_archive_extraction=no ;;
7094 esac
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134 # If no C compiler was specified, use CC.
7135 LTCC=${LTCC-"$CC"}
7136
7137 # If no C compiler flags were specified, use CFLAGS.
7138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7139
7140 # Allow CC to be a program name with arguments.
7141 compiler=$CC
7142
7143
7144 # Check for command to grab the raw symbol name followed by C symbol from nm.
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7146 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7147 if test ${lt_cv_sys_global_symbol_pipe+y}
7148 then :
7149 printf %s "(cached) " >&6
7150 else $as_nop
7151
7152 # These are sane defaults that work on at least a few old systems.
7153 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7154
7155 # Character class describing NM global symbol codes.
7156 symcode='[BCDEGRST]'
7157
7158 # Regexp to match symbols that can be accessed directly from C.
7159 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7160
7161 # Define system-specific variables.
7162 case $host_os in
7163 aix*)
7164 symcode='[BCDT]'
7165 ;;
7166 cygwin* | mingw* | pw32* | cegcc*)
7167 symcode='[ABCDGISTW]'
7168 ;;
7169 hpux*)
7170 if test ia64 = "$host_cpu"; then
7171 symcode='[ABCDEGRST]'
7172 fi
7173 ;;
7174 irix* | nonstopux*)
7175 symcode='[BCDEGRST]'
7176 ;;
7177 osf*)
7178 symcode='[BCDEGQRST]'
7179 ;;
7180 solaris*)
7181 symcode='[BDRT]'
7182 ;;
7183 sco3.2v5*)
7184 symcode='[DT]'
7185 ;;
7186 sysv4.2uw2*)
7187 symcode='[DT]'
7188 ;;
7189 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7190 symcode='[ABDT]'
7191 ;;
7192 sysv4)
7193 symcode='[DFNSTU]'
7194 ;;
7195 esac
7196
7197 # If we're using GNU nm, then use its standard symbol codes.
7198 case `$NM -V 2>&1` in
7199 *GNU* | *'with BFD'*)
7200 symcode='[ABCDGIRSTW]' ;;
7201 esac
7202
7203 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7204 # Gets list of data symbols to import.
7205 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7206 # Adjust the below global symbol transforms to fixup imported variables.
7207 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7208 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7209 lt_c_name_lib_hook="\
7210 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7211 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7212 else
7213 # Disable hooks by default.
7214 lt_cv_sys_global_symbol_to_import=
7215 lt_cdecl_hook=
7216 lt_c_name_hook=
7217 lt_c_name_lib_hook=
7218 fi
7219
7220 # Transform an extracted symbol line into a proper C declaration.
7221 # Some systems (esp. on ia64) link data and code symbols differently,
7222 # so use this general approach.
7223 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7224 $lt_cdecl_hook\
7225 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7226 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7227
7228 # Transform an extracted symbol line into symbol name and symbol address
7229 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7230 $lt_c_name_hook\
7231 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7232 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7233
7234 # Transform an extracted symbol line into symbol name with lib prefix and
7235 # symbol address.
7236 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7237 $lt_c_name_lib_hook\
7238 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7239 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7240 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7241
7242 # Handle CRLF in mingw tool chain
7243 opt_cr=
7244 case $build_os in
7245 mingw*)
7246 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7247 ;;
7248 esac
7249
7250 # Try without a prefix underscore, then with it.
7251 for ac_symprfx in "" "_"; do
7252
7253 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7254 symxfrm="\\1 $ac_symprfx\\2 \\2"
7255
7256 # Write the raw and C identifiers.
7257 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7258 # Fake it for dumpbin and say T for any non-static function,
7259 # D for any global variable and I for any imported variable.
7260 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7261 # which start with @ or ?.
7262 lt_cv_sys_global_symbol_pipe="$AWK '"\
7263 " {last_section=section; section=\$ 3};"\
7264 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7265 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7266 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7267 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7268 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7269 " \$ 0!~/External *\|/{next};"\
7270 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7271 " {if(hide[section]) next};"\
7272 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7273 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7274 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7275 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7276 " ' prfx=^$ac_symprfx"
7277 else
7278 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7279 fi
7280 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7281
7282 # Check to see that the pipe works correctly.
7283 pipe_works=no
7284
7285 rm -f conftest*
7286 cat > conftest.$ac_ext <<_LT_EOF
7287 #ifdef __cplusplus
7288 extern "C" {
7289 #endif
7290 char nm_test_var;
7291 void nm_test_func(void);
7292 void nm_test_func(void){}
7293 #ifdef __cplusplus
7294 }
7295 #endif
7296 int main(){nm_test_var='a';nm_test_func();return(0);}
7297 _LT_EOF
7298
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7300 (eval $ac_compile) 2>&5
7301 ac_status=$?
7302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 # Now try to grab the symbols.
7305 nlist=conftest.nm
7306 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7307 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7308 # Try sorting and uniquifying the output.
7309 if sort "$nlist" | uniq > "$nlist"T; then
7310 mv -f "$nlist"T "$nlist"
7311 else
7312 rm -f "$nlist"T
7313 fi
7314
7315 # Make sure that we snagged all the symbols we need.
7316 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7317 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7318 cat <<_LT_EOF > conftest.$ac_ext
7319 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7320 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7321 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7322 relocations are performed -- see ld's documentation on pseudo-relocs. */
7323 # define LT_DLSYM_CONST
7324 #elif defined __osf__
7325 /* This system does not cope well with relocations in const data. */
7326 # define LT_DLSYM_CONST
7327 #else
7328 # define LT_DLSYM_CONST const
7329 #endif
7330
7331 #ifdef __cplusplus
7332 extern "C" {
7333 #endif
7334
7335 _LT_EOF
7336 # Now generate the symbol file.
7337 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7338
7339 cat <<_LT_EOF >> conftest.$ac_ext
7340
7341 /* The mapping between symbol names and symbols. */
7342 LT_DLSYM_CONST struct {
7343 const char *name;
7344 void *address;
7345 }
7346 lt__PROGRAM__LTX_preloaded_symbols[] =
7347 {
7348 { "@PROGRAM@", (void *) 0 },
7349 _LT_EOF
7350 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7351 cat <<\_LT_EOF >> conftest.$ac_ext
7352 {0, (void *) 0}
7353 };
7354
7355 /* This works around a problem in FreeBSD linker */
7356 #ifdef FREEBSD_WORKAROUND
7357 static const void *lt_preloaded_setup() {
7358 return lt__PROGRAM__LTX_preloaded_symbols;
7359 }
7360 #endif
7361
7362 #ifdef __cplusplus
7363 }
7364 #endif
7365 _LT_EOF
7366 # Now try linking the two files.
7367 mv conftest.$ac_objext conftstm.$ac_objext
7368 lt_globsym_save_LIBS=$LIBS
7369 lt_globsym_save_CFLAGS=$CFLAGS
7370 LIBS=conftstm.$ac_objext
7371 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7373 (eval $ac_link) 2>&5
7374 ac_status=$?
7375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7376 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7377 pipe_works=yes
7378 fi
7379 LIBS=$lt_globsym_save_LIBS
7380 CFLAGS=$lt_globsym_save_CFLAGS
7381 else
7382 echo "cannot find nm_test_func in $nlist" >&5
7383 fi
7384 else
7385 echo "cannot find nm_test_var in $nlist" >&5
7386 fi
7387 else
7388 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7389 fi
7390 else
7391 echo "$progname: failed program was:" >&5
7392 cat conftest.$ac_ext >&5
7393 fi
7394 rm -rf conftest* conftst*
7395
7396 # Do not use the global_symbol_pipe unless it works.
7397 if test yes = "$pipe_works"; then
7398 break
7399 else
7400 lt_cv_sys_global_symbol_pipe=
7401 fi
7402 done
7403
7404 fi
7405
7406 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7407 lt_cv_sys_global_symbol_to_cdecl=
7408 fi
7409 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7411 printf "%s\n" "failed" >&6; }
7412 else
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7414 printf "%s\n" "ok" >&6; }
7415 fi
7416
7417 # Response file support.
7418 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7419 nm_file_list_spec='@'
7420 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7421 nm_file_list_spec='@'
7422 fi
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7461 printf %s "checking for sysroot... " >&6; }
7462
7463 # Check whether --with-sysroot was given.
7464 if test ${with_sysroot+y}
7465 then :
7466 withval=$with_sysroot;
7467 else $as_nop
7468 with_sysroot=no
7469 fi
7470
7471
7472 lt_sysroot=
7473 case $with_sysroot in #(
7474 yes)
7475 if test yes = "$GCC"; then
7476 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7477 fi
7478 ;; #(
7479 /*)
7480 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7481 ;; #(
7482 no|'')
7483 ;; #(
7484 *)
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7486 printf "%s\n" "$with_sysroot" >&6; }
7487 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7488 ;;
7489 esac
7490
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7492 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7493
7494
7495
7496
7497
7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7499 printf %s "checking for a working dd... " >&6; }
7500 if test ${ac_cv_path_lt_DD+y}
7501 then :
7502 printf %s "(cached) " >&6
7503 else $as_nop
7504 printf 0123456789abcdef0123456789abcdef >conftest.i
7505 cat conftest.i conftest.i >conftest2.i
7506 : ${lt_DD:=$DD}
7507 if test -z "$lt_DD"; then
7508 ac_path_lt_DD_found=false
7509 # Loop through the user's path and test for each of PROGNAME-LIST
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513 IFS=$as_save_IFS
7514 case $as_dir in #(((
7515 '') as_dir=./ ;;
7516 */) ;;
7517 *) as_dir=$as_dir/ ;;
7518 esac
7519 for ac_prog in dd
7520 do
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7523 as_fn_executable_p "$ac_path_lt_DD" || continue
7524 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7525 cmp -s conftest.i conftest.out \
7526 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7527 fi
7528 $ac_path_lt_DD_found && break 3
7529 done
7530 done
7531 done
7532 IFS=$as_save_IFS
7533 if test -z "$ac_cv_path_lt_DD"; then
7534 :
7535 fi
7536 else
7537 ac_cv_path_lt_DD=$lt_DD
7538 fi
7539
7540 rm -f conftest.i conftest2.i conftest.out
7541 fi
7542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7543 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7544
7545
7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7547 printf %s "checking how to truncate binary pipes... " >&6; }
7548 if test ${lt_cv_truncate_bin+y}
7549 then :
7550 printf %s "(cached) " >&6
7551 else $as_nop
7552 printf 0123456789abcdef0123456789abcdef >conftest.i
7553 cat conftest.i conftest.i >conftest2.i
7554 lt_cv_truncate_bin=
7555 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7556 cmp -s conftest.i conftest.out \
7557 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7558 fi
7559 rm -f conftest.i conftest2.i conftest.out
7560 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7561 fi
7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7563 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7564
7565
7566
7567
7568
7569
7570
7571 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7572 func_cc_basename ()
7573 {
7574 for cc_temp in $*""; do
7575 case $cc_temp in
7576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7578 \-*) ;;
7579 *) break;;
7580 esac
7581 done
7582 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7583 }
7584
7585 # Check whether --enable-libtool-lock was given.
7586 if test ${enable_libtool_lock+y}
7587 then :
7588 enableval=$enable_libtool_lock;
7589 fi
7590
7591 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7592
7593 # Some flags need to be propagated to the compiler or linker for good
7594 # libtool support.
7595 case $host in
7596 ia64-*-hpux*)
7597 # Find out what ABI is being produced by ac_compile, and set mode
7598 # options accordingly.
7599 echo 'int i;' > conftest.$ac_ext
7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7601 (eval $ac_compile) 2>&5
7602 ac_status=$?
7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; }; then
7605 case `$FILECMD conftest.$ac_objext` in
7606 *ELF-32*)
7607 HPUX_IA64_MODE=32
7608 ;;
7609 *ELF-64*)
7610 HPUX_IA64_MODE=64
7611 ;;
7612 esac
7613 fi
7614 rm -rf conftest*
7615 ;;
7616 *-*-irix6*)
7617 # Find out what ABI is being produced by ac_compile, and set linker
7618 # options accordingly.
7619 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7621 (eval $ac_compile) 2>&5
7622 ac_status=$?
7623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7624 test $ac_status = 0; }; then
7625 if test yes = "$lt_cv_prog_gnu_ld"; then
7626 case `$FILECMD conftest.$ac_objext` in
7627 *32-bit*)
7628 LD="${LD-ld} -melf32bsmip"
7629 ;;
7630 *N32*)
7631 LD="${LD-ld} -melf32bmipn32"
7632 ;;
7633 *64-bit*)
7634 LD="${LD-ld} -melf64bmip"
7635 ;;
7636 esac
7637 else
7638 case `$FILECMD conftest.$ac_objext` in
7639 *32-bit*)
7640 LD="${LD-ld} -32"
7641 ;;
7642 *N32*)
7643 LD="${LD-ld} -n32"
7644 ;;
7645 *64-bit*)
7646 LD="${LD-ld} -64"
7647 ;;
7648 esac
7649 fi
7650 fi
7651 rm -rf conftest*
7652 ;;
7653
7654 mips64*-*linux*)
7655 # Find out what ABI is being produced by ac_compile, and set linker
7656 # options accordingly.
7657 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7659 (eval $ac_compile) 2>&5
7660 ac_status=$?
7661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7662 test $ac_status = 0; }; then
7663 emul=elf
7664 case `$FILECMD conftest.$ac_objext` in
7665 *32-bit*)
7666 emul="${emul}32"
7667 ;;
7668 *64-bit*)
7669 emul="${emul}64"
7670 ;;
7671 esac
7672 case `$FILECMD conftest.$ac_objext` in
7673 *MSB*)
7674 emul="${emul}btsmip"
7675 ;;
7676 *LSB*)
7677 emul="${emul}ltsmip"
7678 ;;
7679 esac
7680 case `$FILECMD conftest.$ac_objext` in
7681 *N32*)
7682 emul="${emul}n32"
7683 ;;
7684 esac
7685 LD="${LD-ld} -m $emul"
7686 fi
7687 rm -rf conftest*
7688 ;;
7689
7690 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7691 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7692 # Find out what ABI is being produced by ac_compile, and set linker
7693 # options accordingly. Note that the listed cases only cover the
7694 # situations where additional linker options are needed (such as when
7695 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7696 # vice versa); the common cases where no linker options are needed do
7697 # not appear in the list.
7698 echo 'int i;' > conftest.$ac_ext
7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7700 (eval $ac_compile) 2>&5
7701 ac_status=$?
7702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7703 test $ac_status = 0; }; then
7704 case `$FILECMD conftest.o` in
7705 *32-bit*)
7706 case $host in
7707 x86_64-*kfreebsd*-gnu)
7708 LD="${LD-ld} -m elf_i386_fbsd"
7709 ;;
7710 x86_64-*linux*)
7711 case `$FILECMD conftest.o` in
7712 *x86-64*)
7713 LD="${LD-ld} -m elf32_x86_64"
7714 ;;
7715 *)
7716 LD="${LD-ld} -m elf_i386"
7717 ;;
7718 esac
7719 ;;
7720 powerpc64le-*linux*)
7721 LD="${LD-ld} -m elf32lppclinux"
7722 ;;
7723 powerpc64-*linux*)
7724 LD="${LD-ld} -m elf32ppclinux"
7725 ;;
7726 s390x-*linux*)
7727 LD="${LD-ld} -m elf_s390"
7728 ;;
7729 sparc64-*linux*)
7730 LD="${LD-ld} -m elf32_sparc"
7731 ;;
7732 esac
7733 ;;
7734 *64-bit*)
7735 case $host in
7736 x86_64-*kfreebsd*-gnu)
7737 LD="${LD-ld} -m elf_x86_64_fbsd"
7738 ;;
7739 x86_64-*linux*)
7740 LD="${LD-ld} -m elf_x86_64"
7741 ;;
7742 powerpcle-*linux*)
7743 LD="${LD-ld} -m elf64lppc"
7744 ;;
7745 powerpc-*linux*)
7746 LD="${LD-ld} -m elf64ppc"
7747 ;;
7748 s390*-*linux*|s390*-*tpf*)
7749 LD="${LD-ld} -m elf64_s390"
7750 ;;
7751 sparc*-*linux*)
7752 LD="${LD-ld} -m elf64_sparc"
7753 ;;
7754 esac
7755 ;;
7756 esac
7757 fi
7758 rm -rf conftest*
7759 ;;
7760
7761 *-*-sco3.2v5*)
7762 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7763 SAVE_CFLAGS=$CFLAGS
7764 CFLAGS="$CFLAGS -belf"
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7766 printf %s "checking whether the C compiler needs -belf... " >&6; }
7767 if test ${lt_cv_cc_needs_belf+y}
7768 then :
7769 printf %s "(cached) " >&6
7770 else $as_nop
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779
7780 int
7781 main (void)
7782 {
7783
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"
7789 then :
7790 lt_cv_cc_needs_belf=yes
7791 else $as_nop
7792 lt_cv_cc_needs_belf=no
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7795 conftest$ac_exeext conftest.$ac_ext
7796 ac_ext=c
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801
7802 fi
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7804 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7805 if test yes != "$lt_cv_cc_needs_belf"; then
7806 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7807 CFLAGS=$SAVE_CFLAGS
7808 fi
7809 ;;
7810 *-*solaris*)
7811 # Find out what ABI is being produced by ac_compile, and set linker
7812 # options accordingly.
7813 echo 'int i;' > conftest.$ac_ext
7814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7815 (eval $ac_compile) 2>&5
7816 ac_status=$?
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }; then
7819 case `$FILECMD conftest.o` in
7820 *64-bit*)
7821 case $lt_cv_prog_gnu_ld in
7822 yes*)
7823 case $host in
7824 i?86-*-solaris*|x86_64-*-solaris*)
7825 LD="${LD-ld} -m elf_x86_64"
7826 ;;
7827 sparc*-*-solaris*)
7828 LD="${LD-ld} -m elf64_sparc"
7829 ;;
7830 esac
7831 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7832 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7833 LD=${LD-ld}_sol2
7834 fi
7835 ;;
7836 *)
7837 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7838 LD="${LD-ld} -64"
7839 fi
7840 ;;
7841 esac
7842 ;;
7843 esac
7844 fi
7845 rm -rf conftest*
7846 ;;
7847 esac
7848
7849 need_locks=$enable_libtool_lock
7850
7851 if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}mt; ac_word=$2
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 printf %s "checking for $ac_word... " >&6; }
7856 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7857 then :
7858 printf %s "(cached) " >&6
7859 else $as_nop
7860 if test -n "$MANIFEST_TOOL"; then
7861 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 case $as_dir in #(((
7868 '') as_dir=./ ;;
7869 */) ;;
7870 *) as_dir=$as_dir/ ;;
7871 esac
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7874 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7876 break 2
7877 fi
7878 done
7879 done
7880 IFS=$as_save_IFS
7881
7882 fi
7883 fi
7884 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7885 if test -n "$MANIFEST_TOOL"; then
7886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7887 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7888 else
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890 printf "%s\n" "no" >&6; }
7891 fi
7892
7893
7894 fi
7895 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7896 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7897 # Extract the first word of "mt", so it can be a program name with args.
7898 set dummy mt; ac_word=$2
7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 printf %s "checking for $ac_word... " >&6; }
7901 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7902 then :
7903 printf %s "(cached) " >&6
7904 else $as_nop
7905 if test -n "$ac_ct_MANIFEST_TOOL"; then
7906 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7910 do
7911 IFS=$as_save_IFS
7912 case $as_dir in #(((
7913 '') as_dir=./ ;;
7914 */) ;;
7915 *) as_dir=$as_dir/ ;;
7916 esac
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925 IFS=$as_save_IFS
7926
7927 fi
7928 fi
7929 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7930 if test -n "$ac_ct_MANIFEST_TOOL"; then
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7932 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7933 else
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935 printf "%s\n" "no" >&6; }
7936 fi
7937
7938 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7939 MANIFEST_TOOL=":"
7940 else
7941 case $cross_compiling:$ac_tool_warned in
7942 yes:)
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7944 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7945 ac_tool_warned=yes ;;
7946 esac
7947 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7948 fi
7949 else
7950 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7951 fi
7952
7953 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7955 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7956 if test ${lt_cv_path_mainfest_tool+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else $as_nop
7960 lt_cv_path_mainfest_tool=no
7961 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7962 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7963 cat conftest.err >&5
7964 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7965 lt_cv_path_mainfest_tool=yes
7966 fi
7967 rm -f conftest*
7968 fi
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7970 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7971 if test yes != "$lt_cv_path_mainfest_tool"; then
7972 MANIFEST_TOOL=:
7973 fi
7974
7975
7976
7977
7978
7979
7980 case $host_os in
7981 rhapsody* | darwin*)
7982 if test -n "$ac_tool_prefix"; then
7983 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7984 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 printf %s "checking for $ac_word... " >&6; }
7987 if test ${ac_cv_prog_DSYMUTIL+y}
7988 then :
7989 printf %s "(cached) " >&6
7990 else $as_nop
7991 if test -n "$DSYMUTIL"; then
7992 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7996 do
7997 IFS=$as_save_IFS
7998 case $as_dir in #(((
7999 '') as_dir=./ ;;
8000 */) ;;
8001 *) as_dir=$as_dir/ ;;
8002 esac
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8007 break 2
8008 fi
8009 done
8010 done
8011 IFS=$as_save_IFS
8012
8013 fi
8014 fi
8015 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8016 if test -n "$DSYMUTIL"; then
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8018 printf "%s\n" "$DSYMUTIL" >&6; }
8019 else
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 printf "%s\n" "no" >&6; }
8022 fi
8023
8024
8025 fi
8026 if test -z "$ac_cv_prog_DSYMUTIL"; then
8027 ac_ct_DSYMUTIL=$DSYMUTIL
8028 # Extract the first word of "dsymutil", so it can be a program name with args.
8029 set dummy dsymutil; ac_word=$2
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8031 printf %s "checking for $ac_word... " >&6; }
8032 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else $as_nop
8036 if test -n "$ac_ct_DSYMUTIL"; then
8037 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 case $as_dir in #(((
8044 '') as_dir=./ ;;
8045 */) ;;
8046 *) as_dir=$as_dir/ ;;
8047 esac
8048 for ac_exec_ext in '' $ac_executable_extensions; do
8049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8052 break 2
8053 fi
8054 done
8055 done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8061 if test -n "$ac_ct_DSYMUTIL"; then
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8063 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8064 else
8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 printf "%s\n" "no" >&6; }
8067 fi
8068
8069 if test "x$ac_ct_DSYMUTIL" = x; then
8070 DSYMUTIL=":"
8071 else
8072 case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078 DSYMUTIL=$ac_ct_DSYMUTIL
8079 fi
8080 else
8081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8082 fi
8083
8084 if test -n "$ac_tool_prefix"; then
8085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 printf %s "checking for $ac_word... " >&6; }
8089 if test ${ac_cv_prog_NMEDIT+y}
8090 then :
8091 printf %s "(cached) " >&6
8092 else $as_nop
8093 if test -n "$NMEDIT"; then
8094 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099 IFS=$as_save_IFS
8100 case $as_dir in #(((
8101 '') as_dir=./ ;;
8102 */) ;;
8103 *) as_dir=$as_dir/ ;;
8104 esac
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111 done
8112 done
8113 IFS=$as_save_IFS
8114
8115 fi
8116 fi
8117 NMEDIT=$ac_cv_prog_NMEDIT
8118 if test -n "$NMEDIT"; then
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8120 printf "%s\n" "$NMEDIT" >&6; }
8121 else
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 printf "%s\n" "no" >&6; }
8124 fi
8125
8126
8127 fi
8128 if test -z "$ac_cv_prog_NMEDIT"; then
8129 ac_ct_NMEDIT=$NMEDIT
8130 # Extract the first word of "nmedit", so it can be a program name with args.
8131 set dummy nmedit; ac_word=$2
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 printf %s "checking for $ac_word... " >&6; }
8134 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8135 then :
8136 printf %s "(cached) " >&6
8137 else $as_nop
8138 if test -n "$ac_ct_NMEDIT"; then
8139 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8143 do
8144 IFS=$as_save_IFS
8145 case $as_dir in #(((
8146 '') as_dir=./ ;;
8147 */) ;;
8148 *) as_dir=$as_dir/ ;;
8149 esac
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8152 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8154 break 2
8155 fi
8156 done
8157 done
8158 IFS=$as_save_IFS
8159
8160 fi
8161 fi
8162 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8163 if test -n "$ac_ct_NMEDIT"; then
8164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8165 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8166 else
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 printf "%s\n" "no" >&6; }
8169 fi
8170
8171 if test "x$ac_ct_NMEDIT" = x; then
8172 NMEDIT=":"
8173 else
8174 case $cross_compiling:$ac_tool_warned in
8175 yes:)
8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8177 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8178 ac_tool_warned=yes ;;
8179 esac
8180 NMEDIT=$ac_ct_NMEDIT
8181 fi
8182 else
8183 NMEDIT="$ac_cv_prog_NMEDIT"
8184 fi
8185
8186 if test -n "$ac_tool_prefix"; then
8187 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8188 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190 printf %s "checking for $ac_word... " >&6; }
8191 if test ${ac_cv_prog_LIPO+y}
8192 then :
8193 printf %s "(cached) " >&6
8194 else $as_nop
8195 if test -n "$LIPO"; then
8196 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8197 else
8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199 for as_dir in $PATH
8200 do
8201 IFS=$as_save_IFS
8202 case $as_dir in #(((
8203 '') as_dir=./ ;;
8204 */) ;;
8205 *) as_dir=$as_dir/ ;;
8206 esac
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8209 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8211 break 2
8212 fi
8213 done
8214 done
8215 IFS=$as_save_IFS
8216
8217 fi
8218 fi
8219 LIPO=$ac_cv_prog_LIPO
8220 if test -n "$LIPO"; then
8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8222 printf "%s\n" "$LIPO" >&6; }
8223 else
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225 printf "%s\n" "no" >&6; }
8226 fi
8227
8228
8229 fi
8230 if test -z "$ac_cv_prog_LIPO"; then
8231 ac_ct_LIPO=$LIPO
8232 # Extract the first word of "lipo", so it can be a program name with args.
8233 set dummy lipo; ac_word=$2
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 printf %s "checking for $ac_word... " >&6; }
8236 if test ${ac_cv_prog_ac_ct_LIPO+y}
8237 then :
8238 printf %s "(cached) " >&6
8239 else $as_nop
8240 if test -n "$ac_ct_LIPO"; then
8241 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246 IFS=$as_save_IFS
8247 case $as_dir in #(((
8248 '') as_dir=./ ;;
8249 */) ;;
8250 *) as_dir=$as_dir/ ;;
8251 esac
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8254 ac_cv_prog_ac_ct_LIPO="lipo"
8255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8256 break 2
8257 fi
8258 done
8259 done
8260 IFS=$as_save_IFS
8261
8262 fi
8263 fi
8264 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8265 if test -n "$ac_ct_LIPO"; then
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8267 printf "%s\n" "$ac_ct_LIPO" >&6; }
8268 else
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270 printf "%s\n" "no" >&6; }
8271 fi
8272
8273 if test "x$ac_ct_LIPO" = x; then
8274 LIPO=":"
8275 else
8276 case $cross_compiling:$ac_tool_warned in
8277 yes:)
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8279 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8280 ac_tool_warned=yes ;;
8281 esac
8282 LIPO=$ac_ct_LIPO
8283 fi
8284 else
8285 LIPO="$ac_cv_prog_LIPO"
8286 fi
8287
8288 if test -n "$ac_tool_prefix"; then
8289 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8290 set dummy ${ac_tool_prefix}otool; ac_word=$2
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8292 printf %s "checking for $ac_word... " >&6; }
8293 if test ${ac_cv_prog_OTOOL+y}
8294 then :
8295 printf %s "(cached) " >&6
8296 else $as_nop
8297 if test -n "$OTOOL"; then
8298 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8299 else
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8302 do
8303 IFS=$as_save_IFS
8304 case $as_dir in #(((
8305 '') as_dir=./ ;;
8306 */) ;;
8307 *) as_dir=$as_dir/ ;;
8308 esac
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315 done
8316 done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 OTOOL=$ac_cv_prog_OTOOL
8322 if test -n "$OTOOL"; then
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8324 printf "%s\n" "$OTOOL" >&6; }
8325 else
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 printf "%s\n" "no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_OTOOL"; then
8333 ac_ct_OTOOL=$OTOOL
8334 # Extract the first word of "otool", so it can be a program name with args.
8335 set dummy otool; ac_word=$2
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 printf %s "checking for $ac_word... " >&6; }
8338 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8339 then :
8340 printf %s "(cached) " >&6
8341 else $as_nop
8342 if test -n "$ac_ct_OTOOL"; then
8343 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8344 else
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8347 do
8348 IFS=$as_save_IFS
8349 case $as_dir in #(((
8350 '') as_dir=./ ;;
8351 */) ;;
8352 *) as_dir=$as_dir/ ;;
8353 esac
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8356 ac_cv_prog_ac_ct_OTOOL="otool"
8357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8358 break 2
8359 fi
8360 done
8361 done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8367 if test -n "$ac_ct_OTOOL"; then
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8369 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8370 else
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 printf "%s\n" "no" >&6; }
8373 fi
8374
8375 if test "x$ac_ct_OTOOL" = x; then
8376 OTOOL=":"
8377 else
8378 case $cross_compiling:$ac_tool_warned in
8379 yes:)
8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8381 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8382 ac_tool_warned=yes ;;
8383 esac
8384 OTOOL=$ac_ct_OTOOL
8385 fi
8386 else
8387 OTOOL="$ac_cv_prog_OTOOL"
8388 fi
8389
8390 if test -n "$ac_tool_prefix"; then
8391 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8392 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 printf %s "checking for $ac_word... " >&6; }
8395 if test ${ac_cv_prog_OTOOL64+y}
8396 then :
8397 printf %s "(cached) " >&6
8398 else $as_nop
8399 if test -n "$OTOOL64"; then
8400 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405 IFS=$as_save_IFS
8406 case $as_dir in #(((
8407 '') as_dir=./ ;;
8408 */) ;;
8409 *) as_dir=$as_dir/ ;;
8410 esac
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421 fi
8422 fi
8423 OTOOL64=$ac_cv_prog_OTOOL64
8424 if test -n "$OTOOL64"; then
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8426 printf "%s\n" "$OTOOL64" >&6; }
8427 else
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 printf "%s\n" "no" >&6; }
8430 fi
8431
8432
8433 fi
8434 if test -z "$ac_cv_prog_OTOOL64"; then
8435 ac_ct_OTOOL64=$OTOOL64
8436 # Extract the first word of "otool64", so it can be a program name with args.
8437 set dummy otool64; ac_word=$2
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 printf %s "checking for $ac_word... " >&6; }
8440 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8441 then :
8442 printf %s "(cached) " >&6
8443 else $as_nop
8444 if test -n "$ac_ct_OTOOL64"; then
8445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8446 else
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 for as_dir in $PATH
8449 do
8450 IFS=$as_save_IFS
8451 case $as_dir in #(((
8452 '') as_dir=./ ;;
8453 */) ;;
8454 *) as_dir=$as_dir/ ;;
8455 esac
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_ac_ct_OTOOL64="otool64"
8459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8460 break 2
8461 fi
8462 done
8463 done
8464 IFS=$as_save_IFS
8465
8466 fi
8467 fi
8468 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8469 if test -n "$ac_ct_OTOOL64"; then
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8471 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8472 else
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 printf "%s\n" "no" >&6; }
8475 fi
8476
8477 if test "x$ac_ct_OTOOL64" = x; then
8478 OTOOL64=":"
8479 else
8480 case $cross_compiling:$ac_tool_warned in
8481 yes:)
8482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8483 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8484 ac_tool_warned=yes ;;
8485 esac
8486 OTOOL64=$ac_ct_OTOOL64
8487 fi
8488 else
8489 OTOOL64="$ac_cv_prog_OTOOL64"
8490 fi
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8519 printf %s "checking for -single_module linker flag... " >&6; }
8520 if test ${lt_cv_apple_cc_single_mod+y}
8521 then :
8522 printf %s "(cached) " >&6
8523 else $as_nop
8524 lt_cv_apple_cc_single_mod=no
8525 if test -z "$LT_MULTI_MODULE"; then
8526 # By default we will add the -single_module flag. You can override
8527 # by either setting the environment variable LT_MULTI_MODULE
8528 # non-empty at configure time, or by adding -multi_module to the
8529 # link flags.
8530 rm -rf libconftest.dylib*
8531 echo "int foo(void){return 1;}" > conftest.c
8532 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8533 -dynamiclib -Wl,-single_module conftest.c" >&5
8534 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8535 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8536 _lt_result=$?
8537 # If there is a non-empty error log, and "single_module"
8538 # appears in it, assume the flag caused a linker warning
8539 if test -s conftest.err && $GREP single_module conftest.err; then
8540 cat conftest.err >&5
8541 # Otherwise, if the output was created with a 0 exit code from
8542 # the compiler, it worked.
8543 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8544 lt_cv_apple_cc_single_mod=yes
8545 else
8546 cat conftest.err >&5
8547 fi
8548 rm -rf libconftest.dylib*
8549 rm -f conftest.*
8550 fi
8551 fi
8552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8553 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8554
8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8556 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8557 if test ${lt_cv_ld_exported_symbols_list+y}
8558 then :
8559 printf %s "(cached) " >&6
8560 else $as_nop
8561 lt_cv_ld_exported_symbols_list=no
8562 save_LDFLAGS=$LDFLAGS
8563 echo "_main" > conftest.sym
8564 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567
8568 int
8569 main (void)
8570 {
8571
8572 ;
8573 return 0;
8574 }
8575 _ACEOF
8576 if ac_fn_c_try_link "$LINENO"
8577 then :
8578 lt_cv_ld_exported_symbols_list=yes
8579 else $as_nop
8580 lt_cv_ld_exported_symbols_list=no
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8583 conftest$ac_exeext conftest.$ac_ext
8584 LDFLAGS=$save_LDFLAGS
8585
8586 fi
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8588 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8589
8590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8591 printf %s "checking for -force_load linker flag... " >&6; }
8592 if test ${lt_cv_ld_force_load+y}
8593 then :
8594 printf %s "(cached) " >&6
8595 else $as_nop
8596 lt_cv_ld_force_load=no
8597 cat > conftest.c << _LT_EOF
8598 int forced_loaded() { return 2;}
8599 _LT_EOF
8600 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8601 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8602 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8603 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8604 echo "$RANLIB libconftest.a" >&5
8605 $RANLIB libconftest.a 2>&5
8606 cat > conftest.c << _LT_EOF
8607 int main() { return 0;}
8608 _LT_EOF
8609 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8610 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8611 _lt_result=$?
8612 if test -s conftest.err && $GREP force_load conftest.err; then
8613 cat conftest.err >&5
8614 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8615 lt_cv_ld_force_load=yes
8616 else
8617 cat conftest.err >&5
8618 fi
8619 rm -f conftest.err libconftest.a conftest conftest.c
8620 rm -rf conftest.dSYM
8621
8622 fi
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8624 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8625 case $host_os in
8626 rhapsody* | darwin1.[012])
8627 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8628 darwin1.*)
8629 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8630 darwin*)
8631 case $MACOSX_DEPLOYMENT_TARGET,$host in
8632 10.[012],*|,*powerpc*-darwin[5-8]*)
8633 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8634 *)
8635 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8636 esac
8637 ;;
8638 esac
8639 if test yes = "$lt_cv_apple_cc_single_mod"; then
8640 _lt_dar_single_mod='$single_module'
8641 fi
8642 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8643 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8644 else
8645 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8646 fi
8647 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8648 _lt_dsymutil='~$DSYMUTIL $lib || :'
8649 else
8650 _lt_dsymutil=
8651 fi
8652 ;;
8653 esac
8654
8655 # func_munge_path_list VARIABLE PATH
8656 # -----------------------------------
8657 # VARIABLE is name of variable containing _space_ separated list of
8658 # directories to be munged by the contents of PATH, which is string
8659 # having a format:
8660 # "DIR[:DIR]:"
8661 # string "DIR[ DIR]" will be prepended to VARIABLE
8662 # ":DIR[:DIR]"
8663 # string "DIR[ DIR]" will be appended to VARIABLE
8664 # "DIRP[:DIRP]::[DIRA:]DIRA"
8665 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8666 # "DIRA[ DIRA]" will be appended to VARIABLE
8667 # "DIR[:DIR]"
8668 # VARIABLE will be replaced by "DIR[ DIR]"
8669 func_munge_path_list ()
8670 {
8671 case x$2 in
8672 x)
8673 ;;
8674 *:)
8675 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8676 ;;
8677 x:*)
8678 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8679 ;;
8680 *::*)
8681 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8682 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8683 ;;
8684 *)
8685 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8686 ;;
8687 esac
8688 }
8689
8690 ac_header= ac_cache=
8691 for ac_item in $ac_header_c_list
8692 do
8693 if test $ac_cache; then
8694 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8695 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8696 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8697 fi
8698 ac_header= ac_cache=
8699 elif test $ac_header; then
8700 ac_cache=$ac_item
8701 else
8702 ac_header=$ac_item
8703 fi
8704 done
8705
8706
8707
8708
8709
8710
8711
8712
8713 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8714 then :
8715
8716 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8717
8718 fi
8719 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8720 "
8721 if test "x$ac_cv_header_dlfcn_h" = xyes
8722 then :
8723 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8724
8725 fi
8726
8727
8728
8729
8730
8731 # Set options
8732 # Check whether --enable-static was given.
8733 if test ${enable_static+y}
8734 then :
8735 enableval=$enable_static; p=${PACKAGE-default}
8736 case $enableval in
8737 yes) enable_static=yes ;;
8738 no) enable_static=no ;;
8739 *)
8740 enable_static=no
8741 # Look at the argument we got. We use all the common list separators.
8742 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8743 for pkg in $enableval; do
8744 IFS=$lt_save_ifs
8745 if test "X$pkg" = "X$p"; then
8746 enable_static=yes
8747 fi
8748 done
8749 IFS=$lt_save_ifs
8750 ;;
8751 esac
8752 else $as_nop
8753 enable_static=no
8754 fi
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 enable_dlopen=no
8766
8767
8768 enable_win32_dll=no
8769
8770
8771 # Check whether --enable-shared was given.
8772 if test ${enable_shared+y}
8773 then :
8774 enableval=$enable_shared; p=${PACKAGE-default}
8775 case $enableval in
8776 yes) enable_shared=yes ;;
8777 no) enable_shared=no ;;
8778 *)
8779 enable_shared=no
8780 # Look at the argument we got. We use all the common list separators.
8781 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8782 for pkg in $enableval; do
8783 IFS=$lt_save_ifs
8784 if test "X$pkg" = "X$p"; then
8785 enable_shared=yes
8786 fi
8787 done
8788 IFS=$lt_save_ifs
8789 ;;
8790 esac
8791 else $as_nop
8792 enable_shared=yes
8793 fi
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805 # Check whether --with-pic was given.
8806 if test ${with_pic+y}
8807 then :
8808 withval=$with_pic; lt_p=${PACKAGE-default}
8809 case $withval in
8810 yes|no) pic_mode=$withval ;;
8811 *)
8812 pic_mode=default
8813 # Look at the argument we got. We use all the common list separators.
8814 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8815 for lt_pkg in $withval; do
8816 IFS=$lt_save_ifs
8817 if test "X$lt_pkg" = "X$lt_p"; then
8818 pic_mode=yes
8819 fi
8820 done
8821 IFS=$lt_save_ifs
8822 ;;
8823 esac
8824 else $as_nop
8825 pic_mode=default
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834
8835 # Check whether --enable-fast-install was given.
8836 if test ${enable_fast_install+y}
8837 then :
8838 enableval=$enable_fast_install; p=${PACKAGE-default}
8839 case $enableval in
8840 yes) enable_fast_install=yes ;;
8841 no) enable_fast_install=no ;;
8842 *)
8843 enable_fast_install=no
8844 # Look at the argument we got. We use all the common list separators.
8845 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8846 for pkg in $enableval; do
8847 IFS=$lt_save_ifs
8848 if test "X$pkg" = "X$p"; then
8849 enable_fast_install=yes
8850 fi
8851 done
8852 IFS=$lt_save_ifs
8853 ;;
8854 esac
8855 else $as_nop
8856 enable_fast_install=yes
8857 fi
8858
8859
8860
8861
8862
8863
8864
8865
8866 shared_archive_member_spec=
8867 case $host,$enable_shared in
8868 power*-*-aix[5-9]*,yes)
8869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8870 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8871
8872 # Check whether --with-aix-soname was given.
8873 if test ${with_aix_soname+y}
8874 then :
8875 withval=$with_aix_soname; case $withval in
8876 aix|svr4|both)
8877 ;;
8878 *)
8879 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8880 ;;
8881 esac
8882 lt_cv_with_aix_soname=$with_aix_soname
8883 else $as_nop
8884 if test ${lt_cv_with_aix_soname+y}
8885 then :
8886 printf %s "(cached) " >&6
8887 else $as_nop
8888 lt_cv_with_aix_soname=aix
8889 fi
8890
8891 with_aix_soname=$lt_cv_with_aix_soname
8892 fi
8893
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8895 printf "%s\n" "$with_aix_soname" >&6; }
8896 if test aix != "$with_aix_soname"; then
8897 # For the AIX way of multilib, we name the shared archive member
8898 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8899 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8900 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8901 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8902 if test 64 = "${OBJECT_MODE-32}"; then
8903 shared_archive_member_spec=shr_64
8904 else
8905 shared_archive_member_spec=shr
8906 fi
8907 fi
8908 ;;
8909 *)
8910 with_aix_soname=aix
8911 ;;
8912 esac
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923 # This can be used to rebuild libtool when needed
8924 LIBTOOL_DEPS=$ltmain
8925
8926 # Always use our own libtool.
8927 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958 test -z "$LN_S" && LN_S="ln -s"
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973 if test -n "${ZSH_VERSION+set}"; then
8974 setopt NO_GLOB_SUBST
8975 fi
8976
8977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8978 printf %s "checking for objdir... " >&6; }
8979 if test ${lt_cv_objdir+y}
8980 then :
8981 printf %s "(cached) " >&6
8982 else $as_nop
8983 rm -f .libs 2>/dev/null
8984 mkdir .libs 2>/dev/null
8985 if test -d .libs; then
8986 lt_cv_objdir=.libs
8987 else
8988 # MS-DOS does not allow filenames that begin with a dot.
8989 lt_cv_objdir=_libs
8990 fi
8991 rmdir .libs 2>/dev/null
8992 fi
8993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8994 printf "%s\n" "$lt_cv_objdir" >&6; }
8995 objdir=$lt_cv_objdir
8996
8997
8998
8999
9000
9001 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9002
9003
9004
9005
9006 case $host_os in
9007 aix3*)
9008 # AIX sometimes has problems with the GCC collect2 program. For some
9009 # reason, if we set the COLLECT_NAMES environment variable, the problems
9010 # vanish in a puff of smoke.
9011 if test set != "${COLLECT_NAMES+set}"; then
9012 COLLECT_NAMES=
9013 export COLLECT_NAMES
9014 fi
9015 ;;
9016 esac
9017
9018 # Global variables:
9019 ofile=libtool
9020 can_build_shared=yes
9021
9022 # All known linkers require a '.a' archive for static linking (except MSVC and
9023 # ICC, which need '.lib').
9024 libext=a
9025
9026 with_gnu_ld=$lt_cv_prog_gnu_ld
9027
9028 old_CC=$CC
9029 old_CFLAGS=$CFLAGS
9030
9031 # Set sane defaults for various variables
9032 test -z "$CC" && CC=cc
9033 test -z "$LTCC" && LTCC=$CC
9034 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9035 test -z "$LD" && LD=ld
9036 test -z "$ac_objext" && ac_objext=o
9037
9038 func_cc_basename $compiler
9039 cc_basename=$func_cc_basename_result
9040
9041
9042 # Only perform the check for file, if the check method requires it
9043 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9044 case $deplibs_check_method in
9045 file_magic*)
9046 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9048 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9049 if test ${lt_cv_path_MAGIC_CMD+y}
9050 then :
9051 printf %s "(cached) " >&6
9052 else $as_nop
9053 case $MAGIC_CMD in
9054 [\\/*] | ?:[\\/]*)
9055 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9056 ;;
9057 *)
9058 lt_save_MAGIC_CMD=$MAGIC_CMD
9059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9060 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9061 for ac_dir in $ac_dummy; do
9062 IFS=$lt_save_ifs
9063 test -z "$ac_dir" && ac_dir=.
9064 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9065 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9066 if test -n "$file_magic_test_file"; then
9067 case $deplibs_check_method in
9068 "file_magic "*)
9069 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9070 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9071 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9072 $EGREP "$file_magic_regex" > /dev/null; then
9073 :
9074 else
9075 cat <<_LT_EOF 1>&2
9076
9077 *** Warning: the command libtool uses to detect shared libraries,
9078 *** $file_magic_cmd, produces output that libtool cannot recognize.
9079 *** The result is that libtool may fail to recognize shared libraries
9080 *** as such. This will affect the creation of libtool libraries that
9081 *** depend on shared libraries, but programs linked with such libtool
9082 *** libraries will work regardless of this problem. Nevertheless, you
9083 *** may want to report the problem to your system manager and/or to
9084 *** [email protected]
9085
9086 _LT_EOF
9087 fi ;;
9088 esac
9089 fi
9090 break
9091 fi
9092 done
9093 IFS=$lt_save_ifs
9094 MAGIC_CMD=$lt_save_MAGIC_CMD
9095 ;;
9096 esac
9097 fi
9098
9099 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9100 if test -n "$MAGIC_CMD"; then
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9102 printf "%s\n" "$MAGIC_CMD" >&6; }
9103 else
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 printf "%s\n" "no" >&6; }
9106 fi
9107
9108
9109
9110
9111
9112 if test -z "$lt_cv_path_MAGIC_CMD"; then
9113 if test -n "$ac_tool_prefix"; then
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9115 printf %s "checking for file... " >&6; }
9116 if test ${lt_cv_path_MAGIC_CMD+y}
9117 then :
9118 printf %s "(cached) " >&6
9119 else $as_nop
9120 case $MAGIC_CMD in
9121 [\\/*] | ?:[\\/]*)
9122 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9123 ;;
9124 *)
9125 lt_save_MAGIC_CMD=$MAGIC_CMD
9126 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9127 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9128 for ac_dir in $ac_dummy; do
9129 IFS=$lt_save_ifs
9130 test -z "$ac_dir" && ac_dir=.
9131 if test -f "$ac_dir/file"; then
9132 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9133 if test -n "$file_magic_test_file"; then
9134 case $deplibs_check_method in
9135 "file_magic "*)
9136 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9137 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9138 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9139 $EGREP "$file_magic_regex" > /dev/null; then
9140 :
9141 else
9142 cat <<_LT_EOF 1>&2
9143
9144 *** Warning: the command libtool uses to detect shared libraries,
9145 *** $file_magic_cmd, produces output that libtool cannot recognize.
9146 *** The result is that libtool may fail to recognize shared libraries
9147 *** as such. This will affect the creation of libtool libraries that
9148 *** depend on shared libraries, but programs linked with such libtool
9149 *** libraries will work regardless of this problem. Nevertheless, you
9150 *** may want to report the problem to your system manager and/or to
9151 *** [email protected]
9152
9153 _LT_EOF
9154 fi ;;
9155 esac
9156 fi
9157 break
9158 fi
9159 done
9160 IFS=$lt_save_ifs
9161 MAGIC_CMD=$lt_save_MAGIC_CMD
9162 ;;
9163 esac
9164 fi
9165
9166 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9167 if test -n "$MAGIC_CMD"; then
9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9169 printf "%s\n" "$MAGIC_CMD" >&6; }
9170 else
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 printf "%s\n" "no" >&6; }
9173 fi
9174
9175
9176 else
9177 MAGIC_CMD=:
9178 fi
9179 fi
9180
9181 fi
9182 ;;
9183 esac
9184
9185 # Use C for the default configuration in the libtool script
9186
9187 lt_save_CC=$CC
9188 ac_ext=c
9189 ac_cpp='$CPP $CPPFLAGS'
9190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9193
9194
9195 # Source file extension for C test sources.
9196 ac_ext=c
9197
9198 # Object file extension for compiled C test sources.
9199 objext=o
9200 objext=$objext
9201
9202 # Code to be used in simple compile tests
9203 lt_simple_compile_test_code="int some_variable = 0;"
9204
9205 # Code to be used in simple link tests
9206 lt_simple_link_test_code='int main(){return(0);}'
9207
9208
9209
9210
9211
9212
9213
9214 # If no C compiler was specified, use CC.
9215 LTCC=${LTCC-"$CC"}
9216
9217 # If no C compiler flags were specified, use CFLAGS.
9218 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9219
9220 # Allow CC to be a program name with arguments.
9221 compiler=$CC
9222
9223 # Save the default compiler, since it gets overwritten when the other
9224 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9225 compiler_DEFAULT=$CC
9226
9227 # save warnings/boilerplate of simple test code
9228 ac_outfile=conftest.$ac_objext
9229 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9230 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9231 _lt_compiler_boilerplate=`cat conftest.err`
9232 $RM conftest*
9233
9234 ac_outfile=conftest.$ac_objext
9235 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9236 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9237 _lt_linker_boilerplate=`cat conftest.err`
9238 $RM -r conftest*
9239
9240
9241 ## CAVEAT EMPTOR:
9242 ## There is no encapsulation within the following macros, do not change
9243 ## the running order or otherwise move them around unless you know exactly
9244 ## what you are doing...
9245 if test -n "$compiler"; then
9246
9247 lt_prog_compiler_no_builtin_flag=
9248
9249 if test yes = "$GCC"; then
9250 case $cc_basename in
9251 nvcc*)
9252 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9253 *)
9254 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9255 esac
9256
9257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9258 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9259 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9260 then :
9261 printf %s "(cached) " >&6
9262 else $as_nop
9263 lt_cv_prog_compiler_rtti_exceptions=no
9264 ac_outfile=conftest.$ac_objext
9265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9266 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9267 # Insert the option either (1) after the last *FLAGS variable, or
9268 # (2) before a word containing "conftest.", or (3) at the end.
9269 # Note that $ac_compile itself does not contain backslashes and begins
9270 # with a dollar sign (not a hyphen), so the echo should work correctly.
9271 # The option is referenced via a variable to avoid confusing sed.
9272 lt_compile=`echo "$ac_compile" | $SED \
9273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9275 -e 's:$: $lt_compiler_flag:'`
9276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9277 (eval "$lt_compile" 2>conftest.err)
9278 ac_status=$?
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 if (exit $ac_status) && test -s "$ac_outfile"; then
9282 # The compiler can only warn and ignore the option if not recognized
9283 # So say no if there are warnings other than the usual output.
9284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9287 lt_cv_prog_compiler_rtti_exceptions=yes
9288 fi
9289 fi
9290 $RM conftest*
9291
9292 fi
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9294 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9295
9296 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9297 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9298 else
9299 :
9300 fi
9301
9302 fi
9303
9304
9305
9306
9307
9308
9309 lt_prog_compiler_wl=
9310 lt_prog_compiler_pic=
9311 lt_prog_compiler_static=
9312
9313
9314 if test yes = "$GCC"; then
9315 lt_prog_compiler_wl='-Wl,'
9316 lt_prog_compiler_static='-static'
9317
9318 case $host_os in
9319 aix*)
9320 # All AIX code is PIC.
9321 if test ia64 = "$host_cpu"; then
9322 # AIX 5 now supports IA64 processor
9323 lt_prog_compiler_static='-Bstatic'
9324 fi
9325 lt_prog_compiler_pic='-fPIC'
9326 ;;
9327
9328 amigaos*)
9329 case $host_cpu in
9330 powerpc)
9331 # see comment about AmigaOS4 .so support
9332 lt_prog_compiler_pic='-fPIC'
9333 ;;
9334 m68k)
9335 # FIXME: we need at least 68020 code to build shared libraries, but
9336 # adding the '-m68020' flag to GCC prevents building anything better,
9337 # like '-m68040'.
9338 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9339 ;;
9340 esac
9341 ;;
9342
9343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9344 # PIC is the default for these OSes.
9345 ;;
9346
9347 mingw* | cygwin* | pw32* | os2* | cegcc*)
9348 # This hack is so that the source file can tell whether it is being
9349 # built for inclusion in a dll (and should export symbols for example).
9350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9351 # (--disable-auto-import) libraries
9352 lt_prog_compiler_pic='-DDLL_EXPORT'
9353 case $host_os in
9354 os2*)
9355 lt_prog_compiler_static='$wl-static'
9356 ;;
9357 esac
9358 ;;
9359
9360 darwin* | rhapsody*)
9361 # PIC is the default on this platform
9362 # Common symbols not allowed in MH_DYLIB files
9363 lt_prog_compiler_pic='-fno-common'
9364 ;;
9365
9366 haiku*)
9367 # PIC is the default for Haiku.
9368 # The "-static" flag exists, but is broken.
9369 lt_prog_compiler_static=
9370 ;;
9371
9372 hpux*)
9373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9375 # sets the default TLS model and affects inlining.
9376 case $host_cpu in
9377 hppa*64*)
9378 # +Z the default
9379 ;;
9380 *)
9381 lt_prog_compiler_pic='-fPIC'
9382 ;;
9383 esac
9384 ;;
9385
9386 interix[3-9]*)
9387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9388 # Instead, we relocate shared libraries at runtime.
9389 ;;
9390
9391 msdosdjgpp*)
9392 # Just because we use GCC doesn't mean we suddenly get shared libraries
9393 # on systems that don't support them.
9394 lt_prog_compiler_can_build_shared=no
9395 enable_shared=no
9396 ;;
9397
9398 *nto* | *qnx*)
9399 # QNX uses GNU C++, but need to define -shared option too, otherwise
9400 # it will coredump.
9401 lt_prog_compiler_pic='-fPIC -shared'
9402 ;;
9403
9404 sysv4*MP*)
9405 if test -d /usr/nec; then
9406 lt_prog_compiler_pic=-Kconform_pic
9407 fi
9408 ;;
9409
9410 *)
9411 lt_prog_compiler_pic='-fPIC'
9412 ;;
9413 esac
9414
9415 case $cc_basename in
9416 nvcc*) # Cuda Compiler Driver 2.2
9417 lt_prog_compiler_wl='-Xlinker '
9418 if test -n "$lt_prog_compiler_pic"; then
9419 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9420 fi
9421 ;;
9422 esac
9423 else
9424 # PORTME Check for flag to pass linker flags through the system compiler.
9425 case $host_os in
9426 aix*)
9427 lt_prog_compiler_wl='-Wl,'
9428 if test ia64 = "$host_cpu"; then
9429 # AIX 5 now supports IA64 processor
9430 lt_prog_compiler_static='-Bstatic'
9431 else
9432 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9433 fi
9434 ;;
9435
9436 darwin* | rhapsody*)
9437 # PIC is the default on this platform
9438 # Common symbols not allowed in MH_DYLIB files
9439 lt_prog_compiler_pic='-fno-common'
9440 case $cc_basename in
9441 nagfor*)
9442 # NAG Fortran compiler
9443 lt_prog_compiler_wl='-Wl,-Wl,,'
9444 lt_prog_compiler_pic='-PIC'
9445 lt_prog_compiler_static='-Bstatic'
9446 ;;
9447 esac
9448 ;;
9449
9450 mingw* | cygwin* | pw32* | os2* | cegcc*)
9451 # This hack is so that the source file can tell whether it is being
9452 # built for inclusion in a dll (and should export symbols for example).
9453 lt_prog_compiler_pic='-DDLL_EXPORT'
9454 case $host_os in
9455 os2*)
9456 lt_prog_compiler_static='$wl-static'
9457 ;;
9458 esac
9459 ;;
9460
9461 hpux9* | hpux10* | hpux11*)
9462 lt_prog_compiler_wl='-Wl,'
9463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9464 # not for PA HP-UX.
9465 case $host_cpu in
9466 hppa*64*|ia64*)
9467 # +Z the default
9468 ;;
9469 *)
9470 lt_prog_compiler_pic='+Z'
9471 ;;
9472 esac
9473 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9474 lt_prog_compiler_static='$wl-a ${wl}archive'
9475 ;;
9476
9477 irix5* | irix6* | nonstopux*)
9478 lt_prog_compiler_wl='-Wl,'
9479 # PIC (with -KPIC) is the default.
9480 lt_prog_compiler_static='-non_shared'
9481 ;;
9482
9483 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9484 case $cc_basename in
9485 # old Intel for x86_64, which still supported -KPIC.
9486 ecc*)
9487 lt_prog_compiler_wl='-Wl,'
9488 lt_prog_compiler_pic='-KPIC'
9489 lt_prog_compiler_static='-static'
9490 ;;
9491 # flang / f18. f95 an alias for gfortran or flang on Debian
9492 flang* | f18* | f95*)
9493 lt_prog_compiler_wl='-Wl,'
9494 lt_prog_compiler_pic='-fPIC'
9495 lt_prog_compiler_static='-static'
9496 ;;
9497 # icc used to be incompatible with GCC.
9498 # ICC 10 doesn't accept -KPIC any more.
9499 icc* | ifort*)
9500 lt_prog_compiler_wl='-Wl,'
9501 lt_prog_compiler_pic='-fPIC'
9502 lt_prog_compiler_static='-static'
9503 ;;
9504 # Lahey Fortran 8.1.
9505 lf95*)
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='--shared'
9508 lt_prog_compiler_static='--static'
9509 ;;
9510 nagfor*)
9511 # NAG Fortran compiler
9512 lt_prog_compiler_wl='-Wl,-Wl,,'
9513 lt_prog_compiler_pic='-PIC'
9514 lt_prog_compiler_static='-Bstatic'
9515 ;;
9516 tcc*)
9517 # Fabrice Bellard et al's Tiny C Compiler
9518 lt_prog_compiler_wl='-Wl,'
9519 lt_prog_compiler_pic='-fPIC'
9520 lt_prog_compiler_static='-static'
9521 ;;
9522 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9523 # Portland Group compilers (*not* the Pentium gcc compiler,
9524 # which looks to be a dead project)
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='-fpic'
9527 lt_prog_compiler_static='-Bstatic'
9528 ;;
9529 ccc*)
9530 lt_prog_compiler_wl='-Wl,'
9531 # All Alpha code is PIC.
9532 lt_prog_compiler_static='-non_shared'
9533 ;;
9534 xl* | bgxl* | bgf* | mpixl*)
9535 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9536 lt_prog_compiler_wl='-Wl,'
9537 lt_prog_compiler_pic='-qpic'
9538 lt_prog_compiler_static='-qstaticlink'
9539 ;;
9540 *)
9541 case `$CC -V 2>&1 | $SED 5q` in
9542 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9543 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9544 lt_prog_compiler_pic='-KPIC'
9545 lt_prog_compiler_static='-Bstatic'
9546 lt_prog_compiler_wl=''
9547 ;;
9548 *Sun\ F* | *Sun*Fortran*)
9549 lt_prog_compiler_pic='-KPIC'
9550 lt_prog_compiler_static='-Bstatic'
9551 lt_prog_compiler_wl='-Qoption ld '
9552 ;;
9553 *Sun\ C*)
9554 # Sun C 5.9
9555 lt_prog_compiler_pic='-KPIC'
9556 lt_prog_compiler_static='-Bstatic'
9557 lt_prog_compiler_wl='-Wl,'
9558 ;;
9559 *Intel*\ [CF]*Compiler*)
9560 lt_prog_compiler_wl='-Wl,'
9561 lt_prog_compiler_pic='-fPIC'
9562 lt_prog_compiler_static='-static'
9563 ;;
9564 *Portland\ Group*)
9565 lt_prog_compiler_wl='-Wl,'
9566 lt_prog_compiler_pic='-fpic'
9567 lt_prog_compiler_static='-Bstatic'
9568 ;;
9569 esac
9570 ;;
9571 esac
9572 ;;
9573
9574 newsos6)
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9577 ;;
9578
9579 *nto* | *qnx*)
9580 # QNX uses GNU C++, but need to define -shared option too, otherwise
9581 # it will coredump.
9582 lt_prog_compiler_pic='-fPIC -shared'
9583 ;;
9584
9585 osf3* | osf4* | osf5*)
9586 lt_prog_compiler_wl='-Wl,'
9587 # All OSF/1 code is PIC.
9588 lt_prog_compiler_static='-non_shared'
9589 ;;
9590
9591 rdos*)
9592 lt_prog_compiler_static='-non_shared'
9593 ;;
9594
9595 solaris*)
9596 lt_prog_compiler_pic='-KPIC'
9597 lt_prog_compiler_static='-Bstatic'
9598 case $cc_basename in
9599 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9600 lt_prog_compiler_wl='-Qoption ld ';;
9601 *)
9602 lt_prog_compiler_wl='-Wl,';;
9603 esac
9604 ;;
9605
9606 sunos4*)
9607 lt_prog_compiler_wl='-Qoption ld '
9608 lt_prog_compiler_pic='-PIC'
9609 lt_prog_compiler_static='-Bstatic'
9610 ;;
9611
9612 sysv4 | sysv4.2uw2* | sysv4.3*)
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-Bstatic'
9616 ;;
9617
9618 sysv4*MP*)
9619 if test -d /usr/nec; then
9620 lt_prog_compiler_pic='-Kconform_pic'
9621 lt_prog_compiler_static='-Bstatic'
9622 fi
9623 ;;
9624
9625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9629 ;;
9630
9631 unicos*)
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_can_build_shared=no
9634 ;;
9635
9636 uts4*)
9637 lt_prog_compiler_pic='-pic'
9638 lt_prog_compiler_static='-Bstatic'
9639 ;;
9640
9641 *)
9642 lt_prog_compiler_can_build_shared=no
9643 ;;
9644 esac
9645 fi
9646
9647 case $host_os in
9648 # For platforms that do not support PIC, -DPIC is meaningless:
9649 *djgpp*)
9650 lt_prog_compiler_pic=
9651 ;;
9652 *)
9653 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9654 ;;
9655 esac
9656
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9658 printf %s "checking for $compiler option to produce PIC... " >&6; }
9659 if test ${lt_cv_prog_compiler_pic+y}
9660 then :
9661 printf %s "(cached) " >&6
9662 else $as_nop
9663 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9664 fi
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9666 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9667 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9668
9669 #
9670 # Check to make sure the PIC flag actually works.
9671 #
9672 if test -n "$lt_prog_compiler_pic"; then
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9674 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9675 if test ${lt_cv_prog_compiler_pic_works+y}
9676 then :
9677 printf %s "(cached) " >&6
9678 else $as_nop
9679 lt_cv_prog_compiler_pic_works=no
9680 ac_outfile=conftest.$ac_objext
9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9683 # Insert the option either (1) after the last *FLAGS variable, or
9684 # (2) before a word containing "conftest.", or (3) at the end.
9685 # Note that $ac_compile itself does not contain backslashes and begins
9686 # with a dollar sign (not a hyphen), so the echo should work correctly.
9687 # The option is referenced via a variable to avoid confusing sed.
9688 lt_compile=`echo "$ac_compile" | $SED \
9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9691 -e 's:$: $lt_compiler_flag:'`
9692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9693 (eval "$lt_compile" 2>conftest.err)
9694 ac_status=$?
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 if (exit $ac_status) && test -s "$ac_outfile"; then
9698 # The compiler can only warn and ignore the option if not recognized
9699 # So say no if there are warnings other than the usual output.
9700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9703 lt_cv_prog_compiler_pic_works=yes
9704 fi
9705 fi
9706 $RM conftest*
9707
9708 fi
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9710 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9711
9712 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9713 case $lt_prog_compiler_pic in
9714 "" | " "*) ;;
9715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9716 esac
9717 else
9718 lt_prog_compiler_pic=
9719 lt_prog_compiler_can_build_shared=no
9720 fi
9721
9722 fi
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734 #
9735 # Check to make sure the static flag actually works.
9736 #
9737 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9739 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9740 if test ${lt_cv_prog_compiler_static_works+y}
9741 then :
9742 printf %s "(cached) " >&6
9743 else $as_nop
9744 lt_cv_prog_compiler_static_works=no
9745 save_LDFLAGS=$LDFLAGS
9746 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9747 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9748 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9749 # The linker can only warn and ignore the option if not recognized
9750 # So say no if there are warnings
9751 if test -s conftest.err; then
9752 # Append any errors to the config.log.
9753 cat conftest.err 1>&5
9754 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9755 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9756 if diff conftest.exp conftest.er2 >/dev/null; then
9757 lt_cv_prog_compiler_static_works=yes
9758 fi
9759 else
9760 lt_cv_prog_compiler_static_works=yes
9761 fi
9762 fi
9763 $RM -r conftest*
9764 LDFLAGS=$save_LDFLAGS
9765
9766 fi
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9768 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9769
9770 if test yes = "$lt_cv_prog_compiler_static_works"; then
9771 :
9772 else
9773 lt_prog_compiler_static=
9774 fi
9775
9776
9777
9778
9779
9780
9781
9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9783 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9784 if test ${lt_cv_prog_compiler_c_o+y}
9785 then :
9786 printf %s "(cached) " >&6
9787 else $as_nop
9788 lt_cv_prog_compiler_c_o=no
9789 $RM -r conftest 2>/dev/null
9790 mkdir conftest
9791 cd conftest
9792 mkdir out
9793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9794
9795 lt_compiler_flag="-o out/conftest2.$ac_objext"
9796 # Insert the option either (1) after the last *FLAGS variable, or
9797 # (2) before a word containing "conftest.", or (3) at the end.
9798 # Note that $ac_compile itself does not contain backslashes and begins
9799 # with a dollar sign (not a hyphen), so the echo should work correctly.
9800 lt_compile=`echo "$ac_compile" | $SED \
9801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9803 -e 's:$: $lt_compiler_flag:'`
9804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9805 (eval "$lt_compile" 2>out/conftest.err)
9806 ac_status=$?
9807 cat out/conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9810 then
9811 # The compiler can only warn and ignore the option if not recognized
9812 # So say no if there are warnings
9813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9816 lt_cv_prog_compiler_c_o=yes
9817 fi
9818 fi
9819 chmod u+w . 2>&5
9820 $RM conftest*
9821 # SGI C++ compiler will create directory out/ii_files/ for
9822 # template instantiation
9823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9824 $RM out/* && rmdir out
9825 cd ..
9826 $RM -r conftest
9827 $RM conftest*
9828
9829 fi
9830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9831 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9832
9833
9834
9835
9836
9837
9838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9839 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9840 if test ${lt_cv_prog_compiler_c_o+y}
9841 then :
9842 printf %s "(cached) " >&6
9843 else $as_nop
9844 lt_cv_prog_compiler_c_o=no
9845 $RM -r conftest 2>/dev/null
9846 mkdir conftest
9847 cd conftest
9848 mkdir out
9849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9850
9851 lt_compiler_flag="-o out/conftest2.$ac_objext"
9852 # Insert the option either (1) after the last *FLAGS variable, or
9853 # (2) before a word containing "conftest.", or (3) at the end.
9854 # Note that $ac_compile itself does not contain backslashes and begins
9855 # with a dollar sign (not a hyphen), so the echo should work correctly.
9856 lt_compile=`echo "$ac_compile" | $SED \
9857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9859 -e 's:$: $lt_compiler_flag:'`
9860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9861 (eval "$lt_compile" 2>out/conftest.err)
9862 ac_status=$?
9863 cat out/conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9866 then
9867 # The compiler can only warn and ignore the option if not recognized
9868 # So say no if there are warnings
9869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9872 lt_cv_prog_compiler_c_o=yes
9873 fi
9874 fi
9875 chmod u+w . 2>&5
9876 $RM conftest*
9877 # SGI C++ compiler will create directory out/ii_files/ for
9878 # template instantiation
9879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9880 $RM out/* && rmdir out
9881 cd ..
9882 $RM -r conftest
9883 $RM conftest*
9884
9885 fi
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9887 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9888
9889
9890
9891
9892 hard_links=nottested
9893 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9894 # do not overwrite the value of need_locks provided by the user
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9896 printf %s "checking if we can lock with hard links... " >&6; }
9897 hard_links=yes
9898 $RM conftest*
9899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9900 touch conftest.a
9901 ln conftest.a conftest.b 2>&5 || hard_links=no
9902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9904 printf "%s\n" "$hard_links" >&6; }
9905 if test no = "$hard_links"; then
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9907 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9908 need_locks=warn
9909 fi
9910 else
9911 need_locks=no
9912 fi
9913
9914
9915
9916
9917
9918
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9920 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9921
9922 runpath_var=
9923 allow_undefined_flag=
9924 always_export_symbols=no
9925 archive_cmds=
9926 archive_expsym_cmds=
9927 compiler_needs_object=no
9928 enable_shared_with_static_runtimes=no
9929 export_dynamic_flag_spec=
9930 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9931 hardcode_automatic=no
9932 hardcode_direct=no
9933 hardcode_direct_absolute=no
9934 hardcode_libdir_flag_spec=
9935 hardcode_libdir_separator=
9936 hardcode_minus_L=no
9937 hardcode_shlibpath_var=unsupported
9938 inherit_rpath=no
9939 link_all_deplibs=unknown
9940 module_cmds=
9941 module_expsym_cmds=
9942 old_archive_from_new_cmds=
9943 old_archive_from_expsyms_cmds=
9944 thread_safe_flag_spec=
9945 whole_archive_flag_spec=
9946 # include_expsyms should be a list of space-separated symbols to be *always*
9947 # included in the symbol list
9948 include_expsyms=
9949 # exclude_expsyms can be an extended regexp of symbols to exclude
9950 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9951 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9952 # as well as any symbol that contains 'd'.
9953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9955 # platforms (ab)use it in PIC code, but their linkers get confused if
9956 # the symbol is explicitly referenced. Since portable code cannot
9957 # rely on this symbol name, it's probably fine to never include it in
9958 # preloaded symbol tables.
9959 # Exclude shared library initialization/finalization symbols.
9960 extract_expsyms_cmds=
9961
9962 case $host_os in
9963 cygwin* | mingw* | pw32* | cegcc*)
9964 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9965 # When not using gcc, we currently assume that we are using
9966 # Microsoft Visual C++ or Intel C++ Compiler.
9967 if test yes != "$GCC"; then
9968 with_gnu_ld=no
9969 fi
9970 ;;
9971 interix*)
9972 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9973 with_gnu_ld=yes
9974 ;;
9975 openbsd* | bitrig*)
9976 with_gnu_ld=no
9977 ;;
9978 linux* | k*bsd*-gnu | gnu*)
9979 link_all_deplibs=no
9980 ;;
9981 esac
9982
9983 ld_shlibs=yes
9984
9985 # On some targets, GNU ld is compatible enough with the native linker
9986 # that we're better off using the native interface for both.
9987 lt_use_gnu_ld_interface=no
9988 if test yes = "$with_gnu_ld"; then
9989 case $host_os in
9990 aix*)
9991 # The AIX port of GNU ld has always aspired to compatibility
9992 # with the native linker. However, as the warning in the GNU ld
9993 # block says, versions before 2.19.5* couldn't really create working
9994 # shared libraries, regardless of the interface used.
9995 case `$LD -v 2>&1` in
9996 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9997 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9998 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9999 *)
10000 lt_use_gnu_ld_interface=yes
10001 ;;
10002 esac
10003 ;;
10004 *)
10005 lt_use_gnu_ld_interface=yes
10006 ;;
10007 esac
10008 fi
10009
10010 if test yes = "$lt_use_gnu_ld_interface"; then
10011 # If archive_cmds runs LD, not CC, wlarc should be empty
10012 wlarc='$wl'
10013
10014 # Set some defaults for GNU ld with shared library support. These
10015 # are reset later if shared libraries are not supported. Putting them
10016 # here allows them to be overridden if necessary.
10017 runpath_var=LD_RUN_PATH
10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019 export_dynamic_flag_spec='$wl--export-dynamic'
10020 # ancient GNU ld didn't support --whole-archive et. al.
10021 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10022 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10023 else
10024 whole_archive_flag_spec=
10025 fi
10026 supports_anon_versioning=no
10027 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10028 *GNU\ gold*) supports_anon_versioning=yes ;;
10029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10032 *\ 2.11.*) ;; # other 2.11 versions
10033 *) supports_anon_versioning=yes ;;
10034 esac
10035
10036 # See if GNU ld supports shared libraries.
10037 case $host_os in
10038 aix[3-9]*)
10039 # On AIX/PPC, the GNU linker is very broken
10040 if test ia64 != "$host_cpu"; then
10041 ld_shlibs=no
10042 cat <<_LT_EOF 1>&2
10043
10044 *** Warning: the GNU linker, at least up to release 2.19, is reported
10045 *** to be unable to reliably create shared libraries on AIX.
10046 *** Therefore, libtool is disabling shared libraries support. If you
10047 *** really care for shared libraries, you may want to install binutils
10048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10049 *** You will then need to restart the configuration process.
10050
10051 _LT_EOF
10052 fi
10053 ;;
10054
10055 amigaos*)
10056 case $host_cpu in
10057 powerpc)
10058 # see comment about AmigaOS4 .so support
10059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10060 archive_expsym_cmds=''
10061 ;;
10062 m68k)
10063 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)'
10064 hardcode_libdir_flag_spec='-L$libdir'
10065 hardcode_minus_L=yes
10066 ;;
10067 esac
10068 ;;
10069
10070 beos*)
10071 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072 allow_undefined_flag=unsupported
10073 # Joseph Beckenbach <[email protected]> says some releases of gcc
10074 # support --undefined. This deserves some investigation. FIXME
10075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10076 else
10077 ld_shlibs=no
10078 fi
10079 ;;
10080
10081 cygwin* | mingw* | pw32* | cegcc*)
10082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10083 # as there is no search path for DLLs.
10084 hardcode_libdir_flag_spec='-L$libdir'
10085 export_dynamic_flag_spec='$wl--export-all-symbols'
10086 allow_undefined_flag=unsupported
10087 always_export_symbols=no
10088 enable_shared_with_static_runtimes=yes
10089 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'
10090 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10091
10092 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10093 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10094 # If the export-symbols file already is a .def file, use it as
10095 # is; otherwise, prepend EXPORTS...
10096 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10097 cp $export_symbols $output_objdir/$soname.def;
10098 else
10099 echo EXPORTS > $output_objdir/$soname.def;
10100 cat $export_symbols >> $output_objdir/$soname.def;
10101 fi~
10102 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10103 else
10104 ld_shlibs=no
10105 fi
10106 ;;
10107
10108 haiku*)
10109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110 link_all_deplibs=yes
10111 ;;
10112
10113 os2*)
10114 hardcode_libdir_flag_spec='-L$libdir'
10115 hardcode_minus_L=yes
10116 allow_undefined_flag=unsupported
10117 shrext_cmds=.dll
10118 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10121 $ECHO EXPORTS >> $output_objdir/$libname.def~
10122 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10123 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10124 emximp -o $lib $output_objdir/$libname.def'
10125 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10126 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10127 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10128 $ECHO EXPORTS >> $output_objdir/$libname.def~
10129 prefix_cmds="$SED"~
10130 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10131 prefix_cmds="$prefix_cmds -e 1d";
10132 fi~
10133 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10134 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10135 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10136 emximp -o $lib $output_objdir/$libname.def'
10137 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10138 enable_shared_with_static_runtimes=yes
10139 file_list_spec='@'
10140 ;;
10141
10142 interix[3-9]*)
10143 hardcode_direct=no
10144 hardcode_shlibpath_var=no
10145 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10146 export_dynamic_flag_spec='$wl-E'
10147 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10148 # Instead, shared libraries are loaded at an image base (0x10000000 by
10149 # default) and relocated if they conflict, which is a slow very memory
10150 # consuming and fragmenting process. To avoid this, we pick a random,
10151 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10152 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10153 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10154 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'
10155 ;;
10156
10157 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10158 tmp_diet=no
10159 if test linux-dietlibc = "$host_os"; then
10160 case $cc_basename in
10161 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10162 esac
10163 fi
10164 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10165 && test no = "$tmp_diet"
10166 then
10167 tmp_addflag=' $pic_flag'
10168 tmp_sharedflag='-shared'
10169 case $cc_basename,$host_cpu in
10170 pgcc*) # Portland Group C compiler
10171 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'
10172 tmp_addflag=' $pic_flag'
10173 ;;
10174 pgf77* | pgf90* | pgf95* | pgfortran*)
10175 # Portland Group f77 and f90 compilers
10176 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'
10177 tmp_addflag=' $pic_flag -Mnomain' ;;
10178 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10179 tmp_addflag=' -i_dynamic' ;;
10180 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10181 tmp_addflag=' -i_dynamic -nofor_main' ;;
10182 ifc* | ifort*) # Intel Fortran compiler
10183 tmp_addflag=' -nofor_main' ;;
10184 lf95*) # Lahey Fortran 8.1
10185 whole_archive_flag_spec=
10186 tmp_sharedflag='--shared' ;;
10187 nagfor*) # NAGFOR 5.3
10188 tmp_sharedflag='-Wl,-shared' ;;
10189 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10190 tmp_sharedflag='-qmkshrobj'
10191 tmp_addflag= ;;
10192 nvcc*) # Cuda Compiler Driver 2.2
10193 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'
10194 compiler_needs_object=yes
10195 ;;
10196 esac
10197 case `$CC -V 2>&1 | $SED 5q` in
10198 *Sun\ C*) # Sun C 5.9
10199 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'
10200 compiler_needs_object=yes
10201 tmp_sharedflag='-G' ;;
10202 *Sun\ F*) # Sun Fortran 8.3
10203 tmp_sharedflag='-G' ;;
10204 esac
10205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10206
10207 if test yes = "$supports_anon_versioning"; then
10208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10209 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10210 echo "local: *; };" >> $output_objdir/$libname.ver~
10211 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10212 fi
10213
10214 case $cc_basename in
10215 tcc*)
10216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10217 export_dynamic_flag_spec='-rdynamic'
10218 ;;
10219 xlf* | bgf* | bgxlf* | mpixlf*)
10220 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10221 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10222 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10223 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10224 if test yes = "$supports_anon_versioning"; then
10225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10226 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10227 echo "local: *; };" >> $output_objdir/$libname.ver~
10228 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10229 fi
10230 ;;
10231 esac
10232 else
10233 ld_shlibs=no
10234 fi
10235 ;;
10236
10237 netbsd* | netbsdelf*-gnu)
10238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10240 wlarc=
10241 else
10242 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10243 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10244 fi
10245 ;;
10246
10247 solaris*)
10248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10249 ld_shlibs=no
10250 cat <<_LT_EOF 1>&2
10251
10252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10253 *** create shared libraries on Solaris systems. Therefore, libtool
10254 *** is disabling shared libraries support. We urge you to upgrade GNU
10255 *** binutils to release 2.9.1 or newer. Another option is to modify
10256 *** your PATH or compiler configuration so that the native linker is
10257 *** used, and then restart.
10258
10259 _LT_EOF
10260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10261 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10262 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10263 else
10264 ld_shlibs=no
10265 fi
10266 ;;
10267
10268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10269 case `$LD -v 2>&1` in
10270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10271 ld_shlibs=no
10272 cat <<_LT_EOF 1>&2
10273
10274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10275 *** reliably create shared libraries on SCO systems. Therefore, libtool
10276 *** is disabling shared libraries support. We urge you to upgrade GNU
10277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10280
10281 _LT_EOF
10282 ;;
10283 *)
10284 # For security reasons, it is highly recommended that you always
10285 # use absolute paths for naming shared libraries, and exclude the
10286 # DT_RUNPATH tag from executables and libraries. But doing so
10287 # requires that you compile everything twice, which is a pain.
10288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10289 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10292 else
10293 ld_shlibs=no
10294 fi
10295 ;;
10296 esac
10297 ;;
10298
10299 sunos4*)
10300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301 wlarc=
10302 hardcode_direct=yes
10303 hardcode_shlibpath_var=no
10304 ;;
10305
10306 *)
10307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10310 else
10311 ld_shlibs=no
10312 fi
10313 ;;
10314 esac
10315
10316 if test no = "$ld_shlibs"; then
10317 runpath_var=
10318 hardcode_libdir_flag_spec=
10319 export_dynamic_flag_spec=
10320 whole_archive_flag_spec=
10321 fi
10322 else
10323 # PORTME fill in a description of your system's linker (not GNU ld)
10324 case $host_os in
10325 aix3*)
10326 allow_undefined_flag=unsupported
10327 always_export_symbols=yes
10328 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'
10329 # Note: this linker hardcodes the directories in LIBPATH if there
10330 # are no directories specified by -L.
10331 hardcode_minus_L=yes
10332 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10333 # Neither direct hardcoding nor static linking is supported with a
10334 # broken collect2.
10335 hardcode_direct=unsupported
10336 fi
10337 ;;
10338
10339 aix[4-9]*)
10340 if test ia64 = "$host_cpu"; then
10341 # On IA64, the linker does run time linking by default, so we don't
10342 # have to do anything special.
10343 aix_use_runtimelinking=no
10344 exp_sym_flag='-Bexport'
10345 no_entry_flag=
10346 else
10347 # If we're using GNU nm, then we don't want the "-C" option.
10348 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10349 # Without the "-l" option, or with the "-B" option, AIX nm treats
10350 # weak defined symbols like other global defined symbols, whereas
10351 # GNU nm marks them as "W".
10352 # While the 'weak' keyword is ignored in the Export File, we need
10353 # it in the Import File for the 'aix-soname' feature, so we have
10354 # to replace the "-B" option with "-P" for AIX nm.
10355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10356 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'
10357 else
10358 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10359 fi
10360 aix_use_runtimelinking=no
10361
10362 # Test if we are trying to use run time linking or normal
10363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10364 # have runtime linking enabled, and use it for executables.
10365 # For shared libraries, we enable/disable runtime linking
10366 # depending on the kind of the shared library created -
10367 # when "with_aix_soname,aix_use_runtimelinking" is:
10368 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10369 # "aix,yes" lib.so shared, rtl:yes, for executables
10370 # lib.a static archive
10371 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10372 # lib.a(lib.so.V) shared, rtl:no, for executables
10373 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10374 # lib.a(lib.so.V) shared, rtl:no
10375 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10376 # lib.a static archive
10377 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10378 for ld_flag in $LDFLAGS; do
10379 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10380 aix_use_runtimelinking=yes
10381 break
10382 fi
10383 done
10384 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10385 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10386 # so we don't have lib.a shared libs to link our executables.
10387 # We have to force runtime linking in this case.
10388 aix_use_runtimelinking=yes
10389 LDFLAGS="$LDFLAGS -Wl,-brtl"
10390 fi
10391 ;;
10392 esac
10393
10394 exp_sym_flag='-bexport'
10395 no_entry_flag='-bnoentry'
10396 fi
10397
10398 # When large executables or shared objects are built, AIX ld can
10399 # have problems creating the table of contents. If linking a library
10400 # or program results in "error TOC overflow" add -mminimal-toc to
10401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10403
10404 archive_cmds=''
10405 hardcode_direct=yes
10406 hardcode_direct_absolute=yes
10407 hardcode_libdir_separator=':'
10408 link_all_deplibs=yes
10409 file_list_spec='$wl-f,'
10410 case $with_aix_soname,$aix_use_runtimelinking in
10411 aix,*) ;; # traditional, no import file
10412 svr4,* | *,yes) # use import file
10413 # The Import File defines what to hardcode.
10414 hardcode_direct=no
10415 hardcode_direct_absolute=no
10416 ;;
10417 esac
10418
10419 if test yes = "$GCC"; then
10420 case $host_os in aix4.[012]|aix4.[012].*)
10421 # We only want to do this on AIX 4.2 and lower, the check
10422 # below for broken collect2 doesn't work under 4.3+
10423 collect2name=`$CC -print-prog-name=collect2`
10424 if test -f "$collect2name" &&
10425 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10426 then
10427 # We have reworked collect2
10428 :
10429 else
10430 # We have old collect2
10431 hardcode_direct=unsupported
10432 # It fails to find uninstalled libraries when the uninstalled
10433 # path is not listed in the libpath. Setting hardcode_minus_L
10434 # to unsupported forces relinking
10435 hardcode_minus_L=yes
10436 hardcode_libdir_flag_spec='-L$libdir'
10437 hardcode_libdir_separator=
10438 fi
10439 ;;
10440 esac
10441 shared_flag='-shared'
10442 if test yes = "$aix_use_runtimelinking"; then
10443 shared_flag="$shared_flag "'$wl-G'
10444 fi
10445 # Need to ensure runtime linking is disabled for the traditional
10446 # shared library, or the linker may eventually find shared libraries
10447 # /with/ Import File - we do not want to mix them.
10448 shared_flag_aix='-shared'
10449 shared_flag_svr4='-shared $wl-G'
10450 else
10451 # not using gcc
10452 if test ia64 = "$host_cpu"; then
10453 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10454 # chokes on -Wl,-G. The following line is correct:
10455 shared_flag='-G'
10456 else
10457 if test yes = "$aix_use_runtimelinking"; then
10458 shared_flag='$wl-G'
10459 else
10460 shared_flag='$wl-bM:SRE'
10461 fi
10462 shared_flag_aix='$wl-bM:SRE'
10463 shared_flag_svr4='$wl-G'
10464 fi
10465 fi
10466
10467 export_dynamic_flag_spec='$wl-bexpall'
10468 # It seems that -bexpall does not export symbols beginning with
10469 # underscore (_), so it is better to generate a list of symbols to export.
10470 always_export_symbols=yes
10471 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10472 # Warning - without using the other runtime loading flags (-brtl),
10473 # -berok will link without error, but may produce a broken library.
10474 allow_undefined_flag='-berok'
10475 # Determine the default libpath from the value encoded in an
10476 # empty executable.
10477 if test set = "${lt_cv_aix_libpath+set}"; then
10478 aix_libpath=$lt_cv_aix_libpath
10479 else
10480 if test ${lt_cv_aix_libpath_+y}
10481 then :
10482 printf %s "(cached) " >&6
10483 else $as_nop
10484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485 /* end confdefs.h. */
10486
10487 int
10488 main (void)
10489 {
10490
10491 ;
10492 return 0;
10493 }
10494 _ACEOF
10495 if ac_fn_c_try_link "$LINENO"
10496 then :
10497
10498 lt_aix_libpath_sed='
10499 /Import File Strings/,/^$/ {
10500 /^0/ {
10501 s/^0 *\([^ ]*\) *$/\1/
10502 p
10503 }
10504 }'
10505 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10506 # Check for a 64-bit object if we didn't find anything.
10507 if test -z "$lt_cv_aix_libpath_"; then
10508 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10509 fi
10510 fi
10511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10512 conftest$ac_exeext conftest.$ac_ext
10513 if test -z "$lt_cv_aix_libpath_"; then
10514 lt_cv_aix_libpath_=/usr/lib:/lib
10515 fi
10516
10517 fi
10518
10519 aix_libpath=$lt_cv_aix_libpath_
10520 fi
10521
10522 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10523 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
10524 else
10525 if test ia64 = "$host_cpu"; then
10526 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10527 allow_undefined_flag="-z nodefs"
10528 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"
10529 else
10530 # Determine the default libpath from the value encoded in an
10531 # empty executable.
10532 if test set = "${lt_cv_aix_libpath+set}"; then
10533 aix_libpath=$lt_cv_aix_libpath
10534 else
10535 if test ${lt_cv_aix_libpath_+y}
10536 then :
10537 printf %s "(cached) " >&6
10538 else $as_nop
10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541
10542 int
10543 main (void)
10544 {
10545
10546 ;
10547 return 0;
10548 }
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"
10551 then :
10552
10553 lt_aix_libpath_sed='
10554 /Import File Strings/,/^$/ {
10555 /^0/ {
10556 s/^0 *\([^ ]*\) *$/\1/
10557 p
10558 }
10559 }'
10560 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10561 # Check for a 64-bit object if we didn't find anything.
10562 if test -z "$lt_cv_aix_libpath_"; then
10563 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10564 fi
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10567 conftest$ac_exeext conftest.$ac_ext
10568 if test -z "$lt_cv_aix_libpath_"; then
10569 lt_cv_aix_libpath_=/usr/lib:/lib
10570 fi
10571
10572 fi
10573
10574 aix_libpath=$lt_cv_aix_libpath_
10575 fi
10576
10577 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10578 # Warning - without using the other run time loading flags,
10579 # -berok will link without error, but may produce a broken library.
10580 no_undefined_flag=' $wl-bernotok'
10581 allow_undefined_flag=' $wl-berok'
10582 if test yes = "$with_gnu_ld"; then
10583 # We only use this code for GNU lds that support --whole-archive.
10584 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10585 else
10586 # Exported symbols can be pulled into shared objects from archives
10587 whole_archive_flag_spec='$convenience'
10588 fi
10589 archive_cmds_need_lc=yes
10590 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10591 # -brtl affects multiple linker settings, -berok does not and is overridden later
10592 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10593 if test svr4 != "$with_aix_soname"; then
10594 # This is similar to how AIX traditionally builds its shared libraries.
10595 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'
10596 fi
10597 if test aix != "$with_aix_soname"; then
10598 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'
10599 else
10600 # used by -dlpreopen to get the symbols
10601 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10602 fi
10603 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10604 fi
10605 fi
10606 ;;
10607
10608 amigaos*)
10609 case $host_cpu in
10610 powerpc)
10611 # see comment about AmigaOS4 .so support
10612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10613 archive_expsym_cmds=''
10614 ;;
10615 m68k)
10616 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)'
10617 hardcode_libdir_flag_spec='-L$libdir'
10618 hardcode_minus_L=yes
10619 ;;
10620 esac
10621 ;;
10622
10623 bsdi[45]*)
10624 export_dynamic_flag_spec=-rdynamic
10625 ;;
10626
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 # When not using gcc, we currently assume that we are using
10629 # Microsoft Visual C++ or Intel C++ Compiler.
10630 # hardcode_libdir_flag_spec is actually meaningless, as there is
10631 # no search path for DLLs.
10632 case $cc_basename in
10633 cl* | icl*)
10634 # Native MSVC or ICC
10635 hardcode_libdir_flag_spec=' '
10636 allow_undefined_flag=unsupported
10637 always_export_symbols=yes
10638 file_list_spec='@'
10639 # Tell ltmain to make .lib files, not .a files.
10640 libext=lib
10641 # Tell ltmain to make .dll files, not .so files.
10642 shrext_cmds=.dll
10643 # FIXME: Setting linknames here is a bad hack.
10644 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10645 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10646 cp "$export_symbols" "$output_objdir/$soname.def";
10647 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10648 else
10649 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10650 fi~
10651 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10652 linknames='
10653 # The linker will not automatically build a static lib if we build a DLL.
10654 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10655 enable_shared_with_static_runtimes=yes
10656 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10658 # Don't use ranlib
10659 old_postinstall_cmds='chmod 644 $oldlib'
10660 postlink_cmds='lt_outputfile="@OUTPUT@"~
10661 lt_tool_outputfile="@TOOL_OUTPUT@"~
10662 case $lt_outputfile in
10663 *.exe|*.EXE) ;;
10664 *)
10665 lt_outputfile=$lt_outputfile.exe
10666 lt_tool_outputfile=$lt_tool_outputfile.exe
10667 ;;
10668 esac~
10669 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10670 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10671 $RM "$lt_outputfile.manifest";
10672 fi'
10673 ;;
10674 *)
10675 # Assume MSVC and ICC wrapper
10676 hardcode_libdir_flag_spec=' '
10677 allow_undefined_flag=unsupported
10678 # Tell ltmain to make .lib files, not .a files.
10679 libext=lib
10680 # Tell ltmain to make .dll files, not .so files.
10681 shrext_cmds=.dll
10682 # FIXME: Setting linknames here is a bad hack.
10683 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10684 # The linker will automatically build a .lib file if we build a DLL.
10685 old_archive_from_new_cmds='true'
10686 # FIXME: Should let the user specify the lib program.
10687 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10688 enable_shared_with_static_runtimes=yes
10689 ;;
10690 esac
10691 ;;
10692
10693 darwin* | rhapsody*)
10694
10695
10696 archive_cmds_need_lc=no
10697 hardcode_direct=no
10698 hardcode_automatic=yes
10699 hardcode_shlibpath_var=unsupported
10700 if test yes = "$lt_cv_ld_force_load"; then
10701 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\"`'
10702
10703 else
10704 whole_archive_flag_spec=''
10705 fi
10706 link_all_deplibs=yes
10707 allow_undefined_flag=$_lt_dar_allow_undefined
10708 case $cc_basename in
10709 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10710 *) _lt_dar_can_shared=$GCC ;;
10711 esac
10712 if test yes = "$_lt_dar_can_shared"; then
10713 output_verbose_link_cmd=func_echo_all
10714 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10715 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10716 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"
10717 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"
10718
10719 else
10720 ld_shlibs=no
10721 fi
10722
10723 ;;
10724
10725 dgux*)
10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727 hardcode_libdir_flag_spec='-L$libdir'
10728 hardcode_shlibpath_var=no
10729 ;;
10730
10731 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10732 # support. Future versions do this automatically, but an explicit c++rt0.o
10733 # does not break anything, and helps significantly (at the cost of a little
10734 # extra space).
10735 freebsd2.2*)
10736 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10737 hardcode_libdir_flag_spec='-R$libdir'
10738 hardcode_direct=yes
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10743 freebsd2.*)
10744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_direct=yes
10746 hardcode_minus_L=yes
10747 hardcode_shlibpath_var=no
10748 ;;
10749
10750 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10751 freebsd* | dragonfly* | midnightbsd*)
10752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10753 hardcode_libdir_flag_spec='-R$libdir'
10754 hardcode_direct=yes
10755 hardcode_shlibpath_var=no
10756 ;;
10757
10758 hpux9*)
10759 if test yes = "$GCC"; then
10760 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'
10761 else
10762 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'
10763 fi
10764 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10765 hardcode_libdir_separator=:
10766 hardcode_direct=yes
10767
10768 # hardcode_minus_L: Not really in the search PATH,
10769 # but as the default location of the library.
10770 hardcode_minus_L=yes
10771 export_dynamic_flag_spec='$wl-E'
10772 ;;
10773
10774 hpux10*)
10775 if test yes,no = "$GCC,$with_gnu_ld"; then
10776 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10777 else
10778 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10779 fi
10780 if test no = "$with_gnu_ld"; then
10781 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10782 hardcode_libdir_separator=:
10783 hardcode_direct=yes
10784 hardcode_direct_absolute=yes
10785 export_dynamic_flag_spec='$wl-E'
10786 # hardcode_minus_L: Not really in the search PATH,
10787 # but as the default location of the library.
10788 hardcode_minus_L=yes
10789 fi
10790 ;;
10791
10792 hpux11*)
10793 if test yes,no = "$GCC,$with_gnu_ld"; then
10794 case $host_cpu in
10795 hppa*64*)
10796 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10797 ;;
10798 ia64*)
10799 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10800 ;;
10801 *)
10802 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10803 ;;
10804 esac
10805 else
10806 case $host_cpu in
10807 hppa*64*)
10808 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 ;;
10810 ia64*)
10811 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10812 ;;
10813 *)
10814
10815 # Older versions of the 11.00 compiler do not understand -b yet
10816 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10818 printf %s "checking if $CC understands -b... " >&6; }
10819 if test ${lt_cv_prog_compiler__b+y}
10820 then :
10821 printf %s "(cached) " >&6
10822 else $as_nop
10823 lt_cv_prog_compiler__b=no
10824 save_LDFLAGS=$LDFLAGS
10825 LDFLAGS="$LDFLAGS -b"
10826 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10827 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10828 # The linker can only warn and ignore the option if not recognized
10829 # So say no if there are warnings
10830 if test -s conftest.err; then
10831 # Append any errors to the config.log.
10832 cat conftest.err 1>&5
10833 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10835 if diff conftest.exp conftest.er2 >/dev/null; then
10836 lt_cv_prog_compiler__b=yes
10837 fi
10838 else
10839 lt_cv_prog_compiler__b=yes
10840 fi
10841 fi
10842 $RM -r conftest*
10843 LDFLAGS=$save_LDFLAGS
10844
10845 fi
10846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10847 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10848
10849 if test yes = "$lt_cv_prog_compiler__b"; then
10850 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10851 else
10852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10853 fi
10854
10855 ;;
10856 esac
10857 fi
10858 if test no = "$with_gnu_ld"; then
10859 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10860 hardcode_libdir_separator=:
10861
10862 case $host_cpu in
10863 hppa*64*|ia64*)
10864 hardcode_direct=no
10865 hardcode_shlibpath_var=no
10866 ;;
10867 *)
10868 hardcode_direct=yes
10869 hardcode_direct_absolute=yes
10870 export_dynamic_flag_spec='$wl-E'
10871
10872 # hardcode_minus_L: Not really in the search PATH,
10873 # but as the default location of the library.
10874 hardcode_minus_L=yes
10875 ;;
10876 esac
10877 fi
10878 ;;
10879
10880 irix5* | irix6* | nonstopux*)
10881 if test yes = "$GCC"; then
10882 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'
10883 # Try to use the -exported_symbol ld option, if it does not
10884 # work, assume that -exports_file does not work either and
10885 # implicitly export all symbols.
10886 # This should be the same for all languages, so no per-tag cache variable.
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10888 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10889 if test ${lt_cv_irix_exported_symbol+y}
10890 then :
10891 printf %s "(cached) " >&6
10892 else $as_nop
10893 save_LDFLAGS=$LDFLAGS
10894 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 int foo (void) { return 0; }
10898 _ACEOF
10899 if ac_fn_c_try_link "$LINENO"
10900 then :
10901 lt_cv_irix_exported_symbol=yes
10902 else $as_nop
10903 lt_cv_irix_exported_symbol=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10906 conftest$ac_exeext conftest.$ac_ext
10907 LDFLAGS=$save_LDFLAGS
10908 fi
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10910 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10911 if test yes = "$lt_cv_irix_exported_symbol"; then
10912 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'
10913 fi
10914 link_all_deplibs=no
10915 else
10916 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'
10917 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'
10918 fi
10919 archive_cmds_need_lc='no'
10920 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10921 hardcode_libdir_separator=:
10922 inherit_rpath=yes
10923 link_all_deplibs=yes
10924 ;;
10925
10926 linux*)
10927 case $cc_basename in
10928 tcc*)
10929 # Fabrice Bellard et al's Tiny C Compiler
10930 ld_shlibs=yes
10931 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10933 ;;
10934 esac
10935 ;;
10936
10937 netbsd* | netbsdelf*-gnu)
10938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10939 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10940 else
10941 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10942 fi
10943 hardcode_libdir_flag_spec='-R$libdir'
10944 hardcode_direct=yes
10945 hardcode_shlibpath_var=no
10946 ;;
10947
10948 newsos6)
10949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_direct=yes
10951 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10952 hardcode_libdir_separator=:
10953 hardcode_shlibpath_var=no
10954 ;;
10955
10956 *nto* | *qnx*)
10957 ;;
10958
10959 openbsd* | bitrig*)
10960 if test -f /usr/libexec/ld.so; then
10961 hardcode_direct=yes
10962 hardcode_shlibpath_var=no
10963 hardcode_direct_absolute=yes
10964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10966 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10967 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10968 export_dynamic_flag_spec='$wl-E'
10969 else
10970 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10971 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10972 fi
10973 else
10974 ld_shlibs=no
10975 fi
10976 ;;
10977
10978 os2*)
10979 hardcode_libdir_flag_spec='-L$libdir'
10980 hardcode_minus_L=yes
10981 allow_undefined_flag=unsupported
10982 shrext_cmds=.dll
10983 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10984 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10985 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10986 $ECHO EXPORTS >> $output_objdir/$libname.def~
10987 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10988 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10989 emximp -o $lib $output_objdir/$libname.def'
10990 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10991 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10992 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10993 $ECHO EXPORTS >> $output_objdir/$libname.def~
10994 prefix_cmds="$SED"~
10995 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10996 prefix_cmds="$prefix_cmds -e 1d";
10997 fi~
10998 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10999 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11000 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11001 emximp -o $lib $output_objdir/$libname.def'
11002 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11003 enable_shared_with_static_runtimes=yes
11004 file_list_spec='@'
11005 ;;
11006
11007 osf3*)
11008 if test yes = "$GCC"; then
11009 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11010 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'
11011 else
11012 allow_undefined_flag=' -expect_unresolved \*'
11013 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'
11014 fi
11015 archive_cmds_need_lc='no'
11016 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11017 hardcode_libdir_separator=:
11018 ;;
11019
11020 osf4* | osf5*) # as osf3* with the addition of -msym flag
11021 if test yes = "$GCC"; then
11022 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11023 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'
11024 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11025 else
11026 allow_undefined_flag=' -expect_unresolved \*'
11027 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'
11028 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~
11029 $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'
11030
11031 # Both c and cxx compiler support -rpath directly
11032 hardcode_libdir_flag_spec='-rpath $libdir'
11033 fi
11034 archive_cmds_need_lc='no'
11035 hardcode_libdir_separator=:
11036 ;;
11037
11038 solaris*)
11039 no_undefined_flag=' -z defs'
11040 if test yes = "$GCC"; then
11041 wlarc='$wl'
11042 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044 $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'
11045 else
11046 case `$CC -V 2>&1` in
11047 *"Compilers 5.0"*)
11048 wlarc=''
11049 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11051 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11052 ;;
11053 *)
11054 wlarc='$wl'
11055 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11057 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11058 ;;
11059 esac
11060 fi
11061 hardcode_libdir_flag_spec='-R$libdir'
11062 hardcode_shlibpath_var=no
11063 case $host_os in
11064 solaris2.[0-5] | solaris2.[0-5].*) ;;
11065 *)
11066 # The compiler driver will combine and reorder linker options,
11067 # but understands '-z linker_flag'. GCC discards it without '$wl',
11068 # but is careful enough not to reorder.
11069 # Supported since Solaris 2.6 (maybe 2.5.1?)
11070 if test yes = "$GCC"; then
11071 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11072 else
11073 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11074 fi
11075 ;;
11076 esac
11077 link_all_deplibs=yes
11078 ;;
11079
11080 sunos4*)
11081 if test sequent = "$host_vendor"; then
11082 # Use $CC to link under sequent, because it throws in some extra .o
11083 # files that make .init and .fini sections work.
11084 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11085 else
11086 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11087 fi
11088 hardcode_libdir_flag_spec='-L$libdir'
11089 hardcode_direct=yes
11090 hardcode_minus_L=yes
11091 hardcode_shlibpath_var=no
11092 ;;
11093
11094 sysv4)
11095 case $host_vendor in
11096 sni)
11097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098 hardcode_direct=yes # is this really true???
11099 ;;
11100 siemens)
11101 ## LD is ld it makes a PLAMLIB
11102 ## CC just makes a GrossModule.
11103 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11104 reload_cmds='$CC -r -o $output$reload_objs'
11105 hardcode_direct=no
11106 ;;
11107 motorola)
11108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11109 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11110 ;;
11111 esac
11112 runpath_var='LD_RUN_PATH'
11113 hardcode_shlibpath_var=no
11114 ;;
11115
11116 sysv4.3*)
11117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118 hardcode_shlibpath_var=no
11119 export_dynamic_flag_spec='-Bexport'
11120 ;;
11121
11122 sysv4*MP*)
11123 if test -d /usr/nec; then
11124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125 hardcode_shlibpath_var=no
11126 runpath_var=LD_RUN_PATH
11127 hardcode_runpath_var=yes
11128 ld_shlibs=yes
11129 fi
11130 ;;
11131
11132 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11133 no_undefined_flag='$wl-z,text'
11134 archive_cmds_need_lc=no
11135 hardcode_shlibpath_var=no
11136 runpath_var='LD_RUN_PATH'
11137
11138 if test yes = "$GCC"; then
11139 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11141 else
11142 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11143 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11144 fi
11145 ;;
11146
11147 sysv5* | sco3.2v5* | sco5v6*)
11148 # Note: We CANNOT use -z defs as we might desire, because we do not
11149 # link with -lc, and that would cause any symbols used from libc to
11150 # always be unresolved, which means just about no library would
11151 # ever link correctly. If we're not using GNU ld we use -z text
11152 # though, which does catch some bad symbols but isn't as heavy-handed
11153 # as -z defs.
11154 no_undefined_flag='$wl-z,text'
11155 allow_undefined_flag='$wl-z,nodefs'
11156 archive_cmds_need_lc=no
11157 hardcode_shlibpath_var=no
11158 hardcode_libdir_flag_spec='$wl-R,$libdir'
11159 hardcode_libdir_separator=':'
11160 link_all_deplibs=yes
11161 export_dynamic_flag_spec='$wl-Bexport'
11162 runpath_var='LD_RUN_PATH'
11163
11164 if test yes = "$GCC"; then
11165 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11166 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167 else
11168 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170 fi
11171 ;;
11172
11173 uts4*)
11174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175 hardcode_libdir_flag_spec='-L$libdir'
11176 hardcode_shlibpath_var=no
11177 ;;
11178
11179 *)
11180 ld_shlibs=no
11181 ;;
11182 esac
11183
11184 if test sni = "$host_vendor"; then
11185 case $host in
11186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11187 export_dynamic_flag_spec='$wl-Blargedynsym'
11188 ;;
11189 esac
11190 fi
11191 fi
11192
11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11194 printf "%s\n" "$ld_shlibs" >&6; }
11195 test no = "$ld_shlibs" && can_build_shared=no
11196
11197 with_gnu_ld=$with_gnu_ld
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213 #
11214 # Do we need to explicitly link libc?
11215 #
11216 case "x$archive_cmds_need_lc" in
11217 x|xyes)
11218 # Assume -lc should be added
11219 archive_cmds_need_lc=yes
11220
11221 if test yes,yes = "$GCC,$enable_shared"; then
11222 case $archive_cmds in
11223 *'~'*)
11224 # FIXME: we may have to deal with multi-command sequences.
11225 ;;
11226 '$CC '*)
11227 # Test whether the compiler implicitly links with -lc since on some
11228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11229 # to ld, don't add -lc before -lgcc.
11230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11231 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11232 if test ${lt_cv_archive_cmds_need_lc+y}
11233 then :
11234 printf %s "(cached) " >&6
11235 else $as_nop
11236 $RM conftest*
11237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11238
11239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11240 (eval $ac_compile) 2>&5
11241 ac_status=$?
11242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243 test $ac_status = 0; } 2>conftest.err; then
11244 soname=conftest
11245 lib=conftest
11246 libobjs=conftest.$ac_objext
11247 deplibs=
11248 wl=$lt_prog_compiler_wl
11249 pic_flag=$lt_prog_compiler_pic
11250 compiler_flags=-v
11251 linker_flags=-v
11252 verstring=
11253 output_objdir=.
11254 libname=conftest
11255 lt_save_allow_undefined_flag=$allow_undefined_flag
11256 allow_undefined_flag=
11257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11258 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11259 ac_status=$?
11260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11261 test $ac_status = 0; }
11262 then
11263 lt_cv_archive_cmds_need_lc=no
11264 else
11265 lt_cv_archive_cmds_need_lc=yes
11266 fi
11267 allow_undefined_flag=$lt_save_allow_undefined_flag
11268 else
11269 cat conftest.err 1>&5
11270 fi
11271 $RM conftest*
11272
11273 fi
11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11275 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11276 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11277 ;;
11278 esac
11279 fi
11280 ;;
11281 esac
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11435 printf %s "checking dynamic linker characteristics... " >&6; }
11436
11437 if test yes = "$GCC"; then
11438 case $host_os in
11439 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11440 *) lt_awk_arg='/^libraries:/' ;;
11441 esac
11442 case $host_os in
11443 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11444 *) lt_sed_strip_eq='s|=/|/|g' ;;
11445 esac
11446 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11447 case $lt_search_path_spec in
11448 *\;*)
11449 # if the path contains ";" then we assume it to be the separator
11450 # otherwise default to the standard path separator (i.e. ":") - it is
11451 # assumed that no part of a normal pathname contains ";" but that should
11452 # okay in the real world where ";" in dirpaths is itself problematic.
11453 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11454 ;;
11455 *)
11456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11457 ;;
11458 esac
11459 # Ok, now we have the path, separated by spaces, we can step through it
11460 # and add multilib dir if necessary...
11461 lt_tmp_lt_search_path_spec=
11462 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11463 # ...but if some path component already ends with the multilib dir we assume
11464 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11465 case "$lt_multi_os_dir; $lt_search_path_spec " in
11466 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11467 lt_multi_os_dir=
11468 ;;
11469 esac
11470 for lt_sys_path in $lt_search_path_spec; do
11471 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11472 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11473 elif test -n "$lt_multi_os_dir"; then
11474 test -d "$lt_sys_path" && \
11475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11476 fi
11477 done
11478 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11479 BEGIN {RS = " "; FS = "/|\n";} {
11480 lt_foo = "";
11481 lt_count = 0;
11482 for (lt_i = NF; lt_i > 0; lt_i--) {
11483 if ($lt_i != "" && $lt_i != ".") {
11484 if ($lt_i == "..") {
11485 lt_count++;
11486 } else {
11487 if (lt_count == 0) {
11488 lt_foo = "/" $lt_i lt_foo;
11489 } else {
11490 lt_count--;
11491 }
11492 }
11493 }
11494 }
11495 if (lt_foo != "") { lt_freq[lt_foo]++; }
11496 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11497 }'`
11498 # AWK program above erroneously prepends '/' to C:/dos/paths
11499 # for these hosts.
11500 case $host_os in
11501 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11502 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11503 esac
11504 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11505 else
11506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11507 fi
11508 library_names_spec=
11509 libname_spec='lib$name'
11510 soname_spec=
11511 shrext_cmds=.so
11512 postinstall_cmds=
11513 postuninstall_cmds=
11514 finish_cmds=
11515 finish_eval=
11516 shlibpath_var=
11517 shlibpath_overrides_runpath=unknown
11518 version_type=none
11519 dynamic_linker="$host_os ld.so"
11520 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11521 need_lib_prefix=unknown
11522 hardcode_into_libs=no
11523
11524 # when you set need_version to no, make sure it does not cause -set_version
11525 # flags to be left without arguments
11526 need_version=unknown
11527
11528
11529
11530 case $host_os in
11531 aix3*)
11532 version_type=linux # correct to gnu/linux during the next big refactor
11533 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11534 shlibpath_var=LIBPATH
11535
11536 # AIX 3 has no versioning support, so we append a major version to the name.
11537 soname_spec='$libname$release$shared_ext$major'
11538 ;;
11539
11540 aix[4-9]*)
11541 version_type=linux # correct to gnu/linux during the next big refactor
11542 need_lib_prefix=no
11543 need_version=no
11544 hardcode_into_libs=yes
11545 if test ia64 = "$host_cpu"; then
11546 # AIX 5 supports IA64
11547 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 else
11550 # With GCC up to 2.95.x, collect2 would create an import file
11551 # for dependence libraries. The import file would start with
11552 # the line '#! .'. This would cause the generated library to
11553 # depend on '.', always an invalid library. This was fixed in
11554 # development snapshots of GCC prior to 3.0.
11555 case $host_os in
11556 aix4 | aix4.[01] | aix4.[01].*)
11557 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11558 echo ' yes '
11559 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11560 :
11561 else
11562 can_build_shared=no
11563 fi
11564 ;;
11565 esac
11566 # Using Import Files as archive members, it is possible to support
11567 # filename-based versioning of shared library archives on AIX. While
11568 # this would work for both with and without runtime linking, it will
11569 # prevent static linking of such archives. So we do filename-based
11570 # shared library versioning with .so extension only, which is used
11571 # when both runtime linking and shared linking is enabled.
11572 # Unfortunately, runtime linking may impact performance, so we do
11573 # not want this to be the default eventually. Also, we use the
11574 # versioned .so libs for executables only if there is the -brtl
11575 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11576 # To allow for filename-based versioning support, we need to create
11577 # libNAME.so.V as an archive file, containing:
11578 # *) an Import File, referring to the versioned filename of the
11579 # archive as well as the shared archive member, telling the
11580 # bitwidth (32 or 64) of that shared object, and providing the
11581 # list of exported symbols of that shared object, eventually
11582 # decorated with the 'weak' keyword
11583 # *) the shared object with the F_LOADONLY flag set, to really avoid
11584 # it being seen by the linker.
11585 # At run time we better use the real file rather than another symlink,
11586 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11587
11588 case $with_aix_soname,$aix_use_runtimelinking in
11589 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11590 # soname into executable. Probably we can add versioning support to
11591 # collect2, so additional links can be useful in future.
11592 aix,yes) # traditional libtool
11593 dynamic_linker='AIX unversionable lib.so'
11594 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11595 # instead of lib<name>.a to let people know that these are not
11596 # typical AIX shared libraries.
11597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11598 ;;
11599 aix,no) # traditional AIX only
11600 dynamic_linker='AIX lib.a(lib.so.V)'
11601 # We preserve .a as extension for shared libraries through AIX4.2
11602 # and later when we are not doing run time linking.
11603 library_names_spec='$libname$release.a $libname.a'
11604 soname_spec='$libname$release$shared_ext$major'
11605 ;;
11606 svr4,*) # full svr4 only
11607 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11608 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11609 # We do not specify a path in Import Files, so LIBPATH fires.
11610 shlibpath_overrides_runpath=yes
11611 ;;
11612 *,yes) # both, prefer svr4
11613 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11614 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11615 # unpreferred sharedlib libNAME.a needs extra handling
11616 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"'
11617 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"'
11618 # We do not specify a path in Import Files, so LIBPATH fires.
11619 shlibpath_overrides_runpath=yes
11620 ;;
11621 *,no) # both, prefer aix
11622 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11623 library_names_spec='$libname$release.a $libname.a'
11624 soname_spec='$libname$release$shared_ext$major'
11625 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11626 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)'
11627 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"'
11628 ;;
11629 esac
11630 shlibpath_var=LIBPATH
11631 fi
11632 ;;
11633
11634 amigaos*)
11635 case $host_cpu in
11636 powerpc)
11637 # Since July 2007 AmigaOS4 officially supports .so libraries.
11638 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640 ;;
11641 m68k)
11642 library_names_spec='$libname.ixlibrary $libname.a'
11643 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11644 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'
11645 ;;
11646 esac
11647 ;;
11648
11649 beos*)
11650 library_names_spec='$libname$shared_ext'
11651 dynamic_linker="$host_os ld.so"
11652 shlibpath_var=LIBRARY_PATH
11653 ;;
11654
11655 bsdi[45]*)
11656 version_type=linux # correct to gnu/linux during the next big refactor
11657 need_version=no
11658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11659 soname_spec='$libname$release$shared_ext$major'
11660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11661 shlibpath_var=LD_LIBRARY_PATH
11662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11664 # the default ld.so.conf also contains /usr/contrib/lib and
11665 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11666 # libtool to hard-code these into programs
11667 ;;
11668
11669 cygwin* | mingw* | pw32* | cegcc*)
11670 version_type=windows
11671 shrext_cmds=.dll
11672 need_version=no
11673 need_lib_prefix=no
11674
11675 case $GCC,$cc_basename in
11676 yes,*)
11677 # gcc
11678 library_names_spec='$libname.dll.a'
11679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11680 postinstall_cmds='base_file=`basename \$file`~
11681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11682 dldir=$destdir/`dirname \$dlpath`~
11683 test -d \$dldir || mkdir -p \$dldir~
11684 $install_prog $dir/$dlname \$dldir/$dlname~
11685 chmod a+x \$dldir/$dlname~
11686 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11687 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11688 fi'
11689 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11690 dlpath=$dir/\$dldll~
11691 $RM \$dlpath'
11692 shlibpath_overrides_runpath=yes
11693
11694 case $host_os in
11695 cygwin*)
11696 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11697 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11698
11699 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11700 ;;
11701 mingw* | cegcc*)
11702 # MinGW DLLs use traditional 'lib' prefix
11703 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11704 ;;
11705 pw32*)
11706 # pw32 DLLs use 'pw' prefix rather than 'lib'
11707 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11708 ;;
11709 esac
11710 dynamic_linker='Win32 ld.exe'
11711 ;;
11712
11713 *,cl* | *,icl*)
11714 # Native MSVC or ICC
11715 libname_spec='$name'
11716 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11717 library_names_spec='$libname.dll.lib'
11718
11719 case $build_os in
11720 mingw*)
11721 sys_lib_search_path_spec=
11722 lt_save_ifs=$IFS
11723 IFS=';'
11724 for lt_path in $LIB
11725 do
11726 IFS=$lt_save_ifs
11727 # Let DOS variable expansion print the short 8.3 style file name.
11728 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11729 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11730 done
11731 IFS=$lt_save_ifs
11732 # Convert to MSYS style.
11733 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11734 ;;
11735 cygwin*)
11736 # Convert to unix form, then to dos form, then back to unix form
11737 # but this time dos style (no spaces!) so that the unix form looks
11738 # like /cygdrive/c/PROGRA~1:/cygdr...
11739 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11740 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11741 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11742 ;;
11743 *)
11744 sys_lib_search_path_spec=$LIB
11745 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11746 # It is most probably a Windows format PATH.
11747 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11748 else
11749 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11750 fi
11751 # FIXME: find the short name or the path components, as spaces are
11752 # common. (e.g. "Program Files" -> "PROGRA~1")
11753 ;;
11754 esac
11755
11756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11757 postinstall_cmds='base_file=`basename \$file`~
11758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11759 dldir=$destdir/`dirname \$dlpath`~
11760 test -d \$dldir || mkdir -p \$dldir~
11761 $install_prog $dir/$dlname \$dldir/$dlname'
11762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11763 dlpath=$dir/\$dldll~
11764 $RM \$dlpath'
11765 shlibpath_overrides_runpath=yes
11766 dynamic_linker='Win32 link.exe'
11767 ;;
11768
11769 *)
11770 # Assume MSVC and ICC wrapper
11771 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11772 dynamic_linker='Win32 ld.exe'
11773 ;;
11774 esac
11775 # FIXME: first we should search . and the directory the executable is in
11776 shlibpath_var=PATH
11777 ;;
11778
11779 darwin* | rhapsody*)
11780 dynamic_linker="$host_os dyld"
11781 version_type=darwin
11782 need_lib_prefix=no
11783 need_version=no
11784 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11785 soname_spec='$libname$release$major$shared_ext'
11786 shlibpath_overrides_runpath=yes
11787 shlibpath_var=DYLD_LIBRARY_PATH
11788 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11789
11790 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11791 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11792 ;;
11793
11794 dgux*)
11795 version_type=linux # correct to gnu/linux during the next big refactor
11796 need_lib_prefix=no
11797 need_version=no
11798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11799 soname_spec='$libname$release$shared_ext$major'
11800 shlibpath_var=LD_LIBRARY_PATH
11801 ;;
11802
11803 freebsd* | dragonfly* | midnightbsd*)
11804 # DragonFly does not have aout. When/if they implement a new
11805 # versioning mechanism, adjust this.
11806 if test -x /usr/bin/objformat; then
11807 objformat=`/usr/bin/objformat`
11808 else
11809 case $host_os in
11810 freebsd[23].*) objformat=aout ;;
11811 *) objformat=elf ;;
11812 esac
11813 fi
11814 version_type=freebsd-$objformat
11815 case $version_type in
11816 freebsd-elf*)
11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11818 soname_spec='$libname$release$shared_ext$major'
11819 need_version=no
11820 need_lib_prefix=no
11821 ;;
11822 freebsd-*)
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11824 need_version=yes
11825 ;;
11826 esac
11827 shlibpath_var=LD_LIBRARY_PATH
11828 case $host_os in
11829 freebsd2.*)
11830 shlibpath_overrides_runpath=yes
11831 ;;
11832 freebsd3.[01]* | freebsdelf3.[01]*)
11833 shlibpath_overrides_runpath=yes
11834 hardcode_into_libs=yes
11835 ;;
11836 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11837 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11838 shlibpath_overrides_runpath=no
11839 hardcode_into_libs=yes
11840 ;;
11841 *) # from 4.6 on, and DragonFly
11842 shlibpath_overrides_runpath=yes
11843 hardcode_into_libs=yes
11844 ;;
11845 esac
11846 ;;
11847
11848 haiku*)
11849 version_type=linux # correct to gnu/linux during the next big refactor
11850 need_lib_prefix=no
11851 need_version=no
11852 dynamic_linker="$host_os runtime_loader"
11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11854 soname_spec='$libname$release$shared_ext$major'
11855 shlibpath_var=LIBRARY_PATH
11856 shlibpath_overrides_runpath=no
11857 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11858 hardcode_into_libs=yes
11859 ;;
11860
11861 hpux9* | hpux10* | hpux11*)
11862 # Give a soname corresponding to the major version so that dld.sl refuses to
11863 # link against other versions.
11864 version_type=sunos
11865 need_lib_prefix=no
11866 need_version=no
11867 case $host_cpu in
11868 ia64*)
11869 shrext_cmds='.so'
11870 hardcode_into_libs=yes
11871 dynamic_linker="$host_os dld.so"
11872 shlibpath_var=LD_LIBRARY_PATH
11873 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11875 soname_spec='$libname$release$shared_ext$major'
11876 if test 32 = "$HPUX_IA64_MODE"; then
11877 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11878 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11879 else
11880 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11881 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11882 fi
11883 ;;
11884 hppa*64*)
11885 shrext_cmds='.sl'
11886 hardcode_into_libs=yes
11887 dynamic_linker="$host_os dld.sl"
11888 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11891 soname_spec='$libname$release$shared_ext$major'
11892 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11893 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11894 ;;
11895 *)
11896 shrext_cmds='.sl'
11897 dynamic_linker="$host_os dld.sl"
11898 shlibpath_var=SHLIB_PATH
11899 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11901 soname_spec='$libname$release$shared_ext$major'
11902 ;;
11903 esac
11904 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11905 postinstall_cmds='chmod 555 $lib'
11906 # or fails outright, so override atomically:
11907 install_override_mode=555
11908 ;;
11909
11910 interix[3-9]*)
11911 version_type=linux # correct to gnu/linux during the next big refactor
11912 need_lib_prefix=no
11913 need_version=no
11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11915 soname_spec='$libname$release$shared_ext$major'
11916 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 shlibpath_overrides_runpath=no
11919 hardcode_into_libs=yes
11920 ;;
11921
11922 irix5* | irix6* | nonstopux*)
11923 case $host_os in
11924 nonstopux*) version_type=nonstopux ;;
11925 *)
11926 if test yes = "$lt_cv_prog_gnu_ld"; then
11927 version_type=linux # correct to gnu/linux during the next big refactor
11928 else
11929 version_type=irix
11930 fi ;;
11931 esac
11932 need_lib_prefix=no
11933 need_version=no
11934 soname_spec='$libname$release$shared_ext$major'
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11936 case $host_os in
11937 irix5* | nonstopux*)
11938 libsuff= shlibsuff=
11939 ;;
11940 *)
11941 case $LD in # libtool.m4 will add one of these switches to LD
11942 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11943 libsuff= shlibsuff= libmagic=32-bit;;
11944 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11945 libsuff=32 shlibsuff=N32 libmagic=N32;;
11946 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11947 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11948 *) libsuff= shlibsuff= libmagic=never-match;;
11949 esac
11950 ;;
11951 esac
11952 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11953 shlibpath_overrides_runpath=no
11954 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11955 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11956 hardcode_into_libs=yes
11957 ;;
11958
11959 # No shared lib support for Linux oldld, aout, or coff.
11960 linux*oldld* | linux*aout* | linux*coff*)
11961 dynamic_linker=no
11962 ;;
11963
11964 linux*android*)
11965 version_type=none # Android doesn't support versioned libraries.
11966 need_lib_prefix=no
11967 need_version=no
11968 library_names_spec='$libname$release$shared_ext'
11969 soname_spec='$libname$release$shared_ext'
11970 finish_cmds=
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=yes
11973
11974 # This implies no fast_install, which is unacceptable.
11975 # Some rework will be needed to allow for fast_install
11976 # before this can be enabled.
11977 hardcode_into_libs=yes
11978
11979 dynamic_linker='Android linker'
11980 # Don't embed -rpath directories since the linker doesn't support them.
11981 hardcode_libdir_flag_spec='-L$libdir'
11982 ;;
11983
11984 # This must be glibc/ELF.
11985 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11986 version_type=linux # correct to gnu/linux during the next big refactor
11987 need_lib_prefix=no
11988 need_version=no
11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11990 soname_spec='$libname$release$shared_ext$major'
11991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=no
11994
11995 # Some binutils ld are patched to set DT_RUNPATH
11996 if test ${lt_cv_shlibpath_overrides_runpath+y}
11997 then :
11998 printf %s "(cached) " >&6
11999 else $as_nop
12000 lt_cv_shlibpath_overrides_runpath=no
12001 save_LDFLAGS=$LDFLAGS
12002 save_libdir=$libdir
12003 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12004 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007
12008 int
12009 main (void)
12010 {
12011
12012 ;
12013 return 0;
12014 }
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"
12017 then :
12018 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12019 then :
12020 lt_cv_shlibpath_overrides_runpath=yes
12021 fi
12022 fi
12023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LDFLAGS=$save_LDFLAGS
12026 libdir=$save_libdir
12027
12028 fi
12029
12030 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12031
12032 # This implies no fast_install, which is unacceptable.
12033 # Some rework will be needed to allow for fast_install
12034 # before this can be enabled.
12035 hardcode_into_libs=yes
12036
12037 # Ideally, we could use ldconfig to report *all* directores which are
12038 # searched for libraries, however this is still not possible. Aside from not
12039 # being certain /sbin/ldconfig is available, command
12040 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12041 # even though it is searched at run-time. Try to do the best guess by
12042 # appending ld.so.conf contents (and includes) to the search path.
12043 if test -f /etc/ld.so.conf; then
12044 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' ' '`
12045 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12046 fi
12047
12048 # We used to test for /lib/ld.so.1 and disable shared libraries on
12049 # powerpc, because MkLinux only supported shared libraries with the
12050 # GNU dynamic linker. Since this was broken with cross compilers,
12051 # most powerpc-linux boxes support dynamic linking these days and
12052 # people can always --disable-shared, the test was removed, and we
12053 # assume the GNU/Linux dynamic linker is in use.
12054 dynamic_linker='GNU/Linux ld.so'
12055 ;;
12056
12057 netbsdelf*-gnu)
12058 version_type=linux
12059 need_lib_prefix=no
12060 need_version=no
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12062 soname_spec='${libname}${release}${shared_ext}$major'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=no
12065 hardcode_into_libs=yes
12066 dynamic_linker='NetBSD ld.elf_so'
12067 ;;
12068
12069 netbsd*)
12070 version_type=sunos
12071 need_lib_prefix=no
12072 need_version=no
12073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12074 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12076 dynamic_linker='NetBSD (a.out) ld.so'
12077 else
12078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12079 soname_spec='$libname$release$shared_ext$major'
12080 dynamic_linker='NetBSD ld.elf_so'
12081 fi
12082 shlibpath_var=LD_LIBRARY_PATH
12083 shlibpath_overrides_runpath=yes
12084 hardcode_into_libs=yes
12085 ;;
12086
12087 newsos6)
12088 version_type=linux # correct to gnu/linux during the next big refactor
12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 shlibpath_overrides_runpath=yes
12092 ;;
12093
12094 *nto* | *qnx*)
12095 version_type=qnx
12096 need_lib_prefix=no
12097 need_version=no
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12099 soname_spec='$libname$release$shared_ext$major'
12100 shlibpath_var=LD_LIBRARY_PATH
12101 shlibpath_overrides_runpath=no
12102 hardcode_into_libs=yes
12103 dynamic_linker='ldqnx.so'
12104 ;;
12105
12106 openbsd* | bitrig*)
12107 version_type=sunos
12108 sys_lib_dlsearch_path_spec=/usr/lib
12109 need_lib_prefix=no
12110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12111 need_version=no
12112 else
12113 need_version=yes
12114 fi
12115 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12117 shlibpath_var=LD_LIBRARY_PATH
12118 shlibpath_overrides_runpath=yes
12119 ;;
12120
12121 os2*)
12122 libname_spec='$name'
12123 version_type=windows
12124 shrext_cmds=.dll
12125 need_version=no
12126 need_lib_prefix=no
12127 # OS/2 can only load a DLL with a base name of 8 characters or less.
12128 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12129 v=$($ECHO $release$versuffix | tr -d .-);
12130 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12131 $ECHO $n$v`$shared_ext'
12132 library_names_spec='${libname}_dll.$libext'
12133 dynamic_linker='OS/2 ld.exe'
12134 shlibpath_var=BEGINLIBPATH
12135 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12137 postinstall_cmds='base_file=`basename \$file`~
12138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12139 dldir=$destdir/`dirname \$dlpath`~
12140 test -d \$dldir || mkdir -p \$dldir~
12141 $install_prog $dir/$dlname \$dldir/$dlname~
12142 chmod a+x \$dldir/$dlname~
12143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12145 fi'
12146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12147 dlpath=$dir/\$dldll~
12148 $RM \$dlpath'
12149 ;;
12150
12151 osf3* | osf4* | osf5*)
12152 version_type=osf
12153 need_lib_prefix=no
12154 need_version=no
12155 soname_spec='$libname$release$shared_ext$major'
12156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12157 shlibpath_var=LD_LIBRARY_PATH
12158 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12160 ;;
12161
12162 rdos*)
12163 dynamic_linker=no
12164 ;;
12165
12166 solaris*)
12167 version_type=linux # correct to gnu/linux during the next big refactor
12168 need_lib_prefix=no
12169 need_version=no
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12171 soname_spec='$libname$release$shared_ext$major'
12172 shlibpath_var=LD_LIBRARY_PATH
12173 shlibpath_overrides_runpath=yes
12174 hardcode_into_libs=yes
12175 # ldd complains unless libraries are executable
12176 postinstall_cmds='chmod +x $lib'
12177 ;;
12178
12179 sunos4*)
12180 version_type=sunos
12181 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12182 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12183 shlibpath_var=LD_LIBRARY_PATH
12184 shlibpath_overrides_runpath=yes
12185 if test yes = "$with_gnu_ld"; then
12186 need_lib_prefix=no
12187 fi
12188 need_version=yes
12189 ;;
12190
12191 sysv4 | sysv4.3*)
12192 version_type=linux # correct to gnu/linux during the next big refactor
12193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12194 soname_spec='$libname$release$shared_ext$major'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 case $host_vendor in
12197 sni)
12198 shlibpath_overrides_runpath=no
12199 need_lib_prefix=no
12200 runpath_var=LD_RUN_PATH
12201 ;;
12202 siemens)
12203 need_lib_prefix=no
12204 ;;
12205 motorola)
12206 need_lib_prefix=no
12207 need_version=no
12208 shlibpath_overrides_runpath=no
12209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12210 ;;
12211 esac
12212 ;;
12213
12214 sysv4*MP*)
12215 if test -d /usr/nec; then
12216 version_type=linux # correct to gnu/linux during the next big refactor
12217 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12218 soname_spec='$libname$shared_ext.$major'
12219 shlibpath_var=LD_LIBRARY_PATH
12220 fi
12221 ;;
12222
12223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12224 version_type=sco
12225 need_lib_prefix=no
12226 need_version=no
12227 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12228 soname_spec='$libname$release$shared_ext$major'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 shlibpath_overrides_runpath=yes
12231 hardcode_into_libs=yes
12232 if test yes = "$with_gnu_ld"; then
12233 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12234 else
12235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12236 case $host_os in
12237 sco3.2v5*)
12238 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12239 ;;
12240 esac
12241 fi
12242 sys_lib_dlsearch_path_spec='/usr/lib'
12243 ;;
12244
12245 tpf*)
12246 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12247 version_type=linux # correct to gnu/linux during the next big refactor
12248 need_lib_prefix=no
12249 need_version=no
12250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12251 shlibpath_var=LD_LIBRARY_PATH
12252 shlibpath_overrides_runpath=no
12253 hardcode_into_libs=yes
12254 ;;
12255
12256 uts4*)
12257 version_type=linux # correct to gnu/linux during the next big refactor
12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12259 soname_spec='$libname$release$shared_ext$major'
12260 shlibpath_var=LD_LIBRARY_PATH
12261 ;;
12262
12263 *)
12264 dynamic_linker=no
12265 ;;
12266 esac
12267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12268 printf "%s\n" "$dynamic_linker" >&6; }
12269 test no = "$dynamic_linker" && can_build_shared=no
12270
12271 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12272 if test yes = "$GCC"; then
12273 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12274 fi
12275
12276 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12277 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12278 fi
12279
12280 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12281 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12282 fi
12283
12284 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12285 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12286
12287 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12288 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12289
12290 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12291 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12390 printf %s "checking how to hardcode library paths into programs... " >&6; }
12391 hardcode_action=
12392 if test -n "$hardcode_libdir_flag_spec" ||
12393 test -n "$runpath_var" ||
12394 test yes = "$hardcode_automatic"; then
12395
12396 # We can hardcode non-existent directories.
12397 if test no != "$hardcode_direct" &&
12398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12399 # have to relink, otherwise we might link with an installed library
12400 # when we should be linking with a yet-to-be-installed one
12401 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12402 test no != "$hardcode_minus_L"; then
12403 # Linking always hardcodes the temporary library directory.
12404 hardcode_action=relink
12405 else
12406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12407 hardcode_action=immediate
12408 fi
12409 else
12410 # We cannot hardcode anything, or else we can only hardcode existing
12411 # directories.
12412 hardcode_action=unsupported
12413 fi
12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12415 printf "%s\n" "$hardcode_action" >&6; }
12416
12417 if test relink = "$hardcode_action" ||
12418 test yes = "$inherit_rpath"; then
12419 # Fast installation is not supported
12420 enable_fast_install=no
12421 elif test yes = "$shlibpath_overrides_runpath" ||
12422 test no = "$enable_shared"; then
12423 # Fast installation is not necessary
12424 enable_fast_install=needless
12425 fi
12426
12427
12428
12429
12430
12431
12432 if test yes != "$enable_dlopen"; then
12433 enable_dlopen=unknown
12434 enable_dlopen_self=unknown
12435 enable_dlopen_self_static=unknown
12436 else
12437 lt_cv_dlopen=no
12438 lt_cv_dlopen_libs=
12439
12440 case $host_os in
12441 beos*)
12442 lt_cv_dlopen=load_add_on
12443 lt_cv_dlopen_libs=
12444 lt_cv_dlopen_self=yes
12445 ;;
12446
12447 mingw* | pw32* | cegcc*)
12448 lt_cv_dlopen=LoadLibrary
12449 lt_cv_dlopen_libs=
12450 ;;
12451
12452 cygwin*)
12453 lt_cv_dlopen=dlopen
12454 lt_cv_dlopen_libs=
12455 ;;
12456
12457 darwin*)
12458 # if libdl is installed we need to link against it
12459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12460 printf %s "checking for dlopen in -ldl... " >&6; }
12461 if test ${ac_cv_lib_dl_dlopen+y}
12462 then :
12463 printf %s "(cached) " >&6
12464 else $as_nop
12465 ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-ldl $LIBS"
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468 /* end confdefs.h. */
12469
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12473 char dlopen ();
12474 int
12475 main (void)
12476 {
12477 return dlopen ();
12478 ;
12479 return 0;
12480 }
12481 _ACEOF
12482 if ac_fn_c_try_link "$LINENO"
12483 then :
12484 ac_cv_lib_dl_dlopen=yes
12485 else $as_nop
12486 ac_cv_lib_dl_dlopen=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12489 conftest$ac_exeext conftest.$ac_ext
12490 LIBS=$ac_check_lib_save_LIBS
12491 fi
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12493 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12494 if test "x$ac_cv_lib_dl_dlopen" = xyes
12495 then :
12496 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12497 else $as_nop
12498
12499 lt_cv_dlopen=dyld
12500 lt_cv_dlopen_libs=
12501 lt_cv_dlopen_self=yes
12502
12503 fi
12504
12505 ;;
12506
12507 tpf*)
12508 # Don't try to run any link tests for TPF. We know it's impossible
12509 # because TPF is a cross-compiler, and we know how we open DSOs.
12510 lt_cv_dlopen=dlopen
12511 lt_cv_dlopen_libs=
12512 lt_cv_dlopen_self=no
12513 ;;
12514
12515 *)
12516 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12517 if test "x$ac_cv_func_shl_load" = xyes
12518 then :
12519 lt_cv_dlopen=shl_load
12520 else $as_nop
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12522 printf %s "checking for shl_load in -ldld... " >&6; }
12523 if test ${ac_cv_lib_dld_shl_load+y}
12524 then :
12525 printf %s "(cached) " >&6
12526 else $as_nop
12527 ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-ldld $LIBS"
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531
12532 /* Override any GCC internal prototype to avoid an error.
12533 Use char because int might match the return type of a GCC
12534 builtin and then its argument prototype would still apply. */
12535 char shl_load ();
12536 int
12537 main (void)
12538 {
12539 return shl_load ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"
12545 then :
12546 ac_cv_lib_dld_shl_load=yes
12547 else $as_nop
12548 ac_cv_lib_dld_shl_load=no
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12551 conftest$ac_exeext conftest.$ac_ext
12552 LIBS=$ac_check_lib_save_LIBS
12553 fi
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12555 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12556 if test "x$ac_cv_lib_dld_shl_load" = xyes
12557 then :
12558 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12559 else $as_nop
12560 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12561 if test "x$ac_cv_func_dlopen" = xyes
12562 then :
12563 lt_cv_dlopen=dlopen
12564 else $as_nop
12565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12566 printf %s "checking for dlopen in -ldl... " >&6; }
12567 if test ${ac_cv_lib_dl_dlopen+y}
12568 then :
12569 printf %s "(cached) " >&6
12570 else $as_nop
12571 ac_check_lib_save_LIBS=$LIBS
12572 LIBS="-ldl $LIBS"
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575
12576 /* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12579 char dlopen ();
12580 int
12581 main (void)
12582 {
12583 return dlopen ();
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"
12589 then :
12590 ac_cv_lib_dl_dlopen=yes
12591 else $as_nop
12592 ac_cv_lib_dl_dlopen=no
12593 fi
12594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12595 conftest$ac_exeext conftest.$ac_ext
12596 LIBS=$ac_check_lib_save_LIBS
12597 fi
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12599 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12600 if test "x$ac_cv_lib_dl_dlopen" = xyes
12601 then :
12602 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12603 else $as_nop
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12605 printf %s "checking for dlopen in -lsvld... " >&6; }
12606 if test ${ac_cv_lib_svld_dlopen+y}
12607 then :
12608 printf %s "(cached) " >&6
12609 else $as_nop
12610 ac_check_lib_save_LIBS=$LIBS
12611 LIBS="-lsvld $LIBS"
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614
12615 /* Override any GCC internal prototype to avoid an error.
12616 Use char because int might match the return type of a GCC
12617 builtin and then its argument prototype would still apply. */
12618 char dlopen ();
12619 int
12620 main (void)
12621 {
12622 return dlopen ();
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"
12628 then :
12629 ac_cv_lib_svld_dlopen=yes
12630 else $as_nop
12631 ac_cv_lib_svld_dlopen=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12634 conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12636 fi
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12638 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12639 if test "x$ac_cv_lib_svld_dlopen" = xyes
12640 then :
12641 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12642 else $as_nop
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12644 printf %s "checking for dld_link in -ldld... " >&6; }
12645 if test ${ac_cv_lib_dld_dld_link+y}
12646 then :
12647 printf %s "(cached) " >&6
12648 else $as_nop
12649 ac_check_lib_save_LIBS=$LIBS
12650 LIBS="-ldld $LIBS"
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653
12654 /* Override any GCC internal prototype to avoid an error.
12655 Use char because int might match the return type of a GCC
12656 builtin and then its argument prototype would still apply. */
12657 char dld_link ();
12658 int
12659 main (void)
12660 {
12661 return dld_link ();
12662 ;
12663 return 0;
12664 }
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"
12667 then :
12668 ac_cv_lib_dld_dld_link=yes
12669 else $as_nop
12670 ac_cv_lib_dld_dld_link=no
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12675 fi
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12677 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12678 if test "x$ac_cv_lib_dld_dld_link" = xyes
12679 then :
12680 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12681 fi
12682
12683
12684 fi
12685
12686
12687 fi
12688
12689
12690 fi
12691
12692
12693 fi
12694
12695
12696 fi
12697
12698 ;;
12699 esac
12700
12701 if test no = "$lt_cv_dlopen"; then
12702 enable_dlopen=no
12703 else
12704 enable_dlopen=yes
12705 fi
12706
12707 case $lt_cv_dlopen in
12708 dlopen)
12709 save_CPPFLAGS=$CPPFLAGS
12710 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12711
12712 save_LDFLAGS=$LDFLAGS
12713 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12714
12715 save_LIBS=$LIBS
12716 LIBS="$lt_cv_dlopen_libs $LIBS"
12717
12718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12719 printf %s "checking whether a program can dlopen itself... " >&6; }
12720 if test ${lt_cv_dlopen_self+y}
12721 then :
12722 printf %s "(cached) " >&6
12723 else $as_nop
12724 if test yes = "$cross_compiling"; then :
12725 lt_cv_dlopen_self=cross
12726 else
12727 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12728 lt_status=$lt_dlunknown
12729 cat > conftest.$ac_ext <<_LT_EOF
12730 #line $LINENO "configure"
12731 #include "confdefs.h"
12732
12733 #if HAVE_DLFCN_H
12734 #include <dlfcn.h>
12735 #endif
12736
12737 #include <stdio.h>
12738
12739 #ifdef RTLD_GLOBAL
12740 # define LT_DLGLOBAL RTLD_GLOBAL
12741 #else
12742 # ifdef DL_GLOBAL
12743 # define LT_DLGLOBAL DL_GLOBAL
12744 # else
12745 # define LT_DLGLOBAL 0
12746 # endif
12747 #endif
12748
12749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12750 find out it does not work in some platform. */
12751 #ifndef LT_DLLAZY_OR_NOW
12752 # ifdef RTLD_LAZY
12753 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12754 # else
12755 # ifdef DL_LAZY
12756 # define LT_DLLAZY_OR_NOW DL_LAZY
12757 # else
12758 # ifdef RTLD_NOW
12759 # define LT_DLLAZY_OR_NOW RTLD_NOW
12760 # else
12761 # ifdef DL_NOW
12762 # define LT_DLLAZY_OR_NOW DL_NOW
12763 # else
12764 # define LT_DLLAZY_OR_NOW 0
12765 # endif
12766 # endif
12767 # endif
12768 # endif
12769 #endif
12770
12771 /* When -fvisibility=hidden is used, assume the code has been annotated
12772 correspondingly for the symbols needed. */
12773 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12774 int fnord () __attribute__((visibility("default")));
12775 #endif
12776
12777 int fnord () { return 42; }
12778 int main ()
12779 {
12780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12781 int status = $lt_dlunknown;
12782
12783 if (self)
12784 {
12785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12786 else
12787 {
12788 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12789 else puts (dlerror ());
12790 }
12791 /* dlclose (self); */
12792 }
12793 else
12794 puts (dlerror ());
12795
12796 return status;
12797 }
12798 _LT_EOF
12799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12800 (eval $ac_link) 2>&5
12801 ac_status=$?
12802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12803 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12804 (./conftest; exit; ) >&5 2>/dev/null
12805 lt_status=$?
12806 case x$lt_status in
12807 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12808 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12809 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12810 esac
12811 else :
12812 # compilation failed
12813 lt_cv_dlopen_self=no
12814 fi
12815 fi
12816 rm -fr conftest*
12817
12818
12819 fi
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12821 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12822
12823 if test yes = "$lt_cv_dlopen_self"; then
12824 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12826 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12827 if test ${lt_cv_dlopen_self_static+y}
12828 then :
12829 printf %s "(cached) " >&6
12830 else $as_nop
12831 if test yes = "$cross_compiling"; then :
12832 lt_cv_dlopen_self_static=cross
12833 else
12834 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12835 lt_status=$lt_dlunknown
12836 cat > conftest.$ac_ext <<_LT_EOF
12837 #line $LINENO "configure"
12838 #include "confdefs.h"
12839
12840 #if HAVE_DLFCN_H
12841 #include <dlfcn.h>
12842 #endif
12843
12844 #include <stdio.h>
12845
12846 #ifdef RTLD_GLOBAL
12847 # define LT_DLGLOBAL RTLD_GLOBAL
12848 #else
12849 # ifdef DL_GLOBAL
12850 # define LT_DLGLOBAL DL_GLOBAL
12851 # else
12852 # define LT_DLGLOBAL 0
12853 # endif
12854 #endif
12855
12856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12857 find out it does not work in some platform. */
12858 #ifndef LT_DLLAZY_OR_NOW
12859 # ifdef RTLD_LAZY
12860 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12861 # else
12862 # ifdef DL_LAZY
12863 # define LT_DLLAZY_OR_NOW DL_LAZY
12864 # else
12865 # ifdef RTLD_NOW
12866 # define LT_DLLAZY_OR_NOW RTLD_NOW
12867 # else
12868 # ifdef DL_NOW
12869 # define LT_DLLAZY_OR_NOW DL_NOW
12870 # else
12871 # define LT_DLLAZY_OR_NOW 0
12872 # endif
12873 # endif
12874 # endif
12875 # endif
12876 #endif
12877
12878 /* When -fvisibility=hidden is used, assume the code has been annotated
12879 correspondingly for the symbols needed. */
12880 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12881 int fnord () __attribute__((visibility("default")));
12882 #endif
12883
12884 int fnord () { return 42; }
12885 int main ()
12886 {
12887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12888 int status = $lt_dlunknown;
12889
12890 if (self)
12891 {
12892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12893 else
12894 {
12895 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896 else puts (dlerror ());
12897 }
12898 /* dlclose (self); */
12899 }
12900 else
12901 puts (dlerror ());
12902
12903 return status;
12904 }
12905 _LT_EOF
12906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12907 (eval $ac_link) 2>&5
12908 ac_status=$?
12909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12911 (./conftest; exit; ) >&5 2>/dev/null
12912 lt_status=$?
12913 case x$lt_status in
12914 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12915 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12916 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12917 esac
12918 else :
12919 # compilation failed
12920 lt_cv_dlopen_self_static=no
12921 fi
12922 fi
12923 rm -fr conftest*
12924
12925
12926 fi
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12928 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12929 fi
12930
12931 CPPFLAGS=$save_CPPFLAGS
12932 LDFLAGS=$save_LDFLAGS
12933 LIBS=$save_LIBS
12934 ;;
12935 esac
12936
12937 case $lt_cv_dlopen_self in
12938 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12939 *) enable_dlopen_self=unknown ;;
12940 esac
12941
12942 case $lt_cv_dlopen_self_static in
12943 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12944 *) enable_dlopen_self_static=unknown ;;
12945 esac
12946 fi
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964 striplib=
12965 old_striplib=
12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12967 printf %s "checking whether stripping libraries is possible... " >&6; }
12968 if test -z "$STRIP"; then
12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12970 printf "%s\n" "no" >&6; }
12971 else
12972 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12973 old_striplib="$STRIP --strip-debug"
12974 striplib="$STRIP --strip-unneeded"
12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 printf "%s\n" "yes" >&6; }
12977 else
12978 case $host_os in
12979 darwin*)
12980 # FIXME - insert some real tests, host_os isn't really good enough
12981 striplib="$STRIP -x"
12982 old_striplib="$STRIP -S"
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12984 printf "%s\n" "yes" >&6; }
12985 ;;
12986 freebsd*)
12987 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12988 old_striplib="$STRIP --strip-debug"
12989 striplib="$STRIP --strip-unneeded"
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12991 printf "%s\n" "yes" >&6; }
12992 else
12993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 printf "%s\n" "no" >&6; }
12995 fi
12996 ;;
12997 *)
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 printf "%s\n" "no" >&6; }
13000 ;;
13001 esac
13002 fi
13003 fi
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016 # Report what library types will actually be built
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13018 printf %s "checking if libtool supports shared libraries... " >&6; }
13019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13020 printf "%s\n" "$can_build_shared" >&6; }
13021
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13023 printf %s "checking whether to build shared libraries... " >&6; }
13024 test no = "$can_build_shared" && enable_shared=no
13025
13026 # On AIX, shared libraries and static libraries use the same namespace, and
13027 # are all built from PIC.
13028 case $host_os in
13029 aix3*)
13030 test yes = "$enable_shared" && enable_static=no
13031 if test -n "$RANLIB"; then
13032 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13033 postinstall_cmds='$RANLIB $lib'
13034 fi
13035 ;;
13036
13037 aix[4-9]*)
13038 if test ia64 != "$host_cpu"; then
13039 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13040 yes,aix,yes) ;; # shared object as lib.so file only
13041 yes,svr4,*) ;; # shared object as lib.so archive member only
13042 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13043 esac
13044 fi
13045 ;;
13046 esac
13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13048 printf "%s\n" "$enable_shared" >&6; }
13049
13050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13051 printf %s "checking whether to build static libraries... " >&6; }
13052 # Make sure either enable_shared or enable_static is yes.
13053 test yes = "$enable_shared" || enable_static=yes
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13055 printf "%s\n" "$enable_static" >&6; }
13056
13057
13058
13059
13060 fi
13061 ac_ext=c
13062 ac_cpp='$CPP $CPPFLAGS'
13063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13066
13067 CC=$lt_save_CC
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083 ac_config_commands="$ac_config_commands libtool"
13084
13085
13086
13087
13088 # Only expand once:
13089
13090
13091 LIBM=
13092 case $host in
13093 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13094 # These system don't have libm, or don't need it
13095 ;;
13096 *-ncr-sysv4.3*)
13097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13098 printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
13099 if test ${ac_cv_lib_mw__mwvalidcheckl+y}
13100 then :
13101 printf %s "(cached) " >&6
13102 else $as_nop
13103 ac_check_lib_save_LIBS=$LIBS
13104 LIBS="-lmw $LIBS"
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13107
13108 /* Override any GCC internal prototype to avoid an error.
13109 Use char because int might match the return type of a GCC
13110 builtin and then its argument prototype would still apply. */
13111 char _mwvalidcheckl ();
13112 int
13113 main (void)
13114 {
13115 return _mwvalidcheckl ();
13116 ;
13117 return 0;
13118 }
13119 _ACEOF
13120 if ac_fn_c_try_link "$LINENO"
13121 then :
13122 ac_cv_lib_mw__mwvalidcheckl=yes
13123 else $as_nop
13124 ac_cv_lib_mw__mwvalidcheckl=no
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13127 conftest$ac_exeext conftest.$ac_ext
13128 LIBS=$ac_check_lib_save_LIBS
13129 fi
13130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13131 printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13132 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
13133 then :
13134 LIBM=-lmw
13135 fi
13136
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13138 printf %s "checking for cos in -lm... " >&6; }
13139 if test ${ac_cv_lib_m_cos+y}
13140 then :
13141 printf %s "(cached) " >&6
13142 else $as_nop
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-lm $LIBS"
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13151 char cos ();
13152 int
13153 main (void)
13154 {
13155 return cos ();
13156 ;
13157 return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_link "$LINENO"
13161 then :
13162 ac_cv_lib_m_cos=yes
13163 else $as_nop
13164 ac_cv_lib_m_cos=no
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13171 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
13172 if test "x$ac_cv_lib_m_cos" = xyes
13173 then :
13174 LIBM="$LIBM -lm"
13175 fi
13176
13177 ;;
13178 *)
13179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13180 printf %s "checking for cos in -lm... " >&6; }
13181 if test ${ac_cv_lib_m_cos+y}
13182 then :
13183 printf %s "(cached) " >&6
13184 else $as_nop
13185 ac_check_lib_save_LIBS=$LIBS
13186 LIBS="-lm $LIBS"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13193 char cos ();
13194 int
13195 main (void)
13196 {
13197 return cos ();
13198 ;
13199 return 0;
13200 }
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"
13203 then :
13204 ac_cv_lib_m_cos=yes
13205 else $as_nop
13206 ac_cv_lib_m_cos=no
13207 fi
13208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13209 conftest$ac_exeext conftest.$ac_ext
13210 LIBS=$ac_check_lib_save_LIBS
13211 fi
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13213 printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
13214 if test "x$ac_cv_lib_m_cos" = xyes
13215 then :
13216 LIBM=-lm
13217 fi
13218
13219 ;;
13220 esac
13221
13222
13223
13224
13225
13226 # Check whether --with-c14n was given.
13227 if test ${with_c14n+y}
13228 then :
13229 withval=$with_c14n;
13230 fi
13231
13232
13233 # Check whether --with-catalog was given.
13234 if test ${with_catalog+y}
13235 then :
13236 withval=$with_catalog;
13237 fi
13238
13239
13240 # Check whether --with-debug was given.
13241 if test ${with_debug+y}
13242 then :
13243 withval=$with_debug;
13244 fi
13245
13246
13247 # Check whether --with-docs was given.
13248 if test ${with_docs+y}
13249 then :
13250 withval=$with_docs;
13251 fi
13252
13253
13254 # Check whether --with-history was given.
13255 if test ${with_history+y}
13256 then :
13257 withval=$with_history;
13258 fi
13259
13260
13261 # Check whether --with-readline was given.
13262 if test ${with_readline+y}
13263 then :
13264 withval=$with_readline;
13265 fi
13266
13267
13268 # Check whether --with-html was given.
13269 if test ${with_html+y}
13270 then :
13271 withval=$with_html;
13272 fi
13273
13274
13275 # Check whether --with-http was given.
13276 if test ${with_http+y}
13277 then :
13278 withval=$with_http;
13279 fi
13280
13281
13282 # Check whether --with-iconv was given.
13283 if test ${with_iconv+y}
13284 then :
13285 withval=$with_iconv;
13286 fi
13287
13288
13289 # Check whether --with-icu was given.
13290 if test ${with_icu+y}
13291 then :
13292 withval=$with_icu;
13293 fi
13294
13295
13296 # Check whether --with-iso8859x was given.
13297 if test ${with_iso8859x+y}
13298 then :
13299 withval=$with_iso8859x;
13300 fi
13301
13302
13303 # Check whether --with-modules was given.
13304 if test ${with_modules+y}
13305 then :
13306 withval=$with_modules;
13307 fi
13308
13309
13310 # Check whether --with-output was given.
13311 if test ${with_output+y}
13312 then :
13313 withval=$with_output;
13314 fi
13315
13316
13317 # Check whether --with-pattern was given.
13318 if test ${with_pattern+y}
13319 then :
13320 withval=$with_pattern;
13321 fi
13322
13323
13324 # Check whether --with-push was given.
13325 if test ${with_push+y}
13326 then :
13327 withval=$with_push;
13328 fi
13329
13330
13331 # Check whether --with-python was given.
13332 if test ${with_python+y}
13333 then :
13334 withval=$with_python;
13335 fi
13336
13337
13338 # Check whether --with-reader was given.
13339 if test ${with_reader+y}
13340 then :
13341 withval=$with_reader;
13342 fi
13343
13344
13345 # Check whether --with-regexps was given.
13346 if test ${with_regexps+y}
13347 then :
13348 withval=$with_regexps;
13349 fi
13350
13351
13352 # Check whether --with-relaxng was given.
13353 if test ${with_relaxng+y}
13354 then :
13355 withval=$with_relaxng;
13356 fi
13357
13358
13359 # Check whether --with-sax1 was given.
13360 if test ${with_sax1+y}
13361 then :
13362 withval=$with_sax1;
13363 fi
13364
13365
13366 # Check whether --with-schemas was given.
13367 if test ${with_schemas+y}
13368 then :
13369 withval=$with_schemas;
13370 fi
13371
13372
13373 # Check whether --with-schematron was given.
13374 if test ${with_schematron+y}
13375 then :
13376 withval=$with_schematron;
13377 fi
13378
13379
13380 # Check whether --with-threads was given.
13381 if test ${with_threads+y}
13382 then :
13383 withval=$with_threads;
13384 fi
13385
13386
13387 # Check whether --with-thread-alloc was given.
13388 if test ${with_thread_alloc+y}
13389 then :
13390 withval=$with_thread_alloc;
13391 fi
13392
13393
13394 # Check whether --with-valid was given.
13395 if test ${with_valid+y}
13396 then :
13397 withval=$with_valid;
13398 fi
13399
13400
13401 # Check whether --with-writer was given.
13402 if test ${with_writer+y}
13403 then :
13404 withval=$with_writer;
13405 fi
13406
13407
13408 # Check whether --with-xinclude was given.
13409 if test ${with_xinclude+y}
13410 then :
13411 withval=$with_xinclude;
13412 fi
13413
13414
13415 # Check whether --with-xpath was given.
13416 if test ${with_xpath+y}
13417 then :
13418 withval=$with_xpath;
13419 fi
13420
13421
13422 # Check whether --with-xptr was given.
13423 if test ${with_xptr+y}
13424 then :
13425 withval=$with_xptr;
13426 fi
13427
13428
13429 # Check whether --with-zlib was given.
13430 if test ${with_zlib+y}
13431 then :
13432 withval=$with_zlib;
13433 fi
13434
13435
13436
13437 # Check whether --with-minimum was given.
13438 if test ${with_minimum+y}
13439 then :
13440 withval=$with_minimum;
13441 fi
13442
13443
13444 # Check whether --with-legacy was given.
13445 if test ${with_legacy+y}
13446 then :
13447 withval=$with_legacy;
13448 fi
13449
13450
13451
13452 # Check whether --with-tls was given.
13453 if test ${with_tls+y}
13454 then :
13455 withval=$with_tls;
13456 fi
13457
13458
13459 if test "$with_legacy" = "yes"; then
13460 if test "$with_schematron" = ""; then
13461 with_schematron=yes
13462 fi
13463 if test "$with_zlib" = ""; then
13464 with_zlib=yes
13465 fi
13466 fi
13467
13468 if test "$with_c14n" = "yes"; then
13469 if test "$with_output" = "no"; then
13470 echo WARNING: --with-c14n overrides --without-output
13471 fi
13472 with_output=yes
13473 if test "$with_xpath" = "no"; then
13474 echo WARNING: --with-c14n overrides --without-xpath
13475 fi
13476 with_xpath=yes
13477 fi
13478 if test "$with_relaxng" = "yes"; then
13479 if test "$with_regexps" = "no"; then
13480 echo WARNING: --with-relaxng overrides --without-regexps
13481 fi
13482 with_regexps=yes
13483 if test "$with_schemas" = "no"; then
13484 echo WARNING: --with-relaxng overrides --without-schemas
13485 fi
13486 with_schemas=yes
13487 fi
13488 if test "$with_schemas" = "yes"; then
13489 if test "$with_pattern" = "no"; then
13490 echo WARNING: --with-schemas overrides --without-pattern
13491 fi
13492 with_pattern=yes
13493 if test "$with_regexps" = "no"; then
13494 echo WARNING: --with-schemas overrides --without-regexps
13495 fi
13496 with_regexps=yes
13497 fi
13498 if test "$with_schematron" = "yes"; then
13499 if test "$with_pattern" = "no"; then
13500 echo WARNING: --with-schematron overrides --without-pattern
13501 fi
13502 with_pattern=yes
13503 if test "$with_xpath" = "no"; then
13504 echo WARNING: --with-schematron overrides --without-xpath
13505 fi
13506 with_xpath=yes
13507 fi
13508 if test "$with_reader" = "yes"; then
13509 if test "$with_push" = "no"; then
13510 echo WARNING: --with-reader overrides --without-push
13511 fi
13512 with_push=yes
13513 fi
13514 if test "$with_writer" = "yes"; then
13515 if test "$with_output" = "no"; then
13516 echo WARNING: --with-writer overrides --without-output
13517 fi
13518 with_output=yes
13519 if test "$with_push" = "no"; then
13520 echo WARNING: --with-writer overrides --without-push
13521 fi
13522 with_push=yes
13523 fi
13524 if test "$with_xptr" = "yes"; then
13525 if test "$with_xpath" = "no"; then
13526 echo WARNING: --with-xptr overrides --without-xpath
13527 fi
13528 with_xpath=yes
13529 fi
13530 if test "$with_history" = "yes"; then
13531 if test "$with_readline" = "no"; then
13532 echo WARNING: --with-history overrides --without-readline
13533 with_readline=yes
13534 fi
13535 if test "$with_readline" = ""; then
13536 with_readline=yes
13537 fi
13538 fi
13539
13540 if test "$with_minimum" = "yes"; then
13541 echo "Configuring for a minimal library"
13542 test "$with_c14n" = "" && with_c14n=no
13543 test "$with_catalog" = "" && with_catalog=no
13544 test "$with_debug" = "" && with_debug=no
13545 test "$with_history" = "" && with_history=no
13546 test "$with_html" = "" && with_html=no
13547 test "$with_http" = "" && with_http=no
13548 test "$with_iconv" = "" && with_iconv=no
13549 test "$with_iso8859x" = "" && with_iso8859x=no
13550 test "$with_output" = "" && with_output=no
13551 test "$with_pattern" = "" && with_pattern=no
13552 test "$with_push" = "" && with_push=no
13553 test "$with_python" = "" && with_python=no
13554 test "$with_reader" = "" && with_reader=no
13555 test "$with_readline" = "" && with_readline=no
13556 test "$with_regexps" = "" && with_regexps=no
13557 test "$with_relaxng" = "" && with_relaxng=no
13558 test "$with_sax1" = "" && with_sax1=no
13559 test "$with_schemas" = "" && with_schemas=no
13560 test "$with_schematron" = "" && with_schematron=no
13561 test "$with_threads" = "" && with_threads=no
13562 test "$with_thread_alloc" = "" && with_thread_alloc=no
13563 test "$with_valid" = "" && with_valid=no
13564 test "$with_writer" = "" && with_writer=no
13565 test "$with_xinclude" = "" && with_xinclude=no
13566 test "$with_xpath" = "" && with_xpath=no
13567 test "$with_xptr" = "" && with_xptr=no
13568 test "$with_zlib" = "" && with_zlib=no
13569 test "$with_modules" = "" && with_modules=no
13570 else
13571 if test "$with_output" = "no"; then
13572 with_c14n=no
13573 with_writer=no
13574 fi
13575 if test "$with_pattern" = "no"; then
13576 with_schemas=no
13577 with_schematron=no
13578 fi
13579 if test "$with_push" = "no"; then
13580 with_reader=no
13581 with_writer=no
13582 fi
13583 if test "$with_regexps" = "no"; then
13584 with_relaxng=no
13585 with_schemas=no
13586 fi
13587 if test "$with_schemas" = "no"; then
13588 with_relaxng=no
13589 fi
13590 if test "$with_xpath" = "no"; then
13591 with_c14n=no
13592 with_schematron=no
13593 with_xptr=no
13594 fi
13595 fi
13596
13597 XML_LIBDIR='-L${libdir}'
13598 XML_INCLUDEDIR='-I${includedir}/libxml2'
13599 XML_CFLAGS=""
13600 XML_STATIC_CFLAGS=""
13601 XML_PC_CFLAGS_PRIVATE=""
13602
13603 XML_PRIVATE_LIBS=
13604 XML_PRIVATE_CFLAGS=
13605 XML_PC_LIBS=
13606 XML_PC_REQUIRES=
13607
13608
13609
13610
13611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((destructor))" >&5
13612 printf %s "checking for __attribute__((destructor))... " >&6; }
13613 if test ${ax_cv_have_func_attribute_destructor+y}
13614 then :
13615 printf %s "(cached) " >&6
13616 else $as_nop
13617
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620
13621
13622 int foo( void ) __attribute__((destructor));
13623
13624 int
13625 main (void)
13626 {
13627
13628 ;
13629 return 0;
13630 }
13631
13632 _ACEOF
13633 if ac_fn_c_try_link "$LINENO"
13634 then :
13635 if grep -- -Wattributes conftest.err
13636 then :
13637 ax_cv_have_func_attribute_destructor=no
13638 else $as_nop
13639 ax_cv_have_func_attribute_destructor=yes
13640 fi
13641 else $as_nop
13642 ax_cv_have_func_attribute_destructor=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13645 conftest$ac_exeext conftest.$ac_ext
13646
13647 fi
13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_destructor" >&5
13649 printf "%s\n" "$ax_cv_have_func_attribute_destructor" >&6; }
13650
13651 if test yes = $ax_cv_have_func_attribute_destructor
13652 then :
13653
13654 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_DESTRUCTOR 1" >>confdefs.h
13655
13656 fi
13657
13658
13659
13660
13661 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13662 if test "x$ac_cv_header_stdint_h" = xyes
13663 then :
13664 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13665
13666 fi
13667
13668
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13670 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13671 if test ${ac_cv_c_undeclared_builtin_options+y}
13672 then :
13673 printf %s "(cached) " >&6
13674 else $as_nop
13675 ac_save_CFLAGS=$CFLAGS
13676 ac_cv_c_undeclared_builtin_options='cannot detect'
13677 for ac_arg in '' -fno-builtin; do
13678 CFLAGS="$ac_save_CFLAGS $ac_arg"
13679 # This test program should *not* compile successfully.
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682
13683 int
13684 main (void)
13685 {
13686 (void) strchr;
13687 ;
13688 return 0;
13689 }
13690 _ACEOF
13691 if ac_fn_c_try_compile "$LINENO"
13692 then :
13693
13694 else $as_nop
13695 # This test program should compile successfully.
13696 # No library function is consistently available on
13697 # freestanding implementations, so test against a dummy
13698 # declaration. Include always-available headers on the
13699 # off chance that they somehow elicit warnings.
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702 #include <float.h>
13703 #include <limits.h>
13704 #include <stdarg.h>
13705 #include <stddef.h>
13706 extern void ac_decl (int, char *);
13707
13708 int
13709 main (void)
13710 {
13711 (void) ac_decl (0, (char *) 0);
13712 (void) ac_decl;
13713
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_c_try_compile "$LINENO"
13719 then :
13720 if test x"$ac_arg" = x
13721 then :
13722 ac_cv_c_undeclared_builtin_options='none needed'
13723 else $as_nop
13724 ac_cv_c_undeclared_builtin_options=$ac_arg
13725 fi
13726 break
13727 fi
13728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13729 fi
13730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13731 done
13732 CFLAGS=$ac_save_CFLAGS
13733
13734 fi
13735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13736 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13737 case $ac_cv_c_undeclared_builtin_options in #(
13738 'cannot detect') :
13739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13740 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13741 as_fn_error $? "cannot make $CC report undeclared builtins
13742 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13743 'none needed') :
13744 ac_c_undeclared_builtin_options='' ;; #(
13745 *) :
13746 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13747 esac
13748
13749 ac_fn_check_decl "$LINENO" "getentropy" "ac_cv_have_decl_getentropy" "#include <sys/random.h>
13750 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13751 if test "x$ac_cv_have_decl_getentropy" = xyes
13752 then :
13753 ac_have_decl=1
13754 else $as_nop
13755 ac_have_decl=0
13756 fi
13757 printf "%s\n" "#define HAVE_DECL_GETENTROPY $ac_have_decl" >>confdefs.h
13758
13759 ac_fn_check_decl "$LINENO" "glob" "ac_cv_have_decl_glob" "#include <glob.h>
13760 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13761 if test "x$ac_cv_have_decl_glob" = xyes
13762 then :
13763 ac_have_decl=1
13764 else $as_nop
13765 ac_have_decl=0
13766 fi
13767 printf "%s\n" "#define HAVE_DECL_GLOB $ac_have_decl" >>confdefs.h
13768
13769 ac_fn_check_decl "$LINENO" "mmap" "ac_cv_have_decl_mmap" "#include <sys/mman.h>
13770 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13771 if test "x$ac_cv_have_decl_mmap" = xyes
13772 then :
13773 ac_have_decl=1
13774 else $as_nop
13775 ac_have_decl=0
13776 fi
13777 printf "%s\n" "#define HAVE_DECL_MMAP $ac_have_decl" >>confdefs.h
13778
13779
13780 if test "$ac_cv_have_decl_glob" = "yes"; then
13781 WITH_GLOB_TRUE=
13782 WITH_GLOB_FALSE='#'
13783 else
13784 WITH_GLOB_TRUE='#'
13785 WITH_GLOB_FALSE=
13786 fi
13787
13788
13789 if test "$with_tls" = "yes"; then
13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13791 /* end confdefs.h. */
13792
13793 _Thread_local int v;
13794 _ACEOF
13795 if ac_fn_c_try_compile "$LINENO"
13796 then :
13797
13798
13799 printf "%s\n" "#define XML_THREAD_LOCAL _Thread_local" >>confdefs.h
13800
13801 else $as_nop
13802
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h. */
13805
13806 __thread int v;
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"
13809 then :
13810
13811
13812 printf "%s\n" "#define XML_THREAD_LOCAL __thread" >>confdefs.h
13813
13814 else $as_nop
13815
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13818
13819 __declspec(thread) int v;
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"
13822 then :
13823
13824
13825 printf "%s\n" "#define XML_THREAD_LOCAL __declspec(thread)" >>confdefs.h
13826
13827 fi
13828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13829 fi
13830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13831 fi
13832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13833 fi
13834
13835 if test "${GCC}" != "yes" ; then
13836 case "${host}" in
13837 hppa*-*-hpux* )
13838 AM_CFLAGS="${AM_CFLAGS} -Wp,-H30000"
13839 ;;
13840 *-dec-osf* )
13841 AM_CFLAGS="${AM_CFLAGS} -ieee"
13842 ;;
13843 alpha*-*-linux* )
13844 AM_CFLAGS="${AM_CFLAGS} -ieee"
13845 ;;
13846 esac
13847 else
13848 # warnings we'd like to see
13849 AM_CFLAGS="${AM_CFLAGS} -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
13850 # warnings we'd like to suppress
13851 AM_CFLAGS="${AM_CFLAGS} -Wno-long-long -Wno-format-extra-args -Wno-array-bounds"
13852 case "${host}" in
13853 alpha*-*-linux* )
13854 AM_CFLAGS="${AM_CFLAGS} -mieee"
13855 ;;
13856 alpha*-*-osf* )
13857 AM_CFLAGS="${AM_CFLAGS} -mieee"
13858 ;;
13859 esac
13860 fi
13861 case ${host} in
13862 *-*-solaris*)
13863 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
13864 ;;
13865 *-*-cygwin* | *-*-mingw* | *-*-msys* )
13866 # If the host is Windows, and shared libraries are disabled, we
13867 # need to add -DLIBXML_STATIC to AM_CFLAGS in order for linking to
13868 # work properly (without it, xmlexports.h would force the use of
13869 # DLL imports, which obviously aren't present in a static
13870 # library).
13871 XML_STATIC_CFLAGS="-DLIBXML_STATIC"
13872 if test "x$enable_shared" = "xyes"; then
13873 XML_PC_CFLAGS_PRIVATE="
13874 Cflags.private:"
13875 else
13876 XML_CFLAGS="$XML_STATIC_CFLAGS"
13877 AM_CFLAGS="$AM_CFLAGS $XML_STATIC_CFLAGS"
13878 fi
13879 ;;
13880 esac
13881
13882
13883
13884 if test "$with_http" != "yes" ; then
13885 WITH_HTTP=0
13886 else
13887 echo Enabling ABI compatibility stubs for removed HTTP support
13888 WITH_HTTP=1
13889 fi
13890
13891 if test "$WITH_HTTP" = "1"; then
13892 WITH_HTTP_SOURCES_TRUE=
13893 WITH_HTTP_SOURCES_FALSE='#'
13894 else
13895 WITH_HTTP_SOURCES_TRUE='#'
13896 WITH_HTTP_SOURCES_FALSE=
13897 fi
13898
13899
13900 if test "$with_reader" = "no" ; then
13901 echo Disabling the xmlReader parsing interface
13902 WITH_READER=0
13903 else
13904 WITH_READER=1
13905 fi
13906
13907 if test "$WITH_READER" = "1"; then
13908 WITH_READER_SOURCES_TRUE=
13909 WITH_READER_SOURCES_FALSE='#'
13910 else
13911 WITH_READER_SOURCES_TRUE='#'
13912 WITH_READER_SOURCES_FALSE=
13913 fi
13914
13915
13916 if test "$with_writer" = "no" ; then
13917 echo Disabling the xmlWriter saving interface
13918 WITH_WRITER=0
13919 else
13920 WITH_WRITER=1
13921 fi
13922
13923 if test "$WITH_WRITER" = "1"; then
13924 WITH_WRITER_SOURCES_TRUE=
13925 WITH_WRITER_SOURCES_FALSE='#'
13926 else
13927 WITH_WRITER_SOURCES_TRUE='#'
13928 WITH_WRITER_SOURCES_FALSE=
13929 fi
13930
13931
13932 if test "$with_pattern" = "no" ; then
13933 echo Disabling the xmlPattern parsing interface
13934 WITH_PATTERN=0
13935 else
13936 WITH_PATTERN=1
13937 fi
13938
13939 if test "$WITH_PATTERN" = "1"; then
13940 WITH_PATTERN_SOURCES_TRUE=
13941 WITH_PATTERN_SOURCES_FALSE='#'
13942 else
13943 WITH_PATTERN_SOURCES_TRUE='#'
13944 WITH_PATTERN_SOURCES_FALSE=
13945 fi
13946
13947
13948 if test "$with_sax1" = "no" ; then
13949 echo Disabling the older SAX1 interface
13950 WITH_SAX1=0
13951 else
13952 WITH_SAX1=1
13953 fi
13954
13955 if test "$WITH_SAX1" = "1"; then
13956 WITH_SAX1_SOURCES_TRUE=
13957 WITH_SAX1_SOURCES_FALSE='#'
13958 else
13959 WITH_SAX1_SOURCES_TRUE='#'
13960 WITH_SAX1_SOURCES_FALSE=
13961 fi
13962
13963
13964 if test "$with_push" = "no" ; then
13965 echo Disabling the PUSH parser interfaces
13966 WITH_PUSH=0
13967 else
13968 WITH_PUSH=1
13969 fi
13970
13971
13972 if test "$with_html" = "no" ; then
13973 echo Disabling HTML support
13974 WITH_HTML=0
13975 else
13976 WITH_HTML=1
13977 fi
13978
13979 if test "$WITH_HTML" = "1"; then
13980 WITH_HTML_SOURCES_TRUE=
13981 WITH_HTML_SOURCES_FALSE='#'
13982 else
13983 WITH_HTML_SOURCES_TRUE='#'
13984 WITH_HTML_SOURCES_FALSE=
13985 fi
13986
13987
13988 if test "$with_valid" = "no" ; then
13989 echo Disabling DTD validation support
13990 WITH_VALID=0
13991 else
13992 WITH_VALID=1
13993 fi
13994
13995 if test "$WITH_VALID" = "1"; then
13996 WITH_VALID_SOURCES_TRUE=
13997 WITH_VALID_SOURCES_FALSE='#'
13998 else
13999 WITH_VALID_SOURCES_TRUE='#'
14000 WITH_VALID_SOURCES_FALSE=
14001 fi
14002
14003
14004 if test "$with_catalog" = "no" ; then
14005 echo Disabling Catalog support
14006 WITH_CATALOG=0
14007 else
14008 WITH_CATALOG=1
14009 fi
14010
14011 if test "$WITH_CATALOG" = "1"; then
14012 WITH_CATALOG_SOURCES_TRUE=
14013 WITH_CATALOG_SOURCES_FALSE='#'
14014 else
14015 WITH_CATALOG_SOURCES_TRUE='#'
14016 WITH_CATALOG_SOURCES_FALSE=
14017 fi
14018
14019
14020 if test "$with_xptr" = "no" ; then
14021 echo Disabling XPointer support
14022 WITH_XPTR=0
14023 else
14024 WITH_XPTR=1
14025 fi
14026
14027 if test "$WITH_XPTR" = "1"; then
14028 WITH_XPTR_SOURCES_TRUE=
14029 WITH_XPTR_SOURCES_FALSE='#'
14030 else
14031 WITH_XPTR_SOURCES_TRUE='#'
14032 WITH_XPTR_SOURCES_FALSE=
14033 fi
14034
14035
14036 if test "$with_c14n" = "no" ; then
14037 echo Disabling C14N support
14038 WITH_C14N=0
14039 else
14040 WITH_C14N=1
14041 fi
14042
14043 if test "$WITH_C14N" = "1"; then
14044 WITH_C14N_SOURCES_TRUE=
14045 WITH_C14N_SOURCES_FALSE='#'
14046 else
14047 WITH_C14N_SOURCES_TRUE='#'
14048 WITH_C14N_SOURCES_FALSE=
14049 fi
14050
14051
14052 if test "$with_xinclude" = "no" ; then
14053 echo Disabling XInclude support
14054 WITH_XINCLUDE=0
14055 else
14056 WITH_XINCLUDE=1
14057 fi
14058
14059 if test "$WITH_XINCLUDE" = "1"; then
14060 WITH_XINCLUDE_SOURCES_TRUE=
14061 WITH_XINCLUDE_SOURCES_FALSE='#'
14062 else
14063 WITH_XINCLUDE_SOURCES_TRUE='#'
14064 WITH_XINCLUDE_SOURCES_FALSE=
14065 fi
14066
14067
14068 if test "$with_schematron" = "yes" ; then
14069 echo "Enabling Schematron support"
14070 WITH_SCHEMATRON=1
14071 else
14072 WITH_SCHEMATRON=0
14073 fi
14074
14075 if test "$WITH_SCHEMATRON" = "1"; then
14076 WITH_SCHEMATRON_SOURCES_TRUE=
14077 WITH_SCHEMATRON_SOURCES_FALSE='#'
14078 else
14079 WITH_SCHEMATRON_SOURCES_TRUE='#'
14080 WITH_SCHEMATRON_SOURCES_FALSE=
14081 fi
14082
14083
14084 if test "$with_xpath" = "no" ; then
14085 echo Disabling XPATH support
14086 WITH_XPATH=0
14087 else
14088 WITH_XPATH=1
14089 fi
14090
14091 if test "$WITH_XPATH" = "1"; then
14092 WITH_XPATH_SOURCES_TRUE=
14093 WITH_XPATH_SOURCES_FALSE='#'
14094 else
14095 WITH_XPATH_SOURCES_TRUE='#'
14096 WITH_XPATH_SOURCES_FALSE=
14097 fi
14098
14099
14100 if test "$with_output" = "no" ; then
14101 echo Disabling serialization/saving support
14102 WITH_OUTPUT=0
14103 else
14104 WITH_OUTPUT=1
14105 fi
14106
14107 if test "$WITH_OUTPUT" = "1"; then
14108 WITH_OUTPUT_SOURCES_TRUE=
14109 WITH_OUTPUT_SOURCES_FALSE='#'
14110 else
14111 WITH_OUTPUT_SOURCES_TRUE='#'
14112 WITH_OUTPUT_SOURCES_FALSE=
14113 fi
14114
14115
14116 if test "$WITH_ICONV" != "1" && test "$with_iso8859x" = "no" ; then
14117 echo Disabling ISO8859X support
14118 WITH_ISO8859X=0
14119 else
14120 WITH_ISO8859X=1
14121 fi
14122
14123
14124 if test "$with_relaxng" = "no" ; then
14125 echo "Disabling Relax-NG support"
14126 WITH_RELAXNG=0
14127 else
14128 WITH_RELAXNG=1
14129 fi
14130
14131 if test "$WITH_RELAXNG" = "1"; then
14132 WITH_RELAXNG_SOURCES_TRUE=
14133 WITH_RELAXNG_SOURCES_FALSE='#'
14134 else
14135 WITH_RELAXNG_SOURCES_TRUE='#'
14136 WITH_RELAXNG_SOURCES_FALSE=
14137 fi
14138
14139
14140 if test "$with_schemas" = "no" ; then
14141 echo "Disabling Schemas support"
14142 WITH_SCHEMAS=0
14143 else
14144 WITH_SCHEMAS=1
14145 fi
14146
14147 if test "$WITH_SCHEMAS" = "1"; then
14148 WITH_SCHEMAS_SOURCES_TRUE=
14149 WITH_SCHEMAS_SOURCES_FALSE='#'
14150 else
14151 WITH_SCHEMAS_SOURCES_TRUE='#'
14152 WITH_SCHEMAS_SOURCES_FALSE=
14153 fi
14154
14155
14156 if test "$with_regexps" = "no" ; then
14157 echo Disabling Regexps support
14158 WITH_REGEXPS=0
14159 else
14160 WITH_REGEXPS=1
14161 fi
14162
14163 if test "$WITH_REGEXPS" = "1"; then
14164 WITH_REGEXPS_SOURCES_TRUE=
14165 WITH_REGEXPS_SOURCES_FALSE='#'
14166 else
14167 WITH_REGEXPS_SOURCES_TRUE='#'
14168 WITH_REGEXPS_SOURCES_FALSE=
14169 fi
14170
14171
14172 if test "$with_debug" = "no" ; then
14173 echo Disabling DEBUG support
14174 WITH_DEBUG=0
14175 else
14176 WITH_DEBUG=1
14177 fi
14178
14179 if test "$WITH_DEBUG" = "1"; then
14180 WITH_DEBUG_SOURCES_TRUE=
14181 WITH_DEBUG_SOURCES_FALSE='#'
14182 else
14183 WITH_DEBUG_SOURCES_TRUE='#'
14184 WITH_DEBUG_SOURCES_FALSE=
14185 fi
14186
14187
14188 if test "$with_docs" = "yes" ; then
14189 echo Enabling documentation
14190 # Extract the first word of "xsltproc", so it can be a program name with args.
14191 set dummy xsltproc; ac_word=$2
14192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193 printf %s "checking for $ac_word... " >&6; }
14194 if test ${ac_cv_path_XSLTPROC+y}
14195 then :
14196 printf %s "(cached) " >&6
14197 else $as_nop
14198 case $XSLTPROC in
14199 [\\/]* | ?:[\\/]*)
14200 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14201 ;;
14202 *)
14203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204 for as_dir in $PATH
14205 do
14206 IFS=$as_save_IFS
14207 case $as_dir in #(((
14208 '') as_dir=./ ;;
14209 */) ;;
14210 *) as_dir=$as_dir/ ;;
14211 esac
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14214 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
14215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14216 break 2
14217 fi
14218 done
14219 done
14220 IFS=$as_save_IFS
14221
14222 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
14223 ;;
14224 esac
14225 fi
14226 XSLTPROC=$ac_cv_path_XSLTPROC
14227 if test -n "$XSLTPROC"; then
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14229 printf "%s\n" "$XSLTPROC" >&6; }
14230 else
14231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 printf "%s\n" "no" >&6; }
14233 fi
14234
14235
14236 if test "$XSLTPROC" = "no"; then
14237 as_fn_error $? "cannot find xsltproc" "$LINENO" 5
14238 fi
14239 WITH_DOCS=1
14240 else
14241 WITH_DOCS=0
14242 fi
14243 if test "$WITH_DOCS" = "1"; then
14244 WITH_DOCS_TRUE=
14245 WITH_DOCS_FALSE='#'
14246 else
14247 WITH_DOCS_TRUE='#'
14248 WITH_DOCS_FALSE=
14249 fi
14250
14251
14252
14253 if test "x$with_python" = "xyes"
14254 then :
14255
14256
14257
14258
14259
14260
14261
14262 # Find any Python interpreter.
14263 if test -z "$PYTHON"; then
14264 for ac_prog in python python2 python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
14265 do
14266 # Extract the first word of "$ac_prog", so it can be a program name with args.
14267 set dummy $ac_prog; ac_word=$2
14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14269 printf %s "checking for $ac_word... " >&6; }
14270 if test ${ac_cv_path_PYTHON+y}
14271 then :
14272 printf %s "(cached) " >&6
14273 else $as_nop
14274 case $PYTHON in
14275 [\\/]* | ?:[\\/]*)
14276 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14277 ;;
14278 *)
14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280 for as_dir in $PATH
14281 do
14282 IFS=$as_save_IFS
14283 case $as_dir in #(((
14284 '') as_dir=./ ;;
14285 */) ;;
14286 *) as_dir=$as_dir/ ;;
14287 esac
14288 for ac_exec_ext in '' $ac_executable_extensions; do
14289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14290 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
14291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14292 break 2
14293 fi
14294 done
14295 done
14296 IFS=$as_save_IFS
14297
14298 ;;
14299 esac
14300 fi
14301 PYTHON=$ac_cv_path_PYTHON
14302 if test -n "$PYTHON"; then
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14304 printf "%s\n" "$PYTHON" >&6; }
14305 else
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14307 printf "%s\n" "no" >&6; }
14308 fi
14309
14310
14311 test -n "$PYTHON" && break
14312 done
14313 test -n "$PYTHON" || PYTHON=":"
14314
14315 fi
14316 am_display_PYTHON=python
14317
14318
14319 if test "$PYTHON" = :; then
14320 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14321 else
14322
14323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14324 printf %s "checking for $am_display_PYTHON version... " >&6; }
14325 if test ${am_cv_python_version+y}
14326 then :
14327 printf %s "(cached) " >&6
14328 else $as_nop
14329 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
14330 fi
14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14332 printf "%s\n" "$am_cv_python_version" >&6; }
14333 PYTHON_VERSION=$am_cv_python_version
14334
14335
14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14337 printf %s "checking for $am_display_PYTHON platform... " >&6; }
14338 if test ${am_cv_python_platform+y}
14339 then :
14340 printf %s "(cached) " >&6
14341 else $as_nop
14342 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14343 fi
14344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14345 printf "%s\n" "$am_cv_python_platform" >&6; }
14346 PYTHON_PLATFORM=$am_cv_python_platform
14347
14348
14349 if test "x$prefix" = xNONE; then
14350 am__usable_prefix=$ac_default_prefix
14351 else
14352 am__usable_prefix=$prefix
14353 fi
14354
14355 # Allow user to request using sys.* values from Python,
14356 # instead of the GNU $prefix values.
14357
14358 # Check whether --with-python-sys-prefix was given.
14359 if test ${with_python_sys_prefix+y}
14360 then :
14361 withval=$with_python_sys_prefix; am_use_python_sys=:
14362 else $as_nop
14363 am_use_python_sys=false
14364 fi
14365
14366
14367 # Allow user to override whatever the default Python prefix is.
14368
14369 # Check whether --with-python_prefix was given.
14370 if test ${with_python_prefix+y}
14371 then :
14372 withval=$with_python_prefix; am_python_prefix_subst=$withval
14373 am_cv_python_prefix=$withval
14374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
14375 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
14376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14377 printf "%s\n" "$am_cv_python_prefix" >&6; }
14378 else $as_nop
14379
14380 if $am_use_python_sys; then
14381 # using python sys.prefix value, not GNU
14382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
14383 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
14384 if test ${am_cv_python_prefix+y}
14385 then :
14386 printf %s "(cached) " >&6
14387 else $as_nop
14388 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
14389 fi
14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
14391 printf "%s\n" "$am_cv_python_prefix" >&6; }
14392
14393 case $am_cv_python_prefix in
14394 $am__usable_prefix*)
14395 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
14396 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
14397 ;;
14398 *)
14399 am_python_prefix_subst=$am_cv_python_prefix
14400 ;;
14401 esac
14402 else # using GNU prefix value, not python sys.prefix
14403 am_python_prefix_subst='${prefix}'
14404 am_python_prefix=$am_python_prefix_subst
14405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
14406 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
14408 printf "%s\n" "$am_python_prefix" >&6; }
14409 fi
14410 fi
14411
14412 # Substituting python_prefix_subst value.
14413 PYTHON_PREFIX=$am_python_prefix_subst
14414
14415
14416 # emacs-page Now do it all over again for Python exec_prefix, but with yet
14417 # another conditional: fall back to regular prefix if that was specified.
14418
14419 # Check whether --with-python_exec_prefix was given.
14420 if test ${with_python_exec_prefix+y}
14421 then :
14422 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
14423 am_cv_python_exec_prefix=$withval
14424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
14425 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14427 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14428 else $as_nop
14429
14430 # no explicit --with-python_exec_prefix, but if
14431 # --with-python_prefix was given, use its value for python_exec_prefix too.
14432 if test -n "$with_python_prefix"
14433 then :
14434 am_python_exec_prefix_subst=$with_python_prefix
14435 am_cv_python_exec_prefix=$with_python_prefix
14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
14437 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14439 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14440 else $as_nop
14441
14442 # Set am__usable_exec_prefix whether using GNU or Python values,
14443 # since we use that variable for pyexecdir.
14444 if test "x$exec_prefix" = xNONE; then
14445 am__usable_exec_prefix=$am__usable_prefix
14446 else
14447 am__usable_exec_prefix=$exec_prefix
14448 fi
14449 #
14450 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
14451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
14452 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
14453 if test ${am_cv_python_exec_prefix+y}
14454 then :
14455 printf %s "(cached) " >&6
14456 else $as_nop
14457 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
14458 fi
14459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
14460 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
14461 case $am_cv_python_exec_prefix in
14462 $am__usable_exec_prefix*)
14463 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
14464 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
14465 ;;
14466 *)
14467 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
14468 ;;
14469 esac
14470 else # using GNU $exec_prefix, not python sys.exec_prefix
14471 am_python_exec_prefix_subst='${exec_prefix}'
14472 am_python_exec_prefix=$am_python_exec_prefix_subst
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
14474 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
14475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
14476 printf "%s\n" "$am_python_exec_prefix" >&6; }
14477 fi
14478 fi
14479 fi
14480
14481 # Substituting python_exec_prefix_subst.
14482 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
14483
14484
14485 # Factor out some code duplication into this shell variable.
14486 am_python_setup_sysconfig="\
14487 import sys
14488 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14489 # with python 3.x. See automake bug#10227.
14490 try:
14491 import sysconfig
14492 except ImportError:
14493 can_use_sysconfig = 0
14494 else:
14495 can_use_sysconfig = 1
14496 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14497 # <https://github.com/pypa/virtualenv/issues/118>
14498 try:
14499 from platform import python_implementation
14500 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14501 can_use_sysconfig = 0
14502 except ImportError:
14503 pass"
14504
14505
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
14507 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
14508 if test ${am_cv_python_pythondir+y}
14509 then :
14510 printf %s "(cached) " >&6
14511 else $as_nop
14512 if test "x$am_cv_python_prefix" = x; then
14513 am_py_prefix=$am__usable_prefix
14514 else
14515 am_py_prefix=$am_cv_python_prefix
14516 fi
14517 am_cv_python_pythondir=`$PYTHON -c "
14518 $am_python_setup_sysconfig
14519 if can_use_sysconfig:
14520 if hasattr(sysconfig, 'get_default_scheme'):
14521 scheme = sysconfig.get_default_scheme()
14522 else:
14523 scheme = sysconfig._get_default_scheme()
14524 if scheme == 'posix_local':
14525 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
14526 scheme = 'posix_prefix'
14527 sitedir = sysconfig.get_path('purelib', scheme, vars={'base':'$am_py_prefix'})
14528 else:
14529 from distutils import sysconfig
14530 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14531 sys.stdout.write(sitedir)"`
14532 #
14533 case $am_cv_python_pythondir in
14534 $am_py_prefix*)
14535 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14536 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
14537 ;;
14538 *)
14539 case $am_py_prefix in
14540 /usr|/System*) ;;
14541 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14542 ;;
14543 esac
14544 ;;
14545 esac
14546
14547 fi
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14549 printf "%s\n" "$am_cv_python_pythondir" >&6; }
14550 pythondir=$am_cv_python_pythondir
14551
14552
14553 pkgpythondir=\${pythondir}/$PACKAGE
14554
14555
14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
14557 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
14558 if test ${am_cv_python_pyexecdir+y}
14559 then :
14560 printf %s "(cached) " >&6
14561 else $as_nop
14562 if test "x$am_cv_python_exec_prefix" = x; then
14563 am_py_exec_prefix=$am__usable_exec_prefix
14564 else
14565 am_py_exec_prefix=$am_cv_python_exec_prefix
14566 fi
14567 am_cv_python_pyexecdir=`$PYTHON -c "
14568 $am_python_setup_sysconfig
14569 if can_use_sysconfig:
14570 if hasattr(sysconfig, 'get_default_scheme'):
14571 scheme = sysconfig.get_default_scheme()
14572 else:
14573 scheme = sysconfig._get_default_scheme()
14574 if scheme == 'posix_local':
14575 # Debian's default scheme installs to /usr/local/ but we want to find headers in /usr/
14576 scheme = 'posix_prefix'
14577 sitedir = sysconfig.get_path('platlib', scheme, vars={'platbase':'$am_py_exec_prefix'})
14578 else:
14579 from distutils import sysconfig
14580 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
14581 sys.stdout.write(sitedir)"`
14582 #
14583 case $am_cv_python_pyexecdir in
14584 $am_py_exec_prefix*)
14585 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14586 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
14587 ;;
14588 *)
14589 case $am_py_exec_prefix in
14590 /usr|/System*) ;;
14591 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
14592 ;;
14593 esac
14594 ;;
14595 esac
14596
14597 fi
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14599 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
14600 pyexecdir=$am_cv_python_pyexecdir
14601
14602
14603 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14604
14605
14606
14607 fi
14608
14609
14610 pkg_failed=no
14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python-${PYTHON_VERSION}" >&5
14612 printf %s "checking for python-${PYTHON_VERSION}... " >&6; }
14613
14614 if test -n "$PYTHON_CFLAGS"; then
14615 pkg_cv_PYTHON_CFLAGS="$PYTHON_CFLAGS"
14616 elif test -n "$PKG_CONFIG"; then
14617 if test -n "$PKG_CONFIG" && \
14618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\${PYTHON_VERSION}\""; } >&5
14619 ($PKG_CONFIG --exists --print-errors "python-${PYTHON_VERSION}") 2>&5
14620 ac_status=$?
14621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; }; then
14623 pkg_cv_PYTHON_CFLAGS=`$PKG_CONFIG --cflags "python-${PYTHON_VERSION}" 2>/dev/null`
14624 test "x$?" != "x0" && pkg_failed=yes
14625 else
14626 pkg_failed=yes
14627 fi
14628 else
14629 pkg_failed=untried
14630 fi
14631 if test -n "$PYTHON_LIBS"; then
14632 pkg_cv_PYTHON_LIBS="$PYTHON_LIBS"
14633 elif test -n "$PKG_CONFIG"; then
14634 if test -n "$PKG_CONFIG" && \
14635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-\${PYTHON_VERSION}\""; } >&5
14636 ($PKG_CONFIG --exists --print-errors "python-${PYTHON_VERSION}") 2>&5
14637 ac_status=$?
14638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14639 test $ac_status = 0; }; then
14640 pkg_cv_PYTHON_LIBS=`$PKG_CONFIG --libs "python-${PYTHON_VERSION}" 2>/dev/null`
14641 test "x$?" != "x0" && pkg_failed=yes
14642 else
14643 pkg_failed=yes
14644 fi
14645 else
14646 pkg_failed=untried
14647 fi
14648
14649
14650
14651 if test $pkg_failed = yes; then
14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14653 printf "%s\n" "no" >&6; }
14654
14655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14656 _pkg_short_errors_supported=yes
14657 else
14658 _pkg_short_errors_supported=no
14659 fi
14660 if test $_pkg_short_errors_supported = yes; then
14661 PYTHON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-${PYTHON_VERSION}" 2>&1`
14662 else
14663 PYTHON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-${PYTHON_VERSION}" 2>&1`
14664 fi
14665 # Put the nasty error message in config.log where it belongs
14666 echo "$PYTHON_PKG_ERRORS" >&5
14667
14668 as_fn_error $? "Package requirements (python-${PYTHON_VERSION}) were not met:
14669
14670 $PYTHON_PKG_ERRORS
14671
14672 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14673 installed software in a non-standard prefix.
14674
14675 Alternatively, you may set the environment variables PYTHON_CFLAGS
14676 and PYTHON_LIBS to avoid the need to call pkg-config.
14677 See the pkg-config man page for more details." "$LINENO" 5
14678 elif test $pkg_failed = untried; then
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14680 printf "%s\n" "no" >&6; }
14681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14683 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14684 is in your PATH or set the PKG_CONFIG environment variable to the full
14685 path to pkg-config.
14686
14687 Alternatively, you may set the environment variables PYTHON_CFLAGS
14688 and PYTHON_LIBS to avoid the need to call pkg-config.
14689 See the pkg-config man page for more details.
14690
14691 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14692 See \`config.log' for more details" "$LINENO" 5; }
14693 else
14694 PYTHON_CFLAGS=$pkg_cv_PYTHON_CFLAGS
14695 PYTHON_LIBS=$pkg_cv_PYTHON_LIBS
14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14697 printf "%s\n" "yes" >&6; }
14698
14699 fi
14700
14701 fi
14702 if test "x$with_python" = "xyes"; then
14703 WITH_PYTHON_TRUE=
14704 WITH_PYTHON_FALSE='#'
14705 else
14706 WITH_PYTHON_TRUE='#'
14707 WITH_PYTHON_FALSE=
14708 fi
14709
14710
14711
14712 if test "$with_python" = "yes" || test "$with_docs" = "yes"; then
14713 # Extract the first word of "doxygen", so it can be a program name with args.
14714 set dummy doxygen; ac_word=$2
14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14716 printf %s "checking for $ac_word... " >&6; }
14717 if test ${ac_cv_path_DOXYGEN+y}
14718 then :
14719 printf %s "(cached) " >&6
14720 else $as_nop
14721 case $DOXYGEN in
14722 [\\/]* | ?:[\\/]*)
14723 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
14724 ;;
14725 *)
14726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14727 for as_dir in $PATH
14728 do
14729 IFS=$as_save_IFS
14730 case $as_dir in #(((
14731 '') as_dir=./ ;;
14732 */) ;;
14733 *) as_dir=$as_dir/ ;;
14734 esac
14735 for ac_exec_ext in '' $ac_executable_extensions; do
14736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14737 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
14738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14739 break 2
14740 fi
14741 done
14742 done
14743 IFS=$as_save_IFS
14744
14745 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
14746 ;;
14747 esac
14748 fi
14749 DOXYGEN=$ac_cv_path_DOXYGEN
14750 if test -n "$DOXYGEN"; then
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
14752 printf "%s\n" "$DOXYGEN" >&6; }
14753 else
14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 printf "%s\n" "no" >&6; }
14756 fi
14757
14758
14759 if test "$DOXYGEN" = "no"; then
14760 as_fn_error $? "cannot find doxygen" "$LINENO" 5
14761 fi
14762 WITH_DOXYGEN=1
14763 fi
14764 if test "$WITH_DOXYGEN" = "1"; then
14765 WITH_DOXYGEN_TRUE=
14766 WITH_DOXYGEN_FALSE='#'
14767 else
14768 WITH_DOXYGEN_TRUE='#'
14769 WITH_DOXYGEN_FALSE=
14770 fi
14771
14772
14773 PYTHON_LDFLAGS=
14774 if test "${PYTHON}" != ""; then
14775 case "$host" in
14776 *-*-cygwin* | *-*-mingw* | *-*-msys* )
14777 PYTHON_LDFLAGS="-no-undefined"
14778 ;;
14779 esac
14780 ext_suffix=`$PYTHON -c 'import sysconfig; print(sysconfig.get_config_var("EXT_SUFFIX") or sysconfig.get_config_var("SO"))'`
14781 PYTHON_LDFLAGS="$PYTHON_LDFLAGS -shrext $ext_suffix"
14782 fi
14783
14784
14785 WITH_MODULES=0
14786
14787 if test "$with_modules" != "no" ; then
14788 case "$host" in
14789 *-*-cygwin* | *-*-msys* )
14790 MODULE_EXTENSION=".dll"
14791 ;;
14792 *-*-mingw*)
14793 MODULE_EXTENSION=".dll"
14794 WITH_MODULES=1
14795 ;;
14796 *-*-hpux*)
14797 MODULE_EXTENSION=".sl"
14798 ;;
14799 *)
14800 MODULE_EXTENSION=".so"
14801 ;;
14802 esac
14803
14804 if test "$WITH_MODULES" = "0"; then
14805 _libs=$LIBS
14806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14807 printf %s "checking for library containing dlopen... " >&6; }
14808 if test ${ac_cv_search_dlopen+y}
14809 then :
14810 printf %s "(cached) " >&6
14811 else $as_nop
14812 ac_func_search_save_LIBS=$LIBS
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14819 char dlopen ();
14820 int
14821 main (void)
14822 {
14823 return dlopen ();
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 for ac_lib in '' dl
14829 do
14830 if test -z "$ac_lib"; then
14831 ac_res="none required"
14832 else
14833 ac_res=-l$ac_lib
14834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14835 fi
14836 if ac_fn_c_try_link "$LINENO"
14837 then :
14838 ac_cv_search_dlopen=$ac_res
14839 fi
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14841 conftest$ac_exeext
14842 if test ${ac_cv_search_dlopen+y}
14843 then :
14844 break
14845 fi
14846 done
14847 if test ${ac_cv_search_dlopen+y}
14848 then :
14849
14850 else $as_nop
14851 ac_cv_search_dlopen=no
14852 fi
14853 rm conftest.$ac_ext
14854 LIBS=$ac_func_search_save_LIBS
14855 fi
14856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14857 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
14858 ac_res=$ac_cv_search_dlopen
14859 if test "$ac_res" != no
14860 then :
14861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14862
14863 WITH_MODULES=1
14864 if test "$ac_cv_search_dlopen" != "none required"; then
14865 MODULE_LIBS=$ac_cv_search_dlopen
14866 fi
14867
14868 printf "%s\n" "#define HAVE_DLOPEN /**/" >>confdefs.h
14869
14870 else $as_nop
14871
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
14873 printf %s "checking for library containing shl_load... " >&6; }
14874 if test ${ac_cv_search_shl_load+y}
14875 then :
14876 printf %s "(cached) " >&6
14877 else $as_nop
14878 ac_func_search_save_LIBS=$LIBS
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14881
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14885 char shl_load ();
14886 int
14887 main (void)
14888 {
14889 return shl_load ();
14890 ;
14891 return 0;
14892 }
14893 _ACEOF
14894 for ac_lib in '' dld
14895 do
14896 if test -z "$ac_lib"; then
14897 ac_res="none required"
14898 else
14899 ac_res=-l$ac_lib
14900 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14901 fi
14902 if ac_fn_c_try_link "$LINENO"
14903 then :
14904 ac_cv_search_shl_load=$ac_res
14905 fi
14906 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14907 conftest$ac_exeext
14908 if test ${ac_cv_search_shl_load+y}
14909 then :
14910 break
14911 fi
14912 done
14913 if test ${ac_cv_search_shl_load+y}
14914 then :
14915
14916 else $as_nop
14917 ac_cv_search_shl_load=no
14918 fi
14919 rm conftest.$ac_ext
14920 LIBS=$ac_func_search_save_LIBS
14921 fi
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
14923 printf "%s\n" "$ac_cv_search_shl_load" >&6; }
14924 ac_res=$ac_cv_search_shl_load
14925 if test "$ac_res" != no
14926 then :
14927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14928
14929 WITH_MODULES=1
14930 if test "$ac_cv_search_shl_load" != "none required"; then
14931 MODULE_LIBS=$ac_cv_search_shl_load
14932 fi
14933
14934 printf "%s\n" "#define HAVE_SHLLOAD /**/" >>confdefs.h
14935
14936 fi
14937
14938 fi
14939
14940 LIBS=$_libs
14941 fi
14942
14943 if test "$WITH_MODULES" = "0"; then
14944 as_fn_error $? "dlopen or equivalent not found" "$LINENO" 5
14945 fi
14946
14947 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${MODULE_LIBS}"
14948 XML_PC_LIBS="${XML_PC_LIBS} ${MODULE_LIBS}"
14949 fi
14950
14951
14952
14953 if test "$WITH_MODULES" = "1"; then
14954 WITH_MODULES_SOURCES_TRUE=
14955 WITH_MODULES_SOURCES_FALSE='#'
14956 else
14957 WITH_MODULES_SOURCES_TRUE='#'
14958 WITH_MODULES_SOURCES_FALSE=
14959 fi
14960
14961
14962 THREAD_LIBS=""
14963 WITH_THREADS=0
14964 WITH_THREAD_ALLOC=0
14965
14966 if test "$with_threads" = "no" ; then
14967 echo Disabling multithreaded support
14968 else
14969 case $host_os in
14970 *mingw*)
14971 WITH_THREADS="1"
14972 ;;
14973 *)
14974 _libs=$LIBS
14975 for ac_header in pthread.h
14976 do :
14977 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14978 if test "x$ac_cv_header_pthread_h" = xyes
14979 then :
14980 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14982 printf %s "checking for library containing pthread_create... " >&6; }
14983 if test ${ac_cv_search_pthread_create+y}
14984 then :
14985 printf %s "(cached) " >&6
14986 else $as_nop
14987 ac_func_search_save_LIBS=$LIBS
14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14989 /* end confdefs.h. */
14990
14991 /* Override any GCC internal prototype to avoid an error.
14992 Use char because int might match the return type of a GCC
14993 builtin and then its argument prototype would still apply. */
14994 char pthread_create ();
14995 int
14996 main (void)
14997 {
14998 return pthread_create ();
14999 ;
15000 return 0;
15001 }
15002 _ACEOF
15003 for ac_lib in '' pthread
15004 do
15005 if test -z "$ac_lib"; then
15006 ac_res="none required"
15007 else
15008 ac_res=-l$ac_lib
15009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15010 fi
15011 if ac_fn_c_try_link "$LINENO"
15012 then :
15013 ac_cv_search_pthread_create=$ac_res
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15016 conftest$ac_exeext
15017 if test ${ac_cv_search_pthread_create+y}
15018 then :
15019 break
15020 fi
15021 done
15022 if test ${ac_cv_search_pthread_create+y}
15023 then :
15024
15025 else $as_nop
15026 ac_cv_search_pthread_create=no
15027 fi
15028 rm conftest.$ac_ext
15029 LIBS=$ac_func_search_save_LIBS
15030 fi
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
15032 printf "%s\n" "$ac_cv_search_pthread_create" >&6; }
15033 ac_res=$ac_cv_search_pthread_create
15034 if test "$ac_res" != no
15035 then :
15036 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15037
15038 WITH_THREADS="1"
15039 if test "$ac_cv_search_pthread_create" != "none required"; then
15040 THREAD_LIBS=$ac_cv_search_pthread_create
15041 fi
15042 fi
15043
15044 fi
15045
15046 done
15047 LIBS=$_libs
15048 ;;
15049 esac
15050
15051 if test "$WITH_THREADS" = "0"; then
15052 as_fn_error $? "libpthread not found" "$LINENO" 5
15053 fi
15054
15055 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${THREAD_LIBS}"
15056 XML_PC_LIBS="${XML_PC_LIBS} ${THREAD_LIBS}"
15057 fi
15058 if test "$with_thread_alloc" = "yes" && test "$WITH_THREADS" = "1" ; then
15059 WITH_THREAD_ALLOC=1
15060 fi
15061
15062
15063
15064
15065
15066 if test "$with_readline" != "no" && test "$with_readline" != ""; then
15067 WITH_READLINE=0
15068 WITH_HISTORY=0
15069
15070 if test "$with_readline" != "yes"; then
15071 RDL_DIR=$with_readline
15072 fi
15073
15074 if test "$RDL_DIR" = ""; then
15075
15076 pkg_failed=no
15077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
15078 printf %s "checking for readline... " >&6; }
15079
15080 if test -n "$RDL_CFLAGS"; then
15081 pkg_cv_RDL_CFLAGS="$RDL_CFLAGS"
15082 elif test -n "$PKG_CONFIG"; then
15083 if test -n "$PKG_CONFIG" && \
15084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
15085 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
15086 ac_status=$?
15087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15088 test $ac_status = 0; }; then
15089 pkg_cv_RDL_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
15090 test "x$?" != "x0" && pkg_failed=yes
15091 else
15092 pkg_failed=yes
15093 fi
15094 else
15095 pkg_failed=untried
15096 fi
15097 if test -n "$RDL_LIBS"; then
15098 pkg_cv_RDL_LIBS="$RDL_LIBS"
15099 elif test -n "$PKG_CONFIG"; then
15100 if test -n "$PKG_CONFIG" && \
15101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
15102 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
15103 ac_status=$?
15104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105 test $ac_status = 0; }; then
15106 pkg_cv_RDL_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null`
15107 test "x$?" != "x0" && pkg_failed=yes
15108 else
15109 pkg_failed=yes
15110 fi
15111 else
15112 pkg_failed=untried
15113 fi
15114
15115
15116
15117 if test $pkg_failed = yes; then
15118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15119 printf "%s\n" "no" >&6; }
15120
15121 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15122 _pkg_short_errors_supported=yes
15123 else
15124 _pkg_short_errors_supported=no
15125 fi
15126 if test $_pkg_short_errors_supported = yes; then
15127 RDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
15128 else
15129 RDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
15130 fi
15131 # Put the nasty error message in config.log where it belongs
15132 echo "$RDL_PKG_ERRORS" >&5
15133
15134 :
15135 elif test $pkg_failed = untried; then
15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15137 printf "%s\n" "no" >&6; }
15138 :
15139 else
15140 RDL_CFLAGS=$pkg_cv_RDL_CFLAGS
15141 RDL_LIBS=$pkg_cv_RDL_LIBS
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15143 printf "%s\n" "yes" >&6; }
15144 WITH_READLINE=1
15145 fi
15146 fi
15147
15148 if test "$WITH_READLINE" = "0"; then
15149 _cppflags=$CPPFLAGS
15150 _libs=$LIBS
15151
15152 if test "$RDL_DIR" != ""; then
15153 CPPFLAGS="${CPPFLAGS} -I$RDL_DIR/include"
15154 LIBS="${LIBS} -L$RDL_DIR/lib"
15155 fi
15156 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15157 if test "x$ac_cv_header_readline_readline_h" = xyes
15158 then :
15159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15160 printf %s "checking for readline in -lreadline... " >&6; }
15161 if test ${ac_cv_lib_readline_readline+y}
15162 then :
15163 printf %s "(cached) " >&6
15164 else $as_nop
15165 ac_check_lib_save_LIBS=$LIBS
15166 LIBS="-lreadline $LIBS"
15167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15168 /* end confdefs.h. */
15169
15170 /* Override any GCC internal prototype to avoid an error.
15171 Use char because int might match the return type of a GCC
15172 builtin and then its argument prototype would still apply. */
15173 char readline ();
15174 int
15175 main (void)
15176 {
15177 return readline ();
15178 ;
15179 return 0;
15180 }
15181 _ACEOF
15182 if ac_fn_c_try_link "$LINENO"
15183 then :
15184 ac_cv_lib_readline_readline=yes
15185 else $as_nop
15186 ac_cv_lib_readline_readline=no
15187 fi
15188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15189 conftest$ac_exeext conftest.$ac_ext
15190 LIBS=$ac_check_lib_save_LIBS
15191 fi
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15193 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15194 if test "x$ac_cv_lib_readline_readline" = xyes
15195 then :
15196
15197 WITH_READLINE=1
15198 RDL_LIBS="-lreadline"
15199
15200 else $as_nop
15201
15202 as_fn_error $? "libreadline not found" "$LINENO" 5
15203
15204 fi
15205
15206 fi
15207
15208
15209 CPPFLAGS=$_cppflags
15210 LIBS=$_libs
15211 fi
15212
15213
15214 printf "%s\n" "#define HAVE_LIBREADLINE /**/" >>confdefs.h
15215
15216
15217 if test "$with_history" = "yes"; then
15218 if test "$RDL_DIR" = ""; then
15219
15220 pkg_failed=no
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for history" >&5
15222 printf %s "checking for history... " >&6; }
15223
15224 if test -n "$HISTORY_CFLAGS"; then
15225 pkg_cv_HISTORY_CFLAGS="$HISTORY_CFLAGS"
15226 elif test -n "$PKG_CONFIG"; then
15227 if test -n "$PKG_CONFIG" && \
15228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"history\""; } >&5
15229 ($PKG_CONFIG --exists --print-errors "history") 2>&5
15230 ac_status=$?
15231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15232 test $ac_status = 0; }; then
15233 pkg_cv_HISTORY_CFLAGS=`$PKG_CONFIG --cflags "history" 2>/dev/null`
15234 test "x$?" != "x0" && pkg_failed=yes
15235 else
15236 pkg_failed=yes
15237 fi
15238 else
15239 pkg_failed=untried
15240 fi
15241 if test -n "$HISTORY_LIBS"; then
15242 pkg_cv_HISTORY_LIBS="$HISTORY_LIBS"
15243 elif test -n "$PKG_CONFIG"; then
15244 if test -n "$PKG_CONFIG" && \
15245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"history\""; } >&5
15246 ($PKG_CONFIG --exists --print-errors "history") 2>&5
15247 ac_status=$?
15248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15249 test $ac_status = 0; }; then
15250 pkg_cv_HISTORY_LIBS=`$PKG_CONFIG --libs "history" 2>/dev/null`
15251 test "x$?" != "x0" && pkg_failed=yes
15252 else
15253 pkg_failed=yes
15254 fi
15255 else
15256 pkg_failed=untried
15257 fi
15258
15259
15260
15261 if test $pkg_failed = yes; then
15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15263 printf "%s\n" "no" >&6; }
15264
15265 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15266 _pkg_short_errors_supported=yes
15267 else
15268 _pkg_short_errors_supported=no
15269 fi
15270 if test $_pkg_short_errors_supported = yes; then
15271 HISTORY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "history" 2>&1`
15272 else
15273 HISTORY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "history" 2>&1`
15274 fi
15275 # Put the nasty error message in config.log where it belongs
15276 echo "$HISTORY_PKG_ERRORS" >&5
15277
15278 :
15279 elif test $pkg_failed = untried; then
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15281 printf "%s\n" "no" >&6; }
15282 :
15283 else
15284 HISTORY_CFLAGS=$pkg_cv_HISTORY_CFLAGS
15285 HISTORY_LIBS=$pkg_cv_HISTORY_LIBS
15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15287 printf "%s\n" "yes" >&6; }
15288
15289 WITH_HISTORY=1
15290 RDL_CFLAGS="$HISTORY_CFLAGS $RDL_CFLAGS"
15291 RDL_LIBS="$HISTORY_LIBS $RDL_LIBS"
15292
15293 fi
15294 fi
15295
15296 if test "$WITH_HISTORY" = "0"; then
15297 _cppflags=$CPPFLAGS
15298 _libs=$LIBS
15299
15300 if test "$RDL_DIR" != ""; then
15301 CPPFLAGS="${CPPFLAGS} -I$RDL_DIR/include"
15302 LIBS="${LIBS} -L$RDL_DIR/lib"
15303 fi
15304 ac_fn_c_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
15305 if test "x$ac_cv_header_readline_history_h" = xyes
15306 then :
15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
15308 printf %s "checking for append_history in -lhistory... " >&6; }
15309 if test ${ac_cv_lib_history_append_history+y}
15310 then :
15311 printf %s "(cached) " >&6
15312 else $as_nop
15313 ac_check_lib_save_LIBS=$LIBS
15314 LIBS="-lhistory $LIBS"
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317
15318 /* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15321 char append_history ();
15322 int
15323 main (void)
15324 {
15325 return append_history ();
15326 ;
15327 return 0;
15328 }
15329 _ACEOF
15330 if ac_fn_c_try_link "$LINENO"
15331 then :
15332 ac_cv_lib_history_append_history=yes
15333 else $as_nop
15334 ac_cv_lib_history_append_history=no
15335 fi
15336 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15337 conftest$ac_exeext conftest.$ac_ext
15338 LIBS=$ac_check_lib_save_LIBS
15339 fi
15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
15341 printf "%s\n" "$ac_cv_lib_history_append_history" >&6; }
15342 if test "x$ac_cv_lib_history_append_history" = xyes
15343 then :
15344
15345 WITH_HISTORY=1
15346 RDL_LIBS="-lhistory $RDL_LIBS"
15347
15348 else $as_nop
15349
15350 as_fn_error $? "libhistory not found" "$LINENO" 5
15351
15352 fi
15353
15354 fi
15355
15356
15357 CPPFLAGS=$_cppflags
15358 LIBS=$_libs
15359 fi
15360
15361
15362 printf "%s\n" "#define HAVE_LIBHISTORY /**/" >>confdefs.h
15363
15364 fi
15365
15366 if test "$RDL_DIR" != ""; then
15367 RDL_CFLAGS="-I$RDL_DIR/include"
15368 RDL_LIBS="-L$RDL_DIR/lib $RDL_LIBS"
15369 fi
15370 fi
15371
15372
15373
15374 WITH_ZLIB=0
15375
15376 if test "$with_zlib" != "no" && test "$with_zlib" != ""; then
15377 echo "Enabling zlib compression support"
15378
15379 if test "$with_zlib" != "yes"; then
15380 Z_DIR=$with_zlib
15381 fi
15382
15383 # Don't run pkg-config if with_zlib contains a path.
15384 if test "x$Z_DIR" = "x"; then
15385 # Try pkg-config first so that static linking works.
15386
15387 pkg_failed=no
15388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15389 printf %s "checking for zlib... " >&6; }
15390
15391 if test -n "$Z_CFLAGS"; then
15392 pkg_cv_Z_CFLAGS="$Z_CFLAGS"
15393 elif test -n "$PKG_CONFIG"; then
15394 if test -n "$PKG_CONFIG" && \
15395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
15396 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
15397 ac_status=$?
15398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; }; then
15400 pkg_cv_Z_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
15401 test "x$?" != "x0" && pkg_failed=yes
15402 else
15403 pkg_failed=yes
15404 fi
15405 else
15406 pkg_failed=untried
15407 fi
15408 if test -n "$Z_LIBS"; then
15409 pkg_cv_Z_LIBS="$Z_LIBS"
15410 elif test -n "$PKG_CONFIG"; then
15411 if test -n "$PKG_CONFIG" && \
15412 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
15413 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
15414 ac_status=$?
15415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15416 test $ac_status = 0; }; then
15417 pkg_cv_Z_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
15418 test "x$?" != "x0" && pkg_failed=yes
15419 else
15420 pkg_failed=yes
15421 fi
15422 else
15423 pkg_failed=untried
15424 fi
15425
15426
15427
15428 if test $pkg_failed = yes; then
15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430 printf "%s\n" "no" >&6; }
15431
15432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15433 _pkg_short_errors_supported=yes
15434 else
15435 _pkg_short_errors_supported=no
15436 fi
15437 if test $_pkg_short_errors_supported = yes; then
15438 Z_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
15439 else
15440 Z_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
15441 fi
15442 # Put the nasty error message in config.log where it belongs
15443 echo "$Z_PKG_ERRORS" >&5
15444
15445 :
15446 elif test $pkg_failed = untried; then
15447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15448 printf "%s\n" "no" >&6; }
15449 :
15450 else
15451 Z_CFLAGS=$pkg_cv_Z_CFLAGS
15452 Z_LIBS=$pkg_cv_Z_LIBS
15453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15454 printf "%s\n" "yes" >&6; }
15455 WITH_ZLIB=1; XML_PC_REQUIRES="${XML_PC_REQUIRES} zlib"
15456 fi
15457 fi
15458
15459 if test "$WITH_ZLIB" = "0"; then
15460 _cppflags=$CPPFLAGS
15461 _libs=$LIBS
15462 if test "x$Z_DIR" != "x"; then
15463 CPPFLAGS="${CPPFLAGS} -I$Z_DIR/include"
15464 LIBS="${LIBS} -L$Z_DIR/lib"
15465 fi
15466 for ac_header in zlib.h
15467 do :
15468 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15469 if test "x$ac_cv_header_zlib_h" = xyes
15470 then :
15471 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
15473 printf %s "checking for gzread in -lz... " >&6; }
15474 if test ${ac_cv_lib_z_gzread+y}
15475 then :
15476 printf %s "(cached) " >&6
15477 else $as_nop
15478 ac_check_lib_save_LIBS=$LIBS
15479 LIBS="-lz $LIBS"
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482
15483 /* Override any GCC internal prototype to avoid an error.
15484 Use char because int might match the return type of a GCC
15485 builtin and then its argument prototype would still apply. */
15486 char gzread ();
15487 int
15488 main (void)
15489 {
15490 return gzread ();
15491 ;
15492 return 0;
15493 }
15494 _ACEOF
15495 if ac_fn_c_try_link "$LINENO"
15496 then :
15497 ac_cv_lib_z_gzread=yes
15498 else $as_nop
15499 ac_cv_lib_z_gzread=no
15500 fi
15501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15502 conftest$ac_exeext conftest.$ac_ext
15503 LIBS=$ac_check_lib_save_LIBS
15504 fi
15505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
15506 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
15507 if test "x$ac_cv_lib_z_gzread" = xyes
15508 then :
15509
15510 WITH_ZLIB=1
15511 if test "x${Z_DIR}" != "x"; then
15512 Z_CFLAGS="-I${Z_DIR}/include"
15513 Z_LIBS="-L${Z_DIR}/lib -lz"
15514 case ${host} in
15515 *-*-solaris*)
15516 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
15517 ;;
15518 esac
15519 else
15520 Z_LIBS="-lz"
15521 fi
15522 fi
15523
15524 XML_PC_LIBS="${XML_PC_LIBS} ${Z_LIBS}"
15525
15526 fi
15527
15528 done
15529 CPPFLAGS=$_cppflags
15530 LIBS=$_libs
15531 fi
15532
15533 if test "$WITH_ZLIB" = "0"; then
15534 as_fn_error $? "zlib not found" "$LINENO" 5
15535 fi
15536
15537 XML_PRIVATE_CFLAGS="${XML_PRIVATE_CFLAGS} ${Z_CFLAGS}"
15538 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${Z_LIBS}"
15539 fi
15540
15541
15542
15543
15544 WITH_ICONV=0
15545
15546 if test "$with_iconv" = "no" ; then
15547 echo Disabling ICONV support
15548 else
15549 _cppflags=$CPPFLAGS
15550 _libs=$LIBS
15551 if test "$with_iconv" != "yes" && test "$with_iconv" != "" ; then
15552 ICONV_DIR=$with_iconv
15553 CPPFLAGS="$CPPFLAGS -I$ICONV_DIR/include"
15554 LIBS="$LIBS -L$ICONV_DIR/lib"
15555 fi
15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
15557 printf %s "checking for libiconv... " >&6; }
15558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15559 /* end confdefs.h. */
15560
15561 #include <iconv.h>
15562 int
15563 main (void)
15564 {
15565 iconv_open(0,0);
15566 ;
15567 return 0;
15568 }
15569
15570 _ACEOF
15571 if ac_fn_c_try_link "$LINENO"
15572 then :
15573
15574 WITH_ICONV=1
15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none required" >&5
15576 printf "%s\n" "none required" >&6; }
15577
15578 else $as_nop
15579
15580 LIBS="$LIBS -liconv"
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583
15584 #include <iconv.h>
15585 int
15586 main (void)
15587 {
15588 iconv_open(0,0);
15589 ;
15590 return 0;
15591 }
15592
15593 _ACEOF
15594 if ac_fn_c_try_link "$LINENO"
15595 then :
15596
15597 WITH_ICONV=1
15598 ICONV_LIBS="-liconv"
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15600 printf "%s\n" "yes" >&6; }
15601
15602 else $as_nop
15603
15604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15605 printf "%s\n" "no" >&6; }
15606
15607 fi
15608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15609 conftest$ac_exeext conftest.$ac_ext
15610
15611 fi
15612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15613 conftest$ac_exeext conftest.$ac_ext
15614
15615 if test "$WITH_ICONV" = "0"; then
15616 as_fn_error $? "libiconv not found" "$LINENO" 5
15617 fi
15618
15619 if test "$WITH_ICONV" = "1" && test "$ICONV_DIR" != ""; then
15620 ICONV_CFLAGS="-I$ICONV_DIR/include"
15621 ICONV_LIBS="-L$ICONV_DIR/lib $ICONV_LIBS"
15622 fi
15623 CPPFLAGS=$_cppflags
15624 LIBS=$_libs
15625
15626 XML_PRIVATE_CFLAGS="${XML_PRIVATE_CFLAGS} ${ICONV_CFLAGS}"
15627 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${ICONV_LIBS}"
15628 XML_PC_LIBS="${XML_PC_LIBS} ${ICONV_LIBS}"
15629 fi
15630
15631
15632
15633 WITH_ICU=0
15634
15635 if test "$with_icu" != "no" && test "$with_icu" != "" ; then
15636 echo Enabling ICU support
15637
15638 # Try pkg-config first so that static linking works.
15639 # If this succeeeds, we ignore the WITH_ICU directory.
15640
15641 pkg_failed=no
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-uc" >&5
15643 printf %s "checking for icu-uc... " >&6; }
15644
15645 if test -n "$ICU_CFLAGS"; then
15646 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
15647 elif test -n "$PKG_CONFIG"; then
15648 if test -n "$PKG_CONFIG" && \
15649 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
15650 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
15651 ac_status=$?
15652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15653 test $ac_status = 0; }; then
15654 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
15655 test "x$?" != "x0" && pkg_failed=yes
15656 else
15657 pkg_failed=yes
15658 fi
15659 else
15660 pkg_failed=untried
15661 fi
15662 if test -n "$ICU_LIBS"; then
15663 pkg_cv_ICU_LIBS="$ICU_LIBS"
15664 elif test -n "$PKG_CONFIG"; then
15665 if test -n "$PKG_CONFIG" && \
15666 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
15667 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
15668 ac_status=$?
15669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15670 test $ac_status = 0; }; then
15671 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
15672 test "x$?" != "x0" && pkg_failed=yes
15673 else
15674 pkg_failed=yes
15675 fi
15676 else
15677 pkg_failed=untried
15678 fi
15679
15680
15681
15682 if test $pkg_failed = yes; then
15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15684 printf "%s\n" "no" >&6; }
15685
15686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15687 _pkg_short_errors_supported=yes
15688 else
15689 _pkg_short_errors_supported=no
15690 fi
15691 if test $_pkg_short_errors_supported = yes; then
15692 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
15693 else
15694 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
15695 fi
15696 # Put the nasty error message in config.log where it belongs
15697 echo "$ICU_PKG_ERRORS" >&5
15698
15699 :
15700 elif test $pkg_failed = untried; then
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15702 printf "%s\n" "no" >&6; }
15703 :
15704 else
15705 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
15706 ICU_LIBS=$pkg_cv_ICU_LIBS
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15708 printf "%s\n" "yes" >&6; }
15709
15710 WITH_ICU=1; XML_PC_REQUIRES="${XML_PC_REQUIRES} icu-uc"
15711
15712 if test -n "$ICU_DEFS"; then
15713 pkg_cv_ICU_DEFS="$ICU_DEFS"
15714 elif test -n "$PKG_CONFIG"; then
15715 if test -n "$PKG_CONFIG" && \
15716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
15717 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
15718 ac_status=$?
15719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15720 test $ac_status = 0; }; then
15721 pkg_cv_ICU_DEFS=`$PKG_CONFIG --variable="DEFS" "icu-uc" 2>/dev/null`
15722 test "x$?" != "x0" && pkg_failed=yes
15723 else
15724 pkg_failed=yes
15725 fi
15726 else
15727 pkg_failed=untried
15728 fi
15729 ICU_DEFS=$pkg_cv_ICU_DEFS
15730
15731 if test "x$ICU_DEFS" = x""
15732 then :
15733
15734 fi
15735 if test "x$ICU_DEFS" != "x"; then
15736 ICU_CFLAGS="$ICU_CFLAGS $ICU_DEFS"
15737 fi
15738 fi
15739
15740 if test "$WITH_ICU" = "0"; then
15741 ICU_CONFIG=icu-config
15742 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
15743 then
15744 WITH_ICU=1
15745 ICU_CFLAGS=`${ICU_CONFIG} --cflags`
15746 ICU_LIBS=`${ICU_CONFIG} --ldflags`
15747 XML_PC_LIBS="${XML_PC_LIBS} ${ICU_LIBS}"
15748 else
15749 _cppflags="${CPPFLAGS}"
15750 _libs="${LIBS}"
15751 if test "$with_icu" != "yes" ; then
15752 ICU_DIR=$with_icu
15753 CPPFLAGS="${CPPFLAGS} -I$ICU_DIR/include"
15754 LIBS="${LIBS} -L$ICU_DIR/lib"
15755 fi
15756
15757 ac_fn_c_check_header_compile "$LINENO" "unicode/ucnv.h" "ac_cv_header_unicode_ucnv_h" "$ac_includes_default"
15758 if test "x$ac_cv_header_unicode_ucnv_h" = xyes
15759 then :
15760
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ucnv_open in -licucore" >&5
15762 printf %s "checking for ucnv_open in -licucore... " >&6; }
15763 if test ${ac_cv_lib_icucore_ucnv_open+y}
15764 then :
15765 printf %s "(cached) " >&6
15766 else $as_nop
15767 ac_check_lib_save_LIBS=$LIBS
15768 LIBS="-licucore $LIBS"
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771
15772 /* Override any GCC internal prototype to avoid an error.
15773 Use char because int might match the return type of a GCC
15774 builtin and then its argument prototype would still apply. */
15775 char ucnv_open ();
15776 int
15777 main (void)
15778 {
15779 return ucnv_open ();
15780 ;
15781 return 0;
15782 }
15783 _ACEOF
15784 if ac_fn_c_try_link "$LINENO"
15785 then :
15786 ac_cv_lib_icucore_ucnv_open=yes
15787 else $as_nop
15788 ac_cv_lib_icucore_ucnv_open=no
15789 fi
15790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15791 conftest$ac_exeext conftest.$ac_ext
15792 LIBS=$ac_check_lib_save_LIBS
15793 fi
15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_icucore_ucnv_open" >&5
15795 printf "%s\n" "$ac_cv_lib_icucore_ucnv_open" >&6; }
15796 if test "x$ac_cv_lib_icucore_ucnv_open" = xyes
15797 then :
15798
15799 WITH_ICU=1
15800 ICU_LIBS=-licucore
15801 if test "$ICU_DIR" != ""; then
15802 ICU_CFLAGS="-I$ICU_DIR/include"
15803 ICU_LIBS="-L$ICU_DIR/lib $ICU_LIBS"
15804 fi
15805 fi
15806
15807 fi
15808
15809 XML_PC_LIBS="${XML_PC_LIBS} ${ICU_LIBS}"
15810 CPPFLAGS=$_cppflags
15811 LIBS=$_libs
15812 fi
15813 fi
15814
15815 if test "$WITH_ICU" = "0"; then
15816 as_fn_error $? "ICU not found" "$LINENO" 5
15817 fi
15818
15819 XML_PRIVATE_CFLAGS="${XML_PRIVATE_CFLAGS} ${ICU_CFLAGS}"
15820 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${ICU_LIBS}"
15821 fi
15822
15823
15824 case "$host" in
15825 *-*-mingw*)
15826 CRYPTO_LIBS="-lbcrypt"
15827 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${CRYPTO_LIBS}"
15828 XML_PC_LIBS="${XML_PC_LIBS} ${CRYPTO_LIBS}"
15829 ;;
15830 esac
15831
15832 XML_LIBS="-lxml2"
15833 XML_PC_LIBS="${XML_PC_LIBS} ${LIBM}"
15834 XML_PRIVATE_LIBS="${XML_PRIVATE_LIBS} ${LIBM}"
15835
15836 if test "x$enable_shared" = "xno"; then
15837 XML_PRIVATE_LIBS_NO_SHARED="${XML_PRIVATE_LIBS}"
15838 XML_PC_PRIVATE=
15839 XML_PC_LIBS_PRIVATE=
15840 BUILD_SHARED_LIBS=0
15841 else
15842 XML_PRIVATE_LIBS_NO_SHARED=
15843 XML_PC_PRIVATE=".private"
15844 XML_PC_LIBS_PRIVATE="
15845 Libs.private:"
15846 BUILD_SHARED_LIBS=1
15847 fi
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875 # for libxml2-config.cmake.in
15876 _lcl_receval=""$bindir""
15877 INSTALL_BINDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15878 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15879 _lcl_receval_old=''
15880 while test "$_lcl_receval_old" != "$_lcl_receval"; do
15881 _lcl_receval_old="$_lcl_receval"
15882 eval _lcl_receval="\"$_lcl_receval\""
15883 done
15884 echo "$_lcl_receval")`
15885 _lcl_receval=""$includedir""
15886 INSTALL_INCLUDEDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15887 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15888 _lcl_receval_old=''
15889 while test "$_lcl_receval_old" != "$_lcl_receval"; do
15890 _lcl_receval_old="$_lcl_receval"
15891 eval _lcl_receval="\"$_lcl_receval\""
15892 done
15893 echo "$_lcl_receval")`
15894 _lcl_receval=""$libdir""
15895 INSTALL_LIBDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15896 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15897 _lcl_receval_old=''
15898 while test "$_lcl_receval_old" != "$_lcl_receval"; do
15899 _lcl_receval_old="$_lcl_receval"
15900 eval _lcl_receval="\"$_lcl_receval\""
15901 done
15902 echo "$_lcl_receval")`
15903
15904
15905
15906
15907
15908
15909
15910 _lcl_receval=""$sysconfdir""
15911 XML_SYSCONFDIR=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15912 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
15913 _lcl_receval_old=''
15914 while test "$_lcl_receval_old" != "$_lcl_receval"; do
15915 _lcl_receval_old="$_lcl_receval"
15916 eval _lcl_receval="\"$_lcl_receval\""
15917 done
15918 echo "$_lcl_receval")`
15919
15920 printf "%s\n" "#define XML_SYSCONFDIR \"$XML_SYSCONFDIR\"" >>confdefs.h
15921
15922
15923 # keep on one line for cygwin c.f. #130896
15924 ac_config_files="$ac_config_files Makefile include/Makefile include/libxml/Makefile include/private/Makefile doc/Makefile example/Makefile fuzz/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h libxml-2.0.pc libxml2-config.cmake"
15925
15926 ac_config_files="$ac_config_files python/setup.py"
15927
15928 ac_config_files="$ac_config_files xml2-config"
15929
15930 cat >confcache <<\_ACEOF
15931 # This file is a shell script that caches the results of configure
15932 # tests run on this system so they can be shared between configure
15933 # scripts and configure runs, see configure's option --config-cache.
15934 # It is not useful on other systems. If it contains results you don't
15935 # want to keep, you may remove or edit it.
15936 #
15937 # config.status only pays attention to the cache file if you give it
15938 # the --recheck option to rerun configure.
15939 #
15940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15942 # following values.
15943
15944 _ACEOF
15945
15946 # The following way of writing the cache mishandles newlines in values,
15947 # but we know of no workaround that is simple, portable, and efficient.
15948 # So, we kill variables containing newlines.
15949 # Ultrix sh set writes to stderr and can't be redirected directly,
15950 # and sets the high bit in the cache file unless we assign to the vars.
15951 (
15952 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15953 eval ac_val=\$$ac_var
15954 case $ac_val in #(
15955 *${as_nl}*)
15956 case $ac_var in #(
15957 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15958 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15959 esac
15960 case $ac_var in #(
15961 _ | IFS | as_nl) ;; #(
15962 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15963 *) { eval $ac_var=; unset $ac_var;} ;;
15964 esac ;;
15965 esac
15966 done
15967
15968 (set) 2>&1 |
15969 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15970 *${as_nl}ac_space=\ *)
15971 # `set' does not quote correctly, so add quotes: double-quote
15972 # substitution turns \\\\ into \\, and sed turns \\ into \.
15973 sed -n \
15974 "s/'/'\\\\''/g;
15975 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15976 ;; #(
15977 *)
15978 # `set' quotes correctly as required by POSIX, so do not add quotes.
15979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15980 ;;
15981 esac |
15982 sort
15983 ) |
15984 sed '
15985 /^ac_cv_env_/b end
15986 t clear
15987 :clear
15988 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15989 t end
15990 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15991 :end' >>confcache
15992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15993 if test -w "$cache_file"; then
15994 if test "x$cache_file" != "x/dev/null"; then
15995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15996 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15997 if test ! -f "$cache_file" || test -h "$cache_file"; then
15998 cat confcache >"$cache_file"
15999 else
16000 case $cache_file in #(
16001 */* | ?:*)
16002 mv -f confcache "$cache_file"$$ &&
16003 mv -f "$cache_file"$$ "$cache_file" ;; #(
16004 *)
16005 mv -f confcache "$cache_file" ;;
16006 esac
16007 fi
16008 fi
16009 else
16010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16011 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16012 fi
16013 fi
16014 rm -f confcache
16015
16016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16017 # Let make expand exec_prefix.
16018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16019
16020 DEFS=-DHAVE_CONFIG_H
16021
16022 ac_libobjs=
16023 ac_ltlibobjs=
16024 U=
16025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16026 # 1. Remove the extension, and $U if already installed.
16027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16028 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16030 # will be set to the directory where LIBOBJS objects are built.
16031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16033 done
16034 LIBOBJS=$ac_libobjs
16035
16036 LTLIBOBJS=$ac_ltlibobjs
16037
16038
16039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16040 printf %s "checking that generated files are newer than configure... " >&6; }
16041 if test -n "$am_sleep_pid"; then
16042 # Hide warnings about reused PIDs.
16043 wait $am_sleep_pid 2>/dev/null
16044 fi
16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
16046 printf "%s\n" "done" >&6; }
16047 if test -n "$EXEEXT"; then
16048 am__EXEEXT_TRUE=
16049 am__EXEEXT_FALSE='#'
16050 else
16051 am__EXEEXT_TRUE='#'
16052 am__EXEEXT_FALSE=
16053 fi
16054
16055 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16056 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16058 fi
16059 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16060 as_fn_error $? "conditional \"AMDEP\" was never defined.
16061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16062 fi
16063 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16064 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16066 fi
16067 if test -z "${WITH_GLOB_TRUE}" && test -z "${WITH_GLOB_FALSE}"; then
16068 as_fn_error $? "conditional \"WITH_GLOB\" was never defined.
16069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16070 fi
16071 if test -z "${WITH_HTTP_SOURCES_TRUE}" && test -z "${WITH_HTTP_SOURCES_FALSE}"; then
16072 as_fn_error $? "conditional \"WITH_HTTP_SOURCES\" was never defined.
16073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16074 fi
16075 if test -z "${WITH_READER_SOURCES_TRUE}" && test -z "${WITH_READER_SOURCES_FALSE}"; then
16076 as_fn_error $? "conditional \"WITH_READER_SOURCES\" was never defined.
16077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16078 fi
16079 if test -z "${WITH_WRITER_SOURCES_TRUE}" && test -z "${WITH_WRITER_SOURCES_FALSE}"; then
16080 as_fn_error $? "conditional \"WITH_WRITER_SOURCES\" was never defined.
16081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16082 fi
16083 if test -z "${WITH_PATTERN_SOURCES_TRUE}" && test -z "${WITH_PATTERN_SOURCES_FALSE}"; then
16084 as_fn_error $? "conditional \"WITH_PATTERN_SOURCES\" was never defined.
16085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16086 fi
16087 if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
16088 as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
16089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16090 fi
16091 if test -z "${WITH_HTML_SOURCES_TRUE}" && test -z "${WITH_HTML_SOURCES_FALSE}"; then
16092 as_fn_error $? "conditional \"WITH_HTML_SOURCES\" was never defined.
16093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16094 fi
16095 if test -z "${WITH_VALID_SOURCES_TRUE}" && test -z "${WITH_VALID_SOURCES_FALSE}"; then
16096 as_fn_error $? "conditional \"WITH_VALID_SOURCES\" was never defined.
16097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16098 fi
16099 if test -z "${WITH_CATALOG_SOURCES_TRUE}" && test -z "${WITH_CATALOG_SOURCES_FALSE}"; then
16100 as_fn_error $? "conditional \"WITH_CATALOG_SOURCES\" was never defined.
16101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16102 fi
16103 if test -z "${WITH_XPTR_SOURCES_TRUE}" && test -z "${WITH_XPTR_SOURCES_FALSE}"; then
16104 as_fn_error $? "conditional \"WITH_XPTR_SOURCES\" was never defined.
16105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16106 fi
16107 if test -z "${WITH_C14N_SOURCES_TRUE}" && test -z "${WITH_C14N_SOURCES_FALSE}"; then
16108 as_fn_error $? "conditional \"WITH_C14N_SOURCES\" was never defined.
16109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16110 fi
16111 if test -z "${WITH_XINCLUDE_SOURCES_TRUE}" && test -z "${WITH_XINCLUDE_SOURCES_FALSE}"; then
16112 as_fn_error $? "conditional \"WITH_XINCLUDE_SOURCES\" was never defined.
16113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16114 fi
16115 if test -z "${WITH_SCHEMATRON_SOURCES_TRUE}" && test -z "${WITH_SCHEMATRON_SOURCES_FALSE}"; then
16116 as_fn_error $? "conditional \"WITH_SCHEMATRON_SOURCES\" was never defined.
16117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16118 fi
16119 if test -z "${WITH_XPATH_SOURCES_TRUE}" && test -z "${WITH_XPATH_SOURCES_FALSE}"; then
16120 as_fn_error $? "conditional \"WITH_XPATH_SOURCES\" was never defined.
16121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16122 fi
16123 if test -z "${WITH_OUTPUT_SOURCES_TRUE}" && test -z "${WITH_OUTPUT_SOURCES_FALSE}"; then
16124 as_fn_error $? "conditional \"WITH_OUTPUT_SOURCES\" was never defined.
16125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16126 fi
16127 if test -z "${WITH_RELAXNG_SOURCES_TRUE}" && test -z "${WITH_RELAXNG_SOURCES_FALSE}"; then
16128 as_fn_error $? "conditional \"WITH_RELAXNG_SOURCES\" was never defined.
16129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16130 fi
16131 if test -z "${WITH_SCHEMAS_SOURCES_TRUE}" && test -z "${WITH_SCHEMAS_SOURCES_FALSE}"; then
16132 as_fn_error $? "conditional \"WITH_SCHEMAS_SOURCES\" was never defined.
16133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16134 fi
16135 if test -z "${WITH_REGEXPS_SOURCES_TRUE}" && test -z "${WITH_REGEXPS_SOURCES_FALSE}"; then
16136 as_fn_error $? "conditional \"WITH_REGEXPS_SOURCES\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138 fi
16139 if test -z "${WITH_DEBUG_SOURCES_TRUE}" && test -z "${WITH_DEBUG_SOURCES_FALSE}"; then
16140 as_fn_error $? "conditional \"WITH_DEBUG_SOURCES\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16142 fi
16143 if test -z "${WITH_DOCS_TRUE}" && test -z "${WITH_DOCS_FALSE}"; then
16144 as_fn_error $? "conditional \"WITH_DOCS\" was never defined.
16145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16146 fi
16147 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
16148 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
16149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16150 fi
16151 if test -z "${WITH_DOXYGEN_TRUE}" && test -z "${WITH_DOXYGEN_FALSE}"; then
16152 as_fn_error $? "conditional \"WITH_DOXYGEN\" was never defined.
16153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16154 fi
16155 if test -z "${WITH_MODULES_SOURCES_TRUE}" && test -z "${WITH_MODULES_SOURCES_FALSE}"; then
16156 as_fn_error $? "conditional \"WITH_MODULES_SOURCES\" was never defined.
16157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16158 fi
16159
16160 : "${CONFIG_STATUS=./config.status}"
16161 ac_write_fail=0
16162 ac_clean_files_save=$ac_clean_files
16163 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16165 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16166 as_write_fail=0
16167 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16168 #! $SHELL
16169 # Generated by $as_me.
16170 # Run this file to recreate the current configuration.
16171 # Compiler output produced by configure, useful for debugging
16172 # configure, is in config.log if it exists.
16173
16174 debug=false
16175 ac_cs_recheck=false
16176 ac_cs_silent=false
16177
16178 SHELL=\${CONFIG_SHELL-$SHELL}
16179 export SHELL
16180 _ASEOF
16181 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16182 ## -------------------- ##
16183 ## M4sh Initialization. ##
16184 ## -------------------- ##
16185
16186 # Be more Bourne compatible
16187 DUALCASE=1; export DUALCASE # for MKS sh
16188 as_nop=:
16189 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16190 then :
16191 emulate sh
16192 NULLCMD=:
16193 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16194 # is contrary to our usage. Disable this feature.
16195 alias -g '${1+"$@"}'='"$@"'
16196 setopt NO_GLOB_SUBST
16197 else $as_nop
16198 case `(set -o) 2>/dev/null` in #(
16199 *posix*) :
16200 set -o posix ;; #(
16201 *) :
16202 ;;
16203 esac
16204 fi
16205
16206
16207
16208 # Reset variables that may have inherited troublesome values from
16209 # the environment.
16210
16211 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16212 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16213 # side effect of setting IFS to empty, thus disabling word splitting.)
16214 # Quoting is to prevent editors from complaining about space-tab.
16215 as_nl='
16216 '
16217 export as_nl
16218 IFS=" "" $as_nl"
16219
16220 PS1='$ '
16221 PS2='> '
16222 PS4='+ '
16223
16224 # Ensure predictable behavior from utilities with locale-dependent output.
16225 LC_ALL=C
16226 export LC_ALL
16227 LANGUAGE=C
16228 export LANGUAGE
16229
16230 # We cannot yet rely on "unset" to work, but we need these variables
16231 # to be unset--not just set to an empty or harmless value--now, to
16232 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16233 # also avoids known problems related to "unset" and subshell syntax
16234 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16235 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16236 do eval test \${$as_var+y} \
16237 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16238 done
16239
16240 # Ensure that fds 0, 1, and 2 are open.
16241 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16242 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16243 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16244
16245 # The user is always right.
16246 if ${PATH_SEPARATOR+false} :; then
16247 PATH_SEPARATOR=:
16248 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16249 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16250 PATH_SEPARATOR=';'
16251 }
16252 fi
16253
16254
16255 # Find who we are. Look in the path if we contain no directory separator.
16256 as_myself=
16257 case $0 in #((
16258 *[\\/]* ) as_myself=$0 ;;
16259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16260 for as_dir in $PATH
16261 do
16262 IFS=$as_save_IFS
16263 case $as_dir in #(((
16264 '') as_dir=./ ;;
16265 */) ;;
16266 *) as_dir=$as_dir/ ;;
16267 esac
16268 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16269 done
16270 IFS=$as_save_IFS
16271
16272 ;;
16273 esac
16274 # We did not find ourselves, most probably we were run as `sh COMMAND'
16275 # in which case we are not to be found in the path.
16276 if test "x$as_myself" = x; then
16277 as_myself=$0
16278 fi
16279 if test ! -f "$as_myself"; then
16280 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16281 exit 1
16282 fi
16283
16284
16285
16286 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16287 # ----------------------------------------
16288 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16289 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16290 # script with STATUS, using 1 if that was 0.
16291 as_fn_error ()
16292 {
16293 as_status=$1; test $as_status -eq 0 && as_status=1
16294 if test "$4"; then
16295 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16297 fi
16298 printf "%s\n" "$as_me: error: $2" >&2
16299 as_fn_exit $as_status
16300 } # as_fn_error
16301
16302
16303
16304 # as_fn_set_status STATUS
16305 # -----------------------
16306 # Set $? to STATUS, without forking.
16307 as_fn_set_status ()
16308 {
16309 return $1
16310 } # as_fn_set_status
16311
16312 # as_fn_exit STATUS
16313 # -----------------
16314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16315 as_fn_exit ()
16316 {
16317 set +e
16318 as_fn_set_status $1
16319 exit $1
16320 } # as_fn_exit
16321
16322 # as_fn_unset VAR
16323 # ---------------
16324 # Portably unset VAR.
16325 as_fn_unset ()
16326 {
16327 { eval $1=; unset $1;}
16328 }
16329 as_unset=as_fn_unset
16330
16331 # as_fn_append VAR VALUE
16332 # ----------------------
16333 # Append the text in VALUE to the end of the definition contained in VAR. Take
16334 # advantage of any shell optimizations that allow amortized linear growth over
16335 # repeated appends, instead of the typical quadratic growth present in naive
16336 # implementations.
16337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16338 then :
16339 eval 'as_fn_append ()
16340 {
16341 eval $1+=\$2
16342 }'
16343 else $as_nop
16344 as_fn_append ()
16345 {
16346 eval $1=\$$1\$2
16347 }
16348 fi # as_fn_append
16349
16350 # as_fn_arith ARG...
16351 # ------------------
16352 # Perform arithmetic evaluation on the ARGs, and store the result in the
16353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16354 # must be portable across $(()) and expr.
16355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16356 then :
16357 eval 'as_fn_arith ()
16358 {
16359 as_val=$(( $* ))
16360 }'
16361 else $as_nop
16362 as_fn_arith ()
16363 {
16364 as_val=`expr "$@" || test $? -eq 1`
16365 }
16366 fi # as_fn_arith
16367
16368
16369 if expr a : '\(a\)' >/dev/null 2>&1 &&
16370 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16371 as_expr=expr
16372 else
16373 as_expr=false
16374 fi
16375
16376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16377 as_basename=basename
16378 else
16379 as_basename=false
16380 fi
16381
16382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16383 as_dirname=dirname
16384 else
16385 as_dirname=false
16386 fi
16387
16388 as_me=`$as_basename -- "$0" ||
16389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16390 X"$0" : 'X\(//\)$' \| \
16391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16392 printf "%s\n" X/"$0" |
16393 sed '/^.*\/\([^/][^/]*\)\/*$/{
16394 s//\1/
16395 q
16396 }
16397 /^X\/\(\/\/\)$/{
16398 s//\1/
16399 q
16400 }
16401 /^X\/\(\/\).*/{
16402 s//\1/
16403 q
16404 }
16405 s/.*/./; q'`
16406
16407 # Avoid depending upon Character Ranges.
16408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16411 as_cr_digits='0123456789'
16412 as_cr_alnum=$as_cr_Letters$as_cr_digits
16413
16414
16415 # Determine whether it's possible to make 'echo' print without a newline.
16416 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16417 # for compatibility with existing Makefiles.
16418 ECHO_C= ECHO_N= ECHO_T=
16419 case `echo -n x` in #(((((
16420 -n*)
16421 case `echo 'xy\c'` in
16422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16423 xy) ECHO_C='\c';;
16424 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16425 ECHO_T=' ';;
16426 esac;;
16427 *)
16428 ECHO_N='-n';;
16429 esac
16430
16431 # For backward compatibility with old third-party macros, we provide
16432 # the shell variables $as_echo and $as_echo_n. New code should use
16433 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16434 as_echo='printf %s\n'
16435 as_echo_n='printf %s'
16436
16437 rm -f conf$$ conf$$.exe conf$$.file
16438 if test -d conf$$.dir; then
16439 rm -f conf$$.dir/conf$$.file
16440 else
16441 rm -f conf$$.dir
16442 mkdir conf$$.dir 2>/dev/null
16443 fi
16444 if (echo >conf$$.file) 2>/dev/null; then
16445 if ln -s conf$$.file conf$$ 2>/dev/null; then
16446 as_ln_s='ln -s'
16447 # ... but there are two gotchas:
16448 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16449 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16450 # In both cases, we have to default to `cp -pR'.
16451 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16452 as_ln_s='cp -pR'
16453 elif ln conf$$.file conf$$ 2>/dev/null; then
16454 as_ln_s=ln
16455 else
16456 as_ln_s='cp -pR'
16457 fi
16458 else
16459 as_ln_s='cp -pR'
16460 fi
16461 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16462 rmdir conf$$.dir 2>/dev/null
16463
16464
16465 # as_fn_mkdir_p
16466 # -------------
16467 # Create "$as_dir" as a directory, including parents if necessary.
16468 as_fn_mkdir_p ()
16469 {
16470
16471 case $as_dir in #(
16472 -*) as_dir=./$as_dir;;
16473 esac
16474 test -d "$as_dir" || eval $as_mkdir_p || {
16475 as_dirs=
16476 while :; do
16477 case $as_dir in #(
16478 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16479 *) as_qdir=$as_dir;;
16480 esac
16481 as_dirs="'$as_qdir' $as_dirs"
16482 as_dir=`$as_dirname -- "$as_dir" ||
16483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16484 X"$as_dir" : 'X\(//\)[^/]' \| \
16485 X"$as_dir" : 'X\(//\)$' \| \
16486 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16487 printf "%s\n" X"$as_dir" |
16488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16489 s//\1/
16490 q
16491 }
16492 /^X\(\/\/\)[^/].*/{
16493 s//\1/
16494 q
16495 }
16496 /^X\(\/\/\)$/{
16497 s//\1/
16498 q
16499 }
16500 /^X\(\/\).*/{
16501 s//\1/
16502 q
16503 }
16504 s/.*/./; q'`
16505 test -d "$as_dir" && break
16506 done
16507 test -z "$as_dirs" || eval "mkdir $as_dirs"
16508 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16509
16510
16511 } # as_fn_mkdir_p
16512 if mkdir -p . 2>/dev/null; then
16513 as_mkdir_p='mkdir -p "$as_dir"'
16514 else
16515 test -d ./-p && rmdir ./-p
16516 as_mkdir_p=false
16517 fi
16518
16519
16520 # as_fn_executable_p FILE
16521 # -----------------------
16522 # Test if FILE is an executable regular file.
16523 as_fn_executable_p ()
16524 {
16525 test -f "$1" && test -x "$1"
16526 } # as_fn_executable_p
16527 as_test_x='test -x'
16528 as_executable_p=as_fn_executable_p
16529
16530 # Sed expression to map a string onto a valid CPP name.
16531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16532
16533 # Sed expression to map a string onto a valid variable name.
16534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16535
16536
16537 exec 6>&1
16538 ## ----------------------------------- ##
16539 ## Main body of $CONFIG_STATUS script. ##
16540 ## ----------------------------------- ##
16541 _ASEOF
16542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16543
16544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16545 # Save the log message, to keep $0 and so on meaningful, and to
16546 # report actual input values of CONFIG_FILES etc. instead of their
16547 # values after options handling.
16548 ac_log="
16549 This file was extended by libxml2 $as_me 2.15.3, which was
16550 generated by GNU Autoconf 2.71. Invocation command line was
16551
16552 CONFIG_FILES = $CONFIG_FILES
16553 CONFIG_HEADERS = $CONFIG_HEADERS
16554 CONFIG_LINKS = $CONFIG_LINKS
16555 CONFIG_COMMANDS = $CONFIG_COMMANDS
16556 $ $0 $@
16557
16558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16559 "
16560
16561 _ACEOF
16562
16563 case $ac_config_files in *"
16564 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16565 esac
16566
16567 case $ac_config_headers in *"
16568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16569 esac
16570
16571
16572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16573 # Files that config.status was made for.
16574 config_files="$ac_config_files"
16575 config_headers="$ac_config_headers"
16576 config_commands="$ac_config_commands"
16577
16578 _ACEOF
16579
16580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16581 ac_cs_usage="\
16582 \`$as_me' instantiates files and other configuration actions
16583 from templates according to the current configuration. Unless the files
16584 and actions are specified as TAGs, all are instantiated by default.
16585
16586 Usage: $0 [OPTION]... [TAG]...
16587
16588 -h, --help print this help, then exit
16589 -V, --version print version number and configuration settings, then exit
16590 --config print configuration, then exit
16591 -q, --quiet, --silent
16592 do not print progress messages
16593 -d, --debug don't remove temporary files
16594 --recheck update $as_me by reconfiguring in the same conditions
16595 --file=FILE[:TEMPLATE]
16596 instantiate the configuration file FILE
16597 --header=FILE[:TEMPLATE]
16598 instantiate the configuration header FILE
16599
16600 Configuration files:
16601 $config_files
16602
16603 Configuration headers:
16604 $config_headers
16605
16606 Configuration commands:
16607 $config_commands
16608
16609 Report bugs to the package provider."
16610
16611 _ACEOF
16612 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16613 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16615 ac_cs_config='$ac_cs_config_escaped'
16616 ac_cs_version="\\
16617 libxml2 config.status 2.15.3
16618 configured by $0, generated by GNU Autoconf 2.71,
16619 with options \\"\$ac_cs_config\\"
16620
16621 Copyright (C) 2021 Free Software Foundation, Inc.
16622 This config.status script is free software; the Free Software Foundation
16623 gives unlimited permission to copy, distribute and modify it."
16624
16625 ac_pwd='$ac_pwd'
16626 srcdir='$srcdir'
16627 INSTALL='$INSTALL'
16628 MKDIR_P='$MKDIR_P'
16629 AWK='$AWK'
16630 test -n "\$AWK" || AWK=awk
16631 _ACEOF
16632
16633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16634 # The default lists apply if the user does not specify any file.
16635 ac_need_defaults=:
16636 while test $# != 0
16637 do
16638 case $1 in
16639 --*=?*)
16640 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16641 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16642 ac_shift=:
16643 ;;
16644 --*=)
16645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16646 ac_optarg=
16647 ac_shift=:
16648 ;;
16649 *)
16650 ac_option=$1
16651 ac_optarg=$2
16652 ac_shift=shift
16653 ;;
16654 esac
16655
16656 case $ac_option in
16657 # Handling of the options.
16658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16659 ac_cs_recheck=: ;;
16660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16661 printf "%s\n" "$ac_cs_version"; exit ;;
16662 --config | --confi | --conf | --con | --co | --c )
16663 printf "%s\n" "$ac_cs_config"; exit ;;
16664 --debug | --debu | --deb | --de | --d | -d )
16665 debug=: ;;
16666 --file | --fil | --fi | --f )
16667 $ac_shift
16668 case $ac_optarg in
16669 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16670 '') as_fn_error $? "missing file argument" ;;
16671 esac
16672 as_fn_append CONFIG_FILES " '$ac_optarg'"
16673 ac_need_defaults=false;;
16674 --header | --heade | --head | --hea )
16675 $ac_shift
16676 case $ac_optarg in
16677 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16678 esac
16679 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16680 ac_need_defaults=false;;
16681 --he | --h)
16682 # Conflict between --help and --header
16683 as_fn_error $? "ambiguous option: \`$1'
16684 Try \`$0 --help' for more information.";;
16685 --help | --hel | -h )
16686 printf "%s\n" "$ac_cs_usage"; exit ;;
16687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16689 ac_cs_silent=: ;;
16690
16691 # This is an error.
16692 -*) as_fn_error $? "unrecognized option: \`$1'
16693 Try \`$0 --help' for more information." ;;
16694
16695 *) as_fn_append ac_config_targets " $1"
16696 ac_need_defaults=false ;;
16697
16698 esac
16699 shift
16700 done
16701
16702 ac_configure_extra_args=
16703
16704 if $ac_cs_silent; then
16705 exec 6>/dev/null
16706 ac_configure_extra_args="$ac_configure_extra_args --silent"
16707 fi
16708
16709 _ACEOF
16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16711 if \$ac_cs_recheck; then
16712 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16713 shift
16714 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16715 CONFIG_SHELL='$SHELL'
16716 export CONFIG_SHELL
16717 exec "\$@"
16718 fi
16719
16720 _ACEOF
16721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16722 exec 5>>config.log
16723 {
16724 echo
16725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16726 ## Running $as_me. ##
16727 _ASBOX
16728 printf "%s\n" "$ac_log"
16729 } >&5
16730
16731 _ACEOF
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 #
16734 # INIT-COMMANDS
16735 #
16736 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16737
16738
16739 # The HP-UX ksh and POSIX shell print the target directory to stdout
16740 # if CDPATH is set.
16741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16742
16743 sed_quote_subst='$sed_quote_subst'
16744 double_quote_subst='$double_quote_subst'
16745 delay_variable_subst='$delay_variable_subst'
16746 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16747 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16748 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16750 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16751 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16752 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16753 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16754 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16755 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16756 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16757 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16758 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16759 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16760 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16761 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16762 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16763 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16764 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16765 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16766 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16767 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16768 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16769 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16770 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16771 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16772 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16773 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16774 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16775 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16776 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16777 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16778 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16779 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16780 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
16781 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16782 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16783 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16784 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16785 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16786 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16787 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16788 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16789 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
16790 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16791 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16792 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16793 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16794 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16795 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16796 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16797 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16798 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16799 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16800 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16801 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16802 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16803 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16804 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16805 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16806 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"`'
16807 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16808 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16809 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16810 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16811 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16812 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16813 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16814 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16815 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16816 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16817 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16818 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16819 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16820 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16821 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16822 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16823 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16824 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16825 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16826 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16827 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16828 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16829 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16830 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16831 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16832 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16833 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16834 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16835 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16836 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16837 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16838 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16839 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16840 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16841 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16842 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16843 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16844 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16845 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16846 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16847 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16848 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16849 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16850 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16851 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16852 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16853 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16854 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16855 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16856 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16857 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16858 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16859 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16860 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16861 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16862 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16863 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16864 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16865 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16866 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16867 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16868 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16869 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16870 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16871 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16872 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16873 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16874 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16875 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16876 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16877 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16878 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16879 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16880 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16881 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16882 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16883
16884 LTCC='$LTCC'
16885 LTCFLAGS='$LTCFLAGS'
16886 compiler='$compiler_DEFAULT'
16887
16888 # A function that is used when there is no print builtin or printf.
16889 func_fallback_echo ()
16890 {
16891 eval 'cat <<_LTECHO_EOF
16892 \$1
16893 _LTECHO_EOF'
16894 }
16895
16896 # Quote evaled strings.
16897 for var in SHELL \
16898 ECHO \
16899 PATH_SEPARATOR \
16900 SED \
16901 GREP \
16902 EGREP \
16903 FGREP \
16904 LD \
16905 NM \
16906 LN_S \
16907 lt_SP2NL \
16908 lt_NL2SP \
16909 reload_flag \
16910 FILECMD \
16911 OBJDUMP \
16912 deplibs_check_method \
16913 file_magic_cmd \
16914 file_magic_glob \
16915 want_nocaseglob \
16916 DLLTOOL \
16917 sharedlib_from_linklib_cmd \
16918 AR \
16919 archiver_list_spec \
16920 STRIP \
16921 RANLIB \
16922 CC \
16923 CFLAGS \
16924 compiler \
16925 lt_cv_sys_global_symbol_pipe \
16926 lt_cv_sys_global_symbol_to_cdecl \
16927 lt_cv_sys_global_symbol_to_import \
16928 lt_cv_sys_global_symbol_to_c_name_address \
16929 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16930 lt_cv_nm_interface \
16931 nm_file_list_spec \
16932 lt_cv_truncate_bin \
16933 lt_prog_compiler_no_builtin_flag \
16934 lt_prog_compiler_pic \
16935 lt_prog_compiler_wl \
16936 lt_prog_compiler_static \
16937 lt_cv_prog_compiler_c_o \
16938 need_locks \
16939 MANIFEST_TOOL \
16940 DSYMUTIL \
16941 NMEDIT \
16942 LIPO \
16943 OTOOL \
16944 OTOOL64 \
16945 shrext_cmds \
16946 export_dynamic_flag_spec \
16947 whole_archive_flag_spec \
16948 compiler_needs_object \
16949 with_gnu_ld \
16950 allow_undefined_flag \
16951 no_undefined_flag \
16952 hardcode_libdir_flag_spec \
16953 hardcode_libdir_separator \
16954 exclude_expsyms \
16955 include_expsyms \
16956 file_list_spec \
16957 variables_saved_for_relink \
16958 libname_spec \
16959 library_names_spec \
16960 soname_spec \
16961 install_override_mode \
16962 finish_eval \
16963 old_striplib \
16964 striplib; do
16965 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16966 *[\\\\\\\`\\"\\\$]*)
16967 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16968 ;;
16969 *)
16970 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16971 ;;
16972 esac
16973 done
16974
16975 # Double-quote double-evaled strings.
16976 for var in reload_cmds \
16977 old_postinstall_cmds \
16978 old_postuninstall_cmds \
16979 old_archive_cmds \
16980 extract_expsyms_cmds \
16981 old_archive_from_new_cmds \
16982 old_archive_from_expsyms_cmds \
16983 archive_cmds \
16984 archive_expsym_cmds \
16985 module_cmds \
16986 module_expsym_cmds \
16987 export_symbols_cmds \
16988 prelink_cmds \
16989 postlink_cmds \
16990 postinstall_cmds \
16991 postuninstall_cmds \
16992 finish_cmds \
16993 sys_lib_search_path_spec \
16994 configure_time_dlsearch_path \
16995 configure_time_lt_sys_library_path; do
16996 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16997 *[\\\\\\\`\\"\\\$]*)
16998 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16999 ;;
17000 *)
17001 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17002 ;;
17003 esac
17004 done
17005
17006 ac_aux_dir='$ac_aux_dir'
17007
17008 # See if we are running on zsh, and set the options that allow our
17009 # commands through without removal of \ escapes INIT.
17010 if test -n "\${ZSH_VERSION+set}"; then
17011 setopt NO_GLOB_SUBST
17012 fi
17013
17014
17015 PACKAGE='$PACKAGE'
17016 VERSION='$VERSION'
17017 RM='$RM'
17018 ofile='$ofile'
17019
17020
17021
17022
17023 _ACEOF
17024
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026
17027 # Handling of arguments.
17028 for ac_config_target in $ac_config_targets
17029 do
17030 case $ac_config_target in
17031 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17032 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17033 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17034 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17035 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17036 "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
17037 "include/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/private/Makefile" ;;
17038 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17039 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
17040 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
17041 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
17042 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
17043 "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
17044 "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
17045 "libxml2-config.cmake") CONFIG_FILES="$CONFIG_FILES libxml2-config.cmake" ;;
17046 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
17047 "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
17048
17049 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17050 esac
17051 done
17052
17053
17054 # If the user did not use the arguments to specify the items to instantiate,
17055 # then the envvar interface is used. Set only those that are not.
17056 # We use the long form for the default assignment because of an extremely
17057 # bizarre bug on SunOS 4.1.3.
17058 if $ac_need_defaults; then
17059 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17060 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
17061 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
17062 fi
17063
17064 # Have a temporary directory for convenience. Make it in the build tree
17065 # simply because there is no reason against having it here, and in addition,
17066 # creating and moving files from /tmp can sometimes cause problems.
17067 # Hook for its removal unless debugging.
17068 # Note that there is a small window in which the directory will not be cleaned:
17069 # after its creation but before its name has been assigned to `$tmp'.
17070 $debug ||
17071 {
17072 tmp= ac_tmp=
17073 trap 'exit_status=$?
17074 : "${ac_tmp:=$tmp}"
17075 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17076 ' 0
17077 trap 'as_fn_exit 1' 1 2 13 15
17078 }
17079 # Create a (secure) tmp directory for tmp files.
17080
17081 {
17082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17083 test -d "$tmp"
17084 } ||
17085 {
17086 tmp=./conf$$-$RANDOM
17087 (umask 077 && mkdir "$tmp")
17088 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17089 ac_tmp=$tmp
17090
17091 # Set up the scripts for CONFIG_FILES section.
17092 # No need to generate them if there are no CONFIG_FILES.
17093 # This happens for instance with `./config.status config.h'.
17094 if test -n "$CONFIG_FILES"; then
17095
17096
17097 ac_cr=`echo X | tr X '\015'`
17098 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17099 # But we know of no other shell where ac_cr would be empty at this
17100 # point, so we can use a bashism as a fallback.
17101 if test "x$ac_cr" = x; then
17102 eval ac_cr=\$\'\\r\'
17103 fi
17104 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17105 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17106 ac_cs_awk_cr='\\r'
17107 else
17108 ac_cs_awk_cr=$ac_cr
17109 fi
17110
17111 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17112 _ACEOF
17113
17114
17115 {
17116 echo "cat >conf$$subs.awk <<_ACEOF" &&
17117 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17118 echo "_ACEOF"
17119 } >conf$$subs.sh ||
17120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17121 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17122 ac_delim='%!_!# '
17123 for ac_last_try in false false false false false :; do
17124 . ./conf$$subs.sh ||
17125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17126
17127 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17128 if test $ac_delim_n = $ac_delim_num; then
17129 break
17130 elif $ac_last_try; then
17131 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17132 else
17133 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17134 fi
17135 done
17136 rm -f conf$$subs.sh
17137
17138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17139 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17140 _ACEOF
17141 sed -n '
17142 h
17143 s/^/S["/; s/!.*/"]=/
17144 p
17145 g
17146 s/^[^!]*!//
17147 :repl
17148 t repl
17149 s/'"$ac_delim"'$//
17150 t delim
17151 :nl
17152 h
17153 s/\(.\{148\}\)..*/\1/
17154 t more1
17155 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17156 p
17157 n
17158 b repl
17159 :more1
17160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17161 p
17162 g
17163 s/.\{148\}//
17164 t nl
17165 :delim
17166 h
17167 s/\(.\{148\}\)..*/\1/
17168 t more2
17169 s/["\\]/\\&/g; s/^/"/; s/$/"/
17170 p
17171 b
17172 :more2
17173 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17174 p
17175 g
17176 s/.\{148\}//
17177 t delim
17178 ' <conf$$subs.awk | sed '
17179 /^[^""]/{
17180 N
17181 s/\n//
17182 }
17183 ' >>$CONFIG_STATUS || ac_write_fail=1
17184 rm -f conf$$subs.awk
17185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17186 _ACAWK
17187 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17188 for (key in S) S_is_set[key] = 1
17189 FS = ""
17190
17191 }
17192 {
17193 line = $ 0
17194 nfields = split(line, field, "@")
17195 substed = 0
17196 len = length(field[1])
17197 for (i = 2; i < nfields; i++) {
17198 key = field[i]
17199 keylen = length(key)
17200 if (S_is_set[key]) {
17201 value = S[key]
17202 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17203 len += length(value) + length(field[++i])
17204 substed = 1
17205 } else
17206 len += 1 + keylen
17207 }
17208
17209 print line
17210 }
17211
17212 _ACAWK
17213 _ACEOF
17214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17215 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17216 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17217 else
17218 cat
17219 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17220 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17221 _ACEOF
17222
17223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17225 # trailing colons and then remove the whole line if VPATH becomes empty
17226 # (actually we leave an empty line to preserve line numbers).
17227 if test "x$srcdir" = x.; then
17228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17229 h
17230 s///
17231 s/^/:/
17232 s/[ ]*$/:/
17233 s/:\$(srcdir):/:/g
17234 s/:\${srcdir}:/:/g
17235 s/:@srcdir@:/:/g
17236 s/^:*//
17237 s/:*$//
17238 x
17239 s/\(=[ ]*\).*/\1/
17240 G
17241 s/\n//
17242 s/^[^=]*=[ ]*$//
17243 }'
17244 fi
17245
17246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17247 fi # test -n "$CONFIG_FILES"
17248
17249 # Set up the scripts for CONFIG_HEADERS section.
17250 # No need to generate them if there are no CONFIG_HEADERS.
17251 # This happens for instance with `./config.status Makefile'.
17252 if test -n "$CONFIG_HEADERS"; then
17253 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17254 BEGIN {
17255 _ACEOF
17256
17257 # Transform confdefs.h into an awk script `defines.awk', embedded as
17258 # here-document in config.status, that substitutes the proper values into
17259 # config.h.in to produce config.h.
17260
17261 # Create a delimiter string that does not exist in confdefs.h, to ease
17262 # handling of long lines.
17263 ac_delim='%!_!# '
17264 for ac_last_try in false false :; do
17265 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17266 if test -z "$ac_tt"; then
17267 break
17268 elif $ac_last_try; then
17269 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17270 else
17271 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17272 fi
17273 done
17274
17275 # For the awk script, D is an array of macro values keyed by name,
17276 # likewise P contains macro parameters if any. Preserve backslash
17277 # newline sequences.
17278
17279 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17280 sed -n '
17281 s/.\{148\}/&'"$ac_delim"'/g
17282 t rset
17283 :rset
17284 s/^[ ]*#[ ]*define[ ][ ]*/ /
17285 t def
17286 d
17287 :def
17288 s/\\$//
17289 t bsnl
17290 s/["\\]/\\&/g
17291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17292 D["\1"]=" \3"/p
17293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17294 d
17295 :bsnl
17296 s/["\\]/\\&/g
17297 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17298 D["\1"]=" \3\\\\\\n"\\/p
17299 t cont
17300 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17301 t cont
17302 d
17303 :cont
17304 n
17305 s/.\{148\}/&'"$ac_delim"'/g
17306 t clear
17307 :clear
17308 s/\\$//
17309 t bsnlc
17310 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17311 d
17312 :bsnlc
17313 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17314 b cont
17315 ' <confdefs.h | sed '
17316 s/'"$ac_delim"'/"\\\
17317 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17318
17319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320 for (key in D) D_is_set[key] = 1
17321 FS = ""
17322 }
17323 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17324 line = \$ 0
17325 split(line, arg, " ")
17326 if (arg[1] == "#") {
17327 defundef = arg[2]
17328 mac1 = arg[3]
17329 } else {
17330 defundef = substr(arg[1], 2)
17331 mac1 = arg[2]
17332 }
17333 split(mac1, mac2, "(") #)
17334 macro = mac2[1]
17335 prefix = substr(line, 1, index(line, defundef) - 1)
17336 if (D_is_set[macro]) {
17337 # Preserve the white space surrounding the "#".
17338 print prefix "define", macro P[macro] D[macro]
17339 next
17340 } else {
17341 # Replace #undef with comments. This is necessary, for example,
17342 # in the case of _POSIX_SOURCE, which is predefined and required
17343 # on some systems where configure will not decide to define it.
17344 if (defundef == "undef") {
17345 print "/*", prefix defundef, macro, "*/"
17346 next
17347 }
17348 }
17349 }
17350 { print }
17351 _ACAWK
17352 _ACEOF
17353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17354 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17355 fi # test -n "$CONFIG_HEADERS"
17356
17357
17358 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17359 shift
17360 for ac_tag
17361 do
17362 case $ac_tag in
17363 :[FHLC]) ac_mode=$ac_tag; continue;;
17364 esac
17365 case $ac_mode$ac_tag in
17366 :[FHL]*:*);;
17367 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17368 :[FH]-) ac_tag=-:-;;
17369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17370 esac
17371 ac_save_IFS=$IFS
17372 IFS=:
17373 set x $ac_tag
17374 IFS=$ac_save_IFS
17375 shift
17376 ac_file=$1
17377 shift
17378
17379 case $ac_mode in
17380 :L) ac_source=$1;;
17381 :[FH])
17382 ac_file_inputs=
17383 for ac_f
17384 do
17385 case $ac_f in
17386 -) ac_f="$ac_tmp/stdin";;
17387 *) # Look for the file first in the build tree, then in the source tree
17388 # (if the path is not absolute). The absolute path cannot be DOS-style,
17389 # because $ac_f cannot contain `:'.
17390 test -f "$ac_f" ||
17391 case $ac_f in
17392 [\\/$]*) false;;
17393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17394 esac ||
17395 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17396 esac
17397 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17398 as_fn_append ac_file_inputs " '$ac_f'"
17399 done
17400
17401 # Let's still pretend it is `configure' which instantiates (i.e., don't
17402 # use $as_me), people would be surprised to read:
17403 # /* config.h. Generated by config.status. */
17404 configure_input='Generated from '`
17405 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17406 `' by configure.'
17407 if test x"$ac_file" != x-; then
17408 configure_input="$ac_file. $configure_input"
17409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17410 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17411 fi
17412 # Neutralize special characters interpreted by sed in replacement strings.
17413 case $configure_input in #(
17414 *\&* | *\|* | *\\* )
17415 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17416 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17417 *) ac_sed_conf_input=$configure_input;;
17418 esac
17419
17420 case $ac_tag in
17421 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17423 esac
17424 ;;
17425 esac
17426
17427 ac_dir=`$as_dirname -- "$ac_file" ||
17428 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17429 X"$ac_file" : 'X\(//\)[^/]' \| \
17430 X"$ac_file" : 'X\(//\)$' \| \
17431 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17432 printf "%s\n" X"$ac_file" |
17433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17434 s//\1/
17435 q
17436 }
17437 /^X\(\/\/\)[^/].*/{
17438 s//\1/
17439 q
17440 }
17441 /^X\(\/\/\)$/{
17442 s//\1/
17443 q
17444 }
17445 /^X\(\/\).*/{
17446 s//\1/
17447 q
17448 }
17449 s/.*/./; q'`
17450 as_dir="$ac_dir"; as_fn_mkdir_p
17451 ac_builddir=.
17452
17453 case "$ac_dir" in
17454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17455 *)
17456 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17457 # A ".." for each directory in $ac_dir_suffix.
17458 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17459 case $ac_top_builddir_sub in
17460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17462 esac ;;
17463 esac
17464 ac_abs_top_builddir=$ac_pwd
17465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17466 # for backward compatibility:
17467 ac_top_builddir=$ac_top_build_prefix
17468
17469 case $srcdir in
17470 .) # We are building in place.
17471 ac_srcdir=.
17472 ac_top_srcdir=$ac_top_builddir_sub
17473 ac_abs_top_srcdir=$ac_pwd ;;
17474 [\\/]* | ?:[\\/]* ) # Absolute name.
17475 ac_srcdir=$srcdir$ac_dir_suffix;
17476 ac_top_srcdir=$srcdir
17477 ac_abs_top_srcdir=$srcdir ;;
17478 *) # Relative name.
17479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17480 ac_top_srcdir=$ac_top_build_prefix$srcdir
17481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17482 esac
17483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17484
17485
17486 case $ac_mode in
17487 :F)
17488 #
17489 # CONFIG_FILE
17490 #
17491
17492 case $INSTALL in
17493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17495 esac
17496 ac_MKDIR_P=$MKDIR_P
17497 case $MKDIR_P in
17498 [\\/$]* | ?:[\\/]* ) ;;
17499 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17500 esac
17501 _ACEOF
17502
17503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17504 # If the template does not know about datarootdir, expand it.
17505 # FIXME: This hack should be removed a few years after 2.60.
17506 ac_datarootdir_hack=; ac_datarootdir_seen=
17507 ac_sed_dataroot='
17508 /datarootdir/ {
17509 p
17510 q
17511 }
17512 /@datadir@/p
17513 /@docdir@/p
17514 /@infodir@/p
17515 /@localedir@/p
17516 /@mandir@/p'
17517 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17518 *datarootdir*) ac_datarootdir_seen=yes;;
17519 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17521 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17522 _ACEOF
17523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17524 ac_datarootdir_hack='
17525 s&@datadir@&$datadir&g
17526 s&@docdir@&$docdir&g
17527 s&@infodir@&$infodir&g
17528 s&@localedir@&$localedir&g
17529 s&@mandir@&$mandir&g
17530 s&\\\${datarootdir}&$datarootdir&g' ;;
17531 esac
17532 _ACEOF
17533
17534 # Neutralize VPATH when `$srcdir' = `.'.
17535 # Shell code in configure.ac might set extrasub.
17536 # FIXME: do we really want to maintain this feature?
17537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17538 ac_sed_extra="$ac_vpsub
17539 $extrasub
17540 _ACEOF
17541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17542 :t
17543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17544 s|@configure_input@|$ac_sed_conf_input|;t t
17545 s&@top_builddir@&$ac_top_builddir_sub&;t t
17546 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17547 s&@srcdir@&$ac_srcdir&;t t
17548 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17549 s&@top_srcdir@&$ac_top_srcdir&;t t
17550 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17551 s&@builddir@&$ac_builddir&;t t
17552 s&@abs_builddir@&$ac_abs_builddir&;t t
17553 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17554 s&@INSTALL@&$ac_INSTALL&;t t
17555 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17556 $ac_datarootdir_hack
17557 "
17558 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17559 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17560
17561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17562 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17564 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17566 which seems to be undefined. Please make sure it is defined" >&5
17567 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17568 which seems to be undefined. Please make sure it is defined" >&2;}
17569
17570 rm -f "$ac_tmp/stdin"
17571 case $ac_file in
17572 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17573 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17574 esac \
17575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17576 ;;
17577 :H)
17578 #
17579 # CONFIG_HEADER
17580 #
17581 if test x"$ac_file" != x-; then
17582 {
17583 printf "%s\n" "/* $configure_input */" >&1 \
17584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17585 } >"$ac_tmp/config.h" \
17586 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17587 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17589 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17590 else
17591 rm -f "$ac_file"
17592 mv "$ac_tmp/config.h" "$ac_file" \
17593 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17594 fi
17595 else
17596 printf "%s\n" "/* $configure_input */" >&1 \
17597 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17598 || as_fn_error $? "could not create -" "$LINENO" 5
17599 fi
17600 # Compute "$ac_file"'s index in $config_headers.
17601 _am_arg="$ac_file"
17602 _am_stamp_count=1
17603 for _am_header in $config_headers :; do
17604 case $_am_header in
17605 $_am_arg | $_am_arg:* )
17606 break ;;
17607 * )
17608 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17609 esac
17610 done
17611 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17612 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17613 X"$_am_arg" : 'X\(//\)[^/]' \| \
17614 X"$_am_arg" : 'X\(//\)$' \| \
17615 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17616 printf "%s\n" X"$_am_arg" |
17617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17618 s//\1/
17619 q
17620 }
17621 /^X\(\/\/\)[^/].*/{
17622 s//\1/
17623 q
17624 }
17625 /^X\(\/\/\)$/{
17626 s//\1/
17627 q
17628 }
17629 /^X\(\/\).*/{
17630 s//\1/
17631 q
17632 }
17633 s/.*/./; q'`/stamp-h$_am_stamp_count
17634 ;;
17635
17636 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17637 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17638 ;;
17639 esac
17640
17641
17642 case $ac_file$ac_mode in
17643 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17644 # Older Autoconf quotes --file arguments for eval, but not when files
17645 # are listed without --file. Let's play safe and only enable the eval
17646 # if we detect the quoting.
17647 # TODO: see whether this extra hack can be removed once we start
17648 # requiring Autoconf 2.70 or later.
17649 case $CONFIG_FILES in #(
17650 *\'*) :
17651 eval set x "$CONFIG_FILES" ;; #(
17652 *) :
17653 set x $CONFIG_FILES ;; #(
17654 *) :
17655 ;;
17656 esac
17657 shift
17658 # Used to flag and report bootstrapping failures.
17659 am_rc=0
17660 for am_mf
17661 do
17662 # Strip MF so we end up with the name of the file.
17663 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17664 # Check whether this is an Automake generated Makefile which includes
17665 # dependency-tracking related rules and includes.
17666 # Grep'ing the whole file directly is not great: AIX grep has a line
17667 # limit of 2048, but all sed's we know have understand at least 4000.
17668 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17669 || continue
17670 am_dirpart=`$as_dirname -- "$am_mf" ||
17671 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17672 X"$am_mf" : 'X\(//\)[^/]' \| \
17673 X"$am_mf" : 'X\(//\)$' \| \
17674 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17675 printf "%s\n" X"$am_mf" |
17676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17677 s//\1/
17678 q
17679 }
17680 /^X\(\/\/\)[^/].*/{
17681 s//\1/
17682 q
17683 }
17684 /^X\(\/\/\)$/{
17685 s//\1/
17686 q
17687 }
17688 /^X\(\/\).*/{
17689 s//\1/
17690 q
17691 }
17692 s/.*/./; q'`
17693 am_filepart=`$as_basename -- "$am_mf" ||
17694 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17695 X"$am_mf" : 'X\(//\)$' \| \
17696 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17697 printf "%s\n" X/"$am_mf" |
17698 sed '/^.*\/\([^/][^/]*\)\/*$/{
17699 s//\1/
17700 q
17701 }
17702 /^X\/\(\/\/\)$/{
17703 s//\1/
17704 q
17705 }
17706 /^X\/\(\/\).*/{
17707 s//\1/
17708 q
17709 }
17710 s/.*/./; q'`
17711 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17712 && sed -e '/# am--include-marker/d' "$am_filepart" \
17713 | $MAKE -f - am--depfiles" >&5
17714 (cd "$am_dirpart" \
17715 && sed -e '/# am--include-marker/d' "$am_filepart" \
17716 | $MAKE -f - am--depfiles) >&5 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } || am_rc=$?
17720 done
17721 if test $am_rc -ne 0; then
17722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17723 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17724 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17725 for automatic dependency tracking. If GNU make was not used, consider
17726 re-running the configure script with MAKE=\"gmake\" (or whatever is
17727 necessary). You can also try re-running configure with the
17728 '--disable-dependency-tracking' option to at least be able to build
17729 the package (albeit without support for automatic dependency tracking).
17730 See \`config.log' for more details" "$LINENO" 5; }
17731 fi
17732 { am_dirpart=; unset am_dirpart;}
17733 { am_filepart=; unset am_filepart;}
17734 { am_mf=; unset am_mf;}
17735 { am_rc=; unset am_rc;}
17736 rm -f conftest-deps.mk
17737 }
17738 ;;
17739 "libtool":C)
17740
17741 # See if we are running on zsh, and set the options that allow our
17742 # commands through without removal of \ escapes.
17743 if test -n "${ZSH_VERSION+set}"; then
17744 setopt NO_GLOB_SUBST
17745 fi
17746
17747 cfgfile=${ofile}T
17748 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17749 $RM "$cfgfile"
17750
17751 cat <<_LT_EOF >> "$cfgfile"
17752 #! $SHELL
17753 # Generated automatically by $as_me ($PACKAGE) $VERSION
17754 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17755
17756 # Provide generalized library-building support services.
17757 # Written by Gordon Matzigkeit, 1996
17758
17759 # Copyright (C) 2014 Free Software Foundation, Inc.
17760 # This is free software; see the source for copying conditions. There is NO
17761 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17762
17763 # GNU Libtool is free software; you can redistribute it and/or modify
17764 # it under the terms of the GNU General Public License as published by
17765 # the Free Software Foundation; either version 2 of of the License, or
17766 # (at your option) any later version.
17767 #
17768 # As a special exception to the GNU General Public License, if you
17769 # distribute this file as part of a program or library that is built
17770 # using GNU Libtool, you may include this file under the same
17771 # distribution terms that you use for the rest of that program.
17772 #
17773 # GNU Libtool is distributed in the hope that it will be useful, but
17774 # WITHOUT ANY WARRANTY; without even the implied warranty of
17775 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17776 # GNU General Public License for more details.
17777 #
17778 # You should have received a copy of the GNU General Public License
17779 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17780
17781
17782 # The names of the tagged configurations supported by this script.
17783 available_tags=''
17784
17785 # Configured defaults for sys_lib_dlsearch_path munging.
17786 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17787
17788 # ### BEGIN LIBTOOL CONFIG
17789
17790 # Which release of libtool.m4 was used?
17791 macro_version=$macro_version
17792 macro_revision=$macro_revision
17793
17794 # Whether or not to build static libraries.
17795 build_old_libs=$enable_static
17796
17797 # Whether or not to build shared libraries.
17798 build_libtool_libs=$enable_shared
17799
17800 # What type of objects to build.
17801 pic_mode=$pic_mode
17802
17803 # Whether or not to optimize for fast installation.
17804 fast_install=$enable_fast_install
17805
17806 # Shared archive member basename,for filename based shared library versioning on AIX.
17807 shared_archive_member_spec=$shared_archive_member_spec
17808
17809 # Shell to use when invoking shell scripts.
17810 SHELL=$lt_SHELL
17811
17812 # An echo program that protects backslashes.
17813 ECHO=$lt_ECHO
17814
17815 # The PATH separator for the build system.
17816 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17817
17818 # The host system.
17819 host_alias=$host_alias
17820 host=$host
17821 host_os=$host_os
17822
17823 # The build system.
17824 build_alias=$build_alias
17825 build=$build
17826 build_os=$build_os
17827
17828 # A sed program that does not truncate output.
17829 SED=$lt_SED
17830
17831 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17832 Xsed="\$SED -e 1s/^X//"
17833
17834 # A grep program that handles long lines.
17835 GREP=$lt_GREP
17836
17837 # An ERE matcher.
17838 EGREP=$lt_EGREP
17839
17840 # A literal string matcher.
17841 FGREP=$lt_FGREP
17842
17843 # A BSD- or MS-compatible name lister.
17844 NM=$lt_NM
17845
17846 # Whether we need soft or hard links.
17847 LN_S=$lt_LN_S
17848
17849 # What is the maximum length of a command?
17850 max_cmd_len=$max_cmd_len
17851
17852 # Object file suffix (normally "o").
17853 objext=$ac_objext
17854
17855 # Executable file suffix (normally "").
17856 exeext=$exeext
17857
17858 # whether the shell understands "unset".
17859 lt_unset=$lt_unset
17860
17861 # turn spaces into newlines.
17862 SP2NL=$lt_lt_SP2NL
17863
17864 # turn newlines into spaces.
17865 NL2SP=$lt_lt_NL2SP
17866
17867 # convert \$build file names to \$host format.
17868 to_host_file_cmd=$lt_cv_to_host_file_cmd
17869
17870 # convert \$build files to toolchain format.
17871 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17872
17873 # A file(cmd) program that detects file types.
17874 FILECMD=$lt_FILECMD
17875
17876 # An object symbol dumper.
17877 OBJDUMP=$lt_OBJDUMP
17878
17879 # Method to check whether dependent libraries are shared objects.
17880 deplibs_check_method=$lt_deplibs_check_method
17881
17882 # Command to use when deplibs_check_method = "file_magic".
17883 file_magic_cmd=$lt_file_magic_cmd
17884
17885 # How to find potential files when deplibs_check_method = "file_magic".
17886 file_magic_glob=$lt_file_magic_glob
17887
17888 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17889 want_nocaseglob=$lt_want_nocaseglob
17890
17891 # DLL creation program.
17892 DLLTOOL=$lt_DLLTOOL
17893
17894 # Command to associate shared and link libraries.
17895 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17896
17897 # The archiver.
17898 AR=$lt_AR
17899
17900 # Flags to create an archive (by configure).
17901 lt_ar_flags=$lt_ar_flags
17902
17903 # Flags to create an archive.
17904 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
17905
17906 # How to feed a file listing to the archiver.
17907 archiver_list_spec=$lt_archiver_list_spec
17908
17909 # A symbol stripping program.
17910 STRIP=$lt_STRIP
17911
17912 # Commands used to install an old-style archive.
17913 RANLIB=$lt_RANLIB
17914 old_postinstall_cmds=$lt_old_postinstall_cmds
17915 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17916
17917 # Whether to use a lock for old archive extraction.
17918 lock_old_archive_extraction=$lock_old_archive_extraction
17919
17920 # A C compiler.
17921 LTCC=$lt_CC
17922
17923 # LTCC compiler flags.
17924 LTCFLAGS=$lt_CFLAGS
17925
17926 # Take the output of nm and produce a listing of raw symbols and C names.
17927 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17928
17929 # Transform the output of nm in a proper C declaration.
17930 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17931
17932 # Transform the output of nm into a list of symbols to manually relocate.
17933 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17934
17935 # Transform the output of nm in a C name address pair.
17936 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17937
17938 # Transform the output of nm in a C name address pair when lib prefix is needed.
17939 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17940
17941 # The name lister interface.
17942 nm_interface=$lt_lt_cv_nm_interface
17943
17944 # Specify filename containing input files for \$NM.
17945 nm_file_list_spec=$lt_nm_file_list_spec
17946
17947 # The root where to search for dependent libraries,and where our libraries should be installed.
17948 lt_sysroot=$lt_sysroot
17949
17950 # Command to truncate a binary pipe.
17951 lt_truncate_bin=$lt_lt_cv_truncate_bin
17952
17953 # The name of the directory that contains temporary libtool files.
17954 objdir=$objdir
17955
17956 # Used to examine libraries when file_magic_cmd begins with "file".
17957 MAGIC_CMD=$MAGIC_CMD
17958
17959 # Must we lock files when doing compilation?
17960 need_locks=$lt_need_locks
17961
17962 # Manifest tool.
17963 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17964
17965 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17966 DSYMUTIL=$lt_DSYMUTIL
17967
17968 # Tool to change global to local symbols on Mac OS X.
17969 NMEDIT=$lt_NMEDIT
17970
17971 # Tool to manipulate fat objects and archives on Mac OS X.
17972 LIPO=$lt_LIPO
17973
17974 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17975 OTOOL=$lt_OTOOL
17976
17977 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17978 OTOOL64=$lt_OTOOL64
17979
17980 # Old archive suffix (normally "a").
17981 libext=$libext
17982
17983 # Shared library suffix (normally ".so").
17984 shrext_cmds=$lt_shrext_cmds
17985
17986 # The commands to extract the exported symbol list from a shared archive.
17987 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17988
17989 # Variables whose values should be saved in libtool wrapper scripts and
17990 # restored at link time.
17991 variables_saved_for_relink=$lt_variables_saved_for_relink
17992
17993 # Do we need the "lib" prefix for modules?
17994 need_lib_prefix=$need_lib_prefix
17995
17996 # Do we need a version for libraries?
17997 need_version=$need_version
17998
17999 # Library versioning type.
18000 version_type=$version_type
18001
18002 # Shared library runtime path variable.
18003 runpath_var=$runpath_var
18004
18005 # Shared library path variable.
18006 shlibpath_var=$shlibpath_var
18007
18008 # Is shlibpath searched before the hard-coded library search path?
18009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18010
18011 # Format of library name prefix.
18012 libname_spec=$lt_libname_spec
18013
18014 # List of archive names. First name is the real one, the rest are links.
18015 # The last name is the one that the linker finds with -lNAME
18016 library_names_spec=$lt_library_names_spec
18017
18018 # The coded name of the library, if different from the real name.
18019 soname_spec=$lt_soname_spec
18020
18021 # Permission mode override for installation of shared libraries.
18022 install_override_mode=$lt_install_override_mode
18023
18024 # Command to use after installation of a shared archive.
18025 postinstall_cmds=$lt_postinstall_cmds
18026
18027 # Command to use after uninstallation of a shared archive.
18028 postuninstall_cmds=$lt_postuninstall_cmds
18029
18030 # Commands used to finish a libtool library installation in a directory.
18031 finish_cmds=$lt_finish_cmds
18032
18033 # As "finish_cmds", except a single script fragment to be evaled but
18034 # not shown.
18035 finish_eval=$lt_finish_eval
18036
18037 # Whether we should hardcode library paths into libraries.
18038 hardcode_into_libs=$hardcode_into_libs
18039
18040 # Compile-time system search path for libraries.
18041 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18042
18043 # Detected run-time system search path for libraries.
18044 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18045
18046 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18047 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18048
18049 # Whether dlopen is supported.
18050 dlopen_support=$enable_dlopen
18051
18052 # Whether dlopen of programs is supported.
18053 dlopen_self=$enable_dlopen_self
18054
18055 # Whether dlopen of statically linked programs is supported.
18056 dlopen_self_static=$enable_dlopen_self_static
18057
18058 # Commands to strip libraries.
18059 old_striplib=$lt_old_striplib
18060 striplib=$lt_striplib
18061
18062
18063 # The linker used to build libraries.
18064 LD=$lt_LD
18065
18066 # How to create reloadable object files.
18067 reload_flag=$lt_reload_flag
18068 reload_cmds=$lt_reload_cmds
18069
18070 # Commands used to build an old-style archive.
18071 old_archive_cmds=$lt_old_archive_cmds
18072
18073 # A language specific compiler.
18074 CC=$lt_compiler
18075
18076 # Is the compiler the GNU compiler?
18077 with_gcc=$GCC
18078
18079 # Compiler flag to turn off builtin functions.
18080 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18081
18082 # Additional compiler flags for building library objects.
18083 pic_flag=$lt_lt_prog_compiler_pic
18084
18085 # How to pass a linker flag through the compiler.
18086 wl=$lt_lt_prog_compiler_wl
18087
18088 # Compiler flag to prevent dynamic linking.
18089 link_static_flag=$lt_lt_prog_compiler_static
18090
18091 # Does compiler simultaneously support -c and -o options?
18092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18093
18094 # Whether or not to add -lc for building shared libraries.
18095 build_libtool_need_lc=$archive_cmds_need_lc
18096
18097 # Whether or not to disallow shared libs when runtime libs are static.
18098 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18099
18100 # Compiler flag to allow reflexive dlopens.
18101 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18102
18103 # Compiler flag to generate shared objects directly from archives.
18104 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18105
18106 # Whether the compiler copes with passing no objects directly.
18107 compiler_needs_object=$lt_compiler_needs_object
18108
18109 # Create an old-style archive from a shared archive.
18110 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18111
18112 # Create a temporary old-style archive to link instead of a shared archive.
18113 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18114
18115 # Commands used to build a shared archive.
18116 archive_cmds=$lt_archive_cmds
18117 archive_expsym_cmds=$lt_archive_expsym_cmds
18118
18119 # Commands used to build a loadable module if different from building
18120 # a shared archive.
18121 module_cmds=$lt_module_cmds
18122 module_expsym_cmds=$lt_module_expsym_cmds
18123
18124 # Whether we are building with GNU ld or not.
18125 with_gnu_ld=$lt_with_gnu_ld
18126
18127 # Flag that allows shared libraries with undefined symbols to be built.
18128 allow_undefined_flag=$lt_allow_undefined_flag
18129
18130 # Flag that enforces no undefined symbols.
18131 no_undefined_flag=$lt_no_undefined_flag
18132
18133 # Flag to hardcode \$libdir into a binary during linking.
18134 # This must work even if \$libdir does not exist
18135 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18136
18137 # Whether we need a single "-rpath" flag with a separated argument.
18138 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18139
18140 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18141 # DIR into the resulting binary.
18142 hardcode_direct=$hardcode_direct
18143
18144 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18145 # DIR into the resulting binary and the resulting library dependency is
18146 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18147 # library is relocated.
18148 hardcode_direct_absolute=$hardcode_direct_absolute
18149
18150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18151 # into the resulting binary.
18152 hardcode_minus_L=$hardcode_minus_L
18153
18154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18155 # into the resulting binary.
18156 hardcode_shlibpath_var=$hardcode_shlibpath_var
18157
18158 # Set to "yes" if building a shared library automatically hardcodes DIR
18159 # into the library and all subsequent libraries and executables linked
18160 # against it.
18161 hardcode_automatic=$hardcode_automatic
18162
18163 # Set to yes if linker adds runtime paths of dependent libraries
18164 # to runtime path list.
18165 inherit_rpath=$inherit_rpath
18166
18167 # Whether libtool must link a program against all its dependency libraries.
18168 link_all_deplibs=$link_all_deplibs
18169
18170 # Set to "yes" if exported symbols are required.
18171 always_export_symbols=$always_export_symbols
18172
18173 # The commands to list exported symbols.
18174 export_symbols_cmds=$lt_export_symbols_cmds
18175
18176 # Symbols that should not be listed in the preloaded symbols.
18177 exclude_expsyms=$lt_exclude_expsyms
18178
18179 # Symbols that must always be exported.
18180 include_expsyms=$lt_include_expsyms
18181
18182 # Commands necessary for linking programs (against libraries) with templates.
18183 prelink_cmds=$lt_prelink_cmds
18184
18185 # Commands necessary for finishing linking programs.
18186 postlink_cmds=$lt_postlink_cmds
18187
18188 # Specify filename containing input files.
18189 file_list_spec=$lt_file_list_spec
18190
18191 # How to hardcode a shared library path into an executable.
18192 hardcode_action=$hardcode_action
18193
18194 # ### END LIBTOOL CONFIG
18195
18196 _LT_EOF
18197
18198 cat <<'_LT_EOF' >> "$cfgfile"
18199
18200 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18201
18202 # func_munge_path_list VARIABLE PATH
18203 # -----------------------------------
18204 # VARIABLE is name of variable containing _space_ separated list of
18205 # directories to be munged by the contents of PATH, which is string
18206 # having a format:
18207 # "DIR[:DIR]:"
18208 # string "DIR[ DIR]" will be prepended to VARIABLE
18209 # ":DIR[:DIR]"
18210 # string "DIR[ DIR]" will be appended to VARIABLE
18211 # "DIRP[:DIRP]::[DIRA:]DIRA"
18212 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18213 # "DIRA[ DIRA]" will be appended to VARIABLE
18214 # "DIR[:DIR]"
18215 # VARIABLE will be replaced by "DIR[ DIR]"
18216 func_munge_path_list ()
18217 {
18218 case x$2 in
18219 x)
18220 ;;
18221 *:)
18222 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18223 ;;
18224 x:*)
18225 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18226 ;;
18227 *::*)
18228 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18229 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18230 ;;
18231 *)
18232 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18233 ;;
18234 esac
18235 }
18236
18237
18238 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18239 func_cc_basename ()
18240 {
18241 for cc_temp in $*""; do
18242 case $cc_temp in
18243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18245 \-*) ;;
18246 *) break;;
18247 esac
18248 done
18249 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18250 }
18251
18252
18253 # ### END FUNCTIONS SHARED WITH CONFIGURE
18254
18255 _LT_EOF
18256
18257 case $host_os in
18258 aix3*)
18259 cat <<\_LT_EOF >> "$cfgfile"
18260 # AIX sometimes has problems with the GCC collect2 program. For some
18261 # reason, if we set the COLLECT_NAMES environment variable, the problems
18262 # vanish in a puff of smoke.
18263 if test set != "${COLLECT_NAMES+set}"; then
18264 COLLECT_NAMES=
18265 export COLLECT_NAMES
18266 fi
18267 _LT_EOF
18268 ;;
18269 esac
18270
18271
18272
18273 ltmain=$ac_aux_dir/ltmain.sh
18274
18275
18276 # We use sed instead of cat because bash on DJGPP gets confused if
18277 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18278 # text mode, it properly converts lines to CR/LF. This bash problem
18279 # is reportedly fixed, but why not run on old versions too?
18280 $SED '$q' "$ltmain" >> "$cfgfile" \
18281 || (rm -f "$cfgfile"; exit 1)
18282
18283 mv -f "$cfgfile" "$ofile" ||
18284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18285 chmod +x "$ofile"
18286
18287 ;;
18288 "python/setup.py":F) chmod +x python/setup.py ;;
18289 "xml2-config":F) chmod +x xml2-config ;;
18290
18291 esac
18292 done # for ac_tag
18293
18294
18295 as_fn_exit 0
18296 _ACEOF
18297 ac_clean_files=$ac_clean_files_save
18298
18299 test $ac_write_fail = 0 ||
18300 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18301
18302
18303 # configure is writing to config.log, and then calls config.status.
18304 # config.status does its own redirection, appending to config.log.
18305 # Unfortunately, on DOS this fails, as config.log is still kept open
18306 # by configure, so config.status won't be able to write to it; its
18307 # output is simply discarded. So we exec the FD to /dev/null,
18308 # effectively closing config.log, so it can be properly (re)opened and
18309 # appended to by config.status. When coming back to configure, we
18310 # need to make the FD available again.
18311 if test "$no_create" != yes; then
18312 ac_cs_success=:
18313 ac_config_status_args=
18314 test "$silent" = yes &&
18315 ac_config_status_args="$ac_config_status_args --quiet"
18316 exec 5>/dev/null
18317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18318 exec 5>>config.log
18319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18320 # would make configure fail if this is the last instruction.
18321 $ac_cs_success || as_fn_exit 1
18322 fi
18323 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18325 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18326 fi
18327
18328