resetting manifest requested domain to floor
[platform/upstream/libxml2.git] / configure
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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="entities.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 PYTHON_TESTS
637 RELDATE
638 RDL_LIBS
639 M_LIBS
640 PYTHON_SITE_PACKAGES
641 PYTHON_INCLUDES
642 PYTHON_VERSION
643 HAVE_ISINF
644 HAVE_ISNAN
645 XML_INCLUDEDIR
646 ICONV_LIBS
647 XML_LIBTOOLLIBS
648 XML_LIBS
649 XML_LIBDIR
650 XML_CFLAGS
651 CYGWIN_EXTRA_PYTHON_LIBADD
652 CYGWIN_EXTRA_LDFLAGS
653 WIN32_EXTRA_PYTHON_LIBADD
654 WIN32_EXTRA_LDFLAGS
655 WIN32_EXTRA_LIBADD
656 WITH_RUN_DEBUG
657 WITH_MEM_DEBUG
658 TEST_DEBUG
659 DEBUG_OBJ
660 WITH_DEBUG
661 TEST_REGEXPS
662 WITH_REGEXPS
663 TEST_SCHEMAS
664 WITH_SCHEMAS
665 TEST_SCHEMATRON
666 WITH_SCHEMATRON
667 WITH_ISO8859X
668 ICU_LIBS
669 WITH_ICU
670 WITH_ICONV
671 WITH_OUTPUT
672 TEST_XPATH
673 XPATH_OBJ
674 WITH_XPATH
675 TEST_XINCLUDE
676 XINCLUDE_OBJ
677 WITH_XINCLUDE
678 TEST_C14N
679 C14N_OBJ
680 WITH_C14N
681 TEST_XPTR
682 XPTR_OBJ
683 WITH_XPTR
684 DOCB_OBJ
685 WITH_DOCB
686 TEST_CATALOG
687 CATALOG_OBJ
688 WITH_CATALOG
689 TEST_VTIME
690 TEST_VALID
691 WITH_VALID
692 TEST_PHTML
693 TEST_HTML
694 HTML_OBJ
695 WITH_HTML
696 TEST_PUSH
697 WITH_PUSH
698 TEST_SAX
699 WITH_SAX1_SOURCES_FALSE
700 WITH_SAX1_SOURCES_TRUE
701 WITH_SAX1
702 TEST_PATTERN
703 WITH_PATTERN
704 WITH_WRITER
705 READER_TEST
706 WITH_READER
707 WITH_LEGACY
708 HTTP_OBJ
709 WITH_HTTP
710 FTP_OBJ
711 WITH_FTP
712 WITH_TREE
713 THREADS_W32_FALSE
714 THREADS_W32_TRUE
715 WITH_THREAD_ALLOC
716 TEST_THREADS
717 THREAD_CFLAGS
718 WITH_THREADS
719 BASE_THREAD_LIBS
720 THREAD_LIBS
721 WITH_TRIO
722 WITH_TRIO_SOURCES_FALSE
723 WITH_TRIO_SOURCES_TRUE
724 STATIC_BINARIES
725 TEST_MODULES
726 MODULE_EXTENSION
727 MODULE_PLATFORM_LIBS
728 WITH_MODULES
729 PYTHON_LIBS
730 PYTHON_SUBDIR
731 pythondir
732 WITH_PYTHON_FALSE
733 WITH_PYTHON_TRUE
734 PYTHON
735 WITH_LZMA
736 LZMA_LIBS
737 LZMA_CFLAGS
738 WITH_ZLIB
739 Z_LIBS
740 Z_CFLAGS
741 REBUILD_DOCS_FALSE
742 REBUILD_DOCS_TRUE
743 HTML_DIR
744 USE_VERSION_SCRIPT_FALSE
745 USE_VERSION_SCRIPT_TRUE
746 VERSION_SCRIPT_FLAGS
747 OTOOL64
748 OTOOL
749 LIPO
750 NMEDIT
751 DSYMUTIL
752 MANIFEST_TOOL
753 RANLIB
754 ac_ct_AR
755 AR
756 DLLTOOL
757 OBJDUMP
758 NM
759 ac_ct_DUMPBIN
760 DUMPBIN
761 LD
762 FGREP
763 EGREP
764 GREP
765 SED
766 LIBTOOL
767 XSLTPROC
768 XMLLINT
769 WGET
770 PERL
771 TAR
772 MV
773 CPP
774 LN_S
775 am__fastdepCC_FALSE
776 am__fastdepCC_TRUE
777 CCDEPMODE
778 am__nodep
779 AMDEPBACKSLASH
780 AMDEP_FALSE
781 AMDEP_TRUE
782 am__quote
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 AM_BACKSLASH
793 AM_DEFAULT_VERBOSITY
794 AM_DEFAULT_V
795 AM_V
796 am__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
801 AWK
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 LIBXML_VERSION_EXTRA
820 LIBXML_VERSION_NUMBER
821 LIBXML_VERSION_INFO
822 LIBXML_VERSION
823 LIBXML_MICRO_VERSION
824 LIBXML_MINOR_VERSION
825 LIBXML_MAJOR_VERSION
826 host_os
827 host_vendor
828 host_cpu
829 host
830 build_os
831 build_vendor
832 build_cpu
833 build
834 target_alias
835 host_alias
836 build_alias
837 LIBS
838 ECHO_T
839 ECHO_N
840 ECHO_C
841 DEFS
842 mandir
843 localedir
844 libdir
845 psdir
846 pdfdir
847 dvidir
848 htmldir
849 infodir
850 docdir
851 oldincludedir
852 includedir
853 localstatedir
854 sharedstatedir
855 sysconfdir
856 datadir
857 datarootdir
858 libexecdir
859 sbindir
860 bindir
861 program_transform_name
862 prefix
863 exec_prefix
864 PACKAGE_URL
865 PACKAGE_BUGREPORT
866 PACKAGE_STRING
867 PACKAGE_VERSION
868 PACKAGE_TARNAME
869 PACKAGE_NAME
870 PATH_SEPARATOR
871 SHELL'
872 ac_subst_files=''
873 ac_user_opts='
874 enable_option_checking
875 enable_silent_rules
876 enable_dependency_tracking
877 enable_shared
878 enable_static
879 with_pic
880 enable_fast_install
881 with_gnu_ld
882 with_sysroot
883 enable_libtool_lock
884 with_c14n
885 with_catalog
886 with_debug
887 with_docbook
888 with_fexceptions
889 with_ftp
890 with_history
891 with_html
892 with_html_dir
893 with_html_subdir
894 with_http
895 with_iconv
896 with_icu
897 with_iso8859x
898 with_legacy
899 with_mem_debug
900 with_minimum
901 with_output
902 with_pattern
903 with_push
904 with_python
905 with_reader
906 with_readline
907 with_regexps
908 with_run_debug
909 with_sax1
910 with_schemas
911 with_schematron
912 with_threads
913 with_thread_alloc
914 with_tree
915 with_valid
916 with_writer
917 with_xinclude
918 with_xpath
919 with_xptr
920 with_modules
921 with_zlib
922 with_lzma
923 with_coverage
924 enable_rebuild_docs
925 enable_ipv6
926 '
927       ac_precious_vars='build_alias
928 host_alias
929 target_alias
930 CC
931 CFLAGS
932 LDFLAGS
933 LIBS
934 CPPFLAGS
935 CPP'
936
937
938 # Initialize some variables set by options.
939 ac_init_help=
940 ac_init_version=false
941 ac_unrecognized_opts=
942 ac_unrecognized_sep=
943 # The variables have the same names as the options, with
944 # dashes changed to underlines.
945 cache_file=/dev/null
946 exec_prefix=NONE
947 no_create=
948 no_recursion=
949 prefix=NONE
950 program_prefix=NONE
951 program_suffix=NONE
952 program_transform_name=s,x,x,
953 silent=
954 site=
955 srcdir=
956 verbose=
957 x_includes=NONE
958 x_libraries=NONE
959
960 # Installation directory options.
961 # These are left unexpanded so users can "make install exec_prefix=/foo"
962 # and all the variables that are supposed to be based on exec_prefix
963 # by default will actually change.
964 # Use braces instead of parens because sh, perl, etc. also accept them.
965 # (The list follows the same order as the GNU Coding Standards.)
966 bindir='${exec_prefix}/bin'
967 sbindir='${exec_prefix}/sbin'
968 libexecdir='${exec_prefix}/libexec'
969 datarootdir='${prefix}/share'
970 datadir='${datarootdir}'
971 sysconfdir='${prefix}/etc'
972 sharedstatedir='${prefix}/com'
973 localstatedir='${prefix}/var'
974 includedir='${prefix}/include'
975 oldincludedir='/usr/include'
976 docdir='${datarootdir}/doc/${PACKAGE}'
977 infodir='${datarootdir}/info'
978 htmldir='${docdir}'
979 dvidir='${docdir}'
980 pdfdir='${docdir}'
981 psdir='${docdir}'
982 libdir='${exec_prefix}/lib'
983 localedir='${datarootdir}/locale'
984 mandir='${datarootdir}/man'
985
986 ac_prev=
987 ac_dashdash=
988 for ac_option
989 do
990   # If the previous option needs an argument, assign it.
991   if test -n "$ac_prev"; then
992     eval $ac_prev=\$ac_option
993     ac_prev=
994     continue
995   fi
996
997   case $ac_option in
998   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
999   *=)   ac_optarg= ;;
1000   *)    ac_optarg=yes ;;
1001   esac
1002
1003   # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005   case $ac_dashdash$ac_option in
1006   --)
1007     ac_dashdash=yes ;;
1008
1009   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010     ac_prev=bindir ;;
1011   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012     bindir=$ac_optarg ;;
1013
1014   -build | --build | --buil | --bui | --bu)
1015     ac_prev=build_alias ;;
1016   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017     build_alias=$ac_optarg ;;
1018
1019   -cache-file | --cache-file | --cache-fil | --cache-fi \
1020   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021     ac_prev=cache_file ;;
1022   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024     cache_file=$ac_optarg ;;
1025
1026   --config-cache | -C)
1027     cache_file=config.cache ;;
1028
1029   -datadir | --datadir | --datadi | --datad)
1030     ac_prev=datadir ;;
1031   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032     datadir=$ac_optarg ;;
1033
1034   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035   | --dataroo | --dataro | --datar)
1036     ac_prev=datarootdir ;;
1037   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039     datarootdir=$ac_optarg ;;
1040
1041   -disable-* | --disable-*)
1042     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045       as_fn_error $? "invalid feature name: $ac_useropt"
1046     ac_useropt_orig=$ac_useropt
1047     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048     case $ac_user_opts in
1049       *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053          ac_unrecognized_sep=', ';;
1054     esac
1055     eval enable_$ac_useropt=no ;;
1056
1057   -docdir | --docdir | --docdi | --doc | --do)
1058     ac_prev=docdir ;;
1059   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060     docdir=$ac_optarg ;;
1061
1062   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063     ac_prev=dvidir ;;
1064   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065     dvidir=$ac_optarg ;;
1066
1067   -enable-* | --enable-*)
1068     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069     # Reject names that are not valid shell variable names.
1070     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071       as_fn_error $? "invalid feature name: $ac_useropt"
1072     ac_useropt_orig=$ac_useropt
1073     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074     case $ac_user_opts in
1075       *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079          ac_unrecognized_sep=', ';;
1080     esac
1081     eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085   | --exec | --exe | --ex)
1086     ac_prev=exec_prefix ;;
1087   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089   | --exec=* | --exe=* | --ex=*)
1090     exec_prefix=$ac_optarg ;;
1091
1092   -gas | --gas | --ga | --g)
1093     # Obsolete; use --with-gas.
1094     with_gas=yes ;;
1095
1096   -help | --help | --hel | --he | -h)
1097     ac_init_help=long ;;
1098   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099     ac_init_help=recursive ;;
1100   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101     ac_init_help=short ;;
1102
1103   -host | --host | --hos | --ho)
1104     ac_prev=host_alias ;;
1105   -host=* | --host=* | --hos=* | --ho=*)
1106     host_alias=$ac_optarg ;;
1107
1108   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109     ac_prev=htmldir ;;
1110   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111   | --ht=*)
1112     htmldir=$ac_optarg ;;
1113
1114   -includedir | --includedir | --includedi | --included | --include \
1115   | --includ | --inclu | --incl | --inc)
1116     ac_prev=includedir ;;
1117   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118   | --includ=* | --inclu=* | --incl=* | --inc=*)
1119     includedir=$ac_optarg ;;
1120
1121   -infodir | --infodir | --infodi | --infod | --info | --inf)
1122     ac_prev=infodir ;;
1123   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124     infodir=$ac_optarg ;;
1125
1126   -libdir | --libdir | --libdi | --libd)
1127     ac_prev=libdir ;;
1128   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129     libdir=$ac_optarg ;;
1130
1131   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132   | --libexe | --libex | --libe)
1133     ac_prev=libexecdir ;;
1134   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135   | --libexe=* | --libex=* | --libe=*)
1136     libexecdir=$ac_optarg ;;
1137
1138   -localedir | --localedir | --localedi | --localed | --locale)
1139     ac_prev=localedir ;;
1140   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141     localedir=$ac_optarg ;;
1142
1143   -localstatedir | --localstatedir | --localstatedi | --localstated \
1144   | --localstate | --localstat | --localsta | --localst | --locals)
1145     ac_prev=localstatedir ;;
1146   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148     localstatedir=$ac_optarg ;;
1149
1150   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151     ac_prev=mandir ;;
1152   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153     mandir=$ac_optarg ;;
1154
1155   -nfp | --nfp | --nf)
1156     # Obsolete; use --without-fp.
1157     with_fp=no ;;
1158
1159   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160   | --no-cr | --no-c | -n)
1161     no_create=yes ;;
1162
1163   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165     no_recursion=yes ;;
1166
1167   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169   | --oldin | --oldi | --old | --ol | --o)
1170     ac_prev=oldincludedir ;;
1171   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174     oldincludedir=$ac_optarg ;;
1175
1176   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177     ac_prev=prefix ;;
1178   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179     prefix=$ac_optarg ;;
1180
1181   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182   | --program-pre | --program-pr | --program-p)
1183     ac_prev=program_prefix ;;
1184   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186     program_prefix=$ac_optarg ;;
1187
1188   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189   | --program-suf | --program-su | --program-s)
1190     ac_prev=program_suffix ;;
1191   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193     program_suffix=$ac_optarg ;;
1194
1195   -program-transform-name | --program-transform-name \
1196   | --program-transform-nam | --program-transform-na \
1197   | --program-transform-n | --program-transform- \
1198   | --program-transform | --program-transfor \
1199   | --program-transfo | --program-transf \
1200   | --program-trans | --program-tran \
1201   | --progr-tra | --program-tr | --program-t)
1202     ac_prev=program_transform_name ;;
1203   -program-transform-name=* | --program-transform-name=* \
1204   | --program-transform-nam=* | --program-transform-na=* \
1205   | --program-transform-n=* | --program-transform-=* \
1206   | --program-transform=* | --program-transfor=* \
1207   | --program-transfo=* | --program-transf=* \
1208   | --program-trans=* | --program-tran=* \
1209   | --progr-tra=* | --program-tr=* | --program-t=*)
1210     program_transform_name=$ac_optarg ;;
1211
1212   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213     ac_prev=pdfdir ;;
1214   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215     pdfdir=$ac_optarg ;;
1216
1217   -psdir | --psdir | --psdi | --psd | --ps)
1218     ac_prev=psdir ;;
1219   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220     psdir=$ac_optarg ;;
1221
1222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223   | -silent | --silent | --silen | --sile | --sil)
1224     silent=yes ;;
1225
1226   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227     ac_prev=sbindir ;;
1228   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229   | --sbi=* | --sb=*)
1230     sbindir=$ac_optarg ;;
1231
1232   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234   | --sharedst | --shareds | --shared | --share | --shar \
1235   | --sha | --sh)
1236     ac_prev=sharedstatedir ;;
1237   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240   | --sha=* | --sh=*)
1241     sharedstatedir=$ac_optarg ;;
1242
1243   -site | --site | --sit)
1244     ac_prev=site ;;
1245   -site=* | --site=* | --sit=*)
1246     site=$ac_optarg ;;
1247
1248   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249     ac_prev=srcdir ;;
1250   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251     srcdir=$ac_optarg ;;
1252
1253   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254   | --syscon | --sysco | --sysc | --sys | --sy)
1255     ac_prev=sysconfdir ;;
1256   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258     sysconfdir=$ac_optarg ;;
1259
1260   -target | --target | --targe | --targ | --tar | --ta | --t)
1261     ac_prev=target_alias ;;
1262   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263     target_alias=$ac_optarg ;;
1264
1265   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266     verbose=yes ;;
1267
1268   -version | --version | --versio | --versi | --vers | -V)
1269     ac_init_version=: ;;
1270
1271   -with-* | --with-*)
1272     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273     # Reject names that are not valid shell variable names.
1274     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275       as_fn_error $? "invalid package name: $ac_useropt"
1276     ac_useropt_orig=$ac_useropt
1277     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278     case $ac_user_opts in
1279       *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283          ac_unrecognized_sep=', ';;
1284     esac
1285     eval with_$ac_useropt=\$ac_optarg ;;
1286
1287   -without-* | --without-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error $? "invalid package name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=no ;;
1302
1303   --x)
1304     # Obsolete; use --with-x.
1305     with_x=yes ;;
1306
1307   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308   | --x-incl | --x-inc | --x-in | --x-i)
1309     ac_prev=x_includes ;;
1310   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312     x_includes=$ac_optarg ;;
1313
1314   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316     ac_prev=x_libraries ;;
1317   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319     x_libraries=$ac_optarg ;;
1320
1321   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information"
1323     ;;
1324
1325   *=*)
1326     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327     # Reject names that are not valid shell variable names.
1328     case $ac_envvar in #(
1329       '' | [0-9]* | *[!_$as_cr_alnum]* )
1330       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1331     esac
1332     eval $ac_envvar=\$ac_optarg
1333     export $ac_envvar ;;
1334
1335   *)
1336     # FIXME: should be removed in autoconf 3.0.
1337     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1341     ;;
1342
1343   esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348   as_fn_error $? "missing argument to $ac_option"
1349 fi
1350
1351 if test -n "$ac_unrecognized_opts"; then
1352   case $enable_option_checking in
1353     no) ;;
1354     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1355     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356   esac
1357 fi
1358
1359 # Check all directory arguments for consistency.
1360 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361                 datadir sysconfdir sharedstatedir localstatedir includedir \
1362                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363                 libdir localedir mandir
1364 do
1365   eval ac_val=\$$ac_var
1366   # Remove trailing slashes.
1367   case $ac_val in
1368     */ )
1369       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370       eval $ac_var=\$ac_val;;
1371   esac
1372   # Be sure to have absolute directory names.
1373   case $ac_val in
1374     [\\/$]* | ?:[\\/]* )  continue;;
1375     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376   esac
1377   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1379
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1386
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389   if test "x$build_alias" = x; then
1390     cross_compiling=maybe
1391   elif test "x$build_alias" != "x$host_alias"; then
1392     cross_compiling=yes
1393   fi
1394 fi
1395
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399 test "$silent" = yes && exec 6>/dev/null
1400
1401
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405   as_fn_error $? "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   as_fn_error $? "pwd does not report name of working directory"
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412   ac_srcdir_defaulted=yes
1413   # Try the directory containing this script, then the parent directory.
1414   ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416          X"$as_myself" : 'X\(//\)[^/]' \| \
1417          X"$as_myself" : 'X\(//\)$' \| \
1418          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)[^/].*/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\).*/{
1433             s//\1/
1434             q
1435           }
1436           s/.*/./; q'`
1437   srcdir=$ac_confdir
1438   if test ! -r "$srcdir/$ac_unique_file"; then
1439     srcdir=..
1440   fi
1441 else
1442   ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking ...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR            user executables [EPREFIX/bin]
1511   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR        program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR            object code libraries [EPREFIX/lib]
1517   --includedir=DIR        C header files [PREFIX/include]
1518   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR           info documentation [DATAROOTDIR/info]
1522   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR            man documentation [DATAROOTDIR/man]
1524   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1525   --htmldir=DIR           html documentation [DOCDIR]
1526   --dvidir=DIR            dvi documentation [DOCDIR]
1527   --pdfdir=DIR            pdf documentation [DOCDIR]
1528   --psdir=DIR             ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 Program names:
1534   --program-prefix=PREFIX            prepend PREFIX to installed program names
1535   --program-suffix=SUFFIX            append SUFFIX to installed program names
1536   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538 System types:
1539   --build=BUILD     configure for building on BUILD [guessed]
1540   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1541 _ACEOF
1542 fi
1543
1544 if test -n "$ac_init_help"; then
1545
1546   cat <<\_ACEOF
1547
1548 Optional Features:
1549   --disable-option-checking  ignore unrecognized --enable/--with options
1550   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1551   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1552   --enable-silent-rules          less verbose build output (undo: `make V=1')
1553   --disable-silent-rules         verbose build output (undo: `make V=0')
1554   --disable-dependency-tracking  speeds up one-time build
1555   --enable-dependency-tracking   do not reject slow dependency extractors
1556   --enable-shared[=PKGS]  build shared libraries [default=yes]
1557   --enable-static[=PKGS]  build static libraries [default=yes]
1558   --enable-fast-install[=PKGS]
1559                           optimize for fast installation [default=yes]
1560   --disable-libtool-lock  avoid locking (might break parallel builds)
1561   --enable-rebuild-docs[=yes/no]  rebuild some generated docs [default=no]
1562   --enable-ipv6[=yes/no]  enables compilation of IPv6 code [default=yes]
1563
1564 Optional Packages:
1565   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1566   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1567   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1568                           both]
1569   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1570   --with-sysroot=DIR Search for dependent libraries within DIR
1571                         (or the compiler's sysroot if not specified).
1572   --with-c14n             add the Canonicalization support (on)
1573   --with-catalog          add the Catalog support (on)
1574   --with-debug            add the debugging module (on)
1575   --with-docbook          add Docbook SGML support (on)
1576   --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)
1577   --with-ftp              add the FTP support (on)
1578   --with-history          add history support to xmllint shell(off)
1579   --with-html             add the HTML support (on)
1580   --with-html-dir=path    path to base html directory, default
1581                           $datadir/doc/html
1582   --with-html-subdir=path directory used under html-dir, default
1583                           $PACKAGE-$VERSION/html
1584   --with-http             add the HTTP support (on)
1585   --with-iconv[=DIR]      add ICONV support (on)
1586   --with-icu                add ICU support (off)
1587   --with-iso8859x         add ISO8859X support if no iconv (on)
1588   --with-legacy           add deprecated APIs for compatibility (on)
1589   --with-mem-debug        add the memory debugging module (off)
1590   --with-minimum          build a minimally sized library (off)
1591   --with-output           add the serialization support (on)
1592   --with-pattern          add the xmlPattern selection interface (on)
1593   --with-push             add the PUSH parser interfaces (on)
1594   --with-python[=DIR]     build Python bindings if found
1595   --with-reader           add the xmlReader parsing interface (on)
1596   --with-readline=DIR     use readline in DIR
1597   --with-regexps          add Regular Expressions support (on)
1598   --with-run-debug        add the runtime debugging module (off)
1599   --with-sax1             add the older SAX1 interface (on)
1600   --with-schemas          add Relax-NG and Schemas support (on)
1601   --with-schematron       add Schematron support (on)
1602   --with-threads          add multithread support(on)
1603   --with-thread-alloc     add per-thread memory(off)
1604   --with-tree             add the DOM like tree manipulation APIs (on)
1605   --with-valid            add the DTD validation support (on)
1606   --with-writer           add the xmlWriter saving interface (on)
1607   --with-xinclude         add the XInclude support (on)
1608   --with-xpath            add the XPATH support (on)
1609   --with-xptr             add the XPointer support (on)
1610   --with-modules          add the dynamic modules support (on)
1611   --with-zlib[=DIR]       use libz in DIR
1612   --with-lzma[=DIR]       use liblzma in DIR
1613   --with-coverage         build for code coverage with GCC (off)
1614
1615 Some influential environment variables:
1616   CC          C compiler command
1617   CFLAGS      C compiler flags
1618   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1619               nonstandard directory <lib dir>
1620   LIBS        libraries to pass to the linker, e.g. -l<library>
1621   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622               you have headers in a nonstandard directory <include dir>
1623   CPP         C preprocessor
1624
1625 Use these variables to override the choices made by `configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1627
1628 Report bugs to the package provider.
1629 _ACEOF
1630 ac_status=$?
1631 fi
1632
1633 if test "$ac_init_help" = "recursive"; then
1634   # If there are subdirs, report their specific --help.
1635   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636     test -d "$ac_dir" ||
1637       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638       continue
1639     ac_builddir=.
1640
1641 case "$ac_dir" in
1642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *)
1644   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645   # A ".." for each directory in $ac_dir_suffix.
1646   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647   case $ac_top_builddir_sub in
1648   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650   esac ;;
1651 esac
1652 ac_abs_top_builddir=$ac_pwd
1653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654 # for backward compatibility:
1655 ac_top_builddir=$ac_top_build_prefix
1656
1657 case $srcdir in
1658   .)  # We are building in place.
1659     ac_srcdir=.
1660     ac_top_srcdir=$ac_top_builddir_sub
1661     ac_abs_top_srcdir=$ac_pwd ;;
1662   [\\/]* | ?:[\\/]* )  # Absolute name.
1663     ac_srcdir=$srcdir$ac_dir_suffix;
1664     ac_top_srcdir=$srcdir
1665     ac_abs_top_srcdir=$srcdir ;;
1666   *) # Relative name.
1667     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668     ac_top_srcdir=$ac_top_build_prefix$srcdir
1669     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 esac
1671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673     cd "$ac_dir" || { ac_status=$?; continue; }
1674     # Check for guested configure.
1675     if test -f "$ac_srcdir/configure.gnu"; then
1676       echo &&
1677       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678     elif test -f "$ac_srcdir/configure"; then
1679       echo &&
1680       $SHELL "$ac_srcdir/configure" --help=recursive
1681     else
1682       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683     fi || ac_status=$?
1684     cd "$ac_pwd" || { ac_status=$?; break; }
1685   done
1686 fi
1687
1688 test -n "$ac_init_help" && exit $ac_status
1689 if $ac_init_version; then
1690   cat <<\_ACEOF
1691 configure
1692 generated by GNU Autoconf 2.69
1693
1694 Copyright (C) 2012 Free Software Foundation, Inc.
1695 This configure script is free software; the Free Software Foundation
1696 gives unlimited permission to copy, distribute and modify it.
1697 _ACEOF
1698   exit
1699 fi
1700
1701 ## ------------------------ ##
1702 ## Autoconf initialization. ##
1703 ## ------------------------ ##
1704
1705 # ac_fn_c_try_compile LINENO
1706 # --------------------------
1707 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_compile ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext
1712   if { { ac_try="$ac_compile"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_compile") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest.$ac_objext; then :
1731   ac_retval=0
1732 else
1733   $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736         ac_retval=1
1737 fi
1738   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739   as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_compile
1742
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1746 ac_fn_c_try_cpp ()
1747 {
1748   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749   if { { ac_try="$ac_cpp conftest.$ac_ext"
1750 case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757   ac_status=$?
1758   if test -s conftest.err; then
1759     grep -v '^ *+' conftest.err >conftest.er1
1760     cat conftest.er1 >&5
1761     mv -f conftest.er1 conftest.err
1762   fi
1763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764   test $ac_status = 0; } > conftest.i && {
1765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766          test ! -s conftest.err
1767        }; then :
1768   ac_retval=0
1769 else
1770   $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1772
1773     ac_retval=1
1774 fi
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776   as_fn_set_status $ac_retval
1777
1778 } # ac_fn_c_try_cpp
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext conftest$ac_exeext
1787   if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_link") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest$ac_exeext && {
1806          test "$cross_compiling" = yes ||
1807          test -x conftest$ac_exeext
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814         ac_retval=1
1815 fi
1816   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818   # interfere with the next link command; also delete a directory that is
1819   # left behind by Apple's compiler.  We do this before executing the actions.
1820   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822   as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1827 # -------------------------------------------------------
1828 # Tests whether HEADER exists and can be compiled using the include files in
1829 # INCLUDES, setting the cache variable VAR accordingly.
1830 ac_fn_c_check_header_compile ()
1831 {
1832   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836   $as_echo_n "(cached) " >&6
1837 else
1838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 $4
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844   eval "$3=yes"
1845 else
1846   eval "$3=no"
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 fi
1850 eval ac_res=\$$3
1851                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855 } # ac_fn_c_check_header_compile
1856
1857 # ac_fn_c_try_run LINENO
1858 # ----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860 # that executables *can* be run.
1861 ac_fn_c_try_run ()
1862 {
1863   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864   if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867   *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871   (eval "$ac_link") 2>&5
1872   ac_status=$?
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875   { { case "(($ac_try" in
1876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877   *) ac_try_echo=$ac_try;;
1878 esac
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881   (eval "$ac_try") 2>&5
1882   ac_status=$?
1883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884   test $ac_status = 0; }; }; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: program exited with status $ac_status" >&5
1888        $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1890
1891        ac_retval=$ac_status
1892 fi
1893   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895   as_fn_set_status $ac_retval
1896
1897 } # ac_fn_c_try_run
1898
1899 # ac_fn_c_check_func LINENO FUNC VAR
1900 # ----------------------------------
1901 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1902 ac_fn_c_check_func ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908   $as_echo_n "(cached) " >&6
1909 else
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1914 #define $2 innocuous_$2
1915
1916 /* System header to define __stub macros and hopefully few prototypes,
1917     which can conflict with char $2 (); below.
1918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919     <limits.h> exists even on freestanding compilers.  */
1920
1921 #ifdef __STDC__
1922 # include <limits.h>
1923 #else
1924 # include <assert.h>
1925 #endif
1926
1927 #undef $2
1928
1929 /* Override any GCC internal prototype to avoid an error.
1930    Use char because int might match the return type of a GCC
1931    builtin and then its argument prototype would still apply.  */
1932 #ifdef __cplusplus
1933 extern "C"
1934 #endif
1935 char $2 ();
1936 /* The GNU C library defines this for functions which it implements
1937     to always fail with ENOSYS.  Some functions are actually named
1938     something starting with __ and the normal name is an alias.  */
1939 #if defined __stub_$2 || defined __stub___$2
1940 choke me
1941 #endif
1942
1943 int
1944 main ()
1945 {
1946 return $2 ();
1947   ;
1948   return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_link "$LINENO"; then :
1952   eval "$3=yes"
1953 else
1954   eval "$3=no"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext \
1957     conftest$ac_exeext conftest.$ac_ext
1958 fi
1959 eval ac_res=\$$3
1960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964 } # ac_fn_c_check_func
1965
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   if eval \${$3+:} false; then :
1975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval \${$3+:} false; then :
1978   $as_echo_n "(cached) " >&6
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984   # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_header_compiler=yes
1994 else
1995   ac_header_compiler=no
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2000
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009   ac_header_preproc=yes
2010 else
2011   ac_header_preproc=no
2012 fi
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2016
2017 # So?  What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019   yes:no: )
2020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024     ;;
2025   no:yes:* )
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036     ;;
2037 esac
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   eval "$3=\$ac_header_compiler"
2044 fi
2045 eval ac_res=\$$3
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 fi
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_header_mongrel
2052
2053 # ac_fn_c_find_uintX_t LINENO BITS VAR
2054 # ------------------------------------
2055 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2056 # accordingly.
2057 ac_fn_c_find_uintX_t ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2061 $as_echo_n "checking for uint$2_t... " >&6; }
2062 if eval \${$3+:} false; then :
2063   $as_echo_n "(cached) " >&6
2064 else
2065   eval "$3=no"
2066      # Order is important - never check a type that is potentially smaller
2067      # than half of the expected target width.
2068      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2069          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2070        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h.  */
2072 $ac_includes_default
2073 int
2074 main ()
2075 {
2076 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2077 test_array [0] = 0;
2078 return test_array [0];
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085   case $ac_type in #(
2086   uint$2_t) :
2087     eval "$3=yes" ;; #(
2088   *) :
2089     eval "$3=\$ac_type" ;;
2090 esac
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093        if eval test \"x\$"$3"\" = x"no"; then :
2094
2095 else
2096   break
2097 fi
2098      done
2099 fi
2100 eval ac_res=\$$3
2101                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102 $as_echo "$ac_res" >&6; }
2103   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104
2105 } # ac_fn_c_find_uintX_t
2106 cat >config.log <<_ACEOF
2107 This file contains any messages produced by compilers while
2108 running configure, to aid debugging if configure makes a mistake.
2109
2110 It was created by $as_me, which was
2111 generated by GNU Autoconf 2.69.  Invocation command line was
2112
2113   $ $0 $@
2114
2115 _ACEOF
2116 exec 5>>config.log
2117 {
2118 cat <<_ASUNAME
2119 ## --------- ##
2120 ## Platform. ##
2121 ## --------- ##
2122
2123 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2131
2132 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2133 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2134 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2135 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2136 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2137 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2138 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2139
2140 _ASUNAME
2141
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145   IFS=$as_save_IFS
2146   test -z "$as_dir" && as_dir=.
2147     $as_echo "PATH: $as_dir"
2148   done
2149 IFS=$as_save_IFS
2150
2151 } >&5
2152
2153 cat >&5 <<_ACEOF
2154
2155
2156 ## ----------- ##
2157 ## Core tests. ##
2158 ## ----------- ##
2159
2160 _ACEOF
2161
2162
2163 # Keep a trace of the command line.
2164 # Strip out --no-create and --no-recursion so they do not pile up.
2165 # Strip out --silent because we don't want to record it for future runs.
2166 # Also quote any args containing shell meta-characters.
2167 # Make two passes to allow for proper duplicate-argument suppression.
2168 ac_configure_args=
2169 ac_configure_args0=
2170 ac_configure_args1=
2171 ac_must_keep_next=false
2172 for ac_pass in 1 2
2173 do
2174   for ac_arg
2175   do
2176     case $ac_arg in
2177     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179     | -silent | --silent | --silen | --sile | --sil)
2180       continue ;;
2181     *\'*)
2182       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2183     esac
2184     case $ac_pass in
2185     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2186     2)
2187       as_fn_append ac_configure_args1 " '$ac_arg'"
2188       if test $ac_must_keep_next = true; then
2189         ac_must_keep_next=false # Got value, back to normal.
2190       else
2191         case $ac_arg in
2192           *=* | --config-cache | -C | -disable-* | --disable-* \
2193           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195           | -with-* | --with-* | -without-* | --without-* | --x)
2196             case "$ac_configure_args0 " in
2197               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198             esac
2199             ;;
2200           -* ) ac_must_keep_next=true ;;
2201         esac
2202       fi
2203       as_fn_append ac_configure_args " '$ac_arg'"
2204       ;;
2205     esac
2206   done
2207 done
2208 { ac_configure_args0=; unset ac_configure_args0;}
2209 { ac_configure_args1=; unset ac_configure_args1;}
2210
2211 # When interrupted or exit'd, cleanup temporary files, and complete
2212 # config.log.  We remove comments because anyway the quotes in there
2213 # would cause problems or look ugly.
2214 # WARNING: Use '\'' to represent an apostrophe within the trap.
2215 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2216 trap 'exit_status=$?
2217   # Save into config.log some information that might help in debugging.
2218   {
2219     echo
2220
2221     $as_echo "## ---------------- ##
2222 ## Cache variables. ##
2223 ## ---------------- ##"
2224     echo
2225     # The following way of writing the cache mishandles newlines in values,
2226 (
2227   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228     eval ac_val=\$$ac_var
2229     case $ac_val in #(
2230     *${as_nl}*)
2231       case $ac_var in #(
2232       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234       esac
2235       case $ac_var in #(
2236       _ | IFS | as_nl) ;; #(
2237       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238       *) { eval $ac_var=; unset $ac_var;} ;;
2239       esac ;;
2240     esac
2241   done
2242   (set) 2>&1 |
2243     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244     *${as_nl}ac_space=\ *)
2245       sed -n \
2246         "s/'\''/'\''\\\\'\'''\''/g;
2247           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248       ;; #(
2249     *)
2250       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2251       ;;
2252     esac |
2253     sort
2254 )
2255     echo
2256
2257     $as_echo "## ----------------- ##
2258 ## Output variables. ##
2259 ## ----------------- ##"
2260     echo
2261     for ac_var in $ac_subst_vars
2262     do
2263       eval ac_val=\$$ac_var
2264       case $ac_val in
2265       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266       esac
2267       $as_echo "$ac_var='\''$ac_val'\''"
2268     done | sort
2269     echo
2270
2271     if test -n "$ac_subst_files"; then
2272       $as_echo "## ------------------- ##
2273 ## File substitutions. ##
2274 ## ------------------- ##"
2275       echo
2276       for ac_var in $ac_subst_files
2277       do
2278         eval ac_val=\$$ac_var
2279         case $ac_val in
2280         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2281         esac
2282         $as_echo "$ac_var='\''$ac_val'\''"
2283       done | sort
2284       echo
2285     fi
2286
2287     if test -s confdefs.h; then
2288       $as_echo "## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##"
2291       echo
2292       cat confdefs.h
2293       echo
2294     fi
2295     test "$ac_signal" != 0 &&
2296       $as_echo "$as_me: caught signal $ac_signal"
2297     $as_echo "$as_me: exit $exit_status"
2298   } >&5
2299   rm -f core *.core core.conftest.* &&
2300     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301     exit $exit_status
2302 ' 0
2303 for ac_signal in 1 2 13 15; do
2304   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2305 done
2306 ac_signal=0
2307
2308 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2309 rm -f -r conftest* confdefs.h
2310
2311 $as_echo "/* confdefs.h */" > confdefs.h
2312
2313 # Predefined preprocessor variables.
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 _ACEOF
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2330
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 _ACEOF
2334
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_URL "$PACKAGE_URL"
2337 _ACEOF
2338
2339
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2342 ac_site_file1=NONE
2343 ac_site_file2=NONE
2344 if test -n "$CONFIG_SITE"; then
2345   # We do not want a PATH search for config.site.
2346   case $CONFIG_SITE in #((
2347     -*)  ac_site_file1=./$CONFIG_SITE;;
2348     */*) ac_site_file1=$CONFIG_SITE;;
2349     *)   ac_site_file1=./$CONFIG_SITE;;
2350   esac
2351 elif test "x$prefix" != xNONE; then
2352   ac_site_file1=$prefix/share/config.site
2353   ac_site_file2=$prefix/etc/config.site
2354 else
2355   ac_site_file1=$ac_default_prefix/share/config.site
2356   ac_site_file2=$ac_default_prefix/etc/config.site
2357 fi
2358 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2359 do
2360   test "x$ac_site_file" = xNONE && continue
2361   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2362     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2363 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2364     sed 's/^/| /' "$ac_site_file" >&5
2365     . "$ac_site_file" \
2366       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368 as_fn_error $? "failed to load site script $ac_site_file
2369 See \`config.log' for more details" "$LINENO" 5; }
2370   fi
2371 done
2372
2373 if test -r "$cache_file"; then
2374   # Some versions of bash will fail to source /dev/null (special files
2375   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2376   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2377     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379     case $cache_file in
2380       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381       *)                      . "./$cache_file";;
2382     esac
2383   fi
2384 else
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387   >$cache_file
2388 fi
2389
2390 # Check that the precious variables saved in the cache have kept the same
2391 # value.
2392 ac_cache_corrupted=false
2393 for ac_var in $ac_precious_vars; do
2394   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395   eval ac_new_set=\$ac_env_${ac_var}_set
2396   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397   eval ac_new_val=\$ac_env_${ac_var}_value
2398   case $ac_old_set,$ac_new_set in
2399     set,)
2400       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402       ac_cache_corrupted=: ;;
2403     ,set)
2404       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406       ac_cache_corrupted=: ;;
2407     ,);;
2408     *)
2409       if test "x$ac_old_val" != "x$ac_new_val"; then
2410         # differences in whitespace do not lead to failure.
2411         ac_old_val_w=`echo x $ac_old_val`
2412         ac_new_val_w=`echo x $ac_new_val`
2413         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416           ac_cache_corrupted=:
2417         else
2418           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420           eval $ac_var=\$ac_old_val
2421         fi
2422         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2423 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2424         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2425 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2426       fi;;
2427   esac
2428   # Pass precious variables to config.status.
2429   if test "$ac_new_set" = set; then
2430     case $ac_new_val in
2431     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432     *) ac_arg=$ac_var=$ac_new_val ;;
2433     esac
2434     case " $ac_configure_args " in
2435       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2436       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437     esac
2438   fi
2439 done
2440 if $ac_cache_corrupted; then
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2446 fi
2447 ## -------------------- ##
2448 ## Main body of script. ##
2449 ## -------------------- ##
2450
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457
2458
2459 ac_config_headers="$ac_config_headers config.h"
2460
2461
2462 ac_aux_dir=
2463 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2464   if test -f "$ac_dir/install-sh"; then
2465     ac_aux_dir=$ac_dir
2466     ac_install_sh="$ac_aux_dir/install-sh -c"
2467     break
2468   elif test -f "$ac_dir/install.sh"; then
2469     ac_aux_dir=$ac_dir
2470     ac_install_sh="$ac_aux_dir/install.sh -c"
2471     break
2472   elif test -f "$ac_dir/shtool"; then
2473     ac_aux_dir=$ac_dir
2474     ac_install_sh="$ac_aux_dir/shtool install -c"
2475     break
2476   fi
2477 done
2478 if test -z "$ac_aux_dir"; then
2479   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2480 fi
2481
2482 # These three variables are undocumented and unsupported,
2483 # and are intended to be withdrawn in a future Autoconf release.
2484 # They can cause serious problems if a builder's source tree is in a directory
2485 # whose full name contains unusual characters.
2486 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2487 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2488 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2489
2490
2491 # Make sure we can run config.sub.
2492 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2493   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2494
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2496 $as_echo_n "checking build system type... " >&6; }
2497 if ${ac_cv_build+:} false; then :
2498   $as_echo_n "(cached) " >&6
2499 else
2500   ac_build_alias=$build_alias
2501 test "x$ac_build_alias" = x &&
2502   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2503 test "x$ac_build_alias" = x &&
2504   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2505 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2506   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2507
2508 fi
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2510 $as_echo "$ac_cv_build" >&6; }
2511 case $ac_cv_build in
2512 *-*-*) ;;
2513 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2514 esac
2515 build=$ac_cv_build
2516 ac_save_IFS=$IFS; IFS='-'
2517 set x $ac_cv_build
2518 shift
2519 build_cpu=$1
2520 build_vendor=$2
2521 shift; shift
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2524 build_os=$*
2525 IFS=$ac_save_IFS
2526 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2527
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2530 $as_echo_n "checking host system type... " >&6; }
2531 if ${ac_cv_host+:} false; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   if test "x$host_alias" = x; then
2535   ac_cv_host=$ac_cv_build
2536 else
2537   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2538     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2539 fi
2540
2541 fi
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2543 $as_echo "$ac_cv_host" >&6; }
2544 case $ac_cv_host in
2545 *-*-*) ;;
2546 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2547 esac
2548 host=$ac_cv_host
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_host
2551 shift
2552 host_cpu=$1
2553 host_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 host_os=$*
2558 IFS=$ac_save_IFS
2559 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2560
2561
2562
2563 LIBXML_MAJOR_VERSION=2
2564 LIBXML_MINOR_VERSION=9
2565 LIBXML_MICRO_VERSION=1
2566 LIBXML_MICRO_VERSION_SUFFIX=
2567 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2568 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2569
2570 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2571
2572 if test -f CVS/Entries ; then
2573   extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2574   echo extra=$extra
2575   if test "$extra" != ""
2576   then
2577       LIBXML_VERSION_EXTRA="-CVS$extra"
2578   fi
2579 else if test -d .svn ; then
2580   extra=`svn info | grep Revision | sed 's+Revision: ++'`
2581   echo extra=$extra
2582   if test "$extra" != ""
2583   then
2584       LIBXML_VERSION_EXTRA="-SVN$extra"
2585   fi
2586 else if test -d .git ; then
2587   extra=`git describe 2>/dev/null | sed 's+LIBXML[0-9.]*-++'`
2588   echo extra=$extra
2589   if test "$extra" != ""
2590   then
2591       LIBXML_VERSION_EXTRA="-GIT$extra"
2592   fi
2593 fi
2594 fi
2595 fi
2596
2597
2598
2599
2600
2601
2602
2603
2604 VERSION=${LIBXML_VERSION}
2605
2606 am__api_version='1.11'
2607
2608 # Find a good install program.  We prefer a C program (faster),
2609 # so one script is as good as another.  But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2614 # AIX /bin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # OS/2's system install, which has a completely different semantic
2620 # ./install, which can be erroneously created by make from ./install.sh.
2621 # Reject install programs that cannot install multiple files.
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2623 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 if test -z "$INSTALL"; then
2625 if ${ac_cv_path_install+:} false; then :
2626   $as_echo_n "(cached) " >&6
2627 else
2628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     # Account for people who put trailing slashes in PATH elements.
2634 case $as_dir/ in #((
2635   ./ | .// | /[cC]/* | \
2636   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2637   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2638   /usr/ucb/* ) ;;
2639   *)
2640     # OSF1 and SCO ODT 3.0 have their own names for install.
2641     # Don't use installbsd from OSF since it installs stuff as root
2642     # by default.
2643     for ac_prog in ginstall scoinst install; do
2644       for ac_exec_ext in '' $ac_executable_extensions; do
2645         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2646           if test $ac_prog = install &&
2647             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648             # AIX install.  It has an incompatible calling convention.
2649             :
2650           elif test $ac_prog = install &&
2651             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652             # program-specific install script used by HP pwplus--don't use.
2653             :
2654           else
2655             rm -rf conftest.one conftest.two conftest.dir
2656             echo one > conftest.one
2657             echo two > conftest.two
2658             mkdir conftest.dir
2659             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2660               test -s conftest.one && test -s conftest.two &&
2661               test -s conftest.dir/conftest.one &&
2662               test -s conftest.dir/conftest.two
2663             then
2664               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2665               break 3
2666             fi
2667           fi
2668         fi
2669       done
2670     done
2671     ;;
2672 esac
2673
2674   done
2675 IFS=$as_save_IFS
2676
2677 rm -rf conftest.one conftest.two conftest.dir
2678
2679 fi
2680   if test "${ac_cv_path_install+set}" = set; then
2681     INSTALL=$ac_cv_path_install
2682   else
2683     # As a last resort, use the slow shell script.  Don't cache a
2684     # value for INSTALL within a source directory, because that will
2685     # break other packages using the cache if that directory is
2686     # removed, or if the value is a relative name.
2687     INSTALL=$ac_install_sh
2688   fi
2689 fi
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2691 $as_echo "$INSTALL" >&6; }
2692
2693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694 # It thinks the first close brace ends the variable substitution.
2695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2696
2697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2698
2699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2702 $as_echo_n "checking whether build environment is sane... " >&6; }
2703 # Just in case
2704 sleep 1
2705 echo timestamp > conftest.file
2706 # Reject unsafe characters in $srcdir or the absolute working directory
2707 # name.  Accept space and tab only in the latter.
2708 am_lf='
2709 '
2710 case `pwd` in
2711   *[\\\"\#\$\&\'\`$am_lf]*)
2712     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2713 esac
2714 case $srcdir in
2715   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2716     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2717 esac
2718
2719 # Do `set' in a subshell so we don't clobber the current shell's
2720 # arguments.  Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2723 # directory).
2724 if (
2725    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2726    if test "$*" = "X"; then
2727       # -L didn't work.
2728       set X `ls -t "$srcdir/configure" conftest.file`
2729    fi
2730    rm -f conftest.file
2731    if test "$*" != "X $srcdir/configure conftest.file" \
2732       && test "$*" != "X conftest.file $srcdir/configure"; then
2733
2734       # If neither matched, then we have a broken ls.  This can happen
2735       # if, for instance, CONFIG_SHELL is bash and it inherits a
2736       # broken ls alias from the environment.  This has actually
2737       # happened.  Such a system could not be considered "sane".
2738       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2739 alias in your environment" "$LINENO" 5
2740    fi
2741
2742    test "$2" = conftest.file
2743    )
2744 then
2745    # Ok.
2746    :
2747 else
2748    as_fn_error $? "newly created file is older than distributed files!
2749 Check your system clock" "$LINENO" 5
2750 fi
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 $as_echo "yes" >&6; }
2753 test "$program_prefix" != NONE &&
2754   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755 # Use a double $ so make ignores it.
2756 test "$program_suffix" != NONE &&
2757   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 # Double any \ or $.
2759 # By default was `s,x,x', remove it if useless.
2760 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2762
2763 # expand $ac_aux_dir to an absolute path
2764 am_aux_dir=`cd $ac_aux_dir && pwd`
2765
2766 if test x"${MISSING+set}" != xset; then
2767   case $am_aux_dir in
2768   *\ * | *\     *)
2769     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2770   *)
2771     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2772   esac
2773 fi
2774 # Use eval to expand $SHELL
2775 if eval "$MISSING --run true"; then
2776   am_missing_run="$MISSING --run "
2777 else
2778   am_missing_run=
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2780 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2781 fi
2782
2783 if test x"${install_sh}" != xset; then
2784   case $am_aux_dir in
2785   *\ * | *\     *)
2786     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2787   *)
2788     install_sh="\${SHELL} $am_aux_dir/install-sh"
2789   esac
2790 fi
2791
2792 # Installed binaries are usually stripped using `strip' when the user
2793 # run `make install-strip'.  However `strip' might not be the right
2794 # tool to use in cross-compilation environments, therefore Automake
2795 # will honor the `STRIP' environment variable to overrule this program.
2796 if test "$cross_compiling" != no; then
2797   if test -n "$ac_tool_prefix"; then
2798   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2799 set dummy ${ac_tool_prefix}strip; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_STRIP+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   if test -n "$STRIP"; then
2806   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2810 do
2811   IFS=$as_save_IFS
2812   test -z "$as_dir" && as_dir=.
2813     for ac_exec_ext in '' $ac_executable_extensions; do
2814   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2815     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817     break 2
2818   fi
2819 done
2820   done
2821 IFS=$as_save_IFS
2822
2823 fi
2824 fi
2825 STRIP=$ac_cv_prog_STRIP
2826 if test -n "$STRIP"; then
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 $as_echo "$STRIP" >&6; }
2829 else
2830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2832 fi
2833
2834
2835 fi
2836 if test -z "$ac_cv_prog_STRIP"; then
2837   ac_ct_STRIP=$STRIP
2838   # Extract the first word of "strip", so it can be a program name with args.
2839 set dummy strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$ac_ct_STRIP"; then
2846   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853     for ac_exec_ext in '' $ac_executable_extensions; do
2854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855     ac_cv_prog_ac_ct_STRIP="strip"
2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860   done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2866 if test -n "$ac_ct_STRIP"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2868 $as_echo "$ac_ct_STRIP" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874   if test "x$ac_ct_STRIP" = x; then
2875     STRIP=":"
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     STRIP=$ac_ct_STRIP
2884   fi
2885 else
2886   STRIP="$ac_cv_prog_STRIP"
2887 fi
2888
2889 fi
2890 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2891
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2894 if test -z "$MKDIR_P"; then
2895   if ${ac_cv_path_mkdir+:} false; then :
2896   $as_echo_n "(cached) " >&6
2897 else
2898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2900 do
2901   IFS=$as_save_IFS
2902   test -z "$as_dir" && as_dir=.
2903     for ac_prog in mkdir gmkdir; do
2904          for ac_exec_ext in '' $ac_executable_extensions; do
2905            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2906            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2907              'mkdir (GNU coreutils) '* | \
2908              'mkdir (coreutils) '* | \
2909              'mkdir (fileutils) '4.1*)
2910                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2911                break 3;;
2912            esac
2913          done
2914        done
2915   done
2916 IFS=$as_save_IFS
2917
2918 fi
2919
2920   test -d ./--version && rmdir ./--version
2921   if test "${ac_cv_path_mkdir+set}" = set; then
2922     MKDIR_P="$ac_cv_path_mkdir -p"
2923   else
2924     # As a last resort, use the slow shell script.  Don't cache a
2925     # value for MKDIR_P within a source directory, because that will
2926     # break other packages using the cache if that directory is
2927     # removed, or if the value is a relative name.
2928     MKDIR_P="$ac_install_sh -d"
2929   fi
2930 fi
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2932 $as_echo "$MKDIR_P" >&6; }
2933
2934 mkdir_p="$MKDIR_P"
2935 case $mkdir_p in
2936   [\\/$]* | ?:[\\/]*) ;;
2937   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2938 esac
2939
2940 for ac_prog in gawk mawk nawk awk
2941 do
2942   # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_AWK+:} false; then :
2947   $as_echo_n "(cached) " >&6
2948 else
2949   if test -n "$AWK"; then
2950   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     for ac_exec_ext in '' $ac_executable_extensions; do
2958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959     ac_cv_prog_AWK="$ac_prog"
2960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961     break 2
2962   fi
2963 done
2964   done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 AWK=$ac_cv_prog_AWK
2970 if test -n "$AWK"; then
2971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 $as_echo "$AWK" >&6; }
2973 else
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979   test -n "$AWK" && break
2980 done
2981
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2984 set x ${MAKE-make}
2985 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   cat >conftest.make <<\_ACEOF
2990 SHELL = /bin/sh
2991 all:
2992         @echo '@@@%%%=$(MAKE)=@@@%%%'
2993 _ACEOF
2994 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2995 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2996   *@@@%%%=?*=@@@%%%*)
2997     eval ac_cv_prog_make_${ac_make}_set=yes;;
2998   *)
2999     eval ac_cv_prog_make_${ac_make}_set=no;;
3000 esac
3001 rm -f conftest.make
3002 fi
3003 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006   SET_MAKE=
3007 else
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010   SET_MAKE="MAKE=${MAKE-make}"
3011 fi
3012
3013 rm -rf .tst 2>/dev/null
3014 mkdir .tst 2>/dev/null
3015 if test -d .tst; then
3016   am__leading_dot=.
3017 else
3018   am__leading_dot=_
3019 fi
3020 rmdir .tst 2>/dev/null
3021
3022 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3023   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3024   # is not polluted with repeated "-I."
3025   am__isrc=' -I$(srcdir)'
3026   # test to see if srcdir already configured
3027   if test -f $srcdir/config.status; then
3028     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3029   fi
3030 fi
3031
3032 # test whether we have cygpath
3033 if test -z "$CYGPATH_W"; then
3034   if (cygpath --version) >/dev/null 2>/dev/null; then
3035     CYGPATH_W='cygpath -w'
3036   else
3037     CYGPATH_W=echo
3038   fi
3039 fi
3040
3041
3042 # Define the identity of the package.
3043  PACKAGE=libxml2
3044  VERSION=$VERSION
3045
3046
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE "$PACKAGE"
3049 _ACEOF
3050
3051
3052 cat >>confdefs.h <<_ACEOF
3053 #define VERSION "$VERSION"
3054 _ACEOF
3055
3056 # Some tools Automake needs.
3057
3058 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3059
3060
3061 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3062
3063
3064 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3065
3066
3067 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3068
3069
3070 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071
3072 # We need awk for the "check" target.  The system "awk" is bad on
3073 # some platforms.
3074 # Always define AMTAR for backward compatibility.  Yes, it's still used
3075 # in the wild :-(  We should find a proper way to deprecate it ...
3076 AMTAR='$${TAR-tar}'
3077
3078 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3079
3080
3081
3082
3083
3084
3085 # Support silent build rules, requires at least automake-1.11. Disable
3086 # by either passing --disable-silent-rules to configure or passing V=1
3087 # to make
3088 # Check whether --enable-silent-rules was given.
3089 if test "${enable_silent_rules+set}" = set; then :
3090   enableval=$enable_silent_rules;
3091 fi
3092
3093 case $enable_silent_rules in
3094 yes) AM_DEFAULT_VERBOSITY=0;;
3095 no)  AM_DEFAULT_VERBOSITY=1;;
3096 *)   AM_DEFAULT_VERBOSITY=0;;
3097 esac
3098 am_make=${MAKE-make}
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3100 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3101 if ${am_cv_make_support_nested_variables+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if $as_echo 'TRUE=$(BAR$(V))
3105 BAR0=false
3106 BAR1=true
3107 V=1
3108 am__doit:
3109         @$(TRUE)
3110 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3111   am_cv_make_support_nested_variables=yes
3112 else
3113   am_cv_make_support_nested_variables=no
3114 fi
3115 fi
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3117 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3118 if test $am_cv_make_support_nested_variables = yes; then
3119     AM_V='$(V)'
3120   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3121 else
3122   AM_V=$AM_DEFAULT_VERBOSITY
3123   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3124 fi
3125 AM_BACKSLASH='\'
3126
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 if test -n "$ac_tool_prefix"; then
3134   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 $as_echo_n "checking for $ac_word... " >&6; }
3138 if ${ac_cv_prog_CC+:} false; then :
3139   $as_echo_n "(cached) " >&6
3140 else
3141   if test -n "$CC"; then
3142   ac_cv_prog_CC="$CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147   IFS=$as_save_IFS
3148   test -z "$as_dir" && as_dir=.
3149     for ac_exec_ext in '' $ac_executable_extensions; do
3150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156   done
3157 IFS=$as_save_IFS
3158
3159 fi
3160 fi
3161 CC=$ac_cv_prog_CC
3162 if test -n "$CC"; then
3163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3165 else
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 fi
3169
3170
3171 fi
3172 if test -z "$ac_cv_prog_CC"; then
3173   ac_ct_CC=$CC
3174   # Extract the first word of "gcc", so it can be a program name with args.
3175 set dummy gcc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -n "$ac_ct_CC"; then
3182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189     for ac_exec_ext in '' $ac_executable_extensions; do
3190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191     ac_cv_prog_ac_ct_CC="gcc"
3192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196   done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3205 else
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210   if test "x$ac_ct_CC" = x; then
3211     CC=""
3212   else
3213     case $cross_compiling:$ac_tool_warned in
3214 yes:)
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3217 ac_tool_warned=yes ;;
3218 esac
3219     CC=$ac_ct_CC
3220   fi
3221 else
3222   CC="$ac_cv_prog_CC"
3223 fi
3224
3225 if test -z "$CC"; then
3226           if test -n "$ac_tool_prefix"; then
3227     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3228 set dummy ${ac_tool_prefix}cc; ac_word=$2
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230 $as_echo_n "checking for $ac_word... " >&6; }
3231 if ${ac_cv_prog_CC+:} false; then :
3232   $as_echo_n "(cached) " >&6
3233 else
3234   if test -n "$CC"; then
3235   ac_cv_prog_CC="$CC" # Let the user override the test.
3236 else
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_prog_CC="${ac_tool_prefix}cc"
3245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249   done
3250 IFS=$as_save_IFS
3251
3252 fi
3253 fi
3254 CC=$ac_cv_prog_CC
3255 if test -n "$CC"; then
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257 $as_echo "$CC" >&6; }
3258 else
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 fi
3262
3263
3264   fi
3265 fi
3266 if test -z "$CC"; then
3267   # Extract the first word of "cc", so it can be a program name with args.
3268 set dummy cc; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if ${ac_cv_prog_CC+:} false; then :
3272   $as_echo_n "(cached) " >&6
3273 else
3274   if test -n "$CC"; then
3275   ac_cv_prog_CC="$CC" # Let the user override the test.
3276 else
3277   ac_prog_rejected=no
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283     for ac_exec_ext in '' $ac_executable_extensions; do
3284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3286        ac_prog_rejected=yes
3287        continue
3288      fi
3289     ac_cv_prog_CC="cc"
3290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291     break 2
3292   fi
3293 done
3294   done
3295 IFS=$as_save_IFS
3296
3297 if test $ac_prog_rejected = yes; then
3298   # We found a bogon in the path, so make sure we never use it.
3299   set dummy $ac_cv_prog_CC
3300   shift
3301   if test $# != 0; then
3302     # We chose a different compiler from the bogus one.
3303     # However, it has the same basename, so the bogon will be chosen
3304     # first if we set CC to just the basename; use the full file name.
3305     shift
3306     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3307   fi
3308 fi
3309 fi
3310 fi
3311 CC=$ac_cv_prog_CC
3312 if test -n "$CC"; then
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3314 $as_echo "$CC" >&6; }
3315 else
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321 fi
3322 if test -z "$CC"; then
3323   if test -n "$ac_tool_prefix"; then
3324   for ac_prog in cl.exe
3325   do
3326     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test -n "$CC"; then
3334   ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341     for ac_exec_ext in '' $ac_executable_extensions; do
3342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345     break 2
3346   fi
3347 done
3348   done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363     test -n "$CC" && break
3364   done
3365 fi
3366 if test -z "$CC"; then
3367   ac_ct_CC=$CC
3368   for ac_prog in cl.exe
3369 do
3370   # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy $ac_prog; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   if test -n "$ac_ct_CC"; then
3378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383   IFS=$as_save_IFS
3384   test -z "$as_dir" && as_dir=.
3385     for ac_exec_ext in '' $ac_executable_extensions; do
3386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387     ac_cv_prog_ac_ct_CC="$ac_prog"
3388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389     break 2
3390   fi
3391 done
3392   done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3398 if test -n "$ac_ct_CC"; then
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3400 $as_echo "$ac_ct_CC" >&6; }
3401 else
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407   test -n "$ac_ct_CC" && break
3408 done
3409
3410   if test "x$ac_ct_CC" = x; then
3411     CC=""
3412   else
3413     case $cross_compiling:$ac_tool_warned in
3414 yes:)
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3417 ac_tool_warned=yes ;;
3418 esac
3419     CC=$ac_ct_CC
3420   fi
3421 fi
3422
3423 fi
3424
3425
3426 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error $? "no acceptable C compiler found in \$PATH
3429 See \`config.log' for more details" "$LINENO" 5; }
3430
3431 # Provide some information about the compiler.
3432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3433 set X $ac_compile
3434 ac_compiler=$2
3435 for ac_option in --version -v -V -qversion; do
3436   { { ac_try="$ac_compiler $ac_option >&5"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3444   ac_status=$?
3445   if test -s conftest.err; then
3446     sed '10a\
3447 ... rest of stderr output deleted ...
3448          10q' conftest.err >conftest.er1
3449     cat conftest.er1 >&5
3450   fi
3451   rm -f conftest.er1 conftest.err
3452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453   test $ac_status = 0; }
3454 done
3455
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 ac_clean_files_save=$ac_clean_files
3468 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3469 # Try to create an executable without -o first, disregard a.out.
3470 # It will help us diagnose broken compilers, and finding out an intuition
3471 # of exeext.
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3473 $as_echo_n "checking whether the C compiler works... " >&6; }
3474 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3475
3476 # The possible output files:
3477 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3478
3479 ac_rmfiles=
3480 for ac_file in $ac_files
3481 do
3482   case $ac_file in
3483     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3484     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3485   esac
3486 done
3487 rm -f $ac_rmfiles
3488
3489 if { { ac_try="$ac_link_default"
3490 case "(($ac_try" in
3491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492   *) ac_try_echo=$ac_try;;
3493 esac
3494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495 $as_echo "$ac_try_echo"; } >&5
3496   (eval "$ac_link_default") 2>&5
3497   ac_status=$?
3498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499   test $ac_status = 0; }; then :
3500   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3501 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3502 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3503 # so that the user can short-circuit this test for compilers unknown to
3504 # Autoconf.
3505 for ac_file in $ac_files ''
3506 do
3507   test -f "$ac_file" || continue
3508   case $ac_file in
3509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3510         ;;
3511     [ab].out )
3512         # We found the default executable, but exeext='' is most
3513         # certainly right.
3514         break;;
3515     *.* )
3516         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3517         then :; else
3518            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519         fi
3520         # We set ac_cv_exeext here because the later test for it is not
3521         # safe: cross compilers may not add the suffix if given an `-o'
3522         # argument, so we may need to know it at that point already.
3523         # Even if this section looks crufty: it has the advantage of
3524         # actually working.
3525         break;;
3526     * )
3527         break;;
3528   esac
3529 done
3530 test "$ac_cv_exeext" = no && ac_cv_exeext=
3531
3532 else
3533   ac_file=''
3534 fi
3535 if test -z "$ac_file"; then :
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3537 $as_echo "no" >&6; }
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error 77 "C compiler cannot create executables
3544 See \`config.log' for more details" "$LINENO" 5; }
3545 else
3546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3547 $as_echo "yes" >&6; }
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3550 $as_echo_n "checking for C compiler default output file name... " >&6; }
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3552 $as_echo "$ac_file" >&6; }
3553 ac_exeext=$ac_cv_exeext
3554
3555 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3556 ac_clean_files=$ac_clean_files_save
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3558 $as_echo_n "checking for suffix of executables... " >&6; }
3559 if { { ac_try="$ac_link"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566   (eval "$ac_link") 2>&5
3567   ac_status=$?
3568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569   test $ac_status = 0; }; then :
3570   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3571 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3572 # work properly (i.e., refer to `conftest.exe'), while it won't with
3573 # `rm'.
3574 for ac_file in conftest.exe conftest conftest.*; do
3575   test -f "$ac_file" || continue
3576   case $ac_file in
3577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3579           break;;
3580     * ) break;;
3581   esac
3582 done
3583 else
3584   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3587 See \`config.log' for more details" "$LINENO" 5; }
3588 fi
3589 rm -f conftest conftest$ac_cv_exeext
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3591 $as_echo "$ac_cv_exeext" >&6; }
3592
3593 rm -f conftest.$ac_ext
3594 EXEEXT=$ac_cv_exeext
3595 ac_exeext=$EXEEXT
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h.  */
3598 #include <stdio.h>
3599 int
3600 main ()
3601 {
3602 FILE *f = fopen ("conftest.out", "w");
3603  return ferror (f) || fclose (f) != 0;
3604
3605   ;
3606   return 0;
3607 }
3608 _ACEOF
3609 ac_clean_files="$ac_clean_files conftest.out"
3610 # Check that the compiler produces executables we can run.  If not, either
3611 # the compiler is broken, or we cross compile.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3613 $as_echo_n "checking whether we are cross compiling... " >&6; }
3614 if test "$cross_compiling" != yes; then
3615   { { ac_try="$ac_link"
3616 case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622   (eval "$ac_link") 2>&5
3623   ac_status=$?
3624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625   test $ac_status = 0; }
3626   if { ac_try='./conftest$ac_cv_exeext'
3627   { { case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633   (eval "$ac_try") 2>&5
3634   ac_status=$?
3635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636   test $ac_status = 0; }; }; then
3637     cross_compiling=no
3638   else
3639     if test "$cross_compiling" = maybe; then
3640         cross_compiling=yes
3641     else
3642         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot run C compiled programs.
3645 If you meant to cross compile, use \`--host'.
3646 See \`config.log' for more details" "$LINENO" 5; }
3647     fi
3648   fi
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3651 $as_echo "$cross_compiling" >&6; }
3652
3653 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3654 ac_clean_files=$ac_clean_files_save
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3656 $as_echo_n "checking for suffix of object files... " >&6; }
3657 if ${ac_cv_objext+:} false; then :
3658   $as_echo_n "(cached) " >&6
3659 else
3660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h.  */
3662
3663 int
3664 main ()
3665 {
3666
3667   ;
3668   return 0;
3669 }
3670 _ACEOF
3671 rm -f conftest.o conftest.obj
3672 if { { ac_try="$ac_compile"
3673 case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679   (eval "$ac_compile") 2>&5
3680   ac_status=$?
3681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682   test $ac_status = 0; }; then :
3683   for ac_file in conftest.o conftest.obj conftest.*; do
3684   test -f "$ac_file" || continue;
3685   case $ac_file in
3686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3687     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3688        break;;
3689   esac
3690 done
3691 else
3692   $as_echo "$as_me: failed program was:" >&5
3693 sed 's/^/| /' conftest.$ac_ext >&5
3694
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error $? "cannot compute suffix of object files: cannot compile
3698 See \`config.log' for more details" "$LINENO" 5; }
3699 fi
3700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3703 $as_echo "$ac_cv_objext" >&6; }
3704 OBJEXT=$ac_cv_objext
3705 ac_objext=$OBJEXT
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3707 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3708 if ${ac_cv_c_compiler_gnu+:} false; then :
3709   $as_echo_n "(cached) " >&6
3710 else
3711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h.  */
3713
3714 int
3715 main ()
3716 {
3717 #ifndef __GNUC__
3718        choke me
3719 #endif
3720
3721   ;
3722   return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726   ac_compiler_gnu=yes
3727 else
3728   ac_compiler_gnu=no
3729 fi
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3732
3733 fi
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3735 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3736 if test $ac_compiler_gnu = yes; then
3737   GCC=yes
3738 else
3739   GCC=
3740 fi
3741 ac_test_CFLAGS=${CFLAGS+set}
3742 ac_save_CFLAGS=$CFLAGS
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3744 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3745 if ${ac_cv_prog_cc_g+:} false; then :
3746   $as_echo_n "(cached) " >&6
3747 else
3748   ac_save_c_werror_flag=$ac_c_werror_flag
3749    ac_c_werror_flag=yes
3750    ac_cv_prog_cc_g=no
3751    CFLAGS="-g"
3752    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h.  */
3754
3755 int
3756 main ()
3757 {
3758
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764   ac_cv_prog_cc_g=yes
3765 else
3766   CFLAGS=""
3767       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769
3770 int
3771 main ()
3772 {
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779
3780 else
3781   ac_c_werror_flag=$ac_save_c_werror_flag
3782          CFLAGS="-g"
3783          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795   ac_cv_prog_cc_g=yes
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 fi
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802    ac_c_werror_flag=$ac_save_c_werror_flag
3803 fi
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3805 $as_echo "$ac_cv_prog_cc_g" >&6; }
3806 if test "$ac_test_CFLAGS" = set; then
3807   CFLAGS=$ac_save_CFLAGS
3808 elif test $ac_cv_prog_cc_g = yes; then
3809   if test "$GCC" = yes; then
3810     CFLAGS="-g -O2"
3811   else
3812     CFLAGS="-g"
3813   fi
3814 else
3815   if test "$GCC" = yes; then
3816     CFLAGS="-O2"
3817   else
3818     CFLAGS=
3819   fi
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3823 if ${ac_cv_prog_cc_c89+:} false; then :
3824   $as_echo_n "(cached) " >&6
3825 else
3826   ac_cv_prog_cc_c89=no
3827 ac_save_CC=$CC
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h.  */
3830 #include <stdarg.h>
3831 #include <stdio.h>
3832 struct stat;
3833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3834 struct buf { int x; };
3835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3836 static char *e (p, i)
3837      char **p;
3838      int i;
3839 {
3840   return p[i];
3841 }
3842 static char *f (char * (*g) (char **, int), char **p, ...)
3843 {
3844   char *s;
3845   va_list v;
3846   va_start (v,p);
3847   s = g (p, va_arg (v,int));
3848   va_end (v);
3849   return s;
3850 }
3851
3852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3853    function prototypes and stuff, but not '\xHH' hex character constants.
3854    These don't provoke an error unfortunately, instead are silently treated
3855    as 'x'.  The following induces an error, until -std is added to get
3856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3857    array size at least.  It's necessary to write '\x00'==0 to get something
3858    that's true only with -std.  */
3859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3860
3861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3862    inside strings and character constants.  */
3863 #define FOO(x) 'x'
3864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3865
3866 int test (int i, double x);
3867 struct s1 {int (*f) (int a);};
3868 struct s2 {int (*f) (double a);};
3869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3870 int argc;
3871 char **argv;
3872 int
3873 main ()
3874 {
3875 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3881         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3882 do
3883   CC="$ac_save_CC $ac_arg"
3884   if ac_fn_c_try_compile "$LINENO"; then :
3885   ac_cv_prog_cc_c89=$ac_arg
3886 fi
3887 rm -f core conftest.err conftest.$ac_objext
3888   test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 done
3890 rm -f conftest.$ac_ext
3891 CC=$ac_save_CC
3892
3893 fi
3894 # AC_CACHE_VAL
3895 case "x$ac_cv_prog_cc_c89" in
3896   x)
3897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3898 $as_echo "none needed" >&6; } ;;
3899   xno)
3900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3901 $as_echo "unsupported" >&6; } ;;
3902   *)
3903     CC="$CC $ac_cv_prog_cc_c89"
3904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3906 esac
3907 if test "x$ac_cv_prog_cc_c89" != xno; then :
3908
3909 fi
3910
3911 ac_ext=c
3912 ac_cpp='$CPP $CPPFLAGS'
3913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916 DEPDIR="${am__leading_dot}deps"
3917
3918 ac_config_commands="$ac_config_commands depfiles"
3919
3920
3921 am_make=${MAKE-make}
3922 cat > confinc << 'END'
3923 am__doit:
3924         @echo this is the am__doit target
3925 .PHONY: am__doit
3926 END
3927 # If we don't find an include directive, just comment out the code.
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3929 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3930 am__include="#"
3931 am__quote=
3932 _am_result=none
3933 # First try GNU make style include.
3934 echo "include confinc" > confmf
3935 # Ignore all kinds of additional output from `make'.
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938   am__include=include
3939   am__quote=
3940   _am_result=GNU
3941   ;;
3942 esac
3943 # Now try BSD make style include.
3944 if test "$am__include" = "#"; then
3945    echo '.include "confinc"' > confmf
3946    case `$am_make -s -f confmf 2> /dev/null` in #(
3947    *the\ am__doit\ target*)
3948      am__include=.include
3949      am__quote="\""
3950      _am_result=BSD
3951      ;;
3952    esac
3953 fi
3954
3955
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3957 $as_echo "$_am_result" >&6; }
3958 rm -f confinc confmf
3959
3960 # Check whether --enable-dependency-tracking was given.
3961 if test "${enable_dependency_tracking+set}" = set; then :
3962   enableval=$enable_dependency_tracking;
3963 fi
3964
3965 if test "x$enable_dependency_tracking" != xno; then
3966   am_depcomp="$ac_aux_dir/depcomp"
3967   AMDEPBACKSLASH='\'
3968   am__nodep='_no'
3969 fi
3970  if test "x$enable_dependency_tracking" != xno; then
3971   AMDEP_TRUE=
3972   AMDEP_FALSE='#'
3973 else
3974   AMDEP_TRUE='#'
3975   AMDEP_FALSE=
3976 fi
3977
3978
3979
3980 depcc="$CC"   am_compiler_list=
3981
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3983 $as_echo_n "checking dependency style of $depcc... " >&6; }
3984 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3985   $as_echo_n "(cached) " >&6
3986 else
3987   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3988   # We make a subdir and do the tests there.  Otherwise we can end up
3989   # making bogus files that we don't know about and never remove.  For
3990   # instance it was reported that on HP-UX the gcc test will end up
3991   # making a dummy file named `D' -- because `-MD' means `put the output
3992   # in D'.
3993   rm -rf conftest.dir
3994   mkdir conftest.dir
3995   # Copy depcomp to subdir because otherwise we won't find it if we're
3996   # using a relative directory.
3997   cp "$am_depcomp" conftest.dir
3998   cd conftest.dir
3999   # We will build objects and dependencies in a subdirectory because
4000   # it helps to detect inapplicable dependency modes.  For instance
4001   # both Tru64's cc and ICC support -MD to output dependencies as a
4002   # side effect of compilation, but ICC will put the dependencies in
4003   # the current directory while Tru64 will put them in the object
4004   # directory.
4005   mkdir sub
4006
4007   am_cv_CC_dependencies_compiler_type=none
4008   if test "$am_compiler_list" = ""; then
4009      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4010   fi
4011   am__universal=false
4012   case " $depcc " in #(
4013      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4014      esac
4015
4016   for depmode in $am_compiler_list; do
4017     # Setup a source with many dependencies, because some compilers
4018     # like to wrap large dependency lists on column 80 (with \), and
4019     # we should not choose a depcomp mode which is confused by this.
4020     #
4021     # We need to recreate these files for each test, as the compiler may
4022     # overwrite some of them when testing with obscure command lines.
4023     # This happens at least with the AIX C compiler.
4024     : > sub/conftest.c
4025     for i in 1 2 3 4 5 6; do
4026       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4027       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4028       # Solaris 8's {/usr,}/bin/sh.
4029       touch sub/conftst$i.h
4030     done
4031     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4032
4033     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4034     # mode.  It turns out that the SunPro C++ compiler does not properly
4035     # handle `-M -o', and we need to detect this.  Also, some Intel
4036     # versions had trouble with output in subdirs
4037     am__obj=sub/conftest.${OBJEXT-o}
4038     am__minus_obj="-o $am__obj"
4039     case $depmode in
4040     gcc)
4041       # This depmode causes a compiler race in universal mode.
4042       test "$am__universal" = false || continue
4043       ;;
4044     nosideeffect)
4045       # after this tag, mechanisms are not by side-effect, so they'll
4046       # only be used when explicitly requested
4047       if test "x$enable_dependency_tracking" = xyes; then
4048         continue
4049       else
4050         break
4051       fi
4052       ;;
4053     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4054       # This compiler won't grok `-c -o', but also, the minuso test has
4055       # not run yet.  These depmodes are late enough in the game, and
4056       # so weak that their functioning should not be impacted.
4057       am__obj=conftest.${OBJEXT-o}
4058       am__minus_obj=
4059       ;;
4060     none) break ;;
4061     esac
4062     if depmode=$depmode \
4063        source=sub/conftest.c object=$am__obj \
4064        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4065        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4066          >/dev/null 2>conftest.err &&
4067        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4068        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4069        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4070        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4071       # icc doesn't choke on unknown options, it will just issue warnings
4072       # or remarks (even with -Werror).  So we grep stderr for any message
4073       # that says an option was ignored or not supported.
4074       # When given -MP, icc 7.0 and 7.1 complain thusly:
4075       #   icc: Command line warning: ignoring option '-M'; no argument required
4076       # The diagnosis changed in icc 8.0:
4077       #   icc: Command line remark: option '-MP' not supported
4078       if (grep 'ignoring option' conftest.err ||
4079           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4080         am_cv_CC_dependencies_compiler_type=$depmode
4081         break
4082       fi
4083     fi
4084   done
4085
4086   cd ..
4087   rm -rf conftest.dir
4088 else
4089   am_cv_CC_dependencies_compiler_type=none
4090 fi
4091
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4094 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4095 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4096
4097  if
4098   test "x$enable_dependency_tracking" != xno \
4099   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4100   am__fastdepCC_TRUE=
4101   am__fastdepCC_FALSE='#'
4102 else
4103   am__fastdepCC_TRUE='#'
4104   am__fastdepCC_FALSE=
4105 fi
4106
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4110 $as_echo_n "checking whether ln -s works... " >&6; }
4111 LN_S=$as_ln_s
4112 if test "$LN_S" = "ln -s"; then
4113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114 $as_echo "yes" >&6; }
4115 else
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4117 $as_echo "no, using $LN_S" >&6; }
4118 fi
4119
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4127 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4128 # On Suns, sometimes $CPP names a directory.
4129 if test -n "$CPP" && test -d "$CPP"; then
4130   CPP=
4131 fi
4132 if test -z "$CPP"; then
4133   if ${ac_cv_prog_CPP+:} false; then :
4134   $as_echo_n "(cached) " >&6
4135 else
4136       # Double quotes because CPP needs to be expanded
4137     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4138     do
4139       ac_preproc_ok=false
4140 for ac_c_preproc_warn_flag in '' yes
4141 do
4142   # Use a header file that comes with gcc, so configuring glibc
4143   # with a fresh cross-compiler works.
4144   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145   # <limits.h> exists even on freestanding compilers.
4146   # On the NeXT, cc -E runs the code through the compiler's parser,
4147   # not just through cpp. "Syntax error" is here to catch this case.
4148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h.  */
4150 #ifdef __STDC__
4151 # include <limits.h>
4152 #else
4153 # include <assert.h>
4154 #endif
4155                      Syntax error
4156 _ACEOF
4157 if ac_fn_c_try_cpp "$LINENO"; then :
4158
4159 else
4160   # Broken: fails on valid input.
4161 continue
4162 fi
4163 rm -f conftest.err conftest.i conftest.$ac_ext
4164
4165   # OK, works on sane cases.  Now check whether nonexistent headers
4166   # can be detected and how.
4167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h.  */
4169 #include <ac_nonexistent.h>
4170 _ACEOF
4171 if ac_fn_c_try_cpp "$LINENO"; then :
4172   # Broken: success on invalid input.
4173 continue
4174 else
4175   # Passes both tests.
4176 ac_preproc_ok=:
4177 break
4178 fi
4179 rm -f conftest.err conftest.i conftest.$ac_ext
4180
4181 done
4182 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4183 rm -f conftest.i conftest.err conftest.$ac_ext
4184 if $ac_preproc_ok; then :
4185   break
4186 fi
4187
4188     done
4189     ac_cv_prog_CPP=$CPP
4190
4191 fi
4192   CPP=$ac_cv_prog_CPP
4193 else
4194   ac_cv_prog_CPP=$CPP
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4197 $as_echo "$CPP" >&6; }
4198 ac_preproc_ok=false
4199 for ac_c_preproc_warn_flag in '' yes
4200 do
4201   # Use a header file that comes with gcc, so configuring glibc
4202   # with a fresh cross-compiler works.
4203   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4204   # <limits.h> exists even on freestanding compilers.
4205   # On the NeXT, cc -E runs the code through the compiler's parser,
4206   # not just through cpp. "Syntax error" is here to catch this case.
4207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h.  */
4209 #ifdef __STDC__
4210 # include <limits.h>
4211 #else
4212 # include <assert.h>
4213 #endif
4214                      Syntax error
4215 _ACEOF
4216 if ac_fn_c_try_cpp "$LINENO"; then :
4217
4218 else
4219   # Broken: fails on valid input.
4220 continue
4221 fi
4222 rm -f conftest.err conftest.i conftest.$ac_ext
4223
4224   # OK, works on sane cases.  Now check whether nonexistent headers
4225   # can be detected and how.
4226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h.  */
4228 #include <ac_nonexistent.h>
4229 _ACEOF
4230 if ac_fn_c_try_cpp "$LINENO"; then :
4231   # Broken: success on invalid input.
4232 continue
4233 else
4234   # Passes both tests.
4235 ac_preproc_ok=:
4236 break
4237 fi
4238 rm -f conftest.err conftest.i conftest.$ac_ext
4239
4240 done
4241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4242 rm -f conftest.i conftest.err conftest.$ac_ext
4243 if $ac_preproc_ok; then :
4244
4245 else
4246   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4248 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4249 See \`config.log' for more details" "$LINENO" 5; }
4250 fi
4251
4252 ac_ext=c
4253 ac_cpp='$CPP $CPPFLAGS'
4254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4257
4258 # Extract the first word of "mv", so it can be a program name with args.
4259 set dummy mv; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_path_MV+:} false; then :
4263   $as_echo_n "(cached) " >&6
4264 else
4265   case $MV in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275     for ac_exec_ext in '' $ac_executable_extensions; do
4276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282   done
4283 IFS=$as_save_IFS
4284
4285   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4286   ;;
4287 esac
4288 fi
4289 MV=$ac_cv_path_MV
4290 if test -n "$MV"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4292 $as_echo "$MV" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 # Extract the first word of "tar", so it can be a program name with args.
4300 set dummy tar; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_path_TAR+:} false; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   case $TAR in
4307   [\\/]* | ?:[\\/]*)
4308   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4309   ;;
4310   *)
4311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316     for ac_exec_ext in '' $ac_executable_extensions; do
4317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323   done
4324 IFS=$as_save_IFS
4325
4326   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4327   ;;
4328 esac
4329 fi
4330 TAR=$ac_cv_path_TAR
4331 if test -n "$TAR"; then
4332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4333 $as_echo "$TAR" >&6; }
4334 else
4335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339
4340 # Extract the first word of "perl", so it can be a program name with args.
4341 set dummy perl; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if ${ac_cv_path_PERL+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347   case $PERL in
4348   [\\/]* | ?:[\\/]*)
4349   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4350   ;;
4351   *)
4352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357     for ac_exec_ext in '' $ac_executable_extensions; do
4358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361     break 2
4362   fi
4363 done
4364   done
4365 IFS=$as_save_IFS
4366
4367   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4368   ;;
4369 esac
4370 fi
4371 PERL=$ac_cv_path_PERL
4372 if test -n "$PERL"; then
4373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4374 $as_echo "$PERL" >&6; }
4375 else
4376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377 $as_echo "no" >&6; }
4378 fi
4379
4380
4381 # Extract the first word of "wget", so it can be a program name with args.
4382 set dummy wget; ac_word=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_path_WGET+:} false; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   case $WGET in
4389   [\\/]* | ?:[\\/]*)
4390   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4391   ;;
4392   *)
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398     for ac_exec_ext in '' $ac_executable_extensions; do
4399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405   done
4406 IFS=$as_save_IFS
4407
4408   test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4409   ;;
4410 esac
4411 fi
4412 WGET=$ac_cv_path_WGET
4413 if test -n "$WGET"; then
4414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4415 $as_echo "$WGET" >&6; }
4416 else
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421
4422 # Extract the first word of "xmllint", so it can be a program name with args.
4423 set dummy xmllint; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_path_XMLLINT+:} false; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   case $XMLLINT in
4430   [\\/]* | ?:[\\/]*)
4431   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4432   ;;
4433   *)
4434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439     for ac_exec_ext in '' $ac_executable_extensions; do
4440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446   done
4447 IFS=$as_save_IFS
4448
4449   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4450   ;;
4451 esac
4452 fi
4453 XMLLINT=$ac_cv_path_XMLLINT
4454 if test -n "$XMLLINT"; then
4455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4456 $as_echo "$XMLLINT" >&6; }
4457 else
4458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4460 fi
4461
4462
4463 # Extract the first word of "xsltproc", so it can be a program name with args.
4464 set dummy xsltproc; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if ${ac_cv_path_XSLTPROC+:} false; then :
4468   $as_echo_n "(cached) " >&6
4469 else
4470   case $XSLTPROC in
4471   [\\/]* | ?:[\\/]*)
4472   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4473   ;;
4474   *)
4475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4482     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487   done
4488 IFS=$as_save_IFS
4489
4490   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4491   ;;
4492 esac
4493 fi
4494 XSLTPROC=$ac_cv_path_XSLTPROC
4495 if test -n "$XSLTPROC"; then
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4497 $as_echo "$XSLTPROC" >&6; }
4498 else
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503
4504
4505 case `pwd` in
4506   *\ * | *\     *)
4507     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4508 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4509 esac
4510
4511
4512
4513 macro_version='2.4.2'
4514 macro_revision='1.3337'
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528 ltmain="$ac_aux_dir/ltmain.sh"
4529
4530 # Backslashify metacharacters that are still active within
4531 # double-quoted strings.
4532 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4533
4534 # Same as above, but do not quote variable references.
4535 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4536
4537 # Sed substitution to delay expansion of an escaped shell variable in a
4538 # double_quote_subst'ed string.
4539 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4540
4541 # Sed substitution to delay expansion of an escaped single quote.
4542 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4543
4544 # Sed substitution to avoid accidental globbing in evaled expressions
4545 no_glob_subst='s/\*/\\\*/g'
4546
4547 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4548 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4549 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4552 $as_echo_n "checking how to print strings... " >&6; }
4553 # Test print first, because it will be a builtin if present.
4554 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4555    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4556   ECHO='print -r --'
4557 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4558   ECHO='printf %s\n'
4559 else
4560   # Use this function as a fallback that always works.
4561   func_fallback_echo ()
4562   {
4563     eval 'cat <<_LTECHO_EOF
4564 $1
4565 _LTECHO_EOF'
4566   }
4567   ECHO='func_fallback_echo'
4568 fi
4569
4570 # func_echo_all arg...
4571 # Invoke $ECHO with all args, space-separated.
4572 func_echo_all ()
4573 {
4574     $ECHO ""
4575 }
4576
4577 case "$ECHO" in
4578   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4579 $as_echo "printf" >&6; } ;;
4580   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4581 $as_echo "print -r" >&6; } ;;
4582   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4583 $as_echo "cat" >&6; } ;;
4584 esac
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4600 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4601 if ${ac_cv_path_SED+:} false; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4605      for ac_i in 1 2 3 4 5 6 7; do
4606        ac_script="$ac_script$as_nl$ac_script"
4607      done
4608      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4609      { ac_script=; unset ac_script;}
4610      if test -z "$SED"; then
4611   ac_path_SED_found=false
4612   # Loop through the user's path and test for each of PROGNAME-LIST
4613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_prog in sed gsed; do
4619     for ac_exec_ext in '' $ac_executable_extensions; do
4620       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4621       as_fn_executable_p "$ac_path_SED" || continue
4622 # Check for GNU ac_path_SED and select it if it is found.
4623   # Check for GNU $ac_path_SED
4624 case `"$ac_path_SED" --version 2>&1` in
4625 *GNU*)
4626   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4627 *)
4628   ac_count=0
4629   $as_echo_n 0123456789 >"conftest.in"
4630   while :
4631   do
4632     cat "conftest.in" "conftest.in" >"conftest.tmp"
4633     mv "conftest.tmp" "conftest.in"
4634     cp "conftest.in" "conftest.nl"
4635     $as_echo '' >> "conftest.nl"
4636     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4637     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4638     as_fn_arith $ac_count + 1 && ac_count=$as_val
4639     if test $ac_count -gt ${ac_path_SED_max-0}; then
4640       # Best one so far, save it but keep looking for a better one
4641       ac_cv_path_SED="$ac_path_SED"
4642       ac_path_SED_max=$ac_count
4643     fi
4644     # 10*(2^10) chars as input seems more than enough
4645     test $ac_count -gt 10 && break
4646   done
4647   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4648 esac
4649
4650       $ac_path_SED_found && break 3
4651     done
4652   done
4653   done
4654 IFS=$as_save_IFS
4655   if test -z "$ac_cv_path_SED"; then
4656     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4657   fi
4658 else
4659   ac_cv_path_SED=$SED
4660 fi
4661
4662 fi
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4664 $as_echo "$ac_cv_path_SED" >&6; }
4665  SED="$ac_cv_path_SED"
4666   rm -f conftest.sed
4667
4668 test -z "$SED" && SED=sed
4669 Xsed="$SED -e 1s/^X//"
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4682 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4683 if ${ac_cv_path_GREP+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   if test -z "$GREP"; then
4687   ac_path_GREP_found=false
4688   # Loop through the user's path and test for each of PROGNAME-LIST
4689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_prog in grep ggrep; do
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4697       as_fn_executable_p "$ac_path_GREP" || continue
4698 # Check for GNU ac_path_GREP and select it if it is found.
4699   # Check for GNU $ac_path_GREP
4700 case `"$ac_path_GREP" --version 2>&1` in
4701 *GNU*)
4702   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4703 *)
4704   ac_count=0
4705   $as_echo_n 0123456789 >"conftest.in"
4706   while :
4707   do
4708     cat "conftest.in" "conftest.in" >"conftest.tmp"
4709     mv "conftest.tmp" "conftest.in"
4710     cp "conftest.in" "conftest.nl"
4711     $as_echo 'GREP' >> "conftest.nl"
4712     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714     as_fn_arith $ac_count + 1 && ac_count=$as_val
4715     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4716       # Best one so far, save it but keep looking for a better one
4717       ac_cv_path_GREP="$ac_path_GREP"
4718       ac_path_GREP_max=$ac_count
4719     fi
4720     # 10*(2^10) chars as input seems more than enough
4721     test $ac_count -gt 10 && break
4722   done
4723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726       $ac_path_GREP_found && break 3
4727     done
4728   done
4729   done
4730 IFS=$as_save_IFS
4731   if test -z "$ac_cv_path_GREP"; then
4732     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733   fi
4734 else
4735   ac_cv_path_GREP=$GREP
4736 fi
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4740 $as_echo "$ac_cv_path_GREP" >&6; }
4741  GREP="$ac_cv_path_GREP"
4742
4743
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4745 $as_echo_n "checking for egrep... " >&6; }
4746 if ${ac_cv_path_EGREP+:} false; then :
4747   $as_echo_n "(cached) " >&6
4748 else
4749   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4750    then ac_cv_path_EGREP="$GREP -E"
4751    else
4752      if test -z "$EGREP"; then
4753   ac_path_EGREP_found=false
4754   # Loop through the user's path and test for each of PROGNAME-LIST
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760     for ac_prog in egrep; do
4761     for ac_exec_ext in '' $ac_executable_extensions; do
4762       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4763       as_fn_executable_p "$ac_path_EGREP" || continue
4764 # Check for GNU ac_path_EGREP and select it if it is found.
4765   # Check for GNU $ac_path_EGREP
4766 case `"$ac_path_EGREP" --version 2>&1` in
4767 *GNU*)
4768   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4769 *)
4770   ac_count=0
4771   $as_echo_n 0123456789 >"conftest.in"
4772   while :
4773   do
4774     cat "conftest.in" "conftest.in" >"conftest.tmp"
4775     mv "conftest.tmp" "conftest.in"
4776     cp "conftest.in" "conftest.nl"
4777     $as_echo 'EGREP' >> "conftest.nl"
4778     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4779     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4780     as_fn_arith $ac_count + 1 && ac_count=$as_val
4781     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4782       # Best one so far, save it but keep looking for a better one
4783       ac_cv_path_EGREP="$ac_path_EGREP"
4784       ac_path_EGREP_max=$ac_count
4785     fi
4786     # 10*(2^10) chars as input seems more than enough
4787     test $ac_count -gt 10 && break
4788   done
4789   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4790 esac
4791
4792       $ac_path_EGREP_found && break 3
4793     done
4794   done
4795   done
4796 IFS=$as_save_IFS
4797   if test -z "$ac_cv_path_EGREP"; then
4798     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4799   fi
4800 else
4801   ac_cv_path_EGREP=$EGREP
4802 fi
4803
4804    fi
4805 fi
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4807 $as_echo "$ac_cv_path_EGREP" >&6; }
4808  EGREP="$ac_cv_path_EGREP"
4809
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4812 $as_echo_n "checking for fgrep... " >&6; }
4813 if ${ac_cv_path_FGREP+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4817    then ac_cv_path_FGREP="$GREP -F"
4818    else
4819      if test -z "$FGREP"; then
4820   ac_path_FGREP_found=false
4821   # Loop through the user's path and test for each of PROGNAME-LIST
4822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4824 do
4825   IFS=$as_save_IFS
4826   test -z "$as_dir" && as_dir=.
4827     for ac_prog in fgrep; do
4828     for ac_exec_ext in '' $ac_executable_extensions; do
4829       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4830       as_fn_executable_p "$ac_path_FGREP" || continue
4831 # Check for GNU ac_path_FGREP and select it if it is found.
4832   # Check for GNU $ac_path_FGREP
4833 case `"$ac_path_FGREP" --version 2>&1` in
4834 *GNU*)
4835   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4836 *)
4837   ac_count=0
4838   $as_echo_n 0123456789 >"conftest.in"
4839   while :
4840   do
4841     cat "conftest.in" "conftest.in" >"conftest.tmp"
4842     mv "conftest.tmp" "conftest.in"
4843     cp "conftest.in" "conftest.nl"
4844     $as_echo 'FGREP' >> "conftest.nl"
4845     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847     as_fn_arith $ac_count + 1 && ac_count=$as_val
4848     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4849       # Best one so far, save it but keep looking for a better one
4850       ac_cv_path_FGREP="$ac_path_FGREP"
4851       ac_path_FGREP_max=$ac_count
4852     fi
4853     # 10*(2^10) chars as input seems more than enough
4854     test $ac_count -gt 10 && break
4855   done
4856   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857 esac
4858
4859       $ac_path_FGREP_found && break 3
4860     done
4861   done
4862   done
4863 IFS=$as_save_IFS
4864   if test -z "$ac_cv_path_FGREP"; then
4865     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4866   fi
4867 else
4868   ac_cv_path_FGREP=$FGREP
4869 fi
4870
4871    fi
4872 fi
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4874 $as_echo "$ac_cv_path_FGREP" >&6; }
4875  FGREP="$ac_cv_path_FGREP"
4876
4877
4878 test -z "$GREP" && GREP=grep
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898 # Check whether --with-gnu-ld was given.
4899 if test "${with_gnu_ld+set}" = set; then :
4900   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4901 else
4902   with_gnu_ld=no
4903 fi
4904
4905 ac_prog=ld
4906 if test "$GCC" = yes; then
4907   # Check if gcc -print-prog-name=ld gives a path.
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4909 $as_echo_n "checking for ld used by $CC... " >&6; }
4910   case $host in
4911   *-*-mingw*)
4912     # gcc leaves a trailing carriage return which upsets mingw
4913     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4914   *)
4915     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4916   esac
4917   case $ac_prog in
4918     # Accept absolute paths.
4919     [\\/]* | ?:[\\/]*)
4920       re_direlt='/[^/][^/]*/\.\./'
4921       # Canonicalize the pathname of ld
4922       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4923       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4924         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4925       done
4926       test -z "$LD" && LD="$ac_prog"
4927       ;;
4928   "")
4929     # If it fails, then pretend we aren't using GCC.
4930     ac_prog=ld
4931     ;;
4932   *)
4933     # If it is relative, then search for the first ld in PATH.
4934     with_gnu_ld=unknown
4935     ;;
4936   esac
4937 elif test "$with_gnu_ld" = yes; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4939 $as_echo_n "checking for GNU ld... " >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4942 $as_echo_n "checking for non-GNU ld... " >&6; }
4943 fi
4944 if ${lt_cv_path_LD+:} false; then :
4945   $as_echo_n "(cached) " >&6
4946 else
4947   if test -z "$LD"; then
4948   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4949   for ac_dir in $PATH; do
4950     IFS="$lt_save_ifs"
4951     test -z "$ac_dir" && ac_dir=.
4952     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4953       lt_cv_path_LD="$ac_dir/$ac_prog"
4954       # Check to see if the program is GNU ld.  I'd rather use --version,
4955       # but apparently some variants of GNU ld only accept -v.
4956       # Break only if it was the GNU/non-GNU ld that we prefer.
4957       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4958       *GNU* | *'with BFD'*)
4959         test "$with_gnu_ld" != no && break
4960         ;;
4961       *)
4962         test "$with_gnu_ld" != yes && break
4963         ;;
4964       esac
4965     fi
4966   done
4967   IFS="$lt_save_ifs"
4968 else
4969   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4970 fi
4971 fi
4972
4973 LD="$lt_cv_path_LD"
4974 if test -n "$LD"; then
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4976 $as_echo "$LD" >&6; }
4977 else
4978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4980 fi
4981 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4983 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4984 if ${lt_cv_prog_gnu_ld+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4988 case `$LD -v 2>&1 </dev/null` in
4989 *GNU* | *'with BFD'*)
4990   lt_cv_prog_gnu_ld=yes
4991   ;;
4992 *)
4993   lt_cv_prog_gnu_ld=no
4994   ;;
4995 esac
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4998 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4999 with_gnu_ld=$lt_cv_prog_gnu_ld
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5010 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5011 if ${lt_cv_path_NM+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   if test -n "$NM"; then
5015   # Let the user override the test.
5016   lt_cv_path_NM="$NM"
5017 else
5018   lt_nm_to_check="${ac_tool_prefix}nm"
5019   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5020     lt_nm_to_check="$lt_nm_to_check nm"
5021   fi
5022   for lt_tmp_nm in $lt_nm_to_check; do
5023     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5024     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5025       IFS="$lt_save_ifs"
5026       test -z "$ac_dir" && ac_dir=.
5027       tmp_nm="$ac_dir/$lt_tmp_nm"
5028       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5029         # Check to see if the nm accepts a BSD-compat flag.
5030         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5031         #   nm: unknown option "B" ignored
5032         # Tru64's nm complains that /dev/null is an invalid object file
5033         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5034         */dev/null* | *'Invalid file or object type'*)
5035           lt_cv_path_NM="$tmp_nm -B"
5036           break
5037           ;;
5038         *)
5039           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5040           */dev/null*)
5041             lt_cv_path_NM="$tmp_nm -p"
5042             break
5043             ;;
5044           *)
5045             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5046             continue # so that we can try to find one that supports BSD flags
5047             ;;
5048           esac
5049           ;;
5050         esac
5051       fi
5052     done
5053     IFS="$lt_save_ifs"
5054   done
5055   : ${lt_cv_path_NM=no}
5056 fi
5057 fi
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5059 $as_echo "$lt_cv_path_NM" >&6; }
5060 if test "$lt_cv_path_NM" != "no"; then
5061   NM="$lt_cv_path_NM"
5062 else
5063   # Didn't find any BSD compatible name lister, look for dumpbin.
5064   if test -n "$DUMPBIN"; then :
5065     # Let the user override the test.
5066   else
5067     if test -n "$ac_tool_prefix"; then
5068   for ac_prog in dumpbin "link -dump"
5069   do
5070     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_DUMPBIN+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   if test -n "$DUMPBIN"; then
5078   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083   IFS=$as_save_IFS
5084   test -z "$as_dir" && as_dir=.
5085     for ac_exec_ext in '' $ac_executable_extensions; do
5086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089     break 2
5090   fi
5091 done
5092   done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 DUMPBIN=$ac_cv_prog_DUMPBIN
5098 if test -n "$DUMPBIN"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5100 $as_echo "$DUMPBIN" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106
5107     test -n "$DUMPBIN" && break
5108   done
5109 fi
5110 if test -z "$DUMPBIN"; then
5111   ac_ct_DUMPBIN=$DUMPBIN
5112   for ac_prog in dumpbin "link -dump"
5113 do
5114   # Extract the first word of "$ac_prog", so it can be a program name with args.
5115 set dummy $ac_prog; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -n "$ac_ct_DUMPBIN"; then
5122   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5142 if test -n "$ac_ct_DUMPBIN"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5144 $as_echo "$ac_ct_DUMPBIN" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151   test -n "$ac_ct_DUMPBIN" && break
5152 done
5153
5154   if test "x$ac_ct_DUMPBIN" = x; then
5155     DUMPBIN=":"
5156   else
5157     case $cross_compiling:$ac_tool_warned in
5158 yes:)
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5161 ac_tool_warned=yes ;;
5162 esac
5163     DUMPBIN=$ac_ct_DUMPBIN
5164   fi
5165 fi
5166
5167     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5168     *COFF*)
5169       DUMPBIN="$DUMPBIN -symbols"
5170       ;;
5171     *)
5172       DUMPBIN=:
5173       ;;
5174     esac
5175   fi
5176
5177   if test "$DUMPBIN" != ":"; then
5178     NM="$DUMPBIN"
5179   fi
5180 fi
5181 test -z "$NM" && NM=nm
5182
5183
5184
5185
5186
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5189 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5190 if ${lt_cv_nm_interface+:} false; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   lt_cv_nm_interface="BSD nm"
5194   echo "int some_variable = 0;" > conftest.$ac_ext
5195   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5196   (eval "$ac_compile" 2>conftest.err)
5197   cat conftest.err >&5
5198   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5199   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5200   cat conftest.err >&5
5201   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5202   cat conftest.out >&5
5203   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5204     lt_cv_nm_interface="MS dumpbin"
5205   fi
5206   rm -f conftest*
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5209 $as_echo "$lt_cv_nm_interface" >&6; }
5210
5211 # find the maximum length of command line arguments
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5213 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5214 if ${lt_cv_sys_max_cmd_len+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217     i=0
5218   teststring="ABCD"
5219
5220   case $build_os in
5221   msdosdjgpp*)
5222     # On DJGPP, this test can blow up pretty badly due to problems in libc
5223     # (any single argument exceeding 2000 bytes causes a buffer overrun
5224     # during glob expansion).  Even if it were fixed, the result of this
5225     # check would be larger than it should be.
5226     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5227     ;;
5228
5229   gnu*)
5230     # Under GNU Hurd, this test is not required because there is
5231     # no limit to the length of command line arguments.
5232     # Libtool will interpret -1 as no limit whatsoever
5233     lt_cv_sys_max_cmd_len=-1;
5234     ;;
5235
5236   cygwin* | mingw* | cegcc*)
5237     # On Win9x/ME, this test blows up -- it succeeds, but takes
5238     # about 5 minutes as the teststring grows exponentially.
5239     # Worse, since 9x/ME are not pre-emptively multitasking,
5240     # you end up with a "frozen" computer, even though with patience
5241     # the test eventually succeeds (with a max line length of 256k).
5242     # Instead, let's just punt: use the minimum linelength reported by
5243     # all of the supported platforms: 8192 (on NT/2K/XP).
5244     lt_cv_sys_max_cmd_len=8192;
5245     ;;
5246
5247   mint*)
5248     # On MiNT this can take a long time and run out of memory.
5249     lt_cv_sys_max_cmd_len=8192;
5250     ;;
5251
5252   amigaos*)
5253     # On AmigaOS with pdksh, this test takes hours, literally.
5254     # So we just punt and use a minimum line length of 8192.
5255     lt_cv_sys_max_cmd_len=8192;
5256     ;;
5257
5258   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5259     # This has been around since 386BSD, at least.  Likely further.
5260     if test -x /sbin/sysctl; then
5261       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5262     elif test -x /usr/sbin/sysctl; then
5263       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5264     else
5265       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5266     fi
5267     # And add a safety zone
5268     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5269     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5270     ;;
5271
5272   interix*)
5273     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5274     lt_cv_sys_max_cmd_len=196608
5275     ;;
5276
5277   os2*)
5278     # The test takes a long time on OS/2.
5279     lt_cv_sys_max_cmd_len=8192
5280     ;;
5281
5282   osf*)
5283     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5284     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5285     # nice to cause kernel panics so lets avoid the loop below.
5286     # First set a reasonable default.
5287     lt_cv_sys_max_cmd_len=16384
5288     #
5289     if test -x /sbin/sysconfig; then
5290       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5291         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5292       esac
5293     fi
5294     ;;
5295   sco3.2v5*)
5296     lt_cv_sys_max_cmd_len=102400
5297     ;;
5298   sysv5* | sco5v6* | sysv4.2uw2*)
5299     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5300     if test -n "$kargmax"; then
5301       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5302     else
5303       lt_cv_sys_max_cmd_len=32768
5304     fi
5305     ;;
5306   *)
5307     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5308     if test -n "$lt_cv_sys_max_cmd_len"; then
5309       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5310       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5311     else
5312       # Make teststring a little bigger before we do anything with it.
5313       # a 1K string should be a reasonable start.
5314       for i in 1 2 3 4 5 6 7 8 ; do
5315         teststring=$teststring$teststring
5316       done
5317       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5318       # If test is not a shell built-in, we'll probably end up computing a
5319       # maximum length that is only half of the actual maximum length, but
5320       # we can't tell.
5321       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5322                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5323               test $i != 17 # 1/2 MB should be enough
5324       do
5325         i=`expr $i + 1`
5326         teststring=$teststring$teststring
5327       done
5328       # Only check the string length outside the loop.
5329       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5330       teststring=
5331       # Add a significant safety factor because C++ compilers can tack on
5332       # massive amounts of additional arguments before passing them to the
5333       # linker.  It appears as though 1/2 is a usable value.
5334       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5335     fi
5336     ;;
5337   esac
5338
5339 fi
5340
5341 if test -n $lt_cv_sys_max_cmd_len ; then
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5343 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5344 else
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5346 $as_echo "none" >&6; }
5347 fi
5348 max_cmd_len=$lt_cv_sys_max_cmd_len
5349
5350
5351
5352
5353
5354
5355 : ${CP="cp -f"}
5356 : ${MV="mv -f"}
5357 : ${RM="rm -f"}
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5360 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5361 # Try some XSI features
5362 xsi_shell=no
5363 ( _lt_dummy="a/b/c"
5364   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5365       = c,a/b,b/c, \
5366     && eval 'test $(( 1 + 1 )) -eq 2 \
5367     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5368   && xsi_shell=yes
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5370 $as_echo "$xsi_shell" >&6; }
5371
5372
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5374 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5375 lt_shell_append=no
5376 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5377     >/dev/null 2>&1 \
5378   && lt_shell_append=yes
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5380 $as_echo "$lt_shell_append" >&6; }
5381
5382
5383 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5384   lt_unset=unset
5385 else
5386   lt_unset=false
5387 fi
5388
5389
5390
5391
5392
5393 # test EBCDIC or ASCII
5394 case `echo X|tr X '\101'` in
5395  A) # ASCII based system
5396     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5397   lt_SP2NL='tr \040 \012'
5398   lt_NL2SP='tr \015\012 \040\040'
5399   ;;
5400  *) # EBCDIC based system
5401   lt_SP2NL='tr \100 \n'
5402   lt_NL2SP='tr \r\n \100\100'
5403   ;;
5404 esac
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5415 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5416 if ${lt_cv_to_host_file_cmd+:} false; then :
5417   $as_echo_n "(cached) " >&6
5418 else
5419   case $host in
5420   *-*-mingw* )
5421     case $build in
5422       *-*-mingw* ) # actually msys
5423         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5424         ;;
5425       *-*-cygwin* )
5426         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5427         ;;
5428       * ) # otherwise, assume *nix
5429         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5430         ;;
5431     esac
5432     ;;
5433   *-*-cygwin* )
5434     case $build in
5435       *-*-mingw* ) # actually msys
5436         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5437         ;;
5438       *-*-cygwin* )
5439         lt_cv_to_host_file_cmd=func_convert_file_noop
5440         ;;
5441       * ) # otherwise, assume *nix
5442         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5443         ;;
5444     esac
5445     ;;
5446   * ) # unhandled hosts (and "normal" native builds)
5447     lt_cv_to_host_file_cmd=func_convert_file_noop
5448     ;;
5449 esac
5450
5451 fi
5452
5453 to_host_file_cmd=$lt_cv_to_host_file_cmd
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5455 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5456
5457
5458
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5462 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5463 if ${lt_cv_to_tool_file_cmd+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   #assume ordinary cross tools, or native build.
5467 lt_cv_to_tool_file_cmd=func_convert_file_noop
5468 case $host in
5469   *-*-mingw* )
5470     case $build in
5471       *-*-mingw* ) # actually msys
5472         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5473         ;;
5474     esac
5475     ;;
5476 esac
5477
5478 fi
5479
5480 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5482 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5483
5484
5485
5486
5487
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5489 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5490 if ${lt_cv_ld_reload_flag+:} false; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   lt_cv_ld_reload_flag='-r'
5494 fi
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5496 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5497 reload_flag=$lt_cv_ld_reload_flag
5498 case $reload_flag in
5499 "" | " "*) ;;
5500 *) reload_flag=" $reload_flag" ;;
5501 esac
5502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5503 case $host_os in
5504   cygwin* | mingw* | pw32* | cegcc*)
5505     if test "$GCC" != yes; then
5506       reload_cmds=false
5507     fi
5508     ;;
5509   darwin*)
5510     if test "$GCC" = yes; then
5511       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5512     else
5513       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5514     fi
5515     ;;
5516 esac
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 if test -n "$ac_tool_prefix"; then
5527   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5528 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if ${ac_cv_prog_OBJDUMP+:} false; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   if test -n "$OBJDUMP"; then
5535   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5536 else
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 for as_dir in $PATH
5539 do
5540   IFS=$as_save_IFS
5541   test -z "$as_dir" && as_dir=.
5542     for ac_exec_ext in '' $ac_executable_extensions; do
5543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5546     break 2
5547   fi
5548 done
5549   done
5550 IFS=$as_save_IFS
5551
5552 fi
5553 fi
5554 OBJDUMP=$ac_cv_prog_OBJDUMP
5555 if test -n "$OBJDUMP"; then
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5557 $as_echo "$OBJDUMP" >&6; }
5558 else
5559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562
5563
5564 fi
5565 if test -z "$ac_cv_prog_OBJDUMP"; then
5566   ac_ct_OBJDUMP=$OBJDUMP
5567   # Extract the first word of "objdump", so it can be a program name with args.
5568 set dummy objdump; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   if test -n "$ac_ct_OBJDUMP"; then
5575   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_exec_ext in '' $ac_executable_extensions; do
5583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586     break 2
5587   fi
5588 done
5589   done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5595 if test -n "$ac_ct_OBJDUMP"; then
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5597 $as_echo "$ac_ct_OBJDUMP" >&6; }
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603   if test "x$ac_ct_OBJDUMP" = x; then
5604     OBJDUMP="false"
5605   else
5606     case $cross_compiling:$ac_tool_warned in
5607 yes:)
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned=yes ;;
5611 esac
5612     OBJDUMP=$ac_ct_OBJDUMP
5613   fi
5614 else
5615   OBJDUMP="$ac_cv_prog_OBJDUMP"
5616 fi
5617
5618 test -z "$OBJDUMP" && OBJDUMP=objdump
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5629 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5630 if ${lt_cv_deplibs_check_method+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   lt_cv_file_magic_cmd='$MAGIC_CMD'
5634 lt_cv_file_magic_test_file=
5635 lt_cv_deplibs_check_method='unknown'
5636 # Need to set the preceding variable on all platforms that support
5637 # interlibrary dependencies.
5638 # 'none' -- dependencies not supported.
5639 # `unknown' -- same as none, but documents that we really don't know.
5640 # 'pass_all' -- all dependencies passed with no checks.
5641 # 'test_compile' -- check by making test program.
5642 # 'file_magic [[regex]]' -- check by looking for files in library path
5643 # which responds to the $file_magic_cmd with a given extended regex.
5644 # If you have `file' or equivalent on your system and you're not sure
5645 # whether `pass_all' will *always* work, you probably want this one.
5646
5647 case $host_os in
5648 aix[4-9]*)
5649   lt_cv_deplibs_check_method=pass_all
5650   ;;
5651
5652 beos*)
5653   lt_cv_deplibs_check_method=pass_all
5654   ;;
5655
5656 bsdi[45]*)
5657   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5658   lt_cv_file_magic_cmd='/usr/bin/file -L'
5659   lt_cv_file_magic_test_file=/shlib/libc.so
5660   ;;
5661
5662 cygwin*)
5663   # func_win32_libid is a shell function defined in ltmain.sh
5664   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5665   lt_cv_file_magic_cmd='func_win32_libid'
5666   ;;
5667
5668 mingw* | pw32*)
5669   # Base MSYS/MinGW do not provide the 'file' command needed by
5670   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5671   # unless we find 'file', for example because we are cross-compiling.
5672   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5673   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5674     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675     lt_cv_file_magic_cmd='func_win32_libid'
5676   else
5677     # Keep this pattern in sync with the one in func_win32_libid.
5678     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5679     lt_cv_file_magic_cmd='$OBJDUMP -f'
5680   fi
5681   ;;
5682
5683 cegcc*)
5684   # use the weaker test based on 'objdump'. See mingw*.
5685   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5686   lt_cv_file_magic_cmd='$OBJDUMP -f'
5687   ;;
5688
5689 darwin* | rhapsody*)
5690   lt_cv_deplibs_check_method=pass_all
5691   ;;
5692
5693 freebsd* | dragonfly*)
5694   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5695     case $host_cpu in
5696     i*86 )
5697       # Not sure whether the presence of OpenBSD here was a mistake.
5698       # Let's accept both of them until this is cleared up.
5699       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5700       lt_cv_file_magic_cmd=/usr/bin/file
5701       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5702       ;;
5703     esac
5704   else
5705     lt_cv_deplibs_check_method=pass_all
5706   fi
5707   ;;
5708
5709 gnu*)
5710   lt_cv_deplibs_check_method=pass_all
5711   ;;
5712
5713 haiku*)
5714   lt_cv_deplibs_check_method=pass_all
5715   ;;
5716
5717 hpux10.20* | hpux11*)
5718   lt_cv_file_magic_cmd=/usr/bin/file
5719   case $host_cpu in
5720   ia64*)
5721     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5722     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5723     ;;
5724   hppa*64*)
5725     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]'
5726     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5727     ;;
5728   *)
5729     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5730     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5731     ;;
5732   esac
5733   ;;
5734
5735 interix[3-9]*)
5736   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5737   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5738   ;;
5739
5740 irix5* | irix6* | nonstopux*)
5741   case $LD in
5742   *-32|*"-32 ") libmagic=32-bit;;
5743   *-n32|*"-n32 ") libmagic=N32;;
5744   *-64|*"-64 ") libmagic=64-bit;;
5745   *) libmagic=never-match;;
5746   esac
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 # This must be glibc/ELF.
5751 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5752   lt_cv_deplibs_check_method=pass_all
5753   ;;
5754
5755 netbsd*)
5756   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5758   else
5759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5760   fi
5761   ;;
5762
5763 newos6*)
5764   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5765   lt_cv_file_magic_cmd=/usr/bin/file
5766   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5767   ;;
5768
5769 *nto* | *qnx*)
5770   lt_cv_deplibs_check_method=pass_all
5771   ;;
5772
5773 openbsd*)
5774   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5775     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5776   else
5777     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5778   fi
5779   ;;
5780
5781 osf3* | osf4* | osf5*)
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784
5785 rdos*)
5786   lt_cv_deplibs_check_method=pass_all
5787   ;;
5788
5789 solaris*)
5790   lt_cv_deplibs_check_method=pass_all
5791   ;;
5792
5793 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5794   lt_cv_deplibs_check_method=pass_all
5795   ;;
5796
5797 sysv4 | sysv4.3*)
5798   case $host_vendor in
5799   motorola)
5800     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]'
5801     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5802     ;;
5803   ncr)
5804     lt_cv_deplibs_check_method=pass_all
5805     ;;
5806   sequent)
5807     lt_cv_file_magic_cmd='/bin/file'
5808     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5809     ;;
5810   sni)
5811     lt_cv_file_magic_cmd='/bin/file'
5812     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5813     lt_cv_file_magic_test_file=/lib/libc.so
5814     ;;
5815   siemens)
5816     lt_cv_deplibs_check_method=pass_all
5817     ;;
5818   pc)
5819     lt_cv_deplibs_check_method=pass_all
5820     ;;
5821   esac
5822   ;;
5823
5824 tpf*)
5825   lt_cv_deplibs_check_method=pass_all
5826   ;;
5827 esac
5828
5829 fi
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5831 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5832
5833 file_magic_glob=
5834 want_nocaseglob=no
5835 if test "$build" = "$host"; then
5836   case $host_os in
5837   mingw* | pw32*)
5838     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5839       want_nocaseglob=yes
5840     else
5841       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5842     fi
5843     ;;
5844   esac
5845 fi
5846
5847 file_magic_cmd=$lt_cv_file_magic_cmd
5848 deplibs_check_method=$lt_cv_deplibs_check_method
5849 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872 if test -n "$ac_tool_prefix"; then
5873   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 $as_echo_n "checking for $ac_word... " >&6; }
5877 if ${ac_cv_prog_DLLTOOL+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$DLLTOOL"; then
5881   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5882 else
5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884 for as_dir in $PATH
5885 do
5886   IFS=$as_save_IFS
5887   test -z "$as_dir" && as_dir=.
5888     for ac_exec_ext in '' $ac_executable_extensions; do
5889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5890     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892     break 2
5893   fi
5894 done
5895   done
5896 IFS=$as_save_IFS
5897
5898 fi
5899 fi
5900 DLLTOOL=$ac_cv_prog_DLLTOOL
5901 if test -n "$DLLTOOL"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5903 $as_echo "$DLLTOOL" >&6; }
5904 else
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908
5909
5910 fi
5911 if test -z "$ac_cv_prog_DLLTOOL"; then
5912   ac_ct_DLLTOOL=$DLLTOOL
5913   # Extract the first word of "dlltool", so it can be a program name with args.
5914 set dummy dlltool; ac_word=$2
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5916 $as_echo_n "checking for $ac_word... " >&6; }
5917 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if test -n "$ac_ct_DLLTOOL"; then
5921   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928     for ac_exec_ext in '' $ac_executable_extensions; do
5929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935   done
5936 IFS=$as_save_IFS
5937
5938 fi
5939 fi
5940 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5941 if test -n "$ac_ct_DLLTOOL"; then
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5943 $as_echo "$ac_ct_DLLTOOL" >&6; }
5944 else
5945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946 $as_echo "no" >&6; }
5947 fi
5948
5949   if test "x$ac_ct_DLLTOOL" = x; then
5950     DLLTOOL="false"
5951   else
5952     case $cross_compiling:$ac_tool_warned in
5953 yes:)
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5956 ac_tool_warned=yes ;;
5957 esac
5958     DLLTOOL=$ac_ct_DLLTOOL
5959   fi
5960 else
5961   DLLTOOL="$ac_cv_prog_DLLTOOL"
5962 fi
5963
5964 test -z "$DLLTOOL" && DLLTOOL=dlltool
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5976 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5977 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5978   $as_echo_n "(cached) " >&6
5979 else
5980   lt_cv_sharedlib_from_linklib_cmd='unknown'
5981
5982 case $host_os in
5983 cygwin* | mingw* | pw32* | cegcc*)
5984   # two different shell functions defined in ltmain.sh
5985   # decide which to use based on capabilities of $DLLTOOL
5986   case `$DLLTOOL --help 2>&1` in
5987   *--identify-strict*)
5988     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5989     ;;
5990   *)
5991     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5992     ;;
5993   esac
5994   ;;
5995 *)
5996   # fallback: assume linklib IS sharedlib
5997   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5998   ;;
5999 esac
6000
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6003 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6004 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6005 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6006
6007
6008
6009
6010
6011
6012
6013
6014 if test -n "$ac_tool_prefix"; then
6015   for ac_prog in ar
6016   do
6017     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if ${ac_cv_prog_AR+:} false; then :
6022   $as_echo_n "(cached) " >&6
6023 else
6024   if test -n "$AR"; then
6025   ac_cv_prog_AR="$AR" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030   IFS=$as_save_IFS
6031   test -z "$as_dir" && as_dir=.
6032     for ac_exec_ext in '' $ac_executable_extensions; do
6033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036     break 2
6037   fi
6038 done
6039   done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 AR=$ac_cv_prog_AR
6045 if test -n "$AR"; then
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6047 $as_echo "$AR" >&6; }
6048 else
6049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053
6054     test -n "$AR" && break
6055   done
6056 fi
6057 if test -z "$AR"; then
6058   ac_ct_AR=$AR
6059   for ac_prog in ar
6060 do
6061   # Extract the first word of "$ac_prog", so it can be a program name with args.
6062 set dummy $ac_prog; ac_word=$2
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6064 $as_echo_n "checking for $ac_word... " >&6; }
6065 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6066   $as_echo_n "(cached) " >&6
6067 else
6068   if test -n "$ac_ct_AR"; then
6069   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6070 else
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6073 do
6074   IFS=$as_save_IFS
6075   test -z "$as_dir" && as_dir=.
6076     for ac_exec_ext in '' $ac_executable_extensions; do
6077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078     ac_cv_prog_ac_ct_AR="$ac_prog"
6079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6080     break 2
6081   fi
6082 done
6083   done
6084 IFS=$as_save_IFS
6085
6086 fi
6087 fi
6088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6089 if test -n "$ac_ct_AR"; then
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6091 $as_echo "$ac_ct_AR" >&6; }
6092 else
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094 $as_echo "no" >&6; }
6095 fi
6096
6097
6098   test -n "$ac_ct_AR" && break
6099 done
6100
6101   if test "x$ac_ct_AR" = x; then
6102     AR="false"
6103   else
6104     case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110     AR=$ac_ct_AR
6111   fi
6112 fi
6113
6114 : ${AR=ar}
6115 : ${AR_FLAGS=cru}
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6128 $as_echo_n "checking for archiver @FILE support... " >&6; }
6129 if ${lt_cv_ar_at_file+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   lt_cv_ar_at_file=no
6133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h.  */
6135
6136 int
6137 main ()
6138 {
6139
6140   ;
6141   return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145   echo conftest.$ac_objext > conftest.lst
6146       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6147       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6148   (eval $lt_ar_try) 2>&5
6149   ac_status=$?
6150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151   test $ac_status = 0; }
6152       if test "$ac_status" -eq 0; then
6153         # Ensure the archiver fails upon bogus file names.
6154         rm -f conftest.$ac_objext libconftest.a
6155         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6156   (eval $lt_ar_try) 2>&5
6157   ac_status=$?
6158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6159   test $ac_status = 0; }
6160         if test "$ac_status" -ne 0; then
6161           lt_cv_ar_at_file=@
6162         fi
6163       fi
6164       rm -f conftest.* libconftest.a
6165
6166 fi
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168
6169 fi
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6171 $as_echo "$lt_cv_ar_at_file" >&6; }
6172
6173 if test "x$lt_cv_ar_at_file" = xno; then
6174   archiver_list_spec=
6175 else
6176   archiver_list_spec=$lt_cv_ar_at_file
6177 fi
6178
6179
6180
6181
6182
6183
6184
6185 if test -n "$ac_tool_prefix"; then
6186   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6187 set dummy ${ac_tool_prefix}strip; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_prog_STRIP+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   if test -n "$STRIP"; then
6194   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6195 else
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH
6198 do
6199   IFS=$as_save_IFS
6200   test -z "$as_dir" && as_dir=.
6201     for ac_exec_ext in '' $ac_executable_extensions; do
6202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6203     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6205     break 2
6206   fi
6207 done
6208   done
6209 IFS=$as_save_IFS
6210
6211 fi
6212 fi
6213 STRIP=$ac_cv_prog_STRIP
6214 if test -n "$STRIP"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6216 $as_echo "$STRIP" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6219 $as_echo "no" >&6; }
6220 fi
6221
6222
6223 fi
6224 if test -z "$ac_cv_prog_STRIP"; then
6225   ac_ct_STRIP=$STRIP
6226   # Extract the first word of "strip", so it can be a program name with args.
6227 set dummy strip; ac_word=$2
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6229 $as_echo_n "checking for $ac_word... " >&6; }
6230 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   if test -n "$ac_ct_STRIP"; then
6234   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6235 else
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH
6238 do
6239   IFS=$as_save_IFS
6240   test -z "$as_dir" && as_dir=.
6241     for ac_exec_ext in '' $ac_executable_extensions; do
6242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6243     ac_cv_prog_ac_ct_STRIP="strip"
6244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6245     break 2
6246   fi
6247 done
6248   done
6249 IFS=$as_save_IFS
6250
6251 fi
6252 fi
6253 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6254 if test -n "$ac_ct_STRIP"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6256 $as_echo "$ac_ct_STRIP" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261
6262   if test "x$ac_ct_STRIP" = x; then
6263     STRIP=":"
6264   else
6265     case $cross_compiling:$ac_tool_warned in
6266 yes:)
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6269 ac_tool_warned=yes ;;
6270 esac
6271     STRIP=$ac_ct_STRIP
6272   fi
6273 else
6274   STRIP="$ac_cv_prog_STRIP"
6275 fi
6276
6277 test -z "$STRIP" && STRIP=:
6278
6279
6280
6281
6282
6283
6284 if test -n "$ac_tool_prefix"; then
6285   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6286 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_RANLIB+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$RANLIB"; then
6293   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307   done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 RANLIB=$ac_cv_prog_RANLIB
6313 if test -n "$RANLIB"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6315 $as_echo "$RANLIB" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321
6322 fi
6323 if test -z "$ac_cv_prog_RANLIB"; then
6324   ac_ct_RANLIB=$RANLIB
6325   # Extract the first word of "ranlib", so it can be a program name with args.
6326 set dummy ranlib; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6330   $as_echo_n "(cached) " >&6
6331 else
6332   if test -n "$ac_ct_RANLIB"; then
6333   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338   IFS=$as_save_IFS
6339   test -z "$as_dir" && as_dir=.
6340     for ac_exec_ext in '' $ac_executable_extensions; do
6341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342     ac_cv_prog_ac_ct_RANLIB="ranlib"
6343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344     break 2
6345   fi
6346 done
6347   done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6353 if test -n "$ac_ct_RANLIB"; then
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6355 $as_echo "$ac_ct_RANLIB" >&6; }
6356 else
6357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6359 fi
6360
6361   if test "x$ac_ct_RANLIB" = x; then
6362     RANLIB=":"
6363   else
6364     case $cross_compiling:$ac_tool_warned in
6365 yes:)
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368 ac_tool_warned=yes ;;
6369 esac
6370     RANLIB=$ac_ct_RANLIB
6371   fi
6372 else
6373   RANLIB="$ac_cv_prog_RANLIB"
6374 fi
6375
6376 test -z "$RANLIB" && RANLIB=:
6377
6378
6379
6380
6381
6382
6383 # Determine commands to create old-style static archives.
6384 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6385 old_postinstall_cmds='chmod 644 $oldlib'
6386 old_postuninstall_cmds=
6387
6388 if test -n "$RANLIB"; then
6389   case $host_os in
6390   openbsd*)
6391     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6392     ;;
6393   *)
6394     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6395     ;;
6396   esac
6397   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6398 fi
6399
6400 case $host_os in
6401   darwin*)
6402     lock_old_archive_extraction=yes ;;
6403   *)
6404     lock_old_archive_extraction=no ;;
6405 esac
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 # If no C compiler was specified, use CC.
6446 LTCC=${LTCC-"$CC"}
6447
6448 # If no C compiler flags were specified, use CFLAGS.
6449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6450
6451 # Allow CC to be a program name with arguments.
6452 compiler=$CC
6453
6454
6455 # Check for command to grab the raw symbol name followed by C symbol from nm.
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6457 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6458 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461
6462 # These are sane defaults that work on at least a few old systems.
6463 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6464
6465 # Character class describing NM global symbol codes.
6466 symcode='[BCDEGRST]'
6467
6468 # Regexp to match symbols that can be accessed directly from C.
6469 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6470
6471 # Define system-specific variables.
6472 case $host_os in
6473 aix*)
6474   symcode='[BCDT]'
6475   ;;
6476 cygwin* | mingw* | pw32* | cegcc*)
6477   symcode='[ABCDGISTW]'
6478   ;;
6479 hpux*)
6480   if test "$host_cpu" = ia64; then
6481     symcode='[ABCDEGRST]'
6482   fi
6483   ;;
6484 irix* | nonstopux*)
6485   symcode='[BCDEGRST]'
6486   ;;
6487 osf*)
6488   symcode='[BCDEGQRST]'
6489   ;;
6490 solaris*)
6491   symcode='[BDRT]'
6492   ;;
6493 sco3.2v5*)
6494   symcode='[DT]'
6495   ;;
6496 sysv4.2uw2*)
6497   symcode='[DT]'
6498   ;;
6499 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6500   symcode='[ABDT]'
6501   ;;
6502 sysv4)
6503   symcode='[DFNSTU]'
6504   ;;
6505 esac
6506
6507 # If we're using GNU nm, then use its standard symbol codes.
6508 case `$NM -V 2>&1` in
6509 *GNU* | *'with BFD'*)
6510   symcode='[ABCDGIRSTW]' ;;
6511 esac
6512
6513 # Transform an extracted symbol line into a proper C declaration.
6514 # Some systems (esp. on ia64) link data and code symbols differently,
6515 # so use this general approach.
6516 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6517
6518 # Transform an extracted symbol line into symbol name and symbol address
6519 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6520 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6521
6522 # Handle CRLF in mingw tool chain
6523 opt_cr=
6524 case $build_os in
6525 mingw*)
6526   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6527   ;;
6528 esac
6529
6530 # Try without a prefix underscore, then with it.
6531 for ac_symprfx in "" "_"; do
6532
6533   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6534   symxfrm="\\1 $ac_symprfx\\2 \\2"
6535
6536   # Write the raw and C identifiers.
6537   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6538     # Fake it for dumpbin and say T for any non-static function
6539     # and D for any global variable.
6540     # Also find C++ and __fastcall symbols from MSVC++,
6541     # which start with @ or ?.
6542     lt_cv_sys_global_symbol_pipe="$AWK '"\
6543 "     {last_section=section; section=\$ 3};"\
6544 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6545 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6546 "     \$ 0!~/External *\|/{next};"\
6547 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6548 "     {if(hide[section]) next};"\
6549 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6550 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6551 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6552 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6553 "     ' prfx=^$ac_symprfx"
6554   else
6555     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6556   fi
6557   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6558
6559   # Check to see that the pipe works correctly.
6560   pipe_works=no
6561
6562   rm -f conftest*
6563   cat > conftest.$ac_ext <<_LT_EOF
6564 #ifdef __cplusplus
6565 extern "C" {
6566 #endif
6567 char nm_test_var;
6568 void nm_test_func(void);
6569 void nm_test_func(void){}
6570 #ifdef __cplusplus
6571 }
6572 #endif
6573 int main(){nm_test_var='a';nm_test_func();return(0);}
6574 _LT_EOF
6575
6576   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6577   (eval $ac_compile) 2>&5
6578   ac_status=$?
6579   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6580   test $ac_status = 0; }; then
6581     # Now try to grab the symbols.
6582     nlist=conftest.nm
6583     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6584   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6585   ac_status=$?
6586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6587   test $ac_status = 0; } && test -s "$nlist"; then
6588       # Try sorting and uniquifying the output.
6589       if sort "$nlist" | uniq > "$nlist"T; then
6590         mv -f "$nlist"T "$nlist"
6591       else
6592         rm -f "$nlist"T
6593       fi
6594
6595       # Make sure that we snagged all the symbols we need.
6596       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6597         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6598           cat <<_LT_EOF > conftest.$ac_ext
6599 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6600 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6601 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6602    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6603 # define LT_DLSYM_CONST
6604 #elif defined(__osf__)
6605 /* This system does not cope well with relocations in const data.  */
6606 # define LT_DLSYM_CONST
6607 #else
6608 # define LT_DLSYM_CONST const
6609 #endif
6610
6611 #ifdef __cplusplus
6612 extern "C" {
6613 #endif
6614
6615 _LT_EOF
6616           # Now generate the symbol file.
6617           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6618
6619           cat <<_LT_EOF >> conftest.$ac_ext
6620
6621 /* The mapping between symbol names and symbols.  */
6622 LT_DLSYM_CONST struct {
6623   const char *name;
6624   void       *address;
6625 }
6626 lt__PROGRAM__LTX_preloaded_symbols[] =
6627 {
6628   { "@PROGRAM@", (void *) 0 },
6629 _LT_EOF
6630           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6631           cat <<\_LT_EOF >> conftest.$ac_ext
6632   {0, (void *) 0}
6633 };
6634
6635 /* This works around a problem in FreeBSD linker */
6636 #ifdef FREEBSD_WORKAROUND
6637 static const void *lt_preloaded_setup() {
6638   return lt__PROGRAM__LTX_preloaded_symbols;
6639 }
6640 #endif
6641
6642 #ifdef __cplusplus
6643 }
6644 #endif
6645 _LT_EOF
6646           # Now try linking the two files.
6647           mv conftest.$ac_objext conftstm.$ac_objext
6648           lt_globsym_save_LIBS=$LIBS
6649           lt_globsym_save_CFLAGS=$CFLAGS
6650           LIBS="conftstm.$ac_objext"
6651           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6652           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6653   (eval $ac_link) 2>&5
6654   ac_status=$?
6655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6656   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6657             pipe_works=yes
6658           fi
6659           LIBS=$lt_globsym_save_LIBS
6660           CFLAGS=$lt_globsym_save_CFLAGS
6661         else
6662           echo "cannot find nm_test_func in $nlist" >&5
6663         fi
6664       else
6665         echo "cannot find nm_test_var in $nlist" >&5
6666       fi
6667     else
6668       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6669     fi
6670   else
6671     echo "$progname: failed program was:" >&5
6672     cat conftest.$ac_ext >&5
6673   fi
6674   rm -rf conftest* conftst*
6675
6676   # Do not use the global_symbol_pipe unless it works.
6677   if test "$pipe_works" = yes; then
6678     break
6679   else
6680     lt_cv_sys_global_symbol_pipe=
6681   fi
6682 done
6683
6684 fi
6685
6686 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6687   lt_cv_sys_global_symbol_to_cdecl=
6688 fi
6689 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6691 $as_echo "failed" >&6; }
6692 else
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6694 $as_echo "ok" >&6; }
6695 fi
6696
6697 # Response file support.
6698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6699   nm_file_list_spec='@'
6700 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6701   nm_file_list_spec='@'
6702 fi
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6731 $as_echo_n "checking for sysroot... " >&6; }
6732
6733 # Check whether --with-sysroot was given.
6734 if test "${with_sysroot+set}" = set; then :
6735   withval=$with_sysroot;
6736 else
6737   with_sysroot=no
6738 fi
6739
6740
6741 lt_sysroot=
6742 case ${with_sysroot} in #(
6743  yes)
6744    if test "$GCC" = yes; then
6745      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6746    fi
6747    ;; #(
6748  /*)
6749    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6750    ;; #(
6751  no|'')
6752    ;; #(
6753  *)
6754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6755 $as_echo "${with_sysroot}" >&6; }
6756    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6757    ;;
6758 esac
6759
6760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6761 $as_echo "${lt_sysroot:-no}" >&6; }
6762
6763
6764
6765
6766
6767 # Check whether --enable-libtool-lock was given.
6768 if test "${enable_libtool_lock+set}" = set; then :
6769   enableval=$enable_libtool_lock;
6770 fi
6771
6772 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6773
6774 # Some flags need to be propagated to the compiler or linker for good
6775 # libtool support.
6776 case $host in
6777 ia64-*-hpux*)
6778   # Find out which ABI we are using.
6779   echo 'int i;' > conftest.$ac_ext
6780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781   (eval $ac_compile) 2>&5
6782   ac_status=$?
6783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784   test $ac_status = 0; }; then
6785     case `/usr/bin/file conftest.$ac_objext` in
6786       *ELF-32*)
6787         HPUX_IA64_MODE="32"
6788         ;;
6789       *ELF-64*)
6790         HPUX_IA64_MODE="64"
6791         ;;
6792     esac
6793   fi
6794   rm -rf conftest*
6795   ;;
6796 *-*-irix6*)
6797   # Find out which ABI we are using.
6798   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800   (eval $ac_compile) 2>&5
6801   ac_status=$?
6802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803   test $ac_status = 0; }; then
6804     if test "$lt_cv_prog_gnu_ld" = yes; then
6805       case `/usr/bin/file conftest.$ac_objext` in
6806         *32-bit*)
6807           LD="${LD-ld} -melf32bsmip"
6808           ;;
6809         *N32*)
6810           LD="${LD-ld} -melf32bmipn32"
6811           ;;
6812         *64-bit*)
6813           LD="${LD-ld} -melf64bmip"
6814         ;;
6815       esac
6816     else
6817       case `/usr/bin/file conftest.$ac_objext` in
6818         *32-bit*)
6819           LD="${LD-ld} -32"
6820           ;;
6821         *N32*)
6822           LD="${LD-ld} -n32"
6823           ;;
6824         *64-bit*)
6825           LD="${LD-ld} -64"
6826           ;;
6827       esac
6828     fi
6829   fi
6830   rm -rf conftest*
6831   ;;
6832
6833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6835   # Find out which ABI we are using.
6836   echo 'int i;' > conftest.$ac_ext
6837   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6838   (eval $ac_compile) 2>&5
6839   ac_status=$?
6840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841   test $ac_status = 0; }; then
6842     case `/usr/bin/file conftest.o` in
6843       *32-bit*)
6844         case $host in
6845           x86_64-*kfreebsd*-gnu)
6846             LD="${LD-ld} -m elf_i386_fbsd"
6847             ;;
6848           x86_64-*linux*)
6849             LD="${LD-ld} -m elf_i386"
6850             ;;
6851           ppc64-*linux*|powerpc64-*linux*)
6852             LD="${LD-ld} -m elf32ppclinux"
6853             ;;
6854           s390x-*linux*)
6855             LD="${LD-ld} -m elf_s390"
6856             ;;
6857           sparc64-*linux*)
6858             LD="${LD-ld} -m elf32_sparc"
6859             ;;
6860         esac
6861         ;;
6862       *64-bit*)
6863         case $host in
6864           x86_64-*kfreebsd*-gnu)
6865             LD="${LD-ld} -m elf_x86_64_fbsd"
6866             ;;
6867           x86_64-*linux*)
6868             LD="${LD-ld} -m elf_x86_64"
6869             ;;
6870           ppc*-*linux*|powerpc*-*linux*)
6871             LD="${LD-ld} -m elf64ppc"
6872             ;;
6873           s390*-*linux*|s390*-*tpf*)
6874             LD="${LD-ld} -m elf64_s390"
6875             ;;
6876           sparc*-*linux*)
6877             LD="${LD-ld} -m elf64_sparc"
6878             ;;
6879         esac
6880         ;;
6881     esac
6882   fi
6883   rm -rf conftest*
6884   ;;
6885
6886 *-*-sco3.2v5*)
6887   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6888   SAVE_CFLAGS="$CFLAGS"
6889   CFLAGS="$CFLAGS -belf"
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6891 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6892 if ${lt_cv_cc_needs_belf+:} false; then :
6893   $as_echo_n "(cached) " >&6
6894 else
6895   ac_ext=c
6896 ac_cpp='$CPP $CPPFLAGS'
6897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6900
6901      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h.  */
6903
6904 int
6905 main ()
6906 {
6907
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 if ac_fn_c_try_link "$LINENO"; then :
6913   lt_cv_cc_needs_belf=yes
6914 else
6915   lt_cv_cc_needs_belf=no
6916 fi
6917 rm -f core conftest.err conftest.$ac_objext \
6918     conftest$ac_exeext conftest.$ac_ext
6919      ac_ext=c
6920 ac_cpp='$CPP $CPPFLAGS'
6921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6924
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6928   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6929     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6930     CFLAGS="$SAVE_CFLAGS"
6931   fi
6932   ;;
6933 *-*solaris*)
6934   # Find out which ABI we are using.
6935   echo 'int i;' > conftest.$ac_ext
6936   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937   (eval $ac_compile) 2>&5
6938   ac_status=$?
6939   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940   test $ac_status = 0; }; then
6941     case `/usr/bin/file conftest.o` in
6942     *64-bit*)
6943       case $lt_cv_prog_gnu_ld in
6944       yes*)
6945         case $host in
6946         i?86-*-solaris*)
6947           LD="${LD-ld} -m elf_x86_64"
6948           ;;
6949         sparc*-*-solaris*)
6950           LD="${LD-ld} -m elf64_sparc"
6951           ;;
6952         esac
6953         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6954         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6955           LD="${LD-ld}_sol2"
6956         fi
6957         ;;
6958       *)
6959         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6960           LD="${LD-ld} -64"
6961         fi
6962         ;;
6963       esac
6964       ;;
6965     esac
6966   fi
6967   rm -rf conftest*
6968   ;;
6969 esac
6970
6971 need_locks="$enable_libtool_lock"
6972
6973 if test -n "$ac_tool_prefix"; then
6974   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}mt; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   if test -n "$MANIFEST_TOOL"; then
6982   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989     for ac_exec_ext in '' $ac_executable_extensions; do
6990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996   done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7002 if test -n "$MANIFEST_TOOL"; then
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7004 $as_echo "$MANIFEST_TOOL" >&6; }
7005 else
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7008 fi
7009
7010
7011 fi
7012 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7013   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7014   # Extract the first word of "mt", so it can be a program name with args.
7015 set dummy mt; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021   if test -n "$ac_ct_MANIFEST_TOOL"; then
7022   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029     for ac_exec_ext in '' $ac_executable_extensions; do
7030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036   done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7042 if test -n "$ac_ct_MANIFEST_TOOL"; then
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7044 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7045 else
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7051     MANIFEST_TOOL=":"
7052   else
7053     case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7060   fi
7061 else
7062   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7063 fi
7064
7065 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7067 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7068 if ${lt_cv_path_mainfest_tool+:} false; then :
7069   $as_echo_n "(cached) " >&6
7070 else
7071   lt_cv_path_mainfest_tool=no
7072   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7073   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7074   cat conftest.err >&5
7075   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7076     lt_cv_path_mainfest_tool=yes
7077   fi
7078   rm -f conftest*
7079 fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7081 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7082 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7083   MANIFEST_TOOL=:
7084 fi
7085
7086
7087
7088
7089
7090
7091   case $host_os in
7092     rhapsody* | darwin*)
7093     if test -n "$ac_tool_prefix"; then
7094   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   if test -n "$DSYMUTIL"; then
7102   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109     for ac_exec_ext in '' $ac_executable_extensions; do
7110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116   done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7122 if test -n "$DSYMUTIL"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7124 $as_echo "$DSYMUTIL" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_DSYMUTIL"; then
7133   ac_ct_DSYMUTIL=$DSYMUTIL
7134   # Extract the first word of "dsymutil", so it can be a program name with args.
7135 set dummy dsymutil; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7139   $as_echo_n "(cached) " >&6
7140 else
7141   if test -n "$ac_ct_DSYMUTIL"; then
7142   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7162 if test -n "$ac_ct_DSYMUTIL"; then
7163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7164 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7165 else
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170   if test "x$ac_ct_DSYMUTIL" = x; then
7171     DSYMUTIL=":"
7172   else
7173     case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179     DSYMUTIL=$ac_ct_DSYMUTIL
7180   fi
7181 else
7182   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7183 fi
7184
7185     if test -n "$ac_tool_prefix"; then
7186   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_NMEDIT+:} false; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193   if test -n "$NMEDIT"; then
7194   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 NMEDIT=$ac_cv_prog_NMEDIT
7214 if test -n "$NMEDIT"; then
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7216 $as_echo "$NMEDIT" >&6; }
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222
7223 fi
7224 if test -z "$ac_cv_prog_NMEDIT"; then
7225   ac_ct_NMEDIT=$NMEDIT
7226   # Extract the first word of "nmedit", so it can be a program name with args.
7227 set dummy nmedit; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$ac_ct_NMEDIT"; then
7234   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7254 if test -n "$ac_ct_NMEDIT"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7256 $as_echo "$ac_ct_NMEDIT" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262   if test "x$ac_ct_NMEDIT" = x; then
7263     NMEDIT=":"
7264   else
7265     case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271     NMEDIT=$ac_ct_NMEDIT
7272   fi
7273 else
7274   NMEDIT="$ac_cv_prog_NMEDIT"
7275 fi
7276
7277     if test -n "$ac_tool_prefix"; then
7278   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_LIPO+:} false; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   if test -n "$LIPO"; then
7286   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300   done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 LIPO=$ac_cv_prog_LIPO
7306 if test -n "$LIPO"; then
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7308 $as_echo "$LIPO" >&6; }
7309 else
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314
7315 fi
7316 if test -z "$ac_cv_prog_LIPO"; then
7317   ac_ct_LIPO=$LIPO
7318   # Extract the first word of "lipo", so it can be a program name with args.
7319 set dummy lipo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$ac_ct_LIPO"; then
7326   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335     ac_cv_prog_ac_ct_LIPO="lipo"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7346 if test -n "$ac_ct_LIPO"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7348 $as_echo "$ac_ct_LIPO" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354   if test "x$ac_ct_LIPO" = x; then
7355     LIPO=":"
7356   else
7357     case $cross_compiling:$ac_tool_warned in
7358 yes:)
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7362 esac
7363     LIPO=$ac_ct_LIPO
7364   fi
7365 else
7366   LIPO="$ac_cv_prog_LIPO"
7367 fi
7368
7369     if test -n "$ac_tool_prefix"; then
7370   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}otool; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_OTOOL+:} false; then :
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$OTOOL"; then
7378   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385     for ac_exec_ext in '' $ac_executable_extensions; do
7386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392   done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 OTOOL=$ac_cv_prog_OTOOL
7398 if test -n "$OTOOL"; then
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7400 $as_echo "$OTOOL" >&6; }
7401 else
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406
7407 fi
7408 if test -z "$ac_cv_prog_OTOOL"; then
7409   ac_ct_OTOOL=$OTOOL
7410   # Extract the first word of "otool", so it can be a program name with args.
7411 set dummy otool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   if test -n "$ac_ct_OTOOL"; then
7418   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_prog_ac_ct_OTOOL="otool"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7438 if test -n "$ac_ct_OTOOL"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7440 $as_echo "$ac_ct_OTOOL" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446   if test "x$ac_ct_OTOOL" = x; then
7447     OTOOL=":"
7448   else
7449     case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455     OTOOL=$ac_ct_OTOOL
7456   fi
7457 else
7458   OTOOL="$ac_cv_prog_OTOOL"
7459 fi
7460
7461     if test -n "$ac_tool_prefix"; then
7462   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7463 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_OTOOL64+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   if test -n "$OTOOL64"; then
7470   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 OTOOL64=$ac_cv_prog_OTOOL64
7490 if test -n "$OTOOL64"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7492 $as_echo "$OTOOL64" >&6; }
7493 else
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498
7499 fi
7500 if test -z "$ac_cv_prog_OTOOL64"; then
7501   ac_ct_OTOOL64=$OTOOL64
7502   # Extract the first word of "otool64", so it can be a program name with args.
7503 set dummy otool64; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   if test -n "$ac_ct_OTOOL64"; then
7510   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517     for ac_exec_ext in '' $ac_executable_extensions; do
7518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7519     ac_cv_prog_ac_ct_OTOOL64="otool64"
7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524   done
7525 IFS=$as_save_IFS
7526
7527 fi
7528 fi
7529 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7530 if test -n "$ac_ct_OTOOL64"; then
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7532 $as_echo "$ac_ct_OTOOL64" >&6; }
7533 else
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538   if test "x$ac_ct_OTOOL64" = x; then
7539     OTOOL64=":"
7540   else
7541     case $cross_compiling:$ac_tool_warned in
7542 yes:)
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7545 ac_tool_warned=yes ;;
7546 esac
7547     OTOOL64=$ac_ct_OTOOL64
7548   fi
7549 else
7550   OTOOL64="$ac_cv_prog_OTOOL64"
7551 fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7580 $as_echo_n "checking for -single_module linker flag... " >&6; }
7581 if ${lt_cv_apple_cc_single_mod+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   lt_cv_apple_cc_single_mod=no
7585       if test -z "${LT_MULTI_MODULE}"; then
7586         # By default we will add the -single_module flag. You can override
7587         # by either setting the environment variable LT_MULTI_MODULE
7588         # non-empty at configure time, or by adding -multi_module to the
7589         # link flags.
7590         rm -rf libconftest.dylib*
7591         echo "int foo(void){return 1;}" > conftest.c
7592         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7593 -dynamiclib -Wl,-single_module conftest.c" >&5
7594         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7595           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7596         _lt_result=$?
7597         # If there is a non-empty error log, and "single_module"
7598         # appears in it, assume the flag caused a linker warning
7599         if test -s conftest.err && $GREP single_module conftest.err; then
7600           cat conftest.err >&5
7601         # Otherwise, if the output was created with a 0 exit code from
7602         # the compiler, it worked.
7603         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7604           lt_cv_apple_cc_single_mod=yes
7605         else
7606           cat conftest.err >&5
7607         fi
7608         rm -rf libconftest.dylib*
7609         rm -f conftest.*
7610       fi
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7613 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7614
7615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7616 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7617 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   lt_cv_ld_exported_symbols_list=no
7621       save_LDFLAGS=$LDFLAGS
7622       echo "_main" > conftest.sym
7623       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7624       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h.  */
7626
7627 int
7628 main ()
7629 {
7630
7631   ;
7632   return 0;
7633 }
7634 _ACEOF
7635 if ac_fn_c_try_link "$LINENO"; then :
7636   lt_cv_ld_exported_symbols_list=yes
7637 else
7638   lt_cv_ld_exported_symbols_list=no
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext \
7641     conftest$ac_exeext conftest.$ac_ext
7642         LDFLAGS="$save_LDFLAGS"
7643
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7646 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7647
7648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7649 $as_echo_n "checking for -force_load linker flag... " >&6; }
7650 if ${lt_cv_ld_force_load+:} false; then :
7651   $as_echo_n "(cached) " >&6
7652 else
7653   lt_cv_ld_force_load=no
7654       cat > conftest.c << _LT_EOF
7655 int forced_loaded() { return 2;}
7656 _LT_EOF
7657       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7658       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7659       echo "$AR cru libconftest.a conftest.o" >&5
7660       $AR cru libconftest.a conftest.o 2>&5
7661       echo "$RANLIB libconftest.a" >&5
7662       $RANLIB libconftest.a 2>&5
7663       cat > conftest.c << _LT_EOF
7664 int main() { return 0;}
7665 _LT_EOF
7666       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7667       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7668       _lt_result=$?
7669       if test -s conftest.err && $GREP force_load conftest.err; then
7670         cat conftest.err >&5
7671       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7672         lt_cv_ld_force_load=yes
7673       else
7674         cat conftest.err >&5
7675       fi
7676         rm -f conftest.err libconftest.a conftest conftest.c
7677         rm -rf conftest.dSYM
7678
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7681 $as_echo "$lt_cv_ld_force_load" >&6; }
7682     case $host_os in
7683     rhapsody* | darwin1.[012])
7684       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7685     darwin1.*)
7686       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7687     darwin*) # darwin 5.x on
7688       # if running on 10.5 or later, the deployment target defaults
7689       # to the OS version, if on x86, and 10.4, the deployment
7690       # target defaults to 10.4. Don't you love it?
7691       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7692         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7693           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7694         10.[012]*)
7695           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7696         10.*)
7697           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7698       esac
7699     ;;
7700   esac
7701     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7702       _lt_dar_single_mod='$single_module'
7703     fi
7704     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7705       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7706     else
7707       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7708     fi
7709     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7710       _lt_dsymutil='~$DSYMUTIL $lib || :'
7711     else
7712       _lt_dsymutil=
7713     fi
7714     ;;
7715   esac
7716
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7719 $as_echo_n "checking for ANSI C header files... " >&6; }
7720 if ${ac_cv_header_stdc+:} false; then :
7721   $as_echo_n "(cached) " >&6
7722 else
7723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h.  */
7725 #include <stdlib.h>
7726 #include <stdarg.h>
7727 #include <string.h>
7728 #include <float.h>
7729
7730 int
7731 main ()
7732 {
7733
7734   ;
7735   return 0;
7736 }
7737 _ACEOF
7738 if ac_fn_c_try_compile "$LINENO"; then :
7739   ac_cv_header_stdc=yes
7740 else
7741   ac_cv_header_stdc=no
7742 fi
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744
7745 if test $ac_cv_header_stdc = yes; then
7746   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h.  */
7749 #include <string.h>
7750
7751 _ACEOF
7752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7753   $EGREP "memchr" >/dev/null 2>&1; then :
7754
7755 else
7756   ac_cv_header_stdc=no
7757 fi
7758 rm -f conftest*
7759
7760 fi
7761
7762 if test $ac_cv_header_stdc = yes; then
7763   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h.  */
7766 #include <stdlib.h>
7767
7768 _ACEOF
7769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770   $EGREP "free" >/dev/null 2>&1; then :
7771
7772 else
7773   ac_cv_header_stdc=no
7774 fi
7775 rm -f conftest*
7776
7777 fi
7778
7779 if test $ac_cv_header_stdc = yes; then
7780   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7781   if test "$cross_compiling" = yes; then :
7782   :
7783 else
7784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h.  */
7786 #include <ctype.h>
7787 #include <stdlib.h>
7788 #if ((' ' & 0x0FF) == 0x020)
7789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7791 #else
7792 # define ISLOWER(c) \
7793                    (('a' <= (c) && (c) <= 'i') \
7794                      || ('j' <= (c) && (c) <= 'r') \
7795                      || ('s' <= (c) && (c) <= 'z'))
7796 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7797 #endif
7798
7799 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7800 int
7801 main ()
7802 {
7803   int i;
7804   for (i = 0; i < 256; i++)
7805     if (XOR (islower (i), ISLOWER (i))
7806         || toupper (i) != TOUPPER (i))
7807       return 2;
7808   return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_run "$LINENO"; then :
7812
7813 else
7814   ac_cv_header_stdc=no
7815 fi
7816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7817   conftest.$ac_objext conftest.beam conftest.$ac_ext
7818 fi
7819
7820 fi
7821 fi
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7823 $as_echo "$ac_cv_header_stdc" >&6; }
7824 if test $ac_cv_header_stdc = yes; then
7825
7826 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7827
7828 fi
7829
7830 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7832                   inttypes.h stdint.h unistd.h
7833 do :
7834   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7836 "
7837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7838   cat >>confdefs.h <<_ACEOF
7839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7840 _ACEOF
7841
7842 fi
7843
7844 done
7845
7846
7847 for ac_header in dlfcn.h
7848 do :
7849   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7850 "
7851 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7852   cat >>confdefs.h <<_ACEOF
7853 #define HAVE_DLFCN_H 1
7854 _ACEOF
7855
7856 fi
7857
7858 done
7859
7860
7861
7862
7863
7864 # Set options
7865
7866
7867
7868         enable_dlopen=no
7869
7870
7871   enable_win32_dll=no
7872
7873
7874             # Check whether --enable-shared was given.
7875 if test "${enable_shared+set}" = set; then :
7876   enableval=$enable_shared; p=${PACKAGE-default}
7877     case $enableval in
7878     yes) enable_shared=yes ;;
7879     no) enable_shared=no ;;
7880     *)
7881       enable_shared=no
7882       # Look at the argument we got.  We use all the common list separators.
7883       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7884       for pkg in $enableval; do
7885         IFS="$lt_save_ifs"
7886         if test "X$pkg" = "X$p"; then
7887           enable_shared=yes
7888         fi
7889       done
7890       IFS="$lt_save_ifs"
7891       ;;
7892     esac
7893 else
7894   enable_shared=yes
7895 fi
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905   # Check whether --enable-static was given.
7906 if test "${enable_static+set}" = set; then :
7907   enableval=$enable_static; p=${PACKAGE-default}
7908     case $enableval in
7909     yes) enable_static=yes ;;
7910     no) enable_static=no ;;
7911     *)
7912      enable_static=no
7913       # Look at the argument we got.  We use all the common list separators.
7914       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7915       for pkg in $enableval; do
7916         IFS="$lt_save_ifs"
7917         if test "X$pkg" = "X$p"; then
7918           enable_static=yes
7919         fi
7920       done
7921       IFS="$lt_save_ifs"
7922       ;;
7923     esac
7924 else
7925   enable_static=yes
7926 fi
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 # Check whether --with-pic was given.
7938 if test "${with_pic+set}" = set; then :
7939   withval=$with_pic; lt_p=${PACKAGE-default}
7940     case $withval in
7941     yes|no) pic_mode=$withval ;;
7942     *)
7943       pic_mode=default
7944       # Look at the argument we got.  We use all the common list separators.
7945       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7946       for lt_pkg in $withval; do
7947         IFS="$lt_save_ifs"
7948         if test "X$lt_pkg" = "X$lt_p"; then
7949           pic_mode=yes
7950         fi
7951       done
7952       IFS="$lt_save_ifs"
7953       ;;
7954     esac
7955 else
7956   pic_mode=default
7957 fi
7958
7959
7960 test -z "$pic_mode" && pic_mode=default
7961
7962
7963
7964
7965
7966
7967
7968   # Check whether --enable-fast-install was given.
7969 if test "${enable_fast_install+set}" = set; then :
7970   enableval=$enable_fast_install; p=${PACKAGE-default}
7971     case $enableval in
7972     yes) enable_fast_install=yes ;;
7973     no) enable_fast_install=no ;;
7974     *)
7975       enable_fast_install=no
7976       # Look at the argument we got.  We use all the common list separators.
7977       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978       for pkg in $enableval; do
7979         IFS="$lt_save_ifs"
7980         if test "X$pkg" = "X$p"; then
7981           enable_fast_install=yes
7982         fi
7983       done
7984       IFS="$lt_save_ifs"
7985       ;;
7986     esac
7987 else
7988   enable_fast_install=yes
7989 fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001 # This can be used to rebuild libtool when needed
8002 LIBTOOL_DEPS="$ltmain"
8003
8004 # Always use our own libtool.
8005 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036 test -z "$LN_S" && LN_S="ln -s"
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051 if test -n "${ZSH_VERSION+set}" ; then
8052    setopt NO_GLOB_SUBST
8053 fi
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8056 $as_echo_n "checking for objdir... " >&6; }
8057 if ${lt_cv_objdir+:} false; then :
8058   $as_echo_n "(cached) " >&6
8059 else
8060   rm -f .libs 2>/dev/null
8061 mkdir .libs 2>/dev/null
8062 if test -d .libs; then
8063   lt_cv_objdir=.libs
8064 else
8065   # MS-DOS does not allow filenames that begin with a dot.
8066   lt_cv_objdir=_libs
8067 fi
8068 rmdir .libs 2>/dev/null
8069 fi
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8071 $as_echo "$lt_cv_objdir" >&6; }
8072 objdir=$lt_cv_objdir
8073
8074
8075
8076
8077
8078 cat >>confdefs.h <<_ACEOF
8079 #define LT_OBJDIR "$lt_cv_objdir/"
8080 _ACEOF
8081
8082
8083
8084
8085 case $host_os in
8086 aix3*)
8087   # AIX sometimes has problems with the GCC collect2 program.  For some
8088   # reason, if we set the COLLECT_NAMES environment variable, the problems
8089   # vanish in a puff of smoke.
8090   if test "X${COLLECT_NAMES+set}" != Xset; then
8091     COLLECT_NAMES=
8092     export COLLECT_NAMES
8093   fi
8094   ;;
8095 esac
8096
8097 # Global variables:
8098 ofile=libtool
8099 can_build_shared=yes
8100
8101 # All known linkers require a `.a' archive for static linking (except MSVC,
8102 # which needs '.lib').
8103 libext=a
8104
8105 with_gnu_ld="$lt_cv_prog_gnu_ld"
8106
8107 old_CC="$CC"
8108 old_CFLAGS="$CFLAGS"
8109
8110 # Set sane defaults for various variables
8111 test -z "$CC" && CC=cc
8112 test -z "$LTCC" && LTCC=$CC
8113 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8114 test -z "$LD" && LD=ld
8115 test -z "$ac_objext" && ac_objext=o
8116
8117 for cc_temp in $compiler""; do
8118   case $cc_temp in
8119     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8120     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8121     \-*) ;;
8122     *) break;;
8123   esac
8124 done
8125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8126
8127
8128 # Only perform the check for file, if the check method requires it
8129 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8130 case $deplibs_check_method in
8131 file_magic*)
8132   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8134 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8135 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8136   $as_echo_n "(cached) " >&6
8137 else
8138   case $MAGIC_CMD in
8139 [\\/*] |  ?:[\\/]*)
8140   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8141   ;;
8142 *)
8143   lt_save_MAGIC_CMD="$MAGIC_CMD"
8144   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8145   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8146   for ac_dir in $ac_dummy; do
8147     IFS="$lt_save_ifs"
8148     test -z "$ac_dir" && ac_dir=.
8149     if test -f $ac_dir/${ac_tool_prefix}file; then
8150       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8151       if test -n "$file_magic_test_file"; then
8152         case $deplibs_check_method in
8153         "file_magic "*)
8154           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8155           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8156           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8157             $EGREP "$file_magic_regex" > /dev/null; then
8158             :
8159           else
8160             cat <<_LT_EOF 1>&2
8161
8162 *** Warning: the command libtool uses to detect shared libraries,
8163 *** $file_magic_cmd, produces output that libtool cannot recognize.
8164 *** The result is that libtool may fail to recognize shared libraries
8165 *** as such.  This will affect the creation of libtool libraries that
8166 *** depend on shared libraries, but programs linked with such libtool
8167 *** libraries will work regardless of this problem.  Nevertheless, you
8168 *** may want to report the problem to your system manager and/or to
8169 *** bug-libtool@gnu.org
8170
8171 _LT_EOF
8172           fi ;;
8173         esac
8174       fi
8175       break
8176     fi
8177   done
8178   IFS="$lt_save_ifs"
8179   MAGIC_CMD="$lt_save_MAGIC_CMD"
8180   ;;
8181 esac
8182 fi
8183
8184 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8185 if test -n "$MAGIC_CMD"; then
8186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8187 $as_echo "$MAGIC_CMD" >&6; }
8188 else
8189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8191 fi
8192
8193
8194
8195
8196
8197 if test -z "$lt_cv_path_MAGIC_CMD"; then
8198   if test -n "$ac_tool_prefix"; then
8199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8200 $as_echo_n "checking for file... " >&6; }
8201 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8202   $as_echo_n "(cached) " >&6
8203 else
8204   case $MAGIC_CMD in
8205 [\\/*] |  ?:[\\/]*)
8206   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207   ;;
8208 *)
8209   lt_save_MAGIC_CMD="$MAGIC_CMD"
8210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212   for ac_dir in $ac_dummy; do
8213     IFS="$lt_save_ifs"
8214     test -z "$ac_dir" && ac_dir=.
8215     if test -f $ac_dir/file; then
8216       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8217       if test -n "$file_magic_test_file"; then
8218         case $deplibs_check_method in
8219         "file_magic "*)
8220           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223             $EGREP "$file_magic_regex" > /dev/null; then
8224             :
8225           else
8226             cat <<_LT_EOF 1>&2
8227
8228 *** Warning: the command libtool uses to detect shared libraries,
8229 *** $file_magic_cmd, produces output that libtool cannot recognize.
8230 *** The result is that libtool may fail to recognize shared libraries
8231 *** as such.  This will affect the creation of libtool libraries that
8232 *** depend on shared libraries, but programs linked with such libtool
8233 *** libraries will work regardless of this problem.  Nevertheless, you
8234 *** may want to report the problem to your system manager and/or to
8235 *** bug-libtool@gnu.org
8236
8237 _LT_EOF
8238           fi ;;
8239         esac
8240       fi
8241       break
8242     fi
8243   done
8244   IFS="$lt_save_ifs"
8245   MAGIC_CMD="$lt_save_MAGIC_CMD"
8246   ;;
8247 esac
8248 fi
8249
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if test -n "$MAGIC_CMD"; then
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8253 $as_echo "$MAGIC_CMD" >&6; }
8254 else
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260   else
8261     MAGIC_CMD=:
8262   fi
8263 fi
8264
8265   fi
8266   ;;
8267 esac
8268
8269 # Use C for the default configuration in the libtool script
8270
8271 lt_save_CC="$CC"
8272 ac_ext=c
8273 ac_cpp='$CPP $CPPFLAGS'
8274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8277
8278
8279 # Source file extension for C test sources.
8280 ac_ext=c
8281
8282 # Object file extension for compiled C test sources.
8283 objext=o
8284 objext=$objext
8285
8286 # Code to be used in simple compile tests
8287 lt_simple_compile_test_code="int some_variable = 0;"
8288
8289 # Code to be used in simple link tests
8290 lt_simple_link_test_code='int main(){return(0);}'
8291
8292
8293
8294
8295
8296
8297
8298 # If no C compiler was specified, use CC.
8299 LTCC=${LTCC-"$CC"}
8300
8301 # If no C compiler flags were specified, use CFLAGS.
8302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8303
8304 # Allow CC to be a program name with arguments.
8305 compiler=$CC
8306
8307 # Save the default compiler, since it gets overwritten when the other
8308 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8309 compiler_DEFAULT=$CC
8310
8311 # save warnings/boilerplate of simple test code
8312 ac_outfile=conftest.$ac_objext
8313 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8314 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8315 _lt_compiler_boilerplate=`cat conftest.err`
8316 $RM conftest*
8317
8318 ac_outfile=conftest.$ac_objext
8319 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8320 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8321 _lt_linker_boilerplate=`cat conftest.err`
8322 $RM -r conftest*
8323
8324
8325 ## CAVEAT EMPTOR:
8326 ## There is no encapsulation within the following macros, do not change
8327 ## the running order or otherwise move them around unless you know exactly
8328 ## what you are doing...
8329 if test -n "$compiler"; then
8330
8331 lt_prog_compiler_no_builtin_flag=
8332
8333 if test "$GCC" = yes; then
8334   case $cc_basename in
8335   nvcc*)
8336     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8337   *)
8338     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8339   esac
8340
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8342 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8343 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   lt_cv_prog_compiler_rtti_exceptions=no
8347    ac_outfile=conftest.$ac_objext
8348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349    lt_compiler_flag="-fno-rtti -fno-exceptions"
8350    # Insert the option either (1) after the last *FLAGS variable, or
8351    # (2) before a word containing "conftest.", or (3) at the end.
8352    # Note that $ac_compile itself does not contain backslashes and begins
8353    # with a dollar sign (not a hyphen), so the echo should work correctly.
8354    # The option is referenced via a variable to avoid confusing sed.
8355    lt_compile=`echo "$ac_compile" | $SED \
8356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358    -e 's:$: $lt_compiler_flag:'`
8359    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8360    (eval "$lt_compile" 2>conftest.err)
8361    ac_status=$?
8362    cat conftest.err >&5
8363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364    if (exit $ac_status) && test -s "$ac_outfile"; then
8365      # The compiler can only warn and ignore the option if not recognized
8366      # So say no if there are warnings other than the usual output.
8367      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370        lt_cv_prog_compiler_rtti_exceptions=yes
8371      fi
8372    fi
8373    $RM conftest*
8374
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8377 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8378
8379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8381 else
8382     :
8383 fi
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392   lt_prog_compiler_wl=
8393 lt_prog_compiler_pic=
8394 lt_prog_compiler_static=
8395
8396
8397   if test "$GCC" = yes; then
8398     lt_prog_compiler_wl='-Wl,'
8399     lt_prog_compiler_static='-static'
8400
8401     case $host_os in
8402       aix*)
8403       # All AIX code is PIC.
8404       if test "$host_cpu" = ia64; then
8405         # AIX 5 now supports IA64 processor
8406         lt_prog_compiler_static='-Bstatic'
8407       fi
8408       ;;
8409
8410     amigaos*)
8411       case $host_cpu in
8412       powerpc)
8413             # see comment about AmigaOS4 .so support
8414             lt_prog_compiler_pic='-fPIC'
8415         ;;
8416       m68k)
8417             # FIXME: we need at least 68020 code to build shared libraries, but
8418             # adding the `-m68020' flag to GCC prevents building anything better,
8419             # like `-m68040'.
8420             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8421         ;;
8422       esac
8423       ;;
8424
8425     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8426       # PIC is the default for these OSes.
8427       ;;
8428
8429     mingw* | cygwin* | pw32* | os2* | cegcc*)
8430       # This hack is so that the source file can tell whether it is being
8431       # built for inclusion in a dll (and should export symbols for example).
8432       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8433       # (--disable-auto-import) libraries
8434       lt_prog_compiler_pic='-DDLL_EXPORT'
8435       ;;
8436
8437     darwin* | rhapsody*)
8438       # PIC is the default on this platform
8439       # Common symbols not allowed in MH_DYLIB files
8440       lt_prog_compiler_pic='-fno-common'
8441       ;;
8442
8443     haiku*)
8444       # PIC is the default for Haiku.
8445       # The "-static" flag exists, but is broken.
8446       lt_prog_compiler_static=
8447       ;;
8448
8449     hpux*)
8450       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8451       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8452       # sets the default TLS model and affects inlining.
8453       case $host_cpu in
8454       hppa*64*)
8455         # +Z the default
8456         ;;
8457       *)
8458         lt_prog_compiler_pic='-fPIC'
8459         ;;
8460       esac
8461       ;;
8462
8463     interix[3-9]*)
8464       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8465       # Instead, we relocate shared libraries at runtime.
8466       ;;
8467
8468     msdosdjgpp*)
8469       # Just because we use GCC doesn't mean we suddenly get shared libraries
8470       # on systems that don't support them.
8471       lt_prog_compiler_can_build_shared=no
8472       enable_shared=no
8473       ;;
8474
8475     *nto* | *qnx*)
8476       # QNX uses GNU C++, but need to define -shared option too, otherwise
8477       # it will coredump.
8478       lt_prog_compiler_pic='-fPIC -shared'
8479       ;;
8480
8481     sysv4*MP*)
8482       if test -d /usr/nec; then
8483         lt_prog_compiler_pic=-Kconform_pic
8484       fi
8485       ;;
8486
8487     *)
8488       lt_prog_compiler_pic='-fPIC'
8489       ;;
8490     esac
8491
8492     case $cc_basename in
8493     nvcc*) # Cuda Compiler Driver 2.2
8494       lt_prog_compiler_wl='-Xlinker '
8495       if test -n "$lt_prog_compiler_pic"; then
8496         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8497       fi
8498       ;;
8499     esac
8500   else
8501     # PORTME Check for flag to pass linker flags through the system compiler.
8502     case $host_os in
8503     aix*)
8504       lt_prog_compiler_wl='-Wl,'
8505       if test "$host_cpu" = ia64; then
8506         # AIX 5 now supports IA64 processor
8507         lt_prog_compiler_static='-Bstatic'
8508       else
8509         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8510       fi
8511       ;;
8512
8513     mingw* | cygwin* | pw32* | os2* | cegcc*)
8514       # This hack is so that the source file can tell whether it is being
8515       # built for inclusion in a dll (and should export symbols for example).
8516       lt_prog_compiler_pic='-DDLL_EXPORT'
8517       ;;
8518
8519     hpux9* | hpux10* | hpux11*)
8520       lt_prog_compiler_wl='-Wl,'
8521       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8522       # not for PA HP-UX.
8523       case $host_cpu in
8524       hppa*64*|ia64*)
8525         # +Z the default
8526         ;;
8527       *)
8528         lt_prog_compiler_pic='+Z'
8529         ;;
8530       esac
8531       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8532       lt_prog_compiler_static='${wl}-a ${wl}archive'
8533       ;;
8534
8535     irix5* | irix6* | nonstopux*)
8536       lt_prog_compiler_wl='-Wl,'
8537       # PIC (with -KPIC) is the default.
8538       lt_prog_compiler_static='-non_shared'
8539       ;;
8540
8541     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8542       case $cc_basename in
8543       # old Intel for x86_64 which still supported -KPIC.
8544       ecc*)
8545         lt_prog_compiler_wl='-Wl,'
8546         lt_prog_compiler_pic='-KPIC'
8547         lt_prog_compiler_static='-static'
8548         ;;
8549       # icc used to be incompatible with GCC.
8550       # ICC 10 doesn't accept -KPIC any more.
8551       icc* | ifort*)
8552         lt_prog_compiler_wl='-Wl,'
8553         lt_prog_compiler_pic='-fPIC'
8554         lt_prog_compiler_static='-static'
8555         ;;
8556       # Lahey Fortran 8.1.
8557       lf95*)
8558         lt_prog_compiler_wl='-Wl,'
8559         lt_prog_compiler_pic='--shared'
8560         lt_prog_compiler_static='--static'
8561         ;;
8562       nagfor*)
8563         # NAG Fortran compiler
8564         lt_prog_compiler_wl='-Wl,-Wl,,'
8565         lt_prog_compiler_pic='-PIC'
8566         lt_prog_compiler_static='-Bstatic'
8567         ;;
8568       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8569         # Portland Group compilers (*not* the Pentium gcc compiler,
8570         # which looks to be a dead project)
8571         lt_prog_compiler_wl='-Wl,'
8572         lt_prog_compiler_pic='-fpic'
8573         lt_prog_compiler_static='-Bstatic'
8574         ;;
8575       ccc*)
8576         lt_prog_compiler_wl='-Wl,'
8577         # All Alpha code is PIC.
8578         lt_prog_compiler_static='-non_shared'
8579         ;;
8580       xl* | bgxl* | bgf* | mpixl*)
8581         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8582         lt_prog_compiler_wl='-Wl,'
8583         lt_prog_compiler_pic='-qpic'
8584         lt_prog_compiler_static='-qstaticlink'
8585         ;;
8586       *)
8587         case `$CC -V 2>&1 | sed 5q` in
8588         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8589           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8590           lt_prog_compiler_pic='-KPIC'
8591           lt_prog_compiler_static='-Bstatic'
8592           lt_prog_compiler_wl=''
8593           ;;
8594         *Sun\ F* | *Sun*Fortran*)
8595           lt_prog_compiler_pic='-KPIC'
8596           lt_prog_compiler_static='-Bstatic'
8597           lt_prog_compiler_wl='-Qoption ld '
8598           ;;
8599         *Sun\ C*)
8600           # Sun C 5.9
8601           lt_prog_compiler_pic='-KPIC'
8602           lt_prog_compiler_static='-Bstatic'
8603           lt_prog_compiler_wl='-Wl,'
8604           ;;
8605         *Intel*\ [CF]*Compiler*)
8606           lt_prog_compiler_wl='-Wl,'
8607           lt_prog_compiler_pic='-fPIC'
8608           lt_prog_compiler_static='-static'
8609           ;;
8610         *Portland\ Group*)
8611           lt_prog_compiler_wl='-Wl,'
8612           lt_prog_compiler_pic='-fpic'
8613           lt_prog_compiler_static='-Bstatic'
8614           ;;
8615         esac
8616         ;;
8617       esac
8618       ;;
8619
8620     newsos6)
8621       lt_prog_compiler_pic='-KPIC'
8622       lt_prog_compiler_static='-Bstatic'
8623       ;;
8624
8625     *nto* | *qnx*)
8626       # QNX uses GNU C++, but need to define -shared option too, otherwise
8627       # it will coredump.
8628       lt_prog_compiler_pic='-fPIC -shared'
8629       ;;
8630
8631     osf3* | osf4* | osf5*)
8632       lt_prog_compiler_wl='-Wl,'
8633       # All OSF/1 code is PIC.
8634       lt_prog_compiler_static='-non_shared'
8635       ;;
8636
8637     rdos*)
8638       lt_prog_compiler_static='-non_shared'
8639       ;;
8640
8641     solaris*)
8642       lt_prog_compiler_pic='-KPIC'
8643       lt_prog_compiler_static='-Bstatic'
8644       case $cc_basename in
8645       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8646         lt_prog_compiler_wl='-Qoption ld ';;
8647       *)
8648         lt_prog_compiler_wl='-Wl,';;
8649       esac
8650       ;;
8651
8652     sunos4*)
8653       lt_prog_compiler_wl='-Qoption ld '
8654       lt_prog_compiler_pic='-PIC'
8655       lt_prog_compiler_static='-Bstatic'
8656       ;;
8657
8658     sysv4 | sysv4.2uw2* | sysv4.3*)
8659       lt_prog_compiler_wl='-Wl,'
8660       lt_prog_compiler_pic='-KPIC'
8661       lt_prog_compiler_static='-Bstatic'
8662       ;;
8663
8664     sysv4*MP*)
8665       if test -d /usr/nec ;then
8666         lt_prog_compiler_pic='-Kconform_pic'
8667         lt_prog_compiler_static='-Bstatic'
8668       fi
8669       ;;
8670
8671     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8672       lt_prog_compiler_wl='-Wl,'
8673       lt_prog_compiler_pic='-KPIC'
8674       lt_prog_compiler_static='-Bstatic'
8675       ;;
8676
8677     unicos*)
8678       lt_prog_compiler_wl='-Wl,'
8679       lt_prog_compiler_can_build_shared=no
8680       ;;
8681
8682     uts4*)
8683       lt_prog_compiler_pic='-pic'
8684       lt_prog_compiler_static='-Bstatic'
8685       ;;
8686
8687     *)
8688       lt_prog_compiler_can_build_shared=no
8689       ;;
8690     esac
8691   fi
8692
8693 case $host_os in
8694   # For platforms which do not support PIC, -DPIC is meaningless:
8695   *djgpp*)
8696     lt_prog_compiler_pic=
8697     ;;
8698   *)
8699     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8700     ;;
8701 esac
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8704 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8705 if ${lt_cv_prog_compiler_pic+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8709 fi
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8711 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8712 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8713
8714 #
8715 # Check to make sure the PIC flag actually works.
8716 #
8717 if test -n "$lt_prog_compiler_pic"; then
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8720 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   lt_cv_prog_compiler_pic_works=no
8724    ac_outfile=conftest.$ac_objext
8725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8727    # Insert the option either (1) after the last *FLAGS variable, or
8728    # (2) before a word containing "conftest.", or (3) at the end.
8729    # Note that $ac_compile itself does not contain backslashes and begins
8730    # with a dollar sign (not a hyphen), so the echo should work correctly.
8731    # The option is referenced via a variable to avoid confusing sed.
8732    lt_compile=`echo "$ac_compile" | $SED \
8733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735    -e 's:$: $lt_compiler_flag:'`
8736    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737    (eval "$lt_compile" 2>conftest.err)
8738    ac_status=$?
8739    cat conftest.err >&5
8740    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741    if (exit $ac_status) && test -s "$ac_outfile"; then
8742      # The compiler can only warn and ignore the option if not recognized
8743      # So say no if there are warnings other than the usual output.
8744      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8745      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8747        lt_cv_prog_compiler_pic_works=yes
8748      fi
8749    fi
8750    $RM conftest*
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8754 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8755
8756 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8757     case $lt_prog_compiler_pic in
8758      "" | " "*) ;;
8759      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8760      esac
8761 else
8762     lt_prog_compiler_pic=
8763      lt_prog_compiler_can_build_shared=no
8764 fi
8765
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 #
8779 # Check to make sure the static flag actually works.
8780 #
8781 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8783 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8784 if ${lt_cv_prog_compiler_static_works+:} false; then :
8785   $as_echo_n "(cached) " >&6
8786 else
8787   lt_cv_prog_compiler_static_works=no
8788    save_LDFLAGS="$LDFLAGS"
8789    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8790    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8791    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8792      # The linker can only warn and ignore the option if not recognized
8793      # So say no if there are warnings
8794      if test -s conftest.err; then
8795        # Append any errors to the config.log.
8796        cat conftest.err 1>&5
8797        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8798        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799        if diff conftest.exp conftest.er2 >/dev/null; then
8800          lt_cv_prog_compiler_static_works=yes
8801        fi
8802      else
8803        lt_cv_prog_compiler_static_works=yes
8804      fi
8805    fi
8806    $RM -r conftest*
8807    LDFLAGS="$save_LDFLAGS"
8808
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8811 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8812
8813 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8814     :
8815 else
8816     lt_prog_compiler_static=
8817 fi
8818
8819
8820
8821
8822
8823
8824
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8826 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8827 if ${lt_cv_prog_compiler_c_o+:} false; then :
8828   $as_echo_n "(cached) " >&6
8829 else
8830   lt_cv_prog_compiler_c_o=no
8831    $RM -r conftest 2>/dev/null
8832    mkdir conftest
8833    cd conftest
8834    mkdir out
8835    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8836
8837    lt_compiler_flag="-o out/conftest2.$ac_objext"
8838    # Insert the option either (1) after the last *FLAGS variable, or
8839    # (2) before a word containing "conftest.", or (3) at the end.
8840    # Note that $ac_compile itself does not contain backslashes and begins
8841    # with a dollar sign (not a hyphen), so the echo should work correctly.
8842    lt_compile=`echo "$ac_compile" | $SED \
8843    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8844    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8845    -e 's:$: $lt_compiler_flag:'`
8846    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8847    (eval "$lt_compile" 2>out/conftest.err)
8848    ac_status=$?
8849    cat out/conftest.err >&5
8850    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8852    then
8853      # The compiler can only warn and ignore the option if not recognized
8854      # So say no if there are warnings
8855      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8856      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8857      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8858        lt_cv_prog_compiler_c_o=yes
8859      fi
8860    fi
8861    chmod u+w . 2>&5
8862    $RM conftest*
8863    # SGI C++ compiler will create directory out/ii_files/ for
8864    # template instantiation
8865    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8866    $RM out/* && rmdir out
8867    cd ..
8868    $RM -r conftest
8869    $RM conftest*
8870
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8873 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8874
8875
8876
8877
8878
8879
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8882 if ${lt_cv_prog_compiler_c_o+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   lt_cv_prog_compiler_c_o=no
8886    $RM -r conftest 2>/dev/null
8887    mkdir conftest
8888    cd conftest
8889    mkdir out
8890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891
8892    lt_compiler_flag="-o out/conftest2.$ac_objext"
8893    # Insert the option either (1) after the last *FLAGS variable, or
8894    # (2) before a word containing "conftest.", or (3) at the end.
8895    # Note that $ac_compile itself does not contain backslashes and begins
8896    # with a dollar sign (not a hyphen), so the echo should work correctly.
8897    lt_compile=`echo "$ac_compile" | $SED \
8898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900    -e 's:$: $lt_compiler_flag:'`
8901    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8902    (eval "$lt_compile" 2>out/conftest.err)
8903    ac_status=$?
8904    cat out/conftest.err >&5
8905    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8907    then
8908      # The compiler can only warn and ignore the option if not recognized
8909      # So say no if there are warnings
8910      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8911      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8912      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8913        lt_cv_prog_compiler_c_o=yes
8914      fi
8915    fi
8916    chmod u+w . 2>&5
8917    $RM conftest*
8918    # SGI C++ compiler will create directory out/ii_files/ for
8919    # template instantiation
8920    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8921    $RM out/* && rmdir out
8922    cd ..
8923    $RM -r conftest
8924    $RM conftest*
8925
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8928 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8929
8930
8931
8932
8933 hard_links="nottested"
8934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8935   # do not overwrite the value of need_locks provided by the user
8936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8937 $as_echo_n "checking if we can lock with hard links... " >&6; }
8938   hard_links=yes
8939   $RM conftest*
8940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941   touch conftest.a
8942   ln conftest.a conftest.b 2>&5 || hard_links=no
8943   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8945 $as_echo "$hard_links" >&6; }
8946   if test "$hard_links" = no; then
8947     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8948 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8949     need_locks=warn
8950   fi
8951 else
8952   need_locks=no
8953 fi
8954
8955
8956
8957
8958
8959
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8961 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8962
8963   runpath_var=
8964   allow_undefined_flag=
8965   always_export_symbols=no
8966   archive_cmds=
8967   archive_expsym_cmds=
8968   compiler_needs_object=no
8969   enable_shared_with_static_runtimes=no
8970   export_dynamic_flag_spec=
8971   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8972   hardcode_automatic=no
8973   hardcode_direct=no
8974   hardcode_direct_absolute=no
8975   hardcode_libdir_flag_spec=
8976   hardcode_libdir_separator=
8977   hardcode_minus_L=no
8978   hardcode_shlibpath_var=unsupported
8979   inherit_rpath=no
8980   link_all_deplibs=unknown
8981   module_cmds=
8982   module_expsym_cmds=
8983   old_archive_from_new_cmds=
8984   old_archive_from_expsyms_cmds=
8985   thread_safe_flag_spec=
8986   whole_archive_flag_spec=
8987   # include_expsyms should be a list of space-separated symbols to be *always*
8988   # included in the symbol list
8989   include_expsyms=
8990   # exclude_expsyms can be an extended regexp of symbols to exclude
8991   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8992   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8993   # as well as any symbol that contains `d'.
8994   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8995   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8996   # platforms (ab)use it in PIC code, but their linkers get confused if
8997   # the symbol is explicitly referenced.  Since portable code cannot
8998   # rely on this symbol name, it's probably fine to never include it in
8999   # preloaded symbol tables.
9000   # Exclude shared library initialization/finalization symbols.
9001   extract_expsyms_cmds=
9002
9003   case $host_os in
9004   cygwin* | mingw* | pw32* | cegcc*)
9005     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9006     # When not using gcc, we currently assume that we are using
9007     # Microsoft Visual C++.
9008     if test "$GCC" != yes; then
9009       with_gnu_ld=no
9010     fi
9011     ;;
9012   interix*)
9013     # we just hope/assume this is gcc and not c89 (= MSVC++)
9014     with_gnu_ld=yes
9015     ;;
9016   openbsd*)
9017     with_gnu_ld=no
9018     ;;
9019   esac
9020
9021   ld_shlibs=yes
9022
9023   # On some targets, GNU ld is compatible enough with the native linker
9024   # that we're better off using the native interface for both.
9025   lt_use_gnu_ld_interface=no
9026   if test "$with_gnu_ld" = yes; then
9027     case $host_os in
9028       aix*)
9029         # The AIX port of GNU ld has always aspired to compatibility
9030         # with the native linker.  However, as the warning in the GNU ld
9031         # block says, versions before 2.19.5* couldn't really create working
9032         # shared libraries, regardless of the interface used.
9033         case `$LD -v 2>&1` in
9034           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9035           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9036           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9037           *)
9038             lt_use_gnu_ld_interface=yes
9039             ;;
9040         esac
9041         ;;
9042       *)
9043         lt_use_gnu_ld_interface=yes
9044         ;;
9045     esac
9046   fi
9047
9048   if test "$lt_use_gnu_ld_interface" = yes; then
9049     # If archive_cmds runs LD, not CC, wlarc should be empty
9050     wlarc='${wl}'
9051
9052     # Set some defaults for GNU ld with shared library support. These
9053     # are reset later if shared libraries are not supported. Putting them
9054     # here allows them to be overridden if necessary.
9055     runpath_var=LD_RUN_PATH
9056     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9057     export_dynamic_flag_spec='${wl}--export-dynamic'
9058     # ancient GNU ld didn't support --whole-archive et. al.
9059     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9060       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061     else
9062       whole_archive_flag_spec=
9063     fi
9064     supports_anon_versioning=no
9065     case `$LD -v 2>&1` in
9066       *GNU\ gold*) supports_anon_versioning=yes ;;
9067       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9068       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9069       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9070       *\ 2.11.*) ;; # other 2.11 versions
9071       *) supports_anon_versioning=yes ;;
9072     esac
9073
9074     # See if GNU ld supports shared libraries.
9075     case $host_os in
9076     aix[3-9]*)
9077       # On AIX/PPC, the GNU linker is very broken
9078       if test "$host_cpu" != ia64; then
9079         ld_shlibs=no
9080         cat <<_LT_EOF 1>&2
9081
9082 *** Warning: the GNU linker, at least up to release 2.19, is reported
9083 *** to be unable to reliably create shared libraries on AIX.
9084 *** Therefore, libtool is disabling shared libraries support.  If you
9085 *** really care for shared libraries, you may want to install binutils
9086 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9087 *** You will then need to restart the configuration process.
9088
9089 _LT_EOF
9090       fi
9091       ;;
9092
9093     amigaos*)
9094       case $host_cpu in
9095       powerpc)
9096             # see comment about AmigaOS4 .so support
9097             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098             archive_expsym_cmds=''
9099         ;;
9100       m68k)
9101             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)'
9102             hardcode_libdir_flag_spec='-L$libdir'
9103             hardcode_minus_L=yes
9104         ;;
9105       esac
9106       ;;
9107
9108     beos*)
9109       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9110         allow_undefined_flag=unsupported
9111         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9112         # support --undefined.  This deserves some investigation.  FIXME
9113         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114       else
9115         ld_shlibs=no
9116       fi
9117       ;;
9118
9119     cygwin* | mingw* | pw32* | cegcc*)
9120       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9121       # as there is no search path for DLLs.
9122       hardcode_libdir_flag_spec='-L$libdir'
9123       export_dynamic_flag_spec='${wl}--export-all-symbols'
9124       allow_undefined_flag=unsupported
9125       always_export_symbols=no
9126       enable_shared_with_static_runtimes=yes
9127       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'
9128       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9129
9130       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9131         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9132         # If the export-symbols file already is a .def file (1st line
9133         # is EXPORTS), use it as is; otherwise, prepend...
9134         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9135           cp $export_symbols $output_objdir/$soname.def;
9136         else
9137           echo EXPORTS > $output_objdir/$soname.def;
9138           cat $export_symbols >> $output_objdir/$soname.def;
9139         fi~
9140         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9141       else
9142         ld_shlibs=no
9143       fi
9144       ;;
9145
9146     haiku*)
9147       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148       link_all_deplibs=yes
9149       ;;
9150
9151     interix[3-9]*)
9152       hardcode_direct=no
9153       hardcode_shlibpath_var=no
9154       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9155       export_dynamic_flag_spec='${wl}-E'
9156       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9157       # Instead, shared libraries are loaded at an image base (0x10000000 by
9158       # default) and relocated if they conflict, which is a slow very memory
9159       # consuming and fragmenting process.  To avoid this, we pick a random,
9160       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9161       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9162       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9163       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'
9164       ;;
9165
9166     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9167       tmp_diet=no
9168       if test "$host_os" = linux-dietlibc; then
9169         case $cc_basename in
9170           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9171         esac
9172       fi
9173       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9174          && test "$tmp_diet" = no
9175       then
9176         tmp_addflag=' $pic_flag'
9177         tmp_sharedflag='-shared'
9178         case $cc_basename,$host_cpu in
9179         pgcc*)                          # Portland Group C compiler
9180           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'
9181           tmp_addflag=' $pic_flag'
9182           ;;
9183         pgf77* | pgf90* | pgf95* | pgfortran*)
9184                                         # Portland Group f77 and f90 compilers
9185           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'
9186           tmp_addflag=' $pic_flag -Mnomain' ;;
9187         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9188           tmp_addflag=' -i_dynamic' ;;
9189         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9190           tmp_addflag=' -i_dynamic -nofor_main' ;;
9191         ifc* | ifort*)                  # Intel Fortran compiler
9192           tmp_addflag=' -nofor_main' ;;
9193         lf95*)                          # Lahey Fortran 8.1
9194           whole_archive_flag_spec=
9195           tmp_sharedflag='--shared' ;;
9196         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9197           tmp_sharedflag='-qmkshrobj'
9198           tmp_addflag= ;;
9199         nvcc*)  # Cuda Compiler Driver 2.2
9200           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'
9201           compiler_needs_object=yes
9202           ;;
9203         esac
9204         case `$CC -V 2>&1 | sed 5q` in
9205         *Sun\ C*)                       # Sun C 5.9
9206           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'
9207           compiler_needs_object=yes
9208           tmp_sharedflag='-G' ;;
9209         *Sun\ F*)                       # Sun Fortran 8.3
9210           tmp_sharedflag='-G' ;;
9211         esac
9212         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9213
9214         if test "x$supports_anon_versioning" = xyes; then
9215           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9216             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9217             echo "local: *; };" >> $output_objdir/$libname.ver~
9218             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9219         fi
9220
9221         case $cc_basename in
9222         xlf* | bgf* | bgxlf* | mpixlf*)
9223           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9224           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9225           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9226           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9227           if test "x$supports_anon_versioning" = xyes; then
9228             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230               echo "local: *; };" >> $output_objdir/$libname.ver~
9231               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9232           fi
9233           ;;
9234         esac
9235       else
9236         ld_shlibs=no
9237       fi
9238       ;;
9239
9240     netbsd*)
9241       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9243         wlarc=
9244       else
9245         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9246         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9247       fi
9248       ;;
9249
9250     solaris*)
9251       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9252         ld_shlibs=no
9253         cat <<_LT_EOF 1>&2
9254
9255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9256 *** create shared libraries on Solaris systems.  Therefore, libtool
9257 *** is disabling shared libraries support.  We urge you to upgrade GNU
9258 *** binutils to release 2.9.1 or newer.  Another option is to modify
9259 *** your PATH or compiler configuration so that the native linker is
9260 *** used, and then restart.
9261
9262 _LT_EOF
9263       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9266       else
9267         ld_shlibs=no
9268       fi
9269       ;;
9270
9271     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9272       case `$LD -v 2>&1` in
9273         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9274         ld_shlibs=no
9275         cat <<_LT_EOF 1>&2
9276
9277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9278 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9279 *** is disabling shared libraries support.  We urge you to upgrade GNU
9280 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9281 *** your PATH or compiler configuration so that the native linker is
9282 *** used, and then restart.
9283
9284 _LT_EOF
9285         ;;
9286         *)
9287           # For security reasons, it is highly recommended that you always
9288           # use absolute paths for naming shared libraries, and exclude the
9289           # DT_RUNPATH tag from executables and libraries.  But doing so
9290           # requires that you compile everything twice, which is a pain.
9291           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295           else
9296             ld_shlibs=no
9297           fi
9298         ;;
9299       esac
9300       ;;
9301
9302     sunos4*)
9303       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9304       wlarc=
9305       hardcode_direct=yes
9306       hardcode_shlibpath_var=no
9307       ;;
9308
9309     *)
9310       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313       else
9314         ld_shlibs=no
9315       fi
9316       ;;
9317     esac
9318
9319     if test "$ld_shlibs" = no; then
9320       runpath_var=
9321       hardcode_libdir_flag_spec=
9322       export_dynamic_flag_spec=
9323       whole_archive_flag_spec=
9324     fi
9325   else
9326     # PORTME fill in a description of your system's linker (not GNU ld)
9327     case $host_os in
9328     aix3*)
9329       allow_undefined_flag=unsupported
9330       always_export_symbols=yes
9331       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'
9332       # Note: this linker hardcodes the directories in LIBPATH if there
9333       # are no directories specified by -L.
9334       hardcode_minus_L=yes
9335       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9336         # Neither direct hardcoding nor static linking is supported with a
9337         # broken collect2.
9338         hardcode_direct=unsupported
9339       fi
9340       ;;
9341
9342     aix[4-9]*)
9343       if test "$host_cpu" = ia64; then
9344         # On IA64, the linker does run time linking by default, so we don't
9345         # have to do anything special.
9346         aix_use_runtimelinking=no
9347         exp_sym_flag='-Bexport'
9348         no_entry_flag=""
9349       else
9350         # If we're using GNU nm, then we don't want the "-C" option.
9351         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9352         # Also, AIX nm treats weak defined symbols like other global
9353         # defined symbols, whereas GNU nm marks them as "W".
9354         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9355           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9356         else
9357           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9358         fi
9359         aix_use_runtimelinking=no
9360
9361         # Test if we are trying to use run time linking or normal
9362         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9363         # need to do runtime linking.
9364         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9365           for ld_flag in $LDFLAGS; do
9366           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9367             aix_use_runtimelinking=yes
9368             break
9369           fi
9370           done
9371           ;;
9372         esac
9373
9374         exp_sym_flag='-bexport'
9375         no_entry_flag='-bnoentry'
9376       fi
9377
9378       # When large executables or shared objects are built, AIX ld can
9379       # have problems creating the table of contents.  If linking a library
9380       # or program results in "error TOC overflow" add -mminimal-toc to
9381       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9382       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9383
9384       archive_cmds=''
9385       hardcode_direct=yes
9386       hardcode_direct_absolute=yes
9387       hardcode_libdir_separator=':'
9388       link_all_deplibs=yes
9389       file_list_spec='${wl}-f,'
9390
9391       if test "$GCC" = yes; then
9392         case $host_os in aix4.[012]|aix4.[012].*)
9393         # We only want to do this on AIX 4.2 and lower, the check
9394         # below for broken collect2 doesn't work under 4.3+
9395           collect2name=`${CC} -print-prog-name=collect2`
9396           if test -f "$collect2name" &&
9397            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9398           then
9399           # We have reworked collect2
9400           :
9401           else
9402           # We have old collect2
9403           hardcode_direct=unsupported
9404           # It fails to find uninstalled libraries when the uninstalled
9405           # path is not listed in the libpath.  Setting hardcode_minus_L
9406           # to unsupported forces relinking
9407           hardcode_minus_L=yes
9408           hardcode_libdir_flag_spec='-L$libdir'
9409           hardcode_libdir_separator=
9410           fi
9411           ;;
9412         esac
9413         shared_flag='-shared'
9414         if test "$aix_use_runtimelinking" = yes; then
9415           shared_flag="$shared_flag "'${wl}-G'
9416         fi
9417       else
9418         # not using gcc
9419         if test "$host_cpu" = ia64; then
9420         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9421         # chokes on -Wl,-G. The following line is correct:
9422           shared_flag='-G'
9423         else
9424           if test "$aix_use_runtimelinking" = yes; then
9425             shared_flag='${wl}-G'
9426           else
9427             shared_flag='${wl}-bM:SRE'
9428           fi
9429         fi
9430       fi
9431
9432       export_dynamic_flag_spec='${wl}-bexpall'
9433       # It seems that -bexpall does not export symbols beginning with
9434       # underscore (_), so it is better to generate a list of symbols to export.
9435       always_export_symbols=yes
9436       if test "$aix_use_runtimelinking" = yes; then
9437         # Warning - without using the other runtime loading flags (-brtl),
9438         # -berok will link without error, but may produce a broken library.
9439         allow_undefined_flag='-berok'
9440         # Determine the default libpath from the value encoded in an
9441         # empty executable.
9442         if test "${lt_cv_aix_libpath+set}" = set; then
9443   aix_libpath=$lt_cv_aix_libpath
9444 else
9445   if ${lt_cv_aix_libpath_+:} false; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h.  */
9450
9451 int
9452 main ()
9453 {
9454
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460
9461   lt_aix_libpath_sed='
9462       /Import File Strings/,/^$/ {
9463           /^0/ {
9464               s/^0  *\([^ ]*\) *$/\1/
9465               p
9466           }
9467       }'
9468   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9469   # Check for a 64-bit object if we didn't find anything.
9470   if test -z "$lt_cv_aix_libpath_"; then
9471     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9472   fi
9473 fi
9474 rm -f core conftest.err conftest.$ac_objext \
9475     conftest$ac_exeext conftest.$ac_ext
9476   if test -z "$lt_cv_aix_libpath_"; then
9477     lt_cv_aix_libpath_="/usr/lib:/lib"
9478   fi
9479
9480 fi
9481
9482   aix_libpath=$lt_cv_aix_libpath_
9483 fi
9484
9485         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9487       else
9488         if test "$host_cpu" = ia64; then
9489           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9490           allow_undefined_flag="-z nodefs"
9491           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"
9492         else
9493          # Determine the default libpath from the value encoded in an
9494          # empty executable.
9495          if test "${lt_cv_aix_libpath+set}" = set; then
9496   aix_libpath=$lt_cv_aix_libpath
9497 else
9498   if ${lt_cv_aix_libpath_+:} false; then :
9499   $as_echo_n "(cached) " >&6
9500 else
9501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h.  */
9503
9504 int
9505 main ()
9506 {
9507
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 if ac_fn_c_try_link "$LINENO"; then :
9513
9514   lt_aix_libpath_sed='
9515       /Import File Strings/,/^$/ {
9516           /^0/ {
9517               s/^0  *\([^ ]*\) *$/\1/
9518               p
9519           }
9520       }'
9521   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522   # Check for a 64-bit object if we didn't find anything.
9523   if test -z "$lt_cv_aix_libpath_"; then
9524     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9525   fi
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext \
9528     conftest$ac_exeext conftest.$ac_ext
9529   if test -z "$lt_cv_aix_libpath_"; then
9530     lt_cv_aix_libpath_="/usr/lib:/lib"
9531   fi
9532
9533 fi
9534
9535   aix_libpath=$lt_cv_aix_libpath_
9536 fi
9537
9538          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9539           # Warning - without using the other run time loading flags,
9540           # -berok will link without error, but may produce a broken library.
9541           no_undefined_flag=' ${wl}-bernotok'
9542           allow_undefined_flag=' ${wl}-berok'
9543           if test "$with_gnu_ld" = yes; then
9544             # We only use this code for GNU lds that support --whole-archive.
9545             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9546           else
9547             # Exported symbols can be pulled into shared objects from archives
9548             whole_archive_flag_spec='$convenience'
9549           fi
9550           archive_cmds_need_lc=yes
9551           # This is similar to how AIX traditionally builds its shared libraries.
9552           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9553         fi
9554       fi
9555       ;;
9556
9557     amigaos*)
9558       case $host_cpu in
9559       powerpc)
9560             # see comment about AmigaOS4 .so support
9561             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562             archive_expsym_cmds=''
9563         ;;
9564       m68k)
9565             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)'
9566             hardcode_libdir_flag_spec='-L$libdir'
9567             hardcode_minus_L=yes
9568         ;;
9569       esac
9570       ;;
9571
9572     bsdi[45]*)
9573       export_dynamic_flag_spec=-rdynamic
9574       ;;
9575
9576     cygwin* | mingw* | pw32* | cegcc*)
9577       # When not using gcc, we currently assume that we are using
9578       # Microsoft Visual C++.
9579       # hardcode_libdir_flag_spec is actually meaningless, as there is
9580       # no search path for DLLs.
9581       case $cc_basename in
9582       cl*)
9583         # Native MSVC
9584         hardcode_libdir_flag_spec=' '
9585         allow_undefined_flag=unsupported
9586         always_export_symbols=yes
9587         file_list_spec='@'
9588         # Tell ltmain to make .lib files, not .a files.
9589         libext=lib
9590         # Tell ltmain to make .dll files, not .so files.
9591         shrext_cmds=".dll"
9592         # FIXME: Setting linknames here is a bad hack.
9593         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9594         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9595             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9596           else
9597             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9598           fi~
9599           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9600           linknames='
9601         # The linker will not automatically build a static lib if we build a DLL.
9602         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9603         enable_shared_with_static_runtimes=yes
9604         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9605         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9606         # Don't use ranlib
9607         old_postinstall_cmds='chmod 644 $oldlib'
9608         postlink_cmds='lt_outputfile="@OUTPUT@"~
9609           lt_tool_outputfile="@TOOL_OUTPUT@"~
9610           case $lt_outputfile in
9611             *.exe|*.EXE) ;;
9612             *)
9613               lt_outputfile="$lt_outputfile.exe"
9614               lt_tool_outputfile="$lt_tool_outputfile.exe"
9615               ;;
9616           esac~
9617           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9618             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9619             $RM "$lt_outputfile.manifest";
9620           fi'
9621         ;;
9622       *)
9623         # Assume MSVC wrapper
9624         hardcode_libdir_flag_spec=' '
9625         allow_undefined_flag=unsupported
9626         # Tell ltmain to make .lib files, not .a files.
9627         libext=lib
9628         # Tell ltmain to make .dll files, not .so files.
9629         shrext_cmds=".dll"
9630         # FIXME: Setting linknames here is a bad hack.
9631         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9632         # The linker will automatically build a .lib file if we build a DLL.
9633         old_archive_from_new_cmds='true'
9634         # FIXME: Should let the user specify the lib program.
9635         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9636         enable_shared_with_static_runtimes=yes
9637         ;;
9638       esac
9639       ;;
9640
9641     darwin* | rhapsody*)
9642
9643
9644   archive_cmds_need_lc=no
9645   hardcode_direct=no
9646   hardcode_automatic=yes
9647   hardcode_shlibpath_var=unsupported
9648   if test "$lt_cv_ld_force_load" = "yes"; then
9649     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\"`'
9650
9651   else
9652     whole_archive_flag_spec=''
9653   fi
9654   link_all_deplibs=yes
9655   allow_undefined_flag="$_lt_dar_allow_undefined"
9656   case $cc_basename in
9657      ifort*) _lt_dar_can_shared=yes ;;
9658      *) _lt_dar_can_shared=$GCC ;;
9659   esac
9660   if test "$_lt_dar_can_shared" = "yes"; then
9661     output_verbose_link_cmd=func_echo_all
9662     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9663     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9664     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}"
9665     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}"
9666
9667   else
9668   ld_shlibs=no
9669   fi
9670
9671       ;;
9672
9673     dgux*)
9674       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675       hardcode_libdir_flag_spec='-L$libdir'
9676       hardcode_shlibpath_var=no
9677       ;;
9678
9679     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9680     # support.  Future versions do this automatically, but an explicit c++rt0.o
9681     # does not break anything, and helps significantly (at the cost of a little
9682     # extra space).
9683     freebsd2.2*)
9684       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9685       hardcode_libdir_flag_spec='-R$libdir'
9686       hardcode_direct=yes
9687       hardcode_shlibpath_var=no
9688       ;;
9689
9690     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9691     freebsd2.*)
9692       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9693       hardcode_direct=yes
9694       hardcode_minus_L=yes
9695       hardcode_shlibpath_var=no
9696       ;;
9697
9698     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9699     freebsd* | dragonfly*)
9700       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9701       hardcode_libdir_flag_spec='-R$libdir'
9702       hardcode_direct=yes
9703       hardcode_shlibpath_var=no
9704       ;;
9705
9706     hpux9*)
9707       if test "$GCC" = yes; then
9708         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9709       else
9710         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9711       fi
9712       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9713       hardcode_libdir_separator=:
9714       hardcode_direct=yes
9715
9716       # hardcode_minus_L: Not really in the search PATH,
9717       # but as the default location of the library.
9718       hardcode_minus_L=yes
9719       export_dynamic_flag_spec='${wl}-E'
9720       ;;
9721
9722     hpux10*)
9723       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9724         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9725       else
9726         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9727       fi
9728       if test "$with_gnu_ld" = no; then
9729         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9730         hardcode_libdir_separator=:
9731         hardcode_direct=yes
9732         hardcode_direct_absolute=yes
9733         export_dynamic_flag_spec='${wl}-E'
9734         # hardcode_minus_L: Not really in the search PATH,
9735         # but as the default location of the library.
9736         hardcode_minus_L=yes
9737       fi
9738       ;;
9739
9740     hpux11*)
9741       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9742         case $host_cpu in
9743         hppa*64*)
9744           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745           ;;
9746         ia64*)
9747           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9748           ;;
9749         *)
9750           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9751           ;;
9752         esac
9753       else
9754         case $host_cpu in
9755         hppa*64*)
9756           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9757           ;;
9758         ia64*)
9759           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9760           ;;
9761         *)
9762
9763           # Older versions of the 11.00 compiler do not understand -b yet
9764           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9765           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9766 $as_echo_n "checking if $CC understands -b... " >&6; }
9767 if ${lt_cv_prog_compiler__b+:} false; then :
9768   $as_echo_n "(cached) " >&6
9769 else
9770   lt_cv_prog_compiler__b=no
9771    save_LDFLAGS="$LDFLAGS"
9772    LDFLAGS="$LDFLAGS -b"
9773    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9774    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9775      # The linker can only warn and ignore the option if not recognized
9776      # So say no if there are warnings
9777      if test -s conftest.err; then
9778        # Append any errors to the config.log.
9779        cat conftest.err 1>&5
9780        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9781        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9782        if diff conftest.exp conftest.er2 >/dev/null; then
9783          lt_cv_prog_compiler__b=yes
9784        fi
9785      else
9786        lt_cv_prog_compiler__b=yes
9787      fi
9788    fi
9789    $RM -r conftest*
9790    LDFLAGS="$save_LDFLAGS"
9791
9792 fi
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9794 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9795
9796 if test x"$lt_cv_prog_compiler__b" = xyes; then
9797     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798 else
9799     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9800 fi
9801
9802           ;;
9803         esac
9804       fi
9805       if test "$with_gnu_ld" = no; then
9806         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9807         hardcode_libdir_separator=:
9808
9809         case $host_cpu in
9810         hppa*64*|ia64*)
9811           hardcode_direct=no
9812           hardcode_shlibpath_var=no
9813           ;;
9814         *)
9815           hardcode_direct=yes
9816           hardcode_direct_absolute=yes
9817           export_dynamic_flag_spec='${wl}-E'
9818
9819           # hardcode_minus_L: Not really in the search PATH,
9820           # but as the default location of the library.
9821           hardcode_minus_L=yes
9822           ;;
9823         esac
9824       fi
9825       ;;
9826
9827     irix5* | irix6* | nonstopux*)
9828       if test "$GCC" = yes; then
9829         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'
9830         # Try to use the -exported_symbol ld option, if it does not
9831         # work, assume that -exports_file does not work either and
9832         # implicitly export all symbols.
9833         # This should be the same for all languages, so no per-tag cache variable.
9834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9835 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9836 if ${lt_cv_irix_exported_symbol+:} false; then :
9837   $as_echo_n "(cached) " >&6
9838 else
9839   save_LDFLAGS="$LDFLAGS"
9840            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9841            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h.  */
9843 int foo (void) { return 0; }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846   lt_cv_irix_exported_symbol=yes
9847 else
9848   lt_cv_irix_exported_symbol=no
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext \
9851     conftest$ac_exeext conftest.$ac_ext
9852            LDFLAGS="$save_LDFLAGS"
9853 fi
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9855 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9856         if test "$lt_cv_irix_exported_symbol" = yes; then
9857           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'
9858         fi
9859       else
9860         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'
9861         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'
9862       fi
9863       archive_cmds_need_lc='no'
9864       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865       hardcode_libdir_separator=:
9866       inherit_rpath=yes
9867       link_all_deplibs=yes
9868       ;;
9869
9870     netbsd*)
9871       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9872         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9873       else
9874         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9875       fi
9876       hardcode_libdir_flag_spec='-R$libdir'
9877       hardcode_direct=yes
9878       hardcode_shlibpath_var=no
9879       ;;
9880
9881     newsos6)
9882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9883       hardcode_direct=yes
9884       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9885       hardcode_libdir_separator=:
9886       hardcode_shlibpath_var=no
9887       ;;
9888
9889     *nto* | *qnx*)
9890       ;;
9891
9892     openbsd*)
9893       if test -f /usr/libexec/ld.so; then
9894         hardcode_direct=yes
9895         hardcode_shlibpath_var=no
9896         hardcode_direct_absolute=yes
9897         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9898           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9899           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9900           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9901           export_dynamic_flag_spec='${wl}-E'
9902         else
9903           case $host_os in
9904            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9905              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9906              hardcode_libdir_flag_spec='-R$libdir'
9907              ;;
9908            *)
9909              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9910              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9911              ;;
9912           esac
9913         fi
9914       else
9915         ld_shlibs=no
9916       fi
9917       ;;
9918
9919     os2*)
9920       hardcode_libdir_flag_spec='-L$libdir'
9921       hardcode_minus_L=yes
9922       allow_undefined_flag=unsupported
9923       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9924       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9925       ;;
9926
9927     osf3*)
9928       if test "$GCC" = yes; then
9929         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9930         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'
9931       else
9932         allow_undefined_flag=' -expect_unresolved \*'
9933         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'
9934       fi
9935       archive_cmds_need_lc='no'
9936       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9937       hardcode_libdir_separator=:
9938       ;;
9939
9940     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9941       if test "$GCC" = yes; then
9942         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9943         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'
9944         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9945       else
9946         allow_undefined_flag=' -expect_unresolved \*'
9947         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'
9948         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~
9949         $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'
9950
9951         # Both c and cxx compiler support -rpath directly
9952         hardcode_libdir_flag_spec='-rpath $libdir'
9953       fi
9954       archive_cmds_need_lc='no'
9955       hardcode_libdir_separator=:
9956       ;;
9957
9958     solaris*)
9959       no_undefined_flag=' -z defs'
9960       if test "$GCC" = yes; then
9961         wlarc='${wl}'
9962         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9963         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9964           $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'
9965       else
9966         case `$CC -V 2>&1` in
9967         *"Compilers 5.0"*)
9968           wlarc=''
9969           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9971           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9972           ;;
9973         *)
9974           wlarc='${wl}'
9975           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9977           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9978           ;;
9979         esac
9980       fi
9981       hardcode_libdir_flag_spec='-R$libdir'
9982       hardcode_shlibpath_var=no
9983       case $host_os in
9984       solaris2.[0-5] | solaris2.[0-5].*) ;;
9985       *)
9986         # The compiler driver will combine and reorder linker options,
9987         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9988         # but is careful enough not to reorder.
9989         # Supported since Solaris 2.6 (maybe 2.5.1?)
9990         if test "$GCC" = yes; then
9991           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9992         else
9993           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9994         fi
9995         ;;
9996       esac
9997       link_all_deplibs=yes
9998       ;;
9999
10000     sunos4*)
10001       if test "x$host_vendor" = xsequent; then
10002         # Use $CC to link under sequent, because it throws in some extra .o
10003         # files that make .init and .fini sections work.
10004         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10005       else
10006         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10007       fi
10008       hardcode_libdir_flag_spec='-L$libdir'
10009       hardcode_direct=yes
10010       hardcode_minus_L=yes
10011       hardcode_shlibpath_var=no
10012       ;;
10013
10014     sysv4)
10015       case $host_vendor in
10016         sni)
10017           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10018           hardcode_direct=yes # is this really true???
10019         ;;
10020         siemens)
10021           ## LD is ld it makes a PLAMLIB
10022           ## CC just makes a GrossModule.
10023           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10024           reload_cmds='$CC -r -o $output$reload_objs'
10025           hardcode_direct=no
10026         ;;
10027         motorola)
10028           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10029           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10030         ;;
10031       esac
10032       runpath_var='LD_RUN_PATH'
10033       hardcode_shlibpath_var=no
10034       ;;
10035
10036     sysv4.3*)
10037       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038       hardcode_shlibpath_var=no
10039       export_dynamic_flag_spec='-Bexport'
10040       ;;
10041
10042     sysv4*MP*)
10043       if test -d /usr/nec; then
10044         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045         hardcode_shlibpath_var=no
10046         runpath_var=LD_RUN_PATH
10047         hardcode_runpath_var=yes
10048         ld_shlibs=yes
10049       fi
10050       ;;
10051
10052     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10053       no_undefined_flag='${wl}-z,text'
10054       archive_cmds_need_lc=no
10055       hardcode_shlibpath_var=no
10056       runpath_var='LD_RUN_PATH'
10057
10058       if test "$GCC" = yes; then
10059         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061       else
10062         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064       fi
10065       ;;
10066
10067     sysv5* | sco3.2v5* | sco5v6*)
10068       # Note: We can NOT use -z defs as we might desire, because we do not
10069       # link with -lc, and that would cause any symbols used from libc to
10070       # always be unresolved, which means just about no library would
10071       # ever link correctly.  If we're not using GNU ld we use -z text
10072       # though, which does catch some bad symbols but isn't as heavy-handed
10073       # as -z defs.
10074       no_undefined_flag='${wl}-z,text'
10075       allow_undefined_flag='${wl}-z,nodefs'
10076       archive_cmds_need_lc=no
10077       hardcode_shlibpath_var=no
10078       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10079       hardcode_libdir_separator=':'
10080       link_all_deplibs=yes
10081       export_dynamic_flag_spec='${wl}-Bexport'
10082       runpath_var='LD_RUN_PATH'
10083
10084       if test "$GCC" = yes; then
10085         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10087       else
10088         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090       fi
10091       ;;
10092
10093     uts4*)
10094       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095       hardcode_libdir_flag_spec='-L$libdir'
10096       hardcode_shlibpath_var=no
10097       ;;
10098
10099     *)
10100       ld_shlibs=no
10101       ;;
10102     esac
10103
10104     if test x$host_vendor = xsni; then
10105       case $host in
10106       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10107         export_dynamic_flag_spec='${wl}-Blargedynsym'
10108         ;;
10109       esac
10110     fi
10111   fi
10112
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10114 $as_echo "$ld_shlibs" >&6; }
10115 test "$ld_shlibs" = no && can_build_shared=no
10116
10117 with_gnu_ld=$with_gnu_ld
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133 #
10134 # Do we need to explicitly link libc?
10135 #
10136 case "x$archive_cmds_need_lc" in
10137 x|xyes)
10138   # Assume -lc should be added
10139   archive_cmds_need_lc=yes
10140
10141   if test "$enable_shared" = yes && test "$GCC" = yes; then
10142     case $archive_cmds in
10143     *'~'*)
10144       # FIXME: we may have to deal with multi-command sequences.
10145       ;;
10146     '$CC '*)
10147       # Test whether the compiler implicitly links with -lc since on some
10148       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10149       # to ld, don't add -lc before -lgcc.
10150       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10151 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10152 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10153   $as_echo_n "(cached) " >&6
10154 else
10155   $RM conftest*
10156         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157
10158         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10159   (eval $ac_compile) 2>&5
10160   ac_status=$?
10161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10162   test $ac_status = 0; } 2>conftest.err; then
10163           soname=conftest
10164           lib=conftest
10165           libobjs=conftest.$ac_objext
10166           deplibs=
10167           wl=$lt_prog_compiler_wl
10168           pic_flag=$lt_prog_compiler_pic
10169           compiler_flags=-v
10170           linker_flags=-v
10171           verstring=
10172           output_objdir=.
10173           libname=conftest
10174           lt_save_allow_undefined_flag=$allow_undefined_flag
10175           allow_undefined_flag=
10176           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10177   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10178   ac_status=$?
10179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10180   test $ac_status = 0; }
10181           then
10182             lt_cv_archive_cmds_need_lc=no
10183           else
10184             lt_cv_archive_cmds_need_lc=yes
10185           fi
10186           allow_undefined_flag=$lt_save_allow_undefined_flag
10187         else
10188           cat conftest.err 1>&5
10189         fi
10190         $RM conftest*
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10194 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10195       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10196       ;;
10197     esac
10198   fi
10199   ;;
10200 esac
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10354 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10355
10356 if test "$GCC" = yes; then
10357   case $host_os in
10358     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10359     *) lt_awk_arg="/^libraries:/" ;;
10360   esac
10361   case $host_os in
10362     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10363     *) lt_sed_strip_eq="s,=/,/,g" ;;
10364   esac
10365   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10366   case $lt_search_path_spec in
10367   *\;*)
10368     # if the path contains ";" then we assume it to be the separator
10369     # otherwise default to the standard path separator (i.e. ":") - it is
10370     # assumed that no part of a normal pathname contains ";" but that should
10371     # okay in the real world where ";" in dirpaths is itself problematic.
10372     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10373     ;;
10374   *)
10375     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10376     ;;
10377   esac
10378   # Ok, now we have the path, separated by spaces, we can step through it
10379   # and add multilib dir if necessary.
10380   lt_tmp_lt_search_path_spec=
10381   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10382   for lt_sys_path in $lt_search_path_spec; do
10383     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10384       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10385     else
10386       test -d "$lt_sys_path" && \
10387         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10388     fi
10389   done
10390   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10391 BEGIN {RS=" "; FS="/|\n";} {
10392   lt_foo="";
10393   lt_count=0;
10394   for (lt_i = NF; lt_i > 0; lt_i--) {
10395     if ($lt_i != "" && $lt_i != ".") {
10396       if ($lt_i == "..") {
10397         lt_count++;
10398       } else {
10399         if (lt_count == 0) {
10400           lt_foo="/" $lt_i lt_foo;
10401         } else {
10402           lt_count--;
10403         }
10404       }
10405     }
10406   }
10407   if (lt_foo != "") { lt_freq[lt_foo]++; }
10408   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10409 }'`
10410   # AWK program above erroneously prepends '/' to C:/dos/paths
10411   # for these hosts.
10412   case $host_os in
10413     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10414       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10415   esac
10416   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10417 else
10418   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10419 fi
10420 library_names_spec=
10421 libname_spec='lib$name'
10422 soname_spec=
10423 shrext_cmds=".so"
10424 postinstall_cmds=
10425 postuninstall_cmds=
10426 finish_cmds=
10427 finish_eval=
10428 shlibpath_var=
10429 shlibpath_overrides_runpath=unknown
10430 version_type=none
10431 dynamic_linker="$host_os ld.so"
10432 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10433 need_lib_prefix=unknown
10434 hardcode_into_libs=no
10435
10436 # when you set need_version to no, make sure it does not cause -set_version
10437 # flags to be left without arguments
10438 need_version=unknown
10439
10440 case $host_os in
10441 aix3*)
10442   version_type=linux # correct to gnu/linux during the next big refactor
10443   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10444   shlibpath_var=LIBPATH
10445
10446   # AIX 3 has no versioning support, so we append a major version to the name.
10447   soname_spec='${libname}${release}${shared_ext}$major'
10448   ;;
10449
10450 aix[4-9]*)
10451   version_type=linux # correct to gnu/linux during the next big refactor
10452   need_lib_prefix=no
10453   need_version=no
10454   hardcode_into_libs=yes
10455   if test "$host_cpu" = ia64; then
10456     # AIX 5 supports IA64
10457     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10458     shlibpath_var=LD_LIBRARY_PATH
10459   else
10460     # With GCC up to 2.95.x, collect2 would create an import file
10461     # for dependence libraries.  The import file would start with
10462     # the line `#! .'.  This would cause the generated library to
10463     # depend on `.', always an invalid library.  This was fixed in
10464     # development snapshots of GCC prior to 3.0.
10465     case $host_os in
10466       aix4 | aix4.[01] | aix4.[01].*)
10467       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10468            echo ' yes '
10469            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10470         :
10471       else
10472         can_build_shared=no
10473       fi
10474       ;;
10475     esac
10476     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10477     # soname into executable. Probably we can add versioning support to
10478     # collect2, so additional links can be useful in future.
10479     if test "$aix_use_runtimelinking" = yes; then
10480       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10481       # instead of lib<name>.a to let people know that these are not
10482       # typical AIX shared libraries.
10483       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484     else
10485       # We preserve .a as extension for shared libraries through AIX4.2
10486       # and later when we are not doing run time linking.
10487       library_names_spec='${libname}${release}.a $libname.a'
10488       soname_spec='${libname}${release}${shared_ext}$major'
10489     fi
10490     shlibpath_var=LIBPATH
10491   fi
10492   ;;
10493
10494 amigaos*)
10495   case $host_cpu in
10496   powerpc)
10497     # Since July 2007 AmigaOS4 officially supports .so libraries.
10498     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500     ;;
10501   m68k)
10502     library_names_spec='$libname.ixlibrary $libname.a'
10503     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10504     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10505     ;;
10506   esac
10507   ;;
10508
10509 beos*)
10510   library_names_spec='${libname}${shared_ext}'
10511   dynamic_linker="$host_os ld.so"
10512   shlibpath_var=LIBRARY_PATH
10513   ;;
10514
10515 bsdi[45]*)
10516   version_type=linux # correct to gnu/linux during the next big refactor
10517   need_version=no
10518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10521   shlibpath_var=LD_LIBRARY_PATH
10522   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10523   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10524   # the default ld.so.conf also contains /usr/contrib/lib and
10525   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10526   # libtool to hard-code these into programs
10527   ;;
10528
10529 cygwin* | mingw* | pw32* | cegcc*)
10530   version_type=windows
10531   shrext_cmds=".dll"
10532   need_version=no
10533   need_lib_prefix=no
10534
10535   case $GCC,$cc_basename in
10536   yes,*)
10537     # gcc
10538     library_names_spec='$libname.dll.a'
10539     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10540     postinstall_cmds='base_file=`basename \${file}`~
10541       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10542       dldir=$destdir/`dirname \$dlpath`~
10543       test -d \$dldir || mkdir -p \$dldir~
10544       $install_prog $dir/$dlname \$dldir/$dlname~
10545       chmod a+x \$dldir/$dlname~
10546       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10547         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10548       fi'
10549     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10550       dlpath=$dir/\$dldll~
10551        $RM \$dlpath'
10552     shlibpath_overrides_runpath=yes
10553
10554     case $host_os in
10555     cygwin*)
10556       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10557       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10558
10559       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10560       ;;
10561     mingw* | cegcc*)
10562       # MinGW DLLs use traditional 'lib' prefix
10563       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10564       ;;
10565     pw32*)
10566       # pw32 DLLs use 'pw' prefix rather than 'lib'
10567       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10568       ;;
10569     esac
10570     dynamic_linker='Win32 ld.exe'
10571     ;;
10572
10573   *,cl*)
10574     # Native MSVC
10575     libname_spec='$name'
10576     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10577     library_names_spec='${libname}.dll.lib'
10578
10579     case $build_os in
10580     mingw*)
10581       sys_lib_search_path_spec=
10582       lt_save_ifs=$IFS
10583       IFS=';'
10584       for lt_path in $LIB
10585       do
10586         IFS=$lt_save_ifs
10587         # Let DOS variable expansion print the short 8.3 style file name.
10588         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10589         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10590       done
10591       IFS=$lt_save_ifs
10592       # Convert to MSYS style.
10593       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10594       ;;
10595     cygwin*)
10596       # Convert to unix form, then to dos form, then back to unix form
10597       # but this time dos style (no spaces!) so that the unix form looks
10598       # like /cygdrive/c/PROGRA~1:/cygdr...
10599       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10600       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10601       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10602       ;;
10603     *)
10604       sys_lib_search_path_spec="$LIB"
10605       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10606         # It is most probably a Windows format PATH.
10607         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10608       else
10609         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10610       fi
10611       # FIXME: find the short name or the path components, as spaces are
10612       # common. (e.g. "Program Files" -> "PROGRA~1")
10613       ;;
10614     esac
10615
10616     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10617     postinstall_cmds='base_file=`basename \${file}`~
10618       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10619       dldir=$destdir/`dirname \$dlpath`~
10620       test -d \$dldir || mkdir -p \$dldir~
10621       $install_prog $dir/$dlname \$dldir/$dlname'
10622     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10623       dlpath=$dir/\$dldll~
10624        $RM \$dlpath'
10625     shlibpath_overrides_runpath=yes
10626     dynamic_linker='Win32 link.exe'
10627     ;;
10628
10629   *)
10630     # Assume MSVC wrapper
10631     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10632     dynamic_linker='Win32 ld.exe'
10633     ;;
10634   esac
10635   # FIXME: first we should search . and the directory the executable is in
10636   shlibpath_var=PATH
10637   ;;
10638
10639 darwin* | rhapsody*)
10640   dynamic_linker="$host_os dyld"
10641   version_type=darwin
10642   need_lib_prefix=no
10643   need_version=no
10644   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10645   soname_spec='${libname}${release}${major}$shared_ext'
10646   shlibpath_overrides_runpath=yes
10647   shlibpath_var=DYLD_LIBRARY_PATH
10648   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10649
10650   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10651   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10652   ;;
10653
10654 dgux*)
10655   version_type=linux # correct to gnu/linux during the next big refactor
10656   need_lib_prefix=no
10657   need_version=no
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   ;;
10662
10663 freebsd* | dragonfly*)
10664   # DragonFly does not have aout.  When/if they implement a new
10665   # versioning mechanism, adjust this.
10666   if test -x /usr/bin/objformat; then
10667     objformat=`/usr/bin/objformat`
10668   else
10669     case $host_os in
10670     freebsd[23].*) objformat=aout ;;
10671     *) objformat=elf ;;
10672     esac
10673   fi
10674   version_type=freebsd-$objformat
10675   case $version_type in
10676     freebsd-elf*)
10677       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10678       need_version=no
10679       need_lib_prefix=no
10680       ;;
10681     freebsd-*)
10682       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10683       need_version=yes
10684       ;;
10685   esac
10686   shlibpath_var=LD_LIBRARY_PATH
10687   case $host_os in
10688   freebsd2.*)
10689     shlibpath_overrides_runpath=yes
10690     ;;
10691   freebsd3.[01]* | freebsdelf3.[01]*)
10692     shlibpath_overrides_runpath=yes
10693     hardcode_into_libs=yes
10694     ;;
10695   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10696   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10697     shlibpath_overrides_runpath=no
10698     hardcode_into_libs=yes
10699     ;;
10700   *) # from 4.6 on, and DragonFly
10701     shlibpath_overrides_runpath=yes
10702     hardcode_into_libs=yes
10703     ;;
10704   esac
10705   ;;
10706
10707 gnu*)
10708   version_type=linux # correct to gnu/linux during the next big refactor
10709   need_lib_prefix=no
10710   need_version=no
10711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10712   soname_spec='${libname}${release}${shared_ext}$major'
10713   shlibpath_var=LD_LIBRARY_PATH
10714   shlibpath_overrides_runpath=no
10715   hardcode_into_libs=yes
10716   ;;
10717
10718 haiku*)
10719   version_type=linux # correct to gnu/linux during the next big refactor
10720   need_lib_prefix=no
10721   need_version=no
10722   dynamic_linker="$host_os runtime_loader"
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   shlibpath_var=LIBRARY_PATH
10726   shlibpath_overrides_runpath=yes
10727   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10728   hardcode_into_libs=yes
10729   ;;
10730
10731 hpux9* | hpux10* | hpux11*)
10732   # Give a soname corresponding to the major version so that dld.sl refuses to
10733   # link against other versions.
10734   version_type=sunos
10735   need_lib_prefix=no
10736   need_version=no
10737   case $host_cpu in
10738   ia64*)
10739     shrext_cmds='.so'
10740     hardcode_into_libs=yes
10741     dynamic_linker="$host_os dld.so"
10742     shlibpath_var=LD_LIBRARY_PATH
10743     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10745     soname_spec='${libname}${release}${shared_ext}$major'
10746     if test "X$HPUX_IA64_MODE" = X32; then
10747       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10748     else
10749       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10750     fi
10751     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10752     ;;
10753   hppa*64*)
10754     shrext_cmds='.sl'
10755     hardcode_into_libs=yes
10756     dynamic_linker="$host_os dld.sl"
10757     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10758     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10760     soname_spec='${libname}${release}${shared_ext}$major'
10761     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10762     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10763     ;;
10764   *)
10765     shrext_cmds='.sl'
10766     dynamic_linker="$host_os dld.sl"
10767     shlibpath_var=SHLIB_PATH
10768     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10770     soname_spec='${libname}${release}${shared_ext}$major'
10771     ;;
10772   esac
10773   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10774   postinstall_cmds='chmod 555 $lib'
10775   # or fails outright, so override atomically:
10776   install_override_mode=555
10777   ;;
10778
10779 interix[3-9]*)
10780   version_type=linux # correct to gnu/linux during the next big refactor
10781   need_lib_prefix=no
10782   need_version=no
10783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10784   soname_spec='${libname}${release}${shared_ext}$major'
10785   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10786   shlibpath_var=LD_LIBRARY_PATH
10787   shlibpath_overrides_runpath=no
10788   hardcode_into_libs=yes
10789   ;;
10790
10791 irix5* | irix6* | nonstopux*)
10792   case $host_os in
10793     nonstopux*) version_type=nonstopux ;;
10794     *)
10795         if test "$lt_cv_prog_gnu_ld" = yes; then
10796                 version_type=linux # correct to gnu/linux during the next big refactor
10797         else
10798                 version_type=irix
10799         fi ;;
10800   esac
10801   need_lib_prefix=no
10802   need_version=no
10803   soname_spec='${libname}${release}${shared_ext}$major'
10804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10805   case $host_os in
10806   irix5* | nonstopux*)
10807     libsuff= shlibsuff=
10808     ;;
10809   *)
10810     case $LD in # libtool.m4 will add one of these switches to LD
10811     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10812       libsuff= shlibsuff= libmagic=32-bit;;
10813     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10814       libsuff=32 shlibsuff=N32 libmagic=N32;;
10815     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10816       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10817     *) libsuff= shlibsuff= libmagic=never-match;;
10818     esac
10819     ;;
10820   esac
10821   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10822   shlibpath_overrides_runpath=no
10823   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10824   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10825   hardcode_into_libs=yes
10826   ;;
10827
10828 # No shared lib support for Linux oldld, aout, or coff.
10829 linux*oldld* | linux*aout* | linux*coff*)
10830   dynamic_linker=no
10831   ;;
10832
10833 # This must be glibc/ELF.
10834 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10835   version_type=linux # correct to gnu/linux during the next big refactor
10836   need_lib_prefix=no
10837   need_version=no
10838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839   soname_spec='${libname}${release}${shared_ext}$major'
10840   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10841   shlibpath_var=LD_LIBRARY_PATH
10842   shlibpath_overrides_runpath=no
10843
10844   # Some binutils ld are patched to set DT_RUNPATH
10845   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10846   $as_echo_n "(cached) " >&6
10847 else
10848   lt_cv_shlibpath_overrides_runpath=no
10849     save_LDFLAGS=$LDFLAGS
10850     save_libdir=$libdir
10851     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10852          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10853     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h.  */
10855
10856 int
10857 main ()
10858 {
10859
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10866   lt_cv_shlibpath_overrides_runpath=yes
10867 fi
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext \
10870     conftest$ac_exeext conftest.$ac_ext
10871     LDFLAGS=$save_LDFLAGS
10872     libdir=$save_libdir
10873
10874 fi
10875
10876   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10877
10878   # This implies no fast_install, which is unacceptable.
10879   # Some rework will be needed to allow for fast_install
10880   # before this can be enabled.
10881   hardcode_into_libs=yes
10882
10883   # Add ABI-specific directories to the system library path.
10884   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10885
10886   # Append ld.so.conf contents to the search path
10887   if test -f /etc/ld.so.conf; then
10888     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' ' '`
10889     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10890
10891   fi
10892
10893   # We used to test for /lib/ld.so.1 and disable shared libraries on
10894   # powerpc, because MkLinux only supported shared libraries with the
10895   # GNU dynamic linker.  Since this was broken with cross compilers,
10896   # most powerpc-linux boxes support dynamic linking these days and
10897   # people can always --disable-shared, the test was removed, and we
10898   # assume the GNU/Linux dynamic linker is in use.
10899   dynamic_linker='GNU/Linux ld.so'
10900   ;;
10901
10902 netbsd*)
10903   version_type=sunos
10904   need_lib_prefix=no
10905   need_version=no
10906   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10908     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10909     dynamic_linker='NetBSD (a.out) ld.so'
10910   else
10911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10912     soname_spec='${libname}${release}${shared_ext}$major'
10913     dynamic_linker='NetBSD ld.elf_so'
10914   fi
10915   shlibpath_var=LD_LIBRARY_PATH
10916   shlibpath_overrides_runpath=yes
10917   hardcode_into_libs=yes
10918   ;;
10919
10920 newsos6)
10921   version_type=linux # correct to gnu/linux during the next big refactor
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   shlibpath_overrides_runpath=yes
10925   ;;
10926
10927 *nto* | *qnx*)
10928   version_type=qnx
10929   need_lib_prefix=no
10930   need_version=no
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10932   soname_spec='${libname}${release}${shared_ext}$major'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   shlibpath_overrides_runpath=no
10935   hardcode_into_libs=yes
10936   dynamic_linker='ldqnx.so'
10937   ;;
10938
10939 openbsd*)
10940   version_type=sunos
10941   sys_lib_dlsearch_path_spec="/usr/lib"
10942   need_lib_prefix=no
10943   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10944   case $host_os in
10945     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10946     *)                          need_version=no  ;;
10947   esac
10948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10952     case $host_os in
10953       openbsd2.[89] | openbsd2.[89].*)
10954         shlibpath_overrides_runpath=no
10955         ;;
10956       *)
10957         shlibpath_overrides_runpath=yes
10958         ;;
10959       esac
10960   else
10961     shlibpath_overrides_runpath=yes
10962   fi
10963   ;;
10964
10965 os2*)
10966   libname_spec='$name'
10967   shrext_cmds=".dll"
10968   need_lib_prefix=no
10969   library_names_spec='$libname${shared_ext} $libname.a'
10970   dynamic_linker='OS/2 ld.exe'
10971   shlibpath_var=LIBPATH
10972   ;;
10973
10974 osf3* | osf4* | osf5*)
10975   version_type=osf
10976   need_lib_prefix=no
10977   need_version=no
10978   soname_spec='${libname}${release}${shared_ext}$major'
10979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10982   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10983   ;;
10984
10985 rdos*)
10986   dynamic_linker=no
10987   ;;
10988
10989 solaris*)
10990   version_type=linux # correct to gnu/linux during the next big refactor
10991   need_lib_prefix=no
10992   need_version=no
10993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994   soname_spec='${libname}${release}${shared_ext}$major'
10995   shlibpath_var=LD_LIBRARY_PATH
10996   shlibpath_overrides_runpath=yes
10997   hardcode_into_libs=yes
10998   # ldd complains unless libraries are executable
10999   postinstall_cmds='chmod +x $lib'
11000   ;;
11001
11002 sunos4*)
11003   version_type=sunos
11004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11005   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11006   shlibpath_var=LD_LIBRARY_PATH
11007   shlibpath_overrides_runpath=yes
11008   if test "$with_gnu_ld" = yes; then
11009     need_lib_prefix=no
11010   fi
11011   need_version=yes
11012   ;;
11013
11014 sysv4 | sysv4.3*)
11015   version_type=linux # correct to gnu/linux during the next big refactor
11016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017   soname_spec='${libname}${release}${shared_ext}$major'
11018   shlibpath_var=LD_LIBRARY_PATH
11019   case $host_vendor in
11020     sni)
11021       shlibpath_overrides_runpath=no
11022       need_lib_prefix=no
11023       runpath_var=LD_RUN_PATH
11024       ;;
11025     siemens)
11026       need_lib_prefix=no
11027       ;;
11028     motorola)
11029       need_lib_prefix=no
11030       need_version=no
11031       shlibpath_overrides_runpath=no
11032       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11033       ;;
11034   esac
11035   ;;
11036
11037 sysv4*MP*)
11038   if test -d /usr/nec ;then
11039     version_type=linux # correct to gnu/linux during the next big refactor
11040     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11041     soname_spec='$libname${shared_ext}.$major'
11042     shlibpath_var=LD_LIBRARY_PATH
11043   fi
11044   ;;
11045
11046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11047   version_type=freebsd-elf
11048   need_lib_prefix=no
11049   need_version=no
11050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11051   soname_spec='${libname}${release}${shared_ext}$major'
11052   shlibpath_var=LD_LIBRARY_PATH
11053   shlibpath_overrides_runpath=yes
11054   hardcode_into_libs=yes
11055   if test "$with_gnu_ld" = yes; then
11056     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11057   else
11058     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11059     case $host_os in
11060       sco3.2v5*)
11061         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11062         ;;
11063     esac
11064   fi
11065   sys_lib_dlsearch_path_spec='/usr/lib'
11066   ;;
11067
11068 tpf*)
11069   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11070   version_type=linux # correct to gnu/linux during the next big refactor
11071   need_lib_prefix=no
11072   need_version=no
11073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074   shlibpath_var=LD_LIBRARY_PATH
11075   shlibpath_overrides_runpath=no
11076   hardcode_into_libs=yes
11077   ;;
11078
11079 uts4*)
11080   version_type=linux # correct to gnu/linux during the next big refactor
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082   soname_spec='${libname}${release}${shared_ext}$major'
11083   shlibpath_var=LD_LIBRARY_PATH
11084   ;;
11085
11086 *)
11087   dynamic_linker=no
11088   ;;
11089 esac
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11091 $as_echo "$dynamic_linker" >&6; }
11092 test "$dynamic_linker" = no && can_build_shared=no
11093
11094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11095 if test "$GCC" = yes; then
11096   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11097 fi
11098
11099 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11100   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11101 fi
11102 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11103   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11104 fi
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11198 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11199 hardcode_action=
11200 if test -n "$hardcode_libdir_flag_spec" ||
11201    test -n "$runpath_var" ||
11202    test "X$hardcode_automatic" = "Xyes" ; then
11203
11204   # We can hardcode non-existent directories.
11205   if test "$hardcode_direct" != no &&
11206      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11207      # have to relink, otherwise we might link with an installed library
11208      # when we should be linking with a yet-to-be-installed one
11209      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11210      test "$hardcode_minus_L" != no; then
11211     # Linking always hardcodes the temporary library directory.
11212     hardcode_action=relink
11213   else
11214     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11215     hardcode_action=immediate
11216   fi
11217 else
11218   # We cannot hardcode anything, or else we can only hardcode existing
11219   # directories.
11220   hardcode_action=unsupported
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11223 $as_echo "$hardcode_action" >&6; }
11224
11225 if test "$hardcode_action" = relink ||
11226    test "$inherit_rpath" = yes; then
11227   # Fast installation is not supported
11228   enable_fast_install=no
11229 elif test "$shlibpath_overrides_runpath" = yes ||
11230      test "$enable_shared" = no; then
11231   # Fast installation is not necessary
11232   enable_fast_install=needless
11233 fi
11234
11235
11236
11237
11238
11239
11240   if test "x$enable_dlopen" != xyes; then
11241   enable_dlopen=unknown
11242   enable_dlopen_self=unknown
11243   enable_dlopen_self_static=unknown
11244 else
11245   lt_cv_dlopen=no
11246   lt_cv_dlopen_libs=
11247
11248   case $host_os in
11249   beos*)
11250     lt_cv_dlopen="load_add_on"
11251     lt_cv_dlopen_libs=
11252     lt_cv_dlopen_self=yes
11253     ;;
11254
11255   mingw* | pw32* | cegcc*)
11256     lt_cv_dlopen="LoadLibrary"
11257     lt_cv_dlopen_libs=
11258     ;;
11259
11260   cygwin*)
11261     lt_cv_dlopen="dlopen"
11262     lt_cv_dlopen_libs=
11263     ;;
11264
11265   darwin*)
11266   # if libdl is installed we need to link against it
11267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11268 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11269 if ${ac_cv_lib_dl_dlopen+:} false; then :
11270   $as_echo_n "(cached) " >&6
11271 else
11272   ac_check_lib_save_LIBS=$LIBS
11273 LIBS="-ldl  $LIBS"
11274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h.  */
11276
11277 /* Override any GCC internal prototype to avoid an error.
11278    Use char because int might match the return type of a GCC
11279    builtin and then its argument prototype would still apply.  */
11280 #ifdef __cplusplus
11281 extern "C"
11282 #endif
11283 char dlopen ();
11284 int
11285 main ()
11286 {
11287 return dlopen ();
11288   ;
11289   return 0;
11290 }
11291 _ACEOF
11292 if ac_fn_c_try_link "$LINENO"; then :
11293   ac_cv_lib_dl_dlopen=yes
11294 else
11295   ac_cv_lib_dl_dlopen=no
11296 fi
11297 rm -f core conftest.err conftest.$ac_objext \
11298     conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11302 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11303 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305 else
11306
11307     lt_cv_dlopen="dyld"
11308     lt_cv_dlopen_libs=
11309     lt_cv_dlopen_self=yes
11310
11311 fi
11312
11313     ;;
11314
11315   *)
11316     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11317 if test "x$ac_cv_func_shl_load" = xyes; then :
11318   lt_cv_dlopen="shl_load"
11319 else
11320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11321 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11322 if ${ac_cv_lib_dld_shl_load+:} false; then :
11323   $as_echo_n "(cached) " >&6
11324 else
11325   ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-ldld  $LIBS"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h.  */
11329
11330 /* Override any GCC internal prototype to avoid an error.
11331    Use char because int might match the return type of a GCC
11332    builtin and then its argument prototype would still apply.  */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char shl_load ();
11337 int
11338 main ()
11339 {
11340 return shl_load ();
11341   ;
11342   return 0;
11343 }
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346   ac_cv_lib_dld_shl_load=yes
11347 else
11348   ac_cv_lib_dld_shl_load=no
11349 fi
11350 rm -f core conftest.err conftest.$ac_objext \
11351     conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11355 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11356 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11357   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11358 else
11359   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11360 if test "x$ac_cv_func_dlopen" = xyes; then :
11361   lt_cv_dlopen="dlopen"
11362 else
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11364 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11365 if ${ac_cv_lib_dl_dlopen+:} false; then :
11366   $as_echo_n "(cached) " >&6
11367 else
11368   ac_check_lib_save_LIBS=$LIBS
11369 LIBS="-ldl  $LIBS"
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h.  */
11372
11373 /* Override any GCC internal prototype to avoid an error.
11374    Use char because int might match the return type of a GCC
11375    builtin and then its argument prototype would still apply.  */
11376 #ifdef __cplusplus
11377 extern "C"
11378 #endif
11379 char dlopen ();
11380 int
11381 main ()
11382 {
11383 return dlopen ();
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11389   ac_cv_lib_dl_dlopen=yes
11390 else
11391   ac_cv_lib_dl_dlopen=no
11392 fi
11393 rm -f core conftest.err conftest.$ac_objext \
11394     conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11398 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11399 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11400   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11401 else
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11403 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11404 if ${ac_cv_lib_svld_dlopen+:} false; then :
11405   $as_echo_n "(cached) " >&6
11406 else
11407   ac_check_lib_save_LIBS=$LIBS
11408 LIBS="-lsvld  $LIBS"
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h.  */
11411
11412 /* Override any GCC internal prototype to avoid an error.
11413    Use char because int might match the return type of a GCC
11414    builtin and then its argument prototype would still apply.  */
11415 #ifdef __cplusplus
11416 extern "C"
11417 #endif
11418 char dlopen ();
11419 int
11420 main ()
11421 {
11422 return dlopen ();
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 if ac_fn_c_try_link "$LINENO"; then :
11428   ac_cv_lib_svld_dlopen=yes
11429 else
11430   ac_cv_lib_svld_dlopen=no
11431 fi
11432 rm -f core conftest.err conftest.$ac_objext \
11433     conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11435 fi
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11437 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11438 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11439   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11440 else
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11442 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11443 if ${ac_cv_lib_dld_dld_link+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-ldld  $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h.  */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452    Use char because int might match the return type of a GCC
11453    builtin and then its argument prototype would still apply.  */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char dld_link ();
11458 int
11459 main ()
11460 {
11461 return dld_link ();
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467   ac_cv_lib_dld_dld_link=yes
11468 else
11469   ac_cv_lib_dld_dld_link=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472     conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11476 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11477 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11478   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11479 fi
11480
11481
11482 fi
11483
11484
11485 fi
11486
11487
11488 fi
11489
11490
11491 fi
11492
11493
11494 fi
11495
11496     ;;
11497   esac
11498
11499   if test "x$lt_cv_dlopen" != xno; then
11500     enable_dlopen=yes
11501   else
11502     enable_dlopen=no
11503   fi
11504
11505   case $lt_cv_dlopen in
11506   dlopen)
11507     save_CPPFLAGS="$CPPFLAGS"
11508     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11509
11510     save_LDFLAGS="$LDFLAGS"
11511     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11512
11513     save_LIBS="$LIBS"
11514     LIBS="$lt_cv_dlopen_libs $LIBS"
11515
11516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11517 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11518 if ${lt_cv_dlopen_self+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521           if test "$cross_compiling" = yes; then :
11522   lt_cv_dlopen_self=cross
11523 else
11524   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11525   lt_status=$lt_dlunknown
11526   cat > conftest.$ac_ext <<_LT_EOF
11527 #line $LINENO "configure"
11528 #include "confdefs.h"
11529
11530 #if HAVE_DLFCN_H
11531 #include <dlfcn.h>
11532 #endif
11533
11534 #include <stdio.h>
11535
11536 #ifdef RTLD_GLOBAL
11537 #  define LT_DLGLOBAL           RTLD_GLOBAL
11538 #else
11539 #  ifdef DL_GLOBAL
11540 #    define LT_DLGLOBAL         DL_GLOBAL
11541 #  else
11542 #    define LT_DLGLOBAL         0
11543 #  endif
11544 #endif
11545
11546 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11547    find out it does not work in some platform. */
11548 #ifndef LT_DLLAZY_OR_NOW
11549 #  ifdef RTLD_LAZY
11550 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11551 #  else
11552 #    ifdef DL_LAZY
11553 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11554 #    else
11555 #      ifdef RTLD_NOW
11556 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11557 #      else
11558 #        ifdef DL_NOW
11559 #          define LT_DLLAZY_OR_NOW      DL_NOW
11560 #        else
11561 #          define LT_DLLAZY_OR_NOW      0
11562 #        endif
11563 #      endif
11564 #    endif
11565 #  endif
11566 #endif
11567
11568 /* When -fvisbility=hidden is used, assume the code has been annotated
11569    correspondingly for the symbols needed.  */
11570 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11571 int fnord () __attribute__((visibility("default")));
11572 #endif
11573
11574 int fnord () { return 42; }
11575 int main ()
11576 {
11577   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11578   int status = $lt_dlunknown;
11579
11580   if (self)
11581     {
11582       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11583       else
11584         {
11585           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11586           else puts (dlerror ());
11587         }
11588       /* dlclose (self); */
11589     }
11590   else
11591     puts (dlerror ());
11592
11593   return status;
11594 }
11595 _LT_EOF
11596   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11597   (eval $ac_link) 2>&5
11598   ac_status=$?
11599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11601     (./conftest; exit; ) >&5 2>/dev/null
11602     lt_status=$?
11603     case x$lt_status in
11604       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11605       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11606       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11607     esac
11608   else :
11609     # compilation failed
11610     lt_cv_dlopen_self=no
11611   fi
11612 fi
11613 rm -fr conftest*
11614
11615
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11618 $as_echo "$lt_cv_dlopen_self" >&6; }
11619
11620     if test "x$lt_cv_dlopen_self" = xyes; then
11621       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11622       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11623 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11624 if ${lt_cv_dlopen_self_static+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627           if test "$cross_compiling" = yes; then :
11628   lt_cv_dlopen_self_static=cross
11629 else
11630   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11631   lt_status=$lt_dlunknown
11632   cat > conftest.$ac_ext <<_LT_EOF
11633 #line $LINENO "configure"
11634 #include "confdefs.h"
11635
11636 #if HAVE_DLFCN_H
11637 #include <dlfcn.h>
11638 #endif
11639
11640 #include <stdio.h>
11641
11642 #ifdef RTLD_GLOBAL
11643 #  define LT_DLGLOBAL           RTLD_GLOBAL
11644 #else
11645 #  ifdef DL_GLOBAL
11646 #    define LT_DLGLOBAL         DL_GLOBAL
11647 #  else
11648 #    define LT_DLGLOBAL         0
11649 #  endif
11650 #endif
11651
11652 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11653    find out it does not work in some platform. */
11654 #ifndef LT_DLLAZY_OR_NOW
11655 #  ifdef RTLD_LAZY
11656 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11657 #  else
11658 #    ifdef DL_LAZY
11659 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11660 #    else
11661 #      ifdef RTLD_NOW
11662 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11663 #      else
11664 #        ifdef DL_NOW
11665 #          define LT_DLLAZY_OR_NOW      DL_NOW
11666 #        else
11667 #          define LT_DLLAZY_OR_NOW      0
11668 #        endif
11669 #      endif
11670 #    endif
11671 #  endif
11672 #endif
11673
11674 /* When -fvisbility=hidden is used, assume the code has been annotated
11675    correspondingly for the symbols needed.  */
11676 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11677 int fnord () __attribute__((visibility("default")));
11678 #endif
11679
11680 int fnord () { return 42; }
11681 int main ()
11682 {
11683   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11684   int status = $lt_dlunknown;
11685
11686   if (self)
11687     {
11688       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11689       else
11690         {
11691           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11692           else puts (dlerror ());
11693         }
11694       /* dlclose (self); */
11695     }
11696   else
11697     puts (dlerror ());
11698
11699   return status;
11700 }
11701 _LT_EOF
11702   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11703   (eval $ac_link) 2>&5
11704   ac_status=$?
11705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11706   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11707     (./conftest; exit; ) >&5 2>/dev/null
11708     lt_status=$?
11709     case x$lt_status in
11710       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11711       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11712       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11713     esac
11714   else :
11715     # compilation failed
11716     lt_cv_dlopen_self_static=no
11717   fi
11718 fi
11719 rm -fr conftest*
11720
11721
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11724 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11725     fi
11726
11727     CPPFLAGS="$save_CPPFLAGS"
11728     LDFLAGS="$save_LDFLAGS"
11729     LIBS="$save_LIBS"
11730     ;;
11731   esac
11732
11733   case $lt_cv_dlopen_self in
11734   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11735   *) enable_dlopen_self=unknown ;;
11736   esac
11737
11738   case $lt_cv_dlopen_self_static in
11739   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11740   *) enable_dlopen_self_static=unknown ;;
11741   esac
11742 fi
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 striplib=
11761 old_striplib=
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11763 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11764 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11765   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11766   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769 else
11770 # FIXME - insert some real tests, host_os isn't really good enough
11771   case $host_os in
11772   darwin*)
11773     if test -n "$STRIP" ; then
11774       striplib="$STRIP -x"
11775       old_striplib="$STRIP -S"
11776       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11777 $as_echo "yes" >&6; }
11778     else
11779       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781     fi
11782     ;;
11783   *)
11784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11785 $as_echo "no" >&6; }
11786     ;;
11787   esac
11788 fi
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801   # Report which library types will actually be built
11802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11803 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11805 $as_echo "$can_build_shared" >&6; }
11806
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11808 $as_echo_n "checking whether to build shared libraries... " >&6; }
11809   test "$can_build_shared" = "no" && enable_shared=no
11810
11811   # On AIX, shared libraries and static libraries use the same namespace, and
11812   # are all built from PIC.
11813   case $host_os in
11814   aix3*)
11815     test "$enable_shared" = yes && enable_static=no
11816     if test -n "$RANLIB"; then
11817       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11818       postinstall_cmds='$RANLIB $lib'
11819     fi
11820     ;;
11821
11822   aix[4-9]*)
11823     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11824       test "$enable_shared" = yes && enable_static=no
11825     fi
11826     ;;
11827   esac
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11829 $as_echo "$enable_shared" >&6; }
11830
11831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11832 $as_echo_n "checking whether to build static libraries... " >&6; }
11833   # Make sure either enable_shared or enable_static is yes.
11834   test "$enable_shared" = yes || enable_static=yes
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11836 $as_echo "$enable_static" >&6; }
11837
11838
11839
11840
11841 fi
11842 ac_ext=c
11843 ac_cpp='$CPP $CPPFLAGS'
11844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11847
11848 CC="$lt_save_CC"
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864         ac_config_commands="$ac_config_commands libtool"
11865
11866
11867
11868
11869 # Only expand once:
11870
11871
11872
11873 VERSION_SCRIPT_FLAGS=
11874 # lt_cv_prog_gnu_ld is from libtool 2.+
11875 if test "$lt_cv_prog_gnu_ld" = yes; then
11876   VERSION_SCRIPT_FLAGS=-Wl,--version-script=
11877 else
11878   case $host in
11879   *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
11880   esac
11881 fi
11882
11883  if test -n "$VERSION_SCRIPT_FLAGS"; then
11884   USE_VERSION_SCRIPT_TRUE=
11885   USE_VERSION_SCRIPT_FALSE='#'
11886 else
11887   USE_VERSION_SCRIPT_TRUE='#'
11888   USE_VERSION_SCRIPT_FALSE=
11889 fi
11890
11891
11892
11893 _cppflags="${CPPFLAGS}"
11894 _libs="${LIBS}"
11895
11896
11897 # Check whether --with-c14n was given.
11898 if test "${with_c14n+set}" = set; then :
11899   withval=$with_c14n;
11900 fi
11901
11902
11903 # Check whether --with-catalog was given.
11904 if test "${with_catalog+set}" = set; then :
11905   withval=$with_catalog;
11906 fi
11907
11908
11909 # Check whether --with-debug was given.
11910 if test "${with_debug+set}" = set; then :
11911   withval=$with_debug;
11912 fi
11913
11914
11915 # Check whether --with-docbook was given.
11916 if test "${with_docbook+set}" = set; then :
11917   withval=$with_docbook;
11918 fi
11919
11920
11921 # Check whether --with-fexceptions was given.
11922 if test "${with_fexceptions+set}" = set; then :
11923   withval=$with_fexceptions;
11924 fi
11925
11926
11927 # Check whether --with-ftp was given.
11928 if test "${with_ftp+set}" = set; then :
11929   withval=$with_ftp;
11930 fi
11931
11932
11933 # Check whether --with-history was given.
11934 if test "${with_history+set}" = set; then :
11935   withval=$with_history;
11936 fi
11937
11938
11939 # Check whether --with-html was given.
11940 if test "${with_html+set}" = set; then :
11941   withval=$with_html;
11942 fi
11943
11944
11945 # Check whether --with-html-dir was given.
11946 if test "${with_html_dir+set}" = set; then :
11947   withval=$with_html_dir; HTML_DIR=$withval
11948 else
11949   HTML_DIR='$(datadir)/doc'
11950 fi
11951
11952
11953
11954 # Check whether --with-html-subdir was given.
11955 if test "${with_html_subdir+set}" = set; then :
11956   withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
11957 else
11958   HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
11959 fi
11960
11961
11962
11963 # Check whether --with-http was given.
11964 if test "${with_http+set}" = set; then :
11965   withval=$with_http;
11966 fi
11967
11968
11969 # Check whether --with-iconv was given.
11970 if test "${with_iconv+set}" = set; then :
11971   withval=$with_iconv;
11972 fi
11973
11974
11975 # Check whether --with-icu was given.
11976 if test "${with_icu+set}" = set; then :
11977   withval=$with_icu;
11978 fi
11979
11980
11981 # Check whether --with-iso8859x was given.
11982 if test "${with_iso8859x+set}" = set; then :
11983   withval=$with_iso8859x;
11984 fi
11985
11986
11987 # Check whether --with-legacy was given.
11988 if test "${with_legacy+set}" = set; then :
11989   withval=$with_legacy;
11990 fi
11991
11992
11993 # Check whether --with-mem_debug was given.
11994 if test "${with_mem_debug+set}" = set; then :
11995   withval=$with_mem_debug;
11996 fi
11997
11998
11999 # Check whether --with-minimum was given.
12000 if test "${with_minimum+set}" = set; then :
12001   withval=$with_minimum;
12002 fi
12003
12004
12005 # Check whether --with-output was given.
12006 if test "${with_output+set}" = set; then :
12007   withval=$with_output;
12008 fi
12009
12010
12011 # Check whether --with-pattern was given.
12012 if test "${with_pattern+set}" = set; then :
12013   withval=$with_pattern;
12014 fi
12015
12016
12017 # Check whether --with-push was given.
12018 if test "${with_push+set}" = set; then :
12019   withval=$with_push;
12020 fi
12021
12022
12023 # Check whether --with-python was given.
12024 if test "${with_python+set}" = set; then :
12025   withval=$with_python;
12026 fi
12027
12028
12029 # Check whether --with-reader was given.
12030 if test "${with_reader+set}" = set; then :
12031   withval=$with_reader;
12032 fi
12033
12034
12035 # Check whether --with-readline was given.
12036 if test "${with_readline+set}" = set; then :
12037   withval=$with_readline;
12038   if test "$withval" != "no" -a "$withval" != "yes"; then
12039     RDL_DIR=$withval
12040     CPPFLAGS="${CPPFLAGS} -I$withval/include"
12041     LIBS="${LIBS} -L$withval/lib"
12042   fi
12043
12044 fi
12045
12046
12047 # Check whether --with-regexps was given.
12048 if test "${with_regexps+set}" = set; then :
12049   withval=$with_regexps;
12050 fi
12051
12052
12053 # Check whether --with-run_debug was given.
12054 if test "${with_run_debug+set}" = set; then :
12055   withval=$with_run_debug;
12056 fi
12057
12058
12059 # Check whether --with-sax1 was given.
12060 if test "${with_sax1+set}" = set; then :
12061   withval=$with_sax1;
12062 fi
12063
12064
12065 # Check whether --with-schemas was given.
12066 if test "${with_schemas+set}" = set; then :
12067   withval=$with_schemas;
12068 fi
12069
12070
12071 # Check whether --with-schematron was given.
12072 if test "${with_schematron+set}" = set; then :
12073   withval=$with_schematron;
12074 fi
12075
12076
12077 # Check whether --with-threads was given.
12078 if test "${with_threads+set}" = set; then :
12079   withval=$with_threads;
12080 fi
12081
12082
12083 # Check whether --with-thread-alloc was given.
12084 if test "${with_thread_alloc+set}" = set; then :
12085   withval=$with_thread_alloc;
12086 fi
12087
12088
12089 # Check whether --with-tree was given.
12090 if test "${with_tree+set}" = set; then :
12091   withval=$with_tree;
12092 fi
12093
12094
12095 # Check whether --with-valid was given.
12096 if test "${with_valid+set}" = set; then :
12097   withval=$with_valid;
12098 fi
12099
12100
12101 # Check whether --with-writer was given.
12102 if test "${with_writer+set}" = set; then :
12103   withval=$with_writer;
12104 fi
12105
12106
12107 # Check whether --with-xinclude was given.
12108 if test "${with_xinclude+set}" = set; then :
12109   withval=$with_xinclude;
12110 fi
12111
12112
12113 # Check whether --with-xpath was given.
12114 if test "${with_xpath+set}" = set; then :
12115   withval=$with_xpath;
12116 fi
12117
12118
12119 # Check whether --with-xptr was given.
12120 if test "${with_xptr+set}" = set; then :
12121   withval=$with_xptr;
12122 fi
12123
12124
12125 # Check whether --with-modules was given.
12126 if test "${with_modules+set}" = set; then :
12127   withval=$with_modules;
12128 fi
12129
12130
12131 # Check whether --with-zlib was given.
12132 if test "${with_zlib+set}" = set; then :
12133   withval=$with_zlib;
12134   if test "$withval" != "no" -a "$withval" != "yes"; then
12135     Z_DIR=$withval
12136     CPPFLAGS="${CPPFLAGS} -I$withval/include"
12137     LIBS="${LIBS} -L$withval/lib"
12138   fi
12139
12140 fi
12141
12142
12143 # Check whether --with-lzma was given.
12144 if test "${with_lzma+set}" = set; then :
12145   withval=$with_lzma;
12146   if test "$withval" != "no" -a "$withval" != "yes"; then
12147     LZMA_DIR=$withval
12148     CPPFLAGS="${CPPFLAGS} -I$withval/include"
12149     LIBS="${LIBS} -L$withval/lib"
12150   fi
12151
12152 fi
12153
12154
12155 # Check whether --with-coverage was given.
12156 if test "${with_coverage+set}" = set; then :
12157   withval=$with_coverage;
12158 fi
12159
12160
12161 # Check whether --enable-rebuild-docs was given.
12162 if test "${enable_rebuild_docs+set}" = set; then :
12163   enableval=$enable_rebuild_docs;
12164 fi
12165
12166 if test "$enable_rebuild_docs" = "yes" -a "$srcdir" != "."; then
12167   as_fn_error $? "cannot rebuild docs when builddir != srcdir" "$LINENO" 5
12168 fi
12169  if test "$enable_rebuild_docs" = "yes" -o "$USER" = "veillard"; then
12170   REBUILD_DOCS_TRUE=
12171   REBUILD_DOCS_FALSE='#'
12172 else
12173   REBUILD_DOCS_TRUE='#'
12174   REBUILD_DOCS_FALSE=
12175 fi
12176
12177
12178 if test "$with_schemas" = "yes"
12179 then
12180     with_pattern=yes
12181     with_regexps=yes
12182 fi
12183 if test "$with_schematron" = "yes"
12184 then
12185     with_pattern=yes
12186     with_xpath=yes
12187 fi
12188 if test "$with_reader" = "yes"
12189 then
12190     with_push=yes
12191 fi
12192 if test "$with_xptr" = "yes"
12193 then
12194     with_xpath=yes
12195 fi
12196 if test "$with_minimum" = "yes"
12197 then
12198     echo "Configuring for a minimal library"
12199     if test "$with_c14n" = ""
12200     then
12201       with_c14n=no
12202     fi
12203     if test "$with_catalog" = ""
12204     then
12205       with_catalog=no
12206     fi
12207     echo So far so good!
12208     if test "$with_debug" = ""
12209     then
12210       with_debug=no
12211     fi
12212     if test "$with_docbook" = ""
12213     then
12214       with_docbook=no
12215     fi
12216     if test "$with_fexceptions" = ""
12217     then
12218       with_fexceptions=no
12219     fi
12220     if test "$with_ftp" = ""
12221     then
12222       with_ftp=no
12223     fi
12224     if test "$with_history" = ""
12225     then
12226       with_history=no
12227     fi
12228     if test "$with_html" = ""
12229     then
12230       with_html=no
12231     fi
12232     if test "$with_http" = ""
12233     then
12234       with_http=no
12235     fi
12236     if test "$with_iconv" = ""
12237     then
12238       with_iconv=no
12239     fi
12240     if test "$with_iso8859x" = ""
12241     then
12242       with_iso8859x=no
12243     fi
12244     if test "$with_legacy" = ""
12245     then
12246       with_legacy=no
12247     fi
12248     if test "$with_mem_debug" = ""
12249     then
12250       with_mem_debug=no
12251     fi
12252     if test "$with_output" = ""
12253     then
12254       with_output=no
12255     fi
12256     if test "$with_pattern" = ""
12257     then
12258       with_pattern=no
12259     fi
12260     if test "$with_push" = ""
12261     then
12262       with_push=no
12263     fi
12264     if test "$with_python" = ""
12265     then
12266       with_python=no
12267     fi
12268     if test "$with_reader" = ""
12269     then
12270       with_reader=no
12271     fi
12272     if test "$with_readline" = ""
12273     then
12274       with_readline=no
12275     fi
12276     if test "$with_regexps" = ""
12277     then
12278       with_regexps=no
12279     fi
12280     if test "$with_run_debug" = ""
12281     then
12282       with_run_debug=no
12283     fi
12284     if test "$with_sax1" = ""
12285     then
12286       with_sax1=no
12287     fi
12288     if test "$with_schemas" = ""
12289     then
12290       with_schemas=no
12291     fi
12292     if test "$with_schematron" = ""
12293     then
12294       with_schematron=no
12295     fi
12296     if test "$with_threads" = ""
12297     then
12298       with_threads=no
12299     fi
12300     if test "$with_thread_alloc" = ""
12301     then
12302       with_thread_alloc=no
12303    fi
12304     if test "$with_tree" = ""
12305     then
12306       with_tree=no
12307     fi
12308     if test "$with_valid" = ""
12309     then
12310       with_valid=no
12311     fi
12312     if test "$with_writer" = ""
12313     then
12314       with_writer=no
12315     fi
12316     if test "$with_xinclude" = ""
12317     then
12318       with_xinclude=no
12319     fi
12320     if test "$with_xpath" = ""
12321     then
12322       with_xpath=no
12323     fi
12324     if test "$with_xptr" = ""
12325     then
12326       with_xptr=no
12327     fi
12328     if test "$with_zlib" = ""
12329     then
12330       with_zlib=no
12331     fi
12332     if test "$with_modules" = ""
12333     then
12334       with_modules=no
12335     fi
12336 fi
12337
12338 echo Checking zlib
12339
12340
12341 WITH_ZLIB=0
12342 if test "$with_zlib" = "no"; then
12343     echo "Disabling compression support"
12344 else
12345     for ac_header in zlib.h
12346 do :
12347   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12348 if test "x$ac_cv_header_zlib_h" = xyes; then :
12349   cat >>confdefs.h <<_ACEOF
12350 #define HAVE_ZLIB_H 1
12351 _ACEOF
12352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
12353 $as_echo_n "checking for gzread in -lz... " >&6; }
12354 if ${ac_cv_lib_z_gzread+:} false; then :
12355   $as_echo_n "(cached) " >&6
12356 else
12357   ac_check_lib_save_LIBS=$LIBS
12358 LIBS="-lz  $LIBS"
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h.  */
12361
12362 /* Override any GCC internal prototype to avoid an error.
12363    Use char because int might match the return type of a GCC
12364    builtin and then its argument prototype would still apply.  */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char gzread ();
12369 int
12370 main ()
12371 {
12372 return gzread ();
12373   ;
12374   return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378   ac_cv_lib_z_gzread=yes
12379 else
12380   ac_cv_lib_z_gzread=no
12381 fi
12382 rm -f core conftest.err conftest.$ac_objext \
12383     conftest$ac_exeext conftest.$ac_ext
12384 LIBS=$ac_check_lib_save_LIBS
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
12387 $as_echo "$ac_cv_lib_z_gzread" >&6; }
12388 if test "x$ac_cv_lib_z_gzread" = xyes; then :
12389
12390
12391 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12392
12393             WITH_ZLIB=1
12394             if test "x${Z_DIR}" != "x"; then
12395                 Z_CFLAGS="-I${Z_DIR}/include"
12396                 Z_LIBS="-L${Z_DIR}/lib -lz"
12397                 case ${host} in
12398                     *-*-solaris*)
12399                         Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
12400                         ;;
12401                 esac
12402             else
12403                 Z_LIBS="-lz"
12404             fi
12405 fi
12406
12407 fi
12408
12409 done
12410
12411 fi
12412
12413
12414
12415
12416
12417 echo Checking lzma
12418
12419
12420 WITH_LZMA=0
12421 if test "$with_lzma" = "no"; then
12422     echo "Disabling compression support"
12423 else
12424     for ac_header in lzma.h
12425 do :
12426   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
12427 if test "x$ac_cv_header_lzma_h" = xyes; then :
12428   cat >>confdefs.h <<_ACEOF
12429 #define HAVE_LZMA_H 1
12430 _ACEOF
12431  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
12432 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
12433 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
12434   $as_echo_n "(cached) " >&6
12435 else
12436   ac_check_lib_save_LIBS=$LIBS
12437 LIBS="-llzma  $LIBS"
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h.  */
12440
12441 /* Override any GCC internal prototype to avoid an error.
12442    Use char because int might match the return type of a GCC
12443    builtin and then its argument prototype would still apply.  */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char lzma_code ();
12448 int
12449 main ()
12450 {
12451 return lzma_code ();
12452   ;
12453   return 0;
12454 }
12455 _ACEOF
12456 if ac_fn_c_try_link "$LINENO"; then :
12457   ac_cv_lib_lzma_lzma_code=yes
12458 else
12459   ac_cv_lib_lzma_lzma_code=no
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462     conftest$ac_exeext conftest.$ac_ext
12463 LIBS=$ac_check_lib_save_LIBS
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
12466 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
12467 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
12468
12469
12470 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
12471
12472             WITH_LZMA=1
12473             if test "x${LZMA_DIR}" != "x"; then
12474                 LZMA_CFLAGS="-I${LZMA_DIR}/include"
12475                 LZMA_LIBS="-L${LZMA_DIR}/lib -llzma"
12476             else
12477                 LZMA_LIBS="-llzma"
12478             fi
12479 fi
12480
12481 fi
12482
12483 done
12484
12485 fi
12486
12487
12488
12489
12490
12491 CPPFLAGS=${_cppflags}
12492 LIBS=${_libs}
12493
12494 echo Checking headers
12495
12496 ac_header_dirent=no
12497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12498   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12500 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12501 if eval \${$as_ac_Header+:} false; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h.  */
12506 #include <sys/types.h>
12507 #include <$ac_hdr>
12508
12509 int
12510 main ()
12511 {
12512 if ((DIR *) 0)
12513 return 0;
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"; then :
12519   eval "$as_ac_Header=yes"
12520 else
12521   eval "$as_ac_Header=no"
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 fi
12525 eval ac_res=\$$as_ac_Header
12526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12527 $as_echo "$ac_res" >&6; }
12528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12529   cat >>confdefs.h <<_ACEOF
12530 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12531 _ACEOF
12532
12533 ac_header_dirent=$ac_hdr; break
12534 fi
12535
12536 done
12537 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12538 if test $ac_header_dirent = dirent.h; then
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12540 $as_echo_n "checking for library containing opendir... " >&6; }
12541 if ${ac_cv_search_opendir+:} false; then :
12542   $as_echo_n "(cached) " >&6
12543 else
12544   ac_func_search_save_LIBS=$LIBS
12545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h.  */
12547
12548 /* Override any GCC internal prototype to avoid an error.
12549    Use char because int might match the return type of a GCC
12550    builtin and then its argument prototype would still apply.  */
12551 #ifdef __cplusplus
12552 extern "C"
12553 #endif
12554 char opendir ();
12555 int
12556 main ()
12557 {
12558 return opendir ();
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 for ac_lib in '' dir; do
12564   if test -z "$ac_lib"; then
12565     ac_res="none required"
12566   else
12567     ac_res=-l$ac_lib
12568     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12569   fi
12570   if ac_fn_c_try_link "$LINENO"; then :
12571   ac_cv_search_opendir=$ac_res
12572 fi
12573 rm -f core conftest.err conftest.$ac_objext \
12574     conftest$ac_exeext
12575   if ${ac_cv_search_opendir+:} false; then :
12576   break
12577 fi
12578 done
12579 if ${ac_cv_search_opendir+:} false; then :
12580
12581 else
12582   ac_cv_search_opendir=no
12583 fi
12584 rm conftest.$ac_ext
12585 LIBS=$ac_func_search_save_LIBS
12586 fi
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12588 $as_echo "$ac_cv_search_opendir" >&6; }
12589 ac_res=$ac_cv_search_opendir
12590 if test "$ac_res" != no; then :
12591   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12592
12593 fi
12594
12595 else
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12597 $as_echo_n "checking for library containing opendir... " >&6; }
12598 if ${ac_cv_search_opendir+:} false; then :
12599   $as_echo_n "(cached) " >&6
12600 else
12601   ac_func_search_save_LIBS=$LIBS
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h.  */
12604
12605 /* Override any GCC internal prototype to avoid an error.
12606    Use char because int might match the return type of a GCC
12607    builtin and then its argument prototype would still apply.  */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char opendir ();
12612 int
12613 main ()
12614 {
12615 return opendir ();
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 for ac_lib in '' x; do
12621   if test -z "$ac_lib"; then
12622     ac_res="none required"
12623   else
12624     ac_res=-l$ac_lib
12625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12626   fi
12627   if ac_fn_c_try_link "$LINENO"; then :
12628   ac_cv_search_opendir=$ac_res
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext \
12631     conftest$ac_exeext
12632   if ${ac_cv_search_opendir+:} false; then :
12633   break
12634 fi
12635 done
12636 if ${ac_cv_search_opendir+:} false; then :
12637
12638 else
12639   ac_cv_search_opendir=no
12640 fi
12641 rm conftest.$ac_ext
12642 LIBS=$ac_func_search_save_LIBS
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12645 $as_echo "$ac_cv_search_opendir" >&6; }
12646 ac_res=$ac_cv_search_opendir
12647 if test "$ac_res" != no; then :
12648   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12649
12650 fi
12651
12652 fi
12653
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12655 $as_echo_n "checking for ANSI C header files... " >&6; }
12656 if ${ac_cv_header_stdc+:} false; then :
12657   $as_echo_n "(cached) " >&6
12658 else
12659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661 #include <stdlib.h>
12662 #include <stdarg.h>
12663 #include <string.h>
12664 #include <float.h>
12665
12666 int
12667 main ()
12668 {
12669
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_compile "$LINENO"; then :
12675   ac_cv_header_stdc=yes
12676 else
12677   ac_cv_header_stdc=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12680
12681 if test $ac_cv_header_stdc = yes; then
12682   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h.  */
12685 #include <string.h>
12686
12687 _ACEOF
12688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12689   $EGREP "memchr" >/dev/null 2>&1; then :
12690
12691 else
12692   ac_cv_header_stdc=no
12693 fi
12694 rm -f conftest*
12695
12696 fi
12697
12698 if test $ac_cv_header_stdc = yes; then
12699   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h.  */
12702 #include <stdlib.h>
12703
12704 _ACEOF
12705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12706   $EGREP "free" >/dev/null 2>&1; then :
12707
12708 else
12709   ac_cv_header_stdc=no
12710 fi
12711 rm -f conftest*
12712
12713 fi
12714
12715 if test $ac_cv_header_stdc = yes; then
12716   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12717   if test "$cross_compiling" = yes; then :
12718   :
12719 else
12720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h.  */
12722 #include <ctype.h>
12723 #include <stdlib.h>
12724 #if ((' ' & 0x0FF) == 0x020)
12725 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12726 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12727 #else
12728 # define ISLOWER(c) \
12729                    (('a' <= (c) && (c) <= 'i') \
12730                      || ('j' <= (c) && (c) <= 'r') \
12731                      || ('s' <= (c) && (c) <= 'z'))
12732 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12733 #endif
12734
12735 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12736 int
12737 main ()
12738 {
12739   int i;
12740   for (i = 0; i < 256; i++)
12741     if (XOR (islower (i), ISLOWER (i))
12742         || toupper (i) != TOUPPER (i))
12743       return 2;
12744   return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_run "$LINENO"; then :
12748
12749 else
12750   ac_cv_header_stdc=no
12751 fi
12752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12753   conftest.$ac_objext conftest.beam conftest.$ac_ext
12754 fi
12755
12756 fi
12757 fi
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12759 $as_echo "$ac_cv_header_stdc" >&6; }
12760 if test $ac_cv_header_stdc = yes; then
12761
12762 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12763
12764 fi
12765
12766 for ac_header in fcntl.h
12767 do :
12768   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12769 if test "x$ac_cv_header_fcntl_h" = xyes; then :
12770   cat >>confdefs.h <<_ACEOF
12771 #define HAVE_FCNTL_H 1
12772 _ACEOF
12773
12774 fi
12775
12776 done
12777
12778 for ac_header in unistd.h
12779 do :
12780   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12781 if test "x$ac_cv_header_unistd_h" = xyes; then :
12782   cat >>confdefs.h <<_ACEOF
12783 #define HAVE_UNISTD_H 1
12784 _ACEOF
12785
12786 fi
12787
12788 done
12789
12790 for ac_header in ctype.h
12791 do :
12792   ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12793 if test "x$ac_cv_header_ctype_h" = xyes; then :
12794   cat >>confdefs.h <<_ACEOF
12795 #define HAVE_CTYPE_H 1
12796 _ACEOF
12797
12798 fi
12799
12800 done
12801
12802 for ac_header in dirent.h
12803 do :
12804   ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12805 if test "x$ac_cv_header_dirent_h" = xyes; then :
12806   cat >>confdefs.h <<_ACEOF
12807 #define HAVE_DIRENT_H 1
12808 _ACEOF
12809
12810 fi
12811
12812 done
12813
12814 for ac_header in errno.h
12815 do :
12816   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12817 if test "x$ac_cv_header_errno_h" = xyes; then :
12818   cat >>confdefs.h <<_ACEOF
12819 #define HAVE_ERRNO_H 1
12820 _ACEOF
12821
12822 fi
12823
12824 done
12825
12826 for ac_header in malloc.h
12827 do :
12828   ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12829 if test "x$ac_cv_header_malloc_h" = xyes; then :
12830   cat >>confdefs.h <<_ACEOF
12831 #define HAVE_MALLOC_H 1
12832 _ACEOF
12833
12834 fi
12835
12836 done
12837
12838 for ac_header in stdarg.h
12839 do :
12840   ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12841 if test "x$ac_cv_header_stdarg_h" = xyes; then :
12842   cat >>confdefs.h <<_ACEOF
12843 #define HAVE_STDARG_H 1
12844 _ACEOF
12845
12846 fi
12847
12848 done
12849
12850 for ac_header in sys/stat.h
12851 do :
12852   ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12853 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12854   cat >>confdefs.h <<_ACEOF
12855 #define HAVE_SYS_STAT_H 1
12856 _ACEOF
12857
12858 fi
12859
12860 done
12861
12862 for ac_header in sys/types.h
12863 do :
12864   ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12865 if test "x$ac_cv_header_sys_types_h" = xyes; then :
12866   cat >>confdefs.h <<_ACEOF
12867 #define HAVE_SYS_TYPES_H 1
12868 _ACEOF
12869
12870 fi
12871
12872 done
12873
12874 for ac_header in stdint.h
12875 do :
12876   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12877 if test "x$ac_cv_header_stdint_h" = xyes; then :
12878   cat >>confdefs.h <<_ACEOF
12879 #define HAVE_STDINT_H 1
12880 _ACEOF
12881
12882 fi
12883
12884 done
12885
12886 for ac_header in inttypes.h
12887 do :
12888   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12889 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12890   cat >>confdefs.h <<_ACEOF
12891 #define HAVE_INTTYPES_H 1
12892 _ACEOF
12893
12894 fi
12895
12896 done
12897
12898 for ac_header in time.h
12899 do :
12900   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12901 if test "x$ac_cv_header_time_h" = xyes; then :
12902   cat >>confdefs.h <<_ACEOF
12903 #define HAVE_TIME_H 1
12904 _ACEOF
12905
12906 fi
12907
12908 done
12909
12910 for ac_header in ansidecl.h
12911 do :
12912   ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12913 if test "x$ac_cv_header_ansidecl_h" = xyes; then :
12914   cat >>confdefs.h <<_ACEOF
12915 #define HAVE_ANSIDECL_H 1
12916 _ACEOF
12917
12918 fi
12919
12920 done
12921
12922 for ac_header in ieeefp.h
12923 do :
12924   ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
12925 if test "x$ac_cv_header_ieeefp_h" = xyes; then :
12926   cat >>confdefs.h <<_ACEOF
12927 #define HAVE_IEEEFP_H 1
12928 _ACEOF
12929
12930 fi
12931
12932 done
12933
12934 for ac_header in nan.h
12935 do :
12936   ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
12937 if test "x$ac_cv_header_nan_h" = xyes; then :
12938   cat >>confdefs.h <<_ACEOF
12939 #define HAVE_NAN_H 1
12940 _ACEOF
12941
12942 fi
12943
12944 done
12945
12946 for ac_header in math.h
12947 do :
12948   ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
12949 if test "x$ac_cv_header_math_h" = xyes; then :
12950   cat >>confdefs.h <<_ACEOF
12951 #define HAVE_MATH_H 1
12952 _ACEOF
12953
12954 fi
12955
12956 done
12957
12958 for ac_header in limits.h
12959 do :
12960   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12961 if test "x$ac_cv_header_limits_h" = xyes; then :
12962   cat >>confdefs.h <<_ACEOF
12963 #define HAVE_LIMITS_H 1
12964 _ACEOF
12965
12966 fi
12967
12968 done
12969
12970 for ac_header in fp_class.h
12971 do :
12972   ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
12973 if test "x$ac_cv_header_fp_class_h" = xyes; then :
12974   cat >>confdefs.h <<_ACEOF
12975 #define HAVE_FP_CLASS_H 1
12976 _ACEOF
12977
12978 fi
12979
12980 done
12981
12982 for ac_header in float.h
12983 do :
12984   ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
12985 if test "x$ac_cv_header_float_h" = xyes; then :
12986   cat >>confdefs.h <<_ACEOF
12987 #define HAVE_FLOAT_H 1
12988 _ACEOF
12989
12990 fi
12991
12992 done
12993
12994 for ac_header in stdlib.h
12995 do :
12996   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12997 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12998   cat >>confdefs.h <<_ACEOF
12999 #define HAVE_STDLIB_H 1
13000 _ACEOF
13001
13002 fi
13003
13004 done
13005
13006 for ac_header in sys/socket.h
13007 do :
13008   ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
13009 # include <sys/types.h>
13010 # endif
13011
13012 "
13013 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13014   cat >>confdefs.h <<_ACEOF
13015 #define HAVE_SYS_SOCKET_H 1
13016 _ACEOF
13017
13018 fi
13019
13020 done
13021
13022 for ac_header in netinet/in.h
13023 do :
13024   ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
13025 # include <sys/types.h>
13026 # endif
13027
13028 "
13029 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13030   cat >>confdefs.h <<_ACEOF
13031 #define HAVE_NETINET_IN_H 1
13032 _ACEOF
13033
13034 fi
13035
13036 done
13037
13038 for ac_header in arpa/inet.h
13039 do :
13040   ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
13041 # include <sys/types.h>
13042 # endif
13043 #if HAVE_ARPA_INET_H
13044 # include <arpa/inet.h>
13045 # endif
13046
13047 "
13048 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
13049   cat >>confdefs.h <<_ACEOF
13050 #define HAVE_ARPA_INET_H 1
13051 _ACEOF
13052
13053 fi
13054
13055 done
13056
13057 for ac_header in netdb.h
13058 do :
13059   ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13060 if test "x$ac_cv_header_netdb_h" = xyes; then :
13061   cat >>confdefs.h <<_ACEOF
13062 #define HAVE_NETDB_H 1
13063 _ACEOF
13064
13065 fi
13066
13067 done
13068
13069 for ac_header in sys/time.h
13070 do :
13071   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13072 if test "x$ac_cv_header_sys_time_h" = xyes; then :
13073   cat >>confdefs.h <<_ACEOF
13074 #define HAVE_SYS_TIME_H 1
13075 _ACEOF
13076
13077 fi
13078
13079 done
13080
13081 for ac_header in sys/select.h
13082 do :
13083   ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13084 if test "x$ac_cv_header_sys_select_h" = xyes; then :
13085   cat >>confdefs.h <<_ACEOF
13086 #define HAVE_SYS_SELECT_H 1
13087 _ACEOF
13088
13089 fi
13090
13091 done
13092
13093 for ac_header in poll.h
13094 do :
13095   ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13096 if test "x$ac_cv_header_poll_h" = xyes; then :
13097   cat >>confdefs.h <<_ACEOF
13098 #define HAVE_POLL_H 1
13099 _ACEOF
13100
13101 fi
13102
13103 done
13104
13105 for ac_header in sys/mman.h
13106 do :
13107   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13108 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13109   cat >>confdefs.h <<_ACEOF
13110 #define HAVE_SYS_MMAN_H 1
13111 _ACEOF
13112
13113 fi
13114
13115 done
13116
13117 for ac_header in sys/timeb.h
13118 do :
13119   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13120 if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
13121   cat >>confdefs.h <<_ACEOF
13122 #define HAVE_SYS_TIMEB_H 1
13123 _ACEOF
13124
13125 fi
13126
13127 done
13128
13129 for ac_header in signal.h
13130 do :
13131   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
13132 if test "x$ac_cv_header_signal_h" = xyes; then :
13133   cat >>confdefs.h <<_ACEOF
13134 #define HAVE_SIGNAL_H 1
13135 _ACEOF
13136
13137 fi
13138
13139 done
13140
13141 for ac_header in arpa/nameser.h
13142 do :
13143   ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
13144 # include <sys/types.h>
13145 # endif
13146
13147 "
13148 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
13149   cat >>confdefs.h <<_ACEOF
13150 #define HAVE_ARPA_NAMESER_H 1
13151 _ACEOF
13152
13153 fi
13154
13155 done
13156
13157 for ac_header in resolv.h
13158 do :
13159   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
13160 # include <sys/types.h>
13161 # endif
13162 #if HAVE_NETINET_IN_H
13163 # include <netinet/in.h>
13164 # endif
13165 #if HAVE_ARPA_NAMESER_H
13166 # include <arpa/nameser.h>
13167 # endif
13168
13169 "
13170 if test "x$ac_cv_header_resolv_h" = xyes; then :
13171   cat >>confdefs.h <<_ACEOF
13172 #define HAVE_RESOLV_H 1
13173 _ACEOF
13174
13175 fi
13176
13177 done
13178
13179 for ac_header in dl.h
13180 do :
13181   ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
13182 if test "x$ac_cv_header_dl_h" = xyes; then :
13183   cat >>confdefs.h <<_ACEOF
13184 #define HAVE_DL_H 1
13185 _ACEOF
13186
13187 fi
13188
13189 done
13190
13191 for ac_header in dlfcn.h
13192 do :
13193   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
13194 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13195   cat >>confdefs.h <<_ACEOF
13196 #define HAVE_DLFCN_H 1
13197 _ACEOF
13198
13199 fi
13200
13201 done
13202
13203
13204
13205 echo Checking types
13206
13207 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
13208 case $ac_cv_c_uint32_t in #(
13209   no|yes) ;; #(
13210   *)
13211
13212 $as_echo "#define _UINT32_T 1" >>confdefs.h
13213
13214
13215 cat >>confdefs.h <<_ACEOF
13216 #define uint32_t $ac_cv_c_uint32_t
13217 _ACEOF
13218 ;;
13219   esac
13220
13221
13222
13223 echo Checking libraries
13224
13225 for ac_func in strftime
13226 do :
13227   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
13228 if test "x$ac_cv_func_strftime" = xyes; then :
13229   cat >>confdefs.h <<_ACEOF
13230 #define HAVE_STRFTIME 1
13231 _ACEOF
13232
13233 else
13234   # strftime is in -lintl on SCO UNIX.
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
13236 $as_echo_n "checking for strftime in -lintl... " >&6; }
13237 if ${ac_cv_lib_intl_strftime+:} false; then :
13238   $as_echo_n "(cached) " >&6
13239 else
13240   ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-lintl  $LIBS"
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h.  */
13244
13245 /* Override any GCC internal prototype to avoid an error.
13246    Use char because int might match the return type of a GCC
13247    builtin and then its argument prototype would still apply.  */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 char strftime ();
13252 int
13253 main ()
13254 {
13255 return strftime ();
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 if ac_fn_c_try_link "$LINENO"; then :
13261   ac_cv_lib_intl_strftime=yes
13262 else
13263   ac_cv_lib_intl_strftime=no
13264 fi
13265 rm -f core conftest.err conftest.$ac_objext \
13266     conftest$ac_exeext conftest.$ac_ext
13267 LIBS=$ac_check_lib_save_LIBS
13268 fi
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
13270 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
13271 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
13272   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
13273
13274 LIBS="-lintl $LIBS"
13275 fi
13276
13277 fi
13278 done
13279
13280 for ac_func in strdup strndup strerror
13281 do :
13282   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13283 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13284 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13285   cat >>confdefs.h <<_ACEOF
13286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13287 _ACEOF
13288
13289 fi
13290 done
13291
13292 for ac_func in finite isnand fp_class class fpclass
13293 do :
13294   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13297   cat >>confdefs.h <<_ACEOF
13298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13299 _ACEOF
13300
13301 fi
13302 done
13303
13304 for ac_func in strftime localtime gettimeofday ftime
13305 do :
13306   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13309   cat >>confdefs.h <<_ACEOF
13310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13311 _ACEOF
13312
13313 fi
13314 done
13315
13316 for ac_func in stat _stat signal
13317 do :
13318   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13320 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13321   cat >>confdefs.h <<_ACEOF
13322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13323 _ACEOF
13324
13325 fi
13326 done
13327
13328 for ac_func in rand rand_r srand time
13329 do :
13330   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13333   cat >>confdefs.h <<_ACEOF
13334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13335 _ACEOF
13336
13337 fi
13338 done
13339
13340 for ac_func in isascii mmap munmap putenv
13341 do :
13342   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13345   cat >>confdefs.h <<_ACEOF
13346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13347 _ACEOF
13348
13349 fi
13350 done
13351
13352
13353
13354
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
13356 $as_echo_n "checking for va_copy... " >&6; }
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h.  */
13359 #include <stdarg.h>
13360 va_list ap1,ap2;
13361 int
13362 main ()
13363 {
13364 va_copy(ap1,ap2);
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 if ac_fn_c_try_link "$LINENO"; then :
13370   have_va_copy=yes
13371 else
13372   have_va_copy=no
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext \
13375     conftest$ac_exeext conftest.$ac_ext
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
13377 $as_echo "$have_va_copy" >&6; }
13378 if test x"$have_va_copy" = x"yes"; then
13379
13380 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
13381
13382 else
13383     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
13384 $as_echo_n "checking for __va_copy... " >&6; }
13385     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h.  */
13387 #include <stdarg.h>
13388     va_list ap1,ap2;
13389 int
13390 main ()
13391 {
13392 __va_copy(ap1,ap2);
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_link "$LINENO"; then :
13398   have___va_copy=yes
13399 else
13400   have___va_copy=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext \
13403     conftest$ac_exeext conftest.$ac_ext
13404     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
13405 $as_echo "$have___va_copy" >&6; }
13406     if test x"$have___va_copy" = x"yes"; then
13407
13408 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
13409
13410     fi
13411 fi
13412
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
13414 $as_echo_n "checking for library containing gethostent... " >&6; }
13415 if ${ac_cv_search_gethostent+:} false; then :
13416   $as_echo_n "(cached) " >&6
13417 else
13418   ac_func_search_save_LIBS=$LIBS
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h.  */
13421
13422 /* Override any GCC internal prototype to avoid an error.
13423    Use char because int might match the return type of a GCC
13424    builtin and then its argument prototype would still apply.  */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 char gethostent ();
13429 int
13430 main ()
13431 {
13432 return gethostent ();
13433   ;
13434   return 0;
13435 }
13436 _ACEOF
13437 for ac_lib in '' nsl; do
13438   if test -z "$ac_lib"; then
13439     ac_res="none required"
13440   else
13441     ac_res=-l$ac_lib
13442     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13443   fi
13444   if ac_fn_c_try_link "$LINENO"; then :
13445   ac_cv_search_gethostent=$ac_res
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448     conftest$ac_exeext
13449   if ${ac_cv_search_gethostent+:} false; then :
13450   break
13451 fi
13452 done
13453 if ${ac_cv_search_gethostent+:} false; then :
13454
13455 else
13456   ac_cv_search_gethostent=no
13457 fi
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
13462 $as_echo "$ac_cv_search_gethostent" >&6; }
13463 ac_res=$ac_cv_search_gethostent
13464 if test "$ac_res" != no; then :
13465   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467 fi
13468
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
13470 $as_echo_n "checking for library containing setsockopt... " >&6; }
13471 if ${ac_cv_search_setsockopt+:} false; then :
13472   $as_echo_n "(cached) " >&6
13473 else
13474   ac_func_search_save_LIBS=$LIBS
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h.  */
13477
13478 /* Override any GCC internal prototype to avoid an error.
13479    Use char because int might match the return type of a GCC
13480    builtin and then its argument prototype would still apply.  */
13481 #ifdef __cplusplus
13482 extern "C"
13483 #endif
13484 char setsockopt ();
13485 int
13486 main ()
13487 {
13488 return setsockopt ();
13489   ;
13490   return 0;
13491 }
13492 _ACEOF
13493 for ac_lib in '' socket net network; do
13494   if test -z "$ac_lib"; then
13495     ac_res="none required"
13496   else
13497     ac_res=-l$ac_lib
13498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13499   fi
13500   if ac_fn_c_try_link "$LINENO"; then :
13501   ac_cv_search_setsockopt=$ac_res
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504     conftest$ac_exeext
13505   if ${ac_cv_search_setsockopt+:} false; then :
13506   break
13507 fi
13508 done
13509 if ${ac_cv_search_setsockopt+:} false; then :
13510
13511 else
13512   ac_cv_search_setsockopt=no
13513 fi
13514 rm conftest.$ac_ext
13515 LIBS=$ac_func_search_save_LIBS
13516 fi
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
13518 $as_echo "$ac_cv_search_setsockopt" >&6; }
13519 ac_res=$ac_cv_search_setsockopt
13520 if test "$ac_res" != no; then :
13521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13522
13523 fi
13524
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13526 $as_echo_n "checking for library containing connect... " >&6; }
13527 if ${ac_cv_search_connect+:} false; then :
13528   $as_echo_n "(cached) " >&6
13529 else
13530   ac_func_search_save_LIBS=$LIBS
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h.  */
13533
13534 /* Override any GCC internal prototype to avoid an error.
13535    Use char because int might match the return type of a GCC
13536    builtin and then its argument prototype would still apply.  */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 char connect ();
13541 int
13542 main ()
13543 {
13544 return connect ();
13545   ;
13546   return 0;
13547 }
13548 _ACEOF
13549 for ac_lib in '' inet; do
13550   if test -z "$ac_lib"; then
13551     ac_res="none required"
13552   else
13553     ac_res=-l$ac_lib
13554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13555   fi
13556   if ac_fn_c_try_link "$LINENO"; then :
13557   ac_cv_search_connect=$ac_res
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext \
13560     conftest$ac_exeext
13561   if ${ac_cv_search_connect+:} false; then :
13562   break
13563 fi
13564 done
13565 if ${ac_cv_search_connect+:} false; then :
13566
13567 else
13568   ac_cv_search_connect=no
13569 fi
13570 rm conftest.$ac_ext
13571 LIBS=$ac_func_search_save_LIBS
13572 fi
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13574 $as_echo "$ac_cv_search_connect" >&6; }
13575 ac_res=$ac_cv_search_connect
13576 if test "$ac_res" != no; then :
13577   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13578
13579 fi
13580
13581
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
13583 $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13585 "configure"
13586 #include "confdefs.h"
13587
13588 #include <stddef.h>
13589 #include <sys/types.h>
13590 #include <sys/socket.h>
13591 int main(void) {
13592
13593 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
13594 ; return 0; }
13595 EOF
13596 if { (eval echo configure:13596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13597   rm -rf conftest*
13598
13599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
13600 $as_echo "socklen_t *" >&6; }
13601   XML_SOCKLEN_T=socklen_t
13602 else
13603   echo "configure: failed program was:" >&5
13604   cat conftest.$ac_ext >&5
13605   rm -rf conftest*
13606
13607   cat > conftest.$ac_ext <<EOF
13608 #line 13608 "configure"
13609 #include "confdefs.h"
13610
13611 #include <stddef.h>
13612 #include <sys/types.h>
13613 #include <sys/socket.h>
13614 int main(void) {
13615
13616 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
13617 ; return 0; }
13618 EOF
13619 if { (eval echo configure:13619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13620   rm -rf conftest*
13621
13622     { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
13623 $as_echo "size_t *" >&6; }
13624     XML_SOCKLEN_T=size_t
13625 else
13626   echo "configure: failed program was:" >&5
13627   cat conftest.$ac_ext >&5
13628   rm -rf conftest*
13629
13630     cat > conftest.$ac_ext <<EOF
13631 #line 13631 "configure"
13632 #include "confdefs.h"
13633
13634 #include <stddef.h>
13635 #include <sys/types.h>
13636 #include <sys/socket.h>
13637 int main(void) {
13638
13639 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
13640 ; return 0; }
13641 EOF
13642 if { (eval echo configure:13642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13643   rm -rf conftest*
13644
13645       { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
13646 $as_echo "int *" >&6; }
13647       XML_SOCKLEN_T=int
13648 else
13649   echo "configure: failed program was:" >&5
13650   cat conftest.$ac_ext >&5
13651   rm -rf conftest*
13652
13653       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
13654 $as_echo "$as_me: WARNING: could not determine" >&2;}
13655       XML_SOCKLEN_T="int"
13656 fi
13657 rm -f conftest*
13658 fi
13659 rm -f conftest*
13660 fi
13661 rm -f conftest*
13662
13663 cat >>confdefs.h <<_ACEOF
13664 #define XML_SOCKLEN_T $XML_SOCKLEN_T
13665 _ACEOF
13666
13667
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
13670 $as_echo_n "checking whether to enable IPv6... " >&6; }
13671 # Check whether --enable-ipv6 was given.
13672 if test "${enable_ipv6+set}" = set; then :
13673   enableval=$enable_ipv6;
13674 else
13675   enable_ipv6=yes
13676 fi
13677
13678 if test "$with_minimum" = "yes"
13679 then
13680     enable_ipv6=no
13681 fi
13682 if test $enable_ipv6 = yes; then
13683   have_ipv6=no
13684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686
13687 #   include <sys/types.h>
13688 #   include <sys/socket.h>
13689
13690 int
13691 main ()
13692 {
13693
13694     struct sockaddr_storage ss;
13695     socket(AF_INET6, SOCK_STREAM, 0)
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702   have_ipv6=yes
13703 else
13704   have_ipv6=no
13705
13706 fi
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
13709 $as_echo "$have_ipv6" >&6; }
13710
13711   if test $have_ipv6 = yes; then
13712
13713 $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
13714
13715     have_broken_ss_family=no
13716
13717                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
13718 $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
13719     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h.  */
13721
13722 #     include <sys/types.h>
13723 #     include <sys/socket.h>
13724
13725 int
13726 main ()
13727 {
13728
13729       struct sockaddr_storage ss ;
13730       ss.ss_family = 0 ;
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 if ac_fn_c_try_compile "$LINENO"; then :
13737   have_ss_family=yes
13738 else
13739   have_ss_family=no
13740
13741 fi
13742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
13744 $as_echo "$have_ss_family" >&6; }
13745     if test x$have_ss_family = xno ; then
13746       { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
13747 $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
13748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h.  */
13750
13751 #       include <sys/types.h>
13752 #       include <sys/socket.h>
13753
13754 int
13755 main ()
13756 {
13757
13758         struct sockaddr_storage ss ;
13759         ss.__ss_family = 0 ;
13760
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_compile "$LINENO"; then :
13766   have_broken_ss_family=yes
13767 else
13768   have_broken_ss_family=no
13769
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
13773 $as_echo "$have_broken_ss_family" >&6; }
13774       if test x$have_broken_ss_family = xyes ; then
13775
13776 $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
13777
13778
13779 $as_echo "#define ss_family __ss_family" >>confdefs.h
13780
13781       else
13782         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
13783 $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
13784       fi
13785     fi
13786
13787     have_getaddrinfo=no
13788     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13789 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13790   have_getaddrinfo=yes
13791 fi
13792
13793     if test $have_getaddrinfo != yes; then
13794       for lib in bsd socket inet; do
13795         as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
13797 $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
13798 if eval \${$as_ac_Lib+:} false; then :
13799   $as_echo_n "(cached) " >&6
13800 else
13801   ac_check_lib_save_LIBS=$LIBS
13802 LIBS="-l$lib  $LIBS"
13803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13804 /* end confdefs.h.  */
13805
13806 /* Override any GCC internal prototype to avoid an error.
13807    Use char because int might match the return type of a GCC
13808    builtin and then its argument prototype would still apply.  */
13809 #ifdef __cplusplus
13810 extern "C"
13811 #endif
13812 char getaddrinfo ();
13813 int
13814 main ()
13815 {
13816 return getaddrinfo ();
13817   ;
13818   return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_link "$LINENO"; then :
13822   eval "$as_ac_Lib=yes"
13823 else
13824   eval "$as_ac_Lib=no"
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext \
13827     conftest$ac_exeext conftest.$ac_ext
13828 LIBS=$ac_check_lib_save_LIBS
13829 fi
13830 eval ac_res=\$$as_ac_Lib
13831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13832 $as_echo "$ac_res" >&6; }
13833 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13834   LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13835 fi
13836
13837       done
13838     fi
13839
13840     if test $have_getaddrinfo = yes; then
13841
13842 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
13843
13844     fi
13845   fi
13846 fi
13847
13848
13849 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13850 if test "x$ac_cv_func_isnan" = xyes; then :
13851
13852 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13853
13854 else
13855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13856 $as_echo_n "checking for isnan in -lm... " >&6; }
13857 if ${ac_cv_lib_m_isnan+:} false; then :
13858   $as_echo_n "(cached) " >&6
13859 else
13860   ac_check_lib_save_LIBS=$LIBS
13861 LIBS="-lm  $LIBS"
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h.  */
13864
13865 /* Override any GCC internal prototype to avoid an error.
13866    Use char because int might match the return type of a GCC
13867    builtin and then its argument prototype would still apply.  */
13868 #ifdef __cplusplus
13869 extern "C"
13870 #endif
13871 char isnan ();
13872 int
13873 main ()
13874 {
13875 return isnan ();
13876   ;
13877   return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_link "$LINENO"; then :
13881   ac_cv_lib_m_isnan=yes
13882 else
13883   ac_cv_lib_m_isnan=no
13884 fi
13885 rm -f core conftest.err conftest.$ac_objext \
13886     conftest$ac_exeext conftest.$ac_ext
13887 LIBS=$ac_check_lib_save_LIBS
13888 fi
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13890 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13891 if test "x$ac_cv_lib_m_isnan" = xyes; then :
13892
13893 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13894
13895 fi
13896
13897 fi
13898
13899
13900 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
13901 if test "x$ac_cv_func_isinf" = xyes; then :
13902
13903 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13904
13905 else
13906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
13907 $as_echo_n "checking for isinf in -lm... " >&6; }
13908 if ${ac_cv_lib_m_isinf+:} false; then :
13909   $as_echo_n "(cached) " >&6
13910 else
13911   ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-lm  $LIBS"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917    Use char because int might match the return type of a GCC
13918    builtin and then its argument prototype would still apply.  */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char isinf ();
13923 int
13924 main ()
13925 {
13926 return isinf ();
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 if ac_fn_c_try_link "$LINENO"; then :
13932   ac_cv_lib_m_isinf=yes
13933 else
13934   ac_cv_lib_m_isinf=no
13935 fi
13936 rm -f core conftest.err conftest.$ac_objext \
13937     conftest$ac_exeext conftest.$ac_ext
13938 LIBS=$ac_check_lib_save_LIBS
13939 fi
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
13941 $as_echo "$ac_cv_lib_m_isinf" >&6; }
13942 if test "x$ac_cv_lib_m_isinf" = xyes; then :
13943
13944 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13945
13946 fi
13947
13948 fi
13949
13950
13951 XML_LIBDIR='-L${libdir}'
13952 XML_INCLUDEDIR='-I${includedir}/libxml2'
13953
13954 XML_CFLAGS=""
13955 RDL_LIBS=""
13956
13957 if test "${GCC}" != "yes" ; then
13958     case "${host}" in
13959           hppa*-*-hpux* )
13960                CFLAGS="${CFLAGS} -Wp,-H30000"
13961                ;;
13962           *-dec-osf* )
13963                CFLAGS="${CFLAGS} -ieee"
13964                ;;
13965           alpha*-*-linux* )
13966                CFLAGS="${CFLAGS} -ieee"
13967                ;;
13968     esac
13969 else
13970     if test "$with_fexceptions" = "yes"
13971     then
13972         #
13973         # Not activated by default because this inflates the code size
13974         # Used to allow propagation of C++ exceptions through the library
13975         #
13976         CFLAGS="${CFLAGS} -fexceptions"
13977     fi
13978
13979     # warnings we'd like to see
13980     CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls"
13981     # warnings we'd like to supress
13982     CFLAGS="${CFLAGS} -Wno-long-long"
13983     case "${host}" in
13984           alpha*-*-linux* )
13985                CFLAGS="${CFLAGS} -mieee"
13986                ;;
13987           alpha*-*-osf* )
13988                CFLAGS="${CFLAGS} -mieee"
13989                ;;
13990     esac
13991 fi
13992 case ${host} in
13993     *-*-solaris*)
13994         XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
13995         ;;
13996     hppa*-hp-mpeix)
13997         NEED_TRIO=1
13998         ;;
13999     *-*-mingw* | *-*-cygwin* | *-*-msvc* )
14000         # If the host is Windows, and shared libraries are disabled, we
14001         # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
14002         # work properly (without it, xmlexports.h would force the use of
14003         # DLL imports, which obviously aren't present in a static
14004         # library).
14005         if test "x$enable_shared" = "xno"; then
14006             XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
14007             CFLAGS="$CFLAGS -DLIBXML_STATIC"
14008         fi
14009         ;;
14010 esac
14011
14012
14013
14014 PYTHON_VERSION=
14015 PYTHON_INCLUDES=
14016 PYTHON_SITE_PACKAGES=
14017 PYTHON_TESTS=
14018 pythondir=
14019 if test "$with_python" != "no" ; then
14020     if test -x "$with_python/bin/python"
14021     then
14022         echo Found python in $with_python/bin/python
14023         PYTHON="$with_python/bin/python"
14024     else
14025         if test -x "$with_python/python.exe"
14026         then
14027             echo Found python in $with_python/python.exe
14028             PYTHON="$with_python/python.exe"
14029         else
14030             if test -x "$with_python"
14031             then
14032                 echo Found python in $with_python
14033                 PYTHON="$with_python"
14034             else
14035                 if test -x "$PYTHON"
14036                 then
14037                     echo Found python in environment PYTHON=$PYTHON
14038                     with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"`
14039                 else
14040                     # 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.
14041 set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14043 $as_echo_n "checking for $ac_word... " >&6; }
14044 if ${ac_cv_path_PYTHON+:} false; then :
14045   $as_echo_n "(cached) " >&6
14046 else
14047   case $PYTHON in
14048   [\\/]* | ?:[\\/]*)
14049   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14050   ;;
14051   *)
14052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14053 for as_dir in $PATH
14054 do
14055   IFS=$as_save_IFS
14056   test -z "$as_dir" && as_dir=.
14057     for ac_exec_ext in '' $ac_executable_extensions; do
14058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14059     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14061     break 2
14062   fi
14063 done
14064   done
14065 IFS=$as_save_IFS
14066
14067   ;;
14068 esac
14069 fi
14070 PYTHON=$ac_cv_path_PYTHON
14071 if test -n "$PYTHON"; then
14072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14073 $as_echo "$PYTHON" >&6; }
14074 else
14075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14077 fi
14078
14079
14080                 fi
14081             fi
14082         fi
14083     fi
14084     if test "$PYTHON" != ""
14085     then
14086         PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
14087         PYTHON_INCLUDES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_inc())"`
14088 # does not work as it produce a /usr/lib/python path instead of/usr/lib64/python
14089 #
14090 #       PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
14091         echo Found Python version $PYTHON_VERSION
14092     fi
14093     if test "$PYTHON_VERSION" != "" -a "$PYTHON_INCLUDES" = ""
14094     then
14095         if test -r $with_python/include/python$PYTHON_VERSION/Python.h
14096         then
14097             PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
14098         else
14099             if test -r $prefix/include/python$PYTHON_VERSION/Python.h
14100             then
14101                 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
14102             else
14103                 if test -r /usr/include/python$PYTHON_VERSION/Python.h
14104                 then
14105                     PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
14106                 else
14107                     if test -r $with_python/include/Python.h
14108                     then
14109                         PYTHON_INCLUDES=$with_python/include
14110                     else
14111                         echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
14112                     fi
14113                 fi
14114             fi
14115         fi
14116     fi
14117     if test "$PYTHON_VERSION" != "" -a "$PYTHON_SITE_PACKAGES" = ""
14118     then
14119         if test -d $libdir/python$PYTHON_VERSION/site-packages
14120         then
14121             PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
14122         else
14123             if test -d $with_python/lib/site-packages
14124             then
14125                 PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
14126             else
14127                 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib())"`
14128             fi
14129         fi
14130     fi
14131     pythondir='$(PYTHON_SITE_PACKAGES)'
14132     PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
14133 else
14134     PYTHON=
14135 fi
14136  if test "$PYTHON_INCLUDES" != ""; then
14137   WITH_PYTHON_TRUE=
14138   WITH_PYTHON_FALSE='#'
14139 else
14140   WITH_PYTHON_TRUE='#'
14141   WITH_PYTHON_FALSE=
14142 fi
14143
14144 if test "$PYTHON_INCLUDES" != ""
14145 then
14146     PYTHON_SUBDIR=python
14147 else
14148     PYTHON_SUBDIR=
14149 fi
14150
14151
14152
14153
14154 WITH_MODULES=0
14155 TEST_MODULES=
14156
14157 if test "$with_modules" != "no" ; then
14158  case "$host" in
14159   *-*-cygwin*)
14160   MODULE_EXTENSION=".dll"
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
14162 $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
14163 if ${ac_cv_lib_cygwin_dlopen+:} false; then :
14164   $as_echo_n "(cached) " >&6
14165 else
14166   ac_check_lib_save_LIBS=$LIBS
14167 LIBS="-lcygwin  $LIBS"
14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h.  */
14170
14171 /* Override any GCC internal prototype to avoid an error.
14172    Use char because int might match the return type of a GCC
14173    builtin and then its argument prototype would still apply.  */
14174 #ifdef __cplusplus
14175 extern "C"
14176 #endif
14177 char dlopen ();
14178 int
14179 main ()
14180 {
14181 return dlopen ();
14182   ;
14183   return 0;
14184 }
14185 _ACEOF
14186 if ac_fn_c_try_link "$LINENO"; then :
14187   ac_cv_lib_cygwin_dlopen=yes
14188 else
14189   ac_cv_lib_cygwin_dlopen=no
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext \
14192     conftest$ac_exeext conftest.$ac_ext
14193 LIBS=$ac_check_lib_save_LIBS
14194 fi
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
14196 $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
14197 if test "x$ac_cv_lib_cygwin_dlopen" = xyes; then :
14198
14199     WITH_MODULES=1
14200     MODULE_PLATFORM_LIBS=
14201
14202 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14203
14204
14205 fi
14206
14207   ;;
14208   *-*-mingw*)
14209   MODULE_EXTENSION=".dll"
14210   WITH_MODULES=1
14211   ;;
14212   *)
14213   ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14214 if test "x$ac_cv_func_shl_load" = xyes; then :
14215   libxml_have_shl_load=yes
14216 else
14217
14218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14220 if ${ac_cv_lib_dld_shl_load+:} false; then :
14221   $as_echo_n "(cached) " >&6
14222 else
14223   ac_check_lib_save_LIBS=$LIBS
14224 LIBS="-ldld  $LIBS"
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h.  */
14227
14228 /* Override any GCC internal prototype to avoid an error.
14229    Use char because int might match the return type of a GCC
14230    builtin and then its argument prototype would still apply.  */
14231 #ifdef __cplusplus
14232 extern "C"
14233 #endif
14234 char shl_load ();
14235 int
14236 main ()
14237 {
14238 return shl_load ();
14239   ;
14240   return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_c_try_link "$LINENO"; then :
14244   ac_cv_lib_dld_shl_load=yes
14245 else
14246   ac_cv_lib_dld_shl_load=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext \
14249     conftest$ac_exeext conftest.$ac_ext
14250 LIBS=$ac_check_lib_save_LIBS
14251 fi
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14254 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14255
14256       MODULE_PLATFORM_LIBS="-ldld"
14257       libxml_have_shl_load=yes
14258 else
14259
14260       ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14261 if test "x$ac_cv_func_dlopen" = xyes; then :
14262   libxml_have_dlopen=yes
14263 else
14264
14265         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14266 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14267 if ${ac_cv_lib_dl_dlopen+:} false; then :
14268   $as_echo_n "(cached) " >&6
14269 else
14270   ac_check_lib_save_LIBS=$LIBS
14271 LIBS="-ldl  $LIBS"
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h.  */
14274
14275 /* Override any GCC internal prototype to avoid an error.
14276    Use char because int might match the return type of a GCC
14277    builtin and then its argument prototype would still apply.  */
14278 #ifdef __cplusplus
14279 extern "C"
14280 #endif
14281 char dlopen ();
14282 int
14283 main ()
14284 {
14285 return dlopen ();
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_link "$LINENO"; then :
14291   ac_cv_lib_dl_dlopen=yes
14292 else
14293   ac_cv_lib_dl_dlopen=no
14294 fi
14295 rm -f core conftest.err conftest.$ac_objext \
14296     conftest$ac_exeext conftest.$ac_ext
14297 LIBS=$ac_check_lib_save_LIBS
14298 fi
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14300 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14301 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14302
14303           MODULE_PLATFORM_LIBS="-ldl"
14304           libxml_have_dlopen=yes
14305 fi
14306
14307 fi
14308
14309 fi
14310
14311 fi
14312
14313
14314   if test "${libxml_have_shl_load}" = "yes"; then
14315     MODULE_EXTENSION=".sl"
14316     WITH_MODULES=1
14317
14318 $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
14319
14320   fi
14321
14322   if test "${libxml_have_dlopen}" = "yes"; then
14323     case "${host}" in
14324       *-*-hpux* )
14325         MODULE_EXTENSION=".sl"
14326         ;;
14327       * )
14328         MODULE_EXTENSION=".so"
14329         ;;
14330     esac
14331
14332     WITH_MODULES=1
14333
14334 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
14335
14336   fi
14337  ;;
14338  esac
14339 fi
14340
14341 if test "${WITH_MODULES}" = "1"; then
14342   TEST_MODULES="ModuleTests"
14343 fi
14344
14345
14346
14347
14348
14349
14350
14351 if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
14352    [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
14353    [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
14354    then
14355     if test "$with_minimum" != "yes"
14356     then
14357         if test "${with_mem_debug}" = "" ; then
14358             echo Activating memory debugging
14359             with_mem_debug="yes"
14360             with_run_debug="yes"
14361         fi
14362         if test "${with_docbook}" = "" ; then
14363             with_docbook="yes"
14364         fi
14365     fi
14366     if test "${GCC}" = "yes" ; then
14367     CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall"
14368     fi
14369     STATIC_BINARIES="-static"
14370 else
14371     STATIC_BINARIES=
14372 fi
14373
14374
14375
14376 if test "${NEED_TRIO}" = "1" ; then
14377     echo Adding trio library for string functions
14378     WITH_TRIO=1
14379 else
14380     WITH_TRIO=0
14381 fi
14382  if test "${NEED_TRIO}" = "1"; then
14383   WITH_TRIO_SOURCES_TRUE=
14384   WITH_TRIO_SOURCES_FALSE='#'
14385 else
14386   WITH_TRIO_SOURCES_TRUE='#'
14387   WITH_TRIO_SOURCES_FALSE=
14388 fi
14389
14390
14391
14392 echo Checking configuration requirements
14393
14394 THREAD_LIBS=""
14395 BASE_THREAD_LIBS=""
14396 WITH_THREADS=0
14397 THREAD_CFLAGS=""
14398 TEST_THREADS=""
14399 THREADS_W32=""
14400 WITH_THREAD_ALLOC=0
14401
14402 if test "$with_threads" = "no" ; then
14403     echo Disabling multithreaded support
14404 else
14405     echo Enabling multithreaded support
14406
14407         case $host_os in
14408        *mingw32*) if test "$with_threads" != "pthread" && test "$with_threads" != "no"; then
14409                WITH_THREADS="1"
14410                THREADS_W32="1"
14411                THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
14412            fi
14413        ;;
14414     esac
14415
14416         if test -z "$THREADS_W32"; then
14417         if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
14418             ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14419 if test "x$ac_cv_header_pthread_h" = xyes; then :
14420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
14421 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
14422 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
14423   $as_echo_n "(cached) " >&6
14424 else
14425   ac_check_lib_save_LIBS=$LIBS
14426 LIBS="-lpthread  $LIBS"
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h.  */
14429
14430 /* Override any GCC internal prototype to avoid an error.
14431    Use char because int might match the return type of a GCC
14432    builtin and then its argument prototype would still apply.  */
14433 #ifdef __cplusplus
14434 extern "C"
14435 #endif
14436 char pthread_join ();
14437 int
14438 main ()
14439 {
14440 return pthread_join ();
14441   ;
14442   return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_link "$LINENO"; then :
14446   ac_cv_lib_pthread_pthread_join=yes
14447 else
14448   ac_cv_lib_pthread_pthread_join=no
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext \
14451     conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS
14453 fi
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
14455 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
14456 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
14457
14458                 THREAD_LIBS="-lpthread"
14459
14460 $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
14461
14462
14463 $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
14464
14465                 WITH_THREADS="1"
14466 fi
14467
14468 fi
14469
14470
14471         fi
14472     fi
14473
14474     case $host_os in
14475        *cygwin*) THREAD_LIBS=""
14476        ;;
14477        *beos*) WITH_THREADS="1"
14478            THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
14479        ;;
14480        *linux*)
14481            if test "${GCC}" = "yes" ; then
14482                GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
14483                GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
14484                GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
14485                if test "${THREAD_LIBS}" = "-lpthread" ; then
14486                    if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
14487                    then
14488                        THREAD_LIBS=""
14489                        BASE_THREAD_LIBS="-lpthread"
14490                    else
14491                    if expr ${GCC_MAJOR} \> 3 > /dev/null
14492                    then
14493                        THREAD_LIBS=""
14494                        BASE_THREAD_LIBS="-lpthread"
14495                    else
14496                        echo old GCC disabling weak symbols for pthread
14497                    fi
14498                    fi
14499                fi
14500            fi
14501        ;;
14502     esac
14503     if test "$WITH_THREADS" = "1" ; then
14504         THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
14505         TEST_THREADS="Threadtests"
14506     fi
14507 fi
14508 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
14509     WITH_THREAD_ALLOC=1
14510 fi
14511
14512
14513
14514
14515
14516
14517
14518  if test -n "$THREADS_W32"; then
14519   THREADS_W32_TRUE=
14520   THREADS_W32_FALSE='#'
14521 else
14522   THREADS_W32_TRUE='#'
14523   THREADS_W32_FALSE=
14524 fi
14525
14526
14527 if test "$with_history" = "yes" ; then
14528     echo Enabling xmllint shell history
14529             unset tcap
14530     for termlib in ncurses curses termcap terminfo termlib; do
14531         as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
14533 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
14534 if eval \${$as_ac_Lib+:} false; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   ac_check_lib_save_LIBS=$LIBS
14538 LIBS="-l${termlib}  $LIBS"
14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h.  */
14541
14542 /* Override any GCC internal prototype to avoid an error.
14543    Use char because int might match the return type of a GCC
14544    builtin and then its argument prototype would still apply.  */
14545 #ifdef __cplusplus
14546 extern "C"
14547 #endif
14548 char tputs ();
14549 int
14550 main ()
14551 {
14552 return tputs ();
14553   ;
14554   return 0;
14555 }
14556 _ACEOF
14557 if ac_fn_c_try_link "$LINENO"; then :
14558   eval "$as_ac_Lib=yes"
14559 else
14560   eval "$as_ac_Lib=no"
14561 fi
14562 rm -f core conftest.err conftest.$ac_objext \
14563     conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_lib_save_LIBS
14565 fi
14566 eval ac_res=\$$as_ac_Lib
14567                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14568 $as_echo "$ac_res" >&6; }
14569 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14570   tcap="-l$termlib"
14571 fi
14572
14573         test -n "$tcap" && break
14574     done
14575
14576     ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
14577 if test "x$ac_cv_header_readline_history_h" = xyes; then :
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
14579 $as_echo_n "checking for append_history in -lhistory... " >&6; }
14580 if ${ac_cv_lib_history_append_history+:} false; then :
14581   $as_echo_n "(cached) " >&6
14582 else
14583   ac_check_lib_save_LIBS=$LIBS
14584 LIBS="-lhistory  $LIBS"
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h.  */
14587
14588 /* Override any GCC internal prototype to avoid an error.
14589    Use char because int might match the return type of a GCC
14590    builtin and then its argument prototype would still apply.  */
14591 #ifdef __cplusplus
14592 extern "C"
14593 #endif
14594 char append_history ();
14595 int
14596 main ()
14597 {
14598 return append_history ();
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 if ac_fn_c_try_link "$LINENO"; then :
14604   ac_cv_lib_history_append_history=yes
14605 else
14606   ac_cv_lib_history_append_history=no
14607 fi
14608 rm -f core conftest.err conftest.$ac_objext \
14609     conftest$ac_exeext conftest.$ac_ext
14610 LIBS=$ac_check_lib_save_LIBS
14611 fi
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
14613 $as_echo "$ac_cv_lib_history_append_history" >&6; }
14614 if test "x$ac_cv_lib_history_append_history" = xyes; then :
14615
14616            RDL_LIBS="-lhistory"
14617
14618 $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
14619
14620 fi
14621
14622 fi
14623
14624
14625     ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
14626 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
14627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14628 $as_echo_n "checking for readline in -lreadline... " >&6; }
14629 if ${ac_cv_lib_readline_readline+:} false; then :
14630   $as_echo_n "(cached) " >&6
14631 else
14632   ac_check_lib_save_LIBS=$LIBS
14633 LIBS="-lreadline $tcap $LIBS"
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h.  */
14636
14637 /* Override any GCC internal prototype to avoid an error.
14638    Use char because int might match the return type of a GCC
14639    builtin and then its argument prototype would still apply.  */
14640 #ifdef __cplusplus
14641 extern "C"
14642 #endif
14643 char readline ();
14644 int
14645 main ()
14646 {
14647 return readline ();
14648   ;
14649   return 0;
14650 }
14651 _ACEOF
14652 if ac_fn_c_try_link "$LINENO"; then :
14653   ac_cv_lib_readline_readline=yes
14654 else
14655   ac_cv_lib_readline_readline=no
14656 fi
14657 rm -f core conftest.err conftest.$ac_objext \
14658     conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS
14660 fi
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14662 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14663 if test "x$ac_cv_lib_readline_readline" = xyes; then :
14664
14665            RDL_LIBS="-lreadline $RDL_LIBS $tcap"
14666
14667 $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
14668
14669 fi
14670
14671 fi
14672
14673
14674     if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
14675         CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
14676         RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
14677     fi
14678 fi
14679
14680 if test "$with_tree" = "no" ; then
14681     echo Disabling DOM like tree manipulation APIs
14682     WITH_TREE=0
14683 else
14684     WITH_TREE=1
14685 fi
14686
14687
14688 if test "$with_ftp" = "no" ; then
14689     echo Disabling FTP support
14690     WITH_FTP=0
14691     FTP_OBJ=
14692 else
14693     WITH_FTP=1
14694     FTP_OBJ=nanoftp.o
14695 fi
14696
14697
14698
14699 if test "$with_http" = "no" ; then
14700     echo Disabling HTTP support
14701     WITH_HTTP=0
14702     HTTP_OBJ=
14703 else
14704     WITH_HTTP=1
14705     HTTP_OBJ=nanohttp.o
14706 fi
14707
14708
14709
14710 if test "$with_legacy" = "no" ; then
14711     echo Disabling deprecated APIs
14712     WITH_LEGACY=0
14713 else
14714     WITH_LEGACY=1
14715 fi
14716
14717
14718 if test "$with_reader" = "no" ; then
14719     echo Disabling the xmlReader parsing interface
14720     WITH_READER=0
14721     READER_TEST=
14722 else
14723     WITH_READER=1
14724     READER_TEST=Readertests
14725     if test "$with_push" = "no" ; then
14726         echo xmlReader requires Push interface - enabling it
14727         with_push=yes
14728     fi
14729 fi
14730
14731
14732
14733 if test "$with_writer" = "no" ; then
14734     echo Disabling the xmlWriter saving interface
14735     WITH_WRITER=0
14736 #    WRITER_TEST=
14737 else
14738     WITH_WRITER=1
14739 #    WRITER_TEST=Writertests
14740     if test "$with_push" = "no" ; then
14741         echo xmlWriter requires Push interface - enabling it
14742         with_push=yes
14743     fi
14744     if test "$with_output" = "no" ; then
14745         echo xmlWriter requires Output interface - enabling it
14746         with_output=yes
14747     fi
14748 fi
14749
14750 #AC_SUBST(WRITER_TEST)
14751
14752 if test "$with_pattern" = "no" ; then
14753     echo Disabling the xmlPattern parsing interface
14754     WITH_PATTERN=0
14755     TEST_PATTERN=
14756 else
14757     WITH_PATTERN=1
14758     TEST_PATTERN=Patterntests
14759 fi
14760
14761
14762
14763 if test "$with_sax1" = "no" ; then
14764     echo Disabling the older SAX1 interface
14765     WITH_SAX1=0
14766     TEST_SAX=
14767 else
14768     WITH_SAX1=1
14769     TEST_SAX=SAXtests
14770 fi
14771
14772  if test "${WITH_TRIO}" = "1"; then
14773   WITH_SAX1_SOURCES_TRUE=
14774   WITH_SAX1_SOURCES_FALSE='#'
14775 else
14776   WITH_SAX1_SOURCES_TRUE='#'
14777   WITH_SAX1_SOURCES_FALSE=
14778 fi
14779
14780
14781
14782 if test "$with_push" = "no" ; then
14783     echo Disabling the PUSH parser interfaces
14784     WITH_PUSH=0
14785     TEST_PUSH=
14786 else
14787     WITH_PUSH=1
14788     TEST_PUSH="XMLPushtests"
14789 fi
14790
14791
14792
14793 if test "$with_html" = "no" ; then
14794     echo Disabling HTML support
14795     WITH_HTML=0
14796     HTML_OBJ=
14797     TEST_HTML=
14798 else
14799     WITH_HTML=1
14800     HTML_OBJ="HTMLparser.o HTMLtree.o"
14801     TEST_HTML=HTMLtests
14802     if test "$with_push" != "no" ; then
14803         TEST_PHTML=HTMLPushtests
14804     else
14805         TEST_PHTML=
14806     fi
14807 fi
14808
14809
14810
14811
14812
14813 if test "$with_valid" = "no" ; then
14814     echo Disabling DTD validation support
14815     WITH_VALID=0
14816     TEST_VALID=
14817     TEST_VTIME=
14818 else
14819     WITH_VALID=1
14820     TEST_VALID=Validtests
14821     TEST_VTIME=VTimingtests
14822 fi
14823
14824
14825
14826
14827 if test "$with_catalog" = "no" ; then
14828     echo Disabling Catalog support
14829     WITH_CATALOG=0
14830     CATALOG_OBJ=
14831     TEST_CATALOG=
14832 else
14833     WITH_CATALOG=1
14834     CATALOG_OBJ="catalog.o"
14835     TEST_CATALOG=Catatests
14836 fi
14837
14838
14839
14840
14841 if test "$with_docbook" = "no" ; then
14842     echo Disabling Docbook support
14843     WITH_DOCB=0
14844     DOCB_OBJ=
14845 else
14846     WITH_DOCB=1
14847     DOCB_OBJ="DOCBparser.o"
14848 fi
14849
14850
14851
14852
14853 if test "$with_xptr" = "no" ; then
14854     echo Disabling XPointer support
14855     WITH_XPTR=0
14856     XPTR_OBJ=
14857     TEST_XPTR=
14858 else
14859     WITH_XPTR=1
14860     XPTR_OBJ=xpointer.o
14861     TEST_XPTR=XPtrtests
14862     if test "$with_xpath" = "no" ; then
14863         echo XPointer requires XPath support - enabling it
14864         with_xpath=yes
14865     fi
14866 fi
14867
14868
14869
14870
14871 if test "$with_c14n" = "no" ; then
14872     echo Disabling C14N support
14873     WITH_C14N=0
14874     C14N_OBJ=
14875     TEST_C14N=
14876 else
14877     WITH_C14N=1
14878     C14N_OBJ="c14n.c"
14879     TEST_C14N=C14Ntests
14880     if test "$with_xpath" = "no" ; then
14881         echo C14N requires XPath support - enabling it
14882         with_xpath=yes
14883     fi
14884 fi
14885
14886
14887
14888
14889 if test "$with_xinclude" = "no" ; then
14890     echo Disabling XInclude support
14891     WITH_XINCLUDE=0
14892     XINCLUDE_OBJ=
14893     with_xinclude="no"
14894     TEST_XINCLUDE=
14895 else
14896     WITH_XINCLUDE=1
14897     XINCLUDE_OBJ=xinclude.o
14898     TEST_XINCLUDE=XIncludetests
14899     if test "$with_xpath" = "no" ; then
14900         echo XInclude requires XPath support - enabling it
14901         with_xpath=yes
14902     fi
14903 fi
14904
14905
14906
14907
14908 if test "$with_xpath" = "no" ; then
14909     echo Disabling XPATH support
14910     WITH_XPATH=0
14911     XPATH_OBJ=
14912     TEST_XPATH=
14913 else
14914     WITH_XPATH=1
14915     XPATH_OBJ=xpath.o
14916     TEST_XPATH=XPathtests
14917 fi
14918
14919
14920
14921
14922 if test "$with_output" = "no" ; then
14923     echo Disabling serialization/saving support
14924     WITH_OUTPUT=0
14925 else
14926     WITH_OUTPUT=1
14927 fi
14928
14929
14930 WITH_ICONV=0
14931 if test "$with_iconv" = "no" ; then
14932     echo Disabling ICONV support
14933 else
14934     if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
14935         CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
14936         # Export this since our headers include iconv.h
14937         XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
14938         ICONV_LIBS="-L$with_iconv/lib"
14939     fi
14940
14941     ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14942 if test "x$ac_cv_header_iconv_h" = xyes; then :
14943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14944 $as_echo_n "checking for iconv... " >&6; }
14945         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946 /* end confdefs.h.  */
14947 #include <stdlib.h>
14948 #include <iconv.h>
14949 int
14950 main ()
14951 {
14952
14953 iconv_t cd = iconv_open ("","");
14954 iconv (cd, NULL, NULL, NULL, NULL);
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 if ac_fn_c_try_link "$LINENO"; then :
14960
14961             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14962 $as_echo "yes" >&6; }
14963             WITH_ICONV=1
14964 else
14965
14966             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14967 $as_echo "no" >&6; }
14968             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
14969 $as_echo_n "checking for iconv in -liconv... " >&6; }
14970
14971             _ldflags="${LDFLAGS}"
14972             _libs="${LIBS}"
14973             LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
14974             LIBS="${LIBS} -liconv"
14975
14976             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h.  */
14978 #include <stdlib.h>
14979 #include <iconv.h>
14980 int
14981 main ()
14982 {
14983
14984 iconv_t cd = iconv_open ("","");
14985 iconv (cd, NULL, NULL, NULL, NULL);
14986   ;
14987   return 0;
14988 }
14989 _ACEOF
14990 if ac_fn_c_try_link "$LINENO"; then :
14991
14992                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14993 $as_echo "yes" >&6; }
14994                 WITH_ICONV=1
14995                 ICONV_LIBS="${ICONV_LIBS} -liconv"
14996                 LIBS="${_libs}"
14997                 LDFLAGS="${_ldflags}"
14998 else
14999
15000                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001 $as_echo "no" >&6; }
15002                 LIBS="${_libs}"
15003                 LDFLAGS="${_ldflags}"
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext \
15006     conftest$ac_exeext conftest.$ac_ext
15007 fi
15008 rm -f core conftest.err conftest.$ac_objext \
15009     conftest$ac_exeext conftest.$ac_ext
15010 fi
15011
15012
15013
15014         if test "$WITH_ICONV" = "1" ; then
15015                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15016 $as_echo_n "checking for iconv declaration... " >&6; }
15017                 if ${xml_cv_iconv_arg2+:} false; then :
15018   $as_echo_n "(cached) " >&6
15019 else
15020
15021                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023 #include <stdlib.h>
15024 #include <iconv.h>
15025 extern
15026 #ifdef __cplusplus
15027 "C"
15028 #endif
15029 #if defined(__STDC__) || defined(__cplusplus)
15030 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15031 #else
15032 size_t iconv();
15033 #endif
15034
15035 int
15036 main ()
15037 {
15038
15039   ;
15040   return 0;
15041 }
15042 _ACEOF
15043 if ac_fn_c_try_compile "$LINENO"; then :
15044   xml_cv_iconv_arg2=""
15045 else
15046   xml_cv_iconv_arg2="const"
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 fi
15050
15051
15052                 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);"
15053                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
15054         }$xml_cv_iconv_decl" >&5
15055 $as_echo "${xml_xxx:-
15056         }$xml_cv_iconv_decl" >&6; }
15057
15058 cat >>confdefs.h <<_ACEOF
15059 #define ICONV_CONST $xml_cv_iconv_arg2
15060 _ACEOF
15061
15062         fi
15063 fi
15064 case "$host" in
15065         *mingw*) M_LIBS=""
15066         ;;
15067         *beos*) M_LIBS=""
15068         ;;
15069         *haiku*) M_LIBS=""
15070         ;;
15071         *) M_LIBS="-lm"
15072         ;;
15073 esac
15074 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
15075 XML_LIBTOOLLIBS="libxml2.la"
15076
15077
15078 WITH_ICU=0
15079 ICU_LIBS=""
15080 if test "$with_icu" != "yes" ; then
15081     echo Disabling ICU support
15082 else
15083     ICU_CONFIG=icu-config
15084     if ${ICU_CONFIG} --cflags >/dev/null 2>&1
15085     then
15086         ICU_LIBS=`${ICU_CONFIG} --ldflags`
15087         WITH_ICU=1
15088         echo Enabling ICU support
15089     else
15090         as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
15091     fi
15092 fi
15093
15094
15095
15096 WITH_ISO8859X=1
15097 if test "$WITH_ICONV" != "1" ; then
15098 if test "$with_iso8859x" = "no" ; then
15099     echo Disabling ISO8859X support
15100     WITH_ISO8859X=0
15101 fi
15102 fi
15103
15104
15105 if test "$with_schematron" = "no" ; then
15106     echo "Disabling Schematron support"
15107     WITH_SCHEMATRON=0
15108     TEST_SCHEMATRON=
15109 else
15110     echo "Enabled Schematron support"
15111     WITH_SCHEMATRON=1
15112     TEST_SCHEMATRON="Schematrontests"
15113     with_xpath=yes
15114     with_pattern=yes
15115 fi
15116
15117
15118
15119 if test "$with_schemas" = "no" ; then
15120     echo "Disabling Schemas/Relax-NG support"
15121     WITH_SCHEMAS=0
15122     TEST_SCHEMAS=
15123 else
15124     echo "Enabled Schemas/Relax-NG support"
15125     WITH_SCHEMAS=1
15126     TEST_SCHEMAS="Schemastests Relaxtests"
15127     if test "$PYTHON_INCLUDES" != "" ; then
15128         PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
15129     fi
15130     with_regexps=yes
15131 fi
15132
15133
15134
15135 if test "$with_regexps" = "no" ; then
15136     echo Disabling Regexps support
15137     WITH_REGEXPS=0
15138     TEST_REGEXPS=
15139 else
15140     WITH_REGEXPS=1
15141     TEST_REGEXPS="Regexptests Automatatests"
15142 fi
15143
15144
15145
15146 if test "$with_debug" = "no" ; then
15147     echo Disabling DEBUG support
15148     WITH_DEBUG=0
15149     DEBUG_OBJ=
15150     TEST_DEBUG=
15151 else
15152     WITH_DEBUG=1
15153     DEBUG_OBJ=debugXML.o
15154     TEST_DEBUG=Scripttests
15155 fi
15156
15157
15158
15159
15160 if test "$with_mem_debug" = "yes" ; then
15161     if test "$with_thread_alloc" = "yes" ; then
15162         echo Disabling memory debug - cannot use mem-debug with thread-alloc!
15163         WITH_MEM_DEBUG=0
15164     else
15165         echo Enabling memory debug support
15166         WITH_MEM_DEBUG=1
15167     fi
15168 else
15169     WITH_MEM_DEBUG=0
15170 fi
15171
15172
15173 if test "$with_run_debug" = "yes" ; then
15174     echo Enabling runtime debug support
15175     WITH_RUN_DEBUG=1
15176 else
15177     WITH_RUN_DEBUG=0
15178 fi
15179
15180
15181 WIN32_EXTRA_LIBADD=
15182 WIN32_EXTRA_LDFLAGS=
15183 CYGWIN_EXTRA_LDFLAGS=
15184 CYGWIN_EXTRA_PYTHON_LIBADD=
15185 WIN32_EXTRA_PYTHON_LIBADD=
15186 case "$host" in
15187  *-*-mingw*)
15188  CPPFLAGS="$CPPFLAGS -DWIN32"
15189  WIN32_EXTRA_LIBADD="-lws2_32"
15190  WIN32_EXTRA_LDFLAGS="-no-undefined"
15191
15192 $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
15193
15194  if test "${PYTHON}" != ""
15195  then
15196    WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython$(echo ${PYTHON_VERSION} | tr -d .)"
15197  fi
15198  ;;
15199  *-*-cygwin*)
15200  CYGWIN_EXTRA_LDFLAGS="-no-undefined"
15201  if test "${PYTHON}" != ""
15202  then
15203    CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
15204  fi
15205  ;;
15206 esac
15207
15208
15209
15210
15211
15212
15213 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
15214 do :
15215   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15216 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15217 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15218   cat >>confdefs.h <<_ACEOF
15219 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15220 _ACEOF
15221
15222 else
15223   NEED_TRIO=1
15224 fi
15225 done
15226
15227
15228 if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
15229 then
15230     echo Enabling code coverage for GCC
15231     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
15232     LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
15233 else
15234     echo Disabling code coverage for GCC
15235 fi
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258 RELDATE=`date +'%a %b %e %Y'`
15259
15260
15261
15262 rm -f COPYING.LIB COPYING
15263 ln -s $srcdir/Copyright COPYING
15264
15265 # keep on one line for cygwin c.f. #130896
15266 ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py"
15267
15268 cat >confcache <<\_ACEOF
15269 # This file is a shell script that caches the results of configure
15270 # tests run on this system so they can be shared between configure
15271 # scripts and configure runs, see configure's option --config-cache.
15272 # It is not useful on other systems.  If it contains results you don't
15273 # want to keep, you may remove or edit it.
15274 #
15275 # config.status only pays attention to the cache file if you give it
15276 # the --recheck option to rerun configure.
15277 #
15278 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15279 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15280 # following values.
15281
15282 _ACEOF
15283
15284 # The following way of writing the cache mishandles newlines in values,
15285 # but we know of no workaround that is simple, portable, and efficient.
15286 # So, we kill variables containing newlines.
15287 # Ultrix sh set writes to stderr and can't be redirected directly,
15288 # and sets the high bit in the cache file unless we assign to the vars.
15289 (
15290   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15291     eval ac_val=\$$ac_var
15292     case $ac_val in #(
15293     *${as_nl}*)
15294       case $ac_var in #(
15295       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15296 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15297       esac
15298       case $ac_var in #(
15299       _ | IFS | as_nl) ;; #(
15300       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15301       *) { eval $ac_var=; unset $ac_var;} ;;
15302       esac ;;
15303     esac
15304   done
15305
15306   (set) 2>&1 |
15307     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15308     *${as_nl}ac_space=\ *)
15309       # `set' does not quote correctly, so add quotes: double-quote
15310       # substitution turns \\\\ into \\, and sed turns \\ into \.
15311       sed -n \
15312         "s/'/'\\\\''/g;
15313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15314       ;; #(
15315     *)
15316       # `set' quotes correctly as required by POSIX, so do not add quotes.
15317       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15318       ;;
15319     esac |
15320     sort
15321 ) |
15322   sed '
15323      /^ac_cv_env_/b end
15324      t clear
15325      :clear
15326      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15327      t end
15328      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15329      :end' >>confcache
15330 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15331   if test -w "$cache_file"; then
15332     if test "x$cache_file" != "x/dev/null"; then
15333       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15334 $as_echo "$as_me: updating cache $cache_file" >&6;}
15335       if test ! -f "$cache_file" || test -h "$cache_file"; then
15336         cat confcache >"$cache_file"
15337       else
15338         case $cache_file in #(
15339         */* | ?:*)
15340           mv -f confcache "$cache_file"$$ &&
15341           mv -f "$cache_file"$$ "$cache_file" ;; #(
15342         *)
15343           mv -f confcache "$cache_file" ;;
15344         esac
15345       fi
15346     fi
15347   else
15348     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15349 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15350   fi
15351 fi
15352 rm -f confcache
15353
15354 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15355 # Let make expand exec_prefix.
15356 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15357
15358 DEFS=-DHAVE_CONFIG_H
15359
15360 ac_libobjs=
15361 ac_ltlibobjs=
15362 U=
15363 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15364   # 1. Remove the extension, and $U if already installed.
15365   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15366   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15367   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15368   #    will be set to the directory where LIBOBJS objects are built.
15369   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15370   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15371 done
15372 LIBOBJS=$ac_libobjs
15373
15374 LTLIBOBJS=$ac_ltlibobjs
15375
15376
15377  if test -n "$EXEEXT"; then
15378   am__EXEEXT_TRUE=
15379   am__EXEEXT_FALSE='#'
15380 else
15381   am__EXEEXT_TRUE='#'
15382   am__EXEEXT_FALSE=
15383 fi
15384
15385 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15386   as_fn_error $? "conditional \"AMDEP\" was never defined.
15387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 fi
15389 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15390   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15392 fi
15393 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
15394   as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
15395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15396 fi
15397 if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
15398   as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
15399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15400 fi
15401 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15402   as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
15403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15404 fi
15405 if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
15406   as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
15407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15408 fi
15409 if test -z "${THREADS_W32_TRUE}" && test -z "${THREADS_W32_FALSE}"; then
15410   as_fn_error $? "conditional \"THREADS_W32\" was never defined.
15411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15412 fi
15413 if test -z "${WITH_SAX1_SOURCES_TRUE}" && test -z "${WITH_SAX1_SOURCES_FALSE}"; then
15414   as_fn_error $? "conditional \"WITH_SAX1_SOURCES\" was never defined.
15415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15416 fi
15417
15418 : "${CONFIG_STATUS=./config.status}"
15419 ac_write_fail=0
15420 ac_clean_files_save=$ac_clean_files
15421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15423 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15424 as_write_fail=0
15425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15426 #! $SHELL
15427 # Generated by $as_me.
15428 # Run this file to recreate the current configuration.
15429 # Compiler output produced by configure, useful for debugging
15430 # configure, is in config.log if it exists.
15431
15432 debug=false
15433 ac_cs_recheck=false
15434 ac_cs_silent=false
15435
15436 SHELL=\${CONFIG_SHELL-$SHELL}
15437 export SHELL
15438 _ASEOF
15439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15440 ## -------------------- ##
15441 ## M4sh Initialization. ##
15442 ## -------------------- ##
15443
15444 # Be more Bourne compatible
15445 DUALCASE=1; export DUALCASE # for MKS sh
15446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15447   emulate sh
15448   NULLCMD=:
15449   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15450   # is contrary to our usage.  Disable this feature.
15451   alias -g '${1+"$@"}'='"$@"'
15452   setopt NO_GLOB_SUBST
15453 else
15454   case `(set -o) 2>/dev/null` in #(
15455   *posix*) :
15456     set -o posix ;; #(
15457   *) :
15458      ;;
15459 esac
15460 fi
15461
15462
15463 as_nl='
15464 '
15465 export as_nl
15466 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15467 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15470 # Prefer a ksh shell builtin over an external printf program on Solaris,
15471 # but without wasting forks for bash or zsh.
15472 if test -z "$BASH_VERSION$ZSH_VERSION" \
15473     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15474   as_echo='print -r --'
15475   as_echo_n='print -rn --'
15476 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15477   as_echo='printf %s\n'
15478   as_echo_n='printf %s'
15479 else
15480   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15481     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15482     as_echo_n='/usr/ucb/echo -n'
15483   else
15484     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15485     as_echo_n_body='eval
15486       arg=$1;
15487       case $arg in #(
15488       *"$as_nl"*)
15489         expr "X$arg" : "X\\(.*\\)$as_nl";
15490         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15491       esac;
15492       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15493     '
15494     export as_echo_n_body
15495     as_echo_n='sh -c $as_echo_n_body as_echo'
15496   fi
15497   export as_echo_body
15498   as_echo='sh -c $as_echo_body as_echo'
15499 fi
15500
15501 # The user is always right.
15502 if test "${PATH_SEPARATOR+set}" != set; then
15503   PATH_SEPARATOR=:
15504   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15505     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15506       PATH_SEPARATOR=';'
15507   }
15508 fi
15509
15510
15511 # IFS
15512 # We need space, tab and new line, in precisely that order.  Quoting is
15513 # there to prevent editors from complaining about space-tab.
15514 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15515 # splitting by setting IFS to empty value.)
15516 IFS=" ""        $as_nl"
15517
15518 # Find who we are.  Look in the path if we contain no directory separator.
15519 as_myself=
15520 case $0 in #((
15521   *[\\/]* ) as_myself=$0 ;;
15522   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 for as_dir in $PATH
15524 do
15525   IFS=$as_save_IFS
15526   test -z "$as_dir" && as_dir=.
15527     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15528   done
15529 IFS=$as_save_IFS
15530
15531      ;;
15532 esac
15533 # We did not find ourselves, most probably we were run as `sh COMMAND'
15534 # in which case we are not to be found in the path.
15535 if test "x$as_myself" = x; then
15536   as_myself=$0
15537 fi
15538 if test ! -f "$as_myself"; then
15539   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15540   exit 1
15541 fi
15542
15543 # Unset variables that we do not need and which cause bugs (e.g. in
15544 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15545 # suppresses any "Segmentation fault" message there.  '((' could
15546 # trigger a bug in pdksh 5.2.14.
15547 for as_var in BASH_ENV ENV MAIL MAILPATH
15548 do eval test x\${$as_var+set} = xset \
15549   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15550 done
15551 PS1='$ '
15552 PS2='> '
15553 PS4='+ '
15554
15555 # NLS nuisances.
15556 LC_ALL=C
15557 export LC_ALL
15558 LANGUAGE=C
15559 export LANGUAGE
15560
15561 # CDPATH.
15562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15563
15564
15565 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15566 # ----------------------------------------
15567 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15568 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15569 # script with STATUS, using 1 if that was 0.
15570 as_fn_error ()
15571 {
15572   as_status=$1; test $as_status -eq 0 && as_status=1
15573   if test "$4"; then
15574     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15575     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15576   fi
15577   $as_echo "$as_me: error: $2" >&2
15578   as_fn_exit $as_status
15579 } # as_fn_error
15580
15581
15582 # as_fn_set_status STATUS
15583 # -----------------------
15584 # Set $? to STATUS, without forking.
15585 as_fn_set_status ()
15586 {
15587   return $1
15588 } # as_fn_set_status
15589
15590 # as_fn_exit STATUS
15591 # -----------------
15592 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15593 as_fn_exit ()
15594 {
15595   set +e
15596   as_fn_set_status $1
15597   exit $1
15598 } # as_fn_exit
15599
15600 # as_fn_unset VAR
15601 # ---------------
15602 # Portably unset VAR.
15603 as_fn_unset ()
15604 {
15605   { eval $1=; unset $1;}
15606 }
15607 as_unset=as_fn_unset
15608 # as_fn_append VAR VALUE
15609 # ----------------------
15610 # Append the text in VALUE to the end of the definition contained in VAR. Take
15611 # advantage of any shell optimizations that allow amortized linear growth over
15612 # repeated appends, instead of the typical quadratic growth present in naive
15613 # implementations.
15614 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15615   eval 'as_fn_append ()
15616   {
15617     eval $1+=\$2
15618   }'
15619 else
15620   as_fn_append ()
15621   {
15622     eval $1=\$$1\$2
15623   }
15624 fi # as_fn_append
15625
15626 # as_fn_arith ARG...
15627 # ------------------
15628 # Perform arithmetic evaluation on the ARGs, and store the result in the
15629 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15630 # must be portable across $(()) and expr.
15631 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15632   eval 'as_fn_arith ()
15633   {
15634     as_val=$(( $* ))
15635   }'
15636 else
15637   as_fn_arith ()
15638   {
15639     as_val=`expr "$@" || test $? -eq 1`
15640   }
15641 fi # as_fn_arith
15642
15643
15644 if expr a : '\(a\)' >/dev/null 2>&1 &&
15645    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15646   as_expr=expr
15647 else
15648   as_expr=false
15649 fi
15650
15651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15652   as_basename=basename
15653 else
15654   as_basename=false
15655 fi
15656
15657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15658   as_dirname=dirname
15659 else
15660   as_dirname=false
15661 fi
15662
15663 as_me=`$as_basename -- "$0" ||
15664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15665          X"$0" : 'X\(//\)$' \| \
15666          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15667 $as_echo X/"$0" |
15668     sed '/^.*\/\([^/][^/]*\)\/*$/{
15669             s//\1/
15670             q
15671           }
15672           /^X\/\(\/\/\)$/{
15673             s//\1/
15674             q
15675           }
15676           /^X\/\(\/\).*/{
15677             s//\1/
15678             q
15679           }
15680           s/.*/./; q'`
15681
15682 # Avoid depending upon Character Ranges.
15683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15686 as_cr_digits='0123456789'
15687 as_cr_alnum=$as_cr_Letters$as_cr_digits
15688
15689 ECHO_C= ECHO_N= ECHO_T=
15690 case `echo -n x` in #(((((
15691 -n*)
15692   case `echo 'xy\c'` in
15693   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15694   xy)  ECHO_C='\c';;
15695   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15696        ECHO_T=' ';;
15697   esac;;
15698 *)
15699   ECHO_N='-n';;
15700 esac
15701
15702 rm -f conf$$ conf$$.exe conf$$.file
15703 if test -d conf$$.dir; then
15704   rm -f conf$$.dir/conf$$.file
15705 else
15706   rm -f conf$$.dir
15707   mkdir conf$$.dir 2>/dev/null
15708 fi
15709 if (echo >conf$$.file) 2>/dev/null; then
15710   if ln -s conf$$.file conf$$ 2>/dev/null; then
15711     as_ln_s='ln -s'
15712     # ... but there are two gotchas:
15713     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15714     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15715     # In both cases, we have to default to `cp -pR'.
15716     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15717       as_ln_s='cp -pR'
15718   elif ln conf$$.file conf$$ 2>/dev/null; then
15719     as_ln_s=ln
15720   else
15721     as_ln_s='cp -pR'
15722   fi
15723 else
15724   as_ln_s='cp -pR'
15725 fi
15726 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15727 rmdir conf$$.dir 2>/dev/null
15728
15729
15730 # as_fn_mkdir_p
15731 # -------------
15732 # Create "$as_dir" as a directory, including parents if necessary.
15733 as_fn_mkdir_p ()
15734 {
15735
15736   case $as_dir in #(
15737   -*) as_dir=./$as_dir;;
15738   esac
15739   test -d "$as_dir" || eval $as_mkdir_p || {
15740     as_dirs=
15741     while :; do
15742       case $as_dir in #(
15743       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15744       *) as_qdir=$as_dir;;
15745       esac
15746       as_dirs="'$as_qdir' $as_dirs"
15747       as_dir=`$as_dirname -- "$as_dir" ||
15748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15749          X"$as_dir" : 'X\(//\)[^/]' \| \
15750          X"$as_dir" : 'X\(//\)$' \| \
15751          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15752 $as_echo X"$as_dir" |
15753     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15754             s//\1/
15755             q
15756           }
15757           /^X\(\/\/\)[^/].*/{
15758             s//\1/
15759             q
15760           }
15761           /^X\(\/\/\)$/{
15762             s//\1/
15763             q
15764           }
15765           /^X\(\/\).*/{
15766             s//\1/
15767             q
15768           }
15769           s/.*/./; q'`
15770       test -d "$as_dir" && break
15771     done
15772     test -z "$as_dirs" || eval "mkdir $as_dirs"
15773   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15774
15775
15776 } # as_fn_mkdir_p
15777 if mkdir -p . 2>/dev/null; then
15778   as_mkdir_p='mkdir -p "$as_dir"'
15779 else
15780   test -d ./-p && rmdir ./-p
15781   as_mkdir_p=false
15782 fi
15783
15784
15785 # as_fn_executable_p FILE
15786 # -----------------------
15787 # Test if FILE is an executable regular file.
15788 as_fn_executable_p ()
15789 {
15790   test -f "$1" && test -x "$1"
15791 } # as_fn_executable_p
15792 as_test_x='test -x'
15793 as_executable_p=as_fn_executable_p
15794
15795 # Sed expression to map a string onto a valid CPP name.
15796 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15797
15798 # Sed expression to map a string onto a valid variable name.
15799 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15800
15801
15802 exec 6>&1
15803 ## ----------------------------------- ##
15804 ## Main body of $CONFIG_STATUS script. ##
15805 ## ----------------------------------- ##
15806 _ASEOF
15807 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15808
15809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15810 # Save the log message, to keep $0 and so on meaningful, and to
15811 # report actual input values of CONFIG_FILES etc. instead of their
15812 # values after options handling.
15813 ac_log="
15814 This file was extended by $as_me, which was
15815 generated by GNU Autoconf 2.69.  Invocation command line was
15816
15817   CONFIG_FILES    = $CONFIG_FILES
15818   CONFIG_HEADERS  = $CONFIG_HEADERS
15819   CONFIG_LINKS    = $CONFIG_LINKS
15820   CONFIG_COMMANDS = $CONFIG_COMMANDS
15821   $ $0 $@
15822
15823 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15824 "
15825
15826 _ACEOF
15827
15828 case $ac_config_files in *"
15829 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15830 esac
15831
15832 case $ac_config_headers in *"
15833 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15834 esac
15835
15836
15837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15838 # Files that config.status was made for.
15839 config_files="$ac_config_files"
15840 config_headers="$ac_config_headers"
15841 config_commands="$ac_config_commands"
15842
15843 _ACEOF
15844
15845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15846 ac_cs_usage="\
15847 \`$as_me' instantiates files and other configuration actions
15848 from templates according to the current configuration.  Unless the files
15849 and actions are specified as TAGs, all are instantiated by default.
15850
15851 Usage: $0 [OPTION]... [TAG]...
15852
15853   -h, --help       print this help, then exit
15854   -V, --version    print version number and configuration settings, then exit
15855       --config     print configuration, then exit
15856   -q, --quiet, --silent
15857                    do not print progress messages
15858   -d, --debug      don't remove temporary files
15859       --recheck    update $as_me by reconfiguring in the same conditions
15860       --file=FILE[:TEMPLATE]
15861                    instantiate the configuration file FILE
15862       --header=FILE[:TEMPLATE]
15863                    instantiate the configuration header FILE
15864
15865 Configuration files:
15866 $config_files
15867
15868 Configuration headers:
15869 $config_headers
15870
15871 Configuration commands:
15872 $config_commands
15873
15874 Report bugs to the package provider."
15875
15876 _ACEOF
15877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15878 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15879 ac_cs_version="\\
15880 config.status
15881 configured by $0, generated by GNU Autoconf 2.69,
15882   with options \\"\$ac_cs_config\\"
15883
15884 Copyright (C) 2012 Free Software Foundation, Inc.
15885 This config.status script is free software; the Free Software Foundation
15886 gives unlimited permission to copy, distribute and modify it."
15887
15888 ac_pwd='$ac_pwd'
15889 srcdir='$srcdir'
15890 INSTALL='$INSTALL'
15891 MKDIR_P='$MKDIR_P'
15892 AWK='$AWK'
15893 test -n "\$AWK" || AWK=awk
15894 _ACEOF
15895
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 # The default lists apply if the user does not specify any file.
15898 ac_need_defaults=:
15899 while test $# != 0
15900 do
15901   case $1 in
15902   --*=?*)
15903     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15904     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15905     ac_shift=:
15906     ;;
15907   --*=)
15908     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15909     ac_optarg=
15910     ac_shift=:
15911     ;;
15912   *)
15913     ac_option=$1
15914     ac_optarg=$2
15915     ac_shift=shift
15916     ;;
15917   esac
15918
15919   case $ac_option in
15920   # Handling of the options.
15921   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15922     ac_cs_recheck=: ;;
15923   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15924     $as_echo "$ac_cs_version"; exit ;;
15925   --config | --confi | --conf | --con | --co | --c )
15926     $as_echo "$ac_cs_config"; exit ;;
15927   --debug | --debu | --deb | --de | --d | -d )
15928     debug=: ;;
15929   --file | --fil | --fi | --f )
15930     $ac_shift
15931     case $ac_optarg in
15932     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15933     '') as_fn_error $? "missing file argument" ;;
15934     esac
15935     as_fn_append CONFIG_FILES " '$ac_optarg'"
15936     ac_need_defaults=false;;
15937   --header | --heade | --head | --hea )
15938     $ac_shift
15939     case $ac_optarg in
15940     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15941     esac
15942     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15943     ac_need_defaults=false;;
15944   --he | --h)
15945     # Conflict between --help and --header
15946     as_fn_error $? "ambiguous option: \`$1'
15947 Try \`$0 --help' for more information.";;
15948   --help | --hel | -h )
15949     $as_echo "$ac_cs_usage"; exit ;;
15950   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15951   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15952     ac_cs_silent=: ;;
15953
15954   # This is an error.
15955   -*) as_fn_error $? "unrecognized option: \`$1'
15956 Try \`$0 --help' for more information." ;;
15957
15958   *) as_fn_append ac_config_targets " $1"
15959      ac_need_defaults=false ;;
15960
15961   esac
15962   shift
15963 done
15964
15965 ac_configure_extra_args=
15966
15967 if $ac_cs_silent; then
15968   exec 6>/dev/null
15969   ac_configure_extra_args="$ac_configure_extra_args --silent"
15970 fi
15971
15972 _ACEOF
15973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15974 if \$ac_cs_recheck; then
15975   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15976   shift
15977   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15978   CONFIG_SHELL='$SHELL'
15979   export CONFIG_SHELL
15980   exec "\$@"
15981 fi
15982
15983 _ACEOF
15984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985 exec 5>>config.log
15986 {
15987   echo
15988   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15989 ## Running $as_me. ##
15990 _ASBOX
15991   $as_echo "$ac_log"
15992 } >&5
15993
15994 _ACEOF
15995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15996 #
15997 # INIT-COMMANDS
15998 #
15999 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16000
16001
16002 # The HP-UX ksh and POSIX shell print the target directory to stdout
16003 # if CDPATH is set.
16004 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16005
16006 sed_quote_subst='$sed_quote_subst'
16007 double_quote_subst='$double_quote_subst'
16008 delay_variable_subst='$delay_variable_subst'
16009 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16010 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16011 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16012 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16013 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16014 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16015 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16016 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16017 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16018 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16019 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16020 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16021 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16022 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16023 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16024 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16025 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16026 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16027 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16028 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16029 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16030 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16031 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16032 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16033 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16034 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16035 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16036 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16037 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16038 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16039 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16040 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16041 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16042 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16043 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16044 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16045 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16046 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16047 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16048 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16049 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16050 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16051 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16052 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16053 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16054 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16055 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16056 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16057 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16058 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16059 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16060 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16061 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16062 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16063 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16064 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16065 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16066 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16067 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16068 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16069 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16070 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16071 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16072 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16073 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16074 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16075 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16076 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16077 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16078 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16079 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16080 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16081 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16082 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16083 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16084 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16085 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16086 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16087 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16088 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16089 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16090 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16091 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16092 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16093 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16094 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16095 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16096 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16097 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16098 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16099 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16100 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16101 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16102 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16103 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16104 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16105 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16106 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16107 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16108 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16109 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16110 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16111 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16112 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16113 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16114 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16115 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16116 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16117 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16118 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16119 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16120 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16121 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16122 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16123 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16124 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16125 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16126 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16127 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16128 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16129 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16130 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16131 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16132 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16133 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16134 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16135 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16136 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16137 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16138 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16139
16140 LTCC='$LTCC'
16141 LTCFLAGS='$LTCFLAGS'
16142 compiler='$compiler_DEFAULT'
16143
16144 # A function that is used when there is no print builtin or printf.
16145 func_fallback_echo ()
16146 {
16147   eval 'cat <<_LTECHO_EOF
16148 \$1
16149 _LTECHO_EOF'
16150 }
16151
16152 # Quote evaled strings.
16153 for var in SHELL \
16154 ECHO \
16155 PATH_SEPARATOR \
16156 SED \
16157 GREP \
16158 EGREP \
16159 FGREP \
16160 LD \
16161 NM \
16162 LN_S \
16163 lt_SP2NL \
16164 lt_NL2SP \
16165 reload_flag \
16166 OBJDUMP \
16167 deplibs_check_method \
16168 file_magic_cmd \
16169 file_magic_glob \
16170 want_nocaseglob \
16171 DLLTOOL \
16172 sharedlib_from_linklib_cmd \
16173 AR \
16174 AR_FLAGS \
16175 archiver_list_spec \
16176 STRIP \
16177 RANLIB \
16178 CC \
16179 CFLAGS \
16180 compiler \
16181 lt_cv_sys_global_symbol_pipe \
16182 lt_cv_sys_global_symbol_to_cdecl \
16183 lt_cv_sys_global_symbol_to_c_name_address \
16184 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16185 nm_file_list_spec \
16186 lt_prog_compiler_no_builtin_flag \
16187 lt_prog_compiler_pic \
16188 lt_prog_compiler_wl \
16189 lt_prog_compiler_static \
16190 lt_cv_prog_compiler_c_o \
16191 need_locks \
16192 MANIFEST_TOOL \
16193 DSYMUTIL \
16194 NMEDIT \
16195 LIPO \
16196 OTOOL \
16197 OTOOL64 \
16198 shrext_cmds \
16199 export_dynamic_flag_spec \
16200 whole_archive_flag_spec \
16201 compiler_needs_object \
16202 with_gnu_ld \
16203 allow_undefined_flag \
16204 no_undefined_flag \
16205 hardcode_libdir_flag_spec \
16206 hardcode_libdir_separator \
16207 exclude_expsyms \
16208 include_expsyms \
16209 file_list_spec \
16210 variables_saved_for_relink \
16211 libname_spec \
16212 library_names_spec \
16213 soname_spec \
16214 install_override_mode \
16215 finish_eval \
16216 old_striplib \
16217 striplib; do
16218     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16219     *[\\\\\\\`\\"\\\$]*)
16220       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16221       ;;
16222     *)
16223       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16224       ;;
16225     esac
16226 done
16227
16228 # Double-quote double-evaled strings.
16229 for var in reload_cmds \
16230 old_postinstall_cmds \
16231 old_postuninstall_cmds \
16232 old_archive_cmds \
16233 extract_expsyms_cmds \
16234 old_archive_from_new_cmds \
16235 old_archive_from_expsyms_cmds \
16236 archive_cmds \
16237 archive_expsym_cmds \
16238 module_cmds \
16239 module_expsym_cmds \
16240 export_symbols_cmds \
16241 prelink_cmds \
16242 postlink_cmds \
16243 postinstall_cmds \
16244 postuninstall_cmds \
16245 finish_cmds \
16246 sys_lib_search_path_spec \
16247 sys_lib_dlsearch_path_spec; do
16248     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16249     *[\\\\\\\`\\"\\\$]*)
16250       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16251       ;;
16252     *)
16253       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16254       ;;
16255     esac
16256 done
16257
16258 ac_aux_dir='$ac_aux_dir'
16259 xsi_shell='$xsi_shell'
16260 lt_shell_append='$lt_shell_append'
16261
16262 # See if we are running on zsh, and set the options which allow our
16263 # commands through without removal of \ escapes INIT.
16264 if test -n "\${ZSH_VERSION+set}" ; then
16265    setopt NO_GLOB_SUBST
16266 fi
16267
16268
16269     PACKAGE='$PACKAGE'
16270     VERSION='$VERSION'
16271     TIMESTAMP='$TIMESTAMP'
16272     RM='$RM'
16273     ofile='$ofile'
16274
16275
16276
16277
16278 _ACEOF
16279
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281
16282 # Handling of arguments.
16283 for ac_config_target in $ac_config_targets
16284 do
16285   case $ac_config_target in
16286     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16287     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16288     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16289     "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
16290     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16291     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16292     "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
16293     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16294     "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
16295     "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
16296     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
16297     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16298     "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
16299     "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
16300     "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
16301     "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
16302     "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
16303     "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
16304     "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
16305
16306   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16307   esac
16308 done
16309
16310
16311 # If the user did not use the arguments to specify the items to instantiate,
16312 # then the envvar interface is used.  Set only those that are not.
16313 # We use the long form for the default assignment because of an extremely
16314 # bizarre bug on SunOS 4.1.3.
16315 if $ac_need_defaults; then
16316   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16317   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16318   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16319 fi
16320
16321 # Have a temporary directory for convenience.  Make it in the build tree
16322 # simply because there is no reason against having it here, and in addition,
16323 # creating and moving files from /tmp can sometimes cause problems.
16324 # Hook for its removal unless debugging.
16325 # Note that there is a small window in which the directory will not be cleaned:
16326 # after its creation but before its name has been assigned to `$tmp'.
16327 $debug ||
16328 {
16329   tmp= ac_tmp=
16330   trap 'exit_status=$?
16331   : "${ac_tmp:=$tmp}"
16332   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16333 ' 0
16334   trap 'as_fn_exit 1' 1 2 13 15
16335 }
16336 # Create a (secure) tmp directory for tmp files.
16337
16338 {
16339   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16340   test -d "$tmp"
16341 }  ||
16342 {
16343   tmp=./conf$$-$RANDOM
16344   (umask 077 && mkdir "$tmp")
16345 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16346 ac_tmp=$tmp
16347
16348 # Set up the scripts for CONFIG_FILES section.
16349 # No need to generate them if there are no CONFIG_FILES.
16350 # This happens for instance with `./config.status config.h'.
16351 if test -n "$CONFIG_FILES"; then
16352
16353
16354 ac_cr=`echo X | tr X '\015'`
16355 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16356 # But we know of no other shell where ac_cr would be empty at this
16357 # point, so we can use a bashism as a fallback.
16358 if test "x$ac_cr" = x; then
16359   eval ac_cr=\$\'\\r\'
16360 fi
16361 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16362 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16363   ac_cs_awk_cr='\\r'
16364 else
16365   ac_cs_awk_cr=$ac_cr
16366 fi
16367
16368 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16369 _ACEOF
16370
16371
16372 {
16373   echo "cat >conf$$subs.awk <<_ACEOF" &&
16374   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16375   echo "_ACEOF"
16376 } >conf$$subs.sh ||
16377   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16378 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16379 ac_delim='%!_!# '
16380 for ac_last_try in false false false false false :; do
16381   . ./conf$$subs.sh ||
16382     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16383
16384   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16385   if test $ac_delim_n = $ac_delim_num; then
16386     break
16387   elif $ac_last_try; then
16388     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16389   else
16390     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16391   fi
16392 done
16393 rm -f conf$$subs.sh
16394
16395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16396 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16397 _ACEOF
16398 sed -n '
16399 h
16400 s/^/S["/; s/!.*/"]=/
16401 p
16402 g
16403 s/^[^!]*!//
16404 :repl
16405 t repl
16406 s/'"$ac_delim"'$//
16407 t delim
16408 :nl
16409 h
16410 s/\(.\{148\}\)..*/\1/
16411 t more1
16412 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16413 p
16414 n
16415 b repl
16416 :more1
16417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16418 p
16419 g
16420 s/.\{148\}//
16421 t nl
16422 :delim
16423 h
16424 s/\(.\{148\}\)..*/\1/
16425 t more2
16426 s/["\\]/\\&/g; s/^/"/; s/$/"/
16427 p
16428 b
16429 :more2
16430 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16431 p
16432 g
16433 s/.\{148\}//
16434 t delim
16435 ' <conf$$subs.awk | sed '
16436 /^[^""]/{
16437   N
16438   s/\n//
16439 }
16440 ' >>$CONFIG_STATUS || ac_write_fail=1
16441 rm -f conf$$subs.awk
16442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16443 _ACAWK
16444 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16445   for (key in S) S_is_set[key] = 1
16446   FS = "\a"
16447
16448 }
16449 {
16450   line = $ 0
16451   nfields = split(line, field, "@")
16452   substed = 0
16453   len = length(field[1])
16454   for (i = 2; i < nfields; i++) {
16455     key = field[i]
16456     keylen = length(key)
16457     if (S_is_set[key]) {
16458       value = S[key]
16459       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16460       len += length(value) + length(field[++i])
16461       substed = 1
16462     } else
16463       len += 1 + keylen
16464   }
16465
16466   print line
16467 }
16468
16469 _ACAWK
16470 _ACEOF
16471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16472 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16473   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16474 else
16475   cat
16476 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16477   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16478 _ACEOF
16479
16480 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16481 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16482 # trailing colons and then remove the whole line if VPATH becomes empty
16483 # (actually we leave an empty line to preserve line numbers).
16484 if test "x$srcdir" = x.; then
16485   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16486 h
16487 s///
16488 s/^/:/
16489 s/[      ]*$/:/
16490 s/:\$(srcdir):/:/g
16491 s/:\${srcdir}:/:/g
16492 s/:@srcdir@:/:/g
16493 s/^:*//
16494 s/:*$//
16495 x
16496 s/\(=[   ]*\).*/\1/
16497 G
16498 s/\n//
16499 s/^[^=]*=[       ]*$//
16500 }'
16501 fi
16502
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 fi # test -n "$CONFIG_FILES"
16505
16506 # Set up the scripts for CONFIG_HEADERS section.
16507 # No need to generate them if there are no CONFIG_HEADERS.
16508 # This happens for instance with `./config.status Makefile'.
16509 if test -n "$CONFIG_HEADERS"; then
16510 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16511 BEGIN {
16512 _ACEOF
16513
16514 # Transform confdefs.h into an awk script `defines.awk', embedded as
16515 # here-document in config.status, that substitutes the proper values into
16516 # config.h.in to produce config.h.
16517
16518 # Create a delimiter string that does not exist in confdefs.h, to ease
16519 # handling of long lines.
16520 ac_delim='%!_!# '
16521 for ac_last_try in false false :; do
16522   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16523   if test -z "$ac_tt"; then
16524     break
16525   elif $ac_last_try; then
16526     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16527   else
16528     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16529   fi
16530 done
16531
16532 # For the awk script, D is an array of macro values keyed by name,
16533 # likewise P contains macro parameters if any.  Preserve backslash
16534 # newline sequences.
16535
16536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16537 sed -n '
16538 s/.\{148\}/&'"$ac_delim"'/g
16539 t rset
16540 :rset
16541 s/^[     ]*#[    ]*define[       ][      ]*/ /
16542 t def
16543 d
16544 :def
16545 s/\\$//
16546 t bsnl
16547 s/["\\]/\\&/g
16548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16549 D["\1"]=" \3"/p
16550 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16551 d
16552 :bsnl
16553 s/["\\]/\\&/g
16554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16555 D["\1"]=" \3\\\\\\n"\\/p
16556 t cont
16557 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16558 t cont
16559 d
16560 :cont
16561 n
16562 s/.\{148\}/&'"$ac_delim"'/g
16563 t clear
16564 :clear
16565 s/\\$//
16566 t bsnlc
16567 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16568 d
16569 :bsnlc
16570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16571 b cont
16572 ' <confdefs.h | sed '
16573 s/'"$ac_delim"'/"\\\
16574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16575
16576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577   for (key in D) D_is_set[key] = 1
16578   FS = "\a"
16579 }
16580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16581   line = \$ 0
16582   split(line, arg, " ")
16583   if (arg[1] == "#") {
16584     defundef = arg[2]
16585     mac1 = arg[3]
16586   } else {
16587     defundef = substr(arg[1], 2)
16588     mac1 = arg[2]
16589   }
16590   split(mac1, mac2, "(") #)
16591   macro = mac2[1]
16592   prefix = substr(line, 1, index(line, defundef) - 1)
16593   if (D_is_set[macro]) {
16594     # Preserve the white space surrounding the "#".
16595     print prefix "define", macro P[macro] D[macro]
16596     next
16597   } else {
16598     # Replace #undef with comments.  This is necessary, for example,
16599     # in the case of _POSIX_SOURCE, which is predefined and required
16600     # on some systems where configure will not decide to define it.
16601     if (defundef == "undef") {
16602       print "/*", prefix defundef, macro, "*/"
16603       next
16604     }
16605   }
16606 }
16607 { print }
16608 _ACAWK
16609 _ACEOF
16610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16611   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16612 fi # test -n "$CONFIG_HEADERS"
16613
16614
16615 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16616 shift
16617 for ac_tag
16618 do
16619   case $ac_tag in
16620   :[FHLC]) ac_mode=$ac_tag; continue;;
16621   esac
16622   case $ac_mode$ac_tag in
16623   :[FHL]*:*);;
16624   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16625   :[FH]-) ac_tag=-:-;;
16626   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16627   esac
16628   ac_save_IFS=$IFS
16629   IFS=:
16630   set x $ac_tag
16631   IFS=$ac_save_IFS
16632   shift
16633   ac_file=$1
16634   shift
16635
16636   case $ac_mode in
16637   :L) ac_source=$1;;
16638   :[FH])
16639     ac_file_inputs=
16640     for ac_f
16641     do
16642       case $ac_f in
16643       -) ac_f="$ac_tmp/stdin";;
16644       *) # Look for the file first in the build tree, then in the source tree
16645          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16646          # because $ac_f cannot contain `:'.
16647          test -f "$ac_f" ||
16648            case $ac_f in
16649            [\\/$]*) false;;
16650            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16651            esac ||
16652            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16653       esac
16654       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16655       as_fn_append ac_file_inputs " '$ac_f'"
16656     done
16657
16658     # Let's still pretend it is `configure' which instantiates (i.e., don't
16659     # use $as_me), people would be surprised to read:
16660     #    /* config.h.  Generated by config.status.  */
16661     configure_input='Generated from '`
16662           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16663         `' by configure.'
16664     if test x"$ac_file" != x-; then
16665       configure_input="$ac_file.  $configure_input"
16666       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16667 $as_echo "$as_me: creating $ac_file" >&6;}
16668     fi
16669     # Neutralize special characters interpreted by sed in replacement strings.
16670     case $configure_input in #(
16671     *\&* | *\|* | *\\* )
16672        ac_sed_conf_input=`$as_echo "$configure_input" |
16673        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16674     *) ac_sed_conf_input=$configure_input;;
16675     esac
16676
16677     case $ac_tag in
16678     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16679       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16680     esac
16681     ;;
16682   esac
16683
16684   ac_dir=`$as_dirname -- "$ac_file" ||
16685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686          X"$ac_file" : 'X\(//\)[^/]' \| \
16687          X"$ac_file" : 'X\(//\)$' \| \
16688          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16689 $as_echo X"$ac_file" |
16690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691             s//\1/
16692             q
16693           }
16694           /^X\(\/\/\)[^/].*/{
16695             s//\1/
16696             q
16697           }
16698           /^X\(\/\/\)$/{
16699             s//\1/
16700             q
16701           }
16702           /^X\(\/\).*/{
16703             s//\1/
16704             q
16705           }
16706           s/.*/./; q'`
16707   as_dir="$ac_dir"; as_fn_mkdir_p
16708   ac_builddir=.
16709
16710 case "$ac_dir" in
16711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16712 *)
16713   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16714   # A ".." for each directory in $ac_dir_suffix.
16715   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16716   case $ac_top_builddir_sub in
16717   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16718   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16719   esac ;;
16720 esac
16721 ac_abs_top_builddir=$ac_pwd
16722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16723 # for backward compatibility:
16724 ac_top_builddir=$ac_top_build_prefix
16725
16726 case $srcdir in
16727   .)  # We are building in place.
16728     ac_srcdir=.
16729     ac_top_srcdir=$ac_top_builddir_sub
16730     ac_abs_top_srcdir=$ac_pwd ;;
16731   [\\/]* | ?:[\\/]* )  # Absolute name.
16732     ac_srcdir=$srcdir$ac_dir_suffix;
16733     ac_top_srcdir=$srcdir
16734     ac_abs_top_srcdir=$srcdir ;;
16735   *) # Relative name.
16736     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16737     ac_top_srcdir=$ac_top_build_prefix$srcdir
16738     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16739 esac
16740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16741
16742
16743   case $ac_mode in
16744   :F)
16745   #
16746   # CONFIG_FILE
16747   #
16748
16749   case $INSTALL in
16750   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16751   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16752   esac
16753   ac_MKDIR_P=$MKDIR_P
16754   case $MKDIR_P in
16755   [\\/$]* | ?:[\\/]* ) ;;
16756   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16757   esac
16758 _ACEOF
16759
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761 # If the template does not know about datarootdir, expand it.
16762 # FIXME: This hack should be removed a few years after 2.60.
16763 ac_datarootdir_hack=; ac_datarootdir_seen=
16764 ac_sed_dataroot='
16765 /datarootdir/ {
16766   p
16767   q
16768 }
16769 /@datadir@/p
16770 /@docdir@/p
16771 /@infodir@/p
16772 /@localedir@/p
16773 /@mandir@/p'
16774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16775 *datarootdir*) ac_datarootdir_seen=yes;;
16776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16777   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16779 _ACEOF
16780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781   ac_datarootdir_hack='
16782   s&@datadir@&$datadir&g
16783   s&@docdir@&$docdir&g
16784   s&@infodir@&$infodir&g
16785   s&@localedir@&$localedir&g
16786   s&@mandir@&$mandir&g
16787   s&\\\${datarootdir}&$datarootdir&g' ;;
16788 esac
16789 _ACEOF
16790
16791 # Neutralize VPATH when `$srcdir' = `.'.
16792 # Shell code in configure.ac might set extrasub.
16793 # FIXME: do we really want to maintain this feature?
16794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16795 ac_sed_extra="$ac_vpsub
16796 $extrasub
16797 _ACEOF
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 :t
16800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16801 s|@configure_input@|$ac_sed_conf_input|;t t
16802 s&@top_builddir@&$ac_top_builddir_sub&;t t
16803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16804 s&@srcdir@&$ac_srcdir&;t t
16805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16806 s&@top_srcdir@&$ac_top_srcdir&;t t
16807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16808 s&@builddir@&$ac_builddir&;t t
16809 s&@abs_builddir@&$ac_abs_builddir&;t t
16810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16811 s&@INSTALL@&$ac_INSTALL&;t t
16812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16813 $ac_datarootdir_hack
16814 "
16815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16816   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16817
16818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16819   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16820   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16821       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16822   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16823 which seems to be undefined.  Please make sure it is defined" >&5
16824 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16825 which seems to be undefined.  Please make sure it is defined" >&2;}
16826
16827   rm -f "$ac_tmp/stdin"
16828   case $ac_file in
16829   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16830   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16831   esac \
16832   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16833  ;;
16834   :H)
16835   #
16836   # CONFIG_HEADER
16837   #
16838   if test x"$ac_file" != x-; then
16839     {
16840       $as_echo "/* $configure_input  */" \
16841       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16842     } >"$ac_tmp/config.h" \
16843       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16844     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16845       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16846 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16847     else
16848       rm -f "$ac_file"
16849       mv "$ac_tmp/config.h" "$ac_file" \
16850         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16851     fi
16852   else
16853     $as_echo "/* $configure_input  */" \
16854       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16855       || as_fn_error $? "could not create -" "$LINENO" 5
16856   fi
16857 # Compute "$ac_file"'s index in $config_headers.
16858 _am_arg="$ac_file"
16859 _am_stamp_count=1
16860 for _am_header in $config_headers :; do
16861   case $_am_header in
16862     $_am_arg | $_am_arg:* )
16863       break ;;
16864     * )
16865       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16866   esac
16867 done
16868 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16869 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16870          X"$_am_arg" : 'X\(//\)[^/]' \| \
16871          X"$_am_arg" : 'X\(//\)$' \| \
16872          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16873 $as_echo X"$_am_arg" |
16874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16875             s//\1/
16876             q
16877           }
16878           /^X\(\/\/\)[^/].*/{
16879             s//\1/
16880             q
16881           }
16882           /^X\(\/\/\)$/{
16883             s//\1/
16884             q
16885           }
16886           /^X\(\/\).*/{
16887             s//\1/
16888             q
16889           }
16890           s/.*/./; q'`/stamp-h$_am_stamp_count
16891  ;;
16892
16893   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16894 $as_echo "$as_me: executing $ac_file commands" >&6;}
16895  ;;
16896   esac
16897
16898
16899   case $ac_file$ac_mode in
16900     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16901   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16902   # are listed without --file.  Let's play safe and only enable the eval
16903   # if we detect the quoting.
16904   case $CONFIG_FILES in
16905   *\'*) eval set x "$CONFIG_FILES" ;;
16906   *)   set x $CONFIG_FILES ;;
16907   esac
16908   shift
16909   for mf
16910   do
16911     # Strip MF so we end up with the name of the file.
16912     mf=`echo "$mf" | sed -e 's/:.*$//'`
16913     # Check whether this is an Automake generated Makefile or not.
16914     # We used to match only the files named `Makefile.in', but
16915     # some people rename them; so instead we look at the file content.
16916     # Grep'ing the first line is not enough: some people post-process
16917     # each Makefile.in and add a new line on top of each file to say so.
16918     # Grep'ing the whole file is not good either: AIX grep has a line
16919     # limit of 2048, but all sed's we know have understand at least 4000.
16920     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16921       dirpart=`$as_dirname -- "$mf" ||
16922 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16923          X"$mf" : 'X\(//\)[^/]' \| \
16924          X"$mf" : 'X\(//\)$' \| \
16925          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16926 $as_echo X"$mf" |
16927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16928             s//\1/
16929             q
16930           }
16931           /^X\(\/\/\)[^/].*/{
16932             s//\1/
16933             q
16934           }
16935           /^X\(\/\/\)$/{
16936             s//\1/
16937             q
16938           }
16939           /^X\(\/\).*/{
16940             s//\1/
16941             q
16942           }
16943           s/.*/./; q'`
16944     else
16945       continue
16946     fi
16947     # Extract the definition of DEPDIR, am__include, and am__quote
16948     # from the Makefile without running `make'.
16949     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16950     test -z "$DEPDIR" && continue
16951     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16952     test -z "am__include" && continue
16953     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16954     # When using ansi2knr, U may be empty or an underscore; expand it
16955     U=`sed -n 's/^U = //p' < "$mf"`
16956     # Find all dependency output files, they are included files with
16957     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16958     # simplest approach to changing $(DEPDIR) to its actual value in the
16959     # expansion.
16960     for file in `sed -n "
16961       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16962          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16963       # Make sure the directory exists.
16964       test -f "$dirpart/$file" && continue
16965       fdir=`$as_dirname -- "$file" ||
16966 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16967          X"$file" : 'X\(//\)[^/]' \| \
16968          X"$file" : 'X\(//\)$' \| \
16969          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16970 $as_echo X"$file" |
16971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16972             s//\1/
16973             q
16974           }
16975           /^X\(\/\/\)[^/].*/{
16976             s//\1/
16977             q
16978           }
16979           /^X\(\/\/\)$/{
16980             s//\1/
16981             q
16982           }
16983           /^X\(\/\).*/{
16984             s//\1/
16985             q
16986           }
16987           s/.*/./; q'`
16988       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16989       # echo "creating $dirpart/$file"
16990       echo '# dummy' > "$dirpart/$file"
16991     done
16992   done
16993 }
16994  ;;
16995     "libtool":C)
16996
16997     # See if we are running on zsh, and set the options which allow our
16998     # commands through without removal of \ escapes.
16999     if test -n "${ZSH_VERSION+set}" ; then
17000       setopt NO_GLOB_SUBST
17001     fi
17002
17003     cfgfile="${ofile}T"
17004     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17005     $RM "$cfgfile"
17006
17007     cat <<_LT_EOF >> "$cfgfile"
17008 #! $SHELL
17009
17010 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17011 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17012 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17013 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17014 #
17015 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17016 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17017 #                 Foundation, Inc.
17018 #   Written by Gordon Matzigkeit, 1996
17019 #
17020 #   This file is part of GNU Libtool.
17021 #
17022 # GNU Libtool is free software; you can redistribute it and/or
17023 # modify it under the terms of the GNU General Public License as
17024 # published by the Free Software Foundation; either version 2 of
17025 # the License, or (at your option) any later version.
17026 #
17027 # As a special exception to the GNU General Public License,
17028 # if you distribute this file as part of a program or library that
17029 # is built using GNU Libtool, you may include this file under the
17030 # same distribution terms that you use for the rest of that program.
17031 #
17032 # GNU Libtool is distributed in the hope that it will be useful,
17033 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17034 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17035 # GNU General Public License for more details.
17036 #
17037 # You should have received a copy of the GNU General Public License
17038 # along with GNU Libtool; see the file COPYING.  If not, a copy
17039 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17040 # obtained by writing to the Free Software Foundation, Inc.,
17041 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17042
17043
17044 # The names of the tagged configurations supported by this script.
17045 available_tags=""
17046
17047 # ### BEGIN LIBTOOL CONFIG
17048
17049 # Which release of libtool.m4 was used?
17050 macro_version=$macro_version
17051 macro_revision=$macro_revision
17052
17053 # Whether or not to build shared libraries.
17054 build_libtool_libs=$enable_shared
17055
17056 # Whether or not to build static libraries.
17057 build_old_libs=$enable_static
17058
17059 # What type of objects to build.
17060 pic_mode=$pic_mode
17061
17062 # Whether or not to optimize for fast installation.
17063 fast_install=$enable_fast_install
17064
17065 # Shell to use when invoking shell scripts.
17066 SHELL=$lt_SHELL
17067
17068 # An echo program that protects backslashes.
17069 ECHO=$lt_ECHO
17070
17071 # The PATH separator for the build system.
17072 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17073
17074 # The host system.
17075 host_alias=$host_alias
17076 host=$host
17077 host_os=$host_os
17078
17079 # The build system.
17080 build_alias=$build_alias
17081 build=$build
17082 build_os=$build_os
17083
17084 # A sed program that does not truncate output.
17085 SED=$lt_SED
17086
17087 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17088 Xsed="\$SED -e 1s/^X//"
17089
17090 # A grep program that handles long lines.
17091 GREP=$lt_GREP
17092
17093 # An ERE matcher.
17094 EGREP=$lt_EGREP
17095
17096 # A literal string matcher.
17097 FGREP=$lt_FGREP
17098
17099 # A BSD- or MS-compatible name lister.
17100 NM=$lt_NM
17101
17102 # Whether we need soft or hard links.
17103 LN_S=$lt_LN_S
17104
17105 # What is the maximum length of a command?
17106 max_cmd_len=$max_cmd_len
17107
17108 # Object file suffix (normally "o").
17109 objext=$ac_objext
17110
17111 # Executable file suffix (normally "").
17112 exeext=$exeext
17113
17114 # whether the shell understands "unset".
17115 lt_unset=$lt_unset
17116
17117 # turn spaces into newlines.
17118 SP2NL=$lt_lt_SP2NL
17119
17120 # turn newlines into spaces.
17121 NL2SP=$lt_lt_NL2SP
17122
17123 # convert \$build file names to \$host format.
17124 to_host_file_cmd=$lt_cv_to_host_file_cmd
17125
17126 # convert \$build files to toolchain format.
17127 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17128
17129 # An object symbol dumper.
17130 OBJDUMP=$lt_OBJDUMP
17131
17132 # Method to check whether dependent libraries are shared objects.
17133 deplibs_check_method=$lt_deplibs_check_method
17134
17135 # Command to use when deplibs_check_method = "file_magic".
17136 file_magic_cmd=$lt_file_magic_cmd
17137
17138 # How to find potential files when deplibs_check_method = "file_magic".
17139 file_magic_glob=$lt_file_magic_glob
17140
17141 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17142 want_nocaseglob=$lt_want_nocaseglob
17143
17144 # DLL creation program.
17145 DLLTOOL=$lt_DLLTOOL
17146
17147 # Command to associate shared and link libraries.
17148 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17149
17150 # The archiver.
17151 AR=$lt_AR
17152
17153 # Flags to create an archive.
17154 AR_FLAGS=$lt_AR_FLAGS
17155
17156 # How to feed a file listing to the archiver.
17157 archiver_list_spec=$lt_archiver_list_spec
17158
17159 # A symbol stripping program.
17160 STRIP=$lt_STRIP
17161
17162 # Commands used to install an old-style archive.
17163 RANLIB=$lt_RANLIB
17164 old_postinstall_cmds=$lt_old_postinstall_cmds
17165 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17166
17167 # Whether to use a lock for old archive extraction.
17168 lock_old_archive_extraction=$lock_old_archive_extraction
17169
17170 # A C compiler.
17171 LTCC=$lt_CC
17172
17173 # LTCC compiler flags.
17174 LTCFLAGS=$lt_CFLAGS
17175
17176 # Take the output of nm and produce a listing of raw symbols and C names.
17177 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17178
17179 # Transform the output of nm in a proper C declaration.
17180 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17181
17182 # Transform the output of nm in a C name address pair.
17183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17184
17185 # Transform the output of nm in a C name address pair when lib prefix is needed.
17186 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17187
17188 # Specify filename containing input files for \$NM.
17189 nm_file_list_spec=$lt_nm_file_list_spec
17190
17191 # The root where to search for dependent libraries,and in which our libraries should be installed.
17192 lt_sysroot=$lt_sysroot
17193
17194 # The name of the directory that contains temporary libtool files.
17195 objdir=$objdir
17196
17197 # Used to examine libraries when file_magic_cmd begins with "file".
17198 MAGIC_CMD=$MAGIC_CMD
17199
17200 # Must we lock files when doing compilation?
17201 need_locks=$lt_need_locks
17202
17203 # Manifest tool.
17204 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17205
17206 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17207 DSYMUTIL=$lt_DSYMUTIL
17208
17209 # Tool to change global to local symbols on Mac OS X.
17210 NMEDIT=$lt_NMEDIT
17211
17212 # Tool to manipulate fat objects and archives on Mac OS X.
17213 LIPO=$lt_LIPO
17214
17215 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17216 OTOOL=$lt_OTOOL
17217
17218 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17219 OTOOL64=$lt_OTOOL64
17220
17221 # Old archive suffix (normally "a").
17222 libext=$libext
17223
17224 # Shared library suffix (normally ".so").
17225 shrext_cmds=$lt_shrext_cmds
17226
17227 # The commands to extract the exported symbol list from a shared archive.
17228 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17229
17230 # Variables whose values should be saved in libtool wrapper scripts and
17231 # restored at link time.
17232 variables_saved_for_relink=$lt_variables_saved_for_relink
17233
17234 # Do we need the "lib" prefix for modules?
17235 need_lib_prefix=$need_lib_prefix
17236
17237 # Do we need a version for libraries?
17238 need_version=$need_version
17239
17240 # Library versioning type.
17241 version_type=$version_type
17242
17243 # Shared library runtime path variable.
17244 runpath_var=$runpath_var
17245
17246 # Shared library path variable.
17247 shlibpath_var=$shlibpath_var
17248
17249 # Is shlibpath searched before the hard-coded library search path?
17250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17251
17252 # Format of library name prefix.
17253 libname_spec=$lt_libname_spec
17254
17255 # List of archive names.  First name is the real one, the rest are links.
17256 # The last name is the one that the linker finds with -lNAME
17257 library_names_spec=$lt_library_names_spec
17258
17259 # The coded name of the library, if different from the real name.
17260 soname_spec=$lt_soname_spec
17261
17262 # Permission mode override for installation of shared libraries.
17263 install_override_mode=$lt_install_override_mode
17264
17265 # Command to use after installation of a shared archive.
17266 postinstall_cmds=$lt_postinstall_cmds
17267
17268 # Command to use after uninstallation of a shared archive.
17269 postuninstall_cmds=$lt_postuninstall_cmds
17270
17271 # Commands used to finish a libtool library installation in a directory.
17272 finish_cmds=$lt_finish_cmds
17273
17274 # As "finish_cmds", except a single script fragment to be evaled but
17275 # not shown.
17276 finish_eval=$lt_finish_eval
17277
17278 # Whether we should hardcode library paths into libraries.
17279 hardcode_into_libs=$hardcode_into_libs
17280
17281 # Compile-time system search path for libraries.
17282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17283
17284 # Run-time system search path for libraries.
17285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17286
17287 # Whether dlopen is supported.
17288 dlopen_support=$enable_dlopen
17289
17290 # Whether dlopen of programs is supported.
17291 dlopen_self=$enable_dlopen_self
17292
17293 # Whether dlopen of statically linked programs is supported.
17294 dlopen_self_static=$enable_dlopen_self_static
17295
17296 # Commands to strip libraries.
17297 old_striplib=$lt_old_striplib
17298 striplib=$lt_striplib
17299
17300
17301 # The linker used to build libraries.
17302 LD=$lt_LD
17303
17304 # How to create reloadable object files.
17305 reload_flag=$lt_reload_flag
17306 reload_cmds=$lt_reload_cmds
17307
17308 # Commands used to build an old-style archive.
17309 old_archive_cmds=$lt_old_archive_cmds
17310
17311 # A language specific compiler.
17312 CC=$lt_compiler
17313
17314 # Is the compiler the GNU compiler?
17315 with_gcc=$GCC
17316
17317 # Compiler flag to turn off builtin functions.
17318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17319
17320 # Additional compiler flags for building library objects.
17321 pic_flag=$lt_lt_prog_compiler_pic
17322
17323 # How to pass a linker flag through the compiler.
17324 wl=$lt_lt_prog_compiler_wl
17325
17326 # Compiler flag to prevent dynamic linking.
17327 link_static_flag=$lt_lt_prog_compiler_static
17328
17329 # Does compiler simultaneously support -c and -o options?
17330 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17331
17332 # Whether or not to add -lc for building shared libraries.
17333 build_libtool_need_lc=$archive_cmds_need_lc
17334
17335 # Whether or not to disallow shared libs when runtime libs are static.
17336 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17337
17338 # Compiler flag to allow reflexive dlopens.
17339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17340
17341 # Compiler flag to generate shared objects directly from archives.
17342 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17343
17344 # Whether the compiler copes with passing no objects directly.
17345 compiler_needs_object=$lt_compiler_needs_object
17346
17347 # Create an old-style archive from a shared archive.
17348 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17349
17350 # Create a temporary old-style archive to link instead of a shared archive.
17351 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17352
17353 # Commands used to build a shared archive.
17354 archive_cmds=$lt_archive_cmds
17355 archive_expsym_cmds=$lt_archive_expsym_cmds
17356
17357 # Commands used to build a loadable module if different from building
17358 # a shared archive.
17359 module_cmds=$lt_module_cmds
17360 module_expsym_cmds=$lt_module_expsym_cmds
17361
17362 # Whether we are building with GNU ld or not.
17363 with_gnu_ld=$lt_with_gnu_ld
17364
17365 # Flag that allows shared libraries with undefined symbols to be built.
17366 allow_undefined_flag=$lt_allow_undefined_flag
17367
17368 # Flag that enforces no undefined symbols.
17369 no_undefined_flag=$lt_no_undefined_flag
17370
17371 # Flag to hardcode \$libdir into a binary during linking.
17372 # This must work even if \$libdir does not exist
17373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17374
17375 # Whether we need a single "-rpath" flag with a separated argument.
17376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17377
17378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17379 # DIR into the resulting binary.
17380 hardcode_direct=$hardcode_direct
17381
17382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17383 # DIR into the resulting binary and the resulting library dependency is
17384 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17385 # library is relocated.
17386 hardcode_direct_absolute=$hardcode_direct_absolute
17387
17388 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17389 # into the resulting binary.
17390 hardcode_minus_L=$hardcode_minus_L
17391
17392 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17393 # into the resulting binary.
17394 hardcode_shlibpath_var=$hardcode_shlibpath_var
17395
17396 # Set to "yes" if building a shared library automatically hardcodes DIR
17397 # into the library and all subsequent libraries and executables linked
17398 # against it.
17399 hardcode_automatic=$hardcode_automatic
17400
17401 # Set to yes if linker adds runtime paths of dependent libraries
17402 # to runtime path list.
17403 inherit_rpath=$inherit_rpath
17404
17405 # Whether libtool must link a program against all its dependency libraries.
17406 link_all_deplibs=$link_all_deplibs
17407
17408 # Set to "yes" if exported symbols are required.
17409 always_export_symbols=$always_export_symbols
17410
17411 # The commands to list exported symbols.
17412 export_symbols_cmds=$lt_export_symbols_cmds
17413
17414 # Symbols that should not be listed in the preloaded symbols.
17415 exclude_expsyms=$lt_exclude_expsyms
17416
17417 # Symbols that must always be exported.
17418 include_expsyms=$lt_include_expsyms
17419
17420 # Commands necessary for linking programs (against libraries) with templates.
17421 prelink_cmds=$lt_prelink_cmds
17422
17423 # Commands necessary for finishing linking programs.
17424 postlink_cmds=$lt_postlink_cmds
17425
17426 # Specify filename containing input files.
17427 file_list_spec=$lt_file_list_spec
17428
17429 # How to hardcode a shared library path into an executable.
17430 hardcode_action=$hardcode_action
17431
17432 # ### END LIBTOOL CONFIG
17433
17434 _LT_EOF
17435
17436   case $host_os in
17437   aix3*)
17438     cat <<\_LT_EOF >> "$cfgfile"
17439 # AIX sometimes has problems with the GCC collect2 program.  For some
17440 # reason, if we set the COLLECT_NAMES environment variable, the problems
17441 # vanish in a puff of smoke.
17442 if test "X${COLLECT_NAMES+set}" != Xset; then
17443   COLLECT_NAMES=
17444   export COLLECT_NAMES
17445 fi
17446 _LT_EOF
17447     ;;
17448   esac
17449
17450
17451 ltmain="$ac_aux_dir/ltmain.sh"
17452
17453
17454   # We use sed instead of cat because bash on DJGPP gets confused if
17455   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17456   # text mode, it properly converts lines to CR/LF.  This bash problem
17457   # is reportedly fixed, but why not run on old versions too?
17458   sed '$q' "$ltmain" >> "$cfgfile" \
17459      || (rm -f "$cfgfile"; exit 1)
17460
17461   if test x"$xsi_shell" = xyes; then
17462   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17463 func_dirname ()\
17464 {\
17465 \    case ${1} in\
17466 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17467 \      *  ) func_dirname_result="${3}" ;;\
17468 \    esac\
17469 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17470   && mv -f "$cfgfile.tmp" "$cfgfile" \
17471     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17472 test 0 -eq $? || _lt_function_replace_fail=:
17473
17474
17475   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17476 func_basename ()\
17477 {\
17478 \    func_basename_result="${1##*/}"\
17479 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17480   && mv -f "$cfgfile.tmp" "$cfgfile" \
17481     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17482 test 0 -eq $? || _lt_function_replace_fail=:
17483
17484
17485   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17486 func_dirname_and_basename ()\
17487 {\
17488 \    case ${1} in\
17489 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17490 \      *  ) func_dirname_result="${3}" ;;\
17491 \    esac\
17492 \    func_basename_result="${1##*/}"\
17493 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17494   && mv -f "$cfgfile.tmp" "$cfgfile" \
17495     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17496 test 0 -eq $? || _lt_function_replace_fail=:
17497
17498
17499   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17500 func_stripname ()\
17501 {\
17502 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17503 \    # positional parameters, so assign one to ordinary parameter first.\
17504 \    func_stripname_result=${3}\
17505 \    func_stripname_result=${func_stripname_result#"${1}"}\
17506 \    func_stripname_result=${func_stripname_result%"${2}"}\
17507 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17508   && mv -f "$cfgfile.tmp" "$cfgfile" \
17509     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17510 test 0 -eq $? || _lt_function_replace_fail=:
17511
17512
17513   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17514 func_split_long_opt ()\
17515 {\
17516 \    func_split_long_opt_name=${1%%=*}\
17517 \    func_split_long_opt_arg=${1#*=}\
17518 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17519   && mv -f "$cfgfile.tmp" "$cfgfile" \
17520     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17521 test 0 -eq $? || _lt_function_replace_fail=:
17522
17523
17524   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17525 func_split_short_opt ()\
17526 {\
17527 \    func_split_short_opt_arg=${1#??}\
17528 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17529 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17530   && mv -f "$cfgfile.tmp" "$cfgfile" \
17531     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17532 test 0 -eq $? || _lt_function_replace_fail=:
17533
17534
17535   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17536 func_lo2o ()\
17537 {\
17538 \    case ${1} in\
17539 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17540 \      *)    func_lo2o_result=${1} ;;\
17541 \    esac\
17542 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17543   && mv -f "$cfgfile.tmp" "$cfgfile" \
17544     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17545 test 0 -eq $? || _lt_function_replace_fail=:
17546
17547
17548   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17549 func_xform ()\
17550 {\
17551     func_xform_result=${1%.*}.lo\
17552 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17553   && mv -f "$cfgfile.tmp" "$cfgfile" \
17554     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17555 test 0 -eq $? || _lt_function_replace_fail=:
17556
17557
17558   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17559 func_arith ()\
17560 {\
17561     func_arith_result=$(( $* ))\
17562 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17563   && mv -f "$cfgfile.tmp" "$cfgfile" \
17564     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17565 test 0 -eq $? || _lt_function_replace_fail=:
17566
17567
17568   sed -e '/^func_len ()$/,/^} # func_len /c\
17569 func_len ()\
17570 {\
17571     func_len_result=${#1}\
17572 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17573   && mv -f "$cfgfile.tmp" "$cfgfile" \
17574     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17575 test 0 -eq $? || _lt_function_replace_fail=:
17576
17577 fi
17578
17579 if test x"$lt_shell_append" = xyes; then
17580   sed -e '/^func_append ()$/,/^} # func_append /c\
17581 func_append ()\
17582 {\
17583     eval "${1}+=\\${2}"\
17584 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17585   && mv -f "$cfgfile.tmp" "$cfgfile" \
17586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17587 test 0 -eq $? || _lt_function_replace_fail=:
17588
17589
17590   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17591 func_append_quoted ()\
17592 {\
17593 \    func_quote_for_eval "${2}"\
17594 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17595 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17596   && mv -f "$cfgfile.tmp" "$cfgfile" \
17597     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17598 test 0 -eq $? || _lt_function_replace_fail=:
17599
17600
17601   # Save a `func_append' function call where possible by direct use of '+='
17602   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17603     && mv -f "$cfgfile.tmp" "$cfgfile" \
17604       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17605   test 0 -eq $? || _lt_function_replace_fail=:
17606 else
17607   # Save a `func_append' function call even when '+=' is not available
17608   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17609     && mv -f "$cfgfile.tmp" "$cfgfile" \
17610       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17611   test 0 -eq $? || _lt_function_replace_fail=:
17612 fi
17613
17614 if test x"$_lt_function_replace_fail" = x":"; then
17615   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17616 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17617 fi
17618
17619
17620    mv -f "$cfgfile" "$ofile" ||
17621     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17622   chmod +x "$ofile"
17623
17624  ;;
17625
17626   esac
17627 done # for ac_tag
17628
17629
17630 as_fn_exit 0
17631 _ACEOF
17632 ac_clean_files=$ac_clean_files_save
17633
17634 test $ac_write_fail = 0 ||
17635   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17636
17637
17638 # configure is writing to config.log, and then calls config.status.
17639 # config.status does its own redirection, appending to config.log.
17640 # Unfortunately, on DOS this fails, as config.log is still kept open
17641 # by configure, so config.status won't be able to write to it; its
17642 # output is simply discarded.  So we exec the FD to /dev/null,
17643 # effectively closing config.log, so it can be properly (re)opened and
17644 # appended to by config.status.  When coming back to configure, we
17645 # need to make the FD available again.
17646 if test "$no_create" != yes; then
17647   ac_cs_success=:
17648   ac_config_status_args=
17649   test "$silent" = yes &&
17650     ac_config_status_args="$ac_config_status_args --quiet"
17651   exec 5>/dev/null
17652   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17653   exec 5>>config.log
17654   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17655   # would make configure fail if this is the last instruction.
17656   $ac_cs_success || as_fn_exit 1
17657 fi
17658 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17659   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17660 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17661 fi
17662
17663
17664 chmod +x xml2-config python/setup.py
17665 echo Done configuring