upload tizen1.0 source
[external/libxml2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="entities.c"
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 LIBOBJS
747 PYTHON_TESTS
748 RELDATE
749 RDL_LIBS
750 M_LIBS
751 PYTHON_SITE_PACKAGES
752 PYTHON_INCLUDES
753 PYTHON_VERSION
754 HAVE_ISINF
755 HAVE_ISNAN
756 XML_INCLUDEDIR
757 ICONV_LIBS
758 XML_LIBTOOLLIBS
759 XML_LIBS
760 XML_LIBDIR
761 XML_CFLAGS
762 CYGWIN_EXTRA_PYTHON_LIBADD
763 CYGWIN_EXTRA_LDFLAGS
764 WIN32_EXTRA_PYTHON_LIBADD
765 WIN32_EXTRA_LDFLAGS
766 WIN32_EXTRA_LIBADD
767 WITH_RUN_DEBUG
768 WITH_MEM_DEBUG
769 TEST_DEBUG
770 DEBUG_OBJ
771 WITH_DEBUG
772 TEST_REGEXPS
773 WITH_REGEXPS
774 TEST_SCHEMAS
775 WITH_SCHEMAS
776 TEST_SCHEMATRON
777 WITH_SCHEMATRON
778 WITH_ISO8859X
779 WITH_ICU
780 WITH_ICONV
781 WITH_OUTPUT
782 TEST_XPATH
783 XPATH_OBJ
784 WITH_XPATH
785 TEST_XINCLUDE
786 XINCLUDE_OBJ
787 WITH_XINCLUDE
788 TEST_C14N
789 C14N_OBJ
790 WITH_C14N
791 TEST_XPTR
792 XPTR_OBJ
793 WITH_XPTR
794 DOCB_OBJ
795 WITH_DOCB
796 TEST_CATALOG
797 CATALOG_OBJ
798 WITH_CATALOG
799 TEST_VTIME
800 TEST_VALID
801 WITH_VALID
802 TEST_PHTML
803 TEST_HTML
804 HTML_OBJ
805 WITH_HTML
806 TEST_PUSH
807 WITH_PUSH
808 TEST_SAX
809 WITH_SAX1
810 TEST_PATTERN
811 WITH_PATTERN
812 WITH_WRITER
813 READER_TEST
814 WITH_READER
815 WITH_LEGACY
816 HTTP_OBJ
817 WITH_HTTP
818 FTP_OBJ
819 WITH_FTP
820 WITH_TREE
821 THREADS_W32
822 TEST_THREADS
823 THREAD_CFLAGS
824 WITH_THREADS
825 BASE_THREAD_LIBS
826 THREAD_LIBS
827 WITH_TRIO
828 WITH_TRIO_SOURCES_FALSE
829 WITH_TRIO_SOURCES_TRUE
830 STATIC_BINARIES
831 TEST_MODULES
832 MODULE_EXTENSION
833 MODULE_PLATFORM_LIBS
834 WITH_MODULES
835 PYTHON_LIBS
836 PYTHON_SUBDIR
837 pythondir
838 WITH_PYTHON_FALSE
839 WITH_PYTHON_TRUE
840 PYTHON
841 WITH_ZLIB
842 Z_LIBS
843 Z_CFLAGS
844 REBUILD_DOCS_FALSE
845 REBUILD_DOCS_TRUE
846 HTML_DIR
847 USE_VERSION_SCRIPT_FALSE
848 USE_VERSION_SCRIPT_TRUE
849 VERSION_SCRIPT_FLAGS
850 MAINT
851 MAINTAINER_MODE_FALSE
852 MAINTAINER_MODE_TRUE
853 OTOOL64
854 OTOOL
855 LIPO
856 NMEDIT
857 DSYMUTIL
858 lt_ECHO
859 RANLIB
860 AR
861 LN_S
862 NM
863 ac_ct_DUMPBIN
864 DUMPBIN
865 LD
866 FGREP
867 SED
868 LIBTOOL
869 OBJDUMP
870 DLLTOOL
871 AS
872 ANSI2KNR
873 U
874 EGREP
875 GREP
876 XSLTPROC
877 XMLLINT
878 WGET
879 PERL
880 TAR
881 MV
882 RM
883 CPP
884 am__fastdepCC_FALSE
885 am__fastdepCC_TRUE
886 CCDEPMODE
887 AMDEPBACKSLASH
888 AMDEP_FALSE
889 AMDEP_TRUE
890 am__quote
891 am__include
892 DEPDIR
893 OBJEXT
894 EXEEXT
895 ac_ct_CC
896 CPPFLAGS
897 LDFLAGS
898 CFLAGS
899 CC
900 am__untar
901 am__tar
902 AMTAR
903 am__leading_dot
904 SET_MAKE
905 AWK
906 mkdir_p
907 MKDIR_P
908 INSTALL_STRIP_PROGRAM
909 STRIP
910 install_sh
911 MAKEINFO
912 AUTOHEADER
913 AUTOMAKE
914 AUTOCONF
915 ACLOCAL
916 VERSION
917 PACKAGE
918 CYGPATH_W
919 am__isrc
920 INSTALL_DATA
921 INSTALL_SCRIPT
922 INSTALL_PROGRAM
923 LIBXML_VERSION_EXTRA
924 LIBXML_VERSION_NUMBER
925 LIBXML_VERSION_INFO
926 LIBXML_VERSION
927 LIBXML_MICRO_VERSION
928 LIBXML_MINOR_VERSION
929 LIBXML_MAJOR_VERSION
930 host_os
931 host_vendor
932 host_cpu
933 host
934 build_os
935 build_vendor
936 build_cpu
937 build
938 target_alias
939 host_alias
940 build_alias
941 LIBS
942 ECHO_T
943 ECHO_N
944 ECHO_C
945 DEFS
946 mandir
947 localedir
948 libdir
949 psdir
950 pdfdir
951 dvidir
952 htmldir
953 infodir
954 docdir
955 oldincludedir
956 includedir
957 localstatedir
958 sharedstatedir
959 sysconfdir
960 datadir
961 datarootdir
962 libexecdir
963 sbindir
964 bindir
965 program_transform_name
966 prefix
967 exec_prefix
968 PACKAGE_URL
969 PACKAGE_BUGREPORT
970 PACKAGE_STRING
971 PACKAGE_VERSION
972 PACKAGE_TARNAME
973 PACKAGE_NAME
974 PATH_SEPARATOR
975 SHELL'
976 ac_subst_files=''
977 ac_user_opts='
978 enable_option_checking
979 enable_dependency_tracking
980 enable_shared
981 enable_static
982 with_pic
983 enable_fast_install
984 with_gnu_ld
985 enable_libtool_lock
986 enable_maintainer_mode
987 with_c14n
988 with_catalog
989 with_debug
990 with_docbook
991 with_fexceptions
992 with_ftp
993 with_history
994 with_html
995 with_html_dir
996 with_html_subdir
997 with_http
998 with_iconv
999 with_icu
1000 with_iso8859x
1001 with_legacy
1002 with_mem_debug
1003 with_minimum
1004 with_output
1005 with_pattern
1006 with_push
1007 with_python
1008 with_reader
1009 with_readline
1010 with_regexps
1011 with_run_debug
1012 with_sax1
1013 with_schemas
1014 with_schematron
1015 with_threads
1016 with_thread_alloc
1017 with_tree
1018 with_valid
1019 with_writer
1020 with_xinclude
1021 with_xpath
1022 with_xptr
1023 with_modules
1024 with_zlib
1025 with_coverage
1026 enable_rebuild_docs
1027 enable_ipv6
1028 '
1029       ac_precious_vars='build_alias
1030 host_alias
1031 target_alias
1032 CC
1033 CFLAGS
1034 LDFLAGS
1035 LIBS
1036 CPPFLAGS
1037 CPP'
1038
1039
1040 # Initialize some variables set by options.
1041 ac_init_help=
1042 ac_init_version=false
1043 ac_unrecognized_opts=
1044 ac_unrecognized_sep=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file=/dev/null
1048 exec_prefix=NONE
1049 no_create=
1050 no_recursion=
1051 prefix=NONE
1052 program_prefix=NONE
1053 program_suffix=NONE
1054 program_transform_name=s,x,x,
1055 silent=
1056 site=
1057 srcdir=
1058 verbose=
1059 x_includes=NONE
1060 x_libraries=NONE
1061
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir='${exec_prefix}/bin'
1069 sbindir='${exec_prefix}/sbin'
1070 libexecdir='${exec_prefix}/libexec'
1071 datarootdir='${prefix}/share'
1072 datadir='${datarootdir}'
1073 sysconfdir='${prefix}/etc'
1074 sharedstatedir='${prefix}/com'
1075 localstatedir='${prefix}/var'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE}'
1079 infodir='${datarootdir}/info'
1080 htmldir='${docdir}'
1081 dvidir='${docdir}'
1082 pdfdir='${docdir}'
1083 psdir='${docdir}'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1087
1088 ac_prev=
1089 ac_dashdash=
1090 for ac_option
1091 do
1092   # If the previous option needs an argument, assign it.
1093   if test -n "$ac_prev"; then
1094     eval $ac_prev=\$ac_option
1095     ac_prev=
1096     continue
1097   fi
1098
1099   case $ac_option in
1100   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101   *=)   ac_optarg= ;;
1102   *)    ac_optarg=yes ;;
1103   esac
1104
1105   # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107   case $ac_dashdash$ac_option in
1108   --)
1109     ac_dashdash=yes ;;
1110
1111   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112     ac_prev=bindir ;;
1113   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114     bindir=$ac_optarg ;;
1115
1116   -build | --build | --buil | --bui | --bu)
1117     ac_prev=build_alias ;;
1118   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119     build_alias=$ac_optarg ;;
1120
1121   -cache-file | --cache-file | --cache-fil | --cache-fi \
1122   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123     ac_prev=cache_file ;;
1124   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126     cache_file=$ac_optarg ;;
1127
1128   --config-cache | -C)
1129     cache_file=config.cache ;;
1130
1131   -datadir | --datadir | --datadi | --datad)
1132     ac_prev=datadir ;;
1133   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134     datadir=$ac_optarg ;;
1135
1136   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137   | --dataroo | --dataro | --datar)
1138     ac_prev=datarootdir ;;
1139   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141     datarootdir=$ac_optarg ;;
1142
1143   -disable-* | --disable-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid feature name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval enable_$ac_useropt=no ;;
1158
1159   -docdir | --docdir | --docdi | --doc | --do)
1160     ac_prev=docdir ;;
1161   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162     docdir=$ac_optarg ;;
1163
1164   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165     ac_prev=dvidir ;;
1166   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167     dvidir=$ac_optarg ;;
1168
1169   -enable-* | --enable-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid feature name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187   | --exec | --exe | --ex)
1188     ac_prev=exec_prefix ;;
1189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191   | --exec=* | --exe=* | --ex=*)
1192     exec_prefix=$ac_optarg ;;
1193
1194   -gas | --gas | --ga | --g)
1195     # Obsolete; use --with-gas.
1196     with_gas=yes ;;
1197
1198   -help | --help | --hel | --he | -h)
1199     ac_init_help=long ;;
1200   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201     ac_init_help=recursive ;;
1202   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203     ac_init_help=short ;;
1204
1205   -host | --host | --hos | --ho)
1206     ac_prev=host_alias ;;
1207   -host=* | --host=* | --hos=* | --ho=*)
1208     host_alias=$ac_optarg ;;
1209
1210   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211     ac_prev=htmldir ;;
1212   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213   | --ht=*)
1214     htmldir=$ac_optarg ;;
1215
1216   -includedir | --includedir | --includedi | --included | --include \
1217   | --includ | --inclu | --incl | --inc)
1218     ac_prev=includedir ;;
1219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220   | --includ=* | --inclu=* | --incl=* | --inc=*)
1221     includedir=$ac_optarg ;;
1222
1223   -infodir | --infodir | --infodi | --infod | --info | --inf)
1224     ac_prev=infodir ;;
1225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226     infodir=$ac_optarg ;;
1227
1228   -libdir | --libdir | --libdi | --libd)
1229     ac_prev=libdir ;;
1230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231     libdir=$ac_optarg ;;
1232
1233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234   | --libexe | --libex | --libe)
1235     ac_prev=libexecdir ;;
1236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237   | --libexe=* | --libex=* | --libe=*)
1238     libexecdir=$ac_optarg ;;
1239
1240   -localedir | --localedir | --localedi | --localed | --locale)
1241     ac_prev=localedir ;;
1242   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243     localedir=$ac_optarg ;;
1244
1245   -localstatedir | --localstatedir | --localstatedi | --localstated \
1246   | --localstate | --localstat | --localsta | --localst | --locals)
1247     ac_prev=localstatedir ;;
1248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250     localstatedir=$ac_optarg ;;
1251
1252   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253     ac_prev=mandir ;;
1254   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255     mandir=$ac_optarg ;;
1256
1257   -nfp | --nfp | --nf)
1258     # Obsolete; use --without-fp.
1259     with_fp=no ;;
1260
1261   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262   | --no-cr | --no-c | -n)
1263     no_create=yes ;;
1264
1265   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267     no_recursion=yes ;;
1268
1269   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271   | --oldin | --oldi | --old | --ol | --o)
1272     ac_prev=oldincludedir ;;
1273   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276     oldincludedir=$ac_optarg ;;
1277
1278   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279     ac_prev=prefix ;;
1280   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281     prefix=$ac_optarg ;;
1282
1283   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284   | --program-pre | --program-pr | --program-p)
1285     ac_prev=program_prefix ;;
1286   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288     program_prefix=$ac_optarg ;;
1289
1290   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291   | --program-suf | --program-su | --program-s)
1292     ac_prev=program_suffix ;;
1293   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295     program_suffix=$ac_optarg ;;
1296
1297   -program-transform-name | --program-transform-name \
1298   | --program-transform-nam | --program-transform-na \
1299   | --program-transform-n | --program-transform- \
1300   | --program-transform | --program-transfor \
1301   | --program-transfo | --program-transf \
1302   | --program-trans | --program-tran \
1303   | --progr-tra | --program-tr | --program-t)
1304     ac_prev=program_transform_name ;;
1305   -program-transform-name=* | --program-transform-name=* \
1306   | --program-transform-nam=* | --program-transform-na=* \
1307   | --program-transform-n=* | --program-transform-=* \
1308   | --program-transform=* | --program-transfor=* \
1309   | --program-transfo=* | --program-transf=* \
1310   | --program-trans=* | --program-tran=* \
1311   | --progr-tra=* | --program-tr=* | --program-t=*)
1312     program_transform_name=$ac_optarg ;;
1313
1314   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315     ac_prev=pdfdir ;;
1316   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317     pdfdir=$ac_optarg ;;
1318
1319   -psdir | --psdir | --psdi | --psd | --ps)
1320     ac_prev=psdir ;;
1321   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322     psdir=$ac_optarg ;;
1323
1324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325   | -silent | --silent | --silen | --sile | --sil)
1326     silent=yes ;;
1327
1328   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329     ac_prev=sbindir ;;
1330   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331   | --sbi=* | --sb=*)
1332     sbindir=$ac_optarg ;;
1333
1334   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336   | --sharedst | --shareds | --shared | --share | --shar \
1337   | --sha | --sh)
1338     ac_prev=sharedstatedir ;;
1339   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342   | --sha=* | --sh=*)
1343     sharedstatedir=$ac_optarg ;;
1344
1345   -site | --site | --sit)
1346     ac_prev=site ;;
1347   -site=* | --site=* | --sit=*)
1348     site=$ac_optarg ;;
1349
1350   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351     ac_prev=srcdir ;;
1352   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353     srcdir=$ac_optarg ;;
1354
1355   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356   | --syscon | --sysco | --sysc | --sys | --sy)
1357     ac_prev=sysconfdir ;;
1358   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360     sysconfdir=$ac_optarg ;;
1361
1362   -target | --target | --targe | --targ | --tar | --ta | --t)
1363     ac_prev=target_alias ;;
1364   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365     target_alias=$ac_optarg ;;
1366
1367   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368     verbose=yes ;;
1369
1370   -version | --version | --versio | --versi | --vers | -V)
1371     ac_init_version=: ;;
1372
1373   -with-* | --with-*)
1374     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377       as_fn_error $? "invalid package name: $ac_useropt"
1378     ac_useropt_orig=$ac_useropt
1379     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380     case $ac_user_opts in
1381       *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385          ac_unrecognized_sep=', ';;
1386     esac
1387     eval with_$ac_useropt=\$ac_optarg ;;
1388
1389   -without-* | --without-*)
1390     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391     # Reject names that are not valid shell variable names.
1392     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393       as_fn_error $? "invalid package name: $ac_useropt"
1394     ac_useropt_orig=$ac_useropt
1395     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396     case $ac_user_opts in
1397       *"
1398 "with_$ac_useropt"
1399 "*) ;;
1400       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401          ac_unrecognized_sep=', ';;
1402     esac
1403     eval with_$ac_useropt=no ;;
1404
1405   --x)
1406     # Obsolete; use --with-x.
1407     with_x=yes ;;
1408
1409   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410   | --x-incl | --x-inc | --x-in | --x-i)
1411     ac_prev=x_includes ;;
1412   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414     x_includes=$ac_optarg ;;
1415
1416   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418     ac_prev=x_libraries ;;
1419   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421     x_libraries=$ac_optarg ;;
1422
1423   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1425     ;;
1426
1427   *=*)
1428     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429     # Reject names that are not valid shell variable names.
1430     case $ac_envvar in #(
1431       '' | [0-9]* | *[!_$as_cr_alnum]* )
1432       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1433     esac
1434     eval $ac_envvar=\$ac_optarg
1435     export $ac_envvar ;;
1436
1437   *)
1438     # FIXME: should be removed in autoconf 3.0.
1439     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443     ;;
1444
1445   esac
1446 done
1447
1448 if test -n "$ac_prev"; then
1449   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450   as_fn_error $? "missing argument to $ac_option"
1451 fi
1452
1453 if test -n "$ac_unrecognized_opts"; then
1454   case $enable_option_checking in
1455     no) ;;
1456     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1457     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458   esac
1459 fi
1460
1461 # Check all directory arguments for consistency.
1462 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463                 datadir sysconfdir sharedstatedir localstatedir includedir \
1464                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465                 libdir localedir mandir
1466 do
1467   eval ac_val=\$$ac_var
1468   # Remove trailing slashes.
1469   case $ac_val in
1470     */ )
1471       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472       eval $ac_var=\$ac_val;;
1473   esac
1474   # Be sure to have absolute directory names.
1475   case $ac_val in
1476     [\\/$]* | ?:[\\/]* )  continue;;
1477     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478   esac
1479   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1480 done
1481
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1485 build=$build_alias
1486 host=$host_alias
1487 target=$target_alias
1488
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x; then
1491   if test "x$build_alias" = x; then
1492     cross_compiling=maybe
1493     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1494     If a cross compiler is detected then cross compile mode will be used" >&2
1495   elif test "x$build_alias" != "x$host_alias"; then
1496     cross_compiling=yes
1497   fi
1498 fi
1499
1500 ac_tool_prefix=
1501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502
1503 test "$silent" = yes && exec 6>/dev/null
1504
1505
1506 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1507 ac_ls_di=`ls -di .` &&
1508 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1509   as_fn_error $? "working directory cannot be determined"
1510 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511   as_fn_error $? "pwd does not report name of working directory"
1512
1513
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516   ac_srcdir_defaulted=yes
1517   # Try the directory containing this script, then the parent directory.
1518   ac_confdir=`$as_dirname -- "$as_myself" ||
1519 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520          X"$as_myself" : 'X\(//\)[^/]' \| \
1521          X"$as_myself" : 'X\(//\)$' \| \
1522          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523 $as_echo X"$as_myself" |
1524     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525             s//\1/
1526             q
1527           }
1528           /^X\(\/\/\)[^/].*/{
1529             s//\1/
1530             q
1531           }
1532           /^X\(\/\/\)$/{
1533             s//\1/
1534             q
1535           }
1536           /^X\(\/\).*/{
1537             s//\1/
1538             q
1539           }
1540           s/.*/./; q'`
1541   srcdir=$ac_confdir
1542   if test ! -r "$srcdir/$ac_unique_file"; then
1543     srcdir=..
1544   fi
1545 else
1546   ac_srcdir_defaulted=no
1547 fi
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1551 fi
1552 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 ac_abs_confdir=`(
1554         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1555         pwd)`
1556 # When building in place, set srcdir=.
1557 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558   srcdir=.
1559 fi
1560 # Remove unnecessary trailing slashes from srcdir.
1561 # Double slashes in file names in object file debugging info
1562 # mess up M-x gdb in Emacs.
1563 case $srcdir in
1564 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 esac
1566 for ac_var in $ac_precious_vars; do
1567   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568   eval ac_env_${ac_var}_value=\$${ac_var}
1569   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571 done
1572
1573 #
1574 # Report the --help message.
1575 #
1576 if test "$ac_init_help" = "long"; then
1577   # Omit some internal or obsolete options to make the list less imposing.
1578   # This message is too long to be a string in the A/UX 3.1 sh.
1579   cat <<_ACEOF
1580 \`configure' configures this package to adapt to many kinds of systems.
1581
1582 Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585 VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587 Defaults for the options are specified in brackets.
1588
1589 Configuration:
1590   -h, --help              display this help and exit
1591       --help=short        display options specific to this package
1592       --help=recursive    display the short help of all the included packages
1593   -V, --version           display version information and exit
1594   -q, --quiet, --silent   do not print \`checking ...' messages
1595       --cache-file=FILE   cache test results in FILE [disabled]
1596   -C, --config-cache      alias for \`--cache-file=config.cache'
1597   -n, --no-create         do not create output files
1598       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600 Installation directories:
1601   --prefix=PREFIX         install architecture-independent files in PREFIX
1602                           [$ac_default_prefix]
1603   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                           [PREFIX]
1605
1606 By default, \`make install' will install all the files in
1607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609 for instance \`--prefix=\$HOME'.
1610
1611 For better control, use the options below.
1612
1613 Fine tuning of the installation directories:
1614   --bindir=DIR            user executables [EPREFIX/bin]
1615   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1616   --libexecdir=DIR        program executables [EPREFIX/libexec]
1617   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1618   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1619   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1620   --libdir=DIR            object code libraries [EPREFIX/lib]
1621   --includedir=DIR        C header files [PREFIX/include]
1622   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1623   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1624   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1625   --infodir=DIR           info documentation [DATAROOTDIR/info]
1626   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1627   --mandir=DIR            man documentation [DATAROOTDIR/man]
1628   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1629   --htmldir=DIR           html documentation [DOCDIR]
1630   --dvidir=DIR            dvi documentation [DOCDIR]
1631   --pdfdir=DIR            pdf documentation [DOCDIR]
1632   --psdir=DIR             ps documentation [DOCDIR]
1633 _ACEOF
1634
1635   cat <<\_ACEOF
1636
1637 Program names:
1638   --program-prefix=PREFIX            prepend PREFIX to installed program names
1639   --program-suffix=SUFFIX            append SUFFIX to installed program names
1640   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1641
1642 System types:
1643   --build=BUILD     configure for building on BUILD [guessed]
1644   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1645 _ACEOF
1646 fi
1647
1648 if test -n "$ac_init_help"; then
1649
1650   cat <<\_ACEOF
1651
1652 Optional Features:
1653   --disable-option-checking  ignore unrecognized --enable/--with options
1654   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1655   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1656   --disable-dependency-tracking  speeds up one-time build
1657   --enable-dependency-tracking   do not reject slow dependency extractors
1658   --enable-shared[=PKGS]  build shared libraries [default=yes]
1659   --enable-static[=PKGS]  build static libraries [default=yes]
1660   --enable-fast-install[=PKGS]
1661                           optimize for fast installation [default=yes]
1662   --disable-libtool-lock  avoid locking (might break parallel builds)
1663   --enable-maintainer-mode  enable make rules and dependencies not useful
1664                           (and sometimes confusing) to the casual installer
1665   --enable-rebuild-docs[=yes/no]  rebuild some generated docs [default=yes]
1666   --enable-ipv6[=yes/no]  enables compilation of IPv6 code [default=yes]
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-c14n             add the Canonicalization support (on)
1675   --with-catalog          add the Catalog support (on)
1676   --with-debug            add the debugging module (on)
1677   --with-docbook          add Docbook SGML support (on)
1678   --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)
1679   --with-ftp              add the FTP support (on)
1680   --with-history          add history support to xmllint shell(off)
1681   --with-html             add the HTML support (on)
1682   --with-html-dir=path    path to base html directory, default
1683                           $datadir/doc/html
1684   --with-html-subdir=path directory used under html-dir, default
1685                           $PACKAGE-$VERSION/html
1686   --with-http             add the HTTP support (on)
1687   --with-iconv[=DIR]      add ICONV support (on)
1688   --with-icu                add ICU support (off)
1689   --with-iso8859x         add ISO8859X support if no iconv (on)
1690   --with-legacy           add deprecated APIs for compatibility (on)
1691   --with-mem-debug        add the memory debugging module (off)
1692   --with-minimum          build a minimally sized library (off)
1693   --with-output           add the serialization support (on)
1694   --with-pattern          add the xmlPattern selection interface (on)
1695   --with-push             add the PUSH parser interfaces (on)
1696   --with-python[=DIR]     build Python bindings if found
1697   --with-reader           add the xmlReader parsing interface (on)
1698   --with-readline=DIR     use readline in DIR
1699   --with-regexps          add Regular Expressions support (on)
1700   --with-run-debug        add the runtime debugging module (off)
1701   --with-sax1             add the older SAX1 interface (on)
1702   --with-schemas          add Relax-NG and Schemas support (on)
1703   --with-schematron       add Schematron support (on)
1704   --with-threads          add multithread support(on)
1705   --with-thread-alloc     add per-thread memory(off)
1706   --with-tree             add the DOM like tree manipulation APIs (on)
1707   --with-valid            add the DTD validation support (on)
1708   --with-writer           add the xmlWriter saving interface (on)
1709   --with-xinclude         add the XInclude support (on)
1710   --with-xpath            add the XPATH support (on)
1711   --with-xptr             add the XPointer support (on)
1712   --with-modules          add the dynamic modules support (on)
1713   --with-zlib[=DIR]       use libz in DIR
1714   --with-coverage         build for code coverage with GCC (off)
1715
1716 Some influential environment variables:
1717   CC          C compiler command
1718   CFLAGS      C compiler flags
1719   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1720               nonstandard directory <lib dir>
1721   LIBS        libraries to pass to the linker, e.g. -l<library>
1722   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1723               you have headers in a nonstandard directory <include dir>
1724   CPP         C preprocessor
1725
1726 Use these variables to override the choices made by `configure' or to help
1727 it to find libraries and programs with nonstandard names/locations.
1728
1729 Report bugs to the package provider.
1730 _ACEOF
1731 ac_status=$?
1732 fi
1733
1734 if test "$ac_init_help" = "recursive"; then
1735   # If there are subdirs, report their specific --help.
1736   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1737     test -d "$ac_dir" ||
1738       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1739       continue
1740     ac_builddir=.
1741
1742 case "$ac_dir" in
1743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *)
1745   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1746   # A ".." for each directory in $ac_dir_suffix.
1747   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1748   case $ac_top_builddir_sub in
1749   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1750   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1751   esac ;;
1752 esac
1753 ac_abs_top_builddir=$ac_pwd
1754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1755 # for backward compatibility:
1756 ac_top_builddir=$ac_top_build_prefix
1757
1758 case $srcdir in
1759   .)  # We are building in place.
1760     ac_srcdir=.
1761     ac_top_srcdir=$ac_top_builddir_sub
1762     ac_abs_top_srcdir=$ac_pwd ;;
1763   [\\/]* | ?:[\\/]* )  # Absolute name.
1764     ac_srcdir=$srcdir$ac_dir_suffix;
1765     ac_top_srcdir=$srcdir
1766     ac_abs_top_srcdir=$srcdir ;;
1767   *) # Relative name.
1768     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1769     ac_top_srcdir=$ac_top_build_prefix$srcdir
1770     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1771 esac
1772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1773
1774     cd "$ac_dir" || { ac_status=$?; continue; }
1775     # Check for guested configure.
1776     if test -f "$ac_srcdir/configure.gnu"; then
1777       echo &&
1778       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1779     elif test -f "$ac_srcdir/configure"; then
1780       echo &&
1781       $SHELL "$ac_srcdir/configure" --help=recursive
1782     else
1783       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784     fi || ac_status=$?
1785     cd "$ac_pwd" || { ac_status=$?; break; }
1786   done
1787 fi
1788
1789 test -n "$ac_init_help" && exit $ac_status
1790 if $ac_init_version; then
1791   cat <<\_ACEOF
1792 configure
1793 generated by GNU Autoconf 2.67
1794
1795 Copyright (C) 2010 Free Software Foundation, Inc.
1796 This configure script is free software; the Free Software Foundation
1797 gives unlimited permission to copy, distribute and modify it.
1798 _ACEOF
1799   exit
1800 fi
1801
1802 ## ------------------------ ##
1803 ## Autoconf initialization. ##
1804 ## ------------------------ ##
1805
1806 # ac_fn_c_try_compile LINENO
1807 # --------------------------
1808 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_compile ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   rm -f conftest.$ac_objext
1813   if { { ac_try="$ac_compile"
1814 case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_compile") 2>conftest.err
1821   ac_status=$?
1822   if test -s conftest.err; then
1823     grep -v '^ *+' conftest.err >conftest.er1
1824     cat conftest.er1 >&5
1825     mv -f conftest.er1 conftest.err
1826   fi
1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828   test $ac_status = 0; } && {
1829          test -z "$ac_c_werror_flag" ||
1830          test ! -s conftest.err
1831        } && test -s conftest.$ac_objext; then :
1832   ac_retval=0
1833 else
1834   $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837         ac_retval=1
1838 fi
1839   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840   as_fn_set_status $ac_retval
1841
1842 } # ac_fn_c_try_compile
1843
1844 # ac_fn_c_try_cpp LINENO
1845 # ----------------------
1846 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1847 ac_fn_c_try_cpp ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if { { ac_try="$ac_cpp conftest.$ac_ext"
1851 case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1858   ac_status=$?
1859   if test -s conftest.err; then
1860     grep -v '^ *+' conftest.err >conftest.er1
1861     cat conftest.er1 >&5
1862     mv -f conftest.er1 conftest.err
1863   fi
1864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865   test $ac_status = 0; } > conftest.i && {
1866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1867          test ! -s conftest.err
1868        }; then :
1869   ac_retval=0
1870 else
1871   $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1873
1874     ac_retval=1
1875 fi
1876   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877   as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_cpp
1880
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884 # that executables *can* be run.
1885 ac_fn_c_try_run ()
1886 {
1887   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888   if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891   *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895   (eval "$ac_link") 2>&5
1896   ac_status=$?
1897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899   { { case "(($ac_try" in
1900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901   *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905   (eval "$ac_try") 2>&5
1906   ac_status=$?
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; }; }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: program exited with status $ac_status" >&5
1912        $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915        ac_retval=$ac_status
1916 fi
1917   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919   as_fn_set_status $ac_retval
1920
1921 } # ac_fn_c_try_run
1922
1923 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1924 # -------------------------------------------------------
1925 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1926 # the include files in INCLUDES and setting the cache variable VAR
1927 # accordingly.
1928 ac_fn_c_check_header_mongrel ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   if eval "test \"\${$3+set}\"" = set; then :
1932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval "test \"\${$3+set}\"" = set; then :
1935   $as_echo_n "(cached) " >&6
1936 fi
1937 eval ac_res=\$$3
1938                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 else
1941   # Is the header compilable?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1943 $as_echo_n "checking $2 usability... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 $4
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950   ac_header_compiler=yes
1951 else
1952   ac_header_compiler=no
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1956 $as_echo "$ac_header_compiler" >&6; }
1957
1958 # Is the header present?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1960 $as_echo_n "checking $2 presence... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h.  */
1963 #include <$2>
1964 _ACEOF
1965 if ac_fn_c_try_cpp "$LINENO"; then :
1966   ac_header_preproc=yes
1967 else
1968   ac_header_preproc=no
1969 fi
1970 rm -f conftest.err conftest.i conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1972 $as_echo "$ac_header_preproc" >&6; }
1973
1974 # So?  What about this header?
1975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1976   yes:no: )
1977     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1978 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981     ;;
1982   no:yes:* )
1983     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1984 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1986 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1988 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1989     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1990 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993     ;;
1994 esac
1995   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval "test \"\${$3+set}\"" = set; then :
1998   $as_echo_n "(cached) " >&6
1999 else
2000   eval "$3=\$ac_header_compiler"
2001 fi
2002 eval ac_res=\$$3
2003                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 fi
2006   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2007
2008 } # ac_fn_c_check_header_mongrel
2009
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval "test \"\${$3+set}\"" = set; then :
2020   $as_echo_n "(cached) " >&6
2021 else
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   eval "$3=yes"
2029 else
2030   eval "$3=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038
2039 } # ac_fn_c_check_header_compile
2040
2041 # ac_fn_c_try_link LINENO
2042 # -----------------------
2043 # Try to link conftest.$ac_ext, and return whether this succeeded.
2044 ac_fn_c_try_link ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   rm -f conftest.$ac_objext conftest$ac_exeext
2048   if { { ac_try="$ac_link"
2049 case "(($ac_try" in
2050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2051   *) ac_try_echo=$ac_try;;
2052 esac
2053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2054 $as_echo "$ac_try_echo"; } >&5
2055   (eval "$ac_link") 2>conftest.err
2056   ac_status=$?
2057   if test -s conftest.err; then
2058     grep -v '^ *+' conftest.err >conftest.er1
2059     cat conftest.er1 >&5
2060     mv -f conftest.er1 conftest.err
2061   fi
2062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063   test $ac_status = 0; } && {
2064          test -z "$ac_c_werror_flag" ||
2065          test ! -s conftest.err
2066        } && test -s conftest$ac_exeext && {
2067          test "$cross_compiling" = yes ||
2068          $as_test_x conftest$ac_exeext
2069        }; then :
2070   ac_retval=0
2071 else
2072   $as_echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2074
2075         ac_retval=1
2076 fi
2077   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2078   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2079   # interfere with the next link command; also delete a directory that is
2080   # left behind by Apple's compiler.  We do this before executing the actions.
2081   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2083   as_fn_set_status $ac_retval
2084
2085 } # ac_fn_c_try_link
2086
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2091 {
2092   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval "test \"\${$3+set}\"" = set; then :
2096   $as_echo_n "(cached) " >&6
2097 else
2098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h.  */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2102 #define $2 innocuous_$2
2103
2104 /* System header to define __stub macros and hopefully few prototypes,
2105     which can conflict with char $2 (); below.
2106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107     <limits.h> exists even on freestanding compilers.  */
2108
2109 #ifdef __STDC__
2110 # include <limits.h>
2111 #else
2112 # include <assert.h>
2113 #endif
2114
2115 #undef $2
2116
2117 /* Override any GCC internal prototype to avoid an error.
2118    Use char because int might match the return type of a GCC
2119    builtin and then its argument prototype would still apply.  */
2120 #ifdef __cplusplus
2121 extern "C"
2122 #endif
2123 char $2 ();
2124 /* The GNU C library defines this for functions which it implements
2125     to always fail with ENOSYS.  Some functions are actually named
2126     something starting with __ and the normal name is an alias.  */
2127 #if defined __stub_$2 || defined __stub___$2
2128 choke me
2129 #endif
2130
2131 int
2132 main ()
2133 {
2134 return $2 ();
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_link "$LINENO"; then :
2140   eval "$3=yes"
2141 else
2142   eval "$3=no"
2143 fi
2144 rm -f core conftest.err conftest.$ac_objext \
2145     conftest$ac_exeext conftest.$ac_ext
2146 fi
2147 eval ac_res=\$$3
2148                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151
2152 } # ac_fn_c_check_func
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2156
2157 It was created by $as_me, which was
2158 generated by GNU Autoconf 2.67.  Invocation command line was
2159
2160   $ $0 $@
2161
2162 _ACEOF
2163 exec 5>>config.log
2164 {
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2169
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2178
2179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2186
2187 _ASUNAME
2188
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194     $as_echo "PATH: $as_dir"
2195   done
2196 IFS=$as_save_IFS
2197
2198 } >&5
2199
2200 cat >&5 <<_ACEOF
2201
2202
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2206
2207 _ACEOF
2208
2209
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2220 do
2221   for ac_arg
2222   do
2223     case $ac_arg in
2224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226     | -silent | --silent | --silen | --sile | --sil)
2227       continue ;;
2228     *\'*)
2229       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230     esac
2231     case $ac_pass in
2232     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233     2)
2234       as_fn_append ac_configure_args1 " '$ac_arg'"
2235       if test $ac_must_keep_next = true; then
2236         ac_must_keep_next=false # Got value, back to normal.
2237       else
2238         case $ac_arg in
2239           *=* | --config-cache | -C | -disable-* | --disable-* \
2240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242           | -with-* | --with-* | -without-* | --without-* | --x)
2243             case "$ac_configure_args0 " in
2244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245             esac
2246             ;;
2247           -* ) ac_must_keep_next=true ;;
2248         esac
2249       fi
2250       as_fn_append ac_configure_args " '$ac_arg'"
2251       ;;
2252     esac
2253   done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2257
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log.  We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264   # Save into config.log some information that might help in debugging.
2265   {
2266     echo
2267
2268     $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2271     echo
2272     # The following way of writing the cache mishandles newlines in values,
2273 (
2274   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275     eval ac_val=\$$ac_var
2276     case $ac_val in #(
2277     *${as_nl}*)
2278       case $ac_var in #(
2279       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2281       esac
2282       case $ac_var in #(
2283       _ | IFS | as_nl) ;; #(
2284       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285       *) { eval $ac_var=; unset $ac_var;} ;;
2286       esac ;;
2287     esac
2288   done
2289   (set) 2>&1 |
2290     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291     *${as_nl}ac_space=\ *)
2292       sed -n \
2293         "s/'\''/'\''\\\\'\'''\''/g;
2294           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2295       ;; #(
2296     *)
2297       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2298       ;;
2299     esac |
2300     sort
2301 )
2302     echo
2303
2304     $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2307     echo
2308     for ac_var in $ac_subst_vars
2309     do
2310       eval ac_val=\$$ac_var
2311       case $ac_val in
2312       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313       esac
2314       $as_echo "$ac_var='\''$ac_val'\''"
2315     done | sort
2316     echo
2317
2318     if test -n "$ac_subst_files"; then
2319       $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2322       echo
2323       for ac_var in $ac_subst_files
2324       do
2325         eval ac_val=\$$ac_var
2326         case $ac_val in
2327         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328         esac
2329         $as_echo "$ac_var='\''$ac_val'\''"
2330       done | sort
2331       echo
2332     fi
2333
2334     if test -s confdefs.h; then
2335       $as_echo "## ----------- ##
2336 ## confdefs.h. ##
2337 ## ----------- ##"
2338       echo
2339       cat confdefs.h
2340       echo
2341     fi
2342     test "$ac_signal" != 0 &&
2343       $as_echo "$as_me: caught signal $ac_signal"
2344     $as_echo "$as_me: exit $exit_status"
2345   } >&5
2346   rm -f core *.core core.conftest.* &&
2347     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2348     exit $exit_status
2349 ' 0
2350 for ac_signal in 1 2 13 15; do
2351   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2352 done
2353 ac_signal=0
2354
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest* confdefs.h
2357
2358 $as_echo "/* confdefs.h */" > confdefs.h
2359
2360 # Predefined preprocessor variables.
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2384 _ACEOF
2385
2386
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2389 ac_site_file1=NONE
2390 ac_site_file2=NONE
2391 if test -n "$CONFIG_SITE"; then
2392   # We do not want a PATH search for config.site.
2393   case $CONFIG_SITE in #((
2394     -*)  ac_site_file1=./$CONFIG_SITE;;
2395     */*) ac_site_file1=$CONFIG_SITE;;
2396     *)   ac_site_file1=./$CONFIG_SITE;;
2397   esac
2398 elif test "x$prefix" != xNONE; then
2399   ac_site_file1=$prefix/share/config.site
2400   ac_site_file2=$prefix/etc/config.site
2401 else
2402   ac_site_file1=$ac_default_prefix/share/config.site
2403   ac_site_file2=$ac_default_prefix/etc/config.site
2404 fi
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406 do
2407   test "x$ac_site_file" = xNONE && continue
2408   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411     sed 's/^/| /' "$ac_site_file" >&5
2412     . "$ac_site_file" \
2413       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $? "failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5 ; }
2417   fi
2418 done
2419
2420 if test -r "$cache_file"; then
2421   # Some versions of bash will fail to source /dev/null (special files
2422   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2423   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426     case $cache_file in
2427       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428       *)                      . "./$cache_file";;
2429     esac
2430   fi
2431 else
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2434   >$cache_file
2435 fi
2436
2437 # Check that the precious variables saved in the cache have kept the same
2438 # value.
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442   eval ac_new_set=\$ac_env_${ac_var}_set
2443   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444   eval ac_new_val=\$ac_env_${ac_var}_value
2445   case $ac_old_set,$ac_new_set in
2446     set,)
2447       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449       ac_cache_corrupted=: ;;
2450     ,set)
2451       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453       ac_cache_corrupted=: ;;
2454     ,);;
2455     *)
2456       if test "x$ac_old_val" != "x$ac_new_val"; then
2457         # differences in whitespace do not lead to failure.
2458         ac_old_val_w=`echo x $ac_old_val`
2459         ac_new_val_w=`echo x $ac_new_val`
2460         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463           ac_cache_corrupted=:
2464         else
2465           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467           eval $ac_var=\$ac_old_val
2468         fi
2469         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2470 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2471         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2473       fi;;
2474   esac
2475   # Pass precious variables to config.status.
2476   if test "$ac_new_set" = set; then
2477     case $ac_new_val in
2478     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479     *) ac_arg=$ac_var=$ac_new_val ;;
2480     esac
2481     case " $ac_configure_args " in
2482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2483       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484     esac
2485   fi
2486 done
2487 if $ac_cache_corrupted; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 fi
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2497
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503
2504
2505 ac_config_headers="$ac_config_headers config.h"
2506
2507
2508 ac_aux_dir=
2509 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510   if test -f "$ac_dir/install-sh"; then
2511     ac_aux_dir=$ac_dir
2512     ac_install_sh="$ac_aux_dir/install-sh -c"
2513     break
2514   elif test -f "$ac_dir/install.sh"; then
2515     ac_aux_dir=$ac_dir
2516     ac_install_sh="$ac_aux_dir/install.sh -c"
2517     break
2518   elif test -f "$ac_dir/shtool"; then
2519     ac_aux_dir=$ac_dir
2520     ac_install_sh="$ac_aux_dir/shtool install -c"
2521     break
2522   fi
2523 done
2524 if test -z "$ac_aux_dir"; then
2525   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526 fi
2527
2528 # These three variables are undocumented and unsupported,
2529 # and are intended to be withdrawn in a future Autoconf release.
2530 # They can cause serious problems if a builder's source tree is in a directory
2531 # whose full name contains unusual characters.
2532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537 # Make sure we can run config.sub.
2538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2539   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542 $as_echo_n "checking build system type... " >&6; }
2543 if test "${ac_cv_build+set}" = set; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   ac_build_alias=$build_alias
2547 test "x$ac_build_alias" = x &&
2548   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549 test "x$ac_build_alias" = x &&
2550   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2553
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556 $as_echo "$ac_cv_build" >&6; }
2557 case $ac_cv_build in
2558 *-*-*) ;;
2559 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2560 esac
2561 build=$ac_cv_build
2562 ac_save_IFS=$IFS; IFS='-'
2563 set x $ac_cv_build
2564 shift
2565 build_cpu=$1
2566 build_vendor=$2
2567 shift; shift
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2570 build_os=$*
2571 IFS=$ac_save_IFS
2572 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2573
2574
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576 $as_echo_n "checking host system type... " >&6; }
2577 if test "${ac_cv_host+set}" = set; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test "x$host_alias" = x; then
2581   ac_cv_host=$ac_cv_build
2582 else
2583   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2585 fi
2586
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589 $as_echo "$ac_cv_host" >&6; }
2590 case $ac_cv_host in
2591 *-*-*) ;;
2592 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2593 esac
2594 host=$ac_cv_host
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_host
2597 shift
2598 host_cpu=$1
2599 host_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 host_os=$*
2604 IFS=$ac_save_IFS
2605 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2606
2607
2608
2609 LIBXML_MAJOR_VERSION=2
2610 LIBXML_MINOR_VERSION=7
2611 LIBXML_MICRO_VERSION=8
2612 LIBXML_MICRO_VERSION_SUFFIX=
2613 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
2614 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
2615
2616 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
2617
2618 if test -f CVS/Entries ; then
2619   extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%`
2620   echo extra=$extra
2621   if test "$extra" != ""
2622   then
2623       LIBXML_VERSION_EXTRA="-CVS$extra"
2624   fi
2625 else if test -d .svn ; then
2626   extra=`svn info | grep Revision | sed 's+Revision: ++'`
2627   echo extra=$extra
2628   if test "$extra" != ""
2629   then
2630       LIBXML_VERSION_EXTRA="-SVN$extra"
2631   fi
2632 else if test -d .git ; then
2633   extra=`git describe | sed 's+LIBXML[0-9.]*-++'`
2634   echo extra=$extra
2635   if test "$extra" != ""
2636   then
2637       LIBXML_VERSION_EXTRA="-GIT$extra"
2638   fi
2639 fi
2640 fi
2641 fi
2642
2643
2644
2645
2646
2647
2648
2649
2650 VERSION=${LIBXML_VERSION}
2651
2652 am__api_version='1.11'
2653
2654 # Find a good install program.  We prefer a C program (faster),
2655 # so one script is as good as another.  But avoid the broken or
2656 # incompatible versions:
2657 # SysV /etc/install, /usr/sbin/install
2658 # SunOS /usr/etc/install
2659 # IRIX /sbin/install
2660 # AIX /bin/install
2661 # AmigaOS /C/install, which installs bootblocks on floppy discs
2662 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2663 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2664 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2665 # OS/2's system install, which has a completely different semantic
2666 # ./install, which can be erroneously created by make from ./install.sh.
2667 # Reject install programs that cannot install multiple files.
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2669 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2670 if test -z "$INSTALL"; then
2671 if test "${ac_cv_path_install+set}" = set; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2676 do
2677   IFS=$as_save_IFS
2678   test -z "$as_dir" && as_dir=.
2679     # Account for people who put trailing slashes in PATH elements.
2680 case $as_dir/ in #((
2681   ./ | .// | /[cC]/* | \
2682   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2683   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2684   /usr/ucb/* ) ;;
2685   *)
2686     # OSF1 and SCO ODT 3.0 have their own names for install.
2687     # Don't use installbsd from OSF since it installs stuff as root
2688     # by default.
2689     for ac_prog in ginstall scoinst install; do
2690       for ac_exec_ext in '' $ac_executable_extensions; do
2691         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2692           if test $ac_prog = install &&
2693             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694             # AIX install.  It has an incompatible calling convention.
2695             :
2696           elif test $ac_prog = install &&
2697             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2698             # program-specific install script used by HP pwplus--don't use.
2699             :
2700           else
2701             rm -rf conftest.one conftest.two conftest.dir
2702             echo one > conftest.one
2703             echo two > conftest.two
2704             mkdir conftest.dir
2705             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2706               test -s conftest.one && test -s conftest.two &&
2707               test -s conftest.dir/conftest.one &&
2708               test -s conftest.dir/conftest.two
2709             then
2710               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2711               break 3
2712             fi
2713           fi
2714         fi
2715       done
2716     done
2717     ;;
2718 esac
2719
2720   done
2721 IFS=$as_save_IFS
2722
2723 rm -rf conftest.one conftest.two conftest.dir
2724
2725 fi
2726   if test "${ac_cv_path_install+set}" = set; then
2727     INSTALL=$ac_cv_path_install
2728   else
2729     # As a last resort, use the slow shell script.  Don't cache a
2730     # value for INSTALL within a source directory, because that will
2731     # break other packages using the cache if that directory is
2732     # removed, or if the value is a relative name.
2733     INSTALL=$ac_install_sh
2734   fi
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2737 $as_echo "$INSTALL" >&6; }
2738
2739 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2740 # It thinks the first close brace ends the variable substitution.
2741 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2742
2743 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2744
2745 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2748 $as_echo_n "checking whether build environment is sane... " >&6; }
2749 # Just in case
2750 sleep 1
2751 echo timestamp > conftest.file
2752 # Reject unsafe characters in $srcdir or the absolute working directory
2753 # name.  Accept space and tab only in the latter.
2754 am_lf='
2755 '
2756 case `pwd` in
2757   *[\\\"\#\$\&\'\`$am_lf]*)
2758     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2759 esac
2760 case $srcdir in
2761   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2762     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2763 esac
2764
2765 # Do `set' in a subshell so we don't clobber the current shell's
2766 # arguments.  Must try -L first in case configure is actually a
2767 # symlink; some systems play weird games with the mod time of symlinks
2768 # (eg FreeBSD returns the mod time of the symlink's containing
2769 # directory).
2770 if (
2771    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2772    if test "$*" = "X"; then
2773       # -L didn't work.
2774       set X `ls -t "$srcdir/configure" conftest.file`
2775    fi
2776    rm -f conftest.file
2777    if test "$*" != "X $srcdir/configure conftest.file" \
2778       && test "$*" != "X conftest.file $srcdir/configure"; then
2779
2780       # If neither matched, then we have a broken ls.  This can happen
2781       # if, for instance, CONFIG_SHELL is bash and it inherits a
2782       # broken ls alias from the environment.  This has actually
2783       # happened.  Such a system could not be considered "sane".
2784       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2785 alias in your environment" "$LINENO" 5
2786    fi
2787
2788    test "$2" = conftest.file
2789    )
2790 then
2791    # Ok.
2792    :
2793 else
2794    as_fn_error $? "newly created file is older than distributed files!
2795 Check your system clock" "$LINENO" 5
2796 fi
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2798 $as_echo "yes" >&6; }
2799 test "$program_prefix" != NONE &&
2800   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2801 # Use a double $ so make ignores it.
2802 test "$program_suffix" != NONE &&
2803   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2804 # Double any \ or $.
2805 # By default was `s,x,x', remove it if useless.
2806 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2807 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2808
2809 # expand $ac_aux_dir to an absolute path
2810 am_aux_dir=`cd $ac_aux_dir && pwd`
2811
2812 if test x"${MISSING+set}" != xset; then
2813   case $am_aux_dir in
2814   *\ * | *\     *)
2815     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2816   *)
2817     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2818   esac
2819 fi
2820 # Use eval to expand $SHELL
2821 if eval "$MISSING --run true"; then
2822   am_missing_run="$MISSING --run "
2823 else
2824   am_missing_run=
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2826 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2827 fi
2828
2829 if test x"${install_sh}" != xset; then
2830   case $am_aux_dir in
2831   *\ * | *\     *)
2832     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2833   *)
2834     install_sh="\${SHELL} $am_aux_dir/install-sh"
2835   esac
2836 fi
2837
2838 # Installed binaries are usually stripped using `strip' when the user
2839 # run `make install-strip'.  However `strip' might not be the right
2840 # tool to use in cross-compilation environments, therefore Automake
2841 # will honor the `STRIP' environment variable to overrule this program.
2842 if test "$cross_compiling" != no; then
2843   if test -n "$ac_tool_prefix"; then
2844   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}strip; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if test "${ac_cv_prog_STRIP+set}" = set; then :
2849   $as_echo_n "(cached) " >&6
2850 else
2851   if test -n "$STRIP"; then
2852   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857   IFS=$as_save_IFS
2858   test -z "$as_dir" && as_dir=.
2859     for ac_exec_ext in '' $ac_executable_extensions; do
2860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863     break 2
2864   fi
2865 done
2866   done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 STRIP=$ac_cv_prog_STRIP
2872 if test -n "$STRIP"; then
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2874 $as_echo "$STRIP" >&6; }
2875 else
2876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881 fi
2882 if test -z "$ac_cv_prog_STRIP"; then
2883   ac_ct_STRIP=$STRIP
2884   # Extract the first word of "strip", so it can be a program name with args.
2885 set dummy strip; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2889   $as_echo_n "(cached) " >&6
2890 else
2891   if test -n "$ac_ct_STRIP"; then
2892   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899     for ac_exec_ext in '' $ac_executable_extensions; do
2900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901     ac_cv_prog_ac_ct_STRIP="strip"
2902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903     break 2
2904   fi
2905 done
2906   done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2912 if test -n "$ac_ct_STRIP"; then
2913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2914 $as_echo "$ac_ct_STRIP" >&6; }
2915 else
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920   if test "x$ac_ct_STRIP" = x; then
2921     STRIP=":"
2922   else
2923     case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929     STRIP=$ac_ct_STRIP
2930   fi
2931 else
2932   STRIP="$ac_cv_prog_STRIP"
2933 fi
2934
2935 fi
2936 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2937
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2939 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2940 if test -z "$MKDIR_P"; then
2941   if test "${ac_cv_path_mkdir+set}" = set; then :
2942   $as_echo_n "(cached) " >&6
2943 else
2944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2946 do
2947   IFS=$as_save_IFS
2948   test -z "$as_dir" && as_dir=.
2949     for ac_prog in mkdir gmkdir; do
2950          for ac_exec_ext in '' $ac_executable_extensions; do
2951            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2952            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2953              'mkdir (GNU coreutils) '* | \
2954              'mkdir (coreutils) '* | \
2955              'mkdir (fileutils) '4.1*)
2956                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2957                break 3;;
2958            esac
2959          done
2960        done
2961   done
2962 IFS=$as_save_IFS
2963
2964 fi
2965
2966   test -d ./--version && rmdir ./--version
2967   if test "${ac_cv_path_mkdir+set}" = set; then
2968     MKDIR_P="$ac_cv_path_mkdir -p"
2969   else
2970     # As a last resort, use the slow shell script.  Don't cache a
2971     # value for MKDIR_P within a source directory, because that will
2972     # break other packages using the cache if that directory is
2973     # removed, or if the value is a relative name.
2974     MKDIR_P="$ac_install_sh -d"
2975   fi
2976 fi
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2978 $as_echo "$MKDIR_P" >&6; }
2979
2980 mkdir_p="$MKDIR_P"
2981 case $mkdir_p in
2982   [\\/$]* | ?:[\\/]*) ;;
2983   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2984 esac
2985
2986 for ac_prog in gawk mawk nawk awk
2987 do
2988   # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_AWK+set}" = set; then :
2993   $as_echo_n "(cached) " >&6
2994 else
2995   if test -n "$AWK"; then
2996   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     for ac_exec_ext in '' $ac_executable_extensions; do
3004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005     ac_cv_prog_AWK="$ac_prog"
3006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007     break 2
3008   fi
3009 done
3010   done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 AWK=$ac_cv_prog_AWK
3016 if test -n "$AWK"; then
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3018 $as_echo "$AWK" >&6; }
3019 else
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025   test -n "$AWK" && break
3026 done
3027
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3029 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3030 set x ${MAKE-make}
3031 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3032 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   cat >conftest.make <<\_ACEOF
3036 SHELL = /bin/sh
3037 all:
3038         @echo '@@@%%%=$(MAKE)=@@@%%%'
3039 _ACEOF
3040 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3041 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3042   *@@@%%%=?*=@@@%%%*)
3043     eval ac_cv_prog_make_${ac_make}_set=yes;;
3044   *)
3045     eval ac_cv_prog_make_${ac_make}_set=no;;
3046 esac
3047 rm -f conftest.make
3048 fi
3049 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051 $as_echo "yes" >&6; }
3052   SET_MAKE=
3053 else
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056   SET_MAKE="MAKE=${MAKE-make}"
3057 fi
3058
3059 rm -rf .tst 2>/dev/null
3060 mkdir .tst 2>/dev/null
3061 if test -d .tst; then
3062   am__leading_dot=.
3063 else
3064   am__leading_dot=_
3065 fi
3066 rmdir .tst 2>/dev/null
3067
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070   # is not polluted with repeated "-I."
3071   am__isrc=' -I$(srcdir)'
3072   # test to see if srcdir already configured
3073   if test -f $srcdir/config.status; then
3074     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3075   fi
3076 fi
3077
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080   if (cygpath --version) >/dev/null 2>/dev/null; then
3081     CYGPATH_W='cygpath -w'
3082   else
3083     CYGPATH_W=echo
3084   fi
3085 fi
3086
3087
3088 # Define the identity of the package.
3089  PACKAGE=libxml2
3090  VERSION=$VERSION
3091
3092
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE "$PACKAGE"
3095 _ACEOF
3096
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define VERSION "$VERSION"
3100 _ACEOF
3101
3102 # Some tools Automake needs.
3103
3104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3105
3106
3107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3108
3109
3110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3111
3112
3113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3114
3115
3116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3117
3118 # We need awk for the "check" target.  The system "awk" is bad on
3119 # some platforms.
3120 # Always define AMTAR for backward compatibility.
3121
3122 AMTAR=${AMTAR-"${am_missing_run}tar"}
3123
3124 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3125
3126
3127
3128
3129
3130
3131 ac_ext=c
3132 ac_cpp='$CPP $CPPFLAGS'
3133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136 if test -n "$ac_tool_prefix"; then
3137   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3138 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if test "${ac_cv_prog_CC+set}" = set; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$CC"; then
3145   ac_cv_prog_CC="$CC" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 CC=$ac_cv_prog_CC
3165 if test -n "$CC"; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3167 $as_echo "$CC" >&6; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174 fi
3175 if test -z "$ac_cv_prog_CC"; then
3176   ac_ct_CC=$CC
3177   # Extract the first word of "gcc", so it can be a program name with args.
3178 set dummy gcc; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   if test -n "$ac_ct_CC"; then
3185   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192     for ac_exec_ext in '' $ac_executable_extensions; do
3193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194     ac_cv_prog_ac_ct_CC="gcc"
3195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199   done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205 if test -n "$ac_ct_CC"; then
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207 $as_echo "$ac_ct_CC" >&6; }
3208 else
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3211 fi
3212
3213   if test "x$ac_ct_CC" = x; then
3214     CC=""
3215   else
3216     case $cross_compiling:$ac_tool_warned in
3217 yes:)
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3220 ac_tool_warned=yes ;;
3221 esac
3222     CC=$ac_ct_CC
3223   fi
3224 else
3225   CC="$ac_cv_prog_CC"
3226 fi
3227
3228 if test -z "$CC"; then
3229           if test -n "$ac_tool_prefix"; then
3230     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}cc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_CC+set}" = set; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   if test -n "$CC"; then
3238   ac_cv_prog_CC="$CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245     for ac_exec_ext in '' $ac_executable_extensions; do
3246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247     ac_cv_prog_CC="${ac_tool_prefix}cc"
3248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252   done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 CC=$ac_cv_prog_CC
3258 if test -n "$CC"; then
3259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3260 $as_echo "$CC" >&6; }
3261 else
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266
3267   fi
3268 fi
3269 if test -z "$CC"; then
3270   # Extract the first word of "cc", so it can be a program name with args.
3271 set dummy cc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if test "${ac_cv_prog_CC+set}" = set; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   if test -n "$CC"; then
3278   ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280   ac_prog_rejected=no
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284   IFS=$as_save_IFS
3285   test -z "$as_dir" && as_dir=.
3286     for ac_exec_ext in '' $ac_executable_extensions; do
3287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3289        ac_prog_rejected=yes
3290        continue
3291      fi
3292     ac_cv_prog_CC="cc"
3293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294     break 2
3295   fi
3296 done
3297   done
3298 IFS=$as_save_IFS
3299
3300 if test $ac_prog_rejected = yes; then
3301   # We found a bogon in the path, so make sure we never use it.
3302   set dummy $ac_cv_prog_CC
3303   shift
3304   if test $# != 0; then
3305     # We chose a different compiler from the bogus one.
3306     # However, it has the same basename, so the bogon will be chosen
3307     # first if we set CC to just the basename; use the full file name.
3308     shift
3309     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3310   fi
3311 fi
3312 fi
3313 fi
3314 CC=$ac_cv_prog_CC
3315 if test -n "$CC"; then
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3317 $as_echo "$CC" >&6; }
3318 else
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 fi
3322
3323
3324 fi
3325 if test -z "$CC"; then
3326   if test -n "$ac_tool_prefix"; then
3327   for ac_prog in cl.exe
3328   do
3329     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_CC+set}" = set; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$CC"; then
3337   ac_cv_prog_CC="$CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351   done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 CC=$ac_cv_prog_CC
3357 if test -n "$CC"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366     test -n "$CC" && break
3367   done
3368 fi
3369 if test -z "$CC"; then
3370   ac_ct_CC=$CC
3371   for ac_prog in cl.exe
3372 do
3373   # Extract the first word of "$ac_prog", so it can be a program name with args.
3374 set dummy $ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   if test -n "$ac_ct_CC"; then
3381   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390     ac_cv_prog_ac_ct_CC="$ac_prog"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3401 if test -n "$ac_ct_CC"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3403 $as_echo "$ac_ct_CC" >&6; }
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409
3410   test -n "$ac_ct_CC" && break
3411 done
3412
3413   if test "x$ac_ct_CC" = x; then
3414     CC=""
3415   else
3416     case $cross_compiling:$ac_tool_warned in
3417 yes:)
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420 ac_tool_warned=yes ;;
3421 esac
3422     CC=$ac_ct_CC
3423   fi
3424 fi
3425
3426 fi
3427
3428
3429 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3431 as_fn_error $? "no acceptable C compiler found in \$PATH
3432 See \`config.log' for more details" "$LINENO" 5 ; }
3433
3434 # Provide some information about the compiler.
3435 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3436 set X $ac_compile
3437 ac_compiler=$2
3438 for ac_option in --version -v -V -qversion; do
3439   { { ac_try="$ac_compiler $ac_option >&5"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3447   ac_status=$?
3448   if test -s conftest.err; then
3449     sed '10a\
3450 ... rest of stderr output deleted ...
3451          10q' conftest.err >conftest.er1
3452     cat conftest.er1 >&5
3453   fi
3454   rm -f conftest.er1 conftest.err
3455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456   test $ac_status = 0; }
3457 done
3458
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 ac_clean_files_save=$ac_clean_files
3471 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3472 # Try to create an executable without -o first, disregard a.out.
3473 # It will help us diagnose broken compilers, and finding out an intuition
3474 # of exeext.
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3476 $as_echo_n "checking whether the C compiler works... " >&6; }
3477 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3478
3479 # The possible output files:
3480 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3481
3482 ac_rmfiles=
3483 for ac_file in $ac_files
3484 do
3485   case $ac_file in
3486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3487     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3488   esac
3489 done
3490 rm -f $ac_rmfiles
3491
3492 if { { ac_try="$ac_link_default"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499   (eval "$ac_link_default") 2>&5
3500   ac_status=$?
3501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502   test $ac_status = 0; }; then :
3503   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3504 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3505 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3506 # so that the user can short-circuit this test for compilers unknown to
3507 # Autoconf.
3508 for ac_file in $ac_files ''
3509 do
3510   test -f "$ac_file" || continue
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3513         ;;
3514     [ab].out )
3515         # We found the default executable, but exeext='' is most
3516         # certainly right.
3517         break;;
3518     *.* )
3519         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3520         then :; else
3521            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3522         fi
3523         # We set ac_cv_exeext here because the later test for it is not
3524         # safe: cross compilers may not add the suffix if given an `-o'
3525         # argument, so we may need to know it at that point already.
3526         # Even if this section looks crufty: it has the advantage of
3527         # actually working.
3528         break;;
3529     * )
3530         break;;
3531   esac
3532 done
3533 test "$ac_cv_exeext" = no && ac_cv_exeext=
3534
3535 else
3536   ac_file=''
3537 fi
3538 if test -z "$ac_file"; then :
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error 77 "C compiler cannot create executables
3547 See \`config.log' for more details" "$LINENO" 5 ; }
3548 else
3549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3550 $as_echo "yes" >&6; }
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3553 $as_echo_n "checking for C compiler default output file name... " >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3555 $as_echo "$ac_file" >&6; }
3556 ac_exeext=$ac_cv_exeext
3557
3558 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3559 ac_clean_files=$ac_clean_files_save
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3561 $as_echo_n "checking for suffix of executables... " >&6; }
3562 if { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569   (eval "$ac_link") 2>&5
3570   ac_status=$?
3571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572   test $ac_status = 0; }; then :
3573   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3574 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3575 # work properly (i.e., refer to `conftest.exe'), while it won't with
3576 # `rm'.
3577 for ac_file in conftest.exe conftest conftest.*; do
3578   test -f "$ac_file" || continue
3579   case $ac_file in
3580     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3581     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582           break;;
3583     * ) break;;
3584   esac
3585 done
3586 else
3587   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3590 See \`config.log' for more details" "$LINENO" 5 ; }
3591 fi
3592 rm -f conftest conftest$ac_cv_exeext
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3594 $as_echo "$ac_cv_exeext" >&6; }
3595
3596 rm -f conftest.$ac_ext
3597 EXEEXT=$ac_cv_exeext
3598 ac_exeext=$EXEEXT
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h.  */
3601 #include <stdio.h>
3602 int
3603 main ()
3604 {
3605 FILE *f = fopen ("conftest.out", "w");
3606  return ferror (f) || fclose (f) != 0;
3607
3608   ;
3609   return 0;
3610 }
3611 _ACEOF
3612 ac_clean_files="$ac_clean_files conftest.out"
3613 # Check that the compiler produces executables we can run.  If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 if test "$cross_compiling" != yes; then
3618   { { ac_try="$ac_link"
3619 case "(($ac_try" in
3620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621   *) ac_try_echo=$ac_try;;
3622 esac
3623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3624 $as_echo "$ac_try_echo"; } >&5
3625   (eval "$ac_link") 2>&5
3626   ac_status=$?
3627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628   test $ac_status = 0; }
3629   if { ac_try='./conftest$ac_cv_exeext'
3630   { { case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_try") 2>&5
3637   ac_status=$?
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }; }; then
3640     cross_compiling=no
3641   else
3642     if test "$cross_compiling" = maybe; then
3643         cross_compiling=yes
3644     else
3645         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details" "$LINENO" 5 ; }
3650     fi
3651   fi
3652 fi
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3654 $as_echo "$cross_compiling" >&6; }
3655
3656 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3657 ac_clean_files=$ac_clean_files_save
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3659 $as_echo_n "checking for suffix of object files... " >&6; }
3660 if test "${ac_cv_objext+set}" = set; then :
3661   $as_echo_n "(cached) " >&6
3662 else
3663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h.  */
3665
3666 int
3667 main ()
3668 {
3669
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.o conftest.obj
3675 if { { ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_compile") 2>&5
3683   ac_status=$?
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }; then :
3686   for ac_file in conftest.o conftest.obj conftest.*; do
3687   test -f "$ac_file" || continue;
3688   case $ac_file in
3689     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3690     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3691        break;;
3692   esac
3693 done
3694 else
3695   $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error $? "cannot compute suffix of object files: cannot compile
3701 See \`config.log' for more details" "$LINENO" 5 ; }
3702 fi
3703 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3706 $as_echo "$ac_cv_objext" >&6; }
3707 OBJEXT=$ac_cv_objext
3708 ac_objext=$OBJEXT
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3711 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716
3717 int
3718 main ()
3719 {
3720 #ifndef __GNUC__
3721        choke me
3722 #endif
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729   ac_compiler_gnu=yes
3730 else
3731   ac_compiler_gnu=no
3732 fi
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3735
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3739 if test $ac_compiler_gnu = yes; then
3740   GCC=yes
3741 else
3742   GCC=
3743 fi
3744 ac_test_CFLAGS=${CFLAGS+set}
3745 ac_save_CFLAGS=$CFLAGS
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3748 if test "${ac_cv_prog_cc_g+set}" = set; then :
3749   $as_echo_n "(cached) " >&6
3750 else
3751   ac_save_c_werror_flag=$ac_c_werror_flag
3752    ac_c_werror_flag=yes
3753    ac_cv_prog_cc_g=no
3754    CFLAGS="-g"
3755    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h.  */
3757
3758 int
3759 main ()
3760 {
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767   ac_cv_prog_cc_g=yes
3768 else
3769   CFLAGS=""
3770       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h.  */
3772
3773 int
3774 main ()
3775 {
3776
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782
3783 else
3784   ac_c_werror_flag=$ac_save_c_werror_flag
3785          CFLAGS="-g"
3786          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h.  */
3788
3789 int
3790 main ()
3791 {
3792
3793   ;
3794   return 0;
3795 }
3796 _ACEOF
3797 if ac_fn_c_try_compile "$LINENO"; then :
3798   ac_cv_prog_cc_g=yes
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3801 fi
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 fi
3804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805    ac_c_werror_flag=$ac_save_c_werror_flag
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3808 $as_echo "$ac_cv_prog_cc_g" >&6; }
3809 if test "$ac_test_CFLAGS" = set; then
3810   CFLAGS=$ac_save_CFLAGS
3811 elif test $ac_cv_prog_cc_g = yes; then
3812   if test "$GCC" = yes; then
3813     CFLAGS="-g -O2"
3814   else
3815     CFLAGS="-g"
3816   fi
3817 else
3818   if test "$GCC" = yes; then
3819     CFLAGS="-O2"
3820   else
3821     CFLAGS=
3822   fi
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3826 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3827   $as_echo_n "(cached) " >&6
3828 else
3829   ac_cv_prog_cc_c89=no
3830 ac_save_CC=$CC
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h.  */
3833 #include <stdarg.h>
3834 #include <stdio.h>
3835 #include <sys/types.h>
3836 #include <sys/stat.h>
3837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3838 struct buf { int x; };
3839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3840 static char *e (p, i)
3841      char **p;
3842      int i;
3843 {
3844   return p[i];
3845 }
3846 static char *f (char * (*g) (char **, int), char **p, ...)
3847 {
3848   char *s;
3849   va_list v;
3850   va_start (v,p);
3851   s = g (p, va_arg (v,int));
3852   va_end (v);
3853   return s;
3854 }
3855
3856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3857    function prototypes and stuff, but not '\xHH' hex character constants.
3858    These don't provoke an error unfortunately, instead are silently treated
3859    as 'x'.  The following induces an error, until -std is added to get
3860    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3861    array size at least.  It's necessary to write '\x00'==0 to get something
3862    that's true only with -std.  */
3863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3864
3865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3866    inside strings and character constants.  */
3867 #define FOO(x) 'x'
3868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3869
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3874 int argc;
3875 char **argv;
3876 int
3877 main ()
3878 {
3879 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3880   ;
3881   return 0;
3882 }
3883 _ACEOF
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3886 do
3887   CC="$ac_save_CC $ac_arg"
3888   if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_cv_prog_cc_c89=$ac_arg
3890 fi
3891 rm -f core conftest.err conftest.$ac_objext
3892   test "x$ac_cv_prog_cc_c89" != "xno" && break
3893 done
3894 rm -f conftest.$ac_ext
3895 CC=$ac_save_CC
3896
3897 fi
3898 # AC_CACHE_VAL
3899 case "x$ac_cv_prog_cc_c89" in
3900   x)
3901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3902 $as_echo "none needed" >&6; } ;;
3903   xno)
3904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3905 $as_echo "unsupported" >&6; } ;;
3906   *)
3907     CC="$CC $ac_cv_prog_cc_c89"
3908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3910 esac
3911 if test "x$ac_cv_prog_cc_c89" != xno; then :
3912
3913 fi
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 DEPDIR="${am__leading_dot}deps"
3921
3922 ac_config_commands="$ac_config_commands depfiles"
3923
3924
3925 am_make=${MAKE-make}
3926 cat > confinc << 'END'
3927 am__doit:
3928         @echo this is the am__doit target
3929 .PHONY: am__doit
3930 END
3931 # If we don't find an include directive, just comment out the code.
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3933 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3934 am__include="#"
3935 am__quote=
3936 _am_result=none
3937 # First try GNU make style include.
3938 echo "include confinc" > confmf
3939 # Ignore all kinds of additional output from `make'.
3940 case `$am_make -s -f confmf 2> /dev/null` in #(
3941 *the\ am__doit\ target*)
3942   am__include=include
3943   am__quote=
3944   _am_result=GNU
3945   ;;
3946 esac
3947 # Now try BSD make style include.
3948 if test "$am__include" = "#"; then
3949    echo '.include "confinc"' > confmf
3950    case `$am_make -s -f confmf 2> /dev/null` in #(
3951    *the\ am__doit\ target*)
3952      am__include=.include
3953      am__quote="\""
3954      _am_result=BSD
3955      ;;
3956    esac
3957 fi
3958
3959
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3961 $as_echo "$_am_result" >&6; }
3962 rm -f confinc confmf
3963
3964 # Check whether --enable-dependency-tracking was given.
3965 if test "${enable_dependency_tracking+set}" = set; then :
3966   enableval=$enable_dependency_tracking;
3967 fi
3968
3969 if test "x$enable_dependency_tracking" != xno; then
3970   am_depcomp="$ac_aux_dir/depcomp"
3971   AMDEPBACKSLASH='\'
3972 fi
3973  if test "x$enable_dependency_tracking" != xno; then
3974   AMDEP_TRUE=
3975   AMDEP_FALSE='#'
3976 else
3977   AMDEP_TRUE='#'
3978   AMDEP_FALSE=
3979 fi
3980
3981
3982
3983 depcc="$CC"   am_compiler_list=
3984
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3986 $as_echo_n "checking dependency style of $depcc... " >&6; }
3987 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3991   # We make a subdir and do the tests there.  Otherwise we can end up
3992   # making bogus files that we don't know about and never remove.  For
3993   # instance it was reported that on HP-UX the gcc test will end up
3994   # making a dummy file named `D' -- because `-MD' means `put the output
3995   # in D'.
3996   mkdir conftest.dir
3997   # Copy depcomp to subdir because otherwise we won't find it if we're
3998   # using a relative directory.
3999   cp "$am_depcomp" conftest.dir
4000   cd conftest.dir
4001   # We will build objects and dependencies in a subdirectory because
4002   # it helps to detect inapplicable dependency modes.  For instance
4003   # both Tru64's cc and ICC support -MD to output dependencies as a
4004   # side effect of compilation, but ICC will put the dependencies in
4005   # the current directory while Tru64 will put them in the object
4006   # directory.
4007   mkdir sub
4008
4009   am_cv_CC_dependencies_compiler_type=none
4010   if test "$am_compiler_list" = ""; then
4011      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4012   fi
4013   am__universal=false
4014   case " $depcc " in #(
4015      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4016      esac
4017
4018   for depmode in $am_compiler_list; do
4019     # Setup a source with many dependencies, because some compilers
4020     # like to wrap large dependency lists on column 80 (with \), and
4021     # we should not choose a depcomp mode which is confused by this.
4022     #
4023     # We need to recreate these files for each test, as the compiler may
4024     # overwrite some of them when testing with obscure command lines.
4025     # This happens at least with the AIX C compiler.
4026     : > sub/conftest.c
4027     for i in 1 2 3 4 5 6; do
4028       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4029       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4030       # Solaris 8's {/usr,}/bin/sh.
4031       touch sub/conftst$i.h
4032     done
4033     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4034
4035     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4036     # mode.  It turns out that the SunPro C++ compiler does not properly
4037     # handle `-M -o', and we need to detect this.  Also, some Intel
4038     # versions had trouble with output in subdirs
4039     am__obj=sub/conftest.${OBJEXT-o}
4040     am__minus_obj="-o $am__obj"
4041     case $depmode in
4042     gcc)
4043       # This depmode causes a compiler race in universal mode.
4044       test "$am__universal" = false || continue
4045       ;;
4046     nosideeffect)
4047       # after this tag, mechanisms are not by side-effect, so they'll
4048       # only be used when explicitly requested
4049       if test "x$enable_dependency_tracking" = xyes; then
4050         continue
4051       else
4052         break
4053       fi
4054       ;;
4055     msvisualcpp | msvcmsys)
4056       # This compiler won't grok `-c -o', but also, the minuso test has
4057       # not run yet.  These depmodes are late enough in the game, and
4058       # so weak that their functioning should not be impacted.
4059       am__obj=conftest.${OBJEXT-o}
4060       am__minus_obj=
4061       ;;
4062     none) break ;;
4063     esac
4064     if depmode=$depmode \
4065        source=sub/conftest.c object=$am__obj \
4066        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4067        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4068          >/dev/null 2>conftest.err &&
4069        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4070        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4071        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4072        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4073       # icc doesn't choke on unknown options, it will just issue warnings
4074       # or remarks (even with -Werror).  So we grep stderr for any message
4075       # that says an option was ignored or not supported.
4076       # When given -MP, icc 7.0 and 7.1 complain thusly:
4077       #   icc: Command line warning: ignoring option '-M'; no argument required
4078       # The diagnosis changed in icc 8.0:
4079       #   icc: Command line remark: option '-MP' not supported
4080       if (grep 'ignoring option' conftest.err ||
4081           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4082         am_cv_CC_dependencies_compiler_type=$depmode
4083         break
4084       fi
4085     fi
4086   done
4087
4088   cd ..
4089   rm -rf conftest.dir
4090 else
4091   am_cv_CC_dependencies_compiler_type=none
4092 fi
4093
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4096 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4097 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4098
4099  if
4100   test "x$enable_dependency_tracking" != xno \
4101   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4102   am__fastdepCC_TRUE=
4103   am__fastdepCC_FALSE='#'
4104 else
4105   am__fastdepCC_TRUE='#'
4106   am__fastdepCC_FALSE=
4107 fi
4108
4109
4110
4111
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4118 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4119 # On Suns, sometimes $CPP names a directory.
4120 if test -n "$CPP" && test -d "$CPP"; then
4121   CPP=
4122 fi
4123 if test -z "$CPP"; then
4124   if test "${ac_cv_prog_CPP+set}" = set; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127       # Double quotes because CPP needs to be expanded
4128     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4129     do
4130       ac_preproc_ok=false
4131 for ac_c_preproc_warn_flag in '' yes
4132 do
4133   # Use a header file that comes with gcc, so configuring glibc
4134   # with a fresh cross-compiler works.
4135   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136   # <limits.h> exists even on freestanding compilers.
4137   # On the NeXT, cc -E runs the code through the compiler's parser,
4138   # not just through cpp. "Syntax error" is here to catch this case.
4139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h.  */
4141 #ifdef __STDC__
4142 # include <limits.h>
4143 #else
4144 # include <assert.h>
4145 #endif
4146                      Syntax error
4147 _ACEOF
4148 if ac_fn_c_try_cpp "$LINENO"; then :
4149
4150 else
4151   # Broken: fails on valid input.
4152 continue
4153 fi
4154 rm -f conftest.err conftest.i conftest.$ac_ext
4155
4156   # OK, works on sane cases.  Now check whether nonexistent headers
4157   # can be detected and how.
4158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160 #include <ac_nonexistent.h>
4161 _ACEOF
4162 if ac_fn_c_try_cpp "$LINENO"; then :
4163   # Broken: success on invalid input.
4164 continue
4165 else
4166   # Passes both tests.
4167 ac_preproc_ok=:
4168 break
4169 fi
4170 rm -f conftest.err conftest.i conftest.$ac_ext
4171
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.i conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then :
4176   break
4177 fi
4178
4179     done
4180     ac_cv_prog_CPP=$CPP
4181
4182 fi
4183   CPP=$ac_cv_prog_CPP
4184 else
4185   ac_cv_prog_CPP=$CPP
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4191 do
4192   # Use a header file that comes with gcc, so configuring glibc
4193   # with a fresh cross-compiler works.
4194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195   # <limits.h> exists even on freestanding compilers.
4196   # On the NeXT, cc -E runs the code through the compiler's parser,
4197   # not just through cpp. "Syntax error" is here to catch this case.
4198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199 /* end confdefs.h.  */
4200 #ifdef __STDC__
4201 # include <limits.h>
4202 #else
4203 # include <assert.h>
4204 #endif
4205                      Syntax error
4206 _ACEOF
4207 if ac_fn_c_try_cpp "$LINENO"; then :
4208
4209 else
4210   # Broken: fails on valid input.
4211 continue
4212 fi
4213 rm -f conftest.err conftest.i conftest.$ac_ext
4214
4215   # OK, works on sane cases.  Now check whether nonexistent headers
4216   # can be detected and how.
4217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h.  */
4219 #include <ac_nonexistent.h>
4220 _ACEOF
4221 if ac_fn_c_try_cpp "$LINENO"; then :
4222   # Broken: success on invalid input.
4223 continue
4224 else
4225   # Passes both tests.
4226 ac_preproc_ok=:
4227 break
4228 fi
4229 rm -f conftest.err conftest.i conftest.$ac_ext
4230
4231 done
4232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4233 rm -f conftest.i conftest.err conftest.$ac_ext
4234 if $ac_preproc_ok; then :
4235
4236 else
4237   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4240 See \`config.log' for more details" "$LINENO" 5 ; }
4241 fi
4242
4243 ac_ext=c
4244 ac_cpp='$CPP $CPPFLAGS'
4245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4248
4249 # Extract the first word of "rm", so it can be a program name with args.
4250 set dummy rm; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if test "${ac_cv_path_RM+set}" = set; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   case $RM in
4257   [\\/]* | ?:[\\/]*)
4258   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4259   ;;
4260   *)
4261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266     for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273   done
4274 IFS=$as_save_IFS
4275
4276   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4277   ;;
4278 esac
4279 fi
4280 RM=$ac_cv_path_RM
4281 if test -n "$RM"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4283 $as_echo "$RM" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290 # Extract the first word of "mv", so it can be a program name with args.
4291 set dummy mv; ac_word=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if test "${ac_cv_path_MV+set}" = set; then :
4295   $as_echo_n "(cached) " >&6
4296 else
4297   case $MV in
4298   [\\/]* | ?:[\\/]*)
4299   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4300   ;;
4301   *)
4302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4311     break 2
4312   fi
4313 done
4314   done
4315 IFS=$as_save_IFS
4316
4317   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4318   ;;
4319 esac
4320 fi
4321 MV=$ac_cv_path_MV
4322 if test -n "$MV"; then
4323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4324 $as_echo "$MV" >&6; }
4325 else
4326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330
4331 # Extract the first word of "tar", so it can be a program name with args.
4332 set dummy tar; ac_word=$2
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334 $as_echo_n "checking for $ac_word... " >&6; }
4335 if test "${ac_cv_path_TAR+set}" = set; then :
4336   $as_echo_n "(cached) " >&6
4337 else
4338   case $TAR in
4339   [\\/]* | ?:[\\/]*)
4340   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4341   ;;
4342   *)
4343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346   IFS=$as_save_IFS
4347   test -z "$as_dir" && as_dir=.
4348     for ac_exec_ext in '' $ac_executable_extensions; do
4349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352     break 2
4353   fi
4354 done
4355   done
4356 IFS=$as_save_IFS
4357
4358   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
4359   ;;
4360 esac
4361 fi
4362 TAR=$ac_cv_path_TAR
4363 if test -n "$TAR"; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4365 $as_echo "$TAR" >&6; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369 fi
4370
4371
4372 # Extract the first word of "perl", so it can be a program name with args.
4373 set dummy perl; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if test "${ac_cv_path_PERL+set}" = set; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   case $PERL in
4380   [\\/]* | ?:[\\/]*)
4381   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4382   ;;
4383   *)
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396   done
4397 IFS=$as_save_IFS
4398
4399   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/bin/perl"
4400   ;;
4401 esac
4402 fi
4403 PERL=$ac_cv_path_PERL
4404 if test -n "$PERL"; then
4405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4406 $as_echo "$PERL" >&6; }
4407 else
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4410 fi
4411
4412
4413 # Extract the first word of "wget", so it can be a program name with args.
4414 set dummy wget; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if test "${ac_cv_path_WGET+set}" = set; then :
4418   $as_echo_n "(cached) " >&6
4419 else
4420   case $WGET in
4421   [\\/]* | ?:[\\/]*)
4422   ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
4423   ;;
4424   *)
4425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430     for ac_exec_ext in '' $ac_executable_extensions; do
4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432     ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
4433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434     break 2
4435   fi
4436 done
4437   done
4438 IFS=$as_save_IFS
4439
4440   test -z "$ac_cv_path_WGET" && ac_cv_path_WGET="/usr/bin/wget"
4441   ;;
4442 esac
4443 fi
4444 WGET=$ac_cv_path_WGET
4445 if test -n "$WGET"; then
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
4447 $as_echo "$WGET" >&6; }
4448 else
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452
4453
4454 # Extract the first word of "xmllint", so it can be a program name with args.
4455 set dummy xmllint; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_path_XMLLINT+set}" = set; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   case $XMLLINT in
4462   [\\/]* | ?:[\\/]*)
4463   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
4464   ;;
4465   *)
4466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471     for ac_exec_ext in '' $ac_executable_extensions; do
4472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
4474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478   done
4479 IFS=$as_save_IFS
4480
4481   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/usr/bin/xmllint"
4482   ;;
4483 esac
4484 fi
4485 XMLLINT=$ac_cv_path_XMLLINT
4486 if test -n "$XMLLINT"; then
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
4488 $as_echo "$XMLLINT" >&6; }
4489 else
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493
4494
4495 # Extract the first word of "xsltproc", so it can be a program name with args.
4496 set dummy xsltproc; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   case $XSLTPROC in
4503   [\\/]* | ?:[\\/]*)
4504   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
4505   ;;
4506   *)
4507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510   IFS=$as_save_IFS
4511   test -z "$as_dir" && as_dir=.
4512     for ac_exec_ext in '' $ac_executable_extensions; do
4513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
4515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516     break 2
4517   fi
4518 done
4519   done
4520 IFS=$as_save_IFS
4521
4522   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="/usr/bin/xsltproc"
4523   ;;
4524 esac
4525 fi
4526 XSLTPROC=$ac_cv_path_XSLTPROC
4527 if test -n "$XSLTPROC"; then
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
4529 $as_echo "$XSLTPROC" >&6; }
4530 else
4531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535
4536
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
4538 $as_echo_n "checking for function prototypes... " >&6; }
4539 if test "$ac_cv_prog_cc_c89" != no; then
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541 $as_echo "yes" >&6; }
4542
4543 $as_echo "#define PROTOTYPES 1" >>confdefs.h
4544
4545
4546 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
4547
4548 else
4549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4551 fi
4552
4553
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4556 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4557 if test "${ac_cv_path_GREP+set}" = set; then :
4558   $as_echo_n "(cached) " >&6
4559 else
4560   if test -z "$GREP"; then
4561   ac_path_GREP_found=false
4562   # Loop through the user's path and test for each of PROGNAME-LIST
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_prog in grep ggrep; do
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4571       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4572 # Check for GNU ac_path_GREP and select it if it is found.
4573   # Check for GNU $ac_path_GREP
4574 case `"$ac_path_GREP" --version 2>&1` in
4575 *GNU*)
4576   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4577 *)
4578   ac_count=0
4579   $as_echo_n 0123456789 >"conftest.in"
4580   while :
4581   do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo 'GREP' >> "conftest.nl"
4586     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588     as_fn_arith $ac_count + 1 && ac_count=$as_val
4589     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4590       # Best one so far, save it but keep looking for a better one
4591       ac_cv_path_GREP="$ac_path_GREP"
4592       ac_path_GREP_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596   done
4597   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600       $ac_path_GREP_found && break 3
4601     done
4602   done
4603   done
4604 IFS=$as_save_IFS
4605   if test -z "$ac_cv_path_GREP"; then
4606     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607   fi
4608 else
4609   ac_cv_path_GREP=$GREP
4610 fi
4611
4612 fi
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4614 $as_echo "$ac_cv_path_GREP" >&6; }
4615  GREP="$ac_cv_path_GREP"
4616
4617
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4619 $as_echo_n "checking for egrep... " >&6; }
4620 if test "${ac_cv_path_EGREP+set}" = set; then :
4621   $as_echo_n "(cached) " >&6
4622 else
4623   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4624    then ac_cv_path_EGREP="$GREP -E"
4625    else
4626      if test -z "$EGREP"; then
4627   ac_path_EGREP_found=false
4628   # Loop through the user's path and test for each of PROGNAME-LIST
4629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4631 do
4632   IFS=$as_save_IFS
4633   test -z "$as_dir" && as_dir=.
4634     for ac_prog in egrep; do
4635     for ac_exec_ext in '' $ac_executable_extensions; do
4636       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4637       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4638 # Check for GNU ac_path_EGREP and select it if it is found.
4639   # Check for GNU $ac_path_EGREP
4640 case `"$ac_path_EGREP" --version 2>&1` in
4641 *GNU*)
4642   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4643 *)
4644   ac_count=0
4645   $as_echo_n 0123456789 >"conftest.in"
4646   while :
4647   do
4648     cat "conftest.in" "conftest.in" >"conftest.tmp"
4649     mv "conftest.tmp" "conftest.in"
4650     cp "conftest.in" "conftest.nl"
4651     $as_echo 'EGREP' >> "conftest.nl"
4652     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4654     as_fn_arith $ac_count + 1 && ac_count=$as_val
4655     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4656       # Best one so far, save it but keep looking for a better one
4657       ac_cv_path_EGREP="$ac_path_EGREP"
4658       ac_path_EGREP_max=$ac_count
4659     fi
4660     # 10*(2^10) chars as input seems more than enough
4661     test $ac_count -gt 10 && break
4662   done
4663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4664 esac
4665
4666       $ac_path_EGREP_found && break 3
4667     done
4668   done
4669   done
4670 IFS=$as_save_IFS
4671   if test -z "$ac_cv_path_EGREP"; then
4672     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4673   fi
4674 else
4675   ac_cv_path_EGREP=$EGREP
4676 fi
4677
4678    fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4681 $as_echo "$ac_cv_path_EGREP" >&6; }
4682  EGREP="$ac_cv_path_EGREP"
4683
4684
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4686 $as_echo_n "checking for ANSI C header files... " >&6; }
4687 if test "${ac_cv_header_stdc+set}" = set; then :
4688   $as_echo_n "(cached) " >&6
4689 else
4690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h.  */
4692 #include <stdlib.h>
4693 #include <stdarg.h>
4694 #include <string.h>
4695 #include <float.h>
4696
4697 int
4698 main ()
4699 {
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706   ac_cv_header_stdc=yes
4707 else
4708   ac_cv_header_stdc=no
4709 fi
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711
4712 if test $ac_cv_header_stdc = yes; then
4713   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716 #include <string.h>
4717
4718 _ACEOF
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720   $EGREP "memchr" >/dev/null 2>&1; then :
4721
4722 else
4723   ac_cv_header_stdc=no
4724 fi
4725 rm -f conftest*
4726
4727 fi
4728
4729 if test $ac_cv_header_stdc = yes; then
4730   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h.  */
4733 #include <stdlib.h>
4734
4735 _ACEOF
4736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4737   $EGREP "free" >/dev/null 2>&1; then :
4738
4739 else
4740   ac_cv_header_stdc=no
4741 fi
4742 rm -f conftest*
4743
4744 fi
4745
4746 if test $ac_cv_header_stdc = yes; then
4747   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4748   if test "$cross_compiling" = yes; then :
4749   :
4750 else
4751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753 #include <ctype.h>
4754 #include <stdlib.h>
4755 #if ((' ' & 0x0FF) == 0x020)
4756 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4757 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4758 #else
4759 # define ISLOWER(c) \
4760                    (('a' <= (c) && (c) <= 'i') \
4761                      || ('j' <= (c) && (c) <= 'r') \
4762                      || ('s' <= (c) && (c) <= 'z'))
4763 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4764 #endif
4765
4766 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4767 int
4768 main ()
4769 {
4770   int i;
4771   for (i = 0; i < 256; i++)
4772     if (XOR (islower (i), ISLOWER (i))
4773         || toupper (i) != TOUPPER (i))
4774       return 2;
4775   return 0;
4776 }
4777 _ACEOF
4778 if ac_fn_c_try_run "$LINENO"; then :
4779
4780 else
4781   ac_cv_header_stdc=no
4782 fi
4783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4784   conftest.$ac_objext conftest.beam conftest.$ac_ext
4785 fi
4786
4787 fi
4788 fi
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4790 $as_echo "$ac_cv_header_stdc" >&6; }
4791 if test $ac_cv_header_stdc = yes; then
4792
4793 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4794
4795 fi
4796
4797 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4799                   inttypes.h stdint.h unistd.h
4800 do :
4801   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4802 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4803 "
4804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4805   cat >>confdefs.h <<_ACEOF
4806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4807 _ACEOF
4808
4809 fi
4810
4811 done
4812
4813
4814
4815 if test "$ac_cv_prog_cc_stdc" != no; then
4816   U= ANSI2KNR=
4817 else
4818   U=_ ANSI2KNR=./ansi2knr
4819 fi
4820 # Ensure some checks needed by ansi2knr itself.
4821
4822 for ac_header in string.h
4823 do :
4824   ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4825 if test "x$ac_cv_header_string_h" = x""yes; then :
4826   cat >>confdefs.h <<_ACEOF
4827 #define HAVE_STRING_H 1
4828 _ACEOF
4829
4830 fi
4831
4832 done
4833
4834
4835 test "x$U" != "x" && as_fn_error $? "Compiler not ANSI compliant" "$LINENO" 5
4836
4837 enable_win32_dll=yes
4838
4839 case $host in
4840 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4841   if test -n "$ac_tool_prefix"; then
4842   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4843 set dummy ${ac_tool_prefix}as; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if test "${ac_cv_prog_AS+set}" = set; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   if test -n "$AS"; then
4850   ac_cv_prog_AS="$AS" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     for ac_exec_ext in '' $ac_executable_extensions; do
4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859     ac_cv_prog_AS="${ac_tool_prefix}as"
4860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864   done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 AS=$ac_cv_prog_AS
4870 if test -n "$AS"; then
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4872 $as_echo "$AS" >&6; }
4873 else
4874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 fi
4877
4878
4879 fi
4880 if test -z "$ac_cv_prog_AS"; then
4881   ac_ct_AS=$AS
4882   # Extract the first word of "as", so it can be a program name with args.
4883 set dummy as; ac_word=$2
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4885 $as_echo_n "checking for $ac_word... " >&6; }
4886 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4887   $as_echo_n "(cached) " >&6
4888 else
4889   if test -n "$ac_ct_AS"; then
4890   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899     ac_cv_prog_ac_ct_AS="as"
4900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904   done
4905 IFS=$as_save_IFS
4906
4907 fi
4908 fi
4909 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4910 if test -n "$ac_ct_AS"; then
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4912 $as_echo "$ac_ct_AS" >&6; }
4913 else
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4916 fi
4917
4918   if test "x$ac_ct_AS" = x; then
4919     AS="false"
4920   else
4921     case $cross_compiling:$ac_tool_warned in
4922 yes:)
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927     AS=$ac_ct_AS
4928   fi
4929 else
4930   AS="$ac_cv_prog_AS"
4931 fi
4932
4933   if test -n "$ac_tool_prefix"; then
4934   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4937 $as_echo_n "checking for $ac_word... " >&6; }
4938 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4939   $as_echo_n "(cached) " >&6
4940 else
4941   if test -n "$DLLTOOL"; then
4942   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4943 else
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956   done
4957 IFS=$as_save_IFS
4958
4959 fi
4960 fi
4961 DLLTOOL=$ac_cv_prog_DLLTOOL
4962 if test -n "$DLLTOOL"; then
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4964 $as_echo "$DLLTOOL" >&6; }
4965 else
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4968 fi
4969
4970
4971 fi
4972 if test -z "$ac_cv_prog_DLLTOOL"; then
4973   ac_ct_DLLTOOL=$DLLTOOL
4974   # Extract the first word of "dlltool", so it can be a program name with args.
4975 set dummy dlltool; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   if test -n "$ac_ct_DLLTOOL"; then
4982   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4983 else
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999 fi
5000 fi
5001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5002 if test -n "$ac_ct_DLLTOOL"; then
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5004 $as_echo "$ac_ct_DLLTOOL" >&6; }
5005 else
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007 $as_echo "no" >&6; }
5008 fi
5009
5010   if test "x$ac_ct_DLLTOOL" = x; then
5011     DLLTOOL="false"
5012   else
5013     case $cross_compiling:$ac_tool_warned in
5014 yes:)
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017 ac_tool_warned=yes ;;
5018 esac
5019     DLLTOOL=$ac_ct_DLLTOOL
5020   fi
5021 else
5022   DLLTOOL="$ac_cv_prog_DLLTOOL"
5023 fi
5024
5025   if test -n "$ac_tool_prefix"; then
5026   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5027 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   if test -n "$OBJDUMP"; then
5034   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041     for ac_exec_ext in '' $ac_executable_extensions; do
5042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048   done
5049 IFS=$as_save_IFS
5050
5051 fi
5052 fi
5053 OBJDUMP=$ac_cv_prog_OBJDUMP
5054 if test -n "$OBJDUMP"; then
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5056 $as_echo "$OBJDUMP" >&6; }
5057 else
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5060 fi
5061
5062
5063 fi
5064 if test -z "$ac_cv_prog_OBJDUMP"; then
5065   ac_ct_OBJDUMP=$OBJDUMP
5066   # Extract the first word of "objdump", so it can be a program name with args.
5067 set dummy objdump; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5071   $as_echo_n "(cached) " >&6
5072 else
5073   if test -n "$ac_ct_OBJDUMP"; then
5074   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5075 else
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079   IFS=$as_save_IFS
5080   test -z "$as_dir" && as_dir=.
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5083     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085     break 2
5086   fi
5087 done
5088   done
5089 IFS=$as_save_IFS
5090
5091 fi
5092 fi
5093 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5094 if test -n "$ac_ct_OBJDUMP"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5096 $as_echo "$ac_ct_OBJDUMP" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102   if test "x$ac_ct_OBJDUMP" = x; then
5103     OBJDUMP="false"
5104   else
5105     case $cross_compiling:$ac_tool_warned in
5106 yes:)
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     OBJDUMP=$ac_ct_OBJDUMP
5112   fi
5113 else
5114   OBJDUMP="$ac_cv_prog_OBJDUMP"
5115 fi
5116
5117   ;;
5118 esac
5119
5120 test -z "$AS" && AS=as
5121
5122
5123
5124
5125
5126 test -z "$DLLTOOL" && DLLTOOL=dlltool
5127
5128
5129
5130
5131
5132 test -z "$OBJDUMP" && OBJDUMP=objdump
5133
5134
5135
5136
5137
5138
5139
5140 case `pwd` in
5141   *\ * | *\     *)
5142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5143 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5144 esac
5145
5146
5147
5148 macro_version='2.2.6b'
5149 macro_revision='1.3017'
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163 ltmain="$ac_aux_dir/ltmain.sh"
5164
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5166 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5167 if test "${ac_cv_path_SED+set}" = set; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5171      for ac_i in 1 2 3 4 5 6 7; do
5172        ac_script="$ac_script$as_nl$ac_script"
5173      done
5174      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5175      { ac_script=; unset ac_script;}
5176      if test -z "$SED"; then
5177   ac_path_SED_found=false
5178   # Loop through the user's path and test for each of PROGNAME-LIST
5179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184     for ac_prog in sed gsed; do
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5187       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5188 # Check for GNU ac_path_SED and select it if it is found.
5189   # Check for GNU $ac_path_SED
5190 case `"$ac_path_SED" --version 2>&1` in
5191 *GNU*)
5192   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5193 *)
5194   ac_count=0
5195   $as_echo_n 0123456789 >"conftest.in"
5196   while :
5197   do
5198     cat "conftest.in" "conftest.in" >"conftest.tmp"
5199     mv "conftest.tmp" "conftest.in"
5200     cp "conftest.in" "conftest.nl"
5201     $as_echo '' >> "conftest.nl"
5202     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5203     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5204     as_fn_arith $ac_count + 1 && ac_count=$as_val
5205     if test $ac_count -gt ${ac_path_SED_max-0}; then
5206       # Best one so far, save it but keep looking for a better one
5207       ac_cv_path_SED="$ac_path_SED"
5208       ac_path_SED_max=$ac_count
5209     fi
5210     # 10*(2^10) chars as input seems more than enough
5211     test $ac_count -gt 10 && break
5212   done
5213   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5214 esac
5215
5216       $ac_path_SED_found && break 3
5217     done
5218   done
5219   done
5220 IFS=$as_save_IFS
5221   if test -z "$ac_cv_path_SED"; then
5222     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5223   fi
5224 else
5225   ac_cv_path_SED=$SED
5226 fi
5227
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5230 $as_echo "$ac_cv_path_SED" >&6; }
5231  SED="$ac_cv_path_SED"
5232   rm -f conftest.sed
5233
5234 test -z "$SED" && SED=sed
5235 Xsed="$SED -e 1s/^X//"
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5248 $as_echo_n "checking for fgrep... " >&6; }
5249 if test "${ac_cv_path_FGREP+set}" = set; then :
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5253    then ac_cv_path_FGREP="$GREP -F"
5254    else
5255      if test -z "$FGREP"; then
5256   ac_path_FGREP_found=false
5257   # Loop through the user's path and test for each of PROGNAME-LIST
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263     for ac_prog in fgrep; do
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5266       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5267 # Check for GNU ac_path_FGREP and select it if it is found.
5268   # Check for GNU $ac_path_FGREP
5269 case `"$ac_path_FGREP" --version 2>&1` in
5270 *GNU*)
5271   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5272 *)
5273   ac_count=0
5274   $as_echo_n 0123456789 >"conftest.in"
5275   while :
5276   do
5277     cat "conftest.in" "conftest.in" >"conftest.tmp"
5278     mv "conftest.tmp" "conftest.in"
5279     cp "conftest.in" "conftest.nl"
5280     $as_echo 'FGREP' >> "conftest.nl"
5281     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283     as_fn_arith $ac_count + 1 && ac_count=$as_val
5284     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5285       # Best one so far, save it but keep looking for a better one
5286       ac_cv_path_FGREP="$ac_path_FGREP"
5287       ac_path_FGREP_max=$ac_count
5288     fi
5289     # 10*(2^10) chars as input seems more than enough
5290     test $ac_count -gt 10 && break
5291   done
5292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293 esac
5294
5295       $ac_path_FGREP_found && break 3
5296     done
5297   done
5298   done
5299 IFS=$as_save_IFS
5300   if test -z "$ac_cv_path_FGREP"; then
5301     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5302   fi
5303 else
5304   ac_cv_path_FGREP=$FGREP
5305 fi
5306
5307    fi
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5310 $as_echo "$ac_cv_path_FGREP" >&6; }
5311  FGREP="$ac_cv_path_FGREP"
5312
5313
5314 test -z "$GREP" && GREP=grep
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334 # Check whether --with-gnu-ld was given.
5335 if test "${with_gnu_ld+set}" = set; then :
5336   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5337 else
5338   with_gnu_ld=no
5339 fi
5340
5341 ac_prog=ld
5342 if test "$GCC" = yes; then
5343   # Check if gcc -print-prog-name=ld gives a path.
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5345 $as_echo_n "checking for ld used by $CC... " >&6; }
5346   case $host in
5347   *-*-mingw*)
5348     # gcc leaves a trailing carriage return which upsets mingw
5349     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5350   *)
5351     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5352   esac
5353   case $ac_prog in
5354     # Accept absolute paths.
5355     [\\/]* | ?:[\\/]*)
5356       re_direlt='/[^/][^/]*/\.\./'
5357       # Canonicalize the pathname of ld
5358       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5359       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5360         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5361       done
5362       test -z "$LD" && LD="$ac_prog"
5363       ;;
5364   "")
5365     # If it fails, then pretend we aren't using GCC.
5366     ac_prog=ld
5367     ;;
5368   *)
5369     # If it is relative, then search for the first ld in PATH.
5370     with_gnu_ld=unknown
5371     ;;
5372   esac
5373 elif test "$with_gnu_ld" = yes; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5375 $as_echo_n "checking for GNU ld... " >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5378 $as_echo_n "checking for non-GNU ld... " >&6; }
5379 fi
5380 if test "${lt_cv_path_LD+set}" = set; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   if test -z "$LD"; then
5384   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5385   for ac_dir in $PATH; do
5386     IFS="$lt_save_ifs"
5387     test -z "$ac_dir" && ac_dir=.
5388     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5389       lt_cv_path_LD="$ac_dir/$ac_prog"
5390       # Check to see if the program is GNU ld.  I'd rather use --version,
5391       # but apparently some variants of GNU ld only accept -v.
5392       # Break only if it was the GNU/non-GNU ld that we prefer.
5393       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5394       *GNU* | *'with BFD'*)
5395         test "$with_gnu_ld" != no && break
5396         ;;
5397       *)
5398         test "$with_gnu_ld" != yes && break
5399         ;;
5400       esac
5401     fi
5402   done
5403   IFS="$lt_save_ifs"
5404 else
5405   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5406 fi
5407 fi
5408
5409 LD="$lt_cv_path_LD"
5410 if test -n "$LD"; then
5411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5412 $as_echo "$LD" >&6; }
5413 else
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5419 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5420 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5421   $as_echo_n "(cached) " >&6
5422 else
5423   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5424 case `$LD -v 2>&1 </dev/null` in
5425 *GNU* | *'with BFD'*)
5426   lt_cv_prog_gnu_ld=yes
5427   ;;
5428 *)
5429   lt_cv_prog_gnu_ld=no
5430   ;;
5431 esac
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5434 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5435 with_gnu_ld=$lt_cv_prog_gnu_ld
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5446 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5447 if test "${lt_cv_path_NM+set}" = set; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -n "$NM"; then
5451   # Let the user override the test.
5452   lt_cv_path_NM="$NM"
5453 else
5454   lt_nm_to_check="${ac_tool_prefix}nm"
5455   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5456     lt_nm_to_check="$lt_nm_to_check nm"
5457   fi
5458   for lt_tmp_nm in $lt_nm_to_check; do
5459     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5460     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5461       IFS="$lt_save_ifs"
5462       test -z "$ac_dir" && ac_dir=.
5463       tmp_nm="$ac_dir/$lt_tmp_nm"
5464       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5465         # Check to see if the nm accepts a BSD-compat flag.
5466         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5467         #   nm: unknown option "B" ignored
5468         # Tru64's nm complains that /dev/null is an invalid object file
5469         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5470         */dev/null* | *'Invalid file or object type'*)
5471           lt_cv_path_NM="$tmp_nm -B"
5472           break
5473           ;;
5474         *)
5475           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5476           */dev/null*)
5477             lt_cv_path_NM="$tmp_nm -p"
5478             break
5479             ;;
5480           *)
5481             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5482             continue # so that we can try to find one that supports BSD flags
5483             ;;
5484           esac
5485           ;;
5486         esac
5487       fi
5488     done
5489     IFS="$lt_save_ifs"
5490   done
5491   : ${lt_cv_path_NM=no}
5492 fi
5493 fi
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5495 $as_echo "$lt_cv_path_NM" >&6; }
5496 if test "$lt_cv_path_NM" != "no"; then
5497   NM="$lt_cv_path_NM"
5498 else
5499   # Didn't find any BSD compatible name lister, look for dumpbin.
5500   if test -n "$ac_tool_prefix"; then
5501   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5502   do
5503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   if test -n "$DUMPBIN"; then
5511   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5512 else
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH
5515 do
5516   IFS=$as_save_IFS
5517   test -z "$as_dir" && as_dir=.
5518     for ac_exec_ext in '' $ac_executable_extensions; do
5519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522     break 2
5523   fi
5524 done
5525   done
5526 IFS=$as_save_IFS
5527
5528 fi
5529 fi
5530 DUMPBIN=$ac_cv_prog_DUMPBIN
5531 if test -n "$DUMPBIN"; then
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5533 $as_echo "$DUMPBIN" >&6; }
5534 else
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540     test -n "$DUMPBIN" && break
5541   done
5542 fi
5543 if test -z "$DUMPBIN"; then
5544   ac_ct_DUMPBIN=$DUMPBIN
5545   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5546 do
5547   # Extract the first word of "$ac_prog", so it can be a program name with args.
5548 set dummy $ac_prog; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   if test -n "$ac_ct_DUMPBIN"; then
5555   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5559 do
5560   IFS=$as_save_IFS
5561   test -z "$as_dir" && as_dir=.
5562     for ac_exec_ext in '' $ac_executable_extensions; do
5563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566     break 2
5567   fi
5568 done
5569   done
5570 IFS=$as_save_IFS
5571
5572 fi
5573 fi
5574 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5575 if test -n "$ac_ct_DUMPBIN"; then
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5577 $as_echo "$ac_ct_DUMPBIN" >&6; }
5578 else
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5581 fi
5582
5583
5584   test -n "$ac_ct_DUMPBIN" && break
5585 done
5586
5587   if test "x$ac_ct_DUMPBIN" = x; then
5588     DUMPBIN=":"
5589   else
5590     case $cross_compiling:$ac_tool_warned in
5591 yes:)
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5594 ac_tool_warned=yes ;;
5595 esac
5596     DUMPBIN=$ac_ct_DUMPBIN
5597   fi
5598 fi
5599
5600
5601   if test "$DUMPBIN" != ":"; then
5602     NM="$DUMPBIN"
5603   fi
5604 fi
5605 test -z "$NM" && NM=nm
5606
5607
5608
5609
5610
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5613 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5614 if test "${lt_cv_nm_interface+set}" = set; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   lt_cv_nm_interface="BSD nm"
5618   echo "int some_variable = 0;" > conftest.$ac_ext
5619   (eval echo "\"\$as_me:5619: $ac_compile\"" >&5)
5620   (eval "$ac_compile" 2>conftest.err)
5621   cat conftest.err >&5
5622   (eval echo "\"\$as_me:5622: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5623   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5624   cat conftest.err >&5
5625   (eval echo "\"\$as_me:5625: output\"" >&5)
5626   cat conftest.out >&5
5627   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5628     lt_cv_nm_interface="MS dumpbin"
5629   fi
5630   rm -f conftest*
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5633 $as_echo "$lt_cv_nm_interface" >&6; }
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5636 $as_echo_n "checking whether ln -s works... " >&6; }
5637 LN_S=$as_ln_s
5638 if test "$LN_S" = "ln -s"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5640 $as_echo "yes" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5643 $as_echo "no, using $LN_S" >&6; }
5644 fi
5645
5646 # find the maximum length of command line arguments
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5648 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5649 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652     i=0
5653   teststring="ABCD"
5654
5655   case $build_os in
5656   msdosdjgpp*)
5657     # On DJGPP, this test can blow up pretty badly due to problems in libc
5658     # (any single argument exceeding 2000 bytes causes a buffer overrun
5659     # during glob expansion).  Even if it were fixed, the result of this
5660     # check would be larger than it should be.
5661     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5662     ;;
5663
5664   gnu*)
5665     # Under GNU Hurd, this test is not required because there is
5666     # no limit to the length of command line arguments.
5667     # Libtool will interpret -1 as no limit whatsoever
5668     lt_cv_sys_max_cmd_len=-1;
5669     ;;
5670
5671   cygwin* | mingw* | cegcc*)
5672     # On Win9x/ME, this test blows up -- it succeeds, but takes
5673     # about 5 minutes as the teststring grows exponentially.
5674     # Worse, since 9x/ME are not pre-emptively multitasking,
5675     # you end up with a "frozen" computer, even though with patience
5676     # the test eventually succeeds (with a max line length of 256k).
5677     # Instead, let's just punt: use the minimum linelength reported by
5678     # all of the supported platforms: 8192 (on NT/2K/XP).
5679     lt_cv_sys_max_cmd_len=8192;
5680     ;;
5681
5682   amigaos*)
5683     # On AmigaOS with pdksh, this test takes hours, literally.
5684     # So we just punt and use a minimum line length of 8192.
5685     lt_cv_sys_max_cmd_len=8192;
5686     ;;
5687
5688   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5689     # This has been around since 386BSD, at least.  Likely further.
5690     if test -x /sbin/sysctl; then
5691       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5692     elif test -x /usr/sbin/sysctl; then
5693       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5694     else
5695       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5696     fi
5697     # And add a safety zone
5698     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5700     ;;
5701
5702   interix*)
5703     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5704     lt_cv_sys_max_cmd_len=196608
5705     ;;
5706
5707   osf*)
5708     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5709     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5710     # nice to cause kernel panics so lets avoid the loop below.
5711     # First set a reasonable default.
5712     lt_cv_sys_max_cmd_len=16384
5713     #
5714     if test -x /sbin/sysconfig; then
5715       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5716         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5717       esac
5718     fi
5719     ;;
5720   sco3.2v5*)
5721     lt_cv_sys_max_cmd_len=102400
5722     ;;
5723   sysv5* | sco5v6* | sysv4.2uw2*)
5724     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5725     if test -n "$kargmax"; then
5726       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5727     else
5728       lt_cv_sys_max_cmd_len=32768
5729     fi
5730     ;;
5731   *)
5732     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5733     if test -n "$lt_cv_sys_max_cmd_len"; then
5734       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5735       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5736     else
5737       # Make teststring a little bigger before we do anything with it.
5738       # a 1K string should be a reasonable start.
5739       for i in 1 2 3 4 5 6 7 8 ; do
5740         teststring=$teststring$teststring
5741       done
5742       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5743       # If test is not a shell built-in, we'll probably end up computing a
5744       # maximum length that is only half of the actual maximum length, but
5745       # we can't tell.
5746       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5747                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5748               test $i != 17 # 1/2 MB should be enough
5749       do
5750         i=`expr $i + 1`
5751         teststring=$teststring$teststring
5752       done
5753       # Only check the string length outside the loop.
5754       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5755       teststring=
5756       # Add a significant safety factor because C++ compilers can tack on
5757       # massive amounts of additional arguments before passing them to the
5758       # linker.  It appears as though 1/2 is a usable value.
5759       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5760     fi
5761     ;;
5762   esac
5763
5764 fi
5765
5766 if test -n $lt_cv_sys_max_cmd_len ; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5768 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5771 $as_echo "none" >&6; }
5772 fi
5773 max_cmd_len=$lt_cv_sys_max_cmd_len
5774
5775
5776
5777
5778
5779
5780 : ${CP="cp -f"}
5781 : ${MV="mv -f"}
5782 : ${RM="rm -f"}
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5785 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5786 # Try some XSI features
5787 xsi_shell=no
5788 ( _lt_dummy="a/b/c"
5789   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5790       = c,a/b,, \
5791     && eval 'test $(( 1 + 1 )) -eq 2 \
5792     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5793   && xsi_shell=yes
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5795 $as_echo "$xsi_shell" >&6; }
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5799 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5800 lt_shell_append=no
5801 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5802     >/dev/null 2>&1 \
5803   && lt_shell_append=yes
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5805 $as_echo "$lt_shell_append" >&6; }
5806
5807
5808 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5809   lt_unset=unset
5810 else
5811   lt_unset=false
5812 fi
5813
5814
5815
5816
5817
5818 # test EBCDIC or ASCII
5819 case `echo X|tr X '\101'` in
5820  A) # ASCII based system
5821     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5822   lt_SP2NL='tr \040 \012'
5823   lt_NL2SP='tr \015\012 \040\040'
5824   ;;
5825  *) # EBCDIC based system
5826   lt_SP2NL='tr \100 \n'
5827   lt_NL2SP='tr \r\n \100\100'
5828   ;;
5829 esac
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5840 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5841 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   lt_cv_ld_reload_flag='-r'
5845 fi
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5847 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5848 reload_flag=$lt_cv_ld_reload_flag
5849 case $reload_flag in
5850 "" | " "*) ;;
5851 *) reload_flag=" $reload_flag" ;;
5852 esac
5853 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5854 case $host_os in
5855   darwin*)
5856     if test "$GCC" = yes; then
5857       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5858     else
5859       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5860     fi
5861     ;;
5862 esac
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}objdump", so it can be a program name with args.
5874 set dummy ${ac_tool_prefix}objdump; 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 test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   if test -n "$OBJDUMP"; then
5881   ac_cv_prog_OBJDUMP="$OBJDUMP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
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 OBJDUMP=$ac_cv_prog_OBJDUMP
5901 if test -n "$OBJDUMP"; then
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5903 $as_echo "$OBJDUMP" >&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_OBJDUMP"; then
5912   ac_ct_OBJDUMP=$OBJDUMP
5913   # Extract the first word of "objdump", so it can be a program name with args.
5914 set dummy objdump; 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 test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   if test -n "$ac_ct_OBJDUMP"; then
5921   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930     ac_cv_prog_ac_ct_OBJDUMP="objdump"
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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5941 if test -n "$ac_ct_OBJDUMP"; then
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5943 $as_echo "$ac_ct_OBJDUMP" >&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_OBJDUMP" = x; then
5950     OBJDUMP="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     OBJDUMP=$ac_ct_OBJDUMP
5959   fi
5960 else
5961   OBJDUMP="$ac_cv_prog_OBJDUMP"
5962 fi
5963
5964 test -z "$OBJDUMP" && OBJDUMP=objdump
5965
5966
5967
5968
5969
5970
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5972 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5973 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5974   $as_echo_n "(cached) " >&6
5975 else
5976   lt_cv_file_magic_cmd='$MAGIC_CMD'
5977 lt_cv_file_magic_test_file=
5978 lt_cv_deplibs_check_method='unknown'
5979 # Need to set the preceding variable on all platforms that support
5980 # interlibrary dependencies.
5981 # 'none' -- dependencies not supported.
5982 # `unknown' -- same as none, but documents that we really don't know.
5983 # 'pass_all' -- all dependencies passed with no checks.
5984 # 'test_compile' -- check by making test program.
5985 # 'file_magic [[regex]]' -- check by looking for files in library path
5986 # which responds to the $file_magic_cmd with a given extended regex.
5987 # If you have `file' or equivalent on your system and you're not sure
5988 # whether `pass_all' will *always* work, you probably want this one.
5989
5990 case $host_os in
5991 aix[4-9]*)
5992   lt_cv_deplibs_check_method=pass_all
5993   ;;
5994
5995 beos*)
5996   lt_cv_deplibs_check_method=pass_all
5997   ;;
5998
5999 bsdi[45]*)
6000   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6001   lt_cv_file_magic_cmd='/usr/bin/file -L'
6002   lt_cv_file_magic_test_file=/shlib/libc.so
6003   ;;
6004
6005 cygwin*)
6006   # func_win32_libid is a shell function defined in ltmain.sh
6007   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6008   lt_cv_file_magic_cmd='func_win32_libid'
6009   ;;
6010
6011 mingw* | pw32*)
6012   # Base MSYS/MinGW do not provide the 'file' command needed by
6013   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6014   # unless we find 'file', for example because we are cross-compiling.
6015   if ( file / ) >/dev/null 2>&1; then
6016     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017     lt_cv_file_magic_cmd='func_win32_libid'
6018   else
6019     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6020     lt_cv_file_magic_cmd='$OBJDUMP -f'
6021   fi
6022   ;;
6023
6024 cegcc)
6025   # use the weaker test based on 'objdump'. See mingw*.
6026   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6027   lt_cv_file_magic_cmd='$OBJDUMP -f'
6028   ;;
6029
6030 darwin* | rhapsody*)
6031   lt_cv_deplibs_check_method=pass_all
6032   ;;
6033
6034 freebsd* | dragonfly*)
6035   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6036     case $host_cpu in
6037     i*86 )
6038       # Not sure whether the presence of OpenBSD here was a mistake.
6039       # Let's accept both of them until this is cleared up.
6040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6041       lt_cv_file_magic_cmd=/usr/bin/file
6042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6043       ;;
6044     esac
6045   else
6046     lt_cv_deplibs_check_method=pass_all
6047   fi
6048   ;;
6049
6050 gnu*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053
6054 hpux10.20* | hpux11*)
6055   lt_cv_file_magic_cmd=/usr/bin/file
6056   case $host_cpu in
6057   ia64*)
6058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6060     ;;
6061   hppa*64*)
6062     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6064     ;;
6065   *)
6066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6068     ;;
6069   esac
6070   ;;
6071
6072 interix[3-9]*)
6073   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6074   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6075   ;;
6076
6077 irix5* | irix6* | nonstopux*)
6078   case $LD in
6079   *-32|*"-32 ") libmagic=32-bit;;
6080   *-n32|*"-n32 ") libmagic=N32;;
6081   *-64|*"-64 ") libmagic=64-bit;;
6082   *) libmagic=never-match;;
6083   esac
6084   lt_cv_deplibs_check_method=pass_all
6085   ;;
6086
6087 # This must be Linux ELF.
6088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6089   lt_cv_deplibs_check_method=pass_all
6090   ;;
6091
6092 netbsd* | netbsdelf*-gnu)
6093   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095   else
6096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6097   fi
6098   ;;
6099
6100 newos6*)
6101   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6102   lt_cv_file_magic_cmd=/usr/bin/file
6103   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6104   ;;
6105
6106 *nto* | *qnx*)
6107   lt_cv_deplibs_check_method=pass_all
6108   ;;
6109
6110 openbsd*)
6111   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6113   else
6114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6115   fi
6116   ;;
6117
6118 osf3* | osf4* | osf5*)
6119   lt_cv_deplibs_check_method=pass_all
6120   ;;
6121
6122 rdos*)
6123   lt_cv_deplibs_check_method=pass_all
6124   ;;
6125
6126 solaris*)
6127   lt_cv_deplibs_check_method=pass_all
6128   ;;
6129
6130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6131   lt_cv_deplibs_check_method=pass_all
6132   ;;
6133
6134 sysv4 | sysv4.3*)
6135   case $host_vendor in
6136   motorola)
6137     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]'
6138     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6139     ;;
6140   ncr)
6141     lt_cv_deplibs_check_method=pass_all
6142     ;;
6143   sequent)
6144     lt_cv_file_magic_cmd='/bin/file'
6145     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6146     ;;
6147   sni)
6148     lt_cv_file_magic_cmd='/bin/file'
6149     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6150     lt_cv_file_magic_test_file=/lib/libc.so
6151     ;;
6152   siemens)
6153     lt_cv_deplibs_check_method=pass_all
6154     ;;
6155   pc)
6156     lt_cv_deplibs_check_method=pass_all
6157     ;;
6158   esac
6159   ;;
6160
6161 tpf*)
6162   lt_cv_deplibs_check_method=pass_all
6163   ;;
6164 esac
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6168 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6169 file_magic_cmd=$lt_cv_file_magic_cmd
6170 deplibs_check_method=$lt_cv_deplibs_check_method
6171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 if test -n "$ac_tool_prefix"; then
6185   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}ar; ac_word=$2
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188 $as_echo_n "checking for $ac_word... " >&6; }
6189 if test "${ac_cv_prog_AR+set}" = set; then :
6190   $as_echo_n "(cached) " >&6
6191 else
6192   if test -n "$AR"; then
6193   ac_cv_prog_AR="$AR" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198   IFS=$as_save_IFS
6199   test -z "$as_dir" && as_dir=.
6200     for ac_exec_ext in '' $ac_executable_extensions; do
6201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6202     ac_cv_prog_AR="${ac_tool_prefix}ar"
6203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6204     break 2
6205   fi
6206 done
6207   done
6208 IFS=$as_save_IFS
6209
6210 fi
6211 fi
6212 AR=$ac_cv_prog_AR
6213 if test -n "$AR"; then
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6215 $as_echo "$AR" >&6; }
6216 else
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6218 $as_echo "no" >&6; }
6219 fi
6220
6221
6222 fi
6223 if test -z "$ac_cv_prog_AR"; then
6224   ac_ct_AR=$AR
6225   # Extract the first word of "ar", so it can be a program name with args.
6226 set dummy ar; ac_word=$2
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6228 $as_echo_n "checking for $ac_word... " >&6; }
6229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   if test -n "$ac_ct_AR"; then
6233   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6234 else
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240     for ac_exec_ext in '' $ac_executable_extensions; do
6241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6242     ac_cv_prog_ac_ct_AR="ar"
6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247   done
6248 IFS=$as_save_IFS
6249
6250 fi
6251 fi
6252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253 if test -n "$ac_ct_AR"; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6255 $as_echo "$ac_ct_AR" >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260
6261   if test "x$ac_ct_AR" = x; then
6262     AR="false"
6263   else
6264     case $cross_compiling:$ac_tool_warned in
6265 yes:)
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270     AR=$ac_ct_AR
6271   fi
6272 else
6273   AR="$ac_cv_prog_AR"
6274 fi
6275
6276 test -z "$AR" && AR=ar
6277 test -z "$AR_FLAGS" && AR_FLAGS=cru
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 if test -n "$ac_tool_prefix"; then
6290   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}strip; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_STRIP+set}" = set; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$STRIP"; then
6298   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 STRIP=$ac_cv_prog_STRIP
6318 if test -n "$STRIP"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6320 $as_echo "$STRIP" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327 fi
6328 if test -z "$ac_cv_prog_STRIP"; then
6329   ac_ct_STRIP=$STRIP
6330   # Extract the first word of "strip", so it can be a program name with args.
6331 set dummy strip; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -n "$ac_ct_STRIP"; then
6338   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_prog_ac_ct_STRIP="strip"
6348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352   done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6358 if test -n "$ac_ct_STRIP"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6360 $as_echo "$ac_ct_STRIP" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366   if test "x$ac_ct_STRIP" = x; then
6367     STRIP=":"
6368   else
6369     case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     STRIP=$ac_ct_STRIP
6376   fi
6377 else
6378   STRIP="$ac_cv_prog_STRIP"
6379 fi
6380
6381 test -z "$STRIP" && STRIP=:
6382
6383
6384
6385
6386
6387
6388 if test -n "$ac_tool_prefix"; then
6389   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   if test -n "$RANLIB"; then
6397   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404     for ac_exec_ext in '' $ac_executable_extensions; do
6405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411   done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 RANLIB=$ac_cv_prog_RANLIB
6417 if test -n "$RANLIB"; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6419 $as_echo "$RANLIB" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425
6426 fi
6427 if test -z "$ac_cv_prog_RANLIB"; then
6428   ac_ct_RANLIB=$RANLIB
6429   # Extract the first word of "ranlib", so it can be a program name with args.
6430 set dummy ranlib; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$ac_ct_RANLIB"; then
6437   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444     for ac_exec_ext in '' $ac_executable_extensions; do
6445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446     ac_cv_prog_ac_ct_RANLIB="ranlib"
6447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451   done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6457 if test -n "$ac_ct_RANLIB"; then
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6459 $as_echo "$ac_ct_RANLIB" >&6; }
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465   if test "x$ac_ct_RANLIB" = x; then
6466     RANLIB=":"
6467   else
6468     case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474     RANLIB=$ac_ct_RANLIB
6475   fi
6476 else
6477   RANLIB="$ac_cv_prog_RANLIB"
6478 fi
6479
6480 test -z "$RANLIB" && RANLIB=:
6481
6482
6483
6484
6485
6486
6487 # Determine commands to create old-style static archives.
6488 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6489 old_postinstall_cmds='chmod 644 $oldlib'
6490 old_postuninstall_cmds=
6491
6492 if test -n "$RANLIB"; then
6493   case $host_os in
6494   openbsd*)
6495     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6496     ;;
6497   *)
6498     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6499     ;;
6500   esac
6501   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6502 fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 # If no C compiler was specified, use CC.
6538 LTCC=${LTCC-"$CC"}
6539
6540 # If no C compiler flags were specified, use CFLAGS.
6541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6542
6543 # Allow CC to be a program name with arguments.
6544 compiler=$CC
6545
6546
6547 # Check for command to grab the raw symbol name followed by C symbol from nm.
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6549 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6550 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553
6554 # These are sane defaults that work on at least a few old systems.
6555 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6556
6557 # Character class describing NM global symbol codes.
6558 symcode='[BCDEGRST]'
6559
6560 # Regexp to match symbols that can be accessed directly from C.
6561 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562
6563 # Define system-specific variables.
6564 case $host_os in
6565 aix*)
6566   symcode='[BCDT]'
6567   ;;
6568 cygwin* | mingw* | pw32* | cegcc*)
6569   symcode='[ABCDGISTW]'
6570   ;;
6571 hpux*)
6572   if test "$host_cpu" = ia64; then
6573     symcode='[ABCDEGRST]'
6574   fi
6575   ;;
6576 irix* | nonstopux*)
6577   symcode='[BCDEGRST]'
6578   ;;
6579 osf*)
6580   symcode='[BCDEGQRST]'
6581   ;;
6582 solaris*)
6583   symcode='[BDRT]'
6584   ;;
6585 sco3.2v5*)
6586   symcode='[DT]'
6587   ;;
6588 sysv4.2uw2*)
6589   symcode='[DT]'
6590   ;;
6591 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6592   symcode='[ABDT]'
6593   ;;
6594 sysv4)
6595   symcode='[DFNSTU]'
6596   ;;
6597 esac
6598
6599 # If we're using GNU nm, then use its standard symbol codes.
6600 case `$NM -V 2>&1` in
6601 *GNU* | *'with BFD'*)
6602   symcode='[ABCDGIRSTW]' ;;
6603 esac
6604
6605 # Transform an extracted symbol line into a proper C declaration.
6606 # Some systems (esp. on ia64) link data and code symbols differently,
6607 # so use this general approach.
6608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6609
6610 # Transform an extracted symbol line into symbol name and symbol address
6611 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6612 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'"
6613
6614 # Handle CRLF in mingw tool chain
6615 opt_cr=
6616 case $build_os in
6617 mingw*)
6618   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6619   ;;
6620 esac
6621
6622 # Try without a prefix underscore, then with it.
6623 for ac_symprfx in "" "_"; do
6624
6625   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6626   symxfrm="\\1 $ac_symprfx\\2 \\2"
6627
6628   # Write the raw and C identifiers.
6629   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6630     # Fake it for dumpbin and say T for any non-static function
6631     # and D for any global variable.
6632     # Also find C++ and __fastcall symbols from MSVC++,
6633     # which start with @ or ?.
6634     lt_cv_sys_global_symbol_pipe="$AWK '"\
6635 "     {last_section=section; section=\$ 3};"\
6636 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6637 "     \$ 0!~/External *\|/{next};"\
6638 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6639 "     {if(hide[section]) next};"\
6640 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6641 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6642 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6643 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6644 "     ' prfx=^$ac_symprfx"
6645   else
6646     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6647   fi
6648
6649   # Check to see that the pipe works correctly.
6650   pipe_works=no
6651
6652   rm -f conftest*
6653   cat > conftest.$ac_ext <<_LT_EOF
6654 #ifdef __cplusplus
6655 extern "C" {
6656 #endif
6657 char nm_test_var;
6658 void nm_test_func(void);
6659 void nm_test_func(void){}
6660 #ifdef __cplusplus
6661 }
6662 #endif
6663 int main(){nm_test_var='a';nm_test_func();return(0);}
6664 _LT_EOF
6665
6666   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6667   (eval $ac_compile) 2>&5
6668   ac_status=$?
6669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670   test $ac_status = 0; }; then
6671     # Now try to grab the symbols.
6672     nlist=conftest.nm
6673     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6674   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6675   ac_status=$?
6676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677   test $ac_status = 0; } && test -s "$nlist"; then
6678       # Try sorting and uniquifying the output.
6679       if sort "$nlist" | uniq > "$nlist"T; then
6680         mv -f "$nlist"T "$nlist"
6681       else
6682         rm -f "$nlist"T
6683       fi
6684
6685       # Make sure that we snagged all the symbols we need.
6686       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6687         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6688           cat <<_LT_EOF > conftest.$ac_ext
6689 #ifdef __cplusplus
6690 extern "C" {
6691 #endif
6692
6693 _LT_EOF
6694           # Now generate the symbol file.
6695           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6696
6697           cat <<_LT_EOF >> conftest.$ac_ext
6698
6699 /* The mapping between symbol names and symbols.  */
6700 const struct {
6701   const char *name;
6702   void       *address;
6703 }
6704 lt__PROGRAM__LTX_preloaded_symbols[] =
6705 {
6706   { "@PROGRAM@", (void *) 0 },
6707 _LT_EOF
6708           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6709           cat <<\_LT_EOF >> conftest.$ac_ext
6710   {0, (void *) 0}
6711 };
6712
6713 /* This works around a problem in FreeBSD linker */
6714 #ifdef FREEBSD_WORKAROUND
6715 static const void *lt_preloaded_setup() {
6716   return lt__PROGRAM__LTX_preloaded_symbols;
6717 }
6718 #endif
6719
6720 #ifdef __cplusplus
6721 }
6722 #endif
6723 _LT_EOF
6724           # Now try linking the two files.
6725           mv conftest.$ac_objext conftstm.$ac_objext
6726           lt_save_LIBS="$LIBS"
6727           lt_save_CFLAGS="$CFLAGS"
6728           LIBS="conftstm.$ac_objext"
6729           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6730           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6731   (eval $ac_link) 2>&5
6732   ac_status=$?
6733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6735             pipe_works=yes
6736           fi
6737           LIBS="$lt_save_LIBS"
6738           CFLAGS="$lt_save_CFLAGS"
6739         else
6740           echo "cannot find nm_test_func in $nlist" >&5
6741         fi
6742       else
6743         echo "cannot find nm_test_var in $nlist" >&5
6744       fi
6745     else
6746       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6747     fi
6748   else
6749     echo "$progname: failed program was:" >&5
6750     cat conftest.$ac_ext >&5
6751   fi
6752   rm -rf conftest* conftst*
6753
6754   # Do not use the global_symbol_pipe unless it works.
6755   if test "$pipe_works" = yes; then
6756     break
6757   else
6758     lt_cv_sys_global_symbol_pipe=
6759   fi
6760 done
6761
6762 fi
6763
6764 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6765   lt_cv_sys_global_symbol_to_cdecl=
6766 fi
6767 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6769 $as_echo "failed" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6772 $as_echo "ok" >&6; }
6773 fi
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 # Check whether --enable-libtool-lock was given.
6797 if test "${enable_libtool_lock+set}" = set; then :
6798   enableval=$enable_libtool_lock;
6799 fi
6800
6801 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6802
6803 # Some flags need to be propagated to the compiler or linker for good
6804 # libtool support.
6805 case $host in
6806 ia64-*-hpux*)
6807   # Find out which ABI we are using.
6808   echo 'int i;' > conftest.$ac_ext
6809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810   (eval $ac_compile) 2>&5
6811   ac_status=$?
6812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813   test $ac_status = 0; }; then
6814     case `/usr/bin/file conftest.$ac_objext` in
6815       *ELF-32*)
6816         HPUX_IA64_MODE="32"
6817         ;;
6818       *ELF-64*)
6819         HPUX_IA64_MODE="64"
6820         ;;
6821     esac
6822   fi
6823   rm -rf conftest*
6824   ;;
6825 *-*-irix6*)
6826   # Find out which ABI we are using.
6827   echo '#line 6827 "configure"' > conftest.$ac_ext
6828   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829   (eval $ac_compile) 2>&5
6830   ac_status=$?
6831   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6832   test $ac_status = 0; }; then
6833     if test "$lt_cv_prog_gnu_ld" = yes; then
6834       case `/usr/bin/file conftest.$ac_objext` in
6835         *32-bit*)
6836           LD="${LD-ld} -melf32bsmip"
6837           ;;
6838         *N32*)
6839           LD="${LD-ld} -melf32bmipn32"
6840           ;;
6841         *64-bit*)
6842           LD="${LD-ld} -melf64bmip"
6843         ;;
6844       esac
6845     else
6846       case `/usr/bin/file conftest.$ac_objext` in
6847         *32-bit*)
6848           LD="${LD-ld} -32"
6849           ;;
6850         *N32*)
6851           LD="${LD-ld} -n32"
6852           ;;
6853         *64-bit*)
6854           LD="${LD-ld} -64"
6855           ;;
6856       esac
6857     fi
6858   fi
6859   rm -rf conftest*
6860   ;;
6861
6862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6864   # Find out which ABI we are using.
6865   echo 'int i;' > conftest.$ac_ext
6866   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867   (eval $ac_compile) 2>&5
6868   ac_status=$?
6869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870   test $ac_status = 0; }; then
6871     case `/usr/bin/file conftest.o` in
6872       *32-bit*)
6873         case $host in
6874           x86_64-*kfreebsd*-gnu)
6875             LD="${LD-ld} -m elf_i386_fbsd"
6876             ;;
6877           x86_64-*linux*)
6878             LD="${LD-ld} -m elf_i386"
6879             ;;
6880           ppc64-*linux*|powerpc64-*linux*)
6881             LD="${LD-ld} -m elf32ppclinux"
6882             ;;
6883           s390x-*linux*)
6884             LD="${LD-ld} -m elf_s390"
6885             ;;
6886           sparc64-*linux*)
6887             LD="${LD-ld} -m elf32_sparc"
6888             ;;
6889         esac
6890         ;;
6891       *64-bit*)
6892         case $host in
6893           x86_64-*kfreebsd*-gnu)
6894             LD="${LD-ld} -m elf_x86_64_fbsd"
6895             ;;
6896           x86_64-*linux*)
6897             LD="${LD-ld} -m elf_x86_64"
6898             ;;
6899           ppc*-*linux*|powerpc*-*linux*)
6900             LD="${LD-ld} -m elf64ppc"
6901             ;;
6902           s390*-*linux*|s390*-*tpf*)
6903             LD="${LD-ld} -m elf64_s390"
6904             ;;
6905           sparc*-*linux*)
6906             LD="${LD-ld} -m elf64_sparc"
6907             ;;
6908         esac
6909         ;;
6910     esac
6911   fi
6912   rm -rf conftest*
6913   ;;
6914
6915 *-*-sco3.2v5*)
6916   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6917   SAVE_CFLAGS="$CFLAGS"
6918   CFLAGS="$CFLAGS -belf"
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6920 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6921 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   ac_ext=c
6925 ac_cpp='$CPP $CPPFLAGS'
6926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6929
6930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932
6933 int
6934 main ()
6935 {
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 if ac_fn_c_try_link "$LINENO"; then :
6942   lt_cv_cc_needs_belf=yes
6943 else
6944   lt_cv_cc_needs_belf=no
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext \
6947     conftest$ac_exeext conftest.$ac_ext
6948      ac_ext=c
6949 ac_cpp='$CPP $CPPFLAGS'
6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6953
6954 fi
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6957   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6958     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6959     CFLAGS="$SAVE_CFLAGS"
6960   fi
6961   ;;
6962 sparc*-*solaris*)
6963   # Find out which ABI we are using.
6964   echo 'int i;' > conftest.$ac_ext
6965   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6966   (eval $ac_compile) 2>&5
6967   ac_status=$?
6968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6969   test $ac_status = 0; }; then
6970     case `/usr/bin/file conftest.o` in
6971     *64-bit*)
6972       case $lt_cv_prog_gnu_ld in
6973       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6974       *)
6975         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976           LD="${LD-ld} -64"
6977         fi
6978         ;;
6979       esac
6980       ;;
6981     esac
6982   fi
6983   rm -rf conftest*
6984   ;;
6985 esac
6986
6987 need_locks="$enable_libtool_lock"
6988
6989
6990   case $host_os in
6991     rhapsody* | darwin*)
6992     if test -n "$ac_tool_prefix"; then
6993   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   if test -n "$DSYMUTIL"; then
7001   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006   IFS=$as_save_IFS
7007   test -z "$as_dir" && as_dir=.
7008     for ac_exec_ext in '' $ac_executable_extensions; do
7009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012     break 2
7013   fi
7014 done
7015   done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7021 if test -n "$DSYMUTIL"; then
7022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7023 $as_echo "$DSYMUTIL" >&6; }
7024 else
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029
7030 fi
7031 if test -z "$ac_cv_prog_DSYMUTIL"; then
7032   ac_ct_DSYMUTIL=$DSYMUTIL
7033   # Extract the first word of "dsymutil", so it can be a program name with args.
7034 set dummy dsymutil; ac_word=$2
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036 $as_echo_n "checking for $ac_word... " >&6; }
7037 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7038   $as_echo_n "(cached) " >&6
7039 else
7040   if test -n "$ac_ct_DSYMUTIL"; then
7041   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046   IFS=$as_save_IFS
7047   test -z "$as_dir" && as_dir=.
7048     for ac_exec_ext in '' $ac_executable_extensions; do
7049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7050     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7052     break 2
7053   fi
7054 done
7055   done
7056 IFS=$as_save_IFS
7057
7058 fi
7059 fi
7060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7061 if test -n "$ac_ct_DSYMUTIL"; then
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7064 else
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7067 fi
7068
7069   if test "x$ac_ct_DSYMUTIL" = x; then
7070     DSYMUTIL=":"
7071   else
7072     case $cross_compiling:$ac_tool_warned in
7073 yes:)
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7076 ac_tool_warned=yes ;;
7077 esac
7078     DSYMUTIL=$ac_ct_DSYMUTIL
7079   fi
7080 else
7081   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7082 fi
7083
7084     if test -n "$ac_tool_prefix"; then
7085   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7090   $as_echo_n "(cached) " >&6
7091 else
7092   if test -n "$NMEDIT"; then
7093   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100     for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107   done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 NMEDIT=$ac_cv_prog_NMEDIT
7113 if test -n "$NMEDIT"; then
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7115 $as_echo "$NMEDIT" >&6; }
7116 else
7117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7119 fi
7120
7121
7122 fi
7123 if test -z "$ac_cv_prog_NMEDIT"; then
7124   ac_ct_NMEDIT=$NMEDIT
7125   # Extract the first word of "nmedit", so it can be a program name with args.
7126 set dummy nmedit; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$ac_ct_NMEDIT"; then
7133   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7153 if test -n "$ac_ct_NMEDIT"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7155 $as_echo "$ac_ct_NMEDIT" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161   if test "x$ac_ct_NMEDIT" = x; then
7162     NMEDIT=":"
7163   else
7164     case $cross_compiling:$ac_tool_warned in
7165 yes:)
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7168 ac_tool_warned=yes ;;
7169 esac
7170     NMEDIT=$ac_ct_NMEDIT
7171   fi
7172 else
7173   NMEDIT="$ac_cv_prog_NMEDIT"
7174 fi
7175
7176     if test -n "$ac_tool_prefix"; then
7177   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_LIPO+set}" = set; then :
7182   $as_echo_n "(cached) " >&6
7183 else
7184   if test -n "$LIPO"; then
7185   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190   IFS=$as_save_IFS
7191   test -z "$as_dir" && as_dir=.
7192     for ac_exec_ext in '' $ac_executable_extensions; do
7193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196     break 2
7197   fi
7198 done
7199   done
7200 IFS=$as_save_IFS
7201
7202 fi
7203 fi
7204 LIPO=$ac_cv_prog_LIPO
7205 if test -n "$LIPO"; then
7206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7207 $as_echo "$LIPO" >&6; }
7208 else
7209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210 $as_echo "no" >&6; }
7211 fi
7212
7213
7214 fi
7215 if test -z "$ac_cv_prog_LIPO"; then
7216   ac_ct_LIPO=$LIPO
7217   # Extract the first word of "lipo", so it can be a program name with args.
7218 set dummy lipo; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$ac_ct_LIPO"; then
7225   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234     ac_cv_prog_ac_ct_LIPO="lipo"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7245 if test -n "$ac_ct_LIPO"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7247 $as_echo "$ac_ct_LIPO" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253   if test "x$ac_ct_LIPO" = x; then
7254     LIPO=":"
7255   else
7256     case $cross_compiling:$ac_tool_warned in
7257 yes:)
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7260 ac_tool_warned=yes ;;
7261 esac
7262     LIPO=$ac_ct_LIPO
7263   fi
7264 else
7265   LIPO="$ac_cv_prog_LIPO"
7266 fi
7267
7268     if test -n "$ac_tool_prefix"; then
7269   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}otool; ac_word=$2
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7272 $as_echo_n "checking for $ac_word... " >&6; }
7273 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7274   $as_echo_n "(cached) " >&6
7275 else
7276   if test -n "$OTOOL"; then
7277   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284     for ac_exec_ext in '' $ac_executable_extensions; do
7285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7286     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291   done
7292 IFS=$as_save_IFS
7293
7294 fi
7295 fi
7296 OTOOL=$ac_cv_prog_OTOOL
7297 if test -n "$OTOOL"; then
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7299 $as_echo "$OTOOL" >&6; }
7300 else
7301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302 $as_echo "no" >&6; }
7303 fi
7304
7305
7306 fi
7307 if test -z "$ac_cv_prog_OTOOL"; then
7308   ac_ct_OTOOL=$OTOOL
7309   # Extract the first word of "otool", so it can be a program name with args.
7310 set dummy otool; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$ac_ct_OTOOL"; then
7317   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7326     ac_cv_prog_ac_ct_OTOOL="otool"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7337 if test -n "$ac_ct_OTOOL"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7339 $as_echo "$ac_ct_OTOOL" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345   if test "x$ac_ct_OTOOL" = x; then
7346     OTOOL=":"
7347   else
7348     case $cross_compiling:$ac_tool_warned in
7349 yes:)
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7352 ac_tool_warned=yes ;;
7353 esac
7354     OTOOL=$ac_ct_OTOOL
7355   fi
7356 else
7357   OTOOL="$ac_cv_prog_OTOOL"
7358 fi
7359
7360     if test -n "$ac_tool_prefix"; then
7361   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   if test -n "$OTOOL64"; then
7369   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376     for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383   done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 OTOOL64=$ac_cv_prog_OTOOL64
7389 if test -n "$OTOOL64"; then
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7391 $as_echo "$OTOOL64" >&6; }
7392 else
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_OTOOL64"; then
7400   ac_ct_OTOOL64=$OTOOL64
7401   # Extract the first word of "otool64", so it can be a program name with args.
7402 set dummy otool64; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$ac_ct_OTOOL64"; then
7409   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418     ac_cv_prog_ac_ct_OTOOL64="otool64"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7429 if test -n "$ac_ct_OTOOL64"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7431 $as_echo "$ac_ct_OTOOL64" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437   if test "x$ac_ct_OTOOL64" = x; then
7438     OTOOL64=":"
7439   else
7440     case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     OTOOL64=$ac_ct_OTOOL64
7447   fi
7448 else
7449   OTOOL64="$ac_cv_prog_OTOOL64"
7450 fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7479 $as_echo_n "checking for -single_module linker flag... " >&6; }
7480 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   lt_cv_apple_cc_single_mod=no
7484       if test -z "${LT_MULTI_MODULE}"; then
7485         # By default we will add the -single_module flag. You can override
7486         # by either setting the environment variable LT_MULTI_MODULE
7487         # non-empty at configure time, or by adding -multi_module to the
7488         # link flags.
7489         rm -rf libconftest.dylib*
7490         echo "int foo(void){return 1;}" > conftest.c
7491         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7492 -dynamiclib -Wl,-single_module conftest.c" >&5
7493         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7494           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7495         _lt_result=$?
7496         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7497           lt_cv_apple_cc_single_mod=yes
7498         else
7499           cat conftest.err >&5
7500         fi
7501         rm -rf libconftest.dylib*
7502         rm -f conftest.*
7503       fi
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7507     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7509 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7510   $as_echo_n "(cached) " >&6
7511 else
7512   lt_cv_ld_exported_symbols_list=no
7513       save_LDFLAGS=$LDFLAGS
7514       echo "_main" > conftest.sym
7515       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7516       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h.  */
7518
7519 int
7520 main ()
7521 {
7522
7523   ;
7524   return 0;
7525 }
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528   lt_cv_ld_exported_symbols_list=yes
7529 else
7530   lt_cv_ld_exported_symbols_list=no
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext \
7533     conftest$ac_exeext conftest.$ac_ext
7534         LDFLAGS="$save_LDFLAGS"
7535
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7538 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7539     case $host_os in
7540     rhapsody* | darwin1.[012])
7541       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7542     darwin1.*)
7543       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7544     darwin*) # darwin 5.x on
7545       # if running on 10.5 or later, the deployment target defaults
7546       # to the OS version, if on x86, and 10.4, the deployment
7547       # target defaults to 10.4. Don't you love it?
7548       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7549         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7550           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7551         10.[012]*)
7552           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7553         10.*)
7554           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7555       esac
7556     ;;
7557   esac
7558     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7559       _lt_dar_single_mod='$single_module'
7560     fi
7561     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7562       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7563     else
7564       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7565     fi
7566     if test "$DSYMUTIL" != ":"; then
7567       _lt_dsymutil='~$DSYMUTIL $lib || :'
7568     else
7569       _lt_dsymutil=
7570     fi
7571     ;;
7572   esac
7573
7574 for ac_header in dlfcn.h
7575 do :
7576   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7577 "
7578 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7579   cat >>confdefs.h <<_ACEOF
7580 #define HAVE_DLFCN_H 1
7581 _ACEOF
7582
7583 fi
7584
7585 done
7586
7587
7588
7589 # Set options
7590
7591
7592
7593         enable_dlopen=no
7594
7595
7596
7597             # Check whether --enable-shared was given.
7598 if test "${enable_shared+set}" = set; then :
7599   enableval=$enable_shared; p=${PACKAGE-default}
7600     case $enableval in
7601     yes) enable_shared=yes ;;
7602     no) enable_shared=no ;;
7603     *)
7604       enable_shared=no
7605       # Look at the argument we got.  We use all the common list separators.
7606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7607       for pkg in $enableval; do
7608         IFS="$lt_save_ifs"
7609         if test "X$pkg" = "X$p"; then
7610           enable_shared=yes
7611         fi
7612       done
7613       IFS="$lt_save_ifs"
7614       ;;
7615     esac
7616 else
7617   enable_shared=yes
7618 fi
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628   # Check whether --enable-static was given.
7629 if test "${enable_static+set}" = set; then :
7630   enableval=$enable_static; p=${PACKAGE-default}
7631     case $enableval in
7632     yes) enable_static=yes ;;
7633     no) enable_static=no ;;
7634     *)
7635      enable_static=no
7636       # Look at the argument we got.  We use all the common list separators.
7637       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638       for pkg in $enableval; do
7639         IFS="$lt_save_ifs"
7640         if test "X$pkg" = "X$p"; then
7641           enable_static=yes
7642         fi
7643       done
7644       IFS="$lt_save_ifs"
7645       ;;
7646     esac
7647 else
7648   enable_static=yes
7649 fi
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660 # Check whether --with-pic was given.
7661 if test "${with_pic+set}" = set; then :
7662   withval=$with_pic; pic_mode="$withval"
7663 else
7664   pic_mode=default
7665 fi
7666
7667
7668 test -z "$pic_mode" && pic_mode=default
7669
7670
7671
7672
7673
7674
7675
7676   # Check whether --enable-fast-install was given.
7677 if test "${enable_fast_install+set}" = set; then :
7678   enableval=$enable_fast_install; p=${PACKAGE-default}
7679     case $enableval in
7680     yes) enable_fast_install=yes ;;
7681     no) enable_fast_install=no ;;
7682     *)
7683       enable_fast_install=no
7684       # Look at the argument we got.  We use all the common list separators.
7685       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686       for pkg in $enableval; do
7687         IFS="$lt_save_ifs"
7688         if test "X$pkg" = "X$p"; then
7689           enable_fast_install=yes
7690         fi
7691       done
7692       IFS="$lt_save_ifs"
7693       ;;
7694     esac
7695 else
7696   enable_fast_install=yes
7697 fi
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709 # This can be used to rebuild libtool when needed
7710 LIBTOOL_DEPS="$ltmain"
7711
7712 # Always use our own libtool.
7713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739 test -z "$LN_S" && LN_S="ln -s"
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754 if test -n "${ZSH_VERSION+set}" ; then
7755    setopt NO_GLOB_SUBST
7756 fi
7757
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7759 $as_echo_n "checking for objdir... " >&6; }
7760 if test "${lt_cv_objdir+set}" = set; then :
7761   $as_echo_n "(cached) " >&6
7762 else
7763   rm -f .libs 2>/dev/null
7764 mkdir .libs 2>/dev/null
7765 if test -d .libs; then
7766   lt_cv_objdir=.libs
7767 else
7768   # MS-DOS does not allow filenames that begin with a dot.
7769   lt_cv_objdir=_libs
7770 fi
7771 rmdir .libs 2>/dev/null
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7774 $as_echo "$lt_cv_objdir" >&6; }
7775 objdir=$lt_cv_objdir
7776
7777
7778
7779
7780
7781 cat >>confdefs.h <<_ACEOF
7782 #define LT_OBJDIR "$lt_cv_objdir/"
7783 _ACEOF
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 case $host_os in
7802 aix3*)
7803   # AIX sometimes has problems with the GCC collect2 program.  For some
7804   # reason, if we set the COLLECT_NAMES environment variable, the problems
7805   # vanish in a puff of smoke.
7806   if test "X${COLLECT_NAMES+set}" != Xset; then
7807     COLLECT_NAMES=
7808     export COLLECT_NAMES
7809   fi
7810   ;;
7811 esac
7812
7813 # Sed substitution that helps us do robust quoting.  It backslashifies
7814 # metacharacters that are still active within double-quoted strings.
7815 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7816
7817 # Same as above, but do not quote variable references.
7818 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7819
7820 # Sed substitution to delay expansion of an escaped shell variable in a
7821 # double_quote_subst'ed string.
7822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7823
7824 # Sed substitution to delay expansion of an escaped single quote.
7825 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7826
7827 # Sed substitution to avoid accidental globbing in evaled expressions
7828 no_glob_subst='s/\*/\\\*/g'
7829
7830 # Global variables:
7831 ofile=libtool
7832 can_build_shared=yes
7833
7834 # All known linkers require a `.a' archive for static linking (except MSVC,
7835 # which needs '.lib').
7836 libext=a
7837
7838 with_gnu_ld="$lt_cv_prog_gnu_ld"
7839
7840 old_CC="$CC"
7841 old_CFLAGS="$CFLAGS"
7842
7843 # Set sane defaults for various variables
7844 test -z "$CC" && CC=cc
7845 test -z "$LTCC" && LTCC=$CC
7846 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7847 test -z "$LD" && LD=ld
7848 test -z "$ac_objext" && ac_objext=o
7849
7850 for cc_temp in $compiler""; do
7851   case $cc_temp in
7852     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7853     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7854     \-*) ;;
7855     *) break;;
7856   esac
7857 done
7858 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7859
7860
7861 # Only perform the check for file, if the check method requires it
7862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7863 case $deplibs_check_method in
7864 file_magic*)
7865   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7867 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7868 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7869   $as_echo_n "(cached) " >&6
7870 else
7871   case $MAGIC_CMD in
7872 [\\/*] |  ?:[\\/]*)
7873   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7874   ;;
7875 *)
7876   lt_save_MAGIC_CMD="$MAGIC_CMD"
7877   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7878   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7879   for ac_dir in $ac_dummy; do
7880     IFS="$lt_save_ifs"
7881     test -z "$ac_dir" && ac_dir=.
7882     if test -f $ac_dir/${ac_tool_prefix}file; then
7883       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7884       if test -n "$file_magic_test_file"; then
7885         case $deplibs_check_method in
7886         "file_magic "*)
7887           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7888           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7890             $EGREP "$file_magic_regex" > /dev/null; then
7891             :
7892           else
7893             cat <<_LT_EOF 1>&2
7894
7895 *** Warning: the command libtool uses to detect shared libraries,
7896 *** $file_magic_cmd, produces output that libtool cannot recognize.
7897 *** The result is that libtool may fail to recognize shared libraries
7898 *** as such.  This will affect the creation of libtool libraries that
7899 *** depend on shared libraries, but programs linked with such libtool
7900 *** libraries will work regardless of this problem.  Nevertheless, you
7901 *** may want to report the problem to your system manager and/or to
7902 *** bug-libtool@gnu.org
7903
7904 _LT_EOF
7905           fi ;;
7906         esac
7907       fi
7908       break
7909     fi
7910   done
7911   IFS="$lt_save_ifs"
7912   MAGIC_CMD="$lt_save_MAGIC_CMD"
7913   ;;
7914 esac
7915 fi
7916
7917 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918 if test -n "$MAGIC_CMD"; then
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7920 $as_echo "$MAGIC_CMD" >&6; }
7921 else
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7924 fi
7925
7926
7927
7928
7929
7930 if test -z "$lt_cv_path_MAGIC_CMD"; then
7931   if test -n "$ac_tool_prefix"; then
7932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7933 $as_echo_n "checking for file... " >&6; }
7934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   case $MAGIC_CMD in
7938 [\\/*] |  ?:[\\/]*)
7939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7940   ;;
7941 *)
7942   lt_save_MAGIC_CMD="$MAGIC_CMD"
7943   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7944   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7945   for ac_dir in $ac_dummy; do
7946     IFS="$lt_save_ifs"
7947     test -z "$ac_dir" && ac_dir=.
7948     if test -f $ac_dir/file; then
7949       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7950       if test -n "$file_magic_test_file"; then
7951         case $deplibs_check_method in
7952         "file_magic "*)
7953           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7954           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7956             $EGREP "$file_magic_regex" > /dev/null; then
7957             :
7958           else
7959             cat <<_LT_EOF 1>&2
7960
7961 *** Warning: the command libtool uses to detect shared libraries,
7962 *** $file_magic_cmd, produces output that libtool cannot recognize.
7963 *** The result is that libtool may fail to recognize shared libraries
7964 *** as such.  This will affect the creation of libtool libraries that
7965 *** depend on shared libraries, but programs linked with such libtool
7966 *** libraries will work regardless of this problem.  Nevertheless, you
7967 *** may want to report the problem to your system manager and/or to
7968 *** bug-libtool@gnu.org
7969
7970 _LT_EOF
7971           fi ;;
7972         esac
7973       fi
7974       break
7975     fi
7976   done
7977   IFS="$lt_save_ifs"
7978   MAGIC_CMD="$lt_save_MAGIC_CMD"
7979   ;;
7980 esac
7981 fi
7982
7983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7984 if test -n "$MAGIC_CMD"; then
7985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7986 $as_echo "$MAGIC_CMD" >&6; }
7987 else
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7990 fi
7991
7992
7993   else
7994     MAGIC_CMD=:
7995   fi
7996 fi
7997
7998   fi
7999   ;;
8000 esac
8001
8002 # Use C for the default configuration in the libtool script
8003
8004 lt_save_CC="$CC"
8005 ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012 # Source file extension for C test sources.
8013 ac_ext=c
8014
8015 # Object file extension for compiled C test sources.
8016 objext=o
8017 objext=$objext
8018
8019 # Code to be used in simple compile tests
8020 lt_simple_compile_test_code="int some_variable = 0;"
8021
8022 # Code to be used in simple link tests
8023 lt_simple_link_test_code='int main(){return(0);}'
8024
8025
8026
8027
8028
8029
8030
8031 # If no C compiler was specified, use CC.
8032 LTCC=${LTCC-"$CC"}
8033
8034 # If no C compiler flags were specified, use CFLAGS.
8035 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8036
8037 # Allow CC to be a program name with arguments.
8038 compiler=$CC
8039
8040 # Save the default compiler, since it gets overwritten when the other
8041 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8042 compiler_DEFAULT=$CC
8043
8044 # save warnings/boilerplate of simple test code
8045 ac_outfile=conftest.$ac_objext
8046 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8047 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8048 _lt_compiler_boilerplate=`cat conftest.err`
8049 $RM conftest*
8050
8051 ac_outfile=conftest.$ac_objext
8052 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8053 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8054 _lt_linker_boilerplate=`cat conftest.err`
8055 $RM -r conftest*
8056
8057
8058 ## CAVEAT EMPTOR:
8059 ## There is no encapsulation within the following macros, do not change
8060 ## the running order or otherwise move them around unless you know exactly
8061 ## what you are doing...
8062 if test -n "$compiler"; then
8063
8064 lt_prog_compiler_no_builtin_flag=
8065
8066 if test "$GCC" = yes; then
8067   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8068
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8070 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8071 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8072   $as_echo_n "(cached) " >&6
8073 else
8074   lt_cv_prog_compiler_rtti_exceptions=no
8075    ac_outfile=conftest.$ac_objext
8076    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8077    lt_compiler_flag="-fno-rtti -fno-exceptions"
8078    # Insert the option either (1) after the last *FLAGS variable, or
8079    # (2) before a word containing "conftest.", or (3) at the end.
8080    # Note that $ac_compile itself does not contain backslashes and begins
8081    # with a dollar sign (not a hyphen), so the echo should work correctly.
8082    # The option is referenced via a variable to avoid confusing sed.
8083    lt_compile=`echo "$ac_compile" | $SED \
8084    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8086    -e 's:$: $lt_compiler_flag:'`
8087    (eval echo "\"\$as_me:8087: $lt_compile\"" >&5)
8088    (eval "$lt_compile" 2>conftest.err)
8089    ac_status=$?
8090    cat conftest.err >&5
8091    echo "$as_me:8091: \$? = $ac_status" >&5
8092    if (exit $ac_status) && test -s "$ac_outfile"; then
8093      # The compiler can only warn and ignore the option if not recognized
8094      # So say no if there are warnings other than the usual output.
8095      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8096      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8097      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8098        lt_cv_prog_compiler_rtti_exceptions=yes
8099      fi
8100    fi
8101    $RM conftest*
8102
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8105 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8106
8107 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8108     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8109 else
8110     :
8111 fi
8112
8113 fi
8114
8115
8116
8117
8118
8119
8120   lt_prog_compiler_wl=
8121 lt_prog_compiler_pic=
8122 lt_prog_compiler_static=
8123
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8125 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8126
8127   if test "$GCC" = yes; then
8128     lt_prog_compiler_wl='-Wl,'
8129     lt_prog_compiler_static='-static'
8130
8131     case $host_os in
8132       aix*)
8133       # All AIX code is PIC.
8134       if test "$host_cpu" = ia64; then
8135         # AIX 5 now supports IA64 processor
8136         lt_prog_compiler_static='-Bstatic'
8137       fi
8138       ;;
8139
8140     amigaos*)
8141       case $host_cpu in
8142       powerpc)
8143             # see comment about AmigaOS4 .so support
8144             lt_prog_compiler_pic='-fPIC'
8145         ;;
8146       m68k)
8147             # FIXME: we need at least 68020 code to build shared libraries, but
8148             # adding the `-m68020' flag to GCC prevents building anything better,
8149             # like `-m68040'.
8150             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8151         ;;
8152       esac
8153       ;;
8154
8155     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8156       # PIC is the default for these OSes.
8157       ;;
8158
8159     mingw* | cygwin* | pw32* | os2* | cegcc*)
8160       # This hack is so that the source file can tell whether it is being
8161       # built for inclusion in a dll (and should export symbols for example).
8162       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8163       # (--disable-auto-import) libraries
8164       lt_prog_compiler_pic='-DDLL_EXPORT'
8165       ;;
8166
8167     darwin* | rhapsody*)
8168       # PIC is the default on this platform
8169       # Common symbols not allowed in MH_DYLIB files
8170       lt_prog_compiler_pic='-fno-common'
8171       ;;
8172
8173     hpux*)
8174       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8175       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8176       # sets the default TLS model and affects inlining.
8177       case $host_cpu in
8178       hppa*64*)
8179         # +Z the default
8180         ;;
8181       *)
8182         lt_prog_compiler_pic='-fPIC'
8183         ;;
8184       esac
8185       ;;
8186
8187     interix[3-9]*)
8188       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8189       # Instead, we relocate shared libraries at runtime.
8190       ;;
8191
8192     msdosdjgpp*)
8193       # Just because we use GCC doesn't mean we suddenly get shared libraries
8194       # on systems that don't support them.
8195       lt_prog_compiler_can_build_shared=no
8196       enable_shared=no
8197       ;;
8198
8199     *nto* | *qnx*)
8200       # QNX uses GNU C++, but need to define -shared option too, otherwise
8201       # it will coredump.
8202       lt_prog_compiler_pic='-fPIC -shared'
8203       ;;
8204
8205     sysv4*MP*)
8206       if test -d /usr/nec; then
8207         lt_prog_compiler_pic=-Kconform_pic
8208       fi
8209       ;;
8210
8211     *)
8212       lt_prog_compiler_pic='-fPIC'
8213       ;;
8214     esac
8215   else
8216     # PORTME Check for flag to pass linker flags through the system compiler.
8217     case $host_os in
8218     aix*)
8219       lt_prog_compiler_wl='-Wl,'
8220       if test "$host_cpu" = ia64; then
8221         # AIX 5 now supports IA64 processor
8222         lt_prog_compiler_static='-Bstatic'
8223       else
8224         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8225       fi
8226       ;;
8227
8228     mingw* | cygwin* | pw32* | os2* | cegcc*)
8229       # This hack is so that the source file can tell whether it is being
8230       # built for inclusion in a dll (and should export symbols for example).
8231       lt_prog_compiler_pic='-DDLL_EXPORT'
8232       ;;
8233
8234     hpux9* | hpux10* | hpux11*)
8235       lt_prog_compiler_wl='-Wl,'
8236       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8237       # not for PA HP-UX.
8238       case $host_cpu in
8239       hppa*64*|ia64*)
8240         # +Z the default
8241         ;;
8242       *)
8243         lt_prog_compiler_pic='+Z'
8244         ;;
8245       esac
8246       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8247       lt_prog_compiler_static='${wl}-a ${wl}archive'
8248       ;;
8249
8250     irix5* | irix6* | nonstopux*)
8251       lt_prog_compiler_wl='-Wl,'
8252       # PIC (with -KPIC) is the default.
8253       lt_prog_compiler_static='-non_shared'
8254       ;;
8255
8256     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8257       case $cc_basename in
8258       # old Intel for x86_64 which still supported -KPIC.
8259       ecc*)
8260         lt_prog_compiler_wl='-Wl,'
8261         lt_prog_compiler_pic='-KPIC'
8262         lt_prog_compiler_static='-static'
8263         ;;
8264       # icc used to be incompatible with GCC.
8265       # ICC 10 doesn't accept -KPIC any more.
8266       icc* | ifort*)
8267         lt_prog_compiler_wl='-Wl,'
8268         lt_prog_compiler_pic='-fPIC'
8269         lt_prog_compiler_static='-static'
8270         ;;
8271       # Lahey Fortran 8.1.
8272       lf95*)
8273         lt_prog_compiler_wl='-Wl,'
8274         lt_prog_compiler_pic='--shared'
8275         lt_prog_compiler_static='--static'
8276         ;;
8277       pgcc* | pgf77* | pgf90* | pgf95*)
8278         # Portland Group compilers (*not* the Pentium gcc compiler,
8279         # which looks to be a dead project)
8280         lt_prog_compiler_wl='-Wl,'
8281         lt_prog_compiler_pic='-fpic'
8282         lt_prog_compiler_static='-Bstatic'
8283         ;;
8284       ccc*)
8285         lt_prog_compiler_wl='-Wl,'
8286         # All Alpha code is PIC.
8287         lt_prog_compiler_static='-non_shared'
8288         ;;
8289       xl*)
8290         # IBM XL C 8.0/Fortran 10.1 on PPC
8291         lt_prog_compiler_wl='-Wl,'
8292         lt_prog_compiler_pic='-qpic'
8293         lt_prog_compiler_static='-qstaticlink'
8294         ;;
8295       *)
8296         case `$CC -V 2>&1 | sed 5q` in
8297         *Sun\ C*)
8298           # Sun C 5.9
8299           lt_prog_compiler_pic='-KPIC'
8300           lt_prog_compiler_static='-Bstatic'
8301           lt_prog_compiler_wl='-Wl,'
8302           ;;
8303         *Sun\ F*)
8304           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8305           lt_prog_compiler_pic='-KPIC'
8306           lt_prog_compiler_static='-Bstatic'
8307           lt_prog_compiler_wl=''
8308           ;;
8309         esac
8310         ;;
8311       esac
8312       ;;
8313
8314     newsos6)
8315       lt_prog_compiler_pic='-KPIC'
8316       lt_prog_compiler_static='-Bstatic'
8317       ;;
8318
8319     *nto* | *qnx*)
8320       # QNX uses GNU C++, but need to define -shared option too, otherwise
8321       # it will coredump.
8322       lt_prog_compiler_pic='-fPIC -shared'
8323       ;;
8324
8325     osf3* | osf4* | osf5*)
8326       lt_prog_compiler_wl='-Wl,'
8327       # All OSF/1 code is PIC.
8328       lt_prog_compiler_static='-non_shared'
8329       ;;
8330
8331     rdos*)
8332       lt_prog_compiler_static='-non_shared'
8333       ;;
8334
8335     solaris*)
8336       lt_prog_compiler_pic='-KPIC'
8337       lt_prog_compiler_static='-Bstatic'
8338       case $cc_basename in
8339       f77* | f90* | f95*)
8340         lt_prog_compiler_wl='-Qoption ld ';;
8341       *)
8342         lt_prog_compiler_wl='-Wl,';;
8343       esac
8344       ;;
8345
8346     sunos4*)
8347       lt_prog_compiler_wl='-Qoption ld '
8348       lt_prog_compiler_pic='-PIC'
8349       lt_prog_compiler_static='-Bstatic'
8350       ;;
8351
8352     sysv4 | sysv4.2uw2* | sysv4.3*)
8353       lt_prog_compiler_wl='-Wl,'
8354       lt_prog_compiler_pic='-KPIC'
8355       lt_prog_compiler_static='-Bstatic'
8356       ;;
8357
8358     sysv4*MP*)
8359       if test -d /usr/nec ;then
8360         lt_prog_compiler_pic='-Kconform_pic'
8361         lt_prog_compiler_static='-Bstatic'
8362       fi
8363       ;;
8364
8365     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8366       lt_prog_compiler_wl='-Wl,'
8367       lt_prog_compiler_pic='-KPIC'
8368       lt_prog_compiler_static='-Bstatic'
8369       ;;
8370
8371     unicos*)
8372       lt_prog_compiler_wl='-Wl,'
8373       lt_prog_compiler_can_build_shared=no
8374       ;;
8375
8376     uts4*)
8377       lt_prog_compiler_pic='-pic'
8378       lt_prog_compiler_static='-Bstatic'
8379       ;;
8380
8381     *)
8382       lt_prog_compiler_can_build_shared=no
8383       ;;
8384     esac
8385   fi
8386
8387 case $host_os in
8388   # For platforms which do not support PIC, -DPIC is meaningless:
8389   *djgpp*)
8390     lt_prog_compiler_pic=
8391     ;;
8392   *)
8393     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8394     ;;
8395 esac
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8397 $as_echo "$lt_prog_compiler_pic" >&6; }
8398
8399
8400
8401
8402
8403
8404 #
8405 # Check to make sure the PIC flag actually works.
8406 #
8407 if test -n "$lt_prog_compiler_pic"; then
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8409 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8410 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   lt_cv_prog_compiler_pic_works=no
8414    ac_outfile=conftest.$ac_objext
8415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8417    # Insert the option either (1) after the last *FLAGS variable, or
8418    # (2) before a word containing "conftest.", or (3) at the end.
8419    # Note that $ac_compile itself does not contain backslashes and begins
8420    # with a dollar sign (not a hyphen), so the echo should work correctly.
8421    # The option is referenced via a variable to avoid confusing sed.
8422    lt_compile=`echo "$ac_compile" | $SED \
8423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425    -e 's:$: $lt_compiler_flag:'`
8426    (eval echo "\"\$as_me:8426: $lt_compile\"" >&5)
8427    (eval "$lt_compile" 2>conftest.err)
8428    ac_status=$?
8429    cat conftest.err >&5
8430    echo "$as_me:8430: \$? = $ac_status" >&5
8431    if (exit $ac_status) && test -s "$ac_outfile"; then
8432      # The compiler can only warn and ignore the option if not recognized
8433      # So say no if there are warnings other than the usual output.
8434      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8435      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8436      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8437        lt_cv_prog_compiler_pic_works=yes
8438      fi
8439    fi
8440    $RM conftest*
8441
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8444 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8445
8446 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8447     case $lt_prog_compiler_pic in
8448      "" | " "*) ;;
8449      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8450      esac
8451 else
8452     lt_prog_compiler_pic=
8453      lt_prog_compiler_can_build_shared=no
8454 fi
8455
8456 fi
8457
8458
8459
8460
8461
8462
8463 #
8464 # Check to make sure the static flag actually works.
8465 #
8466 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8468 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8469 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8470   $as_echo_n "(cached) " >&6
8471 else
8472   lt_cv_prog_compiler_static_works=no
8473    save_LDFLAGS="$LDFLAGS"
8474    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8475    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8476    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8477      # The linker can only warn and ignore the option if not recognized
8478      # So say no if there are warnings
8479      if test -s conftest.err; then
8480        # Append any errors to the config.log.
8481        cat conftest.err 1>&5
8482        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8483        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484        if diff conftest.exp conftest.er2 >/dev/null; then
8485          lt_cv_prog_compiler_static_works=yes
8486        fi
8487      else
8488        lt_cv_prog_compiler_static_works=yes
8489      fi
8490    fi
8491    $RM -r conftest*
8492    LDFLAGS="$save_LDFLAGS"
8493
8494 fi
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8496 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8497
8498 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8499     :
8500 else
8501     lt_prog_compiler_static=
8502 fi
8503
8504
8505
8506
8507
8508
8509
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8511 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8512 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   lt_cv_prog_compiler_c_o=no
8516    $RM -r conftest 2>/dev/null
8517    mkdir conftest
8518    cd conftest
8519    mkdir out
8520    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8521
8522    lt_compiler_flag="-o out/conftest2.$ac_objext"
8523    # Insert the option either (1) after the last *FLAGS variable, or
8524    # (2) before a word containing "conftest.", or (3) at the end.
8525    # Note that $ac_compile itself does not contain backslashes and begins
8526    # with a dollar sign (not a hyphen), so the echo should work correctly.
8527    lt_compile=`echo "$ac_compile" | $SED \
8528    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530    -e 's:$: $lt_compiler_flag:'`
8531    (eval echo "\"\$as_me:8531: $lt_compile\"" >&5)
8532    (eval "$lt_compile" 2>out/conftest.err)
8533    ac_status=$?
8534    cat out/conftest.err >&5
8535    echo "$as_me:8535: \$? = $ac_status" >&5
8536    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8537    then
8538      # The compiler can only warn and ignore the option if not recognized
8539      # So say no if there are warnings
8540      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8541      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8542      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8543        lt_cv_prog_compiler_c_o=yes
8544      fi
8545    fi
8546    chmod u+w . 2>&5
8547    $RM conftest*
8548    # SGI C++ compiler will create directory out/ii_files/ for
8549    # template instantiation
8550    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8551    $RM out/* && rmdir out
8552    cd ..
8553    $RM -r conftest
8554    $RM conftest*
8555
8556 fi
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8558 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8559
8560
8561
8562
8563
8564
8565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8568   $as_echo_n "(cached) " >&6
8569 else
8570   lt_cv_prog_compiler_c_o=no
8571    $RM -r conftest 2>/dev/null
8572    mkdir conftest
8573    cd conftest
8574    mkdir out
8575    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577    lt_compiler_flag="-o out/conftest2.$ac_objext"
8578    # Insert the option either (1) after the last *FLAGS variable, or
8579    # (2) before a word containing "conftest.", or (3) at the end.
8580    # Note that $ac_compile itself does not contain backslashes and begins
8581    # with a dollar sign (not a hyphen), so the echo should work correctly.
8582    lt_compile=`echo "$ac_compile" | $SED \
8583    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8584    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8585    -e 's:$: $lt_compiler_flag:'`
8586    (eval echo "\"\$as_me:8586: $lt_compile\"" >&5)
8587    (eval "$lt_compile" 2>out/conftest.err)
8588    ac_status=$?
8589    cat out/conftest.err >&5
8590    echo "$as_me:8590: \$? = $ac_status" >&5
8591    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8592    then
8593      # The compiler can only warn and ignore the option if not recognized
8594      # So say no if there are warnings
8595      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8596      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8597      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8598        lt_cv_prog_compiler_c_o=yes
8599      fi
8600    fi
8601    chmod u+w . 2>&5
8602    $RM conftest*
8603    # SGI C++ compiler will create directory out/ii_files/ for
8604    # template instantiation
8605    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8606    $RM out/* && rmdir out
8607    cd ..
8608    $RM -r conftest
8609    $RM conftest*
8610
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8613 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8614
8615
8616
8617
8618 hard_links="nottested"
8619 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8620   # do not overwrite the value of need_locks provided by the user
8621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8622 $as_echo_n "checking if we can lock with hard links... " >&6; }
8623   hard_links=yes
8624   $RM conftest*
8625   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8626   touch conftest.a
8627   ln conftest.a conftest.b 2>&5 || hard_links=no
8628   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8630 $as_echo "$hard_links" >&6; }
8631   if test "$hard_links" = no; then
8632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8634     need_locks=warn
8635   fi
8636 else
8637   need_locks=no
8638 fi
8639
8640
8641
8642
8643
8644
8645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8646 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8647
8648   runpath_var=
8649   allow_undefined_flag=
8650   always_export_symbols=no
8651   archive_cmds=
8652   archive_expsym_cmds=
8653   compiler_needs_object=no
8654   enable_shared_with_static_runtimes=no
8655   export_dynamic_flag_spec=
8656   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8657   hardcode_automatic=no
8658   hardcode_direct=no
8659   hardcode_direct_absolute=no
8660   hardcode_libdir_flag_spec=
8661   hardcode_libdir_flag_spec_ld=
8662   hardcode_libdir_separator=
8663   hardcode_minus_L=no
8664   hardcode_shlibpath_var=unsupported
8665   inherit_rpath=no
8666   link_all_deplibs=unknown
8667   module_cmds=
8668   module_expsym_cmds=
8669   old_archive_from_new_cmds=
8670   old_archive_from_expsyms_cmds=
8671   thread_safe_flag_spec=
8672   whole_archive_flag_spec=
8673   # include_expsyms should be a list of space-separated symbols to be *always*
8674   # included in the symbol list
8675   include_expsyms=
8676   # exclude_expsyms can be an extended regexp of symbols to exclude
8677   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8678   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8679   # as well as any symbol that contains `d'.
8680   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8681   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8682   # platforms (ab)use it in PIC code, but their linkers get confused if
8683   # the symbol is explicitly referenced.  Since portable code cannot
8684   # rely on this symbol name, it's probably fine to never include it in
8685   # preloaded symbol tables.
8686   # Exclude shared library initialization/finalization symbols.
8687   extract_expsyms_cmds=
8688
8689   case $host_os in
8690   cygwin* | mingw* | pw32* | cegcc*)
8691     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8692     # When not using gcc, we currently assume that we are using
8693     # Microsoft Visual C++.
8694     if test "$GCC" != yes; then
8695       with_gnu_ld=no
8696     fi
8697     ;;
8698   interix*)
8699     # we just hope/assume this is gcc and not c89 (= MSVC++)
8700     with_gnu_ld=yes
8701     ;;
8702   openbsd*)
8703     with_gnu_ld=no
8704     ;;
8705   linux* | k*bsd*-gnu)
8706     link_all_deplibs=no
8707     ;;
8708   esac
8709
8710   ld_shlibs=yes
8711   if test "$with_gnu_ld" = yes; then
8712     # If archive_cmds runs LD, not CC, wlarc should be empty
8713     wlarc='${wl}'
8714
8715     # Set some defaults for GNU ld with shared library support. These
8716     # are reset later if shared libraries are not supported. Putting them
8717     # here allows them to be overridden if necessary.
8718     runpath_var=LD_RUN_PATH
8719     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720     export_dynamic_flag_spec='${wl}--export-dynamic'
8721     # ancient GNU ld didn't support --whole-archive et. al.
8722     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8723       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8724     else
8725       whole_archive_flag_spec=
8726     fi
8727     supports_anon_versioning=no
8728     case `$LD -v 2>&1` in
8729       *GNU\ gold*) supports_anon_versioning=yes ;;
8730       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8731       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8732       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8733       *\ 2.11.*) ;; # other 2.11 versions
8734       *) supports_anon_versioning=yes ;;
8735     esac
8736
8737     # See if GNU ld supports shared libraries.
8738     case $host_os in
8739     aix[3-9]*)
8740       # On AIX/PPC, the GNU linker is very broken
8741       if test "$host_cpu" != ia64; then
8742         ld_shlibs=no
8743         cat <<_LT_EOF 1>&2
8744
8745 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8746 *** to be unable to reliably create shared libraries on AIX.
8747 *** Therefore, libtool is disabling shared libraries support.  If you
8748 *** really care for shared libraries, you may want to modify your PATH
8749 *** so that a non-GNU linker is found, and then restart.
8750
8751 _LT_EOF
8752       fi
8753       ;;
8754
8755     amigaos*)
8756       case $host_cpu in
8757       powerpc)
8758             # see comment about AmigaOS4 .so support
8759             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760             archive_expsym_cmds=''
8761         ;;
8762       m68k)
8763             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)'
8764             hardcode_libdir_flag_spec='-L$libdir'
8765             hardcode_minus_L=yes
8766         ;;
8767       esac
8768       ;;
8769
8770     beos*)
8771       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8772         allow_undefined_flag=unsupported
8773         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8774         # support --undefined.  This deserves some investigation.  FIXME
8775         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8776       else
8777         ld_shlibs=no
8778       fi
8779       ;;
8780
8781     cygwin* | mingw* | pw32* | cegcc*)
8782       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8783       # as there is no search path for DLLs.
8784       hardcode_libdir_flag_spec='-L$libdir'
8785       allow_undefined_flag=unsupported
8786       always_export_symbols=no
8787       enable_shared_with_static_runtimes=yes
8788       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8789
8790       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8791         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8792         # If the export-symbols file already is a .def file (1st line
8793         # is EXPORTS), use it as is; otherwise, prepend...
8794         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8795           cp $export_symbols $output_objdir/$soname.def;
8796         else
8797           echo EXPORTS > $output_objdir/$soname.def;
8798           cat $export_symbols >> $output_objdir/$soname.def;
8799         fi~
8800         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8801       else
8802         ld_shlibs=no
8803       fi
8804       ;;
8805
8806     interix[3-9]*)
8807       hardcode_direct=no
8808       hardcode_shlibpath_var=no
8809       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810       export_dynamic_flag_spec='${wl}-E'
8811       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8812       # Instead, shared libraries are loaded at an image base (0x10000000 by
8813       # default) and relocated if they conflict, which is a slow very memory
8814       # consuming and fragmenting process.  To avoid this, we pick a random,
8815       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8816       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8817       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8818       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'
8819       ;;
8820
8821     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8822       tmp_diet=no
8823       if test "$host_os" = linux-dietlibc; then
8824         case $cc_basename in
8825           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8826         esac
8827       fi
8828       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8829          && test "$tmp_diet" = no
8830       then
8831         tmp_addflag=
8832         tmp_sharedflag='-shared'
8833         case $cc_basename,$host_cpu in
8834         pgcc*)                          # Portland Group C compiler
8835           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8836           tmp_addflag=' $pic_flag'
8837           ;;
8838         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8839           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8840           tmp_addflag=' $pic_flag -Mnomain' ;;
8841         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8842           tmp_addflag=' -i_dynamic' ;;
8843         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8844           tmp_addflag=' -i_dynamic -nofor_main' ;;
8845         ifc* | ifort*)                  # Intel Fortran compiler
8846           tmp_addflag=' -nofor_main' ;;
8847         lf95*)                          # Lahey Fortran 8.1
8848           whole_archive_flag_spec=
8849           tmp_sharedflag='--shared' ;;
8850         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8851           tmp_sharedflag='-qmkshrobj'
8852           tmp_addflag= ;;
8853         esac
8854         case `$CC -V 2>&1 | sed 5q` in
8855         *Sun\ C*)                       # Sun C 5.9
8856           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8857           compiler_needs_object=yes
8858           tmp_sharedflag='-G' ;;
8859         *Sun\ F*)                       # Sun Fortran 8.3
8860           tmp_sharedflag='-G' ;;
8861         esac
8862         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863
8864         if test "x$supports_anon_versioning" = xyes; then
8865           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8866             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8867             echo "local: *; };" >> $output_objdir/$libname.ver~
8868             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8869         fi
8870
8871         case $cc_basename in
8872         xlf*)
8873           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8874           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8875           hardcode_libdir_flag_spec=
8876           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8877           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8878           if test "x$supports_anon_versioning" = xyes; then
8879             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8880               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8881               echo "local: *; };" >> $output_objdir/$libname.ver~
8882               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8883           fi
8884           ;;
8885         esac
8886       else
8887         ld_shlibs=no
8888       fi
8889       ;;
8890
8891     netbsd* | netbsdelf*-gnu)
8892       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8893         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8894         wlarc=
8895       else
8896         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8897         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8898       fi
8899       ;;
8900
8901     solaris*)
8902       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8903         ld_shlibs=no
8904         cat <<_LT_EOF 1>&2
8905
8906 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8907 *** create shared libraries on Solaris systems.  Therefore, libtool
8908 *** is disabling shared libraries support.  We urge you to upgrade GNU
8909 *** binutils to release 2.9.1 or newer.  Another option is to modify
8910 *** your PATH or compiler configuration so that the native linker is
8911 *** used, and then restart.
8912
8913 _LT_EOF
8914       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8915         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8916         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8917       else
8918         ld_shlibs=no
8919       fi
8920       ;;
8921
8922     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8923       case `$LD -v 2>&1` in
8924         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8925         ld_shlibs=no
8926         cat <<_LT_EOF 1>&2
8927
8928 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8929 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8930 *** is disabling shared libraries support.  We urge you to upgrade GNU
8931 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8932 *** your PATH or compiler configuration so that the native linker is
8933 *** used, and then restart.
8934
8935 _LT_EOF
8936         ;;
8937         *)
8938           # For security reasons, it is highly recommended that you always
8939           # use absolute paths for naming shared libraries, and exclude the
8940           # DT_RUNPATH tag from executables and libraries.  But doing so
8941           # requires that you compile everything twice, which is a pain.
8942           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8943             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8945             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8946           else
8947             ld_shlibs=no
8948           fi
8949         ;;
8950       esac
8951       ;;
8952
8953     sunos4*)
8954       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8955       wlarc=
8956       hardcode_direct=yes
8957       hardcode_shlibpath_var=no
8958       ;;
8959
8960     *)
8961       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8962         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8963         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8964       else
8965         ld_shlibs=no
8966       fi
8967       ;;
8968     esac
8969
8970     if test "$ld_shlibs" = no; then
8971       runpath_var=
8972       hardcode_libdir_flag_spec=
8973       export_dynamic_flag_spec=
8974       whole_archive_flag_spec=
8975     fi
8976   else
8977     # PORTME fill in a description of your system's linker (not GNU ld)
8978     case $host_os in
8979     aix3*)
8980       allow_undefined_flag=unsupported
8981       always_export_symbols=yes
8982       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'
8983       # Note: this linker hardcodes the directories in LIBPATH if there
8984       # are no directories specified by -L.
8985       hardcode_minus_L=yes
8986       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8987         # Neither direct hardcoding nor static linking is supported with a
8988         # broken collect2.
8989         hardcode_direct=unsupported
8990       fi
8991       ;;
8992
8993     aix[4-9]*)
8994       if test "$host_cpu" = ia64; then
8995         # On IA64, the linker does run time linking by default, so we don't
8996         # have to do anything special.
8997         aix_use_runtimelinking=no
8998         exp_sym_flag='-Bexport'
8999         no_entry_flag=""
9000       else
9001         # If we're using GNU nm, then we don't want the "-C" option.
9002         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9003         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9004           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9005         else
9006           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'
9007         fi
9008         aix_use_runtimelinking=no
9009
9010         # Test if we are trying to use run time linking or normal
9011         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9012         # need to do runtime linking.
9013         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9014           for ld_flag in $LDFLAGS; do
9015           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9016             aix_use_runtimelinking=yes
9017             break
9018           fi
9019           done
9020           ;;
9021         esac
9022
9023         exp_sym_flag='-bexport'
9024         no_entry_flag='-bnoentry'
9025       fi
9026
9027       # When large executables or shared objects are built, AIX ld can
9028       # have problems creating the table of contents.  If linking a library
9029       # or program results in "error TOC overflow" add -mminimal-toc to
9030       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9031       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9032
9033       archive_cmds=''
9034       hardcode_direct=yes
9035       hardcode_direct_absolute=yes
9036       hardcode_libdir_separator=':'
9037       link_all_deplibs=yes
9038       file_list_spec='${wl}-f,'
9039
9040       if test "$GCC" = yes; then
9041         case $host_os in aix4.[012]|aix4.[012].*)
9042         # We only want to do this on AIX 4.2 and lower, the check
9043         # below for broken collect2 doesn't work under 4.3+
9044           collect2name=`${CC} -print-prog-name=collect2`
9045           if test -f "$collect2name" &&
9046            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9047           then
9048           # We have reworked collect2
9049           :
9050           else
9051           # We have old collect2
9052           hardcode_direct=unsupported
9053           # It fails to find uninstalled libraries when the uninstalled
9054           # path is not listed in the libpath.  Setting hardcode_minus_L
9055           # to unsupported forces relinking
9056           hardcode_minus_L=yes
9057           hardcode_libdir_flag_spec='-L$libdir'
9058           hardcode_libdir_separator=
9059           fi
9060           ;;
9061         esac
9062         shared_flag='-shared'
9063         if test "$aix_use_runtimelinking" = yes; then
9064           shared_flag="$shared_flag "'${wl}-G'
9065         fi
9066         link_all_deplibs=no
9067       else
9068         # not using gcc
9069         if test "$host_cpu" = ia64; then
9070         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9071         # chokes on -Wl,-G. The following line is correct:
9072           shared_flag='-G'
9073         else
9074           if test "$aix_use_runtimelinking" = yes; then
9075             shared_flag='${wl}-G'
9076           else
9077             shared_flag='${wl}-bM:SRE'
9078           fi
9079         fi
9080       fi
9081
9082       export_dynamic_flag_spec='${wl}-bexpall'
9083       # It seems that -bexpall does not export symbols beginning with
9084       # underscore (_), so it is better to generate a list of symbols to export.
9085       always_export_symbols=yes
9086       if test "$aix_use_runtimelinking" = yes; then
9087         # Warning - without using the other runtime loading flags (-brtl),
9088         # -berok will link without error, but may produce a broken library.
9089         allow_undefined_flag='-berok'
9090         # Determine the default libpath from the value encoded in an
9091         # empty executable.
9092         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h.  */
9094
9095 int
9096 main ()
9097 {
9098
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 if ac_fn_c_try_link "$LINENO"; then :
9104
9105 lt_aix_libpath_sed='
9106     /Import File Strings/,/^$/ {
9107         /^0/ {
9108             s/^0  *\(.*\)$/\1/
9109             p
9110         }
9111     }'
9112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9113 # Check for a 64-bit object if we didn't find anything.
9114 if test -z "$aix_libpath"; then
9115   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9116 fi
9117 fi
9118 rm -f core conftest.err conftest.$ac_objext \
9119     conftest$ac_exeext conftest.$ac_ext
9120 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9121
9122         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9123         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9124       else
9125         if test "$host_cpu" = ia64; then
9126           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9127           allow_undefined_flag="-z nodefs"
9128           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"
9129         else
9130          # Determine the default libpath from the value encoded in an
9131          # empty executable.
9132          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h.  */
9134
9135 int
9136 main ()
9137 {
9138
9139   ;
9140   return 0;
9141 }
9142 _ACEOF
9143 if ac_fn_c_try_link "$LINENO"; then :
9144
9145 lt_aix_libpath_sed='
9146     /Import File Strings/,/^$/ {
9147         /^0/ {
9148             s/^0  *\(.*\)$/\1/
9149             p
9150         }
9151     }'
9152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9153 # Check for a 64-bit object if we didn't find anything.
9154 if test -z "$aix_libpath"; then
9155   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9156 fi
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext \
9159     conftest$ac_exeext conftest.$ac_ext
9160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9161
9162          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9163           # Warning - without using the other run time loading flags,
9164           # -berok will link without error, but may produce a broken library.
9165           no_undefined_flag=' ${wl}-bernotok'
9166           allow_undefined_flag=' ${wl}-berok'
9167           # Exported symbols can be pulled into shared objects from archives
9168           whole_archive_flag_spec='$convenience'
9169           archive_cmds_need_lc=yes
9170           # This is similar to how AIX traditionally builds its shared libraries.
9171           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'
9172         fi
9173       fi
9174       ;;
9175
9176     amigaos*)
9177       case $host_cpu in
9178       powerpc)
9179             # see comment about AmigaOS4 .so support
9180             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9181             archive_expsym_cmds=''
9182         ;;
9183       m68k)
9184             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)'
9185             hardcode_libdir_flag_spec='-L$libdir'
9186             hardcode_minus_L=yes
9187         ;;
9188       esac
9189       ;;
9190
9191     bsdi[45]*)
9192       export_dynamic_flag_spec=-rdynamic
9193       ;;
9194
9195     cygwin* | mingw* | pw32* | cegcc*)
9196       # When not using gcc, we currently assume that we are using
9197       # Microsoft Visual C++.
9198       # hardcode_libdir_flag_spec is actually meaningless, as there is
9199       # no search path for DLLs.
9200       hardcode_libdir_flag_spec=' '
9201       allow_undefined_flag=unsupported
9202       # Tell ltmain to make .lib files, not .a files.
9203       libext=lib
9204       # Tell ltmain to make .dll files, not .so files.
9205       shrext_cmds=".dll"
9206       # FIXME: Setting linknames here is a bad hack.
9207       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9208       # The linker will automatically build a .lib file if we build a DLL.
9209       old_archive_from_new_cmds='true'
9210       # FIXME: Should let the user specify the lib program.
9211       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9212       fix_srcfile_path='`cygpath -w "$srcfile"`'
9213       enable_shared_with_static_runtimes=yes
9214       ;;
9215
9216     darwin* | rhapsody*)
9217
9218
9219   archive_cmds_need_lc=no
9220   hardcode_direct=no
9221   hardcode_automatic=yes
9222   hardcode_shlibpath_var=unsupported
9223   whole_archive_flag_spec=''
9224   link_all_deplibs=yes
9225   allow_undefined_flag="$_lt_dar_allow_undefined"
9226   case $cc_basename in
9227      ifort*) _lt_dar_can_shared=yes ;;
9228      *) _lt_dar_can_shared=$GCC ;;
9229   esac
9230   if test "$_lt_dar_can_shared" = "yes"; then
9231     output_verbose_link_cmd=echo
9232     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9233     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9234     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}"
9235     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}"
9236
9237   else
9238   ld_shlibs=no
9239   fi
9240
9241       ;;
9242
9243     dgux*)
9244       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245       hardcode_libdir_flag_spec='-L$libdir'
9246       hardcode_shlibpath_var=no
9247       ;;
9248
9249     freebsd1*)
9250       ld_shlibs=no
9251       ;;
9252
9253     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9254     # support.  Future versions do this automatically, but an explicit c++rt0.o
9255     # does not break anything, and helps significantly (at the cost of a little
9256     # extra space).
9257     freebsd2.2*)
9258       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9259       hardcode_libdir_flag_spec='-R$libdir'
9260       hardcode_direct=yes
9261       hardcode_shlibpath_var=no
9262       ;;
9263
9264     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9265     freebsd2*)
9266       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9267       hardcode_direct=yes
9268       hardcode_minus_L=yes
9269       hardcode_shlibpath_var=no
9270       ;;
9271
9272     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9273     freebsd* | dragonfly*)
9274       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9275       hardcode_libdir_flag_spec='-R$libdir'
9276       hardcode_direct=yes
9277       hardcode_shlibpath_var=no
9278       ;;
9279
9280     hpux9*)
9281       if test "$GCC" = yes; then
9282         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9283       else
9284         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'
9285       fi
9286       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9287       hardcode_libdir_separator=:
9288       hardcode_direct=yes
9289
9290       # hardcode_minus_L: Not really in the search PATH,
9291       # but as the default location of the library.
9292       hardcode_minus_L=yes
9293       export_dynamic_flag_spec='${wl}-E'
9294       ;;
9295
9296     hpux10*)
9297       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9298         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9299       else
9300         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9301       fi
9302       if test "$with_gnu_ld" = no; then
9303         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9304         hardcode_libdir_flag_spec_ld='+b $libdir'
9305         hardcode_libdir_separator=:
9306         hardcode_direct=yes
9307         hardcode_direct_absolute=yes
9308         export_dynamic_flag_spec='${wl}-E'
9309         # hardcode_minus_L: Not really in the search PATH,
9310         # but as the default location of the library.
9311         hardcode_minus_L=yes
9312       fi
9313       ;;
9314
9315     hpux11*)
9316       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9317         case $host_cpu in
9318         hppa*64*)
9319           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9320           ;;
9321         ia64*)
9322           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9323           ;;
9324         *)
9325           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9326           ;;
9327         esac
9328       else
9329         case $host_cpu in
9330         hppa*64*)
9331           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9332           ;;
9333         ia64*)
9334           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9335           ;;
9336         *)
9337           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9338           ;;
9339         esac
9340       fi
9341       if test "$with_gnu_ld" = no; then
9342         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9343         hardcode_libdir_separator=:
9344
9345         case $host_cpu in
9346         hppa*64*|ia64*)
9347           hardcode_direct=no
9348           hardcode_shlibpath_var=no
9349           ;;
9350         *)
9351           hardcode_direct=yes
9352           hardcode_direct_absolute=yes
9353           export_dynamic_flag_spec='${wl}-E'
9354
9355           # hardcode_minus_L: Not really in the search PATH,
9356           # but as the default location of the library.
9357           hardcode_minus_L=yes
9358           ;;
9359         esac
9360       fi
9361       ;;
9362
9363     irix5* | irix6* | nonstopux*)
9364       if test "$GCC" = yes; then
9365         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9366         # Try to use the -exported_symbol ld option, if it does not
9367         # work, assume that -exports_file does not work either and
9368         # implicitly export all symbols.
9369         save_LDFLAGS="$LDFLAGS"
9370         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9371         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h.  */
9373 int foo(void) {}
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9377
9378 fi
9379 rm -f core conftest.err conftest.$ac_objext \
9380     conftest$ac_exeext conftest.$ac_ext
9381         LDFLAGS="$save_LDFLAGS"
9382       else
9383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9385       fi
9386       archive_cmds_need_lc='no'
9387       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9388       hardcode_libdir_separator=:
9389       inherit_rpath=yes
9390       link_all_deplibs=yes
9391       ;;
9392
9393     netbsd* | netbsdelf*-gnu)
9394       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9395         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9396       else
9397         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9398       fi
9399       hardcode_libdir_flag_spec='-R$libdir'
9400       hardcode_direct=yes
9401       hardcode_shlibpath_var=no
9402       ;;
9403
9404     newsos6)
9405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406       hardcode_direct=yes
9407       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9408       hardcode_libdir_separator=:
9409       hardcode_shlibpath_var=no
9410       ;;
9411
9412     *nto* | *qnx*)
9413       ;;
9414
9415     openbsd*)
9416       if test -f /usr/libexec/ld.so; then
9417         hardcode_direct=yes
9418         hardcode_shlibpath_var=no
9419         hardcode_direct_absolute=yes
9420         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9421           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9422           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9423           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9424           export_dynamic_flag_spec='${wl}-E'
9425         else
9426           case $host_os in
9427            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9428              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9429              hardcode_libdir_flag_spec='-R$libdir'
9430              ;;
9431            *)
9432              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9433              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9434              ;;
9435           esac
9436         fi
9437       else
9438         ld_shlibs=no
9439       fi
9440       ;;
9441
9442     os2*)
9443       hardcode_libdir_flag_spec='-L$libdir'
9444       hardcode_minus_L=yes
9445       allow_undefined_flag=unsupported
9446       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'
9447       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9448       ;;
9449
9450     osf3*)
9451       if test "$GCC" = yes; then
9452         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9453         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9454       else
9455         allow_undefined_flag=' -expect_unresolved \*'
9456         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9457       fi
9458       archive_cmds_need_lc='no'
9459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460       hardcode_libdir_separator=:
9461       ;;
9462
9463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9464       if test "$GCC" = yes; then
9465         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9466         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9467         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468       else
9469         allow_undefined_flag=' -expect_unresolved \*'
9470         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9471         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~
9472         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9473
9474         # Both c and cxx compiler support -rpath directly
9475         hardcode_libdir_flag_spec='-rpath $libdir'
9476       fi
9477       archive_cmds_need_lc='no'
9478       hardcode_libdir_separator=:
9479       ;;
9480
9481     solaris*)
9482       no_undefined_flag=' -z defs'
9483       if test "$GCC" = yes; then
9484         wlarc='${wl}'
9485         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9487           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9488       else
9489         case `$CC -V 2>&1` in
9490         *"Compilers 5.0"*)
9491           wlarc=''
9492           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9493           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9494           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9495           ;;
9496         *)
9497           wlarc='${wl}'
9498           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9499           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9500           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9501           ;;
9502         esac
9503       fi
9504       hardcode_libdir_flag_spec='-R$libdir'
9505       hardcode_shlibpath_var=no
9506       case $host_os in
9507       solaris2.[0-5] | solaris2.[0-5].*) ;;
9508       *)
9509         # The compiler driver will combine and reorder linker options,
9510         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9511         # but is careful enough not to reorder.
9512         # Supported since Solaris 2.6 (maybe 2.5.1?)
9513         if test "$GCC" = yes; then
9514           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9515         else
9516           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9517         fi
9518         ;;
9519       esac
9520       link_all_deplibs=yes
9521       ;;
9522
9523     sunos4*)
9524       if test "x$host_vendor" = xsequent; then
9525         # Use $CC to link under sequent, because it throws in some extra .o
9526         # files that make .init and .fini sections work.
9527         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9528       else
9529         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9530       fi
9531       hardcode_libdir_flag_spec='-L$libdir'
9532       hardcode_direct=yes
9533       hardcode_minus_L=yes
9534       hardcode_shlibpath_var=no
9535       ;;
9536
9537     sysv4)
9538       case $host_vendor in
9539         sni)
9540           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541           hardcode_direct=yes # is this really true???
9542         ;;
9543         siemens)
9544           ## LD is ld it makes a PLAMLIB
9545           ## CC just makes a GrossModule.
9546           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9547           reload_cmds='$CC -r -o $output$reload_objs'
9548           hardcode_direct=no
9549         ;;
9550         motorola)
9551           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9553         ;;
9554       esac
9555       runpath_var='LD_RUN_PATH'
9556       hardcode_shlibpath_var=no
9557       ;;
9558
9559     sysv4.3*)
9560       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561       hardcode_shlibpath_var=no
9562       export_dynamic_flag_spec='-Bexport'
9563       ;;
9564
9565     sysv4*MP*)
9566       if test -d /usr/nec; then
9567         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9568         hardcode_shlibpath_var=no
9569         runpath_var=LD_RUN_PATH
9570         hardcode_runpath_var=yes
9571         ld_shlibs=yes
9572       fi
9573       ;;
9574
9575     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9576       no_undefined_flag='${wl}-z,text'
9577       archive_cmds_need_lc=no
9578       hardcode_shlibpath_var=no
9579       runpath_var='LD_RUN_PATH'
9580
9581       if test "$GCC" = yes; then
9582         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584       else
9585         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9586         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587       fi
9588       ;;
9589
9590     sysv5* | sco3.2v5* | sco5v6*)
9591       # Note: We can NOT use -z defs as we might desire, because we do not
9592       # link with -lc, and that would cause any symbols used from libc to
9593       # always be unresolved, which means just about no library would
9594       # ever link correctly.  If we're not using GNU ld we use -z text
9595       # though, which does catch some bad symbols but isn't as heavy-handed
9596       # as -z defs.
9597       no_undefined_flag='${wl}-z,text'
9598       allow_undefined_flag='${wl}-z,nodefs'
9599       archive_cmds_need_lc=no
9600       hardcode_shlibpath_var=no
9601       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9602       hardcode_libdir_separator=':'
9603       link_all_deplibs=yes
9604       export_dynamic_flag_spec='${wl}-Bexport'
9605       runpath_var='LD_RUN_PATH'
9606
9607       if test "$GCC" = yes; then
9608         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9609         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9610       else
9611         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9612         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9613       fi
9614       ;;
9615
9616     uts4*)
9617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618       hardcode_libdir_flag_spec='-L$libdir'
9619       hardcode_shlibpath_var=no
9620       ;;
9621
9622     *)
9623       ld_shlibs=no
9624       ;;
9625     esac
9626
9627     if test x$host_vendor = xsni; then
9628       case $host in
9629       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9630         export_dynamic_flag_spec='${wl}-Blargedynsym'
9631         ;;
9632       esac
9633     fi
9634   fi
9635
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9637 $as_echo "$ld_shlibs" >&6; }
9638 test "$ld_shlibs" = no && can_build_shared=no
9639
9640 with_gnu_ld=$with_gnu_ld
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656 #
9657 # Do we need to explicitly link libc?
9658 #
9659 case "x$archive_cmds_need_lc" in
9660 x|xyes)
9661   # Assume -lc should be added
9662   archive_cmds_need_lc=yes
9663
9664   if test "$enable_shared" = yes && test "$GCC" = yes; then
9665     case $archive_cmds in
9666     *'~'*)
9667       # FIXME: we may have to deal with multi-command sequences.
9668       ;;
9669     '$CC '*)
9670       # Test whether the compiler implicitly links with -lc since on some
9671       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9672       # to ld, don't add -lc before -lgcc.
9673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9674 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9675       $RM conftest*
9676       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677
9678       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9679   (eval $ac_compile) 2>&5
9680   ac_status=$?
9681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9682   test $ac_status = 0; } 2>conftest.err; then
9683         soname=conftest
9684         lib=conftest
9685         libobjs=conftest.$ac_objext
9686         deplibs=
9687         wl=$lt_prog_compiler_wl
9688         pic_flag=$lt_prog_compiler_pic
9689         compiler_flags=-v
9690         linker_flags=-v
9691         verstring=
9692         output_objdir=.
9693         libname=conftest
9694         lt_save_allow_undefined_flag=$allow_undefined_flag
9695         allow_undefined_flag=
9696         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9697   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9698   ac_status=$?
9699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9700   test $ac_status = 0; }
9701         then
9702           archive_cmds_need_lc=no
9703         else
9704           archive_cmds_need_lc=yes
9705         fi
9706         allow_undefined_flag=$lt_save_allow_undefined_flag
9707       else
9708         cat conftest.err 1>&5
9709       fi
9710       $RM conftest*
9711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9712 $as_echo "$archive_cmds_need_lc" >&6; }
9713       ;;
9714     esac
9715   fi
9716   ;;
9717 esac
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9876 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9877
9878 if test "$GCC" = yes; then
9879   case $host_os in
9880     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9881     *) lt_awk_arg="/^libraries:/" ;;
9882   esac
9883   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9884   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9885     # if the path contains ";" then we assume it to be the separator
9886     # otherwise default to the standard path separator (i.e. ":") - it is
9887     # assumed that no part of a normal pathname contains ";" but that should
9888     # okay in the real world where ";" in dirpaths is itself problematic.
9889     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9890   else
9891     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9892   fi
9893   # Ok, now we have the path, separated by spaces, we can step through it
9894   # and add multilib dir if necessary.
9895   lt_tmp_lt_search_path_spec=
9896   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9897   for lt_sys_path in $lt_search_path_spec; do
9898     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9899       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9900     else
9901       test -d "$lt_sys_path" && \
9902         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9903     fi
9904   done
9905   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9906 BEGIN {RS=" "; FS="/|\n";} {
9907   lt_foo="";
9908   lt_count=0;
9909   for (lt_i = NF; lt_i > 0; lt_i--) {
9910     if ($lt_i != "" && $lt_i != ".") {
9911       if ($lt_i == "..") {
9912         lt_count++;
9913       } else {
9914         if (lt_count == 0) {
9915           lt_foo="/" $lt_i lt_foo;
9916         } else {
9917           lt_count--;
9918         }
9919       }
9920     }
9921   }
9922   if (lt_foo != "") { lt_freq[lt_foo]++; }
9923   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9924 }'`
9925   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9926 else
9927   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9928 fi
9929 library_names_spec=
9930 libname_spec='lib$name'
9931 soname_spec=
9932 shrext_cmds=".so"
9933 postinstall_cmds=
9934 postuninstall_cmds=
9935 finish_cmds=
9936 finish_eval=
9937 shlibpath_var=
9938 shlibpath_overrides_runpath=unknown
9939 version_type=none
9940 dynamic_linker="$host_os ld.so"
9941 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9942 need_lib_prefix=unknown
9943 hardcode_into_libs=no
9944
9945 # when you set need_version to no, make sure it does not cause -set_version
9946 # flags to be left without arguments
9947 need_version=unknown
9948
9949 case $host_os in
9950 aix3*)
9951   version_type=linux
9952   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9953   shlibpath_var=LIBPATH
9954
9955   # AIX 3 has no versioning support, so we append a major version to the name.
9956   soname_spec='${libname}${release}${shared_ext}$major'
9957   ;;
9958
9959 aix[4-9]*)
9960   version_type=linux
9961   need_lib_prefix=no
9962   need_version=no
9963   hardcode_into_libs=yes
9964   if test "$host_cpu" = ia64; then
9965     # AIX 5 supports IA64
9966     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9967     shlibpath_var=LD_LIBRARY_PATH
9968   else
9969     # With GCC up to 2.95.x, collect2 would create an import file
9970     # for dependence libraries.  The import file would start with
9971     # the line `#! .'.  This would cause the generated library to
9972     # depend on `.', always an invalid library.  This was fixed in
9973     # development snapshots of GCC prior to 3.0.
9974     case $host_os in
9975       aix4 | aix4.[01] | aix4.[01].*)
9976       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9977            echo ' yes '
9978            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9979         :
9980       else
9981         can_build_shared=no
9982       fi
9983       ;;
9984     esac
9985     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9986     # soname into executable. Probably we can add versioning support to
9987     # collect2, so additional links can be useful in future.
9988     if test "$aix_use_runtimelinking" = yes; then
9989       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9990       # instead of lib<name>.a to let people know that these are not
9991       # typical AIX shared libraries.
9992       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993     else
9994       # We preserve .a as extension for shared libraries through AIX4.2
9995       # and later when we are not doing run time linking.
9996       library_names_spec='${libname}${release}.a $libname.a'
9997       soname_spec='${libname}${release}${shared_ext}$major'
9998     fi
9999     shlibpath_var=LIBPATH
10000   fi
10001   ;;
10002
10003 amigaos*)
10004   case $host_cpu in
10005   powerpc)
10006     # Since July 2007 AmigaOS4 officially supports .so libraries.
10007     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009     ;;
10010   m68k)
10011     library_names_spec='$libname.ixlibrary $libname.a'
10012     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10013     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10014     ;;
10015   esac
10016   ;;
10017
10018 beos*)
10019   library_names_spec='${libname}${shared_ext}'
10020   dynamic_linker="$host_os ld.so"
10021   shlibpath_var=LIBRARY_PATH
10022   ;;
10023
10024 bsdi[45]*)
10025   version_type=linux
10026   need_version=no
10027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10028   soname_spec='${libname}${release}${shared_ext}$major'
10029   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10030   shlibpath_var=LD_LIBRARY_PATH
10031   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10032   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10033   # the default ld.so.conf also contains /usr/contrib/lib and
10034   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10035   # libtool to hard-code these into programs
10036   ;;
10037
10038 cygwin* | mingw* | pw32* | cegcc*)
10039   version_type=windows
10040   shrext_cmds=".dll"
10041   need_version=no
10042   need_lib_prefix=no
10043
10044   case $GCC,$host_os in
10045   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10046     library_names_spec='$libname.dll.a'
10047     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10048     postinstall_cmds='base_file=`basename \${file}`~
10049       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10050       dldir=$destdir/`dirname \$dlpath`~
10051       test -d \$dldir || mkdir -p \$dldir~
10052       $install_prog $dir/$dlname \$dldir/$dlname~
10053       chmod a+x \$dldir/$dlname~
10054       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10055         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10056       fi'
10057     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10058       dlpath=$dir/\$dldll~
10059        $RM \$dlpath'
10060     shlibpath_overrides_runpath=yes
10061
10062     case $host_os in
10063     cygwin*)
10064       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10065       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10066       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10067       ;;
10068     mingw* | cegcc*)
10069       # MinGW DLLs use traditional 'lib' prefix
10070       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10071       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10072       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10073         # It is most probably a Windows format PATH printed by
10074         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10075         # path with ; separators, and with drive letters. We can handle the
10076         # drive letters (cygwin fileutils understands them), so leave them,
10077         # especially as we might pass files found there to a mingw objdump,
10078         # which wouldn't understand a cygwinified path. Ahh.
10079         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10080       else
10081         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10082       fi
10083       ;;
10084     pw32*)
10085       # pw32 DLLs use 'pw' prefix rather than 'lib'
10086       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10087       ;;
10088     esac
10089     ;;
10090
10091   *)
10092     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10093     ;;
10094   esac
10095   dynamic_linker='Win32 ld.exe'
10096   # FIXME: first we should search . and the directory the executable is in
10097   shlibpath_var=PATH
10098   ;;
10099
10100 darwin* | rhapsody*)
10101   dynamic_linker="$host_os dyld"
10102   version_type=darwin
10103   need_lib_prefix=no
10104   need_version=no
10105   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10106   soname_spec='${libname}${release}${major}$shared_ext'
10107   shlibpath_overrides_runpath=yes
10108   shlibpath_var=DYLD_LIBRARY_PATH
10109   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10110
10111   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10112   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10113   ;;
10114
10115 dgux*)
10116   version_type=linux
10117   need_lib_prefix=no
10118   need_version=no
10119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10120   soname_spec='${libname}${release}${shared_ext}$major'
10121   shlibpath_var=LD_LIBRARY_PATH
10122   ;;
10123
10124 freebsd1*)
10125   dynamic_linker=no
10126   ;;
10127
10128 freebsd* | dragonfly*)
10129   # DragonFly does not have aout.  When/if they implement a new
10130   # versioning mechanism, adjust this.
10131   if test -x /usr/bin/objformat; then
10132     objformat=`/usr/bin/objformat`
10133   else
10134     case $host_os in
10135     freebsd[123]*) objformat=aout ;;
10136     *) objformat=elf ;;
10137     esac
10138   fi
10139   version_type=freebsd-$objformat
10140   case $version_type in
10141     freebsd-elf*)
10142       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10143       need_version=no
10144       need_lib_prefix=no
10145       ;;
10146     freebsd-*)
10147       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10148       need_version=yes
10149       ;;
10150   esac
10151   shlibpath_var=LD_LIBRARY_PATH
10152   case $host_os in
10153   freebsd2*)
10154     shlibpath_overrides_runpath=yes
10155     ;;
10156   freebsd3.[01]* | freebsdelf3.[01]*)
10157     shlibpath_overrides_runpath=yes
10158     hardcode_into_libs=yes
10159     ;;
10160   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10161   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10162     shlibpath_overrides_runpath=no
10163     hardcode_into_libs=yes
10164     ;;
10165   *) # from 4.6 on, and DragonFly
10166     shlibpath_overrides_runpath=yes
10167     hardcode_into_libs=yes
10168     ;;
10169   esac
10170   ;;
10171
10172 gnu*)
10173   version_type=linux
10174   need_lib_prefix=no
10175   need_version=no
10176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10177   soname_spec='${libname}${release}${shared_ext}$major'
10178   shlibpath_var=LD_LIBRARY_PATH
10179   hardcode_into_libs=yes
10180   ;;
10181
10182 hpux9* | hpux10* | hpux11*)
10183   # Give a soname corresponding to the major version so that dld.sl refuses to
10184   # link against other versions.
10185   version_type=sunos
10186   need_lib_prefix=no
10187   need_version=no
10188   case $host_cpu in
10189   ia64*)
10190     shrext_cmds='.so'
10191     hardcode_into_libs=yes
10192     dynamic_linker="$host_os dld.so"
10193     shlibpath_var=LD_LIBRARY_PATH
10194     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196     soname_spec='${libname}${release}${shared_ext}$major'
10197     if test "X$HPUX_IA64_MODE" = X32; then
10198       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10199     else
10200       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10201     fi
10202     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10203     ;;
10204   hppa*64*)
10205     shrext_cmds='.sl'
10206     hardcode_into_libs=yes
10207     dynamic_linker="$host_os dld.sl"
10208     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10209     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211     soname_spec='${libname}${release}${shared_ext}$major'
10212     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10213     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10214     ;;
10215   *)
10216     shrext_cmds='.sl'
10217     dynamic_linker="$host_os dld.sl"
10218     shlibpath_var=SHLIB_PATH
10219     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10221     soname_spec='${libname}${release}${shared_ext}$major'
10222     ;;
10223   esac
10224   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10225   postinstall_cmds='chmod 555 $lib'
10226   ;;
10227
10228 interix[3-9]*)
10229   version_type=linux
10230   need_lib_prefix=no
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10233   soname_spec='${libname}${release}${shared_ext}$major'
10234   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10235   shlibpath_var=LD_LIBRARY_PATH
10236   shlibpath_overrides_runpath=no
10237   hardcode_into_libs=yes
10238   ;;
10239
10240 irix5* | irix6* | nonstopux*)
10241   case $host_os in
10242     nonstopux*) version_type=nonstopux ;;
10243     *)
10244         if test "$lt_cv_prog_gnu_ld" = yes; then
10245                 version_type=linux
10246         else
10247                 version_type=irix
10248         fi ;;
10249   esac
10250   need_lib_prefix=no
10251   need_version=no
10252   soname_spec='${libname}${release}${shared_ext}$major'
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10254   case $host_os in
10255   irix5* | nonstopux*)
10256     libsuff= shlibsuff=
10257     ;;
10258   *)
10259     case $LD in # libtool.m4 will add one of these switches to LD
10260     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10261       libsuff= shlibsuff= libmagic=32-bit;;
10262     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10263       libsuff=32 shlibsuff=N32 libmagic=N32;;
10264     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10265       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10266     *) libsuff= shlibsuff= libmagic=never-match;;
10267     esac
10268     ;;
10269   esac
10270   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10271   shlibpath_overrides_runpath=no
10272   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10273   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10274   hardcode_into_libs=yes
10275   ;;
10276
10277 # No shared lib support for Linux oldld, aout, or coff.
10278 linux*oldld* | linux*aout* | linux*coff*)
10279   dynamic_linker=no
10280   ;;
10281
10282 # This must be Linux ELF.
10283 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10284   version_type=linux
10285   need_lib_prefix=no
10286   need_version=no
10287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10288   soname_spec='${libname}${release}${shared_ext}$major'
10289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   shlibpath_overrides_runpath=no
10292   # Some binutils ld are patched to set DT_RUNPATH
10293   save_LDFLAGS=$LDFLAGS
10294   save_libdir=$libdir
10295   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10296        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h.  */
10299
10300 int
10301 main ()
10302 {
10303
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10310   shlibpath_overrides_runpath=yes
10311 fi
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext \
10314     conftest$ac_exeext conftest.$ac_ext
10315   LDFLAGS=$save_LDFLAGS
10316   libdir=$save_libdir
10317
10318   # This implies no fast_install, which is unacceptable.
10319   # Some rework will be needed to allow for fast_install
10320   # before this can be enabled.
10321   hardcode_into_libs=yes
10322
10323   # Append ld.so.conf contents to the search path
10324   if test -f /etc/ld.so.conf; then
10325     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;/^$/d' | tr '\n' ' '`
10326     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10327   fi
10328
10329   # We used to test for /lib/ld.so.1 and disable shared libraries on
10330   # powerpc, because MkLinux only supported shared libraries with the
10331   # GNU dynamic linker.  Since this was broken with cross compilers,
10332   # most powerpc-linux boxes support dynamic linking these days and
10333   # people can always --disable-shared, the test was removed, and we
10334   # assume the GNU/Linux dynamic linker is in use.
10335   dynamic_linker='GNU/Linux ld.so'
10336   ;;
10337
10338 netbsdelf*-gnu)
10339   version_type=linux
10340   need_lib_prefix=no
10341   need_version=no
10342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10343   soname_spec='${libname}${release}${shared_ext}$major'
10344   shlibpath_var=LD_LIBRARY_PATH
10345   shlibpath_overrides_runpath=no
10346   hardcode_into_libs=yes
10347   dynamic_linker='NetBSD ld.elf_so'
10348   ;;
10349
10350 netbsd*)
10351   version_type=sunos
10352   need_lib_prefix=no
10353   need_version=no
10354   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10356     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10357     dynamic_linker='NetBSD (a.out) ld.so'
10358   else
10359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10360     soname_spec='${libname}${release}${shared_ext}$major'
10361     dynamic_linker='NetBSD ld.elf_so'
10362   fi
10363   shlibpath_var=LD_LIBRARY_PATH
10364   shlibpath_overrides_runpath=yes
10365   hardcode_into_libs=yes
10366   ;;
10367
10368 newsos6)
10369   version_type=linux
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371   shlibpath_var=LD_LIBRARY_PATH
10372   shlibpath_overrides_runpath=yes
10373   ;;
10374
10375 *nto* | *qnx*)
10376   version_type=qnx
10377   need_lib_prefix=no
10378   need_version=no
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10380   soname_spec='${libname}${release}${shared_ext}$major'
10381   shlibpath_var=LD_LIBRARY_PATH
10382   shlibpath_overrides_runpath=no
10383   hardcode_into_libs=yes
10384   dynamic_linker='ldqnx.so'
10385   ;;
10386
10387 openbsd*)
10388   version_type=sunos
10389   sys_lib_dlsearch_path_spec="/usr/lib"
10390   need_lib_prefix=no
10391   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10392   case $host_os in
10393     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10394     *)                          need_version=no  ;;
10395   esac
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10400     case $host_os in
10401       openbsd2.[89] | openbsd2.[89].*)
10402         shlibpath_overrides_runpath=no
10403         ;;
10404       *)
10405         shlibpath_overrides_runpath=yes
10406         ;;
10407       esac
10408   else
10409     shlibpath_overrides_runpath=yes
10410   fi
10411   ;;
10412
10413 os2*)
10414   libname_spec='$name'
10415   shrext_cmds=".dll"
10416   need_lib_prefix=no
10417   library_names_spec='$libname${shared_ext} $libname.a'
10418   dynamic_linker='OS/2 ld.exe'
10419   shlibpath_var=LIBPATH
10420   ;;
10421
10422 osf3* | osf4* | osf5*)
10423   version_type=osf
10424   need_lib_prefix=no
10425   need_version=no
10426   soname_spec='${libname}${release}${shared_ext}$major'
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10428   shlibpath_var=LD_LIBRARY_PATH
10429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10430   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10431   ;;
10432
10433 rdos*)
10434   dynamic_linker=no
10435   ;;
10436
10437 solaris*)
10438   version_type=linux
10439   need_lib_prefix=no
10440   need_version=no
10441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442   soname_spec='${libname}${release}${shared_ext}$major'
10443   shlibpath_var=LD_LIBRARY_PATH
10444   shlibpath_overrides_runpath=yes
10445   hardcode_into_libs=yes
10446   # ldd complains unless libraries are executable
10447   postinstall_cmds='chmod +x $lib'
10448   ;;
10449
10450 sunos4*)
10451   version_type=sunos
10452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10454   shlibpath_var=LD_LIBRARY_PATH
10455   shlibpath_overrides_runpath=yes
10456   if test "$with_gnu_ld" = yes; then
10457     need_lib_prefix=no
10458   fi
10459   need_version=yes
10460   ;;
10461
10462 sysv4 | sysv4.3*)
10463   version_type=linux
10464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10465   soname_spec='${libname}${release}${shared_ext}$major'
10466   shlibpath_var=LD_LIBRARY_PATH
10467   case $host_vendor in
10468     sni)
10469       shlibpath_overrides_runpath=no
10470       need_lib_prefix=no
10471       runpath_var=LD_RUN_PATH
10472       ;;
10473     siemens)
10474       need_lib_prefix=no
10475       ;;
10476     motorola)
10477       need_lib_prefix=no
10478       need_version=no
10479       shlibpath_overrides_runpath=no
10480       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10481       ;;
10482   esac
10483   ;;
10484
10485 sysv4*MP*)
10486   if test -d /usr/nec ;then
10487     version_type=linux
10488     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10489     soname_spec='$libname${shared_ext}.$major'
10490     shlibpath_var=LD_LIBRARY_PATH
10491   fi
10492   ;;
10493
10494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10495   version_type=freebsd-elf
10496   need_lib_prefix=no
10497   need_version=no
10498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10499   soname_spec='${libname}${release}${shared_ext}$major'
10500   shlibpath_var=LD_LIBRARY_PATH
10501   shlibpath_overrides_runpath=yes
10502   hardcode_into_libs=yes
10503   if test "$with_gnu_ld" = yes; then
10504     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10505   else
10506     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10507     case $host_os in
10508       sco3.2v5*)
10509         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10510         ;;
10511     esac
10512   fi
10513   sys_lib_dlsearch_path_spec='/usr/lib'
10514   ;;
10515
10516 tpf*)
10517   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10518   version_type=linux
10519   need_lib_prefix=no
10520   need_version=no
10521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522   shlibpath_var=LD_LIBRARY_PATH
10523   shlibpath_overrides_runpath=no
10524   hardcode_into_libs=yes
10525   ;;
10526
10527 uts4*)
10528   version_type=linux
10529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530   soname_spec='${libname}${release}${shared_ext}$major'
10531   shlibpath_var=LD_LIBRARY_PATH
10532   ;;
10533
10534 *)
10535   dynamic_linker=no
10536   ;;
10537 esac
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10539 $as_echo "$dynamic_linker" >&6; }
10540 test "$dynamic_linker" = no && can_build_shared=no
10541
10542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10543 if test "$GCC" = yes; then
10544   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10545 fi
10546
10547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10548   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10549 fi
10550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10551   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10552 fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10642 hardcode_action=
10643 if test -n "$hardcode_libdir_flag_spec" ||
10644    test -n "$runpath_var" ||
10645    test "X$hardcode_automatic" = "Xyes" ; then
10646
10647   # We can hardcode non-existent directories.
10648   if test "$hardcode_direct" != no &&
10649      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650      # have to relink, otherwise we might link with an installed library
10651      # when we should be linking with a yet-to-be-installed one
10652      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10653      test "$hardcode_minus_L" != no; then
10654     # Linking always hardcodes the temporary library directory.
10655     hardcode_action=relink
10656   else
10657     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658     hardcode_action=immediate
10659   fi
10660 else
10661   # We cannot hardcode anything, or else we can only hardcode existing
10662   # directories.
10663   hardcode_action=unsupported
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10666 $as_echo "$hardcode_action" >&6; }
10667
10668 if test "$hardcode_action" = relink ||
10669    test "$inherit_rpath" = yes; then
10670   # Fast installation is not supported
10671   enable_fast_install=no
10672 elif test "$shlibpath_overrides_runpath" = yes ||
10673      test "$enable_shared" = no; then
10674   # Fast installation is not necessary
10675   enable_fast_install=needless
10676 fi
10677
10678
10679
10680
10681
10682
10683   if test "x$enable_dlopen" != xyes; then
10684   enable_dlopen=unknown
10685   enable_dlopen_self=unknown
10686   enable_dlopen_self_static=unknown
10687 else
10688   lt_cv_dlopen=no
10689   lt_cv_dlopen_libs=
10690
10691   case $host_os in
10692   beos*)
10693     lt_cv_dlopen="load_add_on"
10694     lt_cv_dlopen_libs=
10695     lt_cv_dlopen_self=yes
10696     ;;
10697
10698   mingw* | pw32* | cegcc*)
10699     lt_cv_dlopen="LoadLibrary"
10700     lt_cv_dlopen_libs=
10701     ;;
10702
10703   cygwin*)
10704     lt_cv_dlopen="dlopen"
10705     lt_cv_dlopen_libs=
10706     ;;
10707
10708   darwin*)
10709   # if libdl is installed we need to link against it
10710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10711 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10712 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10713   $as_echo_n "(cached) " >&6
10714 else
10715   ac_check_lib_save_LIBS=$LIBS
10716 LIBS="-ldl  $LIBS"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718 /* end confdefs.h.  */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721    Use char because int might match the return type of a GCC
10722    builtin and then its argument prototype would still apply.  */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char dlopen ();
10727 int
10728 main ()
10729 {
10730 return dlopen ();
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10736   ac_cv_lib_dl_dlopen=yes
10737 else
10738   ac_cv_lib_dl_dlopen=no
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext \
10741     conftest$ac_exeext conftest.$ac_ext
10742 LIBS=$ac_check_lib_save_LIBS
10743 fi
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10745 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10746 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10747   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10748 else
10749
10750     lt_cv_dlopen="dyld"
10751     lt_cv_dlopen_libs=
10752     lt_cv_dlopen_self=yes
10753
10754 fi
10755
10756     ;;
10757
10758   *)
10759     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10760 if test "x$ac_cv_func_shl_load" = x""yes; then :
10761   lt_cv_dlopen="shl_load"
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10764 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10765 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-ldld  $LIBS"
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h.  */
10772
10773 /* Override any GCC internal prototype to avoid an error.
10774    Use char because int might match the return type of a GCC
10775    builtin and then its argument prototype would still apply.  */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char shl_load ();
10780 int
10781 main ()
10782 {
10783 return shl_load ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_link "$LINENO"; then :
10789   ac_cv_lib_dld_shl_load=yes
10790 else
10791   ac_cv_lib_dld_shl_load=no
10792 fi
10793 rm -f core conftest.err conftest.$ac_objext \
10794     conftest$ac_exeext conftest.$ac_ext
10795 LIBS=$ac_check_lib_save_LIBS
10796 fi
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10798 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10799 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10800   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10801 else
10802   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10803 if test "x$ac_cv_func_dlopen" = x""yes; then :
10804   lt_cv_dlopen="dlopen"
10805 else
10806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10807 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10808 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10809   $as_echo_n "(cached) " >&6
10810 else
10811   ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-ldl  $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h.  */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817    Use char because int might match the return type of a GCC
10818    builtin and then its argument prototype would still apply.  */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char dlopen ();
10823 int
10824 main ()
10825 {
10826 return dlopen ();
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832   ac_cv_lib_dl_dlopen=yes
10833 else
10834   ac_cv_lib_dl_dlopen=no
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837     conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10841 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10842 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10843   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10844 else
10845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10846 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10847 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10848   $as_echo_n "(cached) " >&6
10849 else
10850   ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lsvld  $LIBS"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h.  */
10854
10855 /* Override any GCC internal prototype to avoid an error.
10856    Use char because int might match the return type of a GCC
10857    builtin and then its argument prototype would still apply.  */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char dlopen ();
10862 int
10863 main ()
10864 {
10865 return dlopen ();
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871   ac_cv_lib_svld_dlopen=yes
10872 else
10873   ac_cv_lib_svld_dlopen=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext \
10876     conftest$ac_exeext conftest.$ac_ext
10877 LIBS=$ac_check_lib_save_LIBS
10878 fi
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10880 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10881 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10882   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10883 else
10884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10885 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10886 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889   ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-ldld  $LIBS"
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h.  */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895    Use char because int might match the return type of a GCC
10896    builtin and then its argument prototype would still apply.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char dld_link ();
10901 int
10902 main ()
10903 {
10904 return dld_link ();
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910   ac_cv_lib_dld_dld_link=yes
10911 else
10912   ac_cv_lib_dld_dld_link=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915     conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10919 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10920 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10921   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10922 fi
10923
10924
10925 fi
10926
10927
10928 fi
10929
10930
10931 fi
10932
10933
10934 fi
10935
10936
10937 fi
10938
10939     ;;
10940   esac
10941
10942   if test "x$lt_cv_dlopen" != xno; then
10943     enable_dlopen=yes
10944   else
10945     enable_dlopen=no
10946   fi
10947
10948   case $lt_cv_dlopen in
10949   dlopen)
10950     save_CPPFLAGS="$CPPFLAGS"
10951     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10952
10953     save_LDFLAGS="$LDFLAGS"
10954     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10955
10956     save_LIBS="$LIBS"
10957     LIBS="$lt_cv_dlopen_libs $LIBS"
10958
10959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10960 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10961 if test "${lt_cv_dlopen_self+set}" = set; then :
10962   $as_echo_n "(cached) " >&6
10963 else
10964           if test "$cross_compiling" = yes; then :
10965   lt_cv_dlopen_self=cross
10966 else
10967   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10968   lt_status=$lt_dlunknown
10969   cat > conftest.$ac_ext <<_LT_EOF
10970 #line 10970 "configure"
10971 #include "confdefs.h"
10972
10973 #if HAVE_DLFCN_H
10974 #include <dlfcn.h>
10975 #endif
10976
10977 #include <stdio.h>
10978
10979 #ifdef RTLD_GLOBAL
10980 #  define LT_DLGLOBAL           RTLD_GLOBAL
10981 #else
10982 #  ifdef DL_GLOBAL
10983 #    define LT_DLGLOBAL         DL_GLOBAL
10984 #  else
10985 #    define LT_DLGLOBAL         0
10986 #  endif
10987 #endif
10988
10989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10990    find out it does not work in some platform. */
10991 #ifndef LT_DLLAZY_OR_NOW
10992 #  ifdef RTLD_LAZY
10993 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10994 #  else
10995 #    ifdef DL_LAZY
10996 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10997 #    else
10998 #      ifdef RTLD_NOW
10999 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11000 #      else
11001 #        ifdef DL_NOW
11002 #          define LT_DLLAZY_OR_NOW      DL_NOW
11003 #        else
11004 #          define LT_DLLAZY_OR_NOW      0
11005 #        endif
11006 #      endif
11007 #    endif
11008 #  endif
11009 #endif
11010
11011 void fnord() { int i=42;}
11012 int main ()
11013 {
11014   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11015   int status = $lt_dlunknown;
11016
11017   if (self)
11018     {
11019       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11020       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11021       /* dlclose (self); */
11022     }
11023   else
11024     puts (dlerror ());
11025
11026   return status;
11027 }
11028 _LT_EOF
11029   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11030   (eval $ac_link) 2>&5
11031   ac_status=$?
11032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11034     (./conftest; exit; ) >&5 2>/dev/null
11035     lt_status=$?
11036     case x$lt_status in
11037       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11038       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11039       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11040     esac
11041   else :
11042     # compilation failed
11043     lt_cv_dlopen_self=no
11044   fi
11045 fi
11046 rm -fr conftest*
11047
11048
11049 fi
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11051 $as_echo "$lt_cv_dlopen_self" >&6; }
11052
11053     if test "x$lt_cv_dlopen_self" = xyes; then
11054       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11055       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11056 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11057 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11058   $as_echo_n "(cached) " >&6
11059 else
11060           if test "$cross_compiling" = yes; then :
11061   lt_cv_dlopen_self_static=cross
11062 else
11063   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11064   lt_status=$lt_dlunknown
11065   cat > conftest.$ac_ext <<_LT_EOF
11066 #line 11066 "configure"
11067 #include "confdefs.h"
11068
11069 #if HAVE_DLFCN_H
11070 #include <dlfcn.h>
11071 #endif
11072
11073 #include <stdio.h>
11074
11075 #ifdef RTLD_GLOBAL
11076 #  define LT_DLGLOBAL           RTLD_GLOBAL
11077 #else
11078 #  ifdef DL_GLOBAL
11079 #    define LT_DLGLOBAL         DL_GLOBAL
11080 #  else
11081 #    define LT_DLGLOBAL         0
11082 #  endif
11083 #endif
11084
11085 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11086    find out it does not work in some platform. */
11087 #ifndef LT_DLLAZY_OR_NOW
11088 #  ifdef RTLD_LAZY
11089 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11090 #  else
11091 #    ifdef DL_LAZY
11092 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11093 #    else
11094 #      ifdef RTLD_NOW
11095 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11096 #      else
11097 #        ifdef DL_NOW
11098 #          define LT_DLLAZY_OR_NOW      DL_NOW
11099 #        else
11100 #          define LT_DLLAZY_OR_NOW      0
11101 #        endif
11102 #      endif
11103 #    endif
11104 #  endif
11105 #endif
11106
11107 void fnord() { int i=42;}
11108 int main ()
11109 {
11110   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11111   int status = $lt_dlunknown;
11112
11113   if (self)
11114     {
11115       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11116       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11117       /* dlclose (self); */
11118     }
11119   else
11120     puts (dlerror ());
11121
11122   return status;
11123 }
11124 _LT_EOF
11125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11126   (eval $ac_link) 2>&5
11127   ac_status=$?
11128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11130     (./conftest; exit; ) >&5 2>/dev/null
11131     lt_status=$?
11132     case x$lt_status in
11133       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11134       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11135       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11136     esac
11137   else :
11138     # compilation failed
11139     lt_cv_dlopen_self_static=no
11140   fi
11141 fi
11142 rm -fr conftest*
11143
11144
11145 fi
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11147 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11148     fi
11149
11150     CPPFLAGS="$save_CPPFLAGS"
11151     LDFLAGS="$save_LDFLAGS"
11152     LIBS="$save_LIBS"
11153     ;;
11154   esac
11155
11156   case $lt_cv_dlopen_self in
11157   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11158   *) enable_dlopen_self=unknown ;;
11159   esac
11160
11161   case $lt_cv_dlopen_self_static in
11162   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11163   *) enable_dlopen_self_static=unknown ;;
11164   esac
11165 fi
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183 striplib=
11184 old_striplib=
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11186 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11187 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11188   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11189   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11191 $as_echo "yes" >&6; }
11192 else
11193 # FIXME - insert some real tests, host_os isn't really good enough
11194   case $host_os in
11195   darwin*)
11196     if test -n "$STRIP" ; then
11197       striplib="$STRIP -x"
11198       old_striplib="$STRIP -S"
11199       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11200 $as_echo "yes" >&6; }
11201     else
11202       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11203 $as_echo "no" >&6; }
11204     fi
11205     ;;
11206   *)
11207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208 $as_echo "no" >&6; }
11209     ;;
11210   esac
11211 fi
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224   # Report which library types will actually be built
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11226 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11228 $as_echo "$can_build_shared" >&6; }
11229
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11231 $as_echo_n "checking whether to build shared libraries... " >&6; }
11232   test "$can_build_shared" = "no" && enable_shared=no
11233
11234   # On AIX, shared libraries and static libraries use the same namespace, and
11235   # are all built from PIC.
11236   case $host_os in
11237   aix3*)
11238     test "$enable_shared" = yes && enable_static=no
11239     if test -n "$RANLIB"; then
11240       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11241       postinstall_cmds='$RANLIB $lib'
11242     fi
11243     ;;
11244
11245   aix[4-9]*)
11246     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11247       test "$enable_shared" = yes && enable_static=no
11248     fi
11249     ;;
11250   esac
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11252 $as_echo "$enable_shared" >&6; }
11253
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11255 $as_echo_n "checking whether to build static libraries... " >&6; }
11256   # Make sure either enable_shared or enable_static is yes.
11257   test "$enable_shared" = yes || enable_static=yes
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11259 $as_echo "$enable_static" >&6; }
11260
11261
11262
11263
11264 fi
11265 ac_ext=c
11266 ac_cpp='$CPP $CPPFLAGS'
11267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11270
11271 CC="$lt_save_CC"
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285         ac_config_commands="$ac_config_commands libtool"
11286
11287
11288
11289
11290 # Only expand once:
11291
11292
11293
11294
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11296 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11297     # Check whether --enable-maintainer-mode was given.
11298 if test "${enable_maintainer_mode+set}" = set; then :
11299   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11300 else
11301   USE_MAINTAINER_MODE=no
11302 fi
11303
11304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11305 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11306    if test $USE_MAINTAINER_MODE = yes; then
11307   MAINTAINER_MODE_TRUE=
11308   MAINTAINER_MODE_FALSE='#'
11309 else
11310   MAINTAINER_MODE_TRUE='#'
11311   MAINTAINER_MODE_FALSE=
11312 fi
11313
11314   MAINT=$MAINTAINER_MODE_TRUE
11315
11316
11317
11318 VERSION_SCRIPT_FLAGS=
11319 # lt_cv_prog_gnu_ld is from libtool 2.+
11320 if test "$lt_cv_prog_gnu_ld" = yes; then
11321   VERSION_SCRIPT_FLAGS=-Wl,--version-script=
11322 else
11323   case $host in
11324   *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
11325   esac
11326 fi
11327
11328  if test -n "$VERSION_SCRIPT_FLAGS"; then
11329   USE_VERSION_SCRIPT_TRUE=
11330   USE_VERSION_SCRIPT_FALSE='#'
11331 else
11332   USE_VERSION_SCRIPT_TRUE='#'
11333   USE_VERSION_SCRIPT_FALSE=
11334 fi
11335
11336
11337
11338 _cppflags="${CPPFLAGS}"
11339 _ldflags="${LDFLAGS}"
11340
11341
11342 # Check whether --with-c14n was given.
11343 if test "${with_c14n+set}" = set; then :
11344   withval=$with_c14n;
11345 fi
11346
11347
11348 # Check whether --with-catalog was given.
11349 if test "${with_catalog+set}" = set; then :
11350   withval=$with_catalog;
11351 fi
11352
11353
11354 # Check whether --with-debug was given.
11355 if test "${with_debug+set}" = set; then :
11356   withval=$with_debug;
11357 fi
11358
11359
11360 # Check whether --with-docbook was given.
11361 if test "${with_docbook+set}" = set; then :
11362   withval=$with_docbook;
11363 fi
11364
11365
11366 # Check whether --with-fexceptions was given.
11367 if test "${with_fexceptions+set}" = set; then :
11368   withval=$with_fexceptions;
11369 fi
11370
11371
11372 # Check whether --with-ftp was given.
11373 if test "${with_ftp+set}" = set; then :
11374   withval=$with_ftp;
11375 fi
11376
11377
11378 # Check whether --with-history was given.
11379 if test "${with_history+set}" = set; then :
11380   withval=$with_history;
11381 fi
11382
11383
11384 # Check whether --with-html was given.
11385 if test "${with_html+set}" = set; then :
11386   withval=$with_html;
11387 fi
11388
11389
11390 # Check whether --with-html-dir was given.
11391 if test "${with_html_dir+set}" = set; then :
11392   withval=$with_html_dir; HTML_DIR=$withval
11393 else
11394   HTML_DIR='$(datadir)/doc'
11395 fi
11396
11397
11398
11399 # Check whether --with-html-subdir was given.
11400 if test "${with_html_subdir+set}" = set; then :
11401   withval=$with_html_subdir; test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"
11402 else
11403   HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"
11404 fi
11405
11406
11407
11408 # Check whether --with-http was given.
11409 if test "${with_http+set}" = set; then :
11410   withval=$with_http;
11411 fi
11412
11413
11414 # Check whether --with-iconv was given.
11415 if test "${with_iconv+set}" = set; then :
11416   withval=$with_iconv;
11417 fi
11418
11419
11420 # Check whether --with-icu was given.
11421 if test "${with_icu+set}" = set; then :
11422   withval=$with_icu;
11423 fi
11424
11425
11426 # Check whether --with-iso8859x was given.
11427 if test "${with_iso8859x+set}" = set; then :
11428   withval=$with_iso8859x;
11429 fi
11430
11431
11432 # Check whether --with-legacy was given.
11433 if test "${with_legacy+set}" = set; then :
11434   withval=$with_legacy;
11435 fi
11436
11437
11438 # Check whether --with-mem_debug was given.
11439 if test "${with_mem_debug+set}" = set; then :
11440   withval=$with_mem_debug;
11441 fi
11442
11443
11444 # Check whether --with-minimum was given.
11445 if test "${with_minimum+set}" = set; then :
11446   withval=$with_minimum;
11447 fi
11448
11449
11450 # Check whether --with-output was given.
11451 if test "${with_output+set}" = set; then :
11452   withval=$with_output;
11453 fi
11454
11455
11456 # Check whether --with-pattern was given.
11457 if test "${with_pattern+set}" = set; then :
11458   withval=$with_pattern;
11459 fi
11460
11461
11462 # Check whether --with-push was given.
11463 if test "${with_push+set}" = set; then :
11464   withval=$with_push;
11465 fi
11466
11467
11468 # Check whether --with-python was given.
11469 if test "${with_python+set}" = set; then :
11470   withval=$with_python;
11471 fi
11472
11473
11474 # Check whether --with-reader was given.
11475 if test "${with_reader+set}" = set; then :
11476   withval=$with_reader;
11477 fi
11478
11479
11480 # Check whether --with-readline was given.
11481 if test "${with_readline+set}" = set; then :
11482   withval=$with_readline;
11483   if test "$withval" != "no" -a "$withval" != "yes"; then
11484     RDL_DIR=$withval
11485     CPPFLAGS="${CPPFLAGS} -I$withval/include"
11486     LDFLAGS="${LDFLAGS} -L$withval/lib"
11487   fi
11488
11489 fi
11490
11491
11492 # Check whether --with-regexps was given.
11493 if test "${with_regexps+set}" = set; then :
11494   withval=$with_regexps;
11495 fi
11496
11497
11498 # Check whether --with-run_debug was given.
11499 if test "${with_run_debug+set}" = set; then :
11500   withval=$with_run_debug;
11501 fi
11502
11503
11504 # Check whether --with-sax1 was given.
11505 if test "${with_sax1+set}" = set; then :
11506   withval=$with_sax1;
11507 fi
11508
11509
11510 # Check whether --with-schemas was given.
11511 if test "${with_schemas+set}" = set; then :
11512   withval=$with_schemas;
11513 fi
11514
11515
11516 # Check whether --with-schematron was given.
11517 if test "${with_schematron+set}" = set; then :
11518   withval=$with_schematron;
11519 fi
11520
11521
11522 # Check whether --with-threads was given.
11523 if test "${with_threads+set}" = set; then :
11524   withval=$with_threads;
11525 fi
11526
11527
11528 # Check whether --with-thread-alloc was given.
11529 if test "${with_thread_alloc+set}" = set; then :
11530   withval=$with_thread_alloc;
11531 fi
11532
11533
11534 # Check whether --with-tree was given.
11535 if test "${with_tree+set}" = set; then :
11536   withval=$with_tree;
11537 fi
11538
11539
11540 # Check whether --with-valid was given.
11541 if test "${with_valid+set}" = set; then :
11542   withval=$with_valid;
11543 fi
11544
11545
11546 # Check whether --with-writer was given.
11547 if test "${with_writer+set}" = set; then :
11548   withval=$with_writer;
11549 fi
11550
11551
11552 # Check whether --with-xinclude was given.
11553 if test "${with_xinclude+set}" = set; then :
11554   withval=$with_xinclude;
11555 fi
11556
11557
11558 # Check whether --with-xpath was given.
11559 if test "${with_xpath+set}" = set; then :
11560   withval=$with_xpath;
11561 fi
11562
11563
11564 # Check whether --with-xptr was given.
11565 if test "${with_xptr+set}" = set; then :
11566   withval=$with_xptr;
11567 fi
11568
11569
11570 # Check whether --with-modules was given.
11571 if test "${with_modules+set}" = set; then :
11572   withval=$with_modules;
11573 fi
11574
11575
11576 # Check whether --with-zlib was given.
11577 if test "${with_zlib+set}" = set; then :
11578   withval=$with_zlib;
11579   if test "$withval" != "no" -a "$withval" != "yes"; then
11580     Z_DIR=$withval
11581     CPPFLAGS="${CPPFLAGS} -I$withval/include"
11582     LDFLAGS="${LDFLAGS} -L$withval/lib"
11583   fi
11584
11585 fi
11586
11587
11588 # Check whether --with-coverage was given.
11589 if test "${with_coverage+set}" = set; then :
11590   withval=$with_coverage;
11591 fi
11592
11593
11594 # Check whether --enable-rebuild-docs was given.
11595 if test "${enable_rebuild_docs+set}" = set; then :
11596   enableval=$enable_rebuild_docs;
11597 fi
11598
11599  if test "$enable_rebuild_docs" = "no"; then
11600   REBUILD_DOCS_TRUE=
11601   REBUILD_DOCS_FALSE='#'
11602 else
11603   REBUILD_DOCS_TRUE='#'
11604   REBUILD_DOCS_FALSE=
11605 fi
11606
11607
11608 if test "$with_schemas" = "yes"
11609 then
11610     with_pattern=yes
11611     with_regexps=yes
11612 fi
11613 if test "$with_schematron" = "yes"
11614 then
11615     with_pattern=yes
11616     with_xpath=yes
11617 fi
11618 if test "$with_reader" = "yes"
11619 then
11620     with_push=yes
11621 fi
11622 if test "$with_xptr" = "yes"
11623 then
11624     with_xpath=yes
11625 fi
11626 if test "$with_minimum" = "yes"
11627 then
11628     echo "Configuring for a minimal library"
11629     if test "$with_c14n" = ""
11630     then
11631       with_c14n=no
11632     fi
11633     if test "$with_catalog" = ""
11634     then
11635       with_catalog=no
11636     fi
11637     echo So far so good!
11638     if test "$with_debug" = ""
11639     then
11640       with_debug=no
11641     fi
11642     if test "$with_docbook" = ""
11643     then
11644       with_docbook=no
11645     fi
11646     if test "$with_fexceptions" = ""
11647     then
11648       with_fexceptions=no
11649     fi
11650     if test "$with_ftp" = ""
11651     then
11652       with_ftp=no
11653     fi
11654     if test "$with_history" = ""
11655     then
11656       with_history=no
11657     fi
11658     if test "$with_html" = ""
11659     then
11660       with_html=no
11661     fi
11662     if test "$with_http" = ""
11663     then
11664       with_http=no
11665     fi
11666     if test "$with_iconv" = ""
11667     then
11668       with_iconv=no
11669     fi
11670     if test "$with_iso8859x" = ""
11671     then
11672       with_iso8859x=no
11673     fi
11674     if test "$with_legacy" = ""
11675     then
11676       with_legacy=no
11677     fi
11678     if test "$with_mem_debug" = ""
11679     then
11680       with_mem_debug=no
11681     fi
11682     if test "$with_output" = ""
11683     then
11684       with_output=no
11685     fi
11686     if test "$with_pattern" = ""
11687     then
11688       with_pattern=no
11689     fi
11690     if test "$with_push" = ""
11691     then
11692       with_push=no
11693     fi
11694     if test "$with_python" = ""
11695     then
11696       with_python=no
11697     fi
11698     if test "$with_reader" = ""
11699     then
11700       with_reader=no
11701     fi
11702     if test "$with_readline" = ""
11703     then
11704       with_readline=no
11705     fi
11706     if test "$with_regexps" = ""
11707     then
11708       with_regexps=no
11709     fi
11710     if test "$with_run_debug" = ""
11711     then
11712       with_run_debug=no
11713     fi
11714     if test "$with_sax1" = ""
11715     then
11716       with_sax1=no
11717     fi
11718     if test "$with_schemas" = ""
11719     then
11720       with_schemas=no
11721     fi
11722     if test "$with_schematron" = ""
11723     then
11724       with_schematron=no
11725     fi
11726     if test "$with_threads" = ""
11727     then
11728       with_threads=no
11729     fi
11730     if test "$with_thread_alloc" = ""
11731     then
11732       with_thread_alloc=no
11733    fi
11734     if test "$with_tree" = ""
11735     then
11736       with_tree=no
11737     fi
11738     if test "$with_valid" = ""
11739     then
11740       with_valid=no
11741     fi
11742     if test "$with_writer" = ""
11743     then
11744       with_writer=no
11745     fi
11746     if test "$with_xinclude" = ""
11747     then
11748       with_xinclude=no
11749     fi
11750     if test "$with_xpath" = ""
11751     then
11752       with_xpath=no
11753     fi
11754     if test "$with_xptr" = ""
11755     then
11756       with_xptr=no
11757     fi
11758     if test "$with_zlib" = ""
11759     then
11760       with_zlib=no
11761     fi
11762     if test "$with_modules" = ""
11763     then
11764       with_modules=no
11765     fi
11766 fi
11767
11768 echo Checking zlib
11769
11770
11771 WITH_ZLIB=0
11772 if test "$with_zlib" = "no"; then
11773     echo "Disabling compression support"
11774 else
11775     for ac_header in zlib.h
11776 do :
11777   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11778 if test "x$ac_cv_header_zlib_h" = x""yes; then :
11779   cat >>confdefs.h <<_ACEOF
11780 #define HAVE_ZLIB_H 1
11781 _ACEOF
11782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
11783 $as_echo_n "checking for gzread in -lz... " >&6; }
11784 if test "${ac_cv_lib_z_gzread+set}" = set; then :
11785   $as_echo_n "(cached) " >&6
11786 else
11787   ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-lz  $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793    Use char because int might match the return type of a GCC
11794    builtin and then its argument prototype would still apply.  */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char gzread ();
11799 int
11800 main ()
11801 {
11802 return gzread ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808   ac_cv_lib_z_gzread=yes
11809 else
11810   ac_cv_lib_z_gzread=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813     conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
11817 $as_echo "$ac_cv_lib_z_gzread" >&6; }
11818 if test "x$ac_cv_lib_z_gzread" = x""yes; then :
11819
11820
11821 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
11822
11823             WITH_ZLIB=1
11824             if test "x${Z_DIR}" != "x"; then
11825                 Z_CFLAGS="-I${Z_DIR}/include"
11826                 Z_LIBS="-L${Z_DIR}/lib -lz"
11827                 case ${host} in
11828                     *-*-solaris*)
11829                         Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
11830                         ;;
11831                 esac
11832             else
11833                 Z_LIBS="-lz"
11834             fi
11835 fi
11836
11837 fi
11838
11839 done
11840
11841 fi
11842
11843
11844
11845
11846
11847 CPPFLAGS=${_cppflags}
11848 LDFLAGS=${_ldflags}
11849
11850 echo Checking headers
11851
11852 ac_header_dirent=no
11853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11854   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11856 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11857 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
11858   $as_echo_n "(cached) " >&6
11859 else
11860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h.  */
11862 #include <sys/types.h>
11863 #include <$ac_hdr>
11864
11865 int
11866 main ()
11867 {
11868 if ((DIR *) 0)
11869 return 0;
11870   ;
11871   return 0;
11872 }
11873 _ACEOF
11874 if ac_fn_c_try_compile "$LINENO"; then :
11875   eval "$as_ac_Header=yes"
11876 else
11877   eval "$as_ac_Header=no"
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 fi
11881 eval ac_res=\$$as_ac_Header
11882                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11883 $as_echo "$ac_res" >&6; }
11884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11885   cat >>confdefs.h <<_ACEOF
11886 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11887 _ACEOF
11888
11889 ac_header_dirent=$ac_hdr; break
11890 fi
11891
11892 done
11893 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11894 if test $ac_header_dirent = dirent.h; then
11895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11896 $as_echo_n "checking for library containing opendir... " >&6; }
11897 if test "${ac_cv_search_opendir+set}" = set; then :
11898   $as_echo_n "(cached) " >&6
11899 else
11900   ac_func_search_save_LIBS=$LIBS
11901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h.  */
11903
11904 /* Override any GCC internal prototype to avoid an error.
11905    Use char because int might match the return type of a GCC
11906    builtin and then its argument prototype would still apply.  */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char opendir ();
11911 int
11912 main ()
11913 {
11914 return opendir ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 for ac_lib in '' dir; do
11920   if test -z "$ac_lib"; then
11921     ac_res="none required"
11922   else
11923     ac_res=-l$ac_lib
11924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11925   fi
11926   if ac_fn_c_try_link "$LINENO"; then :
11927   ac_cv_search_opendir=$ac_res
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930     conftest$ac_exeext
11931   if test "${ac_cv_search_opendir+set}" = set; then :
11932   break
11933 fi
11934 done
11935 if test "${ac_cv_search_opendir+set}" = set; then :
11936
11937 else
11938   ac_cv_search_opendir=no
11939 fi
11940 rm conftest.$ac_ext
11941 LIBS=$ac_func_search_save_LIBS
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11944 $as_echo "$ac_cv_search_opendir" >&6; }
11945 ac_res=$ac_cv_search_opendir
11946 if test "$ac_res" != no; then :
11947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11948
11949 fi
11950
11951 else
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11953 $as_echo_n "checking for library containing opendir... " >&6; }
11954 if test "${ac_cv_search_opendir+set}" = set; then :
11955   $as_echo_n "(cached) " >&6
11956 else
11957   ac_func_search_save_LIBS=$LIBS
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h.  */
11960
11961 /* Override any GCC internal prototype to avoid an error.
11962    Use char because int might match the return type of a GCC
11963    builtin and then its argument prototype would still apply.  */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 char opendir ();
11968 int
11969 main ()
11970 {
11971 return opendir ();
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 for ac_lib in '' x; do
11977   if test -z "$ac_lib"; then
11978     ac_res="none required"
11979   else
11980     ac_res=-l$ac_lib
11981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11982   fi
11983   if ac_fn_c_try_link "$LINENO"; then :
11984   ac_cv_search_opendir=$ac_res
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987     conftest$ac_exeext
11988   if test "${ac_cv_search_opendir+set}" = set; then :
11989   break
11990 fi
11991 done
11992 if test "${ac_cv_search_opendir+set}" = set; then :
11993
11994 else
11995   ac_cv_search_opendir=no
11996 fi
11997 rm conftest.$ac_ext
11998 LIBS=$ac_func_search_save_LIBS
11999 fi
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12001 $as_echo "$ac_cv_search_opendir" >&6; }
12002 ac_res=$ac_cv_search_opendir
12003 if test "$ac_res" != no; then :
12004   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12005
12006 fi
12007
12008 fi
12009
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12011 $as_echo_n "checking for ANSI C header files... " >&6; }
12012 if test "${ac_cv_header_stdc+set}" = set; then :
12013   $as_echo_n "(cached) " >&6
12014 else
12015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h.  */
12017 #include <stdlib.h>
12018 #include <stdarg.h>
12019 #include <string.h>
12020 #include <float.h>
12021
12022 int
12023 main ()
12024 {
12025
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 if ac_fn_c_try_compile "$LINENO"; then :
12031   ac_cv_header_stdc=yes
12032 else
12033   ac_cv_header_stdc=no
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036
12037 if test $ac_cv_header_stdc = yes; then
12038   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h.  */
12041 #include <string.h>
12042
12043 _ACEOF
12044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045   $EGREP "memchr" >/dev/null 2>&1; then :
12046
12047 else
12048   ac_cv_header_stdc=no
12049 fi
12050 rm -f conftest*
12051
12052 fi
12053
12054 if test $ac_cv_header_stdc = yes; then
12055   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12057 /* end confdefs.h.  */
12058 #include <stdlib.h>
12059
12060 _ACEOF
12061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12062   $EGREP "free" >/dev/null 2>&1; then :
12063
12064 else
12065   ac_cv_header_stdc=no
12066 fi
12067 rm -f conftest*
12068
12069 fi
12070
12071 if test $ac_cv_header_stdc = yes; then
12072   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12073   if test "$cross_compiling" = yes; then :
12074   :
12075 else
12076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h.  */
12078 #include <ctype.h>
12079 #include <stdlib.h>
12080 #if ((' ' & 0x0FF) == 0x020)
12081 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12082 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12083 #else
12084 # define ISLOWER(c) \
12085                    (('a' <= (c) && (c) <= 'i') \
12086                      || ('j' <= (c) && (c) <= 'r') \
12087                      || ('s' <= (c) && (c) <= 'z'))
12088 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12089 #endif
12090
12091 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12092 int
12093 main ()
12094 {
12095   int i;
12096   for (i = 0; i < 256; i++)
12097     if (XOR (islower (i), ISLOWER (i))
12098         || toupper (i) != TOUPPER (i))
12099       return 2;
12100   return 0;
12101 }
12102 _ACEOF
12103 if ac_fn_c_try_run "$LINENO"; then :
12104
12105 else
12106   ac_cv_header_stdc=no
12107 fi
12108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12109   conftest.$ac_objext conftest.beam conftest.$ac_ext
12110 fi
12111
12112 fi
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12115 $as_echo "$ac_cv_header_stdc" >&6; }
12116 if test $ac_cv_header_stdc = yes; then
12117
12118 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12119
12120 fi
12121
12122 for ac_header in fcntl.h
12123 do :
12124   ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12125 if test "x$ac_cv_header_fcntl_h" = x""yes; then :
12126   cat >>confdefs.h <<_ACEOF
12127 #define HAVE_FCNTL_H 1
12128 _ACEOF
12129
12130 fi
12131
12132 done
12133
12134 for ac_header in unistd.h
12135 do :
12136   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_unistd_h" = x""yes; then :
12138   cat >>confdefs.h <<_ACEOF
12139 #define HAVE_UNISTD_H 1
12140 _ACEOF
12141
12142 fi
12143
12144 done
12145
12146 for ac_header in ctype.h
12147 do :
12148   ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
12149 if test "x$ac_cv_header_ctype_h" = x""yes; then :
12150   cat >>confdefs.h <<_ACEOF
12151 #define HAVE_CTYPE_H 1
12152 _ACEOF
12153
12154 fi
12155
12156 done
12157
12158 for ac_header in dirent.h
12159 do :
12160   ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
12161 if test "x$ac_cv_header_dirent_h" = x""yes; then :
12162   cat >>confdefs.h <<_ACEOF
12163 #define HAVE_DIRENT_H 1
12164 _ACEOF
12165
12166 fi
12167
12168 done
12169
12170 for ac_header in errno.h
12171 do :
12172   ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
12173 if test "x$ac_cv_header_errno_h" = x""yes; then :
12174   cat >>confdefs.h <<_ACEOF
12175 #define HAVE_ERRNO_H 1
12176 _ACEOF
12177
12178 fi
12179
12180 done
12181
12182 for ac_header in malloc.h
12183 do :
12184   ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
12185 if test "x$ac_cv_header_malloc_h" = x""yes; then :
12186   cat >>confdefs.h <<_ACEOF
12187 #define HAVE_MALLOC_H 1
12188 _ACEOF
12189
12190 fi
12191
12192 done
12193
12194 for ac_header in stdarg.h
12195 do :
12196   ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_stdarg_h" = x""yes; then :
12198   cat >>confdefs.h <<_ACEOF
12199 #define HAVE_STDARG_H 1
12200 _ACEOF
12201
12202 fi
12203
12204 done
12205
12206 for ac_header in sys/stat.h
12207 do :
12208   ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12209 if test "x$ac_cv_header_sys_stat_h" = x""yes; then :
12210   cat >>confdefs.h <<_ACEOF
12211 #define HAVE_SYS_STAT_H 1
12212 _ACEOF
12213
12214 fi
12215
12216 done
12217
12218 for ac_header in sys/types.h
12219 do :
12220   ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12221 if test "x$ac_cv_header_sys_types_h" = x""yes; then :
12222   cat >>confdefs.h <<_ACEOF
12223 #define HAVE_SYS_TYPES_H 1
12224 _ACEOF
12225
12226 fi
12227
12228 done
12229
12230 for ac_header in stdint.h
12231 do :
12232   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12233 if test "x$ac_cv_header_stdint_h" = x""yes; then :
12234   cat >>confdefs.h <<_ACEOF
12235 #define HAVE_STDINT_H 1
12236 _ACEOF
12237
12238 fi
12239
12240 done
12241
12242 for ac_header in inttypes.h.h
12243 do :
12244   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h.h" "ac_cv_header_inttypes_h_h" "$ac_includes_default"
12245 if test "x$ac_cv_header_inttypes_h_h" = x""yes; then :
12246   cat >>confdefs.h <<_ACEOF
12247 #define HAVE_INTTYPES_H_H 1
12248 _ACEOF
12249
12250 fi
12251
12252 done
12253
12254 for ac_header in time.h
12255 do :
12256   ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
12257 if test "x$ac_cv_header_time_h" = x""yes; then :
12258   cat >>confdefs.h <<_ACEOF
12259 #define HAVE_TIME_H 1
12260 _ACEOF
12261
12262 fi
12263
12264 done
12265
12266 for ac_header in ansidecl.h
12267 do :
12268   ac_fn_c_check_header_mongrel "$LINENO" "ansidecl.h" "ac_cv_header_ansidecl_h" "$ac_includes_default"
12269 if test "x$ac_cv_header_ansidecl_h" = x""yes; then :
12270   cat >>confdefs.h <<_ACEOF
12271 #define HAVE_ANSIDECL_H 1
12272 _ACEOF
12273
12274 fi
12275
12276 done
12277
12278 for ac_header in ieeefp.h
12279 do :
12280   ac_fn_c_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
12281 if test "x$ac_cv_header_ieeefp_h" = x""yes; then :
12282   cat >>confdefs.h <<_ACEOF
12283 #define HAVE_IEEEFP_H 1
12284 _ACEOF
12285
12286 fi
12287
12288 done
12289
12290 for ac_header in nan.h
12291 do :
12292   ac_fn_c_check_header_mongrel "$LINENO" "nan.h" "ac_cv_header_nan_h" "$ac_includes_default"
12293 if test "x$ac_cv_header_nan_h" = x""yes; then :
12294   cat >>confdefs.h <<_ACEOF
12295 #define HAVE_NAN_H 1
12296 _ACEOF
12297
12298 fi
12299
12300 done
12301
12302 for ac_header in math.h
12303 do :
12304   ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
12305 if test "x$ac_cv_header_math_h" = x""yes; then :
12306   cat >>confdefs.h <<_ACEOF
12307 #define HAVE_MATH_H 1
12308 _ACEOF
12309
12310 fi
12311
12312 done
12313
12314 for ac_header in limits.h
12315 do :
12316   ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12317 if test "x$ac_cv_header_limits_h" = x""yes; then :
12318   cat >>confdefs.h <<_ACEOF
12319 #define HAVE_LIMITS_H 1
12320 _ACEOF
12321
12322 fi
12323
12324 done
12325
12326 for ac_header in fp_class.h
12327 do :
12328   ac_fn_c_check_header_mongrel "$LINENO" "fp_class.h" "ac_cv_header_fp_class_h" "$ac_includes_default"
12329 if test "x$ac_cv_header_fp_class_h" = x""yes; then :
12330   cat >>confdefs.h <<_ACEOF
12331 #define HAVE_FP_CLASS_H 1
12332 _ACEOF
12333
12334 fi
12335
12336 done
12337
12338 for ac_header in float.h
12339 do :
12340   ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
12341 if test "x$ac_cv_header_float_h" = x""yes; then :
12342   cat >>confdefs.h <<_ACEOF
12343 #define HAVE_FLOAT_H 1
12344 _ACEOF
12345
12346 fi
12347
12348 done
12349
12350 for ac_header in stdlib.h
12351 do :
12352   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12353 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
12354   cat >>confdefs.h <<_ACEOF
12355 #define HAVE_STDLIB_H 1
12356 _ACEOF
12357
12358 fi
12359
12360 done
12361
12362 for ac_header in sys/socket.h
12363 do :
12364   ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "#if HAVE_SYS_TYPES_H
12365 # include <sys/types.h>
12366 # endif
12367
12368 "
12369 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
12370   cat >>confdefs.h <<_ACEOF
12371 #define HAVE_SYS_SOCKET_H 1
12372 _ACEOF
12373
12374 fi
12375
12376 done
12377
12378 for ac_header in netinet/in.h
12379 do :
12380   ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_SYS_TYPES_H
12381 # include <sys/types.h>
12382 # endif
12383
12384 "
12385 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
12386   cat >>confdefs.h <<_ACEOF
12387 #define HAVE_NETINET_IN_H 1
12388 _ACEOF
12389
12390 fi
12391
12392 done
12393
12394 for ac_header in arpa/inet.h
12395 do :
12396   ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "#if HAVE_SYS_TYPES_H
12397 # include <sys/types.h>
12398 # endif
12399 #if HAVE_ARPA_INET_H
12400 # include <arpa/inet.h>
12401 # endif
12402
12403 "
12404 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
12405   cat >>confdefs.h <<_ACEOF
12406 #define HAVE_ARPA_INET_H 1
12407 _ACEOF
12408
12409 fi
12410
12411 done
12412
12413 for ac_header in netdb.h
12414 do :
12415   ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
12416 if test "x$ac_cv_header_netdb_h" = x""yes; then :
12417   cat >>confdefs.h <<_ACEOF
12418 #define HAVE_NETDB_H 1
12419 _ACEOF
12420
12421 fi
12422
12423 done
12424
12425 for ac_header in sys/time.h
12426 do :
12427   ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12428 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
12429   cat >>confdefs.h <<_ACEOF
12430 #define HAVE_SYS_TIME_H 1
12431 _ACEOF
12432
12433 fi
12434
12435 done
12436
12437 for ac_header in sys/select.h
12438 do :
12439   ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12440 if test "x$ac_cv_header_sys_select_h" = x""yes; then :
12441   cat >>confdefs.h <<_ACEOF
12442 #define HAVE_SYS_SELECT_H 1
12443 _ACEOF
12444
12445 fi
12446
12447 done
12448
12449 for ac_header in poll.h
12450 do :
12451   ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
12452 if test "x$ac_cv_header_poll_h" = x""yes; then :
12453   cat >>confdefs.h <<_ACEOF
12454 #define HAVE_POLL_H 1
12455 _ACEOF
12456
12457 fi
12458
12459 done
12460
12461 for ac_header in sys/mman.h
12462 do :
12463   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12464 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12465   cat >>confdefs.h <<_ACEOF
12466 #define HAVE_SYS_MMAN_H 1
12467 _ACEOF
12468
12469 fi
12470
12471 done
12472
12473 for ac_header in sys/timeb.h
12474 do :
12475   ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
12476 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
12477   cat >>confdefs.h <<_ACEOF
12478 #define HAVE_SYS_TIMEB_H 1
12479 _ACEOF
12480
12481 fi
12482
12483 done
12484
12485 for ac_header in signal.h
12486 do :
12487   ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
12488 if test "x$ac_cv_header_signal_h" = x""yes; then :
12489   cat >>confdefs.h <<_ACEOF
12490 #define HAVE_SIGNAL_H 1
12491 _ACEOF
12492
12493 fi
12494
12495 done
12496
12497 for ac_header in arpa/nameser.h
12498 do :
12499   ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#if HAVE_SYS_TYPES_H
12500 # include <sys/types.h>
12501 # endif
12502
12503 "
12504 if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
12505   cat >>confdefs.h <<_ACEOF
12506 #define HAVE_ARPA_NAMESER_H 1
12507 _ACEOF
12508
12509 fi
12510
12511 done
12512
12513 for ac_header in resolv.h
12514 do :
12515   ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
12516 # include <sys/types.h>
12517 # endif
12518 #if HAVE_NETINET_IN_H
12519 # include <netinet/in.h>
12520 # endif
12521 #if HAVE_ARPA_NAMESER_H
12522 # include <arpa/nameser.h>
12523 # endif
12524
12525 "
12526 if test "x$ac_cv_header_resolv_h" = x""yes; then :
12527   cat >>confdefs.h <<_ACEOF
12528 #define HAVE_RESOLV_H 1
12529 _ACEOF
12530
12531 fi
12532
12533 done
12534
12535 for ac_header in dl.h
12536 do :
12537   ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
12538 if test "x$ac_cv_header_dl_h" = x""yes; then :
12539   cat >>confdefs.h <<_ACEOF
12540 #define HAVE_DL_H 1
12541 _ACEOF
12542
12543 fi
12544
12545 done
12546
12547 for ac_header in dlfcn.h
12548 do :
12549   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12550 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
12551   cat >>confdefs.h <<_ACEOF
12552 #define HAVE_DLFCN_H 1
12553 _ACEOF
12554
12555 fi
12556
12557 done
12558
12559
12560
12561 echo Checking libraries
12562
12563 for ac_func in strftime
12564 do :
12565   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
12566 if test "x$ac_cv_func_strftime" = x""yes; then :
12567   cat >>confdefs.h <<_ACEOF
12568 #define HAVE_STRFTIME 1
12569 _ACEOF
12570
12571 else
12572   # strftime is in -lintl on SCO UNIX.
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
12574 $as_echo_n "checking for strftime in -lintl... " >&6; }
12575 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
12576   $as_echo_n "(cached) " >&6
12577 else
12578   ac_check_lib_save_LIBS=$LIBS
12579 LIBS="-lintl  $LIBS"
12580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 /* end confdefs.h.  */
12582
12583 /* Override any GCC internal prototype to avoid an error.
12584    Use char because int might match the return type of a GCC
12585    builtin and then its argument prototype would still apply.  */
12586 #ifdef __cplusplus
12587 extern "C"
12588 #endif
12589 char strftime ();
12590 int
12591 main ()
12592 {
12593 return strftime ();
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_link "$LINENO"; then :
12599   ac_cv_lib_intl_strftime=yes
12600 else
12601   ac_cv_lib_intl_strftime=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604     conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12606 fi
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
12608 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12609 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
12610   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
12611
12612 LIBS="-lintl $LIBS"
12613 fi
12614
12615 fi
12616 done
12617
12618 for ac_func in strdup strndup strerror
12619 do :
12620   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12621 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12622 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12623   cat >>confdefs.h <<_ACEOF
12624 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12625 _ACEOF
12626
12627 fi
12628 done
12629
12630 for ac_func in finite isnand fp_class class fpclass
12631 do :
12632   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12635   cat >>confdefs.h <<_ACEOF
12636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12637 _ACEOF
12638
12639 fi
12640 done
12641
12642 for ac_func in strftime localtime gettimeofday ftime
12643 do :
12644   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12645 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12646 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12647   cat >>confdefs.h <<_ACEOF
12648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12649 _ACEOF
12650
12651 fi
12652 done
12653
12654 for ac_func in stat _stat signal
12655 do :
12656   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12659   cat >>confdefs.h <<_ACEOF
12660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12661 _ACEOF
12662
12663 fi
12664 done
12665
12666
12667 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
12668 do :
12669   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12672   cat >>confdefs.h <<_ACEOF
12673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12674 _ACEOF
12675
12676 else
12677   NEED_TRIO=1
12678 fi
12679 done
12680
12681
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
12683 $as_echo_n "checking for va_copy... " >&6; }
12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 /* end confdefs.h.  */
12686 #include <stdarg.h>
12687 va_list ap1,ap2;
12688 int
12689 main ()
12690 {
12691 va_copy(ap1,ap2);
12692   ;
12693   return 0;
12694 }
12695 _ACEOF
12696 if ac_fn_c_try_link "$LINENO"; then :
12697   have_va_copy=yes
12698 else
12699   have_va_copy=no
12700 fi
12701 rm -f core conftest.err conftest.$ac_objext \
12702     conftest$ac_exeext conftest.$ac_ext
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_va_copy" >&5
12704 $as_echo "$have_va_copy" >&6; }
12705 if test x"$have_va_copy" = x"yes"; then
12706
12707 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
12708
12709 else
12710     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
12711 $as_echo_n "checking for __va_copy... " >&6; }
12712     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h.  */
12714 #include <stdarg.h>
12715     va_list ap1,ap2;
12716 int
12717 main ()
12718 {
12719 __va_copy(ap1,ap2);
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725   have___va_copy=yes
12726 else
12727   have___va_copy=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730     conftest$ac_exeext conftest.$ac_ext
12731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have___va_copy" >&5
12732 $as_echo "$have___va_copy" >&6; }
12733     if test x"$have___va_copy" = x"yes"; then
12734
12735 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
12736
12737     fi
12738 fi
12739
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
12741 $as_echo_n "checking for library containing gethostent... " >&6; }
12742 if test "${ac_cv_search_gethostent+set}" = set; then :
12743   $as_echo_n "(cached) " >&6
12744 else
12745   ac_func_search_save_LIBS=$LIBS
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748
12749 /* Override any GCC internal prototype to avoid an error.
12750    Use char because int might match the return type of a GCC
12751    builtin and then its argument prototype would still apply.  */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char gethostent ();
12756 int
12757 main ()
12758 {
12759 return gethostent ();
12760   ;
12761   return 0;
12762 }
12763 _ACEOF
12764 for ac_lib in '' nsl; do
12765   if test -z "$ac_lib"; then
12766     ac_res="none required"
12767   else
12768     ac_res=-l$ac_lib
12769     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12770   fi
12771   if ac_fn_c_try_link "$LINENO"; then :
12772   ac_cv_search_gethostent=$ac_res
12773 fi
12774 rm -f core conftest.err conftest.$ac_objext \
12775     conftest$ac_exeext
12776   if test "${ac_cv_search_gethostent+set}" = set; then :
12777   break
12778 fi
12779 done
12780 if test "${ac_cv_search_gethostent+set}" = set; then :
12781
12782 else
12783   ac_cv_search_gethostent=no
12784 fi
12785 rm conftest.$ac_ext
12786 LIBS=$ac_func_search_save_LIBS
12787 fi
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
12789 $as_echo "$ac_cv_search_gethostent" >&6; }
12790 ac_res=$ac_cv_search_gethostent
12791 if test "$ac_res" != no; then :
12792   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12793
12794 fi
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
12797 $as_echo_n "checking for library containing setsockopt... " >&6; }
12798 if test "${ac_cv_search_setsockopt+set}" = set; then :
12799   $as_echo_n "(cached) " >&6
12800 else
12801   ac_func_search_save_LIBS=$LIBS
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h.  */
12804
12805 /* Override any GCC internal prototype to avoid an error.
12806    Use char because int might match the return type of a GCC
12807    builtin and then its argument prototype would still apply.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 #endif
12811 char setsockopt ();
12812 int
12813 main ()
12814 {
12815 return setsockopt ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 for ac_lib in '' socket net network; do
12821   if test -z "$ac_lib"; then
12822     ac_res="none required"
12823   else
12824     ac_res=-l$ac_lib
12825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12826   fi
12827   if ac_fn_c_try_link "$LINENO"; then :
12828   ac_cv_search_setsockopt=$ac_res
12829 fi
12830 rm -f core conftest.err conftest.$ac_objext \
12831     conftest$ac_exeext
12832   if test "${ac_cv_search_setsockopt+set}" = set; then :
12833   break
12834 fi
12835 done
12836 if test "${ac_cv_search_setsockopt+set}" = set; then :
12837
12838 else
12839   ac_cv_search_setsockopt=no
12840 fi
12841 rm conftest.$ac_ext
12842 LIBS=$ac_func_search_save_LIBS
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
12845 $as_echo "$ac_cv_search_setsockopt" >&6; }
12846 ac_res=$ac_cv_search_setsockopt
12847 if test "$ac_res" != no; then :
12848   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12849
12850 fi
12851
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12853 $as_echo_n "checking for library containing connect... " >&6; }
12854 if test "${ac_cv_search_connect+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   ac_func_search_save_LIBS=$LIBS
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h.  */
12860
12861 /* Override any GCC internal prototype to avoid an error.
12862    Use char because int might match the return type of a GCC
12863    builtin and then its argument prototype would still apply.  */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char connect ();
12868 int
12869 main ()
12870 {
12871 return connect ();
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 for ac_lib in '' inet; do
12877   if test -z "$ac_lib"; then
12878     ac_res="none required"
12879   else
12880     ac_res=-l$ac_lib
12881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12882   fi
12883   if ac_fn_c_try_link "$LINENO"; then :
12884   ac_cv_search_connect=$ac_res
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887     conftest$ac_exeext
12888   if test "${ac_cv_search_connect+set}" = set; then :
12889   break
12890 fi
12891 done
12892 if test "${ac_cv_search_connect+set}" = set; then :
12893
12894 else
12895   ac_cv_search_connect=no
12896 fi
12897 rm conftest.$ac_ext
12898 LIBS=$ac_func_search_save_LIBS
12899 fi
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12901 $as_echo "$ac_cv_search_connect" >&6; }
12902 ac_res=$ac_cv_search_connect
12903 if test "$ac_res" != no; then :
12904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12905
12906 fi
12907
12908
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of socket length (socklen_t)" >&5
12910 $as_echo_n "checking for type of socket length (socklen_t)... " >&6; }
12911 cat > conftest.$ac_ext <<EOF
12912 #line 12912 "configure"
12913 #include "confdefs.h"
12914
12915 #include <stddef.h>
12916 #include <sys/types.h>
12917 #include <sys/socket.h>
12918 int main(void) {
12919
12920 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
12921 ; return 0; }
12922 EOF
12923 if { (eval echo configure:12923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12924   rm -rf conftest*
12925
12926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: socklen_t *" >&5
12927 $as_echo "socklen_t *" >&6; }
12928   XML_SOCKLEN_T=socklen_t
12929 else
12930   echo "configure: failed program was:" >&5
12931   cat conftest.$ac_ext >&5
12932   rm -rf conftest*
12933
12934   cat > conftest.$ac_ext <<EOF
12935 #line 12935 "configure"
12936 #include "confdefs.h"
12937
12938 #include <stddef.h>
12939 #include <sys/types.h>
12940 #include <sys/socket.h>
12941 int main(void) {
12942
12943 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
12944 ; return 0; }
12945 EOF
12946 if { (eval echo configure:12946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12947   rm -rf conftest*
12948
12949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: size_t *" >&5
12950 $as_echo "size_t *" >&6; }
12951     XML_SOCKLEN_T=size_t
12952 else
12953   echo "configure: failed program was:" >&5
12954   cat conftest.$ac_ext >&5
12955   rm -rf conftest*
12956
12957     cat > conftest.$ac_ext <<EOF
12958 #line 12958 "configure"
12959 #include "confdefs.h"
12960
12961 #include <stddef.h>
12962 #include <sys/types.h>
12963 #include <sys/socket.h>
12964 int main(void) {
12965
12966 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
12967 ; return 0; }
12968 EOF
12969 if { (eval echo configure:12969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12970   rm -rf conftest*
12971
12972       { $as_echo "$as_me:${as_lineno-$LINENO}: result: int *" >&5
12973 $as_echo "int *" >&6; }
12974       XML_SOCKLEN_T=int
12975 else
12976   echo "configure: failed program was:" >&5
12977   cat conftest.$ac_ext >&5
12978   rm -rf conftest*
12979
12980       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine" >&5
12981 $as_echo "$as_me: WARNING: could not determine" >&2;}
12982       XML_SOCKLEN_T="int"
12983 fi
12984 rm -f conftest*
12985 fi
12986 rm -f conftest*
12987 fi
12988 rm -f conftest*
12989
12990 cat >>confdefs.h <<_ACEOF
12991 #define XML_SOCKLEN_T $XML_SOCKLEN_T
12992 _ACEOF
12993
12994
12995
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
12997 $as_echo_n "checking whether to enable IPv6... " >&6; }
12998 # Check whether --enable-ipv6 was given.
12999 if test "${enable_ipv6+set}" = set; then :
13000   enableval=$enable_ipv6;
13001 else
13002   enable_ipv6=yes
13003 fi
13004
13005 if test "$with_minimum" = "yes"
13006 then
13007     enable_ipv6=no
13008 fi
13009 if test $enable_ipv6 = yes; then
13010   have_ipv6=no
13011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h.  */
13013
13014     #include <sys/types.h>
13015     #include <sys/socket.h>
13016
13017 int
13018 main ()
13019 {
13020
13021     struct sockaddr_storage ss;
13022     socket(AF_INET6, SOCK_STREAM, 0)
13023
13024   ;
13025   return 0;
13026 }
13027 _ACEOF
13028 if ac_fn_c_try_compile "$LINENO"; then :
13029   have_ipv6=yes
13030 else
13031   have_ipv6=no
13032
13033 fi
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipv6" >&5
13036 $as_echo "$have_ipv6" >&6; }
13037
13038   if test $have_ipv6 = yes; then
13039
13040 $as_echo "#define SUPPORT_IP6 /**/" >>confdefs.h
13041
13042     have_broken_ss_family=no
13043
13044                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr::ss_family" >&5
13045 $as_echo_n "checking struct sockaddr::ss_family... " >&6; }
13046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h.  */
13048
13049       #include <sys/types.h>
13050       #include <sys/socket.h>
13051
13052 int
13053 main ()
13054 {
13055
13056       struct sockaddr_storage ss ;
13057       ss.ss_family = 0 ;
13058
13059   ;
13060   return 0;
13061 }
13062 _ACEOF
13063 if ac_fn_c_try_compile "$LINENO"; then :
13064   have_ss_family=yes
13065 else
13066   have_ss_family=no
13067
13068 fi
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ss_family" >&5
13071 $as_echo "$have_ss_family" >&6; }
13072     if test x$have_ss_family = xno ; then
13073       { $as_echo "$as_me:${as_lineno-$LINENO}: checking broken struct sockaddr::ss_family" >&5
13074 $as_echo_n "checking broken struct sockaddr::ss_family... " >&6; }
13075       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h.  */
13077
13078         #include <sys/types.h>
13079         #include <sys/socket.h>
13080
13081 int
13082 main ()
13083 {
13084
13085         struct sockaddr_storage ss ;
13086         ss.__ss_family = 0 ;
13087
13088   ;
13089   return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093   have_broken_ss_family=yes
13094 else
13095   have_broken_ss_family=no
13096
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_broken_ss_family" >&5
13100 $as_echo "$have_broken_ss_family" >&6; }
13101       if test x$have_broken_ss_family = xyes ; then
13102
13103 $as_echo "#define HAVE_BROKEN_SS_FAMILY /**/" >>confdefs.h
13104
13105
13106 $as_echo "#define ss_family __ss_family" >>confdefs.h
13107
13108       else
13109         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ss_family and __ss_family not found" >&5
13110 $as_echo "$as_me: WARNING: ss_family and __ss_family not found" >&2;}
13111       fi
13112     fi
13113
13114     have_getaddrinfo=no
13115     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13116 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
13117   have_getaddrinfo=yes
13118 fi
13119
13120     if test $have_getaddrinfo != yes; then
13121       for lib in bsd socket inet; do
13122         as_ac_Lib=`$as_echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib" >&5
13124 $as_echo_n "checking for getaddrinfo in -l$lib... " >&6; }
13125 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
13126   $as_echo_n "(cached) " >&6
13127 else
13128   ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-l$lib  $LIBS"
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h.  */
13132
13133 /* Override any GCC internal prototype to avoid an error.
13134    Use char because int might match the return type of a GCC
13135    builtin and then its argument prototype would still apply.  */
13136 #ifdef __cplusplus
13137 extern "C"
13138 #endif
13139 char getaddrinfo ();
13140 int
13141 main ()
13142 {
13143 return getaddrinfo ();
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_link "$LINENO"; then :
13149   eval "$as_ac_Lib=yes"
13150 else
13151   eval "$as_ac_Lib=no"
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext \
13154     conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13156 fi
13157 eval ac_res=\$$as_ac_Lib
13158                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13159 $as_echo "$ac_res" >&6; }
13160 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13161   LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13162 fi
13163
13164       done
13165     fi
13166
13167     if test $have_getaddrinfo = yes; then
13168
13169 $as_echo "#define HAVE_GETADDRINFO /**/" >>confdefs.h
13170
13171     fi
13172   fi
13173 fi
13174
13175
13176 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13177 if test "x$ac_cv_func_isnan" = x""yes; then :
13178
13179 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13180
13181 else
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13183 $as_echo_n "checking for isnan in -lm... " >&6; }
13184 if test "${ac_cv_lib_m_isnan+set}" = set; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lm  $LIBS"
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191
13192 /* Override any GCC internal prototype to avoid an error.
13193    Use char because int might match the return type of a GCC
13194    builtin and then its argument prototype would still apply.  */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char isnan ();
13199 int
13200 main ()
13201 {
13202 return isnan ();
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208   ac_cv_lib_m_isnan=yes
13209 else
13210   ac_cv_lib_m_isnan=no
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext \
13213     conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13217 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13218 if test "x$ac_cv_lib_m_isnan" = x""yes; then :
13219
13220 $as_echo "#define HAVE_ISNAN /**/" >>confdefs.h
13221
13222 fi
13223
13224 fi
13225
13226
13227 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
13228 if test "x$ac_cv_func_isinf" = x""yes; then :
13229
13230 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13231
13232 else
13233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in -lm" >&5
13234 $as_echo_n "checking for isinf in -lm... " >&6; }
13235 if test "${ac_cv_lib_m_isinf+set}" = set; then :
13236   $as_echo_n "(cached) " >&6
13237 else
13238   ac_check_lib_save_LIBS=$LIBS
13239 LIBS="-lm  $LIBS"
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h.  */
13242
13243 /* Override any GCC internal prototype to avoid an error.
13244    Use char because int might match the return type of a GCC
13245    builtin and then its argument prototype would still apply.  */
13246 #ifdef __cplusplus
13247 extern "C"
13248 #endif
13249 char isinf ();
13250 int
13251 main ()
13252 {
13253 return isinf ();
13254   ;
13255   return 0;
13256 }
13257 _ACEOF
13258 if ac_fn_c_try_link "$LINENO"; then :
13259   ac_cv_lib_m_isinf=yes
13260 else
13261   ac_cv_lib_m_isinf=no
13262 fi
13263 rm -f core conftest.err conftest.$ac_objext \
13264     conftest$ac_exeext conftest.$ac_ext
13265 LIBS=$ac_check_lib_save_LIBS
13266 fi
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isinf" >&5
13268 $as_echo "$ac_cv_lib_m_isinf" >&6; }
13269 if test "x$ac_cv_lib_m_isinf" = x""yes; then :
13270
13271 $as_echo "#define HAVE_ISINF /**/" >>confdefs.h
13272
13273 fi
13274
13275 fi
13276
13277
13278 XML_LIBDIR='-L${libdir}'
13279 XML_INCLUDEDIR='-I${includedir}/libxml2'
13280
13281 XML_CFLAGS=""
13282 RDL_LIBS=""
13283
13284 if test "${GCC}" != "yes" ; then
13285     case "${host}" in
13286           hppa*-*-hpux* )
13287                CFLAGS="${CFLAGS} -Wp,-H30000"
13288                ;;
13289           *-dec-osf* )
13290                CFLAGS="${CFLAGS} -ieee"
13291                ;;
13292           alpha*-*-linux* )
13293                CFLAGS="${CFLAGS} -ieee"
13294                ;;
13295     esac
13296 else
13297     if test "$with_fexceptions" = "yes"
13298     then
13299         #
13300         # Not activated by default because this inflates the code size
13301         # Used to allow propagation of C++ exceptions through the library
13302         #
13303         CFLAGS="${CFLAGS} -fexceptions"
13304     fi
13305
13306     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"
13307     case "${host}" in
13308           alpha*-*-linux* )
13309                CFLAGS="${CFLAGS} -mieee"
13310                ;;
13311           alpha*-*-osf* )
13312                CFLAGS="${CFLAGS} -mieee"
13313                ;;
13314     esac
13315 fi
13316 case ${host} in
13317     *-*-solaris*)
13318         XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
13319         ;;
13320     hppa*-hp-mpeix)
13321         NEED_TRIO=1
13322         ;;
13323     *-*-mingw* | *-*-cygwin* | *-*-msvc* )
13324         # If the host is Windows, and shared libraries are disabled, we
13325         # need to add -DLIBXML_STATIC to CFLAGS in order for linking to
13326         # work properly (without it, xmlexports.h would force the use of
13327         # DLL imports, which obviously aren't present in a static
13328         # library).
13329         if test "x$enable_shared" = "xno"; then
13330             XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC"
13331             CFLAGS="$CFLAGS -DLIBXML_STATIC"
13332         fi
13333         ;;
13334 esac
13335
13336
13337
13338 PYTHON_VERSION=
13339 PYTHON_INCLUDES=
13340 PYTHON_SITE_PACKAGES=
13341 PYTHON_TESTS=
13342 pythondir=
13343 if test "$with_python" != "no" ; then
13344     if test -x "$with_python/bin/python"
13345     then
13346         echo Found python in $with_python/bin/python
13347         PYTHON="$with_python/bin/python"
13348     else
13349         if test -x "$with_python/python.exe"
13350         then
13351             echo Found python in $with_python/python.exe
13352             PYTHON="$with_python/python.exe"
13353         else
13354             if test -x "$with_python"
13355             then
13356                 echo Found python in $with_python
13357                 PYTHON="$with_python"
13358             else
13359                 if test -x "$PYTHON"
13360                 then
13361                     echo Found python in environment PYTHON=$PYTHON
13362                     with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
13363                 else
13364                     # 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.
13365 set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13367 $as_echo_n "checking for $ac_word... " >&6; }
13368 if test "${ac_cv_path_PYTHON+set}" = set; then :
13369   $as_echo_n "(cached) " >&6
13370 else
13371   case $PYTHON in
13372   [\\/]* | ?:[\\/]*)
13373   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13374   ;;
13375   *)
13376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13377 for as_dir in $PATH
13378 do
13379   IFS=$as_save_IFS
13380   test -z "$as_dir" && as_dir=.
13381     for ac_exec_ext in '' $ac_executable_extensions; do
13382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13383     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13385     break 2
13386   fi
13387 done
13388   done
13389 IFS=$as_save_IFS
13390
13391   ;;
13392 esac
13393 fi
13394 PYTHON=$ac_cv_path_PYTHON
13395 if test -n "$PYTHON"; then
13396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13397 $as_echo "$PYTHON" >&6; }
13398 else
13399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13401 fi
13402
13403
13404                 fi
13405             fi
13406         fi
13407     fi
13408     if test "$PYTHON" != ""
13409     then
13410         PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
13411         echo Found Python version $PYTHON_VERSION
13412     fi
13413     if test "$PYTHON_VERSION" != ""
13414     then
13415         if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
13416            -d $with_python/lib/python$PYTHON_VERSION/site-packages
13417         then
13418             PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
13419             PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13420         else
13421             if test -r $prefix/include/python$PYTHON_VERSION/Python.h
13422             then
13423                 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
13424                 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13425             else
13426                 if test -r /usr/include/python$PYTHON_VERSION/Python.h
13427                 then
13428                     PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
13429                     PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
13430                 else
13431                     if test -r $with_python/include/Python.h -a \
13432                        -d $with_python/lib/site-packages
13433                     then
13434                         PYTHON_INCLUDES=$with_python/include
13435                         PYTHON_SITE_PACKAGES=$with_python/lib/site-packages
13436                     else
13437                         echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h
13438                     fi
13439                 fi
13440             fi
13441             if test ! -d "$PYTHON_SITE_PACKAGES"
13442             then
13443                     PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
13444             fi
13445         fi
13446         PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags`
13447     fi
13448     if test "$with_python" != ""
13449     then
13450         pythondir='$(PYTHON_SITE_PACKAGES)'
13451     else
13452         pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
13453     fi
13454 else
13455     PYTHON=
13456 fi
13457  if test "$PYTHON_INCLUDES" != ""; then
13458   WITH_PYTHON_TRUE=
13459   WITH_PYTHON_FALSE='#'
13460 else
13461   WITH_PYTHON_TRUE='#'
13462   WITH_PYTHON_FALSE=
13463 fi
13464
13465 if test "$PYTHON_INCLUDES" != ""
13466 then
13467     PYTHON_SUBDIR=python
13468 else
13469     PYTHON_SUBDIR=
13470 fi
13471
13472
13473
13474
13475 WITH_MODULES=0
13476 TEST_MODULES=
13477
13478 if test "$with_modules" != "no" ; then
13479  case "$host" in
13480   *-*-cygwin*)
13481   MODULE_EXTENSION=".dll"
13482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcygwin" >&5
13483 $as_echo_n "checking for dlopen in -lcygwin... " >&6; }
13484 if test "${ac_cv_lib_cygwin_dlopen+set}" = set; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-lcygwin  $LIBS"
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h.  */
13491
13492 /* Override any GCC internal prototype to avoid an error.
13493    Use char because int might match the return type of a GCC
13494    builtin and then its argument prototype would still apply.  */
13495 #ifdef __cplusplus
13496 extern "C"
13497 #endif
13498 char dlopen ();
13499 int
13500 main ()
13501 {
13502 return dlopen ();
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 if ac_fn_c_try_link "$LINENO"; then :
13508   ac_cv_lib_cygwin_dlopen=yes
13509 else
13510   ac_cv_lib_cygwin_dlopen=no
13511 fi
13512 rm -f core conftest.err conftest.$ac_objext \
13513     conftest$ac_exeext conftest.$ac_ext
13514 LIBS=$ac_check_lib_save_LIBS
13515 fi
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygwin_dlopen" >&5
13517 $as_echo "$ac_cv_lib_cygwin_dlopen" >&6; }
13518 if test "x$ac_cv_lib_cygwin_dlopen" = x""yes; then :
13519
13520     WITH_MODULES=1
13521     MODULE_PLATFORM_LIBS=
13522
13523 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13524
13525
13526 fi
13527
13528   ;;
13529   *-*-mingw*)
13530   MODULE_EXTENSION=".dll"
13531   WITH_MODULES=1
13532   ;;
13533   *)
13534   ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13535 if test "x$ac_cv_func_shl_load" = x""yes; then :
13536   libxml_have_shl_load=yes
13537 else
13538
13539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13540 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13541 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13542   $as_echo_n "(cached) " >&6
13543 else
13544   ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-ldld  $LIBS"
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h.  */
13548
13549 /* Override any GCC internal prototype to avoid an error.
13550    Use char because int might match the return type of a GCC
13551    builtin and then its argument prototype would still apply.  */
13552 #ifdef __cplusplus
13553 extern "C"
13554 #endif
13555 char shl_load ();
13556 int
13557 main ()
13558 {
13559 return shl_load ();
13560   ;
13561   return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_link "$LINENO"; then :
13565   ac_cv_lib_dld_shl_load=yes
13566 else
13567   ac_cv_lib_dld_shl_load=no
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext \
13570     conftest$ac_exeext conftest.$ac_ext
13571 LIBS=$ac_check_lib_save_LIBS
13572 fi
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13574 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13575 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13576
13577       MODULE_PLATFORM_LIBS="-ldld"
13578       libxml_have_shl_load=yes
13579 else
13580
13581       ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13582 if test "x$ac_cv_func_dlopen" = x""yes; then :
13583   libxml_have_dlopen=yes
13584 else
13585
13586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13587 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13589   $as_echo_n "(cached) " >&6
13590 else
13591   ac_check_lib_save_LIBS=$LIBS
13592 LIBS="-ldl  $LIBS"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h.  */
13595
13596 /* Override any GCC internal prototype to avoid an error.
13597    Use char because int might match the return type of a GCC
13598    builtin and then its argument prototype would still apply.  */
13599 #ifdef __cplusplus
13600 extern "C"
13601 #endif
13602 char dlopen ();
13603 int
13604 main ()
13605 {
13606 return dlopen ();
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612   ac_cv_lib_dl_dlopen=yes
13613 else
13614   ac_cv_lib_dl_dlopen=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext \
13617     conftest$ac_exeext conftest.$ac_ext
13618 LIBS=$ac_check_lib_save_LIBS
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13621 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13622 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13623
13624           MODULE_PLATFORM_LIBS="-ldl"
13625           libxml_have_dlopen=yes
13626 fi
13627
13628 fi
13629
13630 fi
13631
13632 fi
13633
13634
13635   if test "${libxml_have_shl_load}" = "yes"; then
13636     MODULE_EXTENSION=".sl"
13637     WITH_MODULES=1
13638
13639 $as_echo "#define HAVE_SHLLOAD /**/" >>confdefs.h
13640
13641   fi
13642
13643   if test "${libxml_have_dlopen}" = "yes"; then
13644     case "${host}" in
13645       *-*-hpux* )
13646         MODULE_EXTENSION=".sl"
13647         ;;
13648       * )
13649         MODULE_EXTENSION=".so"
13650         ;;
13651     esac
13652
13653     WITH_MODULES=1
13654
13655 $as_echo "#define HAVE_DLOPEN /**/" >>confdefs.h
13656
13657   fi
13658  ;;
13659  esac
13660 fi
13661
13662 if test "${WITH_MODULES}" = "1"; then
13663   TEST_MODULES="ModuleTests"
13664 fi
13665
13666
13667
13668
13669
13670
13671
13672 if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ] || \
13673    [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ] || \
13674    [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]
13675    then
13676     if test "$with_minimum" != "yes"
13677     then
13678         if test "${with_mem_debug}" = "" ; then
13679             echo Activating memory debugging
13680             with_mem_debug="yes"
13681             with_run_debug="yes"
13682         fi
13683         if test "${with_docbook}" = "" ; then
13684             with_docbook="yes"
13685         fi
13686     fi
13687     if test "${GCC}" = "yes" ; then
13688     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"
13689     fi
13690     STATIC_BINARIES="-static"
13691 else
13692     STATIC_BINARIES=
13693 fi
13694
13695
13696
13697 if test "${NEED_TRIO}" = "1" ; then
13698     echo Adding trio library for string functions
13699     WITH_TRIO=1
13700 else
13701     WITH_TRIO=0
13702 fi
13703  if test "${NEED_TRIO}" = "1"; then
13704   WITH_TRIO_SOURCES_TRUE=
13705   WITH_TRIO_SOURCES_FALSE='#'
13706 else
13707   WITH_TRIO_SOURCES_TRUE='#'
13708   WITH_TRIO_SOURCES_FALSE=
13709 fi
13710
13711
13712
13713 echo Checking configuration requirements
13714
13715 THREAD_LIBS=""
13716 BASE_THREAD_LIBS=""
13717 WITH_THREADS=0
13718 THREAD_CFLAGS=""
13719 TEST_THREADS=""
13720 THREADS_W32=""
13721
13722 if test "$with_threads" = "no" ; then
13723     echo Disabling multithreaded support
13724 else
13725     echo Enabling multithreaded support
13726         if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then
13727         ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13728 if test "x$ac_cv_header_pthread_h" = x""yes; then :
13729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
13730 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
13731 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then :
13732   $as_echo_n "(cached) " >&6
13733 else
13734   ac_check_lib_save_LIBS=$LIBS
13735 LIBS="-lpthread  $LIBS"
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h.  */
13738
13739 /* Override any GCC internal prototype to avoid an error.
13740    Use char because int might match the return type of a GCC
13741    builtin and then its argument prototype would still apply.  */
13742 #ifdef __cplusplus
13743 extern "C"
13744 #endif
13745 char pthread_join ();
13746 int
13747 main ()
13748 {
13749 return pthread_join ();
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13755   ac_cv_lib_pthread_pthread_join=yes
13756 else
13757   ac_cv_lib_pthread_pthread_join=no
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext \
13760     conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
13764 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
13765 if test "x$ac_cv_lib_pthread_pthread_join" = x""yes; then :
13766
13767                THREAD_LIBS="-lpthread"
13768
13769 $as_echo "#define HAVE_LIBPTHREAD /**/" >>confdefs.h
13770
13771
13772 $as_echo "#define HAVE_PTHREAD_H /**/" >>confdefs.h
13773
13774                WITH_THREADS="1"
13775 fi
13776
13777 fi
13778
13779
13780     fi
13781     case $host_os in
13782        *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then
13783                WITH_THREADS="1"
13784                THREADS_W32="Win32"
13785                THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
13786            fi
13787        ;;
13788        *cygwin*) THREAD_LIBS=""
13789        ;;
13790        *beos*) WITH_THREADS="1"
13791            THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
13792        ;;
13793        *linux*)
13794            if test "${GCC}" = "yes" ; then
13795                GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'`
13796                GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'`
13797                GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[0-9]*\.++' | sed 's+\..*++'`
13798                if test "${THREAD_LIBS}" = "-lpthread" ; then
13799                    if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null
13800                    then
13801                        THREAD_LIBS=""
13802                        BASE_THREAD_LIBS="-lpthread"
13803                    else
13804                    if expr ${GCC_MAJOR} \> 3 > /dev/null
13805                    then
13806                        THREAD_LIBS=""
13807                        BASE_THREAD_LIBS="-lpthread"
13808                    else
13809                        echo old GCC disabling weak symbols for pthread
13810                    fi
13811                    fi
13812                fi
13813            fi
13814        ;;
13815     esac
13816     if test "$WITH_THREADS" = "1" ; then
13817         THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
13818         TEST_THREADS="Threadtests"
13819     fi
13820 fi
13821 if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
13822     THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
13823 fi
13824
13825
13826
13827
13828
13829
13830
13831
13832 if test "$with_history" = "yes" ; then
13833     echo Enabling xmllint shell history
13834             unset tcap
13835     for termlib in ncurses curses termcap terminfo termlib; do
13836         as_ac_Lib=`$as_echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -l${termlib}" >&5
13838 $as_echo_n "checking for tputs in -l${termlib}... " >&6; }
13839 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
13840   $as_echo_n "(cached) " >&6
13841 else
13842   ac_check_lib_save_LIBS=$LIBS
13843 LIBS="-l${termlib}  $LIBS"
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h.  */
13846
13847 /* Override any GCC internal prototype to avoid an error.
13848    Use char because int might match the return type of a GCC
13849    builtin and then its argument prototype would still apply.  */
13850 #ifdef __cplusplus
13851 extern "C"
13852 #endif
13853 char tputs ();
13854 int
13855 main ()
13856 {
13857 return tputs ();
13858   ;
13859   return 0;
13860 }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863   eval "$as_ac_Lib=yes"
13864 else
13865   eval "$as_ac_Lib=no"
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext \
13868     conftest$ac_exeext conftest.$ac_ext
13869 LIBS=$ac_check_lib_save_LIBS
13870 fi
13871 eval ac_res=\$$as_ac_Lib
13872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13873 $as_echo "$ac_res" >&6; }
13874 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
13875   tcap="-l$termlib"
13876 fi
13877
13878         test -n "$tcap" && break
13879     done
13880
13881     ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
13882 if test "x$ac_cv_header_readline_history_h" = x""yes; then :
13883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lhistory" >&5
13884 $as_echo_n "checking for append_history in -lhistory... " >&6; }
13885 if test "${ac_cv_lib_history_append_history+set}" = set; then :
13886   $as_echo_n "(cached) " >&6
13887 else
13888   ac_check_lib_save_LIBS=$LIBS
13889 LIBS="-lhistory  $LIBS"
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h.  */
13892
13893 /* Override any GCC internal prototype to avoid an error.
13894    Use char because int might match the return type of a GCC
13895    builtin and then its argument prototype would still apply.  */
13896 #ifdef __cplusplus
13897 extern "C"
13898 #endif
13899 char append_history ();
13900 int
13901 main ()
13902 {
13903 return append_history ();
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909   ac_cv_lib_history_append_history=yes
13910 else
13911   ac_cv_lib_history_append_history=no
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext \
13914     conftest$ac_exeext conftest.$ac_ext
13915 LIBS=$ac_check_lib_save_LIBS
13916 fi
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_history_append_history" >&5
13918 $as_echo "$ac_cv_lib_history_append_history" >&6; }
13919 if test "x$ac_cv_lib_history_append_history" = x""yes; then :
13920
13921            RDL_LIBS="-lhistory"
13922
13923 $as_echo "#define HAVE_LIBHISTORY /**/" >>confdefs.h
13924
13925 fi
13926
13927 fi
13928
13929
13930     ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13931 if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
13932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
13933 $as_echo_n "checking for readline in -lreadline... " >&6; }
13934 if test "${ac_cv_lib_readline_readline+set}" = set; then :
13935   $as_echo_n "(cached) " >&6
13936 else
13937   ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-lreadline $tcap $LIBS"
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h.  */
13941
13942 /* Override any GCC internal prototype to avoid an error.
13943    Use char because int might match the return type of a GCC
13944    builtin and then its argument prototype would still apply.  */
13945 #ifdef __cplusplus
13946 extern "C"
13947 #endif
13948 char readline ();
13949 int
13950 main ()
13951 {
13952 return readline ();
13953   ;
13954   return 0;
13955 }
13956 _ACEOF
13957 if ac_fn_c_try_link "$LINENO"; then :
13958   ac_cv_lib_readline_readline=yes
13959 else
13960   ac_cv_lib_readline_readline=no
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext \
13963     conftest$ac_exeext conftest.$ac_ext
13964 LIBS=$ac_check_lib_save_LIBS
13965 fi
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
13967 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13968 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
13969
13970            RDL_LIBS="-lreadline $RDL_LIBS $tcap"
13971
13972 $as_echo "#define HAVE_LIBREADLINE /**/" >>confdefs.h
13973
13974 fi
13975
13976 fi
13977
13978
13979     if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
13980         CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
13981         RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
13982     fi
13983 fi
13984
13985 if test "$with_tree" = "no" ; then
13986     echo Disabling DOM like tree manipulation APIs
13987     WITH_TREE=0
13988 else
13989     WITH_TREE=1
13990 fi
13991
13992
13993 if test "$with_ftp" = "no" ; then
13994     echo Disabling FTP support
13995     WITH_FTP=0
13996     FTP_OBJ=
13997 else
13998     WITH_FTP=1
13999     FTP_OBJ=nanoftp.o
14000 fi
14001
14002
14003
14004 if test "$with_http" = "no" ; then
14005     echo Disabling HTTP support
14006     WITH_HTTP=0
14007     HTTP_OBJ=
14008 else
14009     WITH_HTTP=1
14010     HTTP_OBJ=nanohttp.o
14011 fi
14012
14013
14014
14015 if test "$with_legacy" = "no" ; then
14016     echo Disabling deprecated APIs
14017     WITH_LEGACY=0
14018 else
14019     WITH_LEGACY=1
14020 fi
14021
14022
14023 if test "$with_reader" = "no" ; then
14024     echo Disabling the xmlReader parsing interface
14025     WITH_READER=0
14026     READER_TEST=
14027 else
14028     WITH_READER=1
14029     READER_TEST=Readertests
14030     if test "$with_push" = "no" ; then
14031         echo xmlReader requires Push interface - enabling it
14032         with_push=yes
14033     fi
14034 fi
14035
14036
14037
14038 if test "$with_writer" = "no" ; then
14039     echo Disabling the xmlWriter saving interface
14040     WITH_WRITER=0
14041 #    WRITER_TEST=
14042 else
14043     WITH_WRITER=1
14044 #    WRITER_TEST=Writertests
14045     if test "$with_push" = "no" ; then
14046         echo xmlWriter requires Push interface - enabling it
14047         with_push=yes
14048     fi
14049     if test "$with_output" = "no" ; then
14050         echo xmlWriter requires Output interface - enabling it
14051         with_output=yes
14052     fi
14053 fi
14054
14055 #AC_SUBST(WRITER_TEST)
14056
14057 if test "$with_pattern" = "no" ; then
14058     echo Disabling the xmlPattern parsing interface
14059     WITH_PATTERN=0
14060     TEST_PATTERN=
14061 else
14062     WITH_PATTERN=1
14063     TEST_PATTERN=Patterntests
14064 fi
14065
14066
14067
14068 if test "$with_sax1" = "no" ; then
14069     echo Disabling the older SAX1 interface
14070     WITH_SAX1=0
14071     TEST_SAX=
14072 else
14073     WITH_SAX1=1
14074     TEST_SAX=SAXtests
14075 fi
14076
14077
14078
14079 if test "$with_push" = "no" ; then
14080     echo Disabling the PUSH parser interfaces
14081     WITH_PUSH=0
14082     TEST_PUSH=
14083 else
14084     WITH_PUSH=1
14085     TEST_PUSH="XMLPushtests"
14086 fi
14087
14088
14089
14090 if test "$with_html" = "no" ; then
14091     echo Disabling HTML support
14092     WITH_HTML=0
14093     HTML_OBJ=
14094     TEST_HTML=
14095 else
14096     WITH_HTML=1
14097     HTML_OBJ="HTMLparser.o HTMLtree.o"
14098     TEST_HTML=HTMLtests
14099     if test "$with_push" != "no" ; then
14100         TEST_PHTML=HTMLPushtests
14101     else
14102         TEST_PHTML=
14103     fi
14104 fi
14105
14106
14107
14108
14109
14110 if test "$with_valid" = "no" ; then
14111     echo Disabling DTD validation support
14112     WITH_VALID=0
14113     TEST_VALID=
14114     TEST_VTIME=
14115 else
14116     WITH_VALID=1
14117     TEST_VALID=Validtests
14118     TEST_VTIME=VTimingtests
14119 fi
14120
14121
14122
14123
14124 if test "$with_catalog" = "no" ; then
14125     echo Disabling Catalog support
14126     WITH_CATALOG=0
14127     CATALOG_OBJ=
14128     TEST_CATALOG=
14129 else
14130     WITH_CATALOG=1
14131     CATALOG_OBJ="catalog.o"
14132     TEST_CATALOG=Catatests
14133 fi
14134
14135
14136
14137
14138 if test "$with_docbook" = "no" ; then
14139     echo Disabling Docbook support
14140     WITH_DOCB=0
14141     DOCB_OBJ=
14142 else
14143     WITH_DOCB=1
14144     DOCB_OBJ="DOCBparser.o"
14145 fi
14146
14147
14148
14149
14150 if test "$with_xptr" = "no" ; then
14151     echo Disabling XPointer support
14152     WITH_XPTR=0
14153     XPTR_OBJ=
14154     TEST_XPTR=
14155 else
14156     WITH_XPTR=1
14157     XPTR_OBJ=xpointer.o
14158     TEST_XPTR=XPtrtests
14159     if test "$with_xpath" = "no" ; then
14160         echo XPointer requires XPath support - enabling it
14161         with_xpath=yes
14162     fi
14163 fi
14164
14165
14166
14167
14168 if test "$with_c14n" = "no" ; then
14169     echo Disabling C14N support
14170     WITH_C14N=0
14171     C14N_OBJ=
14172     TEST_C14N=
14173 else
14174     WITH_C14N=1
14175     C14N_OBJ="c14n.c"
14176     TEST_C14N=C14Ntests
14177     if test "$with_xpath" = "no" ; then
14178         echo C14N requires XPath support - enabling it
14179         with_xpath=yes
14180     fi
14181 fi
14182
14183
14184
14185
14186 if test "$with_xinclude" = "no" ; then
14187     echo Disabling XInclude support
14188     WITH_XINCLUDE=0
14189     XINCLUDE_OBJ=
14190     with_xinclude="no"
14191     TEST_XINCLUDE=
14192 else
14193     WITH_XINCLUDE=1
14194     XINCLUDE_OBJ=xinclude.o
14195     TEST_XINCLUDE=XIncludetests
14196     if test "$with_xpath" = "no" ; then
14197         echo XInclude requires XPath support - enabling it
14198         with_xpath=yes
14199     fi
14200 fi
14201
14202
14203
14204
14205 if test "$with_xpath" = "no" ; then
14206     echo Disabling XPATH support
14207     WITH_XPATH=0
14208     XPATH_OBJ=
14209     TEST_XPATH=
14210 else
14211     WITH_XPATH=1
14212     XPATH_OBJ=xpath.o
14213     TEST_XPATH=XPathtests
14214 fi
14215
14216
14217
14218
14219 if test "$with_output" = "no" ; then
14220     echo Disabling serialization/saving support
14221     WITH_OUTPUT=0
14222 else
14223     WITH_OUTPUT=1
14224 fi
14225
14226
14227 WITH_ICONV=0
14228 if test "$with_iconv" = "no" ; then
14229     echo Disabling ICONV support
14230 else
14231     if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
14232         CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
14233         # Export this since our headers include iconv.h
14234         XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
14235         ICONV_LIBS="-L$with_iconv/lib"
14236     fi
14237
14238     ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
14239 if test "x$ac_cv_header_iconv_h" = x""yes; then :
14240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14241 $as_echo_n "checking for iconv... " >&6; }
14242         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h.  */
14244 #include <stdlib.h>
14245 #include <iconv.h>
14246 int
14247 main ()
14248 {
14249
14250 iconv_t cd = iconv_open ("","");
14251 iconv (cd, NULL, NULL, NULL, NULL);
14252   ;
14253   return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_link "$LINENO"; then :
14257
14258             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14259 $as_echo "yes" >&6; }
14260             WITH_ICONV=1
14261 else
14262
14263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14265             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -liconv" >&5
14266 $as_echo_n "checking for iconv in -liconv... " >&6; }
14267
14268             _ldflags="${LDFLAGS}"
14269             _libs="${LIBS}"
14270             LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
14271             LIBS="${LIBS} -liconv"
14272
14273             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h.  */
14275 #include <stdlib.h>
14276 #include <iconv.h>
14277 int
14278 main ()
14279 {
14280
14281 iconv_t cd = iconv_open ("","");
14282 iconv (cd, NULL, NULL, NULL, NULL);
14283   ;
14284   return 0;
14285 }
14286 _ACEOF
14287 if ac_fn_c_try_link "$LINENO"; then :
14288
14289                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14290 $as_echo "yes" >&6; }
14291                 WITH_ICONV=1
14292                 ICONV_LIBS="${ICONV_LIBS} -liconv"
14293                 LIBS="${_libs}"
14294                 LDFLAGS="${_ldflags}"
14295 else
14296
14297                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299                 LIBS="${_libs}"
14300                 LDFLAGS="${_ldflags}"
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext \
14303     conftest$ac_exeext conftest.$ac_ext
14304 fi
14305 rm -f core conftest.err conftest.$ac_objext \
14306     conftest$ac_exeext conftest.$ac_ext
14307 fi
14308
14309
14310
14311         if test "$WITH_ICONV" = "1" ; then
14312                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14313 $as_echo_n "checking for iconv declaration... " >&6; }
14314                 if test "${xml_cv_iconv_arg2+set}" = set; then :
14315   $as_echo_n "(cached) " >&6
14316 else
14317
14318                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h.  */
14320 #include <stdlib.h>
14321 #include <iconv.h>
14322 extern
14323 #ifdef __cplusplus
14324 "C"
14325 #endif
14326 #if defined(__STDC__) || defined(__cplusplus)
14327 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14328 #else
14329 size_t iconv();
14330 #endif
14331
14332 int
14333 main ()
14334 {
14335
14336   ;
14337   return 0;
14338 }
14339 _ACEOF
14340 if ac_fn_c_try_compile "$LINENO"; then :
14341   xml_cv_iconv_arg2=""
14342 else
14343   xml_cv_iconv_arg2="const"
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14346 fi
14347
14348
14349                 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);"
14350                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${xml_xxx:-
14351         }$xml_cv_iconv_decl" >&5
14352 $as_echo "${xml_xxx:-
14353         }$xml_cv_iconv_decl" >&6; }
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define ICONV_CONST $xml_cv_iconv_arg2
14357 _ACEOF
14358
14359         fi
14360 fi
14361 case "$host" in
14362         *mingw*) M_LIBS=""
14363         ;;
14364         *beos*) M_LIBS=""
14365         ;;
14366         *haiku*) M_LIBS=""
14367         ;;
14368         *) M_LIBS="-lm"
14369         ;;
14370 esac
14371 XML_LIBS="-lxml2"
14372 XML_LIBTOOLLIBS="libxml2.la"
14373
14374
14375 WITH_ICU=0
14376 if test "$with_icu" != "yes" ; then
14377     echo Disabling ICU support
14378 else
14379     ICU_CONFIG=icu-config
14380     if ${ICU_CONFIG} --cflags >/dev/null 2>&1
14381     then
14382         ICU_LIBS=`icu-config --ldflags`
14383         LDFLAGS="$LDFLAGS $ICU_LIBS"
14384         WITH_ICU=1
14385         echo Enabling ICU support
14386     else
14387         as_fn_error $? "libicu config program icu-config not found" "$LINENO" 5
14388     fi
14389 fi
14390
14391
14392 WITH_ISO8859X=1
14393 if test "$WITH_ICONV" != "1" ; then
14394 if test "$with_iso8859x" = "no" ; then
14395     echo Disabling ISO8859X support
14396     WITH_ISO8859X=0
14397 fi
14398 fi
14399
14400
14401 if test "$with_schematron" = "no" ; then
14402     echo "Disabling Schematron support"
14403     WITH_SCHEMATRON=0
14404     TEST_SCHEMATRON=
14405 else
14406     echo "Enabled Schematron support"
14407     WITH_SCHEMATRON=1
14408     TEST_SCHEMATRON="Schematrontests"
14409     with_xpath=yes
14410     with_pattern=yes
14411 fi
14412
14413
14414
14415 if test "$with_schemas" = "no" ; then
14416     echo "Disabling Schemas/Relax-NG support"
14417     WITH_SCHEMAS=0
14418     TEST_SCHEMAS=
14419 else
14420     echo "Enabled Schemas/Relax-NG support"
14421     WITH_SCHEMAS=1
14422     TEST_SCHEMAS="Schemastests Relaxtests"
14423     if test "$PYTHON_INCLUDES" != "" ; then
14424         PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
14425     fi
14426     with_regexps=yes
14427 fi
14428
14429
14430
14431 if test "$with_regexps" = "no" ; then
14432     echo Disabling Regexps support
14433     WITH_REGEXPS=0
14434     TEST_REGEXPS=
14435 else
14436     WITH_REGEXPS=1
14437     TEST_REGEXPS="Regexptests Automatatests"
14438 fi
14439
14440
14441
14442 if test "$with_debug" = "no" ; then
14443     echo Disabling DEBUG support
14444     WITH_DEBUG=0
14445     DEBUG_OBJ=
14446     TEST_DEBUG=
14447 else
14448     WITH_DEBUG=1
14449     DEBUG_OBJ=debugXML.o
14450     TEST_DEBUG=Scripttests
14451 fi
14452
14453
14454
14455
14456 if test "$with_mem_debug" = "yes" ; then
14457     if test "$with_thread_alloc" = "yes" ; then
14458         echo Disabling memory debug - cannot use mem-debug with thread-alloc!
14459         WITH_MEM_DEBUG=0
14460     else
14461         echo Enabling memory debug support
14462         WITH_MEM_DEBUG=1
14463     fi
14464 else
14465     WITH_MEM_DEBUG=0
14466 fi
14467
14468
14469 if test "$with_run_debug" = "yes" ; then
14470     echo Enabling runtime debug support
14471     WITH_RUN_DEBUG=1
14472 else
14473     WITH_RUN_DEBUG=0
14474 fi
14475
14476
14477 WIN32_EXTRA_LIBADD=
14478 WIN32_EXTRA_LDFLAGS=
14479 CYGWIN_EXTRA_LDFLAGS=
14480 CYGWIN_EXTRA_PYTHON_LIBADD=
14481 WIN32_EXTRA_PYTHON_LIBADD=
14482 case "$host" in
14483  *-*-mingw*)
14484  CPPFLAGS="$CPPFLAGS -DWIN32"
14485  WIN32_EXTRA_LIBADD="-lws2_32"
14486  WIN32_EXTRA_LDFLAGS="-no-undefined"
14487
14488 $as_echo "#define _WINSOCKAPI_ 1" >>confdefs.h
14489
14490
14491 $as_echo "#define snprintf _snprintf" >>confdefs.h
14492
14493
14494 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
14495
14496  if test "${PYTHON}" != ""
14497  then
14498    WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython${PYTHON_VERSION//./}"
14499  fi
14500  ;;
14501  *-*-cygwin*)
14502  CYGWIN_EXTRA_LDFLAGS="-no-undefined"
14503  if test "${PYTHON}" != ""
14504  then
14505    CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
14506  fi
14507  ;;
14508 esac
14509
14510
14511
14512
14513
14514
14515 if test "$with_coverage" = "yes" -a "${GCC}" = "yes"
14516 then
14517     echo Enabling code coverage for GCC
14518     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
14519     LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
14520 else
14521     echo Disabling code coverage for GCC
14522 fi
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545 RELDATE=`date +'%a %b %e %Y'`
14546
14547
14548
14549 rm -f COPYING.LIB COPYING
14550 ln -s Copyright COPYING
14551
14552 # keep on one line for cygwin c.f. #130896
14553 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"
14554
14555 cat >confcache <<\_ACEOF
14556 # This file is a shell script that caches the results of configure
14557 # tests run on this system so they can be shared between configure
14558 # scripts and configure runs, see configure's option --config-cache.
14559 # It is not useful on other systems.  If it contains results you don't
14560 # want to keep, you may remove or edit it.
14561 #
14562 # config.status only pays attention to the cache file if you give it
14563 # the --recheck option to rerun configure.
14564 #
14565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14567 # following values.
14568
14569 _ACEOF
14570
14571 # The following way of writing the cache mishandles newlines in values,
14572 # but we know of no workaround that is simple, portable, and efficient.
14573 # So, we kill variables containing newlines.
14574 # Ultrix sh set writes to stderr and can't be redirected directly,
14575 # and sets the high bit in the cache file unless we assign to the vars.
14576 (
14577   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14578     eval ac_val=\$$ac_var
14579     case $ac_val in #(
14580     *${as_nl}*)
14581       case $ac_var in #(
14582       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14584       esac
14585       case $ac_var in #(
14586       _ | IFS | as_nl) ;; #(
14587       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14588       *) { eval $ac_var=; unset $ac_var;} ;;
14589       esac ;;
14590     esac
14591   done
14592
14593   (set) 2>&1 |
14594     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14595     *${as_nl}ac_space=\ *)
14596       # `set' does not quote correctly, so add quotes: double-quote
14597       # substitution turns \\\\ into \\, and sed turns \\ into \.
14598       sed -n \
14599         "s/'/'\\\\''/g;
14600           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14601       ;; #(
14602     *)
14603       # `set' quotes correctly as required by POSIX, so do not add quotes.
14604       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14605       ;;
14606     esac |
14607     sort
14608 ) |
14609   sed '
14610      /^ac_cv_env_/b end
14611      t clear
14612      :clear
14613      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14614      t end
14615      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14616      :end' >>confcache
14617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14618   if test -w "$cache_file"; then
14619     test "x$cache_file" != "x/dev/null" &&
14620       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14621 $as_echo "$as_me: updating cache $cache_file" >&6;}
14622     cat confcache >$cache_file
14623   else
14624     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14625 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14626   fi
14627 fi
14628 rm -f confcache
14629
14630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14631 # Let make expand exec_prefix.
14632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14633
14634 DEFS=-DHAVE_CONFIG_H
14635
14636 ac_libobjs=
14637 ac_ltlibobjs=
14638 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14639   # 1. Remove the extension, and $U if already installed.
14640   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14641   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14642   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14643   #    will be set to the directory where LIBOBJS objects are built.
14644   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14645   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14646 done
14647 LIBOBJS=$ac_libobjs
14648
14649 LTLIBOBJS=$ac_ltlibobjs
14650
14651
14652  if test -n "$EXEEXT"; then
14653   am__EXEEXT_TRUE=
14654   am__EXEEXT_FALSE='#'
14655 else
14656   am__EXEEXT_TRUE='#'
14657   am__EXEEXT_FALSE=
14658 fi
14659
14660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14661   as_fn_error $? "conditional \"AMDEP\" was never defined.
14662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 fi
14664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14665   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 fi
14668 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14669   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 fi
14672 if test -z "${USE_VERSION_SCRIPT_TRUE}" && test -z "${USE_VERSION_SCRIPT_FALSE}"; then
14673   as_fn_error $? "conditional \"USE_VERSION_SCRIPT\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 fi
14676 if test -z "${REBUILD_DOCS_TRUE}" && test -z "${REBUILD_DOCS_FALSE}"; then
14677   as_fn_error $? "conditional \"REBUILD_DOCS\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 fi
14680 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
14681   as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 fi
14684 if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
14685   as_fn_error $? "conditional \"WITH_TRIO_SOURCES\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 fi
14688
14689 : ${CONFIG_STATUS=./config.status}
14690 ac_write_fail=0
14691 ac_clean_files_save=$ac_clean_files
14692 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14694 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14695 as_write_fail=0
14696 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14697 #! $SHELL
14698 # Generated by $as_me.
14699 # Run this file to recreate the current configuration.
14700 # Compiler output produced by configure, useful for debugging
14701 # configure, is in config.log if it exists.
14702
14703 debug=false
14704 ac_cs_recheck=false
14705 ac_cs_silent=false
14706
14707 SHELL=\${CONFIG_SHELL-$SHELL}
14708 export SHELL
14709 _ASEOF
14710 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14711 ## -------------------- ##
14712 ## M4sh Initialization. ##
14713 ## -------------------- ##
14714
14715 # Be more Bourne compatible
14716 DUALCASE=1; export DUALCASE # for MKS sh
14717 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14718   emulate sh
14719   NULLCMD=:
14720   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14721   # is contrary to our usage.  Disable this feature.
14722   alias -g '${1+"$@"}'='"$@"'
14723   setopt NO_GLOB_SUBST
14724 else
14725   case `(set -o) 2>/dev/null` in #(
14726   *posix*) :
14727     set -o posix ;; #(
14728   *) :
14729      ;;
14730 esac
14731 fi
14732
14733
14734 as_nl='
14735 '
14736 export as_nl
14737 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14738 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14739 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14740 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14741 # Prefer a ksh shell builtin over an external printf program on Solaris,
14742 # but without wasting forks for bash or zsh.
14743 if test -z "$BASH_VERSION$ZSH_VERSION" \
14744     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14745   as_echo='print -r --'
14746   as_echo_n='print -rn --'
14747 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14748   as_echo='printf %s\n'
14749   as_echo_n='printf %s'
14750 else
14751   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14752     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14753     as_echo_n='/usr/ucb/echo -n'
14754   else
14755     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14756     as_echo_n_body='eval
14757       arg=$1;
14758       case $arg in #(
14759       *"$as_nl"*)
14760         expr "X$arg" : "X\\(.*\\)$as_nl";
14761         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14762       esac;
14763       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14764     '
14765     export as_echo_n_body
14766     as_echo_n='sh -c $as_echo_n_body as_echo'
14767   fi
14768   export as_echo_body
14769   as_echo='sh -c $as_echo_body as_echo'
14770 fi
14771
14772 # The user is always right.
14773 if test "${PATH_SEPARATOR+set}" != set; then
14774   PATH_SEPARATOR=:
14775   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14776     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14777       PATH_SEPARATOR=';'
14778   }
14779 fi
14780
14781
14782 # IFS
14783 # We need space, tab and new line, in precisely that order.  Quoting is
14784 # there to prevent editors from complaining about space-tab.
14785 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14786 # splitting by setting IFS to empty value.)
14787 IFS=" ""        $as_nl"
14788
14789 # Find who we are.  Look in the path if we contain no directory separator.
14790 case $0 in #((
14791   *[\\/]* ) as_myself=$0 ;;
14792   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14793 for as_dir in $PATH
14794 do
14795   IFS=$as_save_IFS
14796   test -z "$as_dir" && as_dir=.
14797     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14798   done
14799 IFS=$as_save_IFS
14800
14801      ;;
14802 esac
14803 # We did not find ourselves, most probably we were run as `sh COMMAND'
14804 # in which case we are not to be found in the path.
14805 if test "x$as_myself" = x; then
14806   as_myself=$0
14807 fi
14808 if test ! -f "$as_myself"; then
14809   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14810   exit 1
14811 fi
14812
14813 # Unset variables that we do not need and which cause bugs (e.g. in
14814 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14815 # suppresses any "Segmentation fault" message there.  '((' could
14816 # trigger a bug in pdksh 5.2.14.
14817 for as_var in BASH_ENV ENV MAIL MAILPATH
14818 do eval test x\${$as_var+set} = xset \
14819   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14820 done
14821 PS1='$ '
14822 PS2='> '
14823 PS4='+ '
14824
14825 # NLS nuisances.
14826 LC_ALL=C
14827 export LC_ALL
14828 LANGUAGE=C
14829 export LANGUAGE
14830
14831 # CDPATH.
14832 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14833
14834
14835 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14836 # ----------------------------------------
14837 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14838 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14839 # script with STATUS, using 1 if that was 0.
14840 as_fn_error ()
14841 {
14842   as_status=$1; test $as_status -eq 0 && as_status=1
14843   if test "$4"; then
14844     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14845     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14846   fi
14847   $as_echo "$as_me: error: $2" >&2
14848   as_fn_exit $as_status
14849 } # as_fn_error
14850
14851
14852 # as_fn_set_status STATUS
14853 # -----------------------
14854 # Set $? to STATUS, without forking.
14855 as_fn_set_status ()
14856 {
14857   return $1
14858 } # as_fn_set_status
14859
14860 # as_fn_exit STATUS
14861 # -----------------
14862 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14863 as_fn_exit ()
14864 {
14865   set +e
14866   as_fn_set_status $1
14867   exit $1
14868 } # as_fn_exit
14869
14870 # as_fn_unset VAR
14871 # ---------------
14872 # Portably unset VAR.
14873 as_fn_unset ()
14874 {
14875   { eval $1=; unset $1;}
14876 }
14877 as_unset=as_fn_unset
14878 # as_fn_append VAR VALUE
14879 # ----------------------
14880 # Append the text in VALUE to the end of the definition contained in VAR. Take
14881 # advantage of any shell optimizations that allow amortized linear growth over
14882 # repeated appends, instead of the typical quadratic growth present in naive
14883 # implementations.
14884 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14885   eval 'as_fn_append ()
14886   {
14887     eval $1+=\$2
14888   }'
14889 else
14890   as_fn_append ()
14891   {
14892     eval $1=\$$1\$2
14893   }
14894 fi # as_fn_append
14895
14896 # as_fn_arith ARG...
14897 # ------------------
14898 # Perform arithmetic evaluation on the ARGs, and store the result in the
14899 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14900 # must be portable across $(()) and expr.
14901 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14902   eval 'as_fn_arith ()
14903   {
14904     as_val=$(( $* ))
14905   }'
14906 else
14907   as_fn_arith ()
14908   {
14909     as_val=`expr "$@" || test $? -eq 1`
14910   }
14911 fi # as_fn_arith
14912
14913
14914 if expr a : '\(a\)' >/dev/null 2>&1 &&
14915    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14916   as_expr=expr
14917 else
14918   as_expr=false
14919 fi
14920
14921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14922   as_basename=basename
14923 else
14924   as_basename=false
14925 fi
14926
14927 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14928   as_dirname=dirname
14929 else
14930   as_dirname=false
14931 fi
14932
14933 as_me=`$as_basename -- "$0" ||
14934 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14935          X"$0" : 'X\(//\)$' \| \
14936          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14937 $as_echo X/"$0" |
14938     sed '/^.*\/\([^/][^/]*\)\/*$/{
14939             s//\1/
14940             q
14941           }
14942           /^X\/\(\/\/\)$/{
14943             s//\1/
14944             q
14945           }
14946           /^X\/\(\/\).*/{
14947             s//\1/
14948             q
14949           }
14950           s/.*/./; q'`
14951
14952 # Avoid depending upon Character Ranges.
14953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14956 as_cr_digits='0123456789'
14957 as_cr_alnum=$as_cr_Letters$as_cr_digits
14958
14959 ECHO_C= ECHO_N= ECHO_T=
14960 case `echo -n x` in #(((((
14961 -n*)
14962   case `echo 'xy\c'` in
14963   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14964   xy)  ECHO_C='\c';;
14965   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14966        ECHO_T=' ';;
14967   esac;;
14968 *)
14969   ECHO_N='-n';;
14970 esac
14971
14972 rm -f conf$$ conf$$.exe conf$$.file
14973 if test -d conf$$.dir; then
14974   rm -f conf$$.dir/conf$$.file
14975 else
14976   rm -f conf$$.dir
14977   mkdir conf$$.dir 2>/dev/null
14978 fi
14979 if (echo >conf$$.file) 2>/dev/null; then
14980   if ln -s conf$$.file conf$$ 2>/dev/null; then
14981     as_ln_s='ln -s'
14982     # ... but there are two gotchas:
14983     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14984     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14985     # In both cases, we have to default to `cp -p'.
14986     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14987       as_ln_s='cp -p'
14988   elif ln conf$$.file conf$$ 2>/dev/null; then
14989     as_ln_s=ln
14990   else
14991     as_ln_s='cp -p'
14992   fi
14993 else
14994   as_ln_s='cp -p'
14995 fi
14996 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14997 rmdir conf$$.dir 2>/dev/null
14998
14999
15000 # as_fn_mkdir_p
15001 # -------------
15002 # Create "$as_dir" as a directory, including parents if necessary.
15003 as_fn_mkdir_p ()
15004 {
15005
15006   case $as_dir in #(
15007   -*) as_dir=./$as_dir;;
15008   esac
15009   test -d "$as_dir" || eval $as_mkdir_p || {
15010     as_dirs=
15011     while :; do
15012       case $as_dir in #(
15013       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15014       *) as_qdir=$as_dir;;
15015       esac
15016       as_dirs="'$as_qdir' $as_dirs"
15017       as_dir=`$as_dirname -- "$as_dir" ||
15018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15019          X"$as_dir" : 'X\(//\)[^/]' \| \
15020          X"$as_dir" : 'X\(//\)$' \| \
15021          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15022 $as_echo X"$as_dir" |
15023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15024             s//\1/
15025             q
15026           }
15027           /^X\(\/\/\)[^/].*/{
15028             s//\1/
15029             q
15030           }
15031           /^X\(\/\/\)$/{
15032             s//\1/
15033             q
15034           }
15035           /^X\(\/\).*/{
15036             s//\1/
15037             q
15038           }
15039           s/.*/./; q'`
15040       test -d "$as_dir" && break
15041     done
15042     test -z "$as_dirs" || eval "mkdir $as_dirs"
15043   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15044
15045
15046 } # as_fn_mkdir_p
15047 if mkdir -p . 2>/dev/null; then
15048   as_mkdir_p='mkdir -p "$as_dir"'
15049 else
15050   test -d ./-p && rmdir ./-p
15051   as_mkdir_p=false
15052 fi
15053
15054 if test -x / >/dev/null 2>&1; then
15055   as_test_x='test -x'
15056 else
15057   if ls -dL / >/dev/null 2>&1; then
15058     as_ls_L_option=L
15059   else
15060     as_ls_L_option=
15061   fi
15062   as_test_x='
15063     eval sh -c '\''
15064       if test -d "$1"; then
15065         test -d "$1/.";
15066       else
15067         case $1 in #(
15068         -*)set "./$1";;
15069         esac;
15070         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15071         ???[sx]*):;;*)false;;esac;fi
15072     '\'' sh
15073   '
15074 fi
15075 as_executable_p=$as_test_x
15076
15077 # Sed expression to map a string onto a valid CPP name.
15078 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15079
15080 # Sed expression to map a string onto a valid variable name.
15081 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15082
15083
15084 exec 6>&1
15085 ## ----------------------------------- ##
15086 ## Main body of $CONFIG_STATUS script. ##
15087 ## ----------------------------------- ##
15088 _ASEOF
15089 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15090
15091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092 # Save the log message, to keep $0 and so on meaningful, and to
15093 # report actual input values of CONFIG_FILES etc. instead of their
15094 # values after options handling.
15095 ac_log="
15096 This file was extended by $as_me, which was
15097 generated by GNU Autoconf 2.67.  Invocation command line was
15098
15099   CONFIG_FILES    = $CONFIG_FILES
15100   CONFIG_HEADERS  = $CONFIG_HEADERS
15101   CONFIG_LINKS    = $CONFIG_LINKS
15102   CONFIG_COMMANDS = $CONFIG_COMMANDS
15103   $ $0 $@
15104
15105 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15106 "
15107
15108 _ACEOF
15109
15110 case $ac_config_files in *"
15111 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15112 esac
15113
15114 case $ac_config_headers in *"
15115 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15116 esac
15117
15118
15119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15120 # Files that config.status was made for.
15121 config_files="$ac_config_files"
15122 config_headers="$ac_config_headers"
15123 config_commands="$ac_config_commands"
15124
15125 _ACEOF
15126
15127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15128 ac_cs_usage="\
15129 \`$as_me' instantiates files and other configuration actions
15130 from templates according to the current configuration.  Unless the files
15131 and actions are specified as TAGs, all are instantiated by default.
15132
15133 Usage: $0 [OPTION]... [TAG]...
15134
15135   -h, --help       print this help, then exit
15136   -V, --version    print version number and configuration settings, then exit
15137       --config     print configuration, then exit
15138   -q, --quiet, --silent
15139                    do not print progress messages
15140   -d, --debug      don't remove temporary files
15141       --recheck    update $as_me by reconfiguring in the same conditions
15142       --file=FILE[:TEMPLATE]
15143                    instantiate the configuration file FILE
15144       --header=FILE[:TEMPLATE]
15145                    instantiate the configuration header FILE
15146
15147 Configuration files:
15148 $config_files
15149
15150 Configuration headers:
15151 $config_headers
15152
15153 Configuration commands:
15154 $config_commands
15155
15156 Report bugs to the package provider."
15157
15158 _ACEOF
15159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15160 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15161 ac_cs_version="\\
15162 config.status
15163 configured by $0, generated by GNU Autoconf 2.67,
15164   with options \\"\$ac_cs_config\\"
15165
15166 Copyright (C) 2010 Free Software Foundation, Inc.
15167 This config.status script is free software; the Free Software Foundation
15168 gives unlimited permission to copy, distribute and modify it."
15169
15170 ac_pwd='$ac_pwd'
15171 srcdir='$srcdir'
15172 INSTALL='$INSTALL'
15173 MKDIR_P='$MKDIR_P'
15174 AWK='$AWK'
15175 test -n "\$AWK" || AWK=awk
15176 _ACEOF
15177
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179 # The default lists apply if the user does not specify any file.
15180 ac_need_defaults=:
15181 while test $# != 0
15182 do
15183   case $1 in
15184   --*=?*)
15185     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15186     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15187     ac_shift=:
15188     ;;
15189   --*=)
15190     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15191     ac_optarg=
15192     ac_shift=:
15193     ;;
15194   *)
15195     ac_option=$1
15196     ac_optarg=$2
15197     ac_shift=shift
15198     ;;
15199   esac
15200
15201   case $ac_option in
15202   # Handling of the options.
15203   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15204     ac_cs_recheck=: ;;
15205   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15206     $as_echo "$ac_cs_version"; exit ;;
15207   --config | --confi | --conf | --con | --co | --c )
15208     $as_echo "$ac_cs_config"; exit ;;
15209   --debug | --debu | --deb | --de | --d | -d )
15210     debug=: ;;
15211   --file | --fil | --fi | --f )
15212     $ac_shift
15213     case $ac_optarg in
15214     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15215     '') as_fn_error $? "missing file argument" ;;
15216     esac
15217     as_fn_append CONFIG_FILES " '$ac_optarg'"
15218     ac_need_defaults=false;;
15219   --header | --heade | --head | --hea )
15220     $ac_shift
15221     case $ac_optarg in
15222     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15223     esac
15224     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15225     ac_need_defaults=false;;
15226   --he | --h)
15227     # Conflict between --help and --header
15228     as_fn_error $? "ambiguous option: \`$1'
15229 Try \`$0 --help' for more information.";;
15230   --help | --hel | -h )
15231     $as_echo "$ac_cs_usage"; exit ;;
15232   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15233   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15234     ac_cs_silent=: ;;
15235
15236   # This is an error.
15237   -*) as_fn_error $? "unrecognized option: \`$1'
15238 Try \`$0 --help' for more information." ;;
15239
15240   *) as_fn_append ac_config_targets " $1"
15241      ac_need_defaults=false ;;
15242
15243   esac
15244   shift
15245 done
15246
15247 ac_configure_extra_args=
15248
15249 if $ac_cs_silent; then
15250   exec 6>/dev/null
15251   ac_configure_extra_args="$ac_configure_extra_args --silent"
15252 fi
15253
15254 _ACEOF
15255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15256 if \$ac_cs_recheck; then
15257   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15258   shift
15259   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15260   CONFIG_SHELL='$SHELL'
15261   export CONFIG_SHELL
15262   exec "\$@"
15263 fi
15264
15265 _ACEOF
15266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15267 exec 5>>config.log
15268 {
15269   echo
15270   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15271 ## Running $as_me. ##
15272 _ASBOX
15273   $as_echo "$ac_log"
15274 } >&5
15275
15276 _ACEOF
15277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15278 #
15279 # INIT-COMMANDS
15280 #
15281 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15282
15283
15284 # The HP-UX ksh and POSIX shell print the target directory to stdout
15285 # if CDPATH is set.
15286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15287
15288 sed_quote_subst='$sed_quote_subst'
15289 double_quote_subst='$double_quote_subst'
15290 delay_variable_subst='$delay_variable_subst'
15291 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
15292 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15293 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15294 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15295 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15296 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15297 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15298 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15299 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15300 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15301 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15302 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15303 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15304 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15305 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15306 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15307 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15308 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15309 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15310 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15311 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15312 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15313 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15314 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15315 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15316 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15317 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15318 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15319 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15320 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15321 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15322 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15323 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15324 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15325 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15326 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15327 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15328 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15329 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15330 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15331 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15332 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15333 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15334 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15335 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15336 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15337 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
15338 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15339 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15340 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15341 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15342 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15343 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15344 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15345 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15346 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15347 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15348 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15349 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15350 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15351 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15352 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15353 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15354 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15355 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15356 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15357 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15358 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15359 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15360 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15361 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15362 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15363 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15364 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15365 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15366 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15367 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15368 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15369 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15370 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15371 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15372 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15373 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15374 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15375 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15376 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15377 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15378 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15379 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15380 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15381 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15382 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15383 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15384 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15385 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15386 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15387 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15388 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15389 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15390 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15391 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15392 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15393 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15394 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15395 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15396 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15397 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15398 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15399 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15400 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15401 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15402 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15403 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15404 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15405 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15406 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15407 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15408 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15409 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15410 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15411
15412 LTCC='$LTCC'
15413 LTCFLAGS='$LTCFLAGS'
15414 compiler='$compiler_DEFAULT'
15415
15416 # Quote evaled strings.
15417 for var in SED \
15418 GREP \
15419 EGREP \
15420 FGREP \
15421 LD \
15422 NM \
15423 LN_S \
15424 lt_SP2NL \
15425 lt_NL2SP \
15426 reload_flag \
15427 deplibs_check_method \
15428 file_magic_cmd \
15429 AR \
15430 AR_FLAGS \
15431 STRIP \
15432 RANLIB \
15433 CC \
15434 CFLAGS \
15435 compiler \
15436 lt_cv_sys_global_symbol_pipe \
15437 lt_cv_sys_global_symbol_to_cdecl \
15438 lt_cv_sys_global_symbol_to_c_name_address \
15439 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15440 SHELL \
15441 ECHO \
15442 lt_prog_compiler_no_builtin_flag \
15443 lt_prog_compiler_wl \
15444 lt_prog_compiler_pic \
15445 lt_prog_compiler_static \
15446 lt_cv_prog_compiler_c_o \
15447 need_locks \
15448 DSYMUTIL \
15449 NMEDIT \
15450 LIPO \
15451 OTOOL \
15452 OTOOL64 \
15453 shrext_cmds \
15454 export_dynamic_flag_spec \
15455 whole_archive_flag_spec \
15456 compiler_needs_object \
15457 with_gnu_ld \
15458 allow_undefined_flag \
15459 no_undefined_flag \
15460 hardcode_libdir_flag_spec \
15461 hardcode_libdir_flag_spec_ld \
15462 hardcode_libdir_separator \
15463 fix_srcfile_path \
15464 exclude_expsyms \
15465 include_expsyms \
15466 file_list_spec \
15467 variables_saved_for_relink \
15468 libname_spec \
15469 library_names_spec \
15470 soname_spec \
15471 finish_eval \
15472 old_striplib \
15473 striplib; do
15474     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15475     *[\\\\\\\`\\"\\\$]*)
15476       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15477       ;;
15478     *)
15479       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15480       ;;
15481     esac
15482 done
15483
15484 # Double-quote double-evaled strings.
15485 for var in reload_cmds \
15486 old_postinstall_cmds \
15487 old_postuninstall_cmds \
15488 old_archive_cmds \
15489 extract_expsyms_cmds \
15490 old_archive_from_new_cmds \
15491 old_archive_from_expsyms_cmds \
15492 archive_cmds \
15493 archive_expsym_cmds \
15494 module_cmds \
15495 module_expsym_cmds \
15496 export_symbols_cmds \
15497 prelink_cmds \
15498 postinstall_cmds \
15499 postuninstall_cmds \
15500 finish_cmds \
15501 sys_lib_search_path_spec \
15502 sys_lib_dlsearch_path_spec; do
15503     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15504     *[\\\\\\\`\\"\\\$]*)
15505       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15506       ;;
15507     *)
15508       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15509       ;;
15510     esac
15511 done
15512
15513 # Fix-up fallback echo if it was mangled by the above quoting rules.
15514 case \$lt_ECHO in
15515 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15516   ;;
15517 esac
15518
15519 ac_aux_dir='$ac_aux_dir'
15520 xsi_shell='$xsi_shell'
15521 lt_shell_append='$lt_shell_append'
15522
15523 # See if we are running on zsh, and set the options which allow our
15524 # commands through without removal of \ escapes INIT.
15525 if test -n "\${ZSH_VERSION+set}" ; then
15526    setopt NO_GLOB_SUBST
15527 fi
15528
15529
15530     PACKAGE='$PACKAGE'
15531     VERSION='$VERSION'
15532     TIMESTAMP='$TIMESTAMP'
15533     RM='$RM'
15534     ofile='$ofile'
15535
15536
15537
15538
15539 _ACEOF
15540
15541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542
15543 # Handling of arguments.
15544 for ac_config_target in $ac_config_targets
15545 do
15546   case $ac_config_target in
15547     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15548     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15549     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15550     "libxml2.spec") CONFIG_FILES="$CONFIG_FILES libxml2.spec:libxml.spec.in" ;;
15551     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15552     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15553     "include/libxml/Makefile") CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
15554     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15555     "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
15556     "doc/devhelp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devhelp/Makefile" ;;
15557     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
15558     "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15559     "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
15560     "xstc/Makefile") CONFIG_FILES="$CONFIG_FILES xstc/Makefile" ;;
15561     "include/libxml/xmlversion.h") CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
15562     "xml2-config") CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
15563     "libxml-2.0.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
15564     "libxml-2.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libxml-2.0-uninstalled.pc" ;;
15565     "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
15566
15567   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
15568   esac
15569 done
15570
15571
15572 # If the user did not use the arguments to specify the items to instantiate,
15573 # then the envvar interface is used.  Set only those that are not.
15574 # We use the long form for the default assignment because of an extremely
15575 # bizarre bug on SunOS 4.1.3.
15576 if $ac_need_defaults; then
15577   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15578   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15579   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15580 fi
15581
15582 # Have a temporary directory for convenience.  Make it in the build tree
15583 # simply because there is no reason against having it here, and in addition,
15584 # creating and moving files from /tmp can sometimes cause problems.
15585 # Hook for its removal unless debugging.
15586 # Note that there is a small window in which the directory will not be cleaned:
15587 # after its creation but before its name has been assigned to `$tmp'.
15588 $debug ||
15589 {
15590   tmp=
15591   trap 'exit_status=$?
15592   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15593 ' 0
15594   trap 'as_fn_exit 1' 1 2 13 15
15595 }
15596 # Create a (secure) tmp directory for tmp files.
15597
15598 {
15599   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15600   test -n "$tmp" && test -d "$tmp"
15601 }  ||
15602 {
15603   tmp=./conf$$-$RANDOM
15604   (umask 077 && mkdir "$tmp")
15605 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15606
15607 # Set up the scripts for CONFIG_FILES section.
15608 # No need to generate them if there are no CONFIG_FILES.
15609 # This happens for instance with `./config.status config.h'.
15610 if test -n "$CONFIG_FILES"; then
15611
15612
15613 ac_cr=`echo X | tr X '\015'`
15614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15615 # But we know of no other shell where ac_cr would be empty at this
15616 # point, so we can use a bashism as a fallback.
15617 if test "x$ac_cr" = x; then
15618   eval ac_cr=\$\'\\r\'
15619 fi
15620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15622   ac_cs_awk_cr='\\r'
15623 else
15624   ac_cs_awk_cr=$ac_cr
15625 fi
15626
15627 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15628 _ACEOF
15629
15630
15631 {
15632   echo "cat >conf$$subs.awk <<_ACEOF" &&
15633   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15634   echo "_ACEOF"
15635 } >conf$$subs.sh ||
15636   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15638 ac_delim='%!_!# '
15639 for ac_last_try in false false false false false :; do
15640   . ./conf$$subs.sh ||
15641     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15642
15643   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15644   if test $ac_delim_n = $ac_delim_num; then
15645     break
15646   elif $ac_last_try; then
15647     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15648   else
15649     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15650   fi
15651 done
15652 rm -f conf$$subs.sh
15653
15654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15655 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15656 _ACEOF
15657 sed -n '
15658 h
15659 s/^/S["/; s/!.*/"]=/
15660 p
15661 g
15662 s/^[^!]*!//
15663 :repl
15664 t repl
15665 s/'"$ac_delim"'$//
15666 t delim
15667 :nl
15668 h
15669 s/\(.\{148\}\)..*/\1/
15670 t more1
15671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15672 p
15673 n
15674 b repl
15675 :more1
15676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15677 p
15678 g
15679 s/.\{148\}//
15680 t nl
15681 :delim
15682 h
15683 s/\(.\{148\}\)..*/\1/
15684 t more2
15685 s/["\\]/\\&/g; s/^/"/; s/$/"/
15686 p
15687 b
15688 :more2
15689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15690 p
15691 g
15692 s/.\{148\}//
15693 t delim
15694 ' <conf$$subs.awk | sed '
15695 /^[^""]/{
15696   N
15697   s/\n//
15698 }
15699 ' >>$CONFIG_STATUS || ac_write_fail=1
15700 rm -f conf$$subs.awk
15701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15702 _ACAWK
15703 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15704   for (key in S) S_is_set[key] = 1
15705   FS = "\a"
15706
15707 }
15708 {
15709   line = $ 0
15710   nfields = split(line, field, "@")
15711   substed = 0
15712   len = length(field[1])
15713   for (i = 2; i < nfields; i++) {
15714     key = field[i]
15715     keylen = length(key)
15716     if (S_is_set[key]) {
15717       value = S[key]
15718       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15719       len += length(value) + length(field[++i])
15720       substed = 1
15721     } else
15722       len += 1 + keylen
15723   }
15724
15725   print line
15726 }
15727
15728 _ACAWK
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15732   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15733 else
15734   cat
15735 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15736   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15737 _ACEOF
15738
15739 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15740 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15741 # trailing colons and then remove the whole line if VPATH becomes empty
15742 # (actually we leave an empty line to preserve line numbers).
15743 if test "x$srcdir" = x.; then
15744   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15745 h
15746 s///
15747 s/^/:/
15748 s/[      ]*$/:/
15749 s/:\$(srcdir):/:/g
15750 s/:\${srcdir}:/:/g
15751 s/:@srcdir@:/:/g
15752 s/^:*//
15753 s/:*$//
15754 x
15755 s/\(=[   ]*\).*/\1/
15756 G
15757 s/\n//
15758 s/^[^=]*=[       ]*$//
15759 }'
15760 fi
15761
15762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15763 fi # test -n "$CONFIG_FILES"
15764
15765 # Set up the scripts for CONFIG_HEADERS section.
15766 # No need to generate them if there are no CONFIG_HEADERS.
15767 # This happens for instance with `./config.status Makefile'.
15768 if test -n "$CONFIG_HEADERS"; then
15769 cat >"$tmp/defines.awk" <<\_ACAWK ||
15770 BEGIN {
15771 _ACEOF
15772
15773 # Transform confdefs.h into an awk script `defines.awk', embedded as
15774 # here-document in config.status, that substitutes the proper values into
15775 # config.h.in to produce config.h.
15776
15777 # Create a delimiter string that does not exist in confdefs.h, to ease
15778 # handling of long lines.
15779 ac_delim='%!_!# '
15780 for ac_last_try in false false :; do
15781   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15782   if test -z "$ac_t"; then
15783     break
15784   elif $ac_last_try; then
15785     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15786   else
15787     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15788   fi
15789 done
15790
15791 # For the awk script, D is an array of macro values keyed by name,
15792 # likewise P contains macro parameters if any.  Preserve backslash
15793 # newline sequences.
15794
15795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15796 sed -n '
15797 s/.\{148\}/&'"$ac_delim"'/g
15798 t rset
15799 :rset
15800 s/^[     ]*#[    ]*define[       ][      ]*/ /
15801 t def
15802 d
15803 :def
15804 s/\\$//
15805 t bsnl
15806 s/["\\]/\\&/g
15807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15808 D["\1"]=" \3"/p
15809 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15810 d
15811 :bsnl
15812 s/["\\]/\\&/g
15813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15814 D["\1"]=" \3\\\\\\n"\\/p
15815 t cont
15816 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15817 t cont
15818 d
15819 :cont
15820 n
15821 s/.\{148\}/&'"$ac_delim"'/g
15822 t clear
15823 :clear
15824 s/\\$//
15825 t bsnlc
15826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15827 d
15828 :bsnlc
15829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15830 b cont
15831 ' <confdefs.h | sed '
15832 s/'"$ac_delim"'/"\\\
15833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15834
15835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15836   for (key in D) D_is_set[key] = 1
15837   FS = "\a"
15838 }
15839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15840   line = \$ 0
15841   split(line, arg, " ")
15842   if (arg[1] == "#") {
15843     defundef = arg[2]
15844     mac1 = arg[3]
15845   } else {
15846     defundef = substr(arg[1], 2)
15847     mac1 = arg[2]
15848   }
15849   split(mac1, mac2, "(") #)
15850   macro = mac2[1]
15851   prefix = substr(line, 1, index(line, defundef) - 1)
15852   if (D_is_set[macro]) {
15853     # Preserve the white space surrounding the "#".
15854     print prefix "define", macro P[macro] D[macro]
15855     next
15856   } else {
15857     # Replace #undef with comments.  This is necessary, for example,
15858     # in the case of _POSIX_SOURCE, which is predefined and required
15859     # on some systems where configure will not decide to define it.
15860     if (defundef == "undef") {
15861       print "/*", prefix defundef, macro, "*/"
15862       next
15863     }
15864   }
15865 }
15866 { print }
15867 _ACAWK
15868 _ACEOF
15869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15870   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15871 fi # test -n "$CONFIG_HEADERS"
15872
15873
15874 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15875 shift
15876 for ac_tag
15877 do
15878   case $ac_tag in
15879   :[FHLC]) ac_mode=$ac_tag; continue;;
15880   esac
15881   case $ac_mode$ac_tag in
15882   :[FHL]*:*);;
15883   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
15884   :[FH]-) ac_tag=-:-;;
15885   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15886   esac
15887   ac_save_IFS=$IFS
15888   IFS=:
15889   set x $ac_tag
15890   IFS=$ac_save_IFS
15891   shift
15892   ac_file=$1
15893   shift
15894
15895   case $ac_mode in
15896   :L) ac_source=$1;;
15897   :[FH])
15898     ac_file_inputs=
15899     for ac_f
15900     do
15901       case $ac_f in
15902       -) ac_f="$tmp/stdin";;
15903       *) # Look for the file first in the build tree, then in the source tree
15904          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15905          # because $ac_f cannot contain `:'.
15906          test -f "$ac_f" ||
15907            case $ac_f in
15908            [\\/$]*) false;;
15909            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15910            esac ||
15911            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
15912       esac
15913       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15914       as_fn_append ac_file_inputs " '$ac_f'"
15915     done
15916
15917     # Let's still pretend it is `configure' which instantiates (i.e., don't
15918     # use $as_me), people would be surprised to read:
15919     #    /* config.h.  Generated by config.status.  */
15920     configure_input='Generated from '`
15921           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15922         `' by configure.'
15923     if test x"$ac_file" != x-; then
15924       configure_input="$ac_file.  $configure_input"
15925       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15926 $as_echo "$as_me: creating $ac_file" >&6;}
15927     fi
15928     # Neutralize special characters interpreted by sed in replacement strings.
15929     case $configure_input in #(
15930     *\&* | *\|* | *\\* )
15931        ac_sed_conf_input=`$as_echo "$configure_input" |
15932        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15933     *) ac_sed_conf_input=$configure_input;;
15934     esac
15935
15936     case $ac_tag in
15937     *:-:* | *:-) cat >"$tmp/stdin" \
15938       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
15939     esac
15940     ;;
15941   esac
15942
15943   ac_dir=`$as_dirname -- "$ac_file" ||
15944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945          X"$ac_file" : 'X\(//\)[^/]' \| \
15946          X"$ac_file" : 'X\(//\)$' \| \
15947          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15948 $as_echo X"$ac_file" |
15949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15950             s//\1/
15951             q
15952           }
15953           /^X\(\/\/\)[^/].*/{
15954             s//\1/
15955             q
15956           }
15957           /^X\(\/\/\)$/{
15958             s//\1/
15959             q
15960           }
15961           /^X\(\/\).*/{
15962             s//\1/
15963             q
15964           }
15965           s/.*/./; q'`
15966   as_dir="$ac_dir"; as_fn_mkdir_p
15967   ac_builddir=.
15968
15969 case "$ac_dir" in
15970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15971 *)
15972   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15973   # A ".." for each directory in $ac_dir_suffix.
15974   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15975   case $ac_top_builddir_sub in
15976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15978   esac ;;
15979 esac
15980 ac_abs_top_builddir=$ac_pwd
15981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15982 # for backward compatibility:
15983 ac_top_builddir=$ac_top_build_prefix
15984
15985 case $srcdir in
15986   .)  # We are building in place.
15987     ac_srcdir=.
15988     ac_top_srcdir=$ac_top_builddir_sub
15989     ac_abs_top_srcdir=$ac_pwd ;;
15990   [\\/]* | ?:[\\/]* )  # Absolute name.
15991     ac_srcdir=$srcdir$ac_dir_suffix;
15992     ac_top_srcdir=$srcdir
15993     ac_abs_top_srcdir=$srcdir ;;
15994   *) # Relative name.
15995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15996     ac_top_srcdir=$ac_top_build_prefix$srcdir
15997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15998 esac
15999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16000
16001
16002   case $ac_mode in
16003   :F)
16004   #
16005   # CONFIG_FILE
16006   #
16007
16008   case $INSTALL in
16009   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16010   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16011   esac
16012   ac_MKDIR_P=$MKDIR_P
16013   case $MKDIR_P in
16014   [\\/$]* | ?:[\\/]* ) ;;
16015   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16016   esac
16017 _ACEOF
16018
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 # If the template does not know about datarootdir, expand it.
16021 # FIXME: This hack should be removed a few years after 2.60.
16022 ac_datarootdir_hack=; ac_datarootdir_seen=
16023 ac_sed_dataroot='
16024 /datarootdir/ {
16025   p
16026   q
16027 }
16028 /@datadir@/p
16029 /@docdir@/p
16030 /@infodir@/p
16031 /@localedir@/p
16032 /@mandir@/p'
16033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16034 *datarootdir*) ac_datarootdir_seen=yes;;
16035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16036   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040   ac_datarootdir_hack='
16041   s&@datadir@&$datadir&g
16042   s&@docdir@&$docdir&g
16043   s&@infodir@&$infodir&g
16044   s&@localedir@&$localedir&g
16045   s&@mandir@&$mandir&g
16046   s&\\\${datarootdir}&$datarootdir&g' ;;
16047 esac
16048 _ACEOF
16049
16050 # Neutralize VPATH when `$srcdir' = `.'.
16051 # Shell code in configure.ac might set extrasub.
16052 # FIXME: do we really want to maintain this feature?
16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054 ac_sed_extra="$ac_vpsub
16055 $extrasub
16056 _ACEOF
16057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 :t
16059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16060 s|@configure_input@|$ac_sed_conf_input|;t t
16061 s&@top_builddir@&$ac_top_builddir_sub&;t t
16062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16063 s&@srcdir@&$ac_srcdir&;t t
16064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16065 s&@top_srcdir@&$ac_top_srcdir&;t t
16066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16067 s&@builddir@&$ac_builddir&;t t
16068 s&@abs_builddir@&$ac_abs_builddir&;t t
16069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16070 s&@INSTALL@&$ac_INSTALL&;t t
16071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16072 $ac_datarootdir_hack
16073 "
16074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16075   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16076
16077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16078   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16079   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16080   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16081 which seems to be undefined.  Please make sure it is defined" >&5
16082 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16083 which seems to be undefined.  Please make sure it is defined" >&2;}
16084
16085   rm -f "$tmp/stdin"
16086   case $ac_file in
16087   -) cat "$tmp/out" && rm -f "$tmp/out";;
16088   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16089   esac \
16090   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16091  ;;
16092   :H)
16093   #
16094   # CONFIG_HEADER
16095   #
16096   if test x"$ac_file" != x-; then
16097     {
16098       $as_echo "/* $configure_input  */" \
16099       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16100     } >"$tmp/config.h" \
16101       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16102     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16103       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16104 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16105     else
16106       rm -f "$ac_file"
16107       mv "$tmp/config.h" "$ac_file" \
16108         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16109     fi
16110   else
16111     $as_echo "/* $configure_input  */" \
16112       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16113       || as_fn_error $? "could not create -" "$LINENO" 5
16114   fi
16115 # Compute "$ac_file"'s index in $config_headers.
16116 _am_arg="$ac_file"
16117 _am_stamp_count=1
16118 for _am_header in $config_headers :; do
16119   case $_am_header in
16120     $_am_arg | $_am_arg:* )
16121       break ;;
16122     * )
16123       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16124   esac
16125 done
16126 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16127 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16128          X"$_am_arg" : 'X\(//\)[^/]' \| \
16129          X"$_am_arg" : 'X\(//\)$' \| \
16130          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16131 $as_echo X"$_am_arg" |
16132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16133             s//\1/
16134             q
16135           }
16136           /^X\(\/\/\)[^/].*/{
16137             s//\1/
16138             q
16139           }
16140           /^X\(\/\/\)$/{
16141             s//\1/
16142             q
16143           }
16144           /^X\(\/\).*/{
16145             s//\1/
16146             q
16147           }
16148           s/.*/./; q'`/stamp-h$_am_stamp_count
16149  ;;
16150
16151   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16152 $as_echo "$as_me: executing $ac_file commands" >&6;}
16153  ;;
16154   esac
16155
16156
16157   case $ac_file$ac_mode in
16158     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16159   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16160   # are listed without --file.  Let's play safe and only enable the eval
16161   # if we detect the quoting.
16162   case $CONFIG_FILES in
16163   *\'*) eval set x "$CONFIG_FILES" ;;
16164   *)   set x $CONFIG_FILES ;;
16165   esac
16166   shift
16167   for mf
16168   do
16169     # Strip MF so we end up with the name of the file.
16170     mf=`echo "$mf" | sed -e 's/:.*$//'`
16171     # Check whether this is an Automake generated Makefile or not.
16172     # We used to match only the files named `Makefile.in', but
16173     # some people rename them; so instead we look at the file content.
16174     # Grep'ing the first line is not enough: some people post-process
16175     # each Makefile.in and add a new line on top of each file to say so.
16176     # Grep'ing the whole file is not good either: AIX grep has a line
16177     # limit of 2048, but all sed's we know have understand at least 4000.
16178     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16179       dirpart=`$as_dirname -- "$mf" ||
16180 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16181          X"$mf" : 'X\(//\)[^/]' \| \
16182          X"$mf" : 'X\(//\)$' \| \
16183          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16184 $as_echo X"$mf" |
16185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16186             s//\1/
16187             q
16188           }
16189           /^X\(\/\/\)[^/].*/{
16190             s//\1/
16191             q
16192           }
16193           /^X\(\/\/\)$/{
16194             s//\1/
16195             q
16196           }
16197           /^X\(\/\).*/{
16198             s//\1/
16199             q
16200           }
16201           s/.*/./; q'`
16202     else
16203       continue
16204     fi
16205     # Extract the definition of DEPDIR, am__include, and am__quote
16206     # from the Makefile without running `make'.
16207     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16208     test -z "$DEPDIR" && continue
16209     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16210     test -z "am__include" && continue
16211     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16212     # When using ansi2knr, U may be empty or an underscore; expand it
16213     U=`sed -n 's/^U = //p' < "$mf"`
16214     # Find all dependency output files, they are included files with
16215     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16216     # simplest approach to changing $(DEPDIR) to its actual value in the
16217     # expansion.
16218     for file in `sed -n "
16219       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16220          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16221       # Make sure the directory exists.
16222       test -f "$dirpart/$file" && continue
16223       fdir=`$as_dirname -- "$file" ||
16224 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16225          X"$file" : 'X\(//\)[^/]' \| \
16226          X"$file" : 'X\(//\)$' \| \
16227          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16228 $as_echo X"$file" |
16229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16230             s//\1/
16231             q
16232           }
16233           /^X\(\/\/\)[^/].*/{
16234             s//\1/
16235             q
16236           }
16237           /^X\(\/\/\)$/{
16238             s//\1/
16239             q
16240           }
16241           /^X\(\/\).*/{
16242             s//\1/
16243             q
16244           }
16245           s/.*/./; q'`
16246       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16247       # echo "creating $dirpart/$file"
16248       echo '# dummy' > "$dirpart/$file"
16249     done
16250   done
16251 }
16252  ;;
16253     "libtool":C)
16254
16255     # See if we are running on zsh, and set the options which allow our
16256     # commands through without removal of \ escapes.
16257     if test -n "${ZSH_VERSION+set}" ; then
16258       setopt NO_GLOB_SUBST
16259     fi
16260
16261     cfgfile="${ofile}T"
16262     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16263     $RM "$cfgfile"
16264
16265     cat <<_LT_EOF >> "$cfgfile"
16266 #! $SHELL
16267
16268 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16269 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16270 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16271 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16272 #
16273 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16274 #                 2006, 2007, 2008 Free Software Foundation, Inc.
16275 #   Written by Gordon Matzigkeit, 1996
16276 #
16277 #   This file is part of GNU Libtool.
16278 #
16279 # GNU Libtool is free software; you can redistribute it and/or
16280 # modify it under the terms of the GNU General Public License as
16281 # published by the Free Software Foundation; either version 2 of
16282 # the License, or (at your option) any later version.
16283 #
16284 # As a special exception to the GNU General Public License,
16285 # if you distribute this file as part of a program or library that
16286 # is built using GNU Libtool, you may include this file under the
16287 # same distribution terms that you use for the rest of that program.
16288 #
16289 # GNU Libtool is distributed in the hope that it will be useful,
16290 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16291 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16292 # GNU General Public License for more details.
16293 #
16294 # You should have received a copy of the GNU General Public License
16295 # along with GNU Libtool; see the file COPYING.  If not, a copy
16296 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16297 # obtained by writing to the Free Software Foundation, Inc.,
16298 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16299
16300
16301 # The names of the tagged configurations supported by this script.
16302 available_tags=""
16303
16304 # ### BEGIN LIBTOOL CONFIG
16305
16306 # Assembler program.
16307 AS=$AS
16308
16309 # DLL creation program.
16310 DLLTOOL=$DLLTOOL
16311
16312 # Object dumper program.
16313 OBJDUMP=$OBJDUMP
16314
16315 # Which release of libtool.m4 was used?
16316 macro_version=$macro_version
16317 macro_revision=$macro_revision
16318
16319 # Whether or not to build shared libraries.
16320 build_libtool_libs=$enable_shared
16321
16322 # Whether or not to build static libraries.
16323 build_old_libs=$enable_static
16324
16325 # What type of objects to build.
16326 pic_mode=$pic_mode
16327
16328 # Whether or not to optimize for fast installation.
16329 fast_install=$enable_fast_install
16330
16331 # The host system.
16332 host_alias=$host_alias
16333 host=$host
16334 host_os=$host_os
16335
16336 # The build system.
16337 build_alias=$build_alias
16338 build=$build
16339 build_os=$build_os
16340
16341 # A sed program that does not truncate output.
16342 SED=$lt_SED
16343
16344 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16345 Xsed="\$SED -e 1s/^X//"
16346
16347 # A grep program that handles long lines.
16348 GREP=$lt_GREP
16349
16350 # An ERE matcher.
16351 EGREP=$lt_EGREP
16352
16353 # A literal string matcher.
16354 FGREP=$lt_FGREP
16355
16356 # A BSD- or MS-compatible name lister.
16357 NM=$lt_NM
16358
16359 # Whether we need soft or hard links.
16360 LN_S=$lt_LN_S
16361
16362 # What is the maximum length of a command?
16363 max_cmd_len=$max_cmd_len
16364
16365 # Object file suffix (normally "o").
16366 objext=$ac_objext
16367
16368 # Executable file suffix (normally "").
16369 exeext=$exeext
16370
16371 # whether the shell understands "unset".
16372 lt_unset=$lt_unset
16373
16374 # turn spaces into newlines.
16375 SP2NL=$lt_lt_SP2NL
16376
16377 # turn newlines into spaces.
16378 NL2SP=$lt_lt_NL2SP
16379
16380 # How to create reloadable object files.
16381 reload_flag=$lt_reload_flag
16382 reload_cmds=$lt_reload_cmds
16383
16384 # Method to check whether dependent libraries are shared objects.
16385 deplibs_check_method=$lt_deplibs_check_method
16386
16387 # Command to use when deplibs_check_method == "file_magic".
16388 file_magic_cmd=$lt_file_magic_cmd
16389
16390 # The archiver.
16391 AR=$lt_AR
16392 AR_FLAGS=$lt_AR_FLAGS
16393
16394 # A symbol stripping program.
16395 STRIP=$lt_STRIP
16396
16397 # Commands used to install an old-style archive.
16398 RANLIB=$lt_RANLIB
16399 old_postinstall_cmds=$lt_old_postinstall_cmds
16400 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16401
16402 # A C compiler.
16403 LTCC=$lt_CC
16404
16405 # LTCC compiler flags.
16406 LTCFLAGS=$lt_CFLAGS
16407
16408 # Take the output of nm and produce a listing of raw symbols and C names.
16409 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16410
16411 # Transform the output of nm in a proper C declaration.
16412 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16413
16414 # Transform the output of nm in a C name address pair.
16415 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16416
16417 # Transform the output of nm in a C name address pair when lib prefix is needed.
16418 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16419
16420 # The name of the directory that contains temporary libtool files.
16421 objdir=$objdir
16422
16423 # Shell to use when invoking shell scripts.
16424 SHELL=$lt_SHELL
16425
16426 # An echo program that does not interpret backslashes.
16427 ECHO=$lt_ECHO
16428
16429 # Used to examine libraries when file_magic_cmd begins with "file".
16430 MAGIC_CMD=$MAGIC_CMD
16431
16432 # Must we lock files when doing compilation?
16433 need_locks=$lt_need_locks
16434
16435 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16436 DSYMUTIL=$lt_DSYMUTIL
16437
16438 # Tool to change global to local symbols on Mac OS X.
16439 NMEDIT=$lt_NMEDIT
16440
16441 # Tool to manipulate fat objects and archives on Mac OS X.
16442 LIPO=$lt_LIPO
16443
16444 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16445 OTOOL=$lt_OTOOL
16446
16447 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16448 OTOOL64=$lt_OTOOL64
16449
16450 # Old archive suffix (normally "a").
16451 libext=$libext
16452
16453 # Shared library suffix (normally ".so").
16454 shrext_cmds=$lt_shrext_cmds
16455
16456 # The commands to extract the exported symbol list from a shared archive.
16457 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16458
16459 # Variables whose values should be saved in libtool wrapper scripts and
16460 # restored at link time.
16461 variables_saved_for_relink=$lt_variables_saved_for_relink
16462
16463 # Do we need the "lib" prefix for modules?
16464 need_lib_prefix=$need_lib_prefix
16465
16466 # Do we need a version for libraries?
16467 need_version=$need_version
16468
16469 # Library versioning type.
16470 version_type=$version_type
16471
16472 # Shared library runtime path variable.
16473 runpath_var=$runpath_var
16474
16475 # Shared library path variable.
16476 shlibpath_var=$shlibpath_var
16477
16478 # Is shlibpath searched before the hard-coded library search path?
16479 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16480
16481 # Format of library name prefix.
16482 libname_spec=$lt_libname_spec
16483
16484 # List of archive names.  First name is the real one, the rest are links.
16485 # The last name is the one that the linker finds with -lNAME
16486 library_names_spec=$lt_library_names_spec
16487
16488 # The coded name of the library, if different from the real name.
16489 soname_spec=$lt_soname_spec
16490
16491 # Command to use after installation of a shared archive.
16492 postinstall_cmds=$lt_postinstall_cmds
16493
16494 # Command to use after uninstallation of a shared archive.
16495 postuninstall_cmds=$lt_postuninstall_cmds
16496
16497 # Commands used to finish a libtool library installation in a directory.
16498 finish_cmds=$lt_finish_cmds
16499
16500 # As "finish_cmds", except a single script fragment to be evaled but
16501 # not shown.
16502 finish_eval=$lt_finish_eval
16503
16504 # Whether we should hardcode library paths into libraries.
16505 hardcode_into_libs=$hardcode_into_libs
16506
16507 # Compile-time system search path for libraries.
16508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16509
16510 # Run-time system search path for libraries.
16511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16512
16513 # Whether dlopen is supported.
16514 dlopen_support=$enable_dlopen
16515
16516 # Whether dlopen of programs is supported.
16517 dlopen_self=$enable_dlopen_self
16518
16519 # Whether dlopen of statically linked programs is supported.
16520 dlopen_self_static=$enable_dlopen_self_static
16521
16522 # Commands to strip libraries.
16523 old_striplib=$lt_old_striplib
16524 striplib=$lt_striplib
16525
16526
16527 # The linker used to build libraries.
16528 LD=$lt_LD
16529
16530 # Commands used to build an old-style archive.
16531 old_archive_cmds=$lt_old_archive_cmds
16532
16533 # A language specific compiler.
16534 CC=$lt_compiler
16535
16536 # Is the compiler the GNU compiler?
16537 with_gcc=$GCC
16538
16539 # Compiler flag to turn off builtin functions.
16540 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16541
16542 # How to pass a linker flag through the compiler.
16543 wl=$lt_lt_prog_compiler_wl
16544
16545 # Additional compiler flags for building library objects.
16546 pic_flag=$lt_lt_prog_compiler_pic
16547
16548 # Compiler flag to prevent dynamic linking.
16549 link_static_flag=$lt_lt_prog_compiler_static
16550
16551 # Does compiler simultaneously support -c and -o options?
16552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16553
16554 # Whether or not to add -lc for building shared libraries.
16555 build_libtool_need_lc=$archive_cmds_need_lc
16556
16557 # Whether or not to disallow shared libs when runtime libs are static.
16558 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16559
16560 # Compiler flag to allow reflexive dlopens.
16561 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16562
16563 # Compiler flag to generate shared objects directly from archives.
16564 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16565
16566 # Whether the compiler copes with passing no objects directly.
16567 compiler_needs_object=$lt_compiler_needs_object
16568
16569 # Create an old-style archive from a shared archive.
16570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16571
16572 # Create a temporary old-style archive to link instead of a shared archive.
16573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16574
16575 # Commands used to build a shared archive.
16576 archive_cmds=$lt_archive_cmds
16577 archive_expsym_cmds=$lt_archive_expsym_cmds
16578
16579 # Commands used to build a loadable module if different from building
16580 # a shared archive.
16581 module_cmds=$lt_module_cmds
16582 module_expsym_cmds=$lt_module_expsym_cmds
16583
16584 # Whether we are building with GNU ld or not.
16585 with_gnu_ld=$lt_with_gnu_ld
16586
16587 # Flag that allows shared libraries with undefined symbols to be built.
16588 allow_undefined_flag=$lt_allow_undefined_flag
16589
16590 # Flag that enforces no undefined symbols.
16591 no_undefined_flag=$lt_no_undefined_flag
16592
16593 # Flag to hardcode \$libdir into a binary during linking.
16594 # This must work even if \$libdir does not exist
16595 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16596
16597 # If ld is used when linking, flag to hardcode \$libdir into a binary
16598 # during linking.  This must work even if \$libdir does not exist.
16599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16600
16601 # Whether we need a single "-rpath" flag with a separated argument.
16602 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16603
16604 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16605 # DIR into the resulting binary.
16606 hardcode_direct=$hardcode_direct
16607
16608 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16609 # DIR into the resulting binary and the resulting library dependency is
16610 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16611 # library is relocated.
16612 hardcode_direct_absolute=$hardcode_direct_absolute
16613
16614 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16615 # into the resulting binary.
16616 hardcode_minus_L=$hardcode_minus_L
16617
16618 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16619 # into the resulting binary.
16620 hardcode_shlibpath_var=$hardcode_shlibpath_var
16621
16622 # Set to "yes" if building a shared library automatically hardcodes DIR
16623 # into the library and all subsequent libraries and executables linked
16624 # against it.
16625 hardcode_automatic=$hardcode_automatic
16626
16627 # Set to yes if linker adds runtime paths of dependent libraries
16628 # to runtime path list.
16629 inherit_rpath=$inherit_rpath
16630
16631 # Whether libtool must link a program against all its dependency libraries.
16632 link_all_deplibs=$link_all_deplibs
16633
16634 # Fix the shell variable \$srcfile for the compiler.
16635 fix_srcfile_path=$lt_fix_srcfile_path
16636
16637 # Set to "yes" if exported symbols are required.
16638 always_export_symbols=$always_export_symbols
16639
16640 # The commands to list exported symbols.
16641 export_symbols_cmds=$lt_export_symbols_cmds
16642
16643 # Symbols that should not be listed in the preloaded symbols.
16644 exclude_expsyms=$lt_exclude_expsyms
16645
16646 # Symbols that must always be exported.
16647 include_expsyms=$lt_include_expsyms
16648
16649 # Commands necessary for linking programs (against libraries) with templates.
16650 prelink_cmds=$lt_prelink_cmds
16651
16652 # Specify filename containing input files.
16653 file_list_spec=$lt_file_list_spec
16654
16655 # How to hardcode a shared library path into an executable.
16656 hardcode_action=$hardcode_action
16657
16658 # ### END LIBTOOL CONFIG
16659
16660 _LT_EOF
16661
16662   case $host_os in
16663   aix3*)
16664     cat <<\_LT_EOF >> "$cfgfile"
16665 # AIX sometimes has problems with the GCC collect2 program.  For some
16666 # reason, if we set the COLLECT_NAMES environment variable, the problems
16667 # vanish in a puff of smoke.
16668 if test "X${COLLECT_NAMES+set}" != Xset; then
16669   COLLECT_NAMES=
16670   export COLLECT_NAMES
16671 fi
16672 _LT_EOF
16673     ;;
16674   esac
16675
16676
16677 ltmain="$ac_aux_dir/ltmain.sh"
16678
16679
16680   # We use sed instead of cat because bash on DJGPP gets confused if
16681   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16682   # text mode, it properly converts lines to CR/LF.  This bash problem
16683   # is reportedly fixed, but why not run on old versions too?
16684   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16685     || (rm -f "$cfgfile"; exit 1)
16686
16687   case $xsi_shell in
16688   yes)
16689     cat << \_LT_EOF >> "$cfgfile"
16690
16691 # func_dirname file append nondir_replacement
16692 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16693 # otherwise set result to NONDIR_REPLACEMENT.
16694 func_dirname ()
16695 {
16696   case ${1} in
16697     */*) func_dirname_result="${1%/*}${2}" ;;
16698     *  ) func_dirname_result="${3}" ;;
16699   esac
16700 }
16701
16702 # func_basename file
16703 func_basename ()
16704 {
16705   func_basename_result="${1##*/}"
16706 }
16707
16708 # func_dirname_and_basename file append nondir_replacement
16709 # perform func_basename and func_dirname in a single function
16710 # call:
16711 #   dirname:  Compute the dirname of FILE.  If nonempty,
16712 #             add APPEND to the result, otherwise set result
16713 #             to NONDIR_REPLACEMENT.
16714 #             value returned in "$func_dirname_result"
16715 #   basename: Compute filename of FILE.
16716 #             value retuned in "$func_basename_result"
16717 # Implementation must be kept synchronized with func_dirname
16718 # and func_basename. For efficiency, we do not delegate to
16719 # those functions but instead duplicate the functionality here.
16720 func_dirname_and_basename ()
16721 {
16722   case ${1} in
16723     */*) func_dirname_result="${1%/*}${2}" ;;
16724     *  ) func_dirname_result="${3}" ;;
16725   esac
16726   func_basename_result="${1##*/}"
16727 }
16728
16729 # func_stripname prefix suffix name
16730 # strip PREFIX and SUFFIX off of NAME.
16731 # PREFIX and SUFFIX must not contain globbing or regex special
16732 # characters, hashes, percent signs, but SUFFIX may contain a leading
16733 # dot (in which case that matches only a dot).
16734 func_stripname ()
16735 {
16736   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16737   # positional parameters, so assign one to ordinary parameter first.
16738   func_stripname_result=${3}
16739   func_stripname_result=${func_stripname_result#"${1}"}
16740   func_stripname_result=${func_stripname_result%"${2}"}
16741 }
16742
16743 # func_opt_split
16744 func_opt_split ()
16745 {
16746   func_opt_split_opt=${1%%=*}
16747   func_opt_split_arg=${1#*=}
16748 }
16749
16750 # func_lo2o object
16751 func_lo2o ()
16752 {
16753   case ${1} in
16754     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16755     *)    func_lo2o_result=${1} ;;
16756   esac
16757 }
16758
16759 # func_xform libobj-or-source
16760 func_xform ()
16761 {
16762   func_xform_result=${1%.*}.lo
16763 }
16764
16765 # func_arith arithmetic-term...
16766 func_arith ()
16767 {
16768   func_arith_result=$(( $* ))
16769 }
16770
16771 # func_len string
16772 # STRING may not start with a hyphen.
16773 func_len ()
16774 {
16775   func_len_result=${#1}
16776 }
16777
16778 _LT_EOF
16779     ;;
16780   *) # Bourne compatible functions.
16781     cat << \_LT_EOF >> "$cfgfile"
16782
16783 # func_dirname file append nondir_replacement
16784 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16785 # otherwise set result to NONDIR_REPLACEMENT.
16786 func_dirname ()
16787 {
16788   # Extract subdirectory from the argument.
16789   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16790   if test "X$func_dirname_result" = "X${1}"; then
16791     func_dirname_result="${3}"
16792   else
16793     func_dirname_result="$func_dirname_result${2}"
16794   fi
16795 }
16796
16797 # func_basename file
16798 func_basename ()
16799 {
16800   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16801 }
16802
16803
16804 # func_stripname prefix suffix name
16805 # strip PREFIX and SUFFIX off of NAME.
16806 # PREFIX and SUFFIX must not contain globbing or regex special
16807 # characters, hashes, percent signs, but SUFFIX may contain a leading
16808 # dot (in which case that matches only a dot).
16809 # func_strip_suffix prefix name
16810 func_stripname ()
16811 {
16812   case ${2} in
16813     .*) func_stripname_result=`$ECHO "X${3}" \
16814            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16815     *)  func_stripname_result=`$ECHO "X${3}" \
16816            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16817   esac
16818 }
16819
16820 # sed scripts:
16821 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16822 my_sed_long_arg='1s/^-[^=]*=//'
16823
16824 # func_opt_split
16825 func_opt_split ()
16826 {
16827   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16828   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16829 }
16830
16831 # func_lo2o object
16832 func_lo2o ()
16833 {
16834   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16835 }
16836
16837 # func_xform libobj-or-source
16838 func_xform ()
16839 {
16840   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16841 }
16842
16843 # func_arith arithmetic-term...
16844 func_arith ()
16845 {
16846   func_arith_result=`expr "$@"`
16847 }
16848
16849 # func_len string
16850 # STRING may not start with a hyphen.
16851 func_len ()
16852 {
16853   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16854 }
16855
16856 _LT_EOF
16857 esac
16858
16859 case $lt_shell_append in
16860   yes)
16861     cat << \_LT_EOF >> "$cfgfile"
16862
16863 # func_append var value
16864 # Append VALUE to the end of shell variable VAR.
16865 func_append ()
16866 {
16867   eval "$1+=\$2"
16868 }
16869 _LT_EOF
16870     ;;
16871   *)
16872     cat << \_LT_EOF >> "$cfgfile"
16873
16874 # func_append var value
16875 # Append VALUE to the end of shell variable VAR.
16876 func_append ()
16877 {
16878   eval "$1=\$$1\$2"
16879 }
16880
16881 _LT_EOF
16882     ;;
16883   esac
16884
16885
16886   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16887     || (rm -f "$cfgfile"; exit 1)
16888
16889   mv -f "$cfgfile" "$ofile" ||
16890     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16891   chmod +x "$ofile"
16892
16893  ;;
16894
16895   esac
16896 done # for ac_tag
16897
16898
16899 as_fn_exit 0
16900 _ACEOF
16901 ac_clean_files=$ac_clean_files_save
16902
16903 test $ac_write_fail = 0 ||
16904   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16905
16906
16907 # configure is writing to config.log, and then calls config.status.
16908 # config.status does its own redirection, appending to config.log.
16909 # Unfortunately, on DOS this fails, as config.log is still kept open
16910 # by configure, so config.status won't be able to write to it; its
16911 # output is simply discarded.  So we exec the FD to /dev/null,
16912 # effectively closing config.log, so it can be properly (re)opened and
16913 # appended to by config.status.  When coming back to configure, we
16914 # need to make the FD available again.
16915 if test "$no_create" != yes; then
16916   ac_cs_success=:
16917   ac_config_status_args=
16918   test "$silent" = yes &&
16919     ac_config_status_args="$ac_config_status_args --quiet"
16920   exec 5>/dev/null
16921   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16922   exec 5>>config.log
16923   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16924   # would make configure fail if this is the last instruction.
16925   $ac_cs_success || as_fn_exit 1
16926 fi
16927 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16928   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16929 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16930 fi
16931
16932
16933 chmod +x xml2-config python/setup.py
16934 echo Done configuring