Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libxml2 2.9.14.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libxml2'
589 PACKAGE_TARNAME='libxml2'
590 PACKAGE_VERSION='2.9.14'
591 PACKAGE_STRING='libxml2 2.9.14'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="entities.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 PYTHON_TESTS
637 RELDATE
638 RDL_LIBS
639 M_LIBS
640 PYTHON_SITE_PACKAGES
641 PYTHON_INCLUDES
642 PYTHON_VERSION
643 XML_INCLUDEDIR
644 ICONV_LIBS
645 XML_LIBTOOLLIBS
646 XML_PRIVATE_LIBS
647 XML_LIBS
648 XML_LIBDIR
649 XML_CFLAGS
650 EXTRA_CFLAGS
651 CYGWIN_EXTRA_PYTHON_LIBADD
652 CYGWIN_EXTRA_LDFLAGS
653 WIN32_EXTRA_PYTHON_LIBADD
654 WIN32_EXTRA_LDFLAGS
655 WIN32_EXTRA_LIBADD
656 WITH_RUN_DEBUG
657 WITH_MEM_DEBUG
658 TEST_DEBUG
659 DEBUG_OBJ
660 WITH_DEBUG
661 TEST_REGEXPS
662 WITH_REGEXPS
663 TEST_SCHEMAS
664 WITH_SCHEMAS
665 WITH_ISO8859X
666 WITH_ICU
667 ICU_DEFS
668 ICU_LIBS
669 ICU_CFLAGS
670 WITH_ICONV
671 WITH_OUTPUT
672 TEST_XPATH
673 XPATH_OBJ
674 WITH_XPATH
675 TEST_SCHEMATRON
676 WITH_SCHEMATRON
677 TEST_XINCLUDE
678 XINCLUDE_OBJ
679 WITH_XINCLUDE
680 TEST_C14N
681 C14N_OBJ
682 WITH_C14N
683 TEST_XPTR
684 XPTR_OBJ
685 WITH_XPTR
686 DOCB_OBJ
687 WITH_DOCB
688 TEST_CATALOG
689 CATALOG_OBJ
690 WITH_CATALOG
691 TEST_VTIME
692 TEST_VALID
693 WITH_VALID
694 TEST_PHTML
695 TEST_HTML
696 HTML_OBJ
697 WITH_HTML
698 TEST_PUSH
699 WITH_PUSH
700 TEST_SAX
701 WITH_SAX1_SOURCES_FALSE
702 WITH_SAX1_SOURCES_TRUE
703 WITH_SAX1
704 TEST_PATTERN
705 WITH_PATTERN
706 WITH_WRITER
707 READER_TEST
708 WITH_READER
709 WITH_LEGACY
710 HTTP_OBJ
711 WITH_HTTP
712 FTP_OBJ
713 WITH_FTP
714 WITH_TREE
715 THREADS_W32_FALSE
716 THREADS_W32_TRUE
717 WITH_THREAD_ALLOC
718 TEST_THREADS
719 THREAD_CFLAGS
720 WITH_THREADS
721 BASE_THREAD_LIBS
722 THREAD_LIBS
723 WITH_TRIO
724 WITH_TRIO_SOURCES_FALSE
725 WITH_TRIO_SOURCES_TRUE
726 STATIC_BINARIES
727 TEST_MODULES
728 MODULE_EXTENSION
729 MODULE_PLATFORM_LIBS
730 WITH_MODULES
731 PYTHON_LIBS
732 PYTHON_SUBDIR
733 pythondir
734 WITH_PYTHON_FALSE
735 WITH_PYTHON_TRUE
736 PYTHON
737 WITH_LZMA
738 LZMA_LIBS
739 LZMA_CFLAGS
740 WITH_ZLIB
741 Z_LIBS
742 Z_CFLAGS
743 REBUILD_DOCS_FALSE
744 REBUILD_DOCS_TRUE
745 HTML_DIR
746 USE_VERSION_SCRIPT_FALSE
747 USE_VERSION_SCRIPT_TRUE
748 VERSION_SCRIPT_FLAGS
749 LT_SYS_LIBRARY_PATH
750 OTOOL64
751 OTOOL
752 LIPO
753 NMEDIT
754 DSYMUTIL
755 MANIFEST_TOOL
756 RANLIB
757 ac_ct_AR
758 AR
759 DLLTOOL
760 OBJDUMP
761 NM
762 ac_ct_DUMPBIN
763 DUMPBIN
764 LD
765 FGREP
766 EGREP
767 GREP
768 SED
769 LIBTOOL
770 PKG_CONFIG_LIBDIR
771 PKG_CONFIG_PATH
772 PKG_CONFIG
773 XSLTPROC
774 XMLLINT
775 WGET
776 PERL
777 TAR
778 MV
779 CPP
780 LN_S
781 am__fastdepCC_FALSE
782 am__fastdepCC_TRUE
783 CCDEPMODE
784 am__nodep
785 AMDEPBACKSLASH
786 AMDEP_FALSE
787 AMDEP_TRUE
788 am__include
789 DEPDIR
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 AM_BACKSLASH
798 AM_DEFAULT_VERBOSITY
799 AM_DEFAULT_V
800 AM_V
801 am__untar
802 am__tar
803 AMTAR
804 am__leading_dot
805 SET_MAKE
806 AWK
807 mkdir_p
808 MKDIR_P
809 INSTALL_STRIP_PROGRAM
810 STRIP
811 install_sh
812 MAKEINFO
813 AUTOHEADER
814 AUTOMAKE
815 AUTOCONF
816 ACLOCAL
817 VERSION
818 PACKAGE
819 CYGPATH_W
820 am__isrc
821 INSTALL_DATA
822 INSTALL_SCRIPT
823 INSTALL_PROGRAM
824 LIBXML_VERSION_EXTRA
825 LIBXML_VERSION_NUMBER
826 LIBXML_VERSION_INFO
827 LIBXML_VERSION
828 LIBXML_MICRO_VERSION
829 LIBXML_MINOR_VERSION
830 LIBXML_MAJOR_VERSION
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 MAINT
840 MAINTAINER_MODE_FALSE
841 MAINTAINER_MODE_TRUE
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 runstatedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL
881 am__quote'
882 ac_subst_files=''
883 ac_user_opts='
884 enable_option_checking
885 enable_maintainer_mode
886 enable_silent_rules
887 enable_dependency_tracking
888 enable_shared
889 enable_static
890 with_pic
891 enable_fast_install
892 with_aix_soname
893 with_gnu_ld
894 with_sysroot
895 enable_libtool_lock
896 with_c14n
897 with_catalog
898 with_debug
899 with_docbook
900 with_fexceptions
901 with_ftp
902 with_history
903 with_html
904 with_html_dir
905 with_html_subdir
906 with_http
907 with_iconv
908 with_icu
909 with_iso8859x
910 with_legacy
911 with_mem_debug
912 with_minimum
913 with_output
914 with_pattern
915 with_push
916 with_python
917 with_python_install_dir
918 with_reader
919 with_readline
920 with_regexps
921 with_run_debug
922 with_sax1
923 with_schemas
924 with_schematron
925 with_threads
926 with_thread_alloc
927 with_tree
928 with_valid
929 with_writer
930 with_xinclude
931 with_xpath
932 with_xptr
933 with_modules
934 with_zlib
935 with_lzma
936 with_coverage
937 enable_rebuild_docs
938 enable_ipv6
939 '
940 ac_precious_vars='build_alias
941 host_alias
942 target_alias
943 CC
944 CFLAGS
945 LDFLAGS
946 LIBS
947 CPPFLAGS
948 CPP
949 PKG_CONFIG
950 PKG_CONFIG_PATH
951 PKG_CONFIG_LIBDIR
952 LT_SYS_LIBRARY_PATH
953 Z_CFLAGS
954 Z_LIBS
955 LZMA_CFLAGS
956 LZMA_LIBS
957 ICU_CFLAGS
958 ICU_LIBS
959 ICU_DEFS'
960
961
962 # Initialize some variables set by options.
963 ac_init_help=
964 ac_init_version=false
965 ac_unrecognized_opts=
966 ac_unrecognized_sep=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
969 cache_file=/dev/null
970 exec_prefix=NONE
971 no_create=
972 no_recursion=
973 prefix=NONE
974 program_prefix=NONE
975 program_suffix=NONE
976 program_transform_name=s,x,x,
977 silent=
978 site=
979 srcdir=
980 verbose=
981 x_includes=NONE
982 x_libraries=NONE
983
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 runstatedir='${localstatedir}/run'
999 includedir='${prefix}/include'
1000 oldincludedir='/usr/include'
1001 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002 infodir='${datarootdir}/info'
1003 htmldir='${docdir}'
1004 dvidir='${docdir}'
1005 pdfdir='${docdir}'
1006 psdir='${docdir}'
1007 libdir='${exec_prefix}/lib'
1008 localedir='${datarootdir}/locale'
1009 mandir='${datarootdir}/man'
1010
1011 ac_prev=
1012 ac_dashdash=
1013 for ac_option
1014 do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
1017 eval $ac_prev=\$ac_option
1018 ac_prev=
1019 continue
1020 fi
1021
1022 case $ac_option in
1023 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *=) ac_optarg= ;;
1025 *) ac_optarg=yes ;;
1026 esac
1027
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1029
1030 case $ac_dashdash$ac_option in
1031 --)
1032 ac_dashdash=yes ;;
1033
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 ac_prev=bindir ;;
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1038
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1043
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1050
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1053
1054 -datadir | --datadir | --datadi | --datad)
1055 ac_prev=datadir ;;
1056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1057 datadir=$ac_optarg ;;
1058
1059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1065
1066 -disable-* | --disable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid feature name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=no ;;
1081
1082 -docdir | --docdir | --docdi | --doc | --do)
1083 ac_prev=docdir ;;
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1086
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 ac_prev=dvidir ;;
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1091
1092 -enable-* | --enable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1107
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1116
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1119 with_gas=yes ;;
1120
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1127
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1132
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 ac_prev=htmldir ;;
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 | --ht=*)
1137 htmldir=$ac_optarg ;;
1138
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1145
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 ac_prev=infodir ;;
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1150
1151 -libdir | --libdir | --libdi | --libd)
1152 ac_prev=libdir ;;
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1155
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1162
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1167
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1174
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 ac_prev=mandir ;;
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1179
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1182 with_fp=no ;;
1183
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1186 no_create=yes ;;
1187
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1190 no_recursion=yes ;;
1191
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1200
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 ac_prev=prefix ;;
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1205
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1212
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1219
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1236
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 ac_prev=pdfdir ;;
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1241
1242 -psdir | --psdir | --psdi | --psd | --ps)
1243 ac_prev=psdir ;;
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1245 psdir=$ac_optarg ;;
1246
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 silent=yes ;;
1250
1251 -runstatedir | --runstatedir | --runstatedi | --runstated \
1252 | --runstate | --runstat | --runsta | --runst | --runs \
1253 | --run | --ru | --r)
1254 ac_prev=runstatedir ;;
1255 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1256 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1257 | --run=* | --ru=* | --r=*)
1258 runstatedir=$ac_optarg ;;
1259
1260 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 ac_prev=sbindir ;;
1262 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 | --sbi=* | --sb=*)
1264 sbindir=$ac_optarg ;;
1265
1266 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1267 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1268 | --sharedst | --shareds | --shared | --share | --shar \
1269 | --sha | --sh)
1270 ac_prev=sharedstatedir ;;
1271 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1272 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1273 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 | --sha=* | --sh=*)
1275 sharedstatedir=$ac_optarg ;;
1276
1277 -site | --site | --sit)
1278 ac_prev=site ;;
1279 -site=* | --site=* | --sit=*)
1280 site=$ac_optarg ;;
1281
1282 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 ac_prev=srcdir ;;
1284 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1285 srcdir=$ac_optarg ;;
1286
1287 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1288 | --syscon | --sysco | --sysc | --sys | --sy)
1289 ac_prev=sysconfdir ;;
1290 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1291 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1292 sysconfdir=$ac_optarg ;;
1293
1294 -target | --target | --targe | --targ | --tar | --ta | --t)
1295 ac_prev=target_alias ;;
1296 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1297 target_alias=$ac_optarg ;;
1298
1299 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1300 verbose=yes ;;
1301
1302 -version | --version | --versio | --versi | --vers | -V)
1303 ac_init_version=: ;;
1304
1305 -with-* | --with-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1313 *"
1314 "with_$ac_useropt"
1315 "*) ;;
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1318 esac
1319 eval with_$ac_useropt=\$ac_optarg ;;
1320
1321 -without-* | --without-*)
1322 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1323 # Reject names that are not valid shell variable names.
1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325 as_fn_error $? "invalid package name: $ac_useropt"
1326 ac_useropt_orig=$ac_useropt
1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328 case $ac_user_opts in
1329 *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333 ac_unrecognized_sep=', ';;
1334 esac
1335 eval with_$ac_useropt=no ;;
1336
1337 --x)
1338 # Obsolete; use --with-x.
1339 with_x=yes ;;
1340
1341 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342 | --x-incl | --x-inc | --x-in | --x-i)
1343 ac_prev=x_includes ;;
1344 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346 x_includes=$ac_optarg ;;
1347
1348 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350 ac_prev=x_libraries ;;
1351 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353 x_libraries=$ac_optarg ;;
1354
1355 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1356 Try \`$0 --help' for more information"
1357 ;;
1358
1359 *=*)
1360 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1361 # Reject names that are not valid shell variable names.
1362 case $ac_envvar in #(
1363 '' | [0-9]* | *[!_$as_cr_alnum]* )
1364 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365 esac
1366 eval $ac_envvar=\$ac_optarg
1367 export $ac_envvar ;;
1368
1369 *)
1370 # FIXME: should be removed in autoconf 3.0.
1371 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1375 ;;
1376
1377 esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382 as_fn_error $? "missing argument to $ac_option"
1383 fi
1384
1385 if test -n "$ac_unrecognized_opts"; then
1386 case $enable_option_checking in
1387 no) ;;
1388 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1389 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1390 esac
1391 fi
1392
1393 # Check all directory arguments for consistency.
1394 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1395 datadir sysconfdir sharedstatedir localstatedir includedir \
1396 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1397 libdir localedir mandir runstatedir
1398 do
1399 eval ac_val=\$$ac_var
1400 # Remove trailing slashes.
1401 case $ac_val in
1402 */ )
1403 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1404 eval $ac_var=\$ac_val;;
1405 esac
1406 # Be sure to have absolute directory names.
1407 case $ac_val in
1408 [\\/$]* | ?:[\\/]* ) continue;;
1409 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 esac
1411 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1412 done
1413
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1420
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423 if test "x$build_alias" = x; then
1424 cross_compiling=maybe
1425 elif test "x$build_alias" != "x$host_alias"; then
1426 cross_compiling=yes
1427 fi
1428 fi
1429
1430 ac_tool_prefix=
1431 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432
1433 test "$silent" = yes && exec 6>/dev/null
1434
1435
1436 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1437 ac_ls_di=`ls -di .` &&
1438 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1439 as_fn_error $? "working directory cannot be determined"
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441 as_fn_error $? "pwd does not report name of working directory"
1442
1443
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)[^/].*/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)$/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\).*/{
1467 s//\1/
1468 q
1469 }
1470 s/.*/./; q'`
1471 srcdir=$ac_confdir
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 srcdir=..
1474 fi
1475 else
1476 ac_srcdir_defaulted=no
1477 fi
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1481 fi
1482 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 ac_abs_confdir=`(
1484 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1485 pwd)`
1486 # When building in place, set srcdir=.
1487 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 srcdir=.
1489 fi
1490 # Remove unnecessary trailing slashes from srcdir.
1491 # Double slashes in file names in object file debugging info
1492 # mess up M-x gdb in Emacs.
1493 case $srcdir in
1494 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 esac
1496 for ac_var in $ac_precious_vars; do
1497 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_env_${ac_var}_value=\$${ac_var}
1499 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1501 done
1502
1503 #
1504 # Report the --help message.
1505 #
1506 if test "$ac_init_help" = "long"; then
1507 # Omit some internal or obsolete options to make the list less imposing.
1508 # This message is too long to be a string in the A/UX 3.1 sh.
1509 cat <<_ACEOF
1510 \`configure' configures libxml2 2.9.14 to adapt to many kinds of systems.
1511
1512 Usage: $0 [OPTION]... [VAR=VALUE]...
1513
1514 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1515 VAR=VALUE. See below for descriptions of some of the useful variables.
1516
1517 Defaults for the options are specified in brackets.
1518
1519 Configuration:
1520 -h, --help display this help and exit
1521 --help=short display options specific to this package
1522 --help=recursive display the short help of all the included packages
1523 -V, --version display version information and exit
1524 -q, --quiet, --silent do not print \`checking ...' messages
1525 --cache-file=FILE cache test results in FILE [disabled]
1526 -C, --config-cache alias for \`--cache-file=config.cache'
1527 -n, --no-create do not create output files
1528 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1529
1530 Installation directories:
1531 --prefix=PREFIX install architecture-independent files in PREFIX
1532 [$ac_default_prefix]
1533 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 [PREFIX]
1535
1536 By default, \`make install' will install all the files in
1537 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1538 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1539 for instance \`--prefix=\$HOME'.
1540
1541 For better control, use the options below.
1542
1543 Fine tuning of the installation directories:
1544 --bindir=DIR user executables [EPREFIX/bin]
1545 --sbindir=DIR system admin executables [EPREFIX/sbin]
1546 --libexecdir=DIR program executables [EPREFIX/libexec]
1547 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1548 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1549 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1550 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1551 --libdir=DIR object code libraries [EPREFIX/lib]
1552 --includedir=DIR C header files [PREFIX/include]
1553 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1554 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1555 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1556 --infodir=DIR info documentation [DATAROOTDIR/info]
1557 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1558 --mandir=DIR man documentation [DATAROOTDIR/man]
1559 --docdir=DIR documentation root [DATAROOTDIR/doc/libxml2]
1560 --htmldir=DIR html documentation [DOCDIR]
1561 --dvidir=DIR dvi documentation [DOCDIR]
1562 --pdfdir=DIR pdf documentation [DOCDIR]
1563 --psdir=DIR ps documentation [DOCDIR]
1564 _ACEOF
1565
1566 cat <<\_ACEOF
1567
1568 Program names:
1569 --program-prefix=PREFIX prepend PREFIX to installed program names
1570 --program-suffix=SUFFIX append SUFFIX to installed program names
1571 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1572
1573 System types:
1574 --build=BUILD configure for building on BUILD [guessed]
1575 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 _ACEOF
1577 fi
1578
1579 if test -n "$ac_init_help"; then
1580 case $ac_init_help in
1581 short | recursive ) echo "Configuration of libxml2 2.9.14:";;
1582 esac
1583 cat <<\_ACEOF
1584
1585 Optional Features:
1586 --disable-option-checking ignore unrecognized --enable/--with options
1587 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1588 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1589 --disable-maintainer-mode
1590 disable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-silent-rules less verbose build output (undo: "make V=1")
1593 --disable-silent-rules verbose build output (undo: "make V=0")
1594 --enable-dependency-tracking
1595 do not reject slow dependency extractors
1596 --disable-dependency-tracking
1597 speeds up one-time build
1598 --enable-shared[=PKGS] build shared libraries [default=yes]
1599 --enable-static[=PKGS] build static libraries [default=yes]
1600 --enable-fast-install[=PKGS]
1601 optimize for fast installation [default=yes]
1602 --disable-libtool-lock avoid locking (might break parallel builds)
1603 --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=no]
1604 --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1605
1606 Optional Packages:
1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1609 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1610 both]
1611 --with-aix-soname=aix|svr4|both
1612 shared library versioning (aka "SONAME") variant to
1613 provide on AIX, [default=aix].
1614 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1615 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1616 compiler's sysroot if not specified).
1617 --with-c14n add the Canonicalization support (on)
1618 --with-catalog add the Catalog support (on)
1619 --with-debug add the debugging module (on)
1620 --with-docbook add Docbook SGML support (on)
1621 --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1622 --with-ftp add the FTP support (on)
1623 --with-history add history support to xmllint shell(off)
1624 --with-html add the HTML support (on)
1625 --with-html-dir=path path to base html directory, default $docdir/html
1626 --with-html-subdir=path directory used under html-dir, default ''
1627 --with-http add the HTTP support (on)
1628 --with-iconv[=DIR] add ICONV support (on)
1629 --with-icu add ICU support (off)
1630 --with-iso8859x add ISO8859X support if no iconv (on)
1631 --with-legacy add deprecated APIs for compatibility (on)
1632 --with-mem-debug add the memory debugging module (off)
1633 --with-minimum build a minimally sized library (off)
1634 --with-output add the serialization support (on)
1635 --with-pattern add the xmlPattern selection interface (on)
1636 --with-push add the PUSH parser interfaces (on)
1637 --with-python[=DIR] build Python bindings if found
1638 --with-python-install-dir=DIR
1639 install Python bindings in DIR
1640 --with-reader add the xmlReader parsing interface (on)
1641 --with-readline=DIR use readline in DIR
1642 --with-regexps add Regular Expressions support (on)
1643 --with-run-debug add the runtime debugging module (off)
1644 --with-sax1 add the older SAX1 interface (on)
1645 --with-schemas add Relax-NG and Schemas support (on)
1646 --with-schematron add Schematron support (on)
1647 --with-threads add multithread support(on)
1648 --with-thread-alloc add per-thread memory(off)
1649 --with-tree add the DOM like tree manipulation APIs (on)
1650 --with-valid add the DTD validation support (on)
1651 --with-writer add the xmlWriter saving interface (on)
1652 --with-xinclude add the XInclude support (on)
1653 --with-xpath add the XPATH support (on)
1654 --with-xptr add the XPointer support (on)
1655 --with-modules add the dynamic modules support (on)
1656 --with-zlib[=DIR] use libz in DIR
1657 --with-lzma[=DIR] use liblzma in DIR
1658 --with-coverage build for code coverage with GCC (off)
1659
1660 Some influential environment variables:
1661 CC C compiler command
1662 CFLAGS C compiler flags
1663 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1664 nonstandard directory <lib dir>
1665 LIBS libraries to pass to the linker, e.g. -l<library>
1666 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1667 you have headers in a nonstandard directory <include dir>
1668 CPP C preprocessor
1669 PKG_CONFIG path to pkg-config utility
1670 PKG_CONFIG_PATH
1671 directories to add to pkg-config's search path
1672 PKG_CONFIG_LIBDIR
1673 path overriding pkg-config's built-in search path
1674 LT_SYS_LIBRARY_PATH
1675 User-defined run-time library search path.
1676 Z_CFLAGS C compiler flags for Z, overriding pkg-config
1677 Z_LIBS linker flags for Z, overriding pkg-config
1678 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1679 LZMA_LIBS linker flags for LZMA, overriding pkg-config
1680 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1681 ICU_LIBS linker flags for ICU, overriding pkg-config
1682 ICU_DEFS value of DEFS for icu-i18n, overriding pkg-config
1683
1684 Use these variables to override the choices made by `configure' or to help
1685 it to find libraries and programs with nonstandard names/locations.
1686
1687 Report bugs to the package provider.
1688 _ACEOF
1689 ac_status=$?
1690 fi
1691
1692 if test "$ac_init_help" = "recursive"; then
1693 # If there are subdirs, report their specific --help.
1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695 test -d "$ac_dir" ||
1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 continue
1698 ac_builddir=.
1699
1700 case "$ac_dir" in
1701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702 *)
1703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1704 # A ".." for each directory in $ac_dir_suffix.
1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1706 case $ac_top_builddir_sub in
1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 esac ;;
1710 esac
1711 ac_abs_top_builddir=$ac_pwd
1712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713 # for backward compatibility:
1714 ac_top_builddir=$ac_top_build_prefix
1715
1716 case $srcdir in
1717 .) # We are building in place.
1718 ac_srcdir=.
1719 ac_top_srcdir=$ac_top_builddir_sub
1720 ac_abs_top_srcdir=$ac_pwd ;;
1721 [\\/]* | ?:[\\/]* ) # Absolute name.
1722 ac_srcdir=$srcdir$ac_dir_suffix;
1723 ac_top_srcdir=$srcdir
1724 ac_abs_top_srcdir=$srcdir ;;
1725 *) # Relative name.
1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727 ac_top_srcdir=$ac_top_build_prefix$srcdir
1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1729 esac
1730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731
1732 cd "$ac_dir" || { ac_status=$?; continue; }
1733 # Check for guested configure.
1734 if test -f "$ac_srcdir/configure.gnu"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737 elif test -f "$ac_srcdir/configure"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure" --help=recursive
1740 else
1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1742 fi || ac_status=$?
1743 cd "$ac_pwd" || { ac_status=$?; break; }
1744 done
1745 fi
1746
1747 test -n "$ac_init_help" && exit $ac_status
1748 if $ac_init_version; then
1749 cat <<\_ACEOF
1750 libxml2 configure 2.9.14
1751 generated by GNU Autoconf 2.69
1752
1753 Copyright (C) 2012 Free Software Foundation, Inc.
1754 This configure script is free software; the Free Software Foundation
1755 gives unlimited permission to copy, distribute and modify it.
1756 _ACEOF
1757 exit
1758 fi
1759
1760 ## ------------------------ ##
1761 ## Autoconf initialization. ##
1762 ## ------------------------ ##
1763
1764 # ac_fn_c_try_compile LINENO
1765 # --------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_compile ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772 case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775 esac
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791 else
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796 fi
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1799
1800 } # ac_fn_c_try_compile
1801
1802 # ac_fn_c_try_cpp LINENO
1803 # ----------------------
1804 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_c_try_cpp ()
1806 {
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_cpp conftest.$ac_ext"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } > conftest.i && {
1824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 }; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_cpp
1838
1839 # ac_fn_c_try_link LINENO
1840 # -----------------------
1841 # Try to link conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_link ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest$ac_exeext
1846 if { { ac_try="$ac_link"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest$ac_exeext && {
1865 test "$cross_compiling" = yes ||
1866 test -x conftest$ac_exeext
1867 }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873 ac_retval=1
1874 fi
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1882
1883 } # ac_fn_c_try_link
1884
1885 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1886 # -------------------------------------------------------
1887 # Tests whether HEADER exists and can be compiled using the include files in
1888 # INCLUDES, setting the cache variable VAR accordingly.
1889 ac_fn_c_check_header_compile ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1899 $4
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903 eval "$3=yes"
1904 else
1905 eval "$3=no"
1906 fi
1907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914 } # ac_fn_c_check_header_compile
1915
1916 # ac_fn_c_try_run LINENO
1917 # ----------------------
1918 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1919 # that executables *can* be run.
1920 ac_fn_c_try_run ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if { { ac_try="$ac_link"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>&5
1931 ac_status=$?
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1934 { { case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937 esac
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_try") 2>&5
1941 ac_status=$?
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; }; }; then :
1944 ac_retval=0
1945 else
1946 $as_echo "$as_me: program exited with status $ac_status" >&5
1947 $as_echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=$ac_status
1951 fi
1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1955
1956 } # ac_fn_c_try_run
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1974
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1979
1980 #ifdef __STDC__
1981 # include <limits.h>
1982 #else
1983 # include <assert.h>
1984 #endif
1985
1986 #undef $2
1987
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1991 #ifdef __cplusplus
1992 extern "C"
1993 #endif
1994 char $2 ();
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
1999 choke me
2000 #endif
2001
2002 int
2003 main ()
2004 {
2005 return $2 ();
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_link "$LINENO"; then :
2011 eval "$3=yes"
2012 else
2013 eval "$3=no"
2014 fi
2015 rm -f core conftest.err conftest.$ac_objext \
2016 conftest$ac_exeext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
2023 } # ac_fn_c_check_func
2024
2025 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2026 # -------------------------------------------------------
2027 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2028 # the include files in INCLUDES and setting the cache variable VAR
2029 # accordingly.
2030 ac_fn_c_check_header_mongrel ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if eval \${$3+:} false; then :
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval \${$3+:} false; then :
2037 $as_echo_n "(cached) " >&6
2038 fi
2039 eval ac_res=\$$3
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 else
2043 # Is the header compilable?
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2045 $as_echo_n "checking $2 usability... " >&6; }
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 $4
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_header_compiler=yes
2053 else
2054 ac_header_compiler=no
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2058 $as_echo "$ac_header_compiler" >&6; }
2059
2060 # Is the header present?
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2062 $as_echo_n "checking $2 presence... " >&6; }
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2065 #include <$2>
2066 _ACEOF
2067 if ac_fn_c_try_cpp "$LINENO"; then :
2068 ac_header_preproc=yes
2069 else
2070 ac_header_preproc=no
2071 fi
2072 rm -f conftest.err conftest.i conftest.$ac_ext
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2074 $as_echo "$ac_header_preproc" >&6; }
2075
2076 # So? What about this header?
2077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2078 yes:no: )
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2080 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2082 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2083 ;;
2084 no:yes:* )
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2086 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2088 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2090 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2092 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2094 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2095 ;;
2096 esac
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if eval \${$3+:} false; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 eval "$3=\$ac_header_compiler"
2103 fi
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 fi
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110 } # ac_fn_c_check_header_mongrel
2111
2112 # ac_fn_c_find_uintX_t LINENO BITS VAR
2113 # ------------------------------------
2114 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2115 # accordingly.
2116 ac_fn_c_find_uintX_t ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2120 $as_echo_n "checking for uint$2_t... " >&6; }
2121 if eval \${$3+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 eval "$3=no"
2125 # Order is important - never check a type that is potentially smaller
2126 # than half of the expected target width.
2127 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2128 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2131 $ac_includes_default
2132 int
2133 main ()
2134 {
2135 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2136 test_array [0] = 0;
2137 return test_array [0];
2138
2139 ;
2140 return 0;
2141 }
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 case $ac_type in #(
2145 uint$2_t) :
2146 eval "$3=yes" ;; #(
2147 *) :
2148 eval "$3=\$ac_type" ;;
2149 esac
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 if eval test \"x\$"$3"\" = x"no"; then :
2153
2154 else
2155 break
2156 fi
2157 done
2158 fi
2159 eval ac_res=\$$3
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163
2164 } # ac_fn_c_find_uintX_t
2165 cat >config.log <<_ACEOF
2166 This file contains any messages produced by compilers while
2167 running configure, to aid debugging if configure makes a mistake.
2168
2169 It was created by libxml2 $as_me 2.9.14, which was
2170 generated by GNU Autoconf 2.69. Invocation command line was
2171
2172 $ $0 $@
2173
2174 _ACEOF
2175 exec 5>>config.log
2176 {
2177 cat <<_ASUNAME
2178 ## --------- ##
2179 ## Platform. ##
2180 ## --------- ##
2181
2182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2187
2188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2189 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2190
2191 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2192 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2194 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2195 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2196 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2197 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2198
2199 _ASUNAME
2200
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 $as_echo "PATH: $as_dir"
2207 done
2208 IFS=$as_save_IFS
2209
2210 } >&5
2211
2212 cat >&5 <<_ACEOF
2213
2214
2215 ## ----------- ##
2216 ## Core tests. ##
2217 ## ----------- ##
2218
2219 _ACEOF
2220
2221
2222 # Keep a trace of the command line.
2223 # Strip out --no-create and --no-recursion so they do not pile up.
2224 # Strip out --silent because we don't want to record it for future runs.
2225 # Also quote any args containing shell meta-characters.
2226 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_configure_args=
2228 ac_configure_args0=
2229 ac_configure_args1=
2230 ac_must_keep_next=false
2231 for ac_pass in 1 2
2232 do
2233 for ac_arg
2234 do
2235 case $ac_arg in
2236 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2238 | -silent | --silent | --silen | --sile | --sil)
2239 continue ;;
2240 *\'*)
2241 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2242 esac
2243 case $ac_pass in
2244 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2245 2)
2246 as_fn_append ac_configure_args1 " '$ac_arg'"
2247 if test $ac_must_keep_next = true; then
2248 ac_must_keep_next=false # Got value, back to normal.
2249 else
2250 case $ac_arg in
2251 *=* | --config-cache | -C | -disable-* | --disable-* \
2252 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2253 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2254 | -with-* | --with-* | -without-* | --without-* | --x)
2255 case "$ac_configure_args0 " in
2256 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2257 esac
2258 ;;
2259 -* ) ac_must_keep_next=true ;;
2260 esac
2261 fi
2262 as_fn_append ac_configure_args " '$ac_arg'"
2263 ;;
2264 esac
2265 done
2266 done
2267 { ac_configure_args0=; unset ac_configure_args0;}
2268 { ac_configure_args1=; unset ac_configure_args1;}
2269
2270 # When interrupted or exit'd, cleanup temporary files, and complete
2271 # config.log. We remove comments because anyway the quotes in there
2272 # would cause problems or look ugly.
2273 # WARNING: Use '\'' to represent an apostrophe within the trap.
2274 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2275 trap 'exit_status=$?
2276 # Save into config.log some information that might help in debugging.
2277 {
2278 echo
2279
2280 $as_echo "## ---------------- ##
2281 ## Cache variables. ##
2282 ## ---------------- ##"
2283 echo
2284 # The following way of writing the cache mishandles newlines in values,
2285 (
2286 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2287 eval ac_val=\$$ac_var
2288 case $ac_val in #(
2289 *${as_nl}*)
2290 case $ac_var in #(
2291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2292 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2293 esac
2294 case $ac_var in #(
2295 _ | IFS | as_nl) ;; #(
2296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2297 *) { eval $ac_var=; unset $ac_var;} ;;
2298 esac ;;
2299 esac
2300 done
2301 (set) 2>&1 |
2302 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2303 *${as_nl}ac_space=\ *)
2304 sed -n \
2305 "s/'\''/'\''\\\\'\'''\''/g;
2306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2307 ;; #(
2308 *)
2309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310 ;;
2311 esac |
2312 sort
2313 )
2314 echo
2315
2316 $as_echo "## ----------------- ##
2317 ## Output variables. ##
2318 ## ----------------- ##"
2319 echo
2320 for ac_var in $ac_subst_vars
2321 do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 $as_echo "$ac_var='\''$ac_val'\''"
2327 done | sort
2328 echo
2329
2330 if test -n "$ac_subst_files"; then
2331 $as_echo "## ------------------- ##
2332 ## File substitutions. ##
2333 ## ------------------- ##"
2334 echo
2335 for ac_var in $ac_subst_files
2336 do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 $as_echo "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2344 fi
2345
2346 if test -s confdefs.h; then
2347 $as_echo "## ----------- ##
2348 ## confdefs.h. ##
2349 ## ----------- ##"
2350 echo
2351 cat confdefs.h
2352 echo
2353 fi
2354 test "$ac_signal" != 0 &&
2355 $as_echo "$as_me: caught signal $ac_signal"
2356 $as_echo "$as_me: exit $exit_status"
2357 } >&5
2358 rm -f core *.core core.conftest.* &&
2359 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2360 exit $exit_status
2361 ' 0
2362 for ac_signal in 1 2 13 15; do
2363 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 done
2365 ac_signal=0
2366
2367 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2368 rm -f -r conftest* confdefs.h
2369
2370 $as_echo "/* confdefs.h */" > confdefs.h
2371
2372 # Predefined preprocessor variables.
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_NAME "$PACKAGE_NAME"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2384 _ACEOF
2385
2386 cat >>confdefs.h <<_ACEOF
2387 #define PACKAGE_STRING "$PACKAGE_STRING"
2388 _ACEOF
2389
2390 cat >>confdefs.h <<_ACEOF
2391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 _ACEOF
2393
2394 cat >>confdefs.h <<_ACEOF
2395 #define PACKAGE_URL "$PACKAGE_URL"
2396 _ACEOF
2397
2398
2399 # Let the site file select an alternate cache file if it wants to.
2400 # Prefer an explicitly selected file to automatically selected ones.
2401 ac_site_file1=NONE
2402 ac_site_file2=NONE
2403 if test -n "$CONFIG_SITE"; then
2404 # We do not want a PATH search for config.site.
2405 case $CONFIG_SITE in #((
2406 -*) ac_site_file1=./$CONFIG_SITE;;
2407 */*) ac_site_file1=$CONFIG_SITE;;
2408 *) ac_site_file1=./$CONFIG_SITE;;
2409 esac
2410 elif test "x$prefix" != xNONE; then
2411 ac_site_file1=$prefix/share/config.site
2412 ac_site_file2=$prefix/etc/config.site
2413 else
2414 ac_site_file1=$ac_default_prefix/share/config.site
2415 ac_site_file2=$ac_default_prefix/etc/config.site
2416 fi
2417 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2418 do
2419 test "x$ac_site_file" = xNONE && continue
2420 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2422 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2423 sed 's/^/| /' "$ac_site_file" >&5
2424 . "$ac_site_file" \
2425 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 as_fn_error $? "failed to load site script $ac_site_file
2428 See \`config.log' for more details" "$LINENO" 5; }
2429 fi
2430 done
2431
2432 if test -r "$cache_file"; then
2433 # Some versions of bash will fail to source /dev/null (special files
2434 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2435 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2437 $as_echo "$as_me: loading cache $cache_file" >&6;}
2438 case $cache_file in
2439 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2440 *) . "./$cache_file";;
2441 esac
2442 fi
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2445 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 >$cache_file
2447 fi
2448
2449 # Check that the precious variables saved in the cache have kept the same
2450 # value.
2451 ac_cache_corrupted=false
2452 for ac_var in $ac_precious_vars; do
2453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2454 eval ac_new_set=\$ac_env_${ac_var}_set
2455 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2456 eval ac_new_val=\$ac_env_${ac_var}_value
2457 case $ac_old_set,$ac_new_set in
2458 set,)
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2460 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2461 ac_cache_corrupted=: ;;
2462 ,set)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2464 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2465 ac_cache_corrupted=: ;;
2466 ,);;
2467 *)
2468 if test "x$ac_old_val" != "x$ac_new_val"; then
2469 # differences in whitespace do not lead to failure.
2470 ac_old_val_w=`echo x $ac_old_val`
2471 ac_new_val_w=`echo x $ac_new_val`
2472 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2474 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2475 ac_cache_corrupted=:
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2478 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2479 eval $ac_var=\$ac_old_val
2480 fi
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2482 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2484 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2485 fi;;
2486 esac
2487 # Pass precious variables to config.status.
2488 if test "$ac_new_set" = set; then
2489 case $ac_new_val in
2490 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2491 *) ac_arg=$ac_var=$ac_new_val ;;
2492 esac
2493 case " $ac_configure_args " in
2494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2495 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496 esac
2497 fi
2498 done
2499 if $ac_cache_corrupted; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2503 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2504 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2505 fi
2506 ## -------------------- ##
2507 ## Main body of script. ##
2508 ## -------------------- ##
2509
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515
2516
2517
2518 ac_config_headers="$ac_config_headers config.h"
2519
2520
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2522 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2523 # Check whether --enable-maintainer-mode was given.
2524 if test "${enable_maintainer_mode+set}" = set; then :
2525 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2526 else
2527 USE_MAINTAINER_MODE=yes
2528 fi
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2531 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2532 if test $USE_MAINTAINER_MODE = yes; then
2533 MAINTAINER_MODE_TRUE=
2534 MAINTAINER_MODE_FALSE='#'
2535 else
2536 MAINTAINER_MODE_TRUE='#'
2537 MAINTAINER_MODE_FALSE=
2538 fi
2539
2540 MAINT=$MAINTAINER_MODE_TRUE
2541
2542
2543
2544 ac_aux_dir=
2545 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2546 if test -f "$ac_dir/install-sh"; then
2547 ac_aux_dir=$ac_dir
2548 ac_install_sh="$ac_aux_dir/install-sh -c"
2549 break
2550 elif test -f "$ac_dir/install.sh"; then
2551 ac_aux_dir=$ac_dir
2552 ac_install_sh="$ac_aux_dir/install.sh -c"
2553 break
2554 elif test -f "$ac_dir/shtool"; then
2555 ac_aux_dir=$ac_dir
2556 ac_install_sh="$ac_aux_dir/shtool install -c"
2557 break
2558 fi
2559 done
2560 if test -z "$ac_aux_dir"; then
2561 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2562 fi
2563
2564 # These three variables are undocumented and unsupported,
2565 # and are intended to be withdrawn in a future Autoconf release.
2566 # They can cause serious problems if a builder's source tree is in a directory
2567 # whose full name contains unusual characters.
2568 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2569 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2570 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2571
2572
2573 # Make sure we can run config.sub.
2574 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2575 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2578 $as_echo_n "checking build system type... " >&6; }
2579 if ${ac_cv_build+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 ac_build_alias=$build_alias
2583 test "x$ac_build_alias" = x &&
2584 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2585 test "x$ac_build_alias" = x &&
2586 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2587 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2589
2590 fi
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2592 $as_echo "$ac_cv_build" >&6; }
2593 case $ac_cv_build in
2594 *-*-*) ;;
2595 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2596 esac
2597 build=$ac_cv_build
2598 ac_save_IFS=$IFS; IFS='-'
2599 set x $ac_cv_build
2600 shift
2601 build_cpu=$1
2602 build_vendor=$2
2603 shift; shift
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2606 build_os=$*
2607 IFS=$ac_save_IFS
2608 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2609
2610
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2612 $as_echo_n "checking host system type... " >&6; }
2613 if ${ac_cv_host+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if test "x$host_alias" = x; then
2617 ac_cv_host=$ac_cv_build
2618 else
2619 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2621 fi
2622
2623 fi
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2625 $as_echo "$ac_cv_host" >&6; }
2626 case $ac_cv_host in
2627 *-*-*) ;;
2628 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2629 esac
2630 host=$ac_cv_host
2631 ac_save_IFS=$IFS; IFS='-'
2632 set x $ac_cv_host
2633 shift
2634 host_cpu=$1
2635 host_vendor=$2
2636 shift; shift
2637 # Remember, the first character of IFS is used to create $*,
2638 # except with old shells:
2639 host_os=$*
2640 IFS=$ac_save_IFS
2641 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2642
2643
2644
2645 LIBXML_MAJOR_VERSION=2
2646 LIBXML_MINOR_VERSION=9
2647 LIBXML_MICRO_VERSION=14
2648 LIBXML_MICRO_VERSION_SUFFIX=
2649 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2650 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2651
2652 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2653
2654 if test -d .git ; then
2655 extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
2656 echo extra=$extra
2657 if test "$extra" != ""
2658 then
2659 LIBXML_VERSION_EXTRA="-GIT$extra"
2660 fi
2661 fi
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671 VERSION=${LIBXML_VERSION}
2672
2673 am__api_version='1.16'
2674
2675 # Find a good install program. We prefer a C program (faster),
2676 # so one script is as good as another. But avoid the broken or
2677 # incompatible versions:
2678 # SysV /etc/install, /usr/sbin/install
2679 # SunOS /usr/etc/install
2680 # IRIX /sbin/install
2681 # AIX /bin/install
2682 # AmigaOS /C/install, which installs bootblocks on floppy discs
2683 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2684 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2685 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2686 # OS/2's system install, which has a completely different semantic
2687 # ./install, which can be erroneously created by make from ./install.sh.
2688 # Reject install programs that cannot install multiple files.
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2690 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2691 if test -z "$INSTALL"; then
2692 if ${ac_cv_path_install+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 for as_dir in $PATH
2697 do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 # Account for people who put trailing slashes in PATH elements.
2701 case $as_dir/ in #((
2702 ./ | .// | /[cC]/* | \
2703 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2704 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2705 /usr/ucb/* ) ;;
2706 *)
2707 # OSF1 and SCO ODT 3.0 have their own names for install.
2708 # Don't use installbsd from OSF since it installs stuff as root
2709 # by default.
2710 for ac_prog in ginstall scoinst install; do
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2713 if test $ac_prog = install &&
2714 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2715 # AIX install. It has an incompatible calling convention.
2716 :
2717 elif test $ac_prog = install &&
2718 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2719 # program-specific install script used by HP pwplus--don't use.
2720 :
2721 else
2722 rm -rf conftest.one conftest.two conftest.dir
2723 echo one > conftest.one
2724 echo two > conftest.two
2725 mkdir conftest.dir
2726 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2727 test -s conftest.one && test -s conftest.two &&
2728 test -s conftest.dir/conftest.one &&
2729 test -s conftest.dir/conftest.two
2730 then
2731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2732 break 3
2733 fi
2734 fi
2735 fi
2736 done
2737 done
2738 ;;
2739 esac
2740
2741 done
2742 IFS=$as_save_IFS
2743
2744 rm -rf conftest.one conftest.two conftest.dir
2745
2746 fi
2747 if test "${ac_cv_path_install+set}" = set; then
2748 INSTALL=$ac_cv_path_install
2749 else
2750 # As a last resort, use the slow shell script. Don't cache a
2751 # value for INSTALL within a source directory, because that will
2752 # break other packages using the cache if that directory is
2753 # removed, or if the value is a relative name.
2754 INSTALL=$ac_install_sh
2755 fi
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2758 $as_echo "$INSTALL" >&6; }
2759
2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761 # It thinks the first close brace ends the variable substitution.
2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765
2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2769 $as_echo_n "checking whether build environment is sane... " >&6; }
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name. Accept space and tab only in the latter.
2772 am_lf='
2773 '
2774 case `pwd` in
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2777 esac
2778 case $srcdir in
2779 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2781 esac
2782
2783 # Do 'set' in a subshell so we don't clobber the current shell's
2784 # arguments. Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789 am_has_slept=no
2790 for am_try in 1 2; do
2791 echo "timestamp, slept: $am_has_slept" > conftest.file
2792 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2793 if test "$*" = "X"; then
2794 # -L didn't work.
2795 set X `ls -t "$srcdir/configure" conftest.file`
2796 fi
2797 if test "$*" != "X $srcdir/configure conftest.file" \
2798 && test "$*" != "X conftest.file $srcdir/configure"; then
2799
2800 # If neither matched, then we have a broken ls. This can happen
2801 # if, for instance, CONFIG_SHELL is bash and it inherits a
2802 # broken ls alias from the environment. This has actually
2803 # happened. Such a system could not be considered "sane".
2804 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2805 alias in your environment" "$LINENO" 5
2806 fi
2807 if test "$2" = conftest.file || test $am_try -eq 2; then
2808 break
2809 fi
2810 # Just in case.
2811 sleep 1
2812 am_has_slept=yes
2813 done
2814 test "$2" = conftest.file
2815 )
2816 then
2817 # Ok.
2818 :
2819 else
2820 as_fn_error $? "newly created file is older than distributed files!
2821 Check your system clock" "$LINENO" 5
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2824 $as_echo "yes" >&6; }
2825 # If we didn't sleep, we still need to ensure time stamps of config.status and
2826 # generated files are strictly newer.
2827 am_sleep_pid=
2828 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2829 ( sleep 1 ) &
2830 am_sleep_pid=$!
2831 fi
2832
2833 rm -f conftest.file
2834
2835 test "$program_prefix" != NONE &&
2836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837 # Use a double $ so make ignores it.
2838 test "$program_suffix" != NONE &&
2839 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2840 # Double any \ or $.
2841 # By default was `s,x,x', remove it if useless.
2842 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844
2845 # Expand $ac_aux_dir to an absolute path.
2846 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848 if test x"${MISSING+set}" != xset; then
2849 case $am_aux_dir in
2850 *\ * | *\ *)
2851 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2852 *)
2853 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2854 esac
2855 fi
2856 # Use eval to expand $SHELL
2857 if eval "$MISSING --is-lightweight"; then
2858 am_missing_run="$MISSING "
2859 else
2860 am_missing_run=
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2862 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2863 fi
2864
2865 if test x"${install_sh+set}" != xset; then
2866 case $am_aux_dir in
2867 *\ * | *\ *)
2868 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2869 *)
2870 install_sh="\${SHELL} $am_aux_dir/install-sh"
2871 esac
2872 fi
2873
2874 # Installed binaries are usually stripped using 'strip' when the user
2875 # run "make install-strip". However 'strip' might not be the right
2876 # tool to use in cross-compilation environments, therefore Automake
2877 # will honor the 'STRIP' environment variable to overrule this program.
2878 if test "$cross_compiling" != no; then
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}strip; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if ${ac_cv_prog_STRIP+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$STRIP"; then
2888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 STRIP=$ac_cv_prog_STRIP
2908 if test -n "$STRIP"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2910 $as_echo "$STRIP" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_STRIP"; then
2919 ac_ct_STRIP=$STRIP
2920 # Extract the first word of "strip", so it can be a program name with args.
2921 set dummy strip; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$ac_ct_STRIP"; then
2928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_STRIP="strip"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948 if test -n "$ac_ct_STRIP"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2950 $as_echo "$ac_ct_STRIP" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956 if test "x$ac_ct_STRIP" = x; then
2957 STRIP=":"
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 STRIP=$ac_ct_STRIP
2966 fi
2967 else
2968 STRIP="$ac_cv_prog_STRIP"
2969 fi
2970
2971 fi
2972 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2975 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2976 if test -z "$MKDIR_P"; then
2977 if ${ac_cv_path_mkdir+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982 do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_prog in mkdir gmkdir; do
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2988 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2989 'mkdir (GNU coreutils) '* | \
2990 'mkdir (coreutils) '* | \
2991 'mkdir (fileutils) '4.1*)
2992 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2993 break 3;;
2994 esac
2995 done
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001
3002 test -d ./--version && rmdir ./--version
3003 if test "${ac_cv_path_mkdir+set}" = set; then
3004 MKDIR_P="$ac_cv_path_mkdir -p"
3005 else
3006 # As a last resort, use the slow shell script. Don't cache a
3007 # value for MKDIR_P within a source directory, because that will
3008 # break other packages using the cache if that directory is
3009 # removed, or if the value is a relative name.
3010 MKDIR_P="$ac_install_sh -d"
3011 fi
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014 $as_echo "$MKDIR_P" >&6; }
3015
3016 for ac_prog in gawk mawk nawk awk
3017 do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_AWK+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$AWK"; then
3026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3035 ac_cv_prog_AWK="$ac_prog"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 AWK=$ac_cv_prog_AWK
3046 if test -n "$AWK"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3048 $as_echo "$AWK" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 test -n "$AWK" && break
3056 done
3057
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3059 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3060 set x ${MAKE-make}
3061 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3062 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 cat >conftest.make <<\_ACEOF
3066 SHELL = /bin/sh
3067 all:
3068 @echo '@@@%%%=$(MAKE)=@@@%%%'
3069 _ACEOF
3070 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3071 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3072 *@@@%%%=?*=@@@%%%*)
3073 eval ac_cv_prog_make_${ac_make}_set=yes;;
3074 *)
3075 eval ac_cv_prog_make_${ac_make}_set=no;;
3076 esac
3077 rm -f conftest.make
3078 fi
3079 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081 $as_echo "yes" >&6; }
3082 SET_MAKE=
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 SET_MAKE="MAKE=${MAKE-make}"
3087 fi
3088
3089 rm -rf .tst 2>/dev/null
3090 mkdir .tst 2>/dev/null
3091 if test -d .tst; then
3092 am__leading_dot=.
3093 else
3094 am__leading_dot=_
3095 fi
3096 rmdir .tst 2>/dev/null
3097
3098 # Check whether --enable-silent-rules was given.
3099 if test "${enable_silent_rules+set}" = set; then :
3100 enableval=$enable_silent_rules;
3101 fi
3102
3103 case $enable_silent_rules in # (((
3104 yes) AM_DEFAULT_VERBOSITY=0;;
3105 no) AM_DEFAULT_VERBOSITY=1;;
3106 *) AM_DEFAULT_VERBOSITY=1;;
3107 esac
3108 am_make=${MAKE-make}
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3110 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3111 if ${am_cv_make_support_nested_variables+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113 else
3114 if $as_echo 'TRUE=$(BAR$(V))
3115 BAR0=false
3116 BAR1=true
3117 V=1
3118 am__doit:
3119 @$(TRUE)
3120 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3121 am_cv_make_support_nested_variables=yes
3122 else
3123 am_cv_make_support_nested_variables=no
3124 fi
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3127 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3128 if test $am_cv_make_support_nested_variables = yes; then
3129 AM_V='$(V)'
3130 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3131 else
3132 AM_V=$AM_DEFAULT_VERBOSITY
3133 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3134 fi
3135 AM_BACKSLASH='\'
3136
3137 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3138 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3139 # is not polluted with repeated "-I."
3140 am__isrc=' -I$(srcdir)'
3141 # test to see if srcdir already configured
3142 if test -f $srcdir/config.status; then
3143 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3144 fi
3145 fi
3146
3147 # test whether we have cygpath
3148 if test -z "$CYGPATH_W"; then
3149 if (cygpath --version) >/dev/null 2>/dev/null; then
3150 CYGPATH_W='cygpath -w'
3151 else
3152 CYGPATH_W=echo
3153 fi
3154 fi
3155
3156
3157 # Define the identity of the package.
3158 PACKAGE='libxml2'
3159 VERSION='2.9.14'
3160
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE "$PACKAGE"
3164 _ACEOF
3165
3166
3167 cat >>confdefs.h <<_ACEOF
3168 #define VERSION "$VERSION"
3169 _ACEOF
3170
3171 # Some tools Automake needs.
3172
3173 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3174
3175
3176 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3177
3178
3179 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3180
3181
3182 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3183
3184
3185 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3186
3187 # For better backward compatibility. To be removed once Automake 1.9.x
3188 # dies out for good. For more background, see:
3189 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3190 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3191 mkdir_p='$(MKDIR_P)'
3192
3193 # We need awk for the "check" target (and possibly the TAP driver). The
3194 # system "awk" is bad on some platforms.
3195 # Always define AMTAR for backward compatibility. Yes, it's still used
3196 # in the wild :-( We should find a proper way to deprecate it ...
3197 AMTAR='$${TAR-tar}'
3198
3199
3200 # We'll loop over all known methods to create a tar archive until one works.
3201 _am_tools='gnutar pax cpio none'
3202
3203 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3204
3205
3206
3207
3208
3209
3210 # POSIX will say in a future version that running "rm -f" with no argument
3211 # is OK; and we want to be able to make that assumption in our Makefile
3212 # recipes. So use an aggressive probe to check that the usage we want is
3213 # actually supported "in the wild" to an acceptable degree.
3214 # See automake bug#10828.
3215 # To make any issue more visible, cause the running configure to be aborted
3216 # by default if the 'rm' program in use doesn't match our expectations; the
3217 # user can still override this though.
3218 if rm -f && rm -fr && rm -rf; then : OK; else
3219 cat >&2 <<'END'
3220 Oops!
3221
3222 Your 'rm' program seems unable to run without file operands specified
3223 on the command line, even when the '-f' option is present. This is contrary
3224 to the behaviour of most rm programs out there, and not conforming with
3225 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3226
3227 Please tell [email protected] about your system, including the value
3228 of your $PATH and any error possibly output before this message. This
3229 can help us improve future automake versions.
3230
3231 END
3232 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3233 echo 'Configuration will proceed anyway, since you have set the' >&2
3234 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3235 echo >&2
3236 else
3237 cat >&2 <<'END'
3238 Aborting the configuration process, to ensure you take notice of the issue.
3239
3240 You can download and install GNU coreutils to get an 'rm' implementation
3241 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3242
3243 If you want to complete the configuration process using your problematic
3244 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3245 to "yes", and re-run configure.
3246
3247 END
3248 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3249 fi
3250 fi
3251
3252
3253 # Support silent build rules, requires at least automake-1.11. Disable
3254 # by either passing --disable-silent-rules to configure or passing V=1
3255 # to make
3256 # Check whether --enable-silent-rules was given.
3257 if test "${enable_silent_rules+set}" = set; then :
3258 enableval=$enable_silent_rules;
3259 fi
3260
3261 case $enable_silent_rules in # (((
3262 yes) AM_DEFAULT_VERBOSITY=0;;
3263 no) AM_DEFAULT_VERBOSITY=1;;
3264 *) AM_DEFAULT_VERBOSITY=0;;
3265 esac
3266 am_make=${MAKE-make}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3268 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3269 if ${am_cv_make_support_nested_variables+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if $as_echo 'TRUE=$(BAR$(V))
3273 BAR0=false
3274 BAR1=true
3275 V=1
3276 am__doit:
3277 @$(TRUE)
3278 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3279 am_cv_make_support_nested_variables=yes
3280 else
3281 am_cv_make_support_nested_variables=no
3282 fi
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3285 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3286 if test $am_cv_make_support_nested_variables = yes; then
3287 AM_V='$(V)'
3288 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3289 else
3290 AM_V=$AM_DEFAULT_VERBOSITY
3291 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3292 fi
3293 AM_BACKSLASH='\'
3294
3295
3296 ac_ext=c
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3301 if test -n "$ac_tool_prefix"; then
3302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3303 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315 IFS=$as_save_IFS
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339 fi
3340 if test -z "$ac_cv_prog_CC"; then
3341 ac_ct_CC=$CC
3342 # Extract the first word of "gcc", so it can be a program name with args.
3343 set dummy gcc; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 if test -n "$ac_ct_CC"; then
3350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3359 ac_cv_prog_ac_ct_CC="gcc"
3360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 break 2
3362 fi
3363 done
3364 done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3370 if test -n "$ac_ct_CC"; then
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3372 $as_echo "$ac_ct_CC" >&6; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378 if test "x$ac_ct_CC" = x; then
3379 CC=""
3380 else
3381 case $cross_compiling:$ac_tool_warned in
3382 yes:)
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3385 ac_tool_warned=yes ;;
3386 esac
3387 CC=$ac_ct_CC
3388 fi
3389 else
3390 CC="$ac_cv_prog_CC"
3391 fi
3392
3393 if test -z "$CC"; then
3394 if test -n "$ac_tool_prefix"; then
3395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3396 set dummy ${ac_tool_prefix}cc; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_CC="${ac_tool_prefix}cc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 fi
3433 fi
3434 if test -z "$CC"; then
3435 # Extract the first word of "cc", so it can be a program name with args.
3436 set dummy cc; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_prog_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3444 else
3445 ac_prog_rejected=no
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3454 ac_prog_rejected=yes
3455 continue
3456 fi
3457 ac_cv_prog_CC="cc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 if test $ac_prog_rejected = yes; then
3466 # We found a bogon in the path, so make sure we never use it.
3467 set dummy $ac_cv_prog_CC
3468 shift
3469 if test $# != 0; then
3470 # We chose a different compiler from the bogus one.
3471 # However, it has the same basename, so the bogon will be chosen
3472 # first if we set CC to just the basename; use the full file name.
3473 shift
3474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475 fi
3476 fi
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489 fi
3490 if test -z "$CC"; then
3491 if test -n "$ac_tool_prefix"; then
3492 for ac_prog in cl.exe
3493 do
3494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if ${ac_cv_prog_CC+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$CC"; then
3502 ac_cv_prog_CC="$CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 test -n "$CC" && break
3532 done
3533 fi
3534 if test -z "$CC"; then
3535 ac_ct_CC=$CC
3536 for ac_prog in cl.exe
3537 do
3538 # Extract the first word of "$ac_prog", so it can be a program name with args.
3539 set dummy $ac_prog; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$ac_ct_CC"; then
3546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_ac_ct_CC="$ac_prog"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3558 fi
3559 done
3560 done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575 test -n "$ac_ct_CC" && break
3576 done
3577
3578 if test "x$ac_ct_CC" = x; then
3579 CC=""
3580 else
3581 case $cross_compiling:$ac_tool_warned in
3582 yes:)
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585 ac_tool_warned=yes ;;
3586 esac
3587 CC=$ac_ct_CC
3588 fi
3589 fi
3590
3591 fi
3592
3593
3594 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "no acceptable C compiler found in \$PATH
3597 See \`config.log' for more details" "$LINENO" 5; }
3598
3599 # Provide some information about the compiler.
3600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3601 set X $ac_compile
3602 ac_compiler=$2
3603 for ac_option in --version -v -V -qversion; do
3604 { { ac_try="$ac_compiler $ac_option >&5"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3612 ac_status=$?
3613 if test -s conftest.err; then
3614 sed '10a\
3615 ... rest of stderr output deleted ...
3616 10q' conftest.err >conftest.er1
3617 cat conftest.er1 >&5
3618 fi
3619 rm -f conftest.er1 conftest.err
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3622 done
3623
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626
3627 int
3628 main ()
3629 {
3630
3631 ;
3632 return 0;
3633 }
3634 _ACEOF
3635 ac_clean_files_save=$ac_clean_files
3636 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3637 # Try to create an executable without -o first, disregard a.out.
3638 # It will help us diagnose broken compilers, and finding out an intuition
3639 # of exeext.
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3641 $as_echo_n "checking whether the C compiler works... " >&6; }
3642 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3643
3644 # The possible output files:
3645 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3646
3647 ac_rmfiles=
3648 for ac_file in $ac_files
3649 do
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3652 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3653 esac
3654 done
3655 rm -f $ac_rmfiles
3656
3657 if { { ac_try="$ac_link_default"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_link_default") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }; then :
3668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3669 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3670 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3671 # so that the user can short-circuit this test for compilers unknown to
3672 # Autoconf.
3673 for ac_file in $ac_files ''
3674 do
3675 test -f "$ac_file" || continue
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3678 ;;
3679 [ab].out )
3680 # We found the default executable, but exeext='' is most
3681 # certainly right.
3682 break;;
3683 *.* )
3684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3685 then :; else
3686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3687 fi
3688 # We set ac_cv_exeext here because the later test for it is not
3689 # safe: cross compilers may not add the suffix if given an `-o'
3690 # argument, so we may need to know it at that point already.
3691 # Even if this section looks crufty: it has the advantage of
3692 # actually working.
3693 break;;
3694 * )
3695 break;;
3696 esac
3697 done
3698 test "$ac_cv_exeext" = no && ac_cv_exeext=
3699
3700 else
3701 ac_file=''
3702 fi
3703 if test -z "$ac_file"; then :
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3705 $as_echo "no" >&6; }
3706 $as_echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error 77 "C compiler cannot create executables
3712 See \`config.log' for more details" "$LINENO" 5; }
3713 else
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3715 $as_echo "yes" >&6; }
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3718 $as_echo_n "checking for C compiler default output file name... " >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3720 $as_echo "$ac_file" >&6; }
3721 ac_exeext=$ac_cv_exeext
3722
3723 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3724 ac_clean_files=$ac_clean_files_save
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3726 $as_echo_n "checking for suffix of executables... " >&6; }
3727 if { { ac_try="$ac_link"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734 (eval "$ac_link") 2>&5
3735 ac_status=$?
3736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737 test $ac_status = 0; }; then :
3738 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3739 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3740 # work properly (i.e., refer to `conftest.exe'), while it won't with
3741 # `rm'.
3742 for ac_file in conftest.exe conftest conftest.*; do
3743 test -f "$ac_file" || continue
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3747 break;;
3748 * ) break;;
3749 esac
3750 done
3751 else
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3755 See \`config.log' for more details" "$LINENO" 5; }
3756 fi
3757 rm -f conftest conftest$ac_cv_exeext
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3759 $as_echo "$ac_cv_exeext" >&6; }
3760
3761 rm -f conftest.$ac_ext
3762 EXEEXT=$ac_cv_exeext
3763 ac_exeext=$EXEEXT
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <stdio.h>
3767 int
3768 main ()
3769 {
3770 FILE *f = fopen ("conftest.out", "w");
3771 return ferror (f) || fclose (f) != 0;
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 ac_clean_files="$ac_clean_files conftest.out"
3778 # Check that the compiler produces executables we can run. If not, either
3779 # the compiler is broken, or we cross compile.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3781 $as_echo_n "checking whether we are cross compiling... " >&6; }
3782 if test "$cross_compiling" != yes; then
3783 { { ac_try="$ac_link"
3784 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_link") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }
3794 if { ac_try='./conftest$ac_cv_exeext'
3795 { { case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_try") 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; }; then
3805 cross_compiling=no
3806 else
3807 if test "$cross_compiling" = maybe; then
3808 cross_compiling=yes
3809 else
3810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812 as_fn_error $? "cannot run C compiled programs.
3813 If you meant to cross compile, use \`--host'.
3814 See \`config.log' for more details" "$LINENO" 5; }
3815 fi
3816 fi
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3819 $as_echo "$cross_compiling" >&6; }
3820
3821 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3822 ac_clean_files=$ac_clean_files_save
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3824 $as_echo_n "checking for suffix of object files... " >&6; }
3825 if ${ac_cv_objext+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { { ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compile") 2>&5
3848 ac_status=$?
3849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850 test $ac_status = 0; }; then :
3851 for ac_file in conftest.o conftest.obj conftest.*; do
3852 test -f "$ac_file" || continue;
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3856 break;;
3857 esac
3858 done
3859 else
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 as_fn_error $? "cannot compute suffix of object files: cannot compile
3866 See \`config.log' for more details" "$LINENO" 5; }
3867 fi
3868 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3871 $as_echo "$ac_cv_objext" >&6; }
3872 OBJEXT=$ac_cv_objext
3873 ac_objext=$OBJEXT
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3876 if ${ac_cv_c_compiler_gnu+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881
3882 int
3883 main ()
3884 {
3885 #ifndef __GNUC__
3886 choke me
3887 #endif
3888
3889 ;
3890 return 0;
3891 }
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_compiler_gnu=yes
3895 else
3896 ac_compiler_gnu=no
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3900
3901 fi
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3904 if test $ac_compiler_gnu = yes; then
3905 GCC=yes
3906 else
3907 GCC=
3908 fi
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3913 if ${ac_cv_prog_cc_g+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 int
3924 main ()
3925 {
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_g=yes
3933 else
3934 CFLAGS=""
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937
3938 int
3939 main ()
3940 {
3941
3942 ;
3943 return 0;
3944 }
3945 _ACEOF
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947
3948 else
3949 ac_c_werror_flag=$ac_save_c_werror_flag
3950 CFLAGS="-g"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953
3954 int
3955 main ()
3956 {
3957
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 if ac_fn_c_try_compile "$LINENO"; then :
3963 ac_cv_prog_cc_g=yes
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 fi
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3968 fi
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 $as_echo "$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3981 fi
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3987 fi
3988 fi
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3991 if ${ac_cv_prog_cc_c89+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_cv_prog_cc_c89=no
3995 ac_save_CC=$CC
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 #include <stdarg.h>
3999 #include <stdio.h>
4000 struct stat;
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4005 char **p;
4006 int i;
4007 {
4008 return p[i];
4009 }
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4011 {
4012 char *s;
4013 va_list v;
4014 va_start (v,p);
4015 s = g (p, va_arg (v,int));
4016 va_end (v);
4017 return s;
4018 }
4019
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4028
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4031 #define FOO(x) 'x'
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4033
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4038 int argc;
4039 char **argv;
4040 int
4041 main ()
4042 {
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4044 ;
4045 return 0;
4046 }
4047 _ACEOF
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050 do
4051 CC="$ac_save_CC $ac_arg"
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053 ac_cv_prog_cc_c89=$ac_arg
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext
4056 test "x$ac_cv_prog_cc_c89" != "xno" && break
4057 done
4058 rm -f conftest.$ac_ext
4059 CC=$ac_save_CC
4060
4061 fi
4062 # AC_CACHE_VAL
4063 case "x$ac_cv_prog_cc_c89" in
4064 x)
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4066 $as_echo "none needed" >&6; } ;;
4067 xno)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4069 $as_echo "unsupported" >&6; } ;;
4070 *)
4071 CC="$CC $ac_cv_prog_cc_c89"
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4074 esac
4075 if test "x$ac_cv_prog_cc_c89" != xno; then :
4076
4077 fi
4078
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085 ac_ext=c
4086 ac_cpp='$CPP $CPPFLAGS'
4087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4091 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4092 if ${am_cv_prog_cc_c_o+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097
4098 int
4099 main ()
4100 {
4101
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 # Make sure it works both with $CC and with simple cc.
4107 # Following AC_PROG_CC_C_O, we do the test twice because some
4108 # compilers refuse to overwrite an existing .o file with -o,
4109 # though they will create one.
4110 am_cv_prog_cc_c_o=yes
4111 for am_i in 1 2; do
4112 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4113 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4114 ac_status=$?
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } \
4117 && test -f conftest2.$ac_objext; then
4118 : OK
4119 else
4120 am_cv_prog_cc_c_o=no
4121 break
4122 fi
4123 done
4124 rm -f core conftest*
4125 unset am_i
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4128 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4129 if test "$am_cv_prog_cc_c_o" != yes; then
4130 # Losing compiler, so override with the script.
4131 # FIXME: It is wrong to rewrite CC.
4132 # But if we don't then we get into trouble of one sort or another.
4133 # A longer-term fix would be to have automake use am__CC in this case,
4134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4135 CC="$am_aux_dir/compile $CC"
4136 fi
4137 ac_ext=c
4138 ac_cpp='$CPP $CPPFLAGS'
4139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142
4143 DEPDIR="${am__leading_dot}deps"
4144
4145 ac_config_commands="$ac_config_commands depfiles"
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4148 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4149 cat > confinc.mk << 'END'
4150 am__doit:
4151 @echo this is the am__doit target >confinc.out
4152 .PHONY: am__doit
4153 END
4154 am__include="#"
4155 am__quote=
4156 # BSD make does it like this.
4157 echo '.include "confinc.mk" # ignored' > confmf.BSD
4158 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4159 echo 'include confinc.mk # ignored' > confmf.GNU
4160 _am_result=no
4161 for s in GNU BSD; do
4162 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4163 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }
4167 case $?:`cat confinc.out 2>/dev/null` in #(
4168 '0:this is the am__doit target') :
4169 case $s in #(
4170 BSD) :
4171 am__include='.include' am__quote='"' ;; #(
4172 *) :
4173 am__include='include' am__quote='' ;;
4174 esac ;; #(
4175 *) :
4176 ;;
4177 esac
4178 if test "$am__include" != "#"; then
4179 _am_result="yes ($s style)"
4180 break
4181 fi
4182 done
4183 rm -f confinc.* confmf.*
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4185 $as_echo "${_am_result}" >&6; }
4186
4187 # Check whether --enable-dependency-tracking was given.
4188 if test "${enable_dependency_tracking+set}" = set; then :
4189 enableval=$enable_dependency_tracking;
4190 fi
4191
4192 if test "x$enable_dependency_tracking" != xno; then
4193 am_depcomp="$ac_aux_dir/depcomp"
4194 AMDEPBACKSLASH='\'
4195 am__nodep='_no'
4196 fi
4197 if test "x$enable_dependency_tracking" != xno; then
4198 AMDEP_TRUE=
4199 AMDEP_FALSE='#'
4200 else
4201 AMDEP_TRUE='#'
4202 AMDEP_FALSE=
4203 fi
4204
4205
4206
4207 depcc="$CC" am_compiler_list=
4208
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4210 $as_echo_n "checking dependency style of $depcc... " >&6; }
4211 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4215 # We make a subdir and do the tests there. Otherwise we can end up
4216 # making bogus files that we don't know about and never remove. For
4217 # instance it was reported that on HP-UX the gcc test will end up
4218 # making a dummy file named 'D' -- because '-MD' means "put the output
4219 # in D".
4220 rm -rf conftest.dir
4221 mkdir conftest.dir
4222 # Copy depcomp to subdir because otherwise we won't find it if we're
4223 # using a relative directory.
4224 cp "$am_depcomp" conftest.dir
4225 cd conftest.dir
4226 # We will build objects and dependencies in a subdirectory because
4227 # it helps to detect inapplicable dependency modes. For instance
4228 # both Tru64's cc and ICC support -MD to output dependencies as a
4229 # side effect of compilation, but ICC will put the dependencies in
4230 # the current directory while Tru64 will put them in the object
4231 # directory.
4232 mkdir sub
4233
4234 am_cv_CC_dependencies_compiler_type=none
4235 if test "$am_compiler_list" = ""; then
4236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4237 fi
4238 am__universal=false
4239 case " $depcc " in #(
4240 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4241 esac
4242
4243 for depmode in $am_compiler_list; do
4244 # Setup a source with many dependencies, because some compilers
4245 # like to wrap large dependency lists on column 80 (with \), and
4246 # we should not choose a depcomp mode which is confused by this.
4247 #
4248 # We need to recreate these files for each test, as the compiler may
4249 # overwrite some of them when testing with obscure command lines.
4250 # This happens at least with the AIX C compiler.
4251 : > sub/conftest.c
4252 for i in 1 2 3 4 5 6; do
4253 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4254 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4255 # Solaris 10 /bin/sh.
4256 echo '/* dummy */' > sub/conftst$i.h
4257 done
4258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4259
4260 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4261 # mode. It turns out that the SunPro C++ compiler does not properly
4262 # handle '-M -o', and we need to detect this. Also, some Intel
4263 # versions had trouble with output in subdirs.
4264 am__obj=sub/conftest.${OBJEXT-o}
4265 am__minus_obj="-o $am__obj"
4266 case $depmode in
4267 gcc)
4268 # This depmode causes a compiler race in universal mode.
4269 test "$am__universal" = false || continue
4270 ;;
4271 nosideeffect)
4272 # After this tag, mechanisms are not by side-effect, so they'll
4273 # only be used when explicitly requested.
4274 if test "x$enable_dependency_tracking" = xyes; then
4275 continue
4276 else
4277 break
4278 fi
4279 ;;
4280 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4281 # This compiler won't grok '-c -o', but also, the minuso test has
4282 # not run yet. These depmodes are late enough in the game, and
4283 # so weak that their functioning should not be impacted.
4284 am__obj=conftest.${OBJEXT-o}
4285 am__minus_obj=
4286 ;;
4287 none) break ;;
4288 esac
4289 if depmode=$depmode \
4290 source=sub/conftest.c object=$am__obj \
4291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4293 >/dev/null 2>conftest.err &&
4294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4298 # icc doesn't choke on unknown options, it will just issue warnings
4299 # or remarks (even with -Werror). So we grep stderr for any message
4300 # that says an option was ignored or not supported.
4301 # When given -MP, icc 7.0 and 7.1 complain thusly:
4302 # icc: Command line warning: ignoring option '-M'; no argument required
4303 # The diagnosis changed in icc 8.0:
4304 # icc: Command line remark: option '-MP' not supported
4305 if (grep 'ignoring option' conftest.err ||
4306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4307 am_cv_CC_dependencies_compiler_type=$depmode
4308 break
4309 fi
4310 fi
4311 done
4312
4313 cd ..
4314 rm -rf conftest.dir
4315 else
4316 am_cv_CC_dependencies_compiler_type=none
4317 fi
4318
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4321 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4322 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4323
4324 if
4325 test "x$enable_dependency_tracking" != xno \
4326 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4327 am__fastdepCC_TRUE=
4328 am__fastdepCC_FALSE='#'
4329 else
4330 am__fastdepCC_TRUE='#'
4331 am__fastdepCC_FALSE=
4332 fi
4333
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4337 $as_echo_n "checking whether ln -s works... " >&6; }
4338 LN_S=$as_ln_s
4339 if test "$LN_S" = "ln -s"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4341 $as_echo "yes" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4344 $as_echo "no, using $LN_S" >&6; }
4345 fi
4346
4347
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4355 # On Suns, sometimes $CPP names a directory.
4356 if test -n "$CPP" && test -d "$CPP"; then
4357 CPP=
4358 fi
4359 if test -z "$CPP"; then
4360 if ${ac_cv_prog_CPP+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 # Double quotes because CPP needs to be expanded
4364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4365 do
4366 ac_preproc_ok=false
4367 for ac_c_preproc_warn_flag in '' yes
4368 do
4369 # Use a header file that comes with gcc, so configuring glibc
4370 # with a fresh cross-compiler works.
4371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372 # <limits.h> exists even on freestanding compilers.
4373 # On the NeXT, cc -E runs the code through the compiler's parser,
4374 # not just through cpp. "Syntax error" is here to catch this case.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #ifdef __STDC__
4378 # include <limits.h>
4379 #else
4380 # include <assert.h>
4381 #endif
4382 Syntax error
4383 _ACEOF
4384 if ac_fn_c_try_cpp "$LINENO"; then :
4385
4386 else
4387 # Broken: fails on valid input.
4388 continue
4389 fi
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4391
4392 # OK, works on sane cases. Now check whether nonexistent headers
4393 # can be detected and how.
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4396 #include <ac_nonexistent.h>
4397 _ACEOF
4398 if ac_fn_c_try_cpp "$LINENO"; then :
4399 # Broken: success on invalid input.
4400 continue
4401 else
4402 # Passes both tests.
4403 ac_preproc_ok=:
4404 break
4405 fi
4406 rm -f conftest.err conftest.i conftest.$ac_ext
4407
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.i conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then :
4412 break
4413 fi
4414
4415 done
4416 ac_cv_prog_CPP=$CPP
4417
4418 fi
4419 CPP=$ac_cv_prog_CPP
4420 else
4421 ac_cv_prog_CPP=$CPP
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4424 $as_echo "$CPP" >&6; }
4425 ac_preproc_ok=false
4426 for ac_c_preproc_warn_flag in '' yes
4427 do
4428 # Use a header file that comes with gcc, so configuring glibc
4429 # with a fresh cross-compiler works.
4430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4431 # <limits.h> exists even on freestanding compilers.
4432 # On the NeXT, cc -E runs the code through the compiler's parser,
4433 # not just through cpp. "Syntax error" is here to catch this case.
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4436 #ifdef __STDC__
4437 # include <limits.h>
4438 #else
4439 # include <assert.h>
4440 #endif
4441 Syntax error
4442 _ACEOF
4443 if ac_fn_c_try_cpp "$LINENO"; then :
4444
4445 else
4446 # Broken: fails on valid input.
4447 continue
4448 fi
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4450
4451 # OK, works on sane cases. Now check whether nonexistent headers
4452 # can be detected and how.
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4455 #include <ac_nonexistent.h>
4456 _ACEOF
4457 if ac_fn_c_try_cpp "$LINENO"; then :
4458 # Broken: success on invalid input.
4459 continue
4460 else
4461 # Passes both tests.
4462 ac_preproc_ok=:
4463 break
4464 fi
4465 rm -f conftest.err conftest.i conftest.$ac_ext
4466
4467 done
4468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4469 rm -f conftest.i conftest.err conftest.$ac_ext
4470 if $ac_preproc_ok; then :
4471
4472 else
4473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4475 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4476 See \`config.log' for more details" "$LINENO" 5; }
4477 fi
4478
4479 ac_ext=c
4480 ac_cpp='$CPP $CPPFLAGS'
4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484
4485 # Extract the first word of "mv", so it can be a program name with args.
4486 set dummy mv; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_path_MV+:} false; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 case $MV in
4493 [\\/]* | ?:[\\/]*)
4494 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4495 ;;
4496 *)
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4513 ;;
4514 esac
4515 fi
4516 MV=$ac_cv_path_MV
4517 if test -n "$MV"; then
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4519 $as_echo "$MV" >&6; }
4520 else
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524
4525
4526 # Extract the first word of "tar", so it can be a program name with args.
4527 set dummy tar; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_path_TAR+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 case $TAR in
4534 [\\/]* | ?:[\\/]*)
4535 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4536 ;;
4537 *)
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541 IFS=$as_save_IFS
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547 break 2
4548 fi
4549 done
4550 done
4551 IFS=$as_save_IFS
4552
4553 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4554 ;;
4555 esac
4556 fi
4557 TAR=$ac_cv_path_TAR
4558 if test -n "$TAR"; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4560 $as_echo "$TAR" >&6; }
4561 else
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 $as_echo "no" >&6; }
4564 fi
4565
4566
4567 # Extract the first word of "perl", so it can be a program name with args.
4568 set dummy perl; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if ${ac_cv_path_PERL+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 case $PERL in
4575 [\\/]* | ?:[\\/]*)
4576 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4577 ;;
4578 *)
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4589 fi
4590 done
4591 done
4592 IFS=$as_save_IFS
4593
4594 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4595 ;;
4596 esac
4597 fi
4598 PERL=$ac_cv_path_PERL
4599 if test -n "$PERL"; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4601 $as_echo "$PERL" >&6; }
4602 else
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 fi
4606
4607
4608 # Extract the first word of "wget", so it can be a program name with args.
4609 set dummy wget; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_path_WGET+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 case $WGET in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4618 ;;
4619 *)
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4636 ;;
4637 esac
4638 fi
4639 WGET=$ac_cv_path_WGET
4640 if test -n "$WGET"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4642 $as_echo "$WGET" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647
4648
4649 # Extract the first word of "xmllint", so it can be a program name with args.
4650 set dummy xmllint; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_path_XMLLINT+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 case $XMLLINT in
4657 [\\/]* | ?:[\\/]*)
4658 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4659 ;;
4660 *)
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4668 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4677 ;;
4678 esac
4679 fi
4680 XMLLINT=$ac_cv_path_XMLLINT
4681 if test -n "$XMLLINT"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4683 $as_echo "$XMLLINT" >&6; }
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 # Extract the first word of "xsltproc", so it can be a program name with args.
4691 set dummy xsltproc; ac_word=$2
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 $as_echo_n "checking for $ac_word... " >&6; }
4694 if ${ac_cv_path_XSLTPROC+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 case $XSLTPROC in
4698 [\\/]* | ?:[\\/]*)
4699 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4700 ;;
4701 *)
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713 done
4714 done
4715 IFS=$as_save_IFS
4716
4717 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4718 ;;
4719 esac
4720 fi
4721 XSLTPROC=$ac_cv_path_XSLTPROC
4722 if test -n "$XSLTPROC"; then
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4724 $as_echo "$XSLTPROC" >&6; }
4725 else
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4741 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743 $as_echo_n "checking for $ac_word... " >&6; }
4744 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 case $PKG_CONFIG in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4750 ;;
4751 *)
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 ;;
4768 esac
4769 fi
4770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4771 if test -n "$PKG_CONFIG"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4773 $as_echo "$PKG_CONFIG" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$ac_cv_path_PKG_CONFIG"; then
4782 ac_pt_PKG_CONFIG=$PKG_CONFIG
4783 # Extract the first word of "pkg-config", so it can be a program name with args.
4784 set dummy pkg-config; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 case $ac_pt_PKG_CONFIG in
4791 [\\/]* | ?:[\\/]*)
4792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4793 ;;
4794 *)
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 ;;
4811 esac
4812 fi
4813 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4814 if test -n "$ac_pt_PKG_CONFIG"; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4816 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4817 else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821
4822 if test "x$ac_pt_PKG_CONFIG" = x; then
4823 PKG_CONFIG=""
4824 else
4825 case $cross_compiling:$ac_tool_warned in
4826 yes:)
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4829 ac_tool_warned=yes ;;
4830 esac
4831 PKG_CONFIG=$ac_pt_PKG_CONFIG
4832 fi
4833 else
4834 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4835 fi
4836
4837 fi
4838 if test -n "$PKG_CONFIG"; then
4839 _pkg_min_version=0.9.0
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4841 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4842 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4844 $as_echo "yes" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 PKG_CONFIG=""
4849 fi
4850 fi
4851
4852 case `pwd` in
4853 *\ * | *\ *)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4855 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4856 esac
4857
4858
4859
4860 macro_version='2.4.6'
4861 macro_revision='2.4.6'
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 ltmain=$ac_aux_dir/ltmain.sh
4876
4877 # Backslashify metacharacters that are still active within
4878 # double-quoted strings.
4879 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4880
4881 # Same as above, but do not quote variable references.
4882 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4883
4884 # Sed substitution to delay expansion of an escaped shell variable in a
4885 # double_quote_subst'ed string.
4886 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4887
4888 # Sed substitution to delay expansion of an escaped single quote.
4889 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4890
4891 # Sed substitution to avoid accidental globbing in evaled expressions
4892 no_glob_subst='s/\*/\\\*/g'
4893
4894 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4895 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4897
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4899 $as_echo_n "checking how to print strings... " >&6; }
4900 # Test print first, because it will be a builtin if present.
4901 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4902 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4903 ECHO='print -r --'
4904 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4905 ECHO='printf %s\n'
4906 else
4907 # Use this function as a fallback that always works.
4908 func_fallback_echo ()
4909 {
4910 eval 'cat <<_LTECHO_EOF
4911 $1
4912 _LTECHO_EOF'
4913 }
4914 ECHO='func_fallback_echo'
4915 fi
4916
4917 # func_echo_all arg...
4918 # Invoke $ECHO with all args, space-separated.
4919 func_echo_all ()
4920 {
4921 $ECHO ""
4922 }
4923
4924 case $ECHO in
4925 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4926 $as_echo "printf" >&6; } ;;
4927 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4928 $as_echo "print -r" >&6; } ;;
4929 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4930 $as_echo "cat" >&6; } ;;
4931 esac
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4947 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4948 if ${ac_cv_path_SED+:} false; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4952 for ac_i in 1 2 3 4 5 6 7; do
4953 ac_script="$ac_script$as_nl$ac_script"
4954 done
4955 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4956 { ac_script=; unset ac_script;}
4957 if test -z "$SED"; then
4958 ac_path_SED_found=false
4959 # Loop through the user's path and test for each of PROGNAME-LIST
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_prog in sed gsed; do
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4968 as_fn_executable_p "$ac_path_SED" || continue
4969 # Check for GNU ac_path_SED and select it if it is found.
4970 # Check for GNU $ac_path_SED
4971 case `"$ac_path_SED" --version 2>&1` in
4972 *GNU*)
4973 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4974 *)
4975 ac_count=0
4976 $as_echo_n 0123456789 >"conftest.in"
4977 while :
4978 do
4979 cat "conftest.in" "conftest.in" >"conftest.tmp"
4980 mv "conftest.tmp" "conftest.in"
4981 cp "conftest.in" "conftest.nl"
4982 $as_echo '' >> "conftest.nl"
4983 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4985 as_fn_arith $ac_count + 1 && ac_count=$as_val
4986 if test $ac_count -gt ${ac_path_SED_max-0}; then
4987 # Best one so far, save it but keep looking for a better one
4988 ac_cv_path_SED="$ac_path_SED"
4989 ac_path_SED_max=$ac_count
4990 fi
4991 # 10*(2^10) chars as input seems more than enough
4992 test $ac_count -gt 10 && break
4993 done
4994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4995 esac
4996
4997 $ac_path_SED_found && break 3
4998 done
4999 done
5000 done
5001 IFS=$as_save_IFS
5002 if test -z "$ac_cv_path_SED"; then
5003 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5004 fi
5005 else
5006 ac_cv_path_SED=$SED
5007 fi
5008
5009 fi
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5011 $as_echo "$ac_cv_path_SED" >&6; }
5012 SED="$ac_cv_path_SED"
5013 rm -f conftest.sed
5014
5015 test -z "$SED" && SED=sed
5016 Xsed="$SED -e 1s/^X//"
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5030 if ${ac_cv_path_GREP+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -z "$GREP"; then
5034 ac_path_GREP_found=false
5035 # Loop through the user's path and test for each of PROGNAME-LIST
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5038 do
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_prog in grep ggrep; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5044 as_fn_executable_p "$ac_path_GREP" || continue
5045 # Check for GNU ac_path_GREP and select it if it is found.
5046 # Check for GNU $ac_path_GREP
5047 case `"$ac_path_GREP" --version 2>&1` in
5048 *GNU*)
5049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5050 *)
5051 ac_count=0
5052 $as_echo_n 0123456789 >"conftest.in"
5053 while :
5054 do
5055 cat "conftest.in" "conftest.in" >"conftest.tmp"
5056 mv "conftest.tmp" "conftest.in"
5057 cp "conftest.in" "conftest.nl"
5058 $as_echo 'GREP' >> "conftest.nl"
5059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5061 as_fn_arith $ac_count + 1 && ac_count=$as_val
5062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5063 # Best one so far, save it but keep looking for a better one
5064 ac_cv_path_GREP="$ac_path_GREP"
5065 ac_path_GREP_max=$ac_count
5066 fi
5067 # 10*(2^10) chars as input seems more than enough
5068 test $ac_count -gt 10 && break
5069 done
5070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5071 esac
5072
5073 $ac_path_GREP_found && break 3
5074 done
5075 done
5076 done
5077 IFS=$as_save_IFS
5078 if test -z "$ac_cv_path_GREP"; then
5079 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5080 fi
5081 else
5082 ac_cv_path_GREP=$GREP
5083 fi
5084
5085 fi
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5087 $as_echo "$ac_cv_path_GREP" >&6; }
5088 GREP="$ac_cv_path_GREP"
5089
5090
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5092 $as_echo_n "checking for egrep... " >&6; }
5093 if ${ac_cv_path_EGREP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5097 then ac_cv_path_EGREP="$GREP -E"
5098 else
5099 if test -z "$EGREP"; then
5100 ac_path_EGREP_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$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105 IFS=$as_save_IFS
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in egrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5110 as_fn_executable_p "$ac_path_EGREP" || continue
5111 # Check for GNU ac_path_EGREP and select it if it is found.
5112 # Check for GNU $ac_path_EGREP
5113 case `"$ac_path_EGREP" --version 2>&1` in
5114 *GNU*)
5115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5116 *)
5117 ac_count=0
5118 $as_echo_n 0123456789 >"conftest.in"
5119 while :
5120 do
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'EGREP' >> "conftest.nl"
5125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 as_fn_arith $ac_count + 1 && ac_count=$as_val
5128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_EGREP="$ac_path_EGREP"
5131 ac_path_EGREP_max=$ac_count
5132 fi
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5135 done
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139 $ac_path_EGREP_found && break 3
5140 done
5141 done
5142 done
5143 IFS=$as_save_IFS
5144 if test -z "$ac_cv_path_EGREP"; then
5145 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5146 fi
5147 else
5148 ac_cv_path_EGREP=$EGREP
5149 fi
5150
5151 fi
5152 fi
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5154 $as_echo "$ac_cv_path_EGREP" >&6; }
5155 EGREP="$ac_cv_path_EGREP"
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5159 $as_echo_n "checking for fgrep... " >&6; }
5160 if ${ac_cv_path_FGREP+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5164 then ac_cv_path_FGREP="$GREP -F"
5165 else
5166 if test -z "$FGREP"; then
5167 ac_path_FGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in fgrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 as_fn_executable_p "$ac_path_FGREP" || continue
5178 # Check for GNU ac_path_FGREP and select it if it is found.
5179 # Check for GNU $ac_path_FGREP
5180 case `"$ac_path_FGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5183 *)
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5187 do
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'FGREP' >> "conftest.nl"
5192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_FGREP="$ac_path_FGREP"
5198 ac_path_FGREP_max=$ac_count
5199 fi
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206 $ac_path_FGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_FGREP"; then
5212 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5213 fi
5214 else
5215 ac_cv_path_FGREP=$FGREP
5216 fi
5217
5218 fi
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5221 $as_echo "$ac_cv_path_FGREP" >&6; }
5222 FGREP="$ac_cv_path_FGREP"
5223
5224
5225 test -z "$GREP" && GREP=grep
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245 # Check whether --with-gnu-ld was given.
5246 if test "${with_gnu_ld+set}" = set; then :
5247 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5248 else
5249 with_gnu_ld=no
5250 fi
5251
5252 ac_prog=ld
5253 if test yes = "$GCC"; then
5254 # Check if gcc -print-prog-name=ld gives a path.
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5256 $as_echo_n "checking for ld used by $CC... " >&6; }
5257 case $host in
5258 *-*-mingw*)
5259 # gcc leaves a trailing carriage return, which upsets mingw
5260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5261 *)
5262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5263 esac
5264 case $ac_prog in
5265 # Accept absolute paths.
5266 [\\/]* | ?:[\\/]*)
5267 re_direlt='/[^/][^/]*/\.\./'
5268 # Canonicalize the pathname of ld
5269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5272 done
5273 test -z "$LD" && LD=$ac_prog
5274 ;;
5275 "")
5276 # If it fails, then pretend we aren't using GCC.
5277 ac_prog=ld
5278 ;;
5279 *)
5280 # If it is relative, then search for the first ld in PATH.
5281 with_gnu_ld=unknown
5282 ;;
5283 esac
5284 elif test yes = "$with_gnu_ld"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5286 $as_echo_n "checking for GNU ld... " >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5289 $as_echo_n "checking for non-GNU ld... " >&6; }
5290 fi
5291 if ${lt_cv_path_LD+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -z "$LD"; then
5295 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH; do
5297 IFS=$lt_save_ifs
5298 test -z "$ac_dir" && ac_dir=.
5299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5300 lt_cv_path_LD=$ac_dir/$ac_prog
5301 # Check to see if the program is GNU ld. I'd rather use --version,
5302 # but apparently some variants of GNU ld only accept -v.
5303 # Break only if it was the GNU/non-GNU ld that we prefer.
5304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5305 *GNU* | *'with BFD'*)
5306 test no != "$with_gnu_ld" && break
5307 ;;
5308 *)
5309 test yes != "$with_gnu_ld" && break
5310 ;;
5311 esac
5312 fi
5313 done
5314 IFS=$lt_save_ifs
5315 else
5316 lt_cv_path_LD=$LD # Let the user override the test with a path.
5317 fi
5318 fi
5319
5320 LD=$lt_cv_path_LD
5321 if test -n "$LD"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5323 $as_echo "$LD" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5330 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5331 if ${lt_cv_prog_gnu_ld+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5335 case `$LD -v 2>&1 </dev/null` in
5336 *GNU* | *'with BFD'*)
5337 lt_cv_prog_gnu_ld=yes
5338 ;;
5339 *)
5340 lt_cv_prog_gnu_ld=no
5341 ;;
5342 esac
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5345 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5346 with_gnu_ld=$lt_cv_prog_gnu_ld
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5357 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5358 if ${lt_cv_path_NM+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -n "$NM"; then
5362 # Let the user override the test.
5363 lt_cv_path_NM=$NM
5364 else
5365 lt_nm_to_check=${ac_tool_prefix}nm
5366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5367 lt_nm_to_check="$lt_nm_to_check nm"
5368 fi
5369 for lt_tmp_nm in $lt_nm_to_check; do
5370 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5371 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5372 IFS=$lt_save_ifs
5373 test -z "$ac_dir" && ac_dir=.
5374 tmp_nm=$ac_dir/$lt_tmp_nm
5375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5376 # Check to see if the nm accepts a BSD-compat flag.
5377 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5378 # nm: unknown option "B" ignored
5379 # Tru64's nm complains that /dev/null is an invalid object file
5380 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5381 case $build_os in
5382 mingw*) lt_bad_file=conftest.nm/nofile ;;
5383 *) lt_bad_file=/dev/null ;;
5384 esac
5385 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5386 *$lt_bad_file* | *'Invalid file or object type'*)
5387 lt_cv_path_NM="$tmp_nm -B"
5388 break 2
5389 ;;
5390 *)
5391 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5392 */dev/null*)
5393 lt_cv_path_NM="$tmp_nm -p"
5394 break 2
5395 ;;
5396 *)
5397 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5398 continue # so that we can try to find one that supports BSD flags
5399 ;;
5400 esac
5401 ;;
5402 esac
5403 fi
5404 done
5405 IFS=$lt_save_ifs
5406 done
5407 : ${lt_cv_path_NM=no}
5408 fi
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5411 $as_echo "$lt_cv_path_NM" >&6; }
5412 if test no != "$lt_cv_path_NM"; then
5413 NM=$lt_cv_path_NM
5414 else
5415 # Didn't find any BSD compatible name lister, look for dumpbin.
5416 if test -n "$DUMPBIN"; then :
5417 # Let the user override the test.
5418 else
5419 if test -n "$ac_tool_prefix"; then
5420 for ac_prog in dumpbin "link -dump"
5421 do
5422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_DUMPBIN+:} false; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 if test -n "$DUMPBIN"; then
5430 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441 break 2
5442 fi
5443 done
5444 done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 DUMPBIN=$ac_cv_prog_DUMPBIN
5450 if test -n "$DUMPBIN"; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5452 $as_echo "$DUMPBIN" >&6; }
5453 else
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 test -n "$DUMPBIN" && break
5460 done
5461 fi
5462 if test -z "$DUMPBIN"; then
5463 ac_ct_DUMPBIN=$DUMPBIN
5464 for ac_prog in dumpbin "link -dump"
5465 do
5466 # Extract the first word of "$ac_prog", so it can be a program name with args.
5467 set dummy $ac_prog; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5471 $as_echo_n "(cached) " >&6
5472 else
5473 if test -n "$ac_ct_DUMPBIN"; then
5474 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5475 else
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 break 2
5486 fi
5487 done
5488 done
5489 IFS=$as_save_IFS
5490
5491 fi
5492 fi
5493 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5494 if test -n "$ac_ct_DUMPBIN"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5496 $as_echo "$ac_ct_DUMPBIN" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501
5502
5503 test -n "$ac_ct_DUMPBIN" && break
5504 done
5505
5506 if test "x$ac_ct_DUMPBIN" = x; then
5507 DUMPBIN=":"
5508 else
5509 case $cross_compiling:$ac_tool_warned in
5510 yes:)
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5513 ac_tool_warned=yes ;;
5514 esac
5515 DUMPBIN=$ac_ct_DUMPBIN
5516 fi
5517 fi
5518
5519 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5520 *COFF*)
5521 DUMPBIN="$DUMPBIN -symbols -headers"
5522 ;;
5523 *)
5524 DUMPBIN=:
5525 ;;
5526 esac
5527 fi
5528
5529 if test : != "$DUMPBIN"; then
5530 NM=$DUMPBIN
5531 fi
5532 fi
5533 test -z "$NM" && NM=nm
5534
5535
5536
5537
5538
5539
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5541 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5542 if ${lt_cv_nm_interface+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 lt_cv_nm_interface="BSD nm"
5546 echo "int some_variable = 0;" > conftest.$ac_ext
5547 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5548 (eval "$ac_compile" 2>conftest.err)
5549 cat conftest.err >&5
5550 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5551 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5552 cat conftest.err >&5
5553 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5554 cat conftest.out >&5
5555 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5556 lt_cv_nm_interface="MS dumpbin"
5557 fi
5558 rm -f conftest*
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5561 $as_echo "$lt_cv_nm_interface" >&6; }
5562
5563 # find the maximum length of command line arguments
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5565 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5566 if ${lt_cv_sys_max_cmd_len+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 i=0
5570 teststring=ABCD
5571
5572 case $build_os in
5573 msdosdjgpp*)
5574 # On DJGPP, this test can blow up pretty badly due to problems in libc
5575 # (any single argument exceeding 2000 bytes causes a buffer overrun
5576 # during glob expansion). Even if it were fixed, the result of this
5577 # check would be larger than it should be.
5578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5579 ;;
5580
5581 gnu*)
5582 # Under GNU Hurd, this test is not required because there is
5583 # no limit to the length of command line arguments.
5584 # Libtool will interpret -1 as no limit whatsoever
5585 lt_cv_sys_max_cmd_len=-1;
5586 ;;
5587
5588 cygwin* | mingw* | cegcc*)
5589 # On Win9x/ME, this test blows up -- it succeeds, but takes
5590 # about 5 minutes as the teststring grows exponentially.
5591 # Worse, since 9x/ME are not pre-emptively multitasking,
5592 # you end up with a "frozen" computer, even though with patience
5593 # the test eventually succeeds (with a max line length of 256k).
5594 # Instead, let's just punt: use the minimum linelength reported by
5595 # all of the supported platforms: 8192 (on NT/2K/XP).
5596 lt_cv_sys_max_cmd_len=8192;
5597 ;;
5598
5599 mint*)
5600 # On MiNT this can take a long time and run out of memory.
5601 lt_cv_sys_max_cmd_len=8192;
5602 ;;
5603
5604 amigaos*)
5605 # On AmigaOS with pdksh, this test takes hours, literally.
5606 # So we just punt and use a minimum line length of 8192.
5607 lt_cv_sys_max_cmd_len=8192;
5608 ;;
5609
5610 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5611 # This has been around since 386BSD, at least. Likely further.
5612 if test -x /sbin/sysctl; then
5613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5614 elif test -x /usr/sbin/sysctl; then
5615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5616 else
5617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5618 fi
5619 # And add a safety zone
5620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5622 ;;
5623
5624 interix*)
5625 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5626 lt_cv_sys_max_cmd_len=196608
5627 ;;
5628
5629 os2*)
5630 # The test takes a long time on OS/2.
5631 lt_cv_sys_max_cmd_len=8192
5632 ;;
5633
5634 osf*)
5635 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5636 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5637 # nice to cause kernel panics so lets avoid the loop below.
5638 # First set a reasonable default.
5639 lt_cv_sys_max_cmd_len=16384
5640 #
5641 if test -x /sbin/sysconfig; then
5642 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5643 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5644 esac
5645 fi
5646 ;;
5647 sco3.2v5*)
5648 lt_cv_sys_max_cmd_len=102400
5649 ;;
5650 sysv5* | sco5v6* | sysv4.2uw2*)
5651 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5652 if test -n "$kargmax"; then
5653 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5654 else
5655 lt_cv_sys_max_cmd_len=32768
5656 fi
5657 ;;
5658 *)
5659 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5660 if test -n "$lt_cv_sys_max_cmd_len" && \
5661 test undefined != "$lt_cv_sys_max_cmd_len"; then
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5664 else
5665 # Make teststring a little bigger before we do anything with it.
5666 # a 1K string should be a reasonable start.
5667 for i in 1 2 3 4 5 6 7 8; do
5668 teststring=$teststring$teststring
5669 done
5670 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5671 # If test is not a shell built-in, we'll probably end up computing a
5672 # maximum length that is only half of the actual maximum length, but
5673 # we can't tell.
5674 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5675 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5676 test 17 != "$i" # 1/2 MB should be enough
5677 do
5678 i=`expr $i + 1`
5679 teststring=$teststring$teststring
5680 done
5681 # Only check the string length outside the loop.
5682 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5683 teststring=
5684 # Add a significant safety factor because C++ compilers can tack on
5685 # massive amounts of additional arguments before passing them to the
5686 # linker. It appears as though 1/2 is a usable value.
5687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5688 fi
5689 ;;
5690 esac
5691
5692 fi
5693
5694 if test -n "$lt_cv_sys_max_cmd_len"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5696 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5699 $as_echo "none" >&6; }
5700 fi
5701 max_cmd_len=$lt_cv_sys_max_cmd_len
5702
5703
5704
5705
5706
5707
5708 : ${CP="cp -f"}
5709 : ${MV="mv -f"}
5710 : ${RM="rm -f"}
5711
5712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5713 lt_unset=unset
5714 else
5715 lt_unset=false
5716 fi
5717
5718
5719
5720
5721
5722 # test EBCDIC or ASCII
5723 case `echo X|tr X '\101'` in
5724 A) # ASCII based system
5725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5726 lt_SP2NL='tr \040 \012'
5727 lt_NL2SP='tr \015\012 \040\040'
5728 ;;
5729 *) # EBCDIC based system
5730 lt_SP2NL='tr \100 \n'
5731 lt_NL2SP='tr \r\n \100\100'
5732 ;;
5733 esac
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5744 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5745 if ${lt_cv_to_host_file_cmd+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748 case $host in
5749 *-*-mingw* )
5750 case $build in
5751 *-*-mingw* ) # actually msys
5752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5753 ;;
5754 *-*-cygwin* )
5755 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5756 ;;
5757 * ) # otherwise, assume *nix
5758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5759 ;;
5760 esac
5761 ;;
5762 *-*-cygwin* )
5763 case $build in
5764 *-*-mingw* ) # actually msys
5765 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5766 ;;
5767 *-*-cygwin* )
5768 lt_cv_to_host_file_cmd=func_convert_file_noop
5769 ;;
5770 * ) # otherwise, assume *nix
5771 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5772 ;;
5773 esac
5774 ;;
5775 * ) # unhandled hosts (and "normal" native builds)
5776 lt_cv_to_host_file_cmd=func_convert_file_noop
5777 ;;
5778 esac
5779
5780 fi
5781
5782 to_host_file_cmd=$lt_cv_to_host_file_cmd
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5784 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5785
5786
5787
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5791 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5792 if ${lt_cv_to_tool_file_cmd+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 #assume ordinary cross tools, or native build.
5796 lt_cv_to_tool_file_cmd=func_convert_file_noop
5797 case $host in
5798 *-*-mingw* )
5799 case $build in
5800 *-*-mingw* ) # actually msys
5801 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5802 ;;
5803 esac
5804 ;;
5805 esac
5806
5807 fi
5808
5809 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5811 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5812
5813
5814
5815
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5818 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5819 if ${lt_cv_ld_reload_flag+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 lt_cv_ld_reload_flag='-r'
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5825 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5826 reload_flag=$lt_cv_ld_reload_flag
5827 case $reload_flag in
5828 "" | " "*) ;;
5829 *) reload_flag=" $reload_flag" ;;
5830 esac
5831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5832 case $host_os in
5833 cygwin* | mingw* | pw32* | cegcc*)
5834 if test yes != "$GCC"; then
5835 reload_cmds=false
5836 fi
5837 ;;
5838 darwin*)
5839 if test yes = "$GCC"; then
5840 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5841 else
5842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5843 fi
5844 ;;
5845 esac
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 if test -n "$ac_tool_prefix"; then
5856 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5857 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5859 $as_echo_n "checking for $ac_word... " >&6; }
5860 if ${ac_cv_prog_OBJDUMP+:} false; then :
5861 $as_echo_n "(cached) " >&6
5862 else
5863 if test -n "$OBJDUMP"; then
5864 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5876 fi
5877 done
5878 done
5879 IFS=$as_save_IFS
5880
5881 fi
5882 fi
5883 OBJDUMP=$ac_cv_prog_OBJDUMP
5884 if test -n "$OBJDUMP"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5886 $as_echo "$OBJDUMP" >&6; }
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5889 $as_echo "no" >&6; }
5890 fi
5891
5892
5893 fi
5894 if test -z "$ac_cv_prog_OBJDUMP"; then
5895 ac_ct_OBJDUMP=$OBJDUMP
5896 # Extract the first word of "objdump", so it can be a program name with args.
5897 set dummy objdump; ac_word=$2
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5899 $as_echo_n "checking for $ac_word... " >&6; }
5900 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5901 $as_echo_n "(cached) " >&6
5902 else
5903 if test -n "$ac_ct_OBJDUMP"; then
5904 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5905 else
5906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909 IFS=$as_save_IFS
5910 test -z "$as_dir" && as_dir=.
5911 for ac_exec_ext in '' $ac_executable_extensions; do
5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915 break 2
5916 fi
5917 done
5918 done
5919 IFS=$as_save_IFS
5920
5921 fi
5922 fi
5923 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5924 if test -n "$ac_ct_OBJDUMP"; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5926 $as_echo "$ac_ct_OBJDUMP" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929 $as_echo "no" >&6; }
5930 fi
5931
5932 if test "x$ac_ct_OBJDUMP" = x; then
5933 OBJDUMP="false"
5934 else
5935 case $cross_compiling:$ac_tool_warned in
5936 yes:)
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5939 ac_tool_warned=yes ;;
5940 esac
5941 OBJDUMP=$ac_ct_OBJDUMP
5942 fi
5943 else
5944 OBJDUMP="$ac_cv_prog_OBJDUMP"
5945 fi
5946
5947 test -z "$OBJDUMP" && OBJDUMP=objdump
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5958 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5959 if ${lt_cv_deplibs_check_method+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 lt_cv_file_magic_cmd='$MAGIC_CMD'
5963 lt_cv_file_magic_test_file=
5964 lt_cv_deplibs_check_method='unknown'
5965 # Need to set the preceding variable on all platforms that support
5966 # interlibrary dependencies.
5967 # 'none' -- dependencies not supported.
5968 # 'unknown' -- same as none, but documents that we really don't know.
5969 # 'pass_all' -- all dependencies passed with no checks.
5970 # 'test_compile' -- check by making test program.
5971 # 'file_magic [[regex]]' -- check by looking for files in library path
5972 # that responds to the $file_magic_cmd with a given extended regex.
5973 # If you have 'file' or equivalent on your system and you're not sure
5974 # whether 'pass_all' will *always* work, you probably want this one.
5975
5976 case $host_os in
5977 aix[4-9]*)
5978 lt_cv_deplibs_check_method=pass_all
5979 ;;
5980
5981 beos*)
5982 lt_cv_deplibs_check_method=pass_all
5983 ;;
5984
5985 bsdi[45]*)
5986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5987 lt_cv_file_magic_cmd='/usr/bin/file -L'
5988 lt_cv_file_magic_test_file=/shlib/libc.so
5989 ;;
5990
5991 cygwin*)
5992 # func_win32_libid is a shell function defined in ltmain.sh
5993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5994 lt_cv_file_magic_cmd='func_win32_libid'
5995 ;;
5996
5997 mingw* | pw32*)
5998 # Base MSYS/MinGW do not provide the 'file' command needed by
5999 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6000 # unless we find 'file', for example because we are cross-compiling.
6001 if ( file / ) >/dev/null 2>&1; then
6002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6003 lt_cv_file_magic_cmd='func_win32_libid'
6004 else
6005 # Keep this pattern in sync with the one in func_win32_libid.
6006 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6007 lt_cv_file_magic_cmd='$OBJDUMP -f'
6008 fi
6009 ;;
6010
6011 cegcc*)
6012 # use the weaker test based on 'objdump'. See mingw*.
6013 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6014 lt_cv_file_magic_cmd='$OBJDUMP -f'
6015 ;;
6016
6017 darwin* | rhapsody*)
6018 lt_cv_deplibs_check_method=pass_all
6019 ;;
6020
6021 freebsd* | dragonfly*)
6022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6023 case $host_cpu in
6024 i*86 )
6025 # Not sure whether the presence of OpenBSD here was a mistake.
6026 # Let's accept both of them until this is cleared up.
6027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6028 lt_cv_file_magic_cmd=/usr/bin/file
6029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6030 ;;
6031 esac
6032 else
6033 lt_cv_deplibs_check_method=pass_all
6034 fi
6035 ;;
6036
6037 haiku*)
6038 lt_cv_deplibs_check_method=pass_all
6039 ;;
6040
6041 hpux10.20* | hpux11*)
6042 lt_cv_file_magic_cmd=/usr/bin/file
6043 case $host_cpu in
6044 ia64*)
6045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6047 ;;
6048 hppa*64*)
6049 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]'
6050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6051 ;;
6052 *)
6053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6054 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6055 ;;
6056 esac
6057 ;;
6058
6059 interix[3-9]*)
6060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6062 ;;
6063
6064 irix5* | irix6* | nonstopux*)
6065 case $LD in
6066 *-32|*"-32 ") libmagic=32-bit;;
6067 *-n32|*"-n32 ") libmagic=N32;;
6068 *-64|*"-64 ") libmagic=64-bit;;
6069 *) libmagic=never-match;;
6070 esac
6071 lt_cv_deplibs_check_method=pass_all
6072 ;;
6073
6074 # This must be glibc/ELF.
6075 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078
6079 netbsd* | netbsdelf*-gnu)
6080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6082 else
6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6084 fi
6085 ;;
6086
6087 newos6*)
6088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6089 lt_cv_file_magic_cmd=/usr/bin/file
6090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6091 ;;
6092
6093 *nto* | *qnx*)
6094 lt_cv_deplibs_check_method=pass_all
6095 ;;
6096
6097 openbsd* | bitrig*)
6098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6100 else
6101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6102 fi
6103 ;;
6104
6105 osf3* | osf4* | osf5*)
6106 lt_cv_deplibs_check_method=pass_all
6107 ;;
6108
6109 rdos*)
6110 lt_cv_deplibs_check_method=pass_all
6111 ;;
6112
6113 solaris*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6118 lt_cv_deplibs_check_method=pass_all
6119 ;;
6120
6121 sysv4 | sysv4.3*)
6122 case $host_vendor in
6123 motorola)
6124 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]'
6125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6126 ;;
6127 ncr)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130 sequent)
6131 lt_cv_file_magic_cmd='/bin/file'
6132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6133 ;;
6134 sni)
6135 lt_cv_file_magic_cmd='/bin/file'
6136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6137 lt_cv_file_magic_test_file=/lib/libc.so
6138 ;;
6139 siemens)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142 pc)
6143 lt_cv_deplibs_check_method=pass_all
6144 ;;
6145 esac
6146 ;;
6147
6148 tpf*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151 os2*)
6152 lt_cv_deplibs_check_method=pass_all
6153 ;;
6154 esac
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6158 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6159
6160 file_magic_glob=
6161 want_nocaseglob=no
6162 if test "$build" = "$host"; then
6163 case $host_os in
6164 mingw* | pw32*)
6165 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6166 want_nocaseglob=yes
6167 else
6168 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6169 fi
6170 ;;
6171 esac
6172 fi
6173
6174 file_magic_cmd=$lt_cv_file_magic_cmd
6175 deplibs_check_method=$lt_cv_deplibs_check_method
6176 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if ${ac_cv_prog_DLLTOOL+:} false; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$DLLTOOL"; then
6208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6217 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 DLLTOOL=$ac_cv_prog_DLLTOOL
6228 if test -n "$DLLTOOL"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6230 $as_echo "$DLLTOOL" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236
6237 fi
6238 if test -z "$ac_cv_prog_DLLTOOL"; then
6239 ac_ct_DLLTOOL=$DLLTOOL
6240 # Extract the first word of "dlltool", so it can be a program name with args.
6241 set dummy dlltool; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$ac_ct_DLLTOOL"; then
6248 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6268 if test -n "$ac_ct_DLLTOOL"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6270 $as_echo "$ac_ct_DLLTOOL" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276 if test "x$ac_ct_DLLTOOL" = x; then
6277 DLLTOOL="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285 DLLTOOL=$ac_ct_DLLTOOL
6286 fi
6287 else
6288 DLLTOOL="$ac_cv_prog_DLLTOOL"
6289 fi
6290
6291 test -z "$DLLTOOL" && DLLTOOL=dlltool
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6303 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6304 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 lt_cv_sharedlib_from_linklib_cmd='unknown'
6308
6309 case $host_os in
6310 cygwin* | mingw* | pw32* | cegcc*)
6311 # two different shell functions defined in ltmain.sh;
6312 # decide which one to use based on capabilities of $DLLTOOL
6313 case `$DLLTOOL --help 2>&1` in
6314 *--identify-strict*)
6315 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6316 ;;
6317 *)
6318 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6319 ;;
6320 esac
6321 ;;
6322 *)
6323 # fallback: assume linklib IS sharedlib
6324 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6325 ;;
6326 esac
6327
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6330 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6331 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6332 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6333
6334
6335
6336
6337
6338
6339
6340
6341 if test -n "$ac_tool_prefix"; then
6342 for ac_prog in ar
6343 do
6344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_AR+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$AR"; then
6352 ac_cv_prog_AR="$AR" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 AR=$ac_cv_prog_AR
6372 if test -n "$AR"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6374 $as_echo "$AR" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 test -n "$AR" && break
6382 done
6383 fi
6384 if test -z "$AR"; then
6385 ac_ct_AR=$AR
6386 for ac_prog in ar
6387 do
6388 # Extract the first word of "$ac_prog", so it can be a program name with args.
6389 set dummy $ac_prog; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$ac_ct_AR"; then
6396 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_ac_ct_AR="$ac_prog"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6416 if test -n "$ac_ct_AR"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6418 $as_echo "$ac_ct_AR" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 test -n "$ac_ct_AR" && break
6426 done
6427
6428 if test "x$ac_ct_AR" = x; then
6429 AR="false"
6430 else
6431 case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 AR=$ac_ct_AR
6438 fi
6439 fi
6440
6441 : ${AR=ar}
6442 : ${AR_FLAGS=cr}
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6455 $as_echo_n "checking for archiver @FILE support... " >&6; }
6456 if ${lt_cv_ar_at_file+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 lt_cv_ar_at_file=no
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6462
6463 int
6464 main ()
6465 {
6466
6467 ;
6468 return 0;
6469 }
6470 _ACEOF
6471 if ac_fn_c_try_compile "$LINENO"; then :
6472 echo conftest.$ac_objext > conftest.lst
6473 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6475 (eval $lt_ar_try) 2>&5
6476 ac_status=$?
6477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6478 test $ac_status = 0; }
6479 if test 0 -eq "$ac_status"; then
6480 # Ensure the archiver fails upon bogus file names.
6481 rm -f conftest.$ac_objext libconftest.a
6482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6483 (eval $lt_ar_try) 2>&5
6484 ac_status=$?
6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486 test $ac_status = 0; }
6487 if test 0 -ne "$ac_status"; then
6488 lt_cv_ar_at_file=@
6489 fi
6490 fi
6491 rm -f conftest.* libconftest.a
6492
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495
6496 fi
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6498 $as_echo "$lt_cv_ar_at_file" >&6; }
6499
6500 if test no = "$lt_cv_ar_at_file"; then
6501 archiver_list_spec=
6502 else
6503 archiver_list_spec=$lt_cv_ar_at_file
6504 fi
6505
6506
6507
6508
6509
6510
6511
6512 if test -n "$ac_tool_prefix"; then
6513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6514 set dummy ${ac_tool_prefix}strip; ac_word=$2
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516 $as_echo_n "checking for $ac_word... " >&6; }
6517 if ${ac_cv_prog_STRIP+:} false; then :
6518 $as_echo_n "(cached) " >&6
6519 else
6520 if test -n "$STRIP"; then
6521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526 IFS=$as_save_IFS
6527 test -z "$as_dir" && as_dir=.
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532 break 2
6533 fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 STRIP=$ac_cv_prog_STRIP
6541 if test -n "$STRIP"; then
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6543 $as_echo "$STRIP" >&6; }
6544 else
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546 $as_echo "no" >&6; }
6547 fi
6548
6549
6550 fi
6551 if test -z "$ac_cv_prog_STRIP"; then
6552 ac_ct_STRIP=$STRIP
6553 # Extract the first word of "strip", so it can be a program name with args.
6554 set dummy strip; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 if test -n "$ac_ct_STRIP"; then
6561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566 IFS=$as_save_IFS
6567 test -z "$as_dir" && as_dir=.
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_STRIP="strip"
6571 $as_echo "$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_STRIP=$ac_cv_prog_ac_ct_STRIP
6581 if test -n "$ac_ct_STRIP"; then
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6583 $as_echo "$ac_ct_STRIP" >&6; }
6584 else
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586 $as_echo "no" >&6; }
6587 fi
6588
6589 if test "x$ac_ct_STRIP" = x; then
6590 STRIP=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 STRIP=$ac_ct_STRIP
6599 fi
6600 else
6601 STRIP="$ac_cv_prog_STRIP"
6602 fi
6603
6604 test -z "$STRIP" && STRIP=:
6605
6606
6607
6608
6609
6610
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_RANLIB+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6624 do
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6632 fi
6633 done
6634 done
6635 IFS=$as_save_IFS
6636
6637 fi
6638 fi
6639 RANLIB=$ac_cv_prog_RANLIB
6640 if test -n "$RANLIB"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642 $as_echo "$RANLIB" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647
6648
6649 fi
6650 if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653 set dummy ranlib; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_RANLIB="ranlib"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680 if test -n "$ac_ct_RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682 $as_echo "$ac_ct_RANLIB" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_RANLIB" = x; then
6689 RANLIB=":"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 RANLIB=$ac_ct_RANLIB
6698 fi
6699 else
6700 RANLIB="$ac_cv_prog_RANLIB"
6701 fi
6702
6703 test -z "$RANLIB" && RANLIB=:
6704
6705
6706
6707
6708
6709
6710 # Determine commands to create old-style static archives.
6711 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6712 old_postinstall_cmds='chmod 644 $oldlib'
6713 old_postuninstall_cmds=
6714
6715 if test -n "$RANLIB"; then
6716 case $host_os in
6717 bitrig* | openbsd*)
6718 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6719 ;;
6720 *)
6721 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6722 ;;
6723 esac
6724 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6725 fi
6726
6727 case $host_os in
6728 darwin*)
6729 lock_old_archive_extraction=yes ;;
6730 *)
6731 lock_old_archive_extraction=no ;;
6732 esac
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772 # If no C compiler was specified, use CC.
6773 LTCC=${LTCC-"$CC"}
6774
6775 # If no C compiler flags were specified, use CFLAGS.
6776 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6777
6778 # Allow CC to be a program name with arguments.
6779 compiler=$CC
6780
6781
6782 # Check for command to grab the raw symbol name followed by C symbol from nm.
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6784 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6785 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788
6789 # These are sane defaults that work on at least a few old systems.
6790 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6791
6792 # Character class describing NM global symbol codes.
6793 symcode='[BCDEGRST]'
6794
6795 # Regexp to match symbols that can be accessed directly from C.
6796 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6797
6798 # Define system-specific variables.
6799 case $host_os in
6800 aix*)
6801 symcode='[BCDT]'
6802 ;;
6803 cygwin* | mingw* | pw32* | cegcc*)
6804 symcode='[ABCDGISTW]'
6805 ;;
6806 hpux*)
6807 if test ia64 = "$host_cpu"; then
6808 symcode='[ABCDEGRST]'
6809 fi
6810 ;;
6811 irix* | nonstopux*)
6812 symcode='[BCDEGRST]'
6813 ;;
6814 osf*)
6815 symcode='[BCDEGQRST]'
6816 ;;
6817 solaris*)
6818 symcode='[BDRT]'
6819 ;;
6820 sco3.2v5*)
6821 symcode='[DT]'
6822 ;;
6823 sysv4.2uw2*)
6824 symcode='[DT]'
6825 ;;
6826 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6827 symcode='[ABDT]'
6828 ;;
6829 sysv4)
6830 symcode='[DFNSTU]'
6831 ;;
6832 esac
6833
6834 # If we're using GNU nm, then use its standard symbol codes.
6835 case `$NM -V 2>&1` in
6836 *GNU* | *'with BFD'*)
6837 symcode='[ABCDGIRSTW]' ;;
6838 esac
6839
6840 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6841 # Gets list of data symbols to import.
6842 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6843 # Adjust the below global symbol transforms to fixup imported variables.
6844 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6845 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6846 lt_c_name_lib_hook="\
6847 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6848 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6849 else
6850 # Disable hooks by default.
6851 lt_cv_sys_global_symbol_to_import=
6852 lt_cdecl_hook=
6853 lt_c_name_hook=
6854 lt_c_name_lib_hook=
6855 fi
6856
6857 # Transform an extracted symbol line into a proper C declaration.
6858 # Some systems (esp. on ia64) link data and code symbols differently,
6859 # so use this general approach.
6860 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6861 $lt_cdecl_hook\
6862 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6863 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6864
6865 # Transform an extracted symbol line into symbol name and symbol address
6866 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6867 $lt_c_name_hook\
6868 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6869 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6870
6871 # Transform an extracted symbol line into symbol name with lib prefix and
6872 # symbol address.
6873 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6874 $lt_c_name_lib_hook\
6875 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6876 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6877 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6878
6879 # Handle CRLF in mingw tool chain
6880 opt_cr=
6881 case $build_os in
6882 mingw*)
6883 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6884 ;;
6885 esac
6886
6887 # Try without a prefix underscore, then with it.
6888 for ac_symprfx in "" "_"; do
6889
6890 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6891 symxfrm="\\1 $ac_symprfx\\2 \\2"
6892
6893 # Write the raw and C identifiers.
6894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6895 # Fake it for dumpbin and say T for any non-static function,
6896 # D for any global variable and I for any imported variable.
6897 # Also find C++ and __fastcall symbols from MSVC++,
6898 # which start with @ or ?.
6899 lt_cv_sys_global_symbol_pipe="$AWK '"\
6900 " {last_section=section; section=\$ 3};"\
6901 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6902 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6903 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6904 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6905 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6906 " \$ 0!~/External *\|/{next};"\
6907 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908 " {if(hide[section]) next};"\
6909 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6910 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6911 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6912 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6913 " ' prfx=^$ac_symprfx"
6914 else
6915 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916 fi
6917 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6918
6919 # Check to see that the pipe works correctly.
6920 pipe_works=no
6921
6922 rm -f conftest*
6923 cat > conftest.$ac_ext <<_LT_EOF
6924 #ifdef __cplusplus
6925 extern "C" {
6926 #endif
6927 char nm_test_var;
6928 void nm_test_func(void);
6929 void nm_test_func(void){}
6930 #ifdef __cplusplus
6931 }
6932 #endif
6933 int main(){nm_test_var='a';nm_test_func();return(0);}
6934 _LT_EOF
6935
6936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937 (eval $ac_compile) 2>&5
6938 ac_status=$?
6939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940 test $ac_status = 0; }; then
6941 # Now try to grab the symbols.
6942 nlist=conftest.nm
6943 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6944 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6945 # Try sorting and uniquifying the output.
6946 if sort "$nlist" | uniq > "$nlist"T; then
6947 mv -f "$nlist"T "$nlist"
6948 else
6949 rm -f "$nlist"T
6950 fi
6951
6952 # Make sure that we snagged all the symbols we need.
6953 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6954 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6955 cat <<_LT_EOF > conftest.$ac_ext
6956 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6957 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6958 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6959 relocations are performed -- see ld's documentation on pseudo-relocs. */
6960 # define LT_DLSYM_CONST
6961 #elif defined __osf__
6962 /* This system does not cope well with relocations in const data. */
6963 # define LT_DLSYM_CONST
6964 #else
6965 # define LT_DLSYM_CONST const
6966 #endif
6967
6968 #ifdef __cplusplus
6969 extern "C" {
6970 #endif
6971
6972 _LT_EOF
6973 # Now generate the symbol file.
6974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6975
6976 cat <<_LT_EOF >> conftest.$ac_ext
6977
6978 /* The mapping between symbol names and symbols. */
6979 LT_DLSYM_CONST struct {
6980 const char *name;
6981 void *address;
6982 }
6983 lt__PROGRAM__LTX_preloaded_symbols[] =
6984 {
6985 { "@PROGRAM@", (void *) 0 },
6986 _LT_EOF
6987 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6988 cat <<\_LT_EOF >> conftest.$ac_ext
6989 {0, (void *) 0}
6990 };
6991
6992 /* This works around a problem in FreeBSD linker */
6993 #ifdef FREEBSD_WORKAROUND
6994 static const void *lt_preloaded_setup() {
6995 return lt__PROGRAM__LTX_preloaded_symbols;
6996 }
6997 #endif
6998
6999 #ifdef __cplusplus
7000 }
7001 #endif
7002 _LT_EOF
7003 # Now try linking the two files.
7004 mv conftest.$ac_objext conftstm.$ac_objext
7005 lt_globsym_save_LIBS=$LIBS
7006 lt_globsym_save_CFLAGS=$CFLAGS
7007 LIBS=conftstm.$ac_objext
7008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7010 (eval $ac_link) 2>&5
7011 ac_status=$?
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7014 pipe_works=yes
7015 fi
7016 LIBS=$lt_globsym_save_LIBS
7017 CFLAGS=$lt_globsym_save_CFLAGS
7018 else
7019 echo "cannot find nm_test_func in $nlist" >&5
7020 fi
7021 else
7022 echo "cannot find nm_test_var in $nlist" >&5
7023 fi
7024 else
7025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7026 fi
7027 else
7028 echo "$progname: failed program was:" >&5
7029 cat conftest.$ac_ext >&5
7030 fi
7031 rm -rf conftest* conftst*
7032
7033 # Do not use the global_symbol_pipe unless it works.
7034 if test yes = "$pipe_works"; then
7035 break
7036 else
7037 lt_cv_sys_global_symbol_pipe=
7038 fi
7039 done
7040
7041 fi
7042
7043 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7044 lt_cv_sys_global_symbol_to_cdecl=
7045 fi
7046 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7048 $as_echo "failed" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7051 $as_echo "ok" >&6; }
7052 fi
7053
7054 # Response file support.
7055 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7056 nm_file_list_spec='@'
7057 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7058 nm_file_list_spec='@'
7059 fi
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7098 $as_echo_n "checking for sysroot... " >&6; }
7099
7100 # Check whether --with-sysroot was given.
7101 if test "${with_sysroot+set}" = set; then :
7102 withval=$with_sysroot;
7103 else
7104 with_sysroot=no
7105 fi
7106
7107
7108 lt_sysroot=
7109 case $with_sysroot in #(
7110 yes)
7111 if test yes = "$GCC"; then
7112 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7113 fi
7114 ;; #(
7115 /*)
7116 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7117 ;; #(
7118 no|'')
7119 ;; #(
7120 *)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7122 $as_echo "$with_sysroot" >&6; }
7123 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7124 ;;
7125 esac
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7128 $as_echo "${lt_sysroot:-no}" >&6; }
7129
7130
7131
7132
7133
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7135 $as_echo_n "checking for a working dd... " >&6; }
7136 if ${ac_cv_path_lt_DD+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 printf 0123456789abcdef0123456789abcdef >conftest.i
7140 cat conftest.i conftest.i >conftest2.i
7141 : ${lt_DD:=$DD}
7142 if test -z "$lt_DD"; then
7143 ac_path_lt_DD_found=false
7144 # Loop through the user's path and test for each of PROGNAME-LIST
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_prog in dd; do
7151 for ac_exec_ext in '' $ac_executable_extensions; do
7152 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7153 as_fn_executable_p "$ac_path_lt_DD" || continue
7154 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7155 cmp -s conftest.i conftest.out \
7156 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7157 fi
7158 $ac_path_lt_DD_found && break 3
7159 done
7160 done
7161 done
7162 IFS=$as_save_IFS
7163 if test -z "$ac_cv_path_lt_DD"; then
7164 :
7165 fi
7166 else
7167 ac_cv_path_lt_DD=$lt_DD
7168 fi
7169
7170 rm -f conftest.i conftest2.i conftest.out
7171 fi
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7173 $as_echo "$ac_cv_path_lt_DD" >&6; }
7174
7175
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7177 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7178 if ${lt_cv_truncate_bin+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 printf 0123456789abcdef0123456789abcdef >conftest.i
7182 cat conftest.i conftest.i >conftest2.i
7183 lt_cv_truncate_bin=
7184 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7185 cmp -s conftest.i conftest.out \
7186 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7187 fi
7188 rm -f conftest.i conftest2.i conftest.out
7189 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7192 $as_echo "$lt_cv_truncate_bin" >&6; }
7193
7194
7195
7196
7197
7198
7199
7200 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7201 func_cc_basename ()
7202 {
7203 for cc_temp in $*""; do
7204 case $cc_temp in
7205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7207 \-*) ;;
7208 *) break;;
7209 esac
7210 done
7211 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7212 }
7213
7214 # Check whether --enable-libtool-lock was given.
7215 if test "${enable_libtool_lock+set}" = set; then :
7216 enableval=$enable_libtool_lock;
7217 fi
7218
7219 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7220
7221 # Some flags need to be propagated to the compiler or linker for good
7222 # libtool support.
7223 case $host in
7224 ia64-*-hpux*)
7225 # Find out what ABI is being produced by ac_compile, and set mode
7226 # options accordingly.
7227 echo 'int i;' > conftest.$ac_ext
7228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7229 (eval $ac_compile) 2>&5
7230 ac_status=$?
7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; }; then
7233 case `/usr/bin/file conftest.$ac_objext` in
7234 *ELF-32*)
7235 HPUX_IA64_MODE=32
7236 ;;
7237 *ELF-64*)
7238 HPUX_IA64_MODE=64
7239 ;;
7240 esac
7241 fi
7242 rm -rf conftest*
7243 ;;
7244 *-*-irix6*)
7245 # Find out what ABI is being produced by ac_compile, and set linker
7246 # options accordingly.
7247 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7249 (eval $ac_compile) 2>&5
7250 ac_status=$?
7251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7252 test $ac_status = 0; }; then
7253 if test yes = "$lt_cv_prog_gnu_ld"; then
7254 case `/usr/bin/file conftest.$ac_objext` in
7255 *32-bit*)
7256 LD="${LD-ld} -melf32bsmip"
7257 ;;
7258 *N32*)
7259 LD="${LD-ld} -melf32bmipn32"
7260 ;;
7261 *64-bit*)
7262 LD="${LD-ld} -melf64bmip"
7263 ;;
7264 esac
7265 else
7266 case `/usr/bin/file conftest.$ac_objext` in
7267 *32-bit*)
7268 LD="${LD-ld} -32"
7269 ;;
7270 *N32*)
7271 LD="${LD-ld} -n32"
7272 ;;
7273 *64-bit*)
7274 LD="${LD-ld} -64"
7275 ;;
7276 esac
7277 fi
7278 fi
7279 rm -rf conftest*
7280 ;;
7281
7282 mips64*-*linux*)
7283 # Find out what ABI is being produced by ac_compile, and set linker
7284 # options accordingly.
7285 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290 test $ac_status = 0; }; then
7291 emul=elf
7292 case `/usr/bin/file conftest.$ac_objext` in
7293 *32-bit*)
7294 emul="${emul}32"
7295 ;;
7296 *64-bit*)
7297 emul="${emul}64"
7298 ;;
7299 esac
7300 case `/usr/bin/file conftest.$ac_objext` in
7301 *MSB*)
7302 emul="${emul}btsmip"
7303 ;;
7304 *LSB*)
7305 emul="${emul}ltsmip"
7306 ;;
7307 esac
7308 case `/usr/bin/file conftest.$ac_objext` in
7309 *N32*)
7310 emul="${emul}n32"
7311 ;;
7312 esac
7313 LD="${LD-ld} -m $emul"
7314 fi
7315 rm -rf conftest*
7316 ;;
7317
7318 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7319 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7320 # Find out what ABI is being produced by ac_compile, and set linker
7321 # options accordingly. Note that the listed cases only cover the
7322 # situations where additional linker options are needed (such as when
7323 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7324 # vice versa); the common cases where no linker options are needed do
7325 # not appear in the list.
7326 echo 'int i;' > conftest.$ac_ext
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 case `/usr/bin/file conftest.o` in
7333 *32-bit*)
7334 case $host in
7335 x86_64-*kfreebsd*-gnu)
7336 LD="${LD-ld} -m elf_i386_fbsd"
7337 ;;
7338 x86_64-*linux*)
7339 case `/usr/bin/file conftest.o` in
7340 *x86-64*)
7341 LD="${LD-ld} -m elf32_x86_64"
7342 ;;
7343 *)
7344 LD="${LD-ld} -m elf_i386"
7345 ;;
7346 esac
7347 ;;
7348 powerpc64le-*linux*)
7349 LD="${LD-ld} -m elf32lppclinux"
7350 ;;
7351 powerpc64-*linux*)
7352 LD="${LD-ld} -m elf32ppclinux"
7353 ;;
7354 s390x-*linux*)
7355 LD="${LD-ld} -m elf_s390"
7356 ;;
7357 sparc64-*linux*)
7358 LD="${LD-ld} -m elf32_sparc"
7359 ;;
7360 esac
7361 ;;
7362 *64-bit*)
7363 case $host in
7364 x86_64-*kfreebsd*-gnu)
7365 LD="${LD-ld} -m elf_x86_64_fbsd"
7366 ;;
7367 x86_64-*linux*)
7368 LD="${LD-ld} -m elf_x86_64"
7369 ;;
7370 powerpcle-*linux*)
7371 LD="${LD-ld} -m elf64lppc"
7372 ;;
7373 powerpc-*linux*)
7374 LD="${LD-ld} -m elf64ppc"
7375 ;;
7376 s390*-*linux*|s390*-*tpf*)
7377 LD="${LD-ld} -m elf64_s390"
7378 ;;
7379 sparc*-*linux*)
7380 LD="${LD-ld} -m elf64_sparc"
7381 ;;
7382 esac
7383 ;;
7384 esac
7385 fi
7386 rm -rf conftest*
7387 ;;
7388
7389 *-*-sco3.2v5*)
7390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7391 SAVE_CFLAGS=$CFLAGS
7392 CFLAGS="$CFLAGS -belf"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7394 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7395 if ${lt_cv_cc_needs_belf+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 ac_ext=c
7399 ac_cpp='$CPP $CPPFLAGS'
7400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7403
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406
7407 int
7408 main ()
7409 {
7410
7411 ;
7412 return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_link "$LINENO"; then :
7416 lt_cv_cc_needs_belf=yes
7417 else
7418 lt_cv_cc_needs_belf=no
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7422 ac_ext=c
7423 ac_cpp='$CPP $CPPFLAGS'
7424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7427
7428 fi
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7430 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7431 if test yes != "$lt_cv_cc_needs_belf"; then
7432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7433 CFLAGS=$SAVE_CFLAGS
7434 fi
7435 ;;
7436 *-*solaris*)
7437 # Find out what ABI is being produced by ac_compile, and set linker
7438 # options accordingly.
7439 echo 'int i;' > conftest.$ac_ext
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7441 (eval $ac_compile) 2>&5
7442 ac_status=$?
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; }; then
7445 case `/usr/bin/file conftest.o` in
7446 *64-bit*)
7447 case $lt_cv_prog_gnu_ld in
7448 yes*)
7449 case $host in
7450 i?86-*-solaris*|x86_64-*-solaris*)
7451 LD="${LD-ld} -m elf_x86_64"
7452 ;;
7453 sparc*-*-solaris*)
7454 LD="${LD-ld} -m elf64_sparc"
7455 ;;
7456 esac
7457 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7458 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7459 LD=${LD-ld}_sol2
7460 fi
7461 ;;
7462 *)
7463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7464 LD="${LD-ld} -64"
7465 fi
7466 ;;
7467 esac
7468 ;;
7469 esac
7470 fi
7471 rm -rf conftest*
7472 ;;
7473 esac
7474
7475 need_locks=$enable_libtool_lock
7476
7477 if test -n "$ac_tool_prefix"; then
7478 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7479 set dummy ${ac_tool_prefix}mt; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test -n "$MANIFEST_TOOL"; then
7486 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499 done
7500 done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7506 if test -n "$MANIFEST_TOOL"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7508 $as_echo "$MANIFEST_TOOL" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514
7515 fi
7516 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7517 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7518 # Extract the first word of "mt", so it can be a program name with args.
7519 set dummy mt; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 if test -n "$ac_ct_MANIFEST_TOOL"; then
7526 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539 done
7540 done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7546 if test -n "$ac_ct_MANIFEST_TOOL"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7548 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7555 MANIFEST_TOOL=":"
7556 else
7557 case $cross_compiling:$ac_tool_warned in
7558 yes:)
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561 ac_tool_warned=yes ;;
7562 esac
7563 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7564 fi
7565 else
7566 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7567 fi
7568
7569 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7571 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7572 if ${lt_cv_path_mainfest_tool+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 lt_cv_path_mainfest_tool=no
7576 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7577 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7578 cat conftest.err >&5
7579 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7580 lt_cv_path_mainfest_tool=yes
7581 fi
7582 rm -f conftest*
7583 fi
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7585 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7586 if test yes != "$lt_cv_path_mainfest_tool"; then
7587 MANIFEST_TOOL=:
7588 fi
7589
7590
7591
7592
7593
7594
7595 case $host_os in
7596 rhapsody* | darwin*)
7597 if test -n "$ac_tool_prefix"; then
7598 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 if test -n "$DSYMUTIL"; then
7606 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
7614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619 done
7620 done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7626 if test -n "$DSYMUTIL"; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7628 $as_echo "$DSYMUTIL" >&6; }
7629 else
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635 fi
7636 if test -z "$ac_cv_prog_DSYMUTIL"; then
7637 ac_ct_DSYMUTIL=$DSYMUTIL
7638 # Extract the first word of "dsymutil", so it can be a program name with args.
7639 set dummy dsymutil; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7643 $as_echo_n "(cached) " >&6
7644 else
7645 if test -n "$ac_ct_DSYMUTIL"; then
7646 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651 IFS=$as_save_IFS
7652 test -z "$as_dir" && as_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657 break 2
7658 fi
7659 done
7660 done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7666 if test -n "$ac_ct_DSYMUTIL"; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7668 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7669 else
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674 if test "x$ac_ct_DSYMUTIL" = x; then
7675 DSYMUTIL=":"
7676 else
7677 case $cross_compiling:$ac_tool_warned in
7678 yes:)
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7682 esac
7683 DSYMUTIL=$ac_ct_DSYMUTIL
7684 fi
7685 else
7686 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7687 fi
7688
7689 if test -n "$ac_tool_prefix"; then
7690 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7691 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_NMEDIT+:} false; then :
7695 $as_echo_n "(cached) " >&6
7696 else
7697 if test -n "$NMEDIT"; then
7698 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703 IFS=$as_save_IFS
7704 test -z "$as_dir" && as_dir=.
7705 for ac_exec_ext in '' $ac_executable_extensions; do
7706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7707 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709 break 2
7710 fi
7711 done
7712 done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 NMEDIT=$ac_cv_prog_NMEDIT
7718 if test -n "$NMEDIT"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7720 $as_echo "$NMEDIT" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726
7727 fi
7728 if test -z "$ac_cv_prog_NMEDIT"; then
7729 ac_ct_NMEDIT=$NMEDIT
7730 # Extract the first word of "nmedit", so it can be a program name with args.
7731 set dummy nmedit; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 if test -n "$ac_ct_NMEDIT"; then
7738 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7758 if test -n "$ac_ct_NMEDIT"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7760 $as_echo "$ac_ct_NMEDIT" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766 if test "x$ac_ct_NMEDIT" = x; then
7767 NMEDIT=":"
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775 NMEDIT=$ac_ct_NMEDIT
7776 fi
7777 else
7778 NMEDIT="$ac_cv_prog_NMEDIT"
7779 fi
7780
7781 if test -n "$ac_tool_prefix"; then
7782 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7783 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7785 $as_echo_n "checking for $ac_word... " >&6; }
7786 if ${ac_cv_prog_LIPO+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 if test -n "$LIPO"; then
7790 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7791 else
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 for as_dir in $PATH
7794 do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
7798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7799 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803 done
7804 done
7805 IFS=$as_save_IFS
7806
7807 fi
7808 fi
7809 LIPO=$ac_cv_prog_LIPO
7810 if test -n "$LIPO"; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7812 $as_echo "$LIPO" >&6; }
7813 else
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817
7818
7819 fi
7820 if test -z "$ac_cv_prog_LIPO"; then
7821 ac_ct_LIPO=$LIPO
7822 # Extract the first word of "lipo", so it can be a program name with args.
7823 set dummy lipo; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 if test -n "$ac_ct_LIPO"; then
7830 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_ac_ct_LIPO="lipo"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843 done
7844 done
7845 IFS=$as_save_IFS
7846
7847 fi
7848 fi
7849 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7850 if test -n "$ac_ct_LIPO"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7852 $as_echo "$ac_ct_LIPO" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7856 fi
7857
7858 if test "x$ac_ct_LIPO" = x; then
7859 LIPO=":"
7860 else
7861 case $cross_compiling:$ac_tool_warned in
7862 yes:)
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7865 ac_tool_warned=yes ;;
7866 esac
7867 LIPO=$ac_ct_LIPO
7868 fi
7869 else
7870 LIPO="$ac_cv_prog_LIPO"
7871 fi
7872
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7875 set dummy ${ac_tool_prefix}otool; ac_word=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if ${ac_cv_prog_OTOOL+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 if test -n "$OTOOL"; then
7882 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7883 else
7884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885 for as_dir in $PATH
7886 do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 break 2
7894 fi
7895 done
7896 done
7897 IFS=$as_save_IFS
7898
7899 fi
7900 fi
7901 OTOOL=$ac_cv_prog_OTOOL
7902 if test -n "$OTOOL"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7904 $as_echo "$OTOOL" >&6; }
7905 else
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7908 fi
7909
7910
7911 fi
7912 if test -z "$ac_cv_prog_OTOOL"; then
7913 ac_ct_OTOOL=$OTOOL
7914 # Extract the first word of "otool", so it can be a program name with args.
7915 set dummy otool; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 if test -n "$ac_ct_OTOOL"; then
7922 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7923 else
7924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927 IFS=$as_save_IFS
7928 test -z "$as_dir" && as_dir=.
7929 for ac_exec_ext in '' $ac_executable_extensions; do
7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7931 ac_cv_prog_ac_ct_OTOOL="otool"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 break 2
7934 fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939 fi
7940 fi
7941 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7942 if test -n "$ac_ct_OTOOL"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7944 $as_echo "$ac_ct_OTOOL" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7948 fi
7949
7950 if test "x$ac_ct_OTOOL" = x; then
7951 OTOOL=":"
7952 else
7953 case $cross_compiling:$ac_tool_warned in
7954 yes:)
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7958 esac
7959 OTOOL=$ac_ct_OTOOL
7960 fi
7961 else
7962 OTOOL="$ac_cv_prog_OTOOL"
7963 fi
7964
7965 if test -n "$ac_tool_prefix"; then
7966 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7967 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_prog_OTOOL64+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 if test -n "$OTOOL64"; then
7974 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7975 else
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7983 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 break 2
7986 fi
7987 done
7988 done
7989 IFS=$as_save_IFS
7990
7991 fi
7992 fi
7993 OTOOL64=$ac_cv_prog_OTOOL64
7994 if test -n "$OTOOL64"; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7996 $as_echo "$OTOOL64" >&6; }
7997 else
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 $as_echo "no" >&6; }
8000 fi
8001
8002
8003 fi
8004 if test -z "$ac_cv_prog_OTOOL64"; then
8005 ac_ct_OTOOL64=$OTOOL64
8006 # Extract the first word of "otool64", so it can be a program name with args.
8007 set dummy otool64; ac_word=$2
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 $as_echo_n "checking for $ac_word... " >&6; }
8010 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012 else
8013 if test -n "$ac_ct_OTOOL64"; then
8014 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_ac_ct_OTOOL64="otool64"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8034 if test -n "$ac_ct_OTOOL64"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8036 $as_echo "$ac_ct_OTOOL64" >&6; }
8037 else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041
8042 if test "x$ac_ct_OTOOL64" = x; then
8043 OTOOL64=":"
8044 else
8045 case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051 OTOOL64=$ac_ct_OTOOL64
8052 fi
8053 else
8054 OTOOL64="$ac_cv_prog_OTOOL64"
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8084 $as_echo_n "checking for -single_module linker flag... " >&6; }
8085 if ${lt_cv_apple_cc_single_mod+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 lt_cv_apple_cc_single_mod=no
8089 if test -z "$LT_MULTI_MODULE"; then
8090 # By default we will add the -single_module flag. You can override
8091 # by either setting the environment variable LT_MULTI_MODULE
8092 # non-empty at configure time, or by adding -multi_module to the
8093 # link flags.
8094 rm -rf libconftest.dylib*
8095 echo "int foo(void){return 1;}" > conftest.c
8096 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8097 -dynamiclib -Wl,-single_module conftest.c" >&5
8098 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8099 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8100 _lt_result=$?
8101 # If there is a non-empty error log, and "single_module"
8102 # appears in it, assume the flag caused a linker warning
8103 if test -s conftest.err && $GREP single_module conftest.err; then
8104 cat conftest.err >&5
8105 # Otherwise, if the output was created with a 0 exit code from
8106 # the compiler, it worked.
8107 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8108 lt_cv_apple_cc_single_mod=yes
8109 else
8110 cat conftest.err >&5
8111 fi
8112 rm -rf libconftest.dylib*
8113 rm -f conftest.*
8114 fi
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8117 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8118
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8120 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8121 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_ld_exported_symbols_list=no
8125 save_LDFLAGS=$LDFLAGS
8126 echo "_main" > conftest.sym
8127 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130
8131 int
8132 main ()
8133 {
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_link "$LINENO"; then :
8140 lt_cv_ld_exported_symbols_list=yes
8141 else
8142 lt_cv_ld_exported_symbols_list=no
8143 fi
8144 rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 LDFLAGS=$save_LDFLAGS
8147
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8150 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8153 $as_echo_n "checking for -force_load linker flag... " >&6; }
8154 if ${lt_cv_ld_force_load+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_ld_force_load=no
8158 cat > conftest.c << _LT_EOF
8159 int forced_loaded() { return 2;}
8160 _LT_EOF
8161 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8162 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8163 echo "$AR cr libconftest.a conftest.o" >&5
8164 $AR cr libconftest.a conftest.o 2>&5
8165 echo "$RANLIB libconftest.a" >&5
8166 $RANLIB libconftest.a 2>&5
8167 cat > conftest.c << _LT_EOF
8168 int main() { return 0;}
8169 _LT_EOF
8170 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8171 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8172 _lt_result=$?
8173 if test -s conftest.err && $GREP force_load conftest.err; then
8174 cat conftest.err >&5
8175 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8176 lt_cv_ld_force_load=yes
8177 else
8178 cat conftest.err >&5
8179 fi
8180 rm -f conftest.err libconftest.a conftest conftest.c
8181 rm -rf conftest.dSYM
8182
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8185 $as_echo "$lt_cv_ld_force_load" >&6; }
8186 case $host_os in
8187 rhapsody* | darwin1.[012])
8188 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8189 darwin1.*)
8190 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8191 darwin*) # darwin 5.x on
8192 # if running on 10.5 or later, the deployment target defaults
8193 # to the OS version, if on x86, and 10.4, the deployment
8194 # target defaults to 10.4. Don't you love it?
8195 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8196 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8197 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8198 10.[012][,.]*)
8199 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8200 10.*)
8201 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8202 esac
8203 ;;
8204 esac
8205 if test yes = "$lt_cv_apple_cc_single_mod"; then
8206 _lt_dar_single_mod='$single_module'
8207 fi
8208 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8209 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8210 else
8211 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8212 fi
8213 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8214 _lt_dsymutil='~$DSYMUTIL $lib || :'
8215 else
8216 _lt_dsymutil=
8217 fi
8218 ;;
8219 esac
8220
8221 # func_munge_path_list VARIABLE PATH
8222 # -----------------------------------
8223 # VARIABLE is name of variable containing _space_ separated list of
8224 # directories to be munged by the contents of PATH, which is string
8225 # having a format:
8226 # "DIR[:DIR]:"
8227 # string "DIR[ DIR]" will be prepended to VARIABLE
8228 # ":DIR[:DIR]"
8229 # string "DIR[ DIR]" will be appended to VARIABLE
8230 # "DIRP[:DIRP]::[DIRA:]DIRA"
8231 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8232 # "DIRA[ DIRA]" will be appended to VARIABLE
8233 # "DIR[:DIR]"
8234 # VARIABLE will be replaced by "DIR[ DIR]"
8235 func_munge_path_list ()
8236 {
8237 case x$2 in
8238 x)
8239 ;;
8240 *:)
8241 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8242 ;;
8243 x:*)
8244 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8245 ;;
8246 *::*)
8247 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8248 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8249 ;;
8250 *)
8251 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8252 ;;
8253 esac
8254 }
8255
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8258 $as_echo_n "checking for ANSI C header files... " >&6; }
8259 if ${ac_cv_header_stdc+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8264 #include <stdlib.h>
8265 #include <stdarg.h>
8266 #include <string.h>
8267 #include <float.h>
8268
8269 int
8270 main ()
8271 {
8272
8273 ;
8274 return 0;
8275 }
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"; then :
8278 ac_cv_header_stdc=yes
8279 else
8280 ac_cv_header_stdc=no
8281 fi
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283
8284 if test $ac_cv_header_stdc = yes; then
8285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8288 #include <string.h>
8289
8290 _ACEOF
8291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8292 $EGREP "memchr" >/dev/null 2>&1; then :
8293
8294 else
8295 ac_cv_header_stdc=no
8296 fi
8297 rm -f conftest*
8298
8299 fi
8300
8301 if test $ac_cv_header_stdc = yes; then
8302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 #include <stdlib.h>
8306
8307 _ACEOF
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 $EGREP "free" >/dev/null 2>&1; then :
8310
8311 else
8312 ac_cv_header_stdc=no
8313 fi
8314 rm -f conftest*
8315
8316 fi
8317
8318 if test $ac_cv_header_stdc = yes; then
8319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8320 if test "$cross_compiling" = yes; then :
8321 :
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #include <ctype.h>
8326 #include <stdlib.h>
8327 #if ((' ' & 0x0FF) == 0x020)
8328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8330 #else
8331 # define ISLOWER(c) \
8332 (('a' <= (c) && (c) <= 'i') \
8333 || ('j' <= (c) && (c) <= 'r') \
8334 || ('s' <= (c) && (c) <= 'z'))
8335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8336 #endif
8337
8338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8339 int
8340 main ()
8341 {
8342 int i;
8343 for (i = 0; i < 256; i++)
8344 if (XOR (islower (i), ISLOWER (i))
8345 || toupper (i) != TOUPPER (i))
8346 return 2;
8347 return 0;
8348 }
8349 _ACEOF
8350 if ac_fn_c_try_run "$LINENO"; then :
8351
8352 else
8353 ac_cv_header_stdc=no
8354 fi
8355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8356 conftest.$ac_objext conftest.beam conftest.$ac_ext
8357 fi
8358
8359 fi
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8362 $as_echo "$ac_cv_header_stdc" >&6; }
8363 if test $ac_cv_header_stdc = yes; then
8364
8365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8366
8367 fi
8368
8369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8371 inttypes.h stdint.h unistd.h
8372 do :
8373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8375 "
8376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8377 cat >>confdefs.h <<_ACEOF
8378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379 _ACEOF
8380
8381 fi
8382
8383 done
8384
8385
8386 for ac_header in dlfcn.h
8387 do :
8388 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8389 "
8390 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DLFCN_H 1
8393 _ACEOF
8394
8395 fi
8396
8397 done
8398
8399
8400
8401
8402
8403 # Set options
8404
8405
8406
8407 enable_dlopen=no
8408
8409
8410 enable_win32_dll=no
8411
8412
8413 # Check whether --enable-shared was given.
8414 if test "${enable_shared+set}" = set; then :
8415 enableval=$enable_shared; p=${PACKAGE-default}
8416 case $enableval in
8417 yes) enable_shared=yes ;;
8418 no) enable_shared=no ;;
8419 *)
8420 enable_shared=no
8421 # Look at the argument we got. We use all the common list separators.
8422 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8423 for pkg in $enableval; do
8424 IFS=$lt_save_ifs
8425 if test "X$pkg" = "X$p"; then
8426 enable_shared=yes
8427 fi
8428 done
8429 IFS=$lt_save_ifs
8430 ;;
8431 esac
8432 else
8433 enable_shared=yes
8434 fi
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444 # Check whether --enable-static was given.
8445 if test "${enable_static+set}" = set; then :
8446 enableval=$enable_static; p=${PACKAGE-default}
8447 case $enableval in
8448 yes) enable_static=yes ;;
8449 no) enable_static=no ;;
8450 *)
8451 enable_static=no
8452 # Look at the argument we got. We use all the common list separators.
8453 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8454 for pkg in $enableval; do
8455 IFS=$lt_save_ifs
8456 if test "X$pkg" = "X$p"; then
8457 enable_static=yes
8458 fi
8459 done
8460 IFS=$lt_save_ifs
8461 ;;
8462 esac
8463 else
8464 enable_static=yes
8465 fi
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 # Check whether --with-pic was given.
8477 if test "${with_pic+set}" = set; then :
8478 withval=$with_pic; lt_p=${PACKAGE-default}
8479 case $withval in
8480 yes|no) pic_mode=$withval ;;
8481 *)
8482 pic_mode=default
8483 # Look at the argument we got. We use all the common list separators.
8484 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8485 for lt_pkg in $withval; do
8486 IFS=$lt_save_ifs
8487 if test "X$lt_pkg" = "X$lt_p"; then
8488 pic_mode=yes
8489 fi
8490 done
8491 IFS=$lt_save_ifs
8492 ;;
8493 esac
8494 else
8495 pic_mode=default
8496 fi
8497
8498
8499
8500
8501
8502
8503
8504
8505 # Check whether --enable-fast-install was given.
8506 if test "${enable_fast_install+set}" = set; then :
8507 enableval=$enable_fast_install; p=${PACKAGE-default}
8508 case $enableval in
8509 yes) enable_fast_install=yes ;;
8510 no) enable_fast_install=no ;;
8511 *)
8512 enable_fast_install=no
8513 # Look at the argument we got. We use all the common list separators.
8514 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8515 for pkg in $enableval; do
8516 IFS=$lt_save_ifs
8517 if test "X$pkg" = "X$p"; then
8518 enable_fast_install=yes
8519 fi
8520 done
8521 IFS=$lt_save_ifs
8522 ;;
8523 esac
8524 else
8525 enable_fast_install=yes
8526 fi
8527
8528
8529
8530
8531
8532
8533
8534
8535 shared_archive_member_spec=
8536 case $host,$enable_shared in
8537 power*-*-aix[5-9]*,yes)
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8539 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8540
8541 # Check whether --with-aix-soname was given.
8542 if test "${with_aix_soname+set}" = set; then :
8543 withval=$with_aix_soname; case $withval in
8544 aix|svr4|both)
8545 ;;
8546 *)
8547 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8548 ;;
8549 esac
8550 lt_cv_with_aix_soname=$with_aix_soname
8551 else
8552 if ${lt_cv_with_aix_soname+:} false; then :
8553 $as_echo_n "(cached) " >&6
8554 else
8555 lt_cv_with_aix_soname=aix
8556 fi
8557
8558 with_aix_soname=$lt_cv_with_aix_soname
8559 fi
8560
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8562 $as_echo "$with_aix_soname" >&6; }
8563 if test aix != "$with_aix_soname"; then
8564 # For the AIX way of multilib, we name the shared archive member
8565 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8566 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8567 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8568 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8569 if test 64 = "${OBJECT_MODE-32}"; then
8570 shared_archive_member_spec=shr_64
8571 else
8572 shared_archive_member_spec=shr
8573 fi
8574 fi
8575 ;;
8576 *)
8577 with_aix_soname=aix
8578 ;;
8579 esac
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590 # This can be used to rebuild libtool when needed
8591 LIBTOOL_DEPS=$ltmain
8592
8593 # Always use our own libtool.
8594 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625 test -z "$LN_S" && LN_S="ln -s"
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640 if test -n "${ZSH_VERSION+set}"; then
8641 setopt NO_GLOB_SUBST
8642 fi
8643
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8645 $as_echo_n "checking for objdir... " >&6; }
8646 if ${lt_cv_objdir+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648 else
8649 rm -f .libs 2>/dev/null
8650 mkdir .libs 2>/dev/null
8651 if test -d .libs; then
8652 lt_cv_objdir=.libs
8653 else
8654 # MS-DOS does not allow filenames that begin with a dot.
8655 lt_cv_objdir=_libs
8656 fi
8657 rmdir .libs 2>/dev/null
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8660 $as_echo "$lt_cv_objdir" >&6; }
8661 objdir=$lt_cv_objdir
8662
8663
8664
8665
8666
8667 cat >>confdefs.h <<_ACEOF
8668 #define LT_OBJDIR "$lt_cv_objdir/"
8669 _ACEOF
8670
8671
8672
8673
8674 case $host_os in
8675 aix3*)
8676 # AIX sometimes has problems with the GCC collect2 program. For some
8677 # reason, if we set the COLLECT_NAMES environment variable, the problems
8678 # vanish in a puff of smoke.
8679 if test set != "${COLLECT_NAMES+set}"; then
8680 COLLECT_NAMES=
8681 export COLLECT_NAMES
8682 fi
8683 ;;
8684 esac
8685
8686 # Global variables:
8687 ofile=libtool
8688 can_build_shared=yes
8689
8690 # All known linkers require a '.a' archive for static linking (except MSVC,
8691 # which needs '.lib').
8692 libext=a
8693
8694 with_gnu_ld=$lt_cv_prog_gnu_ld
8695
8696 old_CC=$CC
8697 old_CFLAGS=$CFLAGS
8698
8699 # Set sane defaults for various variables
8700 test -z "$CC" && CC=cc
8701 test -z "$LTCC" && LTCC=$CC
8702 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8703 test -z "$LD" && LD=ld
8704 test -z "$ac_objext" && ac_objext=o
8705
8706 func_cc_basename $compiler
8707 cc_basename=$func_cc_basename_result
8708
8709
8710 # Only perform the check for file, if the check method requires it
8711 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8712 case $deplibs_check_method in
8713 file_magic*)
8714 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8716 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8717 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 case $MAGIC_CMD in
8721 [\\/*] | ?:[\\/]*)
8722 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8723 ;;
8724 *)
8725 lt_save_MAGIC_CMD=$MAGIC_CMD
8726 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8727 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8728 for ac_dir in $ac_dummy; do
8729 IFS=$lt_save_ifs
8730 test -z "$ac_dir" && ac_dir=.
8731 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8732 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8733 if test -n "$file_magic_test_file"; then
8734 case $deplibs_check_method in
8735 "file_magic "*)
8736 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8737 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8739 $EGREP "$file_magic_regex" > /dev/null; then
8740 :
8741 else
8742 cat <<_LT_EOF 1>&2
8743
8744 *** Warning: the command libtool uses to detect shared libraries,
8745 *** $file_magic_cmd, produces output that libtool cannot recognize.
8746 *** The result is that libtool may fail to recognize shared libraries
8747 *** as such. This will affect the creation of libtool libraries that
8748 *** depend on shared libraries, but programs linked with such libtool
8749 *** libraries will work regardless of this problem. Nevertheless, you
8750 *** may want to report the problem to your system manager and/or to
8751 *** [email protected]
8752
8753 _LT_EOF
8754 fi ;;
8755 esac
8756 fi
8757 break
8758 fi
8759 done
8760 IFS=$lt_save_ifs
8761 MAGIC_CMD=$lt_save_MAGIC_CMD
8762 ;;
8763 esac
8764 fi
8765
8766 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8767 if test -n "$MAGIC_CMD"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8769 $as_echo "$MAGIC_CMD" >&6; }
8770 else
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8773 fi
8774
8775
8776
8777
8778
8779 if test -z "$lt_cv_path_MAGIC_CMD"; then
8780 if test -n "$ac_tool_prefix"; then
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8782 $as_echo_n "checking for file... " >&6; }
8783 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 case $MAGIC_CMD in
8787 [\\/*] | ?:[\\/]*)
8788 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8789 ;;
8790 *)
8791 lt_save_MAGIC_CMD=$MAGIC_CMD
8792 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8793 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8794 for ac_dir in $ac_dummy; do
8795 IFS=$lt_save_ifs
8796 test -z "$ac_dir" && ac_dir=.
8797 if test -f "$ac_dir/file"; then
8798 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8799 if test -n "$file_magic_test_file"; then
8800 case $deplibs_check_method in
8801 "file_magic "*)
8802 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8803 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8804 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8805 $EGREP "$file_magic_regex" > /dev/null; then
8806 :
8807 else
8808 cat <<_LT_EOF 1>&2
8809
8810 *** Warning: the command libtool uses to detect shared libraries,
8811 *** $file_magic_cmd, produces output that libtool cannot recognize.
8812 *** The result is that libtool may fail to recognize shared libraries
8813 *** as such. This will affect the creation of libtool libraries that
8814 *** depend on shared libraries, but programs linked with such libtool
8815 *** libraries will work regardless of this problem. Nevertheless, you
8816 *** may want to report the problem to your system manager and/or to
8817 *** [email protected]
8818
8819 _LT_EOF
8820 fi ;;
8821 esac
8822 fi
8823 break
8824 fi
8825 done
8826 IFS=$lt_save_ifs
8827 MAGIC_CMD=$lt_save_MAGIC_CMD
8828 ;;
8829 esac
8830 fi
8831
8832 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8833 if test -n "$MAGIC_CMD"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8835 $as_echo "$MAGIC_CMD" >&6; }
8836 else
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840
8841
8842 else
8843 MAGIC_CMD=:
8844 fi
8845 fi
8846
8847 fi
8848 ;;
8849 esac
8850
8851 # Use C for the default configuration in the libtool script
8852
8853 lt_save_CC=$CC
8854 ac_ext=c
8855 ac_cpp='$CPP $CPPFLAGS'
8856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8859
8860
8861 # Source file extension for C test sources.
8862 ac_ext=c
8863
8864 # Object file extension for compiled C test sources.
8865 objext=o
8866 objext=$objext
8867
8868 # Code to be used in simple compile tests
8869 lt_simple_compile_test_code="int some_variable = 0;"
8870
8871 # Code to be used in simple link tests
8872 lt_simple_link_test_code='int main(){return(0);}'
8873
8874
8875
8876
8877
8878
8879
8880 # If no C compiler was specified, use CC.
8881 LTCC=${LTCC-"$CC"}
8882
8883 # If no C compiler flags were specified, use CFLAGS.
8884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8885
8886 # Allow CC to be a program name with arguments.
8887 compiler=$CC
8888
8889 # Save the default compiler, since it gets overwritten when the other
8890 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8891 compiler_DEFAULT=$CC
8892
8893 # save warnings/boilerplate of simple test code
8894 ac_outfile=conftest.$ac_objext
8895 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8897 _lt_compiler_boilerplate=`cat conftest.err`
8898 $RM conftest*
8899
8900 ac_outfile=conftest.$ac_objext
8901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8903 _lt_linker_boilerplate=`cat conftest.err`
8904 $RM -r conftest*
8905
8906
8907 ## CAVEAT EMPTOR:
8908 ## There is no encapsulation within the following macros, do not change
8909 ## the running order or otherwise move them around unless you know exactly
8910 ## what you are doing...
8911 if test -n "$compiler"; then
8912
8913 lt_prog_compiler_no_builtin_flag=
8914
8915 if test yes = "$GCC"; then
8916 case $cc_basename in
8917 nvcc*)
8918 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8919 *)
8920 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8921 esac
8922
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8924 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8925 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 lt_cv_prog_compiler_rtti_exceptions=no
8929 ac_outfile=conftest.$ac_objext
8930 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8932 # Insert the option either (1) after the last *FLAGS variable, or
8933 # (2) before a word containing "conftest.", or (3) at the end.
8934 # Note that $ac_compile itself does not contain backslashes and begins
8935 # with a dollar sign (not a hyphen), so the echo should work correctly.
8936 # The option is referenced via a variable to avoid confusing sed.
8937 lt_compile=`echo "$ac_compile" | $SED \
8938 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940 -e 's:$: $lt_compiler_flag:'`
8941 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942 (eval "$lt_compile" 2>conftest.err)
8943 ac_status=$?
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 if (exit $ac_status) && test -s "$ac_outfile"; then
8947 # The compiler can only warn and ignore the option if not recognized
8948 # So say no if there are warnings other than the usual output.
8949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8952 lt_cv_prog_compiler_rtti_exceptions=yes
8953 fi
8954 fi
8955 $RM conftest*
8956
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8959 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8960
8961 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8962 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8963 else
8964 :
8965 fi
8966
8967 fi
8968
8969
8970
8971
8972
8973
8974 lt_prog_compiler_wl=
8975 lt_prog_compiler_pic=
8976 lt_prog_compiler_static=
8977
8978
8979 if test yes = "$GCC"; then
8980 lt_prog_compiler_wl='-Wl,'
8981 lt_prog_compiler_static='-static'
8982
8983 case $host_os in
8984 aix*)
8985 # All AIX code is PIC.
8986 if test ia64 = "$host_cpu"; then
8987 # AIX 5 now supports IA64 processor
8988 lt_prog_compiler_static='-Bstatic'
8989 fi
8990 lt_prog_compiler_pic='-fPIC'
8991 ;;
8992
8993 amigaos*)
8994 case $host_cpu in
8995 powerpc)
8996 # see comment about AmigaOS4 .so support
8997 lt_prog_compiler_pic='-fPIC'
8998 ;;
8999 m68k)
9000 # FIXME: we need at least 68020 code to build shared libraries, but
9001 # adding the '-m68020' flag to GCC prevents building anything better,
9002 # like '-m68040'.
9003 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9004 ;;
9005 esac
9006 ;;
9007
9008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9009 # PIC is the default for these OSes.
9010 ;;
9011
9012 mingw* | cygwin* | pw32* | os2* | cegcc*)
9013 # This hack is so that the source file can tell whether it is being
9014 # built for inclusion in a dll (and should export symbols for example).
9015 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9016 # (--disable-auto-import) libraries
9017 lt_prog_compiler_pic='-DDLL_EXPORT'
9018 case $host_os in
9019 os2*)
9020 lt_prog_compiler_static='$wl-static'
9021 ;;
9022 esac
9023 ;;
9024
9025 darwin* | rhapsody*)
9026 # PIC is the default on this platform
9027 # Common symbols not allowed in MH_DYLIB files
9028 lt_prog_compiler_pic='-fno-common'
9029 ;;
9030
9031 haiku*)
9032 # PIC is the default for Haiku.
9033 # The "-static" flag exists, but is broken.
9034 lt_prog_compiler_static=
9035 ;;
9036
9037 hpux*)
9038 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9039 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9040 # sets the default TLS model and affects inlining.
9041 case $host_cpu in
9042 hppa*64*)
9043 # +Z the default
9044 ;;
9045 *)
9046 lt_prog_compiler_pic='-fPIC'
9047 ;;
9048 esac
9049 ;;
9050
9051 interix[3-9]*)
9052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9053 # Instead, we relocate shared libraries at runtime.
9054 ;;
9055
9056 msdosdjgpp*)
9057 # Just because we use GCC doesn't mean we suddenly get shared libraries
9058 # on systems that don't support them.
9059 lt_prog_compiler_can_build_shared=no
9060 enable_shared=no
9061 ;;
9062
9063 *nto* | *qnx*)
9064 # QNX uses GNU C++, but need to define -shared option too, otherwise
9065 # it will coredump.
9066 lt_prog_compiler_pic='-fPIC -shared'
9067 ;;
9068
9069 sysv4*MP*)
9070 if test -d /usr/nec; then
9071 lt_prog_compiler_pic=-Kconform_pic
9072 fi
9073 ;;
9074
9075 *)
9076 lt_prog_compiler_pic='-fPIC'
9077 ;;
9078 esac
9079
9080 case $cc_basename in
9081 nvcc*) # Cuda Compiler Driver 2.2
9082 lt_prog_compiler_wl='-Xlinker '
9083 if test -n "$lt_prog_compiler_pic"; then
9084 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9085 fi
9086 ;;
9087 esac
9088 else
9089 # PORTME Check for flag to pass linker flags through the system compiler.
9090 case $host_os in
9091 aix*)
9092 lt_prog_compiler_wl='-Wl,'
9093 if test ia64 = "$host_cpu"; then
9094 # AIX 5 now supports IA64 processor
9095 lt_prog_compiler_static='-Bstatic'
9096 else
9097 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9098 fi
9099 ;;
9100
9101 darwin* | rhapsody*)
9102 # PIC is the default on this platform
9103 # Common symbols not allowed in MH_DYLIB files
9104 lt_prog_compiler_pic='-fno-common'
9105 case $cc_basename in
9106 nagfor*)
9107 # NAG Fortran compiler
9108 lt_prog_compiler_wl='-Wl,-Wl,,'
9109 lt_prog_compiler_pic='-PIC'
9110 lt_prog_compiler_static='-Bstatic'
9111 ;;
9112 esac
9113 ;;
9114
9115 mingw* | cygwin* | pw32* | os2* | cegcc*)
9116 # This hack is so that the source file can tell whether it is being
9117 # built for inclusion in a dll (and should export symbols for example).
9118 lt_prog_compiler_pic='-DDLL_EXPORT'
9119 case $host_os in
9120 os2*)
9121 lt_prog_compiler_static='$wl-static'
9122 ;;
9123 esac
9124 ;;
9125
9126 hpux9* | hpux10* | hpux11*)
9127 lt_prog_compiler_wl='-Wl,'
9128 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9129 # not for PA HP-UX.
9130 case $host_cpu in
9131 hppa*64*|ia64*)
9132 # +Z the default
9133 ;;
9134 *)
9135 lt_prog_compiler_pic='+Z'
9136 ;;
9137 esac
9138 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9139 lt_prog_compiler_static='$wl-a ${wl}archive'
9140 ;;
9141
9142 irix5* | irix6* | nonstopux*)
9143 lt_prog_compiler_wl='-Wl,'
9144 # PIC (with -KPIC) is the default.
9145 lt_prog_compiler_static='-non_shared'
9146 ;;
9147
9148 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9149 case $cc_basename in
9150 # old Intel for x86_64, which still supported -KPIC.
9151 ecc*)
9152 lt_prog_compiler_wl='-Wl,'
9153 lt_prog_compiler_pic='-KPIC'
9154 lt_prog_compiler_static='-static'
9155 ;;
9156 # flang / f18. f95 an alias for gfortran or flang on Debian
9157 flang* | f18* | f95*)
9158 lt_prog_compiler_wl='-Wl,'
9159 lt_prog_compiler_pic='-fPIC'
9160 lt_prog_compiler_static='-static'
9161 ;;
9162 # icc used to be incompatible with GCC.
9163 # ICC 10 doesn't accept -KPIC any more.
9164 icc* | ifort*)
9165 lt_prog_compiler_wl='-Wl,'
9166 lt_prog_compiler_pic='-fPIC'
9167 lt_prog_compiler_static='-static'
9168 ;;
9169 # Lahey Fortran 8.1.
9170 lf95*)
9171 lt_prog_compiler_wl='-Wl,'
9172 lt_prog_compiler_pic='--shared'
9173 lt_prog_compiler_static='--static'
9174 ;;
9175 nagfor*)
9176 # NAG Fortran compiler
9177 lt_prog_compiler_wl='-Wl,-Wl,,'
9178 lt_prog_compiler_pic='-PIC'
9179 lt_prog_compiler_static='-Bstatic'
9180 ;;
9181 tcc*)
9182 # Fabrice Bellard et al's Tiny C Compiler
9183 lt_prog_compiler_wl='-Wl,'
9184 lt_prog_compiler_pic='-fPIC'
9185 lt_prog_compiler_static='-static'
9186 ;;
9187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9188 # Portland Group compilers (*not* the Pentium gcc compiler,
9189 # which looks to be a dead project)
9190 lt_prog_compiler_wl='-Wl,'
9191 lt_prog_compiler_pic='-fpic'
9192 lt_prog_compiler_static='-Bstatic'
9193 ;;
9194 ccc*)
9195 lt_prog_compiler_wl='-Wl,'
9196 # All Alpha code is PIC.
9197 lt_prog_compiler_static='-non_shared'
9198 ;;
9199 xl* | bgxl* | bgf* | mpixl*)
9200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9201 lt_prog_compiler_wl='-Wl,'
9202 lt_prog_compiler_pic='-qpic'
9203 lt_prog_compiler_static='-qstaticlink'
9204 ;;
9205 *)
9206 case `$CC -V 2>&1 | sed 5q` in
9207 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9209 lt_prog_compiler_pic='-KPIC'
9210 lt_prog_compiler_static='-Bstatic'
9211 lt_prog_compiler_wl=''
9212 ;;
9213 *Sun\ F* | *Sun*Fortran*)
9214 lt_prog_compiler_pic='-KPIC'
9215 lt_prog_compiler_static='-Bstatic'
9216 lt_prog_compiler_wl='-Qoption ld '
9217 ;;
9218 *Sun\ C*)
9219 # Sun C 5.9
9220 lt_prog_compiler_pic='-KPIC'
9221 lt_prog_compiler_static='-Bstatic'
9222 lt_prog_compiler_wl='-Wl,'
9223 ;;
9224 *Intel*\ [CF]*Compiler*)
9225 lt_prog_compiler_wl='-Wl,'
9226 lt_prog_compiler_pic='-fPIC'
9227 lt_prog_compiler_static='-static'
9228 ;;
9229 *Portland\ Group*)
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_pic='-fpic'
9232 lt_prog_compiler_static='-Bstatic'
9233 ;;
9234 esac
9235 ;;
9236 esac
9237 ;;
9238
9239 newsos6)
9240 lt_prog_compiler_pic='-KPIC'
9241 lt_prog_compiler_static='-Bstatic'
9242 ;;
9243
9244 *nto* | *qnx*)
9245 # QNX uses GNU C++, but need to define -shared option too, otherwise
9246 # it will coredump.
9247 lt_prog_compiler_pic='-fPIC -shared'
9248 ;;
9249
9250 osf3* | osf4* | osf5*)
9251 lt_prog_compiler_wl='-Wl,'
9252 # All OSF/1 code is PIC.
9253 lt_prog_compiler_static='-non_shared'
9254 ;;
9255
9256 rdos*)
9257 lt_prog_compiler_static='-non_shared'
9258 ;;
9259
9260 solaris*)
9261 lt_prog_compiler_pic='-KPIC'
9262 lt_prog_compiler_static='-Bstatic'
9263 case $cc_basename in
9264 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9265 lt_prog_compiler_wl='-Qoption ld ';;
9266 *)
9267 lt_prog_compiler_wl='-Wl,';;
9268 esac
9269 ;;
9270
9271 sunos4*)
9272 lt_prog_compiler_wl='-Qoption ld '
9273 lt_prog_compiler_pic='-PIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276
9277 sysv4 | sysv4.2uw2* | sysv4.3*)
9278 lt_prog_compiler_wl='-Wl,'
9279 lt_prog_compiler_pic='-KPIC'
9280 lt_prog_compiler_static='-Bstatic'
9281 ;;
9282
9283 sysv4*MP*)
9284 if test -d /usr/nec; then
9285 lt_prog_compiler_pic='-Kconform_pic'
9286 lt_prog_compiler_static='-Bstatic'
9287 fi
9288 ;;
9289
9290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9291 lt_prog_compiler_wl='-Wl,'
9292 lt_prog_compiler_pic='-KPIC'
9293 lt_prog_compiler_static='-Bstatic'
9294 ;;
9295
9296 unicos*)
9297 lt_prog_compiler_wl='-Wl,'
9298 lt_prog_compiler_can_build_shared=no
9299 ;;
9300
9301 uts4*)
9302 lt_prog_compiler_pic='-pic'
9303 lt_prog_compiler_static='-Bstatic'
9304 ;;
9305
9306 *)
9307 lt_prog_compiler_can_build_shared=no
9308 ;;
9309 esac
9310 fi
9311
9312 case $host_os in
9313 # For platforms that do not support PIC, -DPIC is meaningless:
9314 *djgpp*)
9315 lt_prog_compiler_pic=
9316 ;;
9317 *)
9318 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9319 ;;
9320 esac
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9323 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9324 if ${lt_cv_prog_compiler_pic+:} false; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9328 fi
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9330 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9331 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9332
9333 #
9334 # Check to make sure the PIC flag actually works.
9335 #
9336 if test -n "$lt_prog_compiler_pic"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9338 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9339 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9340 $as_echo_n "(cached) " >&6
9341 else
9342 lt_cv_prog_compiler_pic_works=no
9343 ac_outfile=conftest.$ac_objext
9344 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9345 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9346 # Insert the option either (1) after the last *FLAGS variable, or
9347 # (2) before a word containing "conftest.", or (3) at the end.
9348 # Note that $ac_compile itself does not contain backslashes and begins
9349 # with a dollar sign (not a hyphen), so the echo should work correctly.
9350 # The option is referenced via a variable to avoid confusing sed.
9351 lt_compile=`echo "$ac_compile" | $SED \
9352 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9354 -e 's:$: $lt_compiler_flag:'`
9355 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9356 (eval "$lt_compile" 2>conftest.err)
9357 ac_status=$?
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 if (exit $ac_status) && test -s "$ac_outfile"; then
9361 # The compiler can only warn and ignore the option if not recognized
9362 # So say no if there are warnings other than the usual output.
9363 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9365 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9366 lt_cv_prog_compiler_pic_works=yes
9367 fi
9368 fi
9369 $RM conftest*
9370
9371 fi
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9373 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9374
9375 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9376 case $lt_prog_compiler_pic in
9377 "" | " "*) ;;
9378 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9379 esac
9380 else
9381 lt_prog_compiler_pic=
9382 lt_prog_compiler_can_build_shared=no
9383 fi
9384
9385 fi
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397 #
9398 # Check to make sure the static flag actually works.
9399 #
9400 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9402 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9403 if ${lt_cv_prog_compiler_static_works+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 lt_cv_prog_compiler_static_works=no
9407 save_LDFLAGS=$LDFLAGS
9408 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9409 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9410 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9411 # The linker can only warn and ignore the option if not recognized
9412 # So say no if there are warnings
9413 if test -s conftest.err; then
9414 # Append any errors to the config.log.
9415 cat conftest.err 1>&5
9416 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9417 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9418 if diff conftest.exp conftest.er2 >/dev/null; then
9419 lt_cv_prog_compiler_static_works=yes
9420 fi
9421 else
9422 lt_cv_prog_compiler_static_works=yes
9423 fi
9424 fi
9425 $RM -r conftest*
9426 LDFLAGS=$save_LDFLAGS
9427
9428 fi
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9430 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9431
9432 if test yes = "$lt_cv_prog_compiler_static_works"; then
9433 :
9434 else
9435 lt_prog_compiler_static=
9436 fi
9437
9438
9439
9440
9441
9442
9443
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9445 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9446 if ${lt_cv_prog_compiler_c_o+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 lt_cv_prog_compiler_c_o=no
9450 $RM -r conftest 2>/dev/null
9451 mkdir conftest
9452 cd conftest
9453 mkdir out
9454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455
9456 lt_compiler_flag="-o out/conftest2.$ac_objext"
9457 # Insert the option either (1) after the last *FLAGS variable, or
9458 # (2) before a word containing "conftest.", or (3) at the end.
9459 # Note that $ac_compile itself does not contain backslashes and begins
9460 # with a dollar sign (not a hyphen), so the echo should work correctly.
9461 lt_compile=`echo "$ac_compile" | $SED \
9462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464 -e 's:$: $lt_compiler_flag:'`
9465 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9466 (eval "$lt_compile" 2>out/conftest.err)
9467 ac_status=$?
9468 cat out/conftest.err >&5
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9471 then
9472 # The compiler can only warn and ignore the option if not recognized
9473 # So say no if there are warnings
9474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9475 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9476 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler_c_o=yes
9478 fi
9479 fi
9480 chmod u+w . 2>&5
9481 $RM conftest*
9482 # SGI C++ compiler will create directory out/ii_files/ for
9483 # template instantiation
9484 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9485 $RM out/* && rmdir out
9486 cd ..
9487 $RM -r conftest
9488 $RM conftest*
9489
9490 fi
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9492 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9493
9494
9495
9496
9497
9498
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9500 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9501 if ${lt_cv_prog_compiler_c_o+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 lt_cv_prog_compiler_c_o=no
9505 $RM -r conftest 2>/dev/null
9506 mkdir conftest
9507 cd conftest
9508 mkdir out
9509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9510
9511 lt_compiler_flag="-o out/conftest2.$ac_objext"
9512 # Insert the option either (1) after the last *FLAGS variable, or
9513 # (2) before a word containing "conftest.", or (3) at the end.
9514 # Note that $ac_compile itself does not contain backslashes and begins
9515 # with a dollar sign (not a hyphen), so the echo should work correctly.
9516 lt_compile=`echo "$ac_compile" | $SED \
9517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9519 -e 's:$: $lt_compiler_flag:'`
9520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9521 (eval "$lt_compile" 2>out/conftest.err)
9522 ac_status=$?
9523 cat out/conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9526 then
9527 # The compiler can only warn and ignore the option if not recognized
9528 # So say no if there are warnings
9529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9532 lt_cv_prog_compiler_c_o=yes
9533 fi
9534 fi
9535 chmod u+w . 2>&5
9536 $RM conftest*
9537 # SGI C++ compiler will create directory out/ii_files/ for
9538 # template instantiation
9539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9540 $RM out/* && rmdir out
9541 cd ..
9542 $RM -r conftest
9543 $RM conftest*
9544
9545 fi
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9547 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9548
9549
9550
9551
9552 hard_links=nottested
9553 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9554 # do not overwrite the value of need_locks provided by the user
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9556 $as_echo_n "checking if we can lock with hard links... " >&6; }
9557 hard_links=yes
9558 $RM conftest*
9559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9560 touch conftest.a
9561 ln conftest.a conftest.b 2>&5 || hard_links=no
9562 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9564 $as_echo "$hard_links" >&6; }
9565 if test no = "$hard_links"; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9567 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9568 need_locks=warn
9569 fi
9570 else
9571 need_locks=no
9572 fi
9573
9574
9575
9576
9577
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9580 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9581
9582 runpath_var=
9583 allow_undefined_flag=
9584 always_export_symbols=no
9585 archive_cmds=
9586 archive_expsym_cmds=
9587 compiler_needs_object=no
9588 enable_shared_with_static_runtimes=no
9589 export_dynamic_flag_spec=
9590 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9591 hardcode_automatic=no
9592 hardcode_direct=no
9593 hardcode_direct_absolute=no
9594 hardcode_libdir_flag_spec=
9595 hardcode_libdir_separator=
9596 hardcode_minus_L=no
9597 hardcode_shlibpath_var=unsupported
9598 inherit_rpath=no
9599 link_all_deplibs=unknown
9600 module_cmds=
9601 module_expsym_cmds=
9602 old_archive_from_new_cmds=
9603 old_archive_from_expsyms_cmds=
9604 thread_safe_flag_spec=
9605 whole_archive_flag_spec=
9606 # include_expsyms should be a list of space-separated symbols to be *always*
9607 # included in the symbol list
9608 include_expsyms=
9609 # exclude_expsyms can be an extended regexp of symbols to exclude
9610 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9611 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9612 # as well as any symbol that contains 'd'.
9613 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9614 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9615 # platforms (ab)use it in PIC code, but their linkers get confused if
9616 # the symbol is explicitly referenced. Since portable code cannot
9617 # rely on this symbol name, it's probably fine to never include it in
9618 # preloaded symbol tables.
9619 # Exclude shared library initialization/finalization symbols.
9620 extract_expsyms_cmds=
9621
9622 case $host_os in
9623 cygwin* | mingw* | pw32* | cegcc*)
9624 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9625 # When not using gcc, we currently assume that we are using
9626 # Microsoft Visual C++.
9627 if test yes != "$GCC"; then
9628 with_gnu_ld=no
9629 fi
9630 ;;
9631 interix*)
9632 # we just hope/assume this is gcc and not c89 (= MSVC++)
9633 with_gnu_ld=yes
9634 ;;
9635 openbsd* | bitrig*)
9636 with_gnu_ld=no
9637 ;;
9638 linux* | k*bsd*-gnu | gnu*)
9639 link_all_deplibs=no
9640 ;;
9641 esac
9642
9643 ld_shlibs=yes
9644
9645 # On some targets, GNU ld is compatible enough with the native linker
9646 # that we're better off using the native interface for both.
9647 lt_use_gnu_ld_interface=no
9648 if test yes = "$with_gnu_ld"; then
9649 case $host_os in
9650 aix*)
9651 # The AIX port of GNU ld has always aspired to compatibility
9652 # with the native linker. However, as the warning in the GNU ld
9653 # block says, versions before 2.19.5* couldn't really create working
9654 # shared libraries, regardless of the interface used.
9655 case `$LD -v 2>&1` in
9656 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9657 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9658 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9659 *)
9660 lt_use_gnu_ld_interface=yes
9661 ;;
9662 esac
9663 ;;
9664 *)
9665 lt_use_gnu_ld_interface=yes
9666 ;;
9667 esac
9668 fi
9669
9670 if test yes = "$lt_use_gnu_ld_interface"; then
9671 # If archive_cmds runs LD, not CC, wlarc should be empty
9672 wlarc='$wl'
9673
9674 # Set some defaults for GNU ld with shared library support. These
9675 # are reset later if shared libraries are not supported. Putting them
9676 # here allows them to be overridden if necessary.
9677 runpath_var=LD_RUN_PATH
9678 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9679 export_dynamic_flag_spec='$wl--export-dynamic'
9680 # ancient GNU ld didn't support --whole-archive et. al.
9681 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9682 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9683 else
9684 whole_archive_flag_spec=
9685 fi
9686 supports_anon_versioning=no
9687 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9688 *GNU\ gold*) supports_anon_versioning=yes ;;
9689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9692 *\ 2.11.*) ;; # other 2.11 versions
9693 *) supports_anon_versioning=yes ;;
9694 esac
9695
9696 # See if GNU ld supports shared libraries.
9697 case $host_os in
9698 aix[3-9]*)
9699 # On AIX/PPC, the GNU linker is very broken
9700 if test ia64 != "$host_cpu"; then
9701 ld_shlibs=no
9702 cat <<_LT_EOF 1>&2
9703
9704 *** Warning: the GNU linker, at least up to release 2.19, is reported
9705 *** to be unable to reliably create shared libraries on AIX.
9706 *** Therefore, libtool is disabling shared libraries support. If you
9707 *** really care for shared libraries, you may want to install binutils
9708 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9709 *** You will then need to restart the configuration process.
9710
9711 _LT_EOF
9712 fi
9713 ;;
9714
9715 amigaos*)
9716 case $host_cpu in
9717 powerpc)
9718 # see comment about AmigaOS4 .so support
9719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9720 archive_expsym_cmds=''
9721 ;;
9722 m68k)
9723 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)'
9724 hardcode_libdir_flag_spec='-L$libdir'
9725 hardcode_minus_L=yes
9726 ;;
9727 esac
9728 ;;
9729
9730 beos*)
9731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9732 allow_undefined_flag=unsupported
9733 # Joseph Beckenbach <[email protected]> says some releases of gcc
9734 # support --undefined. This deserves some investigation. FIXME
9735 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9736 else
9737 ld_shlibs=no
9738 fi
9739 ;;
9740
9741 cygwin* | mingw* | pw32* | cegcc*)
9742 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9743 # as there is no search path for DLLs.
9744 hardcode_libdir_flag_spec='-L$libdir'
9745 export_dynamic_flag_spec='$wl--export-all-symbols'
9746 allow_undefined_flag=unsupported
9747 always_export_symbols=no
9748 enable_shared_with_static_runtimes=yes
9749 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'
9750 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9751
9752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9754 # If the export-symbols file already is a .def file, use it as
9755 # is; otherwise, prepend EXPORTS...
9756 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9757 cp $export_symbols $output_objdir/$soname.def;
9758 else
9759 echo EXPORTS > $output_objdir/$soname.def;
9760 cat $export_symbols >> $output_objdir/$soname.def;
9761 fi~
9762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9763 else
9764 ld_shlibs=no
9765 fi
9766 ;;
9767
9768 haiku*)
9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9770 link_all_deplibs=yes
9771 ;;
9772
9773 os2*)
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_minus_L=yes
9776 allow_undefined_flag=unsupported
9777 shrext_cmds=.dll
9778 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9779 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9780 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9781 $ECHO EXPORTS >> $output_objdir/$libname.def~
9782 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9783 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9784 emximp -o $lib $output_objdir/$libname.def'
9785 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9786 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9787 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9788 $ECHO EXPORTS >> $output_objdir/$libname.def~
9789 prefix_cmds="$SED"~
9790 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9791 prefix_cmds="$prefix_cmds -e 1d";
9792 fi~
9793 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9794 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9795 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9796 emximp -o $lib $output_objdir/$libname.def'
9797 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9798 enable_shared_with_static_runtimes=yes
9799 ;;
9800
9801 interix[3-9]*)
9802 hardcode_direct=no
9803 hardcode_shlibpath_var=no
9804 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9805 export_dynamic_flag_spec='$wl-E'
9806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9807 # Instead, shared libraries are loaded at an image base (0x10000000 by
9808 # default) and relocated if they conflict, which is a slow very memory
9809 # consuming and fragmenting process. To avoid this, we pick a random,
9810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9812 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9813 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'
9814 ;;
9815
9816 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9817 tmp_diet=no
9818 if test linux-dietlibc = "$host_os"; then
9819 case $cc_basename in
9820 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9821 esac
9822 fi
9823 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9824 && test no = "$tmp_diet"
9825 then
9826 tmp_addflag=' $pic_flag'
9827 tmp_sharedflag='-shared'
9828 case $cc_basename,$host_cpu in
9829 pgcc*) # Portland Group C compiler
9830 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'
9831 tmp_addflag=' $pic_flag'
9832 ;;
9833 pgf77* | pgf90* | pgf95* | pgfortran*)
9834 # Portland Group f77 and f90 compilers
9835 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'
9836 tmp_addflag=' $pic_flag -Mnomain' ;;
9837 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9838 tmp_addflag=' -i_dynamic' ;;
9839 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9840 tmp_addflag=' -i_dynamic -nofor_main' ;;
9841 ifc* | ifort*) # Intel Fortran compiler
9842 tmp_addflag=' -nofor_main' ;;
9843 lf95*) # Lahey Fortran 8.1
9844 whole_archive_flag_spec=
9845 tmp_sharedflag='--shared' ;;
9846 nagfor*) # NAGFOR 5.3
9847 tmp_sharedflag='-Wl,-shared' ;;
9848 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9849 tmp_sharedflag='-qmkshrobj'
9850 tmp_addflag= ;;
9851 nvcc*) # Cuda Compiler Driver 2.2
9852 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'
9853 compiler_needs_object=yes
9854 ;;
9855 esac
9856 case `$CC -V 2>&1 | sed 5q` in
9857 *Sun\ C*) # Sun C 5.9
9858 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'
9859 compiler_needs_object=yes
9860 tmp_sharedflag='-G' ;;
9861 *Sun\ F*) # Sun Fortran 8.3
9862 tmp_sharedflag='-G' ;;
9863 esac
9864 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9865
9866 if test yes = "$supports_anon_versioning"; then
9867 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9868 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9869 echo "local: *; };" >> $output_objdir/$libname.ver~
9870 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9871 fi
9872
9873 case $cc_basename in
9874 tcc*)
9875 export_dynamic_flag_spec='-rdynamic'
9876 ;;
9877 xlf* | bgf* | bgxlf* | mpixlf*)
9878 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9879 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9881 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9882 if test yes = "$supports_anon_versioning"; then
9883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9885 echo "local: *; };" >> $output_objdir/$libname.ver~
9886 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9887 fi
9888 ;;
9889 esac
9890 else
9891 ld_shlibs=no
9892 fi
9893 ;;
9894
9895 netbsd* | netbsdelf*-gnu)
9896 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9897 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9898 wlarc=
9899 else
9900 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9901 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9902 fi
9903 ;;
9904
9905 solaris*)
9906 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9907 ld_shlibs=no
9908 cat <<_LT_EOF 1>&2
9909
9910 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9911 *** create shared libraries on Solaris systems. Therefore, libtool
9912 *** is disabling shared libraries support. We urge you to upgrade GNU
9913 *** binutils to release 2.9.1 or newer. Another option is to modify
9914 *** your PATH or compiler configuration so that the native linker is
9915 *** used, and then restart.
9916
9917 _LT_EOF
9918 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9919 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9920 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9921 else
9922 ld_shlibs=no
9923 fi
9924 ;;
9925
9926 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9927 case `$LD -v 2>&1` in
9928 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9929 ld_shlibs=no
9930 cat <<_LT_EOF 1>&2
9931
9932 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9933 *** reliably create shared libraries on SCO systems. Therefore, libtool
9934 *** is disabling shared libraries support. We urge you to upgrade GNU
9935 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9936 *** your PATH or compiler configuration so that the native linker is
9937 *** used, and then restart.
9938
9939 _LT_EOF
9940 ;;
9941 *)
9942 # For security reasons, it is highly recommended that you always
9943 # use absolute paths for naming shared libraries, and exclude the
9944 # DT_RUNPATH tag from executables and libraries. But doing so
9945 # requires that you compile everything twice, which is a pain.
9946 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9948 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9949 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9950 else
9951 ld_shlibs=no
9952 fi
9953 ;;
9954 esac
9955 ;;
9956
9957 sunos4*)
9958 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9959 wlarc=
9960 hardcode_direct=yes
9961 hardcode_shlibpath_var=no
9962 ;;
9963
9964 *)
9965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9967 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9968 else
9969 ld_shlibs=no
9970 fi
9971 ;;
9972 esac
9973
9974 if test no = "$ld_shlibs"; then
9975 runpath_var=
9976 hardcode_libdir_flag_spec=
9977 export_dynamic_flag_spec=
9978 whole_archive_flag_spec=
9979 fi
9980 else
9981 # PORTME fill in a description of your system's linker (not GNU ld)
9982 case $host_os in
9983 aix3*)
9984 allow_undefined_flag=unsupported
9985 always_export_symbols=yes
9986 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'
9987 # Note: this linker hardcodes the directories in LIBPATH if there
9988 # are no directories specified by -L.
9989 hardcode_minus_L=yes
9990 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9991 # Neither direct hardcoding nor static linking is supported with a
9992 # broken collect2.
9993 hardcode_direct=unsupported
9994 fi
9995 ;;
9996
9997 aix[4-9]*)
9998 if test ia64 = "$host_cpu"; then
9999 # On IA64, the linker does run time linking by default, so we don't
10000 # have to do anything special.
10001 aix_use_runtimelinking=no
10002 exp_sym_flag='-Bexport'
10003 no_entry_flag=
10004 else
10005 # If we're using GNU nm, then we don't want the "-C" option.
10006 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10007 # Without the "-l" option, or with the "-B" option, AIX nm treats
10008 # weak defined symbols like other global defined symbols, whereas
10009 # GNU nm marks them as "W".
10010 # While the 'weak' keyword is ignored in the Export File, we need
10011 # it in the Import File for the 'aix-soname' feature, so we have
10012 # to replace the "-B" option with "-P" for AIX nm.
10013 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10014 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'
10015 else
10016 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10017 fi
10018 aix_use_runtimelinking=no
10019
10020 # Test if we are trying to use run time linking or normal
10021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10022 # have runtime linking enabled, and use it for executables.
10023 # For shared libraries, we enable/disable runtime linking
10024 # depending on the kind of the shared library created -
10025 # when "with_aix_soname,aix_use_runtimelinking" is:
10026 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10027 # "aix,yes" lib.so shared, rtl:yes, for executables
10028 # lib.a static archive
10029 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10030 # lib.a(lib.so.V) shared, rtl:no, for executables
10031 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10032 # lib.a(lib.so.V) shared, rtl:no
10033 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10034 # lib.a static archive
10035 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10036 for ld_flag in $LDFLAGS; do
10037 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10038 aix_use_runtimelinking=yes
10039 break
10040 fi
10041 done
10042 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10043 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10044 # so we don't have lib.a shared libs to link our executables.
10045 # We have to force runtime linking in this case.
10046 aix_use_runtimelinking=yes
10047 LDFLAGS="$LDFLAGS -Wl,-brtl"
10048 fi
10049 ;;
10050 esac
10051
10052 exp_sym_flag='-bexport'
10053 no_entry_flag='-bnoentry'
10054 fi
10055
10056 # When large executables or shared objects are built, AIX ld can
10057 # have problems creating the table of contents. If linking a library
10058 # or program results in "error TOC overflow" add -mminimal-toc to
10059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10061
10062 archive_cmds=''
10063 hardcode_direct=yes
10064 hardcode_direct_absolute=yes
10065 hardcode_libdir_separator=':'
10066 link_all_deplibs=yes
10067 file_list_spec='$wl-f,'
10068 case $with_aix_soname,$aix_use_runtimelinking in
10069 aix,*) ;; # traditional, no import file
10070 svr4,* | *,yes) # use import file
10071 # The Import File defines what to hardcode.
10072 hardcode_direct=no
10073 hardcode_direct_absolute=no
10074 ;;
10075 esac
10076
10077 if test yes = "$GCC"; then
10078 case $host_os in aix4.[012]|aix4.[012].*)
10079 # We only want to do this on AIX 4.2 and lower, the check
10080 # below for broken collect2 doesn't work under 4.3+
10081 collect2name=`$CC -print-prog-name=collect2`
10082 if test -f "$collect2name" &&
10083 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10084 then
10085 # We have reworked collect2
10086 :
10087 else
10088 # We have old collect2
10089 hardcode_direct=unsupported
10090 # It fails to find uninstalled libraries when the uninstalled
10091 # path is not listed in the libpath. Setting hardcode_minus_L
10092 # to unsupported forces relinking
10093 hardcode_minus_L=yes
10094 hardcode_libdir_flag_spec='-L$libdir'
10095 hardcode_libdir_separator=
10096 fi
10097 ;;
10098 esac
10099 shared_flag='-shared'
10100 if test yes = "$aix_use_runtimelinking"; then
10101 shared_flag="$shared_flag "'$wl-G'
10102 fi
10103 # Need to ensure runtime linking is disabled for the traditional
10104 # shared library, or the linker may eventually find shared libraries
10105 # /with/ Import File - we do not want to mix them.
10106 shared_flag_aix='-shared'
10107 shared_flag_svr4='-shared $wl-G'
10108 else
10109 # not using gcc
10110 if test ia64 = "$host_cpu"; then
10111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10112 # chokes on -Wl,-G. The following line is correct:
10113 shared_flag='-G'
10114 else
10115 if test yes = "$aix_use_runtimelinking"; then
10116 shared_flag='$wl-G'
10117 else
10118 shared_flag='$wl-bM:SRE'
10119 fi
10120 shared_flag_aix='$wl-bM:SRE'
10121 shared_flag_svr4='$wl-G'
10122 fi
10123 fi
10124
10125 export_dynamic_flag_spec='$wl-bexpall'
10126 # It seems that -bexpall does not export symbols beginning with
10127 # underscore (_), so it is better to generate a list of symbols to export.
10128 always_export_symbols=yes
10129 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10130 # Warning - without using the other runtime loading flags (-brtl),
10131 # -berok will link without error, but may produce a broken library.
10132 allow_undefined_flag='-berok'
10133 # Determine the default libpath from the value encoded in an
10134 # empty executable.
10135 if test set = "${lt_cv_aix_libpath+set}"; then
10136 aix_libpath=$lt_cv_aix_libpath
10137 else
10138 if ${lt_cv_aix_libpath_+:} false; then :
10139 $as_echo_n "(cached) " >&6
10140 else
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10143
10144 int
10145 main ()
10146 {
10147
10148 ;
10149 return 0;
10150 }
10151 _ACEOF
10152 if ac_fn_c_try_link "$LINENO"; then :
10153
10154 lt_aix_libpath_sed='
10155 /Import File Strings/,/^$/ {
10156 /^0/ {
10157 s/^0 *\([^ ]*\) *$/\1/
10158 p
10159 }
10160 }'
10161 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10162 # Check for a 64-bit object if we didn't find anything.
10163 if test -z "$lt_cv_aix_libpath_"; then
10164 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10165 fi
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext \
10168 conftest$ac_exeext conftest.$ac_ext
10169 if test -z "$lt_cv_aix_libpath_"; then
10170 lt_cv_aix_libpath_=/usr/lib:/lib
10171 fi
10172
10173 fi
10174
10175 aix_libpath=$lt_cv_aix_libpath_
10176 fi
10177
10178 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10179 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
10180 else
10181 if test ia64 = "$host_cpu"; then
10182 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10183 allow_undefined_flag="-z nodefs"
10184 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"
10185 else
10186 # Determine the default libpath from the value encoded in an
10187 # empty executable.
10188 if test set = "${lt_cv_aix_libpath+set}"; then
10189 aix_libpath=$lt_cv_aix_libpath
10190 else
10191 if ${lt_cv_aix_libpath_+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193 else
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10195 /* end confdefs.h. */
10196
10197 int
10198 main ()
10199 {
10200
10201 ;
10202 return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206
10207 lt_aix_libpath_sed='
10208 /Import File Strings/,/^$/ {
10209 /^0/ {
10210 s/^0 *\([^ ]*\) *$/\1/
10211 p
10212 }
10213 }'
10214 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10215 # Check for a 64-bit object if we didn't find anything.
10216 if test -z "$lt_cv_aix_libpath_"; then
10217 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10218 fi
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 if test -z "$lt_cv_aix_libpath_"; then
10223 lt_cv_aix_libpath_=/usr/lib:/lib
10224 fi
10225
10226 fi
10227
10228 aix_libpath=$lt_cv_aix_libpath_
10229 fi
10230
10231 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10232 # Warning - without using the other run time loading flags,
10233 # -berok will link without error, but may produce a broken library.
10234 no_undefined_flag=' $wl-bernotok'
10235 allow_undefined_flag=' $wl-berok'
10236 if test yes = "$with_gnu_ld"; then
10237 # We only use this code for GNU lds that support --whole-archive.
10238 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10239 else
10240 # Exported symbols can be pulled into shared objects from archives
10241 whole_archive_flag_spec='$convenience'
10242 fi
10243 archive_cmds_need_lc=yes
10244 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10245 # -brtl affects multiple linker settings, -berok does not and is overridden later
10246 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10247 if test svr4 != "$with_aix_soname"; then
10248 # This is similar to how AIX traditionally builds its shared libraries.
10249 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'
10250 fi
10251 if test aix != "$with_aix_soname"; then
10252 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'
10253 else
10254 # used by -dlpreopen to get the symbols
10255 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10256 fi
10257 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10258 fi
10259 fi
10260 ;;
10261
10262 amigaos*)
10263 case $host_cpu in
10264 powerpc)
10265 # see comment about AmigaOS4 .so support
10266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10267 archive_expsym_cmds=''
10268 ;;
10269 m68k)
10270 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)'
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_minus_L=yes
10273 ;;
10274 esac
10275 ;;
10276
10277 bsdi[45]*)
10278 export_dynamic_flag_spec=-rdynamic
10279 ;;
10280
10281 cygwin* | mingw* | pw32* | cegcc*)
10282 # When not using gcc, we currently assume that we are using
10283 # Microsoft Visual C++.
10284 # hardcode_libdir_flag_spec is actually meaningless, as there is
10285 # no search path for DLLs.
10286 case $cc_basename in
10287 cl*)
10288 # Native MSVC
10289 hardcode_libdir_flag_spec=' '
10290 allow_undefined_flag=unsupported
10291 always_export_symbols=yes
10292 file_list_spec='@'
10293 # Tell ltmain to make .lib files, not .a files.
10294 libext=lib
10295 # Tell ltmain to make .dll files, not .so files.
10296 shrext_cmds=.dll
10297 # FIXME: Setting linknames here is a bad hack.
10298 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10299 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10300 cp "$export_symbols" "$output_objdir/$soname.def";
10301 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10302 else
10303 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10304 fi~
10305 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10306 linknames='
10307 # The linker will not automatically build a static lib if we build a DLL.
10308 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10309 enable_shared_with_static_runtimes=yes
10310 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10311 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10312 # Don't use ranlib
10313 old_postinstall_cmds='chmod 644 $oldlib'
10314 postlink_cmds='lt_outputfile="@OUTPUT@"~
10315 lt_tool_outputfile="@TOOL_OUTPUT@"~
10316 case $lt_outputfile in
10317 *.exe|*.EXE) ;;
10318 *)
10319 lt_outputfile=$lt_outputfile.exe
10320 lt_tool_outputfile=$lt_tool_outputfile.exe
10321 ;;
10322 esac~
10323 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10324 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10325 $RM "$lt_outputfile.manifest";
10326 fi'
10327 ;;
10328 *)
10329 # Assume MSVC wrapper
10330 hardcode_libdir_flag_spec=' '
10331 allow_undefined_flag=unsupported
10332 # Tell ltmain to make .lib files, not .a files.
10333 libext=lib
10334 # Tell ltmain to make .dll files, not .so files.
10335 shrext_cmds=.dll
10336 # FIXME: Setting linknames here is a bad hack.
10337 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10338 # The linker will automatically build a .lib file if we build a DLL.
10339 old_archive_from_new_cmds='true'
10340 # FIXME: Should let the user specify the lib program.
10341 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10342 enable_shared_with_static_runtimes=yes
10343 ;;
10344 esac
10345 ;;
10346
10347 darwin* | rhapsody*)
10348
10349
10350 archive_cmds_need_lc=no
10351 hardcode_direct=no
10352 hardcode_automatic=yes
10353 hardcode_shlibpath_var=unsupported
10354 if test yes = "$lt_cv_ld_force_load"; then
10355 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\"`'
10356
10357 else
10358 whole_archive_flag_spec=''
10359 fi
10360 link_all_deplibs=yes
10361 allow_undefined_flag=$_lt_dar_allow_undefined
10362 case $cc_basename in
10363 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10364 *) _lt_dar_can_shared=$GCC ;;
10365 esac
10366 if test yes = "$_lt_dar_can_shared"; then
10367 output_verbose_link_cmd=func_echo_all
10368 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10369 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10370 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"
10371 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"
10372
10373 else
10374 ld_shlibs=no
10375 fi
10376
10377 ;;
10378
10379 dgux*)
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_libdir_flag_spec='-L$libdir'
10382 hardcode_shlibpath_var=no
10383 ;;
10384
10385 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10386 # support. Future versions do this automatically, but an explicit c++rt0.o
10387 # does not break anything, and helps significantly (at the cost of a little
10388 # extra space).
10389 freebsd2.2*)
10390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10391 hardcode_libdir_flag_spec='-R$libdir'
10392 hardcode_direct=yes
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10397 freebsd2.*)
10398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_direct=yes
10400 hardcode_minus_L=yes
10401 hardcode_shlibpath_var=no
10402 ;;
10403
10404 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10405 freebsd* | dragonfly*)
10406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407 hardcode_libdir_flag_spec='-R$libdir'
10408 hardcode_direct=yes
10409 hardcode_shlibpath_var=no
10410 ;;
10411
10412 hpux9*)
10413 if test yes = "$GCC"; then
10414 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'
10415 else
10416 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'
10417 fi
10418 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10419 hardcode_libdir_separator=:
10420 hardcode_direct=yes
10421
10422 # hardcode_minus_L: Not really in the search PATH,
10423 # but as the default location of the library.
10424 hardcode_minus_L=yes
10425 export_dynamic_flag_spec='$wl-E'
10426 ;;
10427
10428 hpux10*)
10429 if test yes,no = "$GCC,$with_gnu_ld"; then
10430 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10431 else
10432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10433 fi
10434 if test no = "$with_gnu_ld"; then
10435 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10436 hardcode_libdir_separator=:
10437 hardcode_direct=yes
10438 hardcode_direct_absolute=yes
10439 export_dynamic_flag_spec='$wl-E'
10440 # hardcode_minus_L: Not really in the search PATH,
10441 # but as the default location of the library.
10442 hardcode_minus_L=yes
10443 fi
10444 ;;
10445
10446 hpux11*)
10447 if test yes,no = "$GCC,$with_gnu_ld"; then
10448 case $host_cpu in
10449 hppa*64*)
10450 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10451 ;;
10452 ia64*)
10453 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10454 ;;
10455 *)
10456 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10457 ;;
10458 esac
10459 else
10460 case $host_cpu in
10461 hppa*64*)
10462 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10463 ;;
10464 ia64*)
10465 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10466 ;;
10467 *)
10468
10469 # Older versions of the 11.00 compiler do not understand -b yet
10470 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10472 $as_echo_n "checking if $CC understands -b... " >&6; }
10473 if ${lt_cv_prog_compiler__b+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 lt_cv_prog_compiler__b=no
10477 save_LDFLAGS=$LDFLAGS
10478 LDFLAGS="$LDFLAGS -b"
10479 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10480 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10481 # The linker can only warn and ignore the option if not recognized
10482 # So say no if there are warnings
10483 if test -s conftest.err; then
10484 # Append any errors to the config.log.
10485 cat conftest.err 1>&5
10486 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10488 if diff conftest.exp conftest.er2 >/dev/null; then
10489 lt_cv_prog_compiler__b=yes
10490 fi
10491 else
10492 lt_cv_prog_compiler__b=yes
10493 fi
10494 fi
10495 $RM -r conftest*
10496 LDFLAGS=$save_LDFLAGS
10497
10498 fi
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10500 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10501
10502 if test yes = "$lt_cv_prog_compiler__b"; then
10503 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10504 else
10505 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10506 fi
10507
10508 ;;
10509 esac
10510 fi
10511 if test no = "$with_gnu_ld"; then
10512 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10513 hardcode_libdir_separator=:
10514
10515 case $host_cpu in
10516 hppa*64*|ia64*)
10517 hardcode_direct=no
10518 hardcode_shlibpath_var=no
10519 ;;
10520 *)
10521 hardcode_direct=yes
10522 hardcode_direct_absolute=yes
10523 export_dynamic_flag_spec='$wl-E'
10524
10525 # hardcode_minus_L: Not really in the search PATH,
10526 # but as the default location of the library.
10527 hardcode_minus_L=yes
10528 ;;
10529 esac
10530 fi
10531 ;;
10532
10533 irix5* | irix6* | nonstopux*)
10534 if test yes = "$GCC"; then
10535 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'
10536 # Try to use the -exported_symbol ld option, if it does not
10537 # work, assume that -exports_file does not work either and
10538 # implicitly export all symbols.
10539 # This should be the same for all languages, so no per-tag cache variable.
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10541 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10542 if ${lt_cv_irix_exported_symbol+:} false; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 save_LDFLAGS=$LDFLAGS
10546 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549 int foo (void) { return 0; }
10550 _ACEOF
10551 if ac_fn_c_try_link "$LINENO"; then :
10552 lt_cv_irix_exported_symbol=yes
10553 else
10554 lt_cv_irix_exported_symbol=no
10555 fi
10556 rm -f core conftest.err conftest.$ac_objext \
10557 conftest$ac_exeext conftest.$ac_ext
10558 LDFLAGS=$save_LDFLAGS
10559 fi
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10561 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10562 if test yes = "$lt_cv_irix_exported_symbol"; then
10563 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'
10564 fi
10565 link_all_deplibs=no
10566 else
10567 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'
10568 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'
10569 fi
10570 archive_cmds_need_lc='no'
10571 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10572 hardcode_libdir_separator=:
10573 inherit_rpath=yes
10574 link_all_deplibs=yes
10575 ;;
10576
10577 linux*)
10578 case $cc_basename in
10579 tcc*)
10580 # Fabrice Bellard et al's Tiny C Compiler
10581 ld_shlibs=yes
10582 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10583 ;;
10584 esac
10585 ;;
10586
10587 netbsd* | netbsdelf*-gnu)
10588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10590 else
10591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10592 fi
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 hardcode_direct=yes
10595 hardcode_shlibpath_var=no
10596 ;;
10597
10598 newsos6)
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_direct=yes
10601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_shlibpath_var=no
10604 ;;
10605
10606 *nto* | *qnx*)
10607 ;;
10608
10609 openbsd* | bitrig*)
10610 if test -f /usr/libexec/ld.so; then
10611 hardcode_direct=yes
10612 hardcode_shlibpath_var=no
10613 hardcode_direct_absolute=yes
10614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10617 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10618 export_dynamic_flag_spec='$wl-E'
10619 else
10620 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10621 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10622 fi
10623 else
10624 ld_shlibs=no
10625 fi
10626 ;;
10627
10628 os2*)
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_minus_L=yes
10631 allow_undefined_flag=unsupported
10632 shrext_cmds=.dll
10633 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10634 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10635 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10636 $ECHO EXPORTS >> $output_objdir/$libname.def~
10637 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10638 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10639 emximp -o $lib $output_objdir/$libname.def'
10640 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10641 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10642 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10643 $ECHO EXPORTS >> $output_objdir/$libname.def~
10644 prefix_cmds="$SED"~
10645 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10646 prefix_cmds="$prefix_cmds -e 1d";
10647 fi~
10648 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10649 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10650 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10651 emximp -o $lib $output_objdir/$libname.def'
10652 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10653 enable_shared_with_static_runtimes=yes
10654 ;;
10655
10656 osf3*)
10657 if test yes = "$GCC"; then
10658 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10659 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'
10660 else
10661 allow_undefined_flag=' -expect_unresolved \*'
10662 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'
10663 fi
10664 archive_cmds_need_lc='no'
10665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10666 hardcode_libdir_separator=:
10667 ;;
10668
10669 osf4* | osf5*) # as osf3* with the addition of -msym flag
10670 if test yes = "$GCC"; then
10671 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10672 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'
10673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10674 else
10675 allow_undefined_flag=' -expect_unresolved \*'
10676 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'
10677 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~
10678 $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'
10679
10680 # Both c and cxx compiler support -rpath directly
10681 hardcode_libdir_flag_spec='-rpath $libdir'
10682 fi
10683 archive_cmds_need_lc='no'
10684 hardcode_libdir_separator=:
10685 ;;
10686
10687 solaris*)
10688 no_undefined_flag=' -z defs'
10689 if test yes = "$GCC"; then
10690 wlarc='$wl'
10691 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10693 $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'
10694 else
10695 case `$CC -V 2>&1` in
10696 *"Compilers 5.0"*)
10697 wlarc=''
10698 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10700 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10701 ;;
10702 *)
10703 wlarc='$wl'
10704 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10705 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10706 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10707 ;;
10708 esac
10709 fi
10710 hardcode_libdir_flag_spec='-R$libdir'
10711 hardcode_shlibpath_var=no
10712 case $host_os in
10713 solaris2.[0-5] | solaris2.[0-5].*) ;;
10714 *)
10715 # The compiler driver will combine and reorder linker options,
10716 # but understands '-z linker_flag'. GCC discards it without '$wl',
10717 # but is careful enough not to reorder.
10718 # Supported since Solaris 2.6 (maybe 2.5.1?)
10719 if test yes = "$GCC"; then
10720 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10721 else
10722 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10723 fi
10724 ;;
10725 esac
10726 link_all_deplibs=yes
10727 ;;
10728
10729 sunos4*)
10730 if test sequent = "$host_vendor"; then
10731 # Use $CC to link under sequent, because it throws in some extra .o
10732 # files that make .init and .fini sections work.
10733 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10734 else
10735 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10736 fi
10737 hardcode_libdir_flag_spec='-L$libdir'
10738 hardcode_direct=yes
10739 hardcode_minus_L=yes
10740 hardcode_shlibpath_var=no
10741 ;;
10742
10743 sysv4)
10744 case $host_vendor in
10745 sni)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_direct=yes # is this really true???
10748 ;;
10749 siemens)
10750 ## LD is ld it makes a PLAMLIB
10751 ## CC just makes a GrossModule.
10752 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10753 reload_cmds='$CC -r -o $output$reload_objs'
10754 hardcode_direct=no
10755 ;;
10756 motorola)
10757 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10758 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10759 ;;
10760 esac
10761 runpath_var='LD_RUN_PATH'
10762 hardcode_shlibpath_var=no
10763 ;;
10764
10765 sysv4.3*)
10766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767 hardcode_shlibpath_var=no
10768 export_dynamic_flag_spec='-Bexport'
10769 ;;
10770
10771 sysv4*MP*)
10772 if test -d /usr/nec; then
10773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10774 hardcode_shlibpath_var=no
10775 runpath_var=LD_RUN_PATH
10776 hardcode_runpath_var=yes
10777 ld_shlibs=yes
10778 fi
10779 ;;
10780
10781 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10782 no_undefined_flag='$wl-z,text'
10783 archive_cmds_need_lc=no
10784 hardcode_shlibpath_var=no
10785 runpath_var='LD_RUN_PATH'
10786
10787 if test yes = "$GCC"; then
10788 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790 else
10791 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793 fi
10794 ;;
10795
10796 sysv5* | sco3.2v5* | sco5v6*)
10797 # Note: We CANNOT use -z defs as we might desire, because we do not
10798 # link with -lc, and that would cause any symbols used from libc to
10799 # always be unresolved, which means just about no library would
10800 # ever link correctly. If we're not using GNU ld we use -z text
10801 # though, which does catch some bad symbols but isn't as heavy-handed
10802 # as -z defs.
10803 no_undefined_flag='$wl-z,text'
10804 allow_undefined_flag='$wl-z,nodefs'
10805 archive_cmds_need_lc=no
10806 hardcode_shlibpath_var=no
10807 hardcode_libdir_flag_spec='$wl-R,$libdir'
10808 hardcode_libdir_separator=':'
10809 link_all_deplibs=yes
10810 export_dynamic_flag_spec='$wl-Bexport'
10811 runpath_var='LD_RUN_PATH'
10812
10813 if test yes = "$GCC"; then
10814 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 else
10817 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10819 fi
10820 ;;
10821
10822 uts4*)
10823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824 hardcode_libdir_flag_spec='-L$libdir'
10825 hardcode_shlibpath_var=no
10826 ;;
10827
10828 *)
10829 ld_shlibs=no
10830 ;;
10831 esac
10832
10833 if test sni = "$host_vendor"; then
10834 case $host in
10835 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10836 export_dynamic_flag_spec='$wl-Blargedynsym'
10837 ;;
10838 esac
10839 fi
10840 fi
10841
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10843 $as_echo "$ld_shlibs" >&6; }
10844 test no = "$ld_shlibs" && can_build_shared=no
10845
10846 with_gnu_ld=$with_gnu_ld
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862 #
10863 # Do we need to explicitly link libc?
10864 #
10865 case "x$archive_cmds_need_lc" in
10866 x|xyes)
10867 # Assume -lc should be added
10868 archive_cmds_need_lc=yes
10869
10870 if test yes,yes = "$GCC,$enable_shared"; then
10871 case $archive_cmds in
10872 *'~'*)
10873 # FIXME: we may have to deal with multi-command sequences.
10874 ;;
10875 '$CC '*)
10876 # Test whether the compiler implicitly links with -lc since on some
10877 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10878 # to ld, don't add -lc before -lgcc.
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10880 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10881 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 $RM conftest*
10885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10886
10887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10888 (eval $ac_compile) 2>&5
10889 ac_status=$?
10890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10891 test $ac_status = 0; } 2>conftest.err; then
10892 soname=conftest
10893 lib=conftest
10894 libobjs=conftest.$ac_objext
10895 deplibs=
10896 wl=$lt_prog_compiler_wl
10897 pic_flag=$lt_prog_compiler_pic
10898 compiler_flags=-v
10899 linker_flags=-v
10900 verstring=
10901 output_objdir=.
10902 libname=conftest
10903 lt_save_allow_undefined_flag=$allow_undefined_flag
10904 allow_undefined_flag=
10905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10906 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10907 ac_status=$?
10908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10909 test $ac_status = 0; }
10910 then
10911 lt_cv_archive_cmds_need_lc=no
10912 else
10913 lt_cv_archive_cmds_need_lc=yes
10914 fi
10915 allow_undefined_flag=$lt_save_allow_undefined_flag
10916 else
10917 cat conftest.err 1>&5
10918 fi
10919 $RM conftest*
10920
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10923 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10924 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10925 ;;
10926 esac
10927 fi
10928 ;;
10929 esac
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11083 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11084
11085 if test yes = "$GCC"; then
11086 case $host_os in
11087 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11088 *) lt_awk_arg='/^libraries:/' ;;
11089 esac
11090 case $host_os in
11091 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11092 *) lt_sed_strip_eq='s|=/|/|g' ;;
11093 esac
11094 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11095 case $lt_search_path_spec in
11096 *\;*)
11097 # if the path contains ";" then we assume it to be the separator
11098 # otherwise default to the standard path separator (i.e. ":") - it is
11099 # assumed that no part of a normal pathname contains ";" but that should
11100 # okay in the real world where ";" in dirpaths is itself problematic.
11101 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11102 ;;
11103 *)
11104 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11105 ;;
11106 esac
11107 # Ok, now we have the path, separated by spaces, we can step through it
11108 # and add multilib dir if necessary...
11109 lt_tmp_lt_search_path_spec=
11110 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11111 # ...but if some path component already ends with the multilib dir we assume
11112 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11113 case "$lt_multi_os_dir; $lt_search_path_spec " in
11114 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11115 lt_multi_os_dir=
11116 ;;
11117 esac
11118 for lt_sys_path in $lt_search_path_spec; do
11119 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11120 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11121 elif test -n "$lt_multi_os_dir"; then
11122 test -d "$lt_sys_path" && \
11123 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11124 fi
11125 done
11126 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11127 BEGIN {RS = " "; FS = "/|\n";} {
11128 lt_foo = "";
11129 lt_count = 0;
11130 for (lt_i = NF; lt_i > 0; lt_i--) {
11131 if ($lt_i != "" && $lt_i != ".") {
11132 if ($lt_i == "..") {
11133 lt_count++;
11134 } else {
11135 if (lt_count == 0) {
11136 lt_foo = "/" $lt_i lt_foo;
11137 } else {
11138 lt_count--;
11139 }
11140 }
11141 }
11142 }
11143 if (lt_foo != "") { lt_freq[lt_foo]++; }
11144 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11145 }'`
11146 # AWK program above erroneously prepends '/' to C:/dos/paths
11147 # for these hosts.
11148 case $host_os in
11149 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11150 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11151 esac
11152 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11153 else
11154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11155 fi
11156 library_names_spec=
11157 libname_spec='lib$name'
11158 soname_spec=
11159 shrext_cmds=.so
11160 postinstall_cmds=
11161 postuninstall_cmds=
11162 finish_cmds=
11163 finish_eval=
11164 shlibpath_var=
11165 shlibpath_overrides_runpath=unknown
11166 version_type=none
11167 dynamic_linker="$host_os ld.so"
11168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11169 need_lib_prefix=unknown
11170 hardcode_into_libs=no
11171
11172 # when you set need_version to no, make sure it does not cause -set_version
11173 # flags to be left without arguments
11174 need_version=unknown
11175
11176
11177
11178 case $host_os in
11179 aix3*)
11180 version_type=linux # correct to gnu/linux during the next big refactor
11181 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11182 shlibpath_var=LIBPATH
11183
11184 # AIX 3 has no versioning support, so we append a major version to the name.
11185 soname_spec='$libname$release$shared_ext$major'
11186 ;;
11187
11188 aix[4-9]*)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 need_lib_prefix=no
11191 need_version=no
11192 hardcode_into_libs=yes
11193 if test ia64 = "$host_cpu"; then
11194 # AIX 5 supports IA64
11195 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 else
11198 # With GCC up to 2.95.x, collect2 would create an import file
11199 # for dependence libraries. The import file would start with
11200 # the line '#! .'. This would cause the generated library to
11201 # depend on '.', always an invalid library. This was fixed in
11202 # development snapshots of GCC prior to 3.0.
11203 case $host_os in
11204 aix4 | aix4.[01] | aix4.[01].*)
11205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11206 echo ' yes '
11207 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11208 :
11209 else
11210 can_build_shared=no
11211 fi
11212 ;;
11213 esac
11214 # Using Import Files as archive members, it is possible to support
11215 # filename-based versioning of shared library archives on AIX. While
11216 # this would work for both with and without runtime linking, it will
11217 # prevent static linking of such archives. So we do filename-based
11218 # shared library versioning with .so extension only, which is used
11219 # when both runtime linking and shared linking is enabled.
11220 # Unfortunately, runtime linking may impact performance, so we do
11221 # not want this to be the default eventually. Also, we use the
11222 # versioned .so libs for executables only if there is the -brtl
11223 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11224 # To allow for filename-based versioning support, we need to create
11225 # libNAME.so.V as an archive file, containing:
11226 # *) an Import File, referring to the versioned filename of the
11227 # archive as well as the shared archive member, telling the
11228 # bitwidth (32 or 64) of that shared object, and providing the
11229 # list of exported symbols of that shared object, eventually
11230 # decorated with the 'weak' keyword
11231 # *) the shared object with the F_LOADONLY flag set, to really avoid
11232 # it being seen by the linker.
11233 # At run time we better use the real file rather than another symlink,
11234 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11235
11236 case $with_aix_soname,$aix_use_runtimelinking in
11237 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11238 # soname into executable. Probably we can add versioning support to
11239 # collect2, so additional links can be useful in future.
11240 aix,yes) # traditional libtool
11241 dynamic_linker='AIX unversionable lib.so'
11242 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11243 # instead of lib<name>.a to let people know that these are not
11244 # typical AIX shared libraries.
11245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246 ;;
11247 aix,no) # traditional AIX only
11248 dynamic_linker='AIX lib.a(lib.so.V)'
11249 # We preserve .a as extension for shared libraries through AIX4.2
11250 # and later when we are not doing run time linking.
11251 library_names_spec='$libname$release.a $libname.a'
11252 soname_spec='$libname$release$shared_ext$major'
11253 ;;
11254 svr4,*) # full svr4 only
11255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11257 # We do not specify a path in Import Files, so LIBPATH fires.
11258 shlibpath_overrides_runpath=yes
11259 ;;
11260 *,yes) # both, prefer svr4
11261 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11262 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11263 # unpreferred sharedlib libNAME.a needs extra handling
11264 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"'
11265 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"'
11266 # We do not specify a path in Import Files, so LIBPATH fires.
11267 shlibpath_overrides_runpath=yes
11268 ;;
11269 *,no) # both, prefer aix
11270 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11271 library_names_spec='$libname$release.a $libname.a'
11272 soname_spec='$libname$release$shared_ext$major'
11273 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11274 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)'
11275 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"'
11276 ;;
11277 esac
11278 shlibpath_var=LIBPATH
11279 fi
11280 ;;
11281
11282 amigaos*)
11283 case $host_cpu in
11284 powerpc)
11285 # Since July 2007 AmigaOS4 officially supports .so libraries.
11286 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11288 ;;
11289 m68k)
11290 library_names_spec='$libname.ixlibrary $libname.a'
11291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11292 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'
11293 ;;
11294 esac
11295 ;;
11296
11297 beos*)
11298 library_names_spec='$libname$shared_ext'
11299 dynamic_linker="$host_os ld.so"
11300 shlibpath_var=LIBRARY_PATH
11301 ;;
11302
11303 bsdi[45]*)
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 need_version=no
11306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11307 soname_spec='$libname$release$shared_ext$major'
11308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11312 # the default ld.so.conf also contains /usr/contrib/lib and
11313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11314 # libtool to hard-code these into programs
11315 ;;
11316
11317 cygwin* | mingw* | pw32* | cegcc*)
11318 version_type=windows
11319 shrext_cmds=.dll
11320 need_version=no
11321 need_lib_prefix=no
11322
11323 case $GCC,$cc_basename in
11324 yes,*)
11325 # gcc
11326 library_names_spec='$libname.dll.a'
11327 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11328 postinstall_cmds='base_file=`basename \$file`~
11329 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11330 dldir=$destdir/`dirname \$dlpath`~
11331 test -d \$dldir || mkdir -p \$dldir~
11332 $install_prog $dir/$dlname \$dldir/$dlname~
11333 chmod a+x \$dldir/$dlname~
11334 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11335 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11336 fi'
11337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11338 dlpath=$dir/\$dldll~
11339 $RM \$dlpath'
11340 shlibpath_overrides_runpath=yes
11341
11342 case $host_os in
11343 cygwin*)
11344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11345 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11346
11347 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11348 ;;
11349 mingw* | cegcc*)
11350 # MinGW DLLs use traditional 'lib' prefix
11351 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11352 ;;
11353 pw32*)
11354 # pw32 DLLs use 'pw' prefix rather than 'lib'
11355 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11356 ;;
11357 esac
11358 dynamic_linker='Win32 ld.exe'
11359 ;;
11360
11361 *,cl*)
11362 # Native MSVC
11363 libname_spec='$name'
11364 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11365 library_names_spec='$libname.dll.lib'
11366
11367 case $build_os in
11368 mingw*)
11369 sys_lib_search_path_spec=
11370 lt_save_ifs=$IFS
11371 IFS=';'
11372 for lt_path in $LIB
11373 do
11374 IFS=$lt_save_ifs
11375 # Let DOS variable expansion print the short 8.3 style file name.
11376 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11377 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11378 done
11379 IFS=$lt_save_ifs
11380 # Convert to MSYS style.
11381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11382 ;;
11383 cygwin*)
11384 # Convert to unix form, then to dos form, then back to unix form
11385 # but this time dos style (no spaces!) so that the unix form looks
11386 # like /cygdrive/c/PROGRA~1:/cygdr...
11387 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11388 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11389 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11390 ;;
11391 *)
11392 sys_lib_search_path_spec=$LIB
11393 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11394 # It is most probably a Windows format PATH.
11395 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11396 else
11397 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11398 fi
11399 # FIXME: find the short name or the path components, as spaces are
11400 # common. (e.g. "Program Files" -> "PROGRA~1")
11401 ;;
11402 esac
11403
11404 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11405 postinstall_cmds='base_file=`basename \$file`~
11406 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11407 dldir=$destdir/`dirname \$dlpath`~
11408 test -d \$dldir || mkdir -p \$dldir~
11409 $install_prog $dir/$dlname \$dldir/$dlname'
11410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11411 dlpath=$dir/\$dldll~
11412 $RM \$dlpath'
11413 shlibpath_overrides_runpath=yes
11414 dynamic_linker='Win32 link.exe'
11415 ;;
11416
11417 *)
11418 # Assume MSVC wrapper
11419 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11420 dynamic_linker='Win32 ld.exe'
11421 ;;
11422 esac
11423 # FIXME: first we should search . and the directory the executable is in
11424 shlibpath_var=PATH
11425 ;;
11426
11427 darwin* | rhapsody*)
11428 dynamic_linker="$host_os dyld"
11429 version_type=darwin
11430 need_lib_prefix=no
11431 need_version=no
11432 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11433 soname_spec='$libname$release$major$shared_ext'
11434 shlibpath_overrides_runpath=yes
11435 shlibpath_var=DYLD_LIBRARY_PATH
11436 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11437
11438 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11439 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11440 ;;
11441
11442 dgux*)
11443 version_type=linux # correct to gnu/linux during the next big refactor
11444 need_lib_prefix=no
11445 need_version=no
11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 soname_spec='$libname$release$shared_ext$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 ;;
11450
11451 freebsd* | dragonfly*)
11452 # DragonFly does not have aout. When/if they implement a new
11453 # versioning mechanism, adjust this.
11454 if test -x /usr/bin/objformat; then
11455 objformat=`/usr/bin/objformat`
11456 else
11457 case $host_os in
11458 freebsd[23].*) objformat=aout ;;
11459 *) objformat=elf ;;
11460 esac
11461 fi
11462 version_type=freebsd-$objformat
11463 case $version_type in
11464 freebsd-elf*)
11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11466 soname_spec='$libname$release$shared_ext$major'
11467 need_version=no
11468 need_lib_prefix=no
11469 ;;
11470 freebsd-*)
11471 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11472 need_version=yes
11473 ;;
11474 esac
11475 shlibpath_var=LD_LIBRARY_PATH
11476 case $host_os in
11477 freebsd2.*)
11478 shlibpath_overrides_runpath=yes
11479 ;;
11480 freebsd3.[01]* | freebsdelf3.[01]*)
11481 shlibpath_overrides_runpath=yes
11482 hardcode_into_libs=yes
11483 ;;
11484 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11485 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11486 shlibpath_overrides_runpath=no
11487 hardcode_into_libs=yes
11488 ;;
11489 *) # from 4.6 on, and DragonFly
11490 shlibpath_overrides_runpath=yes
11491 hardcode_into_libs=yes
11492 ;;
11493 esac
11494 ;;
11495
11496 haiku*)
11497 version_type=linux # correct to gnu/linux during the next big refactor
11498 need_lib_prefix=no
11499 need_version=no
11500 dynamic_linker="$host_os runtime_loader"
11501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11502 soname_spec='$libname$release$shared_ext$major'
11503 shlibpath_var=LIBRARY_PATH
11504 shlibpath_overrides_runpath=no
11505 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11506 hardcode_into_libs=yes
11507 ;;
11508
11509 hpux9* | hpux10* | hpux11*)
11510 # Give a soname corresponding to the major version so that dld.sl refuses to
11511 # link against other versions.
11512 version_type=sunos
11513 need_lib_prefix=no
11514 need_version=no
11515 case $host_cpu in
11516 ia64*)
11517 shrext_cmds='.so'
11518 hardcode_into_libs=yes
11519 dynamic_linker="$host_os dld.so"
11520 shlibpath_var=LD_LIBRARY_PATH
11521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11523 soname_spec='$libname$release$shared_ext$major'
11524 if test 32 = "$HPUX_IA64_MODE"; then
11525 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11526 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11527 else
11528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11529 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11530 fi
11531 ;;
11532 hppa*64*)
11533 shrext_cmds='.sl'
11534 hardcode_into_libs=yes
11535 dynamic_linker="$host_os dld.sl"
11536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539 soname_spec='$libname$release$shared_ext$major'
11540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11542 ;;
11543 *)
11544 shrext_cmds='.sl'
11545 dynamic_linker="$host_os dld.sl"
11546 shlibpath_var=SHLIB_PATH
11547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 ;;
11551 esac
11552 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11553 postinstall_cmds='chmod 555 $lib'
11554 # or fails outright, so override atomically:
11555 install_override_mode=555
11556 ;;
11557
11558 interix[3-9]*)
11559 version_type=linux # correct to gnu/linux during the next big refactor
11560 need_lib_prefix=no
11561 need_version=no
11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11563 soname_spec='$libname$release$shared_ext$major'
11564 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 shlibpath_overrides_runpath=no
11567 hardcode_into_libs=yes
11568 ;;
11569
11570 irix5* | irix6* | nonstopux*)
11571 case $host_os in
11572 nonstopux*) version_type=nonstopux ;;
11573 *)
11574 if test yes = "$lt_cv_prog_gnu_ld"; then
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 else
11577 version_type=irix
11578 fi ;;
11579 esac
11580 need_lib_prefix=no
11581 need_version=no
11582 soname_spec='$libname$release$shared_ext$major'
11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11584 case $host_os in
11585 irix5* | nonstopux*)
11586 libsuff= shlibsuff=
11587 ;;
11588 *)
11589 case $LD in # libtool.m4 will add one of these switches to LD
11590 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11591 libsuff= shlibsuff= libmagic=32-bit;;
11592 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11593 libsuff=32 shlibsuff=N32 libmagic=N32;;
11594 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11595 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11596 *) libsuff= shlibsuff= libmagic=never-match;;
11597 esac
11598 ;;
11599 esac
11600 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11601 shlibpath_overrides_runpath=no
11602 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11603 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11604 hardcode_into_libs=yes
11605 ;;
11606
11607 # No shared lib support for Linux oldld, aout, or coff.
11608 linux*oldld* | linux*aout* | linux*coff*)
11609 dynamic_linker=no
11610 ;;
11611
11612 linux*android*)
11613 version_type=none # Android doesn't support versioned libraries.
11614 need_lib_prefix=no
11615 need_version=no
11616 library_names_spec='$libname$release$shared_ext'
11617 soname_spec='$libname$release$shared_ext'
11618 finish_cmds=
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes
11621
11622 # This implies no fast_install, which is unacceptable.
11623 # Some rework will be needed to allow for fast_install
11624 # before this can be enabled.
11625 hardcode_into_libs=yes
11626
11627 dynamic_linker='Android linker'
11628 # Don't embed -rpath directories since the linker doesn't support them.
11629 hardcode_libdir_flag_spec='-L$libdir'
11630 ;;
11631
11632 # This must be glibc/ELF.
11633 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11634 version_type=linux # correct to gnu/linux during the next big refactor
11635 need_lib_prefix=no
11636 need_version=no
11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638 soname_spec='$libname$release$shared_ext$major'
11639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=no
11642
11643 # Some binutils ld are patched to set DT_RUNPATH
11644 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 lt_cv_shlibpath_overrides_runpath=no
11648 save_LDFLAGS=$LDFLAGS
11649 save_libdir=$libdir
11650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654
11655 int
11656 main ()
11657 {
11658
11659 ;
11660 return 0;
11661 }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11665 lt_cv_shlibpath_overrides_runpath=yes
11666 fi
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LDFLAGS=$save_LDFLAGS
11671 libdir=$save_libdir
11672
11673 fi
11674
11675 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11676
11677 # This implies no fast_install, which is unacceptable.
11678 # Some rework will be needed to allow for fast_install
11679 # before this can be enabled.
11680 hardcode_into_libs=yes
11681
11682 # Ideally, we could use ldconfig to report *all* directores which are
11683 # searched for libraries, however this is still not possible. Aside from not
11684 # being certain /sbin/ldconfig is available, command
11685 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11686 # even though it is searched at run-time. Try to do the best guess by
11687 # appending ld.so.conf contents (and includes) to the search path.
11688 if test -f /etc/ld.so.conf; then
11689 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' ' '`
11690 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11691 fi
11692
11693 # We used to test for /lib/ld.so.1 and disable shared libraries on
11694 # powerpc, because MkLinux only supported shared libraries with the
11695 # GNU dynamic linker. Since this was broken with cross compilers,
11696 # most powerpc-linux boxes support dynamic linking these days and
11697 # people can always --disable-shared, the test was removed, and we
11698 # assume the GNU/Linux dynamic linker is in use.
11699 dynamic_linker='GNU/Linux ld.so'
11700 ;;
11701
11702 netbsdelf*-gnu)
11703 version_type=linux
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 shlibpath_var=LD_LIBRARY_PATH
11709 shlibpath_overrides_runpath=no
11710 hardcode_into_libs=yes
11711 dynamic_linker='NetBSD ld.elf_so'
11712 ;;
11713
11714 netbsd*)
11715 version_type=sunos
11716 need_lib_prefix=no
11717 need_version=no
11718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721 dynamic_linker='NetBSD (a.out) ld.so'
11722 else
11723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11724 soname_spec='$libname$release$shared_ext$major'
11725 dynamic_linker='NetBSD ld.elf_so'
11726 fi
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11729 hardcode_into_libs=yes
11730 ;;
11731
11732 newsos6)
11733 version_type=linux # correct to gnu/linux during the next big refactor
11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 shlibpath_overrides_runpath=yes
11737 ;;
11738
11739 *nto* | *qnx*)
11740 version_type=qnx
11741 need_lib_prefix=no
11742 need_version=no
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 hardcode_into_libs=yes
11748 dynamic_linker='ldqnx.so'
11749 ;;
11750
11751 openbsd* | bitrig*)
11752 version_type=sunos
11753 sys_lib_dlsearch_path_spec=/usr/lib
11754 need_lib_prefix=no
11755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11756 need_version=no
11757 else
11758 need_version=yes
11759 fi
11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes
11764 ;;
11765
11766 os2*)
11767 libname_spec='$name'
11768 version_type=windows
11769 shrext_cmds=.dll
11770 need_version=no
11771 need_lib_prefix=no
11772 # OS/2 can only load a DLL with a base name of 8 characters or less.
11773 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11774 v=$($ECHO $release$versuffix | tr -d .-);
11775 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11776 $ECHO $n$v`$shared_ext'
11777 library_names_spec='${libname}_dll.$libext'
11778 dynamic_linker='OS/2 ld.exe'
11779 shlibpath_var=BEGINLIBPATH
11780 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11782 postinstall_cmds='base_file=`basename \$file`~
11783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11784 dldir=$destdir/`dirname \$dlpath`~
11785 test -d \$dldir || mkdir -p \$dldir~
11786 $install_prog $dir/$dlname \$dldir/$dlname~
11787 chmod a+x \$dldir/$dlname~
11788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11790 fi'
11791 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11792 dlpath=$dir/\$dldll~
11793 $RM \$dlpath'
11794 ;;
11795
11796 osf3* | osf4* | osf5*)
11797 version_type=osf
11798 need_lib_prefix=no
11799 need_version=no
11800 soname_spec='$libname$release$shared_ext$major'
11801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11805 ;;
11806
11807 rdos*)
11808 dynamic_linker=no
11809 ;;
11810
11811 solaris*)
11812 version_type=linux # correct to gnu/linux during the next big refactor
11813 need_lib_prefix=no
11814 need_version=no
11815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11816 soname_spec='$libname$release$shared_ext$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=yes
11819 hardcode_into_libs=yes
11820 # ldd complains unless libraries are executable
11821 postinstall_cmds='chmod +x $lib'
11822 ;;
11823
11824 sunos4*)
11825 version_type=sunos
11826 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 shlibpath_overrides_runpath=yes
11830 if test yes = "$with_gnu_ld"; then
11831 need_lib_prefix=no
11832 fi
11833 need_version=yes
11834 ;;
11835
11836 sysv4 | sysv4.3*)
11837 version_type=linux # correct to gnu/linux during the next big refactor
11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11839 soname_spec='$libname$release$shared_ext$major'
11840 shlibpath_var=LD_LIBRARY_PATH
11841 case $host_vendor in
11842 sni)
11843 shlibpath_overrides_runpath=no
11844 need_lib_prefix=no
11845 runpath_var=LD_RUN_PATH
11846 ;;
11847 siemens)
11848 need_lib_prefix=no
11849 ;;
11850 motorola)
11851 need_lib_prefix=no
11852 need_version=no
11853 shlibpath_overrides_runpath=no
11854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11855 ;;
11856 esac
11857 ;;
11858
11859 sysv4*MP*)
11860 if test -d /usr/nec; then
11861 version_type=linux # correct to gnu/linux during the next big refactor
11862 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11863 soname_spec='$libname$shared_ext.$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 fi
11866 ;;
11867
11868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11869 version_type=sco
11870 need_lib_prefix=no
11871 need_version=no
11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11873 soname_spec='$libname$release$shared_ext$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 hardcode_into_libs=yes
11877 if test yes = "$with_gnu_ld"; then
11878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11879 else
11880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11881 case $host_os in
11882 sco3.2v5*)
11883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11884 ;;
11885 esac
11886 fi
11887 sys_lib_dlsearch_path_spec='/usr/lib'
11888 ;;
11889
11890 tpf*)
11891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11892 version_type=linux # correct to gnu/linux during the next big refactor
11893 need_lib_prefix=no
11894 need_version=no
11895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 shlibpath_overrides_runpath=no
11898 hardcode_into_libs=yes
11899 ;;
11900
11901 uts4*)
11902 version_type=linux # correct to gnu/linux during the next big refactor
11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11904 soname_spec='$libname$release$shared_ext$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 ;;
11907
11908 *)
11909 dynamic_linker=no
11910 ;;
11911 esac
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11913 $as_echo "$dynamic_linker" >&6; }
11914 test no = "$dynamic_linker" && can_build_shared=no
11915
11916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11917 if test yes = "$GCC"; then
11918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11919 fi
11920
11921 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11922 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11923 fi
11924
11925 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11926 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11927 fi
11928
11929 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11930 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11931
11932 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11933 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11934
11935 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11936 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12035 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12036 hardcode_action=
12037 if test -n "$hardcode_libdir_flag_spec" ||
12038 test -n "$runpath_var" ||
12039 test yes = "$hardcode_automatic"; then
12040
12041 # We can hardcode non-existent directories.
12042 if test no != "$hardcode_direct" &&
12043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12044 # have to relink, otherwise we might link with an installed library
12045 # when we should be linking with a yet-to-be-installed one
12046 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12047 test no != "$hardcode_minus_L"; then
12048 # Linking always hardcodes the temporary library directory.
12049 hardcode_action=relink
12050 else
12051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12052 hardcode_action=immediate
12053 fi
12054 else
12055 # We cannot hardcode anything, or else we can only hardcode existing
12056 # directories.
12057 hardcode_action=unsupported
12058 fi
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12060 $as_echo "$hardcode_action" >&6; }
12061
12062 if test relink = "$hardcode_action" ||
12063 test yes = "$inherit_rpath"; then
12064 # Fast installation is not supported
12065 enable_fast_install=no
12066 elif test yes = "$shlibpath_overrides_runpath" ||
12067 test no = "$enable_shared"; then
12068 # Fast installation is not necessary
12069 enable_fast_install=needless
12070 fi
12071
12072
12073
12074
12075
12076
12077 if test yes != "$enable_dlopen"; then
12078 enable_dlopen=unknown
12079 enable_dlopen_self=unknown
12080 enable_dlopen_self_static=unknown
12081 else
12082 lt_cv_dlopen=no
12083 lt_cv_dlopen_libs=
12084
12085 case $host_os in
12086 beos*)
12087 lt_cv_dlopen=load_add_on
12088 lt_cv_dlopen_libs=
12089 lt_cv_dlopen_self=yes
12090 ;;
12091
12092 mingw* | pw32* | cegcc*)
12093 lt_cv_dlopen=LoadLibrary
12094 lt_cv_dlopen_libs=
12095 ;;
12096
12097 cygwin*)
12098 lt_cv_dlopen=dlopen
12099 lt_cv_dlopen_libs=
12100 ;;
12101
12102 darwin*)
12103 # if libdl is installed we need to link against it
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12105 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12106 if ${ac_cv_lib_dl_dlopen+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109 ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-ldl $LIBS"
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113
12114 /* Override any GCC internal prototype to avoid an error.
12115 Use char because int might match the return type of a GCC
12116 builtin and then its argument prototype would still apply. */
12117 #ifdef __cplusplus
12118 extern "C"
12119 #endif
12120 char dlopen ();
12121 int
12122 main ()
12123 {
12124 return dlopen ();
12125 ;
12126 return 0;
12127 }
12128 _ACEOF
12129 if ac_fn_c_try_link "$LINENO"; then :
12130 ac_cv_lib_dl_dlopen=yes
12131 else
12132 ac_cv_lib_dl_dlopen=no
12133 fi
12134 rm -f core conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136 LIBS=$ac_check_lib_save_LIBS
12137 fi
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12139 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12140 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12141 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12142 else
12143
12144 lt_cv_dlopen=dyld
12145 lt_cv_dlopen_libs=
12146 lt_cv_dlopen_self=yes
12147
12148 fi
12149
12150 ;;
12151
12152 tpf*)
12153 # Don't try to run any link tests for TPF. We know it's impossible
12154 # because TPF is a cross-compiler, and we know how we open DSOs.
12155 lt_cv_dlopen=dlopen
12156 lt_cv_dlopen_libs=
12157 lt_cv_dlopen_self=no
12158 ;;
12159
12160 *)
12161 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12162 if test "x$ac_cv_func_shl_load" = xyes; then :
12163 lt_cv_dlopen=shl_load
12164 else
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12166 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12167 if ${ac_cv_lib_dld_shl_load+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 ac_check_lib_save_LIBS=$LIBS
12171 LIBS="-ldld $LIBS"
12172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h. */
12174
12175 /* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178 #ifdef __cplusplus
12179 extern "C"
12180 #endif
12181 char shl_load ();
12182 int
12183 main ()
12184 {
12185 return shl_load ();
12186 ;
12187 return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191 ac_cv_lib_dld_shl_load=yes
12192 else
12193 ac_cv_lib_dld_shl_load=no
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
12197 LIBS=$ac_check_lib_save_LIBS
12198 fi
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12200 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12201 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12202 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12203 else
12204 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12205 if test "x$ac_cv_func_dlopen" = xyes; then :
12206 lt_cv_dlopen=dlopen
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12210 if ${ac_cv_lib_dl_dlopen+:} false; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-ldl $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h. */
12217
12218 /* Override any GCC internal prototype to avoid an error.
12219 Use char because int might match the return type of a GCC
12220 builtin and then its argument prototype would still apply. */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char dlopen ();
12225 int
12226 main ()
12227 {
12228 return dlopen ();
12229 ;
12230 return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234 ac_cv_lib_dl_dlopen=yes
12235 else
12236 ac_cv_lib_dl_dlopen=no
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12244 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12245 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12246 else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12248 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12249 if ${ac_cv_lib_svld_dlopen+:} false; then :
12250 $as_echo_n "(cached) " >&6
12251 else
12252 ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-lsvld $LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h. */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258 Use char because int might match the return type of a GCC
12259 builtin and then its argument prototype would still apply. */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char dlopen ();
12264 int
12265 main ()
12266 {
12267 return dlopen ();
12268 ;
12269 return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273 ac_cv_lib_svld_dlopen=yes
12274 else
12275 ac_cv_lib_svld_dlopen=no
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12282 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12283 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12284 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12287 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12288 if ${ac_cv_lib_dld_dld_link+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-ldld $LIBS"
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char dld_link ();
12303 int
12304 main ()
12305 {
12306 return dld_link ();
12307 ;
12308 return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_link "$LINENO"; then :
12312 ac_cv_lib_dld_dld_link=yes
12313 else
12314 ac_cv_lib_dld_dld_link=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext \
12317 conftest$ac_exeext conftest.$ac_ext
12318 LIBS=$ac_check_lib_save_LIBS
12319 fi
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12321 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12322 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12323 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12324 fi
12325
12326
12327 fi
12328
12329
12330 fi
12331
12332
12333 fi
12334
12335
12336 fi
12337
12338
12339 fi
12340
12341 ;;
12342 esac
12343
12344 if test no = "$lt_cv_dlopen"; then
12345 enable_dlopen=no
12346 else
12347 enable_dlopen=yes
12348 fi
12349
12350 case $lt_cv_dlopen in
12351 dlopen)
12352 save_CPPFLAGS=$CPPFLAGS
12353 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12354
12355 save_LDFLAGS=$LDFLAGS
12356 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12357
12358 save_LIBS=$LIBS
12359 LIBS="$lt_cv_dlopen_libs $LIBS"
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12362 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12363 if ${lt_cv_dlopen_self+:} false; then :
12364 $as_echo_n "(cached) " >&6
12365 else
12366 if test yes = "$cross_compiling"; then :
12367 lt_cv_dlopen_self=cross
12368 else
12369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12370 lt_status=$lt_dlunknown
12371 cat > conftest.$ac_ext <<_LT_EOF
12372 #line $LINENO "configure"
12373 #include "confdefs.h"
12374
12375 #if HAVE_DLFCN_H
12376 #include <dlfcn.h>
12377 #endif
12378
12379 #include <stdio.h>
12380
12381 #ifdef RTLD_GLOBAL
12382 # define LT_DLGLOBAL RTLD_GLOBAL
12383 #else
12384 # ifdef DL_GLOBAL
12385 # define LT_DLGLOBAL DL_GLOBAL
12386 # else
12387 # define LT_DLGLOBAL 0
12388 # endif
12389 #endif
12390
12391 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12392 find out it does not work in some platform. */
12393 #ifndef LT_DLLAZY_OR_NOW
12394 # ifdef RTLD_LAZY
12395 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12396 # else
12397 # ifdef DL_LAZY
12398 # define LT_DLLAZY_OR_NOW DL_LAZY
12399 # else
12400 # ifdef RTLD_NOW
12401 # define LT_DLLAZY_OR_NOW RTLD_NOW
12402 # else
12403 # ifdef DL_NOW
12404 # define LT_DLLAZY_OR_NOW DL_NOW
12405 # else
12406 # define LT_DLLAZY_OR_NOW 0
12407 # endif
12408 # endif
12409 # endif
12410 # endif
12411 #endif
12412
12413 /* When -fvisibility=hidden is used, assume the code has been annotated
12414 correspondingly for the symbols needed. */
12415 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12416 int fnord () __attribute__((visibility("default")));
12417 #endif
12418
12419 int fnord () { return 42; }
12420 int main ()
12421 {
12422 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12423 int status = $lt_dlunknown;
12424
12425 if (self)
12426 {
12427 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12428 else
12429 {
12430 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12431 else puts (dlerror ());
12432 }
12433 /* dlclose (self); */
12434 }
12435 else
12436 puts (dlerror ());
12437
12438 return status;
12439 }
12440 _LT_EOF
12441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12442 (eval $ac_link) 2>&5
12443 ac_status=$?
12444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12445 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12446 (./conftest; exit; ) >&5 2>/dev/null
12447 lt_status=$?
12448 case x$lt_status in
12449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12451 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12452 esac
12453 else :
12454 # compilation failed
12455 lt_cv_dlopen_self=no
12456 fi
12457 fi
12458 rm -fr conftest*
12459
12460
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12463 $as_echo "$lt_cv_dlopen_self" >&6; }
12464
12465 if test yes = "$lt_cv_dlopen_self"; then
12466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12468 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12469 if ${lt_cv_dlopen_self_static+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471 else
12472 if test yes = "$cross_compiling"; then :
12473 lt_cv_dlopen_self_static=cross
12474 else
12475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12476 lt_status=$lt_dlunknown
12477 cat > conftest.$ac_ext <<_LT_EOF
12478 #line $LINENO "configure"
12479 #include "confdefs.h"
12480
12481 #if HAVE_DLFCN_H
12482 #include <dlfcn.h>
12483 #endif
12484
12485 #include <stdio.h>
12486
12487 #ifdef RTLD_GLOBAL
12488 # define LT_DLGLOBAL RTLD_GLOBAL
12489 #else
12490 # ifdef DL_GLOBAL
12491 # define LT_DLGLOBAL DL_GLOBAL
12492 # else
12493 # define LT_DLGLOBAL 0
12494 # endif
12495 #endif
12496
12497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12498 find out it does not work in some platform. */
12499 #ifndef LT_DLLAZY_OR_NOW
12500 # ifdef RTLD_LAZY
12501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12502 # else
12503 # ifdef DL_LAZY
12504 # define LT_DLLAZY_OR_NOW DL_LAZY
12505 # else
12506 # ifdef RTLD_NOW
12507 # define LT_DLLAZY_OR_NOW RTLD_NOW
12508 # else
12509 # ifdef DL_NOW
12510 # define LT_DLLAZY_OR_NOW DL_NOW
12511 # else
12512 # define LT_DLLAZY_OR_NOW 0
12513 # endif
12514 # endif
12515 # endif
12516 # endif
12517 #endif
12518
12519 /* When -fvisibility=hidden is used, assume the code has been annotated
12520 correspondingly for the symbols needed. */
12521 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12522 int fnord () __attribute__((visibility("default")));
12523 #endif
12524
12525 int fnord () { return 42; }
12526 int main ()
12527 {
12528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12529 int status = $lt_dlunknown;
12530
12531 if (self)
12532 {
12533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12534 else
12535 {
12536 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12537 else puts (dlerror ());
12538 }
12539 /* dlclose (self); */
12540 }
12541 else
12542 puts (dlerror ());
12543
12544 return status;
12545 }
12546 _LT_EOF
12547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12548 (eval $ac_link) 2>&5
12549 ac_status=$?
12550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12551 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12552 (./conftest; exit; ) >&5 2>/dev/null
12553 lt_status=$?
12554 case x$lt_status in
12555 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12556 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12557 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12558 esac
12559 else :
12560 # compilation failed
12561 lt_cv_dlopen_self_static=no
12562 fi
12563 fi
12564 rm -fr conftest*
12565
12566
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12569 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12570 fi
12571
12572 CPPFLAGS=$save_CPPFLAGS
12573 LDFLAGS=$save_LDFLAGS
12574 LIBS=$save_LIBS
12575 ;;
12576 esac
12577
12578 case $lt_cv_dlopen_self in
12579 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12580 *) enable_dlopen_self=unknown ;;
12581 esac
12582
12583 case $lt_cv_dlopen_self_static in
12584 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12585 *) enable_dlopen_self_static=unknown ;;
12586 esac
12587 fi
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605 striplib=
12606 old_striplib=
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12608 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12609 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12610 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12611 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12613 $as_echo "yes" >&6; }
12614 else
12615 # FIXME - insert some real tests, host_os isn't really good enough
12616 case $host_os in
12617 darwin*)
12618 if test -n "$STRIP"; then
12619 striplib="$STRIP -x"
12620 old_striplib="$STRIP -S"
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623 else
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626 fi
12627 ;;
12628 *)
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630 $as_echo "no" >&6; }
12631 ;;
12632 esac
12633 fi
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646 # Report what library types will actually be built
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12648 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12650 $as_echo "$can_build_shared" >&6; }
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12653 $as_echo_n "checking whether to build shared libraries... " >&6; }
12654 test no = "$can_build_shared" && enable_shared=no
12655
12656 # On AIX, shared libraries and static libraries use the same namespace, and
12657 # are all built from PIC.
12658 case $host_os in
12659 aix3*)
12660 test yes = "$enable_shared" && enable_static=no
12661 if test -n "$RANLIB"; then
12662 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12663 postinstall_cmds='$RANLIB $lib'
12664 fi
12665 ;;
12666
12667 aix[4-9]*)
12668 if test ia64 != "$host_cpu"; then
12669 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12670 yes,aix,yes) ;; # shared object as lib.so file only
12671 yes,svr4,*) ;; # shared object as lib.so archive member only
12672 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12673 esac
12674 fi
12675 ;;
12676 esac
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12678 $as_echo "$enable_shared" >&6; }
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12681 $as_echo_n "checking whether to build static libraries... " >&6; }
12682 # Make sure either enable_shared or enable_static is yes.
12683 test yes = "$enable_shared" || enable_static=yes
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12685 $as_echo "$enable_static" >&6; }
12686
12687
12688
12689
12690 fi
12691 ac_ext=c
12692 ac_cpp='$CPP $CPPFLAGS'
12693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12696
12697 CC=$lt_save_CC
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713 ac_config_commands="$ac_config_commands libtool"
12714
12715
12716
12717
12718 # Only expand once:
12719
12720
12721
12722 VERSION_SCRIPT_FLAGS=
12723 # lt_cv_prog_gnu_ld is from libtool 2.+
12724 if test "$lt_cv_prog_gnu_ld" = yes; then
12725 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
12726 else
12727 case $host in
12728 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
12729 esac
12730 fi
12731
12732 if test -n "$VERSION_SCRIPT_FLAGS"; then
12733 USE_VERSION_SCRIPT_TRUE=
12734 USE_VERSION_SCRIPT_FALSE='#'
12735 else
12736 USE_VERSION_SCRIPT_TRUE='#'
12737 USE_VERSION_SCRIPT_FALSE=
12738 fi
12739
12740
12741
12742 _cppflags="${CPPFLAGS}"
12743 _libs="${LIBS}"
12744
12745
12746 # Check whether --with-c14n was given.
12747 if test "${with_c14n+set}" = set; then :
12748 withval=$with_c14n;
12749 fi
12750
12751
12752 # Check whether --with-catalog was given.
12753 if test "${with_catalog+set}" = set; then :
12754 withval=$with_catalog;
12755 fi
12756
12757
12758 # Check whether --with-debug was given.
12759 if test "${with_debug+set}" = set; then :
12760 withval=$with_debug;
12761 fi
12762
12763
12764 # Check whether --with-docbook was given.
12765 if test "${with_docbook+set}" = set; then :
12766 withval=$with_docbook;
12767 fi
12768
12769
12770 # Check whether --with-fexceptions was given.
12771 if test "${with_fexceptions+set}" = set; then :
12772 withval=$with_fexceptions;
12773 fi
12774
12775
12776 # Check whether --with-ftp was given.
12777 if test "${with_ftp+set}" = set; then :
12778 withval=$with_ftp;
12779 fi
12780
12781
12782 # Check whether --with-history was given.
12783 if test "${with_history+set}" = set; then :
12784 withval=$with_history;
12785 fi
12786
12787
12788 # Check whether --with-html was given.
12789 if test "${with_html+set}" = set; then :
12790 withval=$with_html;
12791 fi
12792
12793
12794 # Check whether --with-html-dir was given.
12795 if test "${with_html_dir+set}" = set; then :
12796 withval=$with_html_dir; HTML_DIR=$withval
12797 else
12798 HTML_DIR='$(docdir)/html'
12799 fi
12800
12801
12802
12803 # Check whether --with-html-subdir was given.
12804 if test "${with_html_subdir+set}" = set; then :
12805 withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
12806 fi
12807
12808
12809
12810 # Check whether --with-http was given.
12811 if test "${with_http+set}" = set; then :
12812 withval=$with_http;
12813 fi
12814
12815
12816 # Check whether --with-iconv was given.
12817 if test "${with_iconv+set}" = set; then :
12818 withval=$with_iconv;
12819 fi
12820
12821
12822 # Check whether --with-icu was given.
12823 if test "${with_icu+set}" = set; then :
12824 withval=$with_icu;
12825 fi
12826
12827
12828 # Check whether --with-iso8859x was given.
12829 if test "${with_iso8859x+set}" = set; then :
12830 withval=$with_iso8859x;
12831 fi
12832
12833
12834 # Check whether --with-legacy was given.
12835 if test "${with_legacy+set}" = set; then :
12836 withval=$with_legacy;
12837 fi
12838
12839
12840 # Check whether --with-mem_debug was given.
12841 if test "${with_mem_debug+set}" = set; then :
12842 withval=$with_mem_debug;
12843 fi
12844
12845
12846 # Check whether --with-minimum was given.
12847 if test "${with_minimum+set}" = set; then :
12848 withval=$with_minimum;
12849 fi
12850
12851
12852 # Check whether --with-output was given.
12853 if test "${with_output+set}" = set; then :
12854 withval=$with_output;
12855 fi
12856
12857
12858 # Check whether --with-pattern was given.
12859 if test "${with_pattern+set}" = set; then :
12860 withval=$with_pattern;
12861 fi
12862
12863
12864 # Check whether --with-push was given.
12865 if test "${with_push+set}" = set; then :
12866 withval=$with_push;
12867 fi
12868
12869
12870 # Check whether --with-python was given.
12871 if test "${with_python+set}" = set; then :
12872 withval=$with_python;
12873 fi
12874
12875
12876 # Check whether --with-python_install_dir was given.
12877 if test "${with_python_install_dir+set}" = set; then :
12878 withval=$with_python_install_dir;
12879 fi
12880
12881
12882 # Check whether --with-reader was given.
12883 if test "${with_reader+set}" = set; then :
12884 withval=$with_reader;
12885 fi
12886
12887
12888 # Check whether --with-readline was given.
12889 if test "${with_readline+set}" = set; then :
12890 withval=$with_readline;
12891 if test "$withval" != "no" -a "$withval" != "yes"; then
12892 RDL_DIR=$withval
12893 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12894 LDFLAGS="${LDFLAGS} -L$withval/lib"
12895 fi
12896
12897 fi
12898
12899
12900 # Check whether --with-regexps was given.
12901 if test "${with_regexps+set}" = set; then :
12902 withval=$with_regexps;
12903 fi
12904
12905
12906 # Check whether --with-run_debug was given.
12907 if test "${with_run_debug+set}" = set; then :
12908 withval=$with_run_debug;
12909 fi
12910
12911
12912 # Check whether --with-sax1 was given.
12913 if test "${with_sax1+set}" = set; then :
12914 withval=$with_sax1;
12915 fi
12916
12917
12918 # Check whether --with-schemas was given.
12919 if test "${with_schemas+set}" = set; then :
12920 withval=$with_schemas;
12921 fi
12922
12923
12924 # Check whether --with-schematron was given.
12925 if test "${with_schematron+set}" = set; then :
12926 withval=$with_schematron;
12927 fi
12928
12929
12930 # Check whether --with-threads was given.
12931 if test "${with_threads+set}" = set; then :
12932 withval=$with_threads;
12933 fi
12934
12935
12936 # Check whether --with-thread-alloc was given.
12937 if test "${with_thread_alloc+set}" = set; then :
12938 withval=$with_thread_alloc;
12939 fi
12940
12941
12942 # Check whether --with-tree was given.
12943 if test "${with_tree+set}" = set; then :
12944 withval=$with_tree;
12945 fi
12946
12947
12948 # Check whether --with-valid was given.
12949 if test "${with_valid+set}" = set; then :
12950 withval=$with_valid;
12951 fi
12952
12953
12954 # Check whether --with-writer was given.
12955 if test "${with_writer+set}" = set; then :
12956 withval=$with_writer;
12957 fi
12958
12959
12960 # Check whether --with-xinclude was given.
12961 if test "${with_xinclude+set}" = set; then :
12962 withval=$with_xinclude;
12963 fi
12964
12965
12966 # Check whether --with-xpath was given.
12967 if test "${with_xpath+set}" = set; then :
12968 withval=$with_xpath;
12969 fi
12970
12971
12972 # Check whether --with-xptr was given.
12973 if test "${with_xptr+set}" = set; then :
12974 withval=$with_xptr;
12975 fi
12976
12977
12978 # Check whether --with-modules was given.
12979 if test "${with_modules+set}" = set; then :
12980 withval=$with_modules;
12981 fi
12982
12983
12984 # Check whether --with-zlib was given.
12985 if test "${with_zlib+set}" = set; then :
12986 withval=$with_zlib;
12987 if test "$withval" != "no" -a "$withval" != "yes"; then
12988 Z_DIR=$withval
12989 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12990 LDFLAGS="${LDFLAGS} -L$withval/lib"
12991 fi
12992
12993 fi
12994
12995
12996 # Check whether --with-lzma was given.
12997 if test "${with_lzma+set}" = set; then :
12998 withval=$with_lzma;
12999 if test "$withval" != "no" -a "$withval" != "yes"; then
13000 LZMA_DIR=$withval
13001 CPPFLAGS="${CPPFLAGS} -I$withval/include"
13002 LDFLAGS="${LDFLAGS} -L$withval/lib"
13003 fi
13004
13005 fi
13006
13007
13008 # Check whether --with-coverage was given.
13009 if test "${with_coverage+set}" = set; then :
13010 withval=$with_coverage;
13011 fi
13012
13013
13014 # Check whether --enable-rebuild-docs was given.
13015 if test "${enable_rebuild_docs+set}" = set; then :
13016 enableval=$enable_rebuild_docs;
13017 fi
13018
13019 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
13020 as_fn_error $? "cannot rebuild docs when builddir != srcdir" "$LINENO" 5
13021 fi
13022 if test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"; then
13023 REBUILD_DOCS_TRUE=
13024 REBUILD_DOCS_FALSE='#'
13025 else
13026 REBUILD_DOCS_TRUE='#'
13027 REBUILD_DOCS_FALSE=
13028 fi
13029
13030
13031 if test "$with_schemas" = "yes"
13032 then
13033 with_pattern=yes
13034 with_regexps=yes
13035 fi
13036 if test "$with_schematron" = "yes"
13037 then
13038 with_pattern=yes
13039 with_tree=yes
13040 with_xpath=yes
13041 fi
13042 if test "$with_reader" = "yes"
13043 then
13044 with_push=yes
13045 fi
13046 if test "$with_xptr" = "yes"
13047 then
13048 with_xpath=yes
13049 fi
13050 if test "$with_minimum" = "yes"
13051 then
13052 echo "Configuring for a minimal library"
13053 if test "$with_c14n" = ""
13054 then
13055 with_c14n=no
13056 fi
13057 if test "$with_catalog" = ""
13058 then
13059 with_catalog=no
13060 fi
13061 echo So far so good!
13062 if test "$with_debug" = ""
13063 then
13064 with_debug=no
13065 fi
13066 if test "$with_docbook" = ""
13067 then
13068 with_docbook=no
13069 fi
13070 if test "$with_fexceptions" = ""
13071 then
13072 with_fexceptions=no
13073 fi
13074 if test "$with_ftp" = ""
13075 then
13076 with_ftp=no
13077 fi
13078 if test "$with_history" = ""
13079 then
13080 with_history=no
13081 fi
13082 if test "$with_html" = ""
13083 then
13084 with_html=no
13085 fi
13086 if test "$with_http" = ""
13087 then
13088 with_http=no
13089 fi
13090 if test "$with_iconv" = ""
13091 then
13092 with_iconv=no
13093 fi
13094 if test "$with_iso8859x" = ""
13095 then
13096 with_iso8859x=no
13097 fi
13098 if test "$with_legacy" = ""
13099 then
13100 with_legacy=no
13101 fi
13102 if test "$with_mem_debug" = ""
13103 then
13104 with_mem_debug=no
13105 fi
13106 if test "$with_output" = ""
13107 then
13108 with_output=no
13109 fi
13110 if test "$with_pattern" = ""
13111 then
13112 with_pattern=no
13113 fi
13114 if test "$with_push" = ""
13115 then
13116 with_push=no
13117 fi
13118 if test "$with_python" = ""
13119 then
13120 with_python=no
13121 fi
13122 if test "$with_reader" = ""
13123 then
13124 with_reader=no
13125 fi
13126 if test "$with_readline" = ""
13127 then
13128 with_readline=no
13129 fi
13130 if test "$with_regexps" = ""
13131 then
13132 with_regexps=no
13133 fi
13134 if test "$with_run_debug" = ""
13135 then
13136 with_run_debug=no
13137 fi
13138 if test "$with_sax1" = ""
13139 then
13140 with_sax1=no
13141 fi
13142 if test "$with_schemas" = ""
13143 then
13144 with_schemas=no
13145 fi
13146 if test "$with_schematron" = ""
13147 then
13148 with_schematron=no
13149 fi
13150 if test "$with_threads" = ""
13151 then
13152 with_threads=no
13153 fi
13154 if test "$with_thread_alloc" = ""
13155 then
13156 with_thread_alloc=no
13157 fi
13158 if test "$with_tree" = ""
13159 then
13160 with_tree=no
13161 fi
13162 if test "$with_valid" = ""
13163 then
13164 with_valid=no
13165 fi
13166 if test "$with_writer" = ""
13167 then
13168 with_writer=no
13169 fi
13170 if test "$with_xinclude" = ""
13171 then
13172 with_xinclude=no
13173 fi
13174 if test "$with_xpath" = ""
13175 then
13176 with_xpath=no
13177 fi
13178 if test "$with_xptr" = ""
13179 then
13180 with_xptr=no
13181 fi
13182 if test "$with_zlib" = ""
13183 then
13184 with_zlib=no
13185 fi
13186 if test "$with_modules" = ""
13187 then
13188 with_modules=no
13189 fi
13190 fi
13191
13192 echo Checking zlib
13193
13194
13195 WITH_ZLIB=0
13196 if test "$with_zlib" = "no"; then
13197 echo "Disabling zlib compression support"
13198 else
13199 # Don't run pkg-config if with_zlib contains a path.
13200 if test "x$Z_DIR" = "x"; then
13201 # Try pkg-config first so that static linking works.
13202
13203 pkg_failed=no
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Z" >&5
13205 $as_echo_n "checking for Z... " >&6; }
13206
13207 if test -n "$Z_CFLAGS"; then
13208 pkg_cv_Z_CFLAGS="$Z_CFLAGS"
13209 elif test -n "$PKG_CONFIG"; then
13210 if test -n "$PKG_CONFIG" && \
13211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
13212 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
13213 ac_status=$?
13214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13215 test $ac_status = 0; }; then
13216 pkg_cv_Z_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
13217 test "x$?" != "x0" && pkg_failed=yes
13218 else
13219 pkg_failed=yes
13220 fi
13221 else
13222 pkg_failed=untried
13223 fi
13224 if test -n "$Z_LIBS"; then
13225 pkg_cv_Z_LIBS="$Z_LIBS"
13226 elif test -n "$PKG_CONFIG"; then
13227 if test -n "$PKG_CONFIG" && \
13228 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
13229 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
13230 ac_status=$?
13231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13232 test $ac_status = 0; }; then
13233 pkg_cv_Z_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
13234 test "x$?" != "x0" && pkg_failed=yes
13235 else
13236 pkg_failed=yes
13237 fi
13238 else
13239 pkg_failed=untried
13240 fi
13241
13242
13243
13244 if test $pkg_failed = yes; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13247
13248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13249 _pkg_short_errors_supported=yes
13250 else
13251 _pkg_short_errors_supported=no
13252 fi
13253 if test $_pkg_short_errors_supported = yes; then
13254 Z_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
13255 else
13256 Z_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
13257 fi
13258 # Put the nasty error message in config.log where it belongs
13259 echo "$Z_PKG_ERRORS" >&5
13260
13261 :
13262 elif test $pkg_failed = untried; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13265 :
13266 else
13267 Z_CFLAGS=$pkg_cv_Z_CFLAGS
13268 Z_LIBS=$pkg_cv_Z_LIBS
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13270 $as_echo "yes" >&6; }
13271 WITH_ZLIB=1
13272 fi
13273 fi
13274
13275 if test "$WITH_ZLIB" = "0"; then
13276 for ac_header in zlib.h
13277 do :
13278 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13279 if test "x$ac_cv_header_zlib_h" = xyes; then :
13280 cat >>confdefs.h <<_ACEOF
13281 #define HAVE_ZLIB_H 1
13282 _ACEOF
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
13284 $as_echo_n "checking for gzread in -lz... " >&6; }
13285 if ${ac_cv_lib_z_gzread+:} false; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 ac_check_lib_save_LIBS=$LIBS
13289 LIBS="-lz $LIBS"
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292
13293 /* Override any GCC internal prototype to avoid an error.
13294 Use char because int might match the return type of a GCC
13295 builtin and then its argument prototype would still apply. */
13296 #ifdef __cplusplus
13297 extern "C"
13298 #endif
13299 char gzread ();
13300 int
13301 main ()
13302 {
13303 return gzread ();
13304 ;
13305 return 0;
13306 }
13307 _ACEOF
13308 if ac_fn_c_try_link "$LINENO"; then :
13309 ac_cv_lib_z_gzread=yes
13310 else
13311 ac_cv_lib_z_gzread=no
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LIBS=$ac_check_lib_save_LIBS
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
13318 $as_echo "$ac_cv_lib_z_gzread" >&6; }
13319 if test "x$ac_cv_lib_z_gzread" = xyes; then :
13320
13321 WITH_ZLIB=1
13322 if test "x${Z_DIR}" != "x"; then
13323 Z_CFLAGS="-I${Z_DIR}/include"
13324 Z_LIBS="-L${Z_DIR}/lib -lz"
13325 case ${host} in
13326 *-*-solaris*)
13327 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
13328 ;;
13329 esac
13330 else
13331 Z_LIBS="-lz"
13332 fi
13333 fi
13334
13335
13336 fi
13337
13338 done
13339
13340 fi
13341 fi
13342
13343
13344
13345
13346
13347 echo Checking lzma
13348
13349
13350 WITH_LZMA=0
13351 if test "$with_lzma" = "no"; then
13352 echo "Disabling lzma compression support"
13353 else
13354 # Don't run pkg-config if with_lzma contains a path.
13355 if test "x$LZMA_DIR" = "x"; then
13356 # Try pkg-config first so that static linking works.
13357
13358 pkg_failed=no
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
13360 $as_echo_n "checking for LZMA... " >&6; }
13361
13362 if test -n "$LZMA_CFLAGS"; then
13363 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
13364 elif test -n "$PKG_CONFIG"; then
13365 if test -n "$PKG_CONFIG" && \
13366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
13367 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
13368 ac_status=$?
13369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13370 test $ac_status = 0; }; then
13371 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
13372 test "x$?" != "x0" && pkg_failed=yes
13373 else
13374 pkg_failed=yes
13375 fi
13376 else
13377 pkg_failed=untried
13378 fi
13379 if test -n "$LZMA_LIBS"; then
13380 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
13381 elif test -n "$PKG_CONFIG"; then
13382 if test -n "$PKG_CONFIG" && \
13383 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
13384 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
13385 ac_status=$?
13386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13387 test $ac_status = 0; }; then
13388 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
13389 test "x$?" != "x0" && pkg_failed=yes
13390 else
13391 pkg_failed=yes
13392 fi
13393 else
13394 pkg_failed=untried
13395 fi
13396
13397
13398
13399 if test $pkg_failed = yes; then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401 $as_echo "no" >&6; }
13402
13403 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13404 _pkg_short_errors_supported=yes
13405 else
13406 _pkg_short_errors_supported=no
13407 fi
13408 if test $_pkg_short_errors_supported = yes; then
13409 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
13410 else
13411 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
13412 fi
13413 # Put the nasty error message in config.log where it belongs
13414 echo "$LZMA_PKG_ERRORS" >&5
13415
13416 :
13417 elif test $pkg_failed = untried; then
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419 $as_echo "no" >&6; }
13420 :
13421 else
13422 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
13423 LZMA_LIBS=$pkg_cv_LZMA_LIBS
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13425 $as_echo "yes" >&6; }
13426 WITH_LZMA=1
13427 fi
13428 fi
13429
13430 # If pkg-config failed, fall back to AC_CHECK_LIB. This
13431 # will not pick up the necessary LIBS flags for liblzma's
13432 # private dependencies, though, so static linking may fail.
13433 if test "$WITH_LZMA" = "0"; then
13434 for ac_header in lzma.h
13435 do :
13436 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13437 if test "x$ac_cv_header_lzma_h" = xyes; then :
13438 cat >>confdefs.h <<_ACEOF
13439 #define HAVE_LZMA_H 1
13440 _ACEOF
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
13442 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
13443 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
13444 $as_echo_n "(cached) " >&6
13445 else
13446 ac_check_lib_save_LIBS=$LIBS
13447 LIBS="-llzma $LIBS"
13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450
13451 /* Override any GCC internal prototype to avoid an error.
13452 Use char because int might match the return type of a GCC
13453 builtin and then its argument prototype would still apply. */
13454 #ifdef __cplusplus
13455 extern "C"
13456 #endif
13457 char lzma_code ();
13458 int
13459 main ()
13460 {
13461 return lzma_code ();
13462 ;
13463 return 0;
13464 }
13465 _ACEOF
13466 if ac_fn_c_try_link "$LINENO"; then :
13467 ac_cv_lib_lzma_lzma_code=yes
13468 else
13469 ac_cv_lib_lzma_lzma_code=no
13470 fi
13471 rm -f core conftest.err conftest.$ac_objext \
13472 conftest$ac_exeext conftest.$ac_ext
13473 LIBS=$ac_check_lib_save_LIBS
13474 fi
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
13476 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
13477 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
13478
13479 WITH_LZMA=1
13480 if test "x${LZMA_DIR}" != "x"; then
13481 LZMA_CFLAGS="-I${LZMA_DIR}/include"
13482 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
13483 else
13484 LZMA_LIBS="-llzma"
13485 fi
13486 fi
13487
13488
13489 fi
13490
13491 done
13492
13493 fi
13494 fi
13495
13496
13497
13498
13499
13500 CPPFLAGS=${_cppflags}
13501 LIBS=${_libs}
13502
13503 echo Checking headers
13504
13505 ac_header_dirent=no
13506 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13507 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13509 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13510 if eval \${$as_ac_Header+:} false; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 #include <sys/types.h>
13516 #include <$ac_hdr>
13517
13518 int
13519 main ()
13520 {
13521 if ((DIR *) 0)
13522 return 0;
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 if ac_fn_c_try_compile "$LINENO"; then :
13528 eval "$as_ac_Header=yes"
13529 else
13530 eval "$as_ac_Header=no"
13531 fi
13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13533 fi
13534 eval ac_res=\$$as_ac_Header
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13536 $as_echo "$ac_res" >&6; }
13537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13538 cat >>confdefs.h <<_ACEOF
13539 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13540 _ACEOF
13541
13542 ac_header_dirent=$ac_hdr; break
13543 fi
13544
13545 done
13546 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13547 if test $ac_header_dirent = dirent.h; then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13549 $as_echo_n "checking for library containing opendir... " >&6; }
13550 if ${ac_cv_search_opendir+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 ac_func_search_save_LIBS=$LIBS
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556
13557 /* Override any GCC internal prototype to avoid an error.
13558 Use char because int might match the return type of a GCC
13559 builtin and then its argument prototype would still apply. */
13560 #ifdef __cplusplus
13561 extern "C"
13562 #endif
13563 char opendir ();
13564 int
13565 main ()
13566 {
13567 return opendir ();
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 for ac_lib in '' dir; do
13573 if test -z "$ac_lib"; then
13574 ac_res="none required"
13575 else
13576 ac_res=-l$ac_lib
13577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13578 fi
13579 if ac_fn_c_try_link "$LINENO"; then :
13580 ac_cv_search_opendir=$ac_res
13581 fi
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext
13584 if ${ac_cv_search_opendir+:} false; then :
13585 break
13586 fi
13587 done
13588 if ${ac_cv_search_opendir+:} false; then :
13589
13590 else
13591 ac_cv_search_opendir=no
13592 fi
13593 rm conftest.$ac_ext
13594 LIBS=$ac_func_search_save_LIBS
13595 fi
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13597 $as_echo "$ac_cv_search_opendir" >&6; }
13598 ac_res=$ac_cv_search_opendir
13599 if test "$ac_res" != no; then :
13600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13601
13602 fi
13603
13604 else
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13606 $as_echo_n "checking for library containing opendir... " >&6; }
13607 if ${ac_cv_search_opendir+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 ac_func_search_save_LIBS=$LIBS
13611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13612 /* end confdefs.h. */
13613
13614 /* Override any GCC internal prototype to avoid an error.
13615 Use char because int might match the return type of a GCC
13616 builtin and then its argument prototype would still apply. */
13617 #ifdef __cplusplus
13618 extern "C"
13619 #endif
13620 char opendir ();
13621 int
13622 main ()
13623 {
13624 return opendir ();
13625 ;
13626 return 0;
13627 }
13628 _ACEOF
13629 for ac_lib in '' x; do
13630 if test -z "$ac_lib"; then
13631 ac_res="none required"
13632 else
13633 ac_res=-l$ac_lib
13634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13635 fi
13636 if ac_fn_c_try_link "$LINENO"; then :
13637 ac_cv_search_opendir=$ac_res
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext
13641 if ${ac_cv_search_opendir+:} false; then :
13642 break
13643 fi
13644 done
13645 if ${ac_cv_search_opendir+:} false; then :
13646
13647 else
13648 ac_cv_search_opendir=no
13649 fi
13650 rm conftest.$ac_ext
13651 LIBS=$ac_func_search_save_LIBS
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13654 $as_echo "$ac_cv_search_opendir" >&6; }
13655 ac_res=$ac_cv_search_opendir
13656 if test "$ac_res" != no; then :
13657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13658
13659 fi
13660
13661 fi
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13664 $as_echo_n "checking for ANSI C header files... " >&6; }
13665 if ${ac_cv_header_stdc+:} false; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 #include <stdlib.h>
13671 #include <stdarg.h>
13672 #include <string.h>
13673 #include <float.h>
13674
13675 int
13676 main ()
13677 {
13678
13679 ;
13680 return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 ac_cv_header_stdc=yes
13685 else
13686 ac_cv_header_stdc=no
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689
13690 if test $ac_cv_header_stdc = yes; then
13691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 #include <string.h>
13695
13696 _ACEOF
13697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13698 $EGREP "memchr" >/dev/null 2>&1; then :
13699
13700 else
13701 ac_cv_header_stdc=no
13702 fi
13703 rm -f conftest*
13704
13705 fi
13706
13707 if test $ac_cv_header_stdc = yes; then
13708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 #include <stdlib.h>
13712
13713 _ACEOF
13714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13715 $EGREP "free" >/dev/null 2>&1; then :
13716
13717 else
13718 ac_cv_header_stdc=no
13719 fi
13720 rm -f conftest*
13721
13722 fi
13723
13724 if test $ac_cv_header_stdc = yes; then
13725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13726 if test "$cross_compiling" = yes; then :
13727 :
13728 else
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 #include <ctype.h>
13732 #include <stdlib.h>
13733 #if ((' ' & 0x0FF) == 0x020)
13734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13736 #else
13737 # define ISLOWER(c) \
13738 (('a' <= (c) && (c) <= 'i') \
13739 || ('j' <= (c) && (c) <= 'r') \
13740 || ('s' <= (c) && (c) <= 'z'))
13741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13742 #endif
13743
13744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13745 int
13746 main ()
13747 {
13748 int i;
13749 for (i = 0; i < 256; i++)
13750 if (XOR (islower (i), ISLOWER (i))
13751 || toupper (i) != TOUPPER (i))
13752 return 2;
13753 return 0;
13754 }
13755 _ACEOF
13756 if ac_fn_c_try_run "$LINENO"; then :
13757
13758 else
13759 ac_cv_header_stdc=no
13760 fi
13761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13762 conftest.$ac_objext conftest.beam conftest.$ac_ext
13763 fi
13764
13765 fi
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13768 $as_echo "$ac_cv_header_stdc" >&6; }
13769 if test $ac_cv_header_stdc = yes; then
13770
13771 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13772
13773 fi
13774
13775 for ac_header in fcntl.h
13776 do :
13777 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13778 if test "x$ac_cv_header_fcntl_h" = xyes; then :
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_FCNTL_H 1
13781 _ACEOF
13782
13783 fi
13784
13785 done
13786
13787 for ac_header in unistd.h
13788 do :
13789 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13790 if test "x$ac_cv_header_unistd_h" = xyes; then :
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_UNISTD_H 1
13793 _ACEOF
13794
13795 fi
13796
13797 done
13798
13799 for ac_header in ctype.h
13800 do :
13801 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
13802 if test "x$ac_cv_header_ctype_h" = xyes; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_CTYPE_H 1
13805 _ACEOF
13806
13807 fi
13808
13809 done
13810
13811 for ac_header in errno.h
13812 do :
13813 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13814 if test "x$ac_cv_header_errno_h" = xyes; then :
13815 cat >>confdefs.h <<_ACEOF
13816 #define HAVE_ERRNO_H 1
13817 _ACEOF
13818
13819 fi
13820
13821 done
13822
13823 for ac_header in malloc.h
13824 do :
13825 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
13826 if test "x$ac_cv_header_malloc_h" = xyes; then :
13827 cat >>confdefs.h <<_ACEOF
13828 #define HAVE_MALLOC_H 1
13829 _ACEOF
13830
13831 fi
13832
13833 done
13834
13835 for ac_header in stdarg.h
13836 do :
13837 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13838 if test "x$ac_cv_header_stdarg_h" = xyes; then :
13839 cat >>confdefs.h <<_ACEOF
13840 #define HAVE_STDARG_H 1
13841 _ACEOF
13842
13843 fi
13844
13845 done
13846
13847 for ac_header in sys/stat.h
13848 do :
13849 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_SYS_STAT_H 1
13853 _ACEOF
13854
13855 fi
13856
13857 done
13858
13859 for ac_header in sys/types.h
13860 do :
13861 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13862 if test "x$ac_cv_header_sys_types_h" = xyes; then :
13863 cat >>confdefs.h <<_ACEOF
13864 #define HAVE_SYS_TYPES_H 1
13865 _ACEOF
13866
13867 fi
13868
13869 done
13870
13871 for ac_header in stdint.h
13872 do :
13873 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13874 if test "x$ac_cv_header_stdint_h" = xyes; then :
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_STDINT_H 1
13877 _ACEOF
13878
13879 fi
13880
13881 done
13882
13883 for ac_header in inttypes.h
13884 do :
13885 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13886 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13887 cat >>confdefs.h <<_ACEOF
13888 #define HAVE_INTTYPES_H 1
13889 _ACEOF
13890
13891 fi
13892
13893 done
13894
13895 for ac_header in time.h
13896 do :
13897 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
13898 if test "x$ac_cv_header_time_h" = xyes; then :
13899 cat >>confdefs.h <<_ACEOF
13900 #define HAVE_TIME_H 1
13901 _ACEOF
13902
13903 fi
13904
13905 done
13906
13907 for ac_header in math.h
13908 do :
13909 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
13910 if test "x$ac_cv_header_math_h" = xyes; then :
13911 cat >>confdefs.h <<_ACEOF
13912 #define HAVE_MATH_H 1
13913 _ACEOF
13914
13915 fi
13916
13917 done
13918
13919 for ac_header in limits.h
13920 do :
13921 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
13922 if test "x$ac_cv_header_limits_h" = xyes; then :
13923 cat >>confdefs.h <<_ACEOF
13924 #define HAVE_LIMITS_H 1
13925 _ACEOF
13926
13927 fi
13928
13929 done
13930
13931 for ac_header in float.h
13932 do :
13933 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
13934 if test "x$ac_cv_header_float_h" = xyes; then :
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_FLOAT_H 1
13937 _ACEOF
13938
13939 fi
13940
13941 done
13942
13943 for ac_header in stdlib.h
13944 do :
13945 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13946 if test "x$ac_cv_header_stdlib_h" = xyes; then :
13947 cat >>confdefs.h <<_ACEOF
13948 #define HAVE_STDLIB_H 1
13949 _ACEOF
13950
13951 fi
13952
13953 done
13954
13955 for ac_header in sys/socket.h
13956 do :
13957 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
13958 # include <sys/types.h>
13959 # endif
13960
13961 "
13962 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13963 cat >>confdefs.h <<_ACEOF
13964 #define HAVE_SYS_SOCKET_H 1
13965 _ACEOF
13966
13967 fi
13968
13969 done
13970
13971 for ac_header in netinet/in.h
13972 do :
13973 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
13974 # include <sys/types.h>
13975 # endif
13976
13977 "
13978 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_NETINET_IN_H 1
13981 _ACEOF
13982
13983 fi
13984
13985 done
13986
13987 for ac_header in arpa/inet.h
13988 do :
13989 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
13990 # include <sys/types.h>
13991 # endif
13992 #if HAVE_ARPA_INET_H
13993 # include <arpa/inet.h>
13994 # endif
13995
13996 "
13997 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
13998 cat >>confdefs.h <<_ACEOF
13999 #define HAVE_ARPA_INET_H 1
14000 _ACEOF
14001
14002 fi
14003
14004 done
14005
14006 for ac_header in netdb.h
14007 do :
14008 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
14009 if test "x$ac_cv_header_netdb_h" = xyes; then :
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_NETDB_H 1
14012 _ACEOF
14013
14014 fi
14015
14016 done
14017
14018 for ac_header in sys/time.h
14019 do :
14020 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14021 if test "x$ac_cv_header_sys_time_h" = xyes; then :
14022 cat >>confdefs.h <<_ACEOF
14023 #define HAVE_SYS_TIME_H 1
14024 _ACEOF
14025
14026 fi
14027
14028 done
14029
14030 for ac_header in sys/select.h
14031 do :
14032 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14033 if test "x$ac_cv_header_sys_select_h" = xyes; then :
14034 cat >>confdefs.h <<_ACEOF
14035 #define HAVE_SYS_SELECT_H 1
14036 _ACEOF
14037
14038 fi
14039
14040 done
14041
14042 for ac_header in poll.h
14043 do :
14044 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14045 if test "x$ac_cv_header_poll_h" = xyes; then :
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_POLL_H 1
14048 _ACEOF
14049
14050 fi
14051
14052 done
14053
14054 for ac_header in sys/mman.h
14055 do :
14056 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14057 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_SYS_MMAN_H 1
14060 _ACEOF
14061
14062 fi
14063
14064 done
14065
14066 for ac_header in sys/timeb.h
14067 do :
14068 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14069 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_SYS_TIMEB_H 1
14072 _ACEOF
14073
14074 fi
14075
14076 done
14077
14078 for ac_header in signal.h
14079 do :
14080 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14081 if test "x$ac_cv_header_signal_h" = xyes; then :
14082 cat >>confdefs.h <<_ACEOF
14083 #define HAVE_SIGNAL_H 1
14084 _ACEOF
14085
14086 fi
14087
14088 done
14089
14090 for ac_header in arpa/nameser.h
14091 do :
14092 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
14093 # include <sys/types.h>
14094 # endif
14095
14096 "
14097 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_ARPA_NAMESER_H 1
14100 _ACEOF
14101
14102 fi
14103
14104 done
14105
14106 for ac_header in resolv.h
14107 do :
14108 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
14109 # include <sys/types.h>
14110 # endif
14111 #if HAVE_NETINET_IN_H
14112 # include <netinet/in.h>
14113 # endif
14114 #if HAVE_ARPA_NAMESER_H
14115 # include <arpa/nameser.h>
14116 # endif
14117
14118 "
14119 if test "x$ac_cv_header_resolv_h" = xyes; then :
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_RESOLV_H 1
14122 _ACEOF
14123
14124 fi
14125
14126 done
14127
14128 for ac_header in dl.h
14129 do :
14130 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14131 if test "x$ac_cv_header_dl_h" = xyes; then :
14132 cat >>confdefs.h <<_ACEOF
14133 #define HAVE_DL_H 1
14134 _ACEOF
14135
14136 fi
14137
14138 done
14139
14140 for ac_header in dlfcn.h
14141 do :
14142 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14143 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_DLFCN_H 1
14146 _ACEOF
14147
14148 fi
14149
14150 done
14151
14152
14153
14154 echo Checking types
14155
14156 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14157 case $ac_cv_c_uint32_t in #(
14158 no|yes) ;; #(
14159 *)
14160
14161 $as_echo "#define _UINT32_T 1" >>confdefs.h
14162
14163
14164 cat >>confdefs.h <<_ACEOF
14165 #define uint32_t $ac_cv_c_uint32_t
14166 _ACEOF
14167 ;;
14168 esac
14169
14170
14171
14172 echo Checking libraries
14173
14174 for ac_func in strftime
14175 do :
14176 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14177 if test "x$ac_cv_func_strftime" = xyes; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_STRFTIME 1
14180 _ACEOF
14181
14182 else
14183 # strftime is in -lintl on SCO UNIX.
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14185 $as_echo_n "checking for strftime in -lintl... " >&6; }
14186 if ${ac_cv_lib_intl_strftime+:} false; then :
14187 $as_echo_n "(cached) " >&6
14188 else
14189 ac_check_lib_save_LIBS=$LIBS
14190 LIBS="-lintl $LIBS"
14191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14192 /* end confdefs.h. */
14193
14194 /* Override any GCC internal prototype to avoid an error.
14195 Use char because int might match the return type of a GCC
14196 builtin and then its argument prototype would still apply. */
14197 #ifdef __cplusplus
14198 extern "C"
14199 #endif
14200 char strftime ();
14201 int
14202 main ()
14203 {
14204 return strftime ();
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 ac_cv_lib_intl_strftime=yes
14211 else
14212 ac_cv_lib_intl_strftime=no
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 LIBS=$ac_check_lib_save_LIBS
14217 fi
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14219 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
14220 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
14221 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
14222
14223 LIBS="-lintl $LIBS"
14224 fi
14225
14226 fi
14227 done
14228
14229 for ac_func in strftime localtime gettimeofday ftime
14230 do :
14231 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14234 cat >>confdefs.h <<_ACEOF
14235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14236 _ACEOF
14237
14238 fi
14239 done
14240
14241 for ac_func in stat signal
14242 do :
14243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14246 cat >>confdefs.h <<_ACEOF
14247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14248 _ACEOF
14249
14250 fi
14251 done
14252
14253 for ac_func in rand rand_r srand time
14254 do :
14255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14260 _ACEOF
14261
14262 fi
14263 done
14264
14265 for ac_func in isascii mmap munmap putenv
14266 do :
14267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14270 cat >>confdefs.h <<_ACEOF
14271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14272 _ACEOF
14273
14274 fi
14275 done
14276
14277
14278
14279
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14281 $as_echo_n "checking for va_copy... " >&6; }
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #include <stdarg.h>
14285 va_list ap1,ap2;
14286 int
14287 main ()
14288 {
14289 va_copy(ap1,ap2);
14290 ;
14291 return 0;
14292 }
14293 _ACEOF
14294 if ac_fn_c_try_link "$LINENO"; then :
14295 have_va_copy=yes
14296 else
14297 have_va_copy=no
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
14302 $as_echo "$have_va_copy" >&6; }
14303 if test x"$have_va_copy" = x"yes"; then
14304
14305 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14306
14307 else
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
14309 $as_echo_n "checking for __va_copy... " >&6; }
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h. */
14312 #include <stdarg.h>
14313 va_list ap1,ap2;
14314 int
14315 main ()
14316 {
14317 __va_copy(ap1,ap2);
14318 ;
14319 return 0;
14320 }
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 have___va_copy=yes
14324 else
14325 have___va_copy=no
14326 fi
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
14330 $as_echo "$have___va_copy" >&6; }
14331 if test x"$have___va_copy" = x"yes"; then
14332
14333 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14334
14335 fi
14336 fi
14337
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array type" >&5
14339 $as_echo_n "checking whether va_list is an array type... " >&6; }
14340 cat > conftest.$ac_ext <<EOF
14341 #line 14341 "configure"
14342 #include "confdefs.h"
14343
14344 #include <stdarg.h>
14345 void a(va_list * ap) {}
14346 int main(void) {
14347
14348 va_list ap1, ap2; a(&ap1); ap2 = (va_list) ap1
14349 ; return 0; }
14350 EOF
14351 if { (eval echo configure:14351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14352 rm -rf conftest*
14353
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14356 else
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14359 rm -rf conftest*
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362 $as_echo "yes" >&6; }
14363
14364 $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
14365
14366 fi
14367 rm -f conftest*
14368
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
14370 $as_echo_n "checking for library containing gethostent... " >&6; }
14371 if ${ac_cv_search_gethostent+:} false; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 ac_func_search_save_LIBS=$LIBS
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379 Use char because int might match the return type of a GCC
14380 builtin and then its argument prototype would still apply. */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 char gethostent ();
14385 int
14386 main ()
14387 {
14388 return gethostent ();
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 for ac_lib in '' nsl; do
14394 if test -z "$ac_lib"; then
14395 ac_res="none required"
14396 else
14397 ac_res=-l$ac_lib
14398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14399 fi
14400 if ac_fn_c_try_link "$LINENO"; then :
14401 ac_cv_search_gethostent=$ac_res
14402 fi
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext
14405 if ${ac_cv_search_gethostent+:} false; then :
14406 break
14407 fi
14408 done
14409 if ${ac_cv_search_gethostent+:} false; then :
14410
14411 else
14412 ac_cv_search_gethostent=no
14413 fi
14414 rm conftest.$ac_ext
14415 LIBS=$ac_func_search_save_LIBS
14416 fi
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
14418 $as_echo "$ac_cv_search_gethostent" >&6; }
14419 ac_res=$ac_cv_search_gethostent
14420 if test "$ac_res" != no; then :
14421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14422
14423 fi
14424
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14426 $as_echo_n "checking for library containing setsockopt... " >&6; }
14427 if ${ac_cv_search_setsockopt+:} false; then :
14428 $as_echo_n "(cached) " >&6
14429 else
14430 ac_func_search_save_LIBS=$LIBS
14431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432 /* end confdefs.h. */
14433
14434 /* Override any GCC internal prototype to avoid an error.
14435 Use char because int might match the return type of a GCC
14436 builtin and then its argument prototype would still apply. */
14437 #ifdef __cplusplus
14438 extern "C"
14439 #endif
14440 char setsockopt ();
14441 int
14442 main ()
14443 {
14444 return setsockopt ();
14445 ;
14446 return 0;
14447 }
14448 _ACEOF
14449 for ac_lib in '' socket net network; do
14450 if test -z "$ac_lib"; then
14451 ac_res="none required"
14452 else
14453 ac_res=-l$ac_lib
14454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14455 fi
14456 if ac_fn_c_try_link "$LINENO"; then :
14457 ac_cv_search_setsockopt=$ac_res
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext \
14460 conftest$ac_exeext
14461 if ${ac_cv_search_setsockopt+:} false; then :
14462 break
14463 fi
14464 done
14465 if ${ac_cv_search_setsockopt+:} false; then :
14466
14467 else
14468 ac_cv_search_setsockopt=no
14469 fi
14470 rm conftest.$ac_ext
14471 LIBS=$ac_func_search_save_LIBS
14472 fi
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14474 $as_echo "$ac_cv_search_setsockopt" >&6; }
14475 ac_res=$ac_cv_search_setsockopt
14476 if test "$ac_res" != no; then :
14477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14478
14479 fi
14480
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14482 $as_echo_n "checking for library containing connect... " >&6; }
14483 if ${ac_cv_search_connect+:} false; then :
14484 $as_echo_n "(cached) " >&6
14485 else
14486 ac_func_search_save_LIBS=$LIBS
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14489
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char connect ();
14497 int
14498 main ()
14499 {
14500 return connect ();
14501 ;
14502 return 0;
14503 }
14504 _ACEOF
14505 for ac_lib in '' inet; do
14506 if test -z "$ac_lib"; then
14507 ac_res="none required"
14508 else
14509 ac_res=-l$ac_lib
14510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14511 fi
14512 if ac_fn_c_try_link "$LINENO"; then :
14513 ac_cv_search_connect=$ac_res
14514 fi
14515 rm -f core conftest.err conftest.$ac_objext \
14516 conftest$ac_exeext
14517 if ${ac_cv_search_connect+:} false; then :
14518 break
14519 fi
14520 done
14521 if ${ac_cv_search_connect+:} false; then :
14522
14523 else
14524 ac_cv_search_connect=no
14525 fi
14526 rm conftest.$ac_ext
14527 LIBS=$ac_func_search_save_LIBS
14528 fi
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14530 $as_echo "$ac_cv_search_connect" >&6; }
14531 ac_res=$ac_cv_search_connect
14532 if test "$ac_res" != no; then :
14533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14534
14535 fi
14536
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
14539 $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
14540 cat > conftest.$ac_ext <<EOF
14541 #line 14541 "configure"
14542 #include "confdefs.h"
14543
14544 #include <stddef.h>
14545 #include <sys/types.h>
14546 #include <sys/socket.h>
14547 int main(void) {
14548
14549 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
14550 ; return 0; }
14551 EOF
14552 if { (eval echo configure:14552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14553 rm -rf conftest*
14554
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
14556 $as_echo "socklen_t *" >&6; }
14557 XML_SOCKLEN_T=socklen_t
14558 else
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 rm -rf conftest*
14562
14563 cat > conftest.$ac_ext <<EOF
14564 #line 14564 "configure"
14565 #include "confdefs.h"
14566
14567 #include <stddef.h>
14568 #include <sys/types.h>
14569 #include <sys/socket.h>
14570 int main(void) {
14571
14572 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
14573 ; return 0; }
14574 EOF
14575 if { (eval echo configure:14575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14576 rm -rf conftest*
14577
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
14579 $as_echo "size_t *" >&6; }
14580 XML_SOCKLEN_T=size_t
14581 else
14582 echo "configure: failed program was:" >&5
14583 cat conftest.$ac_ext >&5
14584 rm -rf conftest*
14585
14586 cat > conftest.$ac_ext <<EOF
14587 #line 14587 "configure"
14588 #include "confdefs.h"
14589
14590 #include <stddef.h>
14591 #include <sys/types.h>
14592 #include <sys/socket.h>
14593 int main(void) {
14594
14595 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
14596 ; return 0; }
14597 EOF
14598 if { (eval echo configure:14598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14599 rm -rf conftest*
14600
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
14602 $as_echo "int *" >&6; }
14603 XML_SOCKLEN_T=int
14604 else
14605 echo "configure: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14607 rm -rf conftest*
14608
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
14610 $as_echo "$as_me: WARNING: could not determine" >&2;}
14611 XML_SOCKLEN_T="int"
14612 fi
14613 rm -f conftest*
14614 fi
14615 rm -f conftest*
14616 fi
14617 rm -f conftest*
14618
14619 cat >>confdefs.h <<_ACEOF
14620 #define XML_SOCKLEN_T $XML_SOCKLEN_T
14621 _ACEOF
14622
14623
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const gethostbyname() argument" >&5
14625 $as_echo_n "checking for const gethostbyname() argument... " >&6; }
14626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627 /* end confdefs.h. */
14628 #include <netdb.h>
14629 int
14630 main ()
14631 {
14632 (void)gethostbyname((const char *)"");
14633 ;
14634 return 0;
14635 }
14636 _ACEOF
14637 if ac_fn_c_try_link "$LINENO"; then :
14638 have_gethostbyname_const_arg=yes
14639 else
14640 have_gethostbyname_const_arg=no
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext \
14643 conftest$ac_exeext conftest.$ac_ext
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gethostbyname_const_arg" >&5
14645 $as_echo "$have_gethostbyname_const_arg" >&6; }
14646 if test x"$have_gethostbyname_const_arg" = x"yes"; then
14647
14648 $as_echo "#define GETHOSTBYNAME_ARG_CAST /**/" >>confdefs.h
14649
14650 else
14651
14652 $as_echo "#define GETHOSTBYNAME_ARG_CAST (char *)" >>confdefs.h
14653
14654 fi
14655
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const send() second argument" >&5
14657 $as_echo_n "checking for const send() second argument... " >&6; }
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 #include <sys/types.h>
14661 #include <sys/socket.h>
14662 int
14663 main ()
14664 {
14665 (void)send(1,(const char *)"",1,1);
14666 ;
14667 return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_link "$LINENO"; then :
14671 have_send_const_arg2=yes
14672 else
14673 have_send_const_arg2=no
14674 fi
14675 rm -f core conftest.err conftest.$ac_objext \
14676 conftest$ac_exeext conftest.$ac_ext
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_send_const_arg2" >&5
14678 $as_echo "$have_send_const_arg2" >&6; }
14679 if test x"$have_send_const_arg2" = x"yes"; then
14680
14681 $as_echo "#define SEND_ARG2_CAST /**/" >>confdefs.h
14682
14683 else
14684
14685 $as_echo "#define SEND_ARG2_CAST (char *)" >>confdefs.h
14686
14687 fi
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((destructor)) is accepted" >&5
14690 $as_echo_n "checking whether __attribute__((destructor)) is accepted... " >&6; }
14691 cat > conftest.$ac_ext <<EOF
14692 #line 14692 "configure"
14693 #include "confdefs.h"
14694
14695 void __attribute__((destructor))
14696 f(void) {}
14697 int main(void) {
14698
14699 ; return 0; }
14700 EOF
14701 if { (eval echo configure:14701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14702 rm -rf conftest*
14703
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14705 $as_echo "yes" >&6; }
14706
14707 $as_echo "#define HAVE_ATTRIBUTE_DESTRUCTOR 1" >>confdefs.h
14708
14709
14710 $as_echo "#define ATTRIBUTE_DESTRUCTOR __attribute__((destructor))" >>confdefs.h
14711
14712 else
14713 echo "configure: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14715 rm -rf conftest*
14716
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718 $as_echo "no" >&6; }
14719 fi
14720 rm -f conftest*
14721
14722
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
14725 $as_echo_n "checking whether to enable IPv6... " >&6; }
14726 # Check whether --enable-ipv6 was given.
14727 if test "${enable_ipv6+set}" = set; then :
14728 enableval=$enable_ipv6;
14729 else
14730 enable_ipv6=yes
14731 fi
14732
14733 if test "$with_minimum" = "yes"
14734 then
14735 enable_ipv6=no
14736 fi
14737 if test $enable_ipv6 = yes; then
14738 have_ipv6=no
14739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14740 /* end confdefs.h. */
14741
14742 # include <sys/types.h>
14743 # include <sys/socket.h>
14744
14745 int
14746 main ()
14747 {
14748
14749 struct sockaddr_storage ss;
14750 socket(AF_INET6, SOCK_STREAM, 0)
14751
14752 ;
14753 return 0;
14754 }
14755 _ACEOF
14756 if ac_fn_c_try_compile "$LINENO"; then :
14757 have_ipv6=yes
14758 else
14759 have_ipv6=no
14760
14761 fi
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
14764 $as_echo "$have_ipv6" >&6; }
14765
14766 if test $have_ipv6 = yes; then
14767
14768 $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
14769
14770 have_broken_ss_family=no
14771
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
14773 $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776
14777 # include <sys/types.h>
14778 # include <sys/socket.h>
14779
14780 int
14781 main ()
14782 {
14783
14784 struct sockaddr_storage ss ;
14785 ss.ss_family = 0 ;
14786
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_compile "$LINENO"; then :
14792 have_ss_family=yes
14793 else
14794 have_ss_family=no
14795
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
14799 $as_echo "$have_ss_family" >&6; }
14800 if test x$have_ss_family = xno ; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
14802 $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
14803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* end confdefs.h. */
14805
14806 # include <sys/types.h>
14807 # include <sys/socket.h>
14808
14809 int
14810 main ()
14811 {
14812
14813 struct sockaddr_storage ss ;
14814 ss.__ss_family = 0 ;
14815
14816 ;
14817 return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_compile "$LINENO"; then :
14821 have_broken_ss_family=yes
14822 else
14823 have_broken_ss_family=no
14824
14825 fi
14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
14828 $as_echo "$have_broken_ss_family" >&6; }
14829 if test x$have_broken_ss_family = xyes ; then
14830
14831 $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
14832
14833
14834 $as_echo "#define ss_family __ss_family" >>confdefs.h
14835
14836 else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
14838 $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
14839 fi
14840 fi
14841
14842 have_getaddrinfo=no
14843 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14844 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
14845 have_getaddrinfo=yes
14846 fi
14847
14848 if test $have_getaddrinfo != yes; then
14849 for lib in bsd socket inet; do
14850 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
14852 $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
14853 if eval \${$as_ac_Lib+:} false; then :
14854 $as_echo_n "(cached) " >&6
14855 else
14856 ac_check_lib_save_LIBS=$LIBS
14857 LIBS="-l$lib $LIBS"
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14860
14861 /* Override any GCC internal prototype to avoid an error.
14862 Use char because int might match the return type of a GCC
14863 builtin and then its argument prototype would still apply. */
14864 #ifdef __cplusplus
14865 extern "C"
14866 #endif
14867 char getaddrinfo ();
14868 int
14869 main ()
14870 {
14871 return getaddrinfo ();
14872 ;
14873 return 0;
14874 }
14875 _ACEOF
14876 if ac_fn_c_try_link "$LINENO"; then :
14877 eval "$as_ac_Lib=yes"
14878 else
14879 eval "$as_ac_Lib=no"
14880 fi
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14884 fi
14885 eval ac_res=\$$as_ac_Lib
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14887 $as_echo "$ac_res" >&6; }
14888 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14889 LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
14890 fi
14891
14892 done
14893 fi
14894
14895 if test $have_getaddrinfo = yes; then
14896
14897 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
14898
14899 fi
14900 fi
14901 fi
14902
14903
14904 XML_LIBDIR='-L${libdir}'
14905 XML_INCLUDEDIR='-I${includedir}/libxml2'
14906
14907 XML_CFLAGS=""
14908 RDL_LIBS=""
14909
14910 if test "${GCC}" != "yes" ; then
14911 case "${host}" in
14912 hppa*-*-hpux* )
14913 EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wp,-H30000"
14914 ;;
14915 *-dec-osf* )
14916 EXTRA_CFLAGS="${EXTRA_CFLAGS} -ieee"
14917 ;;
14918 alpha*-*-linux* )
14919 EXTRA_CFLAGS="${EXTRA_CFLAGS} -ieee"
14920 ;;
14921 esac
14922 else
14923 if test "$with_fexceptions" = "yes"
14924 then
14925 #
14926 # Not activated by default because this inflates the code size
14927 # Used to allow propagation of C++ exceptions through the library
14928 #
14929 EXTRA_CFLAGS="${EXTRA_CFLAGS} -fexceptions"
14930 fi
14931
14932 # warnings we'd like to see
14933 EXTRA_CFLAGS="${EXTRA_CFLAGS} -pedantic -Wall -Wextra -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
14934 # warnings we'd like to suppress
14935 EXTRA_CFLAGS="${EXTRA_CFLAGS} -Wno-long-long -Wno-format-extra-args"
14936 case "${host}" in
14937 alpha*-*-linux* )
14938 EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee"
14939 ;;
14940 alpha*-*-osf* )
14941 EXTRA_CFLAGS="${EXTRA_CFLAGS} -mieee"
14942 ;;
14943 esac
14944 fi
14945 case ${host} in
14946 *-*-solaris*)
14947 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
14948 ;;
14949 hppa*-hp-mpeix)
14950 NEED_TRIO=1
14951 ;;
14952 *-*-mingw* | *-*-cygwin* | *-*-msvc* )
14953 # If the host is Windows, and shared libraries are disabled, we
14954 # need to add -DLIBXML_STATIC to EXTRA_CFLAGS in order for linking to
14955 # work properly (without it, xmlexports.h would force the use of
14956 # DLL imports, which obviously aren't present in a static
14957 # library).
14958 if test "x$enable_shared" = "xno"; then
14959 XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
14960 EXTRA_CFLAGS="$EXTRA_CFLAGS -DLIBXML_STATIC"
14961 fi
14962 ;;
14963 esac
14964
14965
14966
14967 PYTHON_VERSION=
14968 PYTHON_INCLUDES=
14969 PYTHON_SITE_PACKAGES=
14970 PYTHON_TESTS=
14971 pythondir=
14972 if test "$with_python" != "no" ; then
14973 if test -x "$with_python/bin/python"
14974 then
14975 echo Found python in $with_python/bin/python
14976 PYTHON="$with_python/bin/python"
14977 else
14978 if test -x "$with_python/python.exe"
14979 then
14980 echo Found python in $with_python/python.exe
14981 PYTHON="$with_python/python.exe"
14982 else
14983 if test -x "$with_python"
14984 then
14985 echo Found python in $with_python
14986 PYTHON="$with_python"
14987 else
14988 if test -x "$PYTHON"
14989 then
14990 echo Found python in environment PYTHON=$PYTHON
14991 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
14992 else
14993 # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
14994 set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14996 $as_echo_n "checking for $ac_word... " >&6; }
14997 if ${ac_cv_path_PYTHON+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 case $PYTHON in
15001 [\\/]* | ?:[\\/]*)
15002 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15003 ;;
15004 *)
15005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15006 for as_dir in $PATH
15007 do
15008 IFS=$as_save_IFS
15009 test -z "$as_dir" && as_dir=.
15010 for ac_exec_ext in '' $ac_executable_extensions; do
15011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15012 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15014 break 2
15015 fi
15016 done
15017 done
15018 IFS=$as_save_IFS
15019
15020 ;;
15021 esac
15022 fi
15023 PYTHON=$ac_cv_path_PYTHON
15024 if test -n "$PYTHON"; then
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15026 $as_echo "$PYTHON" >&6; }
15027 else
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15030 fi
15031
15032
15033 fi
15034 fi
15035 fi
15036 fi
15037 if test "$PYTHON" != ""
15038 then
15039 PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
15040 PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`
15041 # does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
15042 #
15043 # PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
15044 echo Found Python version $PYTHON_VERSION
15045 fi
15046 if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
15047 then
15048 if test -r $with_python/include/python$PYTHON_VERSION/Python.h
15049 then
15050 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
15051 else
15052 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
15053 then
15054 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
15055 else
15056 if test -r /usr/include/python$PYTHON_VERSION/Python.h
15057 then
15058 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
15059 else
15060 if test -r $with_python/include/Python.h
15061 then
15062 PYTHON_INCLUDES=$with_python/include
15063 else
15064 echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
15065 fi
15066 fi
15067 fi
15068 fi
15069 fi
15070 if test "$with_python_install_dir" != ""
15071 then
15072 PYTHON_SITE_PACKAGES="$with_python_install_dir"
15073 fi
15074 if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
15075 then
15076 if test -d $libdir/python$PYTHON_VERSION/site-packages
15077 then
15078 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
15079 else
15080 if test -d $with_python/lib/site-packages
15081 then
15082 PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
15083 else
15084 PYTHON_SITE_PACKAGES=$($PYTHON -c 'from distutils import sysconfig; print(sysconfig.get_python_lib(True,False,"${exec_prefix}"))')
15085 fi
15086 fi
15087 fi
15088 pythondir='$(PYTHON_SITE_PACKAGES)'
15089 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
15090 else
15091 PYTHON=
15092 fi
15093 if test "$PYTHON_INCLUDES" != ""; then
15094 WITH_PYTHON_TRUE=
15095 WITH_PYTHON_FALSE='#'
15096 else
15097 WITH_PYTHON_TRUE='#'
15098 WITH_PYTHON_FALSE=
15099 fi
15100
15101 if test "$PYTHON_INCLUDES" != ""
15102 then
15103 PYTHON_SUBDIR=python
15104 else
15105 PYTHON_SUBDIR=
15106 fi
15107
15108
15109
15110
15111 WITH_MODULES=0
15112 TEST_MODULES=
15113
15114 if test "$with_modules" != "no" ; then
15115 case "$host" in
15116 *-*-cygwin*)
15117 MODULE_EXTENSION=".dll"
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
15119 $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
15120 if ${ac_cv_lib_cygwin_dlopen+:} false; then :
15121 $as_echo_n "(cached) " >&6
15122 else
15123 ac_check_lib_save_LIBS=$LIBS
15124 LIBS="-lcygwin $LIBS"
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127
15128 /* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15131 #ifdef __cplusplus
15132 extern "C"
15133 #endif
15134 char dlopen ();
15135 int
15136 main ()
15137 {
15138 return dlopen ();
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_c_try_link "$LINENO"; then :
15144 ac_cv_lib_cygwin_dlopen=yes
15145 else
15146 ac_cv_lib_cygwin_dlopen=no
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext \
15149 conftest$ac_exeext conftest.$ac_ext
15150 LIBS=$ac_check_lib_save_LIBS
15151 fi
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
15153 $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
15154 if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
15155
15156 WITH_MODULES=1
15157 MODULE_PLATFORM_LIBS=
15158
15159 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
15160
15161
15162 fi
15163
15164 ;;
15165 *-*-mingw*)
15166 MODULE_EXTENSION=".dll"
15167 WITH_MODULES=1
15168 ;;
15169 *)
15170 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15171 if test "x$ac_cv_func_shl_load" = xyes; then :
15172 libxml_have_shl_load=yes
15173 else
15174
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15176 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15177 if ${ac_cv_lib_dld_shl_load+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179 else
15180 ac_check_lib_save_LIBS=$LIBS
15181 LIBS="-ldld $LIBS"
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184
15185 /* Override any GCC internal prototype to avoid an error.
15186 Use char because int might match the return type of a GCC
15187 builtin and then its argument prototype would still apply. */
15188 #ifdef __cplusplus
15189 extern "C"
15190 #endif
15191 char shl_load ();
15192 int
15193 main ()
15194 {
15195 return shl_load ();
15196 ;
15197 return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_c_try_link "$LINENO"; then :
15201 ac_cv_lib_dld_shl_load=yes
15202 else
15203 ac_cv_lib_dld_shl_load=no
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext \
15206 conftest$ac_exeext conftest.$ac_ext
15207 LIBS=$ac_check_lib_save_LIBS
15208 fi
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15210 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15211 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15212
15213 MODULE_PLATFORM_LIBS="-ldld"
15214 libxml_have_shl_load=yes
15215 else
15216
15217 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15218 if test "x$ac_cv_func_dlopen" = xyes; then :
15219 libxml_have_dlopen=yes
15220 else
15221
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15223 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15224 if ${ac_cv_lib_dl_dlopen+:} false; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227 ac_check_lib_save_LIBS=$LIBS
15228 LIBS="-ldl $LIBS"
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15231
15232 /* Override any GCC internal prototype to avoid an error.
15233 Use char because int might match the return type of a GCC
15234 builtin and then its argument prototype would still apply. */
15235 #ifdef __cplusplus
15236 extern "C"
15237 #endif
15238 char dlopen ();
15239 int
15240 main ()
15241 {
15242 return dlopen ();
15243 ;
15244 return 0;
15245 }
15246 _ACEOF
15247 if ac_fn_c_try_link "$LINENO"; then :
15248 ac_cv_lib_dl_dlopen=yes
15249 else
15250 ac_cv_lib_dl_dlopen=no
15251 fi
15252 rm -f core conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_check_lib_save_LIBS
15255 fi
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15258 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15259
15260 MODULE_PLATFORM_LIBS="-ldl"
15261 libxml_have_dlopen=yes
15262 fi
15263
15264 fi
15265
15266 fi
15267
15268 fi
15269
15270
15271 if test "${libxml_have_shl_load}" = "yes"; then
15272 MODULE_EXTENSION=".sl"
15273 WITH_MODULES=1
15274
15275 $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
15276
15277 fi
15278
15279 if test "${libxml_have_dlopen}" = "yes"; then
15280 case "${host}" in
15281 *-*-hpux* )
15282 MODULE_EXTENSION=".sl"
15283 ;;
15284 * )
15285 MODULE_EXTENSION=".so"
15286 ;;
15287 esac
15288
15289 WITH_MODULES=1
15290
15291 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
15292
15293 fi
15294 ;;
15295 esac
15296 fi
15297
15298 if test "${WITH_MODULES}" = "1"; then
15299 TEST_MODULES="ModuleTests"
15300 fi
15301
15302
15303
15304
15305
15306
15307
15308 if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
15309 [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
15310 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
15311 then
15312 if test "$with_minimum" != "yes"
15313 then
15314 if test "${with_mem_debug}" = "" ; then
15315 echo Activating memory debugging
15316 with_mem_debug="yes"
15317 with_run_debug="yes"
15318 fi
15319 if test "${with_docbook}" = "" ; then
15320 with_docbook="yes"
15321 fi
15322 fi
15323 if test "${GCC}" = "yes" ; then
15324 EXTRA_CFLAGS="-g -O -pedantic -W -Wformat -Wno-format-extra-args -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
15325 fi
15326 STATIC_BINARIES="-static"
15327 else
15328 STATIC_BINARIES=
15329 fi
15330
15331
15332
15333 if test "${NEED_TRIO}" = "1" ; then
15334 echo Adding trio library for string functions
15335 WITH_TRIO=1
15336 else
15337 WITH_TRIO=0
15338 fi
15339 if test "${NEED_TRIO}" = "1"; then
15340 WITH_TRIO_SOURCES_TRUE=
15341 WITH_TRIO_SOURCES_FALSE='#'
15342 else
15343 WITH_TRIO_SOURCES_TRUE='#'
15344 WITH_TRIO_SOURCES_FALSE=
15345 fi
15346
15347
15348
15349 echo Checking configuration requirements
15350
15351 THREAD_LIBS=""
15352 BASE_THREAD_LIBS=""
15353 WITH_THREADS=0
15354 THREAD_CFLAGS=""
15355 TEST_THREADS=""
15356 THREADS_W32=""
15357 WITH_THREAD_ALLOC=0
15358
15359 if test "$with_threads" = "no" ; then
15360 echo Disabling multithreaded support
15361 else
15362 echo Enabling multithreaded support
15363
15364 case $host_os in
15365 *mingw*) if test "$with_threads" != "pthread" && test "$with_threads" != "no"; then
15366 WITH_THREADS="1"
15367 THREADS_W32="1"
15368 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
15369 fi
15370 ;;
15371 esac
15372
15373 if test -z "$THREADS_W32"; then
15374 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
15375 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15376 if test "x$ac_cv_header_pthread_h" = xyes; then :
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
15378 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
15379 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
15380 $as_echo_n "(cached) " >&6
15381 else
15382 ac_check_lib_save_LIBS=$LIBS
15383 LIBS="-lpthread $LIBS"
15384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385 /* end confdefs.h. */
15386
15387 /* Override any GCC internal prototype to avoid an error.
15388 Use char because int might match the return type of a GCC
15389 builtin and then its argument prototype would still apply. */
15390 #ifdef __cplusplus
15391 extern "C"
15392 #endif
15393 char pthread_join ();
15394 int
15395 main ()
15396 {
15397 return pthread_join ();
15398 ;
15399 return 0;
15400 }
15401 _ACEOF
15402 if ac_fn_c_try_link "$LINENO"; then :
15403 ac_cv_lib_pthread_pthread_join=yes
15404 else
15405 ac_cv_lib_pthread_pthread_join=no
15406 fi
15407 rm -f core conftest.err conftest.$ac_objext \
15408 conftest$ac_exeext conftest.$ac_ext
15409 LIBS=$ac_check_lib_save_LIBS
15410 fi
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
15412 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
15413 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
15414
15415 THREAD_LIBS="-lpthread"
15416
15417 $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
15418
15419 WITH_THREADS="1"
15420 fi
15421
15422 fi
15423
15424
15425 fi
15426 fi
15427
15428 case $host_os in
15429 *cygwin*) THREAD_LIBS=""
15430 ;;
15431 *beos*) WITH_THREADS="1"
15432 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
15433 ;;
15434 *linux*)
15435 if test "${GCC}" = "yes" ; then
15436 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
15437 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
15438 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
15439 if test "${THREAD_LIBS}" = "-lpthread" ; then
15440 if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
15441 then
15442 THREAD_LIBS=""
15443 BASE_THREAD_LIBS="-lpthread"
15444 else
15445 if expr ${GCC_MAJOR} \> 3 > /dev/null
15446 then
15447 THREAD_LIBS=""
15448 BASE_THREAD_LIBS="-lpthread"
15449 else
15450 echo old GCC disabling weak symbols for pthread
15451 fi
15452 fi
15453 fi
15454 fi
15455 ;;
15456 esac
15457 if test "$WITH_THREADS" = "1" ; then
15458 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
15459 TEST_THREADS="Threadtests"
15460 fi
15461 fi
15462 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
15463 WITH_THREAD_ALLOC=1
15464 fi
15465
15466
15467
15468
15469
15470
15471
15472 if test -n "$THREADS_W32"; then
15473 THREADS_W32_TRUE=
15474 THREADS_W32_FALSE='#'
15475 else
15476 THREADS_W32_TRUE='#'
15477 THREADS_W32_FALSE=
15478 fi
15479
15480
15481 if test "$with_history" = "yes" ; then
15482 echo Enabling xmllint shell history
15483 unset tcap
15484 for termlib in ncurses curses termcap terminfo termlib; do
15485 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
15487 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
15488 if eval \${$as_ac_Lib+:} false; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 ac_check_lib_save_LIBS=$LIBS
15492 LIBS="-l${termlib} $LIBS"
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495
15496 /* Override any GCC internal prototype to avoid an error.
15497 Use char because int might match the return type of a GCC
15498 builtin and then its argument prototype would still apply. */
15499 #ifdef __cplusplus
15500 extern "C"
15501 #endif
15502 char tputs ();
15503 int
15504 main ()
15505 {
15506 return tputs ();
15507 ;
15508 return 0;
15509 }
15510 _ACEOF
15511 if ac_fn_c_try_link "$LINENO"; then :
15512 eval "$as_ac_Lib=yes"
15513 else
15514 eval "$as_ac_Lib=no"
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext \
15517 conftest$ac_exeext conftest.$ac_ext
15518 LIBS=$ac_check_lib_save_LIBS
15519 fi
15520 eval ac_res=\$$as_ac_Lib
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15522 $as_echo "$ac_res" >&6; }
15523 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15524 tcap="-l$termlib"
15525 fi
15526
15527 test -n "$tcap" && break
15528 done
15529
15530 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
15531 if test "x$ac_cv_header_readline_history_h" = xyes; then :
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
15533 $as_echo_n "checking for append_history in -lhistory... " >&6; }
15534 if ${ac_cv_lib_history_append_history+:} false; then :
15535 $as_echo_n "(cached) " >&6
15536 else
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lhistory $LIBS"
15539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h. */
15541
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15545 #ifdef __cplusplus
15546 extern "C"
15547 #endif
15548 char append_history ();
15549 int
15550 main ()
15551 {
15552 return append_history ();
15553 ;
15554 return 0;
15555 }
15556 _ACEOF
15557 if ac_fn_c_try_link "$LINENO"; then :
15558 ac_cv_lib_history_append_history=yes
15559 else
15560 ac_cv_lib_history_append_history=no
15561 fi
15562 rm -f core conftest.err conftest.$ac_objext \
15563 conftest$ac_exeext conftest.$ac_ext
15564 LIBS=$ac_check_lib_save_LIBS
15565 fi
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
15567 $as_echo "$ac_cv_lib_history_append_history" >&6; }
15568 if test "x$ac_cv_lib_history_append_history" = xyes; then :
15569
15570 RDL_LIBS="-lhistory"
15571
15572 $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
15573
15574 fi
15575
15576 fi
15577
15578
15579 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15580 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15582 $as_echo_n "checking for readline in -lreadline... " >&6; }
15583 if ${ac_cv_lib_readline_readline+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 ac_check_lib_save_LIBS=$LIBS
15587 LIBS="-lreadline $tcap $LIBS"
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590
15591 /* Override any GCC internal prototype to avoid an error.
15592 Use char because int might match the return type of a GCC
15593 builtin and then its argument prototype would still apply. */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 char readline ();
15598 int
15599 main ()
15600 {
15601 return readline ();
15602 ;
15603 return 0;
15604 }
15605 _ACEOF
15606 if ac_fn_c_try_link "$LINENO"; then :
15607 ac_cv_lib_readline_readline=yes
15608 else
15609 ac_cv_lib_readline_readline=no
15610 fi
15611 rm -f core conftest.err conftest.$ac_objext \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15616 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15617 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15618
15619 RDL_LIBS="-lreadline $RDL_LIBS $tcap"
15620
15621 $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
15622
15623 fi
15624
15625 fi
15626
15627
15628 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
15629 CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
15630 RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
15631 fi
15632 fi
15633
15634 if test "$with_tree" = "no" ; then
15635 echo Disabling DOM like tree manipulation APIs
15636 WITH_TREE=0
15637 else
15638 WITH_TREE=1
15639 fi
15640
15641
15642 if test "$with_ftp" = "no" ; then
15643 echo Disabling FTP support
15644 WITH_FTP=0
15645 FTP_OBJ=
15646 else
15647 WITH_FTP=1
15648 FTP_OBJ=nanoftp.o
15649 fi
15650
15651
15652
15653 if test "$with_http" = "no" ; then
15654 echo Disabling HTTP support
15655 WITH_HTTP=0
15656 HTTP_OBJ=
15657 else
15658 WITH_HTTP=1
15659 HTTP_OBJ=nanohttp.o
15660 fi
15661
15662
15663
15664 if test "$with_legacy" = "no" ; then
15665 echo Disabling deprecated APIs
15666 WITH_LEGACY=0
15667 else
15668 WITH_LEGACY=1
15669 fi
15670
15671
15672 if test "$with_reader" = "no" ; then
15673 echo Disabling the xmlReader parsing interface
15674 WITH_READER=0
15675 READER_TEST=
15676 else
15677 WITH_READER=1
15678 READER_TEST=Readertests
15679 if test "$with_push" = "no" ; then
15680 echo xmlReader requires Push interface - enabling it
15681 with_push=yes
15682 fi
15683 fi
15684
15685
15686
15687 if test "$with_writer" = "no" ; then
15688 echo Disabling the xmlWriter saving interface
15689 WITH_WRITER=0
15690 # WRITER_TEST=
15691 else
15692 WITH_WRITER=1
15693 # WRITER_TEST=Writertests
15694 if test "$with_push" = "no" ; then
15695 echo xmlWriter requires Push interface - enabling it
15696 with_push=yes
15697 fi
15698 if test "$with_output" = "no" ; then
15699 echo xmlWriter requires Output interface - enabling it
15700 with_output=yes
15701 fi
15702 fi
15703
15704 #AC_SUBST(WRITER_TEST)
15705
15706 if test "$with_pattern" = "no" ; then
15707 echo Disabling the xmlPattern parsing interface
15708 WITH_PATTERN=0
15709 TEST_PATTERN=
15710 else
15711 WITH_PATTERN=1
15712 TEST_PATTERN=Patterntests
15713 fi
15714
15715
15716
15717 if test "$with_sax1" = "no" ; then
15718 echo Disabling the older SAX1 interface
15719 WITH_SAX1=0
15720 TEST_SAX=
15721 else
15722 WITH_SAX1=1
15723 TEST_SAX=SAXtests
15724 fi
15725
15726 if test "${WITH_TRIO}" = "1"; then
15727 WITH_SAX1_SOURCES_TRUE=
15728 WITH_SAX1_SOURCES_FALSE='#'
15729 else
15730 WITH_SAX1_SOURCES_TRUE='#'
15731 WITH_SAX1_SOURCES_FALSE=
15732 fi
15733
15734
15735
15736 if test "$with_push" = "no" ; then
15737 echo Disabling the PUSH parser interfaces
15738 WITH_PUSH=0
15739 TEST_PUSH=
15740 else
15741 WITH_PUSH=1
15742 TEST_PUSH="XMLPushtests"
15743 fi
15744
15745
15746
15747 if test "$with_html" = "no" ; then
15748 echo Disabling HTML support
15749 WITH_HTML=0
15750 HTML_OBJ=
15751 TEST_HTML=
15752 else
15753 WITH_HTML=1
15754 HTML_OBJ="HTMLparser.o HTMLtree.o"
15755 TEST_HTML=HTMLtests
15756 if test "$with_push" != "no" ; then
15757 TEST_PHTML=HTMLPushtests
15758 else
15759 TEST_PHTML=
15760 fi
15761 fi
15762
15763
15764
15765
15766
15767 if test "$with_valid" = "no" ; then
15768 echo Disabling DTD validation support
15769 WITH_VALID=0
15770 TEST_VALID=
15771 TEST_VTIME=
15772 else
15773 WITH_VALID=1
15774 TEST_VALID=Validtests
15775 TEST_VTIME=VTimingtests
15776 fi
15777
15778
15779
15780
15781 if test "$with_catalog" = "no" ; then
15782 echo Disabling Catalog support
15783 WITH_CATALOG=0
15784 CATALOG_OBJ=
15785 TEST_CATALOG=
15786 else
15787 WITH_CATALOG=1
15788 CATALOG_OBJ="catalog.o"
15789 TEST_CATALOG=Catatests
15790 fi
15791
15792
15793
15794
15795 if test "$with_docbook" = "no" ; then
15796 echo Disabling Docbook support
15797 WITH_DOCB=0
15798 DOCB_OBJ=
15799 else
15800 WITH_DOCB=1
15801 DOCB_OBJ="DOCBparser.o"
15802 fi
15803
15804
15805
15806
15807 if test "$with_xptr" = "no" ; then
15808 echo Disabling XPointer support
15809 WITH_XPTR=0
15810 XPTR_OBJ=
15811 TEST_XPTR=
15812 else
15813 WITH_XPTR=1
15814 XPTR_OBJ=xpointer.o
15815 TEST_XPTR=XPtrtests
15816 if test "$with_xpath" = "no" ; then
15817 echo XPointer requires XPath support - enabling it
15818 with_xpath=yes
15819 fi
15820 fi
15821
15822
15823
15824
15825 if test "$with_c14n" = "no" ; then
15826 echo Disabling C14N support
15827 WITH_C14N=0
15828 C14N_OBJ=
15829 TEST_C14N=
15830 else
15831 WITH_C14N=1
15832 C14N_OBJ="c14n.c"
15833 TEST_C14N=C14Ntests
15834 if test "$with_xpath" = "no" ; then
15835 echo C14N requires XPath support - enabling it
15836 with_xpath=yes
15837 fi
15838 fi
15839
15840
15841
15842
15843 if test "$with_xinclude" = "no" ; then
15844 echo Disabling XInclude support
15845 WITH_XINCLUDE=0
15846 XINCLUDE_OBJ=
15847 with_xinclude="no"
15848 TEST_XINCLUDE=
15849 else
15850 WITH_XINCLUDE=1
15851 XINCLUDE_OBJ=xinclude.o
15852 TEST_XINCLUDE=XIncludetests
15853 if test "$with_xpath" = "no" ; then
15854 echo XInclude requires XPath support - enabling it
15855 with_xpath=yes
15856 fi
15857 fi
15858
15859
15860
15861
15862 if test "$with_xptr" = "" -a "$with_xpath" = "no" ; then
15863 with_xptr=no
15864 fi
15865
15866 if test "$with_schematron" = "" -a "$with_xpath" = "no" ; then
15867 with_schematron=no
15868 fi
15869
15870 if test "$with_schematron" = "no" ; then
15871 echo "Disabling Schematron support"
15872 WITH_SCHEMATRON=0
15873 TEST_SCHEMATRON=
15874 else
15875 echo "Enabled Schematron support"
15876 WITH_SCHEMATRON=1
15877 TEST_SCHEMATRON="Schematrontests"
15878 with_xpath=yes
15879 with_pattern=yes
15880 with_schematron=yes
15881 fi
15882
15883
15884
15885 if test "$with_xpath" = "no" ; then
15886 echo Disabling XPATH support
15887 WITH_XPATH=0
15888 XPATH_OBJ=
15889 TEST_XPATH=
15890 else
15891 WITH_XPATH=1
15892 XPATH_OBJ=xpath.o
15893 TEST_XPATH=XPathtests
15894 fi
15895
15896
15897
15898
15899 if test "$with_output" = "no" ; then
15900 echo Disabling serialization/saving support
15901 WITH_OUTPUT=0
15902 else
15903 WITH_OUTPUT=1
15904 fi
15905
15906
15907 WITH_ICONV=0
15908 if test "$with_iconv" = "no" ; then
15909 echo Disabling ICONV support
15910 else
15911 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
15912 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
15913 # Export this since our headers include iconv.h
15914 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
15915 ICONV_LIBS="-L$with_iconv/lib"
15916 fi
15917
15918 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
15919 if test "x$ac_cv_header_iconv_h" = xyes; then :
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15921 $as_echo_n "checking for iconv... " >&6; }
15922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15923 /* end confdefs.h. */
15924 #include <stdlib.h>
15925 #include <iconv.h>
15926 int
15927 main ()
15928 {
15929
15930 iconv_t cd = iconv_open ("","");
15931 iconv (cd, NULL, NULL, NULL, NULL);
15932 ;
15933 return 0;
15934 }
15935 _ACEOF
15936 if ac_fn_c_try_link "$LINENO"; then :
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15939 $as_echo "yes" >&6; }
15940 WITH_ICONV=1
15941 else
15942
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15944 $as_echo "no" >&6; }
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
15946 $as_echo_n "checking for iconv in -liconv... " >&6; }
15947
15948 _ldflags="${LDFLAGS}"
15949 _libs="${LIBS}"
15950 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
15951 LIBS="${LIBS} -liconv"
15952
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 #include <stdlib.h>
15956 #include <iconv.h>
15957 int
15958 main ()
15959 {
15960
15961 iconv_t cd = iconv_open ("","");
15962 iconv (cd, NULL, NULL, NULL, NULL);
15963 ;
15964 return 0;
15965 }
15966 _ACEOF
15967 if ac_fn_c_try_link "$LINENO"; then :
15968
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970 $as_echo "yes" >&6; }
15971 WITH_ICONV=1
15972 ICONV_LIBS="${ICONV_LIBS} -liconv"
15973 LIBS="${_libs}"
15974 LDFLAGS="${_ldflags}"
15975 else
15976
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15978 $as_echo "no" >&6; }
15979 LIBS="${_libs}"
15980 LDFLAGS="${_ldflags}"
15981 fi
15982 rm -f core conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15984 fi
15985 rm -f core conftest.err conftest.$ac_objext \
15986 conftest$ac_exeext conftest.$ac_ext
15987 fi
15988
15989
15990
15991 if test "$WITH_ICONV" = "1" ; then
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15993 $as_echo_n "checking for iconv declaration... " >&6; }
15994 if ${xml_cv_iconv_arg2+:} false; then :
15995 $as_echo_n "(cached) " >&6
15996 else
15997
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #include <stdlib.h>
16001 #include <iconv.h>
16002 extern
16003 #ifdef __cplusplus
16004 "C"
16005 #endif
16006 #if defined(__STDC__) || defined(__cplusplus)
16007 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16008 #else
16009 size_t iconv();
16010 #endif
16011
16012 int
16013 main ()
16014 {
16015
16016 ;
16017 return 0;
16018 }
16019 _ACEOF
16020 if ac_fn_c_try_compile "$LINENO"; then :
16021 xml_cv_iconv_arg2=""
16022 else
16023 xml_cv_iconv_arg2="const"
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16026 fi
16027
16028
16029 xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
16031 }$xml_cv_iconv_decl" >&5
16032 $as_echo "${xml_xxx:-
16033 }$xml_cv_iconv_decl" >&6; }
16034
16035 cat >>confdefs.h <<_ACEOF
16036 #define ICONV_CONST $xml_cv_iconv_arg2
16037 _ACEOF
16038
16039 fi
16040 fi
16041 case "$host" in
16042 *mingw*) M_LIBS=""
16043 ;;
16044 *beos*) M_LIBS=""
16045 ;;
16046 *haiku*) M_LIBS=""
16047 ;;
16048 *) M_LIBS="-lm"
16049 ;;
16050 esac
16051
16052
16053 WITH_ICU=0
16054 ICU_LIBS=""
16055 if test "$with_icu" != "yes" ; then
16056 echo Disabling ICU support
16057 else
16058 # Try pkg-config first so that static linking works.
16059 # If this succeeeds, we ignore the WITH_ICU directory.
16060
16061 pkg_failed=no
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
16063 $as_echo_n "checking for ICU... " >&6; }
16064
16065 if test -n "$ICU_CFLAGS"; then
16066 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
16067 elif test -n "$PKG_CONFIG"; then
16068 if test -n "$PKG_CONFIG" && \
16069 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
16070 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
16071 ac_status=$?
16072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16073 test $ac_status = 0; }; then
16074 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
16075 test "x$?" != "x0" && pkg_failed=yes
16076 else
16077 pkg_failed=yes
16078 fi
16079 else
16080 pkg_failed=untried
16081 fi
16082 if test -n "$ICU_LIBS"; then
16083 pkg_cv_ICU_LIBS="$ICU_LIBS"
16084 elif test -n "$PKG_CONFIG"; then
16085 if test -n "$PKG_CONFIG" && \
16086 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
16087 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
16088 ac_status=$?
16089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16090 test $ac_status = 0; }; then
16091 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
16092 test "x$?" != "x0" && pkg_failed=yes
16093 else
16094 pkg_failed=yes
16095 fi
16096 else
16097 pkg_failed=untried
16098 fi
16099
16100
16101
16102 if test $pkg_failed = yes; then
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16105
16106 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16107 _pkg_short_errors_supported=yes
16108 else
16109 _pkg_short_errors_supported=no
16110 fi
16111 if test $_pkg_short_errors_supported = yes; then
16112 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
16113 else
16114 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
16115 fi
16116 # Put the nasty error message in config.log where it belongs
16117 echo "$ICU_PKG_ERRORS" >&5
16118
16119 have_libicu=no
16120 elif test $pkg_failed = untried; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122 $as_echo "no" >&6; }
16123 have_libicu=no
16124 else
16125 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
16126 ICU_LIBS=$pkg_cv_ICU_LIBS
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16128 $as_echo "yes" >&6; }
16129 have_libicu=yes
16130 fi
16131
16132 if test "x$have_libicu" = "xyes"; then
16133
16134 if test -n "$ICU_DEFS"; then
16135 pkg_cv_ICU_DEFS="$ICU_DEFS"
16136 elif test -n "$PKG_CONFIG"; then
16137 if test -n "$PKG_CONFIG" && \
16138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
16139 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
16140 ac_status=$?
16141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16142 test $ac_status = 0; }; then
16143 pkg_cv_ICU_DEFS=`$PKG_CONFIG --variable="DEFS" "icu-i18n" 2>/dev/null`
16144 test "x$?" != "x0" && pkg_failed=yes
16145 else
16146 pkg_failed=yes
16147 fi
16148 else
16149 pkg_failed=untried
16150 fi
16151 ICU_DEFS=$pkg_cv_ICU_DEFS
16152
16153 if test "x$ICU_DEFS" = x""; then :
16154
16155 fi
16156 if test "x$ICU_DEFS" != "x"; then
16157 CPPFLAGS="$CPPFLAGS $ICU_DEFS"
16158 fi
16159 fi
16160
16161 # If pkg-config failed, fall back to AC_CHECK_LIB. This
16162 # will not pick up the necessary LIBS flags for liblzma's
16163 # private dependencies, though, so static linking may fail.
16164 if test "x$have_libicu" = "xno"; then
16165 ICU_CONFIG=icu-config
16166 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
16167 then
16168 ICU_LIBS=`${ICU_CONFIG} --ldflags`
16169 have_libicu=yes
16170 echo Enabling ICU support
16171 else
16172 if test "$with_icu" != "yes" -a "$with_iconv" != "" ; then
16173 CPPFLAGS="${CPPFLAGS} -I$with_icu"
16174 # Export this since our headers include icu.h
16175 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_icu"
16176 fi
16177
16178 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucnv.h" "ac_cv_header_unicode_ucnv_h" "$ac_includes_default"
16179 if test "x$ac_cv_header_unicode_ucnv_h" = xyes; then :
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu" >&5
16181 $as_echo_n "checking for icu... " >&6; }
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16184 #include <unicode/ucnv.h>
16185 int
16186 main ()
16187 {
16188
16189 UConverter *utf = ucnv_open("UTF-8", NULL);
16190 ;
16191 return 0;
16192 }
16193 _ACEOF
16194 if ac_fn_c_try_link "$LINENO"; then :
16195
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16197 $as_echo "yes" >&6; }
16198 have_libicu=yes
16199 else
16200
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16202 $as_echo "no" >&6; }
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu in -licucore" >&5
16204 $as_echo_n "checking for icu in -licucore... " >&6; }
16205
16206 _ldflags="${LDFLAGS}"
16207 _libs="${LIBS}"
16208 LDFLAGS="${LDFLAGS} ${ICU_LIBS}"
16209 LIBS="${LIBS} -licucore"
16210
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 #include <unicode/ucnv.h>
16214 int
16215 main ()
16216 {
16217
16218 UConverter *utf = ucnv_open("UTF-8", NULL);
16219 ;
16220 return 0;
16221 }
16222 _ACEOF
16223 if ac_fn_c_try_link "$LINENO"; then :
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16226 $as_echo "yes" >&6; }
16227 have_libicu=yes
16228 ICU_LIBS="${ICU_LIBS} -licucore"
16229 LIBS="${_libs}"
16230 LDFLAGS="${_ldflags}"
16231 else
16232
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16235 LIBS="${_libs}"
16236 LDFLAGS="${_ldflags}"
16237 fi
16238 rm -f core conftest.err conftest.$ac_objext \
16239 conftest$ac_exeext conftest.$ac_ext
16240 fi
16241 rm -f core conftest.err conftest.$ac_objext \
16242 conftest$ac_exeext conftest.$ac_ext
16243 fi
16244
16245
16246 fi
16247 fi
16248
16249 # Found the library via either method?
16250 if test "x$have_libicu" = "xyes"; then
16251 WITH_ICU=1
16252 fi
16253 fi
16254 XML_LIBS="-lxml2"
16255 XML_PRIVATE_LIBS="$Z_LIBS $LZMA_LIBS $THREAD_LIBS $ICONV_LIBS $ICU_LIBS $M_LIBS $LIBS"
16256 XML_LIBTOOLLIBS="libxml2.la"
16257
16258
16259 WITH_ISO8859X=1
16260 if test "$WITH_ICONV" != "1" ; then
16261 if test "$with_iso8859x" = "no" ; then
16262 echo Disabling ISO8859X support
16263 WITH_ISO8859X=0
16264 fi
16265 fi
16266
16267
16268 if test "$with_schemas" = "no" ; then
16269 echo "Disabling Schemas/Relax-NG support"
16270 WITH_SCHEMAS=0
16271 TEST_SCHEMAS=
16272 else
16273 echo "Enabled Schemas/Relax-NG support"
16274 WITH_SCHEMAS=1
16275 TEST_SCHEMAS="Schemastests Relaxtests"
16276 if test "$PYTHON_INCLUDES" != "" ; then
16277 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
16278 fi
16279 with_regexps=yes
16280 fi
16281
16282
16283
16284 if test "$with_regexps" = "no" ; then
16285 echo Disabling Regexps support
16286 WITH_REGEXPS=0
16287 TEST_REGEXPS=
16288 else
16289 WITH_REGEXPS=1
16290 TEST_REGEXPS="Regexptests Automatatests"
16291 fi
16292
16293
16294
16295 if test "$with_debug" = "no" ; then
16296 echo Disabling DEBUG support
16297 WITH_DEBUG=0
16298 DEBUG_OBJ=
16299 TEST_DEBUG=
16300 else
16301 WITH_DEBUG=1
16302 DEBUG_OBJ=debugXML.o
16303 TEST_DEBUG=Scripttests
16304 fi
16305
16306
16307
16308
16309 if test "$with_mem_debug" = "yes" ; then
16310 if test "$with_thread_alloc" = "yes" ; then
16311 echo Disabling memory debug - cannot use mem-debug with thread-alloc!
16312 WITH_MEM_DEBUG=0
16313 else
16314 echo Enabling memory debug support
16315 WITH_MEM_DEBUG=1
16316 fi
16317 else
16318 WITH_MEM_DEBUG=0
16319 fi
16320
16321
16322 if test "$with_run_debug" = "yes" ; then
16323 echo Enabling runtime debug support
16324 WITH_RUN_DEBUG=1
16325 else
16326 WITH_RUN_DEBUG=0
16327 fi
16328
16329
16330 WIN32_EXTRA_LIBADD=
16331 WIN32_EXTRA_LDFLAGS=
16332 CYGWIN_EXTRA_LDFLAGS=
16333 CYGWIN_EXTRA_PYTHON_LIBADD=
16334 WIN32_EXTRA_PYTHON_LIBADD=
16335 case "$host" in
16336 *-*-mingw*)
16337 CPPFLAGS="$CPPFLAGS -DWIN32"
16338 WIN32_EXTRA_LIBADD="-lws2_32"
16339 WIN32_EXTRA_LDFLAGS="-no-undefined"
16340 if test "${PYTHON}" != ""
16341 then
16342 case "$host" in
16343 *-w64-mingw*)
16344 WIN32_EXTRA_PYTHON_LIBADD="-shrext .pyd -L${pythondir}/../../lib -lpython${PYTHON_VERSION}"
16345 ;;
16346 *)
16347 WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
16348 ;;
16349 esac
16350 fi
16351 ;;
16352 *-*-cygwin*)
16353 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
16354 if test "${PYTHON}" != ""
16355 then
16356 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
16357 fi
16358 ;;
16359 esac
16360
16361
16362
16363
16364
16365
16366 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
16367 do :
16368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16371 cat >>confdefs.h <<_ACEOF
16372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16373 _ACEOF
16374
16375 else
16376 NEED_TRIO=1
16377 fi
16378 done
16379
16380
16381 if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
16382 then
16383 echo Enabling code coverage for GCC
16384 EXTRA_CFLAGS="$EXTRA_CFLAGS -fprofile-arcs -ftest-coverage"
16385 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
16386 else
16387 echo Disabling code coverage for GCC
16388 fi
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411 RELDATE=`date +'%a %b %e %Y'`
16412
16413
16414
16415 rm -f COPYING.LIB COPYING
16416 ln -s $srcdir/Copyright COPYING
16417
16418 # keep on one line for cygwin c.f. #130896
16419 ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile fuzz/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake"
16420
16421 ac_config_files="$ac_config_files python/setup.py"
16422
16423 ac_config_files="$ac_config_files xml2-config"
16424
16425 cat >confcache <<\_ACEOF
16426 # This file is a shell script that caches the results of configure
16427 # tests run on this system so they can be shared between configure
16428 # scripts and configure runs, see configure's option --config-cache.
16429 # It is not useful on other systems. If it contains results you don't
16430 # want to keep, you may remove or edit it.
16431 #
16432 # config.status only pays attention to the cache file if you give it
16433 # the --recheck option to rerun configure.
16434 #
16435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16437 # following values.
16438
16439 _ACEOF
16440
16441 # The following way of writing the cache mishandles newlines in values,
16442 # but we know of no workaround that is simple, portable, and efficient.
16443 # So, we kill variables containing newlines.
16444 # Ultrix sh set writes to stderr and can't be redirected directly,
16445 # and sets the high bit in the cache file unless we assign to the vars.
16446 (
16447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16448 eval ac_val=\$$ac_var
16449 case $ac_val in #(
16450 *${as_nl}*)
16451 case $ac_var in #(
16452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16454 esac
16455 case $ac_var in #(
16456 _ | IFS | as_nl) ;; #(
16457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16458 *) { eval $ac_var=; unset $ac_var;} ;;
16459 esac ;;
16460 esac
16461 done
16462
16463 (set) 2>&1 |
16464 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16465 *${as_nl}ac_space=\ *)
16466 # `set' does not quote correctly, so add quotes: double-quote
16467 # substitution turns \\\\ into \\, and sed turns \\ into \.
16468 sed -n \
16469 "s/'/'\\\\''/g;
16470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16471 ;; #(
16472 *)
16473 # `set' quotes correctly as required by POSIX, so do not add quotes.
16474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16475 ;;
16476 esac |
16477 sort
16478 ) |
16479 sed '
16480 /^ac_cv_env_/b end
16481 t clear
16482 :clear
16483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16484 t end
16485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16486 :end' >>confcache
16487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16488 if test -w "$cache_file"; then
16489 if test "x$cache_file" != "x/dev/null"; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16491 $as_echo "$as_me: updating cache $cache_file" >&6;}
16492 if test ! -f "$cache_file" || test -h "$cache_file"; then
16493 cat confcache >"$cache_file"
16494 else
16495 case $cache_file in #(
16496 */* | ?:*)
16497 mv -f confcache "$cache_file"$$ &&
16498 mv -f "$cache_file"$$ "$cache_file" ;; #(
16499 *)
16500 mv -f confcache "$cache_file" ;;
16501 esac
16502 fi
16503 fi
16504 else
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16506 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16507 fi
16508 fi
16509 rm -f confcache
16510
16511 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16512 # Let make expand exec_prefix.
16513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16514
16515 DEFS=-DHAVE_CONFIG_H
16516
16517 ac_libobjs=
16518 ac_ltlibobjs=
16519 U=
16520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16521 # 1. Remove the extension, and $U if already installed.
16522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16523 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16525 # will be set to the directory where LIBOBJS objects are built.
16526 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16527 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16528 done
16529 LIBOBJS=$ac_libobjs
16530
16531 LTLIBOBJS=$ac_ltlibobjs
16532
16533
16534 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16535 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16537 fi
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16539 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16540 if test -n "$am_sleep_pid"; then
16541 # Hide warnings about reused PIDs.
16542 wait $am_sleep_pid 2>/dev/null
16543 fi
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16545 $as_echo "done" >&6; }
16546 if test -n "$EXEEXT"; then
16547 am__EXEEXT_TRUE=
16548 am__EXEEXT_FALSE='#'
16549 else
16550 am__EXEEXT_TRUE='#'
16551 am__EXEEXT_FALSE=
16552 fi
16553
16554 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16555 as_fn_error $? "conditional \"AMDEP\" was never defined.
16556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16557 fi
16558 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16559 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16561 fi
16562 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
16563 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
16564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16565 fi
16566 if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
16567 as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
16568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16569 fi
16570 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
16571 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
16572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16573 fi
16574 if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
16575 as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
16576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16577 fi
16578 if test -z "${THREADS_W32_TRUE}" && test -z "${THREADS_W32_FALSE}"; then
16579 as_fn_error $? "conditional \"THREADS_W32\" was never defined.
16580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16581 fi
16582 if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
16583 as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
16584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16585 fi
16586
16587 : "${CONFIG_STATUS=./config.status}"
16588 ac_write_fail=0
16589 ac_clean_files_save=$ac_clean_files
16590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16592 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16593 as_write_fail=0
16594 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16595 #! $SHELL
16596 # Generated by $as_me.
16597 # Run this file to recreate the current configuration.
16598 # Compiler output produced by configure, useful for debugging
16599 # configure, is in config.log if it exists.
16600
16601 debug=false
16602 ac_cs_recheck=false
16603 ac_cs_silent=false
16604
16605 SHELL=\${CONFIG_SHELL-$SHELL}
16606 export SHELL
16607 _ASEOF
16608 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16609 ## -------------------- ##
16610 ## M4sh Initialization. ##
16611 ## -------------------- ##
16612
16613 # Be more Bourne compatible
16614 DUALCASE=1; export DUALCASE # for MKS sh
16615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16616 emulate sh
16617 NULLCMD=:
16618 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16619 # is contrary to our usage. Disable this feature.
16620 alias -g '${1+"$@"}'='"$@"'
16621 setopt NO_GLOB_SUBST
16622 else
16623 case `(set -o) 2>/dev/null` in #(
16624 *posix*) :
16625 set -o posix ;; #(
16626 *) :
16627 ;;
16628 esac
16629 fi
16630
16631
16632 as_nl='
16633 '
16634 export as_nl
16635 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16636 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16639 # Prefer a ksh shell builtin over an external printf program on Solaris,
16640 # but without wasting forks for bash or zsh.
16641 if test -z "$BASH_VERSION$ZSH_VERSION" \
16642 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16643 as_echo='print -r --'
16644 as_echo_n='print -rn --'
16645 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16646 as_echo='printf %s\n'
16647 as_echo_n='printf %s'
16648 else
16649 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16650 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16651 as_echo_n='/usr/ucb/echo -n'
16652 else
16653 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16654 as_echo_n_body='eval
16655 arg=$1;
16656 case $arg in #(
16657 *"$as_nl"*)
16658 expr "X$arg" : "X\\(.*\\)$as_nl";
16659 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16660 esac;
16661 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16662 '
16663 export as_echo_n_body
16664 as_echo_n='sh -c $as_echo_n_body as_echo'
16665 fi
16666 export as_echo_body
16667 as_echo='sh -c $as_echo_body as_echo'
16668 fi
16669
16670 # The user is always right.
16671 if test "${PATH_SEPARATOR+set}" != set; then
16672 PATH_SEPARATOR=:
16673 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16674 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16675 PATH_SEPARATOR=';'
16676 }
16677 fi
16678
16679
16680 # IFS
16681 # We need space, tab and new line, in precisely that order. Quoting is
16682 # there to prevent editors from complaining about space-tab.
16683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16684 # splitting by setting IFS to empty value.)
16685 IFS=" "" $as_nl"
16686
16687 # Find who we are. Look in the path if we contain no directory separator.
16688 as_myself=
16689 case $0 in #((
16690 *[\\/]* ) as_myself=$0 ;;
16691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16692 for as_dir in $PATH
16693 do
16694 IFS=$as_save_IFS
16695 test -z "$as_dir" && as_dir=.
16696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16697 done
16698 IFS=$as_save_IFS
16699
16700 ;;
16701 esac
16702 # We did not find ourselves, most probably we were run as `sh COMMAND'
16703 # in which case we are not to be found in the path.
16704 if test "x$as_myself" = x; then
16705 as_myself=$0
16706 fi
16707 if test ! -f "$as_myself"; then
16708 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16709 exit 1
16710 fi
16711
16712 # Unset variables that we do not need and which cause bugs (e.g. in
16713 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16714 # suppresses any "Segmentation fault" message there. '((' could
16715 # trigger a bug in pdksh 5.2.14.
16716 for as_var in BASH_ENV ENV MAIL MAILPATH
16717 do eval test x\${$as_var+set} = xset \
16718 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16719 done
16720 PS1='$ '
16721 PS2='> '
16722 PS4='+ '
16723
16724 # NLS nuisances.
16725 LC_ALL=C
16726 export LC_ALL
16727 LANGUAGE=C
16728 export LANGUAGE
16729
16730 # CDPATH.
16731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16732
16733
16734 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16735 # ----------------------------------------
16736 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16737 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16738 # script with STATUS, using 1 if that was 0.
16739 as_fn_error ()
16740 {
16741 as_status=$1; test $as_status -eq 0 && as_status=1
16742 if test "$4"; then
16743 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16744 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16745 fi
16746 $as_echo "$as_me: error: $2" >&2
16747 as_fn_exit $as_status
16748 } # as_fn_error
16749
16750
16751 # as_fn_set_status STATUS
16752 # -----------------------
16753 # Set $? to STATUS, without forking.
16754 as_fn_set_status ()
16755 {
16756 return $1
16757 } # as_fn_set_status
16758
16759 # as_fn_exit STATUS
16760 # -----------------
16761 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16762 as_fn_exit ()
16763 {
16764 set +e
16765 as_fn_set_status $1
16766 exit $1
16767 } # as_fn_exit
16768
16769 # as_fn_unset VAR
16770 # ---------------
16771 # Portably unset VAR.
16772 as_fn_unset ()
16773 {
16774 { eval $1=; unset $1;}
16775 }
16776 as_unset=as_fn_unset
16777 # as_fn_append VAR VALUE
16778 # ----------------------
16779 # Append the text in VALUE to the end of the definition contained in VAR. Take
16780 # advantage of any shell optimizations that allow amortized linear growth over
16781 # repeated appends, instead of the typical quadratic growth present in naive
16782 # implementations.
16783 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16784 eval 'as_fn_append ()
16785 {
16786 eval $1+=\$2
16787 }'
16788 else
16789 as_fn_append ()
16790 {
16791 eval $1=\$$1\$2
16792 }
16793 fi # as_fn_append
16794
16795 # as_fn_arith ARG...
16796 # ------------------
16797 # Perform arithmetic evaluation on the ARGs, and store the result in the
16798 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16799 # must be portable across $(()) and expr.
16800 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16801 eval 'as_fn_arith ()
16802 {
16803 as_val=$(( $* ))
16804 }'
16805 else
16806 as_fn_arith ()
16807 {
16808 as_val=`expr "$@" || test $? -eq 1`
16809 }
16810 fi # as_fn_arith
16811
16812
16813 if expr a : '\(a\)' >/dev/null 2>&1 &&
16814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16815 as_expr=expr
16816 else
16817 as_expr=false
16818 fi
16819
16820 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16821 as_basename=basename
16822 else
16823 as_basename=false
16824 fi
16825
16826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16827 as_dirname=dirname
16828 else
16829 as_dirname=false
16830 fi
16831
16832 as_me=`$as_basename -- "$0" ||
16833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16834 X"$0" : 'X\(//\)$' \| \
16835 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16836 $as_echo X/"$0" |
16837 sed '/^.*\/\([^/][^/]*\)\/*$/{
16838 s//\1/
16839 q
16840 }
16841 /^X\/\(\/\/\)$/{
16842 s//\1/
16843 q
16844 }
16845 /^X\/\(\/\).*/{
16846 s//\1/
16847 q
16848 }
16849 s/.*/./; q'`
16850
16851 # Avoid depending upon Character Ranges.
16852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16855 as_cr_digits='0123456789'
16856 as_cr_alnum=$as_cr_Letters$as_cr_digits
16857
16858 ECHO_C= ECHO_N= ECHO_T=
16859 case `echo -n x` in #(((((
16860 -n*)
16861 case `echo 'xy\c'` in
16862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16863 xy) ECHO_C='\c';;
16864 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16865 ECHO_T=' ';;
16866 esac;;
16867 *)
16868 ECHO_N='-n';;
16869 esac
16870
16871 rm -f conf$$ conf$$.exe conf$$.file
16872 if test -d conf$$.dir; then
16873 rm -f conf$$.dir/conf$$.file
16874 else
16875 rm -f conf$$.dir
16876 mkdir conf$$.dir 2>/dev/null
16877 fi
16878 if (echo >conf$$.file) 2>/dev/null; then
16879 if ln -s conf$$.file conf$$ 2>/dev/null; then
16880 as_ln_s='ln -s'
16881 # ... but there are two gotchas:
16882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16884 # In both cases, we have to default to `cp -pR'.
16885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16886 as_ln_s='cp -pR'
16887 elif ln conf$$.file conf$$ 2>/dev/null; then
16888 as_ln_s=ln
16889 else
16890 as_ln_s='cp -pR'
16891 fi
16892 else
16893 as_ln_s='cp -pR'
16894 fi
16895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16896 rmdir conf$$.dir 2>/dev/null
16897
16898
16899 # as_fn_mkdir_p
16900 # -------------
16901 # Create "$as_dir" as a directory, including parents if necessary.
16902 as_fn_mkdir_p ()
16903 {
16904
16905 case $as_dir in #(
16906 -*) as_dir=./$as_dir;;
16907 esac
16908 test -d "$as_dir" || eval $as_mkdir_p || {
16909 as_dirs=
16910 while :; do
16911 case $as_dir in #(
16912 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16913 *) as_qdir=$as_dir;;
16914 esac
16915 as_dirs="'$as_qdir' $as_dirs"
16916 as_dir=`$as_dirname -- "$as_dir" ||
16917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16918 X"$as_dir" : 'X\(//\)[^/]' \| \
16919 X"$as_dir" : 'X\(//\)$' \| \
16920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16921 $as_echo X"$as_dir" |
16922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16923 s//\1/
16924 q
16925 }
16926 /^X\(\/\/\)[^/].*/{
16927 s//\1/
16928 q
16929 }
16930 /^X\(\/\/\)$/{
16931 s//\1/
16932 q
16933 }
16934 /^X\(\/\).*/{
16935 s//\1/
16936 q
16937 }
16938 s/.*/./; q'`
16939 test -d "$as_dir" && break
16940 done
16941 test -z "$as_dirs" || eval "mkdir $as_dirs"
16942 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16943
16944
16945 } # as_fn_mkdir_p
16946 if mkdir -p . 2>/dev/null; then
16947 as_mkdir_p='mkdir -p "$as_dir"'
16948 else
16949 test -d ./-p && rmdir ./-p
16950 as_mkdir_p=false
16951 fi
16952
16953
16954 # as_fn_executable_p FILE
16955 # -----------------------
16956 # Test if FILE is an executable regular file.
16957 as_fn_executable_p ()
16958 {
16959 test -f "$1" && test -x "$1"
16960 } # as_fn_executable_p
16961 as_test_x='test -x'
16962 as_executable_p=as_fn_executable_p
16963
16964 # Sed expression to map a string onto a valid CPP name.
16965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16966
16967 # Sed expression to map a string onto a valid variable name.
16968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16969
16970
16971 exec 6>&1
16972 ## ----------------------------------- ##
16973 ## Main body of $CONFIG_STATUS script. ##
16974 ## ----------------------------------- ##
16975 _ASEOF
16976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16977
16978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16979 # Save the log message, to keep $0 and so on meaningful, and to
16980 # report actual input values of CONFIG_FILES etc. instead of their
16981 # values after options handling.
16982 ac_log="
16983 This file was extended by libxml2 $as_me 2.9.14, which was
16984 generated by GNU Autoconf 2.69. Invocation command line was
16985
16986 CONFIG_FILES = $CONFIG_FILES
16987 CONFIG_HEADERS = $CONFIG_HEADERS
16988 CONFIG_LINKS = $CONFIG_LINKS
16989 CONFIG_COMMANDS = $CONFIG_COMMANDS
16990 $ $0 $@
16991
16992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16993 "
16994
16995 _ACEOF
16996
16997 case $ac_config_files in *"
16998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16999 esac
17000
17001 case $ac_config_headers in *"
17002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17003 esac
17004
17005
17006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17007 # Files that config.status was made for.
17008 config_files="$ac_config_files"
17009 config_headers="$ac_config_headers"
17010 config_commands="$ac_config_commands"
17011
17012 _ACEOF
17013
17014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17015 ac_cs_usage="\
17016 \`$as_me' instantiates files and other configuration actions
17017 from templates according to the current configuration. Unless the files
17018 and actions are specified as TAGs, all are instantiated by default.
17019
17020 Usage: $0 [OPTION]... [TAG]...
17021
17022 -h, --help print this help, then exit
17023 -V, --version print version number and configuration settings, then exit
17024 --config print configuration, then exit
17025 -q, --quiet, --silent
17026 do not print progress messages
17027 -d, --debug don't remove temporary files
17028 --recheck update $as_me by reconfiguring in the same conditions
17029 --file=FILE[:TEMPLATE]
17030 instantiate the configuration file FILE
17031 --header=FILE[:TEMPLATE]
17032 instantiate the configuration header FILE
17033
17034 Configuration files:
17035 $config_files
17036
17037 Configuration headers:
17038 $config_headers
17039
17040 Configuration commands:
17041 $config_commands
17042
17043 Report bugs to the package provider."
17044
17045 _ACEOF
17046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17047 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17048 ac_cs_version="\\
17049 libxml2 config.status 2.9.14
17050 configured by $0, generated by GNU Autoconf 2.69,
17051 with options \\"\$ac_cs_config\\"
17052
17053 Copyright (C) 2012 Free Software Foundation, Inc.
17054 This config.status script is free software; the Free Software Foundation
17055 gives unlimited permission to copy, distribute and modify it."
17056
17057 ac_pwd='$ac_pwd'
17058 srcdir='$srcdir'
17059 INSTALL='$INSTALL'
17060 MKDIR_P='$MKDIR_P'
17061 AWK='$AWK'
17062 test -n "\$AWK" || AWK=awk
17063 _ACEOF
17064
17065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17066 # The default lists apply if the user does not specify any file.
17067 ac_need_defaults=:
17068 while test $# != 0
17069 do
17070 case $1 in
17071 --*=?*)
17072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17074 ac_shift=:
17075 ;;
17076 --*=)
17077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17078 ac_optarg=
17079 ac_shift=:
17080 ;;
17081 *)
17082 ac_option=$1
17083 ac_optarg=$2
17084 ac_shift=shift
17085 ;;
17086 esac
17087
17088 case $ac_option in
17089 # Handling of the options.
17090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17091 ac_cs_recheck=: ;;
17092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17093 $as_echo "$ac_cs_version"; exit ;;
17094 --config | --confi | --conf | --con | --co | --c )
17095 $as_echo "$ac_cs_config"; exit ;;
17096 --debug | --debu | --deb | --de | --d | -d )
17097 debug=: ;;
17098 --file | --fil | --fi | --f )
17099 $ac_shift
17100 case $ac_optarg in
17101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17102 '') as_fn_error $? "missing file argument" ;;
17103 esac
17104 as_fn_append CONFIG_FILES " '$ac_optarg'"
17105 ac_need_defaults=false;;
17106 --header | --heade | --head | --hea )
17107 $ac_shift
17108 case $ac_optarg in
17109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17110 esac
17111 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17112 ac_need_defaults=false;;
17113 --he | --h)
17114 # Conflict between --help and --header
17115 as_fn_error $? "ambiguous option: \`$1'
17116 Try \`$0 --help' for more information.";;
17117 --help | --hel | -h )
17118 $as_echo "$ac_cs_usage"; exit ;;
17119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17121 ac_cs_silent=: ;;
17122
17123 # This is an error.
17124 -*) as_fn_error $? "unrecognized option: \`$1'
17125 Try \`$0 --help' for more information." ;;
17126
17127 *) as_fn_append ac_config_targets " $1"
17128 ac_need_defaults=false ;;
17129
17130 esac
17131 shift
17132 done
17133
17134 ac_configure_extra_args=
17135
17136 if $ac_cs_silent; then
17137 exec 6>/dev/null
17138 ac_configure_extra_args="$ac_configure_extra_args --silent"
17139 fi
17140
17141 _ACEOF
17142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17143 if \$ac_cs_recheck; then
17144 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17145 shift
17146 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17147 CONFIG_SHELL='$SHELL'
17148 export CONFIG_SHELL
17149 exec "\$@"
17150 fi
17151
17152 _ACEOF
17153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17154 exec 5>>config.log
17155 {
17156 echo
17157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17158 ## Running $as_me. ##
17159 _ASBOX
17160 $as_echo "$ac_log"
17161 } >&5
17162
17163 _ACEOF
17164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17165 #
17166 # INIT-COMMANDS
17167 #
17168 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
17169
17170
17171 # The HP-UX ksh and POSIX shell print the target directory to stdout
17172 # if CDPATH is set.
17173 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17174
17175 sed_quote_subst='$sed_quote_subst'
17176 double_quote_subst='$double_quote_subst'
17177 delay_variable_subst='$delay_variable_subst'
17178 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17179 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17180 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17181 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17182 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17183 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17184 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17185 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17186 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17187 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17188 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17189 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17190 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17191 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17192 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17193 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17194 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17195 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17196 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17197 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17198 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17199 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17200 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17201 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17202 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17203 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17204 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17205 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17206 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17207 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17208 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17209 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17210 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17211 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17212 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17213 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17214 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17215 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17216 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17217 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17218 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17219 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17220 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17221 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17222 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17223 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17224 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17225 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17226 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17227 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17228 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17229 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17230 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17231 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17232 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17234 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17235 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17236 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"`'
17237 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17238 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17239 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17240 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17241 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17242 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17243 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17244 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17245 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17246 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17247 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17248 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17249 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17250 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17251 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17252 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17253 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17254 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17255 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17256 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17257 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17258 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17259 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17260 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17261 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17262 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17263 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17264 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17265 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17266 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17267 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17268 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17269 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17270 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17271 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17272 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17273 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17274 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17275 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17276 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17277 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17278 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17279 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17280 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17281 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17282 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17283 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17284 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17285 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17286 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17287 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17288 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17289 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17290 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17291 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17292 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17293 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17294 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17295 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17296 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17297 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17298 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17299 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17300 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17301 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17302 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17303 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17304 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17305 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17306 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17307 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17308 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17309 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17310 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17311 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17312 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17313
17314 LTCC='$LTCC'
17315 LTCFLAGS='$LTCFLAGS'
17316 compiler='$compiler_DEFAULT'
17317
17318 # A function that is used when there is no print builtin or printf.
17319 func_fallback_echo ()
17320 {
17321 eval 'cat <<_LTECHO_EOF
17322 \$1
17323 _LTECHO_EOF'
17324 }
17325
17326 # Quote evaled strings.
17327 for var in SHELL \
17328 ECHO \
17329 PATH_SEPARATOR \
17330 SED \
17331 GREP \
17332 EGREP \
17333 FGREP \
17334 LD \
17335 NM \
17336 LN_S \
17337 lt_SP2NL \
17338 lt_NL2SP \
17339 reload_flag \
17340 OBJDUMP \
17341 deplibs_check_method \
17342 file_magic_cmd \
17343 file_magic_glob \
17344 want_nocaseglob \
17345 DLLTOOL \
17346 sharedlib_from_linklib_cmd \
17347 AR \
17348 AR_FLAGS \
17349 archiver_list_spec \
17350 STRIP \
17351 RANLIB \
17352 CC \
17353 CFLAGS \
17354 compiler \
17355 lt_cv_sys_global_symbol_pipe \
17356 lt_cv_sys_global_symbol_to_cdecl \
17357 lt_cv_sys_global_symbol_to_import \
17358 lt_cv_sys_global_symbol_to_c_name_address \
17359 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17360 lt_cv_nm_interface \
17361 nm_file_list_spec \
17362 lt_cv_truncate_bin \
17363 lt_prog_compiler_no_builtin_flag \
17364 lt_prog_compiler_pic \
17365 lt_prog_compiler_wl \
17366 lt_prog_compiler_static \
17367 lt_cv_prog_compiler_c_o \
17368 need_locks \
17369 MANIFEST_TOOL \
17370 DSYMUTIL \
17371 NMEDIT \
17372 LIPO \
17373 OTOOL \
17374 OTOOL64 \
17375 shrext_cmds \
17376 export_dynamic_flag_spec \
17377 whole_archive_flag_spec \
17378 compiler_needs_object \
17379 with_gnu_ld \
17380 allow_undefined_flag \
17381 no_undefined_flag \
17382 hardcode_libdir_flag_spec \
17383 hardcode_libdir_separator \
17384 exclude_expsyms \
17385 include_expsyms \
17386 file_list_spec \
17387 variables_saved_for_relink \
17388 libname_spec \
17389 library_names_spec \
17390 soname_spec \
17391 install_override_mode \
17392 finish_eval \
17393 old_striplib \
17394 striplib; do
17395 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17396 *[\\\\\\\`\\"\\\$]*)
17397 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17398 ;;
17399 *)
17400 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17401 ;;
17402 esac
17403 done
17404
17405 # Double-quote double-evaled strings.
17406 for var in reload_cmds \
17407 old_postinstall_cmds \
17408 old_postuninstall_cmds \
17409 old_archive_cmds \
17410 extract_expsyms_cmds \
17411 old_archive_from_new_cmds \
17412 old_archive_from_expsyms_cmds \
17413 archive_cmds \
17414 archive_expsym_cmds \
17415 module_cmds \
17416 module_expsym_cmds \
17417 export_symbols_cmds \
17418 prelink_cmds \
17419 postlink_cmds \
17420 postinstall_cmds \
17421 postuninstall_cmds \
17422 finish_cmds \
17423 sys_lib_search_path_spec \
17424 configure_time_dlsearch_path \
17425 configure_time_lt_sys_library_path; do
17426 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17427 *[\\\\\\\`\\"\\\$]*)
17428 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17429 ;;
17430 *)
17431 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17432 ;;
17433 esac
17434 done
17435
17436 ac_aux_dir='$ac_aux_dir'
17437
17438 # See if we are running on zsh, and set the options that allow our
17439 # commands through without removal of \ escapes INIT.
17440 if test -n "\${ZSH_VERSION+set}"; then
17441 setopt NO_GLOB_SUBST
17442 fi
17443
17444
17445 PACKAGE='$PACKAGE'
17446 VERSION='$VERSION'
17447 RM='$RM'
17448 ofile='$ofile'
17449
17450
17451
17452
17453 _ACEOF
17454
17455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17456
17457 # Handling of arguments.
17458 for ac_config_target in $ac_config_targets
17459 do
17460 case $ac_config_target in
17461 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17462 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17463 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17464 "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
17465 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17466 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17467 "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
17468 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17469 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
17470 "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
17471 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
17472 "fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES fuzz/Makefile" ;;
17473 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
17474 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
17475 "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
17476 "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
17477 "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
17478 "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
17479 "libxml2-config.cmake") CONFIG_FILES="$CONFIG_FILES libxml2-config.cmake" ;;
17480 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
17481 "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
17482
17483 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17484 esac
17485 done
17486
17487
17488 # If the user did not use the arguments to specify the items to instantiate,
17489 # then the envvar interface is used. Set only those that are not.
17490 # We use the long form for the default assignment because of an extremely
17491 # bizarre bug on SunOS 4.1.3.
17492 if $ac_need_defaults; then
17493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17494 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17496 fi
17497
17498 # Have a temporary directory for convenience. Make it in the build tree
17499 # simply because there is no reason against having it here, and in addition,
17500 # creating and moving files from /tmp can sometimes cause problems.
17501 # Hook for its removal unless debugging.
17502 # Note that there is a small window in which the directory will not be cleaned:
17503 # after its creation but before its name has been assigned to `$tmp'.
17504 $debug ||
17505 {
17506 tmp= ac_tmp=
17507 trap 'exit_status=$?
17508 : "${ac_tmp:=$tmp}"
17509 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17510 ' 0
17511 trap 'as_fn_exit 1' 1 2 13 15
17512 }
17513 # Create a (secure) tmp directory for tmp files.
17514
17515 {
17516 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17517 test -d "$tmp"
17518 } ||
17519 {
17520 tmp=./conf$$-$RANDOM
17521 (umask 077 && mkdir "$tmp")
17522 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17523 ac_tmp=$tmp
17524
17525 # Set up the scripts for CONFIG_FILES section.
17526 # No need to generate them if there are no CONFIG_FILES.
17527 # This happens for instance with `./config.status config.h'.
17528 if test -n "$CONFIG_FILES"; then
17529
17530
17531 ac_cr=`echo X | tr X '\015'`
17532 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17533 # But we know of no other shell where ac_cr would be empty at this
17534 # point, so we can use a bashism as a fallback.
17535 if test "x$ac_cr" = x; then
17536 eval ac_cr=\$\'\\r\'
17537 fi
17538 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17539 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17540 ac_cs_awk_cr='\\r'
17541 else
17542 ac_cs_awk_cr=$ac_cr
17543 fi
17544
17545 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17546 _ACEOF
17547
17548
17549 {
17550 echo "cat >conf$$subs.awk <<_ACEOF" &&
17551 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17552 echo "_ACEOF"
17553 } >conf$$subs.sh ||
17554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17556 ac_delim='%!_!# '
17557 for ac_last_try in false false false false false :; do
17558 . ./conf$$subs.sh ||
17559 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17560
17561 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17562 if test $ac_delim_n = $ac_delim_num; then
17563 break
17564 elif $ac_last_try; then
17565 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17566 else
17567 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17568 fi
17569 done
17570 rm -f conf$$subs.sh
17571
17572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17573 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17574 _ACEOF
17575 sed -n '
17576 h
17577 s/^/S["/; s/!.*/"]=/
17578 p
17579 g
17580 s/^[^!]*!//
17581 :repl
17582 t repl
17583 s/'"$ac_delim"'$//
17584 t delim
17585 :nl
17586 h
17587 s/\(.\{148\}\)..*/\1/
17588 t more1
17589 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17590 p
17591 n
17592 b repl
17593 :more1
17594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17595 p
17596 g
17597 s/.\{148\}//
17598 t nl
17599 :delim
17600 h
17601 s/\(.\{148\}\)..*/\1/
17602 t more2
17603 s/["\\]/\\&/g; s/^/"/; s/$/"/
17604 p
17605 b
17606 :more2
17607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17608 p
17609 g
17610 s/.\{148\}//
17611 t delim
17612 ' <conf$$subs.awk | sed '
17613 /^[^""]/{
17614 N
17615 s/\n//
17616 }
17617 ' >>$CONFIG_STATUS || ac_write_fail=1
17618 rm -f conf$$subs.awk
17619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17620 _ACAWK
17621 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17622 for (key in S) S_is_set[key] = 1
17623 FS = ""
17624
17625 }
17626 {
17627 line = $ 0
17628 nfields = split(line, field, "@")
17629 substed = 0
17630 len = length(field[1])
17631 for (i = 2; i < nfields; i++) {
17632 key = field[i]
17633 keylen = length(key)
17634 if (S_is_set[key]) {
17635 value = S[key]
17636 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17637 len += length(value) + length(field[++i])
17638 substed = 1
17639 } else
17640 len += 1 + keylen
17641 }
17642
17643 print line
17644 }
17645
17646 _ACAWK
17647 _ACEOF
17648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17650 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17651 else
17652 cat
17653 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17654 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17655 _ACEOF
17656
17657 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17658 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17659 # trailing colons and then remove the whole line if VPATH becomes empty
17660 # (actually we leave an empty line to preserve line numbers).
17661 if test "x$srcdir" = x.; then
17662 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17663 h
17664 s///
17665 s/^/:/
17666 s/[ ]*$/:/
17667 s/:\$(srcdir):/:/g
17668 s/:\${srcdir}:/:/g
17669 s/:@srcdir@:/:/g
17670 s/^:*//
17671 s/:*$//
17672 x
17673 s/\(=[ ]*\).*/\1/
17674 G
17675 s/\n//
17676 s/^[^=]*=[ ]*$//
17677 }'
17678 fi
17679
17680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17681 fi # test -n "$CONFIG_FILES"
17682
17683 # Set up the scripts for CONFIG_HEADERS section.
17684 # No need to generate them if there are no CONFIG_HEADERS.
17685 # This happens for instance with `./config.status Makefile'.
17686 if test -n "$CONFIG_HEADERS"; then
17687 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17688 BEGIN {
17689 _ACEOF
17690
17691 # Transform confdefs.h into an awk script `defines.awk', embedded as
17692 # here-document in config.status, that substitutes the proper values into
17693 # config.h.in to produce config.h.
17694
17695 # Create a delimiter string that does not exist in confdefs.h, to ease
17696 # handling of long lines.
17697 ac_delim='%!_!# '
17698 for ac_last_try in false false :; do
17699 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17700 if test -z "$ac_tt"; then
17701 break
17702 elif $ac_last_try; then
17703 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17704 else
17705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17706 fi
17707 done
17708
17709 # For the awk script, D is an array of macro values keyed by name,
17710 # likewise P contains macro parameters if any. Preserve backslash
17711 # newline sequences.
17712
17713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17714 sed -n '
17715 s/.\{148\}/&'"$ac_delim"'/g
17716 t rset
17717 :rset
17718 s/^[ ]*#[ ]*define[ ][ ]*/ /
17719 t def
17720 d
17721 :def
17722 s/\\$//
17723 t bsnl
17724 s/["\\]/\\&/g
17725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17726 D["\1"]=" \3"/p
17727 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17728 d
17729 :bsnl
17730 s/["\\]/\\&/g
17731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17732 D["\1"]=" \3\\\\\\n"\\/p
17733 t cont
17734 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17735 t cont
17736 d
17737 :cont
17738 n
17739 s/.\{148\}/&'"$ac_delim"'/g
17740 t clear
17741 :clear
17742 s/\\$//
17743 t bsnlc
17744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17745 d
17746 :bsnlc
17747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17748 b cont
17749 ' <confdefs.h | sed '
17750 s/'"$ac_delim"'/"\\\
17751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17752
17753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17754 for (key in D) D_is_set[key] = 1
17755 FS = ""
17756 }
17757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17758 line = \$ 0
17759 split(line, arg, " ")
17760 if (arg[1] == "#") {
17761 defundef = arg[2]
17762 mac1 = arg[3]
17763 } else {
17764 defundef = substr(arg[1], 2)
17765 mac1 = arg[2]
17766 }
17767 split(mac1, mac2, "(") #)
17768 macro = mac2[1]
17769 prefix = substr(line, 1, index(line, defundef) - 1)
17770 if (D_is_set[macro]) {
17771 # Preserve the white space surrounding the "#".
17772 print prefix "define", macro P[macro] D[macro]
17773 next
17774 } else {
17775 # Replace #undef with comments. This is necessary, for example,
17776 # in the case of _POSIX_SOURCE, which is predefined and required
17777 # on some systems where configure will not decide to define it.
17778 if (defundef == "undef") {
17779 print "/*", prefix defundef, macro, "*/"
17780 next
17781 }
17782 }
17783 }
17784 { print }
17785 _ACAWK
17786 _ACEOF
17787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17788 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17789 fi # test -n "$CONFIG_HEADERS"
17790
17791
17792 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17793 shift
17794 for ac_tag
17795 do
17796 case $ac_tag in
17797 :[FHLC]) ac_mode=$ac_tag; continue;;
17798 esac
17799 case $ac_mode$ac_tag in
17800 :[FHL]*:*);;
17801 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17802 :[FH]-) ac_tag=-:-;;
17803 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17804 esac
17805 ac_save_IFS=$IFS
17806 IFS=:
17807 set x $ac_tag
17808 IFS=$ac_save_IFS
17809 shift
17810 ac_file=$1
17811 shift
17812
17813 case $ac_mode in
17814 :L) ac_source=$1;;
17815 :[FH])
17816 ac_file_inputs=
17817 for ac_f
17818 do
17819 case $ac_f in
17820 -) ac_f="$ac_tmp/stdin";;
17821 *) # Look for the file first in the build tree, then in the source tree
17822 # (if the path is not absolute). The absolute path cannot be DOS-style,
17823 # because $ac_f cannot contain `:'.
17824 test -f "$ac_f" ||
17825 case $ac_f in
17826 [\\/$]*) false;;
17827 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17828 esac ||
17829 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17830 esac
17831 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17832 as_fn_append ac_file_inputs " '$ac_f'"
17833 done
17834
17835 # Let's still pretend it is `configure' which instantiates (i.e., don't
17836 # use $as_me), people would be surprised to read:
17837 # /* config.h. Generated by config.status. */
17838 configure_input='Generated from '`
17839 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17840 `' by configure.'
17841 if test x"$ac_file" != x-; then
17842 configure_input="$ac_file. $configure_input"
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17844 $as_echo "$as_me: creating $ac_file" >&6;}
17845 fi
17846 # Neutralize special characters interpreted by sed in replacement strings.
17847 case $configure_input in #(
17848 *\&* | *\|* | *\\* )
17849 ac_sed_conf_input=`$as_echo "$configure_input" |
17850 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17851 *) ac_sed_conf_input=$configure_input;;
17852 esac
17853
17854 case $ac_tag in
17855 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17857 esac
17858 ;;
17859 esac
17860
17861 ac_dir=`$as_dirname -- "$ac_file" ||
17862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17863 X"$ac_file" : 'X\(//\)[^/]' \| \
17864 X"$ac_file" : 'X\(//\)$' \| \
17865 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17866 $as_echo X"$ac_file" |
17867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17868 s//\1/
17869 q
17870 }
17871 /^X\(\/\/\)[^/].*/{
17872 s//\1/
17873 q
17874 }
17875 /^X\(\/\/\)$/{
17876 s//\1/
17877 q
17878 }
17879 /^X\(\/\).*/{
17880 s//\1/
17881 q
17882 }
17883 s/.*/./; q'`
17884 as_dir="$ac_dir"; as_fn_mkdir_p
17885 ac_builddir=.
17886
17887 case "$ac_dir" in
17888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17889 *)
17890 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17891 # A ".." for each directory in $ac_dir_suffix.
17892 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17893 case $ac_top_builddir_sub in
17894 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17895 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17896 esac ;;
17897 esac
17898 ac_abs_top_builddir=$ac_pwd
17899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17900 # for backward compatibility:
17901 ac_top_builddir=$ac_top_build_prefix
17902
17903 case $srcdir in
17904 .) # We are building in place.
17905 ac_srcdir=.
17906 ac_top_srcdir=$ac_top_builddir_sub
17907 ac_abs_top_srcdir=$ac_pwd ;;
17908 [\\/]* | ?:[\\/]* ) # Absolute name.
17909 ac_srcdir=$srcdir$ac_dir_suffix;
17910 ac_top_srcdir=$srcdir
17911 ac_abs_top_srcdir=$srcdir ;;
17912 *) # Relative name.
17913 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17914 ac_top_srcdir=$ac_top_build_prefix$srcdir
17915 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17916 esac
17917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17918
17919
17920 case $ac_mode in
17921 :F)
17922 #
17923 # CONFIG_FILE
17924 #
17925
17926 case $INSTALL in
17927 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17928 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17929 esac
17930 ac_MKDIR_P=$MKDIR_P
17931 case $MKDIR_P in
17932 [\\/$]* | ?:[\\/]* ) ;;
17933 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17934 esac
17935 _ACEOF
17936
17937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17938 # If the template does not know about datarootdir, expand it.
17939 # FIXME: This hack should be removed a few years after 2.60.
17940 ac_datarootdir_hack=; ac_datarootdir_seen=
17941 ac_sed_dataroot='
17942 /datarootdir/ {
17943 p
17944 q
17945 }
17946 /@datadir@/p
17947 /@docdir@/p
17948 /@infodir@/p
17949 /@localedir@/p
17950 /@mandir@/p'
17951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17952 *datarootdir*) ac_datarootdir_seen=yes;;
17953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17956 _ACEOF
17957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17958 ac_datarootdir_hack='
17959 s&@datadir@&$datadir&g
17960 s&@docdir@&$docdir&g
17961 s&@infodir@&$infodir&g
17962 s&@localedir@&$localedir&g
17963 s&@mandir@&$mandir&g
17964 s&\\\${datarootdir}&$datarootdir&g' ;;
17965 esac
17966 _ACEOF
17967
17968 # Neutralize VPATH when `$srcdir' = `.'.
17969 # Shell code in configure.ac might set extrasub.
17970 # FIXME: do we really want to maintain this feature?
17971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17972 ac_sed_extra="$ac_vpsub
17973 $extrasub
17974 _ACEOF
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 :t
17977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17978 s|@configure_input@|$ac_sed_conf_input|;t t
17979 s&@top_builddir@&$ac_top_builddir_sub&;t t
17980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17981 s&@srcdir@&$ac_srcdir&;t t
17982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17983 s&@top_srcdir@&$ac_top_srcdir&;t t
17984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17985 s&@builddir@&$ac_builddir&;t t
17986 s&@abs_builddir@&$ac_abs_builddir&;t t
17987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17988 s&@INSTALL@&$ac_INSTALL&;t t
17989 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17990 $ac_datarootdir_hack
17991 "
17992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17993 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17994
17995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17996 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17997 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17998 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18000 which seems to be undefined. Please make sure it is defined" >&5
18001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18002 which seems to be undefined. Please make sure it is defined" >&2;}
18003
18004 rm -f "$ac_tmp/stdin"
18005 case $ac_file in
18006 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18007 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18008 esac \
18009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18010 ;;
18011 :H)
18012 #
18013 # CONFIG_HEADER
18014 #
18015 if test x"$ac_file" != x-; then
18016 {
18017 $as_echo "/* $configure_input */" \
18018 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18019 } >"$ac_tmp/config.h" \
18020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18021 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18023 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18024 else
18025 rm -f "$ac_file"
18026 mv "$ac_tmp/config.h" "$ac_file" \
18027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18028 fi
18029 else
18030 $as_echo "/* $configure_input */" \
18031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18032 || as_fn_error $? "could not create -" "$LINENO" 5
18033 fi
18034 # Compute "$ac_file"'s index in $config_headers.
18035 _am_arg="$ac_file"
18036 _am_stamp_count=1
18037 for _am_header in $config_headers :; do
18038 case $_am_header in
18039 $_am_arg | $_am_arg:* )
18040 break ;;
18041 * )
18042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18043 esac
18044 done
18045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18047 X"$_am_arg" : 'X\(//\)[^/]' \| \
18048 X"$_am_arg" : 'X\(//\)$' \| \
18049 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18050 $as_echo X"$_am_arg" |
18051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18052 s//\1/
18053 q
18054 }
18055 /^X\(\/\/\)[^/].*/{
18056 s//\1/
18057 q
18058 }
18059 /^X\(\/\/\)$/{
18060 s//\1/
18061 q
18062 }
18063 /^X\(\/\).*/{
18064 s//\1/
18065 q
18066 }
18067 s/.*/./; q'`/stamp-h$_am_stamp_count
18068 ;;
18069
18070 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18071 $as_echo "$as_me: executing $ac_file commands" >&6;}
18072 ;;
18073 esac
18074
18075
18076 case $ac_file$ac_mode in
18077 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18078 # Older Autoconf quotes --file arguments for eval, but not when files
18079 # are listed without --file. Let's play safe and only enable the eval
18080 # if we detect the quoting.
18081 # TODO: see whether this extra hack can be removed once we start
18082 # requiring Autoconf 2.70 or later.
18083 case $CONFIG_FILES in #(
18084 *\'*) :
18085 eval set x "$CONFIG_FILES" ;; #(
18086 *) :
18087 set x $CONFIG_FILES ;; #(
18088 *) :
18089 ;;
18090 esac
18091 shift
18092 # Used to flag and report bootstrapping failures.
18093 am_rc=0
18094 for am_mf
18095 do
18096 # Strip MF so we end up with the name of the file.
18097 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
18098 # Check whether this is an Automake generated Makefile which includes
18099 # dependency-tracking related rules and includes.
18100 # Grep'ing the whole file directly is not great: AIX grep has a line
18101 # limit of 2048, but all sed's we know have understand at least 4000.
18102 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
18103 || continue
18104 am_dirpart=`$as_dirname -- "$am_mf" ||
18105 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18106 X"$am_mf" : 'X\(//\)[^/]' \| \
18107 X"$am_mf" : 'X\(//\)$' \| \
18108 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18109 $as_echo X"$am_mf" |
18110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18111 s//\1/
18112 q
18113 }
18114 /^X\(\/\/\)[^/].*/{
18115 s//\1/
18116 q
18117 }
18118 /^X\(\/\/\)$/{
18119 s//\1/
18120 q
18121 }
18122 /^X\(\/\).*/{
18123 s//\1/
18124 q
18125 }
18126 s/.*/./; q'`
18127 am_filepart=`$as_basename -- "$am_mf" ||
18128 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
18129 X"$am_mf" : 'X\(//\)$' \| \
18130 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
18131 $as_echo X/"$am_mf" |
18132 sed '/^.*\/\([^/][^/]*\)\/*$/{
18133 s//\1/
18134 q
18135 }
18136 /^X\/\(\/\/\)$/{
18137 s//\1/
18138 q
18139 }
18140 /^X\/\(\/\).*/{
18141 s//\1/
18142 q
18143 }
18144 s/.*/./; q'`
18145 { echo "$as_me:$LINENO: cd "$am_dirpart" \
18146 && sed -e '/# am--include-marker/d' "$am_filepart" \
18147 | $MAKE -f - am--depfiles" >&5
18148 (cd "$am_dirpart" \
18149 && sed -e '/# am--include-marker/d' "$am_filepart" \
18150 | $MAKE -f - am--depfiles) >&5 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } || am_rc=$?
18154 done
18155 if test $am_rc -ne 0; then
18156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18158 as_fn_error $? "Something went wrong bootstrapping makefile fragments
18159 for automatic dependency tracking. Try re-running configure with the
18160 '--disable-dependency-tracking' option to at least be able to build
18161 the package (albeit without support for automatic dependency tracking).
18162 See \`config.log' for more details" "$LINENO" 5; }
18163 fi
18164 { am_dirpart=; unset am_dirpart;}
18165 { am_filepart=; unset am_filepart;}
18166 { am_mf=; unset am_mf;}
18167 { am_rc=; unset am_rc;}
18168 rm -f conftest-deps.mk
18169 }
18170 ;;
18171 "libtool":C)
18172
18173 # See if we are running on zsh, and set the options that allow our
18174 # commands through without removal of \ escapes.
18175 if test -n "${ZSH_VERSION+set}"; then
18176 setopt NO_GLOB_SUBST
18177 fi
18178
18179 cfgfile=${ofile}T
18180 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18181 $RM "$cfgfile"
18182
18183 cat <<_LT_EOF >> "$cfgfile"
18184 #! $SHELL
18185 # Generated automatically by $as_me ($PACKAGE) $VERSION
18186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18187
18188 # Provide generalized library-building support services.
18189 # Written by Gordon Matzigkeit, 1996
18190
18191 # Copyright (C) 2014 Free Software Foundation, Inc.
18192 # This is free software; see the source for copying conditions. There is NO
18193 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18194
18195 # GNU Libtool is free software; you can redistribute it and/or modify
18196 # it under the terms of the GNU General Public License as published by
18197 # the Free Software Foundation; either version 2 of of the License, or
18198 # (at your option) any later version.
18199 #
18200 # As a special exception to the GNU General Public License, if you
18201 # distribute this file as part of a program or library that is built
18202 # using GNU Libtool, you may include this file under the same
18203 # distribution terms that you use for the rest of that program.
18204 #
18205 # GNU Libtool is distributed in the hope that it will be useful, but
18206 # WITHOUT ANY WARRANTY; without even the implied warranty of
18207 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18208 # GNU General Public License for more details.
18209 #
18210 # You should have received a copy of the GNU General Public License
18211 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18212
18213
18214 # The names of the tagged configurations supported by this script.
18215 available_tags=''
18216
18217 # Configured defaults for sys_lib_dlsearch_path munging.
18218 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18219
18220 # ### BEGIN LIBTOOL CONFIG
18221
18222 # Which release of libtool.m4 was used?
18223 macro_version=$macro_version
18224 macro_revision=$macro_revision
18225
18226 # Whether or not to build shared libraries.
18227 build_libtool_libs=$enable_shared
18228
18229 # Whether or not to build static libraries.
18230 build_old_libs=$enable_static
18231
18232 # What type of objects to build.
18233 pic_mode=$pic_mode
18234
18235 # Whether or not to optimize for fast installation.
18236 fast_install=$enable_fast_install
18237
18238 # Shared archive member basename,for filename based shared library versioning on AIX.
18239 shared_archive_member_spec=$shared_archive_member_spec
18240
18241 # Shell to use when invoking shell scripts.
18242 SHELL=$lt_SHELL
18243
18244 # An echo program that protects backslashes.
18245 ECHO=$lt_ECHO
18246
18247 # The PATH separator for the build system.
18248 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18249
18250 # The host system.
18251 host_alias=$host_alias
18252 host=$host
18253 host_os=$host_os
18254
18255 # The build system.
18256 build_alias=$build_alias
18257 build=$build
18258 build_os=$build_os
18259
18260 # A sed program that does not truncate output.
18261 SED=$lt_SED
18262
18263 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18264 Xsed="\$SED -e 1s/^X//"
18265
18266 # A grep program that handles long lines.
18267 GREP=$lt_GREP
18268
18269 # An ERE matcher.
18270 EGREP=$lt_EGREP
18271
18272 # A literal string matcher.
18273 FGREP=$lt_FGREP
18274
18275 # A BSD- or MS-compatible name lister.
18276 NM=$lt_NM
18277
18278 # Whether we need soft or hard links.
18279 LN_S=$lt_LN_S
18280
18281 # What is the maximum length of a command?
18282 max_cmd_len=$max_cmd_len
18283
18284 # Object file suffix (normally "o").
18285 objext=$ac_objext
18286
18287 # Executable file suffix (normally "").
18288 exeext=$exeext
18289
18290 # whether the shell understands "unset".
18291 lt_unset=$lt_unset
18292
18293 # turn spaces into newlines.
18294 SP2NL=$lt_lt_SP2NL
18295
18296 # turn newlines into spaces.
18297 NL2SP=$lt_lt_NL2SP
18298
18299 # convert \$build file names to \$host format.
18300 to_host_file_cmd=$lt_cv_to_host_file_cmd
18301
18302 # convert \$build files to toolchain format.
18303 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18304
18305 # An object symbol dumper.
18306 OBJDUMP=$lt_OBJDUMP
18307
18308 # Method to check whether dependent libraries are shared objects.
18309 deplibs_check_method=$lt_deplibs_check_method
18310
18311 # Command to use when deplibs_check_method = "file_magic".
18312 file_magic_cmd=$lt_file_magic_cmd
18313
18314 # How to find potential files when deplibs_check_method = "file_magic".
18315 file_magic_glob=$lt_file_magic_glob
18316
18317 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18318 want_nocaseglob=$lt_want_nocaseglob
18319
18320 # DLL creation program.
18321 DLLTOOL=$lt_DLLTOOL
18322
18323 # Command to associate shared and link libraries.
18324 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18325
18326 # The archiver.
18327 AR=$lt_AR
18328
18329 # Flags to create an archive.
18330 AR_FLAGS=$lt_AR_FLAGS
18331
18332 # How to feed a file listing to the archiver.
18333 archiver_list_spec=$lt_archiver_list_spec
18334
18335 # A symbol stripping program.
18336 STRIP=$lt_STRIP
18337
18338 # Commands used to install an old-style archive.
18339 RANLIB=$lt_RANLIB
18340 old_postinstall_cmds=$lt_old_postinstall_cmds
18341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18342
18343 # Whether to use a lock for old archive extraction.
18344 lock_old_archive_extraction=$lock_old_archive_extraction
18345
18346 # A C compiler.
18347 LTCC=$lt_CC
18348
18349 # LTCC compiler flags.
18350 LTCFLAGS=$lt_CFLAGS
18351
18352 # Take the output of nm and produce a listing of raw symbols and C names.
18353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18354
18355 # Transform the output of nm in a proper C declaration.
18356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18357
18358 # Transform the output of nm into a list of symbols to manually relocate.
18359 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18360
18361 # Transform the output of nm in a C name address pair.
18362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18363
18364 # Transform the output of nm in a C name address pair when lib prefix is needed.
18365 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18366
18367 # The name lister interface.
18368 nm_interface=$lt_lt_cv_nm_interface
18369
18370 # Specify filename containing input files for \$NM.
18371 nm_file_list_spec=$lt_nm_file_list_spec
18372
18373 # The root where to search for dependent libraries,and where our libraries should be installed.
18374 lt_sysroot=$lt_sysroot
18375
18376 # Command to truncate a binary pipe.
18377 lt_truncate_bin=$lt_lt_cv_truncate_bin
18378
18379 # The name of the directory that contains temporary libtool files.
18380 objdir=$objdir
18381
18382 # Used to examine libraries when file_magic_cmd begins with "file".
18383 MAGIC_CMD=$MAGIC_CMD
18384
18385 # Must we lock files when doing compilation?
18386 need_locks=$lt_need_locks
18387
18388 # Manifest tool.
18389 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18390
18391 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18392 DSYMUTIL=$lt_DSYMUTIL
18393
18394 # Tool to change global to local symbols on Mac OS X.
18395 NMEDIT=$lt_NMEDIT
18396
18397 # Tool to manipulate fat objects and archives on Mac OS X.
18398 LIPO=$lt_LIPO
18399
18400 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18401 OTOOL=$lt_OTOOL
18402
18403 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18404 OTOOL64=$lt_OTOOL64
18405
18406 # Old archive suffix (normally "a").
18407 libext=$libext
18408
18409 # Shared library suffix (normally ".so").
18410 shrext_cmds=$lt_shrext_cmds
18411
18412 # The commands to extract the exported symbol list from a shared archive.
18413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18414
18415 # Variables whose values should be saved in libtool wrapper scripts and
18416 # restored at link time.
18417 variables_saved_for_relink=$lt_variables_saved_for_relink
18418
18419 # Do we need the "lib" prefix for modules?
18420 need_lib_prefix=$need_lib_prefix
18421
18422 # Do we need a version for libraries?
18423 need_version=$need_version
18424
18425 # Library versioning type.
18426 version_type=$version_type
18427
18428 # Shared library runtime path variable.
18429 runpath_var=$runpath_var
18430
18431 # Shared library path variable.
18432 shlibpath_var=$shlibpath_var
18433
18434 # Is shlibpath searched before the hard-coded library search path?
18435 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18436
18437 # Format of library name prefix.
18438 libname_spec=$lt_libname_spec
18439
18440 # List of archive names. First name is the real one, the rest are links.
18441 # The last name is the one that the linker finds with -lNAME
18442 library_names_spec=$lt_library_names_spec
18443
18444 # The coded name of the library, if different from the real name.
18445 soname_spec=$lt_soname_spec
18446
18447 # Permission mode override for installation of shared libraries.
18448 install_override_mode=$lt_install_override_mode
18449
18450 # Command to use after installation of a shared archive.
18451 postinstall_cmds=$lt_postinstall_cmds
18452
18453 # Command to use after uninstallation of a shared archive.
18454 postuninstall_cmds=$lt_postuninstall_cmds
18455
18456 # Commands used to finish a libtool library installation in a directory.
18457 finish_cmds=$lt_finish_cmds
18458
18459 # As "finish_cmds", except a single script fragment to be evaled but
18460 # not shown.
18461 finish_eval=$lt_finish_eval
18462
18463 # Whether we should hardcode library paths into libraries.
18464 hardcode_into_libs=$hardcode_into_libs
18465
18466 # Compile-time system search path for libraries.
18467 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18468
18469 # Detected run-time system search path for libraries.
18470 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18471
18472 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18473 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18474
18475 # Whether dlopen is supported.
18476 dlopen_support=$enable_dlopen
18477
18478 # Whether dlopen of programs is supported.
18479 dlopen_self=$enable_dlopen_self
18480
18481 # Whether dlopen of statically linked programs is supported.
18482 dlopen_self_static=$enable_dlopen_self_static
18483
18484 # Commands to strip libraries.
18485 old_striplib=$lt_old_striplib
18486 striplib=$lt_striplib
18487
18488
18489 # The linker used to build libraries.
18490 LD=$lt_LD
18491
18492 # How to create reloadable object files.
18493 reload_flag=$lt_reload_flag
18494 reload_cmds=$lt_reload_cmds
18495
18496 # Commands used to build an old-style archive.
18497 old_archive_cmds=$lt_old_archive_cmds
18498
18499 # A language specific compiler.
18500 CC=$lt_compiler
18501
18502 # Is the compiler the GNU compiler?
18503 with_gcc=$GCC
18504
18505 # Compiler flag to turn off builtin functions.
18506 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18507
18508 # Additional compiler flags for building library objects.
18509 pic_flag=$lt_lt_prog_compiler_pic
18510
18511 # How to pass a linker flag through the compiler.
18512 wl=$lt_lt_prog_compiler_wl
18513
18514 # Compiler flag to prevent dynamic linking.
18515 link_static_flag=$lt_lt_prog_compiler_static
18516
18517 # Does compiler simultaneously support -c and -o options?
18518 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18519
18520 # Whether or not to add -lc for building shared libraries.
18521 build_libtool_need_lc=$archive_cmds_need_lc
18522
18523 # Whether or not to disallow shared libs when runtime libs are static.
18524 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18525
18526 # Compiler flag to allow reflexive dlopens.
18527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18528
18529 # Compiler flag to generate shared objects directly from archives.
18530 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18531
18532 # Whether the compiler copes with passing no objects directly.
18533 compiler_needs_object=$lt_compiler_needs_object
18534
18535 # Create an old-style archive from a shared archive.
18536 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18537
18538 # Create a temporary old-style archive to link instead of a shared archive.
18539 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18540
18541 # Commands used to build a shared archive.
18542 archive_cmds=$lt_archive_cmds
18543 archive_expsym_cmds=$lt_archive_expsym_cmds
18544
18545 # Commands used to build a loadable module if different from building
18546 # a shared archive.
18547 module_cmds=$lt_module_cmds
18548 module_expsym_cmds=$lt_module_expsym_cmds
18549
18550 # Whether we are building with GNU ld or not.
18551 with_gnu_ld=$lt_with_gnu_ld
18552
18553 # Flag that allows shared libraries with undefined symbols to be built.
18554 allow_undefined_flag=$lt_allow_undefined_flag
18555
18556 # Flag that enforces no undefined symbols.
18557 no_undefined_flag=$lt_no_undefined_flag
18558
18559 # Flag to hardcode \$libdir into a binary during linking.
18560 # This must work even if \$libdir does not exist
18561 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18562
18563 # Whether we need a single "-rpath" flag with a separated argument.
18564 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18565
18566 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18567 # DIR into the resulting binary.
18568 hardcode_direct=$hardcode_direct
18569
18570 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18571 # DIR into the resulting binary and the resulting library dependency is
18572 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18573 # library is relocated.
18574 hardcode_direct_absolute=$hardcode_direct_absolute
18575
18576 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18577 # into the resulting binary.
18578 hardcode_minus_L=$hardcode_minus_L
18579
18580 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18581 # into the resulting binary.
18582 hardcode_shlibpath_var=$hardcode_shlibpath_var
18583
18584 # Set to "yes" if building a shared library automatically hardcodes DIR
18585 # into the library and all subsequent libraries and executables linked
18586 # against it.
18587 hardcode_automatic=$hardcode_automatic
18588
18589 # Set to yes if linker adds runtime paths of dependent libraries
18590 # to runtime path list.
18591 inherit_rpath=$inherit_rpath
18592
18593 # Whether libtool must link a program against all its dependency libraries.
18594 link_all_deplibs=$link_all_deplibs
18595
18596 # Set to "yes" if exported symbols are required.
18597 always_export_symbols=$always_export_symbols
18598
18599 # The commands to list exported symbols.
18600 export_symbols_cmds=$lt_export_symbols_cmds
18601
18602 # Symbols that should not be listed in the preloaded symbols.
18603 exclude_expsyms=$lt_exclude_expsyms
18604
18605 # Symbols that must always be exported.
18606 include_expsyms=$lt_include_expsyms
18607
18608 # Commands necessary for linking programs (against libraries) with templates.
18609 prelink_cmds=$lt_prelink_cmds
18610
18611 # Commands necessary for finishing linking programs.
18612 postlink_cmds=$lt_postlink_cmds
18613
18614 # Specify filename containing input files.
18615 file_list_spec=$lt_file_list_spec
18616
18617 # How to hardcode a shared library path into an executable.
18618 hardcode_action=$hardcode_action
18619
18620 # ### END LIBTOOL CONFIG
18621
18622 _LT_EOF
18623
18624 cat <<'_LT_EOF' >> "$cfgfile"
18625
18626 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18627
18628 # func_munge_path_list VARIABLE PATH
18629 # -----------------------------------
18630 # VARIABLE is name of variable containing _space_ separated list of
18631 # directories to be munged by the contents of PATH, which is string
18632 # having a format:
18633 # "DIR[:DIR]:"
18634 # string "DIR[ DIR]" will be prepended to VARIABLE
18635 # ":DIR[:DIR]"
18636 # string "DIR[ DIR]" will be appended to VARIABLE
18637 # "DIRP[:DIRP]::[DIRA:]DIRA"
18638 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18639 # "DIRA[ DIRA]" will be appended to VARIABLE
18640 # "DIR[:DIR]"
18641 # VARIABLE will be replaced by "DIR[ DIR]"
18642 func_munge_path_list ()
18643 {
18644 case x$2 in
18645 x)
18646 ;;
18647 *:)
18648 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18649 ;;
18650 x:*)
18651 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18652 ;;
18653 *::*)
18654 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18655 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18656 ;;
18657 *)
18658 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18659 ;;
18660 esac
18661 }
18662
18663
18664 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18665 func_cc_basename ()
18666 {
18667 for cc_temp in $*""; do
18668 case $cc_temp in
18669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18671 \-*) ;;
18672 *) break;;
18673 esac
18674 done
18675 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18676 }
18677
18678
18679 # ### END FUNCTIONS SHARED WITH CONFIGURE
18680
18681 _LT_EOF
18682
18683 case $host_os in
18684 aix3*)
18685 cat <<\_LT_EOF >> "$cfgfile"
18686 # AIX sometimes has problems with the GCC collect2 program. For some
18687 # reason, if we set the COLLECT_NAMES environment variable, the problems
18688 # vanish in a puff of smoke.
18689 if test set != "${COLLECT_NAMES+set}"; then
18690 COLLECT_NAMES=
18691 export COLLECT_NAMES
18692 fi
18693 _LT_EOF
18694 ;;
18695 esac
18696
18697
18698 ltmain=$ac_aux_dir/ltmain.sh
18699
18700
18701 # We use sed instead of cat because bash on DJGPP gets confused if
18702 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18703 # text mode, it properly converts lines to CR/LF. This bash problem
18704 # is reportedly fixed, but why not run on old versions too?
18705 sed '$q' "$ltmain" >> "$cfgfile" \
18706 || (rm -f "$cfgfile"; exit 1)
18707
18708 mv -f "$cfgfile" "$ofile" ||
18709 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18710 chmod +x "$ofile"
18711
18712 ;;
18713 "python/setup.py":F) chmod +x python/setup.py ;;
18714 "xml2-config":F) chmod +x xml2-config ;;
18715
18716 esac
18717 done # for ac_tag
18718
18719
18720 as_fn_exit 0
18721 _ACEOF
18722 ac_clean_files=$ac_clean_files_save
18723
18724 test $ac_write_fail = 0 ||
18725 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18726
18727
18728 # configure is writing to config.log, and then calls config.status.
18729 # config.status does its own redirection, appending to config.log.
18730 # Unfortunately, on DOS this fails, as config.log is still kept open
18731 # by configure, so config.status won't be able to write to it; its
18732 # output is simply discarded. So we exec the FD to /dev/null,
18733 # effectively closing config.log, so it can be properly (re)opened and
18734 # appended to by config.status. When coming back to configure, we
18735 # need to make the FD available again.
18736 if test "$no_create" != yes; then
18737 ac_cs_success=:
18738 ac_config_status_args=
18739 test "$silent" = yes &&
18740 ac_config_status_args="$ac_config_status_args --quiet"
18741 exec 5>/dev/null
18742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18743 exec 5>>config.log
18744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18745 # would make configure fail if this is the last instruction.
18746 $ac_cs_success || as_fn_exit 1
18747 fi
18748 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18750 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18751 fi
18752
18753
18754 echo Done configuring