VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.4/configure@ 70563

最後變更 在這個檔案從70563是 65950,由 vboxsync 提交於 8 年 前

libxml 2.9.4: fix export

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
檔案大小: 528.3 KB
 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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'
70fi
71
72# The user is always right.
73if 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 }
79fi
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
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
100IFS=$as_save_IFS
101
102 ;;
103esac
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.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
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.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export 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.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $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
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if 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
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -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
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
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
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
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
242fi; }
243IFS=$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.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $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
265exit 255
266fi
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
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_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.
313as_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.
323as_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.
371as_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.
381if (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 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # 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.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # 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.
416as_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
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_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.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_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
508ECHO_C= ECHO_N= ECHO_T=
509case `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';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (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
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_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.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 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.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
593PACKAGE_URL=
594
595ac_unique_file="entities.c"
596# Factoring default headers for most tests.
597ac_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
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636PYTHON_TESTS
637RELDATE
638RDL_LIBS
639M_LIBS
640PYTHON_SITE_PACKAGES
641PYTHON_INCLUDES
642PYTHON_VERSION
643HAVE_ISINF
644HAVE_ISNAN
645XML_INCLUDEDIR
646ICONV_LIBS
647XML_LIBTOOLLIBS
648XML_LIBS
649XML_LIBDIR
650XML_CFLAGS
651CYGWIN_EXTRA_PYTHON_LIBADD
652CYGWIN_EXTRA_LDFLAGS
653WIN32_EXTRA_PYTHON_LIBADD
654WIN32_EXTRA_LDFLAGS
655WIN32_EXTRA_LIBADD
656WITH_RUN_DEBUG
657WITH_MEM_DEBUG
658TEST_DEBUG
659DEBUG_OBJ
660WITH_DEBUG
661TEST_REGEXPS
662WITH_REGEXPS
663TEST_SCHEMAS
664WITH_SCHEMAS
665WITH_ISO8859X
666WITH_ICU
667ICU_LIBS
668ICU_CFLAGS
669WITH_ICONV
670WITH_OUTPUT
671TEST_XPATH
672XPATH_OBJ
673WITH_XPATH
674TEST_SCHEMATRON
675WITH_SCHEMATRON
676TEST_XINCLUDE
677XINCLUDE_OBJ
678WITH_XINCLUDE
679TEST_C14N
680C14N_OBJ
681WITH_C14N
682TEST_XPTR
683XPTR_OBJ
684WITH_XPTR
685DOCB_OBJ
686WITH_DOCB
687TEST_CATALOG
688CATALOG_OBJ
689WITH_CATALOG
690TEST_VTIME
691TEST_VALID
692WITH_VALID
693TEST_PHTML
694TEST_HTML
695HTML_OBJ
696WITH_HTML
697TEST_PUSH
698WITH_PUSH
699TEST_SAX
700WITH_SAX1_SOURCES_FALSE
701WITH_SAX1_SOURCES_TRUE
702WITH_SAX1
703TEST_PATTERN
704WITH_PATTERN
705WITH_WRITER
706READER_TEST
707WITH_READER
708WITH_LEGACY
709HTTP_OBJ
710WITH_HTTP
711FTP_OBJ
712WITH_FTP
713WITH_TREE
714THREADS_W32_FALSE
715THREADS_W32_TRUE
716WITH_THREAD_ALLOC
717TEST_THREADS
718THREAD_CFLAGS
719WITH_THREADS
720BASE_THREAD_LIBS
721THREAD_LIBS
722WITH_TRIO
723WITH_TRIO_SOURCES_FALSE
724WITH_TRIO_SOURCES_TRUE
725STATIC_BINARIES
726TEST_MODULES
727MODULE_EXTENSION
728MODULE_PLATFORM_LIBS
729WITH_MODULES
730PYTHON_LIBS
731PYTHON_SUBDIR
732pythondir
733WITH_PYTHON_FALSE
734WITH_PYTHON_TRUE
735PYTHON
736WITH_LZMA
737LZMA_LIBS
738LZMA_CFLAGS
739WITH_ZLIB
740Z_LIBS
741Z_CFLAGS
742REBUILD_DOCS_FALSE
743REBUILD_DOCS_TRUE
744HTML_DIR
745USE_VERSION_SCRIPT_FALSE
746USE_VERSION_SCRIPT_TRUE
747VERSION_SCRIPT_FLAGS
748LT_SYS_LIBRARY_PATH
749OTOOL64
750OTOOL
751LIPO
752NMEDIT
753DSYMUTIL
754MANIFEST_TOOL
755RANLIB
756ac_ct_AR
757AR
758DLLTOOL
759OBJDUMP
760NM
761ac_ct_DUMPBIN
762DUMPBIN
763LD
764FGREP
765EGREP
766GREP
767SED
768LIBTOOL
769PKG_CONFIG_LIBDIR
770PKG_CONFIG_PATH
771PKG_CONFIG
772XSLTPROC
773XMLLINT
774WGET
775PERL
776TAR
777MV
778CPP
779LN_S
780am__fastdepCC_FALSE
781am__fastdepCC_TRUE
782CCDEPMODE
783am__nodep
784AMDEPBACKSLASH
785AMDEP_FALSE
786AMDEP_TRUE
787am__quote
788am__include
789DEPDIR
790OBJEXT
791EXEEXT
792ac_ct_CC
793CPPFLAGS
794LDFLAGS
795CFLAGS
796CC
797AM_BACKSLASH
798AM_DEFAULT_VERBOSITY
799AM_DEFAULT_V
800AM_V
801am__untar
802am__tar
803AMTAR
804am__leading_dot
805SET_MAKE
806AWK
807mkdir_p
808MKDIR_P
809INSTALL_STRIP_PROGRAM
810STRIP
811install_sh
812MAKEINFO
813AUTOHEADER
814AUTOMAKE
815AUTOCONF
816ACLOCAL
817VERSION
818PACKAGE
819CYGPATH_W
820am__isrc
821INSTALL_DATA
822INSTALL_SCRIPT
823INSTALL_PROGRAM
824LIBXML_VERSION_EXTRA
825LIBXML_VERSION_NUMBER
826LIBXML_VERSION_INFO
827LIBXML_VERSION
828LIBXML_MICRO_VERSION
829LIBXML_MINOR_VERSION
830LIBXML_MAJOR_VERSION
831host_os
832host_vendor
833host_cpu
834host
835build_os
836build_vendor
837build_cpu
838build
839MAINT
840MAINTAINER_MODE_FALSE
841MAINTAINER_MODE_TRUE
842target_alias
843host_alias
844build_alias
845LIBS
846ECHO_T
847ECHO_N
848ECHO_C
849DEFS
850mandir
851localedir
852libdir
853psdir
854pdfdir
855dvidir
856htmldir
857infodir
858docdir
859oldincludedir
860includedir
861localstatedir
862sharedstatedir
863sysconfdir
864datadir
865datarootdir
866libexecdir
867sbindir
868bindir
869program_transform_name
870prefix
871exec_prefix
872PACKAGE_URL
873PACKAGE_BUGREPORT
874PACKAGE_STRING
875PACKAGE_VERSION
876PACKAGE_TARNAME
877PACKAGE_NAME
878PATH_SEPARATOR
879SHELL'
880ac_subst_files=''
881ac_user_opts='
882enable_option_checking
883enable_maintainer_mode
884enable_silent_rules
885enable_dependency_tracking
886enable_shared
887enable_static
888with_pic
889enable_fast_install
890with_aix_soname
891with_gnu_ld
892with_sysroot
893enable_libtool_lock
894with_c14n
895with_catalog
896with_debug
897with_docbook
898with_fexceptions
899with_ftp
900with_history
901with_html
902with_html_dir
903with_html_subdir
904with_http
905with_iconv
906with_icu
907with_iso8859x
908with_legacy
909with_mem_debug
910with_minimum
911with_output
912with_pattern
913with_push
914with_python
915with_python_install_dir
916with_reader
917with_readline
918with_regexps
919with_run_debug
920with_sax1
921with_schemas
922with_schematron
923with_threads
924with_thread_alloc
925with_tree
926with_valid
927with_writer
928with_xinclude
929with_xpath
930with_xptr
931with_modules
932with_zlib
933with_lzma
934with_coverage
935enable_rebuild_docs
936enable_ipv6
937'
938 ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944LIBS
945CPPFLAGS
946CPP
947PKG_CONFIG
948PKG_CONFIG_PATH
949PKG_CONFIG_LIBDIR
950LT_SYS_LIBRARY_PATH
951Z_CFLAGS
952Z_LIBS
953LZMA_CFLAGS
954LZMA_LIBS
955ICU_CFLAGS
956ICU_LIBS'
957
958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
962ac_unrecognized_opts=
963ac_unrecognized_sep=
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
986# (The list follows the same order as the GNU Coding Standards.)
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
997docdir='${datarootdir}/doc/${PACKAGE}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
1006
1007ac_prev=
1008ac_dashdash=
1009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1014 ac_prev=
1015 continue
1016 fi
1017
1018 case $ac_option in
1019 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *=) ac_optarg= ;;
1021 *) ac_optarg=yes ;;
1022 esac
1023
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
1029
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1034
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1049
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1054
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1070 *"
1071"enable_$ac_useropt"
1072"*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1087
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1096 *"
1097"enable_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1123
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1128
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1158
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1175
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1196
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1232
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1252
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1263
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1268
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1273
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1280
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1285
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1288
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1291
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301"with_$ac_useropt"
1302"*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1307
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1316 *"
1317"with_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1323
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1327
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1334
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1341
1342 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343Try \`$0 --help' for more information"
1344 ;;
1345
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1355
1356 *)
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1362 ;;
1363
1364 esac
1365done
1366
1367if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error $? "missing argument to $ac_option"
1370fi
1371
1372if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1378fi
1379
1380# Check all directory arguments for consistency.
1381for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1385do
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1399done
1400
1401# There might be people who depend on the old broken behavior: `$host'
1402# used to hold the argument of --host etc.
1403# FIXME: To remove some day.
1404build=$build_alias
1405host=$host_alias
1406target=$target_alias
1407
1408# FIXME: To remove some day.
1409if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 elif test "x$build_alias" != "x$host_alias"; then
1413 cross_compiling=yes
1414 fi
1415fi
1416
1417ac_tool_prefix=
1418test -n "$host_alias" && ac_tool_prefix=$host_alias-
1419
1420test "$silent" = yes && exec 6>/dev/null
1421
1422
1423ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424ac_ls_di=`ls -di .` &&
1425ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error $? "working directory cannot be determined"
1427test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error $? "pwd does not report name of working directory"
1429
1430
1431# Find the source files, if location was not specified.
1432if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440$as_echo X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)[^/].*/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\/\)$/{
1450 s//\1/
1451 q
1452 }
1453 /^X\(\/\).*/{
1454 s//\1/
1455 q
1456 }
1457 s/.*/./; q'`
1458 srcdir=$ac_confdir
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1460 srcdir=..
1461 fi
1462else
1463 ac_srcdir_defaulted=no
1464fi
1465if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1468fi
1469ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1470ac_abs_confdir=`(
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1472 pwd)`
1473# When building in place, set srcdir=.
1474if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 srcdir=.
1476fi
1477# Remove unnecessary trailing slashes from srcdir.
1478# Double slashes in file names in object file debugging info
1479# mess up M-x gdb in Emacs.
1480case $srcdir in
1481*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482esac
1483for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488done
1489
1490#
1491# Report the --help message.
1492#
1493if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1496 cat <<_ACEOF
1497\`configure' configures this package to adapt to many kinds of systems.
1498
1499Usage: $0 [OPTION]... [VAR=VALUE]...
1500
1501To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502VAR=VALUE. See below for descriptions of some of the useful variables.
1503
1504Defaults for the options are specified in brackets.
1505
1506Configuration:
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking ...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516
1517Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 [PREFIX]
1522
1523By default, \`make install' will install all the files in
1524\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526for instance \`--prefix=\$HOME'.
1527
1528For better control, use the options below.
1529
1530Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --libdir=DIR object code libraries [EPREFIX/lib]
1538 --includedir=DIR C header files [PREFIX/include]
1539 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1542 --infodir=DIR info documentation [DATAROOTDIR/info]
1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1544 --mandir=DIR man documentation [DATAROOTDIR/man]
1545 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1546 --htmldir=DIR html documentation [DOCDIR]
1547 --dvidir=DIR dvi documentation [DOCDIR]
1548 --pdfdir=DIR pdf documentation [DOCDIR]
1549 --psdir=DIR ps documentation [DOCDIR]
1550_ACEOF
1551
1552 cat <<\_ACEOF
1553
1554Program names:
1555 --program-prefix=PREFIX prepend PREFIX to installed program names
1556 --program-suffix=SUFFIX append SUFFIX to installed program names
1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558
1559System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562_ACEOF
1563fi
1564
1565if test -n "$ac_init_help"; then
1566
1567 cat <<\_ACEOF
1568
1569Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --disable-maintainer-mode
1574 disable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-silent-rules less verbose build output (undo: "make V=1")
1577 --disable-silent-rules verbose build output (undo: "make V=0")
1578 --enable-dependency-tracking
1579 do not reject slow dependency extractors
1580 --disable-dependency-tracking
1581 speeds up one-time build
1582 --enable-shared[=PKGS] build shared libraries [default=yes]
1583 --enable-static[=PKGS] build static libraries [default=yes]
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation [default=yes]
1586 --disable-libtool-lock avoid locking (might break parallel builds)
1587 --enable-rebuild-docs[=yes/no] rebuild some generated docs [default=no]
1588 --enable-ipv6[=yes/no] enables compilation of IPv6 code [default=yes]
1589
1590Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1594 both]
1595 --with-aix-soname=aix|svr4|both
1596 shared library versioning (aka "SONAME") variant to
1597 provide on AIX, [default=aix].
1598 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1599 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1600 compiler's sysroot if not specified).
1601 --with-c14n add the Canonicalization support (on)
1602 --with-catalog add the Catalog support (on)
1603 --with-debug add the debugging module (on)
1604 --with-docbook add Docbook SGML support (on)
1605 --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)
1606 --with-ftp add the FTP support (on)
1607 --with-history add history support to xmllint shell(off)
1608 --with-html add the HTML support (on)
1609 --with-html-dir=path path to base html directory, default
1610 $datadir/doc/html
1611 --with-html-subdir=path directory used under html-dir, default
1612 $PACKAGE-$VERSION/html
1613 --with-http add the HTTP support (on)
1614 --with-iconv[=DIR] add ICONV support (on)
1615 --with-icu add ICU support (off)
1616 --with-iso8859x add ISO8859X support if no iconv (on)
1617 --with-legacy add deprecated APIs for compatibility (on)
1618 --with-mem-debug add the memory debugging module (off)
1619 --with-minimum build a minimally sized library (off)
1620 --with-output add the serialization support (on)
1621 --with-pattern add the xmlPattern selection interface (on)
1622 --with-push add the PUSH parser interfaces (on)
1623 --with-python[=DIR] build Python bindings if found
1624 --with-python-install-dir=DIR
1625 install Python bindings in DIR
1626 --with-reader add the xmlReader parsing interface (on)
1627 --with-readline=DIR use readline in DIR
1628 --with-regexps add Regular Expressions support (on)
1629 --with-run-debug add the runtime debugging module (off)
1630 --with-sax1 add the older SAX1 interface (on)
1631 --with-schemas add Relax-NG and Schemas support (on)
1632 --with-schematron add Schematron support (on)
1633 --with-threads add multithread support(on)
1634 --with-thread-alloc add per-thread memory(off)
1635 --with-tree add the DOM like tree manipulation APIs (on)
1636 --with-valid add the DTD validation support (on)
1637 --with-writer add the xmlWriter saving interface (on)
1638 --with-xinclude add the XInclude support (on)
1639 --with-xpath add the XPATH support (on)
1640 --with-xptr add the XPointer support (on)
1641 --with-modules add the dynamic modules support (on)
1642 --with-zlib[=DIR] use libz in DIR
1643 --with-lzma[=DIR] use liblzma in DIR
1644 --with-coverage build for code coverage with GCC (off)
1645
1646Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1654 CPP C preprocessor
1655 PKG_CONFIG path to pkg-config utility
1656 PKG_CONFIG_PATH
1657 directories to add to pkg-config's search path
1658 PKG_CONFIG_LIBDIR
1659 path overriding pkg-config's built-in search path
1660 LT_SYS_LIBRARY_PATH
1661 User-defined run-time library search path.
1662 Z_CFLAGS C compiler flags for Z, overriding pkg-config
1663 Z_LIBS linker flags for Z, overriding pkg-config
1664 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1665 LZMA_LIBS linker flags for LZMA, overriding pkg-config
1666 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1667 ICU_LIBS linker flags for ICU, overriding pkg-config
1668
1669Use these variables to override the choices made by `configure' or to help
1670it to find libraries and programs with nonstandard names/locations.
1671
1672Report bugs to the package provider.
1673_ACEOF
1674ac_status=$?
1675fi
1676
1677if test "$ac_init_help" = "recursive"; then
1678 # If there are subdirs, report their specific --help.
1679 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680 test -d "$ac_dir" ||
1681 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1682 continue
1683 ac_builddir=.
1684
1685case "$ac_dir" in
1686.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687*)
1688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1689 # A ".." for each directory in $ac_dir_suffix.
1690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1691 case $ac_top_builddir_sub in
1692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1694 esac ;;
1695esac
1696ac_abs_top_builddir=$ac_pwd
1697ac_abs_builddir=$ac_pwd$ac_dir_suffix
1698# for backward compatibility:
1699ac_top_builddir=$ac_top_build_prefix
1700
1701case $srcdir in
1702 .) # We are building in place.
1703 ac_srcdir=.
1704 ac_top_srcdir=$ac_top_builddir_sub
1705 ac_abs_top_srcdir=$ac_pwd ;;
1706 [\\/]* | ?:[\\/]* ) # Absolute name.
1707 ac_srcdir=$srcdir$ac_dir_suffix;
1708 ac_top_srcdir=$srcdir
1709 ac_abs_top_srcdir=$srcdir ;;
1710 *) # Relative name.
1711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1712 ac_top_srcdir=$ac_top_build_prefix$srcdir
1713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1714esac
1715ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1716
1717 cd "$ac_dir" || { ac_status=$?; continue; }
1718 # Check for guested configure.
1719 if test -f "$ac_srcdir/configure.gnu"; then
1720 echo &&
1721 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1722 elif test -f "$ac_srcdir/configure"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure" --help=recursive
1725 else
1726 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1727 fi || ac_status=$?
1728 cd "$ac_pwd" || { ac_status=$?; break; }
1729 done
1730fi
1731
1732test -n "$ac_init_help" && exit $ac_status
1733if $ac_init_version; then
1734 cat <<\_ACEOF
1735configure
1736generated by GNU Autoconf 2.69
1737
1738Copyright (C) 2012 Free Software Foundation, Inc.
1739This configure script is free software; the Free Software Foundation
1740gives unlimited permission to copy, distribute and modify it.
1741_ACEOF
1742 exit
1743fi
1744
1745## ------------------------ ##
1746## Autoconf initialization. ##
1747## ------------------------ ##
1748
1749# ac_fn_c_try_compile LINENO
1750# --------------------------
1751# Try to compile conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_c_try_compile ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1775 ac_retval=0
1776else
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781fi
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_compile
1786
1787# ac_fn_c_try_cpp LINENO
1788# ----------------------
1789# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_cpp ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1794case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_cpp
1823
1824# ac_fn_c_try_link LINENO
1825# -----------------------
1826# Try to link conftest.$ac_ext, and return whether this succeeded.
1827ac_fn_c_try_link ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest$ac_exeext
1831 if { { ac_try="$ac_link"
1832case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
1851 test -x conftest$ac_exeext
1852 }; then :
1853 ac_retval=0
1854else
1855 $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1
1859fi
1860 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862 # interfere with the next link command; also delete a directory that is
1863 # left behind by Apple's compiler. We do this before executing the actions.
1864 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1867
1868} # ac_fn_c_try_link
1869
1870# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1871# -------------------------------------------------------
1872# Tests whether HEADER exists and can be compiled using the include files in
1873# INCLUDES, setting the cache variable VAR accordingly.
1874ac_fn_c_check_header_compile ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878$as_echo_n "checking for $2... " >&6; }
1879if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1881else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883/* end confdefs.h. */
1884$4
1885#include <$2>
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"; then :
1888 eval "$3=yes"
1889else
1890 eval "$3=no"
1891fi
1892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893fi
1894eval ac_res=\$$3
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1896$as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898
1899} # ac_fn_c_check_header_compile
1900
1901# ac_fn_c_try_run LINENO
1902# ----------------------
1903# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1904# that executables *can* be run.
1905ac_fn_c_try_run ()
1906{
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if { { ac_try="$ac_link"
1909case "(($ac_try" in
1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911 *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915 (eval "$ac_link") 2>&5
1916 ac_status=$?
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1919 { { case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_try") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; }; }; then :
1929 ac_retval=0
1930else
1931 $as_echo "$as_me: program exited with status $ac_status" >&5
1932 $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935 ac_retval=$ac_status
1936fi
1937 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 as_fn_set_status $ac_retval
1940
1941} # ac_fn_c_try_run
1942
1943# ac_fn_c_check_func LINENO FUNC VAR
1944# ----------------------------------
1945# Tests whether FUNC exists, setting the cache variable VAR accordingly
1946ac_fn_c_check_func ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
1951if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1958#define $2 innocuous_$2
1959
1960/* System header to define __stub macros and hopefully few prototypes,
1961 which can conflict with char $2 (); below.
1962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1963 <limits.h> exists even on freestanding compilers. */
1964
1965#ifdef __STDC__
1966# include <limits.h>
1967#else
1968# include <assert.h>
1969#endif
1970
1971#undef $2
1972
1973/* Override any GCC internal prototype to avoid an error.
1974 Use char because int might match the return type of a GCC
1975 builtin and then its argument prototype would still apply. */
1976#ifdef __cplusplus
1977extern "C"
1978#endif
1979char $2 ();
1980/* The GNU C library defines this for functions which it implements
1981 to always fail with ENOSYS. Some functions are actually named
1982 something starting with __ and the normal name is an alias. */
1983#if defined __stub_$2 || defined __stub___$2
1984choke me
1985#endif
1986
1987int
1988main ()
1989{
1990return $2 ();
1991 ;
1992 return 0;
1993}
1994_ACEOF
1995if ac_fn_c_try_link "$LINENO"; then :
1996 eval "$3=yes"
1997else
1998 eval "$3=no"
1999fi
2000rm -f core conftest.err conftest.$ac_objext \
2001 conftest$ac_exeext conftest.$ac_ext
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007
2008} # ac_fn_c_check_func
2009
2010# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2011# -------------------------------------------------------
2012# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2013# the include files in INCLUDES and setting the cache variable VAR
2014# accordingly.
2015ac_fn_c_check_header_mongrel ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if eval \${$3+:} false; then :
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023fi
2024eval ac_res=\$$3
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026$as_echo "$ac_res" >&6; }
2027else
2028 # Is the header compilable?
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2030$as_echo_n "checking $2 usability... " >&6; }
2031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032/* end confdefs.h. */
2033$4
2034#include <$2>
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_header_compiler=yes
2038else
2039 ac_header_compiler=no
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2043$as_echo "$ac_header_compiler" >&6; }
2044
2045# Is the header present?
2046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2047$as_echo_n "checking $2 presence... " >&6; }
2048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050#include <$2>
2051_ACEOF
2052if ac_fn_c_try_cpp "$LINENO"; then :
2053 ac_header_preproc=yes
2054else
2055 ac_header_preproc=no
2056fi
2057rm -f conftest.err conftest.i conftest.$ac_ext
2058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2059$as_echo "$ac_header_preproc" >&6; }
2060
2061# So? What about this header?
2062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2063 yes:no: )
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2065$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2067$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 ;;
2069 no:yes:* )
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2071$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2073$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2075$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2077$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2080 ;;
2081esac
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083$as_echo_n "checking for $2... " >&6; }
2084if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086else
2087 eval "$3=\$ac_header_compiler"
2088fi
2089eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092fi
2093 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094
2095} # ac_fn_c_check_header_mongrel
2096
2097# ac_fn_c_find_uintX_t LINENO BITS VAR
2098# ------------------------------------
2099# Finds an unsigned integer type with width BITS, setting cache variable VAR
2100# accordingly.
2101ac_fn_c_find_uintX_t ()
2102{
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2105$as_echo_n "checking for uint$2_t... " >&6; }
2106if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2108else
2109 eval "$3=no"
2110 # Order is important - never check a type that is potentially smaller
2111 # than half of the expected target width.
2112 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2113 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115/* end confdefs.h. */
2116$ac_includes_default
2117int
2118main ()
2119{
2120static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2121test_array [0] = 0;
2122return test_array [0];
2123
2124 ;
2125 return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129 case $ac_type in #(
2130 uint$2_t) :
2131 eval "$3=yes" ;; #(
2132 *) :
2133 eval "$3=\$ac_type" ;;
2134esac
2135fi
2136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2137 if eval test \"x\$"$3"\" = x"no"; then :
2138
2139else
2140 break
2141fi
2142 done
2143fi
2144eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146$as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148
2149} # ac_fn_c_find_uintX_t
2150cat >config.log <<_ACEOF
2151This file contains any messages produced by compilers while
2152running configure, to aid debugging if configure makes a mistake.
2153
2154It was created by $as_me, which was
2155generated by GNU Autoconf 2.69. Invocation command line was
2156
2157 $ $0 $@
2158
2159_ACEOF
2160exec 5>>config.log
2161{
2162cat <<_ASUNAME
2163## --------- ##
2164## Platform. ##
2165## --------- ##
2166
2167hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2168uname -m = `(uname -m) 2>/dev/null || echo unknown`
2169uname -r = `(uname -r) 2>/dev/null || echo unknown`
2170uname -s = `(uname -s) 2>/dev/null || echo unknown`
2171uname -v = `(uname -v) 2>/dev/null || echo unknown`
2172
2173/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2174/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2175
2176/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2177/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2178/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2179/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2180/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2181/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2182/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2183
2184_ASUNAME
2185
2186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 $as_echo "PATH: $as_dir"
2192 done
2193IFS=$as_save_IFS
2194
2195} >&5
2196
2197cat >&5 <<_ACEOF
2198
2199
2200## ----------- ##
2201## Core tests. ##
2202## ----------- ##
2203
2204_ACEOF
2205
2206
2207# Keep a trace of the command line.
2208# Strip out --no-create and --no-recursion so they do not pile up.
2209# Strip out --silent because we don't want to record it for future runs.
2210# Also quote any args containing shell meta-characters.
2211# Make two passes to allow for proper duplicate-argument suppression.
2212ac_configure_args=
2213ac_configure_args0=
2214ac_configure_args1=
2215ac_must_keep_next=false
2216for ac_pass in 1 2
2217do
2218 for ac_arg
2219 do
2220 case $ac_arg in
2221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2223 | -silent | --silent | --silen | --sile | --sil)
2224 continue ;;
2225 *\'*)
2226 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 esac
2228 case $ac_pass in
2229 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2230 2)
2231 as_fn_append ac_configure_args1 " '$ac_arg'"
2232 if test $ac_must_keep_next = true; then
2233 ac_must_keep_next=false # Got value, back to normal.
2234 else
2235 case $ac_arg in
2236 *=* | --config-cache | -C | -disable-* | --disable-* \
2237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2239 | -with-* | --with-* | -without-* | --without-* | --x)
2240 case "$ac_configure_args0 " in
2241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2242 esac
2243 ;;
2244 -* ) ac_must_keep_next=true ;;
2245 esac
2246 fi
2247 as_fn_append ac_configure_args " '$ac_arg'"
2248 ;;
2249 esac
2250 done
2251done
2252{ ac_configure_args0=; unset ac_configure_args0;}
2253{ ac_configure_args1=; unset ac_configure_args1;}
2254
2255# When interrupted or exit'd, cleanup temporary files, and complete
2256# config.log. We remove comments because anyway the quotes in there
2257# would cause problems or look ugly.
2258# WARNING: Use '\'' to represent an apostrophe within the trap.
2259# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2260trap 'exit_status=$?
2261 # Save into config.log some information that might help in debugging.
2262 {
2263 echo
2264
2265 $as_echo "## ---------------- ##
2266## Cache variables. ##
2267## ---------------- ##"
2268 echo
2269 # The following way of writing the cache mishandles newlines in values,
2270(
2271 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in #(
2274 *${as_nl}*)
2275 case $ac_var in #(
2276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278 esac
2279 case $ac_var in #(
2280 _ | IFS | as_nl) ;; #(
2281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282 *) { eval $ac_var=; unset $ac_var;} ;;
2283 esac ;;
2284 esac
2285 done
2286 (set) 2>&1 |
2287 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288 *${as_nl}ac_space=\ *)
2289 sed -n \
2290 "s/'\''/'\''\\\\'\'''\''/g;
2291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292 ;; #(
2293 *)
2294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2295 ;;
2296 esac |
2297 sort
2298)
2299 echo
2300
2301 $as_echo "## ----------------- ##
2302## Output variables. ##
2303## ----------------- ##"
2304 echo
2305 for ac_var in $ac_subst_vars
2306 do
2307 eval ac_val=\$$ac_var
2308 case $ac_val in
2309 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 esac
2311 $as_echo "$ac_var='\''$ac_val'\''"
2312 done | sort
2313 echo
2314
2315 if test -n "$ac_subst_files"; then
2316 $as_echo "## ------------------- ##
2317## File substitutions. ##
2318## ------------------- ##"
2319 echo
2320 for ac_var in $ac_subst_files
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 fi
2330
2331 if test -s confdefs.h; then
2332 $as_echo "## ----------- ##
2333## confdefs.h. ##
2334## ----------- ##"
2335 echo
2336 cat confdefs.h
2337 echo
2338 fi
2339 test "$ac_signal" != 0 &&
2340 $as_echo "$as_me: caught signal $ac_signal"
2341 $as_echo "$as_me: exit $exit_status"
2342 } >&5
2343 rm -f core *.core core.conftest.* &&
2344 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2345 exit $exit_status
2346' 0
2347for ac_signal in 1 2 13 15; do
2348 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2349done
2350ac_signal=0
2351
2352# confdefs.h avoids OS command line length limits that DEFS can exceed.
2353rm -f -r conftest* confdefs.h
2354
2355$as_echo "/* confdefs.h */" > confdefs.h
2356
2357# Predefined preprocessor variables.
2358
2359cat >>confdefs.h <<_ACEOF
2360#define PACKAGE_NAME "$PACKAGE_NAME"
2361_ACEOF
2362
2363cat >>confdefs.h <<_ACEOF
2364#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2365_ACEOF
2366
2367cat >>confdefs.h <<_ACEOF
2368#define PACKAGE_VERSION "$PACKAGE_VERSION"
2369_ACEOF
2370
2371cat >>confdefs.h <<_ACEOF
2372#define PACKAGE_STRING "$PACKAGE_STRING"
2373_ACEOF
2374
2375cat >>confdefs.h <<_ACEOF
2376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2377_ACEOF
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_URL "$PACKAGE_URL"
2381_ACEOF
2382
2383
2384# Let the site file select an alternate cache file if it wants to.
2385# Prefer an explicitly selected file to automatically selected ones.
2386ac_site_file1=NONE
2387ac_site_file2=NONE
2388if test -n "$CONFIG_SITE"; then
2389 # We do not want a PATH search for config.site.
2390 case $CONFIG_SITE in #((
2391 -*) ac_site_file1=./$CONFIG_SITE;;
2392 */*) ac_site_file1=$CONFIG_SITE;;
2393 *) ac_site_file1=./$CONFIG_SITE;;
2394 esac
2395elif test "x$prefix" != xNONE; then
2396 ac_site_file1=$prefix/share/config.site
2397 ac_site_file2=$prefix/etc/config.site
2398else
2399 ac_site_file1=$ac_default_prefix/share/config.site
2400 ac_site_file2=$ac_default_prefix/etc/config.site
2401fi
2402for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2403do
2404 test "x$ac_site_file" = xNONE && continue
2405 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2408 sed 's/^/| /' "$ac_site_file" >&5
2409 . "$ac_site_file" \
2410 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412as_fn_error $? "failed to load site script $ac_site_file
2413See \`config.log' for more details" "$LINENO" 5; }
2414 fi
2415done
2416
2417if test -r "$cache_file"; then
2418 # Some versions of bash will fail to source /dev/null (special files
2419 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2420 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422$as_echo "$as_me: loading cache $cache_file" >&6;}
2423 case $cache_file in
2424 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425 *) . "./$cache_file";;
2426 esac
2427 fi
2428else
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430$as_echo "$as_me: creating cache $cache_file" >&6;}
2431 >$cache_file
2432fi
2433
2434# Check that the precious variables saved in the cache have kept the same
2435# value.
2436ac_cache_corrupted=false
2437for ac_var in $ac_precious_vars; do
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
2442 case $ac_old_set,$ac_new_set in
2443 set,)
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446 ac_cache_corrupted=: ;;
2447 ,set)
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2449$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2451 ,);;
2452 *)
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x $ac_old_val`
2456 ac_new_val_w=`echo x $ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460 ac_cache_corrupted=:
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2467$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2469$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2470 fi;;
2471 esac
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2474 case $ac_new_val in
2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2477 esac
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2481 esac
2482 fi
2483done
2484if $ac_cache_corrupted; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2490fi
2491## -------------------- ##
2492## Main body of script. ##
2493## -------------------- ##
2494
2495ac_ext=c
2496ac_cpp='$CPP $CPPFLAGS'
2497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502
2503ac_config_headers="$ac_config_headers config.h"
2504
2505
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2507$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2508 # Check whether --enable-maintainer-mode was given.
2509if test "${enable_maintainer_mode+set}" = set; then :
2510 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2511else
2512 USE_MAINTAINER_MODE=yes
2513fi
2514
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2516$as_echo "$USE_MAINTAINER_MODE" >&6; }
2517 if test $USE_MAINTAINER_MODE = yes; then
2518 MAINTAINER_MODE_TRUE=
2519 MAINTAINER_MODE_FALSE='#'
2520else
2521 MAINTAINER_MODE_TRUE='#'
2522 MAINTAINER_MODE_FALSE=
2523fi
2524
2525 MAINT=$MAINTAINER_MODE_TRUE
2526
2527
2528
2529ac_aux_dir=
2530for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2531 if test -f "$ac_dir/install-sh"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/install-sh -c"
2534 break
2535 elif test -f "$ac_dir/install.sh"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/install.sh -c"
2538 break
2539 elif test -f "$ac_dir/shtool"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/shtool install -c"
2542 break
2543 fi
2544done
2545if test -z "$ac_aux_dir"; then
2546 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2547fi
2548
2549# These three variables are undocumented and unsupported,
2550# and are intended to be withdrawn in a future Autoconf release.
2551# They can cause serious problems if a builder's source tree is in a directory
2552# whose full name contains unusual characters.
2553ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2556
2557
2558# Make sure we can run config.sub.
2559$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2563$as_echo_n "checking build system type... " >&6; }
2564if ${ac_cv_build+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566else
2567 ac_build_alias=$build_alias
2568test "x$ac_build_alias" = x &&
2569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2570test "x$ac_build_alias" = x &&
2571 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574
2575fi
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2577$as_echo "$ac_cv_build" >&6; }
2578case $ac_cv_build in
2579*-*-*) ;;
2580*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2581esac
2582build=$ac_cv_build
2583ac_save_IFS=$IFS; IFS='-'
2584set x $ac_cv_build
2585shift
2586build_cpu=$1
2587build_vendor=$2
2588shift; shift
2589# Remember, the first character of IFS is used to create $*,
2590# except with old shells:
2591build_os=$*
2592IFS=$ac_save_IFS
2593case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594
2595
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2597$as_echo_n "checking host system type... " >&6; }
2598if ${ac_cv_host+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600else
2601 if test "x$host_alias" = x; then
2602 ac_cv_host=$ac_cv_build
2603else
2604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2606fi
2607
2608fi
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2610$as_echo "$ac_cv_host" >&6; }
2611case $ac_cv_host in
2612*-*-*) ;;
2613*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2614esac
2615host=$ac_cv_host
2616ac_save_IFS=$IFS; IFS='-'
2617set x $ac_cv_host
2618shift
2619host_cpu=$1
2620host_vendor=$2
2621shift; shift
2622# Remember, the first character of IFS is used to create $*,
2623# except with old shells:
2624host_os=$*
2625IFS=$ac_save_IFS
2626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2627
2628
2629
2630LIBXML_MAJOR_VERSION=2
2631LIBXML_MINOR_VERSION=9
2632LIBXML_MICRO_VERSION=4
2633LIBXML_MICRO_VERSION_SUFFIX=
2634LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2635LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2636
2637LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2638
2639if test -f CVS/Entries ; then
2640 extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2641 echo extra=$extra
2642 if test "$extra" != ""
2643 then
2644 LIBXML_VERSION_EXTRA="-CVS$extra"
2645 fi
2646else if test -d .svn ; then
2647 extra=`svn info | grep Revision | sed 's+Revision: ++'`
2648 echo extra=$extra
2649 if test "$extra" != ""
2650 then
2651 LIBXML_VERSION_EXTRA="-SVN$extra"
2652 fi
2653else if test -d .git ; then
2654 extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
2655 echo extra=$extra
2656 if test "$extra" != ""
2657 then
2658 LIBXML_VERSION_EXTRA="-GIT$extra"
2659 fi
2660fi
2661fi
2662fi
2663
2664
2665
2666
2667
2668
2669
2670
2671VERSION=${LIBXML_VERSION}
2672
2673am__api_version='1.15'
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; }
2691if test -z "$INSTALL"; then
2692if ${ac_cv_path_install+:} false; then :
2693 $as_echo_n "(cached) " >&6
2694else
2695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH
2697do
2698 IFS=$as_save_IFS
2699 test -z "$as_dir" && as_dir=.
2700 # Account for people who put trailing slashes in PATH elements.
2701case $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 ;;
2739esac
2740
2741 done
2742IFS=$as_save_IFS
2743
2744rm -rf conftest.one conftest.two conftest.dir
2745
2746fi
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
2756fi
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.
2762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
2764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765
2766test -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.
2772am_lf='
2773'
2774case `pwd` in
2775 *[\\\"\#\$\&\'\`$am_lf]*)
2776 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2777esac
2778case $srcdir in
2779 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2780 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2781esac
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).
2788if (
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 )
2816then
2817 # Ok.
2818 :
2819else
2820 as_fn_error $? "newly created file is older than distributed files!
2821Check your system clock" "$LINENO" 5
2822fi
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.
2827am_sleep_pid=
2828if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2829 ( sleep 1 ) &
2830 am_sleep_pid=$!
2831fi
2832
2833rm -f conftest.file
2834
2835test "$program_prefix" != NONE &&
2836 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2837# Use a double $ so make ignores it.
2838test "$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.
2842ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2843program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844
2845# Expand $ac_aux_dir to an absolute path.
2846am_aux_dir=`cd "$ac_aux_dir" && pwd`
2847
2848if 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
2855fi
2856# Use eval to expand $SHELL
2857if eval "$MISSING --is-lightweight"; then
2858 am_missing_run="$MISSING "
2859else
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;}
2863fi
2864
2865if 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
2872fi
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.
2878if 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.
2881set 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; }
2884if ${ac_cv_prog_STRIP+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886else
2887 if test -n "$STRIP"; then
2888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2889else
2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891for as_dir in $PATH
2892do
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
2901done
2902 done
2903IFS=$as_save_IFS
2904
2905fi
2906fi
2907STRIP=$ac_cv_prog_STRIP
2908if test -n "$STRIP"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2910$as_echo "$STRIP" >&6; }
2911else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913$as_echo "no" >&6; }
2914fi
2915
2916
2917fi
2918if 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.
2921set 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; }
2924if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926else
2927 if test -n "$ac_ct_STRIP"; then
2928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
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
2941done
2942 done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2948if 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; }
2951else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956 if test "x$ac_ct_STRIP" = x; then
2957 STRIP=":"
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960yes:)
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;}
2963ac_tool_warned=yes ;;
2964esac
2965 STRIP=$ac_ct_STRIP
2966 fi
2967else
2968 STRIP="$ac_cv_prog_STRIP"
2969fi
2970
2971fi
2972INSTALL_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; }
2976if test -z "$MKDIR_P"; then
2977 if ${ac_cv_path_mkdir+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982do
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
2998IFS=$as_save_IFS
2999
3000fi
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
3012fi
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3014$as_echo "$MKDIR_P" >&6; }
3015
3016for ac_prog in gawk mawk nawk awk
3017do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019set 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; }
3022if ${ac_cv_prog_AWK+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024else
3025 if test -n "$AWK"; then
3026 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
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
3039done
3040 done
3041IFS=$as_save_IFS
3042
3043fi
3044fi
3045AWK=$ac_cv_prog_AWK
3046if test -n "$AWK"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3048$as_echo "$AWK" >&6; }
3049else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051$as_echo "no" >&6; }
3052fi
3053
3054
3055 test -n "$AWK" && break
3056done
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; }
3060set x ${MAKE-make}
3061ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3062if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064else
3065 cat >conftest.make <<\_ACEOF
3066SHELL = /bin/sh
3067all:
3068 @echo '@@@%%%=$(MAKE)=@@@%%%'
3069_ACEOF
3070# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3071case `${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;;
3076esac
3077rm -f conftest.make
3078fi
3079if 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=
3083else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085$as_echo "no" >&6; }
3086 SET_MAKE="MAKE=${MAKE-make}"
3087fi
3088
3089rm -rf .tst 2>/dev/null
3090mkdir .tst 2>/dev/null
3091if test -d .tst; then
3092 am__leading_dot=.
3093else
3094 am__leading_dot=_
3095fi
3096rmdir .tst 2>/dev/null
3097
3098# Check whether --enable-silent-rules was given.
3099if test "${enable_silent_rules+set}" = set; then :
3100 enableval=$enable_silent_rules;
3101fi
3102
3103case $enable_silent_rules in # (((
3104 yes) AM_DEFAULT_VERBOSITY=0;;
3105 no) AM_DEFAULT_VERBOSITY=1;;
3106 *) AM_DEFAULT_VERBOSITY=1;;
3107esac
3108am_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; }
3111if ${am_cv_make_support_nested_variables+:} false; then :
3112 $as_echo_n "(cached) " >&6
3113else
3114 if $as_echo 'TRUE=$(BAR$(V))
3115BAR0=false
3116BAR1=true
3117V=1
3118am__doit:
3119 @$(TRUE)
3120.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3121 am_cv_make_support_nested_variables=yes
3122else
3123 am_cv_make_support_nested_variables=no
3124fi
3125fi
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; }
3128if test $am_cv_make_support_nested_variables = yes; then
3129 AM_V='$(V)'
3130 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3131else
3132 AM_V=$AM_DEFAULT_VERBOSITY
3133 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3134fi
3135AM_BACKSLASH='\'
3136
3137if 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
3145fi
3146
3147# test whether we have cygpath
3148if 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
3154fi
3155
3156
3157# Define the identity of the package.
3158
3159 PACKAGE=libxml2
3160 VERSION=$VERSION
3161
3162
3163cat >>confdefs.h <<_ACEOF
3164#define PACKAGE "$PACKAGE"
3165_ACEOF
3166
3167
3168cat >>confdefs.h <<_ACEOF
3169#define VERSION "$VERSION"
3170_ACEOF
3171
3172# Some tools Automake needs.
3173
3174ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3175
3176
3177AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3178
3179
3180AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3181
3182
3183AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3184
3185
3186MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3187
3188# For better backward compatibility. To be removed once Automake 1.9.x
3189# dies out for good. For more background, see:
3190# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3191# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3192mkdir_p='$(MKDIR_P)'
3193
3194# We need awk for the "check" target (and possibly the TAP driver). The
3195# system "awk" is bad on some platforms.
3196# Always define AMTAR for backward compatibility. Yes, it's still used
3197# in the wild :-( We should find a proper way to deprecate it ...
3198AMTAR='$${TAR-tar}'
3199
3200
3201# We'll loop over all known methods to create a tar archive until one works.
3202_am_tools='gnutar pax cpio none'
3203
3204am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3205
3206
3207
3208
3209
3210
3211# POSIX will say in a future version that running "rm -f" with no argument
3212# is OK; and we want to be able to make that assumption in our Makefile
3213# recipes. So use an aggressive probe to check that the usage we want is
3214# actually supported "in the wild" to an acceptable degree.
3215# See automake bug#10828.
3216# To make any issue more visible, cause the running configure to be aborted
3217# by default if the 'rm' program in use doesn't match our expectations; the
3218# user can still override this though.
3219if rm -f && rm -fr && rm -rf; then : OK; else
3220 cat >&2 <<'END'
3221Oops!
3222
3223Your 'rm' program seems unable to run without file operands specified
3224on the command line, even when the '-f' option is present. This is contrary
3225to the behaviour of most rm programs out there, and not conforming with
3226the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3227
3228Please tell [email protected] about your system, including the value
3229of your $PATH and any error possibly output before this message. This
3230can help us improve future automake versions.
3231
3232END
3233 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3234 echo 'Configuration will proceed anyway, since you have set the' >&2
3235 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3236 echo >&2
3237 else
3238 cat >&2 <<'END'
3239Aborting the configuration process, to ensure you take notice of the issue.
3240
3241You can download and install GNU coreutils to get an 'rm' implementation
3242that behaves properly: <http://www.gnu.org/software/coreutils/>.
3243
3244If you want to complete the configuration process using your problematic
3245'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3246to "yes", and re-run configure.
3247
3248END
3249 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3250 fi
3251fi
3252
3253
3254# Support silent build rules, requires at least automake-1.11. Disable
3255# by either passing --disable-silent-rules to configure or passing V=1
3256# to make
3257# Check whether --enable-silent-rules was given.
3258if test "${enable_silent_rules+set}" = set; then :
3259 enableval=$enable_silent_rules;
3260fi
3261
3262case $enable_silent_rules in # (((
3263 yes) AM_DEFAULT_VERBOSITY=0;;
3264 no) AM_DEFAULT_VERBOSITY=1;;
3265 *) AM_DEFAULT_VERBOSITY=0;;
3266esac
3267am_make=${MAKE-make}
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3269$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3270if ${am_cv_make_support_nested_variables+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272else
3273 if $as_echo 'TRUE=$(BAR$(V))
3274BAR0=false
3275BAR1=true
3276V=1
3277am__doit:
3278 @$(TRUE)
3279.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3280 am_cv_make_support_nested_variables=yes
3281else
3282 am_cv_make_support_nested_variables=no
3283fi
3284fi
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3286$as_echo "$am_cv_make_support_nested_variables" >&6; }
3287if test $am_cv_make_support_nested_variables = yes; then
3288 AM_V='$(V)'
3289 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3290else
3291 AM_V=$AM_DEFAULT_VERBOSITY
3292 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3293fi
3294AM_BACKSLASH='\'
3295
3296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3304set dummy ${ac_tool_prefix}gcc; ac_word=$2
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306$as_echo_n "checking for $ac_word... " >&6; }
3307if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 break 2
3323 fi
3324done
3325 done
3326IFS=$as_save_IFS
3327
3328fi
3329fi
3330CC=$ac_cv_prog_CC
3331if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333$as_echo "$CC" >&6; }
3334else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336$as_echo "no" >&6; }
3337fi
3338
3339
3340fi
3341if test -z "$ac_cv_prog_CC"; then
3342 ac_ct_CC=$CC
3343 # Extract the first word of "gcc", so it can be a program name with args.
3344set dummy gcc; ac_word=$2
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346$as_echo_n "checking for $ac_word... " >&6; }
3347if ${ac_cv_prog_ac_ct_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349else
3350 if test -n "$ac_ct_CC"; then
3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356 IFS=$as_save_IFS
3357 test -z "$as_dir" && as_dir=.
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360 ac_cv_prog_ac_ct_CC="gcc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364done
3365 done
3366IFS=$as_save_IFS
3367
3368fi
3369fi
3370ac_ct_CC=$ac_cv_prog_ac_ct_CC
3371if test -n "$ac_ct_CC"; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3373$as_echo "$ac_ct_CC" >&6; }
3374else
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376$as_echo "no" >&6; }
3377fi
3378
3379 if test "x$ac_ct_CC" = x; then
3380 CC=""
3381 else
3382 case $cross_compiling:$ac_tool_warned in
3383yes:)
3384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386ac_tool_warned=yes ;;
3387esac
3388 CC=$ac_ct_CC
3389 fi
3390else
3391 CC="$ac_cv_prog_CC"
3392fi
3393
3394if test -z "$CC"; then
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3397set dummy ${ac_tool_prefix}cc; ac_word=$2
3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399$as_echo_n "checking for $ac_word... " >&6; }
3400if ${ac_cv_prog_CC+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3413 ac_cv_prog_CC="${ac_tool_prefix}cc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417done
3418 done
3419IFS=$as_save_IFS
3420
3421fi
3422fi
3423CC=$ac_cv_prog_CC
3424if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426$as_echo "$CC" >&6; }
3427else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429$as_echo "no" >&6; }
3430fi
3431
3432
3433 fi
3434fi
3435if test -z "$CC"; then
3436 # Extract the first word of "cc", so it can be a program name with args.
3437set dummy cc; ac_word=$2
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439$as_echo_n "checking for $ac_word... " >&6; }
3440if ${ac_cv_prog_CC+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442else
3443 if test -n "$CC"; then
3444 ac_cv_prog_CC="$CC" # Let the user override the test.
3445else
3446 ac_prog_rejected=no
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455 ac_prog_rejected=yes
3456 continue
3457 fi
3458 ac_cv_prog_CC="cc"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462done
3463 done
3464IFS=$as_save_IFS
3465
3466if test $ac_prog_rejected = yes; then
3467 # We found a bogon in the path, so make sure we never use it.
3468 set dummy $ac_cv_prog_CC
3469 shift
3470 if test $# != 0; then
3471 # We chose a different compiler from the bogus one.
3472 # However, it has the same basename, so the bogon will be chosen
3473 # first if we set CC to just the basename; use the full file name.
3474 shift
3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3476 fi
3477fi
3478fi
3479fi
3480CC=$ac_cv_prog_CC
3481if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483$as_echo "$CC" >&6; }
3484else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489
3490fi
3491if test -z "$CC"; then
3492 if test -n "$ac_tool_prefix"; then
3493 for ac_prog in cl.exe
3494 do
3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498$as_echo_n "checking for $ac_word... " >&6; }
3499if ${ac_cv_prog_CC+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517 done
3518IFS=$as_save_IFS
3519
3520fi
3521fi
3522CC=$ac_cv_prog_CC
3523if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525$as_echo "$CC" >&6; }
3526else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528$as_echo "no" >&6; }
3529fi
3530
3531
3532 test -n "$CC" && break
3533 done
3534fi
3535if test -z "$CC"; then
3536 ac_ct_CC=$CC
3537 for ac_prog in cl.exe
3538do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540set dummy $ac_prog; ac_word=$2
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542$as_echo_n "checking for $ac_word... " >&6; }
3543if ${ac_cv_prog_ac_ct_CC+:} false; then :
3544 $as_echo_n "(cached) " >&6
3545else
3546 if test -n "$ac_ct_CC"; then
3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_ac_ct_CC="$ac_prog"
3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560done
3561 done
3562IFS=$as_save_IFS
3563
3564fi
3565fi
3566ac_ct_CC=$ac_cv_prog_ac_ct_CC
3567if test -n "$ac_ct_CC"; then
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3569$as_echo "$ac_ct_CC" >&6; }
3570else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572$as_echo "no" >&6; }
3573fi
3574
3575
3576 test -n "$ac_ct_CC" && break
3577done
3578
3579 if test "x$ac_ct_CC" = x; then
3580 CC=""
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583yes:)
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586ac_tool_warned=yes ;;
3587esac
3588 CC=$ac_ct_CC
3589 fi
3590fi
3591
3592fi
3593
3594
3595test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597as_fn_error $? "no acceptable C compiler found in \$PATH
3598See \`config.log' for more details" "$LINENO" 5; }
3599
3600# Provide some information about the compiler.
3601$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3602set X $ac_compile
3603ac_compiler=$2
3604for ac_option in --version -v -V -qversion; do
3605 { { ac_try="$ac_compiler $ac_option >&5"
3606case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609esac
3610eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3611$as_echo "$ac_try_echo"; } >&5
3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613 ac_status=$?
3614 if test -s conftest.err; then
3615 sed '10a\
3616... rest of stderr output deleted ...
3617 10q' conftest.err >conftest.er1
3618 cat conftest.er1 >&5
3619 fi
3620 rm -f conftest.er1 conftest.err
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }
3623done
3624
3625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626/* end confdefs.h. */
3627
3628int
3629main ()
3630{
3631
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636ac_clean_files_save=$ac_clean_files
3637ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3638# Try to create an executable without -o first, disregard a.out.
3639# It will help us diagnose broken compilers, and finding out an intuition
3640# of exeext.
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3642$as_echo_n "checking whether the C compiler works... " >&6; }
3643ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3644
3645# The possible output files:
3646ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3647
3648ac_rmfiles=
3649for ac_file in $ac_files
3650do
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3653 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654 esac
3655done
3656rm -f $ac_rmfiles
3657
3658if { { ac_try="$ac_link_default"
3659case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662esac
3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664$as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_link_default") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3670# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3671# in a Makefile. We should not override ac_cv_exeext if it was cached,
3672# so that the user can short-circuit this test for compilers unknown to
3673# Autoconf.
3674for ac_file in $ac_files ''
3675do
3676 test -f "$ac_file" || continue
3677 case $ac_file in
3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3679 ;;
3680 [ab].out )
3681 # We found the default executable, but exeext='' is most
3682 # certainly right.
3683 break;;
3684 *.* )
3685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3686 then :; else
3687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3688 fi
3689 # We set ac_cv_exeext here because the later test for it is not
3690 # safe: cross compilers may not add the suffix if given an `-o'
3691 # argument, so we may need to know it at that point already.
3692 # Even if this section looks crufty: it has the advantage of
3693 # actually working.
3694 break;;
3695 * )
3696 break;;
3697 esac
3698done
3699test "$ac_cv_exeext" = no && ac_cv_exeext=
3700
3701else
3702 ac_file=''
3703fi
3704if test -z "$ac_file"; then :
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707$as_echo "$as_me: failed program was:" >&5
3708sed 's/^/| /' conftest.$ac_ext >&5
3709
3710{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712as_fn_error 77 "C compiler cannot create executables
3713See \`config.log' for more details" "$LINENO" 5; }
3714else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716$as_echo "yes" >&6; }
3717fi
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3719$as_echo_n "checking for C compiler default output file name... " >&6; }
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721$as_echo "$ac_file" >&6; }
3722ac_exeext=$ac_cv_exeext
3723
3724rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3725ac_clean_files=$ac_clean_files_save
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3727$as_echo_n "checking for suffix of executables... " >&6; }
3728if { { ac_try="$ac_link"
3729case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732esac
3733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734$as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_link") 2>&5
3736 ac_status=$?
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; then :
3739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3740# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3741# work properly (i.e., refer to `conftest.exe'), while it won't with
3742# `rm'.
3743for ac_file in conftest.exe conftest conftest.*; do
3744 test -f "$ac_file" || continue
3745 case $ac_file in
3746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 break;;
3749 * ) break;;
3750 esac
3751done
3752else
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3756See \`config.log' for more details" "$LINENO" 5; }
3757fi
3758rm -f conftest conftest$ac_cv_exeext
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3760$as_echo "$ac_cv_exeext" >&6; }
3761
3762rm -f conftest.$ac_ext
3763EXEEXT=$ac_cv_exeext
3764ac_exeext=$EXEEXT
3765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h. */
3767#include <stdio.h>
3768int
3769main ()
3770{
3771FILE *f = fopen ("conftest.out", "w");
3772 return ferror (f) || fclose (f) != 0;
3773
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778ac_clean_files="$ac_clean_files conftest.out"
3779# Check that the compiler produces executables we can run. If not, either
3780# the compiler is broken, or we cross compile.
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3782$as_echo_n "checking whether we are cross compiling... " >&6; }
3783if test "$cross_compiling" != yes; then
3784 { { ac_try="$ac_link"
3785case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790$as_echo "$ac_try_echo"; } >&5
3791 (eval "$ac_link") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795 if { ac_try='./conftest$ac_cv_exeext'
3796 { { case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799esac
3800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801$as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_try") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; }; then
3806 cross_compiling=no
3807 else
3808 if test "$cross_compiling" = maybe; then
3809 cross_compiling=yes
3810 else
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813as_fn_error $? "cannot run C compiled programs.
3814If you meant to cross compile, use \`--host'.
3815See \`config.log' for more details" "$LINENO" 5; }
3816 fi
3817 fi
3818fi
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3820$as_echo "$cross_compiling" >&6; }
3821
3822rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3823ac_clean_files=$ac_clean_files_save
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3825$as_echo_n "checking for suffix of object files... " >&6; }
3826if ${ac_cv_objext+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828else
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h. */
3831
3832int
3833main ()
3834{
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.o conftest.obj
3841if { { ac_try="$ac_compile"
3842case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847$as_echo "$ac_try_echo"; } >&5
3848 (eval "$ac_compile") 2>&5
3849 ac_status=$?
3850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; then :
3852 for ac_file in conftest.o conftest.obj conftest.*; do
3853 test -f "$ac_file" || continue;
3854 case $ac_file in
3855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3856 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 break;;
3858 esac
3859done
3860else
3861 $as_echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863
3864{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error $? "cannot compute suffix of object files: cannot compile
3867See \`config.log' for more details" "$LINENO" 5; }
3868fi
3869rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3872$as_echo "$ac_cv_objext" >&6; }
3873OBJEXT=$ac_cv_objext
3874ac_objext=$OBJEXT
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3876$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3877if ${ac_cv_c_compiler_gnu+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879else
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h. */
3882
3883int
3884main ()
3885{
3886#ifndef __GNUC__
3887 choke me
3888#endif
3889
3890 ;
3891 return 0;
3892}
3893_ACEOF
3894if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_compiler_gnu=yes
3896else
3897 ac_compiler_gnu=no
3898fi
3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900ac_cv_c_compiler_gnu=$ac_compiler_gnu
3901
3902fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3904$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3905if test $ac_compiler_gnu = yes; then
3906 GCC=yes
3907else
3908 GCC=
3909fi
3910ac_test_CFLAGS=${CFLAGS+set}
3911ac_save_CFLAGS=$CFLAGS
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3913$as_echo_n "checking whether $CC accepts -g... " >&6; }
3914if ${ac_cv_prog_cc_g+:} false; then :
3915 $as_echo_n "(cached) " >&6
3916else
3917 ac_save_c_werror_flag=$ac_c_werror_flag
3918 ac_c_werror_flag=yes
3919 ac_cv_prog_cc_g=no
3920 CFLAGS="-g"
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922/* end confdefs.h. */
3923
3924int
3925main ()
3926{
3927
3928 ;
3929 return 0;
3930}
3931_ACEOF
3932if ac_fn_c_try_compile "$LINENO"; then :
3933 ac_cv_prog_cc_g=yes
3934else
3935 CFLAGS=""
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937/* end confdefs.h. */
3938
3939int
3940main ()
3941{
3942
3943 ;
3944 return 0;
3945}
3946_ACEOF
3947if ac_fn_c_try_compile "$LINENO"; then :
3948
3949else
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3951 CFLAGS="-g"
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953/* end confdefs.h. */
3954
3955int
3956main ()
3957{
3958
3959 ;
3960 return 0;
3961}
3962_ACEOF
3963if ac_fn_c_try_compile "$LINENO"; then :
3964 ac_cv_prog_cc_g=yes
3965fi
3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967fi
3968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969fi
3970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 ac_c_werror_flag=$ac_save_c_werror_flag
3972fi
3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3974$as_echo "$ac_cv_prog_cc_g" >&6; }
3975if test "$ac_test_CFLAGS" = set; then
3976 CFLAGS=$ac_save_CFLAGS
3977elif test $ac_cv_prog_cc_g = yes; then
3978 if test "$GCC" = yes; then
3979 CFLAGS="-g -O2"
3980 else
3981 CFLAGS="-g"
3982 fi
3983else
3984 if test "$GCC" = yes; then
3985 CFLAGS="-O2"
3986 else
3987 CFLAGS=
3988 fi
3989fi
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3991$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3992if ${ac_cv_prog_cc_c89+:} false; then :
3993 $as_echo_n "(cached) " >&6
3994else
3995 ac_cv_prog_cc_c89=no
3996ac_save_CC=$CC
3997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998/* end confdefs.h. */
3999#include <stdarg.h>
4000#include <stdio.h>
4001struct stat;
4002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003struct buf { int x; };
4004FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005static char *e (p, i)
4006 char **p;
4007 int i;
4008{
4009 return p[i];
4010}
4011static char *f (char * (*g) (char **, int), char **p, ...)
4012{
4013 char *s;
4014 va_list v;
4015 va_start (v,p);
4016 s = g (p, va_arg (v,int));
4017 va_end (v);
4018 return s;
4019}
4020
4021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029
4030/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4032#define FOO(x) 'x'
4033int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034
4035int test (int i, double x);
4036struct s1 {int (*f) (int a);};
4037struct s2 {int (*f) (double a);};
4038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4039int argc;
4040char **argv;
4041int
4042main ()
4043{
4044return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051do
4052 CC="$ac_save_CC $ac_arg"
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_c89=$ac_arg
4055fi
4056rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4058done
4059rm -f conftest.$ac_ext
4060CC=$ac_save_CC
4061
4062fi
4063# AC_CACHE_VAL
4064case "x$ac_cv_prog_cc_c89" in
4065 x)
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4067$as_echo "none needed" >&6; } ;;
4068 xno)
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4070$as_echo "unsupported" >&6; } ;;
4071 *)
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4074$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4075esac
4076if test "x$ac_cv_prog_cc_c89" != xno; then :
4077
4078fi
4079
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086ac_ext=c
4087ac_cpp='$CPP $CPPFLAGS'
4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4092$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4093if ${am_cv_prog_cc_c_o+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097/* end confdefs.h. */
4098
4099int
4100main ()
4101{
4102
4103 ;
4104 return 0;
4105}
4106_ACEOF
4107 # Make sure it works both with $CC and with simple cc.
4108 # Following AC_PROG_CC_C_O, we do the test twice because some
4109 # compilers refuse to overwrite an existing .o file with -o,
4110 # though they will create one.
4111 am_cv_prog_cc_c_o=yes
4112 for am_i in 1 2; do
4113 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4114 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } \
4118 && test -f conftest2.$ac_objext; then
4119 : OK
4120 else
4121 am_cv_prog_cc_c_o=no
4122 break
4123 fi
4124 done
4125 rm -f core conftest*
4126 unset am_i
4127fi
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4129$as_echo "$am_cv_prog_cc_c_o" >&6; }
4130if test "$am_cv_prog_cc_c_o" != yes; then
4131 # Losing compiler, so override with the script.
4132 # FIXME: It is wrong to rewrite CC.
4133 # But if we don't then we get into trouble of one sort or another.
4134 # A longer-term fix would be to have automake use am__CC in this case,
4135 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4136 CC="$am_aux_dir/compile $CC"
4137fi
4138ac_ext=c
4139ac_cpp='$CPP $CPPFLAGS'
4140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144DEPDIR="${am__leading_dot}deps"
4145
4146ac_config_commands="$ac_config_commands depfiles"
4147
4148
4149am_make=${MAKE-make}
4150cat > confinc << 'END'
4151am__doit:
4152 @echo this is the am__doit target
4153.PHONY: am__doit
4154END
4155# If we don't find an include directive, just comment out the code.
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4157$as_echo_n "checking for style of include used by $am_make... " >&6; }
4158am__include="#"
4159am__quote=
4160_am_result=none
4161# First try GNU make style include.
4162echo "include confinc" > confmf
4163# Ignore all kinds of additional output from 'make'.
4164case `$am_make -s -f confmf 2> /dev/null` in #(
4165*the\ am__doit\ target*)
4166 am__include=include
4167 am__quote=
4168 _am_result=GNU
4169 ;;
4170esac
4171# Now try BSD make style include.
4172if test "$am__include" = "#"; then
4173 echo '.include "confinc"' > confmf
4174 case `$am_make -s -f confmf 2> /dev/null` in #(
4175 *the\ am__doit\ target*)
4176 am__include=.include
4177 am__quote="\""
4178 _am_result=BSD
4179 ;;
4180 esac
4181fi
4182
4183
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4185$as_echo "$_am_result" >&6; }
4186rm -f confinc confmf
4187
4188# Check whether --enable-dependency-tracking was given.
4189if test "${enable_dependency_tracking+set}" = set; then :
4190 enableval=$enable_dependency_tracking;
4191fi
4192
4193if test "x$enable_dependency_tracking" != xno; then
4194 am_depcomp="$ac_aux_dir/depcomp"
4195 AMDEPBACKSLASH='\'
4196 am__nodep='_no'
4197fi
4198 if test "x$enable_dependency_tracking" != xno; then
4199 AMDEP_TRUE=
4200 AMDEP_FALSE='#'
4201else
4202 AMDEP_TRUE='#'
4203 AMDEP_FALSE=
4204fi
4205
4206
4207
4208depcc="$CC" am_compiler_list=
4209
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4211$as_echo_n "checking dependency style of $depcc... " >&6; }
4212if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4213 $as_echo_n "(cached) " >&6
4214else
4215 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4216 # We make a subdir and do the tests there. Otherwise we can end up
4217 # making bogus files that we don't know about and never remove. For
4218 # instance it was reported that on HP-UX the gcc test will end up
4219 # making a dummy file named 'D' -- because '-MD' means "put the output
4220 # in D".
4221 rm -rf conftest.dir
4222 mkdir conftest.dir
4223 # Copy depcomp to subdir because otherwise we won't find it if we're
4224 # using a relative directory.
4225 cp "$am_depcomp" conftest.dir
4226 cd conftest.dir
4227 # We will build objects and dependencies in a subdirectory because
4228 # it helps to detect inapplicable dependency modes. For instance
4229 # both Tru64's cc and ICC support -MD to output dependencies as a
4230 # side effect of compilation, but ICC will put the dependencies in
4231 # the current directory while Tru64 will put them in the object
4232 # directory.
4233 mkdir sub
4234
4235 am_cv_CC_dependencies_compiler_type=none
4236 if test "$am_compiler_list" = ""; then
4237 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4238 fi
4239 am__universal=false
4240 case " $depcc " in #(
4241 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4242 esac
4243
4244 for depmode in $am_compiler_list; do
4245 # Setup a source with many dependencies, because some compilers
4246 # like to wrap large dependency lists on column 80 (with \), and
4247 # we should not choose a depcomp mode which is confused by this.
4248 #
4249 # We need to recreate these files for each test, as the compiler may
4250 # overwrite some of them when testing with obscure command lines.
4251 # This happens at least with the AIX C compiler.
4252 : > sub/conftest.c
4253 for i in 1 2 3 4 5 6; do
4254 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4255 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4256 # Solaris 10 /bin/sh.
4257 echo '/* dummy */' > sub/conftst$i.h
4258 done
4259 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4260
4261 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4262 # mode. It turns out that the SunPro C++ compiler does not properly
4263 # handle '-M -o', and we need to detect this. Also, some Intel
4264 # versions had trouble with output in subdirs.
4265 am__obj=sub/conftest.${OBJEXT-o}
4266 am__minus_obj="-o $am__obj"
4267 case $depmode in
4268 gcc)
4269 # This depmode causes a compiler race in universal mode.
4270 test "$am__universal" = false || continue
4271 ;;
4272 nosideeffect)
4273 # After this tag, mechanisms are not by side-effect, so they'll
4274 # only be used when explicitly requested.
4275 if test "x$enable_dependency_tracking" = xyes; then
4276 continue
4277 else
4278 break
4279 fi
4280 ;;
4281 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4282 # This compiler won't grok '-c -o', but also, the minuso test has
4283 # not run yet. These depmodes are late enough in the game, and
4284 # so weak that their functioning should not be impacted.
4285 am__obj=conftest.${OBJEXT-o}
4286 am__minus_obj=
4287 ;;
4288 none) break ;;
4289 esac
4290 if depmode=$depmode \
4291 source=sub/conftest.c object=$am__obj \
4292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4293 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4294 >/dev/null 2>conftest.err &&
4295 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4299 # icc doesn't choke on unknown options, it will just issue warnings
4300 # or remarks (even with -Werror). So we grep stderr for any message
4301 # that says an option was ignored or not supported.
4302 # When given -MP, icc 7.0 and 7.1 complain thusly:
4303 # icc: Command line warning: ignoring option '-M'; no argument required
4304 # The diagnosis changed in icc 8.0:
4305 # icc: Command line remark: option '-MP' not supported
4306 if (grep 'ignoring option' conftest.err ||
4307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4308 am_cv_CC_dependencies_compiler_type=$depmode
4309 break
4310 fi
4311 fi
4312 done
4313
4314 cd ..
4315 rm -rf conftest.dir
4316else
4317 am_cv_CC_dependencies_compiler_type=none
4318fi
4319
4320fi
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4322$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4323CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4324
4325 if
4326 test "x$enable_dependency_tracking" != xno \
4327 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4328 am__fastdepCC_TRUE=
4329 am__fastdepCC_FALSE='#'
4330else
4331 am__fastdepCC_TRUE='#'
4332 am__fastdepCC_FALSE=
4333fi
4334
4335
4336
4337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4338$as_echo_n "checking whether ln -s works... " >&6; }
4339LN_S=$as_ln_s
4340if test "$LN_S" = "ln -s"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4342$as_echo "yes" >&6; }
4343else
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4345$as_echo "no, using $LN_S" >&6; }
4346fi
4347
4348
4349ac_ext=c
4350ac_cpp='$CPP $CPPFLAGS'
4351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4353ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4355$as_echo_n "checking how to run the C preprocessor... " >&6; }
4356# On Suns, sometimes $CPP names a directory.
4357if test -n "$CPP" && test -d "$CPP"; then
4358 CPP=
4359fi
4360if test -z "$CPP"; then
4361 if ${ac_cv_prog_CPP+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363else
4364 # Double quotes because CPP needs to be expanded
4365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4366 do
4367 ac_preproc_ok=false
4368for ac_c_preproc_warn_flag in '' yes
4369do
4370 # Use a header file that comes with gcc, so configuring glibc
4371 # with a fresh cross-compiler works.
4372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4373 # <limits.h> exists even on freestanding compilers.
4374 # On the NeXT, cc -E runs the code through the compiler's parser,
4375 # not just through cpp. "Syntax error" is here to catch this case.
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h. */
4378#ifdef __STDC__
4379# include <limits.h>
4380#else
4381# include <assert.h>
4382#endif
4383 Syntax error
4384_ACEOF
4385if ac_fn_c_try_cpp "$LINENO"; then :
4386
4387else
4388 # Broken: fails on valid input.
4389continue
4390fi
4391rm -f conftest.err conftest.i conftest.$ac_ext
4392
4393 # OK, works on sane cases. Now check whether nonexistent headers
4394 # can be detected and how.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396/* end confdefs.h. */
4397#include <ac_nonexistent.h>
4398_ACEOF
4399if ac_fn_c_try_cpp "$LINENO"; then :
4400 # Broken: success on invalid input.
4401continue
4402else
4403 # Passes both tests.
4404ac_preproc_ok=:
4405break
4406fi
4407rm -f conftest.err conftest.i conftest.$ac_ext
4408
4409done
4410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411rm -f conftest.i conftest.err conftest.$ac_ext
4412if $ac_preproc_ok; then :
4413 break
4414fi
4415
4416 done
4417 ac_cv_prog_CPP=$CPP
4418
4419fi
4420 CPP=$ac_cv_prog_CPP
4421else
4422 ac_cv_prog_CPP=$CPP
4423fi
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4425$as_echo "$CPP" >&6; }
4426ac_preproc_ok=false
4427for ac_c_preproc_warn_flag in '' yes
4428do
4429 # Use a header file that comes with gcc, so configuring glibc
4430 # with a fresh cross-compiler works.
4431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4432 # <limits.h> exists even on freestanding compilers.
4433 # On the NeXT, cc -E runs the code through the compiler's parser,
4434 # not just through cpp. "Syntax error" is here to catch this case.
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436/* end confdefs.h. */
4437#ifdef __STDC__
4438# include <limits.h>
4439#else
4440# include <assert.h>
4441#endif
4442 Syntax error
4443_ACEOF
4444if ac_fn_c_try_cpp "$LINENO"; then :
4445
4446else
4447 # Broken: fails on valid input.
4448continue
4449fi
4450rm -f conftest.err conftest.i conftest.$ac_ext
4451
4452 # OK, works on sane cases. Now check whether nonexistent headers
4453 # can be detected and how.
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */
4456#include <ac_nonexistent.h>
4457_ACEOF
4458if ac_fn_c_try_cpp "$LINENO"; then :
4459 # Broken: success on invalid input.
4460continue
4461else
4462 # Passes both tests.
4463ac_preproc_ok=:
4464break
4465fi
4466rm -f conftest.err conftest.i conftest.$ac_ext
4467
4468done
4469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4470rm -f conftest.i conftest.err conftest.$ac_ext
4471if $ac_preproc_ok; then :
4472
4473else
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4477See \`config.log' for more details" "$LINENO" 5; }
4478fi
4479
4480ac_ext=c
4481ac_cpp='$CPP $CPPFLAGS'
4482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486# Extract the first word of "mv", so it can be a program name with args.
4487set dummy mv; ac_word=$2
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489$as_echo_n "checking for $ac_word... " >&6; }
4490if ${ac_cv_path_MV+:} false; then :
4491 $as_echo_n "(cached) " >&6
4492else
4493 case $MV in
4494 [\\/]* | ?:[\\/]*)
4495 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4496 ;;
4497 *)
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499for as_dir in $PATH
4500do
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510 done
4511IFS=$as_save_IFS
4512
4513 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4514 ;;
4515esac
4516fi
4517MV=$ac_cv_path_MV
4518if test -n "$MV"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4520$as_echo "$MV" >&6; }
4521else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523$as_echo "no" >&6; }
4524fi
4525
4526
4527# Extract the first word of "tar", so it can be a program name with args.
4528set dummy tar; ac_word=$2
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530$as_echo_n "checking for $ac_word... " >&6; }
4531if ${ac_cv_path_TAR+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533else
4534 case $TAR in
4535 [\\/]* | ?:[\\/]*)
4536 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4537 ;;
4538 *)
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551 done
4552IFS=$as_save_IFS
4553
4554 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4555 ;;
4556esac
4557fi
4558TAR=$ac_cv_path_TAR
4559if test -n "$TAR"; then
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4561$as_echo "$TAR" >&6; }
4562else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4564$as_echo "no" >&6; }
4565fi
4566
4567
4568# Extract the first word of "perl", so it can be a program name with args.
4569set dummy perl; ac_word=$2
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571$as_echo_n "checking for $ac_word... " >&6; }
4572if ${ac_cv_path_PERL+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574else
4575 case $PERL in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592 done
4593IFS=$as_save_IFS
4594
4595 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4596 ;;
4597esac
4598fi
4599PERL=$ac_cv_path_PERL
4600if test -n "$PERL"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4602$as_echo "$PERL" >&6; }
4603else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605$as_echo "no" >&6; }
4606fi
4607
4608
4609# Extract the first word of "wget", so it can be a program name with args.
4610set dummy wget; ac_word=$2
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612$as_echo_n "checking for $ac_word... " >&6; }
4613if ${ac_cv_path_WGET+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615else
4616 case $WGET in
4617 [\\/]* | ?:[\\/]*)
4618 ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4619 ;;
4620 *)
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633 done
4634IFS=$as_save_IFS
4635
4636 test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4637 ;;
4638esac
4639fi
4640WGET=$ac_cv_path_WGET
4641if test -n "$WGET"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4643$as_echo "$WGET" >&6; }
4644else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
4647fi
4648
4649
4650# Extract the first word of "xmllint", so it can be a program name with args.
4651set dummy xmllint; ac_word=$2
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4653$as_echo_n "checking for $ac_word... " >&6; }
4654if ${ac_cv_path_XMLLINT+:} false; then :
4655 $as_echo_n "(cached) " >&6
4656else
4657 case $XMLLINT in
4658 [\\/]* | ?:[\\/]*)
4659 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4660 ;;
4661 *)
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673done
4674 done
4675IFS=$as_save_IFS
4676
4677 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4678 ;;
4679esac
4680fi
4681XMLLINT=$ac_cv_path_XMLLINT
4682if test -n "$XMLLINT"; then
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4684$as_echo "$XMLLINT" >&6; }
4685else
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4687$as_echo "no" >&6; }
4688fi
4689
4690
4691# Extract the first word of "xsltproc", so it can be a program name with args.
4692set dummy xsltproc; ac_word=$2
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694$as_echo_n "checking for $ac_word... " >&6; }
4695if ${ac_cv_path_XSLTPROC+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697else
4698 case $XSLTPROC in
4699 [\\/]* | ?:[\\/]*)
4700 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4701 ;;
4702 *)
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4713 fi
4714done
4715 done
4716IFS=$as_save_IFS
4717
4718 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4719 ;;
4720esac
4721fi
4722XSLTPROC=$ac_cv_path_XSLTPROC
4723if test -n "$XSLTPROC"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4725$as_echo "$XSLTPROC" >&6; }
4726else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728$as_echo "no" >&6; }
4729fi
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4742set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744$as_echo_n "checking for $ac_word... " >&6; }
4745if ${ac_cv_path_PKG_CONFIG+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747else
4748 case $PKG_CONFIG in
4749 [\\/]* | ?:[\\/]*)
4750 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4751 ;;
4752 *)
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
4765 done
4766IFS=$as_save_IFS
4767
4768 ;;
4769esac
4770fi
4771PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4772if test -n "$PKG_CONFIG"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4774$as_echo "$PKG_CONFIG" >&6; }
4775else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777$as_echo "no" >&6; }
4778fi
4779
4780
4781fi
4782if test -z "$ac_cv_path_PKG_CONFIG"; then
4783 ac_pt_PKG_CONFIG=$PKG_CONFIG
4784 # Extract the first word of "pkg-config", so it can be a program name with args.
4785set dummy pkg-config; ac_word=$2
4786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787$as_echo_n "checking for $ac_word... " >&6; }
4788if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4789 $as_echo_n "(cached) " >&6
4790else
4791 case $ac_pt_PKG_CONFIG in
4792 [\\/]* | ?:[\\/]*)
4793 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4794 ;;
4795 *)
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797for as_dir in $PATH
4798do
4799 IFS=$as_save_IFS
4800 test -z "$as_dir" && as_dir=.
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4803 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807done
4808 done
4809IFS=$as_save_IFS
4810
4811 ;;
4812esac
4813fi
4814ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4815if test -n "$ac_pt_PKG_CONFIG"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4817$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4818else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
4821fi
4822
4823 if test "x$ac_pt_PKG_CONFIG" = x; then
4824 PKG_CONFIG=""
4825 else
4826 case $cross_compiling:$ac_tool_warned in
4827yes:)
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4830ac_tool_warned=yes ;;
4831esac
4832 PKG_CONFIG=$ac_pt_PKG_CONFIG
4833 fi
4834else
4835 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4836fi
4837
4838fi
4839if test -n "$PKG_CONFIG"; then
4840 _pkg_min_version=0.9.0
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4842$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4843 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845$as_echo "yes" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848$as_echo "no" >&6; }
4849 PKG_CONFIG=""
4850 fi
4851fi
4852
4853case `pwd` in
4854 *\ * | *\ *)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4856$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4857esac
4858
4859
4860
4861macro_version='2.4.6'
4862macro_revision='2.4.6'
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876ltmain=$ac_aux_dir/ltmain.sh
4877
4878# Backslashify metacharacters that are still active within
4879# double-quoted strings.
4880sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4881
4882# Same as above, but do not quote variable references.
4883double_quote_subst='s/\(["`\\]\)/\\\1/g'
4884
4885# Sed substitution to delay expansion of an escaped shell variable in a
4886# double_quote_subst'ed string.
4887delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4888
4889# Sed substitution to delay expansion of an escaped single quote.
4890delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4891
4892# Sed substitution to avoid accidental globbing in evaled expressions
4893no_glob_subst='s/\*/\\\*/g'
4894
4895ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4896ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4897ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4898
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4900$as_echo_n "checking how to print strings... " >&6; }
4901# Test print first, because it will be a builtin if present.
4902if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4903 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4904 ECHO='print -r --'
4905elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4906 ECHO='printf %s\n'
4907else
4908 # Use this function as a fallback that always works.
4909 func_fallback_echo ()
4910 {
4911 eval 'cat <<_LTECHO_EOF
4912$1
4913_LTECHO_EOF'
4914 }
4915 ECHO='func_fallback_echo'
4916fi
4917
4918# func_echo_all arg...
4919# Invoke $ECHO with all args, space-separated.
4920func_echo_all ()
4921{
4922 $ECHO ""
4923}
4924
4925case $ECHO in
4926 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4927$as_echo "printf" >&6; } ;;
4928 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4929$as_echo "print -r" >&6; } ;;
4930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4931$as_echo "cat" >&6; } ;;
4932esac
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4948$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4949if ${ac_cv_path_SED+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951else
4952 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4953 for ac_i in 1 2 3 4 5 6 7; do
4954 ac_script="$ac_script$as_nl$ac_script"
4955 done
4956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4957 { ac_script=; unset ac_script;}
4958 if test -z "$SED"; then
4959 ac_path_SED_found=false
4960 # Loop through the user's path and test for each of PROGNAME-LIST
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_prog in sed gsed; do
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4969 as_fn_executable_p "$ac_path_SED" || continue
4970# Check for GNU ac_path_SED and select it if it is found.
4971 # Check for GNU $ac_path_SED
4972case `"$ac_path_SED" --version 2>&1` in
4973*GNU*)
4974 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4975*)
4976 ac_count=0
4977 $as_echo_n 0123456789 >"conftest.in"
4978 while :
4979 do
4980 cat "conftest.in" "conftest.in" >"conftest.tmp"
4981 mv "conftest.tmp" "conftest.in"
4982 cp "conftest.in" "conftest.nl"
4983 $as_echo '' >> "conftest.nl"
4984 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4986 as_fn_arith $ac_count + 1 && ac_count=$as_val
4987 if test $ac_count -gt ${ac_path_SED_max-0}; then
4988 # Best one so far, save it but keep looking for a better one
4989 ac_cv_path_SED="$ac_path_SED"
4990 ac_path_SED_max=$ac_count
4991 fi
4992 # 10*(2^10) chars as input seems more than enough
4993 test $ac_count -gt 10 && break
4994 done
4995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4996esac
4997
4998 $ac_path_SED_found && break 3
4999 done
5000 done
5001 done
5002IFS=$as_save_IFS
5003 if test -z "$ac_cv_path_SED"; then
5004 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5005 fi
5006else
5007 ac_cv_path_SED=$SED
5008fi
5009
5010fi
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5012$as_echo "$ac_cv_path_SED" >&6; }
5013 SED="$ac_cv_path_SED"
5014 rm -f conftest.sed
5015
5016test -z "$SED" && SED=sed
5017Xsed="$SED -e 1s/^X//"
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5030$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5031if ${ac_cv_path_GREP+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 if test -z "$GREP"; then
5035 ac_path_GREP_found=false
5036 # Loop through the user's path and test for each of PROGNAME-LIST
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5039do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_prog in grep ggrep; do
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5045 as_fn_executable_p "$ac_path_GREP" || continue
5046# Check for GNU ac_path_GREP and select it if it is found.
5047 # Check for GNU $ac_path_GREP
5048case `"$ac_path_GREP" --version 2>&1` in
5049*GNU*)
5050 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5051*)
5052 ac_count=0
5053 $as_echo_n 0123456789 >"conftest.in"
5054 while :
5055 do
5056 cat "conftest.in" "conftest.in" >"conftest.tmp"
5057 mv "conftest.tmp" "conftest.in"
5058 cp "conftest.in" "conftest.nl"
5059 $as_echo 'GREP' >> "conftest.nl"
5060 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5062 as_fn_arith $ac_count + 1 && ac_count=$as_val
5063 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5064 # Best one so far, save it but keep looking for a better one
5065 ac_cv_path_GREP="$ac_path_GREP"
5066 ac_path_GREP_max=$ac_count
5067 fi
5068 # 10*(2^10) chars as input seems more than enough
5069 test $ac_count -gt 10 && break
5070 done
5071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5072esac
5073
5074 $ac_path_GREP_found && break 3
5075 done
5076 done
5077 done
5078IFS=$as_save_IFS
5079 if test -z "$ac_cv_path_GREP"; then
5080 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5081 fi
5082else
5083 ac_cv_path_GREP=$GREP
5084fi
5085
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5088$as_echo "$ac_cv_path_GREP" >&6; }
5089 GREP="$ac_cv_path_GREP"
5090
5091
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5093$as_echo_n "checking for egrep... " >&6; }
5094if ${ac_cv_path_EGREP+:} false; then :
5095 $as_echo_n "(cached) " >&6
5096else
5097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5098 then ac_cv_path_EGREP="$GREP -E"
5099 else
5100 if test -z "$EGREP"; then
5101 ac_path_EGREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in egrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5111 as_fn_executable_p "$ac_path_EGREP" || continue
5112# Check for GNU ac_path_EGREP and select it if it is found.
5113 # Check for GNU $ac_path_EGREP
5114case `"$ac_path_EGREP" --version 2>&1` in
5115*GNU*)
5116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5117*)
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5121 do
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'EGREP' >> "conftest.nl"
5126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_EGREP="$ac_path_EGREP"
5132 ac_path_EGREP_max=$ac_count
5133 fi
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138esac
5139
5140 $ac_path_EGREP_found && break 3
5141 done
5142 done
5143 done
5144IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_EGREP"; then
5146 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5147 fi
5148else
5149 ac_cv_path_EGREP=$EGREP
5150fi
5151
5152 fi
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5155$as_echo "$ac_cv_path_EGREP" >&6; }
5156 EGREP="$ac_cv_path_EGREP"
5157
5158
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5160$as_echo_n "checking for fgrep... " >&6; }
5161if ${ac_cv_path_FGREP+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163else
5164 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5165 then ac_cv_path_FGREP="$GREP -F"
5166 else
5167 if test -z "$FGREP"; then
5168 ac_path_FGREP_found=false
5169 # Loop through the user's path and test for each of PROGNAME-LIST
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_prog in fgrep; do
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5178 as_fn_executable_p "$ac_path_FGREP" || continue
5179# Check for GNU ac_path_FGREP and select it if it is found.
5180 # Check for GNU $ac_path_FGREP
5181case `"$ac_path_FGREP" --version 2>&1` in
5182*GNU*)
5183 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5184*)
5185 ac_count=0
5186 $as_echo_n 0123456789 >"conftest.in"
5187 while :
5188 do
5189 cat "conftest.in" "conftest.in" >"conftest.tmp"
5190 mv "conftest.tmp" "conftest.in"
5191 cp "conftest.in" "conftest.nl"
5192 $as_echo 'FGREP' >> "conftest.nl"
5193 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5195 as_fn_arith $ac_count + 1 && ac_count=$as_val
5196 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5197 # Best one so far, save it but keep looking for a better one
5198 ac_cv_path_FGREP="$ac_path_FGREP"
5199 ac_path_FGREP_max=$ac_count
5200 fi
5201 # 10*(2^10) chars as input seems more than enough
5202 test $ac_count -gt 10 && break
5203 done
5204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5205esac
5206
5207 $ac_path_FGREP_found && break 3
5208 done
5209 done
5210 done
5211IFS=$as_save_IFS
5212 if test -z "$ac_cv_path_FGREP"; then
5213 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 fi
5215else
5216 ac_cv_path_FGREP=$FGREP
5217fi
5218
5219 fi
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5222$as_echo "$ac_cv_path_FGREP" >&6; }
5223 FGREP="$ac_cv_path_FGREP"
5224
5225
5226test -z "$GREP" && GREP=grep
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246# Check whether --with-gnu-ld was given.
5247if test "${with_gnu_ld+set}" = set; then :
5248 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5249else
5250 with_gnu_ld=no
5251fi
5252
5253ac_prog=ld
5254if test yes = "$GCC"; then
5255 # Check if gcc -print-prog-name=ld gives a path.
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5257$as_echo_n "checking for ld used by $CC... " >&6; }
5258 case $host in
5259 *-*-mingw*)
5260 # gcc leaves a trailing carriage return, which upsets mingw
5261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5262 *)
5263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5264 esac
5265 case $ac_prog in
5266 # Accept absolute paths.
5267 [\\/]* | ?:[\\/]*)
5268 re_direlt='/[^/][^/]*/\.\./'
5269 # Canonicalize the pathname of ld
5270 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5271 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5272 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5273 done
5274 test -z "$LD" && LD=$ac_prog
5275 ;;
5276 "")
5277 # If it fails, then pretend we aren't using GCC.
5278 ac_prog=ld
5279 ;;
5280 *)
5281 # If it is relative, then search for the first ld in PATH.
5282 with_gnu_ld=unknown
5283 ;;
5284 esac
5285elif test yes = "$with_gnu_ld"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5287$as_echo_n "checking for GNU ld... " >&6; }
5288else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5290$as_echo_n "checking for non-GNU ld... " >&6; }
5291fi
5292if ${lt_cv_path_LD+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294else
5295 if test -z "$LD"; then
5296 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5297 for ac_dir in $PATH; do
5298 IFS=$lt_save_ifs
5299 test -z "$ac_dir" && ac_dir=.
5300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5301 lt_cv_path_LD=$ac_dir/$ac_prog
5302 # Check to see if the program is GNU ld. I'd rather use --version,
5303 # but apparently some variants of GNU ld only accept -v.
5304 # Break only if it was the GNU/non-GNU ld that we prefer.
5305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5306 *GNU* | *'with BFD'*)
5307 test no != "$with_gnu_ld" && break
5308 ;;
5309 *)
5310 test yes != "$with_gnu_ld" && break
5311 ;;
5312 esac
5313 fi
5314 done
5315 IFS=$lt_save_ifs
5316else
5317 lt_cv_path_LD=$LD # Let the user override the test with a path.
5318fi
5319fi
5320
5321LD=$lt_cv_path_LD
5322if test -n "$LD"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5324$as_echo "$LD" >&6; }
5325else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5331$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5332if ${lt_cv_prog_gnu_ld+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334else
5335 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5336case `$LD -v 2>&1 </dev/null` in
5337*GNU* | *'with BFD'*)
5338 lt_cv_prog_gnu_ld=yes
5339 ;;
5340*)
5341 lt_cv_prog_gnu_ld=no
5342 ;;
5343esac
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5346$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5347with_gnu_ld=$lt_cv_prog_gnu_ld
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5358$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5359if ${lt_cv_path_NM+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361else
5362 if test -n "$NM"; then
5363 # Let the user override the test.
5364 lt_cv_path_NM=$NM
5365else
5366 lt_nm_to_check=${ac_tool_prefix}nm
5367 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5368 lt_nm_to_check="$lt_nm_to_check nm"
5369 fi
5370 for lt_tmp_nm in $lt_nm_to_check; do
5371 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5372 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5373 IFS=$lt_save_ifs
5374 test -z "$ac_dir" && ac_dir=.
5375 tmp_nm=$ac_dir/$lt_tmp_nm
5376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5377 # Check to see if the nm accepts a BSD-compat flag.
5378 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5379 # nm: unknown option "B" ignored
5380 # Tru64's nm complains that /dev/null is an invalid object file
5381 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5382 case $build_os in
5383 mingw*) lt_bad_file=conftest.nm/nofile ;;
5384 *) lt_bad_file=/dev/null ;;
5385 esac
5386 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5387 *$lt_bad_file* | *'Invalid file or object type'*)
5388 lt_cv_path_NM="$tmp_nm -B"
5389 break 2
5390 ;;
5391 *)
5392 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5393 */dev/null*)
5394 lt_cv_path_NM="$tmp_nm -p"
5395 break 2
5396 ;;
5397 *)
5398 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5399 continue # so that we can try to find one that supports BSD flags
5400 ;;
5401 esac
5402 ;;
5403 esac
5404 fi
5405 done
5406 IFS=$lt_save_ifs
5407 done
5408 : ${lt_cv_path_NM=no}
5409fi
5410fi
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5412$as_echo "$lt_cv_path_NM" >&6; }
5413if test no != "$lt_cv_path_NM"; then
5414 NM=$lt_cv_path_NM
5415else
5416 # Didn't find any BSD compatible name lister, look for dumpbin.
5417 if test -n "$DUMPBIN"; then :
5418 # Let the user override the test.
5419 else
5420 if test -n "$ac_tool_prefix"; then
5421 for ac_prog in dumpbin "link -dump"
5422 do
5423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5424set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426$as_echo_n "checking for $ac_word... " >&6; }
5427if ${ac_cv_prog_DUMPBIN+:} false; then :
5428 $as_echo_n "(cached) " >&6
5429else
5430 if test -n "$DUMPBIN"; then
5431 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5432else
5433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5440 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
5445 done
5446IFS=$as_save_IFS
5447
5448fi
5449fi
5450DUMPBIN=$ac_cv_prog_DUMPBIN
5451if test -n "$DUMPBIN"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5453$as_echo "$DUMPBIN" >&6; }
5454else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456$as_echo "no" >&6; }
5457fi
5458
5459
5460 test -n "$DUMPBIN" && break
5461 done
5462fi
5463if test -z "$DUMPBIN"; then
5464 ac_ct_DUMPBIN=$DUMPBIN
5465 for ac_prog in dumpbin "link -dump"
5466do
5467 # Extract the first word of "$ac_prog", so it can be a program name with args.
5468set dummy $ac_prog; ac_word=$2
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470$as_echo_n "checking for $ac_word... " >&6; }
5471if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473else
5474 if test -n "$ac_ct_DUMPBIN"; then
5475 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5487 fi
5488done
5489 done
5490IFS=$as_save_IFS
5491
5492fi
5493fi
5494ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5495if test -n "$ac_ct_DUMPBIN"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5497$as_echo "$ac_ct_DUMPBIN" >&6; }
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500$as_echo "no" >&6; }
5501fi
5502
5503
5504 test -n "$ac_ct_DUMPBIN" && break
5505done
5506
5507 if test "x$ac_ct_DUMPBIN" = x; then
5508 DUMPBIN=":"
5509 else
5510 case $cross_compiling:$ac_tool_warned in
5511yes:)
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514ac_tool_warned=yes ;;
5515esac
5516 DUMPBIN=$ac_ct_DUMPBIN
5517 fi
5518fi
5519
5520 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5521 *COFF*)
5522 DUMPBIN="$DUMPBIN -symbols -headers"
5523 ;;
5524 *)
5525 DUMPBIN=:
5526 ;;
5527 esac
5528 fi
5529
5530 if test : != "$DUMPBIN"; then
5531 NM=$DUMPBIN
5532 fi
5533fi
5534test -z "$NM" && NM=nm
5535
5536
5537
5538
5539
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5542$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5543if ${lt_cv_nm_interface+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545else
5546 lt_cv_nm_interface="BSD nm"
5547 echo "int some_variable = 0;" > conftest.$ac_ext
5548 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5549 (eval "$ac_compile" 2>conftest.err)
5550 cat conftest.err >&5
5551 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5552 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5553 cat conftest.err >&5
5554 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5555 cat conftest.out >&5
5556 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5557 lt_cv_nm_interface="MS dumpbin"
5558 fi
5559 rm -f conftest*
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5562$as_echo "$lt_cv_nm_interface" >&6; }
5563
5564# find the maximum length of command line arguments
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5566$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5567if ${lt_cv_sys_max_cmd_len+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569else
5570 i=0
5571 teststring=ABCD
5572
5573 case $build_os in
5574 msdosdjgpp*)
5575 # On DJGPP, this test can blow up pretty badly due to problems in libc
5576 # (any single argument exceeding 2000 bytes causes a buffer overrun
5577 # during glob expansion). Even if it were fixed, the result of this
5578 # check would be larger than it should be.
5579 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5580 ;;
5581
5582 gnu*)
5583 # Under GNU Hurd, this test is not required because there is
5584 # no limit to the length of command line arguments.
5585 # Libtool will interpret -1 as no limit whatsoever
5586 lt_cv_sys_max_cmd_len=-1;
5587 ;;
5588
5589 cygwin* | mingw* | cegcc*)
5590 # On Win9x/ME, this test blows up -- it succeeds, but takes
5591 # about 5 minutes as the teststring grows exponentially.
5592 # Worse, since 9x/ME are not pre-emptively multitasking,
5593 # you end up with a "frozen" computer, even though with patience
5594 # the test eventually succeeds (with a max line length of 256k).
5595 # Instead, let's just punt: use the minimum linelength reported by
5596 # all of the supported platforms: 8192 (on NT/2K/XP).
5597 lt_cv_sys_max_cmd_len=8192;
5598 ;;
5599
5600 mint*)
5601 # On MiNT this can take a long time and run out of memory.
5602 lt_cv_sys_max_cmd_len=8192;
5603 ;;
5604
5605 amigaos*)
5606 # On AmigaOS with pdksh, this test takes hours, literally.
5607 # So we just punt and use a minimum line length of 8192.
5608 lt_cv_sys_max_cmd_len=8192;
5609 ;;
5610
5611 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5612 # This has been around since 386BSD, at least. Likely further.
5613 if test -x /sbin/sysctl; then
5614 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5615 elif test -x /usr/sbin/sysctl; then
5616 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5617 else
5618 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5619 fi
5620 # And add a safety zone
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5623 ;;
5624
5625 interix*)
5626 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5627 lt_cv_sys_max_cmd_len=196608
5628 ;;
5629
5630 os2*)
5631 # The test takes a long time on OS/2.
5632 lt_cv_sys_max_cmd_len=8192
5633 ;;
5634
5635 osf*)
5636 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5637 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5638 # nice to cause kernel panics so lets avoid the loop below.
5639 # First set a reasonable default.
5640 lt_cv_sys_max_cmd_len=16384
5641 #
5642 if test -x /sbin/sysconfig; then
5643 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5644 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5645 esac
5646 fi
5647 ;;
5648 sco3.2v5*)
5649 lt_cv_sys_max_cmd_len=102400
5650 ;;
5651 sysv5* | sco5v6* | sysv4.2uw2*)
5652 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5653 if test -n "$kargmax"; then
5654 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5655 else
5656 lt_cv_sys_max_cmd_len=32768
5657 fi
5658 ;;
5659 *)
5660 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5661 if test -n "$lt_cv_sys_max_cmd_len" && \
5662 test undefined != "$lt_cv_sys_max_cmd_len"; then
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5665 else
5666 # Make teststring a little bigger before we do anything with it.
5667 # a 1K string should be a reasonable start.
5668 for i in 1 2 3 4 5 6 7 8; do
5669 teststring=$teststring$teststring
5670 done
5671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5672 # If test is not a shell built-in, we'll probably end up computing a
5673 # maximum length that is only half of the actual maximum length, but
5674 # we can't tell.
5675 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5676 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5677 test 17 != "$i" # 1/2 MB should be enough
5678 do
5679 i=`expr $i + 1`
5680 teststring=$teststring$teststring
5681 done
5682 # Only check the string length outside the loop.
5683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5684 teststring=
5685 # Add a significant safety factor because C++ compilers can tack on
5686 # massive amounts of additional arguments before passing them to the
5687 # linker. It appears as though 1/2 is a usable value.
5688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5689 fi
5690 ;;
5691 esac
5692
5693fi
5694
5695if test -n "$lt_cv_sys_max_cmd_len"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5697$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5698else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5700$as_echo "none" >&6; }
5701fi
5702max_cmd_len=$lt_cv_sys_max_cmd_len
5703
5704
5705
5706
5707
5708
5709: ${CP="cp -f"}
5710: ${MV="mv -f"}
5711: ${RM="rm -f"}
5712
5713if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5714 lt_unset=unset
5715else
5716 lt_unset=false
5717fi
5718
5719
5720
5721
5722
5723# test EBCDIC or ASCII
5724case `echo X|tr X '\101'` in
5725 A) # ASCII based system
5726 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5727 lt_SP2NL='tr \040 \012'
5728 lt_NL2SP='tr \015\012 \040\040'
5729 ;;
5730 *) # EBCDIC based system
5731 lt_SP2NL='tr \100 \n'
5732 lt_NL2SP='tr \r\n \100\100'
5733 ;;
5734esac
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5745$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5746if ${lt_cv_to_host_file_cmd+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748else
5749 case $host in
5750 *-*-mingw* )
5751 case $build in
5752 *-*-mingw* ) # actually msys
5753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5754 ;;
5755 *-*-cygwin* )
5756 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5757 ;;
5758 * ) # otherwise, assume *nix
5759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5760 ;;
5761 esac
5762 ;;
5763 *-*-cygwin* )
5764 case $build in
5765 *-*-mingw* ) # actually msys
5766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5767 ;;
5768 *-*-cygwin* )
5769 lt_cv_to_host_file_cmd=func_convert_file_noop
5770 ;;
5771 * ) # otherwise, assume *nix
5772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5773 ;;
5774 esac
5775 ;;
5776 * ) # unhandled hosts (and "normal" native builds)
5777 lt_cv_to_host_file_cmd=func_convert_file_noop
5778 ;;
5779esac
5780
5781fi
5782
5783to_host_file_cmd=$lt_cv_to_host_file_cmd
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5785$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5786
5787
5788
5789
5790
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5792$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5793if ${lt_cv_to_tool_file_cmd+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795else
5796 #assume ordinary cross tools, or native build.
5797lt_cv_to_tool_file_cmd=func_convert_file_noop
5798case $host in
5799 *-*-mingw* )
5800 case $build in
5801 *-*-mingw* ) # actually msys
5802 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5803 ;;
5804 esac
5805 ;;
5806esac
5807
5808fi
5809
5810to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5812$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5813
5814
5815
5816
5817
5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5819$as_echo_n "checking for $LD option to reload object files... " >&6; }
5820if ${lt_cv_ld_reload_flag+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822else
5823 lt_cv_ld_reload_flag='-r'
5824fi
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5826$as_echo "$lt_cv_ld_reload_flag" >&6; }
5827reload_flag=$lt_cv_ld_reload_flag
5828case $reload_flag in
5829"" | " "*) ;;
5830*) reload_flag=" $reload_flag" ;;
5831esac
5832reload_cmds='$LD$reload_flag -o $output$reload_objs'
5833case $host_os in
5834 cygwin* | mingw* | pw32* | cegcc*)
5835 if test yes != "$GCC"; then
5836 reload_cmds=false
5837 fi
5838 ;;
5839 darwin*)
5840 if test yes = "$GCC"; then
5841 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5842 else
5843 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5844 fi
5845 ;;
5846esac
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856if test -n "$ac_tool_prefix"; then
5857 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5858set dummy ${ac_tool_prefix}objdump; ac_word=$2
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if ${ac_cv_prog_OBJDUMP+:} false; then :
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$OBJDUMP"; then
5865 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5874 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879 done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884OBJDUMP=$ac_cv_prog_OBJDUMP
5885if test -n "$OBJDUMP"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5887$as_echo "$OBJDUMP" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894fi
5895if test -z "$ac_cv_prog_OBJDUMP"; then
5896 ac_ct_OBJDUMP=$OBJDUMP
5897 # Extract the first word of "objdump", so it can be a program name with args.
5898set dummy objdump; ac_word=$2
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5900$as_echo_n "checking for $ac_word... " >&6; }
5901if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5902 $as_echo_n "(cached) " >&6
5903else
5904 if test -n "$ac_ct_OBJDUMP"; then
5905 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919 done
5920IFS=$as_save_IFS
5921
5922fi
5923fi
5924ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5925if test -n "$ac_ct_OBJDUMP"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5927$as_echo "$ac_ct_OBJDUMP" >&6; }
5928else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930$as_echo "no" >&6; }
5931fi
5932
5933 if test "x$ac_ct_OBJDUMP" = x; then
5934 OBJDUMP="false"
5935 else
5936 case $cross_compiling:$ac_tool_warned in
5937yes:)
5938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940ac_tool_warned=yes ;;
5941esac
5942 OBJDUMP=$ac_ct_OBJDUMP
5943 fi
5944else
5945 OBJDUMP="$ac_cv_prog_OBJDUMP"
5946fi
5947
5948test -z "$OBJDUMP" && OBJDUMP=objdump
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5959$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5960if ${lt_cv_deplibs_check_method+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962else
5963 lt_cv_file_magic_cmd='$MAGIC_CMD'
5964lt_cv_file_magic_test_file=
5965lt_cv_deplibs_check_method='unknown'
5966# Need to set the preceding variable on all platforms that support
5967# interlibrary dependencies.
5968# 'none' -- dependencies not supported.
5969# 'unknown' -- same as none, but documents that we really don't know.
5970# 'pass_all' -- all dependencies passed with no checks.
5971# 'test_compile' -- check by making test program.
5972# 'file_magic [[regex]]' -- check by looking for files in library path
5973# that responds to the $file_magic_cmd with a given extended regex.
5974# If you have 'file' or equivalent on your system and you're not sure
5975# whether 'pass_all' will *always* work, you probably want this one.
5976
5977case $host_os in
5978aix[4-9]*)
5979 lt_cv_deplibs_check_method=pass_all
5980 ;;
5981
5982beos*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985
5986bsdi[45]*)
5987 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5988 lt_cv_file_magic_cmd='/usr/bin/file -L'
5989 lt_cv_file_magic_test_file=/shlib/libc.so
5990 ;;
5991
5992cygwin*)
5993 # func_win32_libid is a shell function defined in ltmain.sh
5994 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5995 lt_cv_file_magic_cmd='func_win32_libid'
5996 ;;
5997
5998mingw* | pw32*)
5999 # Base MSYS/MinGW do not provide the 'file' command needed by
6000 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6001 # unless we find 'file', for example because we are cross-compiling.
6002 if ( file / ) >/dev/null 2>&1; then
6003 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6004 lt_cv_file_magic_cmd='func_win32_libid'
6005 else
6006 # Keep this pattern in sync with the one in func_win32_libid.
6007 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6008 lt_cv_file_magic_cmd='$OBJDUMP -f'
6009 fi
6010 ;;
6011
6012cegcc*)
6013 # use the weaker test based on 'objdump'. See mingw*.
6014 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6015 lt_cv_file_magic_cmd='$OBJDUMP -f'
6016 ;;
6017
6018darwin* | rhapsody*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022freebsd* | dragonfly*)
6023 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6024 case $host_cpu in
6025 i*86 )
6026 # Not sure whether the presence of OpenBSD here was a mistake.
6027 # Let's accept both of them until this is cleared up.
6028 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6029 lt_cv_file_magic_cmd=/usr/bin/file
6030 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6031 ;;
6032 esac
6033 else
6034 lt_cv_deplibs_check_method=pass_all
6035 fi
6036 ;;
6037
6038haiku*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042hpux10.20* | hpux11*)
6043 lt_cv_file_magic_cmd=/usr/bin/file
6044 case $host_cpu in
6045 ia64*)
6046 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6047 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6048 ;;
6049 hppa*64*)
6050 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]'
6051 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6052 ;;
6053 *)
6054 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6055 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6056 ;;
6057 esac
6058 ;;
6059
6060interix[3-9]*)
6061 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6062 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6063 ;;
6064
6065irix5* | irix6* | nonstopux*)
6066 case $LD in
6067 *-32|*"-32 ") libmagic=32-bit;;
6068 *-n32|*"-n32 ") libmagic=N32;;
6069 *-64|*"-64 ") libmagic=64-bit;;
6070 *) libmagic=never-match;;
6071 esac
6072 lt_cv_deplibs_check_method=pass_all
6073 ;;
6074
6075# This must be glibc/ELF.
6076linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6077 lt_cv_deplibs_check_method=pass_all
6078 ;;
6079
6080netbsd*)
6081 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6083 else
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6085 fi
6086 ;;
6087
6088newos6*)
6089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6090 lt_cv_file_magic_cmd=/usr/bin/file
6091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6092 ;;
6093
6094*nto* | *qnx*)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097
6098openbsd* | bitrig*)
6099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6100 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6101 else
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103 fi
6104 ;;
6105
6106osf3* | osf4* | osf5*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110rdos*)
6111 lt_cv_deplibs_check_method=pass_all
6112 ;;
6113
6114solaris*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122sysv4 | sysv4.3*)
6123 case $host_vendor in
6124 motorola)
6125 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]'
6126 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6127 ;;
6128 ncr)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131 sequent)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6134 ;;
6135 sni)
6136 lt_cv_file_magic_cmd='/bin/file'
6137 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6138 lt_cv_file_magic_test_file=/lib/libc.so
6139 ;;
6140 siemens)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 pc)
6144 lt_cv_deplibs_check_method=pass_all
6145 ;;
6146 esac
6147 ;;
6148
6149tpf*)
6150 lt_cv_deplibs_check_method=pass_all
6151 ;;
6152os2*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155esac
6156
6157fi
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6159$as_echo "$lt_cv_deplibs_check_method" >&6; }
6160
6161file_magic_glob=
6162want_nocaseglob=no
6163if test "$build" = "$host"; then
6164 case $host_os in
6165 mingw* | pw32*)
6166 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6167 want_nocaseglob=yes
6168 else
6169 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6170 fi
6171 ;;
6172 esac
6173fi
6174
6175file_magic_cmd=$lt_cv_file_magic_cmd
6176deplibs_check_method=$lt_cv_deplibs_check_method
6177test -z "$deplibs_check_method" && deplibs_check_method=unknown
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200if test -n "$ac_tool_prefix"; then
6201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6202set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204$as_echo_n "checking for $ac_word... " >&6; }
6205if ${ac_cv_prog_DLLTOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6207else
6208 if test -n "$DLLTOOL"; then
6209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6210else
6211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212for as_dir in $PATH
6213do
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6220 break 2
6221 fi
6222done
6223 done
6224IFS=$as_save_IFS
6225
6226fi
6227fi
6228DLLTOOL=$ac_cv_prog_DLLTOOL
6229if test -n "$DLLTOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6231$as_echo "$DLLTOOL" >&6; }
6232else
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234$as_echo "no" >&6; }
6235fi
6236
6237
6238fi
6239if test -z "$ac_cv_prog_DLLTOOL"; then
6240 ac_ct_DLLTOOL=$DLLTOOL
6241 # Extract the first word of "dlltool", so it can be a program name with args.
6242set dummy dlltool; ac_word=$2
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244$as_echo_n "checking for $ac_word... " >&6; }
6245if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6246 $as_echo_n "(cached) " >&6
6247else
6248 if test -n "$ac_ct_DLLTOOL"; then
6249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262done
6263 done
6264IFS=$as_save_IFS
6265
6266fi
6267fi
6268ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6269if test -n "$ac_ct_DLLTOOL"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6271$as_echo "$ac_ct_DLLTOOL" >&6; }
6272else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274$as_echo "no" >&6; }
6275fi
6276
6277 if test "x$ac_ct_DLLTOOL" = x; then
6278 DLLTOOL="false"
6279 else
6280 case $cross_compiling:$ac_tool_warned in
6281yes:)
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6284ac_tool_warned=yes ;;
6285esac
6286 DLLTOOL=$ac_ct_DLLTOOL
6287 fi
6288else
6289 DLLTOOL="$ac_cv_prog_DLLTOOL"
6290fi
6291
6292test -z "$DLLTOOL" && DLLTOOL=dlltool
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6304$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6305if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307else
6308 lt_cv_sharedlib_from_linklib_cmd='unknown'
6309
6310case $host_os in
6311cygwin* | mingw* | pw32* | cegcc*)
6312 # two different shell functions defined in ltmain.sh;
6313 # decide which one to use based on capabilities of $DLLTOOL
6314 case `$DLLTOOL --help 2>&1` in
6315 *--identify-strict*)
6316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6317 ;;
6318 *)
6319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6320 ;;
6321 esac
6322 ;;
6323*)
6324 # fallback: assume linklib IS sharedlib
6325 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6326 ;;
6327esac
6328
6329fi
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6331$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6332sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6333test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6334
6335
6336
6337
6338
6339
6340
6341
6342if test -n "$ac_tool_prefix"; then
6343 for ac_prog in ar
6344 do
6345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348$as_echo_n "checking for $ac_word... " >&6; }
6349if ${ac_cv_prog_AR+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351else
6352 if test -n "$AR"; then
6353 ac_cv_prog_AR="$AR" # Let the user override the test.
6354else
6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356for as_dir in $PATH
6357do
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6365 fi
6366done
6367 done
6368IFS=$as_save_IFS
6369
6370fi
6371fi
6372AR=$ac_cv_prog_AR
6373if test -n "$AR"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6375$as_echo "$AR" >&6; }
6376else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382 test -n "$AR" && break
6383 done
6384fi
6385if test -z "$AR"; then
6386 ac_ct_AR=$AR
6387 for ac_prog in ar
6388do
6389 # Extract the first word of "$ac_prog", so it can be a program name with args.
6390set dummy $ac_prog; ac_word=$2
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392$as_echo_n "checking for $ac_word... " >&6; }
6393if ${ac_cv_prog_ac_ct_AR+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395else
6396 if test -n "$ac_ct_AR"; then
6397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6398else
6399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_ac_ct_AR="$ac_prog"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411 done
6412IFS=$as_save_IFS
6413
6414fi
6415fi
6416ac_ct_AR=$ac_cv_prog_ac_ct_AR
6417if test -n "$ac_ct_AR"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6419$as_echo "$ac_ct_AR" >&6; }
6420else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426 test -n "$ac_ct_AR" && break
6427done
6428
6429 if test "x$ac_ct_AR" = x; then
6430 AR="false"
6431 else
6432 case $cross_compiling:$ac_tool_warned in
6433yes:)
6434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6436ac_tool_warned=yes ;;
6437esac
6438 AR=$ac_ct_AR
6439 fi
6440fi
6441
6442: ${AR=ar}
6443: ${AR_FLAGS=cru}
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6456$as_echo_n "checking for archiver @FILE support... " >&6; }
6457if ${lt_cv_ar_at_file+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459else
6460 lt_cv_ar_at_file=no
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h. */
6463
6464int
6465main ()
6466{
6467
6468 ;
6469 return 0;
6470}
6471_ACEOF
6472if ac_fn_c_try_compile "$LINENO"; then :
6473 echo conftest.$ac_objext > conftest.lst
6474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6476 (eval $lt_ar_try) 2>&5
6477 ac_status=$?
6478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6479 test $ac_status = 0; }
6480 if test 0 -eq "$ac_status"; then
6481 # Ensure the archiver fails upon bogus file names.
6482 rm -f conftest.$ac_objext libconftest.a
6483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6484 (eval $lt_ar_try) 2>&5
6485 ac_status=$?
6486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6487 test $ac_status = 0; }
6488 if test 0 -ne "$ac_status"; then
6489 lt_cv_ar_at_file=@
6490 fi
6491 fi
6492 rm -f conftest.* libconftest.a
6493
6494fi
6495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6496
6497fi
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6499$as_echo "$lt_cv_ar_at_file" >&6; }
6500
6501if test no = "$lt_cv_ar_at_file"; then
6502 archiver_list_spec=
6503else
6504 archiver_list_spec=$lt_cv_ar_at_file
6505fi
6506
6507
6508
6509
6510
6511
6512
6513if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}strip; ac_word=$2
6516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517$as_echo_n "checking for $ac_word... " >&6; }
6518if ${ac_cv_prog_STRIP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520else
6521 if test -n "$STRIP"; then
6522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536 done
6537IFS=$as_save_IFS
6538
6539fi
6540fi
6541STRIP=$ac_cv_prog_STRIP
6542if test -n "$STRIP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6544$as_echo "$STRIP" >&6; }
6545else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547$as_echo "no" >&6; }
6548fi
6549
6550
6551fi
6552if test -z "$ac_cv_prog_STRIP"; then
6553 ac_ct_STRIP=$STRIP
6554 # Extract the first word of "strip", so it can be a program name with args.
6555set dummy strip; ac_word=$2
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557$as_echo_n "checking for $ac_word... " >&6; }
6558if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560else
6561 if test -n "$ac_ct_STRIP"; then
6562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6563else
6564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565for as_dir in $PATH
6566do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_STRIP="strip"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575done
6576 done
6577IFS=$as_save_IFS
6578
6579fi
6580fi
6581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6582if test -n "$ac_ct_STRIP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6584$as_echo "$ac_ct_STRIP" >&6; }
6585else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587$as_echo "no" >&6; }
6588fi
6589
6590 if test "x$ac_ct_STRIP" = x; then
6591 STRIP=":"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594yes:)
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597ac_tool_warned=yes ;;
6598esac
6599 STRIP=$ac_ct_STRIP
6600 fi
6601else
6602 STRIP="$ac_cv_prog_STRIP"
6603fi
6604
6605test -z "$STRIP" && STRIP=:
6606
6607
6608
6609
6610
6611
6612if test -n "$ac_tool_prefix"; then
6613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6614set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616$as_echo_n "checking for $ac_word... " >&6; }
6617if ${ac_cv_prog_RANLIB+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619else
6620 if test -n "$RANLIB"; then
6621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6622else
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634done
6635 done
6636IFS=$as_save_IFS
6637
6638fi
6639fi
6640RANLIB=$ac_cv_prog_RANLIB
6641if test -n "$RANLIB"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6643$as_echo "$RANLIB" >&6; }
6644else
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646$as_echo "no" >&6; }
6647fi
6648
6649
6650fi
6651if test -z "$ac_cv_prog_RANLIB"; then
6652 ac_ct_RANLIB=$RANLIB
6653 # Extract the first word of "ranlib", so it can be a program name with args.
6654set dummy ranlib; ac_word=$2
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656$as_echo_n "checking for $ac_word... " >&6; }
6657if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659else
6660 if test -n "$ac_ct_RANLIB"; then
6661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_ac_ct_RANLIB="ranlib"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674done
6675 done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6681if test -n "$ac_ct_RANLIB"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6683$as_echo "$ac_ct_RANLIB" >&6; }
6684else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686$as_echo "no" >&6; }
6687fi
6688
6689 if test "x$ac_ct_RANLIB" = x; then
6690 RANLIB=":"
6691 else
6692 case $cross_compiling:$ac_tool_warned in
6693yes:)
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6696ac_tool_warned=yes ;;
6697esac
6698 RANLIB=$ac_ct_RANLIB
6699 fi
6700else
6701 RANLIB="$ac_cv_prog_RANLIB"
6702fi
6703
6704test -z "$RANLIB" && RANLIB=:
6705
6706
6707
6708
6709
6710
6711# Determine commands to create old-style static archives.
6712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6713old_postinstall_cmds='chmod 644 $oldlib'
6714old_postuninstall_cmds=
6715
6716if test -n "$RANLIB"; then
6717 case $host_os in
6718 bitrig* | openbsd*)
6719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6720 ;;
6721 *)
6722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6723 ;;
6724 esac
6725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6726fi
6727
6728case $host_os in
6729 darwin*)
6730 lock_old_archive_extraction=yes ;;
6731 *)
6732 lock_old_archive_extraction=no ;;
6733esac
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
6773# If no C compiler was specified, use CC.
6774LTCC=${LTCC-"$CC"}
6775
6776# If no C compiler flags were specified, use CFLAGS.
6777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6778
6779# Allow CC to be a program name with arguments.
6780compiler=$CC
6781
6782
6783# Check for command to grab the raw symbol name followed by C symbol from nm.
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6785$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6786if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788else
6789
6790# These are sane defaults that work on at least a few old systems.
6791# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6792
6793# Character class describing NM global symbol codes.
6794symcode='[BCDEGRST]'
6795
6796# Regexp to match symbols that can be accessed directly from C.
6797sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6798
6799# Define system-specific variables.
6800case $host_os in
6801aix*)
6802 symcode='[BCDT]'
6803 ;;
6804cygwin* | mingw* | pw32* | cegcc*)
6805 symcode='[ABCDGISTW]'
6806 ;;
6807hpux*)
6808 if test ia64 = "$host_cpu"; then
6809 symcode='[ABCDEGRST]'
6810 fi
6811 ;;
6812irix* | nonstopux*)
6813 symcode='[BCDEGRST]'
6814 ;;
6815osf*)
6816 symcode='[BCDEGQRST]'
6817 ;;
6818solaris*)
6819 symcode='[BDRT]'
6820 ;;
6821sco3.2v5*)
6822 symcode='[DT]'
6823 ;;
6824sysv4.2uw2*)
6825 symcode='[DT]'
6826 ;;
6827sysv5* | sco5v6* | unixware* | OpenUNIX*)
6828 symcode='[ABDT]'
6829 ;;
6830sysv4)
6831 symcode='[DFNSTU]'
6832 ;;
6833esac
6834
6835# If we're using GNU nm, then use its standard symbol codes.
6836case `$NM -V 2>&1` in
6837*GNU* | *'with BFD'*)
6838 symcode='[ABCDGIRSTW]' ;;
6839esac
6840
6841if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6842 # Gets list of data symbols to import.
6843 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6844 # Adjust the below global symbol transforms to fixup imported variables.
6845 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6846 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6847 lt_c_name_lib_hook="\
6848 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6849 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6850else
6851 # Disable hooks by default.
6852 lt_cv_sys_global_symbol_to_import=
6853 lt_cdecl_hook=
6854 lt_c_name_hook=
6855 lt_c_name_lib_hook=
6856fi
6857
6858# Transform an extracted symbol line into a proper C declaration.
6859# Some systems (esp. on ia64) link data and code symbols differently,
6860# so use this general approach.
6861lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6862$lt_cdecl_hook\
6863" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6864" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6865
6866# Transform an extracted symbol line into symbol name and symbol address
6867lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6868$lt_c_name_hook\
6869" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6870" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6871
6872# Transform an extracted symbol line into symbol name with lib prefix and
6873# symbol address.
6874lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6875$lt_c_name_lib_hook\
6876" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6877" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6878" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6879
6880# Handle CRLF in mingw tool chain
6881opt_cr=
6882case $build_os in
6883mingw*)
6884 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885 ;;
6886esac
6887
6888# Try without a prefix underscore, then with it.
6889for ac_symprfx in "" "_"; do
6890
6891 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6892 symxfrm="\\1 $ac_symprfx\\2 \\2"
6893
6894 # Write the raw and C identifiers.
6895 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6896 # Fake it for dumpbin and say T for any non-static function,
6897 # D for any global variable and I for any imported variable.
6898 # Also find C++ and __fastcall symbols from MSVC++,
6899 # which start with @ or ?.
6900 lt_cv_sys_global_symbol_pipe="$AWK '"\
6901" {last_section=section; section=\$ 3};"\
6902" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6903" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6904" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6905" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6906" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6907" \$ 0!~/External *\|/{next};"\
6908" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6909" {if(hide[section]) next};"\
6910" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6911" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6912" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6913" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6914" ' prfx=^$ac_symprfx"
6915 else
6916 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6917 fi
6918 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6919
6920 # Check to see that the pipe works correctly.
6921 pipe_works=no
6922
6923 rm -f conftest*
6924 cat > conftest.$ac_ext <<_LT_EOF
6925#ifdef __cplusplus
6926extern "C" {
6927#endif
6928char nm_test_var;
6929void nm_test_func(void);
6930void nm_test_func(void){}
6931#ifdef __cplusplus
6932}
6933#endif
6934int main(){nm_test_var='a';nm_test_func();return(0);}
6935_LT_EOF
6936
6937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6938 (eval $ac_compile) 2>&5
6939 ac_status=$?
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }; then
6942 # Now try to grab the symbols.
6943 nlist=conftest.nm
6944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6945 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6946 ac_status=$?
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6948 test $ac_status = 0; } && test -s "$nlist"; then
6949 # Try sorting and uniquifying the output.
6950 if sort "$nlist" | uniq > "$nlist"T; then
6951 mv -f "$nlist"T "$nlist"
6952 else
6953 rm -f "$nlist"T
6954 fi
6955
6956 # Make sure that we snagged all the symbols we need.
6957 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6958 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6959 cat <<_LT_EOF > conftest.$ac_ext
6960/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6961#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6962/* DATA imports from DLLs on WIN32 can't be const, because runtime
6963 relocations are performed -- see ld's documentation on pseudo-relocs. */
6964# define LT_DLSYM_CONST
6965#elif defined __osf__
6966/* This system does not cope well with relocations in const data. */
6967# define LT_DLSYM_CONST
6968#else
6969# define LT_DLSYM_CONST const
6970#endif
6971
6972#ifdef __cplusplus
6973extern "C" {
6974#endif
6975
6976_LT_EOF
6977 # Now generate the symbol file.
6978 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6979
6980 cat <<_LT_EOF >> conftest.$ac_ext
6981
6982/* The mapping between symbol names and symbols. */
6983LT_DLSYM_CONST struct {
6984 const char *name;
6985 void *address;
6986}
6987lt__PROGRAM__LTX_preloaded_symbols[] =
6988{
6989 { "@PROGRAM@", (void *) 0 },
6990_LT_EOF
6991 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6992 cat <<\_LT_EOF >> conftest.$ac_ext
6993 {0, (void *) 0}
6994};
6995
6996/* This works around a problem in FreeBSD linker */
6997#ifdef FREEBSD_WORKAROUND
6998static const void *lt_preloaded_setup() {
6999 return lt__PROGRAM__LTX_preloaded_symbols;
7000}
7001#endif
7002
7003#ifdef __cplusplus
7004}
7005#endif
7006_LT_EOF
7007 # Now try linking the two files.
7008 mv conftest.$ac_objext conftstm.$ac_objext
7009 lt_globsym_save_LIBS=$LIBS
7010 lt_globsym_save_CFLAGS=$CFLAGS
7011 LIBS=conftstm.$ac_objext
7012 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7014 (eval $ac_link) 2>&5
7015 ac_status=$?
7016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7017 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7018 pipe_works=yes
7019 fi
7020 LIBS=$lt_globsym_save_LIBS
7021 CFLAGS=$lt_globsym_save_CFLAGS
7022 else
7023 echo "cannot find nm_test_func in $nlist" >&5
7024 fi
7025 else
7026 echo "cannot find nm_test_var in $nlist" >&5
7027 fi
7028 else
7029 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7030 fi
7031 else
7032 echo "$progname: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7034 fi
7035 rm -rf conftest* conftst*
7036
7037 # Do not use the global_symbol_pipe unless it works.
7038 if test yes = "$pipe_works"; then
7039 break
7040 else
7041 lt_cv_sys_global_symbol_pipe=
7042 fi
7043done
7044
7045fi
7046
7047if test -z "$lt_cv_sys_global_symbol_pipe"; then
7048 lt_cv_sys_global_symbol_to_cdecl=
7049fi
7050if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7052$as_echo "failed" >&6; }
7053else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7055$as_echo "ok" >&6; }
7056fi
7057
7058# Response file support.
7059if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060 nm_file_list_spec='@'
7061elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7062 nm_file_list_spec='@'
7063fi
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
7098
7099
7100
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7102$as_echo_n "checking for sysroot... " >&6; }
7103
7104# Check whether --with-sysroot was given.
7105if test "${with_sysroot+set}" = set; then :
7106 withval=$with_sysroot;
7107else
7108 with_sysroot=no
7109fi
7110
7111
7112lt_sysroot=
7113case $with_sysroot in #(
7114 yes)
7115 if test yes = "$GCC"; then
7116 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7117 fi
7118 ;; #(
7119 /*)
7120 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7121 ;; #(
7122 no|'')
7123 ;; #(
7124 *)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7126$as_echo "$with_sysroot" >&6; }
7127 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7128 ;;
7129esac
7130
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7132$as_echo "${lt_sysroot:-no}" >&6; }
7133
7134
7135
7136
7137
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7139$as_echo_n "checking for a working dd... " >&6; }
7140if ${ac_cv_path_lt_DD+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142else
7143 printf 0123456789abcdef0123456789abcdef >conftest.i
7144cat conftest.i conftest.i >conftest2.i
7145: ${lt_DD:=$DD}
7146if test -z "$lt_DD"; then
7147 ac_path_lt_DD_found=false
7148 # Loop through the user's path and test for each of PROGNAME-LIST
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150for as_dir in $PATH
7151do
7152 IFS=$as_save_IFS
7153 test -z "$as_dir" && as_dir=.
7154 for ac_prog in dd; do
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7157 as_fn_executable_p "$ac_path_lt_DD" || continue
7158if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7159 cmp -s conftest.i conftest.out \
7160 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7161fi
7162 $ac_path_lt_DD_found && break 3
7163 done
7164 done
7165 done
7166IFS=$as_save_IFS
7167 if test -z "$ac_cv_path_lt_DD"; then
7168 :
7169 fi
7170else
7171 ac_cv_path_lt_DD=$lt_DD
7172fi
7173
7174rm -f conftest.i conftest2.i conftest.out
7175fi
7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7177$as_echo "$ac_cv_path_lt_DD" >&6; }
7178
7179
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7181$as_echo_n "checking how to truncate binary pipes... " >&6; }
7182if ${lt_cv_truncate_bin+:} false; then :
7183 $as_echo_n "(cached) " >&6
7184else
7185 printf 0123456789abcdef0123456789abcdef >conftest.i
7186cat conftest.i conftest.i >conftest2.i
7187lt_cv_truncate_bin=
7188if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7189 cmp -s conftest.i conftest.out \
7190 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7191fi
7192rm -f conftest.i conftest2.i conftest.out
7193test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7194fi
7195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7196$as_echo "$lt_cv_truncate_bin" >&6; }
7197
7198
7199
7200
7201
7202
7203
7204# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7205func_cc_basename ()
7206{
7207 for cc_temp in $*""; do
7208 case $cc_temp in
7209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7211 \-*) ;;
7212 *) break;;
7213 esac
7214 done
7215 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7216}
7217
7218# Check whether --enable-libtool-lock was given.
7219if test "${enable_libtool_lock+set}" = set; then :
7220 enableval=$enable_libtool_lock;
7221fi
7222
7223test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7224
7225# Some flags need to be propagated to the compiler or linker for good
7226# libtool support.
7227case $host in
7228ia64-*-hpux*)
7229 # Find out what ABI is being produced by ac_compile, and set mode
7230 # options accordingly.
7231 echo 'int i;' > conftest.$ac_ext
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 case `/usr/bin/file conftest.$ac_objext` in
7238 *ELF-32*)
7239 HPUX_IA64_MODE=32
7240 ;;
7241 *ELF-64*)
7242 HPUX_IA64_MODE=64
7243 ;;
7244 esac
7245 fi
7246 rm -rf conftest*
7247 ;;
7248*-*-irix6*)
7249 # Find out what ABI is being produced by ac_compile, and set linker
7250 # options accordingly.
7251 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7253 (eval $ac_compile) 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 if test yes = "$lt_cv_prog_gnu_ld"; then
7258 case `/usr/bin/file conftest.$ac_objext` in
7259 *32-bit*)
7260 LD="${LD-ld} -melf32bsmip"
7261 ;;
7262 *N32*)
7263 LD="${LD-ld} -melf32bmipn32"
7264 ;;
7265 *64-bit*)
7266 LD="${LD-ld} -melf64bmip"
7267 ;;
7268 esac
7269 else
7270 case `/usr/bin/file conftest.$ac_objext` in
7271 *32-bit*)
7272 LD="${LD-ld} -32"
7273 ;;
7274 *N32*)
7275 LD="${LD-ld} -n32"
7276 ;;
7277 *64-bit*)
7278 LD="${LD-ld} -64"
7279 ;;
7280 esac
7281 fi
7282 fi
7283 rm -rf conftest*
7284 ;;
7285
7286mips64*-*linux*)
7287 # Find out what ABI is being produced by ac_compile, and set linker
7288 # options accordingly.
7289 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7291 (eval $ac_compile) 2>&5
7292 ac_status=$?
7293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7294 test $ac_status = 0; }; then
7295 emul=elf
7296 case `/usr/bin/file conftest.$ac_objext` in
7297 *32-bit*)
7298 emul="${emul}32"
7299 ;;
7300 *64-bit*)
7301 emul="${emul}64"
7302 ;;
7303 esac
7304 case `/usr/bin/file conftest.$ac_objext` in
7305 *MSB*)
7306 emul="${emul}btsmip"
7307 ;;
7308 *LSB*)
7309 emul="${emul}ltsmip"
7310 ;;
7311 esac
7312 case `/usr/bin/file conftest.$ac_objext` in
7313 *N32*)
7314 emul="${emul}n32"
7315 ;;
7316 esac
7317 LD="${LD-ld} -m $emul"
7318 fi
7319 rm -rf conftest*
7320 ;;
7321
7322x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7323s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7324 # Find out what ABI is being produced by ac_compile, and set linker
7325 # options accordingly. Note that the listed cases only cover the
7326 # situations where additional linker options are needed (such as when
7327 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7328 # vice versa); the common cases where no linker options are needed do
7329 # not appear in the list.
7330 echo 'int i;' > conftest.$ac_ext
7331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7332 (eval $ac_compile) 2>&5
7333 ac_status=$?
7334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335 test $ac_status = 0; }; then
7336 case `/usr/bin/file conftest.o` in
7337 *32-bit*)
7338 case $host in
7339 x86_64-*kfreebsd*-gnu)
7340 LD="${LD-ld} -m elf_i386_fbsd"
7341 ;;
7342 x86_64-*linux*)
7343 case `/usr/bin/file conftest.o` in
7344 *x86-64*)
7345 LD="${LD-ld} -m elf32_x86_64"
7346 ;;
7347 *)
7348 LD="${LD-ld} -m elf_i386"
7349 ;;
7350 esac
7351 ;;
7352 powerpc64le-*linux*)
7353 LD="${LD-ld} -m elf32lppclinux"
7354 ;;
7355 powerpc64-*linux*)
7356 LD="${LD-ld} -m elf32ppclinux"
7357 ;;
7358 s390x-*linux*)
7359 LD="${LD-ld} -m elf_s390"
7360 ;;
7361 sparc64-*linux*)
7362 LD="${LD-ld} -m elf32_sparc"
7363 ;;
7364 esac
7365 ;;
7366 *64-bit*)
7367 case $host in
7368 x86_64-*kfreebsd*-gnu)
7369 LD="${LD-ld} -m elf_x86_64_fbsd"
7370 ;;
7371 x86_64-*linux*)
7372 LD="${LD-ld} -m elf_x86_64"
7373 ;;
7374 powerpcle-*linux*)
7375 LD="${LD-ld} -m elf64lppc"
7376 ;;
7377 powerpc-*linux*)
7378 LD="${LD-ld} -m elf64ppc"
7379 ;;
7380 s390*-*linux*|s390*-*tpf*)
7381 LD="${LD-ld} -m elf64_s390"
7382 ;;
7383 sparc*-*linux*)
7384 LD="${LD-ld} -m elf64_sparc"
7385 ;;
7386 esac
7387 ;;
7388 esac
7389 fi
7390 rm -rf conftest*
7391 ;;
7392
7393*-*-sco3.2v5*)
7394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7395 SAVE_CFLAGS=$CFLAGS
7396 CFLAGS="$CFLAGS -belf"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7398$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7399if ${lt_cv_cc_needs_belf+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401else
7402 ac_ext=c
7403ac_cpp='$CPP $CPPFLAGS'
7404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7406ac_compiler_gnu=$ac_cv_c_compiler_gnu
7407
7408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7409/* end confdefs.h. */
7410
7411int
7412main ()
7413{
7414
7415 ;
7416 return 0;
7417}
7418_ACEOF
7419if ac_fn_c_try_link "$LINENO"; then :
7420 lt_cv_cc_needs_belf=yes
7421else
7422 lt_cv_cc_needs_belf=no
7423fi
7424rm -f core conftest.err conftest.$ac_objext \
7425 conftest$ac_exeext conftest.$ac_ext
7426 ac_ext=c
7427ac_cpp='$CPP $CPPFLAGS'
7428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430ac_compiler_gnu=$ac_cv_c_compiler_gnu
7431
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7434$as_echo "$lt_cv_cc_needs_belf" >&6; }
7435 if test yes != "$lt_cv_cc_needs_belf"; then
7436 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7437 CFLAGS=$SAVE_CFLAGS
7438 fi
7439 ;;
7440*-*solaris*)
7441 # Find out what ABI is being produced by ac_compile, and set linker
7442 # options accordingly.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7446 ac_status=$?
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `/usr/bin/file conftest.o` in
7450 *64-bit*)
7451 case $lt_cv_prog_gnu_ld in
7452 yes*)
7453 case $host in
7454 i?86-*-solaris*|x86_64-*-solaris*)
7455 LD="${LD-ld} -m elf_x86_64"
7456 ;;
7457 sparc*-*-solaris*)
7458 LD="${LD-ld} -m elf64_sparc"
7459 ;;
7460 esac
7461 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7462 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7463 LD=${LD-ld}_sol2
7464 fi
7465 ;;
7466 *)
7467 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7468 LD="${LD-ld} -64"
7469 fi
7470 ;;
7471 esac
7472 ;;
7473 esac
7474 fi
7475 rm -rf conftest*
7476 ;;
7477esac
7478
7479need_locks=$enable_libtool_lock
7480
7481if test -n "$ac_tool_prefix"; then
7482 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7483set dummy ${ac_tool_prefix}mt; ac_word=$2
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485$as_echo_n "checking for $ac_word... " >&6; }
7486if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7487 $as_echo_n "(cached) " >&6
7488else
7489 if test -n "$MANIFEST_TOOL"; then
7490 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7491else
7492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493for as_dir in $PATH
7494do
7495 IFS=$as_save_IFS
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7499 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 break 2
7502 fi
7503done
7504 done
7505IFS=$as_save_IFS
7506
7507fi
7508fi
7509MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7510if test -n "$MANIFEST_TOOL"; then
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7512$as_echo "$MANIFEST_TOOL" >&6; }
7513else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517
7518
7519fi
7520if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7521 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7522 # Extract the first word of "mt", so it can be a program name with args.
7523set dummy mt; ac_word=$2
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7525$as_echo_n "checking for $ac_word... " >&6; }
7526if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528else
7529 if test -n "$ac_ct_MANIFEST_TOOL"; then
7530 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535 IFS=$as_save_IFS
7536 test -z "$as_dir" && as_dir=.
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 break 2
7542 fi
7543done
7544 done
7545IFS=$as_save_IFS
7546
7547fi
7548fi
7549ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7550if test -n "$ac_ct_MANIFEST_TOOL"; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7552$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7553else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556fi
7557
7558 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7559 MANIFEST_TOOL=":"
7560 else
7561 case $cross_compiling:$ac_tool_warned in
7562yes:)
7563{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7565ac_tool_warned=yes ;;
7566esac
7567 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7568 fi
7569else
7570 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7571fi
7572
7573test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7575$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7576if ${lt_cv_path_mainfest_tool+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578else
7579 lt_cv_path_mainfest_tool=no
7580 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7581 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7582 cat conftest.err >&5
7583 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7584 lt_cv_path_mainfest_tool=yes
7585 fi
7586 rm -f conftest*
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7589$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7590if test yes != "$lt_cv_path_mainfest_tool"; then
7591 MANIFEST_TOOL=:
7592fi
7593
7594
7595
7596
7597
7598
7599 case $host_os in
7600 rhapsody* | darwin*)
7601 if test -n "$ac_tool_prefix"; then
7602 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_DSYMUTIL+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608else
7609 if test -n "$DSYMUTIL"; then
7610 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7622 fi
7623done
7624 done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629DSYMUTIL=$ac_cv_prog_DSYMUTIL
7630if test -n "$DSYMUTIL"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7632$as_echo "$DSYMUTIL" >&6; }
7633else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638
7639fi
7640if test -z "$ac_cv_prog_DSYMUTIL"; then
7641 ac_ct_DSYMUTIL=$DSYMUTIL
7642 # Extract the first word of "dsymutil", so it can be a program name with args.
7643set dummy dsymutil; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
7646if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648else
7649 if test -n "$ac_ct_DSYMUTIL"; then
7650 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7662 fi
7663done
7664 done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7670if test -n "$ac_ct_DSYMUTIL"; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7672$as_echo "$ac_ct_DSYMUTIL" >&6; }
7673else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678 if test "x$ac_ct_DSYMUTIL" = x; then
7679 DSYMUTIL=":"
7680 else
7681 case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687 DSYMUTIL=$ac_ct_DSYMUTIL
7688 fi
7689else
7690 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7691fi
7692
7693 if test -n "$ac_tool_prefix"; then
7694 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7695set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697$as_echo_n "checking for $ac_word... " >&6; }
7698if ${ac_cv_prog_NMEDIT+:} false; then :
7699 $as_echo_n "(cached) " >&6
7700else
7701 if test -n "$NMEDIT"; then
7702 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7703else
7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707 IFS=$as_save_IFS
7708 test -z "$as_dir" && as_dir=.
7709 for ac_exec_ext in '' $ac_executable_extensions; do
7710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713 break 2
7714 fi
7715done
7716 done
7717IFS=$as_save_IFS
7718
7719fi
7720fi
7721NMEDIT=$ac_cv_prog_NMEDIT
7722if test -n "$NMEDIT"; then
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7724$as_echo "$NMEDIT" >&6; }
7725else
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727$as_echo "no" >&6; }
7728fi
7729
7730
7731fi
7732if test -z "$ac_cv_prog_NMEDIT"; then
7733 ac_ct_NMEDIT=$NMEDIT
7734 # Extract the first word of "nmedit", so it can be a program name with args.
7735set dummy nmedit; ac_word=$2
7736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737$as_echo_n "checking for $ac_word... " >&6; }
7738if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740else
7741 if test -n "$ac_ct_NMEDIT"; then
7742 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747 IFS=$as_save_IFS
7748 test -z "$as_dir" && as_dir=.
7749 for ac_exec_ext in '' $ac_executable_extensions; do
7750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753 break 2
7754 fi
7755done
7756 done
7757IFS=$as_save_IFS
7758
7759fi
7760fi
7761ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7762if test -n "$ac_ct_NMEDIT"; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7764$as_echo "$ac_ct_NMEDIT" >&6; }
7765else
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767$as_echo "no" >&6; }
7768fi
7769
7770 if test "x$ac_ct_NMEDIT" = x; then
7771 NMEDIT=":"
7772 else
7773 case $cross_compiling:$ac_tool_warned in
7774yes:)
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777ac_tool_warned=yes ;;
7778esac
7779 NMEDIT=$ac_ct_NMEDIT
7780 fi
7781else
7782 NMEDIT="$ac_cv_prog_NMEDIT"
7783fi
7784
7785 if test -n "$ac_tool_prefix"; then
7786 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7787set dummy ${ac_tool_prefix}lipo; ac_word=$2
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789$as_echo_n "checking for $ac_word... " >&6; }
7790if ${ac_cv_prog_LIPO+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792else
7793 if test -n "$LIPO"; then
7794 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7795else
7796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797for as_dir in $PATH
7798do
7799 IFS=$as_save_IFS
7800 test -z "$as_dir" && as_dir=.
7801 for ac_exec_ext in '' $ac_executable_extensions; do
7802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 break 2
7806 fi
7807done
7808 done
7809IFS=$as_save_IFS
7810
7811fi
7812fi
7813LIPO=$ac_cv_prog_LIPO
7814if test -n "$LIPO"; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7816$as_echo "$LIPO" >&6; }
7817else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819$as_echo "no" >&6; }
7820fi
7821
7822
7823fi
7824if test -z "$ac_cv_prog_LIPO"; then
7825 ac_ct_LIPO=$LIPO
7826 # Extract the first word of "lipo", so it can be a program name with args.
7827set dummy lipo; ac_word=$2
7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829$as_echo_n "checking for $ac_word... " >&6; }
7830if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832else
7833 if test -n "$ac_ct_LIPO"; then
7834 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7835else
7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837for as_dir in $PATH
7838do
7839 IFS=$as_save_IFS
7840 test -z "$as_dir" && as_dir=.
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_ac_ct_LIPO="lipo"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847done
7848 done
7849IFS=$as_save_IFS
7850
7851fi
7852fi
7853ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7854if test -n "$ac_ct_LIPO"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7856$as_echo "$ac_ct_LIPO" >&6; }
7857else
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859$as_echo "no" >&6; }
7860fi
7861
7862 if test "x$ac_ct_LIPO" = x; then
7863 LIPO=":"
7864 else
7865 case $cross_compiling:$ac_tool_warned in
7866yes:)
7867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7869ac_tool_warned=yes ;;
7870esac
7871 LIPO=$ac_ct_LIPO
7872 fi
7873else
7874 LIPO="$ac_cv_prog_LIPO"
7875fi
7876
7877 if test -n "$ac_tool_prefix"; then
7878 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7879set dummy ${ac_tool_prefix}otool; ac_word=$2
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881$as_echo_n "checking for $ac_word... " >&6; }
7882if ${ac_cv_prog_OTOOL+:} false; then :
7883 $as_echo_n "(cached) " >&6
7884else
7885 if test -n "$OTOOL"; then
7886 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7887else
7888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889for as_dir in $PATH
7890do
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7898 fi
7899done
7900 done
7901IFS=$as_save_IFS
7902
7903fi
7904fi
7905OTOOL=$ac_cv_prog_OTOOL
7906if test -n "$OTOOL"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7908$as_echo "$OTOOL" >&6; }
7909else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911$as_echo "no" >&6; }
7912fi
7913
7914
7915fi
7916if test -z "$ac_cv_prog_OTOOL"; then
7917 ac_ct_OTOOL=$OTOOL
7918 # Extract the first word of "otool", so it can be a program name with args.
7919set dummy otool; ac_word=$2
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921$as_echo_n "checking for $ac_word... " >&6; }
7922if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7923 $as_echo_n "(cached) " >&6
7924else
7925 if test -n "$ac_ct_OTOOL"; then
7926 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7927else
7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7929for as_dir in $PATH
7930do
7931 IFS=$as_save_IFS
7932 test -z "$as_dir" && as_dir=.
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7935 ac_cv_prog_ac_ct_OTOOL="otool"
7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7937 break 2
7938 fi
7939done
7940 done
7941IFS=$as_save_IFS
7942
7943fi
7944fi
7945ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7946if test -n "$ac_ct_OTOOL"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7948$as_echo "$ac_ct_OTOOL" >&6; }
7949else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951$as_echo "no" >&6; }
7952fi
7953
7954 if test "x$ac_ct_OTOOL" = x; then
7955 OTOOL=":"
7956 else
7957 case $cross_compiling:$ac_tool_warned in
7958yes:)
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7961ac_tool_warned=yes ;;
7962esac
7963 OTOOL=$ac_ct_OTOOL
7964 fi
7965else
7966 OTOOL="$ac_cv_prog_OTOOL"
7967fi
7968
7969 if test -n "$ac_tool_prefix"; then
7970 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7971set dummy ${ac_tool_prefix}otool64; ac_word=$2
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
7974if ${ac_cv_prog_OTOOL64+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976else
7977 if test -n "$OTOOL64"; then
7978 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992 done
7993IFS=$as_save_IFS
7994
7995fi
7996fi
7997OTOOL64=$ac_cv_prog_OTOOL64
7998if test -n "$OTOOL64"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8000$as_echo "$OTOOL64" >&6; }
8001else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003$as_echo "no" >&6; }
8004fi
8005
8006
8007fi
8008if test -z "$ac_cv_prog_OTOOL64"; then
8009 ac_ct_OTOOL64=$OTOOL64
8010 # Extract the first word of "otool64", so it can be a program name with args.
8011set dummy otool64; ac_word=$2
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
8014if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016else
8017 if test -n "$ac_ct_OTOOL64"; then
8018 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027 ac_cv_prog_ac_ct_OTOOL64="otool64"
8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032 done
8033IFS=$as_save_IFS
8034
8035fi
8036fi
8037ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8038if test -n "$ac_ct_OTOOL64"; then
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8040$as_echo "$ac_ct_OTOOL64" >&6; }
8041else
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
8044fi
8045
8046 if test "x$ac_ct_OTOOL64" = x; then
8047 OTOOL64=":"
8048 else
8049 case $cross_compiling:$ac_tool_warned in
8050yes:)
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8053ac_tool_warned=yes ;;
8054esac
8055 OTOOL64=$ac_ct_OTOOL64
8056 fi
8057else
8058 OTOOL64="$ac_cv_prog_OTOOL64"
8059fi
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8088$as_echo_n "checking for -single_module linker flag... " >&6; }
8089if ${lt_cv_apple_cc_single_mod+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091else
8092 lt_cv_apple_cc_single_mod=no
8093 if test -z "$LT_MULTI_MODULE"; then
8094 # By default we will add the -single_module flag. You can override
8095 # by either setting the environment variable LT_MULTI_MODULE
8096 # non-empty at configure time, or by adding -multi_module to the
8097 # link flags.
8098 rm -rf libconftest.dylib*
8099 echo "int foo(void){return 1;}" > conftest.c
8100 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8101-dynamiclib -Wl,-single_module conftest.c" >&5
8102 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8103 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8104 _lt_result=$?
8105 # If there is a non-empty error log, and "single_module"
8106 # appears in it, assume the flag caused a linker warning
8107 if test -s conftest.err && $GREP single_module conftest.err; then
8108 cat conftest.err >&5
8109 # Otherwise, if the output was created with a 0 exit code from
8110 # the compiler, it worked.
8111 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8112 lt_cv_apple_cc_single_mod=yes
8113 else
8114 cat conftest.err >&5
8115 fi
8116 rm -rf libconftest.dylib*
8117 rm -f conftest.*
8118 fi
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8121$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8122
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8124$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8125if ${lt_cv_ld_exported_symbols_list+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127else
8128 lt_cv_ld_exported_symbols_list=no
8129 save_LDFLAGS=$LDFLAGS
8130 echo "_main" > conftest.sym
8131 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h. */
8134
8135int
8136main ()
8137{
8138
8139 ;
8140 return 0;
8141}
8142_ACEOF
8143if ac_fn_c_try_link "$LINENO"; then :
8144 lt_cv_ld_exported_symbols_list=yes
8145else
8146 lt_cv_ld_exported_symbols_list=no
8147fi
8148rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 LDFLAGS=$save_LDFLAGS
8151
8152fi
8153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8154$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8155
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8157$as_echo_n "checking for -force_load linker flag... " >&6; }
8158if ${lt_cv_ld_force_load+:} false; then :
8159 $as_echo_n "(cached) " >&6
8160else
8161 lt_cv_ld_force_load=no
8162 cat > conftest.c << _LT_EOF
8163int forced_loaded() { return 2;}
8164_LT_EOF
8165 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8166 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8167 echo "$AR cru libconftest.a conftest.o" >&5
8168 $AR cru libconftest.a conftest.o 2>&5
8169 echo "$RANLIB libconftest.a" >&5
8170 $RANLIB libconftest.a 2>&5
8171 cat > conftest.c << _LT_EOF
8172int main() { return 0;}
8173_LT_EOF
8174 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8175 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8176 _lt_result=$?
8177 if test -s conftest.err && $GREP force_load conftest.err; then
8178 cat conftest.err >&5
8179 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8180 lt_cv_ld_force_load=yes
8181 else
8182 cat conftest.err >&5
8183 fi
8184 rm -f conftest.err libconftest.a conftest conftest.c
8185 rm -rf conftest.dSYM
8186
8187fi
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8189$as_echo "$lt_cv_ld_force_load" >&6; }
8190 case $host_os in
8191 rhapsody* | darwin1.[012])
8192 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8193 darwin1.*)
8194 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8195 darwin*) # darwin 5.x on
8196 # if running on 10.5 or later, the deployment target defaults
8197 # to the OS version, if on x86, and 10.4, the deployment
8198 # target defaults to 10.4. Don't you love it?
8199 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8200 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8201 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8202 10.[012][,.]*)
8203 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8204 10.*)
8205 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8206 esac
8207 ;;
8208 esac
8209 if test yes = "$lt_cv_apple_cc_single_mod"; then
8210 _lt_dar_single_mod='$single_module'
8211 fi
8212 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8213 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8214 else
8215 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8216 fi
8217 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8218 _lt_dsymutil='~$DSYMUTIL $lib || :'
8219 else
8220 _lt_dsymutil=
8221 fi
8222 ;;
8223 esac
8224
8225# func_munge_path_list VARIABLE PATH
8226# -----------------------------------
8227# VARIABLE is name of variable containing _space_ separated list of
8228# directories to be munged by the contents of PATH, which is string
8229# having a format:
8230# "DIR[:DIR]:"
8231# string "DIR[ DIR]" will be prepended to VARIABLE
8232# ":DIR[:DIR]"
8233# string "DIR[ DIR]" will be appended to VARIABLE
8234# "DIRP[:DIRP]::[DIRA:]DIRA"
8235# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8236# "DIRA[ DIRA]" will be appended to VARIABLE
8237# "DIR[:DIR]"
8238# VARIABLE will be replaced by "DIR[ DIR]"
8239func_munge_path_list ()
8240{
8241 case x$2 in
8242 x)
8243 ;;
8244 *:)
8245 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8246 ;;
8247 x:*)
8248 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8249 ;;
8250 *::*)
8251 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8252 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8253 ;;
8254 *)
8255 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8256 ;;
8257 esac
8258}
8259
8260
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8262$as_echo_n "checking for ANSI C header files... " >&6; }
8263if ${ac_cv_header_stdc+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265else
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h. */
8268#include <stdlib.h>
8269#include <stdarg.h>
8270#include <string.h>
8271#include <float.h>
8272
8273int
8274main ()
8275{
8276
8277 ;
8278 return 0;
8279}
8280_ACEOF
8281if ac_fn_c_try_compile "$LINENO"; then :
8282 ac_cv_header_stdc=yes
8283else
8284 ac_cv_header_stdc=no
8285fi
8286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287
8288if test $ac_cv_header_stdc = yes; then
8289 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h. */
8292#include <string.h>
8293
8294_ACEOF
8295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8296 $EGREP "memchr" >/dev/null 2>&1; then :
8297
8298else
8299 ac_cv_header_stdc=no
8300fi
8301rm -f conftest*
8302
8303fi
8304
8305if test $ac_cv_header_stdc = yes; then
8306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h. */
8309#include <stdlib.h>
8310
8311_ACEOF
8312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8313 $EGREP "free" >/dev/null 2>&1; then :
8314
8315else
8316 ac_cv_header_stdc=no
8317fi
8318rm -f conftest*
8319
8320fi
8321
8322if test $ac_cv_header_stdc = yes; then
8323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8324 if test "$cross_compiling" = yes; then :
8325 :
8326else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328/* end confdefs.h. */
8329#include <ctype.h>
8330#include <stdlib.h>
8331#if ((' ' & 0x0FF) == 0x020)
8332# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8333# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8334#else
8335# define ISLOWER(c) \
8336 (('a' <= (c) && (c) <= 'i') \
8337 || ('j' <= (c) && (c) <= 'r') \
8338 || ('s' <= (c) && (c) <= 'z'))
8339# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8340#endif
8341
8342#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8343int
8344main ()
8345{
8346 int i;
8347 for (i = 0; i < 256; i++)
8348 if (XOR (islower (i), ISLOWER (i))
8349 || toupper (i) != TOUPPER (i))
8350 return 2;
8351 return 0;
8352}
8353_ACEOF
8354if ac_fn_c_try_run "$LINENO"; then :
8355
8356else
8357 ac_cv_header_stdc=no
8358fi
8359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8360 conftest.$ac_objext conftest.beam conftest.$ac_ext
8361fi
8362
8363fi
8364fi
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8366$as_echo "$ac_cv_header_stdc" >&6; }
8367if test $ac_cv_header_stdc = yes; then
8368
8369$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8370
8371fi
8372
8373# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8374for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8375 inttypes.h stdint.h unistd.h
8376do :
8377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8379"
8380if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8381 cat >>confdefs.h <<_ACEOF
8382#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8383_ACEOF
8384
8385fi
8386
8387done
8388
8389
8390for ac_header in dlfcn.h
8391do :
8392 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8393"
8394if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8395 cat >>confdefs.h <<_ACEOF
8396#define HAVE_DLFCN_H 1
8397_ACEOF
8398
8399fi
8400
8401done
8402
8403
8404
8405
8406
8407# Set options
8408
8409
8410
8411 enable_dlopen=no
8412
8413
8414 enable_win32_dll=no
8415
8416
8417 # Check whether --enable-shared was given.
8418if test "${enable_shared+set}" = set; then :
8419 enableval=$enable_shared; p=${PACKAGE-default}
8420 case $enableval in
8421 yes) enable_shared=yes ;;
8422 no) enable_shared=no ;;
8423 *)
8424 enable_shared=no
8425 # Look at the argument we got. We use all the common list separators.
8426 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8427 for pkg in $enableval; do
8428 IFS=$lt_save_ifs
8429 if test "X$pkg" = "X$p"; then
8430 enable_shared=yes
8431 fi
8432 done
8433 IFS=$lt_save_ifs
8434 ;;
8435 esac
8436else
8437 enable_shared=yes
8438fi
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448 # Check whether --enable-static was given.
8449if test "${enable_static+set}" = set; then :
8450 enableval=$enable_static; p=${PACKAGE-default}
8451 case $enableval in
8452 yes) enable_static=yes ;;
8453 no) enable_static=no ;;
8454 *)
8455 enable_static=no
8456 # Look at the argument we got. We use all the common list separators.
8457 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8458 for pkg in $enableval; do
8459 IFS=$lt_save_ifs
8460 if test "X$pkg" = "X$p"; then
8461 enable_static=yes
8462 fi
8463 done
8464 IFS=$lt_save_ifs
8465 ;;
8466 esac
8467else
8468 enable_static=yes
8469fi
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480# Check whether --with-pic was given.
8481if test "${with_pic+set}" = set; then :
8482 withval=$with_pic; lt_p=${PACKAGE-default}
8483 case $withval in
8484 yes|no) pic_mode=$withval ;;
8485 *)
8486 pic_mode=default
8487 # Look at the argument we got. We use all the common list separators.
8488 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8489 for lt_pkg in $withval; do
8490 IFS=$lt_save_ifs
8491 if test "X$lt_pkg" = "X$lt_p"; then
8492 pic_mode=yes
8493 fi
8494 done
8495 IFS=$lt_save_ifs
8496 ;;
8497 esac
8498else
8499 pic_mode=default
8500fi
8501
8502
8503
8504
8505
8506
8507
8508
8509 # Check whether --enable-fast-install was given.
8510if test "${enable_fast_install+set}" = set; then :
8511 enableval=$enable_fast_install; p=${PACKAGE-default}
8512 case $enableval in
8513 yes) enable_fast_install=yes ;;
8514 no) enable_fast_install=no ;;
8515 *)
8516 enable_fast_install=no
8517 # Look at the argument we got. We use all the common list separators.
8518 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8519 for pkg in $enableval; do
8520 IFS=$lt_save_ifs
8521 if test "X$pkg" = "X$p"; then
8522 enable_fast_install=yes
8523 fi
8524 done
8525 IFS=$lt_save_ifs
8526 ;;
8527 esac
8528else
8529 enable_fast_install=yes
8530fi
8531
8532
8533
8534
8535
8536
8537
8538
8539 shared_archive_member_spec=
8540case $host,$enable_shared in
8541power*-*-aix[5-9]*,yes)
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8543$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8544
8545# Check whether --with-aix-soname was given.
8546if test "${with_aix_soname+set}" = set; then :
8547 withval=$with_aix_soname; case $withval in
8548 aix|svr4|both)
8549 ;;
8550 *)
8551 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8552 ;;
8553 esac
8554 lt_cv_with_aix_soname=$with_aix_soname
8555else
8556 if ${lt_cv_with_aix_soname+:} false; then :
8557 $as_echo_n "(cached) " >&6
8558else
8559 lt_cv_with_aix_soname=aix
8560fi
8561
8562 with_aix_soname=$lt_cv_with_aix_soname
8563fi
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8566$as_echo "$with_aix_soname" >&6; }
8567 if test aix != "$with_aix_soname"; then
8568 # For the AIX way of multilib, we name the shared archive member
8569 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8570 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8571 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8572 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8573 if test 64 = "${OBJECT_MODE-32}"; then
8574 shared_archive_member_spec=shr_64
8575 else
8576 shared_archive_member_spec=shr
8577 fi
8578 fi
8579 ;;
8580*)
8581 with_aix_soname=aix
8582 ;;
8583esac
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594# This can be used to rebuild libtool when needed
8595LIBTOOL_DEPS=$ltmain
8596
8597# Always use our own libtool.
8598LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8626
8627
8628
8629test -z "$LN_S" && LN_S="ln -s"
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644if test -n "${ZSH_VERSION+set}"; then
8645 setopt NO_GLOB_SUBST
8646fi
8647
8648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8649$as_echo_n "checking for objdir... " >&6; }
8650if ${lt_cv_objdir+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652else
8653 rm -f .libs 2>/dev/null
8654mkdir .libs 2>/dev/null
8655if test -d .libs; then
8656 lt_cv_objdir=.libs
8657else
8658 # MS-DOS does not allow filenames that begin with a dot.
8659 lt_cv_objdir=_libs
8660fi
8661rmdir .libs 2>/dev/null
8662fi
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8664$as_echo "$lt_cv_objdir" >&6; }
8665objdir=$lt_cv_objdir
8666
8667
8668
8669
8670
8671cat >>confdefs.h <<_ACEOF
8672#define LT_OBJDIR "$lt_cv_objdir/"
8673_ACEOF
8674
8675
8676
8677
8678case $host_os in
8679aix3*)
8680 # AIX sometimes has problems with the GCC collect2 program. For some
8681 # reason, if we set the COLLECT_NAMES environment variable, the problems
8682 # vanish in a puff of smoke.
8683 if test set != "${COLLECT_NAMES+set}"; then
8684 COLLECT_NAMES=
8685 export COLLECT_NAMES
8686 fi
8687 ;;
8688esac
8689
8690# Global variables:
8691ofile=libtool
8692can_build_shared=yes
8693
8694# All known linkers require a '.a' archive for static linking (except MSVC,
8695# which needs '.lib').
8696libext=a
8697
8698with_gnu_ld=$lt_cv_prog_gnu_ld
8699
8700old_CC=$CC
8701old_CFLAGS=$CFLAGS
8702
8703# Set sane defaults for various variables
8704test -z "$CC" && CC=cc
8705test -z "$LTCC" && LTCC=$CC
8706test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8707test -z "$LD" && LD=ld
8708test -z "$ac_objext" && ac_objext=o
8709
8710func_cc_basename $compiler
8711cc_basename=$func_cc_basename_result
8712
8713
8714# Only perform the check for file, if the check method requires it
8715test -z "$MAGIC_CMD" && MAGIC_CMD=file
8716case $deplibs_check_method in
8717file_magic*)
8718 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8720$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8721if ${lt_cv_path_MAGIC_CMD+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723else
8724 case $MAGIC_CMD in
8725[\\/*] | ?:[\\/]*)
8726 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8727 ;;
8728*)
8729 lt_save_MAGIC_CMD=$MAGIC_CMD
8730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8731 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8732 for ac_dir in $ac_dummy; do
8733 IFS=$lt_save_ifs
8734 test -z "$ac_dir" && ac_dir=.
8735 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8736 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8737 if test -n "$file_magic_test_file"; then
8738 case $deplibs_check_method in
8739 "file_magic "*)
8740 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8741 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8743 $EGREP "$file_magic_regex" > /dev/null; then
8744 :
8745 else
8746 cat <<_LT_EOF 1>&2
8747
8748*** Warning: the command libtool uses to detect shared libraries,
8749*** $file_magic_cmd, produces output that libtool cannot recognize.
8750*** The result is that libtool may fail to recognize shared libraries
8751*** as such. This will affect the creation of libtool libraries that
8752*** depend on shared libraries, but programs linked with such libtool
8753*** libraries will work regardless of this problem. Nevertheless, you
8754*** may want to report the problem to your system manager and/or to
8755*** [email protected]
8756
8757_LT_EOF
8758 fi ;;
8759 esac
8760 fi
8761 break
8762 fi
8763 done
8764 IFS=$lt_save_ifs
8765 MAGIC_CMD=$lt_save_MAGIC_CMD
8766 ;;
8767esac
8768fi
8769
8770MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8771if test -n "$MAGIC_CMD"; then
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8773$as_echo "$MAGIC_CMD" >&6; }
8774else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776$as_echo "no" >&6; }
8777fi
8778
8779
8780
8781
8782
8783if test -z "$lt_cv_path_MAGIC_CMD"; then
8784 if test -n "$ac_tool_prefix"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8786$as_echo_n "checking for file... " >&6; }
8787if ${lt_cv_path_MAGIC_CMD+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789else
8790 case $MAGIC_CMD in
8791[\\/*] | ?:[\\/]*)
8792 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8793 ;;
8794*)
8795 lt_save_MAGIC_CMD=$MAGIC_CMD
8796 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8797 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8798 for ac_dir in $ac_dummy; do
8799 IFS=$lt_save_ifs
8800 test -z "$ac_dir" && ac_dir=.
8801 if test -f "$ac_dir/file"; then
8802 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8803 if test -n "$file_magic_test_file"; then
8804 case $deplibs_check_method in
8805 "file_magic "*)
8806 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8807 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8808 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8809 $EGREP "$file_magic_regex" > /dev/null; then
8810 :
8811 else
8812 cat <<_LT_EOF 1>&2
8813
8814*** Warning: the command libtool uses to detect shared libraries,
8815*** $file_magic_cmd, produces output that libtool cannot recognize.
8816*** The result is that libtool may fail to recognize shared libraries
8817*** as such. This will affect the creation of libtool libraries that
8818*** depend on shared libraries, but programs linked with such libtool
8819*** libraries will work regardless of this problem. Nevertheless, you
8820*** may want to report the problem to your system manager and/or to
8821*** [email protected]
8822
8823_LT_EOF
8824 fi ;;
8825 esac
8826 fi
8827 break
8828 fi
8829 done
8830 IFS=$lt_save_ifs
8831 MAGIC_CMD=$lt_save_MAGIC_CMD
8832 ;;
8833esac
8834fi
8835
8836MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8837if test -n "$MAGIC_CMD"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8839$as_echo "$MAGIC_CMD" >&6; }
8840else
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8842$as_echo "no" >&6; }
8843fi
8844
8845
8846 else
8847 MAGIC_CMD=:
8848 fi
8849fi
8850
8851 fi
8852 ;;
8853esac
8854
8855# Use C for the default configuration in the libtool script
8856
8857lt_save_CC=$CC
8858ac_ext=c
8859ac_cpp='$CPP $CPPFLAGS'
8860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862ac_compiler_gnu=$ac_cv_c_compiler_gnu
8863
8864
8865# Source file extension for C test sources.
8866ac_ext=c
8867
8868# Object file extension for compiled C test sources.
8869objext=o
8870objext=$objext
8871
8872# Code to be used in simple compile tests
8873lt_simple_compile_test_code="int some_variable = 0;"
8874
8875# Code to be used in simple link tests
8876lt_simple_link_test_code='int main(){return(0);}'
8877
8878
8879
8880
8881
8882
8883
8884# If no C compiler was specified, use CC.
8885LTCC=${LTCC-"$CC"}
8886
8887# If no C compiler flags were specified, use CFLAGS.
8888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8889
8890# Allow CC to be a program name with arguments.
8891compiler=$CC
8892
8893# Save the default compiler, since it gets overwritten when the other
8894# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8895compiler_DEFAULT=$CC
8896
8897# save warnings/boilerplate of simple test code
8898ac_outfile=conftest.$ac_objext
8899echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8900eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8901_lt_compiler_boilerplate=`cat conftest.err`
8902$RM conftest*
8903
8904ac_outfile=conftest.$ac_objext
8905echo "$lt_simple_link_test_code" >conftest.$ac_ext
8906eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8907_lt_linker_boilerplate=`cat conftest.err`
8908$RM -r conftest*
8909
8910
8911## CAVEAT EMPTOR:
8912## There is no encapsulation within the following macros, do not change
8913## the running order or otherwise move them around unless you know exactly
8914## what you are doing...
8915if test -n "$compiler"; then
8916
8917lt_prog_compiler_no_builtin_flag=
8918
8919if test yes = "$GCC"; then
8920 case $cc_basename in
8921 nvcc*)
8922 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8923 *)
8924 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8925 esac
8926
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8928$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8929if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931else
8932 lt_cv_prog_compiler_rtti_exceptions=no
8933 ac_outfile=conftest.$ac_objext
8934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8936 # Insert the option either (1) after the last *FLAGS variable, or
8937 # (2) before a word containing "conftest.", or (3) at the end.
8938 # Note that $ac_compile itself does not contain backslashes and begins
8939 # with a dollar sign (not a hyphen), so the echo should work correctly.
8940 # The option is referenced via a variable to avoid confusing sed.
8941 lt_compile=`echo "$ac_compile" | $SED \
8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944 -e 's:$: $lt_compiler_flag:'`
8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946 (eval "$lt_compile" 2>conftest.err)
8947 ac_status=$?
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 if (exit $ac_status) && test -s "$ac_outfile"; then
8951 # The compiler can only warn and ignore the option if not recognized
8952 # So say no if there are warnings other than the usual output.
8953 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8955 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8956 lt_cv_prog_compiler_rtti_exceptions=yes
8957 fi
8958 fi
8959 $RM conftest*
8960
8961fi
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8963$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8964
8965if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8966 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8967else
8968 :
8969fi
8970
8971fi
8972
8973
8974
8975
8976
8977
8978 lt_prog_compiler_wl=
8979lt_prog_compiler_pic=
8980lt_prog_compiler_static=
8981
8982
8983 if test yes = "$GCC"; then
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_static='-static'
8986
8987 case $host_os in
8988 aix*)
8989 # All AIX code is PIC.
8990 if test ia64 = "$host_cpu"; then
8991 # AIX 5 now supports IA64 processor
8992 lt_prog_compiler_static='-Bstatic'
8993 fi
8994 lt_prog_compiler_pic='-fPIC'
8995 ;;
8996
8997 amigaos*)
8998 case $host_cpu in
8999 powerpc)
9000 # see comment about AmigaOS4 .so support
9001 lt_prog_compiler_pic='-fPIC'
9002 ;;
9003 m68k)
9004 # FIXME: we need at least 68020 code to build shared libraries, but
9005 # adding the '-m68020' flag to GCC prevents building anything better,
9006 # like '-m68040'.
9007 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9008 ;;
9009 esac
9010 ;;
9011
9012 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9013 # PIC is the default for these OSes.
9014 ;;
9015
9016 mingw* | cygwin* | pw32* | os2* | cegcc*)
9017 # This hack is so that the source file can tell whether it is being
9018 # built for inclusion in a dll (and should export symbols for example).
9019 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9020 # (--disable-auto-import) libraries
9021 lt_prog_compiler_pic='-DDLL_EXPORT'
9022 case $host_os in
9023 os2*)
9024 lt_prog_compiler_static='$wl-static'
9025 ;;
9026 esac
9027 ;;
9028
9029 darwin* | rhapsody*)
9030 # PIC is the default on this platform
9031 # Common symbols not allowed in MH_DYLIB files
9032 lt_prog_compiler_pic='-fno-common'
9033 ;;
9034
9035 haiku*)
9036 # PIC is the default for Haiku.
9037 # The "-static" flag exists, but is broken.
9038 lt_prog_compiler_static=
9039 ;;
9040
9041 hpux*)
9042 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9043 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9044 # sets the default TLS model and affects inlining.
9045 case $host_cpu in
9046 hppa*64*)
9047 # +Z the default
9048 ;;
9049 *)
9050 lt_prog_compiler_pic='-fPIC'
9051 ;;
9052 esac
9053 ;;
9054
9055 interix[3-9]*)
9056 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9057 # Instead, we relocate shared libraries at runtime.
9058 ;;
9059
9060 msdosdjgpp*)
9061 # Just because we use GCC doesn't mean we suddenly get shared libraries
9062 # on systems that don't support them.
9063 lt_prog_compiler_can_build_shared=no
9064 enable_shared=no
9065 ;;
9066
9067 *nto* | *qnx*)
9068 # QNX uses GNU C++, but need to define -shared option too, otherwise
9069 # it will coredump.
9070 lt_prog_compiler_pic='-fPIC -shared'
9071 ;;
9072
9073 sysv4*MP*)
9074 if test -d /usr/nec; then
9075 lt_prog_compiler_pic=-Kconform_pic
9076 fi
9077 ;;
9078
9079 *)
9080 lt_prog_compiler_pic='-fPIC'
9081 ;;
9082 esac
9083
9084 case $cc_basename in
9085 nvcc*) # Cuda Compiler Driver 2.2
9086 lt_prog_compiler_wl='-Xlinker '
9087 if test -n "$lt_prog_compiler_pic"; then
9088 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9089 fi
9090 ;;
9091 esac
9092 else
9093 # PORTME Check for flag to pass linker flags through the system compiler.
9094 case $host_os in
9095 aix*)
9096 lt_prog_compiler_wl='-Wl,'
9097 if test ia64 = "$host_cpu"; then
9098 # AIX 5 now supports IA64 processor
9099 lt_prog_compiler_static='-Bstatic'
9100 else
9101 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9102 fi
9103 ;;
9104
9105 darwin* | rhapsody*)
9106 # PIC is the default on this platform
9107 # Common symbols not allowed in MH_DYLIB files
9108 lt_prog_compiler_pic='-fno-common'
9109 case $cc_basename in
9110 nagfor*)
9111 # NAG Fortran compiler
9112 lt_prog_compiler_wl='-Wl,-Wl,,'
9113 lt_prog_compiler_pic='-PIC'
9114 lt_prog_compiler_static='-Bstatic'
9115 ;;
9116 esac
9117 ;;
9118
9119 mingw* | cygwin* | pw32* | os2* | cegcc*)
9120 # This hack is so that the source file can tell whether it is being
9121 # built for inclusion in a dll (and should export symbols for example).
9122 lt_prog_compiler_pic='-DDLL_EXPORT'
9123 case $host_os in
9124 os2*)
9125 lt_prog_compiler_static='$wl-static'
9126 ;;
9127 esac
9128 ;;
9129
9130 hpux9* | hpux10* | hpux11*)
9131 lt_prog_compiler_wl='-Wl,'
9132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9133 # not for PA HP-UX.
9134 case $host_cpu in
9135 hppa*64*|ia64*)
9136 # +Z the default
9137 ;;
9138 *)
9139 lt_prog_compiler_pic='+Z'
9140 ;;
9141 esac
9142 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9143 lt_prog_compiler_static='$wl-a ${wl}archive'
9144 ;;
9145
9146 irix5* | irix6* | nonstopux*)
9147 lt_prog_compiler_wl='-Wl,'
9148 # PIC (with -KPIC) is the default.
9149 lt_prog_compiler_static='-non_shared'
9150 ;;
9151
9152 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9153 case $cc_basename in
9154 # old Intel for x86_64, which still supported -KPIC.
9155 ecc*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_pic='-KPIC'
9158 lt_prog_compiler_static='-static'
9159 ;;
9160 # icc used to be incompatible with GCC.
9161 # ICC 10 doesn't accept -KPIC any more.
9162 icc* | ifort*)
9163 lt_prog_compiler_wl='-Wl,'
9164 lt_prog_compiler_pic='-fPIC'
9165 lt_prog_compiler_static='-static'
9166 ;;
9167 # Lahey Fortran 8.1.
9168 lf95*)
9169 lt_prog_compiler_wl='-Wl,'
9170 lt_prog_compiler_pic='--shared'
9171 lt_prog_compiler_static='--static'
9172 ;;
9173 nagfor*)
9174 # NAG Fortran compiler
9175 lt_prog_compiler_wl='-Wl,-Wl,,'
9176 lt_prog_compiler_pic='-PIC'
9177 lt_prog_compiler_static='-Bstatic'
9178 ;;
9179 tcc*)
9180 # Fabrice Bellard et al's Tiny C Compiler
9181 lt_prog_compiler_wl='-Wl,'
9182 lt_prog_compiler_pic='-fPIC'
9183 lt_prog_compiler_static='-static'
9184 ;;
9185 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9186 # Portland Group compilers (*not* the Pentium gcc compiler,
9187 # which looks to be a dead project)
9188 lt_prog_compiler_wl='-Wl,'
9189 lt_prog_compiler_pic='-fpic'
9190 lt_prog_compiler_static='-Bstatic'
9191 ;;
9192 ccc*)
9193 lt_prog_compiler_wl='-Wl,'
9194 # All Alpha code is PIC.
9195 lt_prog_compiler_static='-non_shared'
9196 ;;
9197 xl* | bgxl* | bgf* | mpixl*)
9198 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9199 lt_prog_compiler_wl='-Wl,'
9200 lt_prog_compiler_pic='-qpic'
9201 lt_prog_compiler_static='-qstaticlink'
9202 ;;
9203 *)
9204 case `$CC -V 2>&1 | sed 5q` in
9205 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9206 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9207 lt_prog_compiler_pic='-KPIC'
9208 lt_prog_compiler_static='-Bstatic'
9209 lt_prog_compiler_wl=''
9210 ;;
9211 *Sun\ F* | *Sun*Fortran*)
9212 lt_prog_compiler_pic='-KPIC'
9213 lt_prog_compiler_static='-Bstatic'
9214 lt_prog_compiler_wl='-Qoption ld '
9215 ;;
9216 *Sun\ C*)
9217 # Sun C 5.9
9218 lt_prog_compiler_pic='-KPIC'
9219 lt_prog_compiler_static='-Bstatic'
9220 lt_prog_compiler_wl='-Wl,'
9221 ;;
9222 *Intel*\ [CF]*Compiler*)
9223 lt_prog_compiler_wl='-Wl,'
9224 lt_prog_compiler_pic='-fPIC'
9225 lt_prog_compiler_static='-static'
9226 ;;
9227 *Portland\ Group*)
9228 lt_prog_compiler_wl='-Wl,'
9229 lt_prog_compiler_pic='-fpic'
9230 lt_prog_compiler_static='-Bstatic'
9231 ;;
9232 esac
9233 ;;
9234 esac
9235 ;;
9236
9237 newsos6)
9238 lt_prog_compiler_pic='-KPIC'
9239 lt_prog_compiler_static='-Bstatic'
9240 ;;
9241
9242 *nto* | *qnx*)
9243 # QNX uses GNU C++, but need to define -shared option too, otherwise
9244 # it will coredump.
9245 lt_prog_compiler_pic='-fPIC -shared'
9246 ;;
9247
9248 osf3* | osf4* | osf5*)
9249 lt_prog_compiler_wl='-Wl,'
9250 # All OSF/1 code is PIC.
9251 lt_prog_compiler_static='-non_shared'
9252 ;;
9253
9254 rdos*)
9255 lt_prog_compiler_static='-non_shared'
9256 ;;
9257
9258 solaris*)
9259 lt_prog_compiler_pic='-KPIC'
9260 lt_prog_compiler_static='-Bstatic'
9261 case $cc_basename in
9262 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9263 lt_prog_compiler_wl='-Qoption ld ';;
9264 *)
9265 lt_prog_compiler_wl='-Wl,';;
9266 esac
9267 ;;
9268
9269 sunos4*)
9270 lt_prog_compiler_wl='-Qoption ld '
9271 lt_prog_compiler_pic='-PIC'
9272 lt_prog_compiler_static='-Bstatic'
9273 ;;
9274
9275 sysv4 | sysv4.2uw2* | sysv4.3*)
9276 lt_prog_compiler_wl='-Wl,'
9277 lt_prog_compiler_pic='-KPIC'
9278 lt_prog_compiler_static='-Bstatic'
9279 ;;
9280
9281 sysv4*MP*)
9282 if test -d /usr/nec; then
9283 lt_prog_compiler_pic='-Kconform_pic'
9284 lt_prog_compiler_static='-Bstatic'
9285 fi
9286 ;;
9287
9288 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9289 lt_prog_compiler_wl='-Wl,'
9290 lt_prog_compiler_pic='-KPIC'
9291 lt_prog_compiler_static='-Bstatic'
9292 ;;
9293
9294 unicos*)
9295 lt_prog_compiler_wl='-Wl,'
9296 lt_prog_compiler_can_build_shared=no
9297 ;;
9298
9299 uts4*)
9300 lt_prog_compiler_pic='-pic'
9301 lt_prog_compiler_static='-Bstatic'
9302 ;;
9303
9304 *)
9305 lt_prog_compiler_can_build_shared=no
9306 ;;
9307 esac
9308 fi
9309
9310case $host_os in
9311 # For platforms that do not support PIC, -DPIC is meaningless:
9312 *djgpp*)
9313 lt_prog_compiler_pic=
9314 ;;
9315 *)
9316 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9317 ;;
9318esac
9319
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9321$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9322if ${lt_cv_prog_compiler_pic+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324else
9325 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9326fi
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9328$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9329lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9330
9331#
9332# Check to make sure the PIC flag actually works.
9333#
9334if test -n "$lt_prog_compiler_pic"; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9336$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9337if ${lt_cv_prog_compiler_pic_works+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339else
9340 lt_cv_prog_compiler_pic_works=no
9341 ac_outfile=conftest.$ac_objext
9342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9343 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9344 # Insert the option either (1) after the last *FLAGS variable, or
9345 # (2) before a word containing "conftest.", or (3) at the end.
9346 # Note that $ac_compile itself does not contain backslashes and begins
9347 # with a dollar sign (not a hyphen), so the echo should work correctly.
9348 # The option is referenced via a variable to avoid confusing sed.
9349 lt_compile=`echo "$ac_compile" | $SED \
9350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9352 -e 's:$: $lt_compiler_flag:'`
9353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9354 (eval "$lt_compile" 2>conftest.err)
9355 ac_status=$?
9356 cat conftest.err >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 if (exit $ac_status) && test -s "$ac_outfile"; then
9359 # The compiler can only warn and ignore the option if not recognized
9360 # So say no if there are warnings other than the usual output.
9361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9364 lt_cv_prog_compiler_pic_works=yes
9365 fi
9366 fi
9367 $RM conftest*
9368
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9371$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9372
9373if test yes = "$lt_cv_prog_compiler_pic_works"; then
9374 case $lt_prog_compiler_pic in
9375 "" | " "*) ;;
9376 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9377 esac
9378else
9379 lt_prog_compiler_pic=
9380 lt_prog_compiler_can_build_shared=no
9381fi
9382
9383fi
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395#
9396# Check to make sure the static flag actually works.
9397#
9398wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9400$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9401if ${lt_cv_prog_compiler_static_works+:} false; then :
9402 $as_echo_n "(cached) " >&6
9403else
9404 lt_cv_prog_compiler_static_works=no
9405 save_LDFLAGS=$LDFLAGS
9406 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9407 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9408 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9409 # The linker can only warn and ignore the option if not recognized
9410 # So say no if there are warnings
9411 if test -s conftest.err; then
9412 # Append any errors to the config.log.
9413 cat conftest.err 1>&5
9414 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9416 if diff conftest.exp conftest.er2 >/dev/null; then
9417 lt_cv_prog_compiler_static_works=yes
9418 fi
9419 else
9420 lt_cv_prog_compiler_static_works=yes
9421 fi
9422 fi
9423 $RM -r conftest*
9424 LDFLAGS=$save_LDFLAGS
9425
9426fi
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9428$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9429
9430if test yes = "$lt_cv_prog_compiler_static_works"; then
9431 :
9432else
9433 lt_prog_compiler_static=
9434fi
9435
9436
9437
9438
9439
9440
9441
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9443$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9444if ${lt_cv_prog_compiler_c_o+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446else
9447 lt_cv_prog_compiler_c_o=no
9448 $RM -r conftest 2>/dev/null
9449 mkdir conftest
9450 cd conftest
9451 mkdir out
9452 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9453
9454 lt_compiler_flag="-o out/conftest2.$ac_objext"
9455 # Insert the option either (1) after the last *FLAGS variable, or
9456 # (2) before a word containing "conftest.", or (3) at the end.
9457 # Note that $ac_compile itself does not contain backslashes and begins
9458 # with a dollar sign (not a hyphen), so the echo should work correctly.
9459 lt_compile=`echo "$ac_compile" | $SED \
9460 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9462 -e 's:$: $lt_compiler_flag:'`
9463 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9464 (eval "$lt_compile" 2>out/conftest.err)
9465 ac_status=$?
9466 cat out/conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9469 then
9470 # The compiler can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9473 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9474 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9475 lt_cv_prog_compiler_c_o=yes
9476 fi
9477 fi
9478 chmod u+w . 2>&5
9479 $RM conftest*
9480 # SGI C++ compiler will create directory out/ii_files/ for
9481 # template instantiation
9482 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9483 $RM out/* && rmdir out
9484 cd ..
9485 $RM -r conftest
9486 $RM conftest*
9487
9488fi
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9490$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9491
9492
9493
9494
9495
9496
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9498$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9499if ${lt_cv_prog_compiler_c_o+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501else
9502 lt_cv_prog_compiler_c_o=no
9503 $RM -r conftest 2>/dev/null
9504 mkdir conftest
9505 cd conftest
9506 mkdir out
9507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9508
9509 lt_compiler_flag="-o out/conftest2.$ac_objext"
9510 # Insert the option either (1) after the last *FLAGS variable, or
9511 # (2) before a word containing "conftest.", or (3) at the end.
9512 # Note that $ac_compile itself does not contain backslashes and begins
9513 # with a dollar sign (not a hyphen), so the echo should work correctly.
9514 lt_compile=`echo "$ac_compile" | $SED \
9515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9517 -e 's:$: $lt_compiler_flag:'`
9518 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9519 (eval "$lt_compile" 2>out/conftest.err)
9520 ac_status=$?
9521 cat out/conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9524 then
9525 # The compiler can only warn and ignore the option if not recognized
9526 # So say no if there are warnings
9527 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9530 lt_cv_prog_compiler_c_o=yes
9531 fi
9532 fi
9533 chmod u+w . 2>&5
9534 $RM conftest*
9535 # SGI C++ compiler will create directory out/ii_files/ for
9536 # template instantiation
9537 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9538 $RM out/* && rmdir out
9539 cd ..
9540 $RM -r conftest
9541 $RM conftest*
9542
9543fi
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9545$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9546
9547
9548
9549
9550hard_links=nottested
9551if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9552 # do not overwrite the value of need_locks provided by the user
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9554$as_echo_n "checking if we can lock with hard links... " >&6; }
9555 hard_links=yes
9556 $RM conftest*
9557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9558 touch conftest.a
9559 ln conftest.a conftest.b 2>&5 || hard_links=no
9560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9562$as_echo "$hard_links" >&6; }
9563 if test no = "$hard_links"; then
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9565$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9566 need_locks=warn
9567 fi
9568else
9569 need_locks=no
9570fi
9571
9572
9573
9574
9575
9576
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9578$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9579
9580 runpath_var=
9581 allow_undefined_flag=
9582 always_export_symbols=no
9583 archive_cmds=
9584 archive_expsym_cmds=
9585 compiler_needs_object=no
9586 enable_shared_with_static_runtimes=no
9587 export_dynamic_flag_spec=
9588 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9589 hardcode_automatic=no
9590 hardcode_direct=no
9591 hardcode_direct_absolute=no
9592 hardcode_libdir_flag_spec=
9593 hardcode_libdir_separator=
9594 hardcode_minus_L=no
9595 hardcode_shlibpath_var=unsupported
9596 inherit_rpath=no
9597 link_all_deplibs=unknown
9598 module_cmds=
9599 module_expsym_cmds=
9600 old_archive_from_new_cmds=
9601 old_archive_from_expsyms_cmds=
9602 thread_safe_flag_spec=
9603 whole_archive_flag_spec=
9604 # include_expsyms should be a list of space-separated symbols to be *always*
9605 # included in the symbol list
9606 include_expsyms=
9607 # exclude_expsyms can be an extended regexp of symbols to exclude
9608 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9609 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9610 # as well as any symbol that contains 'd'.
9611 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9612 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9613 # platforms (ab)use it in PIC code, but their linkers get confused if
9614 # the symbol is explicitly referenced. Since portable code cannot
9615 # rely on this symbol name, it's probably fine to never include it in
9616 # preloaded symbol tables.
9617 # Exclude shared library initialization/finalization symbols.
9618 extract_expsyms_cmds=
9619
9620 case $host_os in
9621 cygwin* | mingw* | pw32* | cegcc*)
9622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9623 # When not using gcc, we currently assume that we are using
9624 # Microsoft Visual C++.
9625 if test yes != "$GCC"; then
9626 with_gnu_ld=no
9627 fi
9628 ;;
9629 interix*)
9630 # we just hope/assume this is gcc and not c89 (= MSVC++)
9631 with_gnu_ld=yes
9632 ;;
9633 openbsd* | bitrig*)
9634 with_gnu_ld=no
9635 ;;
9636 esac
9637
9638 ld_shlibs=yes
9639
9640 # On some targets, GNU ld is compatible enough with the native linker
9641 # that we're better off using the native interface for both.
9642 lt_use_gnu_ld_interface=no
9643 if test yes = "$with_gnu_ld"; then
9644 case $host_os in
9645 aix*)
9646 # The AIX port of GNU ld has always aspired to compatibility
9647 # with the native linker. However, as the warning in the GNU ld
9648 # block says, versions before 2.19.5* couldn't really create working
9649 # shared libraries, regardless of the interface used.
9650 case `$LD -v 2>&1` in
9651 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9652 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9653 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9654 *)
9655 lt_use_gnu_ld_interface=yes
9656 ;;
9657 esac
9658 ;;
9659 *)
9660 lt_use_gnu_ld_interface=yes
9661 ;;
9662 esac
9663 fi
9664
9665 if test yes = "$lt_use_gnu_ld_interface"; then
9666 # If archive_cmds runs LD, not CC, wlarc should be empty
9667 wlarc='$wl'
9668
9669 # Set some defaults for GNU ld with shared library support. These
9670 # are reset later if shared libraries are not supported. Putting them
9671 # here allows them to be overridden if necessary.
9672 runpath_var=LD_RUN_PATH
9673 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9674 export_dynamic_flag_spec='$wl--export-dynamic'
9675 # ancient GNU ld didn't support --whole-archive et. al.
9676 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9677 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9678 else
9679 whole_archive_flag_spec=
9680 fi
9681 supports_anon_versioning=no
9682 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9683 *GNU\ gold*) supports_anon_versioning=yes ;;
9684 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9685 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9686 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9687 *\ 2.11.*) ;; # other 2.11 versions
9688 *) supports_anon_versioning=yes ;;
9689 esac
9690
9691 # See if GNU ld supports shared libraries.
9692 case $host_os in
9693 aix[3-9]*)
9694 # On AIX/PPC, the GNU linker is very broken
9695 if test ia64 != "$host_cpu"; then
9696 ld_shlibs=no
9697 cat <<_LT_EOF 1>&2
9698
9699*** Warning: the GNU linker, at least up to release 2.19, is reported
9700*** to be unable to reliably create shared libraries on AIX.
9701*** Therefore, libtool is disabling shared libraries support. If you
9702*** really care for shared libraries, you may want to install binutils
9703*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9704*** You will then need to restart the configuration process.
9705
9706_LT_EOF
9707 fi
9708 ;;
9709
9710 amigaos*)
9711 case $host_cpu in
9712 powerpc)
9713 # see comment about AmigaOS4 .so support
9714 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9715 archive_expsym_cmds=''
9716 ;;
9717 m68k)
9718 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)'
9719 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_minus_L=yes
9721 ;;
9722 esac
9723 ;;
9724
9725 beos*)
9726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9727 allow_undefined_flag=unsupported
9728 # Joseph Beckenbach <[email protected]> says some releases of gcc
9729 # support --undefined. This deserves some investigation. FIXME
9730 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9731 else
9732 ld_shlibs=no
9733 fi
9734 ;;
9735
9736 cygwin* | mingw* | pw32* | cegcc*)
9737 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9738 # as there is no search path for DLLs.
9739 hardcode_libdir_flag_spec='-L$libdir'
9740 export_dynamic_flag_spec='$wl--export-all-symbols'
9741 allow_undefined_flag=unsupported
9742 always_export_symbols=no
9743 enable_shared_with_static_runtimes=yes
9744 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'
9745 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9746
9747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9749 # If the export-symbols file already is a .def file, use it as
9750 # is; otherwise, prepend EXPORTS...
9751 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9752 cp $export_symbols $output_objdir/$soname.def;
9753 else
9754 echo EXPORTS > $output_objdir/$soname.def;
9755 cat $export_symbols >> $output_objdir/$soname.def;
9756 fi~
9757 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9758 else
9759 ld_shlibs=no
9760 fi
9761 ;;
9762
9763 haiku*)
9764 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9765 link_all_deplibs=yes
9766 ;;
9767
9768 os2*)
9769 hardcode_libdir_flag_spec='-L$libdir'
9770 hardcode_minus_L=yes
9771 allow_undefined_flag=unsupported
9772 shrext_cmds=.dll
9773 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9774 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9775 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9776 $ECHO EXPORTS >> $output_objdir/$libname.def~
9777 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9778 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9779 emximp -o $lib $output_objdir/$libname.def'
9780 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9781 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9782 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9783 $ECHO EXPORTS >> $output_objdir/$libname.def~
9784 prefix_cmds="$SED"~
9785 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9786 prefix_cmds="$prefix_cmds -e 1d";
9787 fi~
9788 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9789 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9790 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9791 emximp -o $lib $output_objdir/$libname.def'
9792 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9793 enable_shared_with_static_runtimes=yes
9794 ;;
9795
9796 interix[3-9]*)
9797 hardcode_direct=no
9798 hardcode_shlibpath_var=no
9799 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9800 export_dynamic_flag_spec='$wl-E'
9801 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9802 # Instead, shared libraries are loaded at an image base (0x10000000 by
9803 # default) and relocated if they conflict, which is a slow very memory
9804 # consuming and fragmenting process. To avoid this, we pick a random,
9805 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9806 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9808 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'
9809 ;;
9810
9811 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9812 tmp_diet=no
9813 if test linux-dietlibc = "$host_os"; then
9814 case $cc_basename in
9815 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9816 esac
9817 fi
9818 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9819 && test no = "$tmp_diet"
9820 then
9821 tmp_addflag=' $pic_flag'
9822 tmp_sharedflag='-shared'
9823 case $cc_basename,$host_cpu in
9824 pgcc*) # Portland Group C compiler
9825 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'
9826 tmp_addflag=' $pic_flag'
9827 ;;
9828 pgf77* | pgf90* | pgf95* | pgfortran*)
9829 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
9832 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9833 tmp_addflag=' -i_dynamic' ;;
9834 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9835 tmp_addflag=' -i_dynamic -nofor_main' ;;
9836 ifc* | ifort*) # Intel Fortran compiler
9837 tmp_addflag=' -nofor_main' ;;
9838 lf95*) # Lahey Fortran 8.1
9839 whole_archive_flag_spec=
9840 tmp_sharedflag='--shared' ;;
9841 nagfor*) # NAGFOR 5.3
9842 tmp_sharedflag='-Wl,-shared' ;;
9843 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9844 tmp_sharedflag='-qmkshrobj'
9845 tmp_addflag= ;;
9846 nvcc*) # Cuda Compiler Driver 2.2
9847 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'
9848 compiler_needs_object=yes
9849 ;;
9850 esac
9851 case `$CC -V 2>&1 | sed 5q` in
9852 *Sun\ C*) # Sun C 5.9
9853 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'
9854 compiler_needs_object=yes
9855 tmp_sharedflag='-G' ;;
9856 *Sun\ F*) # Sun Fortran 8.3
9857 tmp_sharedflag='-G' ;;
9858 esac
9859 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9860
9861 if test yes = "$supports_anon_versioning"; then
9862 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9863 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9864 echo "local: *; };" >> $output_objdir/$libname.ver~
9865 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9866 fi
9867
9868 case $cc_basename in
9869 tcc*)
9870 export_dynamic_flag_spec='-rdynamic'
9871 ;;
9872 xlf* | bgf* | bgxlf* | mpixlf*)
9873 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9874 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9875 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9876 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9877 if test yes = "$supports_anon_versioning"; then
9878 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9879 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9880 echo "local: *; };" >> $output_objdir/$libname.ver~
9881 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9882 fi
9883 ;;
9884 esac
9885 else
9886 ld_shlibs=no
9887 fi
9888 ;;
9889
9890 netbsd*)
9891 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9892 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9893 wlarc=
9894 else
9895 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9896 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9897 fi
9898 ;;
9899
9900 solaris*)
9901 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9902 ld_shlibs=no
9903 cat <<_LT_EOF 1>&2
9904
9905*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9906*** create shared libraries on Solaris systems. Therefore, libtool
9907*** is disabling shared libraries support. We urge you to upgrade GNU
9908*** binutils to release 2.9.1 or newer. Another option is to modify
9909*** your PATH or compiler configuration so that the native linker is
9910*** used, and then restart.
9911
9912_LT_EOF
9913 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9915 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9916 else
9917 ld_shlibs=no
9918 fi
9919 ;;
9920
9921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9922 case `$LD -v 2>&1` in
9923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9924 ld_shlibs=no
9925 cat <<_LT_EOF 1>&2
9926
9927*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9928*** reliably create shared libraries on SCO systems. Therefore, libtool
9929*** is disabling shared libraries support. We urge you to upgrade GNU
9930*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9931*** your PATH or compiler configuration so that the native linker is
9932*** used, and then restart.
9933
9934_LT_EOF
9935 ;;
9936 *)
9937 # For security reasons, it is highly recommended that you always
9938 # use absolute paths for naming shared libraries, and exclude the
9939 # DT_RUNPATH tag from executables and libraries. But doing so
9940 # requires that you compile everything twice, which is a pain.
9941 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9942 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9943 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9945 else
9946 ld_shlibs=no
9947 fi
9948 ;;
9949 esac
9950 ;;
9951
9952 sunos4*)
9953 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9954 wlarc=
9955 hardcode_direct=yes
9956 hardcode_shlibpath_var=no
9957 ;;
9958
9959 *)
9960 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9962 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9963 else
9964 ld_shlibs=no
9965 fi
9966 ;;
9967 esac
9968
9969 if test no = "$ld_shlibs"; then
9970 runpath_var=
9971 hardcode_libdir_flag_spec=
9972 export_dynamic_flag_spec=
9973 whole_archive_flag_spec=
9974 fi
9975 else
9976 # PORTME fill in a description of your system's linker (not GNU ld)
9977 case $host_os in
9978 aix3*)
9979 allow_undefined_flag=unsupported
9980 always_export_symbols=yes
9981 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'
9982 # Note: this linker hardcodes the directories in LIBPATH if there
9983 # are no directories specified by -L.
9984 hardcode_minus_L=yes
9985 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9986 # Neither direct hardcoding nor static linking is supported with a
9987 # broken collect2.
9988 hardcode_direct=unsupported
9989 fi
9990 ;;
9991
9992 aix[4-9]*)
9993 if test ia64 = "$host_cpu"; then
9994 # On IA64, the linker does run time linking by default, so we don't
9995 # have to do anything special.
9996 aix_use_runtimelinking=no
9997 exp_sym_flag='-Bexport'
9998 no_entry_flag=
9999 else
10000 # If we're using GNU nm, then we don't want the "-C" option.
10001 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10002 # Without the "-l" option, or with the "-B" option, AIX nm treats
10003 # weak defined symbols like other global defined symbols, whereas
10004 # GNU nm marks them as "W".
10005 # While the 'weak' keyword is ignored in the Export File, we need
10006 # it in the Import File for the 'aix-soname' feature, so we have
10007 # to replace the "-B" option with "-P" for AIX nm.
10008 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10009 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'
10010 else
10011 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'
10012 fi
10013 aix_use_runtimelinking=no
10014
10015 # Test if we are trying to use run time linking or normal
10016 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10017 # have runtime linking enabled, and use it for executables.
10018 # For shared libraries, we enable/disable runtime linking
10019 # depending on the kind of the shared library created -
10020 # when "with_aix_soname,aix_use_runtimelinking" is:
10021 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10022 # "aix,yes" lib.so shared, rtl:yes, for executables
10023 # lib.a static archive
10024 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10025 # lib.a(lib.so.V) shared, rtl:no, for executables
10026 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10027 # lib.a(lib.so.V) shared, rtl:no
10028 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10029 # lib.a static archive
10030 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10031 for ld_flag in $LDFLAGS; do
10032 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10033 aix_use_runtimelinking=yes
10034 break
10035 fi
10036 done
10037 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10038 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10039 # so we don't have lib.a shared libs to link our executables.
10040 # We have to force runtime linking in this case.
10041 aix_use_runtimelinking=yes
10042 LDFLAGS="$LDFLAGS -Wl,-brtl"
10043 fi
10044 ;;
10045 esac
10046
10047 exp_sym_flag='-bexport'
10048 no_entry_flag='-bnoentry'
10049 fi
10050
10051 # When large executables or shared objects are built, AIX ld can
10052 # have problems creating the table of contents. If linking a library
10053 # or program results in "error TOC overflow" add -mminimal-toc to
10054 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10055 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10056
10057 archive_cmds=''
10058 hardcode_direct=yes
10059 hardcode_direct_absolute=yes
10060 hardcode_libdir_separator=':'
10061 link_all_deplibs=yes
10062 file_list_spec='$wl-f,'
10063 case $with_aix_soname,$aix_use_runtimelinking in
10064 aix,*) ;; # traditional, no import file
10065 svr4,* | *,yes) # use import file
10066 # The Import File defines what to hardcode.
10067 hardcode_direct=no
10068 hardcode_direct_absolute=no
10069 ;;
10070 esac
10071
10072 if test yes = "$GCC"; then
10073 case $host_os in aix4.[012]|aix4.[012].*)
10074 # We only want to do this on AIX 4.2 and lower, the check
10075 # below for broken collect2 doesn't work under 4.3+
10076 collect2name=`$CC -print-prog-name=collect2`
10077 if test -f "$collect2name" &&
10078 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10079 then
10080 # We have reworked collect2
10081 :
10082 else
10083 # We have old collect2
10084 hardcode_direct=unsupported
10085 # It fails to find uninstalled libraries when the uninstalled
10086 # path is not listed in the libpath. Setting hardcode_minus_L
10087 # to unsupported forces relinking
10088 hardcode_minus_L=yes
10089 hardcode_libdir_flag_spec='-L$libdir'
10090 hardcode_libdir_separator=
10091 fi
10092 ;;
10093 esac
10094 shared_flag='-shared'
10095 if test yes = "$aix_use_runtimelinking"; then
10096 shared_flag="$shared_flag "'$wl-G'
10097 fi
10098 # Need to ensure runtime linking is disabled for the traditional
10099 # shared library, or the linker may eventually find shared libraries
10100 # /with/ Import File - we do not want to mix them.
10101 shared_flag_aix='-shared'
10102 shared_flag_svr4='-shared $wl-G'
10103 else
10104 # not using gcc
10105 if test ia64 = "$host_cpu"; then
10106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10107 # chokes on -Wl,-G. The following line is correct:
10108 shared_flag='-G'
10109 else
10110 if test yes = "$aix_use_runtimelinking"; then
10111 shared_flag='$wl-G'
10112 else
10113 shared_flag='$wl-bM:SRE'
10114 fi
10115 shared_flag_aix='$wl-bM:SRE'
10116 shared_flag_svr4='$wl-G'
10117 fi
10118 fi
10119
10120 export_dynamic_flag_spec='$wl-bexpall'
10121 # It seems that -bexpall does not export symbols beginning with
10122 # underscore (_), so it is better to generate a list of symbols to export.
10123 always_export_symbols=yes
10124 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10125 # Warning - without using the other runtime loading flags (-brtl),
10126 # -berok will link without error, but may produce a broken library.
10127 allow_undefined_flag='-berok'
10128 # Determine the default libpath from the value encoded in an
10129 # empty executable.
10130 if test set = "${lt_cv_aix_libpath+set}"; then
10131 aix_libpath=$lt_cv_aix_libpath
10132else
10133 if ${lt_cv_aix_libpath_+:} false; then :
10134 $as_echo_n "(cached) " >&6
10135else
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137/* end confdefs.h. */
10138
10139int
10140main ()
10141{
10142
10143 ;
10144 return 0;
10145}
10146_ACEOF
10147if ac_fn_c_try_link "$LINENO"; then :
10148
10149 lt_aix_libpath_sed='
10150 /Import File Strings/,/^$/ {
10151 /^0/ {
10152 s/^0 *\([^ ]*\) *$/\1/
10153 p
10154 }
10155 }'
10156 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10157 # Check for a 64-bit object if we didn't find anything.
10158 if test -z "$lt_cv_aix_libpath_"; then
10159 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10160 fi
10161fi
10162rm -f core conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 if test -z "$lt_cv_aix_libpath_"; then
10165 lt_cv_aix_libpath_=/usr/lib:/lib
10166 fi
10167
10168fi
10169
10170 aix_libpath=$lt_cv_aix_libpath_
10171fi
10172
10173 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10174 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
10175 else
10176 if test ia64 = "$host_cpu"; then
10177 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10178 allow_undefined_flag="-z nodefs"
10179 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"
10180 else
10181 # Determine the default libpath from the value encoded in an
10182 # empty executable.
10183 if test set = "${lt_cv_aix_libpath+set}"; then
10184 aix_libpath=$lt_cv_aix_libpath
10185else
10186 if ${lt_cv_aix_libpath_+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h. */
10191
10192int
10193main ()
10194{
10195
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200if ac_fn_c_try_link "$LINENO"; then :
10201
10202 lt_aix_libpath_sed='
10203 /Import File Strings/,/^$/ {
10204 /^0/ {
10205 s/^0 *\([^ ]*\) *$/\1/
10206 p
10207 }
10208 }'
10209 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10210 # Check for a 64-bit object if we didn't find anything.
10211 if test -z "$lt_cv_aix_libpath_"; then
10212 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10213 fi
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 if test -z "$lt_cv_aix_libpath_"; then
10218 lt_cv_aix_libpath_=/usr/lib:/lib
10219 fi
10220
10221fi
10222
10223 aix_libpath=$lt_cv_aix_libpath_
10224fi
10225
10226 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10227 # Warning - without using the other run time loading flags,
10228 # -berok will link without error, but may produce a broken library.
10229 no_undefined_flag=' $wl-bernotok'
10230 allow_undefined_flag=' $wl-berok'
10231 if test yes = "$with_gnu_ld"; then
10232 # We only use this code for GNU lds that support --whole-archive.
10233 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10234 else
10235 # Exported symbols can be pulled into shared objects from archives
10236 whole_archive_flag_spec='$convenience'
10237 fi
10238 archive_cmds_need_lc=yes
10239 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10240 # -brtl affects multiple linker settings, -berok does not and is overridden later
10241 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10242 if test svr4 != "$with_aix_soname"; then
10243 # This is similar to how AIX traditionally builds its shared libraries.
10244 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'
10245 fi
10246 if test aix != "$with_aix_soname"; then
10247 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'
10248 else
10249 # used by -dlpreopen to get the symbols
10250 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10251 fi
10252 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10253 fi
10254 fi
10255 ;;
10256
10257 amigaos*)
10258 case $host_cpu in
10259 powerpc)
10260 # see comment about AmigaOS4 .so support
10261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10262 archive_expsym_cmds=''
10263 ;;
10264 m68k)
10265 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)'
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_minus_L=yes
10268 ;;
10269 esac
10270 ;;
10271
10272 bsdi[45]*)
10273 export_dynamic_flag_spec=-rdynamic
10274 ;;
10275
10276 cygwin* | mingw* | pw32* | cegcc*)
10277 # When not using gcc, we currently assume that we are using
10278 # Microsoft Visual C++.
10279 # hardcode_libdir_flag_spec is actually meaningless, as there is
10280 # no search path for DLLs.
10281 case $cc_basename in
10282 cl*)
10283 # Native MSVC
10284 hardcode_libdir_flag_spec=' '
10285 allow_undefined_flag=unsupported
10286 always_export_symbols=yes
10287 file_list_spec='@'
10288 # Tell ltmain to make .lib files, not .a files.
10289 libext=lib
10290 # Tell ltmain to make .dll files, not .so files.
10291 shrext_cmds=.dll
10292 # FIXME: Setting linknames here is a bad hack.
10293 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10294 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10295 cp "$export_symbols" "$output_objdir/$soname.def";
10296 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10297 else
10298 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10299 fi~
10300 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10301 linknames='
10302 # The linker will not automatically build a static lib if we build a DLL.
10303 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10304 enable_shared_with_static_runtimes=yes
10305 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10306 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10307 # Don't use ranlib
10308 old_postinstall_cmds='chmod 644 $oldlib'
10309 postlink_cmds='lt_outputfile="@OUTPUT@"~
10310 lt_tool_outputfile="@TOOL_OUTPUT@"~
10311 case $lt_outputfile in
10312 *.exe|*.EXE) ;;
10313 *)
10314 lt_outputfile=$lt_outputfile.exe
10315 lt_tool_outputfile=$lt_tool_outputfile.exe
10316 ;;
10317 esac~
10318 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10319 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10320 $RM "$lt_outputfile.manifest";
10321 fi'
10322 ;;
10323 *)
10324 # Assume MSVC wrapper
10325 hardcode_libdir_flag_spec=' '
10326 allow_undefined_flag=unsupported
10327 # Tell ltmain to make .lib files, not .a files.
10328 libext=lib
10329 # Tell ltmain to make .dll files, not .so files.
10330 shrext_cmds=.dll
10331 # FIXME: Setting linknames here is a bad hack.
10332 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10333 # The linker will automatically build a .lib file if we build a DLL.
10334 old_archive_from_new_cmds='true'
10335 # FIXME: Should let the user specify the lib program.
10336 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10337 enable_shared_with_static_runtimes=yes
10338 ;;
10339 esac
10340 ;;
10341
10342 darwin* | rhapsody*)
10343
10344
10345 archive_cmds_need_lc=no
10346 hardcode_direct=no
10347 hardcode_automatic=yes
10348 hardcode_shlibpath_var=unsupported
10349 if test yes = "$lt_cv_ld_force_load"; then
10350 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\"`'
10351
10352 else
10353 whole_archive_flag_spec=''
10354 fi
10355 link_all_deplibs=yes
10356 allow_undefined_flag=$_lt_dar_allow_undefined
10357 case $cc_basename in
10358 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10359 *) _lt_dar_can_shared=$GCC ;;
10360 esac
10361 if test yes = "$_lt_dar_can_shared"; then
10362 output_verbose_link_cmd=func_echo_all
10363 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10364 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10365 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"
10366 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"
10367
10368 else
10369 ld_shlibs=no
10370 fi
10371
10372 ;;
10373
10374 dgux*)
10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_libdir_flag_spec='-L$libdir'
10377 hardcode_shlibpath_var=no
10378 ;;
10379
10380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10381 # support. Future versions do this automatically, but an explicit c++rt0.o
10382 # does not break anything, and helps significantly (at the cost of a little
10383 # extra space).
10384 freebsd2.2*)
10385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10386 hardcode_libdir_flag_spec='-R$libdir'
10387 hardcode_direct=yes
10388 hardcode_shlibpath_var=no
10389 ;;
10390
10391 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10392 freebsd2.*)
10393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10394 hardcode_direct=yes
10395 hardcode_minus_L=yes
10396 hardcode_shlibpath_var=no
10397 ;;
10398
10399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10400 freebsd* | dragonfly*)
10401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_direct=yes
10404 hardcode_shlibpath_var=no
10405 ;;
10406
10407 hpux9*)
10408 if test yes = "$GCC"; then
10409 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'
10410 else
10411 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'
10412 fi
10413 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10414 hardcode_libdir_separator=:
10415 hardcode_direct=yes
10416
10417 # hardcode_minus_L: Not really in the search PATH,
10418 # but as the default location of the library.
10419 hardcode_minus_L=yes
10420 export_dynamic_flag_spec='$wl-E'
10421 ;;
10422
10423 hpux10*)
10424 if test yes,no = "$GCC,$with_gnu_ld"; then
10425 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10426 else
10427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10428 fi
10429 if test no = "$with_gnu_ld"; then
10430 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10431 hardcode_libdir_separator=:
10432 hardcode_direct=yes
10433 hardcode_direct_absolute=yes
10434 export_dynamic_flag_spec='$wl-E'
10435 # hardcode_minus_L: Not really in the search PATH,
10436 # but as the default location of the library.
10437 hardcode_minus_L=yes
10438 fi
10439 ;;
10440
10441 hpux11*)
10442 if test yes,no = "$GCC,$with_gnu_ld"; then
10443 case $host_cpu in
10444 hppa*64*)
10445 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 ;;
10447 ia64*)
10448 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10449 ;;
10450 *)
10451 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10452 ;;
10453 esac
10454 else
10455 case $host_cpu in
10456 hppa*64*)
10457 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 ;;
10459 ia64*)
10460 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10461 ;;
10462 *)
10463
10464 # Older versions of the 11.00 compiler do not understand -b yet
10465 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10467$as_echo_n "checking if $CC understands -b... " >&6; }
10468if ${lt_cv_prog_compiler__b+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470else
10471 lt_cv_prog_compiler__b=no
10472 save_LDFLAGS=$LDFLAGS
10473 LDFLAGS="$LDFLAGS -b"
10474 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10475 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10476 # The linker can only warn and ignore the option if not recognized
10477 # So say no if there are warnings
10478 if test -s conftest.err; then
10479 # Append any errors to the config.log.
10480 cat conftest.err 1>&5
10481 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10482 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10483 if diff conftest.exp conftest.er2 >/dev/null; then
10484 lt_cv_prog_compiler__b=yes
10485 fi
10486 else
10487 lt_cv_prog_compiler__b=yes
10488 fi
10489 fi
10490 $RM -r conftest*
10491 LDFLAGS=$save_LDFLAGS
10492
10493fi
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10495$as_echo "$lt_cv_prog_compiler__b" >&6; }
10496
10497if test yes = "$lt_cv_prog_compiler__b"; then
10498 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10499else
10500 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10501fi
10502
10503 ;;
10504 esac
10505 fi
10506 if test no = "$with_gnu_ld"; then
10507 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10508 hardcode_libdir_separator=:
10509
10510 case $host_cpu in
10511 hppa*64*|ia64*)
10512 hardcode_direct=no
10513 hardcode_shlibpath_var=no
10514 ;;
10515 *)
10516 hardcode_direct=yes
10517 hardcode_direct_absolute=yes
10518 export_dynamic_flag_spec='$wl-E'
10519
10520 # hardcode_minus_L: Not really in the search PATH,
10521 # but as the default location of the library.
10522 hardcode_minus_L=yes
10523 ;;
10524 esac
10525 fi
10526 ;;
10527
10528 irix5* | irix6* | nonstopux*)
10529 if test yes = "$GCC"; then
10530 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'
10531 # Try to use the -exported_symbol ld option, if it does not
10532 # work, assume that -exports_file does not work either and
10533 # implicitly export all symbols.
10534 # This should be the same for all languages, so no per-tag cache variable.
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10536$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10537if ${lt_cv_irix_exported_symbol+:} false; then :
10538 $as_echo_n "(cached) " >&6
10539else
10540 save_LDFLAGS=$LDFLAGS
10541 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h. */
10544int foo (void) { return 0; }
10545_ACEOF
10546if ac_fn_c_try_link "$LINENO"; then :
10547 lt_cv_irix_exported_symbol=yes
10548else
10549 lt_cv_irix_exported_symbol=no
10550fi
10551rm -f core conftest.err conftest.$ac_objext \
10552 conftest$ac_exeext conftest.$ac_ext
10553 LDFLAGS=$save_LDFLAGS
10554fi
10555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10556$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10557 if test yes = "$lt_cv_irix_exported_symbol"; then
10558 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'
10559 fi
10560 else
10561 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'
10562 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'
10563 fi
10564 archive_cmds_need_lc='no'
10565 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10566 hardcode_libdir_separator=:
10567 inherit_rpath=yes
10568 link_all_deplibs=yes
10569 ;;
10570
10571 linux*)
10572 case $cc_basename in
10573 tcc*)
10574 # Fabrice Bellard et al's Tiny C Compiler
10575 ld_shlibs=yes
10576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10577 ;;
10578 esac
10579 ;;
10580
10581 netbsd*)
10582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10584 else
10585 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10586 fi
10587 hardcode_libdir_flag_spec='-R$libdir'
10588 hardcode_direct=yes
10589 hardcode_shlibpath_var=no
10590 ;;
10591
10592 newsos6)
10593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10594 hardcode_direct=yes
10595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10596 hardcode_libdir_separator=:
10597 hardcode_shlibpath_var=no
10598 ;;
10599
10600 *nto* | *qnx*)
10601 ;;
10602
10603 openbsd* | bitrig*)
10604 if test -f /usr/libexec/ld.so; then
10605 hardcode_direct=yes
10606 hardcode_shlibpath_var=no
10607 hardcode_direct_absolute=yes
10608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10610 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10611 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10612 export_dynamic_flag_spec='$wl-E'
10613 else
10614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10615 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10616 fi
10617 else
10618 ld_shlibs=no
10619 fi
10620 ;;
10621
10622 os2*)
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_minus_L=yes
10625 allow_undefined_flag=unsupported
10626 shrext_cmds=.dll
10627 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10628 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10629 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10630 $ECHO EXPORTS >> $output_objdir/$libname.def~
10631 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10633 emximp -o $lib $output_objdir/$libname.def'
10634 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10635 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10636 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10637 $ECHO EXPORTS >> $output_objdir/$libname.def~
10638 prefix_cmds="$SED"~
10639 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10640 prefix_cmds="$prefix_cmds -e 1d";
10641 fi~
10642 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10643 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10645 emximp -o $lib $output_objdir/$libname.def'
10646 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10647 enable_shared_with_static_runtimes=yes
10648 ;;
10649
10650 osf3*)
10651 if test yes = "$GCC"; then
10652 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10653 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'
10654 else
10655 allow_undefined_flag=' -expect_unresolved \*'
10656 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'
10657 fi
10658 archive_cmds_need_lc='no'
10659 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10660 hardcode_libdir_separator=:
10661 ;;
10662
10663 osf4* | osf5*) # as osf3* with the addition of -msym flag
10664 if test yes = "$GCC"; then
10665 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10666 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'
10667 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10668 else
10669 allow_undefined_flag=' -expect_unresolved \*'
10670 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'
10671 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~
10672 $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'
10673
10674 # Both c and cxx compiler support -rpath directly
10675 hardcode_libdir_flag_spec='-rpath $libdir'
10676 fi
10677 archive_cmds_need_lc='no'
10678 hardcode_libdir_separator=:
10679 ;;
10680
10681 solaris*)
10682 no_undefined_flag=' -z defs'
10683 if test yes = "$GCC"; then
10684 wlarc='$wl'
10685 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10687 $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'
10688 else
10689 case `$CC -V 2>&1` in
10690 *"Compilers 5.0"*)
10691 wlarc=''
10692 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10694 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10695 ;;
10696 *)
10697 wlarc='$wl'
10698 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10699 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10700 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10701 ;;
10702 esac
10703 fi
10704 hardcode_libdir_flag_spec='-R$libdir'
10705 hardcode_shlibpath_var=no
10706 case $host_os in
10707 solaris2.[0-5] | solaris2.[0-5].*) ;;
10708 *)
10709 # The compiler driver will combine and reorder linker options,
10710 # but understands '-z linker_flag'. GCC discards it without '$wl',
10711 # but is careful enough not to reorder.
10712 # Supported since Solaris 2.6 (maybe 2.5.1?)
10713 if test yes = "$GCC"; then
10714 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10715 else
10716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10717 fi
10718 ;;
10719 esac
10720 link_all_deplibs=yes
10721 ;;
10722
10723 sunos4*)
10724 if test sequent = "$host_vendor"; then
10725 # Use $CC to link under sequent, because it throws in some extra .o
10726 # files that make .init and .fini sections work.
10727 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10728 else
10729 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10730 fi
10731 hardcode_libdir_flag_spec='-L$libdir'
10732 hardcode_direct=yes
10733 hardcode_minus_L=yes
10734 hardcode_shlibpath_var=no
10735 ;;
10736
10737 sysv4)
10738 case $host_vendor in
10739 sni)
10740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10741 hardcode_direct=yes # is this really true???
10742 ;;
10743 siemens)
10744 ## LD is ld it makes a PLAMLIB
10745 ## CC just makes a GrossModule.
10746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10747 reload_cmds='$CC -r -o $output$reload_objs'
10748 hardcode_direct=no
10749 ;;
10750 motorola)
10751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10752 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10753 ;;
10754 esac
10755 runpath_var='LD_RUN_PATH'
10756 hardcode_shlibpath_var=no
10757 ;;
10758
10759 sysv4.3*)
10760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10761 hardcode_shlibpath_var=no
10762 export_dynamic_flag_spec='-Bexport'
10763 ;;
10764
10765 sysv4*MP*)
10766 if test -d /usr/nec; then
10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_shlibpath_var=no
10769 runpath_var=LD_RUN_PATH
10770 hardcode_runpath_var=yes
10771 ld_shlibs=yes
10772 fi
10773 ;;
10774
10775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10776 no_undefined_flag='$wl-z,text'
10777 archive_cmds_need_lc=no
10778 hardcode_shlibpath_var=no
10779 runpath_var='LD_RUN_PATH'
10780
10781 if test yes = "$GCC"; then
10782 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10783 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10784 else
10785 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10787 fi
10788 ;;
10789
10790 sysv5* | sco3.2v5* | sco5v6*)
10791 # Note: We CANNOT use -z defs as we might desire, because we do not
10792 # link with -lc, and that would cause any symbols used from libc to
10793 # always be unresolved, which means just about no library would
10794 # ever link correctly. If we're not using GNU ld we use -z text
10795 # though, which does catch some bad symbols but isn't as heavy-handed
10796 # as -z defs.
10797 no_undefined_flag='$wl-z,text'
10798 allow_undefined_flag='$wl-z,nodefs'
10799 archive_cmds_need_lc=no
10800 hardcode_shlibpath_var=no
10801 hardcode_libdir_flag_spec='$wl-R,$libdir'
10802 hardcode_libdir_separator=':'
10803 link_all_deplibs=yes
10804 export_dynamic_flag_spec='$wl-Bexport'
10805 runpath_var='LD_RUN_PATH'
10806
10807 if test yes = "$GCC"; then
10808 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10809 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10810 else
10811 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10812 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10813 fi
10814 ;;
10815
10816 uts4*)
10817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 hardcode_libdir_flag_spec='-L$libdir'
10819 hardcode_shlibpath_var=no
10820 ;;
10821
10822 *)
10823 ld_shlibs=no
10824 ;;
10825 esac
10826
10827 if test sni = "$host_vendor"; then
10828 case $host in
10829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10830 export_dynamic_flag_spec='$wl-Blargedynsym'
10831 ;;
10832 esac
10833 fi
10834 fi
10835
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10837$as_echo "$ld_shlibs" >&6; }
10838test no = "$ld_shlibs" && can_build_shared=no
10839
10840with_gnu_ld=$with_gnu_ld
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856#
10857# Do we need to explicitly link libc?
10858#
10859case "x$archive_cmds_need_lc" in
10860x|xyes)
10861 # Assume -lc should be added
10862 archive_cmds_need_lc=yes
10863
10864 if test yes,yes = "$GCC,$enable_shared"; then
10865 case $archive_cmds in
10866 *'~'*)
10867 # FIXME: we may have to deal with multi-command sequences.
10868 ;;
10869 '$CC '*)
10870 # Test whether the compiler implicitly links with -lc since on some
10871 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10872 # to ld, don't add -lc before -lgcc.
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10874$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10875if ${lt_cv_archive_cmds_need_lc+:} false; then :
10876 $as_echo_n "(cached) " >&6
10877else
10878 $RM conftest*
10879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10880
10881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10882 (eval $ac_compile) 2>&5
10883 ac_status=$?
10884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10885 test $ac_status = 0; } 2>conftest.err; then
10886 soname=conftest
10887 lib=conftest
10888 libobjs=conftest.$ac_objext
10889 deplibs=
10890 wl=$lt_prog_compiler_wl
10891 pic_flag=$lt_prog_compiler_pic
10892 compiler_flags=-v
10893 linker_flags=-v
10894 verstring=
10895 output_objdir=.
10896 libname=conftest
10897 lt_save_allow_undefined_flag=$allow_undefined_flag
10898 allow_undefined_flag=
10899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10900 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10903 test $ac_status = 0; }
10904 then
10905 lt_cv_archive_cmds_need_lc=no
10906 else
10907 lt_cv_archive_cmds_need_lc=yes
10908 fi
10909 allow_undefined_flag=$lt_save_allow_undefined_flag
10910 else
10911 cat conftest.err 1>&5
10912 fi
10913 $RM conftest*
10914
10915fi
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10917$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10918 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10919 ;;
10920 esac
10921 fi
10922 ;;
10923esac
10924
10925
10926
10927
10928
10929
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11077$as_echo_n "checking dynamic linker characteristics... " >&6; }
11078
11079if test yes = "$GCC"; then
11080 case $host_os in
11081 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11082 *) lt_awk_arg='/^libraries:/' ;;
11083 esac
11084 case $host_os in
11085 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11086 *) lt_sed_strip_eq='s|=/|/|g' ;;
11087 esac
11088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11089 case $lt_search_path_spec in
11090 *\;*)
11091 # if the path contains ";" then we assume it to be the separator
11092 # otherwise default to the standard path separator (i.e. ":") - it is
11093 # assumed that no part of a normal pathname contains ";" but that should
11094 # okay in the real world where ";" in dirpaths is itself problematic.
11095 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11096 ;;
11097 *)
11098 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11099 ;;
11100 esac
11101 # Ok, now we have the path, separated by spaces, we can step through it
11102 # and add multilib dir if necessary...
11103 lt_tmp_lt_search_path_spec=
11104 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11105 # ...but if some path component already ends with the multilib dir we assume
11106 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11107 case "$lt_multi_os_dir; $lt_search_path_spec " in
11108 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11109 lt_multi_os_dir=
11110 ;;
11111 esac
11112 for lt_sys_path in $lt_search_path_spec; do
11113 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11115 elif test -n "$lt_multi_os_dir"; then
11116 test -d "$lt_sys_path" && \
11117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11118 fi
11119 done
11120 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11121BEGIN {RS = " "; FS = "/|\n";} {
11122 lt_foo = "";
11123 lt_count = 0;
11124 for (lt_i = NF; lt_i > 0; lt_i--) {
11125 if ($lt_i != "" && $lt_i != ".") {
11126 if ($lt_i == "..") {
11127 lt_count++;
11128 } else {
11129 if (lt_count == 0) {
11130 lt_foo = "/" $lt_i lt_foo;
11131 } else {
11132 lt_count--;
11133 }
11134 }
11135 }
11136 }
11137 if (lt_foo != "") { lt_freq[lt_foo]++; }
11138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11139}'`
11140 # AWK program above erroneously prepends '/' to C:/dos/paths
11141 # for these hosts.
11142 case $host_os in
11143 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11144 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11145 esac
11146 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11147else
11148 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11149fi
11150library_names_spec=
11151libname_spec='lib$name'
11152soname_spec=
11153shrext_cmds=.so
11154postinstall_cmds=
11155postuninstall_cmds=
11156finish_cmds=
11157finish_eval=
11158shlibpath_var=
11159shlibpath_overrides_runpath=unknown
11160version_type=none
11161dynamic_linker="$host_os ld.so"
11162sys_lib_dlsearch_path_spec="/lib /usr/lib"
11163need_lib_prefix=unknown
11164hardcode_into_libs=no
11165
11166# when you set need_version to no, make sure it does not cause -set_version
11167# flags to be left without arguments
11168need_version=unknown
11169
11170
11171
11172case $host_os in
11173aix3*)
11174 version_type=linux # correct to gnu/linux during the next big refactor
11175 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11176 shlibpath_var=LIBPATH
11177
11178 # AIX 3 has no versioning support, so we append a major version to the name.
11179 soname_spec='$libname$release$shared_ext$major'
11180 ;;
11181
11182aix[4-9]*)
11183 version_type=linux # correct to gnu/linux during the next big refactor
11184 need_lib_prefix=no
11185 need_version=no
11186 hardcode_into_libs=yes
11187 if test ia64 = "$host_cpu"; then
11188 # AIX 5 supports IA64
11189 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11190 shlibpath_var=LD_LIBRARY_PATH
11191 else
11192 # With GCC up to 2.95.x, collect2 would create an import file
11193 # for dependence libraries. The import file would start with
11194 # the line '#! .'. This would cause the generated library to
11195 # depend on '.', always an invalid library. This was fixed in
11196 # development snapshots of GCC prior to 3.0.
11197 case $host_os in
11198 aix4 | aix4.[01] | aix4.[01].*)
11199 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11200 echo ' yes '
11201 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11202 :
11203 else
11204 can_build_shared=no
11205 fi
11206 ;;
11207 esac
11208 # Using Import Files as archive members, it is possible to support
11209 # filename-based versioning of shared library archives on AIX. While
11210 # this would work for both with and without runtime linking, it will
11211 # prevent static linking of such archives. So we do filename-based
11212 # shared library versioning with .so extension only, which is used
11213 # when both runtime linking and shared linking is enabled.
11214 # Unfortunately, runtime linking may impact performance, so we do
11215 # not want this to be the default eventually. Also, we use the
11216 # versioned .so libs for executables only if there is the -brtl
11217 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11218 # To allow for filename-based versioning support, we need to create
11219 # libNAME.so.V as an archive file, containing:
11220 # *) an Import File, referring to the versioned filename of the
11221 # archive as well as the shared archive member, telling the
11222 # bitwidth (32 or 64) of that shared object, and providing the
11223 # list of exported symbols of that shared object, eventually
11224 # decorated with the 'weak' keyword
11225 # *) the shared object with the F_LOADONLY flag set, to really avoid
11226 # it being seen by the linker.
11227 # At run time we better use the real file rather than another symlink,
11228 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11229
11230 case $with_aix_soname,$aix_use_runtimelinking in
11231 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11232 # soname into executable. Probably we can add versioning support to
11233 # collect2, so additional links can be useful in future.
11234 aix,yes) # traditional libtool
11235 dynamic_linker='AIX unversionable lib.so'
11236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11237 # instead of lib<name>.a to let people know that these are not
11238 # typical AIX shared libraries.
11239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11240 ;;
11241 aix,no) # traditional AIX only
11242 dynamic_linker='AIX lib.a(lib.so.V)'
11243 # We preserve .a as extension for shared libraries through AIX4.2
11244 # and later when we are not doing run time linking.
11245 library_names_spec='$libname$release.a $libname.a'
11246 soname_spec='$libname$release$shared_ext$major'
11247 ;;
11248 svr4,*) # full svr4 only
11249 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11250 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11251 # We do not specify a path in Import Files, so LIBPATH fires.
11252 shlibpath_overrides_runpath=yes
11253 ;;
11254 *,yes) # both, prefer svr4
11255 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11256 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11257 # unpreferred sharedlib libNAME.a needs extra handling
11258 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"'
11259 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"'
11260 # We do not specify a path in Import Files, so LIBPATH fires.
11261 shlibpath_overrides_runpath=yes
11262 ;;
11263 *,no) # both, prefer aix
11264 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11265 library_names_spec='$libname$release.a $libname.a'
11266 soname_spec='$libname$release$shared_ext$major'
11267 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11268 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)'
11269 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"'
11270 ;;
11271 esac
11272 shlibpath_var=LIBPATH
11273 fi
11274 ;;
11275
11276amigaos*)
11277 case $host_cpu in
11278 powerpc)
11279 # Since July 2007 AmigaOS4 officially supports .so libraries.
11280 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11282 ;;
11283 m68k)
11284 library_names_spec='$libname.ixlibrary $libname.a'
11285 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11286 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'
11287 ;;
11288 esac
11289 ;;
11290
11291beos*)
11292 library_names_spec='$libname$shared_ext'
11293 dynamic_linker="$host_os ld.so"
11294 shlibpath_var=LIBRARY_PATH
11295 ;;
11296
11297bsdi[45]*)
11298 version_type=linux # correct to gnu/linux during the next big refactor
11299 need_version=no
11300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11301 soname_spec='$libname$release$shared_ext$major'
11302 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11305 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11306 # the default ld.so.conf also contains /usr/contrib/lib and
11307 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11308 # libtool to hard-code these into programs
11309 ;;
11310
11311cygwin* | mingw* | pw32* | cegcc*)
11312 version_type=windows
11313 shrext_cmds=.dll
11314 need_version=no
11315 need_lib_prefix=no
11316
11317 case $GCC,$cc_basename in
11318 yes,*)
11319 # gcc
11320 library_names_spec='$libname.dll.a'
11321 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11322 postinstall_cmds='base_file=`basename \$file`~
11323 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11324 dldir=$destdir/`dirname \$dlpath`~
11325 test -d \$dldir || mkdir -p \$dldir~
11326 $install_prog $dir/$dlname \$dldir/$dlname~
11327 chmod a+x \$dldir/$dlname~
11328 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11329 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11330 fi'
11331 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11332 dlpath=$dir/\$dldll~
11333 $RM \$dlpath'
11334 shlibpath_overrides_runpath=yes
11335
11336 case $host_os in
11337 cygwin*)
11338 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11339 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11340
11341 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11342 ;;
11343 mingw* | cegcc*)
11344 # MinGW DLLs use traditional 'lib' prefix
11345 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11346 ;;
11347 pw32*)
11348 # pw32 DLLs use 'pw' prefix rather than 'lib'
11349 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11350 ;;
11351 esac
11352 dynamic_linker='Win32 ld.exe'
11353 ;;
11354
11355 *,cl*)
11356 # Native MSVC
11357 libname_spec='$name'
11358 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11359 library_names_spec='$libname.dll.lib'
11360
11361 case $build_os in
11362 mingw*)
11363 sys_lib_search_path_spec=
11364 lt_save_ifs=$IFS
11365 IFS=';'
11366 for lt_path in $LIB
11367 do
11368 IFS=$lt_save_ifs
11369 # Let DOS variable expansion print the short 8.3 style file name.
11370 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11371 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11372 done
11373 IFS=$lt_save_ifs
11374 # Convert to MSYS style.
11375 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11376 ;;
11377 cygwin*)
11378 # Convert to unix form, then to dos form, then back to unix form
11379 # but this time dos style (no spaces!) so that the unix form looks
11380 # like /cygdrive/c/PROGRA~1:/cygdr...
11381 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11382 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11383 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11384 ;;
11385 *)
11386 sys_lib_search_path_spec=$LIB
11387 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11388 # It is most probably a Windows format PATH.
11389 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11390 else
11391 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11392 fi
11393 # FIXME: find the short name or the path components, as spaces are
11394 # common. (e.g. "Program Files" -> "PROGRA~1")
11395 ;;
11396 esac
11397
11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399 postinstall_cmds='base_file=`basename \$file`~
11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11401 dldir=$destdir/`dirname \$dlpath`~
11402 test -d \$dldir || mkdir -p \$dldir~
11403 $install_prog $dir/$dlname \$dldir/$dlname'
11404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11405 dlpath=$dir/\$dldll~
11406 $RM \$dlpath'
11407 shlibpath_overrides_runpath=yes
11408 dynamic_linker='Win32 link.exe'
11409 ;;
11410
11411 *)
11412 # Assume MSVC wrapper
11413 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11414 dynamic_linker='Win32 ld.exe'
11415 ;;
11416 esac
11417 # FIXME: first we should search . and the directory the executable is in
11418 shlibpath_var=PATH
11419 ;;
11420
11421darwin* | rhapsody*)
11422 dynamic_linker="$host_os dyld"
11423 version_type=darwin
11424 need_lib_prefix=no
11425 need_version=no
11426 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11427 soname_spec='$libname$release$major$shared_ext'
11428 shlibpath_overrides_runpath=yes
11429 shlibpath_var=DYLD_LIBRARY_PATH
11430 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11431
11432 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11434 ;;
11435
11436dgux*)
11437 version_type=linux # correct to gnu/linux during the next big refactor
11438 need_lib_prefix=no
11439 need_version=no
11440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11441 soname_spec='$libname$release$shared_ext$major'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 ;;
11444
11445freebsd* | dragonfly*)
11446 # DragonFly does not have aout. When/if they implement a new
11447 # versioning mechanism, adjust this.
11448 if test -x /usr/bin/objformat; then
11449 objformat=`/usr/bin/objformat`
11450 else
11451 case $host_os in
11452 freebsd[23].*) objformat=aout ;;
11453 *) objformat=elf ;;
11454 esac
11455 fi
11456 version_type=freebsd-$objformat
11457 case $version_type in
11458 freebsd-elf*)
11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11460 soname_spec='$libname$release$shared_ext$major'
11461 need_version=no
11462 need_lib_prefix=no
11463 ;;
11464 freebsd-*)
11465 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11466 need_version=yes
11467 ;;
11468 esac
11469 shlibpath_var=LD_LIBRARY_PATH
11470 case $host_os in
11471 freebsd2.*)
11472 shlibpath_overrides_runpath=yes
11473 ;;
11474 freebsd3.[01]* | freebsdelf3.[01]*)
11475 shlibpath_overrides_runpath=yes
11476 hardcode_into_libs=yes
11477 ;;
11478 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11479 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11480 shlibpath_overrides_runpath=no
11481 hardcode_into_libs=yes
11482 ;;
11483 *) # from 4.6 on, and DragonFly
11484 shlibpath_overrides_runpath=yes
11485 hardcode_into_libs=yes
11486 ;;
11487 esac
11488 ;;
11489
11490haiku*)
11491 version_type=linux # correct to gnu/linux during the next big refactor
11492 need_lib_prefix=no
11493 need_version=no
11494 dynamic_linker="$host_os runtime_loader"
11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496 soname_spec='$libname$release$shared_ext$major'
11497 shlibpath_var=LIBRARY_PATH
11498 shlibpath_overrides_runpath=no
11499 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11500 hardcode_into_libs=yes
11501 ;;
11502
11503hpux9* | hpux10* | hpux11*)
11504 # Give a soname corresponding to the major version so that dld.sl refuses to
11505 # link against other versions.
11506 version_type=sunos
11507 need_lib_prefix=no
11508 need_version=no
11509 case $host_cpu in
11510 ia64*)
11511 shrext_cmds='.so'
11512 hardcode_into_libs=yes
11513 dynamic_linker="$host_os dld.so"
11514 shlibpath_var=LD_LIBRARY_PATH
11515 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11517 soname_spec='$libname$release$shared_ext$major'
11518 if test 32 = "$HPUX_IA64_MODE"; then
11519 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11520 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11521 else
11522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11523 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11524 fi
11525 ;;
11526 hppa*64*)
11527 shrext_cmds='.sl'
11528 hardcode_into_libs=yes
11529 dynamic_linker="$host_os dld.sl"
11530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11533 soname_spec='$libname$release$shared_ext$major'
11534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11536 ;;
11537 *)
11538 shrext_cmds='.sl'
11539 dynamic_linker="$host_os dld.sl"
11540 shlibpath_var=SHLIB_PATH
11541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11543 soname_spec='$libname$release$shared_ext$major'
11544 ;;
11545 esac
11546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11547 postinstall_cmds='chmod 555 $lib'
11548 # or fails outright, so override atomically:
11549 install_override_mode=555
11550 ;;
11551
11552interix[3-9]*)
11553 version_type=linux # correct to gnu/linux during the next big refactor
11554 need_lib_prefix=no
11555 need_version=no
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 soname_spec='$libname$release$shared_ext$major'
11558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=no
11561 hardcode_into_libs=yes
11562 ;;
11563
11564irix5* | irix6* | nonstopux*)
11565 case $host_os in
11566 nonstopux*) version_type=nonstopux ;;
11567 *)
11568 if test yes = "$lt_cv_prog_gnu_ld"; then
11569 version_type=linux # correct to gnu/linux during the next big refactor
11570 else
11571 version_type=irix
11572 fi ;;
11573 esac
11574 need_lib_prefix=no
11575 need_version=no
11576 soname_spec='$libname$release$shared_ext$major'
11577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11578 case $host_os in
11579 irix5* | nonstopux*)
11580 libsuff= shlibsuff=
11581 ;;
11582 *)
11583 case $LD in # libtool.m4 will add one of these switches to LD
11584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11585 libsuff= shlibsuff= libmagic=32-bit;;
11586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11587 libsuff=32 shlibsuff=N32 libmagic=N32;;
11588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11590 *) libsuff= shlibsuff= libmagic=never-match;;
11591 esac
11592 ;;
11593 esac
11594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11595 shlibpath_overrides_runpath=no
11596 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11597 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11598 hardcode_into_libs=yes
11599 ;;
11600
11601# No shared lib support for Linux oldld, aout, or coff.
11602linux*oldld* | linux*aout* | linux*coff*)
11603 dynamic_linker=no
11604 ;;
11605
11606linux*android*)
11607 version_type=none # Android doesn't support versioned libraries.
11608 need_lib_prefix=no
11609 need_version=no
11610 library_names_spec='$libname$release$shared_ext'
11611 soname_spec='$libname$release$shared_ext'
11612 finish_cmds=
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes
11615
11616 # This implies no fast_install, which is unacceptable.
11617 # Some rework will be needed to allow for fast_install
11618 # before this can be enabled.
11619 hardcode_into_libs=yes
11620
11621 dynamic_linker='Android linker'
11622 # Don't embed -rpath directories since the linker doesn't support them.
11623 hardcode_libdir_flag_spec='-L$libdir'
11624 ;;
11625
11626# This must be glibc/ELF.
11627linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 need_lib_prefix=no
11630 need_version=no
11631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11632 soname_spec='$libname$release$shared_ext$major'
11633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636
11637 # Some binutils ld are patched to set DT_RUNPATH
11638 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640else
11641 lt_cv_shlibpath_overrides_runpath=no
11642 save_LDFLAGS=$LDFLAGS
11643 save_libdir=$libdir
11644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647/* end confdefs.h. */
11648
11649int
11650main ()
11651{
11652
11653 ;
11654 return 0;
11655}
11656_ACEOF
11657if ac_fn_c_try_link "$LINENO"; then :
11658 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11659 lt_cv_shlibpath_overrides_runpath=yes
11660fi
11661fi
11662rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LDFLAGS=$save_LDFLAGS
11665 libdir=$save_libdir
11666
11667fi
11668
11669 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11670
11671 # This implies no fast_install, which is unacceptable.
11672 # Some rework will be needed to allow for fast_install
11673 # before this can be enabled.
11674 hardcode_into_libs=yes
11675
11676 # Add ABI-specific directories to the system library path.
11677 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11678
11679 # Ideally, we could use ldconfig to report *all* directores which are
11680 # searched for libraries, however this is still not possible. Aside from not
11681 # being certain /sbin/ldconfig is available, command
11682 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11683 # even though it is searched at run-time. Try to do the best guess by
11684 # appending ld.so.conf contents (and includes) to the search path.
11685 if test -f /etc/ld.so.conf; then
11686 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' ' '`
11687 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11688 fi
11689
11690 # We used to test for /lib/ld.so.1 and disable shared libraries on
11691 # powerpc, because MkLinux only supported shared libraries with the
11692 # GNU dynamic linker. Since this was broken with cross compilers,
11693 # most powerpc-linux boxes support dynamic linking these days and
11694 # people can always --disable-shared, the test was removed, and we
11695 # assume the GNU/Linux dynamic linker is in use.
11696 dynamic_linker='GNU/Linux ld.so'
11697 ;;
11698
11699netbsd*)
11700 version_type=sunos
11701 need_lib_prefix=no
11702 need_version=no
11703 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11704 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11706 dynamic_linker='NetBSD (a.out) ld.so'
11707 else
11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11709 soname_spec='$libname$release$shared_ext$major'
11710 dynamic_linker='NetBSD ld.elf_so'
11711 fi
11712 shlibpath_var=LD_LIBRARY_PATH
11713 shlibpath_overrides_runpath=yes
11714 hardcode_into_libs=yes
11715 ;;
11716
11717newsos6)
11718 version_type=linux # correct to gnu/linux during the next big refactor
11719 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11720 shlibpath_var=LD_LIBRARY_PATH
11721 shlibpath_overrides_runpath=yes
11722 ;;
11723
11724*nto* | *qnx*)
11725 version_type=qnx
11726 need_lib_prefix=no
11727 need_version=no
11728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11729 soname_spec='$libname$release$shared_ext$major'
11730 shlibpath_var=LD_LIBRARY_PATH
11731 shlibpath_overrides_runpath=no
11732 hardcode_into_libs=yes
11733 dynamic_linker='ldqnx.so'
11734 ;;
11735
11736openbsd* | bitrig*)
11737 version_type=sunos
11738 sys_lib_dlsearch_path_spec=/usr/lib
11739 need_lib_prefix=no
11740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11741 need_version=no
11742 else
11743 need_version=yes
11744 fi
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11747 shlibpath_var=LD_LIBRARY_PATH
11748 shlibpath_overrides_runpath=yes
11749 ;;
11750
11751os2*)
11752 libname_spec='$name'
11753 version_type=windows
11754 shrext_cmds=.dll
11755 need_version=no
11756 need_lib_prefix=no
11757 # OS/2 can only load a DLL with a base name of 8 characters or less.
11758 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11759 v=$($ECHO $release$versuffix | tr -d .-);
11760 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11761 $ECHO $n$v`$shared_ext'
11762 library_names_spec='${libname}_dll.$libext'
11763 dynamic_linker='OS/2 ld.exe'
11764 shlibpath_var=BEGINLIBPATH
11765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11767 postinstall_cmds='base_file=`basename \$file`~
11768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11769 dldir=$destdir/`dirname \$dlpath`~
11770 test -d \$dldir || mkdir -p \$dldir~
11771 $install_prog $dir/$dlname \$dldir/$dlname~
11772 chmod a+x \$dldir/$dlname~
11773 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11774 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11775 fi'
11776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11777 dlpath=$dir/\$dldll~
11778 $RM \$dlpath'
11779 ;;
11780
11781osf3* | osf4* | osf5*)
11782 version_type=osf
11783 need_lib_prefix=no
11784 need_version=no
11785 soname_spec='$libname$release$shared_ext$major'
11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11790 ;;
11791
11792rdos*)
11793 dynamic_linker=no
11794 ;;
11795
11796solaris*)
11797 version_type=linux # correct to gnu/linux during the next big refactor
11798 need_lib_prefix=no
11799 need_version=no
11800 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11801 soname_spec='$libname$release$shared_ext$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11804 hardcode_into_libs=yes
11805 # ldd complains unless libraries are executable
11806 postinstall_cmds='chmod +x $lib'
11807 ;;
11808
11809sunos4*)
11810 version_type=sunos
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11813 shlibpath_var=LD_LIBRARY_PATH
11814 shlibpath_overrides_runpath=yes
11815 if test yes = "$with_gnu_ld"; then
11816 need_lib_prefix=no
11817 fi
11818 need_version=yes
11819 ;;
11820
11821sysv4 | sysv4.3*)
11822 version_type=linux # correct to gnu/linux during the next big refactor
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11824 soname_spec='$libname$release$shared_ext$major'
11825 shlibpath_var=LD_LIBRARY_PATH
11826 case $host_vendor in
11827 sni)
11828 shlibpath_overrides_runpath=no
11829 need_lib_prefix=no
11830 runpath_var=LD_RUN_PATH
11831 ;;
11832 siemens)
11833 need_lib_prefix=no
11834 ;;
11835 motorola)
11836 need_lib_prefix=no
11837 need_version=no
11838 shlibpath_overrides_runpath=no
11839 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11840 ;;
11841 esac
11842 ;;
11843
11844sysv4*MP*)
11845 if test -d /usr/nec; then
11846 version_type=linux # correct to gnu/linux during the next big refactor
11847 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11848 soname_spec='$libname$shared_ext.$major'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 fi
11851 ;;
11852
11853sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11854 version_type=sco
11855 need_lib_prefix=no
11856 need_version=no
11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11858 soname_spec='$libname$release$shared_ext$major'
11859 shlibpath_var=LD_LIBRARY_PATH
11860 shlibpath_overrides_runpath=yes
11861 hardcode_into_libs=yes
11862 if test yes = "$with_gnu_ld"; then
11863 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11864 else
11865 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11866 case $host_os in
11867 sco3.2v5*)
11868 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11869 ;;
11870 esac
11871 fi
11872 sys_lib_dlsearch_path_spec='/usr/lib'
11873 ;;
11874
11875tpf*)
11876 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11877 version_type=linux # correct to gnu/linux during the next big refactor
11878 need_lib_prefix=no
11879 need_version=no
11880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 shlibpath_overrides_runpath=no
11883 hardcode_into_libs=yes
11884 ;;
11885
11886uts4*)
11887 version_type=linux # correct to gnu/linux during the next big refactor
11888 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11889 soname_spec='$libname$release$shared_ext$major'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 ;;
11892
11893*)
11894 dynamic_linker=no
11895 ;;
11896esac
11897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11898$as_echo "$dynamic_linker" >&6; }
11899test no = "$dynamic_linker" && can_build_shared=no
11900
11901variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11902if test yes = "$GCC"; then
11903 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11904fi
11905
11906if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11907 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11908fi
11909
11910if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11911 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11912fi
11913
11914# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11915configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11916
11917# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11918func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11919
11920# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11921configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12020$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12021hardcode_action=
12022if test -n "$hardcode_libdir_flag_spec" ||
12023 test -n "$runpath_var" ||
12024 test yes = "$hardcode_automatic"; then
12025
12026 # We can hardcode non-existent directories.
12027 if test no != "$hardcode_direct" &&
12028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12029 # have to relink, otherwise we might link with an installed library
12030 # when we should be linking with a yet-to-be-installed one
12031 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12032 test no != "$hardcode_minus_L"; then
12033 # Linking always hardcodes the temporary library directory.
12034 hardcode_action=relink
12035 else
12036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12037 hardcode_action=immediate
12038 fi
12039else
12040 # We cannot hardcode anything, or else we can only hardcode existing
12041 # directories.
12042 hardcode_action=unsupported
12043fi
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12045$as_echo "$hardcode_action" >&6; }
12046
12047if test relink = "$hardcode_action" ||
12048 test yes = "$inherit_rpath"; then
12049 # Fast installation is not supported
12050 enable_fast_install=no
12051elif test yes = "$shlibpath_overrides_runpath" ||
12052 test no = "$enable_shared"; then
12053 # Fast installation is not necessary
12054 enable_fast_install=needless
12055fi
12056
12057
12058
12059
12060
12061
12062 if test yes != "$enable_dlopen"; then
12063 enable_dlopen=unknown
12064 enable_dlopen_self=unknown
12065 enable_dlopen_self_static=unknown
12066else
12067 lt_cv_dlopen=no
12068 lt_cv_dlopen_libs=
12069
12070 case $host_os in
12071 beos*)
12072 lt_cv_dlopen=load_add_on
12073 lt_cv_dlopen_libs=
12074 lt_cv_dlopen_self=yes
12075 ;;
12076
12077 mingw* | pw32* | cegcc*)
12078 lt_cv_dlopen=LoadLibrary
12079 lt_cv_dlopen_libs=
12080 ;;
12081
12082 cygwin*)
12083 lt_cv_dlopen=dlopen
12084 lt_cv_dlopen_libs=
12085 ;;
12086
12087 darwin*)
12088 # if libdl is installed we need to link against it
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12090$as_echo_n "checking for dlopen in -ldl... " >&6; }
12091if ${ac_cv_lib_dl_dlopen+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093else
12094 ac_check_lib_save_LIBS=$LIBS
12095LIBS="-ldl $LIBS"
12096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097/* end confdefs.h. */
12098
12099/* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102#ifdef __cplusplus
12103extern "C"
12104#endif
12105char dlopen ();
12106int
12107main ()
12108{
12109return dlopen ();
12110 ;
12111 return 0;
12112}
12113_ACEOF
12114if ac_fn_c_try_link "$LINENO"; then :
12115 ac_cv_lib_dl_dlopen=yes
12116else
12117 ac_cv_lib_dl_dlopen=no
12118fi
12119rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121LIBS=$ac_check_lib_save_LIBS
12122fi
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12124$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12125if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12126 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12127else
12128
12129 lt_cv_dlopen=dyld
12130 lt_cv_dlopen_libs=
12131 lt_cv_dlopen_self=yes
12132
12133fi
12134
12135 ;;
12136
12137 tpf*)
12138 # Don't try to run any link tests for TPF. We know it's impossible
12139 # because TPF is a cross-compiler, and we know how we open DSOs.
12140 lt_cv_dlopen=dlopen
12141 lt_cv_dlopen_libs=
12142 lt_cv_dlopen_self=no
12143 ;;
12144
12145 *)
12146 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12147if test "x$ac_cv_func_shl_load" = xyes; then :
12148 lt_cv_dlopen=shl_load
12149else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12151$as_echo_n "checking for shl_load in -ldld... " >&6; }
12152if ${ac_cv_lib_dld_shl_load+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154else
12155 ac_check_lib_save_LIBS=$LIBS
12156LIBS="-ldld $LIBS"
12157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158/* end confdefs.h. */
12159
12160/* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12163#ifdef __cplusplus
12164extern "C"
12165#endif
12166char shl_load ();
12167int
12168main ()
12169{
12170return shl_load ();
12171 ;
12172 return 0;
12173}
12174_ACEOF
12175if ac_fn_c_try_link "$LINENO"; then :
12176 ac_cv_lib_dld_shl_load=yes
12177else
12178 ac_cv_lib_dld_shl_load=no
12179fi
12180rm -f core conftest.err conftest.$ac_objext \
12181 conftest$ac_exeext conftest.$ac_ext
12182LIBS=$ac_check_lib_save_LIBS
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12185$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12186if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12187 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12188else
12189 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12190if test "x$ac_cv_func_dlopen" = xyes; then :
12191 lt_cv_dlopen=dlopen
12192else
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12194$as_echo_n "checking for dlopen in -ldl... " >&6; }
12195if ${ac_cv_lib_dl_dlopen+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197else
12198 ac_check_lib_save_LIBS=$LIBS
12199LIBS="-ldl $LIBS"
12200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201/* end confdefs.h. */
12202
12203/* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply. */
12206#ifdef __cplusplus
12207extern "C"
12208#endif
12209char dlopen ();
12210int
12211main ()
12212{
12213return dlopen ();
12214 ;
12215 return 0;
12216}
12217_ACEOF
12218if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_lib_dl_dlopen=yes
12220else
12221 ac_cv_lib_dl_dlopen=no
12222fi
12223rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225LIBS=$ac_check_lib_save_LIBS
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12228$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12229if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12230 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12231else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12233$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12234if ${ac_cv_lib_svld_dlopen+:} false; then :
12235 $as_echo_n "(cached) " >&6
12236else
12237 ac_check_lib_save_LIBS=$LIBS
12238LIBS="-lsvld $LIBS"
12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h. */
12241
12242/* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12245#ifdef __cplusplus
12246extern "C"
12247#endif
12248char dlopen ();
12249int
12250main ()
12251{
12252return dlopen ();
12253 ;
12254 return 0;
12255}
12256_ACEOF
12257if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_svld_dlopen=yes
12259else
12260 ac_cv_lib_svld_dlopen=no
12261fi
12262rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264LIBS=$ac_check_lib_save_LIBS
12265fi
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12267$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12268if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12269 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12270else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12272$as_echo_n "checking for dld_link in -ldld... " >&6; }
12273if ${ac_cv_lib_dld_dld_link+:} false; then :
12274 $as_echo_n "(cached) " >&6
12275else
12276 ac_check_lib_save_LIBS=$LIBS
12277LIBS="-ldld $LIBS"
12278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h. */
12280
12281/* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284#ifdef __cplusplus
12285extern "C"
12286#endif
12287char dld_link ();
12288int
12289main ()
12290{
12291return dld_link ();
12292 ;
12293 return 0;
12294}
12295_ACEOF
12296if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_dld_dld_link=yes
12298else
12299 ac_cv_lib_dld_dld_link=no
12300fi
12301rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303LIBS=$ac_check_lib_save_LIBS
12304fi
12305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12306$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12307if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12308 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12309fi
12310
12311
12312fi
12313
12314
12315fi
12316
12317
12318fi
12319
12320
12321fi
12322
12323
12324fi
12325
12326 ;;
12327 esac
12328
12329 if test no = "$lt_cv_dlopen"; then
12330 enable_dlopen=no
12331 else
12332 enable_dlopen=yes
12333 fi
12334
12335 case $lt_cv_dlopen in
12336 dlopen)
12337 save_CPPFLAGS=$CPPFLAGS
12338 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12339
12340 save_LDFLAGS=$LDFLAGS
12341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12342
12343 save_LIBS=$LIBS
12344 LIBS="$lt_cv_dlopen_libs $LIBS"
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12347$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12348if ${lt_cv_dlopen_self+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 if test yes = "$cross_compiling"; then :
12352 lt_cv_dlopen_self=cross
12353else
12354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12355 lt_status=$lt_dlunknown
12356 cat > conftest.$ac_ext <<_LT_EOF
12357#line $LINENO "configure"
12358#include "confdefs.h"
12359
12360#if HAVE_DLFCN_H
12361#include <dlfcn.h>
12362#endif
12363
12364#include <stdio.h>
12365
12366#ifdef RTLD_GLOBAL
12367# define LT_DLGLOBAL RTLD_GLOBAL
12368#else
12369# ifdef DL_GLOBAL
12370# define LT_DLGLOBAL DL_GLOBAL
12371# else
12372# define LT_DLGLOBAL 0
12373# endif
12374#endif
12375
12376/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12377 find out it does not work in some platform. */
12378#ifndef LT_DLLAZY_OR_NOW
12379# ifdef RTLD_LAZY
12380# define LT_DLLAZY_OR_NOW RTLD_LAZY
12381# else
12382# ifdef DL_LAZY
12383# define LT_DLLAZY_OR_NOW DL_LAZY
12384# else
12385# ifdef RTLD_NOW
12386# define LT_DLLAZY_OR_NOW RTLD_NOW
12387# else
12388# ifdef DL_NOW
12389# define LT_DLLAZY_OR_NOW DL_NOW
12390# else
12391# define LT_DLLAZY_OR_NOW 0
12392# endif
12393# endif
12394# endif
12395# endif
12396#endif
12397
12398/* When -fvisibility=hidden is used, assume the code has been annotated
12399 correspondingly for the symbols needed. */
12400#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12401int fnord () __attribute__((visibility("default")));
12402#endif
12403
12404int fnord () { return 42; }
12405int main ()
12406{
12407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12408 int status = $lt_dlunknown;
12409
12410 if (self)
12411 {
12412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12413 else
12414 {
12415 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12416 else puts (dlerror ());
12417 }
12418 /* dlclose (self); */
12419 }
12420 else
12421 puts (dlerror ());
12422
12423 return status;
12424}
12425_LT_EOF
12426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12427 (eval $ac_link) 2>&5
12428 ac_status=$?
12429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12430 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12431 (./conftest; exit; ) >&5 2>/dev/null
12432 lt_status=$?
12433 case x$lt_status in
12434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12437 esac
12438 else :
12439 # compilation failed
12440 lt_cv_dlopen_self=no
12441 fi
12442fi
12443rm -fr conftest*
12444
12445
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12448$as_echo "$lt_cv_dlopen_self" >&6; }
12449
12450 if test yes = "$lt_cv_dlopen_self"; then
12451 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12453$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12454if ${lt_cv_dlopen_self_static+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456else
12457 if test yes = "$cross_compiling"; then :
12458 lt_cv_dlopen_self_static=cross
12459else
12460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12461 lt_status=$lt_dlunknown
12462 cat > conftest.$ac_ext <<_LT_EOF
12463#line $LINENO "configure"
12464#include "confdefs.h"
12465
12466#if HAVE_DLFCN_H
12467#include <dlfcn.h>
12468#endif
12469
12470#include <stdio.h>
12471
12472#ifdef RTLD_GLOBAL
12473# define LT_DLGLOBAL RTLD_GLOBAL
12474#else
12475# ifdef DL_GLOBAL
12476# define LT_DLGLOBAL DL_GLOBAL
12477# else
12478# define LT_DLGLOBAL 0
12479# endif
12480#endif
12481
12482/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12483 find out it does not work in some platform. */
12484#ifndef LT_DLLAZY_OR_NOW
12485# ifdef RTLD_LAZY
12486# define LT_DLLAZY_OR_NOW RTLD_LAZY
12487# else
12488# ifdef DL_LAZY
12489# define LT_DLLAZY_OR_NOW DL_LAZY
12490# else
12491# ifdef RTLD_NOW
12492# define LT_DLLAZY_OR_NOW RTLD_NOW
12493# else
12494# ifdef DL_NOW
12495# define LT_DLLAZY_OR_NOW DL_NOW
12496# else
12497# define LT_DLLAZY_OR_NOW 0
12498# endif
12499# endif
12500# endif
12501# endif
12502#endif
12503
12504/* When -fvisibility=hidden is used, assume the code has been annotated
12505 correspondingly for the symbols needed. */
12506#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12507int fnord () __attribute__((visibility("default")));
12508#endif
12509
12510int fnord () { return 42; }
12511int main ()
12512{
12513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12514 int status = $lt_dlunknown;
12515
12516 if (self)
12517 {
12518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12519 else
12520 {
12521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12522 else puts (dlerror ());
12523 }
12524 /* dlclose (self); */
12525 }
12526 else
12527 puts (dlerror ());
12528
12529 return status;
12530}
12531_LT_EOF
12532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12533 (eval $ac_link) 2>&5
12534 ac_status=$?
12535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12536 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12537 (./conftest; exit; ) >&5 2>/dev/null
12538 lt_status=$?
12539 case x$lt_status in
12540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12542 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12543 esac
12544 else :
12545 # compilation failed
12546 lt_cv_dlopen_self_static=no
12547 fi
12548fi
12549rm -fr conftest*
12550
12551
12552fi
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12554$as_echo "$lt_cv_dlopen_self_static" >&6; }
12555 fi
12556
12557 CPPFLAGS=$save_CPPFLAGS
12558 LDFLAGS=$save_LDFLAGS
12559 LIBS=$save_LIBS
12560 ;;
12561 esac
12562
12563 case $lt_cv_dlopen_self in
12564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12565 *) enable_dlopen_self=unknown ;;
12566 esac
12567
12568 case $lt_cv_dlopen_self_static in
12569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12570 *) enable_dlopen_self_static=unknown ;;
12571 esac
12572fi
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590striplib=
12591old_striplib=
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12593$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12594if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12595 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12596 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12598$as_echo "yes" >&6; }
12599else
12600# FIXME - insert some real tests, host_os isn't really good enough
12601 case $host_os in
12602 darwin*)
12603 if test -n "$STRIP"; then
12604 striplib="$STRIP -x"
12605 old_striplib="$STRIP -S"
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12607$as_echo "yes" >&6; }
12608 else
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
12611 fi
12612 ;;
12613 *)
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615$as_echo "no" >&6; }
12616 ;;
12617 esac
12618fi
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631 # Report what library types will actually be built
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12633$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12635$as_echo "$can_build_shared" >&6; }
12636
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12638$as_echo_n "checking whether to build shared libraries... " >&6; }
12639 test no = "$can_build_shared" && enable_shared=no
12640
12641 # On AIX, shared libraries and static libraries use the same namespace, and
12642 # are all built from PIC.
12643 case $host_os in
12644 aix3*)
12645 test yes = "$enable_shared" && enable_static=no
12646 if test -n "$RANLIB"; then
12647 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12648 postinstall_cmds='$RANLIB $lib'
12649 fi
12650 ;;
12651
12652 aix[4-9]*)
12653 if test ia64 != "$host_cpu"; then
12654 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12655 yes,aix,yes) ;; # shared object as lib.so file only
12656 yes,svr4,*) ;; # shared object as lib.so archive member only
12657 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12658 esac
12659 fi
12660 ;;
12661 esac
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12663$as_echo "$enable_shared" >&6; }
12664
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12666$as_echo_n "checking whether to build static libraries... " >&6; }
12667 # Make sure either enable_shared or enable_static is yes.
12668 test yes = "$enable_shared" || enable_static=yes
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12670$as_echo "$enable_static" >&6; }
12671
12672
12673
12674
12675fi
12676ac_ext=c
12677ac_cpp='$CPP $CPPFLAGS'
12678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680ac_compiler_gnu=$ac_cv_c_compiler_gnu
12681
12682CC=$lt_save_CC
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698 ac_config_commands="$ac_config_commands libtool"
12699
12700
12701
12702
12703# Only expand once:
12704
12705
12706
12707VERSION_SCRIPT_FLAGS=
12708# lt_cv_prog_gnu_ld is from libtool 2.+
12709if test "$lt_cv_prog_gnu_ld" = yes; then
12710 VERSION_SCRIPT_FLAGS=-Wl,--version-script=
12711else
12712 case $host in
12713 *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
12714 esac
12715fi
12716
12717 if test -n "$VERSION_SCRIPT_FLAGS"; then
12718 USE_VERSION_SCRIPT_TRUE=
12719 USE_VERSION_SCRIPT_FALSE='#'
12720else
12721 USE_VERSION_SCRIPT_TRUE='#'
12722 USE_VERSION_SCRIPT_FALSE=
12723fi
12724
12725
12726
12727_cppflags="${CPPFLAGS}"
12728_libs="${LIBS}"
12729
12730
12731# Check whether --with-c14n was given.
12732if test "${with_c14n+set}" = set; then :
12733 withval=$with_c14n;
12734fi
12735
12736
12737# Check whether --with-catalog was given.
12738if test "${with_catalog+set}" = set; then :
12739 withval=$with_catalog;
12740fi
12741
12742
12743# Check whether --with-debug was given.
12744if test "${with_debug+set}" = set; then :
12745 withval=$with_debug;
12746fi
12747
12748
12749# Check whether --with-docbook was given.
12750if test "${with_docbook+set}" = set; then :
12751 withval=$with_docbook;
12752fi
12753
12754
12755# Check whether --with-fexceptions was given.
12756if test "${with_fexceptions+set}" = set; then :
12757 withval=$with_fexceptions;
12758fi
12759
12760
12761# Check whether --with-ftp was given.
12762if test "${with_ftp+set}" = set; then :
12763 withval=$with_ftp;
12764fi
12765
12766
12767# Check whether --with-history was given.
12768if test "${with_history+set}" = set; then :
12769 withval=$with_history;
12770fi
12771
12772
12773# Check whether --with-html was given.
12774if test "${with_html+set}" = set; then :
12775 withval=$with_html;
12776fi
12777
12778
12779# Check whether --with-html-dir was given.
12780if test "${with_html_dir+set}" = set; then :
12781 withval=$with_html_dir; HTML_DIR=$withval
12782else
12783 HTML_DIR='$(datadir)/doc'
12784fi
12785
12786
12787
12788# Check whether --with-html-subdir was given.
12789if test "${with_html_subdir+set}" = set; then :
12790 withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
12791else
12792 HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
12793fi
12794
12795
12796
12797# Check whether --with-http was given.
12798if test "${with_http+set}" = set; then :
12799 withval=$with_http;
12800fi
12801
12802
12803# Check whether --with-iconv was given.
12804if test "${with_iconv+set}" = set; then :
12805 withval=$with_iconv;
12806fi
12807
12808
12809# Check whether --with-icu was given.
12810if test "${with_icu+set}" = set; then :
12811 withval=$with_icu;
12812fi
12813
12814
12815# Check whether --with-iso8859x was given.
12816if test "${with_iso8859x+set}" = set; then :
12817 withval=$with_iso8859x;
12818fi
12819
12820
12821# Check whether --with-legacy was given.
12822if test "${with_legacy+set}" = set; then :
12823 withval=$with_legacy;
12824fi
12825
12826
12827# Check whether --with-mem_debug was given.
12828if test "${with_mem_debug+set}" = set; then :
12829 withval=$with_mem_debug;
12830fi
12831
12832
12833# Check whether --with-minimum was given.
12834if test "${with_minimum+set}" = set; then :
12835 withval=$with_minimum;
12836fi
12837
12838
12839# Check whether --with-output was given.
12840if test "${with_output+set}" = set; then :
12841 withval=$with_output;
12842fi
12843
12844
12845# Check whether --with-pattern was given.
12846if test "${with_pattern+set}" = set; then :
12847 withval=$with_pattern;
12848fi
12849
12850
12851# Check whether --with-push was given.
12852if test "${with_push+set}" = set; then :
12853 withval=$with_push;
12854fi
12855
12856
12857# Check whether --with-python was given.
12858if test "${with_python+set}" = set; then :
12859 withval=$with_python;
12860fi
12861
12862
12863# Check whether --with-python_install_dir was given.
12864if test "${with_python_install_dir+set}" = set; then :
12865 withval=$with_python_install_dir;
12866fi
12867
12868
12869# Check whether --with-reader was given.
12870if test "${with_reader+set}" = set; then :
12871 withval=$with_reader;
12872fi
12873
12874
12875# Check whether --with-readline was given.
12876if test "${with_readline+set}" = set; then :
12877 withval=$with_readline;
12878 if test "$withval" != "no" -a "$withval" != "yes"; then
12879 RDL_DIR=$withval
12880 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12881 LDFLAGS="${LDFLAGS} -L$withval/lib"
12882 fi
12883
12884fi
12885
12886
12887# Check whether --with-regexps was given.
12888if test "${with_regexps+set}" = set; then :
12889 withval=$with_regexps;
12890fi
12891
12892
12893# Check whether --with-run_debug was given.
12894if test "${with_run_debug+set}" = set; then :
12895 withval=$with_run_debug;
12896fi
12897
12898
12899# Check whether --with-sax1 was given.
12900if test "${with_sax1+set}" = set; then :
12901 withval=$with_sax1;
12902fi
12903
12904
12905# Check whether --with-schemas was given.
12906if test "${with_schemas+set}" = set; then :
12907 withval=$with_schemas;
12908fi
12909
12910
12911# Check whether --with-schematron was given.
12912if test "${with_schematron+set}" = set; then :
12913 withval=$with_schematron;
12914fi
12915
12916
12917# Check whether --with-threads was given.
12918if test "${with_threads+set}" = set; then :
12919 withval=$with_threads;
12920fi
12921
12922
12923# Check whether --with-thread-alloc was given.
12924if test "${with_thread_alloc+set}" = set; then :
12925 withval=$with_thread_alloc;
12926fi
12927
12928
12929# Check whether --with-tree was given.
12930if test "${with_tree+set}" = set; then :
12931 withval=$with_tree;
12932fi
12933
12934
12935# Check whether --with-valid was given.
12936if test "${with_valid+set}" = set; then :
12937 withval=$with_valid;
12938fi
12939
12940
12941# Check whether --with-writer was given.
12942if test "${with_writer+set}" = set; then :
12943 withval=$with_writer;
12944fi
12945
12946
12947# Check whether --with-xinclude was given.
12948if test "${with_xinclude+set}" = set; then :
12949 withval=$with_xinclude;
12950fi
12951
12952
12953# Check whether --with-xpath was given.
12954if test "${with_xpath+set}" = set; then :
12955 withval=$with_xpath;
12956fi
12957
12958
12959# Check whether --with-xptr was given.
12960if test "${with_xptr+set}" = set; then :
12961 withval=$with_xptr;
12962fi
12963
12964
12965# Check whether --with-modules was given.
12966if test "${with_modules+set}" = set; then :
12967 withval=$with_modules;
12968fi
12969
12970
12971# Check whether --with-zlib was given.
12972if test "${with_zlib+set}" = set; then :
12973 withval=$with_zlib;
12974 if test "$withval" != "no" -a "$withval" != "yes"; then
12975 Z_DIR=$withval
12976 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12977 LDFLAGS="${LDFLAGS} -L$withval/lib"
12978 fi
12979
12980fi
12981
12982
12983# Check whether --with-lzma was given.
12984if test "${with_lzma+set}" = set; then :
12985 withval=$with_lzma;
12986 if test "$withval" != "no" -a "$withval" != "yes"; then
12987 LZMA_DIR=$withval
12988 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12989 LDFLAGS="${LDFLAGS} -L$withval/lib"
12990 fi
12991
12992fi
12993
12994
12995# Check whether --with-coverage was given.
12996if test "${with_coverage+set}" = set; then :
12997 withval=$with_coverage;
12998fi
12999
13000
13001# Check whether --enable-rebuild-docs was given.
13002if test "${enable_rebuild_docs+set}" = set; then :
13003 enableval=$enable_rebuild_docs;
13004fi
13005
13006if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
13007 as_fn_error $? "cannot rebuild docs when builddir != srcdir" "$LINENO" 5
13008fi
13009 if test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"; then
13010 REBUILD_DOCS_TRUE=
13011 REBUILD_DOCS_FALSE='#'
13012else
13013 REBUILD_DOCS_TRUE='#'
13014 REBUILD_DOCS_FALSE=
13015fi
13016
13017
13018if test "$with_schemas" = "yes"
13019then
13020 with_pattern=yes
13021 with_regexps=yes
13022fi
13023if test "$with_schematron" = "yes"
13024then
13025 with_pattern=yes
13026 with_tree=yes
13027 with_xpath=yes
13028fi
13029if test "$with_reader" = "yes"
13030then
13031 with_push=yes
13032fi
13033if test "$with_xptr" = "yes"
13034then
13035 with_xpath=yes
13036fi
13037if test "$with_minimum" = "yes"
13038then
13039 echo "Configuring for a minimal library"
13040 if test "$with_c14n" = ""
13041 then
13042 with_c14n=no
13043 fi
13044 if test "$with_catalog" = ""
13045 then
13046 with_catalog=no
13047 fi
13048 echo So far so good!
13049 if test "$with_debug" = ""
13050 then
13051 with_debug=no
13052 fi
13053 if test "$with_docbook" = ""
13054 then
13055 with_docbook=no
13056 fi
13057 if test "$with_fexceptions" = ""
13058 then
13059 with_fexceptions=no
13060 fi
13061 if test "$with_ftp" = ""
13062 then
13063 with_ftp=no
13064 fi
13065 if test "$with_history" = ""
13066 then
13067 with_history=no
13068 fi
13069 if test "$with_html" = ""
13070 then
13071 with_html=no
13072 fi
13073 if test "$with_http" = ""
13074 then
13075 with_http=no
13076 fi
13077 if test "$with_iconv" = ""
13078 then
13079 with_iconv=no
13080 fi
13081 if test "$with_iso8859x" = ""
13082 then
13083 with_iso8859x=no
13084 fi
13085 if test "$with_legacy" = ""
13086 then
13087 with_legacy=no
13088 fi
13089 if test "$with_mem_debug" = ""
13090 then
13091 with_mem_debug=no
13092 fi
13093 if test "$with_output" = ""
13094 then
13095 with_output=no
13096 fi
13097 if test "$with_pattern" = ""
13098 then
13099 with_pattern=no
13100 fi
13101 if test "$with_push" = ""
13102 then
13103 with_push=no
13104 fi
13105 if test "$with_python" = ""
13106 then
13107 with_python=no
13108 fi
13109 if test "$with_reader" = ""
13110 then
13111 with_reader=no
13112 fi
13113 if test "$with_readline" = ""
13114 then
13115 with_readline=no
13116 fi
13117 if test "$with_regexps" = ""
13118 then
13119 with_regexps=no
13120 fi
13121 if test "$with_run_debug" = ""
13122 then
13123 with_run_debug=no
13124 fi
13125 if test "$with_sax1" = ""
13126 then
13127 with_sax1=no
13128 fi
13129 if test "$with_schemas" = ""
13130 then
13131 with_schemas=no
13132 fi
13133 if test "$with_schematron" = ""
13134 then
13135 with_schematron=no
13136 fi
13137 if test "$with_threads" = ""
13138 then
13139 with_threads=no
13140 fi
13141 if test "$with_thread_alloc" = ""
13142 then
13143 with_thread_alloc=no
13144 fi
13145 if test "$with_tree" = ""
13146 then
13147 with_tree=no
13148 fi
13149 if test "$with_valid" = ""
13150 then
13151 with_valid=no
13152 fi
13153 if test "$with_writer" = ""
13154 then
13155 with_writer=no
13156 fi
13157 if test "$with_xinclude" = ""
13158 then
13159 with_xinclude=no
13160 fi
13161 if test "$with_xpath" = ""
13162 then
13163 with_xpath=no
13164 fi
13165 if test "$with_xptr" = ""
13166 then
13167 with_xptr=no
13168 fi
13169 if test "$with_zlib" = ""
13170 then
13171 with_zlib=no
13172 fi
13173 if test "$with_modules" = ""
13174 then
13175 with_modules=no
13176 fi
13177fi
13178
13179echo Checking zlib
13180
13181
13182WITH_ZLIB=0
13183if test "$with_zlib" = "no"; then
13184 echo "Disabling compression support"
13185else
13186 # Try pkg-config first so that static linking works.
13187 # If this succeeeds, we ignore the WITH_ZLIB directory.
13188
13189pkg_failed=no
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Z" >&5
13191$as_echo_n "checking for Z... " >&6; }
13192
13193if test -n "$Z_CFLAGS"; then
13194 pkg_cv_Z_CFLAGS="$Z_CFLAGS"
13195 elif test -n "$PKG_CONFIG"; then
13196 if test -n "$PKG_CONFIG" && \
13197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
13198 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }; then
13202 pkg_cv_Z_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
13203 test "x$?" != "x0" && pkg_failed=yes
13204else
13205 pkg_failed=yes
13206fi
13207 else
13208 pkg_failed=untried
13209fi
13210if test -n "$Z_LIBS"; then
13211 pkg_cv_Z_LIBS="$Z_LIBS"
13212 elif test -n "$PKG_CONFIG"; then
13213 if test -n "$PKG_CONFIG" && \
13214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
13215 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
13216 ac_status=$?
13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218 test $ac_status = 0; }; then
13219 pkg_cv_Z_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
13220 test "x$?" != "x0" && pkg_failed=yes
13221else
13222 pkg_failed=yes
13223fi
13224 else
13225 pkg_failed=untried
13226fi
13227
13228
13229
13230if test $pkg_failed = yes; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13232$as_echo "no" >&6; }
13233
13234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13235 _pkg_short_errors_supported=yes
13236else
13237 _pkg_short_errors_supported=no
13238fi
13239 if test $_pkg_short_errors_supported = yes; then
13240 Z_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
13241 else
13242 Z_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
13243 fi
13244 # Put the nasty error message in config.log where it belongs
13245 echo "$Z_PKG_ERRORS" >&5
13246
13247 have_libz=no
13248elif test $pkg_failed = untried; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250$as_echo "no" >&6; }
13251 have_libz=no
13252else
13253 Z_CFLAGS=$pkg_cv_Z_CFLAGS
13254 Z_LIBS=$pkg_cv_Z_LIBS
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256$as_echo "yes" >&6; }
13257 have_libz=yes
13258fi
13259
13260 if test "x$have_libz" = "xno"; then
13261 for ac_header in zlib.h
13262do :
13263 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13264if test "x$ac_cv_header_zlib_h" = xyes; then :
13265 cat >>confdefs.h <<_ACEOF
13266#define HAVE_ZLIB_H 1
13267_ACEOF
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
13269$as_echo_n "checking for gzread in -lz... " >&6; }
13270if ${ac_cv_lib_z_gzread+:} false; then :
13271 $as_echo_n "(cached) " >&6
13272else
13273 ac_check_lib_save_LIBS=$LIBS
13274LIBS="-lz $LIBS"
13275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276/* end confdefs.h. */
13277
13278/* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13281#ifdef __cplusplus
13282extern "C"
13283#endif
13284char gzread ();
13285int
13286main ()
13287{
13288return gzread ();
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293if ac_fn_c_try_link "$LINENO"; then :
13294 ac_cv_lib_z_gzread=yes
13295else
13296 ac_cv_lib_z_gzread=no
13297fi
13298rm -f core conftest.err conftest.$ac_objext \
13299 conftest$ac_exeext conftest.$ac_ext
13300LIBS=$ac_check_lib_save_LIBS
13301fi
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
13303$as_echo "$ac_cv_lib_z_gzread" >&6; }
13304if test "x$ac_cv_lib_z_gzread" = xyes; then :
13305
13306 have_libz=yes
13307 if test "x${Z_DIR}" != "x"; then
13308 Z_CFLAGS="-I${Z_DIR}/include"
13309 Z_LIBS="-L${Z_DIR}/lib -lz"
13310 case ${host} in
13311 *-*-solaris*)
13312 Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
13313 ;;
13314 esac
13315 else
13316 Z_LIBS="-lz"
13317 fi
13318else
13319 have_libz=no
13320fi
13321
13322
13323fi
13324
13325done
13326
13327 else
13328 # we still need to check for zlib.h header
13329 for ac_header in zlib.h
13330do :
13331 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13332if test "x$ac_cv_header_zlib_h" = xyes; then :
13333 cat >>confdefs.h <<_ACEOF
13334#define HAVE_ZLIB_H 1
13335_ACEOF
13336
13337fi
13338
13339done
13340
13341 fi
13342
13343 # Found the library via either method?
13344 if test "x$have_libz" = "xyes"; then
13345
13346$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13347
13348 WITH_ZLIB=1
13349 fi
13350fi
13351
13352
13353
13354
13355
13356echo Checking lzma
13357
13358
13359WITH_LZMA=0
13360if test "$with_lzma" = "no"; then
13361 echo "Disabling compression support"
13362else
13363 # Try pkg-config first so that static linking works.
13364 # If this succeeeds, we ignore the WITH_LZMA directory.
13365
13366pkg_failed=no
13367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
13368$as_echo_n "checking for LZMA... " >&6; }
13369
13370if test -n "$LZMA_CFLAGS"; then
13371 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
13372 elif test -n "$PKG_CONFIG"; then
13373 if test -n "$PKG_CONFIG" && \
13374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
13375 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
13376 ac_status=$?
13377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378 test $ac_status = 0; }; then
13379 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
13380 test "x$?" != "x0" && pkg_failed=yes
13381else
13382 pkg_failed=yes
13383fi
13384 else
13385 pkg_failed=untried
13386fi
13387if test -n "$LZMA_LIBS"; then
13388 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
13389 elif test -n "$PKG_CONFIG"; then
13390 if test -n "$PKG_CONFIG" && \
13391 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
13392 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
13393 ac_status=$?
13394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395 test $ac_status = 0; }; then
13396 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
13397 test "x$?" != "x0" && pkg_failed=yes
13398else
13399 pkg_failed=yes
13400fi
13401 else
13402 pkg_failed=untried
13403fi
13404
13405
13406
13407if test $pkg_failed = yes; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
13410
13411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13412 _pkg_short_errors_supported=yes
13413else
13414 _pkg_short_errors_supported=no
13415fi
13416 if test $_pkg_short_errors_supported = yes; then
13417 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
13418 else
13419 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
13420 fi
13421 # Put the nasty error message in config.log where it belongs
13422 echo "$LZMA_PKG_ERRORS" >&5
13423
13424 have_liblzma=no
13425elif test $pkg_failed = untried; then
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
13428 have_liblzma=no
13429else
13430 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
13431 LZMA_LIBS=$pkg_cv_LZMA_LIBS
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13433$as_echo "yes" >&6; }
13434 have_liblzma=yes
13435fi
13436
13437 # If pkg-config failed, fall back to AC_CHECK_LIB. This
13438 # will not pick up the necessary LIBS flags for liblzma's
13439 # private dependencies, though, so static linking may fail.
13440 if test "x$have_liblzma" = "xno"; then
13441 for ac_header in lzma.h
13442do :
13443 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13444if test "x$ac_cv_header_lzma_h" = xyes; then :
13445 cat >>confdefs.h <<_ACEOF
13446#define HAVE_LZMA_H 1
13447_ACEOF
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
13449$as_echo_n "checking for lzma_code in -llzma... " >&6; }
13450if ${ac_cv_lib_lzma_lzma_code+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452else
13453 ac_check_lib_save_LIBS=$LIBS
13454LIBS="-llzma $LIBS"
13455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456/* end confdefs.h. */
13457
13458/* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461#ifdef __cplusplus
13462extern "C"
13463#endif
13464char lzma_code ();
13465int
13466main ()
13467{
13468return lzma_code ();
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_lib_lzma_lzma_code=yes
13475else
13476 ac_cv_lib_lzma_lzma_code=no
13477fi
13478rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480LIBS=$ac_check_lib_save_LIBS
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
13483$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
13484if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
13485
13486 have_liblzma=yes
13487 if test "x${LZMA_DIR}" != "x"; then
13488 LZMA_CFLAGS="-I${LZMA_DIR}/include"
13489 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
13490 else
13491 LZMA_LIBS="-llzma"
13492 fi
13493else
13494 have_liblzma=no
13495fi
13496
13497
13498fi
13499
13500done
13501
13502 else
13503 # we still need to check for lzma,h header
13504 for ac_header in lzma.h
13505do :
13506 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13507if test "x$ac_cv_header_lzma_h" = xyes; then :
13508 cat >>confdefs.h <<_ACEOF
13509#define HAVE_LZMA_H 1
13510_ACEOF
13511
13512fi
13513
13514done
13515
13516 fi
13517
13518 # Found the library via either method?
13519 if test "x$have_liblzma" = "xyes"; then
13520
13521$as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
13522
13523 WITH_LZMA=1
13524 fi
13525fi
13526
13527
13528
13529
13530
13531CPPFLAGS=${_cppflags}
13532LIBS=${_libs}
13533
13534echo Checking headers
13535
13536ac_header_dirent=no
13537for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13538 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13540$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13541if eval \${$as_ac_Header+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543else
13544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13545/* end confdefs.h. */
13546#include <sys/types.h>
13547#include <$ac_hdr>
13548
13549int
13550main ()
13551{
13552if ((DIR *) 0)
13553return 0;
13554 ;
13555 return 0;
13556}
13557_ACEOF
13558if ac_fn_c_try_compile "$LINENO"; then :
13559 eval "$as_ac_Header=yes"
13560else
13561 eval "$as_ac_Header=no"
13562fi
13563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564fi
13565eval ac_res=\$$as_ac_Header
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13567$as_echo "$ac_res" >&6; }
13568if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13569 cat >>confdefs.h <<_ACEOF
13570#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13571_ACEOF
13572
13573ac_header_dirent=$ac_hdr; break
13574fi
13575
13576done
13577# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13578if test $ac_header_dirent = dirent.h; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13580$as_echo_n "checking for library containing opendir... " >&6; }
13581if ${ac_cv_search_opendir+:} false; then :
13582 $as_echo_n "(cached) " >&6
13583else
13584 ac_func_search_save_LIBS=$LIBS
13585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586/* end confdefs.h. */
13587
13588/* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591#ifdef __cplusplus
13592extern "C"
13593#endif
13594char opendir ();
13595int
13596main ()
13597{
13598return opendir ();
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603for ac_lib in '' dir; do
13604 if test -z "$ac_lib"; then
13605 ac_res="none required"
13606 else
13607 ac_res=-l$ac_lib
13608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13609 fi
13610 if ac_fn_c_try_link "$LINENO"; then :
13611 ac_cv_search_opendir=$ac_res
13612fi
13613rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext
13615 if ${ac_cv_search_opendir+:} false; then :
13616 break
13617fi
13618done
13619if ${ac_cv_search_opendir+:} false; then :
13620
13621else
13622 ac_cv_search_opendir=no
13623fi
13624rm conftest.$ac_ext
13625LIBS=$ac_func_search_save_LIBS
13626fi
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13628$as_echo "$ac_cv_search_opendir" >&6; }
13629ac_res=$ac_cv_search_opendir
13630if test "$ac_res" != no; then :
13631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13632
13633fi
13634
13635else
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13637$as_echo_n "checking for library containing opendir... " >&6; }
13638if ${ac_cv_search_opendir+:} false; then :
13639 $as_echo_n "(cached) " >&6
13640else
13641 ac_func_search_save_LIBS=$LIBS
13642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643/* end confdefs.h. */
13644
13645/* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13648#ifdef __cplusplus
13649extern "C"
13650#endif
13651char opendir ();
13652int
13653main ()
13654{
13655return opendir ();
13656 ;
13657 return 0;
13658}
13659_ACEOF
13660for ac_lib in '' x; do
13661 if test -z "$ac_lib"; then
13662 ac_res="none required"
13663 else
13664 ac_res=-l$ac_lib
13665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13666 fi
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 ac_cv_search_opendir=$ac_res
13669fi
13670rm -f core conftest.err conftest.$ac_objext \
13671 conftest$ac_exeext
13672 if ${ac_cv_search_opendir+:} false; then :
13673 break
13674fi
13675done
13676if ${ac_cv_search_opendir+:} false; then :
13677
13678else
13679 ac_cv_search_opendir=no
13680fi
13681rm conftest.$ac_ext
13682LIBS=$ac_func_search_save_LIBS
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13685$as_echo "$ac_cv_search_opendir" >&6; }
13686ac_res=$ac_cv_search_opendir
13687if test "$ac_res" != no; then :
13688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13689
13690fi
13691
13692fi
13693
13694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13695$as_echo_n "checking for ANSI C header files... " >&6; }
13696if ${ac_cv_header_stdc+:} false; then :
13697 $as_echo_n "(cached) " >&6
13698else
13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700/* end confdefs.h. */
13701#include <stdlib.h>
13702#include <stdarg.h>
13703#include <string.h>
13704#include <float.h>
13705
13706int
13707main ()
13708{
13709
13710 ;
13711 return 0;
13712}
13713_ACEOF
13714if ac_fn_c_try_compile "$LINENO"; then :
13715 ac_cv_header_stdc=yes
13716else
13717 ac_cv_header_stdc=no
13718fi
13719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720
13721if test $ac_cv_header_stdc = yes; then
13722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724/* end confdefs.h. */
13725#include <string.h>
13726
13727_ACEOF
13728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13729 $EGREP "memchr" >/dev/null 2>&1; then :
13730
13731else
13732 ac_cv_header_stdc=no
13733fi
13734rm -f conftest*
13735
13736fi
13737
13738if test $ac_cv_header_stdc = yes; then
13739 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741/* end confdefs.h. */
13742#include <stdlib.h>
13743
13744_ACEOF
13745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13746 $EGREP "free" >/dev/null 2>&1; then :
13747
13748else
13749 ac_cv_header_stdc=no
13750fi
13751rm -f conftest*
13752
13753fi
13754
13755if test $ac_cv_header_stdc = yes; then
13756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13757 if test "$cross_compiling" = yes; then :
13758 :
13759else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761/* end confdefs.h. */
13762#include <ctype.h>
13763#include <stdlib.h>
13764#if ((' ' & 0x0FF) == 0x020)
13765# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13766# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13767#else
13768# define ISLOWER(c) \
13769 (('a' <= (c) && (c) <= 'i') \
13770 || ('j' <= (c) && (c) <= 'r') \
13771 || ('s' <= (c) && (c) <= 'z'))
13772# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13773#endif
13774
13775#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13776int
13777main ()
13778{
13779 int i;
13780 for (i = 0; i < 256; i++)
13781 if (XOR (islower (i), ISLOWER (i))
13782 || toupper (i) != TOUPPER (i))
13783 return 2;
13784 return 0;
13785}
13786_ACEOF
13787if ac_fn_c_try_run "$LINENO"; then :
13788
13789else
13790 ac_cv_header_stdc=no
13791fi
13792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13793 conftest.$ac_objext conftest.beam conftest.$ac_ext
13794fi
13795
13796fi
13797fi
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13799$as_echo "$ac_cv_header_stdc" >&6; }
13800if test $ac_cv_header_stdc = yes; then
13801
13802$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13803
13804fi
13805
13806for ac_header in fcntl.h
13807do :
13808 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13809if test "x$ac_cv_header_fcntl_h" = xyes; then :
13810 cat >>confdefs.h <<_ACEOF
13811#define HAVE_FCNTL_H 1
13812_ACEOF
13813
13814fi
13815
13816done
13817
13818for ac_header in unistd.h
13819do :
13820 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13821if test "x$ac_cv_header_unistd_h" = xyes; then :
13822 cat >>confdefs.h <<_ACEOF
13823#define HAVE_UNISTD_H 1
13824_ACEOF
13825
13826fi
13827
13828done
13829
13830for ac_header in ctype.h
13831do :
13832 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
13833if test "x$ac_cv_header_ctype_h" = xyes; then :
13834 cat >>confdefs.h <<_ACEOF
13835#define HAVE_CTYPE_H 1
13836_ACEOF
13837
13838fi
13839
13840done
13841
13842for ac_header in dirent.h
13843do :
13844 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
13845if test "x$ac_cv_header_dirent_h" = xyes; then :
13846 cat >>confdefs.h <<_ACEOF
13847#define HAVE_DIRENT_H 1
13848_ACEOF
13849
13850fi
13851
13852done
13853
13854for ac_header in errno.h
13855do :
13856 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
13857if test "x$ac_cv_header_errno_h" = xyes; then :
13858 cat >>confdefs.h <<_ACEOF
13859#define HAVE_ERRNO_H 1
13860_ACEOF
13861
13862fi
13863
13864done
13865
13866for ac_header in malloc.h
13867do :
13868 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
13869if test "x$ac_cv_header_malloc_h" = xyes; then :
13870 cat >>confdefs.h <<_ACEOF
13871#define HAVE_MALLOC_H 1
13872_ACEOF
13873
13874fi
13875
13876done
13877
13878for ac_header in stdarg.h
13879do :
13880 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13881if test "x$ac_cv_header_stdarg_h" = xyes; then :
13882 cat >>confdefs.h <<_ACEOF
13883#define HAVE_STDARG_H 1
13884_ACEOF
13885
13886fi
13887
13888done
13889
13890for ac_header in sys/stat.h
13891do :
13892 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13893if test "x$ac_cv_header_sys_stat_h" = xyes; then :
13894 cat >>confdefs.h <<_ACEOF
13895#define HAVE_SYS_STAT_H 1
13896_ACEOF
13897
13898fi
13899
13900done
13901
13902for ac_header in sys/types.h
13903do :
13904 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13905if test "x$ac_cv_header_sys_types_h" = xyes; then :
13906 cat >>confdefs.h <<_ACEOF
13907#define HAVE_SYS_TYPES_H 1
13908_ACEOF
13909
13910fi
13911
13912done
13913
13914for ac_header in stdint.h
13915do :
13916 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13917if test "x$ac_cv_header_stdint_h" = xyes; then :
13918 cat >>confdefs.h <<_ACEOF
13919#define HAVE_STDINT_H 1
13920_ACEOF
13921
13922fi
13923
13924done
13925
13926for ac_header in inttypes.h
13927do :
13928 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13929if test "x$ac_cv_header_inttypes_h" = xyes; then :
13930 cat >>confdefs.h <<_ACEOF
13931#define HAVE_INTTYPES_H 1
13932_ACEOF
13933
13934fi
13935
13936done
13937
13938for ac_header in time.h
13939do :
13940 ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
13941if test "x$ac_cv_header_time_h" = xyes; then :
13942 cat >>confdefs.h <<_ACEOF
13943#define HAVE_TIME_H 1
13944_ACEOF
13945
13946fi
13947
13948done
13949
13950for ac_header in ansidecl.h
13951do :
13952 ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
13953if test "x$ac_cv_header_ansidecl_h" = xyes; then :
13954 cat >>confdefs.h <<_ACEOF
13955#define HAVE_ANSIDECL_H 1
13956_ACEOF
13957
13958fi
13959
13960done
13961
13962for ac_header in ieeefp.h
13963do :
13964 ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
13965if test "x$ac_cv_header_ieeefp_h" = xyes; then :
13966 cat >>confdefs.h <<_ACEOF
13967#define HAVE_IEEEFP_H 1
13968_ACEOF
13969
13970fi
13971
13972done
13973
13974for ac_header in nan.h
13975do :
13976 ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
13977if test "x$ac_cv_header_nan_h" = xyes; then :
13978 cat >>confdefs.h <<_ACEOF
13979#define HAVE_NAN_H 1
13980_ACEOF
13981
13982fi
13983
13984done
13985
13986for ac_header in math.h
13987do :
13988 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
13989if test "x$ac_cv_header_math_h" = xyes; then :
13990 cat >>confdefs.h <<_ACEOF
13991#define HAVE_MATH_H 1
13992_ACEOF
13993
13994fi
13995
13996done
13997
13998for ac_header in limits.h
13999do :
14000 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14001if test "x$ac_cv_header_limits_h" = xyes; then :
14002 cat >>confdefs.h <<_ACEOF
14003#define HAVE_LIMITS_H 1
14004_ACEOF
14005
14006fi
14007
14008done
14009
14010for ac_header in fp_class.h
14011do :
14012 ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
14013if test "x$ac_cv_header_fp_class_h" = xyes; then :
14014 cat >>confdefs.h <<_ACEOF
14015#define HAVE_FP_CLASS_H 1
14016_ACEOF
14017
14018fi
14019
14020done
14021
14022for ac_header in float.h
14023do :
14024 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
14025if test "x$ac_cv_header_float_h" = xyes; then :
14026 cat >>confdefs.h <<_ACEOF
14027#define HAVE_FLOAT_H 1
14028_ACEOF
14029
14030fi
14031
14032done
14033
14034for ac_header in stdlib.h
14035do :
14036 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14037if test "x$ac_cv_header_stdlib_h" = xyes; then :
14038 cat >>confdefs.h <<_ACEOF
14039#define HAVE_STDLIB_H 1
14040_ACEOF
14041
14042fi
14043
14044done
14045
14046for ac_header in sys/socket.h
14047do :
14048 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
14049# include <sys/types.h>
14050# endif
14051
14052"
14053if test "x$ac_cv_header_sys_socket_h" = xyes; then :
14054 cat >>confdefs.h <<_ACEOF
14055#define HAVE_SYS_SOCKET_H 1
14056_ACEOF
14057
14058fi
14059
14060done
14061
14062for ac_header in netinet/in.h
14063do :
14064 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
14065# include <sys/types.h>
14066# endif
14067
14068"
14069if test "x$ac_cv_header_netinet_in_h" = xyes; then :
14070 cat >>confdefs.h <<_ACEOF
14071#define HAVE_NETINET_IN_H 1
14072_ACEOF
14073
14074fi
14075
14076done
14077
14078for ac_header in arpa/inet.h
14079do :
14080 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
14081# include <sys/types.h>
14082# endif
14083#if HAVE_ARPA_INET_H
14084# include <arpa/inet.h>
14085# endif
14086
14087"
14088if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
14089 cat >>confdefs.h <<_ACEOF
14090#define HAVE_ARPA_INET_H 1
14091_ACEOF
14092
14093fi
14094
14095done
14096
14097for ac_header in netdb.h
14098do :
14099 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
14100if test "x$ac_cv_header_netdb_h" = xyes; then :
14101 cat >>confdefs.h <<_ACEOF
14102#define HAVE_NETDB_H 1
14103_ACEOF
14104
14105fi
14106
14107done
14108
14109for ac_header in sys/time.h
14110do :
14111 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14112if test "x$ac_cv_header_sys_time_h" = xyes; then :
14113 cat >>confdefs.h <<_ACEOF
14114#define HAVE_SYS_TIME_H 1
14115_ACEOF
14116
14117fi
14118
14119done
14120
14121for ac_header in sys/select.h
14122do :
14123 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14124if test "x$ac_cv_header_sys_select_h" = xyes; then :
14125 cat >>confdefs.h <<_ACEOF
14126#define HAVE_SYS_SELECT_H 1
14127_ACEOF
14128
14129fi
14130
14131done
14132
14133for ac_header in poll.h
14134do :
14135 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14136if test "x$ac_cv_header_poll_h" = xyes; then :
14137 cat >>confdefs.h <<_ACEOF
14138#define HAVE_POLL_H 1
14139_ACEOF
14140
14141fi
14142
14143done
14144
14145for ac_header in sys/mman.h
14146do :
14147 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14148if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14149 cat >>confdefs.h <<_ACEOF
14150#define HAVE_SYS_MMAN_H 1
14151_ACEOF
14152
14153fi
14154
14155done
14156
14157for ac_header in sys/timeb.h
14158do :
14159 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14160if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
14161 cat >>confdefs.h <<_ACEOF
14162#define HAVE_SYS_TIMEB_H 1
14163_ACEOF
14164
14165fi
14166
14167done
14168
14169for ac_header in signal.h
14170do :
14171 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14172if test "x$ac_cv_header_signal_h" = xyes; then :
14173 cat >>confdefs.h <<_ACEOF
14174#define HAVE_SIGNAL_H 1
14175_ACEOF
14176
14177fi
14178
14179done
14180
14181for ac_header in arpa/nameser.h
14182do :
14183 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
14184# include <sys/types.h>
14185# endif
14186
14187"
14188if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
14189 cat >>confdefs.h <<_ACEOF
14190#define HAVE_ARPA_NAMESER_H 1
14191_ACEOF
14192
14193fi
14194
14195done
14196
14197for ac_header in resolv.h
14198do :
14199 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
14200# include <sys/types.h>
14201# endif
14202#if HAVE_NETINET_IN_H
14203# include <netinet/in.h>
14204# endif
14205#if HAVE_ARPA_NAMESER_H
14206# include <arpa/nameser.h>
14207# endif
14208
14209"
14210if test "x$ac_cv_header_resolv_h" = xyes; then :
14211 cat >>confdefs.h <<_ACEOF
14212#define HAVE_RESOLV_H 1
14213_ACEOF
14214
14215fi
14216
14217done
14218
14219for ac_header in dl.h
14220do :
14221 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
14222if test "x$ac_cv_header_dl_h" = xyes; then :
14223 cat >>confdefs.h <<_ACEOF
14224#define HAVE_DL_H 1
14225_ACEOF
14226
14227fi
14228
14229done
14230
14231for ac_header in dlfcn.h
14232do :
14233 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
14234if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14235 cat >>confdefs.h <<_ACEOF
14236#define HAVE_DLFCN_H 1
14237_ACEOF
14238
14239fi
14240
14241done
14242
14243
14244
14245echo Checking types
14246
14247ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14248case $ac_cv_c_uint32_t in #(
14249 no|yes) ;; #(
14250 *)
14251
14252$as_echo "#define _UINT32_T 1" >>confdefs.h
14253
14254
14255cat >>confdefs.h <<_ACEOF
14256#define uint32_t $ac_cv_c_uint32_t
14257_ACEOF
14258;;
14259 esac
14260
14261
14262
14263echo Checking libraries
14264
14265for ac_func in strftime
14266do :
14267 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14268if test "x$ac_cv_func_strftime" = xyes; then :
14269 cat >>confdefs.h <<_ACEOF
14270#define HAVE_STRFTIME 1
14271_ACEOF
14272
14273else
14274 # strftime is in -lintl on SCO UNIX.
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14276$as_echo_n "checking for strftime in -lintl... " >&6; }
14277if ${ac_cv_lib_intl_strftime+:} false; then :
14278 $as_echo_n "(cached) " >&6
14279else
14280 ac_check_lib_save_LIBS=$LIBS
14281LIBS="-lintl $LIBS"
14282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283/* end confdefs.h. */
14284
14285/* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14288#ifdef __cplusplus
14289extern "C"
14290#endif
14291char strftime ();
14292int
14293main ()
14294{
14295return strftime ();
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300if ac_fn_c_try_link "$LINENO"; then :
14301 ac_cv_lib_intl_strftime=yes
14302else
14303 ac_cv_lib_intl_strftime=no
14304fi
14305rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
14307LIBS=$ac_check_lib_save_LIBS
14308fi
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14310$as_echo "$ac_cv_lib_intl_strftime" >&6; }
14311if test "x$ac_cv_lib_intl_strftime" = xyes; then :
14312 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
14313
14314LIBS="-lintl $LIBS"
14315fi
14316
14317fi
14318done
14319
14320for ac_func in strdup strndup strerror
14321do :
14322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14323ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14324if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14325 cat >>confdefs.h <<_ACEOF
14326#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14327_ACEOF
14328
14329fi
14330done
14331
14332for ac_func in finite isnand fp_class class fpclass
14333do :
14334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14335ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14336if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14337 cat >>confdefs.h <<_ACEOF
14338#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14339_ACEOF
14340
14341fi
14342done
14343
14344for ac_func in strftime localtime gettimeofday ftime
14345do :
14346 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14347ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14348if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14349 cat >>confdefs.h <<_ACEOF
14350#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14351_ACEOF
14352
14353fi
14354done
14355
14356for ac_func in stat _stat signal
14357do :
14358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14359ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14360if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14361 cat >>confdefs.h <<_ACEOF
14362#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14363_ACEOF
14364
14365fi
14366done
14367
14368for ac_func in rand rand_r srand time
14369do :
14370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14371ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14372if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14373 cat >>confdefs.h <<_ACEOF
14374#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14375_ACEOF
14376
14377fi
14378done
14379
14380for ac_func in isascii mmap munmap putenv
14381do :
14382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14384if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14385 cat >>confdefs.h <<_ACEOF
14386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14387_ACEOF
14388
14389fi
14390done
14391
14392
14393
14394
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
14396$as_echo_n "checking for va_copy... " >&6; }
14397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398/* end confdefs.h. */
14399#include <stdarg.h>
14400va_list ap1,ap2;
14401int
14402main ()
14403{
14404va_copy(ap1,ap2);
14405 ;
14406 return 0;
14407}
14408_ACEOF
14409if ac_fn_c_try_link "$LINENO"; then :
14410 have_va_copy=yes
14411else
14412 have_va_copy=no
14413fi
14414rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
14417$as_echo "$have_va_copy" >&6; }
14418if test x"$have_va_copy" = x"yes"; then
14419
14420$as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
14421
14422else
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
14424$as_echo_n "checking for __va_copy... " >&6; }
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426/* end confdefs.h. */
14427#include <stdarg.h>
14428 va_list ap1,ap2;
14429int
14430main ()
14431{
14432__va_copy(ap1,ap2);
14433 ;
14434 return 0;
14435}
14436_ACEOF
14437if ac_fn_c_try_link "$LINENO"; then :
14438 have___va_copy=yes
14439else
14440 have___va_copy=no
14441fi
14442rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
14445$as_echo "$have___va_copy" >&6; }
14446 if test x"$have___va_copy" = x"yes"; then
14447
14448$as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
14449
14450 fi
14451fi
14452
14453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array type" >&5
14454$as_echo_n "checking whether va_list is an array type... " >&6; }
14455cat > conftest.$ac_ext <<EOF
14456#line 14456 "configure"
14457#include "confdefs.h"
14458
14459#include <stdarg.h>
14460void a(va_list * ap) {}
14461int main(void) {
14462
14463va_list ap1, ap2; a(&ap1); ap2 = (va_list) ap1
14464; return 0; }
14465EOF
14466if { (eval echo configure:14466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14467 rm -rf conftest*
14468
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470$as_echo "no" >&6; }
14471else
14472 echo "configure: failed program was:" >&5
14473 cat conftest.$ac_ext >&5
14474 rm -rf conftest*
14475
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14477$as_echo "yes" >&6; }
14478
14479$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h
14480
14481fi
14482rm -f conftest*
14483
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
14485$as_echo_n "checking for library containing gethostent... " >&6; }
14486if ${ac_cv_search_gethostent+:} false; then :
14487 $as_echo_n "(cached) " >&6
14488else
14489 ac_func_search_save_LIBS=$LIBS
14490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14491/* end confdefs.h. */
14492
14493/* Override any GCC internal prototype to avoid an error.
14494 Use char because int might match the return type of a GCC
14495 builtin and then its argument prototype would still apply. */
14496#ifdef __cplusplus
14497extern "C"
14498#endif
14499char gethostent ();
14500int
14501main ()
14502{
14503return gethostent ();
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508for ac_lib in '' nsl; do
14509 if test -z "$ac_lib"; then
14510 ac_res="none required"
14511 else
14512 ac_res=-l$ac_lib
14513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14514 fi
14515 if ac_fn_c_try_link "$LINENO"; then :
14516 ac_cv_search_gethostent=$ac_res
14517fi
14518rm -f core conftest.err conftest.$ac_objext \
14519 conftest$ac_exeext
14520 if ${ac_cv_search_gethostent+:} false; then :
14521 break
14522fi
14523done
14524if ${ac_cv_search_gethostent+:} false; then :
14525
14526else
14527 ac_cv_search_gethostent=no
14528fi
14529rm conftest.$ac_ext
14530LIBS=$ac_func_search_save_LIBS
14531fi
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
14533$as_echo "$ac_cv_search_gethostent" >&6; }
14534ac_res=$ac_cv_search_gethostent
14535if test "$ac_res" != no; then :
14536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14537
14538fi
14539
14540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14541$as_echo_n "checking for library containing setsockopt... " >&6; }
14542if ${ac_cv_search_setsockopt+:} false; then :
14543 $as_echo_n "(cached) " >&6
14544else
14545 ac_func_search_save_LIBS=$LIBS
14546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547/* end confdefs.h. */
14548
14549/* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14552#ifdef __cplusplus
14553extern "C"
14554#endif
14555char setsockopt ();
14556int
14557main ()
14558{
14559return setsockopt ();
14560 ;
14561 return 0;
14562}
14563_ACEOF
14564for ac_lib in '' socket net network; do
14565 if test -z "$ac_lib"; then
14566 ac_res="none required"
14567 else
14568 ac_res=-l$ac_lib
14569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14570 fi
14571 if ac_fn_c_try_link "$LINENO"; then :
14572 ac_cv_search_setsockopt=$ac_res
14573fi
14574rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext
14576 if ${ac_cv_search_setsockopt+:} false; then :
14577 break
14578fi
14579done
14580if ${ac_cv_search_setsockopt+:} false; then :
14581
14582else
14583 ac_cv_search_setsockopt=no
14584fi
14585rm conftest.$ac_ext
14586LIBS=$ac_func_search_save_LIBS
14587fi
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14589$as_echo "$ac_cv_search_setsockopt" >&6; }
14590ac_res=$ac_cv_search_setsockopt
14591if test "$ac_res" != no; then :
14592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14593
14594fi
14595
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14597$as_echo_n "checking for library containing connect... " >&6; }
14598if ${ac_cv_search_connect+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600else
14601 ac_func_search_save_LIBS=$LIBS
14602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603/* end confdefs.h. */
14604
14605/* Override any GCC internal prototype to avoid an error.
14606 Use char because int might match the return type of a GCC
14607 builtin and then its argument prototype would still apply. */
14608#ifdef __cplusplus
14609extern "C"
14610#endif
14611char connect ();
14612int
14613main ()
14614{
14615return connect ();
14616 ;
14617 return 0;
14618}
14619_ACEOF
14620for ac_lib in '' inet; do
14621 if test -z "$ac_lib"; then
14622 ac_res="none required"
14623 else
14624 ac_res=-l$ac_lib
14625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14626 fi
14627 if ac_fn_c_try_link "$LINENO"; then :
14628 ac_cv_search_connect=$ac_res
14629fi
14630rm -f core conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext
14632 if ${ac_cv_search_connect+:} false; then :
14633 break
14634fi
14635done
14636if ${ac_cv_search_connect+:} false; then :
14637
14638else
14639 ac_cv_search_connect=no
14640fi
14641rm conftest.$ac_ext
14642LIBS=$ac_func_search_save_LIBS
14643fi
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14645$as_echo "$ac_cv_search_connect" >&6; }
14646ac_res=$ac_cv_search_connect
14647if test "$ac_res" != no; then :
14648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14649
14650fi
14651
14652
14653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
14654$as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
14655cat > conftest.$ac_ext <<EOF
14656#line 14656 "configure"
14657#include "confdefs.h"
14658
14659#include <stddef.h>
14660#include <sys/types.h>
14661#include <sys/socket.h>
14662int main(void) {
14663
14664(void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
14665; return 0; }
14666EOF
14667if { (eval echo configure:14667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14668 rm -rf conftest*
14669
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
14671$as_echo "socklen_t *" >&6; }
14672 XML_SOCKLEN_T=socklen_t
14673else
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 rm -rf conftest*
14677
14678 cat > conftest.$ac_ext <<EOF
14679#line 14679 "configure"
14680#include "confdefs.h"
14681
14682#include <stddef.h>
14683#include <sys/types.h>
14684#include <sys/socket.h>
14685int main(void) {
14686
14687(void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
14688; return 0; }
14689EOF
14690if { (eval echo configure:14690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14691 rm -rf conftest*
14692
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
14694$as_echo "size_t *" >&6; }
14695 XML_SOCKLEN_T=size_t
14696else
14697 echo "configure: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 rm -rf conftest*
14700
14701 cat > conftest.$ac_ext <<EOF
14702#line 14702 "configure"
14703#include "confdefs.h"
14704
14705#include <stddef.h>
14706#include <sys/types.h>
14707#include <sys/socket.h>
14708int main(void) {
14709
14710(void)getsockopt (1, 1, 1, NULL, (int *)NULL)
14711; return 0; }
14712EOF
14713if { (eval echo configure:14713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
14714 rm -rf conftest*
14715
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
14717$as_echo "int *" >&6; }
14718 XML_SOCKLEN_T=int
14719else
14720 echo "configure: failed program was:" >&5
14721 cat conftest.$ac_ext >&5
14722 rm -rf conftest*
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
14725$as_echo "$as_me: WARNING: could not determine" >&2;}
14726 XML_SOCKLEN_T="int"
14727fi
14728rm -f conftest*
14729fi
14730rm -f conftest*
14731fi
14732rm -f conftest*
14733
14734cat >>confdefs.h <<_ACEOF
14735#define XML_SOCKLEN_T $XML_SOCKLEN_T
14736_ACEOF
14737
14738
14739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const gethostbyname() argument" >&5
14740$as_echo_n "checking for const gethostbyname() argument... " >&6; }
14741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h. */
14743#include <netdb.h>
14744int
14745main ()
14746{
14747(void)gethostbyname((const char *)"");
14748 ;
14749 return 0;
14750}
14751_ACEOF
14752if ac_fn_c_try_link "$LINENO"; then :
14753 have_gethostbyname_const_arg=yes
14754else
14755 have_gethostbyname_const_arg=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext \
14758 conftest$ac_exeext conftest.$ac_ext
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gethostbyname_const_arg" >&5
14760$as_echo "$have_gethostbyname_const_arg" >&6; }
14761if test x"$have_gethostbyname_const_arg" = x"yes"; then
14762
14763$as_echo "#define GETHOSTBYNAME_ARG_CAST /**/" >>confdefs.h
14764
14765else
14766
14767$as_echo "#define GETHOSTBYNAME_ARG_CAST (char *)" >>confdefs.h
14768
14769fi
14770
14771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for const send() second argument" >&5
14772$as_echo_n "checking for const send() second argument... " >&6; }
14773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774/* end confdefs.h. */
14775#include <sys/types.h>
14776#include <sys/socket.h>
14777int
14778main ()
14779{
14780(void)send(1,(const char *)"",1,1);
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785if ac_fn_c_try_link "$LINENO"; then :
14786 have_send_const_arg2=yes
14787else
14788 have_send_const_arg2=no
14789fi
14790rm -f core conftest.err conftest.$ac_objext \
14791 conftest$ac_exeext conftest.$ac_ext
14792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_send_const_arg2" >&5
14793$as_echo "$have_send_const_arg2" >&6; }
14794if test x"$have_send_const_arg2" = x"yes"; then
14795
14796$as_echo "#define SEND_ARG2_CAST /**/" >>confdefs.h
14797
14798else
14799
14800$as_echo "#define SEND_ARG2_CAST (char *)" >>confdefs.h
14801
14802fi
14803
14804
14805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
14806$as_echo_n "checking whether to enable IPv6... " >&6; }
14807# Check whether --enable-ipv6 was given.
14808if test "${enable_ipv6+set}" = set; then :
14809 enableval=$enable_ipv6;
14810else
14811 enable_ipv6=yes
14812fi
14813
14814if test "$with_minimum" = "yes"
14815then
14816 enable_ipv6=no
14817fi
14818if test $enable_ipv6 = yes; then
14819 have_ipv6=no
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821/* end confdefs.h. */
14822
14823# include <sys/types.h>
14824# include <sys/socket.h>
14825
14826int
14827main ()
14828{
14829
14830 struct sockaddr_storage ss;
14831 socket(AF_INET6, SOCK_STREAM, 0)
14832
14833 ;
14834 return 0;
14835}
14836_ACEOF
14837if ac_fn_c_try_compile "$LINENO"; then :
14838 have_ipv6=yes
14839else
14840 have_ipv6=no
14841
14842fi
14843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
14845$as_echo "$have_ipv6" >&6; }
14846
14847 if test $have_ipv6 = yes; then
14848
14849$as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
14850
14851 have_broken_ss_family=no
14852
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
14854$as_echo_n "checking struct sockaddr::ss_family... " >&6; }
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856/* end confdefs.h. */
14857
14858# include <sys/types.h>
14859# include <sys/socket.h>
14860
14861int
14862main ()
14863{
14864
14865 struct sockaddr_storage ss ;
14866 ss.ss_family = 0 ;
14867
14868 ;
14869 return 0;
14870}
14871_ACEOF
14872if ac_fn_c_try_compile "$LINENO"; then :
14873 have_ss_family=yes
14874else
14875 have_ss_family=no
14876
14877fi
14878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
14880$as_echo "$have_ss_family" >&6; }
14881 if test x$have_ss_family = xno ; then
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
14883$as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h. */
14886
14887# include <sys/types.h>
14888# include <sys/socket.h>
14889
14890int
14891main ()
14892{
14893
14894 struct sockaddr_storage ss ;
14895 ss.__ss_family = 0 ;
14896
14897 ;
14898 return 0;
14899}
14900_ACEOF
14901if ac_fn_c_try_compile "$LINENO"; then :
14902 have_broken_ss_family=yes
14903else
14904 have_broken_ss_family=no
14905
14906fi
14907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
14909$as_echo "$have_broken_ss_family" >&6; }
14910 if test x$have_broken_ss_family = xyes ; then
14911
14912$as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
14913
14914
14915$as_echo "#define ss_family __ss_family" >>confdefs.h
14916
14917 else
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
14919$as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
14920 fi
14921 fi
14922
14923 have_getaddrinfo=no
14924 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14925if test "x$ac_cv_func_getaddrinfo" = xyes; then :
14926 have_getaddrinfo=yes
14927fi
14928
14929 if test $have_getaddrinfo != yes; then
14930 for lib in bsd socket inet; do
14931 as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
14933$as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
14934if eval \${$as_ac_Lib+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936else
14937 ac_check_lib_save_LIBS=$LIBS
14938LIBS="-l$lib $LIBS"
14939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940/* end confdefs.h. */
14941
14942/* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14945#ifdef __cplusplus
14946extern "C"
14947#endif
14948char getaddrinfo ();
14949int
14950main ()
14951{
14952return getaddrinfo ();
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957if ac_fn_c_try_link "$LINENO"; then :
14958 eval "$as_ac_Lib=yes"
14959else
14960 eval "$as_ac_Lib=no"
14961fi
14962rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
14964LIBS=$ac_check_lib_save_LIBS
14965fi
14966eval ac_res=\$$as_ac_Lib
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14968$as_echo "$ac_res" >&6; }
14969if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14970 LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
14971fi
14972
14973 done
14974 fi
14975
14976 if test $have_getaddrinfo = yes; then
14977
14978$as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
14979
14980 fi
14981 fi
14982fi
14983
14984
14985ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
14986if test "x$ac_cv_func_isnan" = xyes; then :
14987
14988$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
14989
14990else
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
14992$as_echo_n "checking for isnan in -lm... " >&6; }
14993if ${ac_cv_lib_m_isnan+:} false; then :
14994 $as_echo_n "(cached) " >&6
14995else
14996 ac_check_lib_save_LIBS=$LIBS
14997LIBS="-lm $LIBS"
14998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999/* end confdefs.h. */
15000
15001/* Override any GCC internal prototype to avoid an error.
15002 Use char because int might match the return type of a GCC
15003 builtin and then its argument prototype would still apply. */
15004#ifdef __cplusplus
15005extern "C"
15006#endif
15007char isnan ();
15008int
15009main ()
15010{
15011return isnan ();
15012 ;
15013 return 0;
15014}
15015_ACEOF
15016if ac_fn_c_try_link "$LINENO"; then :
15017 ac_cv_lib_m_isnan=yes
15018else
15019 ac_cv_lib_m_isnan=no
15020fi
15021rm -f core conftest.err conftest.$ac_objext \
15022 conftest$ac_exeext conftest.$ac_ext
15023LIBS=$ac_check_lib_save_LIBS
15024fi
15025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
15026$as_echo "$ac_cv_lib_m_isnan" >&6; }
15027if test "x$ac_cv_lib_m_isnan" = xyes; then :
15028
15029$as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
15030
15031fi
15032
15033fi
15034
15035
15036ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
15037if test "x$ac_cv_func_isinf" = xyes; then :
15038
15039$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
15040
15041else
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
15043$as_echo_n "checking for isinf in -lm... " >&6; }
15044if ${ac_cv_lib_m_isinf+:} false; then :
15045 $as_echo_n "(cached) " >&6
15046else
15047 ac_check_lib_save_LIBS=$LIBS
15048LIBS="-lm $LIBS"
15049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050/* end confdefs.h. */
15051
15052/* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15055#ifdef __cplusplus
15056extern "C"
15057#endif
15058char isinf ();
15059int
15060main ()
15061{
15062return isinf ();
15063 ;
15064 return 0;
15065}
15066_ACEOF
15067if ac_fn_c_try_link "$LINENO"; then :
15068 ac_cv_lib_m_isinf=yes
15069else
15070 ac_cv_lib_m_isinf=no
15071fi
15072rm -f core conftest.err conftest.$ac_objext \
15073 conftest$ac_exeext conftest.$ac_ext
15074LIBS=$ac_check_lib_save_LIBS
15075fi
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
15077$as_echo "$ac_cv_lib_m_isinf" >&6; }
15078if test "x$ac_cv_lib_m_isinf" = xyes; then :
15079
15080$as_echo "#define HAVE_ISINF /**/" >>confdefs.h
15081
15082fi
15083
15084fi
15085
15086
15087XML_LIBDIR='-L${libdir}'
15088XML_INCLUDEDIR='-I${includedir}/libxml2'
15089
15090XML_CFLAGS=""
15091RDL_LIBS=""
15092
15093if test "${GCC}" != "yes" ; then
15094 case "${host}" in
15095 hppa*-*-hpux* )
15096 CFLAGS="${CFLAGS} -Wp,-H30000"
15097 ;;
15098 *-dec-osf* )
15099 CFLAGS="${CFLAGS} -ieee"
15100 ;;
15101 alpha*-*-linux* )
15102 CFLAGS="${CFLAGS} -ieee"
15103 ;;
15104 esac
15105else
15106 if test "$with_fexceptions" = "yes"
15107 then
15108 #
15109 # Not activated by default because this inflates the code size
15110 # Used to allow propagation of C++ exceptions through the library
15111 #
15112 CFLAGS="${CFLAGS} -fexceptions"
15113 fi
15114
15115 # warnings we'd like to see
15116 CFLAGS="${CFLAGS} -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"
15117 # warnings we'd like to supress
15118 CFLAGS="${CFLAGS} -Wno-long-long"
15119 case "${host}" in
15120 alpha*-*-linux* )
15121 CFLAGS="${CFLAGS} -mieee"
15122 ;;
15123 alpha*-*-osf* )
15124 CFLAGS="${CFLAGS} -mieee"
15125 ;;
15126 esac
15127fi
15128case ${host} in
15129 *-*-solaris*)
15130 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
15131 ;;
15132 hppa*-hp-mpeix)
15133 NEED_TRIO=1
15134 ;;
15135 *-*-mingw* | *-*-cygwin* | *-*-msvc* )
15136 # If the host is Windows, and shared libraries are disabled, we
15137 # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
15138 # work properly (without it, xmlexports.h would force the use of
15139 # DLL imports, which obviously aren't present in a static
15140 # library).
15141 if test "x$enable_shared" = "xno"; then
15142 XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
15143 CFLAGS="$CFLAGS -DLIBXML_STATIC"
15144 fi
15145 ;;
15146esac
15147
15148
15149
15150PYTHON_VERSION=
15151PYTHON_INCLUDES=
15152PYTHON_SITE_PACKAGES=
15153PYTHON_TESTS=
15154pythondir=
15155if test "$with_python" != "no" ; then
15156 if test -x "$with_python/bin/python"
15157 then
15158 echo Found python in $with_python/bin/python
15159 PYTHON="$with_python/bin/python"
15160 else
15161 if test -x "$with_python/python.exe"
15162 then
15163 echo Found python in $with_python/python.exe
15164 PYTHON="$with_python/python.exe"
15165 else
15166 if test -x "$with_python"
15167 then
15168 echo Found python in $with_python
15169 PYTHON="$with_python"
15170 else
15171 if test -x "$PYTHON"
15172 then
15173 echo Found python in environment PYTHON=$PYTHON
15174 with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
15175 else
15176 # 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.
15177set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15179$as_echo_n "checking for $ac_word... " >&6; }
15180if ${ac_cv_path_PYTHON+:} false; then :
15181 $as_echo_n "(cached) " >&6
15182else
15183 case $PYTHON in
15184 [\\/]* | ?:[\\/]*)
15185 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15186 ;;
15187 *)
15188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189for as_dir in $PATH
15190do
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15198 fi
15199done
15200 done
15201IFS=$as_save_IFS
15202
15203 ;;
15204esac
15205fi
15206PYTHON=$ac_cv_path_PYTHON
15207if test -n "$PYTHON"; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15209$as_echo "$PYTHON" >&6; }
15210else
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15212$as_echo "no" >&6; }
15213fi
15214
15215
15216 fi
15217 fi
15218 fi
15219 fi
15220 if test "$PYTHON" != ""
15221 then
15222 PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
15223 PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`
15224# does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
15225#
15226# PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
15227 echo Found Python version $PYTHON_VERSION
15228 fi
15229 if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
15230 then
15231 if test -r $with_python/include/python$PYTHON_VERSION/Python.h
15232 then
15233 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
15234 else
15235 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
15236 then
15237 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
15238 else
15239 if test -r /usr/include/python$PYTHON_VERSION/Python.h
15240 then
15241 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
15242 else
15243 if test -r $with_python/include/Python.h
15244 then
15245 PYTHON_INCLUDES=$with_python/include
15246 else
15247 echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
15248 fi
15249 fi
15250 fi
15251 fi
15252 fi
15253 if test "$with_python_install_dir" != ""
15254 then
15255 PYTHON_SITE_PACKAGES="$with_python_install_dir"
15256 fi
15257 if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
15258 then
15259 if test -d $libdir/python$PYTHON_VERSION/site-packages
15260 then
15261 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
15262 else
15263 if test -d $with_python/lib/site-packages
15264 then
15265 PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
15266 else
15267 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
15268 fi
15269 fi
15270 fi
15271 pythondir='$(PYTHON_SITE_PACKAGES)'
15272 PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
15273else
15274 PYTHON=
15275fi
15276 if test "$PYTHON_INCLUDES" != ""; then
15277 WITH_PYTHON_TRUE=
15278 WITH_PYTHON_FALSE='#'
15279else
15280 WITH_PYTHON_TRUE='#'
15281 WITH_PYTHON_FALSE=
15282fi
15283
15284if test "$PYTHON_INCLUDES" != ""
15285then
15286 PYTHON_SUBDIR=python
15287else
15288 PYTHON_SUBDIR=
15289fi
15290
15291
15292
15293
15294WITH_MODULES=0
15295TEST_MODULES=
15296
15297if test "$with_modules" != "no" ; then
15298 case "$host" in
15299 *-*-cygwin*)
15300 MODULE_EXTENSION=".dll"
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
15302$as_echo_n "checking for dlopen in -lcygwin... " >&6; }
15303if ${ac_cv_lib_cygwin_dlopen+:} false; then :
15304 $as_echo_n "(cached) " >&6
15305else
15306 ac_check_lib_save_LIBS=$LIBS
15307LIBS="-lcygwin $LIBS"
15308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309/* end confdefs.h. */
15310
15311/* Override any GCC internal prototype to avoid an error.
15312 Use char because int might match the return type of a GCC
15313 builtin and then its argument prototype would still apply. */
15314#ifdef __cplusplus
15315extern "C"
15316#endif
15317char dlopen ();
15318int
15319main ()
15320{
15321return dlopen ();
15322 ;
15323 return 0;
15324}
15325_ACEOF
15326if ac_fn_c_try_link "$LINENO"; then :
15327 ac_cv_lib_cygwin_dlopen=yes
15328else
15329 ac_cv_lib_cygwin_dlopen=no
15330fi
15331rm -f core conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333LIBS=$ac_check_lib_save_LIBS
15334fi
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
15336$as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
15337if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
15338
15339 WITH_MODULES=1
15340 MODULE_PLATFORM_LIBS=
15341
15342$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
15343
15344
15345fi
15346
15347 ;;
15348 *-*-mingw*)
15349 MODULE_EXTENSION=".dll"
15350 WITH_MODULES=1
15351 ;;
15352 *)
15353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15354if test "x$ac_cv_func_shl_load" = xyes; then :
15355 libxml_have_shl_load=yes
15356else
15357
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15359$as_echo_n "checking for shl_load in -ldld... " >&6; }
15360if ${ac_cv_lib_dld_shl_load+:} false; then :
15361 $as_echo_n "(cached) " >&6
15362else
15363 ac_check_lib_save_LIBS=$LIBS
15364LIBS="-ldld $LIBS"
15365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15366/* end confdefs.h. */
15367
15368/* Override any GCC internal prototype to avoid an error.
15369 Use char because int might match the return type of a GCC
15370 builtin and then its argument prototype would still apply. */
15371#ifdef __cplusplus
15372extern "C"
15373#endif
15374char shl_load ();
15375int
15376main ()
15377{
15378return shl_load ();
15379 ;
15380 return 0;
15381}
15382_ACEOF
15383if ac_fn_c_try_link "$LINENO"; then :
15384 ac_cv_lib_dld_shl_load=yes
15385else
15386 ac_cv_lib_dld_shl_load=no
15387fi
15388rm -f core conftest.err conftest.$ac_objext \
15389 conftest$ac_exeext conftest.$ac_ext
15390LIBS=$ac_check_lib_save_LIBS
15391fi
15392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15393$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15394if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15395
15396 MODULE_PLATFORM_LIBS="-ldld"
15397 libxml_have_shl_load=yes
15398else
15399
15400 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15401if test "x$ac_cv_func_dlopen" = xyes; then :
15402 libxml_have_dlopen=yes
15403else
15404
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15406$as_echo_n "checking for dlopen in -ldl... " >&6; }
15407if ${ac_cv_lib_dl_dlopen+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409else
15410 ac_check_lib_save_LIBS=$LIBS
15411LIBS="-ldl $LIBS"
15412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413/* end confdefs.h. */
15414
15415/* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15418#ifdef __cplusplus
15419extern "C"
15420#endif
15421char dlopen ();
15422int
15423main ()
15424{
15425return dlopen ();
15426 ;
15427 return 0;
15428}
15429_ACEOF
15430if ac_fn_c_try_link "$LINENO"; then :
15431 ac_cv_lib_dl_dlopen=yes
15432else
15433 ac_cv_lib_dl_dlopen=no
15434fi
15435rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437LIBS=$ac_check_lib_save_LIBS
15438fi
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15440$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15441if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15442
15443 MODULE_PLATFORM_LIBS="-ldl"
15444 libxml_have_dlopen=yes
15445fi
15446
15447fi
15448
15449fi
15450
15451fi
15452
15453
15454 if test "${libxml_have_shl_load}" = "yes"; then
15455 MODULE_EXTENSION=".sl"
15456 WITH_MODULES=1
15457
15458$as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
15459
15460 fi
15461
15462 if test "${libxml_have_dlopen}" = "yes"; then
15463 case "${host}" in
15464 *-*-hpux* )
15465 MODULE_EXTENSION=".sl"
15466 ;;
15467 * )
15468 MODULE_EXTENSION=".so"
15469 ;;
15470 esac
15471
15472 WITH_MODULES=1
15473
15474$as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
15475
15476 fi
15477 ;;
15478 esac
15479fi
15480
15481if test "${WITH_MODULES}" = "1"; then
15482 TEST_MODULES="ModuleTests"
15483fi
15484
15485
15486
15487
15488
15489
15490
15491if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
15492 [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
15493 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
15494 then
15495 if test "$with_minimum" != "yes"
15496 then
15497 if test "${with_mem_debug}" = "" ; then
15498 echo Activating memory debugging
15499 with_mem_debug="yes"
15500 with_run_debug="yes"
15501 fi
15502 if test "${with_docbook}" = "" ; then
15503 with_docbook="yes"
15504 fi
15505 fi
15506 if test "${GCC}" = "yes" ; then
15507 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"
15508 fi
15509 STATIC_BINARIES="-static"
15510else
15511 STATIC_BINARIES=
15512fi
15513
15514
15515
15516if test "${NEED_TRIO}" = "1" ; then
15517 echo Adding trio library for string functions
15518 WITH_TRIO=1
15519else
15520 WITH_TRIO=0
15521fi
15522 if test "${NEED_TRIO}" = "1"; then
15523 WITH_TRIO_SOURCES_TRUE=
15524 WITH_TRIO_SOURCES_FALSE='#'
15525else
15526 WITH_TRIO_SOURCES_TRUE='#'
15527 WITH_TRIO_SOURCES_FALSE=
15528fi
15529
15530
15531
15532echo Checking configuration requirements
15533
15534THREAD_LIBS=""
15535BASE_THREAD_LIBS=""
15536WITH_THREADS=0
15537THREAD_CFLAGS=""
15538TEST_THREADS=""
15539THREADS_W32=""
15540WITH_THREAD_ALLOC=0
15541
15542if test "$with_threads" = "no" ; then
15543 echo Disabling multithreaded support
15544else
15545 echo Enabling multithreaded support
15546
15547 case $host_os in
15548 *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" != "no"; then
15549 WITH_THREADS="1"
15550 THREADS_W32="1"
15551 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
15552 fi
15553 ;;
15554 esac
15555
15556 if test -z "$THREADS_W32"; then
15557 if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
15558 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15559if test "x$ac_cv_header_pthread_h" = xyes; then :
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
15561$as_echo_n "checking for pthread_join in -lpthread... " >&6; }
15562if ${ac_cv_lib_pthread_pthread_join+:} false; then :
15563 $as_echo_n "(cached) " >&6
15564else
15565 ac_check_lib_save_LIBS=$LIBS
15566LIBS="-lpthread $LIBS"
15567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568/* end confdefs.h. */
15569
15570/* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15573#ifdef __cplusplus
15574extern "C"
15575#endif
15576char pthread_join ();
15577int
15578main ()
15579{
15580return pthread_join ();
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585if ac_fn_c_try_link "$LINENO"; then :
15586 ac_cv_lib_pthread_pthread_join=yes
15587else
15588 ac_cv_lib_pthread_pthread_join=no
15589fi
15590rm -f core conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592LIBS=$ac_check_lib_save_LIBS
15593fi
15594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
15595$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
15596if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
15597
15598 THREAD_LIBS="-lpthread"
15599
15600$as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
15601
15602
15603$as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
15604
15605 WITH_THREADS="1"
15606fi
15607
15608fi
15609
15610
15611 fi
15612 fi
15613
15614 case $host_os in
15615 *cygwin*) THREAD_LIBS=""
15616 ;;
15617 *beos*) WITH_THREADS="1"
15618 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
15619 ;;
15620 *linux*)
15621 if test "${GCC}" = "yes" ; then
15622 GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
15623 GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
15624 GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
15625 if test "${THREAD_LIBS}" = "-lpthread" ; then
15626 if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
15627 then
15628 THREAD_LIBS=""
15629 BASE_THREAD_LIBS="-lpthread"
15630 else
15631 if expr ${GCC_MAJOR} \> 3 > /dev/null
15632 then
15633 THREAD_LIBS=""
15634 BASE_THREAD_LIBS="-lpthread"
15635 else
15636 echo old GCC disabling weak symbols for pthread
15637 fi
15638 fi
15639 fi
15640 fi
15641 ;;
15642 esac
15643 if test "$WITH_THREADS" = "1" ; then
15644 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
15645 TEST_THREADS="Threadtests"
15646 fi
15647fi
15648if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
15649 WITH_THREAD_ALLOC=1
15650fi
15651
15652
15653
15654
15655
15656
15657
15658 if test -n "$THREADS_W32"; then
15659 THREADS_W32_TRUE=
15660 THREADS_W32_FALSE='#'
15661else
15662 THREADS_W32_TRUE='#'
15663 THREADS_W32_FALSE=
15664fi
15665
15666
15667if test "$with_history" = "yes" ; then
15668 echo Enabling xmllint shell history
15669 unset tcap
15670 for termlib in ncurses curses termcap terminfo termlib; do
15671 as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
15673$as_echo_n "checking for tputs in -l${termlib}... " >&6; }
15674if eval \${$as_ac_Lib+:} false; then :
15675 $as_echo_n "(cached) " >&6
15676else
15677 ac_check_lib_save_LIBS=$LIBS
15678LIBS="-l${termlib} $LIBS"
15679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680/* end confdefs.h. */
15681
15682/* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
15685#ifdef __cplusplus
15686extern "C"
15687#endif
15688char tputs ();
15689int
15690main ()
15691{
15692return tputs ();
15693 ;
15694 return 0;
15695}
15696_ACEOF
15697if ac_fn_c_try_link "$LINENO"; then :
15698 eval "$as_ac_Lib=yes"
15699else
15700 eval "$as_ac_Lib=no"
15701fi
15702rm -f core conftest.err conftest.$ac_objext \
15703 conftest$ac_exeext conftest.$ac_ext
15704LIBS=$ac_check_lib_save_LIBS
15705fi
15706eval ac_res=\$$as_ac_Lib
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15708$as_echo "$ac_res" >&6; }
15709if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
15710 tcap="-l$termlib"
15711fi
15712
15713 test -n "$tcap" && break
15714 done
15715
15716 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
15717if test "x$ac_cv_header_readline_history_h" = xyes; then :
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
15719$as_echo_n "checking for append_history in -lhistory... " >&6; }
15720if ${ac_cv_lib_history_append_history+:} false; then :
15721 $as_echo_n "(cached) " >&6
15722else
15723 ac_check_lib_save_LIBS=$LIBS
15724LIBS="-lhistory $LIBS"
15725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726/* end confdefs.h. */
15727
15728/* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15731#ifdef __cplusplus
15732extern "C"
15733#endif
15734char append_history ();
15735int
15736main ()
15737{
15738return append_history ();
15739 ;
15740 return 0;
15741}
15742_ACEOF
15743if ac_fn_c_try_link "$LINENO"; then :
15744 ac_cv_lib_history_append_history=yes
15745else
15746 ac_cv_lib_history_append_history=no
15747fi
15748rm -f core conftest.err conftest.$ac_objext \
15749 conftest$ac_exeext conftest.$ac_ext
15750LIBS=$ac_check_lib_save_LIBS
15751fi
15752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
15753$as_echo "$ac_cv_lib_history_append_history" >&6; }
15754if test "x$ac_cv_lib_history_append_history" = xyes; then :
15755
15756 RDL_LIBS="-lhistory"
15757
15758$as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
15759
15760fi
15761
15762fi
15763
15764
15765 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
15766if test "x$ac_cv_header_readline_readline_h" = xyes; then :
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15768$as_echo_n "checking for readline in -lreadline... " >&6; }
15769if ${ac_cv_lib_readline_readline+:} false; then :
15770 $as_echo_n "(cached) " >&6
15771else
15772 ac_check_lib_save_LIBS=$LIBS
15773LIBS="-lreadline $tcap $LIBS"
15774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h. */
15776
15777/* Override any GCC internal prototype to avoid an error.
15778 Use char because int might match the return type of a GCC
15779 builtin and then its argument prototype would still apply. */
15780#ifdef __cplusplus
15781extern "C"
15782#endif
15783char readline ();
15784int
15785main ()
15786{
15787return readline ();
15788 ;
15789 return 0;
15790}
15791_ACEOF
15792if ac_fn_c_try_link "$LINENO"; then :
15793 ac_cv_lib_readline_readline=yes
15794else
15795 ac_cv_lib_readline_readline=no
15796fi
15797rm -f core conftest.err conftest.$ac_objext \
15798 conftest$ac_exeext conftest.$ac_ext
15799LIBS=$ac_check_lib_save_LIBS
15800fi
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15802$as_echo "$ac_cv_lib_readline_readline" >&6; }
15803if test "x$ac_cv_lib_readline_readline" = xyes; then :
15804
15805 RDL_LIBS="-lreadline $RDL_LIBS $tcap"
15806
15807$as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
15808
15809fi
15810
15811fi
15812
15813
15814 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
15815 CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
15816 RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
15817 fi
15818fi
15819
15820if test "$with_tree" = "no" ; then
15821 echo Disabling DOM like tree manipulation APIs
15822 WITH_TREE=0
15823else
15824 WITH_TREE=1
15825fi
15826
15827
15828if test "$with_ftp" = "no" ; then
15829 echo Disabling FTP support
15830 WITH_FTP=0
15831 FTP_OBJ=
15832else
15833 WITH_FTP=1
15834 FTP_OBJ=nanoftp.o
15835fi
15836
15837
15838
15839if test "$with_http" = "no" ; then
15840 echo Disabling HTTP support
15841 WITH_HTTP=0
15842 HTTP_OBJ=
15843else
15844 WITH_HTTP=1
15845 HTTP_OBJ=nanohttp.o
15846fi
15847
15848
15849
15850if test "$with_legacy" = "no" ; then
15851 echo Disabling deprecated APIs
15852 WITH_LEGACY=0
15853else
15854 WITH_LEGACY=1
15855fi
15856
15857
15858if test "$with_reader" = "no" ; then
15859 echo Disabling the xmlReader parsing interface
15860 WITH_READER=0
15861 READER_TEST=
15862else
15863 WITH_READER=1
15864 READER_TEST=Readertests
15865 if test "$with_push" = "no" ; then
15866 echo xmlReader requires Push interface - enabling it
15867 with_push=yes
15868 fi
15869fi
15870
15871
15872
15873if test "$with_writer" = "no" ; then
15874 echo Disabling the xmlWriter saving interface
15875 WITH_WRITER=0
15876# WRITER_TEST=
15877else
15878 WITH_WRITER=1
15879# WRITER_TEST=Writertests
15880 if test "$with_push" = "no" ; then
15881 echo xmlWriter requires Push interface - enabling it
15882 with_push=yes
15883 fi
15884 if test "$with_output" = "no" ; then
15885 echo xmlWriter requires Output interface - enabling it
15886 with_output=yes
15887 fi
15888fi
15889
15890#AC_SUBST(WRITER_TEST)
15891
15892if test "$with_pattern" = "no" ; then
15893 echo Disabling the xmlPattern parsing interface
15894 WITH_PATTERN=0
15895 TEST_PATTERN=
15896else
15897 WITH_PATTERN=1
15898 TEST_PATTERN=Patterntests
15899fi
15900
15901
15902
15903if test "$with_sax1" = "no" ; then
15904 echo Disabling the older SAX1 interface
15905 WITH_SAX1=0
15906 TEST_SAX=
15907else
15908 WITH_SAX1=1
15909 TEST_SAX=SAXtests
15910fi
15911
15912 if test "${WITH_TRIO}" = "1"; then
15913 WITH_SAX1_SOURCES_TRUE=
15914 WITH_SAX1_SOURCES_FALSE='#'
15915else
15916 WITH_SAX1_SOURCES_TRUE='#'
15917 WITH_SAX1_SOURCES_FALSE=
15918fi
15919
15920
15921
15922if test "$with_push" = "no" ; then
15923 echo Disabling the PUSH parser interfaces
15924 WITH_PUSH=0
15925 TEST_PUSH=
15926else
15927 WITH_PUSH=1
15928 TEST_PUSH="XMLPushtests"
15929fi
15930
15931
15932
15933if test "$with_html" = "no" ; then
15934 echo Disabling HTML support
15935 WITH_HTML=0
15936 HTML_OBJ=
15937 TEST_HTML=
15938else
15939 WITH_HTML=1
15940 HTML_OBJ="HTMLparser.o HTMLtree.o"
15941 TEST_HTML=HTMLtests
15942 if test "$with_push" != "no" ; then
15943 TEST_PHTML=HTMLPushtests
15944 else
15945 TEST_PHTML=
15946 fi
15947fi
15948
15949
15950
15951
15952
15953if test "$with_valid" = "no" ; then
15954 echo Disabling DTD validation support
15955 WITH_VALID=0
15956 TEST_VALID=
15957 TEST_VTIME=
15958else
15959 WITH_VALID=1
15960 TEST_VALID=Validtests
15961 TEST_VTIME=VTimingtests
15962fi
15963
15964
15965
15966
15967if test "$with_catalog" = "no" ; then
15968 echo Disabling Catalog support
15969 WITH_CATALOG=0
15970 CATALOG_OBJ=
15971 TEST_CATALOG=
15972else
15973 WITH_CATALOG=1
15974 CATALOG_OBJ="catalog.o"
15975 TEST_CATALOG=Catatests
15976fi
15977
15978
15979
15980
15981if test "$with_docbook" = "no" ; then
15982 echo Disabling Docbook support
15983 WITH_DOCB=0
15984 DOCB_OBJ=
15985else
15986 WITH_DOCB=1
15987 DOCB_OBJ="DOCBparser.o"
15988fi
15989
15990
15991
15992
15993if test "$with_xptr" = "no" ; then
15994 echo Disabling XPointer support
15995 WITH_XPTR=0
15996 XPTR_OBJ=
15997 TEST_XPTR=
15998else
15999 WITH_XPTR=1
16000 XPTR_OBJ=xpointer.o
16001 TEST_XPTR=XPtrtests
16002 if test "$with_xpath" = "no" ; then
16003 echo XPointer requires XPath support - enabling it
16004 with_xpath=yes
16005 fi
16006fi
16007
16008
16009
16010
16011if test "$with_c14n" = "no" ; then
16012 echo Disabling C14N support
16013 WITH_C14N=0
16014 C14N_OBJ=
16015 TEST_C14N=
16016else
16017 WITH_C14N=1
16018 C14N_OBJ="c14n.c"
16019 TEST_C14N=C14Ntests
16020 if test "$with_xpath" = "no" ; then
16021 echo C14N requires XPath support - enabling it
16022 with_xpath=yes
16023 fi
16024fi
16025
16026
16027
16028
16029if test "$with_xinclude" = "no" ; then
16030 echo Disabling XInclude support
16031 WITH_XINCLUDE=0
16032 XINCLUDE_OBJ=
16033 with_xinclude="no"
16034 TEST_XINCLUDE=
16035else
16036 WITH_XINCLUDE=1
16037 XINCLUDE_OBJ=xinclude.o
16038 TEST_XINCLUDE=XIncludetests
16039 if test "$with_xpath" = "no" ; then
16040 echo XInclude requires XPath support - enabling it
16041 with_xpath=yes
16042 fi
16043fi
16044
16045
16046
16047
16048if test "$with_xptr" = "" -a "$with_xpath" = "no" ; then
16049 with_xptr=no
16050fi
16051
16052if test "$with_schematron" = "" -a "$with_xpath" = "no" ; then
16053 with_schematron=no
16054fi
16055
16056if test "$with_schematron" = "no" ; then
16057 echo "Disabling Schematron support"
16058 WITH_SCHEMATRON=0
16059 TEST_SCHEMATRON=
16060else
16061 echo "Enabled Schematron support"
16062 WITH_SCHEMATRON=1
16063 TEST_SCHEMATRON="Schematrontests"
16064 with_xpath=yes
16065 with_pattern=yes
16066 with_schematron=yes
16067fi
16068
16069
16070
16071if test "$with_xpath" = "no" ; then
16072 echo Disabling XPATH support
16073 WITH_XPATH=0
16074 XPATH_OBJ=
16075 TEST_XPATH=
16076else
16077 WITH_XPATH=1
16078 XPATH_OBJ=xpath.o
16079 TEST_XPATH=XPathtests
16080fi
16081
16082
16083
16084
16085if test "$with_output" = "no" ; then
16086 echo Disabling serialization/saving support
16087 WITH_OUTPUT=0
16088else
16089 WITH_OUTPUT=1
16090fi
16091
16092
16093WITH_ICONV=0
16094if test "$with_iconv" = "no" ; then
16095 echo Disabling ICONV support
16096else
16097 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
16098 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
16099 # Export this since our headers include iconv.h
16100 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
16101 ICONV_LIBS="-L$with_iconv/lib"
16102 fi
16103
16104 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
16105if test "x$ac_cv_header_iconv_h" = xyes; then :
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16107$as_echo_n "checking for iconv... " >&6; }
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109/* end confdefs.h. */
16110#include <stdlib.h>
16111#include <iconv.h>
16112int
16113main ()
16114{
16115
16116iconv_t cd = iconv_open ("","");
16117iconv (cd, NULL, NULL, NULL, NULL);
16118 ;
16119 return 0;
16120}
16121_ACEOF
16122if ac_fn_c_try_link "$LINENO"; then :
16123
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125$as_echo "yes" >&6; }
16126 WITH_ICONV=1
16127else
16128
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16130$as_echo "no" >&6; }
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
16132$as_echo_n "checking for iconv in -liconv... " >&6; }
16133
16134 _ldflags="${LDFLAGS}"
16135 _libs="${LIBS}"
16136 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
16137 LIBS="${LIBS} -liconv"
16138
16139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16140/* end confdefs.h. */
16141#include <stdlib.h>
16142#include <iconv.h>
16143int
16144main ()
16145{
16146
16147iconv_t cd = iconv_open ("","");
16148iconv (cd, NULL, NULL, NULL, NULL);
16149 ;
16150 return 0;
16151}
16152_ACEOF
16153if ac_fn_c_try_link "$LINENO"; then :
16154
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16156$as_echo "yes" >&6; }
16157 WITH_ICONV=1
16158 ICONV_LIBS="${ICONV_LIBS} -liconv"
16159 LIBS="${_libs}"
16160 LDFLAGS="${_ldflags}"
16161else
16162
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164$as_echo "no" >&6; }
16165 LIBS="${_libs}"
16166 LDFLAGS="${_ldflags}"
16167fi
16168rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16170fi
16171rm -f core conftest.err conftest.$ac_objext \
16172 conftest$ac_exeext conftest.$ac_ext
16173fi
16174
16175
16176
16177 if test "$WITH_ICONV" = "1" ; then
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16179$as_echo_n "checking for iconv declaration... " >&6; }
16180 if ${xml_cv_iconv_arg2+:} false; then :
16181 $as_echo_n "(cached) " >&6
16182else
16183
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185/* end confdefs.h. */
16186#include <stdlib.h>
16187#include <iconv.h>
16188extern
16189#ifdef __cplusplus
16190"C"
16191#endif
16192#if defined(__STDC__) || defined(__cplusplus)
16193size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16194#else
16195size_t iconv();
16196#endif
16197
16198int
16199main ()
16200{
16201
16202 ;
16203 return 0;
16204}
16205_ACEOF
16206if ac_fn_c_try_compile "$LINENO"; then :
16207 xml_cv_iconv_arg2=""
16208else
16209 xml_cv_iconv_arg2="const"
16210fi
16211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212fi
16213
16214
16215 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);"
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
16217 }$xml_cv_iconv_decl" >&5
16218$as_echo "${xml_xxx:-
16219 }$xml_cv_iconv_decl" >&6; }
16220
16221cat >>confdefs.h <<_ACEOF
16222#define ICONV_CONST $xml_cv_iconv_arg2
16223_ACEOF
16224
16225 fi
16226fi
16227case "$host" in
16228 *mingw*) M_LIBS=""
16229 ;;
16230 *beos*) M_LIBS=""
16231 ;;
16232 *haiku*) M_LIBS=""
16233 ;;
16234 *) M_LIBS="-lm"
16235 ;;
16236esac
16237
16238
16239WITH_ICU=0
16240ICU_LIBS=""
16241if test "$with_icu" != "yes" ; then
16242 echo Disabling ICU support
16243else
16244 # Try pkg-config first so that static linking works.
16245 # If this succeeeds, we ignore the WITH_ICU directory.
16246
16247pkg_failed=no
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
16249$as_echo_n "checking for ICU... " >&6; }
16250
16251if test -n "$ICU_CFLAGS"; then
16252 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
16253 elif test -n "$PKG_CONFIG"; then
16254 if test -n "$PKG_CONFIG" && \
16255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
16256 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
16257 ac_status=$?
16258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259 test $ac_status = 0; }; then
16260 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-i18n" 2>/dev/null`
16261 test "x$?" != "x0" && pkg_failed=yes
16262else
16263 pkg_failed=yes
16264fi
16265 else
16266 pkg_failed=untried
16267fi
16268if test -n "$ICU_LIBS"; then
16269 pkg_cv_ICU_LIBS="$ICU_LIBS"
16270 elif test -n "$PKG_CONFIG"; then
16271 if test -n "$PKG_CONFIG" && \
16272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-i18n\""; } >&5
16273 ($PKG_CONFIG --exists --print-errors "icu-i18n") 2>&5
16274 ac_status=$?
16275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16276 test $ac_status = 0; }; then
16277 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-i18n" 2>/dev/null`
16278 test "x$?" != "x0" && pkg_failed=yes
16279else
16280 pkg_failed=yes
16281fi
16282 else
16283 pkg_failed=untried
16284fi
16285
16286
16287
16288if test $pkg_failed = yes; then
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16290$as_echo "no" >&6; }
16291
16292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16293 _pkg_short_errors_supported=yes
16294else
16295 _pkg_short_errors_supported=no
16296fi
16297 if test $_pkg_short_errors_supported = yes; then
16298 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-i18n" 2>&1`
16299 else
16300 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-i18n" 2>&1`
16301 fi
16302 # Put the nasty error message in config.log where it belongs
16303 echo "$ICU_PKG_ERRORS" >&5
16304
16305 have_libicu=no
16306elif test $pkg_failed = untried; then
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308$as_echo "no" >&6; }
16309 have_libicu=no
16310else
16311 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
16312 ICU_LIBS=$pkg_cv_ICU_LIBS
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314$as_echo "yes" >&6; }
16315 have_libicu=yes
16316fi
16317
16318 # If pkg-config failed, fall back to AC_CHECK_LIB. This
16319 # will not pick up the necessary LIBS flags for liblzma's
16320 # private dependencies, though, so static linking may fail.
16321 if test "x$have_libicu" = "xno"; then
16322 ICU_CONFIG=icu-config
16323 if ${ICU_CONFIG} --cflags >/dev/null 2>&1
16324 then
16325 ICU_LIBS=`${ICU_CONFIG} --ldflags`
16326 have_libicu=yes
16327 echo Enabling ICU support
16328 else
16329 if test "$with_icu" != "yes" -a "$with_iconv" != "" ; then
16330 CPPFLAGS="${CPPFLAGS} -I$with_icu"
16331 # Export this since our headers include icu.h
16332 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_icu"
16333 fi
16334
16335 ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucnv.h" "ac_cv_header_unicode_ucnv_h" "$ac_includes_default"
16336if test "x$ac_cv_header_unicode_ucnv_h" = xyes; then :
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu" >&5
16338$as_echo_n "checking for icu... " >&6; }
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340/* end confdefs.h. */
16341#include <unicode/ucnv.h>
16342int
16343main ()
16344{
16345
16346 UConverter *utf = ucnv_open("UTF-8", NULL);
16347 ;
16348 return 0;
16349}
16350_ACEOF
16351if ac_fn_c_try_link "$LINENO"; then :
16352
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16354$as_echo "yes" >&6; }
16355 have_libicu=yes
16356else
16357
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359$as_echo "no" >&6; }
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icu in -licucore" >&5
16361$as_echo_n "checking for icu in -licucore... " >&6; }
16362
16363 _ldflags="${LDFLAGS}"
16364 _libs="${LIBS}"
16365 LDFLAGS="${LDFLAGS} ${ICU_LIBS}"
16366 LIBS="${LIBS} -licucore"
16367
16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16369/* end confdefs.h. */
16370#include <unicode/ucnv.h>
16371int
16372main ()
16373{
16374
16375 UConverter *utf = ucnv_open("UTF-8", NULL);
16376 ;
16377 return 0;
16378}
16379_ACEOF
16380if ac_fn_c_try_link "$LINENO"; then :
16381
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16383$as_echo "yes" >&6; }
16384 have_libicu=yes
16385 ICU_LIBS="${ICU_LIBS} -licucore"
16386 LIBS="${_libs}"
16387 LDFLAGS="${_ldflags}"
16388else
16389
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391$as_echo "no" >&6; }
16392 LIBS="${_libs}"
16393 LDFLAGS="${_ldflags}"
16394fi
16395rm -f core conftest.err conftest.$ac_objext \
16396 conftest$ac_exeext conftest.$ac_ext
16397fi
16398rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16400fi
16401
16402
16403 fi
16404 fi
16405
16406 # Found the library via either method?
16407 if test "x$have_libicu" = "xyes"; then
16408 WITH_ICU=1
16409 fi
16410fi
16411XML_LIBS="-lxml2 $Z_LIBS $LZMA_LIBS $THREAD_LIBS $ICONV_LIBS $ICU_LIBS $M_LIBS $LIBS"
16412XML_LIBTOOLLIBS="libxml2.la"
16413
16414
16415WITH_ISO8859X=1
16416if test "$WITH_ICONV" != "1" ; then
16417if test "$with_iso8859x" = "no" ; then
16418 echo Disabling ISO8859X support
16419 WITH_ISO8859X=0
16420fi
16421fi
16422
16423
16424if test "$with_schemas" = "no" ; then
16425 echo "Disabling Schemas/Relax-NG support"
16426 WITH_SCHEMAS=0
16427 TEST_SCHEMAS=
16428else
16429 echo "Enabled Schemas/Relax-NG support"
16430 WITH_SCHEMAS=1
16431 TEST_SCHEMAS="Schemastests Relaxtests"
16432 if test "$PYTHON_INCLUDES" != "" ; then
16433 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
16434 fi
16435 with_regexps=yes
16436fi
16437
16438
16439
16440if test "$with_regexps" = "no" ; then
16441 echo Disabling Regexps support
16442 WITH_REGEXPS=0
16443 TEST_REGEXPS=
16444else
16445 WITH_REGEXPS=1
16446 TEST_REGEXPS="Regexptests Automatatests"
16447fi
16448
16449
16450
16451if test "$with_debug" = "no" ; then
16452 echo Disabling DEBUG support
16453 WITH_DEBUG=0
16454 DEBUG_OBJ=
16455 TEST_DEBUG=
16456else
16457 WITH_DEBUG=1
16458 DEBUG_OBJ=debugXML.o
16459 TEST_DEBUG=Scripttests
16460fi
16461
16462
16463
16464
16465if test "$with_mem_debug" = "yes" ; then
16466 if test "$with_thread_alloc" = "yes" ; then
16467 echo Disabling memory debug - cannot use mem-debug with thread-alloc!
16468 WITH_MEM_DEBUG=0
16469 else
16470 echo Enabling memory debug support
16471 WITH_MEM_DEBUG=1
16472 fi
16473else
16474 WITH_MEM_DEBUG=0
16475fi
16476
16477
16478if test "$with_run_debug" = "yes" ; then
16479 echo Enabling runtime debug support
16480 WITH_RUN_DEBUG=1
16481else
16482 WITH_RUN_DEBUG=0
16483fi
16484
16485
16486WIN32_EXTRA_LIBADD=
16487WIN32_EXTRA_LDFLAGS=
16488CYGWIN_EXTRA_LDFLAGS=
16489CYGWIN_EXTRA_PYTHON_LIBADD=
16490WIN32_EXTRA_PYTHON_LIBADD=
16491case "$host" in
16492 *-*-mingw*)
16493 CPPFLAGS="$CPPFLAGS -DWIN32"
16494 WIN32_EXTRA_LIBADD="-lws2_32"
16495 WIN32_EXTRA_LDFLAGS="-no-undefined"
16496
16497$as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
16498
16499 if test "${PYTHON}" != ""
16500 then
16501 WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
16502 fi
16503 ;;
16504 *-*-cygwin*)
16505 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
16506 if test "${PYTHON}" != ""
16507 then
16508 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
16509 fi
16510 ;;
16511esac
16512
16513
16514
16515
16516
16517
16518for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
16519do :
16520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16521ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16522if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16523 cat >>confdefs.h <<_ACEOF
16524#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16525_ACEOF
16526
16527else
16528 NEED_TRIO=1
16529fi
16530done
16531
16532
16533if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
16534then
16535 echo Enabling code coverage for GCC
16536 CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
16537 LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
16538else
16539 echo Disabling code coverage for GCC
16540fi
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564RELDATE=`date +'%a %b %e %Y'`
16565
16566
16567
16568rm -f COPYING.LIB COPYING
16569ln -s $srcdir/Copyright COPYING
16570
16571# keep on one line for cygwin c.f. #130896
16572ac_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 python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h libxml-2.0.pc libxml-2.0-uninstalled.pc libxml2-config.cmake"
16573
16574ac_config_files="$ac_config_files python/setup.py"
16575
16576ac_config_files="$ac_config_files xml2-config"
16577
16578cat >confcache <<\_ACEOF
16579# This file is a shell script that caches the results of configure
16580# tests run on this system so they can be shared between configure
16581# scripts and configure runs, see configure's option --config-cache.
16582# It is not useful on other systems. If it contains results you don't
16583# want to keep, you may remove or edit it.
16584#
16585# config.status only pays attention to the cache file if you give it
16586# the --recheck option to rerun configure.
16587#
16588# `ac_cv_env_foo' variables (set or unset) will be overridden when
16589# loading this file, other *unset* `ac_cv_foo' will be assigned the
16590# following values.
16591
16592_ACEOF
16593
16594# The following way of writing the cache mishandles newlines in values,
16595# but we know of no workaround that is simple, portable, and efficient.
16596# So, we kill variables containing newlines.
16597# Ultrix sh set writes to stderr and can't be redirected directly,
16598# and sets the high bit in the cache file unless we assign to the vars.
16599(
16600 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16601 eval ac_val=\$$ac_var
16602 case $ac_val in #(
16603 *${as_nl}*)
16604 case $ac_var in #(
16605 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16606$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16607 esac
16608 case $ac_var in #(
16609 _ | IFS | as_nl) ;; #(
16610 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16611 *) { eval $ac_var=; unset $ac_var;} ;;
16612 esac ;;
16613 esac
16614 done
16615
16616 (set) 2>&1 |
16617 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16618 *${as_nl}ac_space=\ *)
16619 # `set' does not quote correctly, so add quotes: double-quote
16620 # substitution turns \\\\ into \\, and sed turns \\ into \.
16621 sed -n \
16622 "s/'/'\\\\''/g;
16623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16624 ;; #(
16625 *)
16626 # `set' quotes correctly as required by POSIX, so do not add quotes.
16627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16628 ;;
16629 esac |
16630 sort
16631) |
16632 sed '
16633 /^ac_cv_env_/b end
16634 t clear
16635 :clear
16636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16637 t end
16638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16639 :end' >>confcache
16640if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16641 if test -w "$cache_file"; then
16642 if test "x$cache_file" != "x/dev/null"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16644$as_echo "$as_me: updating cache $cache_file" >&6;}
16645 if test ! -f "$cache_file" || test -h "$cache_file"; then
16646 cat confcache >"$cache_file"
16647 else
16648 case $cache_file in #(
16649 */* | ?:*)
16650 mv -f confcache "$cache_file"$$ &&
16651 mv -f "$cache_file"$$ "$cache_file" ;; #(
16652 *)
16653 mv -f confcache "$cache_file" ;;
16654 esac
16655 fi
16656 fi
16657 else
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16659$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16660 fi
16661fi
16662rm -f confcache
16663
16664test "x$prefix" = xNONE && prefix=$ac_default_prefix
16665# Let make expand exec_prefix.
16666test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16667
16668DEFS=-DHAVE_CONFIG_H
16669
16670ac_libobjs=
16671ac_ltlibobjs=
16672U=
16673for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16674 # 1. Remove the extension, and $U if already installed.
16675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16678 # will be set to the directory where LIBOBJS objects are built.
16679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16681done
16682LIBOBJS=$ac_libobjs
16683
16684LTLIBOBJS=$ac_ltlibobjs
16685
16686
16687if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16688 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16689Usually this means the macro was only invoked conditionally." "$LINENO" 5
16690fi
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16692$as_echo_n "checking that generated files are newer than configure... " >&6; }
16693 if test -n "$am_sleep_pid"; then
16694 # Hide warnings about reused PIDs.
16695 wait $am_sleep_pid 2>/dev/null
16696 fi
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16698$as_echo "done" >&6; }
16699 if test -n "$EXEEXT"; then
16700 am__EXEEXT_TRUE=
16701 am__EXEEXT_FALSE='#'
16702else
16703 am__EXEEXT_TRUE='#'
16704 am__EXEEXT_FALSE=
16705fi
16706
16707if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16708 as_fn_error $? "conditional \"AMDEP\" was never defined.
16709Usually this means the macro was only invoked conditionally." "$LINENO" 5
16710fi
16711if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16712 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16713Usually this means the macro was only invoked conditionally." "$LINENO" 5
16714fi
16715if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
16716 as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
16717Usually this means the macro was only invoked conditionally." "$LINENO" 5
16718fi
16719if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
16720 as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
16721Usually this means the macro was only invoked conditionally." "$LINENO" 5
16722fi
16723if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
16724 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
16725Usually this means the macro was only invoked conditionally." "$LINENO" 5
16726fi
16727if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
16728 as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
16729Usually this means the macro was only invoked conditionally." "$LINENO" 5
16730fi
16731if test -z "${THREADS_W32_TRUE}" && test -z "${THREADS_W32_FALSE}"; then
16732 as_fn_error $? "conditional \"THREADS_W32\" was never defined.
16733Usually this means the macro was only invoked conditionally." "$LINENO" 5
16734fi
16735if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
16736 as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
16737Usually this means the macro was only invoked conditionally." "$LINENO" 5
16738fi
16739
16740: "${CONFIG_STATUS=./config.status}"
16741ac_write_fail=0
16742ac_clean_files_save=$ac_clean_files
16743ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16745$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16746as_write_fail=0
16747cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16748#! $SHELL
16749# Generated by $as_me.
16750# Run this file to recreate the current configuration.
16751# Compiler output produced by configure, useful for debugging
16752# configure, is in config.log if it exists.
16753
16754debug=false
16755ac_cs_recheck=false
16756ac_cs_silent=false
16757
16758SHELL=\${CONFIG_SHELL-$SHELL}
16759export SHELL
16760_ASEOF
16761cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16762## -------------------- ##
16763## M4sh Initialization. ##
16764## -------------------- ##
16765
16766# Be more Bourne compatible
16767DUALCASE=1; export DUALCASE # for MKS sh
16768if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16769 emulate sh
16770 NULLCMD=:
16771 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16772 # is contrary to our usage. Disable this feature.
16773 alias -g '${1+"$@"}'='"$@"'
16774 setopt NO_GLOB_SUBST
16775else
16776 case `(set -o) 2>/dev/null` in #(
16777 *posix*) :
16778 set -o posix ;; #(
16779 *) :
16780 ;;
16781esac
16782fi
16783
16784
16785as_nl='
16786'
16787export as_nl
16788# Printing a long string crashes Solaris 7 /usr/bin/printf.
16789as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16790as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16792# Prefer a ksh shell builtin over an external printf program on Solaris,
16793# but without wasting forks for bash or zsh.
16794if test -z "$BASH_VERSION$ZSH_VERSION" \
16795 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16796 as_echo='print -r --'
16797 as_echo_n='print -rn --'
16798elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16799 as_echo='printf %s\n'
16800 as_echo_n='printf %s'
16801else
16802 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16803 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16804 as_echo_n='/usr/ucb/echo -n'
16805 else
16806 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16807 as_echo_n_body='eval
16808 arg=$1;
16809 case $arg in #(
16810 *"$as_nl"*)
16811 expr "X$arg" : "X\\(.*\\)$as_nl";
16812 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16813 esac;
16814 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16815 '
16816 export as_echo_n_body
16817 as_echo_n='sh -c $as_echo_n_body as_echo'
16818 fi
16819 export as_echo_body
16820 as_echo='sh -c $as_echo_body as_echo'
16821fi
16822
16823# The user is always right.
16824if test "${PATH_SEPARATOR+set}" != set; then
16825 PATH_SEPARATOR=:
16826 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16827 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16828 PATH_SEPARATOR=';'
16829 }
16830fi
16831
16832
16833# IFS
16834# We need space, tab and new line, in precisely that order. Quoting is
16835# there to prevent editors from complaining about space-tab.
16836# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16837# splitting by setting IFS to empty value.)
16838IFS=" "" $as_nl"
16839
16840# Find who we are. Look in the path if we contain no directory separator.
16841as_myself=
16842case $0 in #((
16843 *[\\/]* ) as_myself=$0 ;;
16844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845for as_dir in $PATH
16846do
16847 IFS=$as_save_IFS
16848 test -z "$as_dir" && as_dir=.
16849 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16850 done
16851IFS=$as_save_IFS
16852
16853 ;;
16854esac
16855# We did not find ourselves, most probably we were run as `sh COMMAND'
16856# in which case we are not to be found in the path.
16857if test "x$as_myself" = x; then
16858 as_myself=$0
16859fi
16860if test ! -f "$as_myself"; then
16861 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16862 exit 1
16863fi
16864
16865# Unset variables that we do not need and which cause bugs (e.g. in
16866# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16867# suppresses any "Segmentation fault" message there. '((' could
16868# trigger a bug in pdksh 5.2.14.
16869for as_var in BASH_ENV ENV MAIL MAILPATH
16870do eval test x\${$as_var+set} = xset \
16871 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16872done
16873PS1='$ '
16874PS2='> '
16875PS4='+ '
16876
16877# NLS nuisances.
16878LC_ALL=C
16879export LC_ALL
16880LANGUAGE=C
16881export LANGUAGE
16882
16883# CDPATH.
16884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16885
16886
16887# as_fn_error STATUS ERROR [LINENO LOG_FD]
16888# ----------------------------------------
16889# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16890# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16891# script with STATUS, using 1 if that was 0.
16892as_fn_error ()
16893{
16894 as_status=$1; test $as_status -eq 0 && as_status=1
16895 if test "$4"; then
16896 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16897 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16898 fi
16899 $as_echo "$as_me: error: $2" >&2
16900 as_fn_exit $as_status
16901} # as_fn_error
16902
16903
16904# as_fn_set_status STATUS
16905# -----------------------
16906# Set $? to STATUS, without forking.
16907as_fn_set_status ()
16908{
16909 return $1
16910} # as_fn_set_status
16911
16912# as_fn_exit STATUS
16913# -----------------
16914# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16915as_fn_exit ()
16916{
16917 set +e
16918 as_fn_set_status $1
16919 exit $1
16920} # as_fn_exit
16921
16922# as_fn_unset VAR
16923# ---------------
16924# Portably unset VAR.
16925as_fn_unset ()
16926{
16927 { eval $1=; unset $1;}
16928}
16929as_unset=as_fn_unset
16930# as_fn_append VAR VALUE
16931# ----------------------
16932# Append the text in VALUE to the end of the definition contained in VAR. Take
16933# advantage of any shell optimizations that allow amortized linear growth over
16934# repeated appends, instead of the typical quadratic growth present in naive
16935# implementations.
16936if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16937 eval 'as_fn_append ()
16938 {
16939 eval $1+=\$2
16940 }'
16941else
16942 as_fn_append ()
16943 {
16944 eval $1=\$$1\$2
16945 }
16946fi # as_fn_append
16947
16948# as_fn_arith ARG...
16949# ------------------
16950# Perform arithmetic evaluation on the ARGs, and store the result in the
16951# global $as_val. Take advantage of shells that can avoid forks. The arguments
16952# must be portable across $(()) and expr.
16953if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16954 eval 'as_fn_arith ()
16955 {
16956 as_val=$(( $* ))
16957 }'
16958else
16959 as_fn_arith ()
16960 {
16961 as_val=`expr "$@" || test $? -eq 1`
16962 }
16963fi # as_fn_arith
16964
16965
16966if expr a : '\(a\)' >/dev/null 2>&1 &&
16967 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16968 as_expr=expr
16969else
16970 as_expr=false
16971fi
16972
16973if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16974 as_basename=basename
16975else
16976 as_basename=false
16977fi
16978
16979if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16980 as_dirname=dirname
16981else
16982 as_dirname=false
16983fi
16984
16985as_me=`$as_basename -- "$0" ||
16986$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16987 X"$0" : 'X\(//\)$' \| \
16988 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16989$as_echo X/"$0" |
16990 sed '/^.*\/\([^/][^/]*\)\/*$/{
16991 s//\1/
16992 q
16993 }
16994 /^X\/\(\/\/\)$/{
16995 s//\1/
16996 q
16997 }
16998 /^X\/\(\/\).*/{
16999 s//\1/
17000 q
17001 }
17002 s/.*/./; q'`
17003
17004# Avoid depending upon Character Ranges.
17005as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17006as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17007as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17008as_cr_digits='0123456789'
17009as_cr_alnum=$as_cr_Letters$as_cr_digits
17010
17011ECHO_C= ECHO_N= ECHO_T=
17012case `echo -n x` in #(((((
17013-n*)
17014 case `echo 'xy\c'` in
17015 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17016 xy) ECHO_C='\c';;
17017 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17018 ECHO_T=' ';;
17019 esac;;
17020*)
17021 ECHO_N='-n';;
17022esac
17023
17024rm -f conf$$ conf$$.exe conf$$.file
17025if test -d conf$$.dir; then
17026 rm -f conf$$.dir/conf$$.file
17027else
17028 rm -f conf$$.dir
17029 mkdir conf$$.dir 2>/dev/null
17030fi
17031if (echo >conf$$.file) 2>/dev/null; then
17032 if ln -s conf$$.file conf$$ 2>/dev/null; then
17033 as_ln_s='ln -s'
17034 # ... but there are two gotchas:
17035 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17036 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17037 # In both cases, we have to default to `cp -pR'.
17038 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17039 as_ln_s='cp -pR'
17040 elif ln conf$$.file conf$$ 2>/dev/null; then
17041 as_ln_s=ln
17042 else
17043 as_ln_s='cp -pR'
17044 fi
17045else
17046 as_ln_s='cp -pR'
17047fi
17048rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17049rmdir conf$$.dir 2>/dev/null
17050
17051
17052# as_fn_mkdir_p
17053# -------------
17054# Create "$as_dir" as a directory, including parents if necessary.
17055as_fn_mkdir_p ()
17056{
17057
17058 case $as_dir in #(
17059 -*) as_dir=./$as_dir;;
17060 esac
17061 test -d "$as_dir" || eval $as_mkdir_p || {
17062 as_dirs=
17063 while :; do
17064 case $as_dir in #(
17065 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17066 *) as_qdir=$as_dir;;
17067 esac
17068 as_dirs="'$as_qdir' $as_dirs"
17069 as_dir=`$as_dirname -- "$as_dir" ||
17070$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17071 X"$as_dir" : 'X\(//\)[^/]' \| \
17072 X"$as_dir" : 'X\(//\)$' \| \
17073 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17074$as_echo X"$as_dir" |
17075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17076 s//\1/
17077 q
17078 }
17079 /^X\(\/\/\)[^/].*/{
17080 s//\1/
17081 q
17082 }
17083 /^X\(\/\/\)$/{
17084 s//\1/
17085 q
17086 }
17087 /^X\(\/\).*/{
17088 s//\1/
17089 q
17090 }
17091 s/.*/./; q'`
17092 test -d "$as_dir" && break
17093 done
17094 test -z "$as_dirs" || eval "mkdir $as_dirs"
17095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17096
17097
17098} # as_fn_mkdir_p
17099if mkdir -p . 2>/dev/null; then
17100 as_mkdir_p='mkdir -p "$as_dir"'
17101else
17102 test -d ./-p && rmdir ./-p
17103 as_mkdir_p=false
17104fi
17105
17106
17107# as_fn_executable_p FILE
17108# -----------------------
17109# Test if FILE is an executable regular file.
17110as_fn_executable_p ()
17111{
17112 test -f "$1" && test -x "$1"
17113} # as_fn_executable_p
17114as_test_x='test -x'
17115as_executable_p=as_fn_executable_p
17116
17117# Sed expression to map a string onto a valid CPP name.
17118as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17119
17120# Sed expression to map a string onto a valid variable name.
17121as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17122
17123
17124exec 6>&1
17125## ----------------------------------- ##
17126## Main body of $CONFIG_STATUS script. ##
17127## ----------------------------------- ##
17128_ASEOF
17129test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17130
17131cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17132# Save the log message, to keep $0 and so on meaningful, and to
17133# report actual input values of CONFIG_FILES etc. instead of their
17134# values after options handling.
17135ac_log="
17136This file was extended by $as_me, which was
17137generated by GNU Autoconf 2.69. Invocation command line was
17138
17139 CONFIG_FILES = $CONFIG_FILES
17140 CONFIG_HEADERS = $CONFIG_HEADERS
17141 CONFIG_LINKS = $CONFIG_LINKS
17142 CONFIG_COMMANDS = $CONFIG_COMMANDS
17143 $ $0 $@
17144
17145on `(hostname || uname -n) 2>/dev/null | sed 1q`
17146"
17147
17148_ACEOF
17149
17150case $ac_config_files in *"
17151"*) set x $ac_config_files; shift; ac_config_files=$*;;
17152esac
17153
17154case $ac_config_headers in *"
17155"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17156esac
17157
17158
17159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17160# Files that config.status was made for.
17161config_files="$ac_config_files"
17162config_headers="$ac_config_headers"
17163config_commands="$ac_config_commands"
17164
17165_ACEOF
17166
17167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17168ac_cs_usage="\
17169\`$as_me' instantiates files and other configuration actions
17170from templates according to the current configuration. Unless the files
17171and actions are specified as TAGs, all are instantiated by default.
17172
17173Usage: $0 [OPTION]... [TAG]...
17174
17175 -h, --help print this help, then exit
17176 -V, --version print version number and configuration settings, then exit
17177 --config print configuration, then exit
17178 -q, --quiet, --silent
17179 do not print progress messages
17180 -d, --debug don't remove temporary files
17181 --recheck update $as_me by reconfiguring in the same conditions
17182 --file=FILE[:TEMPLATE]
17183 instantiate the configuration file FILE
17184 --header=FILE[:TEMPLATE]
17185 instantiate the configuration header FILE
17186
17187Configuration files:
17188$config_files
17189
17190Configuration headers:
17191$config_headers
17192
17193Configuration commands:
17194$config_commands
17195
17196Report bugs to the package provider."
17197
17198_ACEOF
17199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17200ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17201ac_cs_version="\\
17202config.status
17203configured by $0, generated by GNU Autoconf 2.69,
17204 with options \\"\$ac_cs_config\\"
17205
17206Copyright (C) 2012 Free Software Foundation, Inc.
17207This config.status script is free software; the Free Software Foundation
17208gives unlimited permission to copy, distribute and modify it."
17209
17210ac_pwd='$ac_pwd'
17211srcdir='$srcdir'
17212INSTALL='$INSTALL'
17213MKDIR_P='$MKDIR_P'
17214AWK='$AWK'
17215test -n "\$AWK" || AWK=awk
17216_ACEOF
17217
17218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17219# The default lists apply if the user does not specify any file.
17220ac_need_defaults=:
17221while test $# != 0
17222do
17223 case $1 in
17224 --*=?*)
17225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17227 ac_shift=:
17228 ;;
17229 --*=)
17230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17231 ac_optarg=
17232 ac_shift=:
17233 ;;
17234 *)
17235 ac_option=$1
17236 ac_optarg=$2
17237 ac_shift=shift
17238 ;;
17239 esac
17240
17241 case $ac_option in
17242 # Handling of the options.
17243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17244 ac_cs_recheck=: ;;
17245 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17246 $as_echo "$ac_cs_version"; exit ;;
17247 --config | --confi | --conf | --con | --co | --c )
17248 $as_echo "$ac_cs_config"; exit ;;
17249 --debug | --debu | --deb | --de | --d | -d )
17250 debug=: ;;
17251 --file | --fil | --fi | --f )
17252 $ac_shift
17253 case $ac_optarg in
17254 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17255 '') as_fn_error $? "missing file argument" ;;
17256 esac
17257 as_fn_append CONFIG_FILES " '$ac_optarg'"
17258 ac_need_defaults=false;;
17259 --header | --heade | --head | --hea )
17260 $ac_shift
17261 case $ac_optarg in
17262 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17263 esac
17264 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17265 ac_need_defaults=false;;
17266 --he | --h)
17267 # Conflict between --help and --header
17268 as_fn_error $? "ambiguous option: \`$1'
17269Try \`$0 --help' for more information.";;
17270 --help | --hel | -h )
17271 $as_echo "$ac_cs_usage"; exit ;;
17272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17274 ac_cs_silent=: ;;
17275
17276 # This is an error.
17277 -*) as_fn_error $? "unrecognized option: \`$1'
17278Try \`$0 --help' for more information." ;;
17279
17280 *) as_fn_append ac_config_targets " $1"
17281 ac_need_defaults=false ;;
17282
17283 esac
17284 shift
17285done
17286
17287ac_configure_extra_args=
17288
17289if $ac_cs_silent; then
17290 exec 6>/dev/null
17291 ac_configure_extra_args="$ac_configure_extra_args --silent"
17292fi
17293
17294_ACEOF
17295cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17296if \$ac_cs_recheck; then
17297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17298 shift
17299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17300 CONFIG_SHELL='$SHELL'
17301 export CONFIG_SHELL
17302 exec "\$@"
17303fi
17304
17305_ACEOF
17306cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307exec 5>>config.log
17308{
17309 echo
17310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17311## Running $as_me. ##
17312_ASBOX
17313 $as_echo "$ac_log"
17314} >&5
17315
17316_ACEOF
17317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17318#
17319# INIT-COMMANDS
17320#
17321AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17322
17323
17324# The HP-UX ksh and POSIX shell print the target directory to stdout
17325# if CDPATH is set.
17326(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17327
17328sed_quote_subst='$sed_quote_subst'
17329double_quote_subst='$double_quote_subst'
17330delay_variable_subst='$delay_variable_subst'
17331macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17332macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17333enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17334enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17335pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17336enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17337shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17338SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17339ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17340PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17341host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17342host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17343host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17344build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17345build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17346build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17347SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17348Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17349GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17350EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17351FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17352LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17353NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17354LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17355max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17356ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17357exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17358lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17359lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17360lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17361lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17362lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17363reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17364reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17365OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17366deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17367file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17368file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17369want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17370DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17371sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17372AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17373AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17374archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17375STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17376RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17377old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17378old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17379old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17380lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17381CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17382CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17383compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17384GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17385lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17386lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17387lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17388lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17389lt_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"`'
17390lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17391nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17392lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17393lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17394objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17395MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17396lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17397lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17398lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17399lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17400lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17401need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17402MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17403DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17404NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17405LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17406OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17407OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17408libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17409shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17410extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17411archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17412enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17413export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17414whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17415compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17416old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17417old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17418archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17419archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17420module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17421module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17422with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17423allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17424no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17425hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17426hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17427hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17428hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17429hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17430hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17431hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17432inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17433link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17434always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17435export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17436exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17437include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17438prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17439postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17440file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17441variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17442need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17443need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17444version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17445runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17446shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17447shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17448libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17449library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17450soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17451install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17452postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17453postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17454finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17455finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17456hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17457sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17458configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17459configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17460hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17461enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17462enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17463enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17464old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17465striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17466
17467LTCC='$LTCC'
17468LTCFLAGS='$LTCFLAGS'
17469compiler='$compiler_DEFAULT'
17470
17471# A function that is used when there is no print builtin or printf.
17472func_fallback_echo ()
17473{
17474 eval 'cat <<_LTECHO_EOF
17475\$1
17476_LTECHO_EOF'
17477}
17478
17479# Quote evaled strings.
17480for var in SHELL \
17481ECHO \
17482PATH_SEPARATOR \
17483SED \
17484GREP \
17485EGREP \
17486FGREP \
17487LD \
17488NM \
17489LN_S \
17490lt_SP2NL \
17491lt_NL2SP \
17492reload_flag \
17493OBJDUMP \
17494deplibs_check_method \
17495file_magic_cmd \
17496file_magic_glob \
17497want_nocaseglob \
17498DLLTOOL \
17499sharedlib_from_linklib_cmd \
17500AR \
17501AR_FLAGS \
17502archiver_list_spec \
17503STRIP \
17504RANLIB \
17505CC \
17506CFLAGS \
17507compiler \
17508lt_cv_sys_global_symbol_pipe \
17509lt_cv_sys_global_symbol_to_cdecl \
17510lt_cv_sys_global_symbol_to_import \
17511lt_cv_sys_global_symbol_to_c_name_address \
17512lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17513lt_cv_nm_interface \
17514nm_file_list_spec \
17515lt_cv_truncate_bin \
17516lt_prog_compiler_no_builtin_flag \
17517lt_prog_compiler_pic \
17518lt_prog_compiler_wl \
17519lt_prog_compiler_static \
17520lt_cv_prog_compiler_c_o \
17521need_locks \
17522MANIFEST_TOOL \
17523DSYMUTIL \
17524NMEDIT \
17525LIPO \
17526OTOOL \
17527OTOOL64 \
17528shrext_cmds \
17529export_dynamic_flag_spec \
17530whole_archive_flag_spec \
17531compiler_needs_object \
17532with_gnu_ld \
17533allow_undefined_flag \
17534no_undefined_flag \
17535hardcode_libdir_flag_spec \
17536hardcode_libdir_separator \
17537exclude_expsyms \
17538include_expsyms \
17539file_list_spec \
17540variables_saved_for_relink \
17541libname_spec \
17542library_names_spec \
17543soname_spec \
17544install_override_mode \
17545finish_eval \
17546old_striplib \
17547striplib; do
17548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17549 *[\\\\\\\`\\"\\\$]*)
17550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17551 ;;
17552 *)
17553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17554 ;;
17555 esac
17556done
17557
17558# Double-quote double-evaled strings.
17559for var in reload_cmds \
17560old_postinstall_cmds \
17561old_postuninstall_cmds \
17562old_archive_cmds \
17563extract_expsyms_cmds \
17564old_archive_from_new_cmds \
17565old_archive_from_expsyms_cmds \
17566archive_cmds \
17567archive_expsym_cmds \
17568module_cmds \
17569module_expsym_cmds \
17570export_symbols_cmds \
17571prelink_cmds \
17572postlink_cmds \
17573postinstall_cmds \
17574postuninstall_cmds \
17575finish_cmds \
17576sys_lib_search_path_spec \
17577configure_time_dlsearch_path \
17578configure_time_lt_sys_library_path; do
17579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17580 *[\\\\\\\`\\"\\\$]*)
17581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17582 ;;
17583 *)
17584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17585 ;;
17586 esac
17587done
17588
17589ac_aux_dir='$ac_aux_dir'
17590
17591# See if we are running on zsh, and set the options that allow our
17592# commands through without removal of \ escapes INIT.
17593if test -n "\${ZSH_VERSION+set}"; then
17594 setopt NO_GLOB_SUBST
17595fi
17596
17597
17598 PACKAGE='$PACKAGE'
17599 VERSION='$VERSION'
17600 RM='$RM'
17601 ofile='$ofile'
17602
17603
17604
17605
17606_ACEOF
17607
17608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17609
17610# Handling of arguments.
17611for ac_config_target in $ac_config_targets
17612do
17613 case $ac_config_target in
17614 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17615 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17616 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17617 "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
17618 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17619 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17620 "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
17621 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17622 "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
17623 "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
17624 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
17625 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
17626 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
17627 "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
17628 "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
17629 "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
17630 "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
17631 "libxml2-config.cmake") CONFIG_FILES="$CONFIG_FILES libxml2-config.cmake" ;;
17632 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
17633 "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
17634
17635 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17636 esac
17637done
17638
17639
17640# If the user did not use the arguments to specify the items to instantiate,
17641# then the envvar interface is used. Set only those that are not.
17642# We use the long form for the default assignment because of an extremely
17643# bizarre bug on SunOS 4.1.3.
17644if $ac_need_defaults; then
17645 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17646 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17647 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17648fi
17649
17650# Have a temporary directory for convenience. Make it in the build tree
17651# simply because there is no reason against having it here, and in addition,
17652# creating and moving files from /tmp can sometimes cause problems.
17653# Hook for its removal unless debugging.
17654# Note that there is a small window in which the directory will not be cleaned:
17655# after its creation but before its name has been assigned to `$tmp'.
17656$debug ||
17657{
17658 tmp= ac_tmp=
17659 trap 'exit_status=$?
17660 : "${ac_tmp:=$tmp}"
17661 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17662' 0
17663 trap 'as_fn_exit 1' 1 2 13 15
17664}
17665# Create a (secure) tmp directory for tmp files.
17666
17667{
17668 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17669 test -d "$tmp"
17670} ||
17671{
17672 tmp=./conf$$-$RANDOM
17673 (umask 077 && mkdir "$tmp")
17674} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17675ac_tmp=$tmp
17676
17677# Set up the scripts for CONFIG_FILES section.
17678# No need to generate them if there are no CONFIG_FILES.
17679# This happens for instance with `./config.status config.h'.
17680if test -n "$CONFIG_FILES"; then
17681
17682
17683ac_cr=`echo X | tr X '\015'`
17684# On cygwin, bash can eat \r inside `` if the user requested igncr.
17685# But we know of no other shell where ac_cr would be empty at this
17686# point, so we can use a bashism as a fallback.
17687if test "x$ac_cr" = x; then
17688 eval ac_cr=\$\'\\r\'
17689fi
17690ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17691if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17692 ac_cs_awk_cr='\\r'
17693else
17694 ac_cs_awk_cr=$ac_cr
17695fi
17696
17697echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17698_ACEOF
17699
17700
17701{
17702 echo "cat >conf$$subs.awk <<_ACEOF" &&
17703 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17704 echo "_ACEOF"
17705} >conf$$subs.sh ||
17706 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17707ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17708ac_delim='%!_!# '
17709for ac_last_try in false false false false false :; do
17710 . ./conf$$subs.sh ||
17711 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17712
17713 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17714 if test $ac_delim_n = $ac_delim_num; then
17715 break
17716 elif $ac_last_try; then
17717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17718 else
17719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17720 fi
17721done
17722rm -f conf$$subs.sh
17723
17724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17725cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17726_ACEOF
17727sed -n '
17728h
17729s/^/S["/; s/!.*/"]=/
17730p
17731g
17732s/^[^!]*!//
17733:repl
17734t repl
17735s/'"$ac_delim"'$//
17736t delim
17737:nl
17738h
17739s/\(.\{148\}\)..*/\1/
17740t more1
17741s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17742p
17743n
17744b repl
17745:more1
17746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17747p
17748g
17749s/.\{148\}//
17750t nl
17751:delim
17752h
17753s/\(.\{148\}\)..*/\1/
17754t more2
17755s/["\\]/\\&/g; s/^/"/; s/$/"/
17756p
17757b
17758:more2
17759s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17760p
17761g
17762s/.\{148\}//
17763t delim
17764' <conf$$subs.awk | sed '
17765/^[^""]/{
17766 N
17767 s/\n//
17768}
17769' >>$CONFIG_STATUS || ac_write_fail=1
17770rm -f conf$$subs.awk
17771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17772_ACAWK
17773cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17774 for (key in S) S_is_set[key] = 1
17775 FS = ""
17776
17777}
17778{
17779 line = $ 0
17780 nfields = split(line, field, "@")
17781 substed = 0
17782 len = length(field[1])
17783 for (i = 2; i < nfields; i++) {
17784 key = field[i]
17785 keylen = length(key)
17786 if (S_is_set[key]) {
17787 value = S[key]
17788 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17789 len += length(value) + length(field[++i])
17790 substed = 1
17791 } else
17792 len += 1 + keylen
17793 }
17794
17795 print line
17796}
17797
17798_ACAWK
17799_ACEOF
17800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17801if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17802 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17803else
17804 cat
17805fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17806 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17807_ACEOF
17808
17809# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17810# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17811# trailing colons and then remove the whole line if VPATH becomes empty
17812# (actually we leave an empty line to preserve line numbers).
17813if test "x$srcdir" = x.; then
17814 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17815h
17816s///
17817s/^/:/
17818s/[ ]*$/:/
17819s/:\$(srcdir):/:/g
17820s/:\${srcdir}:/:/g
17821s/:@srcdir@:/:/g
17822s/^:*//
17823s/:*$//
17824x
17825s/\(=[ ]*\).*/\1/
17826G
17827s/\n//
17828s/^[^=]*=[ ]*$//
17829}'
17830fi
17831
17832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17833fi # test -n "$CONFIG_FILES"
17834
17835# Set up the scripts for CONFIG_HEADERS section.
17836# No need to generate them if there are no CONFIG_HEADERS.
17837# This happens for instance with `./config.status Makefile'.
17838if test -n "$CONFIG_HEADERS"; then
17839cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17840BEGIN {
17841_ACEOF
17842
17843# Transform confdefs.h into an awk script `defines.awk', embedded as
17844# here-document in config.status, that substitutes the proper values into
17845# config.h.in to produce config.h.
17846
17847# Create a delimiter string that does not exist in confdefs.h, to ease
17848# handling of long lines.
17849ac_delim='%!_!# '
17850for ac_last_try in false false :; do
17851 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17852 if test -z "$ac_tt"; then
17853 break
17854 elif $ac_last_try; then
17855 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17856 else
17857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17858 fi
17859done
17860
17861# For the awk script, D is an array of macro values keyed by name,
17862# likewise P contains macro parameters if any. Preserve backslash
17863# newline sequences.
17864
17865ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17866sed -n '
17867s/.\{148\}/&'"$ac_delim"'/g
17868t rset
17869:rset
17870s/^[ ]*#[ ]*define[ ][ ]*/ /
17871t def
17872d
17873:def
17874s/\\$//
17875t bsnl
17876s/["\\]/\\&/g
17877s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17878D["\1"]=" \3"/p
17879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17880d
17881:bsnl
17882s/["\\]/\\&/g
17883s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17884D["\1"]=" \3\\\\\\n"\\/p
17885t cont
17886s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17887t cont
17888d
17889:cont
17890n
17891s/.\{148\}/&'"$ac_delim"'/g
17892t clear
17893:clear
17894s/\\$//
17895t bsnlc
17896s/["\\]/\\&/g; s/^/"/; s/$/"/p
17897d
17898:bsnlc
17899s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17900b cont
17901' <confdefs.h | sed '
17902s/'"$ac_delim"'/"\\\
17903"/g' >>$CONFIG_STATUS || ac_write_fail=1
17904
17905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17906 for (key in D) D_is_set[key] = 1
17907 FS = ""
17908}
17909/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17910 line = \$ 0
17911 split(line, arg, " ")
17912 if (arg[1] == "#") {
17913 defundef = arg[2]
17914 mac1 = arg[3]
17915 } else {
17916 defundef = substr(arg[1], 2)
17917 mac1 = arg[2]
17918 }
17919 split(mac1, mac2, "(") #)
17920 macro = mac2[1]
17921 prefix = substr(line, 1, index(line, defundef) - 1)
17922 if (D_is_set[macro]) {
17923 # Preserve the white space surrounding the "#".
17924 print prefix "define", macro P[macro] D[macro]
17925 next
17926 } else {
17927 # Replace #undef with comments. This is necessary, for example,
17928 # in the case of _POSIX_SOURCE, which is predefined and required
17929 # on some systems where configure will not decide to define it.
17930 if (defundef == "undef") {
17931 print "/*", prefix defundef, macro, "*/"
17932 next
17933 }
17934 }
17935}
17936{ print }
17937_ACAWK
17938_ACEOF
17939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17940 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17941fi # test -n "$CONFIG_HEADERS"
17942
17943
17944eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17945shift
17946for ac_tag
17947do
17948 case $ac_tag in
17949 :[FHLC]) ac_mode=$ac_tag; continue;;
17950 esac
17951 case $ac_mode$ac_tag in
17952 :[FHL]*:*);;
17953 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17954 :[FH]-) ac_tag=-:-;;
17955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17956 esac
17957 ac_save_IFS=$IFS
17958 IFS=:
17959 set x $ac_tag
17960 IFS=$ac_save_IFS
17961 shift
17962 ac_file=$1
17963 shift
17964
17965 case $ac_mode in
17966 :L) ac_source=$1;;
17967 :[FH])
17968 ac_file_inputs=
17969 for ac_f
17970 do
17971 case $ac_f in
17972 -) ac_f="$ac_tmp/stdin";;
17973 *) # Look for the file first in the build tree, then in the source tree
17974 # (if the path is not absolute). The absolute path cannot be DOS-style,
17975 # because $ac_f cannot contain `:'.
17976 test -f "$ac_f" ||
17977 case $ac_f in
17978 [\\/$]*) false;;
17979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17980 esac ||
17981 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17982 esac
17983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17984 as_fn_append ac_file_inputs " '$ac_f'"
17985 done
17986
17987 # Let's still pretend it is `configure' which instantiates (i.e., don't
17988 # use $as_me), people would be surprised to read:
17989 # /* config.h. Generated by config.status. */
17990 configure_input='Generated from '`
17991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17992 `' by configure.'
17993 if test x"$ac_file" != x-; then
17994 configure_input="$ac_file. $configure_input"
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17996$as_echo "$as_me: creating $ac_file" >&6;}
17997 fi
17998 # Neutralize special characters interpreted by sed in replacement strings.
17999 case $configure_input in #(
18000 *\&* | *\|* | *\\* )
18001 ac_sed_conf_input=`$as_echo "$configure_input" |
18002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18003 *) ac_sed_conf_input=$configure_input;;
18004 esac
18005
18006 case $ac_tag in
18007 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18008 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18009 esac
18010 ;;
18011 esac
18012
18013 ac_dir=`$as_dirname -- "$ac_file" ||
18014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18015 X"$ac_file" : 'X\(//\)[^/]' \| \
18016 X"$ac_file" : 'X\(//\)$' \| \
18017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18018$as_echo X"$ac_file" |
18019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18020 s//\1/
18021 q
18022 }
18023 /^X\(\/\/\)[^/].*/{
18024 s//\1/
18025 q
18026 }
18027 /^X\(\/\/\)$/{
18028 s//\1/
18029 q
18030 }
18031 /^X\(\/\).*/{
18032 s//\1/
18033 q
18034 }
18035 s/.*/./; q'`
18036 as_dir="$ac_dir"; as_fn_mkdir_p
18037 ac_builddir=.
18038
18039case "$ac_dir" in
18040.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18041*)
18042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18043 # A ".." for each directory in $ac_dir_suffix.
18044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18045 case $ac_top_builddir_sub in
18046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18048 esac ;;
18049esac
18050ac_abs_top_builddir=$ac_pwd
18051ac_abs_builddir=$ac_pwd$ac_dir_suffix
18052# for backward compatibility:
18053ac_top_builddir=$ac_top_build_prefix
18054
18055case $srcdir in
18056 .) # We are building in place.
18057 ac_srcdir=.
18058 ac_top_srcdir=$ac_top_builddir_sub
18059 ac_abs_top_srcdir=$ac_pwd ;;
18060 [\\/]* | ?:[\\/]* ) # Absolute name.
18061 ac_srcdir=$srcdir$ac_dir_suffix;
18062 ac_top_srcdir=$srcdir
18063 ac_abs_top_srcdir=$srcdir ;;
18064 *) # Relative name.
18065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18066 ac_top_srcdir=$ac_top_build_prefix$srcdir
18067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18068esac
18069ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18070
18071
18072 case $ac_mode in
18073 :F)
18074 #
18075 # CONFIG_FILE
18076 #
18077
18078 case $INSTALL in
18079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18081 esac
18082 ac_MKDIR_P=$MKDIR_P
18083 case $MKDIR_P in
18084 [\\/$]* | ?:[\\/]* ) ;;
18085 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18086 esac
18087_ACEOF
18088
18089cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18090# If the template does not know about datarootdir, expand it.
18091# FIXME: This hack should be removed a few years after 2.60.
18092ac_datarootdir_hack=; ac_datarootdir_seen=
18093ac_sed_dataroot='
18094/datarootdir/ {
18095 p
18096 q
18097}
18098/@datadir@/p
18099/@docdir@/p
18100/@infodir@/p
18101/@localedir@/p
18102/@mandir@/p'
18103case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18104*datarootdir*) ac_datarootdir_seen=yes;;
18105*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18107$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18108_ACEOF
18109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18110 ac_datarootdir_hack='
18111 s&@datadir@&$datadir&g
18112 s&@docdir@&$docdir&g
18113 s&@infodir@&$infodir&g
18114 s&@localedir@&$localedir&g
18115 s&@mandir@&$mandir&g
18116 s&\\\${datarootdir}&$datarootdir&g' ;;
18117esac
18118_ACEOF
18119
18120# Neutralize VPATH when `$srcdir' = `.'.
18121# Shell code in configure.ac might set extrasub.
18122# FIXME: do we really want to maintain this feature?
18123cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18124ac_sed_extra="$ac_vpsub
18125$extrasub
18126_ACEOF
18127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128:t
18129/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18130s|@configure_input@|$ac_sed_conf_input|;t t
18131s&@top_builddir@&$ac_top_builddir_sub&;t t
18132s&@top_build_prefix@&$ac_top_build_prefix&;t t
18133s&@srcdir@&$ac_srcdir&;t t
18134s&@abs_srcdir@&$ac_abs_srcdir&;t t
18135s&@top_srcdir@&$ac_top_srcdir&;t t
18136s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18137s&@builddir@&$ac_builddir&;t t
18138s&@abs_builddir@&$ac_abs_builddir&;t t
18139s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18140s&@INSTALL@&$ac_INSTALL&;t t
18141s&@MKDIR_P@&$ac_MKDIR_P&;t t
18142$ac_datarootdir_hack
18143"
18144eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18145 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18146
18147test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18148 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18149 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18150 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18152which seems to be undefined. Please make sure it is defined" >&5
18153$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18154which seems to be undefined. Please make sure it is defined" >&2;}
18155
18156 rm -f "$ac_tmp/stdin"
18157 case $ac_file in
18158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18159 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18160 esac \
18161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18162 ;;
18163 :H)
18164 #
18165 # CONFIG_HEADER
18166 #
18167 if test x"$ac_file" != x-; then
18168 {
18169 $as_echo "/* $configure_input */" \
18170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18171 } >"$ac_tmp/config.h" \
18172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18173 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18175$as_echo "$as_me: $ac_file is unchanged" >&6;}
18176 else
18177 rm -f "$ac_file"
18178 mv "$ac_tmp/config.h" "$ac_file" \
18179 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18180 fi
18181 else
18182 $as_echo "/* $configure_input */" \
18183 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18184 || as_fn_error $? "could not create -" "$LINENO" 5
18185 fi
18186# Compute "$ac_file"'s index in $config_headers.
18187_am_arg="$ac_file"
18188_am_stamp_count=1
18189for _am_header in $config_headers :; do
18190 case $_am_header in
18191 $_am_arg | $_am_arg:* )
18192 break ;;
18193 * )
18194 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18195 esac
18196done
18197echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18198$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18199 X"$_am_arg" : 'X\(//\)[^/]' \| \
18200 X"$_am_arg" : 'X\(//\)$' \| \
18201 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18202$as_echo X"$_am_arg" |
18203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18204 s//\1/
18205 q
18206 }
18207 /^X\(\/\/\)[^/].*/{
18208 s//\1/
18209 q
18210 }
18211 /^X\(\/\/\)$/{
18212 s//\1/
18213 q
18214 }
18215 /^X\(\/\).*/{
18216 s//\1/
18217 q
18218 }
18219 s/.*/./; q'`/stamp-h$_am_stamp_count
18220 ;;
18221
18222 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18223$as_echo "$as_me: executing $ac_file commands" >&6;}
18224 ;;
18225 esac
18226
18227
18228 case $ac_file$ac_mode in
18229 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18230 # Older Autoconf quotes --file arguments for eval, but not when files
18231 # are listed without --file. Let's play safe and only enable the eval
18232 # if we detect the quoting.
18233 case $CONFIG_FILES in
18234 *\'*) eval set x "$CONFIG_FILES" ;;
18235 *) set x $CONFIG_FILES ;;
18236 esac
18237 shift
18238 for mf
18239 do
18240 # Strip MF so we end up with the name of the file.
18241 mf=`echo "$mf" | sed -e 's/:.*$//'`
18242 # Check whether this is an Automake generated Makefile or not.
18243 # We used to match only the files named 'Makefile.in', but
18244 # some people rename them; so instead we look at the file content.
18245 # Grep'ing the first line is not enough: some people post-process
18246 # each Makefile.in and add a new line on top of each file to say so.
18247 # Grep'ing the whole file is not good either: AIX grep has a line
18248 # limit of 2048, but all sed's we know have understand at least 4000.
18249 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18250 dirpart=`$as_dirname -- "$mf" ||
18251$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18252 X"$mf" : 'X\(//\)[^/]' \| \
18253 X"$mf" : 'X\(//\)$' \| \
18254 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18255$as_echo X"$mf" |
18256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18257 s//\1/
18258 q
18259 }
18260 /^X\(\/\/\)[^/].*/{
18261 s//\1/
18262 q
18263 }
18264 /^X\(\/\/\)$/{
18265 s//\1/
18266 q
18267 }
18268 /^X\(\/\).*/{
18269 s//\1/
18270 q
18271 }
18272 s/.*/./; q'`
18273 else
18274 continue
18275 fi
18276 # Extract the definition of DEPDIR, am__include, and am__quote
18277 # from the Makefile without running 'make'.
18278 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18279 test -z "$DEPDIR" && continue
18280 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18281 test -z "$am__include" && continue
18282 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18283 # Find all dependency output files, they are included files with
18284 # $(DEPDIR) in their names. We invoke sed twice because it is the
18285 # simplest approach to changing $(DEPDIR) to its actual value in the
18286 # expansion.
18287 for file in `sed -n "
18288 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18289 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18290 # Make sure the directory exists.
18291 test -f "$dirpart/$file" && continue
18292 fdir=`$as_dirname -- "$file" ||
18293$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18294 X"$file" : 'X\(//\)[^/]' \| \
18295 X"$file" : 'X\(//\)$' \| \
18296 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18297$as_echo X"$file" |
18298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18299 s//\1/
18300 q
18301 }
18302 /^X\(\/\/\)[^/].*/{
18303 s//\1/
18304 q
18305 }
18306 /^X\(\/\/\)$/{
18307 s//\1/
18308 q
18309 }
18310 /^X\(\/\).*/{
18311 s//\1/
18312 q
18313 }
18314 s/.*/./; q'`
18315 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18316 # echo "creating $dirpart/$file"
18317 echo '# dummy' > "$dirpart/$file"
18318 done
18319 done
18320}
18321 ;;
18322 "libtool":C)
18323
18324 # See if we are running on zsh, and set the options that allow our
18325 # commands through without removal of \ escapes.
18326 if test -n "${ZSH_VERSION+set}"; then
18327 setopt NO_GLOB_SUBST
18328 fi
18329
18330 cfgfile=${ofile}T
18331 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18332 $RM "$cfgfile"
18333
18334 cat <<_LT_EOF >> "$cfgfile"
18335#! $SHELL
18336# Generated automatically by $as_me ($PACKAGE) $VERSION
18337# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18338# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18339
18340# Provide generalized library-building support services.
18341# Written by Gordon Matzigkeit, 1996
18342
18343# Copyright (C) 2014 Free Software Foundation, Inc.
18344# This is free software; see the source for copying conditions. There is NO
18345# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18346
18347# GNU Libtool is free software; you can redistribute it and/or modify
18348# it under the terms of the GNU General Public License as published by
18349# the Free Software Foundation; either version 2 of of the License, or
18350# (at your option) any later version.
18351#
18352# As a special exception to the GNU General Public License, if you
18353# distribute this file as part of a program or library that is built
18354# using GNU Libtool, you may include this file under the same
18355# distribution terms that you use for the rest of that program.
18356#
18357# GNU Libtool is distributed in the hope that it will be useful, but
18358# WITHOUT ANY WARRANTY; without even the implied warranty of
18359# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18360# GNU General Public License for more details.
18361#
18362# You should have received a copy of the GNU General Public License
18363# along with this program. If not, see <http://www.gnu.org/licenses/>.
18364
18365
18366# The names of the tagged configurations supported by this script.
18367available_tags=''
18368
18369# Configured defaults for sys_lib_dlsearch_path munging.
18370: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18371
18372# ### BEGIN LIBTOOL CONFIG
18373
18374# Which release of libtool.m4 was used?
18375macro_version=$macro_version
18376macro_revision=$macro_revision
18377
18378# Whether or not to build shared libraries.
18379build_libtool_libs=$enable_shared
18380
18381# Whether or not to build static libraries.
18382build_old_libs=$enable_static
18383
18384# What type of objects to build.
18385pic_mode=$pic_mode
18386
18387# Whether or not to optimize for fast installation.
18388fast_install=$enable_fast_install
18389
18390# Shared archive member basename,for filename based shared library versioning on AIX.
18391shared_archive_member_spec=$shared_archive_member_spec
18392
18393# Shell to use when invoking shell scripts.
18394SHELL=$lt_SHELL
18395
18396# An echo program that protects backslashes.
18397ECHO=$lt_ECHO
18398
18399# The PATH separator for the build system.
18400PATH_SEPARATOR=$lt_PATH_SEPARATOR
18401
18402# The host system.
18403host_alias=$host_alias
18404host=$host
18405host_os=$host_os
18406
18407# The build system.
18408build_alias=$build_alias
18409build=$build
18410build_os=$build_os
18411
18412# A sed program that does not truncate output.
18413SED=$lt_SED
18414
18415# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18416Xsed="\$SED -e 1s/^X//"
18417
18418# A grep program that handles long lines.
18419GREP=$lt_GREP
18420
18421# An ERE matcher.
18422EGREP=$lt_EGREP
18423
18424# A literal string matcher.
18425FGREP=$lt_FGREP
18426
18427# A BSD- or MS-compatible name lister.
18428NM=$lt_NM
18429
18430# Whether we need soft or hard links.
18431LN_S=$lt_LN_S
18432
18433# What is the maximum length of a command?
18434max_cmd_len=$max_cmd_len
18435
18436# Object file suffix (normally "o").
18437objext=$ac_objext
18438
18439# Executable file suffix (normally "").
18440exeext=$exeext
18441
18442# whether the shell understands "unset".
18443lt_unset=$lt_unset
18444
18445# turn spaces into newlines.
18446SP2NL=$lt_lt_SP2NL
18447
18448# turn newlines into spaces.
18449NL2SP=$lt_lt_NL2SP
18450
18451# convert \$build file names to \$host format.
18452to_host_file_cmd=$lt_cv_to_host_file_cmd
18453
18454# convert \$build files to toolchain format.
18455to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18456
18457# An object symbol dumper.
18458OBJDUMP=$lt_OBJDUMP
18459
18460# Method to check whether dependent libraries are shared objects.
18461deplibs_check_method=$lt_deplibs_check_method
18462
18463# Command to use when deplibs_check_method = "file_magic".
18464file_magic_cmd=$lt_file_magic_cmd
18465
18466# How to find potential files when deplibs_check_method = "file_magic".
18467file_magic_glob=$lt_file_magic_glob
18468
18469# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18470want_nocaseglob=$lt_want_nocaseglob
18471
18472# DLL creation program.
18473DLLTOOL=$lt_DLLTOOL
18474
18475# Command to associate shared and link libraries.
18476sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18477
18478# The archiver.
18479AR=$lt_AR
18480
18481# Flags to create an archive.
18482AR_FLAGS=$lt_AR_FLAGS
18483
18484# How to feed a file listing to the archiver.
18485archiver_list_spec=$lt_archiver_list_spec
18486
18487# A symbol stripping program.
18488STRIP=$lt_STRIP
18489
18490# Commands used to install an old-style archive.
18491RANLIB=$lt_RANLIB
18492old_postinstall_cmds=$lt_old_postinstall_cmds
18493old_postuninstall_cmds=$lt_old_postuninstall_cmds
18494
18495# Whether to use a lock for old archive extraction.
18496lock_old_archive_extraction=$lock_old_archive_extraction
18497
18498# A C compiler.
18499LTCC=$lt_CC
18500
18501# LTCC compiler flags.
18502LTCFLAGS=$lt_CFLAGS
18503
18504# Take the output of nm and produce a listing of raw symbols and C names.
18505global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18506
18507# Transform the output of nm in a proper C declaration.
18508global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18509
18510# Transform the output of nm into a list of symbols to manually relocate.
18511global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18512
18513# Transform the output of nm in a C name address pair.
18514global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18515
18516# Transform the output of nm in a C name address pair when lib prefix is needed.
18517global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18518
18519# The name lister interface.
18520nm_interface=$lt_lt_cv_nm_interface
18521
18522# Specify filename containing input files for \$NM.
18523nm_file_list_spec=$lt_nm_file_list_spec
18524
18525# The root where to search for dependent libraries,and where our libraries should be installed.
18526lt_sysroot=$lt_sysroot
18527
18528# Command to truncate a binary pipe.
18529lt_truncate_bin=$lt_lt_cv_truncate_bin
18530
18531# The name of the directory that contains temporary libtool files.
18532objdir=$objdir
18533
18534# Used to examine libraries when file_magic_cmd begins with "file".
18535MAGIC_CMD=$MAGIC_CMD
18536
18537# Must we lock files when doing compilation?
18538need_locks=$lt_need_locks
18539
18540# Manifest tool.
18541MANIFEST_TOOL=$lt_MANIFEST_TOOL
18542
18543# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18544DSYMUTIL=$lt_DSYMUTIL
18545
18546# Tool to change global to local symbols on Mac OS X.
18547NMEDIT=$lt_NMEDIT
18548
18549# Tool to manipulate fat objects and archives on Mac OS X.
18550LIPO=$lt_LIPO
18551
18552# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18553OTOOL=$lt_OTOOL
18554
18555# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18556OTOOL64=$lt_OTOOL64
18557
18558# Old archive suffix (normally "a").
18559libext=$libext
18560
18561# Shared library suffix (normally ".so").
18562shrext_cmds=$lt_shrext_cmds
18563
18564# The commands to extract the exported symbol list from a shared archive.
18565extract_expsyms_cmds=$lt_extract_expsyms_cmds
18566
18567# Variables whose values should be saved in libtool wrapper scripts and
18568# restored at link time.
18569variables_saved_for_relink=$lt_variables_saved_for_relink
18570
18571# Do we need the "lib" prefix for modules?
18572need_lib_prefix=$need_lib_prefix
18573
18574# Do we need a version for libraries?
18575need_version=$need_version
18576
18577# Library versioning type.
18578version_type=$version_type
18579
18580# Shared library runtime path variable.
18581runpath_var=$runpath_var
18582
18583# Shared library path variable.
18584shlibpath_var=$shlibpath_var
18585
18586# Is shlibpath searched before the hard-coded library search path?
18587shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18588
18589# Format of library name prefix.
18590libname_spec=$lt_libname_spec
18591
18592# List of archive names. First name is the real one, the rest are links.
18593# The last name is the one that the linker finds with -lNAME
18594library_names_spec=$lt_library_names_spec
18595
18596# The coded name of the library, if different from the real name.
18597soname_spec=$lt_soname_spec
18598
18599# Permission mode override for installation of shared libraries.
18600install_override_mode=$lt_install_override_mode
18601
18602# Command to use after installation of a shared archive.
18603postinstall_cmds=$lt_postinstall_cmds
18604
18605# Command to use after uninstallation of a shared archive.
18606postuninstall_cmds=$lt_postuninstall_cmds
18607
18608# Commands used to finish a libtool library installation in a directory.
18609finish_cmds=$lt_finish_cmds
18610
18611# As "finish_cmds", except a single script fragment to be evaled but
18612# not shown.
18613finish_eval=$lt_finish_eval
18614
18615# Whether we should hardcode library paths into libraries.
18616hardcode_into_libs=$hardcode_into_libs
18617
18618# Compile-time system search path for libraries.
18619sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18620
18621# Detected run-time system search path for libraries.
18622sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18623
18624# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18625configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18626
18627# Whether dlopen is supported.
18628dlopen_support=$enable_dlopen
18629
18630# Whether dlopen of programs is supported.
18631dlopen_self=$enable_dlopen_self
18632
18633# Whether dlopen of statically linked programs is supported.
18634dlopen_self_static=$enable_dlopen_self_static
18635
18636# Commands to strip libraries.
18637old_striplib=$lt_old_striplib
18638striplib=$lt_striplib
18639
18640
18641# The linker used to build libraries.
18642LD=$lt_LD
18643
18644# How to create reloadable object files.
18645reload_flag=$lt_reload_flag
18646reload_cmds=$lt_reload_cmds
18647
18648# Commands used to build an old-style archive.
18649old_archive_cmds=$lt_old_archive_cmds
18650
18651# A language specific compiler.
18652CC=$lt_compiler
18653
18654# Is the compiler the GNU compiler?
18655with_gcc=$GCC
18656
18657# Compiler flag to turn off builtin functions.
18658no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18659
18660# Additional compiler flags for building library objects.
18661pic_flag=$lt_lt_prog_compiler_pic
18662
18663# How to pass a linker flag through the compiler.
18664wl=$lt_lt_prog_compiler_wl
18665
18666# Compiler flag to prevent dynamic linking.
18667link_static_flag=$lt_lt_prog_compiler_static
18668
18669# Does compiler simultaneously support -c and -o options?
18670compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18671
18672# Whether or not to add -lc for building shared libraries.
18673build_libtool_need_lc=$archive_cmds_need_lc
18674
18675# Whether or not to disallow shared libs when runtime libs are static.
18676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18677
18678# Compiler flag to allow reflexive dlopens.
18679export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18680
18681# Compiler flag to generate shared objects directly from archives.
18682whole_archive_flag_spec=$lt_whole_archive_flag_spec
18683
18684# Whether the compiler copes with passing no objects directly.
18685compiler_needs_object=$lt_compiler_needs_object
18686
18687# Create an old-style archive from a shared archive.
18688old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18689
18690# Create a temporary old-style archive to link instead of a shared archive.
18691old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18692
18693# Commands used to build a shared archive.
18694archive_cmds=$lt_archive_cmds
18695archive_expsym_cmds=$lt_archive_expsym_cmds
18696
18697# Commands used to build a loadable module if different from building
18698# a shared archive.
18699module_cmds=$lt_module_cmds
18700module_expsym_cmds=$lt_module_expsym_cmds
18701
18702# Whether we are building with GNU ld or not.
18703with_gnu_ld=$lt_with_gnu_ld
18704
18705# Flag that allows shared libraries with undefined symbols to be built.
18706allow_undefined_flag=$lt_allow_undefined_flag
18707
18708# Flag that enforces no undefined symbols.
18709no_undefined_flag=$lt_no_undefined_flag
18710
18711# Flag to hardcode \$libdir into a binary during linking.
18712# This must work even if \$libdir does not exist
18713hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18714
18715# Whether we need a single "-rpath" flag with a separated argument.
18716hardcode_libdir_separator=$lt_hardcode_libdir_separator
18717
18718# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18719# DIR into the resulting binary.
18720hardcode_direct=$hardcode_direct
18721
18722# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18723# DIR into the resulting binary and the resulting library dependency is
18724# "absolute",i.e impossible to change by setting \$shlibpath_var if the
18725# library is relocated.
18726hardcode_direct_absolute=$hardcode_direct_absolute
18727
18728# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18729# into the resulting binary.
18730hardcode_minus_L=$hardcode_minus_L
18731
18732# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18733# into the resulting binary.
18734hardcode_shlibpath_var=$hardcode_shlibpath_var
18735
18736# Set to "yes" if building a shared library automatically hardcodes DIR
18737# into the library and all subsequent libraries and executables linked
18738# against it.
18739hardcode_automatic=$hardcode_automatic
18740
18741# Set to yes if linker adds runtime paths of dependent libraries
18742# to runtime path list.
18743inherit_rpath=$inherit_rpath
18744
18745# Whether libtool must link a program against all its dependency libraries.
18746link_all_deplibs=$link_all_deplibs
18747
18748# Set to "yes" if exported symbols are required.
18749always_export_symbols=$always_export_symbols
18750
18751# The commands to list exported symbols.
18752export_symbols_cmds=$lt_export_symbols_cmds
18753
18754# Symbols that should not be listed in the preloaded symbols.
18755exclude_expsyms=$lt_exclude_expsyms
18756
18757# Symbols that must always be exported.
18758include_expsyms=$lt_include_expsyms
18759
18760# Commands necessary for linking programs (against libraries) with templates.
18761prelink_cmds=$lt_prelink_cmds
18762
18763# Commands necessary for finishing linking programs.
18764postlink_cmds=$lt_postlink_cmds
18765
18766# Specify filename containing input files.
18767file_list_spec=$lt_file_list_spec
18768
18769# How to hardcode a shared library path into an executable.
18770hardcode_action=$hardcode_action
18771
18772# ### END LIBTOOL CONFIG
18773
18774_LT_EOF
18775
18776 cat <<'_LT_EOF' >> "$cfgfile"
18777
18778# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18779
18780# func_munge_path_list VARIABLE PATH
18781# -----------------------------------
18782# VARIABLE is name of variable containing _space_ separated list of
18783# directories to be munged by the contents of PATH, which is string
18784# having a format:
18785# "DIR[:DIR]:"
18786# string "DIR[ DIR]" will be prepended to VARIABLE
18787# ":DIR[:DIR]"
18788# string "DIR[ DIR]" will be appended to VARIABLE
18789# "DIRP[:DIRP]::[DIRA:]DIRA"
18790# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18791# "DIRA[ DIRA]" will be appended to VARIABLE
18792# "DIR[:DIR]"
18793# VARIABLE will be replaced by "DIR[ DIR]"
18794func_munge_path_list ()
18795{
18796 case x$2 in
18797 x)
18798 ;;
18799 *:)
18800 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18801 ;;
18802 x:*)
18803 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18804 ;;
18805 *::*)
18806 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18807 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18808 ;;
18809 *)
18810 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18811 ;;
18812 esac
18813}
18814
18815
18816# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18817func_cc_basename ()
18818{
18819 for cc_temp in $*""; do
18820 case $cc_temp in
18821 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18822 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18823 \-*) ;;
18824 *) break;;
18825 esac
18826 done
18827 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18828}
18829
18830
18831# ### END FUNCTIONS SHARED WITH CONFIGURE
18832
18833_LT_EOF
18834
18835 case $host_os in
18836 aix3*)
18837 cat <<\_LT_EOF >> "$cfgfile"
18838# AIX sometimes has problems with the GCC collect2 program. For some
18839# reason, if we set the COLLECT_NAMES environment variable, the problems
18840# vanish in a puff of smoke.
18841if test set != "${COLLECT_NAMES+set}"; then
18842 COLLECT_NAMES=
18843 export COLLECT_NAMES
18844fi
18845_LT_EOF
18846 ;;
18847 esac
18848
18849
18850ltmain=$ac_aux_dir/ltmain.sh
18851
18852
18853 # We use sed instead of cat because bash on DJGPP gets confused if
18854 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18855 # text mode, it properly converts lines to CR/LF. This bash problem
18856 # is reportedly fixed, but why not run on old versions too?
18857 sed '$q' "$ltmain" >> "$cfgfile" \
18858 || (rm -f "$cfgfile"; exit 1)
18859
18860 mv -f "$cfgfile" "$ofile" ||
18861 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18862 chmod +x "$ofile"
18863
18864 ;;
18865 "python/setup.py":F) chmod +x python/setup.py ;;
18866 "xml2-config":F) chmod +x xml2-config ;;
18867
18868 esac
18869done # for ac_tag
18870
18871
18872as_fn_exit 0
18873_ACEOF
18874ac_clean_files=$ac_clean_files_save
18875
18876test $ac_write_fail = 0 ||
18877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18878
18879
18880# configure is writing to config.log, and then calls config.status.
18881# config.status does its own redirection, appending to config.log.
18882# Unfortunately, on DOS this fails, as config.log is still kept open
18883# by configure, so config.status won't be able to write to it; its
18884# output is simply discarded. So we exec the FD to /dev/null,
18885# effectively closing config.log, so it can be properly (re)opened and
18886# appended to by config.status. When coming back to configure, we
18887# need to make the FD available again.
18888if test "$no_create" != yes; then
18889 ac_cs_success=:
18890 ac_config_status_args=
18891 test "$silent" = yes &&
18892 ac_config_status_args="$ac_config_status_args --quiet"
18893 exec 5>/dev/null
18894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18895 exec 5>>config.log
18896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18897 # would make configure fail if this is the last instruction.
18898 $ac_cs_success || as_fn_exit 1
18899fi
18900if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18902$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18903fi
18904
18905
18906echo Done configuring
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette