Initial revision
[TestXSLT.git] / libxml2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator.  Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13   UNAME=${UNAME-`uname 2>/dev/null`}
14   case X$UNAME in
15     *-DOS) lt_cv_sys_path_separator=';' ;;
16     *)     lt_cv_sys_path_separator=':' ;;
17   esac
18   PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27   # Remove one level of quotation (which was required for Make).
28   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29   ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34   # Discard the --no-reexec flag, and continue.
35   shift
36 elif test "X$1" = X--fallback-echo; then
37   # Avoid inline document here, it may be left over
38   :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40   # Yippee, $echo works!
41   :
42 else
43   # Restart under the correct shell.
44   exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48   # used as fallback echo
49   shift
50   cat <<EOF
51
52 EOF
53   exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66        echo_test_string="`eval $cmd`" &&
67        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68     then
69       break
70     fi
71   done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76    test "X$echo_testing_string" = "X$echo_test_string"; then
77   :
78 else
79   # The Solaris, AIX, and Digital Unix default echo programs unquote
80   # backslashes.  This makes it impossible to quote backslashes using
81   #   echo "$something" | sed 's/\\/\\\\/g'
82   #
83   # So, first we look for a working echo in the user's PATH.
84
85   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86   for dir in $PATH /usr/ucb; do
87     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90        test "X$echo_testing_string" = "X$echo_test_string"; then
91       echo="$dir/echo"
92       break
93     fi
94   done
95   IFS="$save_ifs"
96
97   if test "X$echo" = Xecho; then
98     # We didn't find a better echo, so look for alternatives.
99     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101        test "X$echo_testing_string" = "X$echo_test_string"; then
102       # This shell has a builtin print -r that does the trick.
103       echo='print -r'
104     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105          test "X$CONFIG_SHELL" != X/bin/ksh; then
106       # If we have ksh, try running configure again with it.
107       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108       export ORIGINAL_CONFIG_SHELL
109       CONFIG_SHELL=/bin/ksh
110       export CONFIG_SHELL
111       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112     else
113       # Try using printf.
114       echo='printf %s\n'
115       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117          test "X$echo_testing_string" = "X$echo_test_string"; then
118         # Cool, printf works
119         :
120       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121            test "X$echo_testing_string" = 'X\t' &&
122            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123            test "X$echo_testing_string" = "X$echo_test_string"; then
124         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125         export CONFIG_SHELL
126         SHELL="$CONFIG_SHELL"
127         export SHELL
128         echo="$CONFIG_SHELL $0 --fallback-echo"
129       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130            test "X$echo_testing_string" = 'X\t' &&
131            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132            test "X$echo_testing_string" = "X$echo_test_string"; then
133         echo="$CONFIG_SHELL $0 --fallback-echo"
134       else
135         # maybe with a smaller string...
136         prev=:
137
138         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140           then
141             break
142           fi
143           prev="$cmd"
144         done
145
146         if test "$prev" != 'sed 50q "$0"'; then
147           echo_test_string=`eval $prev`
148           export echo_test_string
149           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150         else
151           # Oops.  We lost completely, so just stick with echo.
152           echo=echo
153         fi
154       fi
155     fi
156   fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167
168
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170   as_expr=expr
171 else
172   as_expr=false
173 fi
174
175
176 ## --------------------- ##
177 ## M4sh Initialization.  ##
178 ## --------------------- ##
179
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182   emulate sh
183   NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185   set -o posix
186 fi
187
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191   as_unset=unset
192 else
193   as_unset=false
194 fi
195
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197     { $as_unset LANG || test "${LANG+set}" != set; } ||
198       { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201       { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204       { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207       { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210       { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213       { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216       { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219       { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225          X"$0" : 'X\(//\)$' \| \
226          X"$0" : 'X\(/\)$' \| \
227          .     : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230           /^X\/\(\/\/\)$/{ s//\1/; q; }
231           /^X\/\(\/\).*/{ s//\1/; q; }
232           s/.*/./; q'`
233
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244   echo "#! /bin/sh" >conftest.sh
245   echo  "exit 0"   >>conftest.sh
246   chmod +x conftest.sh
247   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248     PATH_SEPARATOR=';'
249   else
250     PATH_SEPARATOR=:
251   fi
252   rm -f conftest.sh
253 fi
254
255
256   as_lineno_1=$LINENO
257   as_lineno_2=$LINENO
258   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259   test "x$as_lineno_1" != "x$as_lineno_2" &&
260   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
261   # Find who we are.  Look in the path if we contain no path at all
262   # relative or not.
263   case $0 in
264     *[\\/]* ) as_myself=$0 ;;
265     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
267 do
268   IFS=$as_save_IFS
269   test -z "$as_dir" && as_dir=.
270   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
272
273        ;;
274   esac
275   # We did not find ourselves, most probably we were run as `sh COMMAND'
276   # in which case we are not to be found in the path.
277   if test "x$as_myself" = x; then
278     as_myself=$0
279   fi
280   if test ! -f "$as_myself"; then
281     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282    { (exit 1); exit 1; }; }
283   fi
284   case $CONFIG_SHELL in
285   '')
286     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288 do
289   IFS=$as_save_IFS
290   test -z "$as_dir" && as_dir=.
291   for as_base in sh bash ksh sh5; do
292          case $as_dir in
293          /*)
294            if ("$as_dir/$as_base" -c '
295   as_lineno_1=$LINENO
296   as_lineno_2=$LINENO
297   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298   test "x$as_lineno_1" != "x$as_lineno_2" &&
299   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
300              CONFIG_SHELL=$as_dir/$as_base
301              export CONFIG_SHELL
302              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303            fi;;
304          esac
305        done
306 done
307 ;;
308   esac
309
310   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311   # uniformly replaced by the line number.  The first 'sed' inserts a
312   # line-number line before each line; the second 'sed' does the real
313   # work.  The second script uses 'N' to pair each line-number line
314   # with the numbered line, and appends trailing '-' during
315   # substitution so that $LINENO is not a special case at line end.
316   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
318   sed '=' <$as_myself |
319     sed '
320       N
321       s,$,-,
322       : loop
323       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324       t loop
325       s,-$,,
326       s,^['$as_cr_digits']*\n,,
327     ' >$as_me.lineno &&
328   chmod +x $as_me.lineno ||
329     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330    { (exit 1); exit 1; }; }
331
332   # Don't try to exec as it changes $[0], causing all sort of problems
333   # (the dirname of $[0] is not the place where we might find the
334   # original and so on.  Autoconf is especially sensible to this).
335   . ./$as_me.lineno
336   # Exit status is that of the last command.
337   exit
338 }
339
340
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342   *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T='      ' ;;
344   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
347
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349   as_expr=expr
350 else
351   as_expr=false
352 fi
353
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357   # We could just check for DJGPP; but this test a) works b) is more generic
358   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359   if test -f conf$$.exe; then
360     # Don't use ln at all; we don't have any links
361     as_ln_s='cp -p'
362   else
363     as_ln_s='ln -s'
364   fi
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366   as_ln_s=ln
367 else
368   as_ln_s='cp -p'
369 fi
370 rm -f conf$$ conf$$.exe conf$$.file
371
372 as_executable_p="test -f"
373
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
384 '
385 IFS="   $as_nl"
386
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396 exec 6>&1
397
398 #
399 # Initializations.
400 #
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
407
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete.  It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
412
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
419
420 ac_unique_file="entities.c"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
423 #include <stdio.h>
424 #if HAVE_SYS_TYPES_H
425 # include <sys/types.h>
426 #endif
427 #if HAVE_SYS_STAT_H
428 # include <sys/stat.h>
429 #endif
430 #if STDC_HEADERS
431 # include <stdlib.h>
432 # include <stddef.h>
433 #else
434 # if HAVE_STDLIB_H
435 #  include <stdlib.h>
436 # endif
437 #endif
438 #if HAVE_STRING_H
439 # if !STDC_HEADERS && HAVE_MEMORY_H
440 #  include <memory.h>
441 # endif
442 # include <string.h>
443 #endif
444 #if HAVE_STRINGS_H
445 # include <strings.h>
446 #endif
447 #if HAVE_INTTYPES_H
448 # include <inttypes.h>
449 #else
450 # if HAVE_STDINT_H
451 #  include <stdint.h>
452 # endif
453 #endif
454 #if HAVE_UNISTD_H
455 # include <unistd.h>
456 #endif"
457
458
459 # Initialize some variables set by options.
460 ac_init_help=
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
464 cache_file=/dev/null
465 exec_prefix=NONE
466 no_create=
467 no_recursion=
468 prefix=NONE
469 program_prefix=NONE
470 program_suffix=NONE
471 program_transform_name=s,x,x,
472 silent=
473 site=
474 srcdir=
475 verbose=
476 x_includes=NONE
477 x_libraries=NONE
478
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 ac_prev=
498 for ac_option
499 do
500   # If the previous option needs an argument, assign it.
501   if test -n "$ac_prev"; then
502     eval "$ac_prev=\$ac_option"
503     ac_prev=
504     continue
505   fi
506
507   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509   # Accept the important Cygnus configure options, so we can diagnose typos.
510
511   case $ac_option in
512
513   -bindir | --bindir | --bindi | --bind | --bin | --bi)
514     ac_prev=bindir ;;
515   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516     bindir=$ac_optarg ;;
517
518   -build | --build | --buil | --bui | --bu)
519     ac_prev=build_alias ;;
520   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521     build_alias=$ac_optarg ;;
522
523   -cache-file | --cache-file | --cache-fil | --cache-fi \
524   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525     ac_prev=cache_file ;;
526   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528     cache_file=$ac_optarg ;;
529
530   --config-cache | -C)
531     cache_file=config.cache ;;
532
533   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534     ac_prev=datadir ;;
535   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536   | --da=*)
537     datadir=$ac_optarg ;;
538
539   -disable-* | --disable-*)
540     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541     # Reject names that are not valid shell variable names.
542     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544    { (exit 1); exit 1; }; }
545     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546     eval "enable_$ac_feature=no" ;;
547
548   -enable-* | --enable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "enable_$ac_feature='$ac_optarg'" ;;
560
561   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563   | --exec | --exe | --ex)
564     ac_prev=exec_prefix ;;
565   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567   | --exec=* | --exe=* | --ex=*)
568     exec_prefix=$ac_optarg ;;
569
570   -gas | --gas | --ga | --g)
571     # Obsolete; use --with-gas.
572     with_gas=yes ;;
573
574   -help | --help | --hel | --he | -h)
575     ac_init_help=long ;;
576   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577     ac_init_help=recursive ;;
578   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579     ac_init_help=short ;;
580
581   -host | --host | --hos | --ho)
582     ac_prev=host_alias ;;
583   -host=* | --host=* | --hos=* | --ho=*)
584     host_alias=$ac_optarg ;;
585
586   -includedir | --includedir | --includedi | --included | --include \
587   | --includ | --inclu | --incl | --inc)
588     ac_prev=includedir ;;
589   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590   | --includ=* | --inclu=* | --incl=* | --inc=*)
591     includedir=$ac_optarg ;;
592
593   -infodir | --infodir | --infodi | --infod | --info | --inf)
594     ac_prev=infodir ;;
595   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596     infodir=$ac_optarg ;;
597
598   -libdir | --libdir | --libdi | --libd)
599     ac_prev=libdir ;;
600   -libdir=* | --libdir=* | --libdi=* | --libd=*)
601     libdir=$ac_optarg ;;
602
603   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604   | --libexe | --libex | --libe)
605     ac_prev=libexecdir ;;
606   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607   | --libexe=* | --libex=* | --libe=*)
608     libexecdir=$ac_optarg ;;
609
610   -localstatedir | --localstatedir | --localstatedi | --localstated \
611   | --localstate | --localstat | --localsta | --localst \
612   | --locals | --local | --loca | --loc | --lo)
613     ac_prev=localstatedir ;;
614   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617     localstatedir=$ac_optarg ;;
618
619   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620     ac_prev=mandir ;;
621   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622     mandir=$ac_optarg ;;
623
624   -nfp | --nfp | --nf)
625     # Obsolete; use --without-fp.
626     with_fp=no ;;
627
628   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629   | --no-cr | --no-c | -n)
630     no_create=yes ;;
631
632   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634     no_recursion=yes ;;
635
636   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638   | --oldin | --oldi | --old | --ol | --o)
639     ac_prev=oldincludedir ;;
640   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643     oldincludedir=$ac_optarg ;;
644
645   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646     ac_prev=prefix ;;
647   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648     prefix=$ac_optarg ;;
649
650   -program-prefix | --program-prefix | --program-prefi | --program-pref \
651   | --program-pre | --program-pr | --program-p)
652     ac_prev=program_prefix ;;
653   -program-prefix=* | --program-prefix=* | --program-prefi=* \
654   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655     program_prefix=$ac_optarg ;;
656
657   -program-suffix | --program-suffix | --program-suffi | --program-suff \
658   | --program-suf | --program-su | --program-s)
659     ac_prev=program_suffix ;;
660   -program-suffix=* | --program-suffix=* | --program-suffi=* \
661   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662     program_suffix=$ac_optarg ;;
663
664   -program-transform-name | --program-transform-name \
665   | --program-transform-nam | --program-transform-na \
666   | --program-transform-n | --program-transform- \
667   | --program-transform | --program-transfor \
668   | --program-transfo | --program-transf \
669   | --program-trans | --program-tran \
670   | --progr-tra | --program-tr | --program-t)
671     ac_prev=program_transform_name ;;
672   -program-transform-name=* | --program-transform-name=* \
673   | --program-transform-nam=* | --program-transform-na=* \
674   | --program-transform-n=* | --program-transform-=* \
675   | --program-transform=* | --program-transfor=* \
676   | --program-transfo=* | --program-transf=* \
677   | --program-trans=* | --program-tran=* \
678   | --progr-tra=* | --program-tr=* | --program-t=*)
679     program_transform_name=$ac_optarg ;;
680
681   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682   | -silent | --silent | --silen | --sile | --sil)
683     silent=yes ;;
684
685   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686     ac_prev=sbindir ;;
687   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688   | --sbi=* | --sb=*)
689     sbindir=$ac_optarg ;;
690
691   -sharedstatedir | --sharedstatedir | --sharedstatedi \
692   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693   | --sharedst | --shareds | --shared | --share | --shar \
694   | --sha | --sh)
695     ac_prev=sharedstatedir ;;
696   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699   | --sha=* | --sh=*)
700     sharedstatedir=$ac_optarg ;;
701
702   -site | --site | --sit)
703     ac_prev=site ;;
704   -site=* | --site=* | --sit=*)
705     site=$ac_optarg ;;
706
707   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708     ac_prev=srcdir ;;
709   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710     srcdir=$ac_optarg ;;
711
712   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713   | --syscon | --sysco | --sysc | --sys | --sy)
714     ac_prev=sysconfdir ;;
715   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717     sysconfdir=$ac_optarg ;;
718
719   -target | --target | --targe | --targ | --tar | --ta | --t)
720     ac_prev=target_alias ;;
721   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722     target_alias=$ac_optarg ;;
723
724   -v | -verbose | --verbose | --verbos | --verbo | --verb)
725     verbose=yes ;;
726
727   -version | --version | --versio | --versi | --vers | -V)
728     ac_init_version=: ;;
729
730   -with-* | --with-*)
731     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732     # Reject names that are not valid shell variable names.
733     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734       { echo "$as_me: error: invalid package name: $ac_package" >&2
735    { (exit 1); exit 1; }; }
736     ac_package=`echo $ac_package| sed 's/-/_/g'`
737     case $ac_option in
738       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739       *) ac_optarg=yes ;;
740     esac
741     eval "with_$ac_package='$ac_optarg'" ;;
742
743   -without-* | --without-*)
744     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745     # Reject names that are not valid shell variable names.
746     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747       { echo "$as_me: error: invalid package name: $ac_package" >&2
748    { (exit 1); exit 1; }; }
749     ac_package=`echo $ac_package | sed 's/-/_/g'`
750     eval "with_$ac_package=no" ;;
751
752   --x)
753     # Obsolete; use --with-x.
754     with_x=yes ;;
755
756   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757   | --x-incl | --x-inc | --x-in | --x-i)
758     ac_prev=x_includes ;;
759   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761     x_includes=$ac_optarg ;;
762
763   -x-libraries | --x-libraries | --x-librarie | --x-librari \
764   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765     ac_prev=x_libraries ;;
766   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768     x_libraries=$ac_optarg ;;
769
770   -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772    { (exit 1); exit 1; }; }
773     ;;
774
775   *=*)
776     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777     # Reject names that are not valid shell variable names.
778     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780    { (exit 1); exit 1; }; }
781     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782     eval "$ac_envvar='$ac_optarg'"
783     export $ac_envvar ;;
784
785   *)
786     # FIXME: should be removed in autoconf 3.0.
787     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791     ;;
792
793   esac
794 done
795
796 if test -n "$ac_prev"; then
797   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798   { echo "$as_me: error: missing argument to $ac_option" >&2
799    { (exit 1); exit 1; }; }
800 fi
801
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
804 do
805   eval ac_val=$`echo $ac_var`
806   case $ac_val in
807     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809    { (exit 1); exit 1; }; };;
810   esac
811 done
812
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815               localstatedir libdir includedir oldincludedir infodir mandir
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
828 build=$build_alias
829 host=$host_alias
830 target=$target_alias
831
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834   if test "x$build_alias" = x; then
835     cross_compiling=maybe
836     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837     If a cross compiler is detected then cross compile mode will be used." >&2
838   elif test "x$build_alias" != "x$host_alias"; then
839     cross_compiling=yes
840   fi
841 fi
842
843 ac_tool_prefix=
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846 test "$silent" = yes && exec 6>/dev/null
847
848
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851   ac_srcdir_defaulted=yes
852   # Try the directory containing this script, then its parent.
853   ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855          X"$0" : 'X\(//\)[^/]' \| \
856          X"$0" : 'X\(//\)$' \| \
857          X"$0" : 'X\(/\)' \| \
858          .     : '\(.\)' 2>/dev/null ||
859 echo X"$0" |
860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862           /^X\(\/\/\)$/{ s//\1/; q; }
863           /^X\(\/\).*/{ s//\1/; q; }
864           s/.*/./; q'`
865   srcdir=$ac_confdir
866   if test ! -r $srcdir/$ac_unique_file; then
867     srcdir=..
868   fi
869 else
870   ac_srcdir_defaulted=no
871 fi
872 if test ! -r $srcdir/$ac_unique_file; then
873   if test "$ac_srcdir_defaulted" = yes; then
874     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875    { (exit 1); exit 1; }; }
876   else
877     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878    { (exit 1); exit 1; }; }
879   fi
880 fi
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
895 ac_env_CC_value=$CC
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
914
915 #
916 # Report the --help message.
917 #
918 if test "$ac_init_help" = "long"; then
919   # Omit some internal or obsolete options to make the list less imposing.
920   # This message is too long to be a string in the A/UX 3.1 sh.
921   cat <<_ACEOF
922 \`configure' configures this package to adapt to many kinds of systems.
923
924 Usage: $0 [OPTION]... [VAR=VALUE]...
925
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE.  See below for descriptions of some of the useful variables.
928
929 Defaults for the options are specified in brackets.
930
931 Configuration:
932   -h, --help              display this help and exit
933       --help=short        display options specific to this package
934       --help=recursive    display the short help of all the included packages
935   -V, --version           display version information and exit
936   -q, --quiet, --silent   do not print \`checking...' messages
937       --cache-file=FILE   cache test results in FILE [disabled]
938   -C, --config-cache      alias for \`--cache-file=config.cache'
939   -n, --no-create         do not create output files
940       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
941
942 _ACEOF
943
944   cat <<_ACEOF
945 Installation directories:
946   --prefix=PREFIX         install architecture-independent files in PREFIX
947                           [$ac_default_prefix]
948   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
949                           [PREFIX]
950
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
955
956 For better control, use the options below.
957
958 Fine tuning of the installation directories:
959   --bindir=DIR           user executables [EPREFIX/bin]
960   --sbindir=DIR          system admin executables [EPREFIX/sbin]
961   --libexecdir=DIR       program executables [EPREFIX/libexec]
962   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
963   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
964   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
965   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
966   --libdir=DIR           object code libraries [EPREFIX/lib]
967   --includedir=DIR       C header files [PREFIX/include]
968   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
969   --infodir=DIR          info documentation [PREFIX/info]
970   --mandir=DIR           man documentation [PREFIX/man]
971 _ACEOF
972
973   cat <<\_ACEOF
974
975 Program names:
976   --program-prefix=PREFIX            prepend PREFIX to installed program names
977   --program-suffix=SUFFIX            append SUFFIX to installed program names
978   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
979
980 System types:
981   --build=BUILD     configure for building on BUILD [guessed]
982   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
983 _ACEOF
984 fi
985
986 if test -n "$ac_init_help"; then
987
988   cat <<\_ACEOF
989
990 Optional Features:
991   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
992   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
993   --enable-shared=PKGS  build shared libraries default=yes
994   --enable-static=PKGS  build static libraries default=yes
995   --enable-fast-install=PKGS  optimize for fast installation default=yes
996   --disable-libtool-lock  avoid locking (might break parallel builds)
997   --enable-maintainer-mode enable make rules and dependencies not useful
998                           (and sometimes confusing) to the casual installer
999
1000 Optional Packages:
1001   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1002   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1003   --with-html-dir=PATH path to installed docs
1004   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1005   --with-pic              try to use only PIC/non-PIC objects default=use both
1006   --with-zlib=DIR       use libz in DIR
1007   --with-python=DIR    Build Python bindings if found
1008   --with-readline=DIR     use readline in DIR
1009   --with-threads          Add multithread support(off)
1010   --with-thread-alloc     Add per-thread memory(off)
1011   --with-history          Add history support to xmllint shell(off)
1012   --with-ftp              Add the FTP support (on)
1013   --with-http             Add the HTTP support (on)
1014   --with-html             Add the HTML support (on)
1015   --with-catalog          Add the Catalog support (on)
1016   --with-docbook          Add Docbook SGML support (on)
1017   --with-xpath            Add the XPATH support (on)
1018   --with-xptr             Add the XPointer support (on)
1019   --with-c14n             Add the Canonicalization support (on)
1020   --with-xinclude         Add the XInclude support (on)
1021   --with-iconv=DIR      Add ICONV support (on)
1022   --with-schemas              Add experimental Schemas/RelaxNG support (on)
1023   --with-regexps              Add Regular Expressions support (on)
1024   --with-debug            Add the debugging module (on)
1025   --with-mem-debug        Add the memory debugging module (off)
1026
1027 Some influential environment variables:
1028   CC          C compiler command
1029   CFLAGS      C compiler flags
1030   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1031               nonstandard directory <lib dir>
1032   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1033               headers in a nonstandard directory <include dir>
1034   CPP         C preprocessor
1035
1036 Use these variables to override the choices made by `configure' or to help
1037 it to find libraries and programs with nonstandard names/locations.
1038
1039 _ACEOF
1040 fi
1041
1042 if test "$ac_init_help" = "recursive"; then
1043   # If there are subdirs, report their specific --help.
1044   ac_popdir=`pwd`
1045   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1046     test -d $ac_dir || continue
1047     ac_builddir=.
1048
1049 if test "$ac_dir" != .; then
1050   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1051   # A "../" for each directory in $ac_dir_suffix.
1052   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1053 else
1054   ac_dir_suffix= ac_top_builddir=
1055 fi
1056
1057 case $srcdir in
1058   .)  # No --srcdir option.  We are building in place.
1059     ac_srcdir=.
1060     if test -z "$ac_top_builddir"; then
1061        ac_top_srcdir=.
1062     else
1063        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1064     fi ;;
1065   [\\/]* | ?:[\\/]* )  # Absolute path.
1066     ac_srcdir=$srcdir$ac_dir_suffix;
1067     ac_top_srcdir=$srcdir ;;
1068   *) # Relative path.
1069     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1070     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1071 esac
1072 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1073 # absolute.
1074 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1075 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1076 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1077 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1078
1079     cd $ac_dir
1080     # Check for guested configure; otherwise get Cygnus style configure.
1081     if test -f $ac_srcdir/configure.gnu; then
1082       echo
1083       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1084     elif test -f $ac_srcdir/configure; then
1085       echo
1086       $SHELL $ac_srcdir/configure  --help=recursive
1087     elif test -f $ac_srcdir/configure.ac ||
1088            test -f $ac_srcdir/configure.in; then
1089       echo
1090       $ac_configure --help
1091     else
1092       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1093     fi
1094     cd $ac_popdir
1095   done
1096 fi
1097
1098 test -n "$ac_init_help" && exit 0
1099 if $ac_init_version; then
1100   cat <<\_ACEOF
1101
1102 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1103 Free Software Foundation, Inc.
1104 This configure script is free software; the Free Software Foundation
1105 gives unlimited permission to copy, distribute and modify it.
1106 _ACEOF
1107   exit 0
1108 fi
1109 exec 5>config.log
1110 cat >&5 <<_ACEOF
1111 This file contains any messages produced by compilers while
1112 running configure, to aid debugging if configure makes a mistake.
1113
1114 It was created by $as_me, which was
1115 generated by GNU Autoconf 2.53.  Invocation command line was
1116
1117   $ $0 $@
1118
1119 _ACEOF
1120 {
1121 cat <<_ASUNAME
1122 ## --------- ##
1123 ## Platform. ##
1124 ## --------- ##
1125
1126 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1127 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1128 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1129 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1130 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1131
1132 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1133 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1134
1135 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1136 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1137 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1138 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1139 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1140 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1141 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1142
1143 _ASUNAME
1144
1145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1146 for as_dir in $PATH
1147 do
1148   IFS=$as_save_IFS
1149   test -z "$as_dir" && as_dir=.
1150   echo "PATH: $as_dir"
1151 done
1152
1153 } >&5
1154
1155 cat >&5 <<_ACEOF
1156
1157
1158 ## ----------- ##
1159 ## Core tests. ##
1160 ## ----------- ##
1161
1162 _ACEOF
1163
1164
1165 # Keep a trace of the command line.
1166 # Strip out --no-create and --no-recursion so they do not pile up.
1167 # Also quote any args containing shell meta-characters.
1168 ac_configure_args=
1169 ac_sep=
1170 for ac_arg
1171 do
1172   case $ac_arg in
1173   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174   | --no-cr | --no-c | -n ) continue ;;
1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177     continue ;;
1178   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1179     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1180   esac
1181   case " $ac_configure_args " in
1182     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1183     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1184        ac_sep=" " ;;
1185   esac
1186   # Get rid of the leading space.
1187 done
1188
1189 # When interrupted or exit'd, cleanup temporary files, and complete
1190 # config.log.  We remove comments because anyway the quotes in there
1191 # would cause problems or look ugly.
1192 # WARNING: Be sure not to use single quotes in there, as some shells,
1193 # such as our DU 5.0 friend, will then `close' the trap.
1194 trap 'exit_status=$?
1195   # Save into config.log some information that might help in debugging.
1196   {
1197     echo
1198     cat <<\_ASBOX
1199 ## ---------------- ##
1200 ## Cache variables. ##
1201 ## ---------------- ##
1202 _ASBOX
1203     echo
1204     # The following way of writing the cache mishandles newlines in values,
1205 {
1206   (set) 2>&1 |
1207     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1208     *ac_space=\ *)
1209       sed -n \
1210         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1211           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1212       ;;
1213     *)
1214       sed -n \
1215         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1216       ;;
1217     esac;
1218 }
1219     echo
1220     if test -s confdefs.h; then
1221       cat <<\_ASBOX
1222 ## ----------- ##
1223 ## confdefs.h. ##
1224 ## ----------- ##
1225 _ASBOX
1226       echo
1227       sed "/^$/d" confdefs.h
1228       echo
1229     fi
1230     test "$ac_signal" != 0 &&
1231       echo "$as_me: caught signal $ac_signal"
1232     echo "$as_me: exit $exit_status"
1233   } >&5
1234   rm -f core core.* *.core &&
1235   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236     exit $exit_status
1237      ' 0
1238 for ac_signal in 1 2 13 15; do
1239   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 done
1241 ac_signal=0
1242
1243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1244 rm -rf conftest* confdefs.h
1245 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 echo >confdefs.h
1247
1248 # Predefined preprocessor variables.
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 _ACEOF
1263
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 _ACEOF
1268
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 _ACEOF
1273
1274
1275 # Let the site file select an alternate cache file if it wants to.
1276 # Prefer explicitly selected file to automatically selected ones.
1277 if test -z "$CONFIG_SITE"; then
1278   if test "x$prefix" != xNONE; then
1279     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280   else
1281     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282   fi
1283 fi
1284 for ac_site_file in $CONFIG_SITE; do
1285   if test -r "$ac_site_file"; then
1286     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1287 echo "$as_me: loading site script $ac_site_file" >&6;}
1288     sed 's/^/| /' "$ac_site_file" >&5
1289     . "$ac_site_file"
1290   fi
1291 done
1292
1293 if test -r "$cache_file"; then
1294   # Some versions of bash will fail to source /dev/null (special
1295   # files actually), so we avoid doing that.
1296   if test -f "$cache_file"; then
1297     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1298 echo "$as_me: loading cache $cache_file" >&6;}
1299     case $cache_file in
1300       [\\/]* | ?:[\\/]* ) . $cache_file;;
1301       *)                      . ./$cache_file;;
1302     esac
1303   fi
1304 else
1305   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1306 echo "$as_me: creating cache $cache_file" >&6;}
1307   >$cache_file
1308 fi
1309
1310 # Check that the precious variables saved in the cache have kept the same
1311 # value.
1312 ac_cache_corrupted=false
1313 for ac_var in `(set) 2>&1 |
1314                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1315   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1316   eval ac_new_set=\$ac_env_${ac_var}_set
1317   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1318   eval ac_new_val="\$ac_env_${ac_var}_value"
1319   case $ac_old_set,$ac_new_set in
1320     set,)
1321       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1323       ac_cache_corrupted=: ;;
1324     ,set)
1325       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1327       ac_cache_corrupted=: ;;
1328     ,);;
1329     *)
1330       if test "x$ac_old_val" != "x$ac_new_val"; then
1331         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1333         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1334 echo "$as_me:   former value:  $ac_old_val" >&2;}
1335         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1336 echo "$as_me:   current value: $ac_new_val" >&2;}
1337         ac_cache_corrupted=:
1338       fi;;
1339   esac
1340   # Pass precious variables to config.status.
1341   if test "$ac_new_set" = set; then
1342     case $ac_new_val in
1343     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1344       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1345     *) ac_arg=$ac_var=$ac_new_val ;;
1346     esac
1347     case " $ac_configure_args " in
1348       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1349       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350     esac
1351   fi
1352 done
1353 if $ac_cache_corrupted; then
1354   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1355 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1356   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1357 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1358    { (exit 1); exit 1; }; }
1359 fi
1360
1361 ac_ext=c
1362 ac_cpp='$CPP $CPPFLAGS'
1363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 ac_config_headers="$ac_config_headers config.h"
1386
1387 ac_config_commands="$ac_config_commands default-1"
1388
1389 ac_aux_dir=
1390 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1391   if test -f $ac_dir/install-sh; then
1392     ac_aux_dir=$ac_dir
1393     ac_install_sh="$ac_aux_dir/install-sh -c"
1394     break
1395   elif test -f $ac_dir/install.sh; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/install.sh -c"
1398     break
1399   elif test -f $ac_dir/shtool; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/shtool install -c"
1402     break
1403   fi
1404 done
1405 if test -z "$ac_aux_dir"; then
1406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1407 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1408    { (exit 1); exit 1; }; }
1409 fi
1410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1412 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413
1414 # Make sure we can run config.sub.
1415 $ac_config_sub sun4 >/dev/null 2>&1 ||
1416   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1417 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1418    { (exit 1); exit 1; }; }
1419
1420 echo "$as_me:$LINENO: checking build system type" >&5
1421 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1422 if test "${ac_cv_build+set}" = set; then
1423   echo $ECHO_N "(cached) $ECHO_C" >&6
1424 else
1425   ac_cv_build_alias=$build_alias
1426 test -z "$ac_cv_build_alias" &&
1427   ac_cv_build_alias=`$ac_config_guess`
1428 test -z "$ac_cv_build_alias" &&
1429   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1430 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1431    { (exit 1); exit 1; }; }
1432 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1433   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1434 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1435    { (exit 1); exit 1; }; }
1436
1437 fi
1438 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1439 echo "${ECHO_T}$ac_cv_build" >&6
1440 build=$ac_cv_build
1441 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1442 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1443 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1444
1445
1446 echo "$as_me:$LINENO: checking host system type" >&5
1447 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1448 if test "${ac_cv_host+set}" = set; then
1449   echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451   ac_cv_host_alias=$host_alias
1452 test -z "$ac_cv_host_alias" &&
1453   ac_cv_host_alias=$ac_cv_build_alias
1454 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1455   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1456 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1457    { (exit 1); exit 1; }; }
1458
1459 fi
1460 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1461 echo "${ECHO_T}$ac_cv_host" >&6
1462 host=$ac_cv_host
1463 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1464 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1465 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1466
1467
1468
1469 LIBXML_MAJOR_VERSION=2
1470 LIBXML_MINOR_VERSION=5
1471 LIBXML_MICRO_VERSION=4
1472 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION
1473 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
1474
1475 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
1476
1477
1478
1479
1480
1481
1482
1483
1484 VERSION=${LIBXML_VERSION}
1485
1486 am__api_version="1.4"
1487 # Find a good install program.  We prefer a C program (faster),
1488 # so one script is as good as another.  But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # ./install, which can be erroneously created by make from ./install.sh.
1499 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1500 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1501 if test -z "$INSTALL"; then
1502 if test "${ac_cv_path_install+set}" = set; then
1503   echo $ECHO_N "(cached) $ECHO_C" >&6
1504 else
1505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 for as_dir in $PATH
1507 do
1508   IFS=$as_save_IFS
1509   test -z "$as_dir" && as_dir=.
1510   # Account for people who put trailing slashes in PATH elements.
1511 case $as_dir/ in
1512   ./ | .// | /cC/* | \
1513   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1514   /usr/ucb/* ) ;;
1515   *)
1516     # OSF1 and SCO ODT 3.0 have their own names for install.
1517     # Don't use installbsd from OSF since it installs stuff as root
1518     # by default.
1519     for ac_prog in ginstall scoinst install; do
1520       for ac_exec_ext in '' $ac_executable_extensions; do
1521         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1522           if test $ac_prog = install &&
1523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1524             # AIX install.  It has an incompatible calling convention.
1525             :
1526           elif test $ac_prog = install &&
1527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1528             # program-specific install script used by HP pwplus--don't use.
1529             :
1530           else
1531             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1532             break 3
1533           fi
1534         fi
1535       done
1536     done
1537     ;;
1538 esac
1539 done
1540
1541
1542 fi
1543   if test "${ac_cv_path_install+set}" = set; then
1544     INSTALL=$ac_cv_path_install
1545   else
1546     # As a last resort, use the slow shell script.  We don't cache a
1547     # path for INSTALL within a source directory, because that will
1548     # break other packages using the cache if that directory is
1549     # removed, or if the path is relative.
1550     INSTALL=$ac_install_sh
1551   fi
1552 fi
1553 echo "$as_me:$LINENO: result: $INSTALL" >&5
1554 echo "${ECHO_T}$INSTALL" >&6
1555
1556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1557 # It thinks the first close brace ends the variable substitution.
1558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1559
1560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1561
1562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1563
1564 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1565 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1566 # Just in case
1567 sleep 1
1568 echo timestamp > conftestfile
1569 # Do `set' in a subshell so we don't clobber the current shell's
1570 # arguments.  Must try -L first in case configure is actually a
1571 # symlink; some systems play weird games with the mod time of symlinks
1572 # (eg FreeBSD returns the mod time of the symlink's containing
1573 # directory).
1574 if (
1575    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1576    if test "$*" = "X"; then
1577       # -L didn't work.
1578       set X `ls -t $srcdir/configure conftestfile`
1579    fi
1580    if test "$*" != "X $srcdir/configure conftestfile" \
1581       && test "$*" != "X conftestfile $srcdir/configure"; then
1582
1583       # If neither matched, then we have a broken ls.  This can happen
1584       # if, for instance, CONFIG_SHELL is bash and it inherits a
1585       # broken ls alias from the environment.  This has actually
1586       # happened.  Such a system could not be considered "sane".
1587       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1588 alias in your environment" >&5
1589 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1590 alias in your environment" >&2;}
1591    { (exit 1); exit 1; }; }
1592    fi
1593
1594    test "$2" = conftestfile
1595    )
1596 then
1597    # Ok.
1598    :
1599 else
1600    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1601 Check your system clock" >&5
1602 echo "$as_me: error: newly created file is older than distributed files!
1603 Check your system clock" >&2;}
1604    { (exit 1); exit 1; }; }
1605 fi
1606 rm -f conftest*
1607 echo "$as_me:$LINENO: result: yes" >&5
1608 echo "${ECHO_T}yes" >&6
1609 test "$program_prefix" != NONE &&
1610   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1611 # Use a double $ so make ignores it.
1612 test "$program_suffix" != NONE &&
1613   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1614 # Double any \ or $.  echo might interpret backslashes.
1615 # By default was `s,x,x', remove it if useless.
1616 cat <<\_ACEOF >conftest.sed
1617 s/[\\$]/&&/g;s/;s,x,x,$//
1618 _ACEOF
1619 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1620 rm conftest.sed
1621
1622 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1623 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1624 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1625 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1626   echo $ECHO_N "(cached) $ECHO_C" >&6
1627 else
1628   cat >conftest.make <<\_ACEOF
1629 all:
1630         @echo 'ac_maketemp="${MAKE}"'
1631 _ACEOF
1632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1633 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1634 if test -n "$ac_maketemp"; then
1635   eval ac_cv_prog_make_${ac_make}_set=yes
1636 else
1637   eval ac_cv_prog_make_${ac_make}_set=no
1638 fi
1639 rm -f conftest.make
1640 fi
1641 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1642   echo "$as_me:$LINENO: result: yes" >&5
1643 echo "${ECHO_T}yes" >&6
1644   SET_MAKE=
1645 else
1646   echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1648   SET_MAKE="MAKE=${MAKE-make}"
1649 fi
1650
1651
1652 PACKAGE=libxml2
1653
1654 VERSION=$VERSION
1655
1656 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1657   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1658 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1659    { (exit 1); exit 1; }; }
1660 fi
1661
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE "$PACKAGE"
1664 _ACEOF
1665
1666
1667 cat >>confdefs.h <<_ACEOF
1668 #define VERSION "$VERSION"
1669 _ACEOF
1670
1671
1672
1673 missing_dir=`cd $ac_aux_dir && pwd`
1674 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1675 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1676 # Run test in a subshell; some versions of sh will print an error if
1677 # an executable is not found, even if stderr is redirected.
1678 # Redirect stdin to placate older versions of autoconf.  Sigh.
1679 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1680    ACLOCAL=aclocal-${am__api_version}
1681    echo "$as_me:$LINENO: result: found" >&5
1682 echo "${ECHO_T}found" >&6
1683 else
1684    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1685    echo "$as_me:$LINENO: result: missing" >&5
1686 echo "${ECHO_T}missing" >&6
1687 fi
1688
1689 echo "$as_me:$LINENO: checking for working autoconf" >&5
1690 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1691 # Run test in a subshell; some versions of sh will print an error if
1692 # an executable is not found, even if stderr is redirected.
1693 # Redirect stdin to placate older versions of autoconf.  Sigh.
1694 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1695    AUTOCONF=autoconf
1696    echo "$as_me:$LINENO: result: found" >&5
1697 echo "${ECHO_T}found" >&6
1698 else
1699    AUTOCONF="$missing_dir/missing autoconf"
1700    echo "$as_me:$LINENO: result: missing" >&5
1701 echo "${ECHO_T}missing" >&6
1702 fi
1703
1704 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1705 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1706 # Run test in a subshell; some versions of sh will print an error if
1707 # an executable is not found, even if stderr is redirected.
1708 # Redirect stdin to placate older versions of autoconf.  Sigh.
1709 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1710    AUTOMAKE=automake-${am__api_version}
1711    echo "$as_me:$LINENO: result: found" >&5
1712 echo "${ECHO_T}found" >&6
1713 else
1714    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1715    echo "$as_me:$LINENO: result: missing" >&5
1716 echo "${ECHO_T}missing" >&6
1717 fi
1718
1719 echo "$as_me:$LINENO: checking for working autoheader" >&5
1720 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1721 # Run test in a subshell; some versions of sh will print an error if
1722 # an executable is not found, even if stderr is redirected.
1723 # Redirect stdin to placate older versions of autoconf.  Sigh.
1724 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1725    AUTOHEADER=autoheader
1726    echo "$as_me:$LINENO: result: found" >&5
1727 echo "${ECHO_T}found" >&6
1728 else
1729    AUTOHEADER="$missing_dir/missing autoheader"
1730    echo "$as_me:$LINENO: result: missing" >&5
1731 echo "${ECHO_T}missing" >&6
1732 fi
1733
1734 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1735 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1736 # Run test in a subshell; some versions of sh will print an error if
1737 # an executable is not found, even if stderr is redirected.
1738 # Redirect stdin to placate older versions of autoconf.  Sigh.
1739 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1740    MAKEINFO=makeinfo
1741    echo "$as_me:$LINENO: result: found" >&5
1742 echo "${ECHO_T}found" >&6
1743 else
1744    MAKEINFO="$missing_dir/missing makeinfo"
1745    echo "$as_me:$LINENO: result: missing" >&5
1746 echo "${ECHO_T}missing" >&6
1747 fi
1748
1749
1750
1751
1752 # Check whether --with-html-dir or --without-html-dir was given.
1753 if test "${with_html_dir+set}" = set; then
1754   withval="$with_html_dir"
1755
1756 fi;
1757
1758 ac_ext=c
1759 ac_cpp='$CPP $CPPFLAGS'
1760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1763 if test -n "$ac_tool_prefix"; then
1764   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799 fi
1800 if test -z "$ac_cv_prog_CC"; then
1801   ac_ct_CC=$CC
1802   # Extract the first word of "gcc", so it can be a program name with args.
1803 set dummy gcc; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   if test -n "$ac_ct_CC"; then
1810   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815   IFS=$as_save_IFS
1816   test -z "$as_dir" && as_dir=.
1817   for ac_exec_ext in '' $ac_executable_extensions; do
1818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819     ac_cv_prog_ac_ct_CC="gcc"
1820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821     break 2
1822   fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1829 if test -n "$ac_ct_CC"; then
1830   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1831 echo "${ECHO_T}$ac_ct_CC" >&6
1832 else
1833   echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837   CC=$ac_ct_CC
1838 else
1839   CC="$ac_cv_prog_CC"
1840 fi
1841
1842 if test -z "$CC"; then
1843   if test -n "$ac_tool_prefix"; then
1844   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1845 set dummy ${ac_tool_prefix}cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$CC"; then
1852   ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859   for ac_exec_ext in '' $ac_executable_extensions; do
1860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861     ac_cv_prog_CC="${ac_tool_prefix}cc"
1862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863     break 2
1864   fi
1865 done
1866 done
1867
1868 fi
1869 fi
1870 CC=$ac_cv_prog_CC
1871 if test -n "$CC"; then
1872   echo "$as_me:$LINENO: result: $CC" >&5
1873 echo "${ECHO_T}$CC" >&6
1874 else
1875   echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 fi
1878
1879 fi
1880 if test -z "$ac_cv_prog_CC"; then
1881   ac_ct_CC=$CC
1882   # Extract the first word of "cc", so it can be a program name with args.
1883 set dummy cc; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   if test -n "$ac_ct_CC"; then
1890   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1891 else
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 for as_dir in $PATH
1894 do
1895   IFS=$as_save_IFS
1896   test -z "$as_dir" && as_dir=.
1897   for ac_exec_ext in '' $ac_executable_extensions; do
1898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899     ac_cv_prog_ac_ct_CC="cc"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 fi
1907 fi
1908 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1909 if test -n "$ac_ct_CC"; then
1910   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1911 echo "${ECHO_T}$ac_ct_CC" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   CC=$ac_ct_CC
1918 else
1919   CC="$ac_cv_prog_CC"
1920 fi
1921
1922 fi
1923 if test -z "$CC"; then
1924   # Extract the first word of "cc", so it can be a program name with args.
1925 set dummy cc; ac_word=$2
1926 echo "$as_me:$LINENO: checking for $ac_word" >&5
1927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928 if test "${ac_cv_prog_CC+set}" = set; then
1929   echo $ECHO_N "(cached) $ECHO_C" >&6
1930 else
1931   if test -n "$CC"; then
1932   ac_cv_prog_CC="$CC" # Let the user override the test.
1933 else
1934   ac_prog_rejected=no
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1943        ac_prog_rejected=yes
1944        continue
1945      fi
1946     ac_cv_prog_CC="cc"
1947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948     break 2
1949   fi
1950 done
1951 done
1952
1953 if test $ac_prog_rejected = yes; then
1954   # We found a bogon in the path, so make sure we never use it.
1955   set dummy $ac_cv_prog_CC
1956   shift
1957   if test $# != 0; then
1958     # We chose a different compiler from the bogus one.
1959     # However, it has the same basename, so the bogon will be chosen
1960     # first if we set CC to just the basename; use the full file name.
1961     shift
1962     set dummy "$as_dir/$ac_word" ${1+"$@"}
1963     shift
1964     ac_cv_prog_CC="$@"
1965   fi
1966 fi
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971   echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978 fi
1979 if test -z "$CC"; then
1980   if test -n "$ac_tool_prefix"; then
1981   for ac_prog in cl
1982   do
1983     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988   echo $ECHO_N "(cached) $ECHO_C" >&6
1989 else
1990   if test -n "$CC"; then
1991   ac_cv_prog_CC="$CC" # Let the user override the test.
1992 else
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1995 do
1996   IFS=$as_save_IFS
1997   test -z "$as_dir" && as_dir=.
1998   for ac_exec_ext in '' $ac_executable_extensions; do
1999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002     break 2
2003   fi
2004 done
2005 done
2006
2007 fi
2008 fi
2009 CC=$ac_cv_prog_CC
2010 if test -n "$CC"; then
2011   echo "$as_me:$LINENO: result: $CC" >&5
2012 echo "${ECHO_T}$CC" >&6
2013 else
2014   echo "$as_me:$LINENO: result: no" >&5
2015 echo "${ECHO_T}no" >&6
2016 fi
2017
2018     test -n "$CC" && break
2019   done
2020 fi
2021 if test -z "$CC"; then
2022   ac_ct_CC=$CC
2023   for ac_prog in cl
2024 do
2025   # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   if test -n "$ac_ct_CC"; then
2033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038   IFS=$as_save_IFS
2039   test -z "$as_dir" && as_dir=.
2040   for ac_exec_ext in '' $ac_executable_extensions; do
2041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042     ac_cv_prog_ac_ct_CC="$ac_prog"
2043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044     break 2
2045   fi
2046 done
2047 done
2048
2049 fi
2050 fi
2051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2052 if test -n "$ac_ct_CC"; then
2053   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2054 echo "${ECHO_T}$ac_ct_CC" >&6
2055 else
2056   echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6
2058 fi
2059
2060   test -n "$ac_ct_CC" && break
2061 done
2062
2063   CC=$ac_ct_CC
2064 fi
2065
2066 fi
2067
2068
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2070 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2071    { (exit 1); exit 1; }; }
2072
2073 # Provide some information about the compiler.
2074 echo "$as_me:$LINENO:" \
2075      "checking for C compiler version" >&5
2076 ac_compiler=`set X $ac_compile; echo $2`
2077 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2078   (eval $ac_compiler --version </dev/null >&5) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }
2082 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2083   (eval $ac_compiler -v </dev/null >&5) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }
2087 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2088   (eval $ac_compiler -V </dev/null >&5) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }
2092
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line $LINENO "configure"
2095 #include "confdefs.h"
2096
2097 #ifdef F77_DUMMY_MAIN
2098 #  ifdef __cplusplus
2099      extern "C"
2100 #  endif
2101    int F77_DUMMY_MAIN() { return 1; }
2102 #endif
2103 int
2104 main ()
2105 {
2106
2107   ;
2108   return 0;
2109 }
2110 _ACEOF
2111 ac_clean_files_save=$ac_clean_files
2112 ac_clean_files="$ac_clean_files a.out a.exe"
2113 # Try to create an executable without -o first, disregard a.out.
2114 # It will help us diagnose broken compilers, and finding out an intuition
2115 # of exeext.
2116 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2117 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2118 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120   (eval $ac_link_default) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; then
2124   # Find the output, starting from the most likely.  This scheme is
2125 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126 # resort.
2127
2128 # Be careful to initialize this variable, since it used to be cached.
2129 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130 ac_cv_exeext=
2131 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2132                 ls a.out conftest 2>/dev/null;
2133                 ls a.* conftest.* 2>/dev/null`; do
2134   case $ac_file in
2135     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2136     a.out ) # We found the default executable, but exeext='' is most
2137             # certainly right.
2138             break;;
2139     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2140           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2141           export ac_cv_exeext
2142           break;;
2143     * ) break;;
2144   esac
2145 done
2146 else
2147   echo "$as_me: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2150 echo "$as_me: error: C compiler cannot create executables" >&2;}
2151    { (exit 77); exit 77; }; }
2152 fi
2153
2154 ac_exeext=$ac_cv_exeext
2155 echo "$as_me:$LINENO: result: $ac_file" >&5
2156 echo "${ECHO_T}$ac_file" >&6
2157
2158 # Check the compiler produces executables we can run.  If not, either
2159 # the compiler is broken, or we cross compile.
2160 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2161 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2162 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2163 # If not cross compiling, check that we can run a simple program.
2164 if test "$cross_compiling" != yes; then
2165   if { ac_try='./$ac_file'
2166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2167   (eval $ac_try) 2>&5
2168   ac_status=$?
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); }; }; then
2171     cross_compiling=no
2172   else
2173     if test "$cross_compiling" = maybe; then
2174         cross_compiling=yes
2175     else
2176         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2177 If you meant to cross compile, use \`--host'." >&5
2178 echo "$as_me: error: cannot run C compiled programs.
2179 If you meant to cross compile, use \`--host'." >&2;}
2180    { (exit 1); exit 1; }; }
2181     fi
2182   fi
2183 fi
2184 echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6
2186
2187 rm -f a.out a.exe conftest$ac_cv_exeext
2188 ac_clean_files=$ac_clean_files_save
2189 # Check the compiler produces executables we can run.  If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194 echo "${ECHO_T}$cross_compiling" >&6
2195
2196 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199   (eval $ac_link) 2>&5
2200   ac_status=$?
2201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202   (exit $ac_status); }; then
2203   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2204 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2205 # work properly (i.e., refer to `conftest.exe'), while it won't with
2206 # `rm'.
2207 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2208   case $ac_file in
2209     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2210     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2211           export ac_cv_exeext
2212           break;;
2213     * ) break;;
2214   esac
2215 done
2216 else
2217   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2218 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2219    { (exit 1); exit 1; }; }
2220 fi
2221
2222 rm -f conftest$ac_cv_exeext
2223 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2224 echo "${ECHO_T}$ac_cv_exeext" >&6
2225
2226 rm -f conftest.$ac_ext
2227 EXEEXT=$ac_cv_exeext
2228 ac_exeext=$EXEEXT
2229 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2230 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2231 if test "${ac_cv_objext+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   cat >conftest.$ac_ext <<_ACEOF
2235 #line $LINENO "configure"
2236 #include "confdefs.h"
2237
2238 #ifdef F77_DUMMY_MAIN
2239 #  ifdef __cplusplus
2240      extern "C"
2241 #  endif
2242    int F77_DUMMY_MAIN() { return 1; }
2243 #endif
2244 int
2245 main ()
2246 {
2247
2248   ;
2249   return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.o conftest.obj
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254   (eval $ac_compile) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; then
2258   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2259   case $ac_file in
2260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2261     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2262        break;;
2263   esac
2264 done
2265 else
2266   echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2269 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2270    { (exit 1); exit 1; }; }
2271 fi
2272
2273 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2274 fi
2275 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2276 echo "${ECHO_T}$ac_cv_objext" >&6
2277 OBJEXT=$ac_cv_objext
2278 ac_objext=$OBJEXT
2279 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2280 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2281 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2282   echo $ECHO_N "(cached) $ECHO_C" >&6
2283 else
2284   cat >conftest.$ac_ext <<_ACEOF
2285 #line $LINENO "configure"
2286 #include "confdefs.h"
2287
2288 #ifdef F77_DUMMY_MAIN
2289 #  ifdef __cplusplus
2290      extern "C"
2291 #  endif
2292    int F77_DUMMY_MAIN() { return 1; }
2293 #endif
2294 int
2295 main ()
2296 {
2297 #ifndef __GNUC__
2298        choke me
2299 #endif
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   ac_compiler_gnu=yes
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 ac_compiler_gnu=no
2322 fi
2323 rm -f conftest.$ac_objext conftest.$ac_ext
2324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2325
2326 fi
2327 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2328 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2329 GCC=`test $ac_compiler_gnu = yes && echo yes`
2330 ac_test_CFLAGS=${CFLAGS+set}
2331 ac_save_CFLAGS=$CFLAGS
2332 CFLAGS="-g"
2333 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2334 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2335 if test "${ac_cv_prog_cc_g+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 #include "confdefs.h"
2341
2342 #ifdef F77_DUMMY_MAIN
2343 #  ifdef __cplusplus
2344      extern "C"
2345 #  endif
2346    int F77_DUMMY_MAIN() { return 1; }
2347 #endif
2348 int
2349 main ()
2350 {
2351
2352   ;
2353   return 0;
2354 }
2355 _ACEOF
2356 rm -f conftest.$ac_objext
2357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358   (eval $ac_compile) 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); } &&
2362          { ac_try='test -s conftest.$ac_objext'
2363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364   (eval $ac_try) 2>&5
2365   ac_status=$?
2366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367   (exit $ac_status); }; }; then
2368   ac_cv_prog_cc_g=yes
2369 else
2370   echo "$as_me: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2372 ac_cv_prog_cc_g=no
2373 fi
2374 rm -f conftest.$ac_objext conftest.$ac_ext
2375 fi
2376 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2378 if test "$ac_test_CFLAGS" = set; then
2379   CFLAGS=$ac_save_CFLAGS
2380 elif test $ac_cv_prog_cc_g = yes; then
2381   if test "$GCC" = yes; then
2382     CFLAGS="-g -O2"
2383   else
2384     CFLAGS="-g"
2385   fi
2386 else
2387   if test "$GCC" = yes; then
2388     CFLAGS="-O2"
2389   else
2390     CFLAGS=
2391   fi
2392 fi
2393 # Some people use a C++ compiler to compile C.  Since we use `exit',
2394 # in C++ we need to declare it.  In case someone uses the same compiler
2395 # for both compiling C and C++ we need to have the C++ compiler decide
2396 # the declaration of exit, since it's the most demanding environment.
2397 cat >conftest.$ac_ext <<_ACEOF
2398 #ifndef __cplusplus
2399   choke me
2400 #endif
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -s conftest.$ac_objext'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414   for ac_declaration in \
2415    ''\
2416    '#include <stdlib.h>' \
2417    'extern "C" void std::exit (int) throw (); using std::exit;' \
2418    'extern "C" void std::exit (int); using std::exit;' \
2419    'extern "C" void exit (int) throw ();' \
2420    'extern "C" void exit (int);' \
2421    'void exit (int);'
2422 do
2423   cat >conftest.$ac_ext <<_ACEOF
2424 #line $LINENO "configure"
2425 #include "confdefs.h"
2426 #include <stdlib.h>
2427 $ac_declaration
2428 #ifdef F77_DUMMY_MAIN
2429 #  ifdef __cplusplus
2430      extern "C"
2431 #  endif
2432    int F77_DUMMY_MAIN() { return 1; }
2433 #endif
2434 int
2435 main ()
2436 {
2437 exit (42);
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444   (eval $ac_compile) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   :
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 cat conftest.$ac_ext >&5
2458 continue
2459 fi
2460 rm -f conftest.$ac_objext conftest.$ac_ext
2461   cat >conftest.$ac_ext <<_ACEOF
2462 #line $LINENO "configure"
2463 #include "confdefs.h"
2464 $ac_declaration
2465 #ifdef F77_DUMMY_MAIN
2466 #  ifdef __cplusplus
2467      extern "C"
2468 #  endif
2469    int F77_DUMMY_MAIN() { return 1; }
2470 #endif
2471 int
2472 main ()
2473 {
2474 exit (42);
2475   ;
2476   return 0;
2477 }
2478 _ACEOF
2479 rm -f conftest.$ac_objext
2480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481   (eval $ac_compile) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -s conftest.$ac_objext'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; }; then
2491   break
2492 else
2493   echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 done
2498 rm -f conftest*
2499 if test -n "$ac_declaration"; then
2500   echo '#ifdef __cplusplus' >>confdefs.h
2501   echo $ac_declaration      >>confdefs.h
2502   echo '#endif'             >>confdefs.h
2503 fi
2504
2505 else
2506   echo "$as_me: failed program was:" >&5
2507 cat conftest.$ac_ext >&5
2508 fi
2509 rm -f conftest.$ac_objext conftest.$ac_ext
2510 ac_ext=c
2511 ac_cpp='$CPP $CPPFLAGS'
2512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515
2516 # Find a good install program.  We prefer a C program (faster),
2517 # so one script is as good as another.  But avoid the broken or
2518 # incompatible versions:
2519 # SysV /etc/install, /usr/sbin/install
2520 # SunOS /usr/etc/install
2521 # IRIX /sbin/install
2522 # AIX /bin/install
2523 # AmigaOS /C/install, which installs bootblocks on floppy discs
2524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527 # ./install, which can be erroneously created by make from ./install.sh.
2528 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2529 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2530 if test -z "$INSTALL"; then
2531 if test "${ac_cv_path_install+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 for as_dir in $PATH
2536 do
2537   IFS=$as_save_IFS
2538   test -z "$as_dir" && as_dir=.
2539   # Account for people who put trailing slashes in PATH elements.
2540 case $as_dir/ in
2541   ./ | .// | /cC/* | \
2542   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2543   /usr/ucb/* ) ;;
2544   *)
2545     # OSF1 and SCO ODT 3.0 have their own names for install.
2546     # Don't use installbsd from OSF since it installs stuff as root
2547     # by default.
2548     for ac_prog in ginstall scoinst install; do
2549       for ac_exec_ext in '' $ac_executable_extensions; do
2550         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2551           if test $ac_prog = install &&
2552             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2553             # AIX install.  It has an incompatible calling convention.
2554             :
2555           elif test $ac_prog = install &&
2556             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2557             # program-specific install script used by HP pwplus--don't use.
2558             :
2559           else
2560             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2561             break 3
2562           fi
2563         fi
2564       done
2565     done
2566     ;;
2567 esac
2568 done
2569
2570
2571 fi
2572   if test "${ac_cv_path_install+set}" = set; then
2573     INSTALL=$ac_cv_path_install
2574   else
2575     # As a last resort, use the slow shell script.  We don't cache a
2576     # path for INSTALL within a source directory, because that will
2577     # break other packages using the cache if that directory is
2578     # removed, or if the path is relative.
2579     INSTALL=$ac_install_sh
2580   fi
2581 fi
2582 echo "$as_me:$LINENO: result: $INSTALL" >&5
2583 echo "${ECHO_T}$INSTALL" >&6
2584
2585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2586 # It thinks the first close brace ends the variable substitution.
2587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2588
2589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2590
2591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2592
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2598 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2599 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2600 # On Suns, sometimes $CPP names a directory.
2601 if test -n "$CPP" && test -d "$CPP"; then
2602   CPP=
2603 fi
2604 if test -z "$CPP"; then
2605   if test "${ac_cv_prog_CPP+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608       # Double quotes because CPP needs to be expanded
2609     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2610     do
2611       ac_preproc_ok=false
2612 for ac_c_preproc_warn_flag in '' yes
2613 do
2614   # Use a header file that comes with gcc, so configuring glibc
2615   # with a fresh cross-compiler works.
2616   # On the NeXT, cc -E runs the code through the compiler's parser,
2617   # not just through cpp. "Syntax error" is here to catch this case.
2618   cat >conftest.$ac_ext <<_ACEOF
2619 #line $LINENO "configure"
2620 #include "confdefs.h"
2621 #include <assert.h>
2622                      Syntax error
2623 _ACEOF
2624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2625   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2626   ac_status=$?
2627   egrep -v '^ *\+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } >/dev/null; then
2632   if test -s conftest.err; then
2633     ac_cpp_err=$ac_c_preproc_warn_flag
2634   else
2635     ac_cpp_err=
2636   fi
2637 else
2638   ac_cpp_err=yes
2639 fi
2640 if test -z "$ac_cpp_err"; then
2641   :
2642 else
2643   echo "$as_me: failed program was:" >&5
2644   cat conftest.$ac_ext >&5
2645   # Broken: fails on valid input.
2646 continue
2647 fi
2648 rm -f conftest.err conftest.$ac_ext
2649
2650   # OK, works on sane cases.  Now check whether non-existent headers
2651   # can be detected and how.
2652   cat >conftest.$ac_ext <<_ACEOF
2653 #line $LINENO "configure"
2654 #include "confdefs.h"
2655 #include <ac_nonexistent.h>
2656 _ACEOF
2657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2659   ac_status=$?
2660   egrep -v '^ *\+' conftest.er1 >conftest.err
2661   rm -f conftest.er1
2662   cat conftest.err >&5
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); } >/dev/null; then
2665   if test -s conftest.err; then
2666     ac_cpp_err=$ac_c_preproc_warn_flag
2667   else
2668     ac_cpp_err=
2669   fi
2670 else
2671   ac_cpp_err=yes
2672 fi
2673 if test -z "$ac_cpp_err"; then
2674   # Broken: success on invalid input.
2675 continue
2676 else
2677   echo "$as_me: failed program was:" >&5
2678   cat conftest.$ac_ext >&5
2679   # Passes both tests.
2680 ac_preproc_ok=:
2681 break
2682 fi
2683 rm -f conftest.err conftest.$ac_ext
2684
2685 done
2686 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2687 rm -f conftest.err conftest.$ac_ext
2688 if $ac_preproc_ok; then
2689   break
2690 fi
2691
2692     done
2693     ac_cv_prog_CPP=$CPP
2694
2695 fi
2696   CPP=$ac_cv_prog_CPP
2697 else
2698   ac_cv_prog_CPP=$CPP
2699 fi
2700 echo "$as_me:$LINENO: result: $CPP" >&5
2701 echo "${ECHO_T}$CPP" >&6
2702 ac_preproc_ok=false
2703 for ac_c_preproc_warn_flag in '' yes
2704 do
2705   # Use a header file that comes with gcc, so configuring glibc
2706   # with a fresh cross-compiler works.
2707   # On the NeXT, cc -E runs the code through the compiler's parser,
2708   # not just through cpp. "Syntax error" is here to catch this case.
2709   cat >conftest.$ac_ext <<_ACEOF
2710 #line $LINENO "configure"
2711 #include "confdefs.h"
2712 #include <assert.h>
2713                      Syntax error
2714 _ACEOF
2715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2717   ac_status=$?
2718   egrep -v '^ *\+' conftest.er1 >conftest.err
2719   rm -f conftest.er1
2720   cat conftest.err >&5
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); } >/dev/null; then
2723   if test -s conftest.err; then
2724     ac_cpp_err=$ac_c_preproc_warn_flag
2725   else
2726     ac_cpp_err=
2727   fi
2728 else
2729   ac_cpp_err=yes
2730 fi
2731 if test -z "$ac_cpp_err"; then
2732   :
2733 else
2734   echo "$as_me: failed program was:" >&5
2735   cat conftest.$ac_ext >&5
2736   # Broken: fails on valid input.
2737 continue
2738 fi
2739 rm -f conftest.err conftest.$ac_ext
2740
2741   # OK, works on sane cases.  Now check whether non-existent headers
2742   # can be detected and how.
2743   cat >conftest.$ac_ext <<_ACEOF
2744 #line $LINENO "configure"
2745 #include "confdefs.h"
2746 #include <ac_nonexistent.h>
2747 _ACEOF
2748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750   ac_status=$?
2751   egrep -v '^ *\+' conftest.er1 >conftest.err
2752   rm -f conftest.er1
2753   cat conftest.err >&5
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); } >/dev/null; then
2756   if test -s conftest.err; then
2757     ac_cpp_err=$ac_c_preproc_warn_flag
2758   else
2759     ac_cpp_err=
2760   fi
2761 else
2762   ac_cpp_err=yes
2763 fi
2764 if test -z "$ac_cpp_err"; then
2765   # Broken: success on invalid input.
2766 continue
2767 else
2768   echo "$as_me: failed program was:" >&5
2769   cat conftest.$ac_ext >&5
2770   # Passes both tests.
2771 ac_preproc_ok=:
2772 break
2773 fi
2774 rm -f conftest.err conftest.$ac_ext
2775
2776 done
2777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2778 rm -f conftest.err conftest.$ac_ext
2779 if $ac_preproc_ok; then
2780   :
2781 else
2782   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2783 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793 # Extract the first word of "rm", so it can be a program name with args.
2794 set dummy rm; ac_word=$2
2795 echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797 if test "${ac_cv_path_RM+set}" = set; then
2798   echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800   case $RM in
2801   [\\/]* | ?:[\\/]*)
2802   ac_cv_path_RM="$RM" # Let the user override the test with a path.
2803   ;;
2804   *)
2805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818
2819   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
2820   ;;
2821 esac
2822 fi
2823 RM=$ac_cv_path_RM
2824
2825 if test -n "$RM"; then
2826   echo "$as_me:$LINENO: result: $RM" >&5
2827 echo "${ECHO_T}$RM" >&6
2828 else
2829   echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2831 fi
2832
2833 # Extract the first word of "mv", so it can be a program name with args.
2834 set dummy mv; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_path_MV+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   case $MV in
2841   [\\/]* | ?:[\\/]*)
2842   ac_cv_path_MV="$MV" # Let the user override the test with a path.
2843   ;;
2844   *)
2845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858
2859   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
2860   ;;
2861 esac
2862 fi
2863 MV=$ac_cv_path_MV
2864
2865 if test -n "$MV"; then
2866   echo "$as_me:$LINENO: result: $MV" >&5
2867 echo "${ECHO_T}$MV" >&6
2868 else
2869   echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2871 fi
2872
2873 # Extract the first word of "tar", so it can be a program name with args.
2874 set dummy tar; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_path_TAR+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   case $TAR in
2881   [\\/]* | ?:[\\/]*)
2882   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
2883   ;;
2884   *)
2885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898
2899   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
2900   ;;
2901 esac
2902 fi
2903 TAR=$ac_cv_path_TAR
2904
2905 if test -n "$TAR"; then
2906   echo "$as_me:$LINENO: result: $TAR" >&5
2907 echo "${ECHO_T}$TAR" >&6
2908 else
2909   echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6
2911 fi
2912
2913
2914
2915
2916
2917
2918 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2919 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2920 if test "${am_cv_prog_cc_stdc+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   am_cv_prog_cc_stdc=no
2924 ac_save_CC="$CC"
2925 # Don't try gcc -ansi; that turns off useful extensions and
2926 # breaks some systems' header files.
2927 # AIX                   -qlanglvl=ansi
2928 # Ultrix and OSF/1      -std1
2929 # HP-UX                 -Aa -D_HPUX_SOURCE
2930 # SVR4                  -Xc -D__EXTENSIONS__
2931 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2932 do
2933   CC="$ac_save_CC $ac_arg"
2934   cat >conftest.$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2936 #include "confdefs.h"
2937 #include <stdarg.h>
2938 #include <stdio.h>
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2945      char **p;
2946      int i;
2947 {
2948   return p[i];
2949 }
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2951 {
2952   char *s;
2953   va_list v;
2954   va_start (v,p);
2955   s = g (p, va_arg (v,int));
2956   va_end (v);
2957   return s;
2958 }
2959 int test (int i, double x);
2960 struct s1 {int (*f) (int a);};
2961 struct s2 {int (*f) (double a);};
2962 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2963 int argc;
2964 char **argv;
2965
2966 #ifdef F77_DUMMY_MAIN
2967 #  ifdef __cplusplus
2968      extern "C"
2969 #  endif
2970    int F77_DUMMY_MAIN() { return 1; }
2971 #endif
2972 int
2973 main ()
2974 {
2975
2976 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984   (eval $ac_compile) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); } &&
2988          { ac_try='test -s conftest.$ac_objext'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; }; then
2994   am_cv_prog_cc_stdc="$ac_arg"; break
2995 else
2996   echo "$as_me: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2998 fi
2999 rm -f conftest.$ac_objext conftest.$ac_ext
3000 done
3001 CC="$ac_save_CC"
3002
3003 fi
3004
3005 if test -z "$am_cv_prog_cc_stdc"; then
3006   echo "$as_me:$LINENO: result: none needed" >&5
3007 echo "${ECHO_T}none needed" >&6
3008 else
3009   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3010 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3011 fi
3012 case "x$am_cv_prog_cc_stdc" in
3013   x|xno) ;;
3014   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3015 esac
3016
3017
3018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3029                   inttypes.h stdint.h unistd.h
3030 do
3031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3032 echo "$as_me:$LINENO: checking for $ac_header" >&5
3033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   cat >conftest.$ac_ext <<_ACEOF
3038 #line $LINENO "configure"
3039 #include "confdefs.h"
3040 $ac_includes_default
3041
3042 #include <$ac_header>
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046   (eval $ac_compile) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); } &&
3050          { ac_try='test -s conftest.$ac_objext'
3051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052   (eval $ac_try) 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }; }; then
3056   eval "$as_ac_Header=yes"
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 eval "$as_ac_Header=no"
3061 fi
3062 rm -f conftest.$ac_objext conftest.$ac_ext
3063 fi
3064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3067   cat >>confdefs.h <<_ACEOF
3068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3069 _ACEOF
3070
3071 fi
3072
3073 done
3074
3075
3076
3077
3078 echo "$as_me:$LINENO: checking for function prototypes" >&5
3079 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3080 if test "$am_cv_prog_cc_stdc" != no; then
3081   echo "$as_me:$LINENO: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6
3083
3084 cat >>confdefs.h <<\_ACEOF
3085 #define PROTOTYPES 1
3086 _ACEOF
3087
3088   U= ANSI2KNR=
3089 else
3090   echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3092   U=_ ANSI2KNR=./ansi2knr
3093   # Ensure some checks needed by ansi2knr itself.
3094   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3095 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3096 if test "${ac_cv_header_stdc+set}" = set; then
3097   echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099   cat >conftest.$ac_ext <<_ACEOF
3100 #line $LINENO "configure"
3101 #include "confdefs.h"
3102 #include <stdlib.h>
3103 #include <stdarg.h>
3104 #include <string.h>
3105 #include <float.h>
3106
3107 _ACEOF
3108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3110   ac_status=$?
3111   egrep -v '^ *\+' conftest.er1 >conftest.err
3112   rm -f conftest.er1
3113   cat conftest.err >&5
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); } >/dev/null; then
3116   if test -s conftest.err; then
3117     ac_cpp_err=$ac_c_preproc_warn_flag
3118   else
3119     ac_cpp_err=
3120   fi
3121 else
3122   ac_cpp_err=yes
3123 fi
3124 if test -z "$ac_cpp_err"; then
3125   ac_cv_header_stdc=yes
3126 else
3127   echo "$as_me: failed program was:" >&5
3128   cat conftest.$ac_ext >&5
3129   ac_cv_header_stdc=no
3130 fi
3131 rm -f conftest.err conftest.$ac_ext
3132
3133 if test $ac_cv_header_stdc = yes; then
3134   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3135   cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 #include "confdefs.h"
3138 #include <string.h>
3139
3140 _ACEOF
3141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3142   egrep "memchr" >/dev/null 2>&1; then
3143   :
3144 else
3145   ac_cv_header_stdc=no
3146 fi
3147 rm -f conftest*
3148
3149 fi
3150
3151 if test $ac_cv_header_stdc = yes; then
3152   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3153   cat >conftest.$ac_ext <<_ACEOF
3154 #line $LINENO "configure"
3155 #include "confdefs.h"
3156 #include <stdlib.h>
3157
3158 _ACEOF
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160   egrep "free" >/dev/null 2>&1; then
3161   :
3162 else
3163   ac_cv_header_stdc=no
3164 fi
3165 rm -f conftest*
3166
3167 fi
3168
3169 if test $ac_cv_header_stdc = yes; then
3170   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3171   if test "$cross_compiling" = yes; then
3172   :
3173 else
3174   cat >conftest.$ac_ext <<_ACEOF
3175 #line $LINENO "configure"
3176 #include "confdefs.h"
3177 #include <ctype.h>
3178 #if ((' ' & 0x0FF) == 0x020)
3179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3181 #else
3182 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3183                      || ('j' <= (c) && (c) <= 'r') \
3184                      || ('s' <= (c) && (c) <= 'z'))
3185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3186 #endif
3187
3188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3189 int
3190 main ()
3191 {
3192   int i;
3193   for (i = 0; i < 256; i++)
3194     if (XOR (islower (i), ISLOWER (i))
3195         || toupper (i) != TOUPPER (i))
3196       exit(2);
3197   exit (0);
3198 }
3199 _ACEOF
3200 rm -f conftest$ac_exeext
3201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3202   (eval $ac_link) 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   :
3212 else
3213   echo "$as_me: program exited with status $ac_status" >&5
3214 echo "$as_me: failed program was:" >&5
3215 cat conftest.$ac_ext >&5
3216 ( exit $ac_status )
3217 ac_cv_header_stdc=no
3218 fi
3219 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3220 fi
3221 fi
3222 fi
3223 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3224 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3225 if test $ac_cv_header_stdc = yes; then
3226
3227 cat >>confdefs.h <<\_ACEOF
3228 #define STDC_HEADERS 1
3229 _ACEOF
3230
3231 fi
3232
3233
3234 for ac_header in string.h
3235 do
3236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3238   echo "$as_me:$LINENO: checking for $ac_header" >&5
3239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 fi
3243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3245 else
3246   # Is the header compilable?
3247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 #include "confdefs.h"
3252 $ac_includes_default
3253 #include <$ac_header>
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257   (eval $ac_compile) 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } &&
3261          { ac_try='test -s conftest.$ac_objext'
3262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263   (eval $ac_try) 2>&5
3264   ac_status=$?
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); }; }; then
3267   ac_header_compiler=yes
3268 else
3269   echo "$as_me: failed program was:" >&5
3270 cat conftest.$ac_ext >&5
3271 ac_header_compiler=no
3272 fi
3273 rm -f conftest.$ac_objext conftest.$ac_ext
3274 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3275 echo "${ECHO_T}$ac_header_compiler" >&6
3276
3277 # Is the header present?
3278 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 #include "confdefs.h"
3283 #include <$ac_header>
3284 _ACEOF
3285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3287   ac_status=$?
3288   egrep -v '^ *\+' conftest.er1 >conftest.err
3289   rm -f conftest.er1
3290   cat conftest.err >&5
3291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292   (exit $ac_status); } >/dev/null; then
3293   if test -s conftest.err; then
3294     ac_cpp_err=$ac_c_preproc_warn_flag
3295   else
3296     ac_cpp_err=
3297   fi
3298 else
3299   ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302   ac_header_preproc=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305   cat conftest.$ac_ext >&5
3306   ac_header_preproc=no
3307 fi
3308 rm -f conftest.err conftest.$ac_ext
3309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3310 echo "${ECHO_T}$ac_header_preproc" >&6
3311
3312 # So?  What about this header?
3313 case $ac_header_compiler:$ac_header_preproc in
3314   yes:no )
3315     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3317     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3319   no:yes )
3320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3322     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3326 esac
3327 echo "$as_me:$LINENO: checking for $ac_header" >&5
3328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   eval "$as_ac_Header=$ac_header_preproc"
3333 fi
3334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3336
3337 fi
3338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3339   cat >>confdefs.h <<_ACEOF
3340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3341 _ACEOF
3342
3343 fi
3344
3345 done
3346
3347 fi
3348
3349 test "x$U" != "x" && { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3350 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3351    { (exit 1); exit 1; }; }
3352
3353 # Check whether --enable-shared or --disable-shared was given.
3354 if test "${enable_shared+set}" = set; then
3355   enableval="$enable_shared"
3356   p=${PACKAGE-default}
3357 case $enableval in
3358 yes) enable_shared=yes ;;
3359 no) enable_shared=no ;;
3360 *)
3361   enable_shared=no
3362   # Look at the argument we got.  We use all the common list separators.
3363   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3364   for pkg in $enableval; do
3365     if test "X$pkg" = "X$p"; then
3366       enable_shared=yes
3367     fi
3368   done
3369   IFS="$ac_save_ifs"
3370   ;;
3371 esac
3372 else
3373   enable_shared=yes
3374 fi;
3375 # Check whether --enable-static or --disable-static was given.
3376 if test "${enable_static+set}" = set; then
3377   enableval="$enable_static"
3378   p=${PACKAGE-default}
3379 case $enableval in
3380 yes) enable_static=yes ;;
3381 no) enable_static=no ;;
3382 *)
3383   enable_static=no
3384   # Look at the argument we got.  We use all the common list separators.
3385   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3386   for pkg in $enableval; do
3387     if test "X$pkg" = "X$p"; then
3388       enable_static=yes
3389     fi
3390   done
3391   IFS="$ac_save_ifs"
3392   ;;
3393 esac
3394 else
3395   enable_static=yes
3396 fi;
3397 # Check whether --enable-fast-install or --disable-fast-install was given.
3398 if test "${enable_fast_install+set}" = set; then
3399   enableval="$enable_fast_install"
3400   p=${PACKAGE-default}
3401 case $enableval in
3402 yes) enable_fast_install=yes ;;
3403 no) enable_fast_install=no ;;
3404 *)
3405   enable_fast_install=no
3406   # Look at the argument we got.  We use all the common list separators.
3407   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3408   for pkg in $enableval; do
3409     if test "X$pkg" = "X$p"; then
3410       enable_fast_install=yes
3411     fi
3412   done
3413   IFS="$ac_save_ifs"
3414   ;;
3415 esac
3416 else
3417   enable_fast_install=yes
3418 fi;
3419 # Find the correct PATH separator.  Usually this is `:', but
3420 # DJGPP uses `;' like DOS.
3421 if test "X${PATH_SEPARATOR+set}" != Xset; then
3422   UNAME=${UNAME-`uname 2>/dev/null`}
3423   case X$UNAME in
3424     *-DOS) lt_cv_sys_path_separator=';' ;;
3425     *)     lt_cv_sys_path_separator=':' ;;
3426   esac
3427   PATH_SEPARATOR=$lt_cv_sys_path_separator
3428 fi
3429
3430
3431 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3432 if test "${with_gnu_ld+set}" = set; then
3433   withval="$with_gnu_ld"
3434   test "$withval" = no || with_gnu_ld=yes
3435 else
3436   with_gnu_ld=no
3437 fi;
3438 ac_prog=ld
3439 if test "$GCC" = yes; then
3440   # Check if gcc -print-prog-name=ld gives a path.
3441   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3442 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3443   case $host in
3444   *-*-mingw*)
3445     # gcc leaves a trailing carriage return which upsets mingw
3446     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3447   *)
3448     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3449   esac
3450   case $ac_prog in
3451     # Accept absolute paths.
3452     [\\/]* | [A-Za-z]:[\\/]*)
3453       re_direlt='/[^/][^/]*/\.\./'
3454       # Canonicalize the path of ld
3455       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3456       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3457         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3458       done
3459       test -z "$LD" && LD="$ac_prog"
3460       ;;
3461   "")
3462     # If it fails, then pretend we aren't using GCC.
3463     ac_prog=ld
3464     ;;
3465   *)
3466     # If it is relative, then search for the first ld in PATH.
3467     with_gnu_ld=unknown
3468     ;;
3469   esac
3470 elif test "$with_gnu_ld" = yes; then
3471   echo "$as_me:$LINENO: checking for GNU ld" >&5
3472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3473 else
3474   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3476 fi
3477 if test "${lt_cv_path_LD+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   if test -z "$LD"; then
3481   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3482   for ac_dir in $PATH; do
3483     test -z "$ac_dir" && ac_dir=.
3484     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3485       lt_cv_path_LD="$ac_dir/$ac_prog"
3486       # Check to see if the program is GNU ld.  I'd rather use --version,
3487       # but apparently some GNU ld's only accept -v.
3488       # Break only if it was the GNU/non-GNU ld that we prefer.
3489       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3490         test "$with_gnu_ld" != no && break
3491       else
3492         test "$with_gnu_ld" != yes && break
3493       fi
3494     fi
3495   done
3496   IFS="$ac_save_ifs"
3497 else
3498   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3499 fi
3500 fi
3501
3502 LD="$lt_cv_path_LD"
3503 if test -n "$LD"; then
3504   echo "$as_me:$LINENO: result: $LD" >&5
3505 echo "${ECHO_T}$LD" >&6
3506 else
3507   echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6
3509 fi
3510 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3511 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3512    { (exit 1); exit 1; }; }
3513 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3514 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3515 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3516   echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3519 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3520   lt_cv_prog_gnu_ld=yes
3521 else
3522   lt_cv_prog_gnu_ld=no
3523 fi
3524 fi
3525 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3526 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3527 with_gnu_ld=$lt_cv_prog_gnu_ld
3528
3529
3530 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3531 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3532 if test "${lt_cv_ld_reload_flag+set}" = set; then
3533   echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535   lt_cv_ld_reload_flag='-r'
3536 fi
3537 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3538 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3539 reload_flag=$lt_cv_ld_reload_flag
3540 test -n "$reload_flag" && reload_flag=" $reload_flag"
3541
3542 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3543 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3544 if test "${lt_cv_path_NM+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -n "$NM"; then
3548   # Let the user override the test.
3549   lt_cv_path_NM="$NM"
3550 else
3551   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3552   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3553     test -z "$ac_dir" && ac_dir=.
3554     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3555     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3556       # Check to see if the nm accepts a BSD-compat flag.
3557       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3558       #   nm: unknown option "B" ignored
3559       # Tru64's nm complains that /dev/null is an invalid object file
3560       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3561         lt_cv_path_NM="$tmp_nm -B"
3562         break
3563       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3564         lt_cv_path_NM="$tmp_nm -p"
3565         break
3566       else
3567         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3568         continue # so that we can try to find one that supports BSD flags
3569       fi
3570     fi
3571   done
3572   IFS="$ac_save_ifs"
3573   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3574 fi
3575 fi
3576
3577 NM="$lt_cv_path_NM"
3578 echo "$as_me:$LINENO: result: $NM" >&5
3579 echo "${ECHO_T}$NM" >&6
3580
3581 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3582 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3583 LN_S=$as_ln_s
3584 if test "$LN_S" = "ln -s"; then
3585   echo "$as_me:$LINENO: result: yes" >&5
3586 echo "${ECHO_T}yes" >&6
3587 else
3588   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3589 echo "${ECHO_T}no, using $LN_S" >&6
3590 fi
3591
3592 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3593 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3594 if test "${lt_cv_deplibs_check_method+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   lt_cv_file_magic_cmd='$MAGIC_CMD'
3598 lt_cv_file_magic_test_file=
3599 lt_cv_deplibs_check_method='unknown'
3600 # Need to set the preceding variable on all platforms that support
3601 # interlibrary dependencies.
3602 # 'none' -- dependencies not supported.
3603 # `unknown' -- same as none, but documents that we really don't know.
3604 # 'pass_all' -- all dependencies passed with no checks.
3605 # 'test_compile' -- check by making test program.
3606 # 'file_magic [[regex]]' -- check by looking for files in library path
3607 # which responds to the $file_magic_cmd with a given egrep regex.
3608 # If you have `file' or equivalent on your system and you're not sure
3609 # whether `pass_all' will *always* work, you probably want this one.
3610
3611 case $host_os in
3612 aix4* | aix5*)
3613   lt_cv_deplibs_check_method=pass_all
3614   ;;
3615
3616 beos*)
3617   lt_cv_deplibs_check_method=pass_all
3618   ;;
3619
3620 bsdi4*)
3621   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3622   lt_cv_file_magic_cmd='/usr/bin/file -L'
3623   lt_cv_file_magic_test_file=/shlib/libc.so
3624   ;;
3625
3626 cygwin* | mingw* | pw32*)
3627   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3628   lt_cv_file_magic_cmd='$OBJDUMP -f'
3629   ;;
3630
3631 darwin* | rhapsody*)
3632   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3633   lt_cv_file_magic_cmd='/usr/bin/file -L'
3634   case "$host_os" in
3635   rhapsody* | darwin1.[012])
3636     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3637     ;;
3638   *) # Darwin 1.3 on
3639     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3640     ;;
3641   esac
3642   ;;
3643
3644 freebsd*)
3645   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3646     case $host_cpu in
3647     i*86 )
3648       # Not sure whether the presence of OpenBSD here was a mistake.
3649       # Let's accept both of them until this is cleared up.
3650       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3651       lt_cv_file_magic_cmd=/usr/bin/file
3652       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3653       ;;
3654     esac
3655   else
3656     lt_cv_deplibs_check_method=pass_all
3657   fi
3658   ;;
3659
3660 gnu*)
3661   lt_cv_deplibs_check_method=pass_all
3662   ;;
3663
3664 hpux10.20*|hpux11*)
3665   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3666   lt_cv_file_magic_cmd=/usr/bin/file
3667   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3668   ;;
3669
3670 irix5* | irix6*)
3671   case $host_os in
3672   irix5*)
3673     # this will be overridden with pass_all, but let us keep it just in case
3674     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3675     ;;
3676   *)
3677     case $LD in
3678     *-32|*"-32 ") libmagic=32-bit;;
3679     *-n32|*"-n32 ") libmagic=N32;;
3680     *-64|*"-64 ") libmagic=64-bit;;
3681     *) libmagic=never-match;;
3682     esac
3683     # this will be overridden with pass_all, but let us keep it just in case
3684     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3685     ;;
3686   esac
3687   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3688   lt_cv_deplibs_check_method=pass_all
3689   ;;
3690
3691 # This must be Linux ELF.
3692 linux-gnu*)
3693   case $host_cpu in
3694   alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3695     lt_cv_deplibs_check_method=pass_all ;;
3696   *)
3697     # glibc up to 2.1.1 does not perform some relocations on ARM
3698     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3699   esac
3700   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3701   ;;
3702
3703 netbsd*)
3704   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3705     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3706   else
3707     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3708   fi
3709   ;;
3710
3711 newos6*)
3712   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3713   lt_cv_file_magic_cmd=/usr/bin/file
3714   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3715   ;;
3716
3717 openbsd*)
3718   lt_cv_file_magic_cmd=/usr/bin/file
3719   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3720   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3721     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3722   else
3723     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3724   fi
3725   ;;
3726
3727 osf3* | osf4* | osf5*)
3728   # this will be overridden with pass_all, but let us keep it just in case
3729   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3730   lt_cv_file_magic_test_file=/shlib/libc.so
3731   lt_cv_deplibs_check_method=pass_all
3732   ;;
3733
3734 sco3.2v5*)
3735   lt_cv_deplibs_check_method=pass_all
3736   ;;
3737
3738 solaris*)
3739   lt_cv_deplibs_check_method=pass_all
3740   lt_cv_file_magic_test_file=/lib/libc.so
3741   ;;
3742
3743 sysv5uw[78]* | sysv4*uw2*)
3744   lt_cv_deplibs_check_method=pass_all
3745   ;;
3746
3747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3748   case $host_vendor in
3749   motorola)
3750     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]'
3751     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3752     ;;
3753   ncr)
3754     lt_cv_deplibs_check_method=pass_all
3755     ;;
3756   sequent)
3757     lt_cv_file_magic_cmd='/bin/file'
3758     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3759     ;;
3760   sni)
3761     lt_cv_file_magic_cmd='/bin/file'
3762     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3763     lt_cv_file_magic_test_file=/lib/libc.so
3764     ;;
3765   esac
3766   ;;
3767 esac
3768
3769 fi
3770 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3771 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3772 file_magic_cmd=$lt_cv_file_magic_cmd
3773 deplibs_check_method=$lt_cv_deplibs_check_method
3774
3775
3776
3777
3778
3779
3780
3781 # Check for command to grab the raw symbol name followed by C symbol from nm.
3782 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3783 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3784 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787
3788 # These are sane defaults that work on at least a few old systems.
3789 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3790
3791 # Character class describing NM global symbol codes.
3792 symcode='[BCDEGRST]'
3793
3794 # Regexp to match symbols that can be accessed directly from C.
3795 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3796
3797 # Transform the above into a raw symbol and a C symbol.
3798 symxfrm='\1 \2\3 \3'
3799
3800 # Transform an extracted symbol line into a proper C declaration
3801 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3802
3803 # Transform an extracted symbol line into symbol name and symbol address
3804 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3805
3806 # Define system-specific variables.
3807 case $host_os in
3808 aix*)
3809   symcode='[BCDT]'
3810   ;;
3811 cygwin* | mingw* | pw32*)
3812   symcode='[ABCDGISTW]'
3813   ;;
3814 hpux*) # Its linker distinguishes data from code symbols
3815   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3816   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3817   ;;
3818 irix*)
3819   symcode='[BCDEGRST]'
3820   ;;
3821 solaris* | sysv5*)
3822   symcode='[BDT]'
3823   ;;
3824 sysv4)
3825   symcode='[DFNSTU]'
3826   ;;
3827 esac
3828
3829 # Handle CRLF in mingw tool chain
3830 opt_cr=
3831 case $host_os in
3832 mingw*)
3833   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3834   ;;
3835 esac
3836
3837 # If we're using GNU nm, then use its standard symbol codes.
3838 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3839   symcode='[ABCDGISTW]'
3840 fi
3841
3842 # Try without a prefix undercore, then with it.
3843 for ac_symprfx in "" "_"; do
3844
3845   # Write the raw and C identifiers.
3846 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3847
3848   # Check to see that the pipe works correctly.
3849   pipe_works=no
3850   rm -f conftest*
3851   cat > conftest.$ac_ext <<EOF
3852 #ifdef __cplusplus
3853 extern "C" {
3854 #endif
3855 char nm_test_var;
3856 void nm_test_func(){}
3857 #ifdef __cplusplus
3858 }
3859 #endif
3860 int main(){nm_test_var='a';nm_test_func();return(0);}
3861 EOF
3862
3863   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3864   (eval $ac_compile) 2>&5
3865   ac_status=$?
3866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867   (exit $ac_status); }; then
3868     # Now try to grab the symbols.
3869     nlist=conftest.nm
3870     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3871   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); } && test -s "$nlist"; then
3875       # Try sorting and uniquifying the output.
3876       if sort "$nlist" | uniq > "$nlist"T; then
3877         mv -f "$nlist"T "$nlist"
3878       else
3879         rm -f "$nlist"T
3880       fi
3881
3882       # Make sure that we snagged all the symbols we need.
3883       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3884         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3885           cat <<EOF > conftest.$ac_ext
3886 #ifdef __cplusplus
3887 extern "C" {
3888 #endif
3889
3890 EOF
3891           # Now generate the symbol file.
3892           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3893
3894           cat <<EOF >> conftest.$ac_ext
3895 #if defined (__STDC__) && __STDC__
3896 # define lt_ptr void *
3897 #else
3898 # define lt_ptr char *
3899 # define const
3900 #endif
3901
3902 /* The mapping between symbol names and symbols. */
3903 const struct {
3904   const char *name;
3905   lt_ptr address;
3906 }
3907 lt_preloaded_symbols[] =
3908 {
3909 EOF
3910           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3911           cat <<\EOF >> conftest.$ac_ext
3912   {0, (lt_ptr) 0}
3913 };
3914
3915 #ifdef __cplusplus
3916 }
3917 #endif
3918 EOF
3919           # Now try linking the two files.
3920           mv conftest.$ac_objext conftstm.$ac_objext
3921           save_LIBS="$LIBS"
3922           save_CFLAGS="$CFLAGS"
3923           LIBS="conftstm.$ac_objext"
3924           CFLAGS="$CFLAGS$no_builtin_flag"
3925           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3926   (eval $ac_link) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); } && test -s conftest; then
3930             pipe_works=yes
3931           fi
3932           LIBS="$save_LIBS"
3933           CFLAGS="$save_CFLAGS"
3934         else
3935           echo "cannot find nm_test_func in $nlist" >&5
3936         fi
3937       else
3938         echo "cannot find nm_test_var in $nlist" >&5
3939       fi
3940     else
3941       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3942     fi
3943   else
3944     echo "$progname: failed program was:" >&5
3945     cat conftest.$ac_ext >&5
3946   fi
3947   rm -f conftest* conftst*
3948
3949   # Do not use the global_symbol_pipe unless it works.
3950   if test "$pipe_works" = yes; then
3951     break
3952   else
3953     lt_cv_sys_global_symbol_pipe=
3954   fi
3955 done
3956
3957 fi
3958
3959 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3960 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3961   global_symbol_to_cdecl=
3962   global_symbol_to_c_name_address=
3963 else
3964   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3965   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3966 fi
3967 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3968 then
3969   echo "$as_me:$LINENO: result: failed" >&5
3970 echo "${ECHO_T}failed" >&6
3971 else
3972   echo "$as_me:$LINENO: result: ok" >&5
3973 echo "${ECHO_T}ok" >&6
3974 fi
3975
3976
3977 for ac_header in dlfcn.h
3978 do
3979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3981   echo "$as_me:$LINENO: checking for $ac_header" >&5
3982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 fi
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 else
3989   # Is the header compilable?
3990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3992 cat >conftest.$ac_ext <<_ACEOF
3993 #line $LINENO "configure"
3994 #include "confdefs.h"
3995 $ac_includes_default
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000   (eval $ac_compile) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } &&
4004          { ac_try='test -s conftest.$ac_objext'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; }; then
4010   ac_header_compiler=yes
4011 else
4012   echo "$as_me: failed program was:" >&5
4013 cat conftest.$ac_ext >&5
4014 ac_header_compiler=no
4015 fi
4016 rm -f conftest.$ac_objext conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4018 echo "${ECHO_T}$ac_header_compiler" >&6
4019
4020 # Is the header present?
4021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4023 cat >conftest.$ac_ext <<_ACEOF
4024 #line $LINENO "configure"
4025 #include "confdefs.h"
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030   ac_status=$?
4031   egrep -v '^ *\+' conftest.er1 >conftest.err
4032   rm -f conftest.er1
4033   cat conftest.err >&5
4034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035   (exit $ac_status); } >/dev/null; then
4036   if test -s conftest.err; then
4037     ac_cpp_err=$ac_c_preproc_warn_flag
4038   else
4039     ac_cpp_err=
4040   fi
4041 else
4042   ac_cpp_err=yes
4043 fi
4044 if test -z "$ac_cpp_err"; then
4045   ac_header_preproc=yes
4046 else
4047   echo "$as_me: failed program was:" >&5
4048   cat conftest.$ac_ext >&5
4049   ac_header_preproc=no
4050 fi
4051 rm -f conftest.err conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4053 echo "${ECHO_T}$ac_header_preproc" >&6
4054
4055 # So?  What about this header?
4056 case $ac_header_compiler:$ac_header_preproc in
4057   yes:no )
4058     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4060     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4062   no:yes )
4063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4065     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4069 esac
4070 echo "$as_me:$LINENO: checking for $ac_header" >&5
4071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   eval "$as_ac_Header=$ac_header_preproc"
4076 fi
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4079
4080 fi
4081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082   cat >>confdefs.h <<_ACEOF
4083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 _ACEOF
4085
4086 fi
4087
4088 done
4089
4090
4091
4092
4093
4094 # Only perform the check for file, if the check method requires it
4095 case $deplibs_check_method in
4096 file_magic*)
4097   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4098     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4099 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4100 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   case $MAGIC_CMD in
4104   /*)
4105   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4106   ;;
4107   ?:/*)
4108   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4109   ;;
4110   *)
4111   ac_save_MAGIC_CMD="$MAGIC_CMD"
4112   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4113   ac_dummy="/usr/bin:$PATH"
4114   for ac_dir in $ac_dummy; do
4115     test -z "$ac_dir" && ac_dir=.
4116     if test -f $ac_dir/${ac_tool_prefix}file; then
4117       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4118       if test -n "$file_magic_test_file"; then
4119         case $deplibs_check_method in
4120         "file_magic "*)
4121           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4122           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4123           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4124             egrep "$file_magic_regex" > /dev/null; then
4125             :
4126           else
4127             cat <<EOF 1>&2
4128
4129 *** Warning: the command libtool uses to detect shared libraries,
4130 *** $file_magic_cmd, produces output that libtool cannot recognize.
4131 *** The result is that libtool may fail to recognize shared libraries
4132 *** as such.  This will affect the creation of libtool libraries that
4133 *** depend on shared libraries, but programs linked with such libtool
4134 *** libraries will work regardless of this problem.  Nevertheless, you
4135 *** may want to report the problem to your system manager and/or to
4136 *** bug-libtool@gnu.org
4137
4138 EOF
4139           fi ;;
4140         esac
4141       fi
4142       break
4143     fi
4144   done
4145   IFS="$ac_save_ifs"
4146   MAGIC_CMD="$ac_save_MAGIC_CMD"
4147   ;;
4148 esac
4149 fi
4150
4151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4152 if test -n "$MAGIC_CMD"; then
4153   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4154 echo "${ECHO_T}$MAGIC_CMD" >&6
4155 else
4156   echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6
4158 fi
4159
4160 if test -z "$lt_cv_path_MAGIC_CMD"; then
4161   if test -n "$ac_tool_prefix"; then
4162     echo "$as_me:$LINENO: checking for file" >&5
4163 echo $ECHO_N "checking for file... $ECHO_C" >&6
4164 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4165   echo $ECHO_N "(cached) $ECHO_C" >&6
4166 else
4167   case $MAGIC_CMD in
4168   /*)
4169   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4170   ;;
4171   ?:/*)
4172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4173   ;;
4174   *)
4175   ac_save_MAGIC_CMD="$MAGIC_CMD"
4176   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4177   ac_dummy="/usr/bin:$PATH"
4178   for ac_dir in $ac_dummy; do
4179     test -z "$ac_dir" && ac_dir=.
4180     if test -f $ac_dir/file; then
4181       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4182       if test -n "$file_magic_test_file"; then
4183         case $deplibs_check_method in
4184         "file_magic "*)
4185           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4186           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4187           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4188             egrep "$file_magic_regex" > /dev/null; then
4189             :
4190           else
4191             cat <<EOF 1>&2
4192
4193 *** Warning: the command libtool uses to detect shared libraries,
4194 *** $file_magic_cmd, produces output that libtool cannot recognize.
4195 *** The result is that libtool may fail to recognize shared libraries
4196 *** as such.  This will affect the creation of libtool libraries that
4197 *** depend on shared libraries, but programs linked with such libtool
4198 *** libraries will work regardless of this problem.  Nevertheless, you
4199 *** may want to report the problem to your system manager and/or to
4200 *** bug-libtool@gnu.org
4201
4202 EOF
4203           fi ;;
4204         esac
4205       fi
4206       break
4207     fi
4208   done
4209   IFS="$ac_save_ifs"
4210   MAGIC_CMD="$ac_save_MAGIC_CMD"
4211   ;;
4212 esac
4213 fi
4214
4215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4216 if test -n "$MAGIC_CMD"; then
4217   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4218 echo "${ECHO_T}$MAGIC_CMD" >&6
4219 else
4220   echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222 fi
4223
4224   else
4225     MAGIC_CMD=:
4226   fi
4227 fi
4228
4229   fi
4230   ;;
4231 esac
4232
4233 if test -n "$ac_tool_prefix"; then
4234   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_prog_RANLIB+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   if test -n "$RANLIB"; then
4242   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   for ac_exec_ext in '' $ac_executable_extensions; do
4250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253     break 2
4254   fi
4255 done
4256 done
4257
4258 fi
4259 fi
4260 RANLIB=$ac_cv_prog_RANLIB
4261 if test -n "$RANLIB"; then
4262   echo "$as_me:$LINENO: result: $RANLIB" >&5
4263 echo "${ECHO_T}$RANLIB" >&6
4264 else
4265   echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267 fi
4268
4269 fi
4270 if test -z "$ac_cv_prog_RANLIB"; then
4271   ac_ct_RANLIB=$RANLIB
4272   # Extract the first word of "ranlib", so it can be a program name with args.
4273 set dummy ranlib; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   if test -n "$ac_ct_RANLIB"; then
4280   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_prog_ac_ct_RANLIB="ranlib"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4297 fi
4298 fi
4299 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4300 if test -n "$ac_ct_RANLIB"; then
4301   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4302 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4303 else
4304   echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6
4306 fi
4307
4308   RANLIB=$ac_ct_RANLIB
4309 else
4310   RANLIB="$ac_cv_prog_RANLIB"
4311 fi
4312
4313 if test -n "$ac_tool_prefix"; then
4314   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4315 set dummy ${ac_tool_prefix}strip; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_STRIP+set}" = set; then
4319   echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321   if test -n "$STRIP"; then
4322   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_exec_ext in '' $ac_executable_extensions; do
4330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336 done
4337
4338 fi
4339 fi
4340 STRIP=$ac_cv_prog_STRIP
4341 if test -n "$STRIP"; then
4342   echo "$as_me:$LINENO: result: $STRIP" >&5
4343 echo "${ECHO_T}$STRIP" >&6
4344 else
4345   echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4347 fi
4348
4349 fi
4350 if test -z "$ac_cv_prog_STRIP"; then
4351   ac_ct_STRIP=$STRIP
4352   # Extract the first word of "strip", so it can be a program name with args.
4353 set dummy strip; ac_word=$2
4354 echo "$as_me:$LINENO: checking for $ac_word" >&5
4355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4356 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   if test -n "$ac_ct_STRIP"; then
4360   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367   for ac_exec_ext in '' $ac_executable_extensions; do
4368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369     ac_cv_prog_ac_ct_STRIP="strip"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375
4376   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4377 fi
4378 fi
4379 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4380 if test -n "$ac_ct_STRIP"; then
4381   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4382 echo "${ECHO_T}$ac_ct_STRIP" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388   STRIP=$ac_ct_STRIP
4389 else
4390   STRIP="$ac_cv_prog_STRIP"
4391 fi
4392
4393
4394 enable_dlopen=no
4395 enable_win32_dll=no
4396
4397 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4398 if test "${enable_libtool_lock+set}" = set; then
4399   enableval="$enable_libtool_lock"
4400
4401 fi;
4402 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4403
4404 # Some flags need to be propagated to the compiler or linker for good
4405 # libtool support.
4406 case $host in
4407 *-*-irix6*)
4408   # Find out which ABI we are using.
4409   echo '#line 4409 "configure"' > conftest.$ac_ext
4410   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411   (eval $ac_compile) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; then
4415     case `/usr/bin/file conftest.$ac_objext` in
4416     *32-bit*)
4417       LD="${LD-ld} -32"
4418       ;;
4419     *N32*)
4420       LD="${LD-ld} -n32"
4421       ;;
4422     *64-bit*)
4423       LD="${LD-ld} -64"
4424       ;;
4425     esac
4426   fi
4427   rm -rf conftest*
4428   ;;
4429
4430 *-*-sco3.2v5*)
4431   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4432   SAVE_CFLAGS="$CFLAGS"
4433   CFLAGS="$CFLAGS -belf"
4434   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4435 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4436 if test "${lt_cv_cc_needs_belf+set}" = set; then
4437   echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439
4440
4441      ac_ext=c
4442 ac_cpp='$CPP $CPPFLAGS'
4443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446
4447      cat >conftest.$ac_ext <<_ACEOF
4448 #line $LINENO "configure"
4449 #include "confdefs.h"
4450
4451 #ifdef F77_DUMMY_MAIN
4452 #  ifdef __cplusplus
4453      extern "C"
4454 #  endif
4455    int F77_DUMMY_MAIN() { return 1; }
4456 #endif
4457 int
4458 main ()
4459 {
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext conftest$ac_exeext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4467   (eval $ac_link) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); } &&
4471          { ac_try='test -s conftest$ac_exeext'
4472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473   (eval $ac_try) 2>&5
4474   ac_status=$?
4475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476   (exit $ac_status); }; }; then
4477   lt_cv_cc_needs_belf=yes
4478 else
4479   echo "$as_me: failed program was:" >&5
4480 cat conftest.$ac_ext >&5
4481 lt_cv_cc_needs_belf=no
4482 fi
4483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4484      ac_ext=c
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4489
4490 fi
4491 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4492 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4493   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4494     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4495     CFLAGS="$SAVE_CFLAGS"
4496   fi
4497   ;;
4498
4499
4500 esac
4501
4502 # Sed substitution that helps us do robust quoting.  It backslashifies
4503 # metacharacters that are still active within double-quoted strings.
4504 Xsed='sed -e s/^X//'
4505 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4506
4507 # Same as above, but do not quote variable references.
4508 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4509
4510 # Sed substitution to delay expansion of an escaped shell variable in a
4511 # double_quote_subst'ed string.
4512 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4513
4514 # Constants:
4515 rm="rm -f"
4516
4517 # Global variables:
4518 default_ofile=libtool
4519 can_build_shared=yes
4520
4521 # All known linkers require a `.a' archive for static linking (except M$VC,
4522 # which needs '.lib').
4523 libext=a
4524 ltmain="$ac_aux_dir/ltmain.sh"
4525 ofile="$default_ofile"
4526 with_gnu_ld="$lt_cv_prog_gnu_ld"
4527 need_locks="$enable_libtool_lock"
4528
4529 old_CC="$CC"
4530 old_CFLAGS="$CFLAGS"
4531
4532 # Set sane defaults for various variables
4533 test -z "$AR" && AR=ar
4534 test -z "$AR_FLAGS" && AR_FLAGS=cru
4535 test -z "$AS" && AS=as
4536 test -z "$CC" && CC=cc
4537 test -z "$DLLTOOL" && DLLTOOL=dlltool
4538 test -z "$LD" && LD=ld
4539 test -z "$LN_S" && LN_S="ln -s"
4540 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4541 test -z "$NM" && NM=nm
4542 test -z "$OBJDUMP" && OBJDUMP=objdump
4543 test -z "$RANLIB" && RANLIB=:
4544 test -z "$STRIP" && STRIP=:
4545 test -z "$ac_objext" && ac_objext=o
4546
4547 if test x"$host" != x"$build"; then
4548   ac_tool_prefix=${host_alias}-
4549 else
4550   ac_tool_prefix=
4551 fi
4552
4553 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4554 case $host_os in
4555 linux-gnu*) ;;
4556 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4557 esac
4558
4559 case $host_os in
4560 aix3*)
4561   # AIX sometimes has problems with the GCC collect2 program.  For some
4562   # reason, if we set the COLLECT_NAMES environment variable, the problems
4563   # vanish in a puff of smoke.
4564   if test "X${COLLECT_NAMES+set}" != Xset; then
4565     COLLECT_NAMES=
4566     export COLLECT_NAMES
4567   fi
4568   ;;
4569 esac
4570
4571 # Determine commands to create old-style static archives.
4572 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4573 old_postinstall_cmds='chmod 644 $oldlib'
4574 old_postuninstall_cmds=
4575
4576 if test -n "$RANLIB"; then
4577   case $host_os in
4578   openbsd*)
4579     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4580     ;;
4581   *)
4582     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4583     ;;
4584   esac
4585   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4586 fi
4587
4588 # Allow CC to be a program name with arguments.
4589 set dummy $CC
4590 compiler="$2"
4591
4592 echo "$as_me:$LINENO: checking for objdir" >&5
4593 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4594 rm -f .libs 2>/dev/null
4595 mkdir .libs 2>/dev/null
4596 if test -d .libs; then
4597   objdir=.libs
4598 else
4599   # MS-DOS does not allow filenames that begin with a dot.
4600   objdir=_libs
4601 fi
4602 rmdir .libs 2>/dev/null
4603 echo "$as_me:$LINENO: result: $objdir" >&5
4604 echo "${ECHO_T}$objdir" >&6
4605
4606
4607
4608 # Check whether --with-pic or --without-pic was given.
4609 if test "${with_pic+set}" = set; then
4610   withval="$with_pic"
4611   pic_mode="$withval"
4612 else
4613   pic_mode=default
4614 fi;
4615 test -z "$pic_mode" && pic_mode=default
4616
4617 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4618 # in isolation, and that seeing it set (from the cache) indicates that
4619 # the associated values are set (in the cache) correctly too.
4620 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4621 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4622 if test "${lt_cv_prog_cc_pic+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625    lt_cv_prog_cc_pic=
4626   lt_cv_prog_cc_shlib=
4627   lt_cv_prog_cc_wl=
4628   lt_cv_prog_cc_static=
4629   lt_cv_prog_cc_no_builtin=
4630   lt_cv_prog_cc_can_build_shared=$can_build_shared
4631
4632   if test "$GCC" = yes; then
4633     lt_cv_prog_cc_wl='-Wl,'
4634     lt_cv_prog_cc_static='-static'
4635
4636     case $host_os in
4637     aix*)
4638       # Below there is a dirty hack to force normal static linking with -ldl
4639       # The problem is because libdl dynamically linked with both libc and
4640       # libC (AIX C++ library), which obviously doesn't included in libraries
4641       # list by gcc. This cause undefined symbols with -static flags.
4642       # This hack allows C programs to be linked with "-static -ldl", but
4643       # not sure about C++ programs.
4644       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4645       ;;
4646     amigaos*)
4647       # FIXME: we need at least 68020 code to build shared libraries, but
4648       # adding the `-m68020' flag to GCC prevents building anything better,
4649       # like `-m68040'.
4650       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4651       ;;
4652     beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4653       # PIC is the default for these OSes.
4654       ;;
4655     darwin* | rhapsody*)
4656       # PIC is the default on this platform
4657       # Common symbols not allowed in MH_DYLIB files
4658       lt_cv_prog_cc_pic='-fno-common'
4659       ;;
4660     cygwin* | mingw* | pw32* | os2*)
4661       # This hack is so that the source file can tell whether it is being
4662       # built for inclusion in a dll (and should export symbols for example).
4663       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4664       ;;
4665     sysv4*MP*)
4666       if test -d /usr/nec; then
4667          lt_cv_prog_cc_pic=-Kconform_pic
4668       fi
4669       ;;
4670     *)
4671       lt_cv_prog_cc_pic='-fPIC'
4672       ;;
4673     esac
4674   else
4675     # PORTME Check for PIC flags for the system compiler.
4676     case $host_os in
4677     aix3* | aix4* | aix5*)
4678       lt_cv_prog_cc_wl='-Wl,'
4679       # All AIX code is PIC.
4680       if test "$host_cpu" = ia64; then
4681         # AIX 5 now supports IA64 processor
4682         lt_cv_prog_cc_static='-Bstatic'
4683       else
4684         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4685       fi
4686       ;;
4687
4688     hpux9* | hpux10* | hpux11*)
4689       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4690       lt_cv_prog_cc_wl='-Wl,'
4691       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4692       lt_cv_prog_cc_pic='+Z'
4693       ;;
4694
4695     irix5* | irix6*)
4696       lt_cv_prog_cc_wl='-Wl,'
4697       lt_cv_prog_cc_static='-non_shared'
4698       # PIC (with -KPIC) is the default.
4699       ;;
4700
4701     cygwin* | mingw* | pw32* | os2*)
4702       # This hack is so that the source file can tell whether it is being
4703       # built for inclusion in a dll (and should export symbols for example).
4704       lt_cv_prog_cc_pic='-DDLL_EXPORT'
4705       ;;
4706
4707     newsos6)
4708       lt_cv_prog_cc_pic='-KPIC'
4709       lt_cv_prog_cc_static='-Bstatic'
4710       ;;
4711
4712     osf3* | osf4* | osf5*)
4713       # All OSF/1 code is PIC.
4714       lt_cv_prog_cc_wl='-Wl,'
4715       lt_cv_prog_cc_static='-non_shared'
4716       ;;
4717
4718     sco3.2v5*)
4719       lt_cv_prog_cc_pic='-Kpic'
4720       lt_cv_prog_cc_static='-dn'
4721       lt_cv_prog_cc_shlib='-belf'
4722       ;;
4723
4724     solaris*)
4725       lt_cv_prog_cc_pic='-KPIC'
4726       lt_cv_prog_cc_static='-Bstatic'
4727       lt_cv_prog_cc_wl='-Wl,'
4728       ;;
4729
4730     sunos4*)
4731       lt_cv_prog_cc_pic='-PIC'
4732       lt_cv_prog_cc_static='-Bstatic'
4733       lt_cv_prog_cc_wl='-Qoption ld '
4734       ;;
4735
4736     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4737       lt_cv_prog_cc_pic='-KPIC'
4738       lt_cv_prog_cc_static='-Bstatic'
4739       if test "x$host_vendor" = xsni; then
4740         lt_cv_prog_cc_wl='-LD'
4741       else
4742         lt_cv_prog_cc_wl='-Wl,'
4743       fi
4744       ;;
4745
4746     uts4*)
4747       lt_cv_prog_cc_pic='-pic'
4748       lt_cv_prog_cc_static='-Bstatic'
4749       ;;
4750
4751     sysv4*MP*)
4752       if test -d /usr/nec ;then
4753         lt_cv_prog_cc_pic='-Kconform_pic'
4754         lt_cv_prog_cc_static='-Bstatic'
4755       fi
4756       ;;
4757
4758     *)
4759       lt_cv_prog_cc_can_build_shared=no
4760       ;;
4761     esac
4762   fi
4763
4764 fi
4765
4766 if test -z "$lt_cv_prog_cc_pic"; then
4767   echo "$as_me:$LINENO: result: none" >&5
4768 echo "${ECHO_T}none" >&6
4769 else
4770   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4771 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4772
4773   # Check to make sure the pic_flag actually works.
4774   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4775 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4776   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4777   echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779       save_CFLAGS="$CFLAGS"
4780     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4781     cat >conftest.$ac_ext <<_ACEOF
4782 #line $LINENO "configure"
4783 #include "confdefs.h"
4784
4785 #ifdef F77_DUMMY_MAIN
4786 #  ifdef __cplusplus
4787      extern "C"
4788 #  endif
4789    int F77_DUMMY_MAIN() { return 1; }
4790 #endif
4791 int
4792 main ()
4793 {
4794
4795   ;
4796   return 0;
4797 }
4798 _ACEOF
4799 rm -f conftest.$ac_objext
4800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4801   (eval $ac_compile) 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -s conftest.$ac_objext'
4806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807   (eval $ac_try) 2>&5
4808   ac_status=$?
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); }; }; then
4811         case $host_os in
4812       hpux9* | hpux10* | hpux11*)
4813         # On HP-UX, both CC and GCC only warn that PIC is supported... then
4814         # they create non-PIC objects.  So, if there were any warnings, we
4815         # assume that PIC is not supported.
4816         if test -s conftest.err; then
4817           lt_cv_prog_cc_pic_works=no
4818         else
4819           lt_cv_prog_cc_pic_works=yes
4820         fi
4821         ;;
4822       *)
4823         lt_cv_prog_cc_pic_works=yes
4824         ;;
4825       esac
4826
4827 else
4828   echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4830       lt_cv_prog_cc_pic_works=no
4831
4832 fi
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834     CFLAGS="$save_CFLAGS"
4835
4836 fi
4837
4838
4839   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4840     lt_cv_prog_cc_pic=
4841     lt_cv_prog_cc_can_build_shared=no
4842   else
4843     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4844   fi
4845
4846   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4847 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4848 fi
4849
4850 # Check for any special shared library compilation flags.
4851 if test -n "$lt_cv_prog_cc_shlib"; then
4852   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4853 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4854   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4855   else
4856    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4857 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4858     lt_cv_prog_cc_can_build_shared=no
4859   fi
4860 fi
4861
4862 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4863 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4864 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4865   echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867     lt_cv_prog_cc_static_works=no
4868   save_LDFLAGS="$LDFLAGS"
4869   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4870   cat >conftest.$ac_ext <<_ACEOF
4871 #line $LINENO "configure"
4872 #include "confdefs.h"
4873
4874 #ifdef F77_DUMMY_MAIN
4875 #  ifdef __cplusplus
4876      extern "C"
4877 #  endif
4878    int F77_DUMMY_MAIN() { return 1; }
4879 #endif
4880 int
4881 main ()
4882 {
4883
4884   ;
4885   return 0;
4886 }
4887 _ACEOF
4888 rm -f conftest.$ac_objext conftest$ac_exeext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890   (eval $ac_link) 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); } &&
4894          { ac_try='test -s conftest$ac_exeext'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; }; then
4900   lt_cv_prog_cc_static_works=yes
4901 else
4902   echo "$as_me: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4904 fi
4905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4906   LDFLAGS="$save_LDFLAGS"
4907
4908 fi
4909
4910
4911 # Belt *and* braces to stop my trousers falling down:
4912 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4913 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4914 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4915
4916 pic_flag="$lt_cv_prog_cc_pic"
4917 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4918 wl="$lt_cv_prog_cc_wl"
4919 link_static_flag="$lt_cv_prog_cc_static"
4920 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4921 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4922
4923
4924 # Check to see if options -o and -c are simultaneously supported by compiler
4925 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4927 if test "${lt_cv_compiler_c_o+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930
4931 $rm -r conftest 2>/dev/null
4932 mkdir conftest
4933 cd conftest
4934 echo "int some_variable = 0;" > conftest.$ac_ext
4935 mkdir out
4936 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4937 # that will create temporary files in the current directory regardless of
4938 # the output directory.  Thus, making CWD read-only will cause this test
4939 # to fail, enabling locking or at least warning the user not to do parallel
4940 # builds.
4941 chmod -w .
4942 save_CFLAGS="$CFLAGS"
4943 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4944 compiler_c_o=no
4945 if { (eval echo configure:4945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4946   # The compiler can only warn and ignore the option if not recognized
4947   # So say no if there are warnings
4948   if test -s out/conftest.err; then
4949     lt_cv_compiler_c_o=no
4950   else
4951     lt_cv_compiler_c_o=yes
4952   fi
4953 else
4954   # Append any errors to the config.log.
4955   cat out/conftest.err 1>&5
4956   lt_cv_compiler_c_o=no
4957 fi
4958 CFLAGS="$save_CFLAGS"
4959 chmod u+w .
4960 $rm conftest* out/*
4961 rmdir out
4962 cd ..
4963 rmdir conftest
4964 $rm -r conftest 2>/dev/null
4965
4966 fi
4967
4968 compiler_c_o=$lt_cv_compiler_c_o
4969 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4970 echo "${ECHO_T}$compiler_c_o" >&6
4971
4972 if test x"$compiler_c_o" = x"yes"; then
4973   # Check to see if we can write to a .lo
4974   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4975 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4976   if test "${lt_cv_compiler_o_lo+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979
4980   lt_cv_compiler_o_lo=no
4981   save_CFLAGS="$CFLAGS"
4982   CFLAGS="$CFLAGS -c -o conftest.lo"
4983   save_objext="$ac_objext"
4984   ac_objext=lo
4985   cat >conftest.$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 #include "confdefs.h"
4988
4989 #ifdef F77_DUMMY_MAIN
4990 #  ifdef __cplusplus
4991      extern "C"
4992 #  endif
4993    int F77_DUMMY_MAIN() { return 1; }
4994 #endif
4995 int
4996 main ()
4997 {
4998 int some_variable = 0;
4999   ;
5000   return 0;
5001 }
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005   (eval $ac_compile) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); } &&
5009          { ac_try='test -s conftest.$ac_objext'
5010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011   (eval $ac_try) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }; }; then
5015       # The compiler can only warn and ignore the option if not recognized
5016     # So say no if there are warnings
5017     if test -s conftest.err; then
5018       lt_cv_compiler_o_lo=no
5019     else
5020       lt_cv_compiler_o_lo=yes
5021     fi
5022
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 fi
5027 rm -f conftest.$ac_objext conftest.$ac_ext
5028   ac_objext="$save_objext"
5029   CFLAGS="$save_CFLAGS"
5030
5031 fi
5032
5033   compiler_o_lo=$lt_cv_compiler_o_lo
5034   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5035 echo "${ECHO_T}$compiler_o_lo" >&6
5036 else
5037   compiler_o_lo=no
5038 fi
5039
5040 # Check to see if we can do hard links to lock some files if needed
5041 hard_links="nottested"
5042 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5043   # do not overwrite the value of need_locks provided by the user
5044   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5045 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5046   hard_links=yes
5047   $rm conftest*
5048   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5049   touch conftest.a
5050   ln conftest.a conftest.b 2>&5 || hard_links=no
5051   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5052   echo "$as_me:$LINENO: result: $hard_links" >&5
5053 echo "${ECHO_T}$hard_links" >&6
5054   if test "$hard_links" = no; then
5055     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5056 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5057     need_locks=warn
5058   fi
5059 else
5060   need_locks=no
5061 fi
5062
5063 if test "$GCC" = yes; then
5064   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5065   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5066 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5067   echo "int some_variable = 0;" > conftest.$ac_ext
5068   save_CFLAGS="$CFLAGS"
5069   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5070   compiler_rtti_exceptions=no
5071   cat >conftest.$ac_ext <<_ACEOF
5072 #line $LINENO "configure"
5073 #include "confdefs.h"
5074
5075 #ifdef F77_DUMMY_MAIN
5076 #  ifdef __cplusplus
5077      extern "C"
5078 #  endif
5079    int F77_DUMMY_MAIN() { return 1; }
5080 #endif
5081 int
5082 main ()
5083 {
5084 int some_variable = 0;
5085   ;
5086   return 0;
5087 }
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091   (eval $ac_compile) 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -s conftest.$ac_objext'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; }; then
5101       # The compiler can only warn and ignore the option if not recognized
5102     # So say no if there are warnings
5103     if test -s conftest.err; then
5104       compiler_rtti_exceptions=no
5105     else
5106       compiler_rtti_exceptions=yes
5107     fi
5108
5109 else
5110   echo "$as_me: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5112 fi
5113 rm -f conftest.$ac_objext conftest.$ac_ext
5114   CFLAGS="$save_CFLAGS"
5115   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5116 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5117
5118   if test "$compiler_rtti_exceptions" = "yes"; then
5119     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5120   else
5121     no_builtin_flag=' -fno-builtin'
5122   fi
5123 fi
5124
5125 # See if the linker supports building shared libraries.
5126 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5127 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5128
5129 allow_undefined_flag=
5130 no_undefined_flag=
5131 need_lib_prefix=unknown
5132 need_version=unknown
5133 # when you set need_version to no, make sure it does not cause -set_version
5134 # flags to be left without arguments
5135 archive_cmds=
5136 archive_expsym_cmds=
5137 old_archive_from_new_cmds=
5138 old_archive_from_expsyms_cmds=
5139 export_dynamic_flag_spec=
5140 whole_archive_flag_spec=
5141 thread_safe_flag_spec=
5142 hardcode_into_libs=no
5143 hardcode_libdir_flag_spec=
5144 hardcode_libdir_separator=
5145 hardcode_direct=no
5146 hardcode_minus_L=no
5147 hardcode_shlibpath_var=unsupported
5148 runpath_var=
5149 link_all_deplibs=unknown
5150 always_export_symbols=no
5151 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5152 # include_expsyms should be a list of space-separated symbols to be *always*
5153 # included in the symbol list
5154 include_expsyms=
5155 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5156 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5157 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5158 # as well as any symbol that contains `d'.
5159 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5160 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5161 # platforms (ab)use it in PIC code, but their linkers get confused if
5162 # the symbol is explicitly referenced.  Since portable code cannot
5163 # rely on this symbol name, it's probably fine to never include it in
5164 # preloaded symbol tables.
5165 extract_expsyms_cmds=
5166
5167 case $host_os in
5168 cygwin* | mingw* | pw32*)
5169   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5170   # When not using gcc, we currently assume that we are using
5171   # Microsoft Visual C++.
5172   if test "$GCC" != yes; then
5173     with_gnu_ld=no
5174   fi
5175   ;;
5176 openbsd*)
5177   with_gnu_ld=no
5178   ;;
5179 esac
5180
5181 ld_shlibs=yes
5182 if test "$with_gnu_ld" = yes; then
5183   # If archive_cmds runs LD, not CC, wlarc should be empty
5184   wlarc='${wl}'
5185
5186   # See if GNU ld supports shared libraries.
5187   case $host_os in
5188   aix3* | aix4* | aix5*)
5189     # On AIX, the GNU linker is very broken
5190     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5191     ld_shlibs=no
5192     cat <<EOF 1>&2
5193
5194 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5195 *** to be unable to reliably create shared libraries on AIX.
5196 *** Therefore, libtool is disabling shared libraries support.  If you
5197 *** really care for shared libraries, you may want to modify your PATH
5198 *** so that a non-GNU linker is found, and then restart.
5199
5200 EOF
5201     ;;
5202
5203   amigaos*)
5204     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)'
5205     hardcode_libdir_flag_spec='-L$libdir'
5206     hardcode_minus_L=yes
5207
5208     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5209     # that the semantics of dynamic libraries on AmigaOS, at least up
5210     # to version 4, is to share data among multiple programs linked
5211     # with the same dynamic library.  Since this doesn't match the
5212     # behavior of shared libraries on other platforms, we can use
5213     # them.
5214     ld_shlibs=no
5215     ;;
5216
5217   beos*)
5218     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5219       allow_undefined_flag=unsupported
5220       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5221       # support --undefined.  This deserves some investigation.  FIXME
5222       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5223     else
5224       ld_shlibs=no
5225     fi
5226     ;;
5227
5228   cygwin* | mingw* | pw32*)
5229     # hardcode_libdir_flag_spec is actually meaningless, as there is
5230     # no search path for DLLs.
5231     hardcode_libdir_flag_spec='-L$libdir'
5232     allow_undefined_flag=unsupported
5233     always_export_symbols=yes
5234
5235     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5236       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5237       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5238       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5239       else $CC -o impgen impgen.c ; fi)~
5240       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5241
5242     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5243
5244     # cygwin and mingw dlls have different entry points and sets of symbols
5245     # to exclude.
5246     # FIXME: what about values for MSVC?
5247     dll_entry=__cygwin_dll_entry@12
5248     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5249     case $host_os in
5250     mingw*)
5251       # mingw values
5252       dll_entry=_DllMainCRTStartup@12
5253       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5254       ;;
5255     esac
5256
5257     # mingw and cygwin differ, and it's simplest to just exclude the union
5258     # of the two symbol sets.
5259     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5260
5261     # recent cygwin and mingw systems supply a stub DllMain which the user
5262     # can override, but on older systems we have to supply one (in ltdll.c)
5263     if test "x$lt_cv_need_dllmain" = "xyes"; then
5264       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5265       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5266         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5267     else
5268       ltdll_obj=
5269       ltdll_cmds=
5270     fi
5271
5272     # Extract the symbol export list from an `--export-all' def file,
5273     # then regenerate the def file from the symbol export list, so that
5274     # the compiled dll only exports the symbol export list.
5275     # Be careful not to strip the DATA tag left be newer dlltools.
5276     export_symbols_cmds="$ltdll_cmds"'
5277       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5278       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5279
5280     # If the export-symbols file already is a .def file (1st line
5281     # is EXPORTS), use it as is.
5282     # If DATA tags from a recent dlltool are present, honour them!
5283     archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5284         cp $export_symbols $output_objdir/$soname-def;
5285       else
5286         echo EXPORTS > $output_objdir/$soname-def;
5287         _lt_hint=1;
5288         cat $export_symbols | while read symbol; do
5289          set dummy \$symbol;
5290          case \$# in
5291            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5292            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5293          esac;
5294          _lt_hint=`expr 1 + \$_lt_hint`;
5295         done;
5296       fi~
5297       '"$ltdll_cmds"'
5298       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5299       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5300       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5301       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5302       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5303     ;;
5304
5305   netbsd*)
5306     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5307       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5308       wlarc=
5309     else
5310       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5311       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5312     fi
5313     ;;
5314
5315   solaris* | sysv5*)
5316     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5317       ld_shlibs=no
5318       cat <<EOF 1>&2
5319
5320 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5321 *** create shared libraries on Solaris systems.  Therefore, libtool
5322 *** is disabling shared libraries support.  We urge you to upgrade GNU
5323 *** binutils to release 2.9.1 or newer.  Another option is to modify
5324 *** your PATH or compiler configuration so that the native linker is
5325 *** used, and then restart.
5326
5327 EOF
5328     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5329       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5330       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5331     else
5332       ld_shlibs=no
5333     fi
5334     ;;
5335
5336   sunos4*)
5337     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5338     wlarc=
5339     hardcode_direct=yes
5340     hardcode_shlibpath_var=no
5341     ;;
5342
5343   *)
5344     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5345       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5346       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5347     else
5348       ld_shlibs=no
5349     fi
5350     ;;
5351   esac
5352
5353   if test "$ld_shlibs" = yes; then
5354     runpath_var=LD_RUN_PATH
5355     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5356     export_dynamic_flag_spec='${wl}--export-dynamic'
5357     case $host_os in
5358     cygwin* | mingw* | pw32*)
5359       # dlltool doesn't understand --whole-archive et. al.
5360       whole_archive_flag_spec=
5361       ;;
5362     *)
5363       # ancient GNU ld didn't support --whole-archive et. al.
5364       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5365         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5366       else
5367         whole_archive_flag_spec=
5368       fi
5369       ;;
5370     esac
5371   fi
5372 else
5373   # PORTME fill in a description of your system's linker (not GNU ld)
5374   case $host_os in
5375   aix3*)
5376     allow_undefined_flag=unsupported
5377     always_export_symbols=yes
5378     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'
5379     # Note: this linker hardcodes the directories in LIBPATH if there
5380     # are no directories specified by -L.
5381     hardcode_minus_L=yes
5382     if test "$GCC" = yes && test -z "$link_static_flag"; then
5383       # Neither direct hardcoding nor static linking is supported with a
5384       # broken collect2.
5385       hardcode_direct=unsupported
5386     fi
5387     ;;
5388
5389   aix4* | aix5*)
5390     if test "$host_cpu" = ia64; then
5391       # On IA64, the linker does run time linking by default, so we don't
5392       # have to do anything special.
5393       aix_use_runtimelinking=no
5394       exp_sym_flag='-Bexport'
5395       no_entry_flag=""
5396     else
5397       aix_use_runtimelinking=no
5398
5399       # Test if we are trying to use run time linking or normal
5400       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5401       # need to do runtime linking.
5402       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5403         for ld_flag in $LDFLAGS; do
5404           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5405             aix_use_runtimelinking=yes
5406             break
5407           fi
5408         done
5409       esac
5410
5411       exp_sym_flag='-bexport'
5412       no_entry_flag='-bnoentry'
5413     fi
5414
5415     # When large executables or shared objects are built, AIX ld can
5416     # have problems creating the table of contents.  If linking a library
5417     # or program results in "error TOC overflow" add -mminimal-toc to
5418     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5419     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5420
5421     hardcode_direct=yes
5422     archive_cmds=''
5423     hardcode_libdir_separator=':'
5424     if test "$GCC" = yes; then
5425       case $host_os in aix4.[012]|aix4.[012].*)
5426         collect2name=`${CC} -print-prog-name=collect2`
5427         if test -f "$collect2name" && \
5428           strings "$collect2name" | grep resolve_lib_name >/dev/null
5429         then
5430           # We have reworked collect2
5431           hardcode_direct=yes
5432         else
5433           # We have old collect2
5434           hardcode_direct=unsupported
5435           # It fails to find uninstalled libraries when the uninstalled
5436           # path is not listed in the libpath.  Setting hardcode_minus_L
5437           # to unsupported forces relinking
5438           hardcode_minus_L=yes
5439           hardcode_libdir_flag_spec='-L$libdir'
5440           hardcode_libdir_separator=
5441         fi
5442       esac
5443
5444       shared_flag='-shared'
5445     else
5446       # not using gcc
5447       if test "$host_cpu" = ia64; then
5448         shared_flag='${wl}-G'
5449       else
5450         if test "$aix_use_runtimelinking" = yes; then
5451           shared_flag='${wl}-G'
5452         else
5453           shared_flag='${wl}-bM:SRE'
5454         fi
5455       fi
5456     fi
5457
5458     # It seems that -bexpall can do strange things, so it is better to
5459     # generate a list of symbols to export.
5460     always_export_symbols=yes
5461     if test "$aix_use_runtimelinking" = yes; then
5462       # Warning - without using the other runtime loading flags (-brtl),
5463       # -berok will link without error, but may produce a broken library.
5464       allow_undefined_flag='-berok'
5465       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5466       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5467     else
5468       if test "$host_cpu" = ia64; then
5469         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5470         allow_undefined_flag="-z nodefs"
5471         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5472       else
5473         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5474         # Warning - without using the other run time loading flags,
5475         # -berok will link without error, but may produce a broken library.
5476         allow_undefined_flag='${wl}-berok'
5477         # This is a bit strange, but is similar to how AIX traditionally builds
5478         # it's shared libraries.
5479         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5480       fi
5481     fi
5482     ;;
5483
5484   amigaos*)
5485     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)'
5486     hardcode_libdir_flag_spec='-L$libdir'
5487     hardcode_minus_L=yes
5488     # see comment about different semantics on the GNU ld section
5489     ld_shlibs=no
5490     ;;
5491
5492   cygwin* | mingw* | pw32*)
5493     # When not using gcc, we currently assume that we are using
5494     # Microsoft Visual C++.
5495     # hardcode_libdir_flag_spec is actually meaningless, as there is
5496     # no search path for DLLs.
5497     hardcode_libdir_flag_spec=' '
5498     allow_undefined_flag=unsupported
5499     # Tell ltmain to make .lib files, not .a files.
5500     libext=lib
5501     # FIXME: Setting linknames here is a bad hack.
5502     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5503     # The linker will automatically build a .lib file if we build a DLL.
5504     old_archive_from_new_cmds='true'
5505     # FIXME: Should let the user specify the lib program.
5506     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5507     fix_srcfile_path='`cygpath -w "$srcfile"`'
5508     ;;
5509
5510   darwin* | rhapsody*)
5511     case "$host_os" in
5512     rhapsody* | darwin1.[012])
5513       allow_undefined_flag='-undefined suppress'
5514       ;;
5515     *) # Darwin 1.3 on
5516       allow_undefined_flag='-flat_namespace -undefined suppress'
5517       ;;
5518     esac
5519     # FIXME: Relying on posixy $() will cause problems for
5520     #        cross-compilation, but unfortunately the echo tests do not
5521     #        yet detect zsh echo's removal of \ escapes.
5522     archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5523     # We need to add '_' to the symbols in $export_symbols first
5524     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5525     hardcode_direct=yes
5526     hardcode_shlibpath_var=no
5527     whole_archive_flag_spec='-all_load $convenience'
5528     ;;
5529
5530   freebsd1*)
5531     ld_shlibs=no
5532     ;;
5533
5534   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5535   # support.  Future versions do this automatically, but an explicit c++rt0.o
5536   # does not break anything, and helps significantly (at the cost of a little
5537   # extra space).
5538   freebsd2.2*)
5539     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5540     hardcode_libdir_flag_spec='-R$libdir'
5541     hardcode_direct=yes
5542     hardcode_shlibpath_var=no
5543     ;;
5544
5545   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5546   freebsd2*)
5547     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5548     hardcode_direct=yes
5549     hardcode_minus_L=yes
5550     hardcode_shlibpath_var=no
5551     ;;
5552
5553   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5554   freebsd*)
5555     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5556     hardcode_libdir_flag_spec='-R$libdir'
5557     hardcode_direct=yes
5558     hardcode_shlibpath_var=no
5559     ;;
5560
5561   hpux9* | hpux10* | hpux11*)
5562     case $host_os in
5563     hpux9*) 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' ;;
5564     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5565     esac
5566     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5567     hardcode_libdir_separator=:
5568     hardcode_direct=yes
5569     hardcode_minus_L=yes # Not in the search PATH, but as the default
5570                          # location of the library.
5571     export_dynamic_flag_spec='${wl}-E'
5572     ;;
5573
5574   irix5* | irix6*)
5575     if test "$GCC" = yes; then
5576       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5577     else
5578       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5579     fi
5580     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5581     hardcode_libdir_separator=:
5582     link_all_deplibs=yes
5583     ;;
5584
5585   netbsd*)
5586     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5587       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5588     else
5589       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5590     fi
5591     hardcode_libdir_flag_spec='-R$libdir'
5592     hardcode_direct=yes
5593     hardcode_shlibpath_var=no
5594     ;;
5595
5596   newsos6)
5597     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5598     hardcode_direct=yes
5599     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5600     hardcode_libdir_separator=:
5601     hardcode_shlibpath_var=no
5602     ;;
5603
5604   openbsd*)
5605     hardcode_direct=yes
5606     hardcode_shlibpath_var=no
5607     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5608       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5609       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5610       export_dynamic_flag_spec='${wl}-E'
5611     else
5612       case "$host_os" in
5613       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5614         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5615         hardcode_libdir_flag_spec='-R$libdir'
5616         ;;
5617       *)
5618         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5619         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5620         ;;
5621       esac
5622     fi
5623     ;;
5624
5625   os2*)
5626     hardcode_libdir_flag_spec='-L$libdir'
5627     hardcode_minus_L=yes
5628     allow_undefined_flag=unsupported
5629     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'
5630     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5631     ;;
5632
5633   osf3*)
5634     if test "$GCC" = yes; then
5635       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5636       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5637     else
5638       allow_undefined_flag=' -expect_unresolved \*'
5639       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5640     fi
5641     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5642     hardcode_libdir_separator=:
5643     ;;
5644
5645   osf4* | osf5*)        # as osf3* with the addition of -msym flag
5646     if test "$GCC" = yes; then
5647       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5648       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5649       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5650     else
5651       allow_undefined_flag=' -expect_unresolved \*'
5652       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5653       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5654       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5655
5656       #Both c and cxx compiler support -rpath directly
5657       hardcode_libdir_flag_spec='-rpath $libdir'
5658     fi
5659     hardcode_libdir_separator=:
5660     ;;
5661
5662   sco3.2v5*)
5663     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5664     hardcode_shlibpath_var=no
5665     runpath_var=LD_RUN_PATH
5666     hardcode_runpath_var=yes
5667     export_dynamic_flag_spec='${wl}-Bexport'
5668     ;;
5669
5670   solaris*)
5671     # gcc --version < 3.0 without binutils cannot create self contained
5672     # shared libraries reliably, requiring libgcc.a to resolve some of
5673     # the object symbols generated in some cases.  Libraries that use
5674     # assert need libgcc.a to resolve __eprintf, for example.  Linking
5675     # a copy of libgcc.a into every shared library to guarantee resolving
5676     # such symbols causes other problems:  According to Tim Van Holder
5677     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5678     # (to the application) exception stack for one thing.
5679     no_undefined_flag=' -z defs'
5680     if test "$GCC" = yes; then
5681       case `$CC --version 2>/dev/null` in
5682       [12].*)
5683         cat <<EOF 1>&2
5684
5685 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5686 *** create self contained shared libraries on Solaris systems, without
5687 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5688 *** -no-undefined support, which will at least allow you to build shared
5689 *** libraries.  However, you may find that when you link such libraries
5690 *** into an application without using GCC, you have to manually add
5691 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5692 *** upgrade to a newer version of GCC.  Another option is to rebuild your
5693 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5694
5695 EOF
5696         no_undefined_flag=
5697         ;;
5698       esac
5699     fi
5700     # $CC -shared without GNU ld will not create a library from C++
5701     # object files and a static libstdc++, better avoid it by now
5702     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5703     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5704                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5705     hardcode_libdir_flag_spec='-R$libdir'
5706     hardcode_shlibpath_var=no
5707     case $host_os in
5708     solaris2.[0-5] | solaris2.[0-5].*) ;;
5709     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5710       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5711     esac
5712     link_all_deplibs=yes
5713     ;;
5714
5715   sunos4*)
5716     if test "x$host_vendor" = xsequent; then
5717       # Use $CC to link under sequent, because it throws in some extra .o
5718       # files that make .init and .fini sections work.
5719       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5720     else
5721       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5722     fi
5723     hardcode_libdir_flag_spec='-L$libdir'
5724     hardcode_direct=yes
5725     hardcode_minus_L=yes
5726     hardcode_shlibpath_var=no
5727     ;;
5728
5729   sysv4)
5730     if test "x$host_vendor" = xsno; then
5731       archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5732       hardcode_direct=yes # is this really true???
5733     else
5734       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5735       hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5736     fi
5737     runpath_var='LD_RUN_PATH'
5738     hardcode_shlibpath_var=no
5739     ;;
5740
5741   sysv4.3*)
5742     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5743     hardcode_shlibpath_var=no
5744     export_dynamic_flag_spec='-Bexport'
5745     ;;
5746
5747   sysv5*)
5748     no_undefined_flag=' -z text'
5749     # $CC -shared without GNU ld will not create a library from C++
5750     # object files and a static libstdc++, better avoid it by now
5751     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5752     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5753                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5754     hardcode_libdir_flag_spec=
5755     hardcode_shlibpath_var=no
5756     runpath_var='LD_RUN_PATH'
5757     ;;
5758
5759   uts4*)
5760     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5761     hardcode_libdir_flag_spec='-L$libdir'
5762     hardcode_shlibpath_var=no
5763     ;;
5764
5765   dgux*)
5766     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5767     hardcode_libdir_flag_spec='-L$libdir'
5768     hardcode_shlibpath_var=no
5769     ;;
5770
5771   sysv4*MP*)
5772     if test -d /usr/nec; then
5773       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5774       hardcode_shlibpath_var=no
5775       runpath_var=LD_RUN_PATH
5776       hardcode_runpath_var=yes
5777       ld_shlibs=yes
5778     fi
5779     ;;
5780
5781   sysv4.2uw2*)
5782     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5783     hardcode_direct=yes
5784     hardcode_minus_L=no
5785     hardcode_shlibpath_var=no
5786     hardcode_runpath_var=yes
5787     runpath_var=LD_RUN_PATH
5788     ;;
5789
5790   sysv5uw7* | unixware7*)
5791     no_undefined_flag='${wl}-z ${wl}text'
5792     if test "$GCC" = yes; then
5793       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5794     else
5795       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5796     fi
5797     runpath_var='LD_RUN_PATH'
5798     hardcode_shlibpath_var=no
5799     ;;
5800
5801   *)
5802     ld_shlibs=no
5803     ;;
5804   esac
5805 fi
5806 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5807 echo "${ECHO_T}$ld_shlibs" >&6
5808 test "$ld_shlibs" = no && can_build_shared=no
5809
5810 # Check hardcoding attributes.
5811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5813 hardcode_action=
5814 if test -n "$hardcode_libdir_flag_spec" || \
5815    test -n "$runpath_var"; then
5816
5817   # We can hardcode non-existant directories.
5818   if test "$hardcode_direct" != no &&
5819      # If the only mechanism to avoid hardcoding is shlibpath_var, we
5820      # have to relink, otherwise we might link with an installed library
5821      # when we should be linking with a yet-to-be-installed one
5822      ## test "$hardcode_shlibpath_var" != no &&
5823      test "$hardcode_minus_L" != no; then
5824     # Linking always hardcodes the temporary library directory.
5825     hardcode_action=relink
5826   else
5827     # We can link without hardcoding, and we can hardcode nonexisting dirs.
5828     hardcode_action=immediate
5829   fi
5830 else
5831   # We cannot hardcode anything, or else we can only hardcode existing
5832   # directories.
5833   hardcode_action=unsupported
5834 fi
5835 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5836 echo "${ECHO_T}$hardcode_action" >&6
5837
5838 striplib=
5839 old_striplib=
5840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5843   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5844   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5845   echo "$as_me:$LINENO: result: yes" >&5
5846 echo "${ECHO_T}yes" >&6
5847 else
5848   echo "$as_me:$LINENO: result: no" >&5
5849 echo "${ECHO_T}no" >&6
5850 fi
5851
5852 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5853 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5854
5855 # PORTME Fill in your ld.so characteristics
5856 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5857 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5858 library_names_spec=
5859 libname_spec='lib$name'
5860 soname_spec=
5861 postinstall_cmds=
5862 postuninstall_cmds=
5863 finish_cmds=
5864 finish_eval=
5865 shlibpath_var=
5866 shlibpath_overrides_runpath=unknown
5867 version_type=none
5868 dynamic_linker="$host_os ld.so"
5869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5870 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5871
5872 case $host_os in
5873 aix3*)
5874   version_type=linux
5875   library_names_spec='${libname}${release}.so$versuffix $libname.a'
5876   shlibpath_var=LIBPATH
5877
5878   # AIX has no versioning support, so we append a major version to the name.
5879   soname_spec='${libname}${release}.so$major'
5880   ;;
5881
5882 aix4* | aix5*)
5883   version_type=linux
5884   if test "$host_cpu" = ia64; then
5885     # AIX 5 supports IA64
5886     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5887     shlibpath_var=LD_LIBRARY_PATH
5888   else
5889     # With GCC up to 2.95.x, collect2 would create an import file
5890     # for dependence libraries.  The import file would start with
5891     # the line `#! .'.  This would cause the generated library to
5892     # depend on `.', always an invalid library.  This was fixed in
5893     # development snapshots of GCC prior to 3.0.
5894     case $host_os in
5895       aix4 | aix4.[01] | aix4.[01].*)
5896         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5897              echo ' yes '
5898              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5899           :
5900         else
5901           can_build_shared=no
5902         fi
5903         ;;
5904     esac
5905     # AIX (on Power*) has no versioning support, so currently we can
5906     # not hardcode correct soname into executable. Probably we can
5907     # add versioning support to collect2, so additional links can
5908     # be useful in future.
5909     if test "$aix_use_runtimelinking" = yes; then
5910       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5911       # instead of lib<name>.a to let people know that these are not
5912       # typical AIX shared libraries.
5913       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5914     else
5915       # We preserve .a as extension for shared libraries through AIX4.2
5916       # and later when we are not doing run time linking.
5917       library_names_spec='${libname}${release}.a $libname.a'
5918       soname_spec='${libname}${release}.so$major'
5919     fi
5920     shlibpath_var=LIBPATH
5921   fi
5922   ;;
5923
5924 amigaos*)
5925   library_names_spec='$libname.ixlibrary $libname.a'
5926   # Create ${libname}_ixlibrary.a entries in /sys/libs.
5927   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'
5928   ;;
5929
5930 beos*)
5931   library_names_spec='${libname}.so'
5932   dynamic_linker="$host_os ld.so"
5933   shlibpath_var=LIBRARY_PATH
5934   ;;
5935
5936 bsdi4*)
5937   version_type=linux
5938   need_version=no
5939   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5940   soname_spec='${libname}${release}.so$major'
5941   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5942   shlibpath_var=LD_LIBRARY_PATH
5943   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5944   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5945   export_dynamic_flag_spec=-rdynamic
5946   # the default ld.so.conf also contains /usr/contrib/lib and
5947   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5948   # libtool to hard-code these into programs
5949   ;;
5950
5951 cygwin* | mingw* | pw32*)
5952   version_type=windows
5953   need_version=no
5954   need_lib_prefix=no
5955   case $GCC,$host_os in
5956   yes,cygwin*)
5957     library_names_spec='$libname.dll.a'
5958     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5959     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5960       dldir=$destdir/`dirname \$dlpath`~
5961       test -d \$dldir || mkdir -p \$dldir~
5962       $install_prog .libs/$dlname \$dldir/$dlname'
5963     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5964       dlpath=$dir/\$dldll~
5965        $rm \$dlpath'
5966     ;;
5967   yes,mingw*)
5968     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5969     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5970     ;;
5971   yes,pw32*)
5972     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5973     ;;
5974   *)
5975     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5976     ;;
5977   esac
5978   dynamic_linker='Win32 ld.exe'
5979   # FIXME: first we should search . and the directory the executable is in
5980   shlibpath_var=PATH
5981   ;;
5982
5983 darwin* | rhapsody*)
5984   dynamic_linker="$host_os dyld"
5985   version_type=darwin
5986   need_lib_prefix=no
5987   need_version=no
5988   # FIXME: Relying on posixy $() will cause problems for
5989   #        cross-compilation, but unfortunately the echo tests do not
5990   #        yet detect zsh echo's removal of \ escapes.
5991   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5992   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5993   shlibpath_overrides_runpath=yes
5994   shlibpath_var=DYLD_LIBRARY_PATH
5995   ;;
5996
5997 freebsd1*)
5998   dynamic_linker=no
5999   ;;
6000
6001 freebsd*)
6002   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6003   version_type=freebsd-$objformat
6004   case $version_type in
6005     freebsd-elf*)
6006       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6007       need_version=no
6008       need_lib_prefix=no
6009       ;;
6010     freebsd-*)
6011       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6012       need_version=yes
6013       ;;
6014   esac
6015   shlibpath_var=LD_LIBRARY_PATH
6016   case $host_os in
6017   freebsd2*)
6018     shlibpath_overrides_runpath=yes
6019     ;;
6020   *)
6021     shlibpath_overrides_runpath=no
6022     hardcode_into_libs=yes
6023     ;;
6024   esac
6025   ;;
6026
6027 gnu*)
6028   version_type=linux
6029   need_lib_prefix=no
6030   need_version=no
6031   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6032   soname_spec='${libname}${release}.so$major'
6033   shlibpath_var=LD_LIBRARY_PATH
6034   hardcode_into_libs=yes
6035   ;;
6036
6037 hpux9* | hpux10* | hpux11*)
6038   # Give a soname corresponding to the major version so that dld.sl refuses to
6039   # link against other versions.
6040   dynamic_linker="$host_os dld.sl"
6041   version_type=sunos
6042   need_lib_prefix=no
6043   need_version=no
6044   shlibpath_var=SHLIB_PATH
6045   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6046   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6047   soname_spec='${libname}${release}.sl$major'
6048   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6049   postinstall_cmds='chmod 555 $lib'
6050   ;;
6051
6052 irix5* | irix6*)
6053   version_type=irix
6054   need_lib_prefix=no
6055   need_version=no
6056   soname_spec='${libname}${release}.so$major'
6057   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6058   case $host_os in
6059   irix5*)
6060     libsuff= shlibsuff=
6061     ;;
6062   *)
6063     case $LD in # libtool.m4 will add one of these switches to LD
6064     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6065     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6066     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6067     *) libsuff= shlibsuff= libmagic=never-match;;
6068     esac
6069     ;;
6070   esac
6071   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6072   shlibpath_overrides_runpath=no
6073   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6074   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6075   ;;
6076
6077 # No shared lib support for Linux oldld, aout, or coff.
6078 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6079   dynamic_linker=no
6080   ;;
6081
6082 # This must be Linux ELF.
6083 linux-gnu*)
6084   version_type=linux
6085   need_lib_prefix=no
6086   need_version=no
6087   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6088   soname_spec='${libname}${release}.so$major'
6089   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6090   shlibpath_var=LD_LIBRARY_PATH
6091   shlibpath_overrides_runpath=no
6092   # This implies no fast_install, which is unacceptable.
6093   # Some rework will be needed to allow for fast_install
6094   # before this can be enabled.
6095   hardcode_into_libs=yes
6096
6097   # We used to test for /lib/ld.so.1 and disable shared libraries on
6098   # powerpc, because MkLinux only supported shared libraries with the
6099   # GNU dynamic linker.  Since this was broken with cross compilers,
6100   # most powerpc-linux boxes support dynamic linking these days and
6101   # people can always --disable-shared, the test was removed, and we
6102   # assume the GNU/Linux dynamic linker is in use.
6103   dynamic_linker='GNU/Linux ld.so'
6104   ;;
6105
6106 netbsd*)
6107   version_type=sunos
6108   need_lib_prefix=no
6109   need_version=no
6110   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6111     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6112     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6113     dynamic_linker='NetBSD (a.out) ld.so'
6114   else
6115     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6116     soname_spec='${libname}${release}.so$major'
6117     dynamic_linker='NetBSD ld.elf_so'
6118   fi
6119   shlibpath_var=LD_LIBRARY_PATH
6120   shlibpath_overrides_runpath=yes
6121   hardcode_into_libs=yes
6122   ;;
6123
6124 newsos6)
6125   version_type=linux
6126   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6127   shlibpath_var=LD_LIBRARY_PATH
6128   shlibpath_overrides_runpath=yes
6129   ;;
6130
6131 openbsd*)
6132   version_type=sunos
6133   need_lib_prefix=no
6134   need_version=no
6135   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6136     case "$host_os" in
6137     openbsd2.[89] | openbsd2.[89].*)
6138       shlibpath_overrides_runpath=no
6139       ;;
6140     *)
6141       shlibpath_overrides_runpath=yes
6142       ;;
6143     esac
6144   else
6145     shlibpath_overrides_runpath=yes
6146   fi
6147   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6148   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6149   shlibpath_var=LD_LIBRARY_PATH
6150   ;;
6151
6152 os2*)
6153   libname_spec='$name'
6154   need_lib_prefix=no
6155   library_names_spec='$libname.dll $libname.a'
6156   dynamic_linker='OS/2 ld.exe'
6157   shlibpath_var=LIBPATH
6158   ;;
6159
6160 osf3* | osf4* | osf5*)
6161   version_type=osf
6162   need_version=no
6163   soname_spec='${libname}${release}.so'
6164   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6165   shlibpath_var=LD_LIBRARY_PATH
6166   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6167   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6168   ;;
6169
6170 sco3.2v5*)
6171   version_type=osf
6172   soname_spec='${libname}${release}.so$major'
6173   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6174   shlibpath_var=LD_LIBRARY_PATH
6175   ;;
6176
6177 solaris*)
6178   version_type=linux
6179   need_lib_prefix=no
6180   need_version=no
6181   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6182   soname_spec='${libname}${release}.so$major'
6183   shlibpath_var=LD_LIBRARY_PATH
6184   shlibpath_overrides_runpath=yes
6185   hardcode_into_libs=yes
6186   # ldd complains unless libraries are executable
6187   postinstall_cmds='chmod +x $lib'
6188   ;;
6189
6190 sunos4*)
6191   version_type=sunos
6192   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6193   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6194   shlibpath_var=LD_LIBRARY_PATH
6195   shlibpath_overrides_runpath=yes
6196   if test "$with_gnu_ld" = yes; then
6197     need_lib_prefix=no
6198   fi
6199   need_version=yes
6200   ;;
6201
6202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6203   version_type=linux
6204   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6205   soname_spec='${libname}${release}.so$major'
6206   shlibpath_var=LD_LIBRARY_PATH
6207   case $host_vendor in
6208     sni)
6209       shlibpath_overrides_runpath=no
6210       ;;
6211     motorola)
6212       need_lib_prefix=no
6213       need_version=no
6214       shlibpath_overrides_runpath=no
6215       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6216       ;;
6217   esac
6218   ;;
6219
6220 uts4*)
6221   version_type=linux
6222   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6223   soname_spec='${libname}${release}.so$major'
6224   shlibpath_var=LD_LIBRARY_PATH
6225   ;;
6226
6227 dgux*)
6228   version_type=linux
6229   need_lib_prefix=no
6230   need_version=no
6231   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6232   soname_spec='${libname}${release}.so$major'
6233   shlibpath_var=LD_LIBRARY_PATH
6234   ;;
6235
6236 sysv4*MP*)
6237   if test -d /usr/nec ;then
6238     version_type=linux
6239     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6240     soname_spec='$libname.so.$major'
6241     shlibpath_var=LD_LIBRARY_PATH
6242   fi
6243   ;;
6244
6245 *)
6246   dynamic_linker=no
6247   ;;
6248 esac
6249 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6250 echo "${ECHO_T}$dynamic_linker" >&6
6251 test "$dynamic_linker" = no && can_build_shared=no
6252
6253 # Report the final consequences.
6254 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6255 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6256 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6257 echo "${ECHO_T}$can_build_shared" >&6
6258
6259 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6260 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6261 test "$can_build_shared" = "no" && enable_shared=no
6262
6263 # On AIX, shared libraries and static libraries use the same namespace, and
6264 # are all built from PIC.
6265 case "$host_os" in
6266 aix3*)
6267   test "$enable_shared" = yes && enable_static=no
6268   if test -n "$RANLIB"; then
6269     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6270     postinstall_cmds='$RANLIB $lib'
6271   fi
6272   ;;
6273
6274 aix4*)
6275   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6276     test "$enable_shared" = yes && enable_static=no
6277   fi
6278   ;;
6279 esac
6280 echo "$as_me:$LINENO: result: $enable_shared" >&5
6281 echo "${ECHO_T}$enable_shared" >&6
6282
6283 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6284 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6285 # Make sure either enable_shared or enable_static is yes.
6286 test "$enable_shared" = yes || enable_static=yes
6287 echo "$as_me:$LINENO: result: $enable_static" >&5
6288 echo "${ECHO_T}$enable_static" >&6
6289
6290 if test "$hardcode_action" = relink; then
6291   # Fast installation is not supported
6292   enable_fast_install=no
6293 elif test "$shlibpath_overrides_runpath" = yes ||
6294      test "$enable_shared" = no; then
6295   # Fast installation is not necessary
6296   enable_fast_install=needless
6297 fi
6298
6299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6300 if test "$GCC" = yes; then
6301   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6302 fi
6303
6304 if test "x$enable_dlopen" != xyes; then
6305   enable_dlopen=unknown
6306   enable_dlopen_self=unknown
6307   enable_dlopen_self_static=unknown
6308 else
6309   lt_cv_dlopen=no
6310   lt_cv_dlopen_libs=
6311
6312   case $host_os in
6313   beos*)
6314     lt_cv_dlopen="load_add_on"
6315     lt_cv_dlopen_libs=
6316     lt_cv_dlopen_self=yes
6317     ;;
6318
6319   cygwin* | mingw* | pw32*)
6320     lt_cv_dlopen="LoadLibrary"
6321     lt_cv_dlopen_libs=
6322    ;;
6323
6324   *)
6325     echo "$as_me:$LINENO: checking for shl_load" >&5
6326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6327 if test "${ac_cv_func_shl_load+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   cat >conftest.$ac_ext <<_ACEOF
6331 #line $LINENO "configure"
6332 #include "confdefs.h"
6333 /* System header to define __stub macros and hopefully few prototypes,
6334     which can conflict with char shl_load (); below.  */
6335 #include <assert.h>
6336 /* Override any gcc2 internal prototype to avoid an error.  */
6337 #ifdef __cplusplus
6338 extern "C"
6339 #endif
6340 /* We use char because int might match the return type of a gcc2
6341    builtin and then its argument prototype would still apply.  */
6342 char shl_load ();
6343 char (*f) ();
6344
6345 #ifdef F77_DUMMY_MAIN
6346 #  ifdef __cplusplus
6347      extern "C"
6348 #  endif
6349    int F77_DUMMY_MAIN() { return 1; }
6350 #endif
6351 int
6352 main ()
6353 {
6354 /* The GNU C library defines this for functions which it implements
6355     to always fail with ENOSYS.  Some functions are actually named
6356     something starting with __ and the normal name is an alias.  */
6357 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6358 choke me
6359 #else
6360 f = shl_load;
6361 #endif
6362
6363   ;
6364   return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369   (eval $ac_link) 2>&5
6370   ac_status=$?
6371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372   (exit $ac_status); } &&
6373          { ac_try='test -s conftest$ac_exeext'
6374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6375   (eval $ac_try) 2>&5
6376   ac_status=$?
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); }; }; then
6379   ac_cv_func_shl_load=yes
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 cat conftest.$ac_ext >&5
6383 ac_cv_func_shl_load=no
6384 fi
6385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6386 fi
6387 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6388 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6389 if test $ac_cv_func_shl_load = yes; then
6390   lt_cv_dlopen="shl_load"
6391 else
6392   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6393 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6394 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6395   echo $ECHO_N "(cached) $ECHO_C" >&6
6396 else
6397   ac_check_lib_save_LIBS=$LIBS
6398 LIBS="-ldld  $LIBS"
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 #include "confdefs.h"
6402
6403 /* Override any gcc2 internal prototype to avoid an error.  */
6404 #ifdef __cplusplus
6405 extern "C"
6406 #endif
6407 /* We use char because int might match the return type of a gcc2
6408    builtin and then its argument prototype would still apply.  */
6409 char shl_load ();
6410 #ifdef F77_DUMMY_MAIN
6411 #  ifdef __cplusplus
6412      extern "C"
6413 #  endif
6414    int F77_DUMMY_MAIN() { return 1; }
6415 #endif
6416 int
6417 main ()
6418 {
6419 shl_load ();
6420   ;
6421   return 0;
6422 }
6423 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext
6425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6426   (eval $ac_link) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } &&
6430          { ac_try='test -s conftest$ac_exeext'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; }; then
6436   ac_cv_lib_dld_shl_load=yes
6437 else
6438   echo "$as_me: failed program was:" >&5
6439 cat conftest.$ac_ext >&5
6440 ac_cv_lib_dld_shl_load=no
6441 fi
6442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6443 LIBS=$ac_check_lib_save_LIBS
6444 fi
6445 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6446 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6447 if test $ac_cv_lib_dld_shl_load = yes; then
6448   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6449 else
6450   echo "$as_me:$LINENO: checking for dlopen" >&5
6451 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6452 if test "${ac_cv_func_dlopen+set}" = set; then
6453   echo $ECHO_N "(cached) $ECHO_C" >&6
6454 else
6455   cat >conftest.$ac_ext <<_ACEOF
6456 #line $LINENO "configure"
6457 #include "confdefs.h"
6458 /* System header to define __stub macros and hopefully few prototypes,
6459     which can conflict with char dlopen (); below.  */
6460 #include <assert.h>
6461 /* Override any gcc2 internal prototype to avoid an error.  */
6462 #ifdef __cplusplus
6463 extern "C"
6464 #endif
6465 /* We use char because int might match the return type of a gcc2
6466    builtin and then its argument prototype would still apply.  */
6467 char dlopen ();
6468 char (*f) ();
6469
6470 #ifdef F77_DUMMY_MAIN
6471 #  ifdef __cplusplus
6472      extern "C"
6473 #  endif
6474    int F77_DUMMY_MAIN() { return 1; }
6475 #endif
6476 int
6477 main ()
6478 {
6479 /* The GNU C library defines this for functions which it implements
6480     to always fail with ENOSYS.  Some functions are actually named
6481     something starting with __ and the normal name is an alias.  */
6482 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6483 choke me
6484 #else
6485 f = dlopen;
6486 #endif
6487
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494   (eval $ac_link) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -s conftest$ac_exeext'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }; then
6504   ac_cv_func_dlopen=yes
6505 else
6506   echo "$as_me: failed program was:" >&5
6507 cat conftest.$ac_ext >&5
6508 ac_cv_func_dlopen=no
6509 fi
6510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6511 fi
6512 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6513 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6514 if test $ac_cv_func_dlopen = yes; then
6515   lt_cv_dlopen="dlopen"
6516 else
6517   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6518 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6520   echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522   ac_check_lib_save_LIBS=$LIBS
6523 LIBS="-ldl  $LIBS"
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line $LINENO "configure"
6526 #include "confdefs.h"
6527
6528 /* Override any gcc2 internal prototype to avoid an error.  */
6529 #ifdef __cplusplus
6530 extern "C"
6531 #endif
6532 /* We use char because int might match the return type of a gcc2
6533    builtin and then its argument prototype would still apply.  */
6534 char dlopen ();
6535 #ifdef F77_DUMMY_MAIN
6536 #  ifdef __cplusplus
6537      extern "C"
6538 #  endif
6539    int F77_DUMMY_MAIN() { return 1; }
6540 #endif
6541 int
6542 main ()
6543 {
6544 dlopen ();
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext conftest$ac_exeext
6550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6551   (eval $ac_link) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } &&
6555          { ac_try='test -s conftest$ac_exeext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_cv_lib_dl_dlopen=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6565 ac_cv_lib_dl_dlopen=no
6566 fi
6567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6568 LIBS=$ac_check_lib_save_LIBS
6569 fi
6570 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6571 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6572 if test $ac_cv_lib_dl_dlopen = yes; then
6573   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6574 else
6575   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6576 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6577 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   ac_check_lib_save_LIBS=$LIBS
6581 LIBS="-lsvld  $LIBS"
6582 cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 #include "confdefs.h"
6585
6586 /* Override any gcc2 internal prototype to avoid an error.  */
6587 #ifdef __cplusplus
6588 extern "C"
6589 #endif
6590 /* We use char because int might match the return type of a gcc2
6591    builtin and then its argument prototype would still apply.  */
6592 char dlopen ();
6593 #ifdef F77_DUMMY_MAIN
6594 #  ifdef __cplusplus
6595      extern "C"
6596 #  endif
6597    int F77_DUMMY_MAIN() { return 1; }
6598 #endif
6599 int
6600 main ()
6601 {
6602 dlopen ();
6603   ;
6604   return 0;
6605 }
6606 _ACEOF
6607 rm -f conftest.$ac_objext conftest$ac_exeext
6608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609   (eval $ac_link) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -s conftest$ac_exeext'
6614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615   (eval $ac_try) 2>&5
6616   ac_status=$?
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); }; }; then
6619   ac_cv_lib_svld_dlopen=yes
6620 else
6621   echo "$as_me: failed program was:" >&5
6622 cat conftest.$ac_ext >&5
6623 ac_cv_lib_svld_dlopen=no
6624 fi
6625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6626 LIBS=$ac_check_lib_save_LIBS
6627 fi
6628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6630 if test $ac_cv_lib_svld_dlopen = yes; then
6631   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6632 else
6633   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   ac_check_lib_save_LIBS=$LIBS
6639 LIBS="-ldld  $LIBS"
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line $LINENO "configure"
6642 #include "confdefs.h"
6643
6644 /* Override any gcc2 internal prototype to avoid an error.  */
6645 #ifdef __cplusplus
6646 extern "C"
6647 #endif
6648 /* We use char because int might match the return type of a gcc2
6649    builtin and then its argument prototype would still apply.  */
6650 char dld_link ();
6651 #ifdef F77_DUMMY_MAIN
6652 #  ifdef __cplusplus
6653      extern "C"
6654 #  endif
6655    int F77_DUMMY_MAIN() { return 1; }
6656 #endif
6657 int
6658 main ()
6659 {
6660 dld_link ();
6661   ;
6662   return 0;
6663 }
6664 _ACEOF
6665 rm -f conftest.$ac_objext conftest$ac_exeext
6666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667   (eval $ac_link) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); } &&
6671          { ac_try='test -s conftest$ac_exeext'
6672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673   (eval $ac_try) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; }; then
6677   ac_cv_lib_dld_dld_link=yes
6678 else
6679   echo "$as_me: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6681 ac_cv_lib_dld_dld_link=no
6682 fi
6683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6684 LIBS=$ac_check_lib_save_LIBS
6685 fi
6686 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6687 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6688 if test $ac_cv_lib_dld_dld_link = yes; then
6689   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6690 fi
6691
6692
6693 fi
6694
6695
6696 fi
6697
6698
6699 fi
6700
6701
6702 fi
6703
6704
6705 fi
6706
6707     ;;
6708   esac
6709
6710   if test "x$lt_cv_dlopen" != xno; then
6711     enable_dlopen=yes
6712   else
6713     enable_dlopen=no
6714   fi
6715
6716   case $lt_cv_dlopen in
6717   dlopen)
6718     save_CPPFLAGS="$CPPFLAGS"
6719         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6720
6721     save_LDFLAGS="$LDFLAGS"
6722     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6723
6724     save_LIBS="$LIBS"
6725     LIBS="$lt_cv_dlopen_libs $LIBS"
6726
6727     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6728 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6729 if test "${lt_cv_dlopen_self+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732           if test "$cross_compiling" = yes; then :
6733   lt_cv_dlopen_self=cross
6734 else
6735     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6736   lt_status=$lt_dlunknown
6737   cat > conftest.$ac_ext <<EOF
6738 #line 6738 "configure"
6739 #include "confdefs.h"
6740
6741 #if HAVE_DLFCN_H
6742 #include <dlfcn.h>
6743 #endif
6744
6745 #include <stdio.h>
6746
6747 #ifdef RTLD_GLOBAL
6748 #  define LT_DLGLOBAL           RTLD_GLOBAL
6749 #else
6750 #  ifdef DL_GLOBAL
6751 #    define LT_DLGLOBAL         DL_GLOBAL
6752 #  else
6753 #    define LT_DLGLOBAL         0
6754 #  endif
6755 #endif
6756
6757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6758    find out it does not work in some platform. */
6759 #ifndef LT_DLLAZY_OR_NOW
6760 #  ifdef RTLD_LAZY
6761 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6762 #  else
6763 #    ifdef DL_LAZY
6764 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6765 #    else
6766 #      ifdef RTLD_NOW
6767 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6768 #      else
6769 #        ifdef DL_NOW
6770 #          define LT_DLLAZY_OR_NOW      DL_NOW
6771 #        else
6772 #          define LT_DLLAZY_OR_NOW      0
6773 #        endif
6774 #      endif
6775 #    endif
6776 #  endif
6777 #endif
6778
6779 #ifdef __cplusplus
6780 extern "C" void exit (int);
6781 #endif
6782
6783 void fnord() { int i=42;}
6784 int main ()
6785 {
6786   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6787   int status = $lt_dlunknown;
6788
6789   if (self)
6790     {
6791       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6792       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6793       /* dlclose (self); */
6794     }
6795
6796     exit (status);
6797 }
6798 EOF
6799   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6800   (eval $ac_link) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6804     (./conftest; exit; ) 2>/dev/null
6805     lt_status=$?
6806     case x$lt_status in
6807       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6808       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6809       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6810     esac
6811   else :
6812     # compilation failed
6813     lt_cv_dlopen_self=no
6814   fi
6815 fi
6816 rm -fr conftest*
6817
6818
6819 fi
6820 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6821 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6822
6823     if test "x$lt_cv_dlopen_self" = xyes; then
6824       LDFLAGS="$LDFLAGS $link_static_flag"
6825       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6826 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6827 if test "${lt_cv_dlopen_self_static+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830           if test "$cross_compiling" = yes; then :
6831   lt_cv_dlopen_self_static=cross
6832 else
6833     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6834   lt_status=$lt_dlunknown
6835   cat > conftest.$ac_ext <<EOF
6836 #line 6836 "configure"
6837 #include "confdefs.h"
6838
6839 #if HAVE_DLFCN_H
6840 #include <dlfcn.h>
6841 #endif
6842
6843 #include <stdio.h>
6844
6845 #ifdef RTLD_GLOBAL
6846 #  define LT_DLGLOBAL           RTLD_GLOBAL
6847 #else
6848 #  ifdef DL_GLOBAL
6849 #    define LT_DLGLOBAL         DL_GLOBAL
6850 #  else
6851 #    define LT_DLGLOBAL         0
6852 #  endif
6853 #endif
6854
6855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6856    find out it does not work in some platform. */
6857 #ifndef LT_DLLAZY_OR_NOW
6858 #  ifdef RTLD_LAZY
6859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
6860 #  else
6861 #    ifdef DL_LAZY
6862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
6863 #    else
6864 #      ifdef RTLD_NOW
6865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
6866 #      else
6867 #        ifdef DL_NOW
6868 #          define LT_DLLAZY_OR_NOW      DL_NOW
6869 #        else
6870 #          define LT_DLLAZY_OR_NOW      0
6871 #        endif
6872 #      endif
6873 #    endif
6874 #  endif
6875 #endif
6876
6877 #ifdef __cplusplus
6878 extern "C" void exit (int);
6879 #endif
6880
6881 void fnord() { int i=42;}
6882 int main ()
6883 {
6884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6885   int status = $lt_dlunknown;
6886
6887   if (self)
6888     {
6889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6890       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6891       /* dlclose (self); */
6892     }
6893
6894     exit (status);
6895 }
6896 EOF
6897   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6898   (eval $ac_link) 2>&5
6899   ac_status=$?
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6902     (./conftest; exit; ) 2>/dev/null
6903     lt_status=$?
6904     case x$lt_status in
6905       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6906       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6907       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6908     esac
6909   else :
6910     # compilation failed
6911     lt_cv_dlopen_self_static=no
6912   fi
6913 fi
6914 rm -fr conftest*
6915
6916
6917 fi
6918 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6919 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6920     fi
6921
6922     CPPFLAGS="$save_CPPFLAGS"
6923     LDFLAGS="$save_LDFLAGS"
6924     LIBS="$save_LIBS"
6925     ;;
6926   esac
6927
6928   case $lt_cv_dlopen_self in
6929   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6930   *) enable_dlopen_self=unknown ;;
6931   esac
6932
6933   case $lt_cv_dlopen_self_static in
6934   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6935   *) enable_dlopen_self_static=unknown ;;
6936   esac
6937 fi
6938
6939
6940 if test "$enable_shared" = yes && test "$GCC" = yes; then
6941   case $archive_cmds in
6942   *'~'*)
6943     # FIXME: we may have to deal with multi-command sequences.
6944     ;;
6945   '$CC '*)
6946     # Test whether the compiler implicitly links with -lc since on some
6947     # systems, -lgcc has to come before -lc. If gcc already passes -lc
6948     # to ld, don't add -lc before -lgcc.
6949     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6950 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6951     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   $rm conftest*
6955     echo 'static int dummy;' > conftest.$ac_ext
6956
6957     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6958   (eval $ac_compile) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; then
6962       soname=conftest
6963       lib=conftest
6964       libobjs=conftest.$ac_objext
6965       deplibs=
6966       wl=$lt_cv_prog_cc_wl
6967       compiler_flags=-v
6968       linker_flags=-v
6969       verstring=
6970       output_objdir=.
6971       libname=conftest
6972       save_allow_undefined_flag=$allow_undefined_flag
6973       allow_undefined_flag=
6974       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6975   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6976   ac_status=$?
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); }
6979       then
6980         lt_cv_archive_cmds_need_lc=no
6981       else
6982         lt_cv_archive_cmds_need_lc=yes
6983       fi
6984       allow_undefined_flag=$save_allow_undefined_flag
6985     else
6986       cat conftest.err 1>&5
6987     fi
6988 fi
6989
6990     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6991 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6992     ;;
6993   esac
6994 fi
6995 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6996
6997 # The second clause should only fire when bootstrapping the
6998 # libtool distribution, otherwise you forgot to ship ltmain.sh
6999 # with your package, and you will get complaints that there are
7000 # no rules to generate ltmain.sh.
7001 if test -f "$ltmain"; then
7002   :
7003 else
7004   # If there is no Makefile yet, we rely on a make rule to execute
7005   # `config.status --recheck' to rerun these tests and create the
7006   # libtool script then.
7007   test -f Makefile && make "$ltmain"
7008 fi
7009
7010 if test -f "$ltmain"; then
7011   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7012   $rm -f "${ofile}T"
7013
7014   echo creating $ofile
7015
7016   # Now quote all the things that may contain metacharacters while being
7017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7018   # variables and quote the copies for generation of the libtool script.
7019   for var in echo old_CC old_CFLAGS \
7020     AR AR_FLAGS CC LD LN_S NM SHELL \
7021     reload_flag reload_cmds wl \
7022     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7023     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7024     library_names_spec soname_spec \
7025     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7026     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7027     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7028     old_striplib striplib file_magic_cmd export_symbols_cmds \
7029     deplibs_check_method allow_undefined_flag no_undefined_flag \
7030     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7031     global_symbol_to_c_name_address \
7032     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7033     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7034     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7035
7036     case $var in
7037     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7038     old_postinstall_cmds | old_postuninstall_cmds | \
7039     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7040     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7041     postinstall_cmds | postuninstall_cmds | \
7042     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7043       # Double-quote double-evaled strings.
7044       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7045       ;;
7046     *)
7047       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7048       ;;
7049     esac
7050   done
7051
7052   cat <<__EOF__ > "${ofile}T"
7053 #! $SHELL
7054
7055 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7056 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7057 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7058 #
7059 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7060 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7061 #
7062 # This program is free software; you can redistribute it and/or modify
7063 # it under the terms of the GNU General Public License as published by
7064 # the Free Software Foundation; either version 2 of the License, or
7065 # (at your option) any later version.
7066 #
7067 # This program is distributed in the hope that it will be useful, but
7068 # WITHOUT ANY WARRANTY; without even the implied warranty of
7069 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7070 # General Public License for more details.
7071 #
7072 # You should have received a copy of the GNU General Public License
7073 # along with this program; if not, write to the Free Software
7074 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7075 #
7076 # As a special exception to the GNU General Public License, if you
7077 # distribute this file as part of a program that contains a
7078 # configuration script generated by Autoconf, you may include it under
7079 # the same distribution terms that you use for the rest of that program.
7080
7081 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7082 Xsed="sed -e s/^X//"
7083
7084 # The HP-UX ksh and POSIX shell print the target directory to stdout
7085 # if CDPATH is set.
7086 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7087
7088 # ### BEGIN LIBTOOL CONFIG
7089
7090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7091
7092 # Shell to use when invoking shell scripts.
7093 SHELL=$lt_SHELL
7094
7095 # Whether or not to build shared libraries.
7096 build_libtool_libs=$enable_shared
7097
7098 # Whether or not to build static libraries.
7099 build_old_libs=$enable_static
7100
7101 # Whether or not to add -lc for building shared libraries.
7102 build_libtool_need_lc=$need_lc
7103
7104 # Whether or not to optimize for fast installation.
7105 fast_install=$enable_fast_install
7106
7107 # The host system.
7108 host_alias=$host_alias
7109 host=$host
7110
7111 # An echo program that does not interpret backslashes.
7112 echo=$lt_echo
7113
7114 # The archiver.
7115 AR=$lt_AR
7116 AR_FLAGS=$lt_AR_FLAGS
7117
7118 # The default C compiler.
7119 CC=$lt_CC
7120
7121 # Is the compiler the GNU C compiler?
7122 with_gcc=$GCC
7123
7124 # The linker used to build libraries.
7125 LD=$lt_LD
7126
7127 # Whether we need hard or soft links.
7128 LN_S=$lt_LN_S
7129
7130 # A BSD-compatible nm program.
7131 NM=$lt_NM
7132
7133 # A symbol stripping program
7134 STRIP=$STRIP
7135
7136 # Used to examine libraries when file_magic_cmd begins "file"
7137 MAGIC_CMD=$MAGIC_CMD
7138
7139 # Used on cygwin: DLL creation program.
7140 DLLTOOL="$DLLTOOL"
7141
7142 # Used on cygwin: object dumper.
7143 OBJDUMP="$OBJDUMP"
7144
7145 # Used on cygwin: assembler.
7146 AS="$AS"
7147
7148 # The name of the directory that contains temporary libtool files.
7149 objdir=$objdir
7150
7151 # How to create reloadable object files.
7152 reload_flag=$lt_reload_flag
7153 reload_cmds=$lt_reload_cmds
7154
7155 # How to pass a linker flag through the compiler.
7156 wl=$lt_wl
7157
7158 # Object file suffix (normally "o").
7159 objext="$ac_objext"
7160
7161 # Old archive suffix (normally "a").
7162 libext="$libext"
7163
7164 # Executable file suffix (normally "").
7165 exeext="$exeext"
7166
7167 # Additional compiler flags for building library objects.
7168 pic_flag=$lt_pic_flag
7169 pic_mode=$pic_mode
7170
7171 # Does compiler simultaneously support -c and -o options?
7172 compiler_c_o=$lt_compiler_c_o
7173
7174 # Can we write directly to a .lo ?
7175 compiler_o_lo=$lt_compiler_o_lo
7176
7177 # Must we lock files when doing compilation ?
7178 need_locks=$lt_need_locks
7179
7180 # Do we need the lib prefix for modules?
7181 need_lib_prefix=$need_lib_prefix
7182
7183 # Do we need a version for libraries?
7184 need_version=$need_version
7185
7186 # Whether dlopen is supported.
7187 dlopen_support=$enable_dlopen
7188
7189 # Whether dlopen of programs is supported.
7190 dlopen_self=$enable_dlopen_self
7191
7192 # Whether dlopen of statically linked programs is supported.
7193 dlopen_self_static=$enable_dlopen_self_static
7194
7195 # Compiler flag to prevent dynamic linking.
7196 link_static_flag=$lt_link_static_flag
7197
7198 # Compiler flag to turn off builtin functions.
7199 no_builtin_flag=$lt_no_builtin_flag
7200
7201 # Compiler flag to allow reflexive dlopens.
7202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7203
7204 # Compiler flag to generate shared objects directly from archives.
7205 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7206
7207 # Compiler flag to generate thread-safe objects.
7208 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7209
7210 # Library versioning type.
7211 version_type=$version_type
7212
7213 # Format of library name prefix.
7214 libname_spec=$lt_libname_spec
7215
7216 # List of archive names.  First name is the real one, the rest are links.
7217 # The last name is the one that the linker finds with -lNAME.
7218 library_names_spec=$lt_library_names_spec
7219
7220 # The coded name of the library, if different from the real name.
7221 soname_spec=$lt_soname_spec
7222
7223 # Commands used to build and install an old-style archive.
7224 RANLIB=$lt_RANLIB
7225 old_archive_cmds=$lt_old_archive_cmds
7226 old_postinstall_cmds=$lt_old_postinstall_cmds
7227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7228
7229 # Create an old-style archive from a shared archive.
7230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7231
7232 # Create a temporary old-style archive to link instead of a shared archive.
7233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7234
7235 # Commands used to build and install a shared archive.
7236 archive_cmds=$lt_archive_cmds
7237 archive_expsym_cmds=$lt_archive_expsym_cmds
7238 postinstall_cmds=$lt_postinstall_cmds
7239 postuninstall_cmds=$lt_postuninstall_cmds
7240
7241 # Commands to strip libraries.
7242 old_striplib=$lt_old_striplib
7243 striplib=$lt_striplib
7244
7245 # Method to check whether dependent libraries are shared objects.
7246 deplibs_check_method=$lt_deplibs_check_method
7247
7248 # Command to use when deplibs_check_method == file_magic.
7249 file_magic_cmd=$lt_file_magic_cmd
7250
7251 # Flag that allows shared libraries with undefined symbols to be built.
7252 allow_undefined_flag=$lt_allow_undefined_flag
7253
7254 # Flag that forces no undefined symbols.
7255 no_undefined_flag=$lt_no_undefined_flag
7256
7257 # Commands used to finish a libtool library installation in a directory.
7258 finish_cmds=$lt_finish_cmds
7259
7260 # Same as above, but a single script fragment to be evaled but not shown.
7261 finish_eval=$lt_finish_eval
7262
7263 # Take the output of nm and produce a listing of raw symbols and C names.
7264 global_symbol_pipe=$lt_global_symbol_pipe
7265
7266 # Transform the output of nm in a proper C declaration
7267 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7268
7269 # Transform the output of nm in a C name address pair
7270 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7271
7272 # This is the shared library runtime path variable.
7273 runpath_var=$runpath_var
7274
7275 # This is the shared library path variable.
7276 shlibpath_var=$shlibpath_var
7277
7278 # Is shlibpath searched before the hard-coded library search path?
7279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7280
7281 # How to hardcode a shared library path into an executable.
7282 hardcode_action=$hardcode_action
7283
7284 # Whether we should hardcode library paths into libraries.
7285 hardcode_into_libs=$hardcode_into_libs
7286
7287 # Flag to hardcode \$libdir into a binary during linking.
7288 # This must work even if \$libdir does not exist.
7289 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7290
7291 # Whether we need a single -rpath flag with a separated argument.
7292 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7293
7294 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7295 # resulting binary.
7296 hardcode_direct=$hardcode_direct
7297
7298 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7299 # resulting binary.
7300 hardcode_minus_L=$hardcode_minus_L
7301
7302 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7303 # the resulting binary.
7304 hardcode_shlibpath_var=$hardcode_shlibpath_var
7305
7306 # Variables whose values should be saved in libtool wrapper scripts and
7307 # restored at relink time.
7308 variables_saved_for_relink="$variables_saved_for_relink"
7309
7310 # Whether libtool must link a program against all its dependency libraries.
7311 link_all_deplibs=$link_all_deplibs
7312
7313 # Compile-time system search path for libraries
7314 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7315
7316 # Run-time system search path for libraries
7317 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7318
7319 # Fix the shell variable \$srcfile for the compiler.
7320 fix_srcfile_path="$fix_srcfile_path"
7321
7322 # Set to yes if exported symbols are required.
7323 always_export_symbols=$always_export_symbols
7324
7325 # The commands to list exported symbols.
7326 export_symbols_cmds=$lt_export_symbols_cmds
7327
7328 # The commands to extract the exported symbol list from a shared archive.
7329 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7330
7331 # Symbols that should not be listed in the preloaded symbols.
7332 exclude_expsyms=$lt_exclude_expsyms
7333
7334 # Symbols that must always be exported.
7335 include_expsyms=$lt_include_expsyms
7336
7337 # ### END LIBTOOL CONFIG
7338
7339 __EOF__
7340
7341   case $host_os in
7342   aix3*)
7343     cat <<\EOF >> "${ofile}T"
7344
7345 # AIX sometimes has problems with the GCC collect2 program.  For some
7346 # reason, if we set the COLLECT_NAMES environment variable, the problems
7347 # vanish in a puff of smoke.
7348 if test "X${COLLECT_NAMES+set}" != Xset; then
7349   COLLECT_NAMES=
7350   export COLLECT_NAMES
7351 fi
7352 EOF
7353     ;;
7354   esac
7355
7356   case $host_os in
7357   cygwin* | mingw* | pw32* | os2*)
7358     cat <<'EOF' >> "${ofile}T"
7359       # This is a source program that is used to create dlls on Windows
7360       # Don't remove nor modify the starting and closing comments
7361 # /* ltdll.c starts here */
7362 # #define WIN32_LEAN_AND_MEAN
7363 # #include <windows.h>
7364 # #undef WIN32_LEAN_AND_MEAN
7365 # #include <stdio.h>
7366 #
7367 # #ifndef __CYGWIN__
7368 # #  ifdef __CYGWIN32__
7369 # #    define __CYGWIN__ __CYGWIN32__
7370 # #  endif
7371 # #endif
7372 #
7373 # #ifdef __cplusplus
7374 # extern "C" {
7375 # #endif
7376 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7377 # #ifdef __cplusplus
7378 # }
7379 # #endif
7380 #
7381 # #ifdef __CYGWIN__
7382 # #include <cygwin/cygwin_dll.h>
7383 # DECLARE_CYGWIN_DLL( DllMain );
7384 # #endif
7385 # HINSTANCE __hDllInstance_base;
7386 #
7387 # BOOL APIENTRY
7388 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7389 # {
7390 #   __hDllInstance_base = hInst;
7391 #   return TRUE;
7392 # }
7393 # /* ltdll.c ends here */
7394         # This is a source program that is used to create import libraries
7395         # on Windows for dlls which lack them. Don't remove nor modify the
7396         # starting and closing comments
7397 # /* impgen.c starts here */
7398 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7399 #
7400 #  This file is part of GNU libtool.
7401 #
7402 #  This program is free software; you can redistribute it and/or modify
7403 #  it under the terms of the GNU General Public License as published by
7404 #  the Free Software Foundation; either version 2 of the License, or
7405 #  (at your option) any later version.
7406 #
7407 #  This program is distributed in the hope that it will be useful,
7408 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7409 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7410 #  GNU General Public License for more details.
7411 #
7412 #  You should have received a copy of the GNU General Public License
7413 #  along with this program; if not, write to the Free Software
7414 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7415 #  */
7416 #
7417 # #include <stdio.h>            /* for printf() */
7418 # #include <unistd.h>           /* for open(), lseek(), read() */
7419 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
7420 # #include <string.h>           /* for strdup() */
7421 #
7422 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7423 # #ifndef O_BINARY
7424 # #define O_BINARY 0
7425 # #endif
7426 #
7427 # static unsigned int
7428 # pe_get16 (fd, offset)
7429 #      int fd;
7430 #      int offset;
7431 # {
7432 #   unsigned char b[2];
7433 #   lseek (fd, offset, SEEK_SET);
7434 #   read (fd, b, 2);
7435 #   return b[0] + (b[1]<<8);
7436 # }
7437 #
7438 # static unsigned int
7439 # pe_get32 (fd, offset)
7440 #     int fd;
7441 #     int offset;
7442 # {
7443 #   unsigned char b[4];
7444 #   lseek (fd, offset, SEEK_SET);
7445 #   read (fd, b, 4);
7446 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7447 # }
7448 #
7449 # static unsigned int
7450 # pe_as32 (ptr)
7451 #      void *ptr;
7452 # {
7453 #   unsigned char *b = ptr;
7454 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7455 # }
7456 #
7457 # int
7458 # main (argc, argv)
7459 #     int argc;
7460 #     char *argv[];
7461 # {
7462 #     int dll;
7463 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7464 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
7465 #     unsigned long name_rvas, nexp;
7466 #     unsigned char *expdata, *erva;
7467 #     char *filename, *dll_name;
7468 #
7469 #     filename = argv[1];
7470 #
7471 #     dll = open(filename, O_RDONLY|O_BINARY);
7472 #     if (dll < 1)
7473 #       return 1;
7474 #
7475 #     dll_name = filename;
7476 #
7477 #     for (i=0; filename[i]; i++)
7478 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7479 #           dll_name = filename + i +1;
7480 #
7481 #     pe_header_offset = pe_get32 (dll, 0x3c);
7482 #     opthdr_ofs = pe_header_offset + 4 + 20;
7483 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7484 #
7485 #     if (num_entries < 1) /* no exports */
7486 #       return 1;
7487 #
7488 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7489 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
7490 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7491 #     secptr = (pe_header_offset + 4 + 20 +
7492 #             pe_get16 (dll, pe_header_offset + 4 + 16));
7493 #
7494 #     expptr = 0;
7495 #     for (i = 0; i < nsections; i++)
7496 #     {
7497 #       char sname[8];
7498 #       unsigned long secptr1 = secptr + 40 * i;
7499 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7500 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7501 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7502 #       lseek(dll, secptr1, SEEK_SET);
7503 #       read(dll, sname, 8);
7504 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
7505 #       {
7506 #           expptr = fptr + (export_rva - vaddr);
7507 #           if (export_rva + export_size > vaddr + vsize)
7508 #               export_size = vsize - (export_rva - vaddr);
7509 #           break;
7510 #       }
7511 #     }
7512 #
7513 #     expdata = (unsigned char*)malloc(export_size);
7514 #     lseek (dll, expptr, SEEK_SET);
7515 #     read (dll, expdata, export_size);
7516 #     erva = expdata - export_rva;
7517 #
7518 #     nexp = pe_as32 (expdata+24);
7519 #     name_rvas = pe_as32 (expdata+32);
7520 #
7521 #     printf ("EXPORTS\n");
7522 #     for (i = 0; i<nexp; i++)
7523 #     {
7524 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7525 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7526 #     }
7527 #
7528 #     return 0;
7529 # }
7530 # /* impgen.c ends here */
7531
7532 EOF
7533     ;;
7534   esac
7535
7536   # We use sed instead of cat because bash on DJGPP gets confused if
7537   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7538   # text mode, it properly converts lines to CR/LF.  This bash problem
7539   # is reportedly fixed, but why not run on old versions too?
7540   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7541
7542   mv -f "${ofile}T" "$ofile" || \
7543     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7544   chmod +x "$ofile"
7545 fi
7546
7547
7548
7549
7550
7551 # This can be used to rebuild libtool when needed
7552 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7553
7554 # Always use our own libtool.
7555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7556
7557 # Prevent multiple expansion
7558
7559
7560
7561 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7562 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
7563     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7564 if test "${enable_maintainer_mode+set}" = set; then
7565   enableval="$enable_maintainer_mode"
7566   USE_MAINTAINER_MODE=$enableval
7567 else
7568   USE_MAINTAINER_MODE=no
7569 fi;
7570   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7571 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
7572
7573
7574 if test $USE_MAINTAINER_MODE = yes; then
7575   MAINTAINER_MODE_TRUE=
7576   MAINTAINER_MODE_FALSE='#'
7577 else
7578   MAINTAINER_MODE_TRUE='#'
7579   MAINTAINER_MODE_FALSE=
7580 fi
7581   MAINT=$MAINTAINER_MODE_TRUE
7582
7583
7584
7585 _cppflags="${CPPFLAGS}"
7586 _ldflags="${LDFLAGS}"
7587
7588
7589
7590 # Check whether --with-zlib or --without-zlib was given.
7591 if test "${with_zlib+set}" = set; then
7592   withval="$with_zlib"
7593
7594   if test "$withval" != "no" -a "$withval" != "yes"; then
7595     Z_DIR=$withval
7596     CPPFLAGS="${CPPFLAGS} -I$withval/include"
7597     LDFLAGS="${LDFLAGS} -L$withval/lib"
7598   fi
7599
7600 fi;
7601 if test "$with_zlib" = "no"; then
7602     echo "Disabling compression support"
7603 else
7604
7605 for ac_header in zlib.h
7606 do
7607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7609   echo "$as_me:$LINENO: checking for $ac_header" >&5
7610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 fi
7614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616 else
7617   # Is the header compilable?
7618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7620 cat >conftest.$ac_ext <<_ACEOF
7621 #line $LINENO "configure"
7622 #include "confdefs.h"
7623 $ac_includes_default
7624 #include <$ac_header>
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628   (eval $ac_compile) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -s conftest.$ac_objext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_header_compiler=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 cat conftest.$ac_ext >&5
7642 ac_header_compiler=no
7643 fi
7644 rm -f conftest.$ac_objext conftest.$ac_ext
7645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7646 echo "${ECHO_T}$ac_header_compiler" >&6
7647
7648 # Is the header present?
7649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7651 cat >conftest.$ac_ext <<_ACEOF
7652 #line $LINENO "configure"
7653 #include "confdefs.h"
7654 #include <$ac_header>
7655 _ACEOF
7656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7658   ac_status=$?
7659   egrep -v '^ *\+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } >/dev/null; then
7664   if test -s conftest.err; then
7665     ac_cpp_err=$ac_c_preproc_warn_flag
7666   else
7667     ac_cpp_err=
7668   fi
7669 else
7670   ac_cpp_err=yes
7671 fi
7672 if test -z "$ac_cpp_err"; then
7673   ac_header_preproc=yes
7674 else
7675   echo "$as_me: failed program was:" >&5
7676   cat conftest.$ac_ext >&5
7677   ac_header_preproc=no
7678 fi
7679 rm -f conftest.err conftest.$ac_ext
7680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7681 echo "${ECHO_T}$ac_header_preproc" >&6
7682
7683 # So?  What about this header?
7684 case $ac_header_compiler:$ac_header_preproc in
7685   yes:no )
7686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7690   no:yes )
7691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7693     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7694 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7697 esac
7698 echo "$as_me:$LINENO: checking for $ac_header" >&5
7699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   eval "$as_ac_Header=$ac_header_preproc"
7704 fi
7705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707
7708 fi
7709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710   cat >>confdefs.h <<_ACEOF
7711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7713  echo "$as_me:$LINENO: checking for gzread in -lz" >&5
7714 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
7715 if test "${ac_cv_lib_z_gzread+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-lz  $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7722 #include "confdefs.h"
7723
7724 /* Override any gcc2 internal prototype to avoid an error.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729    builtin and then its argument prototype would still apply.  */
7730 char gzread ();
7731 #ifdef F77_DUMMY_MAIN
7732 #  ifdef __cplusplus
7733      extern "C"
7734 #  endif
7735    int F77_DUMMY_MAIN() { return 1; }
7736 #endif
7737 int
7738 main ()
7739 {
7740 gzread ();
7741   ;
7742   return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747   (eval $ac_link) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } &&
7751          { ac_try='test -s conftest$ac_exeext'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   ac_cv_lib_z_gzread=yes
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 ac_cv_lib_z_gzread=no
7762 fi
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7765 fi
7766 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
7767 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
7768 if test $ac_cv_lib_z_gzread = yes; then
7769
7770             cat >>confdefs.h <<\_ACEOF
7771 #define HAVE_LIBZ 1
7772 _ACEOF
7773
7774             if test "x${Z_DIR}" != "x"; then
7775                 Z_CFLAGS="-I${Z_DIR}/include"
7776                 Z_LIBS="-L${Z_DIR}/lib -lz"
7777                 case ${host} in
7778                     *-*-solaris*)
7779                         Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
7780                         ;;
7781                 esac
7782             else
7783                 Z_LIBS="-lz"
7784             fi
7785 fi
7786
7787 fi
7788
7789 done
7790
7791 fi
7792
7793
7794
7795
7796 CPPFLAGS=${_cppflags}
7797 LDFLAGS=${_ldflags}
7798
7799
7800
7801
7802
7803
7804 ac_header_dirent=no
7805 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7806   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7807 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7808 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810   echo $ECHO_N "(cached) $ECHO_C" >&6
7811 else
7812   cat >conftest.$ac_ext <<_ACEOF
7813 #line $LINENO "configure"
7814 #include "confdefs.h"
7815 #include <sys/types.h>
7816 #include <$ac_hdr>
7817
7818 #ifdef F77_DUMMY_MAIN
7819 #  ifdef __cplusplus
7820      extern "C"
7821 #  endif
7822    int F77_DUMMY_MAIN() { return 1; }
7823 #endif
7824 int
7825 main ()
7826 {
7827 if ((DIR *) 0)
7828 return 0;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } &&
7839          { ac_try='test -s conftest.$ac_objext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   eval "$as_ac_Header=yes"
7846 else
7847   echo "$as_me: failed program was:" >&5
7848 cat conftest.$ac_ext >&5
7849 eval "$as_ac_Header=no"
7850 fi
7851 rm -f conftest.$ac_objext conftest.$ac_ext
7852 fi
7853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7856   cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7858 _ACEOF
7859
7860 ac_header_dirent=$ac_hdr; break
7861 fi
7862
7863 done
7864 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7865 if test $ac_header_dirent = dirent.h; then
7866   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7867 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7868 if test "${ac_cv_search_opendir+set}" = set; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   ac_func_search_save_LIBS=$LIBS
7872 ac_cv_search_opendir=no
7873 cat >conftest.$ac_ext <<_ACEOF
7874 #line $LINENO "configure"
7875 #include "confdefs.h"
7876
7877 /* Override any gcc2 internal prototype to avoid an error.  */
7878 #ifdef __cplusplus
7879 extern "C"
7880 #endif
7881 /* We use char because int might match the return type of a gcc2
7882    builtin and then its argument prototype would still apply.  */
7883 char opendir ();
7884 #ifdef F77_DUMMY_MAIN
7885 #  ifdef __cplusplus
7886      extern "C"
7887 #  endif
7888    int F77_DUMMY_MAIN() { return 1; }
7889 #endif
7890 int
7891 main ()
7892 {
7893 opendir ();
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); } &&
7904          { ac_try='test -s conftest$ac_exeext'
7905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906   (eval $ac_try) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }; }; then
7910   ac_cv_search_opendir="none required"
7911 else
7912   echo "$as_me: failed program was:" >&5
7913 cat conftest.$ac_ext >&5
7914 fi
7915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7916 if test "$ac_cv_search_opendir" = no; then
7917   for ac_lib in dir; do
7918     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7919     cat >conftest.$ac_ext <<_ACEOF
7920 #line $LINENO "configure"
7921 #include "confdefs.h"
7922
7923 /* Override any gcc2 internal prototype to avoid an error.  */
7924 #ifdef __cplusplus
7925 extern "C"
7926 #endif
7927 /* We use char because int might match the return type of a gcc2
7928    builtin and then its argument prototype would still apply.  */
7929 char opendir ();
7930 #ifdef F77_DUMMY_MAIN
7931 #  ifdef __cplusplus
7932      extern "C"
7933 #  endif
7934    int F77_DUMMY_MAIN() { return 1; }
7935 #endif
7936 int
7937 main ()
7938 {
7939 opendir ();
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext conftest$ac_exeext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7946   (eval $ac_link) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); } &&
7950          { ac_try='test -s conftest$ac_exeext'
7951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952   (eval $ac_try) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; }; then
7956   ac_cv_search_opendir="-l$ac_lib"
7957 break
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 cat conftest.$ac_ext >&5
7961 fi
7962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7963   done
7964 fi
7965 LIBS=$ac_func_search_save_LIBS
7966 fi
7967 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7968 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7969 if test "$ac_cv_search_opendir" != no; then
7970   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7971
7972 fi
7973
7974 else
7975   echo "$as_me:$LINENO: checking for library containing opendir" >&5
7976 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7977 if test "${ac_cv_search_opendir+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   ac_func_search_save_LIBS=$LIBS
7981 ac_cv_search_opendir=no
7982 cat >conftest.$ac_ext <<_ACEOF
7983 #line $LINENO "configure"
7984 #include "confdefs.h"
7985
7986 /* Override any gcc2 internal prototype to avoid an error.  */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991    builtin and then its argument prototype would still apply.  */
7992 char opendir ();
7993 #ifdef F77_DUMMY_MAIN
7994 #  ifdef __cplusplus
7995      extern "C"
7996 #  endif
7997    int F77_DUMMY_MAIN() { return 1; }
7998 #endif
7999 int
8000 main ()
8001 {
8002 opendir ();
8003   ;
8004   return 0;
8005 }
8006 _ACEOF
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8009   (eval $ac_link) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_cv_search_opendir="none required"
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 cat conftest.$ac_ext >&5
8023 fi
8024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8025 if test "$ac_cv_search_opendir" = no; then
8026   for ac_lib in x; do
8027     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8028     cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8030 #include "confdefs.h"
8031
8032 /* Override any gcc2 internal prototype to avoid an error.  */
8033 #ifdef __cplusplus
8034 extern "C"
8035 #endif
8036 /* We use char because int might match the return type of a gcc2
8037    builtin and then its argument prototype would still apply.  */
8038 char opendir ();
8039 #ifdef F77_DUMMY_MAIN
8040 #  ifdef __cplusplus
8041      extern "C"
8042 #  endif
8043    int F77_DUMMY_MAIN() { return 1; }
8044 #endif
8045 int
8046 main ()
8047 {
8048 opendir ();
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext conftest$ac_exeext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8055   (eval $ac_link) 2>&5
8056   ac_status=$?
8057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058   (exit $ac_status); } &&
8059          { ac_try='test -s conftest$ac_exeext'
8060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061   (eval $ac_try) 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   ac_cv_search_opendir="-l$ac_lib"
8066 break
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 cat conftest.$ac_ext >&5
8070 fi
8071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8072   done
8073 fi
8074 LIBS=$ac_func_search_save_LIBS
8075 fi
8076 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8077 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8078 if test "$ac_cv_search_opendir" != no; then
8079   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8080
8081 fi
8082
8083 fi
8084
8085 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8087 if test "${ac_cv_header_stdc+set}" = set; then
8088   echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090   cat >conftest.$ac_ext <<_ACEOF
8091 #line $LINENO "configure"
8092 #include "confdefs.h"
8093 #include <stdlib.h>
8094 #include <stdarg.h>
8095 #include <string.h>
8096 #include <float.h>
8097
8098 _ACEOF
8099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8101   ac_status=$?
8102   egrep -v '^ *\+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } >/dev/null; then
8107   if test -s conftest.err; then
8108     ac_cpp_err=$ac_c_preproc_warn_flag
8109   else
8110     ac_cpp_err=
8111   fi
8112 else
8113   ac_cpp_err=yes
8114 fi
8115 if test -z "$ac_cpp_err"; then
8116   ac_cv_header_stdc=yes
8117 else
8118   echo "$as_me: failed program was:" >&5
8119   cat conftest.$ac_ext >&5
8120   ac_cv_header_stdc=no
8121 fi
8122 rm -f conftest.err conftest.$ac_ext
8123
8124 if test $ac_cv_header_stdc = yes; then
8125   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8126   cat >conftest.$ac_ext <<_ACEOF
8127 #line $LINENO "configure"
8128 #include "confdefs.h"
8129 #include <string.h>
8130
8131 _ACEOF
8132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133   egrep "memchr" >/dev/null 2>&1; then
8134   :
8135 else
8136   ac_cv_header_stdc=no
8137 fi
8138 rm -f conftest*
8139
8140 fi
8141
8142 if test $ac_cv_header_stdc = yes; then
8143   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8144   cat >conftest.$ac_ext <<_ACEOF
8145 #line $LINENO "configure"
8146 #include "confdefs.h"
8147 #include <stdlib.h>
8148
8149 _ACEOF
8150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151   egrep "free" >/dev/null 2>&1; then
8152   :
8153 else
8154   ac_cv_header_stdc=no
8155 fi
8156 rm -f conftest*
8157
8158 fi
8159
8160 if test $ac_cv_header_stdc = yes; then
8161   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8162   if test "$cross_compiling" = yes; then
8163   :
8164 else
8165   cat >conftest.$ac_ext <<_ACEOF
8166 #line $LINENO "configure"
8167 #include "confdefs.h"
8168 #include <ctype.h>
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 #else
8173 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8174                      || ('j' <= (c) && (c) <= 'r') \
8175                      || ('s' <= (c) && (c) <= 'z'))
8176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8177 #endif
8178
8179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8180 int
8181 main ()
8182 {
8183   int i;
8184   for (i = 0; i < 256; i++)
8185     if (XOR (islower (i), ISLOWER (i))
8186         || toupper (i) != TOUPPER (i))
8187       exit(2);
8188   exit (0);
8189 }
8190 _ACEOF
8191 rm -f conftest$ac_exeext
8192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8193   (eval $ac_link) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198   (eval $ac_try) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); }; }; then
8202   :
8203 else
8204   echo "$as_me: program exited with status $ac_status" >&5
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8207 ( exit $ac_status )
8208 ac_cv_header_stdc=no
8209 fi
8210 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8211 fi
8212 fi
8213 fi
8214 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8215 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8216 if test $ac_cv_header_stdc = yes; then
8217
8218 cat >>confdefs.h <<\_ACEOF
8219 #define STDC_HEADERS 1
8220 _ACEOF
8221
8222 fi
8223
8224
8225 for ac_header in fcntl.h
8226 do
8227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8229   echo "$as_me:$LINENO: checking for $ac_header" >&5
8230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8232   echo $ECHO_N "(cached) $ECHO_C" >&6
8233 fi
8234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8236 else
8237   # Is the header compilable?
8238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243 $ac_includes_default
8244 #include <$ac_header>
8245 _ACEOF
8246 rm -f conftest.$ac_objext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8248   (eval $ac_compile) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } &&
8252          { ac_try='test -s conftest.$ac_objext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   ac_header_compiler=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 ac_header_compiler=no
8263 fi
8264 rm -f conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8266 echo "${ECHO_T}$ac_header_compiler" >&6
8267
8268 # Is the header present?
8269 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 #line $LINENO "configure"
8273 #include "confdefs.h"
8274 #include <$ac_header>
8275 _ACEOF
8276 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8277   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8278   ac_status=$?
8279   egrep -v '^ *\+' conftest.er1 >conftest.err
8280   rm -f conftest.er1
8281   cat conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } >/dev/null; then
8284   if test -s conftest.err; then
8285     ac_cpp_err=$ac_c_preproc_warn_flag
8286   else
8287     ac_cpp_err=
8288   fi
8289 else
8290   ac_cpp_err=yes
8291 fi
8292 if test -z "$ac_cpp_err"; then
8293   ac_header_preproc=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296   cat conftest.$ac_ext >&5
8297   ac_header_preproc=no
8298 fi
8299 rm -f conftest.err conftest.$ac_ext
8300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8301 echo "${ECHO_T}$ac_header_preproc" >&6
8302
8303 # So?  What about this header?
8304 case $ac_header_compiler:$ac_header_preproc in
8305   yes:no )
8306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8310   no:yes )
8311     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8313     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8316 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8317 esac
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8321   echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323   eval "$as_ac_Header=$ac_header_preproc"
8324 fi
8325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8327
8328 fi
8329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8330   cat >>confdefs.h <<_ACEOF
8331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8332 _ACEOF
8333
8334 fi
8335
8336 done
8337
8338
8339 for ac_header in unistd.h
8340 do
8341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343   echo "$as_me:$LINENO: checking for $ac_header" >&5
8344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 fi
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 else
8351   # Is the header compilable?
8352 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line $LINENO "configure"
8356 #include "confdefs.h"
8357 $ac_includes_default
8358 #include <$ac_header>
8359 _ACEOF
8360 rm -f conftest.$ac_objext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8362   (eval $ac_compile) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -s conftest.$ac_objext'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   ac_header_compiler=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 cat conftest.$ac_ext >&5
8376 ac_header_compiler=no
8377 fi
8378 rm -f conftest.$ac_objext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8380 echo "${ECHO_T}$ac_header_compiler" >&6
8381
8382 # Is the header present?
8383 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8385 cat >conftest.$ac_ext <<_ACEOF
8386 #line $LINENO "configure"
8387 #include "confdefs.h"
8388 #include <$ac_header>
8389 _ACEOF
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392   ac_status=$?
8393   egrep -v '^ *\+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } >/dev/null; then
8398   if test -s conftest.err; then
8399     ac_cpp_err=$ac_c_preproc_warn_flag
8400   else
8401     ac_cpp_err=
8402   fi
8403 else
8404   ac_cpp_err=yes
8405 fi
8406 if test -z "$ac_cpp_err"; then
8407   ac_header_preproc=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410   cat conftest.$ac_ext >&5
8411   ac_header_preproc=no
8412 fi
8413 rm -f conftest.err conftest.$ac_ext
8414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8415 echo "${ECHO_T}$ac_header_preproc" >&6
8416
8417 # So?  What about this header?
8418 case $ac_header_compiler:$ac_header_preproc in
8419   yes:no )
8420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8424   no:yes )
8425     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8427     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8431 esac
8432 echo "$as_me:$LINENO: checking for $ac_header" >&5
8433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435   echo $ECHO_N "(cached) $ECHO_C" >&6
8436 else
8437   eval "$as_ac_Header=$ac_header_preproc"
8438 fi
8439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8441
8442 fi
8443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8444   cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8446 _ACEOF
8447
8448 fi
8449
8450 done
8451
8452
8453 for ac_header in ctype.h
8454 do
8455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8457   echo "$as_me:$LINENO: checking for $ac_header" >&5
8458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 fi
8462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8464 else
8465   # Is the header compilable?
8466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line $LINENO "configure"
8470 #include "confdefs.h"
8471 $ac_includes_default
8472 #include <$ac_header>
8473 _ACEOF
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8476   (eval $ac_compile) 2>&5
8477   ac_status=$?
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -s conftest.$ac_objext'
8481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482   (eval $ac_try) 2>&5
8483   ac_status=$?
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); }; }; then
8486   ac_header_compiler=yes
8487 else
8488   echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8490 ac_header_compiler=no
8491 fi
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8495
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 #include "confdefs.h"
8502 #include <$ac_header>
8503 _ACEOF
8504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8506   ac_status=$?
8507   egrep -v '^ *\+' conftest.er1 >conftest.err
8508   rm -f conftest.er1
8509   cat conftest.err >&5
8510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } >/dev/null; then
8512   if test -s conftest.err; then
8513     ac_cpp_err=$ac_c_preproc_warn_flag
8514   else
8515     ac_cpp_err=
8516   fi
8517 else
8518   ac_cpp_err=yes
8519 fi
8520 if test -z "$ac_cpp_err"; then
8521   ac_header_preproc=yes
8522 else
8523   echo "$as_me: failed program was:" >&5
8524   cat conftest.$ac_ext >&5
8525   ac_header_preproc=no
8526 fi
8527 rm -f conftest.err conftest.$ac_ext
8528 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8529 echo "${ECHO_T}$ac_header_preproc" >&6
8530
8531 # So?  What about this header?
8532 case $ac_header_compiler:$ac_header_preproc in
8533   yes:no )
8534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8538   no:yes )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8543     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8545 esac
8546 echo "$as_me:$LINENO: checking for $ac_header" >&5
8547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   eval "$as_ac_Header=$ac_header_preproc"
8552 fi
8553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8555
8556 fi
8557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8558   cat >>confdefs.h <<_ACEOF
8559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8560 _ACEOF
8561
8562 fi
8563
8564 done
8565
8566
8567 for ac_header in dirent.h
8568 do
8569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571   echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 fi
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578 else
8579   # Is the header compilable?
8580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line $LINENO "configure"
8584 #include "confdefs.h"
8585 $ac_includes_default
8586 #include <$ac_header>
8587 _ACEOF
8588 rm -f conftest.$ac_objext
8589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8590   (eval $ac_compile) 2>&5
8591   ac_status=$?
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } &&
8594          { ac_try='test -s conftest.$ac_objext'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; }; then
8600   ac_header_compiler=yes
8601 else
8602   echo "$as_me: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8604 ac_header_compiler=no
8605 fi
8606 rm -f conftest.$ac_objext conftest.$ac_ext
8607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8608 echo "${ECHO_T}$ac_header_compiler" >&6
8609
8610 # Is the header present?
8611 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 #include "confdefs.h"
8616 #include <$ac_header>
8617 _ACEOF
8618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8619   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8620   ac_status=$?
8621   egrep -v '^ *\+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } >/dev/null; then
8626   if test -s conftest.err; then
8627     ac_cpp_err=$ac_c_preproc_warn_flag
8628   else
8629     ac_cpp_err=
8630   fi
8631 else
8632   ac_cpp_err=yes
8633 fi
8634 if test -z "$ac_cpp_err"; then
8635   ac_header_preproc=yes
8636 else
8637   echo "$as_me: failed program was:" >&5
8638   cat conftest.$ac_ext >&5
8639   ac_header_preproc=no
8640 fi
8641 rm -f conftest.err conftest.$ac_ext
8642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8643 echo "${ECHO_T}$ac_header_preproc" >&6
8644
8645 # So?  What about this header?
8646 case $ac_header_compiler:$ac_header_preproc in
8647   yes:no )
8648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8652   no:yes )
8653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8659 esac
8660 echo "$as_me:$LINENO: checking for $ac_header" >&5
8661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   eval "$as_ac_Header=$ac_header_preproc"
8666 fi
8667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8669
8670 fi
8671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8672   cat >>confdefs.h <<_ACEOF
8673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8674 _ACEOF
8675
8676 fi
8677
8678 done
8679
8680
8681 for ac_header in errno.h
8682 do
8683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8685   echo "$as_me:$LINENO: checking for $ac_header" >&5
8686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8688   echo $ECHO_N "(cached) $ECHO_C" >&6
8689 fi
8690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8692 else
8693   # Is the header compilable?
8694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8697 #line $LINENO "configure"
8698 #include "confdefs.h"
8699 $ac_includes_default
8700 #include <$ac_header>
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8704   (eval $ac_compile) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); } &&
8708          { ac_try='test -s conftest.$ac_objext'
8709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8710   (eval $ac_try) 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_header_compiler=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8718 ac_header_compiler=no
8719 fi
8720 rm -f conftest.$ac_objext conftest.$ac_ext
8721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8722 echo "${ECHO_T}$ac_header_compiler" >&6
8723
8724 # Is the header present?
8725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8727 cat >conftest.$ac_ext <<_ACEOF
8728 #line $LINENO "configure"
8729 #include "confdefs.h"
8730 #include <$ac_header>
8731 _ACEOF
8732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8733   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8734   ac_status=$?
8735   egrep -v '^ *\+' conftest.er1 >conftest.err
8736   rm -f conftest.er1
8737   cat conftest.err >&5
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); } >/dev/null; then
8740   if test -s conftest.err; then
8741     ac_cpp_err=$ac_c_preproc_warn_flag
8742   else
8743     ac_cpp_err=
8744   fi
8745 else
8746   ac_cpp_err=yes
8747 fi
8748 if test -z "$ac_cpp_err"; then
8749   ac_header_preproc=yes
8750 else
8751   echo "$as_me: failed program was:" >&5
8752   cat conftest.$ac_ext >&5
8753   ac_header_preproc=no
8754 fi
8755 rm -f conftest.err conftest.$ac_ext
8756 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8757 echo "${ECHO_T}$ac_header_preproc" >&6
8758
8759 # So?  What about this header?
8760 case $ac_header_compiler:$ac_header_preproc in
8761   yes:no )
8762     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8766   no:yes )
8767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8773 esac
8774 echo "$as_me:$LINENO: checking for $ac_header" >&5
8775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777   echo $ECHO_N "(cached) $ECHO_C" >&6
8778 else
8779   eval "$as_ac_Header=$ac_header_preproc"
8780 fi
8781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8783
8784 fi
8785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786   cat >>confdefs.h <<_ACEOF
8787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788 _ACEOF
8789
8790 fi
8791
8792 done
8793
8794
8795 for ac_header in malloc.h
8796 do
8797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799   echo "$as_me:$LINENO: checking for $ac_header" >&5
8800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 fi
8804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8806 else
8807   # Is the header compilable?
8808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8813 $ac_includes_default
8814 #include <$ac_header>
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8818   (eval $ac_compile) 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } &&
8822          { ac_try='test -s conftest.$ac_objext'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; }; then
8828   ac_header_compiler=yes
8829 else
8830   echo "$as_me: failed program was:" >&5
8831 cat conftest.$ac_ext >&5
8832 ac_header_compiler=no
8833 fi
8834 rm -f conftest.$ac_objext conftest.$ac_ext
8835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8836 echo "${ECHO_T}$ac_header_compiler" >&6
8837
8838 # Is the header present?
8839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 #include "confdefs.h"
8844 #include <$ac_header>
8845 _ACEOF
8846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8848   ac_status=$?
8849   egrep -v '^ *\+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } >/dev/null; then
8854   if test -s conftest.err; then
8855     ac_cpp_err=$ac_c_preproc_warn_flag
8856   else
8857     ac_cpp_err=
8858   fi
8859 else
8860   ac_cpp_err=yes
8861 fi
8862 if test -z "$ac_cpp_err"; then
8863   ac_header_preproc=yes
8864 else
8865   echo "$as_me: failed program was:" >&5
8866   cat conftest.$ac_ext >&5
8867   ac_header_preproc=no
8868 fi
8869 rm -f conftest.err conftest.$ac_ext
8870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8871 echo "${ECHO_T}$ac_header_preproc" >&6
8872
8873 # So?  What about this header?
8874 case $ac_header_compiler:$ac_header_preproc in
8875   yes:no )
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8880   no:yes )
8881     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8883     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8885     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8887 esac
8888 echo "$as_me:$LINENO: checking for $ac_header" >&5
8889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8891   echo $ECHO_N "(cached) $ECHO_C" >&6
8892 else
8893   eval "$as_ac_Header=$ac_header_preproc"
8894 fi
8895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8897
8898 fi
8899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8900   cat >>confdefs.h <<_ACEOF
8901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8902 _ACEOF
8903
8904 fi
8905
8906 done
8907
8908
8909 for ac_header in stdarg.h
8910 do
8911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913   echo "$as_me:$LINENO: checking for $ac_header" >&5
8914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 fi
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920 else
8921   # Is the header compilable?
8922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8924 cat >conftest.$ac_ext <<_ACEOF
8925 #line $LINENO "configure"
8926 #include "confdefs.h"
8927 $ac_includes_default
8928 #include <$ac_header>
8929 _ACEOF
8930 rm -f conftest.$ac_objext
8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8932   (eval $ac_compile) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -s conftest.$ac_objext'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; }; then
8942   ac_header_compiler=yes
8943 else
8944   echo "$as_me: failed program was:" >&5
8945 cat conftest.$ac_ext >&5
8946 ac_header_compiler=no
8947 fi
8948 rm -f conftest.$ac_objext conftest.$ac_ext
8949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950 echo "${ECHO_T}$ac_header_compiler" >&6
8951
8952 # Is the header present?
8953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8957 #include "confdefs.h"
8958 #include <$ac_header>
8959 _ACEOF
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8962   ac_status=$?
8963   egrep -v '^ *\+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } >/dev/null; then
8968   if test -s conftest.err; then
8969     ac_cpp_err=$ac_c_preproc_warn_flag
8970   else
8971     ac_cpp_err=
8972   fi
8973 else
8974   ac_cpp_err=yes
8975 fi
8976 if test -z "$ac_cpp_err"; then
8977   ac_header_preproc=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980   cat conftest.$ac_ext >&5
8981   ac_header_preproc=no
8982 fi
8983 rm -f conftest.err conftest.$ac_ext
8984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8985 echo "${ECHO_T}$ac_header_preproc" >&6
8986
8987 # So?  What about this header?
8988 case $ac_header_compiler:$ac_header_preproc in
8989   yes:no )
8990     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8994   no:yes )
8995     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9001 esac
9002 echo "$as_me:$LINENO: checking for $ac_header" >&5
9003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9005   echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007   eval "$as_ac_Header=$ac_header_preproc"
9008 fi
9009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9011
9012 fi
9013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9014   cat >>confdefs.h <<_ACEOF
9015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9016 _ACEOF
9017
9018 fi
9019
9020 done
9021
9022
9023 for ac_header in sys/stat.h
9024 do
9025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9027   echo "$as_me:$LINENO: checking for $ac_header" >&5
9028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 fi
9032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9033 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9034 else
9035   # Is the header compilable?
9036 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9038 cat >conftest.$ac_ext <<_ACEOF
9039 #line $LINENO "configure"
9040 #include "confdefs.h"
9041 $ac_includes_default
9042 #include <$ac_header>
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046   (eval $ac_compile) 2>&5
9047   ac_status=$?
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -s conftest.$ac_objext'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; }; then
9056   ac_header_compiler=yes
9057 else
9058   echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9060 ac_header_compiler=no
9061 fi
9062 rm -f conftest.$ac_objext conftest.$ac_ext
9063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9064 echo "${ECHO_T}$ac_header_compiler" >&6
9065
9066 # Is the header present?
9067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9069 cat >conftest.$ac_ext <<_ACEOF
9070 #line $LINENO "configure"
9071 #include "confdefs.h"
9072 #include <$ac_header>
9073 _ACEOF
9074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9076   ac_status=$?
9077   egrep -v '^ *\+' conftest.er1 >conftest.err
9078   rm -f conftest.er1
9079   cat conftest.err >&5
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); } >/dev/null; then
9082   if test -s conftest.err; then
9083     ac_cpp_err=$ac_c_preproc_warn_flag
9084   else
9085     ac_cpp_err=
9086   fi
9087 else
9088   ac_cpp_err=yes
9089 fi
9090 if test -z "$ac_cpp_err"; then
9091   ac_header_preproc=yes
9092 else
9093   echo "$as_me: failed program was:" >&5
9094   cat conftest.$ac_ext >&5
9095   ac_header_preproc=no
9096 fi
9097 rm -f conftest.err conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9099 echo "${ECHO_T}$ac_header_preproc" >&6
9100
9101 # So?  What about this header?
9102 case $ac_header_compiler:$ac_header_preproc in
9103   yes:no )
9104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9107 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9108   no:yes )
9109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9111     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9115 esac
9116 echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121   eval "$as_ac_Header=$ac_header_preproc"
9122 fi
9123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9124 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9125
9126 fi
9127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9128   cat >>confdefs.h <<_ACEOF
9129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9130 _ACEOF
9131
9132 fi
9133
9134 done
9135
9136
9137 for ac_header in sys/types.h
9138 do
9139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141   echo "$as_me:$LINENO: checking for $ac_header" >&5
9142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 fi
9146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148 else
9149   # Is the header compilable?
9150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9152 cat >conftest.$ac_ext <<_ACEOF
9153 #line $LINENO "configure"
9154 #include "confdefs.h"
9155 $ac_includes_default
9156 #include <$ac_header>
9157 _ACEOF
9158 rm -f conftest.$ac_objext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160   (eval $ac_compile) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } &&
9164          { ac_try='test -s conftest.$ac_objext'
9165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166   (eval $ac_try) 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; }; then
9170   ac_header_compiler=yes
9171 else
9172   echo "$as_me: failed program was:" >&5
9173 cat conftest.$ac_ext >&5
9174 ac_header_compiler=no
9175 fi
9176 rm -f conftest.$ac_objext conftest.$ac_ext
9177 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9178 echo "${ECHO_T}$ac_header_compiler" >&6
9179
9180 # Is the header present?
9181 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9183 cat >conftest.$ac_ext <<_ACEOF
9184 #line $LINENO "configure"
9185 #include "confdefs.h"
9186 #include <$ac_header>
9187 _ACEOF
9188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9190   ac_status=$?
9191   egrep -v '^ *\+' conftest.er1 >conftest.err
9192   rm -f conftest.er1
9193   cat conftest.err >&5
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } >/dev/null; then
9196   if test -s conftest.err; then
9197     ac_cpp_err=$ac_c_preproc_warn_flag
9198   else
9199     ac_cpp_err=
9200   fi
9201 else
9202   ac_cpp_err=yes
9203 fi
9204 if test -z "$ac_cpp_err"; then
9205   ac_header_preproc=yes
9206 else
9207   echo "$as_me: failed program was:" >&5
9208   cat conftest.$ac_ext >&5
9209   ac_header_preproc=no
9210 fi
9211 rm -f conftest.err conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9213 echo "${ECHO_T}$ac_header_preproc" >&6
9214
9215 # So?  What about this header?
9216 case $ac_header_compiler:$ac_header_preproc in
9217   yes:no )
9218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9222   no:yes )
9223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9225     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9229 esac
9230 echo "$as_me:$LINENO: checking for $ac_header" >&5
9231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   eval "$as_ac_Header=$ac_header_preproc"
9236 fi
9237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9239
9240 fi
9241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9242   cat >>confdefs.h <<_ACEOF
9243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9244 _ACEOF
9245
9246 fi
9247
9248 done
9249
9250
9251 for ac_header in time.h
9252 do
9253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255   echo "$as_me:$LINENO: checking for $ac_header" >&5
9256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9258   echo $ECHO_N "(cached) $ECHO_C" >&6
9259 fi
9260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9262 else
9263   # Is the header compilable?
9264 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9268 #include "confdefs.h"
9269 $ac_includes_default
9270 #include <$ac_header>
9271 _ACEOF
9272 rm -f conftest.$ac_objext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9274   (eval $ac_compile) 2>&5
9275   ac_status=$?
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); } &&
9278          { ac_try='test -s conftest.$ac_objext'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284   ac_header_compiler=yes
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 cat conftest.$ac_ext >&5
9288 ac_header_compiler=no
9289 fi
9290 rm -f conftest.$ac_objext conftest.$ac_ext
9291 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9292 echo "${ECHO_T}$ac_header_compiler" >&6
9293
9294 # Is the header present?
9295 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9299 #include "confdefs.h"
9300 #include <$ac_header>
9301 _ACEOF
9302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9304   ac_status=$?
9305   egrep -v '^ *\+' conftest.er1 >conftest.err
9306   rm -f conftest.er1
9307   cat conftest.err >&5
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); } >/dev/null; then
9310   if test -s conftest.err; then
9311     ac_cpp_err=$ac_c_preproc_warn_flag
9312   else
9313     ac_cpp_err=
9314   fi
9315 else
9316   ac_cpp_err=yes
9317 fi
9318 if test -z "$ac_cpp_err"; then
9319   ac_header_preproc=yes
9320 else
9321   echo "$as_me: failed program was:" >&5
9322   cat conftest.$ac_ext >&5
9323   ac_header_preproc=no
9324 fi
9325 rm -f conftest.err conftest.$ac_ext
9326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9327 echo "${ECHO_T}$ac_header_preproc" >&6
9328
9329 # So?  What about this header?
9330 case $ac_header_compiler:$ac_header_preproc in
9331   yes:no )
9332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9335 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9336   no:yes )
9337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9339     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9343 esac
9344 echo "$as_me:$LINENO: checking for $ac_header" >&5
9345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349   eval "$as_ac_Header=$ac_header_preproc"
9350 fi
9351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9353
9354 fi
9355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9356   cat >>confdefs.h <<_ACEOF
9357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9358 _ACEOF
9359
9360 fi
9361
9362 done
9363
9364
9365 for ac_header in ansidecl.h
9366 do
9367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9369   echo "$as_me:$LINENO: checking for $ac_header" >&5
9370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 fi
9374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9375 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9376 else
9377   # Is the header compilable?
9378 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9379 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9383 $ac_includes_default
9384 #include <$ac_header>
9385 _ACEOF
9386 rm -f conftest.$ac_objext
9387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388   (eval $ac_compile) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); } &&
9392          { ac_try='test -s conftest.$ac_objext'
9393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394   (eval $ac_try) 2>&5
9395   ac_status=$?
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); }; }; then
9398   ac_header_compiler=yes
9399 else
9400   echo "$as_me: failed program was:" >&5
9401 cat conftest.$ac_ext >&5
9402 ac_header_compiler=no
9403 fi
9404 rm -f conftest.$ac_objext conftest.$ac_ext
9405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9406 echo "${ECHO_T}$ac_header_compiler" >&6
9407
9408 # Is the header present?
9409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9412 #line $LINENO "configure"
9413 #include "confdefs.h"
9414 #include <$ac_header>
9415 _ACEOF
9416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9418   ac_status=$?
9419   egrep -v '^ *\+' conftest.er1 >conftest.err
9420   rm -f conftest.er1
9421   cat conftest.err >&5
9422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423   (exit $ac_status); } >/dev/null; then
9424   if test -s conftest.err; then
9425     ac_cpp_err=$ac_c_preproc_warn_flag
9426   else
9427     ac_cpp_err=
9428   fi
9429 else
9430   ac_cpp_err=yes
9431 fi
9432 if test -z "$ac_cpp_err"; then
9433   ac_header_preproc=yes
9434 else
9435   echo "$as_me: failed program was:" >&5
9436   cat conftest.$ac_ext >&5
9437   ac_header_preproc=no
9438 fi
9439 rm -f conftest.err conftest.$ac_ext
9440 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9441 echo "${ECHO_T}$ac_header_preproc" >&6
9442
9443 # So?  What about this header?
9444 case $ac_header_compiler:$ac_header_preproc in
9445   yes:no )
9446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9450   no:yes )
9451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9453     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9457 esac
9458 echo "$as_me:$LINENO: checking for $ac_header" >&5
9459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   eval "$as_ac_Header=$ac_header_preproc"
9464 fi
9465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9467
9468 fi
9469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9470   cat >>confdefs.h <<_ACEOF
9471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 _ACEOF
9473
9474 fi
9475
9476 done
9477
9478
9479 for ac_header in ieeefp.h
9480 do
9481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9483   echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 fi
9488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9490 else
9491   # Is the header compilable?
9492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9494 cat >conftest.$ac_ext <<_ACEOF
9495 #line $LINENO "configure"
9496 #include "confdefs.h"
9497 $ac_includes_default
9498 #include <$ac_header>
9499 _ACEOF
9500 rm -f conftest.$ac_objext
9501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9502   (eval $ac_compile) 2>&5
9503   ac_status=$?
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } &&
9506          { ac_try='test -s conftest.$ac_objext'
9507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508   (eval $ac_try) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); }; }; then
9512   ac_header_compiler=yes
9513 else
9514   echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 ac_header_compiler=no
9517 fi
9518 rm -f conftest.$ac_objext conftest.$ac_ext
9519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9520 echo "${ECHO_T}$ac_header_compiler" >&6
9521
9522 # Is the header present?
9523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9526 #line $LINENO "configure"
9527 #include "confdefs.h"
9528 #include <$ac_header>
9529 _ACEOF
9530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532   ac_status=$?
9533   egrep -v '^ *\+' conftest.er1 >conftest.err
9534   rm -f conftest.er1
9535   cat conftest.err >&5
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); } >/dev/null; then
9538   if test -s conftest.err; then
9539     ac_cpp_err=$ac_c_preproc_warn_flag
9540   else
9541     ac_cpp_err=
9542   fi
9543 else
9544   ac_cpp_err=yes
9545 fi
9546 if test -z "$ac_cpp_err"; then
9547   ac_header_preproc=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550   cat conftest.$ac_ext >&5
9551   ac_header_preproc=no
9552 fi
9553 rm -f conftest.err conftest.$ac_ext
9554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9555 echo "${ECHO_T}$ac_header_preproc" >&6
9556
9557 # So?  What about this header?
9558 case $ac_header_compiler:$ac_header_preproc in
9559   yes:no )
9560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9564   no:yes )
9565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9567     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9571 esac
9572 echo "$as_me:$LINENO: checking for $ac_header" >&5
9573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9575   echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577   eval "$as_ac_Header=$ac_header_preproc"
9578 fi
9579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9581
9582 fi
9583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9584   cat >>confdefs.h <<_ACEOF
9585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9586 _ACEOF
9587
9588 fi
9589
9590 done
9591
9592
9593 for ac_header in nan.h
9594 do
9595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9597   echo "$as_me:$LINENO: checking for $ac_header" >&5
9598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9600   echo $ECHO_N "(cached) $ECHO_C" >&6
9601 fi
9602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9604 else
9605   # Is the header compilable?
9606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9610 #include "confdefs.h"
9611 $ac_includes_default
9612 #include <$ac_header>
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9616   (eval $ac_compile) 2>&5
9617   ac_status=$?
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } &&
9620          { ac_try='test -s conftest.$ac_objext'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }; then
9626   ac_header_compiler=yes
9627 else
9628   echo "$as_me: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 ac_header_compiler=no
9631 fi
9632 rm -f conftest.$ac_objext conftest.$ac_ext
9633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9634 echo "${ECHO_T}$ac_header_compiler" >&6
9635
9636 # Is the header present?
9637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9639 cat >conftest.$ac_ext <<_ACEOF
9640 #line $LINENO "configure"
9641 #include "confdefs.h"
9642 #include <$ac_header>
9643 _ACEOF
9644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9646   ac_status=$?
9647   egrep -v '^ *\+' conftest.er1 >conftest.err
9648   rm -f conftest.er1
9649   cat conftest.err >&5
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); } >/dev/null; then
9652   if test -s conftest.err; then
9653     ac_cpp_err=$ac_c_preproc_warn_flag
9654   else
9655     ac_cpp_err=
9656   fi
9657 else
9658   ac_cpp_err=yes
9659 fi
9660 if test -z "$ac_cpp_err"; then
9661   ac_header_preproc=yes
9662 else
9663   echo "$as_me: failed program was:" >&5
9664   cat conftest.$ac_ext >&5
9665   ac_header_preproc=no
9666 fi
9667 rm -f conftest.err conftest.$ac_ext
9668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9669 echo "${ECHO_T}$ac_header_preproc" >&6
9670
9671 # So?  What about this header?
9672 case $ac_header_compiler:$ac_header_preproc in
9673   yes:no )
9674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9678   no:yes )
9679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9681     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9685 esac
9686 echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689   echo $ECHO_N "(cached) $ECHO_C" >&6
9690 else
9691   eval "$as_ac_Header=$ac_header_preproc"
9692 fi
9693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9695
9696 fi
9697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9698   cat >>confdefs.h <<_ACEOF
9699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9700 _ACEOF
9701
9702 fi
9703
9704 done
9705
9706
9707 for ac_header in math.h
9708 do
9709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9711   echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 fi
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9718 else
9719   # Is the header compilable?
9720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line $LINENO "configure"
9724 #include "confdefs.h"
9725 $ac_includes_default
9726 #include <$ac_header>
9727 _ACEOF
9728 rm -f conftest.$ac_objext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9730   (eval $ac_compile) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); } &&
9734          { ac_try='test -s conftest.$ac_objext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   ac_header_compiler=yes
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 cat conftest.$ac_ext >&5
9744 ac_header_compiler=no
9745 fi
9746 rm -f conftest.$ac_objext conftest.$ac_ext
9747 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9748 echo "${ECHO_T}$ac_header_compiler" >&6
9749
9750 # Is the header present?
9751 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9754 #line $LINENO "configure"
9755 #include "confdefs.h"
9756 #include <$ac_header>
9757 _ACEOF
9758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9760   ac_status=$?
9761   egrep -v '^ *\+' conftest.er1 >conftest.err
9762   rm -f conftest.er1
9763   cat conftest.err >&5
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } >/dev/null; then
9766   if test -s conftest.err; then
9767     ac_cpp_err=$ac_c_preproc_warn_flag
9768   else
9769     ac_cpp_err=
9770   fi
9771 else
9772   ac_cpp_err=yes
9773 fi
9774 if test -z "$ac_cpp_err"; then
9775   ac_header_preproc=yes
9776 else
9777   echo "$as_me: failed program was:" >&5
9778   cat conftest.$ac_ext >&5
9779   ac_header_preproc=no
9780 fi
9781 rm -f conftest.err conftest.$ac_ext
9782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6
9784
9785 # So?  What about this header?
9786 case $ac_header_compiler:$ac_header_preproc in
9787   yes:no )
9788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9792   no:yes )
9793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9799 esac
9800 echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   eval "$as_ac_Header=$ac_header_preproc"
9806 fi
9807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9809
9810 fi
9811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9812   cat >>confdefs.h <<_ACEOF
9813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9814 _ACEOF
9815
9816 fi
9817
9818 done
9819
9820
9821 for ac_header in fp_class.h
9822 do
9823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9825   echo "$as_me:$LINENO: checking for $ac_header" >&5
9826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 fi
9830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9832 else
9833   # Is the header compilable?
9834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9836 cat >conftest.$ac_ext <<_ACEOF
9837 #line $LINENO "configure"
9838 #include "confdefs.h"
9839 $ac_includes_default
9840 #include <$ac_header>
9841 _ACEOF
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844   (eval $ac_compile) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } &&
9848          { ac_try='test -s conftest.$ac_objext'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   ac_header_compiler=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 cat conftest.$ac_ext >&5
9858 ac_header_compiler=no
9859 fi
9860 rm -f conftest.$ac_objext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6
9863
9864 # Is the header present?
9865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 #include "confdefs.h"
9870 #include <$ac_header>
9871 _ACEOF
9872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9873   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9874   ac_status=$?
9875   egrep -v '^ *\+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } >/dev/null; then
9880   if test -s conftest.err; then
9881     ac_cpp_err=$ac_c_preproc_warn_flag
9882   else
9883     ac_cpp_err=
9884   fi
9885 else
9886   ac_cpp_err=yes
9887 fi
9888 if test -z "$ac_cpp_err"; then
9889   ac_header_preproc=yes
9890 else
9891   echo "$as_me: failed program was:" >&5
9892   cat conftest.$ac_ext >&5
9893   ac_header_preproc=no
9894 fi
9895 rm -f conftest.err conftest.$ac_ext
9896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9897 echo "${ECHO_T}$ac_header_preproc" >&6
9898
9899 # So?  What about this header?
9900 case $ac_header_compiler:$ac_header_preproc in
9901   yes:no )
9902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9906   no:yes )
9907     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9909     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9913 esac
9914 echo "$as_me:$LINENO: checking for $ac_header" >&5
9915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   eval "$as_ac_Header=$ac_header_preproc"
9920 fi
9921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9923
9924 fi
9925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9926   cat >>confdefs.h <<_ACEOF
9927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9928 _ACEOF
9929
9930 fi
9931
9932 done
9933
9934
9935 for ac_header in float.h
9936 do
9937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9939   echo "$as_me:$LINENO: checking for $ac_header" >&5
9940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 fi
9944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9946 else
9947   # Is the header compilable?
9948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9951 #line $LINENO "configure"
9952 #include "confdefs.h"
9953 $ac_includes_default
9954 #include <$ac_header>
9955 _ACEOF
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958   (eval $ac_compile) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -s conftest.$ac_objext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_header_compiler=yes
9969 else
9970   echo "$as_me: failed program was:" >&5
9971 cat conftest.$ac_ext >&5
9972 ac_header_compiler=no
9973 fi
9974 rm -f conftest.$ac_objext conftest.$ac_ext
9975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9976 echo "${ECHO_T}$ac_header_compiler" >&6
9977
9978 # Is the header present?
9979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9983 #include "confdefs.h"
9984 #include <$ac_header>
9985 _ACEOF
9986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9987   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9988   ac_status=$?
9989   egrep -v '^ *\+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } >/dev/null; then
9994   if test -s conftest.err; then
9995     ac_cpp_err=$ac_c_preproc_warn_flag
9996   else
9997     ac_cpp_err=
9998   fi
9999 else
10000   ac_cpp_err=yes
10001 fi
10002 if test -z "$ac_cpp_err"; then
10003   ac_header_preproc=yes
10004 else
10005   echo "$as_me: failed program was:" >&5
10006   cat conftest.$ac_ext >&5
10007   ac_header_preproc=no
10008 fi
10009 rm -f conftest.err conftest.$ac_ext
10010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10011 echo "${ECHO_T}$ac_header_preproc" >&6
10012
10013 # So?  What about this header?
10014 case $ac_header_compiler:$ac_header_preproc in
10015   yes:no )
10016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10020   no:yes )
10021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10023     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10027 esac
10028 echo "$as_me:$LINENO: checking for $ac_header" >&5
10029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033   eval "$as_ac_Header=$ac_header_preproc"
10034 fi
10035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10037
10038 fi
10039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10040   cat >>confdefs.h <<_ACEOF
10041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10042 _ACEOF
10043
10044 fi
10045
10046 done
10047
10048
10049 for ac_header in stdlib.h
10050 do
10051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10053   echo "$as_me:$LINENO: checking for $ac_header" >&5
10054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 fi
10058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10060 else
10061   # Is the header compilable?
10062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10064 cat >conftest.$ac_ext <<_ACEOF
10065 #line $LINENO "configure"
10066 #include "confdefs.h"
10067 $ac_includes_default
10068 #include <$ac_header>
10069 _ACEOF
10070 rm -f conftest.$ac_objext
10071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10072   (eval $ac_compile) 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } &&
10076          { ac_try='test -s conftest.$ac_objext'
10077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10078   (eval $ac_try) 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; }; then
10082   ac_header_compiler=yes
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10086 ac_header_compiler=no
10087 fi
10088 rm -f conftest.$ac_objext conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10090 echo "${ECHO_T}$ac_header_compiler" >&6
10091
10092 # Is the header present?
10093 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10096 #line $LINENO "configure"
10097 #include "confdefs.h"
10098 #include <$ac_header>
10099 _ACEOF
10100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10102   ac_status=$?
10103   egrep -v '^ *\+' conftest.er1 >conftest.err
10104   rm -f conftest.er1
10105   cat conftest.err >&5
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); } >/dev/null; then
10108   if test -s conftest.err; then
10109     ac_cpp_err=$ac_c_preproc_warn_flag
10110   else
10111     ac_cpp_err=
10112   fi
10113 else
10114   ac_cpp_err=yes
10115 fi
10116 if test -z "$ac_cpp_err"; then
10117   ac_header_preproc=yes
10118 else
10119   echo "$as_me: failed program was:" >&5
10120   cat conftest.$ac_ext >&5
10121   ac_header_preproc=no
10122 fi
10123 rm -f conftest.err conftest.$ac_ext
10124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10125 echo "${ECHO_T}$ac_header_preproc" >&6
10126
10127 # So?  What about this header?
10128 case $ac_header_compiler:$ac_header_preproc in
10129   yes:no )
10130     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10134   no:yes )
10135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10137     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10141 esac
10142 echo "$as_me:$LINENO: checking for $ac_header" >&5
10143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   eval "$as_ac_Header=$ac_header_preproc"
10148 fi
10149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10151
10152 fi
10153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10154   cat >>confdefs.h <<_ACEOF
10155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10156 _ACEOF
10157
10158 fi
10159
10160 done
10161
10162
10163 for ac_header in sys/socket.h
10164 do
10165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10166 echo "$as_me:$LINENO: checking for $ac_header" >&5
10167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10169   echo $ECHO_N "(cached) $ECHO_C" >&6
10170 else
10171   cat >conftest.$ac_ext <<_ACEOF
10172 #line $LINENO "configure"
10173 #include "confdefs.h"
10174 #if HAVE_SYS_TYPES_H
10175 # include <sys/types.h>
10176 # endif
10177
10178
10179 #include <$ac_header>
10180 _ACEOF
10181 rm -f conftest.$ac_objext
10182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10183   (eval $ac_compile) 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); } &&
10187          { ac_try='test -s conftest.$ac_objext'
10188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10189   (eval $ac_try) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }; }; then
10193   eval "$as_ac_Header=yes"
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 cat conftest.$ac_ext >&5
10197 eval "$as_ac_Header=no"
10198 fi
10199 rm -f conftest.$ac_objext conftest.$ac_ext
10200 fi
10201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10204   cat >>confdefs.h <<_ACEOF
10205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10206 _ACEOF
10207
10208 fi
10209
10210 done
10211
10212
10213 for ac_header in netinet/in.h
10214 do
10215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10216 echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 #line $LINENO "configure"
10223 #include "confdefs.h"
10224 #if HAVE_SYS_TYPES_H
10225 # include <sys/types.h>
10226 # endif
10227
10228
10229 #include <$ac_header>
10230 _ACEOF
10231 rm -f conftest.$ac_objext
10232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10233   (eval $ac_compile) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } &&
10237          { ac_try='test -s conftest.$ac_objext'
10238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10239   (eval $ac_try) 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; }; then
10243   eval "$as_ac_Header=yes"
10244 else
10245   echo "$as_me: failed program was:" >&5
10246 cat conftest.$ac_ext >&5
10247 eval "$as_ac_Header=no"
10248 fi
10249 rm -f conftest.$ac_objext conftest.$ac_ext
10250 fi
10251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10254   cat >>confdefs.h <<_ACEOF
10255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10256 _ACEOF
10257
10258 fi
10259
10260 done
10261
10262
10263 for ac_header in arpa/inet.h
10264 do
10265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10266 echo "$as_me:$LINENO: checking for $ac_header" >&5
10267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   cat >conftest.$ac_ext <<_ACEOF
10272 #line $LINENO "configure"
10273 #include "confdefs.h"
10274 #if HAVE_SYS_TYPES_H
10275 # include <sys/types.h>
10276 # endif
10277 #if HAVE_ARPA_INET_H
10278 # include <arpa/inet.h>
10279 # endif
10280
10281
10282 #include <$ac_header>
10283 _ACEOF
10284 rm -f conftest.$ac_objext
10285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10286   (eval $ac_compile) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -s conftest.$ac_objext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   eval "$as_ac_Header=yes"
10297 else
10298   echo "$as_me: failed program was:" >&5
10299 cat conftest.$ac_ext >&5
10300 eval "$as_ac_Header=no"
10301 fi
10302 rm -f conftest.$ac_objext conftest.$ac_ext
10303 fi
10304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10307   cat >>confdefs.h <<_ACEOF
10308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10309 _ACEOF
10310
10311 fi
10312
10313 done
10314
10315
10316 for ac_header in netdb.h
10317 do
10318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320   echo "$as_me:$LINENO: checking for $ac_header" >&5
10321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 fi
10325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10327 else
10328   # Is the header compilable?
10329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10332 #line $LINENO "configure"
10333 #include "confdefs.h"
10334 $ac_includes_default
10335 #include <$ac_header>
10336 _ACEOF
10337 rm -f conftest.$ac_objext
10338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10339   (eval $ac_compile) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } &&
10343          { ac_try='test -s conftest.$ac_objext'
10344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345   (eval $ac_try) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; }; then
10349   ac_header_compiler=yes
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10353 ac_header_compiler=no
10354 fi
10355 rm -f conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10357 echo "${ECHO_T}$ac_header_compiler" >&6
10358
10359 # Is the header present?
10360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10362 cat >conftest.$ac_ext <<_ACEOF
10363 #line $LINENO "configure"
10364 #include "confdefs.h"
10365 #include <$ac_header>
10366 _ACEOF
10367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10369   ac_status=$?
10370   egrep -v '^ *\+' conftest.er1 >conftest.err
10371   rm -f conftest.er1
10372   cat conftest.err >&5
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); } >/dev/null; then
10375   if test -s conftest.err; then
10376     ac_cpp_err=$ac_c_preproc_warn_flag
10377   else
10378     ac_cpp_err=
10379   fi
10380 else
10381   ac_cpp_err=yes
10382 fi
10383 if test -z "$ac_cpp_err"; then
10384   ac_header_preproc=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387   cat conftest.$ac_ext >&5
10388   ac_header_preproc=no
10389 fi
10390 rm -f conftest.err conftest.$ac_ext
10391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10392 echo "${ECHO_T}$ac_header_preproc" >&6
10393
10394 # So?  What about this header?
10395 case $ac_header_compiler:$ac_header_preproc in
10396   yes:no )
10397     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10401   no:yes )
10402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10404     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10408 esac
10409 echo "$as_me:$LINENO: checking for $ac_header" >&5
10410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412   echo $ECHO_N "(cached) $ECHO_C" >&6
10413 else
10414   eval "$as_ac_Header=$ac_header_preproc"
10415 fi
10416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10418
10419 fi
10420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10421   cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10423 _ACEOF
10424
10425 fi
10426
10427 done
10428
10429
10430 for ac_header in sys/time.h
10431 do
10432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10434   echo "$as_me:$LINENO: checking for $ac_header" >&5
10435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10437   echo $ECHO_N "(cached) $ECHO_C" >&6
10438 fi
10439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10441 else
10442   # Is the header compilable?
10443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10445 cat >conftest.$ac_ext <<_ACEOF
10446 #line $LINENO "configure"
10447 #include "confdefs.h"
10448 $ac_includes_default
10449 #include <$ac_header>
10450 _ACEOF
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453   (eval $ac_compile) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -s conftest.$ac_objext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_header_compiler=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 cat conftest.$ac_ext >&5
10467 ac_header_compiler=no
10468 fi
10469 rm -f conftest.$ac_objext conftest.$ac_ext
10470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10471 echo "${ECHO_T}$ac_header_compiler" >&6
10472
10473 # Is the header present?
10474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10477 #line $LINENO "configure"
10478 #include "confdefs.h"
10479 #include <$ac_header>
10480 _ACEOF
10481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10482   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10483   ac_status=$?
10484   egrep -v '^ *\+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } >/dev/null; then
10489   if test -s conftest.err; then
10490     ac_cpp_err=$ac_c_preproc_warn_flag
10491   else
10492     ac_cpp_err=
10493   fi
10494 else
10495   ac_cpp_err=yes
10496 fi
10497 if test -z "$ac_cpp_err"; then
10498   ac_header_preproc=yes
10499 else
10500   echo "$as_me: failed program was:" >&5
10501   cat conftest.$ac_ext >&5
10502   ac_header_preproc=no
10503 fi
10504 rm -f conftest.err conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10506 echo "${ECHO_T}$ac_header_preproc" >&6
10507
10508 # So?  What about this header?
10509 case $ac_header_compiler:$ac_header_preproc in
10510   yes:no )
10511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10515   no:yes )
10516     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10517 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10518     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10519 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10522 esac
10523 echo "$as_me:$LINENO: checking for $ac_header" >&5
10524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528   eval "$as_ac_Header=$ac_header_preproc"
10529 fi
10530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10532
10533 fi
10534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10535   cat >>confdefs.h <<_ACEOF
10536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537 _ACEOF
10538
10539 fi
10540
10541 done
10542
10543
10544 for ac_header in sys/select.h
10545 do
10546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10548   echo "$as_me:$LINENO: checking for $ac_header" >&5
10549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551   echo $ECHO_N "(cached) $ECHO_C" >&6
10552 fi
10553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10555 else
10556   # Is the header compilable?
10557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10559 cat >conftest.$ac_ext <<_ACEOF
10560 #line $LINENO "configure"
10561 #include "confdefs.h"
10562 $ac_includes_default
10563 #include <$ac_header>
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567   (eval $ac_compile) 2>&5
10568   ac_status=$?
10569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570   (exit $ac_status); } &&
10571          { ac_try='test -s conftest.$ac_objext'
10572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573   (eval $ac_try) 2>&5
10574   ac_status=$?
10575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576   (exit $ac_status); }; }; then
10577   ac_header_compiler=yes
10578 else
10579   echo "$as_me: failed program was:" >&5
10580 cat conftest.$ac_ext >&5
10581 ac_header_compiler=no
10582 fi
10583 rm -f conftest.$ac_objext conftest.$ac_ext
10584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10585 echo "${ECHO_T}$ac_header_compiler" >&6
10586
10587 # Is the header present?
10588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10591 #line $LINENO "configure"
10592 #include "confdefs.h"
10593 #include <$ac_header>
10594 _ACEOF
10595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10597   ac_status=$?
10598   egrep -v '^ *\+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } >/dev/null; then
10603   if test -s conftest.err; then
10604     ac_cpp_err=$ac_c_preproc_warn_flag
10605   else
10606     ac_cpp_err=
10607   fi
10608 else
10609   ac_cpp_err=yes
10610 fi
10611 if test -z "$ac_cpp_err"; then
10612   ac_header_preproc=yes
10613 else
10614   echo "$as_me: failed program was:" >&5
10615   cat conftest.$ac_ext >&5
10616   ac_header_preproc=no
10617 fi
10618 rm -f conftest.err conftest.$ac_ext
10619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10620 echo "${ECHO_T}$ac_header_preproc" >&6
10621
10622 # So?  What about this header?
10623 case $ac_header_compiler:$ac_header_preproc in
10624   yes:no )
10625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10629   no:yes )
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10632     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10636 esac
10637 echo "$as_me:$LINENO: checking for $ac_header" >&5
10638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640   echo $ECHO_N "(cached) $ECHO_C" >&6
10641 else
10642   eval "$as_ac_Header=$ac_header_preproc"
10643 fi
10644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10646
10647 fi
10648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10649   cat >>confdefs.h <<_ACEOF
10650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651 _ACEOF
10652
10653 fi
10654
10655 done
10656
10657
10658 for ac_header in sys/mman.h
10659 do
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10662   echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 fi
10667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10669 else
10670   # Is the header compilable?
10671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 #include "confdefs.h"
10676 $ac_includes_default
10677 #include <$ac_header>
10678 _ACEOF
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681   (eval $ac_compile) 2>&5
10682   ac_status=$?
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } &&
10685          { ac_try='test -s conftest.$ac_objext'
10686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687   (eval $ac_try) 2>&5
10688   ac_status=$?
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); }; }; then
10691   ac_header_compiler=yes
10692 else
10693   echo "$as_me: failed program was:" >&5
10694 cat conftest.$ac_ext >&5
10695 ac_header_compiler=no
10696 fi
10697 rm -f conftest.$ac_objext conftest.$ac_ext
10698 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10699 echo "${ECHO_T}$ac_header_compiler" >&6
10700
10701 # Is the header present?
10702 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10704 cat >conftest.$ac_ext <<_ACEOF
10705 #line $LINENO "configure"
10706 #include "confdefs.h"
10707 #include <$ac_header>
10708 _ACEOF
10709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10710   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10711   ac_status=$?
10712   egrep -v '^ *\+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } >/dev/null; then
10717   if test -s conftest.err; then
10718     ac_cpp_err=$ac_c_preproc_warn_flag
10719   else
10720     ac_cpp_err=
10721   fi
10722 else
10723   ac_cpp_err=yes
10724 fi
10725 if test -z "$ac_cpp_err"; then
10726   ac_header_preproc=yes
10727 else
10728   echo "$as_me: failed program was:" >&5
10729   cat conftest.$ac_ext >&5
10730   ac_header_preproc=no
10731 fi
10732 rm -f conftest.err conftest.$ac_ext
10733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10734 echo "${ECHO_T}$ac_header_preproc" >&6
10735
10736 # So?  What about this header?
10737 case $ac_header_compiler:$ac_header_preproc in
10738   yes:no )
10739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10743   no:yes )
10744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10746     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10747 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10750 esac
10751 echo "$as_me:$LINENO: checking for $ac_header" >&5
10752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10754   echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756   eval "$as_ac_Header=$ac_header_preproc"
10757 fi
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10760
10761 fi
10762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10763   cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765 _ACEOF
10766
10767 fi
10768
10769 done
10770
10771
10772 for ac_header in sys/timeb.h
10773 do
10774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10776   echo "$as_me:$LINENO: checking for $ac_header" >&5
10777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10779   echo $ECHO_N "(cached) $ECHO_C" >&6
10780 fi
10781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10783 else
10784   # Is the header compilable?
10785 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10787 cat >conftest.$ac_ext <<_ACEOF
10788 #line $LINENO "configure"
10789 #include "confdefs.h"
10790 $ac_includes_default
10791 #include <$ac_header>
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795   (eval $ac_compile) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -s conftest.$ac_objext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   ac_header_compiler=yes
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 cat conftest.$ac_ext >&5
10809 ac_header_compiler=no
10810 fi
10811 rm -f conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10814
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10819 #line $LINENO "configure"
10820 #include "confdefs.h"
10821 #include <$ac_header>
10822 _ACEOF
10823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10825   ac_status=$?
10826   egrep -v '^ *\+' conftest.er1 >conftest.err
10827   rm -f conftest.er1
10828   cat conftest.err >&5
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); } >/dev/null; then
10831   if test -s conftest.err; then
10832     ac_cpp_err=$ac_c_preproc_warn_flag
10833   else
10834     ac_cpp_err=
10835   fi
10836 else
10837   ac_cpp_err=yes
10838 fi
10839 if test -z "$ac_cpp_err"; then
10840   ac_header_preproc=yes
10841 else
10842   echo "$as_me: failed program was:" >&5
10843   cat conftest.$ac_ext >&5
10844   ac_header_preproc=no
10845 fi
10846 rm -f conftest.err conftest.$ac_ext
10847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10848 echo "${ECHO_T}$ac_header_preproc" >&6
10849
10850 # So?  What about this header?
10851 case $ac_header_compiler:$ac_header_preproc in
10852   yes:no )
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10857   no:yes )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10864 esac
10865 echo "$as_me:$LINENO: checking for $ac_header" >&5
10866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   eval "$as_ac_Header=$ac_header_preproc"
10871 fi
10872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10874
10875 fi
10876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10877   cat >>confdefs.h <<_ACEOF
10878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10879 _ACEOF
10880
10881 fi
10882
10883 done
10884
10885
10886 for ac_header in signal.h
10887 do
10888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10890   echo "$as_me:$LINENO: checking for $ac_header" >&5
10891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10893   echo $ECHO_N "(cached) $ECHO_C" >&6
10894 fi
10895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10897 else
10898   # Is the header compilable?
10899 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10901 cat >conftest.$ac_ext <<_ACEOF
10902 #line $LINENO "configure"
10903 #include "confdefs.h"
10904 $ac_includes_default
10905 #include <$ac_header>
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909   (eval $ac_compile) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } &&
10913          { ac_try='test -s conftest.$ac_objext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_header_compiler=yes
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 cat conftest.$ac_ext >&5
10923 ac_header_compiler=no
10924 fi
10925 rm -f conftest.$ac_objext conftest.$ac_ext
10926 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10927 echo "${ECHO_T}$ac_header_compiler" >&6
10928
10929 # Is the header present?
10930 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10932 cat >conftest.$ac_ext <<_ACEOF
10933 #line $LINENO "configure"
10934 #include "confdefs.h"
10935 #include <$ac_header>
10936 _ACEOF
10937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10939   ac_status=$?
10940   egrep -v '^ *\+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } >/dev/null; then
10945   if test -s conftest.err; then
10946     ac_cpp_err=$ac_c_preproc_warn_flag
10947   else
10948     ac_cpp_err=
10949   fi
10950 else
10951   ac_cpp_err=yes
10952 fi
10953 if test -z "$ac_cpp_err"; then
10954   ac_header_preproc=yes
10955 else
10956   echo "$as_me: failed program was:" >&5
10957   cat conftest.$ac_ext >&5
10958   ac_header_preproc=no
10959 fi
10960 rm -f conftest.err conftest.$ac_ext
10961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10962 echo "${ECHO_T}$ac_header_preproc" >&6
10963
10964 # So?  What about this header?
10965 case $ac_header_compiler:$ac_header_preproc in
10966   yes:no )
10967     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10971   no:yes )
10972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10974     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10978 esac
10979 echo "$as_me:$LINENO: checking for $ac_header" >&5
10980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   eval "$as_ac_Header=$ac_header_preproc"
10985 fi
10986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10988
10989 fi
10990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10991   cat >>confdefs.h <<_ACEOF
10992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10993 _ACEOF
10994
10995 fi
10996
10997 done
10998
10999
11000 for ac_header in arpa/nameser.h
11001 do
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 echo "$as_me:$LINENO: checking for $ac_header" >&5
11004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11011 #if HAVE_SYS_TYPES_H
11012 # include <sys/types.h>
11013 # endif
11014
11015
11016 #include <$ac_header>
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11020   (eval $ac_compile) 2>&5
11021   ac_status=$?
11022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023   (exit $ac_status); } &&
11024          { ac_try='test -s conftest.$ac_objext'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; }; then
11030   eval "$as_ac_Header=yes"
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 eval "$as_ac_Header=no"
11035 fi
11036 rm -f conftest.$ac_objext conftest.$ac_ext
11037 fi
11038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11041   cat >>confdefs.h <<_ACEOF
11042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11043 _ACEOF
11044
11045 fi
11046
11047 done
11048
11049
11050 for ac_header in resolv.h
11051 do
11052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11053 echo "$as_me:$LINENO: checking for $ac_header" >&5
11054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11060 #include "confdefs.h"
11061 #if HAVE_SYS_TYPES_H
11062 # include <sys/types.h>
11063 # endif
11064 #if HAVE_NETINET_IN_H
11065 # include <netinet/in.h>
11066 # endif
11067 #if HAVE_ARPA_NAMESER_H
11068 # include <arpa/nameser.h>
11069 # endif
11070
11071
11072 #include <$ac_header>
11073 _ACEOF
11074 rm -f conftest.$ac_objext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076   (eval $ac_compile) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } &&
11080          { ac_try='test -s conftest.$ac_objext'
11081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082   (eval $ac_try) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }; }; then
11086   eval "$as_ac_Header=yes"
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11090 eval "$as_ac_Header=no"
11091 fi
11092 rm -f conftest.$ac_objext conftest.$ac_ext
11093 fi
11094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11097   cat >>confdefs.h <<_ACEOF
11098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11099 _ACEOF
11100
11101 fi
11102
11103 done
11104
11105
11106 if test "x$with_html_dir" = "x" ; then
11107   HTML_DIR='$(prefix)/doc'
11108 else
11109   HTML_DIR=$with_html_dir
11110 fi
11111
11112
11113
11114
11115 for ac_func in strftime
11116 do
11117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11118 echo "$as_me:$LINENO: checking for $ac_func" >&5
11119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11120 if eval "test \"\${$as_ac_var+set}\" = set"; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123   cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 #include "confdefs.h"
11126 /* System header to define __stub macros and hopefully few prototypes,
11127     which can conflict with char $ac_func (); below.  */
11128 #include <assert.h>
11129 /* Override any gcc2 internal prototype to avoid an error.  */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 /* We use char because int might match the return type of a gcc2
11134    builtin and then its argument prototype would still apply.  */
11135 char $ac_func ();
11136 char (*f) ();
11137
11138 #ifdef F77_DUMMY_MAIN
11139 #  ifdef __cplusplus
11140      extern "C"
11141 #  endif
11142    int F77_DUMMY_MAIN() { return 1; }
11143 #endif
11144 int
11145 main ()
11146 {
11147 /* The GNU C library defines this for functions which it implements
11148     to always fail with ENOSYS.  Some functions are actually named
11149     something starting with __ and the normal name is an alias.  */
11150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11151 choke me
11152 #else
11153 f = $ac_func;
11154 #endif
11155
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest.$ac_objext conftest$ac_exeext
11161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11162   (eval $ac_link) 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } &&
11166          { ac_try='test -s conftest$ac_exeext'
11167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168   (eval $ac_try) 2>&5
11169   ac_status=$?
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); }; }; then
11172   eval "$as_ac_var=yes"
11173 else
11174   echo "$as_me: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11176 eval "$as_ac_var=no"
11177 fi
11178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11179 fi
11180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11182 if test `eval echo '${'$as_ac_var'}'` = yes; then
11183   cat >>confdefs.h <<_ACEOF
11184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11185 _ACEOF
11186
11187 else
11188   # strftime is in -lintl on SCO UNIX.
11189 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11190 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
11191 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194   ac_check_lib_save_LIBS=$LIBS
11195 LIBS="-lintl  $LIBS"
11196 cat >conftest.$ac_ext <<_ACEOF
11197 #line $LINENO "configure"
11198 #include "confdefs.h"
11199
11200 /* Override any gcc2 internal prototype to avoid an error.  */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 /* We use char because int might match the return type of a gcc2
11205    builtin and then its argument prototype would still apply.  */
11206 char strftime ();
11207 #ifdef F77_DUMMY_MAIN
11208 #  ifdef __cplusplus
11209      extern "C"
11210 #  endif
11211    int F77_DUMMY_MAIN() { return 1; }
11212 #endif
11213 int
11214 main ()
11215 {
11216 strftime ();
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223   (eval $ac_link) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -s conftest$ac_exeext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   ac_cv_lib_intl_strftime=yes
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 ac_cv_lib_intl_strftime=no
11238 fi
11239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11240 LIBS=$ac_check_lib_save_LIBS
11241 fi
11242 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11243 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
11244 if test $ac_cv_lib_intl_strftime = yes; then
11245   cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_STRFTIME 1
11247 _ACEOF
11248
11249 LIBS="-lintl $LIBS"
11250 fi
11251
11252 fi
11253 done
11254
11255
11256
11257
11258 for ac_func in strdup strndup strerror
11259 do
11260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11261 echo "$as_me:$LINENO: checking for $ac_func" >&5
11262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11263 if eval "test \"\${$as_ac_var+set}\" = set"; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   cat >conftest.$ac_ext <<_ACEOF
11267 #line $LINENO "configure"
11268 #include "confdefs.h"
11269 /* System header to define __stub macros and hopefully few prototypes,
11270     which can conflict with char $ac_func (); below.  */
11271 #include <assert.h>
11272 /* Override any gcc2 internal prototype to avoid an error.  */
11273 #ifdef __cplusplus
11274 extern "C"
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277    builtin and then its argument prototype would still apply.  */
11278 char $ac_func ();
11279 char (*f) ();
11280
11281 #ifdef F77_DUMMY_MAIN
11282 #  ifdef __cplusplus
11283      extern "C"
11284 #  endif
11285    int F77_DUMMY_MAIN() { return 1; }
11286 #endif
11287 int
11288 main ()
11289 {
11290 /* The GNU C library defines this for functions which it implements
11291     to always fail with ENOSYS.  Some functions are actually named
11292     something starting with __ and the normal name is an alias.  */
11293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11294 choke me
11295 #else
11296 f = $ac_func;
11297 #endif
11298
11299   ;
11300   return 0;
11301 }
11302 _ACEOF
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305   (eval $ac_link) 2>&5
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); } &&
11309          { ac_try='test -s conftest$ac_exeext'
11310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311   (eval $ac_try) 2>&5
11312   ac_status=$?
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); }; }; then
11315   eval "$as_ac_var=yes"
11316 else
11317   echo "$as_me: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11319 eval "$as_ac_var=no"
11320 fi
11321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11322 fi
11323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11325 if test `eval echo '${'$as_ac_var'}'` = yes; then
11326   cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11328 _ACEOF
11329
11330 fi
11331 done
11332
11333
11334
11335
11336
11337
11338 for ac_func in finite isnand fp_class class fpclass
11339 do
11340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11341 echo "$as_me:$LINENO: checking for $ac_func" >&5
11342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11343 if eval "test \"\${$as_ac_var+set}\" = set"; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   cat >conftest.$ac_ext <<_ACEOF
11347 #line $LINENO "configure"
11348 #include "confdefs.h"
11349 /* System header to define __stub macros and hopefully few prototypes,
11350     which can conflict with char $ac_func (); below.  */
11351 #include <assert.h>
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 /* We use char because int might match the return type of a gcc2
11357    builtin and then its argument prototype would still apply.  */
11358 char $ac_func ();
11359 char (*f) ();
11360
11361 #ifdef F77_DUMMY_MAIN
11362 #  ifdef __cplusplus
11363      extern "C"
11364 #  endif
11365    int F77_DUMMY_MAIN() { return 1; }
11366 #endif
11367 int
11368 main ()
11369 {
11370 /* The GNU C library defines this for functions which it implements
11371     to always fail with ENOSYS.  Some functions are actually named
11372     something starting with __ and the normal name is an alias.  */
11373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11374 choke me
11375 #else
11376 f = $ac_func;
11377 #endif
11378
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext conftest$ac_exeext
11384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11385   (eval $ac_link) 2>&5
11386   ac_status=$?
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -s conftest$ac_exeext'
11390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; }; then
11395   eval "$as_ac_var=yes"
11396 else
11397   echo "$as_me: failed program was:" >&5
11398 cat conftest.$ac_ext >&5
11399 eval "$as_ac_var=no"
11400 fi
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406   cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411 done
11412
11413
11414
11415
11416
11417 for ac_func in strftime localtime gettimeofday ftime
11418 do
11419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11420 echo "$as_me:$LINENO: checking for $ac_func" >&5
11421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11422 if eval "test \"\${$as_ac_var+set}\" = set"; then
11423   echo $ECHO_N "(cached) $ECHO_C" >&6
11424 else
11425   cat >conftest.$ac_ext <<_ACEOF
11426 #line $LINENO "configure"
11427 #include "confdefs.h"
11428 /* System header to define __stub macros and hopefully few prototypes,
11429     which can conflict with char $ac_func (); below.  */
11430 #include <assert.h>
11431 /* Override any gcc2 internal prototype to avoid an error.  */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 /* We use char because int might match the return type of a gcc2
11436    builtin and then its argument prototype would still apply.  */
11437 char $ac_func ();
11438 char (*f) ();
11439
11440 #ifdef F77_DUMMY_MAIN
11441 #  ifdef __cplusplus
11442      extern "C"
11443 #  endif
11444    int F77_DUMMY_MAIN() { return 1; }
11445 #endif
11446 int
11447 main ()
11448 {
11449 /* The GNU C library defines this for functions which it implements
11450     to always fail with ENOSYS.  Some functions are actually named
11451     something starting with __ and the normal name is an alias.  */
11452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11453 choke me
11454 #else
11455 f = $ac_func;
11456 #endif
11457
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464   (eval $ac_link) 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); } &&
11468          { ac_try='test -s conftest$ac_exeext'
11469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470   (eval $ac_try) 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; }; then
11474   eval "$as_ac_var=yes"
11475 else
11476   echo "$as_me: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478 eval "$as_ac_var=no"
11479 fi
11480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11481 fi
11482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11484 if test `eval echo '${'$as_ac_var'}'` = yes; then
11485   cat >>confdefs.h <<_ACEOF
11486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11487 _ACEOF
11488
11489 fi
11490 done
11491
11492
11493
11494
11495 for ac_func in stat _stat signal
11496 do
11497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11500 if eval "test \"\${$as_ac_var+set}\" = set"; then
11501   echo $ECHO_N "(cached) $ECHO_C" >&6
11502 else
11503   cat >conftest.$ac_ext <<_ACEOF
11504 #line $LINENO "configure"
11505 #include "confdefs.h"
11506 /* System header to define __stub macros and hopefully few prototypes,
11507     which can conflict with char $ac_func (); below.  */
11508 #include <assert.h>
11509 /* Override any gcc2 internal prototype to avoid an error.  */
11510 #ifdef __cplusplus
11511 extern "C"
11512 #endif
11513 /* We use char because int might match the return type of a gcc2
11514    builtin and then its argument prototype would still apply.  */
11515 char $ac_func ();
11516 char (*f) ();
11517
11518 #ifdef F77_DUMMY_MAIN
11519 #  ifdef __cplusplus
11520      extern "C"
11521 #  endif
11522    int F77_DUMMY_MAIN() { return 1; }
11523 #endif
11524 int
11525 main ()
11526 {
11527 /* The GNU C library defines this for functions which it implements
11528     to always fail with ENOSYS.  Some functions are actually named
11529     something starting with __ and the normal name is an alias.  */
11530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11531 choke me
11532 #else
11533 f = $ac_func;
11534 #endif
11535
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542   (eval $ac_link) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } &&
11546          { ac_try='test -s conftest$ac_exeext'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   eval "$as_ac_var=yes"
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 eval "$as_ac_var=no"
11557 fi
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559 fi
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563   cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 _ACEOF
11566
11567 fi
11568 done
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
11580 do
11581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 echo "$as_me:$LINENO: checking for $ac_func" >&5
11583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11584 if eval "test \"\${$as_ac_var+set}\" = set"; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   cat >conftest.$ac_ext <<_ACEOF
11588 #line $LINENO "configure"
11589 #include "confdefs.h"
11590 /* System header to define __stub macros and hopefully few prototypes,
11591     which can conflict with char $ac_func (); below.  */
11592 #include <assert.h>
11593 /* Override any gcc2 internal prototype to avoid an error.  */
11594 #ifdef __cplusplus
11595 extern "C"
11596 #endif
11597 /* We use char because int might match the return type of a gcc2
11598    builtin and then its argument prototype would still apply.  */
11599 char $ac_func ();
11600 char (*f) ();
11601
11602 #ifdef F77_DUMMY_MAIN
11603 #  ifdef __cplusplus
11604      extern "C"
11605 #  endif
11606    int F77_DUMMY_MAIN() { return 1; }
11607 #endif
11608 int
11609 main ()
11610 {
11611 /* The GNU C library defines this for functions which it implements
11612     to always fail with ENOSYS.  Some functions are actually named
11613     something starting with __ and the normal name is an alias.  */
11614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11615 choke me
11616 #else
11617 f = $ac_func;
11618 #endif
11619
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 rm -f conftest.$ac_objext conftest$ac_exeext
11625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11626   (eval $ac_link) 2>&5
11627   ac_status=$?
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -s conftest$ac_exeext'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; }; then
11636   eval "$as_ac_var=yes"
11637 else
11638   echo "$as_me: failed program was:" >&5
11639 cat conftest.$ac_ext >&5
11640 eval "$as_ac_var=no"
11641 fi
11642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11643 fi
11644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11646 if test `eval echo '${'$as_ac_var'}'` = yes; then
11647   cat >>confdefs.h <<_ACEOF
11648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649 _ACEOF
11650
11651 else
11652   NEED_TRIO=1
11653 fi
11654 done
11655
11656
11657 echo "$as_me:$LINENO: checking for gethostent" >&5
11658 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
11659 if test "${ac_cv_func_gethostent+set}" = set; then
11660   echo $ECHO_N "(cached) $ECHO_C" >&6
11661 else
11662   cat >conftest.$ac_ext <<_ACEOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11665 /* System header to define __stub macros and hopefully few prototypes,
11666     which can conflict with char gethostent (); below.  */
11667 #include <assert.h>
11668 /* Override any gcc2 internal prototype to avoid an error.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 /* We use char because int might match the return type of a gcc2
11673    builtin and then its argument prototype would still apply.  */
11674 char gethostent ();
11675 char (*f) ();
11676
11677 #ifdef F77_DUMMY_MAIN
11678 #  ifdef __cplusplus
11679      extern "C"
11680 #  endif
11681    int F77_DUMMY_MAIN() { return 1; }
11682 #endif
11683 int
11684 main ()
11685 {
11686 /* The GNU C library defines this for functions which it implements
11687     to always fail with ENOSYS.  Some functions are actually named
11688     something starting with __ and the normal name is an alias.  */
11689 #if defined (__stub_gethostent) || defined (__stub___gethostent)
11690 choke me
11691 #else
11692 f = gethostent;
11693 #endif
11694
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701   (eval $ac_link) 2>&5
11702   ac_status=$?
11703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704   (exit $ac_status); } &&
11705          { ac_try='test -s conftest$ac_exeext'
11706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707   (eval $ac_try) 2>&5
11708   ac_status=$?
11709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710   (exit $ac_status); }; }; then
11711   ac_cv_func_gethostent=yes
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 cat conftest.$ac_ext >&5
11715 ac_cv_func_gethostent=no
11716 fi
11717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
11720 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
11721 if test $ac_cv_func_gethostent = yes; then
11722   :
11723 else
11724
11725 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
11726 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
11727 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730   ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lnsl  $LIBS"
11732 cat >conftest.$ac_ext <<_ACEOF
11733 #line $LINENO "configure"
11734 #include "confdefs.h"
11735
11736 /* Override any gcc2 internal prototype to avoid an error.  */
11737 #ifdef __cplusplus
11738 extern "C"
11739 #endif
11740 /* We use char because int might match the return type of a gcc2
11741    builtin and then its argument prototype would still apply.  */
11742 char gethostent ();
11743 #ifdef F77_DUMMY_MAIN
11744 #  ifdef __cplusplus
11745      extern "C"
11746 #  endif
11747    int F77_DUMMY_MAIN() { return 1; }
11748 #endif
11749 int
11750 main ()
11751 {
11752 gethostent ();
11753   ;
11754   return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759   (eval $ac_link) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); } &&
11763          { ac_try='test -s conftest$ac_exeext'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; }; then
11769   ac_cv_lib_nsl_gethostent=yes
11770 else
11771   echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 ac_cv_lib_nsl_gethostent=no
11774 fi
11775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
11779 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
11780 if test $ac_cv_lib_nsl_gethostent = yes; then
11781   cat >>confdefs.h <<_ACEOF
11782 #define HAVE_LIBNSL 1
11783 _ACEOF
11784
11785   LIBS="-lnsl $LIBS"
11786
11787 fi
11788
11789 fi
11790
11791 echo "$as_me:$LINENO: checking for setsockopt" >&5
11792 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
11793 if test "${ac_cv_func_setsockopt+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   cat >conftest.$ac_ext <<_ACEOF
11797 #line $LINENO "configure"
11798 #include "confdefs.h"
11799 /* System header to define __stub macros and hopefully few prototypes,
11800     which can conflict with char setsockopt (); below.  */
11801 #include <assert.h>
11802 /* Override any gcc2 internal prototype to avoid an error.  */
11803 #ifdef __cplusplus
11804 extern "C"
11805 #endif
11806 /* We use char because int might match the return type of a gcc2
11807    builtin and then its argument prototype would still apply.  */
11808 char setsockopt ();
11809 char (*f) ();
11810
11811 #ifdef F77_DUMMY_MAIN
11812 #  ifdef __cplusplus
11813      extern "C"
11814 #  endif
11815    int F77_DUMMY_MAIN() { return 1; }
11816 #endif
11817 int
11818 main ()
11819 {
11820 /* The GNU C library defines this for functions which it implements
11821     to always fail with ENOSYS.  Some functions are actually named
11822     something starting with __ and the normal name is an alias.  */
11823 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
11824 choke me
11825 #else
11826 f = setsockopt;
11827 #endif
11828
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835   (eval $ac_link) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); } &&
11839          { ac_try='test -s conftest$ac_exeext'
11840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841   (eval $ac_try) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; }; then
11845   ac_cv_func_setsockopt=yes
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 cat conftest.$ac_ext >&5
11849 ac_cv_func_setsockopt=no
11850 fi
11851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11852 fi
11853 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
11854 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
11855 if test $ac_cv_func_setsockopt = yes; then
11856   :
11857 else
11858
11859 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
11860 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
11861 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
11862   echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864   ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-lsocket  $LIBS"
11866 cat >conftest.$ac_ext <<_ACEOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869
11870 /* Override any gcc2 internal prototype to avoid an error.  */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 /* We use char because int might match the return type of a gcc2
11875    builtin and then its argument prototype would still apply.  */
11876 char setsockopt ();
11877 #ifdef F77_DUMMY_MAIN
11878 #  ifdef __cplusplus
11879      extern "C"
11880 #  endif
11881    int F77_DUMMY_MAIN() { return 1; }
11882 #endif
11883 int
11884 main ()
11885 {
11886 setsockopt ();
11887   ;
11888   return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11893   (eval $ac_link) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); } &&
11897          { ac_try='test -s conftest$ac_exeext'
11898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899   (eval $ac_try) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; }; then
11903   ac_cv_lib_socket_setsockopt=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 cat conftest.$ac_ext >&5
11907 ac_cv_lib_socket_setsockopt=no
11908 fi
11909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11911 fi
11912 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
11913 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
11914 if test $ac_cv_lib_socket_setsockopt = yes; then
11915   cat >>confdefs.h <<_ACEOF
11916 #define HAVE_LIBSOCKET 1
11917 _ACEOF
11918
11919   LIBS="-lsocket $LIBS"
11920
11921 fi
11922
11923 fi
11924
11925 echo "$as_me:$LINENO: checking for connect" >&5
11926 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11927 if test "${ac_cv_func_connect+set}" = set; then
11928   echo $ECHO_N "(cached) $ECHO_C" >&6
11929 else
11930   cat >conftest.$ac_ext <<_ACEOF
11931 #line $LINENO "configure"
11932 #include "confdefs.h"
11933 /* System header to define __stub macros and hopefully few prototypes,
11934     which can conflict with char connect (); below.  */
11935 #include <assert.h>
11936 /* Override any gcc2 internal prototype to avoid an error.  */
11937 #ifdef __cplusplus
11938 extern "C"
11939 #endif
11940 /* We use char because int might match the return type of a gcc2
11941    builtin and then its argument prototype would still apply.  */
11942 char connect ();
11943 char (*f) ();
11944
11945 #ifdef F77_DUMMY_MAIN
11946 #  ifdef __cplusplus
11947      extern "C"
11948 #  endif
11949    int F77_DUMMY_MAIN() { return 1; }
11950 #endif
11951 int
11952 main ()
11953 {
11954 /* The GNU C library defines this for functions which it implements
11955     to always fail with ENOSYS.  Some functions are actually named
11956     something starting with __ and the normal name is an alias.  */
11957 #if defined (__stub_connect) || defined (__stub___connect)
11958 choke me
11959 #else
11960 f = connect;
11961 #endif
11962
11963   ;
11964   return 0;
11965 }
11966 _ACEOF
11967 rm -f conftest.$ac_objext conftest$ac_exeext
11968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11969   (eval $ac_link) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -s conftest$ac_exeext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_func_connect=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 cat conftest.$ac_ext >&5
11983 ac_cv_func_connect=no
11984 fi
11985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11986 fi
11987 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11988 echo "${ECHO_T}$ac_cv_func_connect" >&6
11989 if test $ac_cv_func_connect = yes; then
11990   :
11991 else
11992
11993 echo "$as_me:$LINENO: checking for connect in -linet" >&5
11994 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
11995 if test "${ac_cv_lib_inet_connect+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   ac_check_lib_save_LIBS=$LIBS
11999 LIBS="-linet  $LIBS"
12000 cat >conftest.$ac_ext <<_ACEOF
12001 #line $LINENO "configure"
12002 #include "confdefs.h"
12003
12004 /* Override any gcc2 internal prototype to avoid an error.  */
12005 #ifdef __cplusplus
12006 extern "C"
12007 #endif
12008 /* We use char because int might match the return type of a gcc2
12009    builtin and then its argument prototype would still apply.  */
12010 char connect ();
12011 #ifdef F77_DUMMY_MAIN
12012 #  ifdef __cplusplus
12013      extern "C"
12014 #  endif
12015    int F77_DUMMY_MAIN() { return 1; }
12016 #endif
12017 int
12018 main ()
12019 {
12020 connect ();
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext conftest$ac_exeext
12026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12027   (eval $ac_link) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } &&
12031          { ac_try='test -s conftest$ac_exeext'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; }; then
12037   ac_cv_lib_inet_connect=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 cat conftest.$ac_ext >&5
12041 ac_cv_lib_inet_connect=no
12042 fi
12043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12044 LIBS=$ac_check_lib_save_LIBS
12045 fi
12046 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
12047 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
12048 if test $ac_cv_lib_inet_connect = yes; then
12049   cat >>confdefs.h <<_ACEOF
12050 #define HAVE_LIBINET 1
12051 _ACEOF
12052
12053   LIBS="-linet $LIBS"
12054
12055 fi
12056
12057 fi
12058
12059
12060 echo "$as_me:$LINENO: checking for type of socket length (socklen_t)" >&5
12061 echo $ECHO_N "checking for type of socket length (socklen_t)... $ECHO_C" >&6
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12063 "configure"
12064 #include "confdefs.h"
12065
12066 #include <stddef.h>
12067 #include <sys/types.h>
12068 #include <sys/socket.h>
12069 int main() {
12070
12071 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
12072 ; return 0; }
12073 EOF
12074 if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12075   rm -rf conftest*
12076
12077   echo "$as_me:$LINENO: result: socklen_t *" >&5
12078 echo "${ECHO_T}socklen_t *" >&6
12079   SOCKLEN_T=socklen_t
12080 else
12081   echo "configure: failed program was:" >&5
12082   cat conftest.$ac_ext >&5
12083   rm -rf conftest*
12084
12085   cat > conftest.$ac_ext <<EOF
12086 #line 12086 "configure"
12087 #include "confdefs.h"
12088
12089 #include <stddef.h>
12090 #include <sys/types.h>
12091 #include <sys/socket.h>
12092 int main() {
12093
12094 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
12095 ; return 0; }
12096 EOF
12097 if { (eval echo configure:12097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12098   rm -rf conftest*
12099
12100     echo "$as_me:$LINENO: result: size_t *" >&5
12101 echo "${ECHO_T}size_t *" >&6
12102     SOCKLEN_T=size_t
12103 else
12104   echo "configure: failed program was:" >&5
12105   cat conftest.$ac_ext >&5
12106   rm -rf conftest*
12107
12108     cat > conftest.$ac_ext <<EOF
12109 #line 12109 "configure"
12110 #include "confdefs.h"
12111
12112 #include <stddef.h>
12113 #include <sys/types.h>
12114 #include <sys/socket.h>
12115 int main() {
12116
12117 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
12118 ; return 0; }
12119 EOF
12120 if { (eval echo configure:12120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
12121   rm -rf conftest*
12122
12123       echo "$as_me:$LINENO: result: int *" >&5
12124 echo "${ECHO_T}int *" >&6
12125       SOCKLEN_T=int
12126 else
12127   echo "configure: failed program was:" >&5
12128   cat conftest.$ac_ext >&5
12129   rm -rf conftest*
12130
12131       { echo "$as_me:$LINENO: WARNING: could not determine" >&5
12132 echo "$as_me: WARNING: could not determine" >&2;}
12133 fi
12134 rm -f conftest*
12135 fi
12136 rm -f conftest*
12137 fi
12138 rm -f conftest*
12139 cat >>confdefs.h <<_ACEOF
12140 #define SOCKLEN_T $SOCKLEN_T
12141 _ACEOF
12142
12143
12144 echo "$as_me:$LINENO: checking for isnan" >&5
12145 echo $ECHO_N "checking for isnan... $ECHO_C" >&6
12146 if test "${ac_cv_func_isnan+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149   cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12151 #include "confdefs.h"
12152 /* System header to define __stub macros and hopefully few prototypes,
12153     which can conflict with char isnan (); below.  */
12154 #include <assert.h>
12155 /* Override any gcc2 internal prototype to avoid an error.  */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 /* We use char because int might match the return type of a gcc2
12160    builtin and then its argument prototype would still apply.  */
12161 char isnan ();
12162 char (*f) ();
12163
12164 #ifdef F77_DUMMY_MAIN
12165 #  ifdef __cplusplus
12166      extern "C"
12167 #  endif
12168    int F77_DUMMY_MAIN() { return 1; }
12169 #endif
12170 int
12171 main ()
12172 {
12173 /* The GNU C library defines this for functions which it implements
12174     to always fail with ENOSYS.  Some functions are actually named
12175     something starting with __ and the normal name is an alias.  */
12176 #if defined (__stub_isnan) || defined (__stub___isnan)
12177 choke me
12178 #else
12179 f = isnan;
12180 #endif
12181
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 rm -f conftest.$ac_objext conftest$ac_exeext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12188   (eval $ac_link) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); } &&
12192          { ac_try='test -s conftest$ac_exeext'
12193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194   (eval $ac_try) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; }; then
12198   ac_cv_func_isnan=yes
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 ac_cv_func_isnan=no
12203 fi
12204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12205 fi
12206 echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
12207 echo "${ECHO_T}$ac_cv_func_isnan" >&6
12208 if test $ac_cv_func_isnan = yes; then
12209   :
12210 else
12211   echo "$as_me:$LINENO: checking for isnan in -lm" >&5
12212 echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6
12213 if test "${ac_cv_lib_m_isnan+set}" = set; then
12214   echo $ECHO_N "(cached) $ECHO_C" >&6
12215 else
12216   ac_check_lib_save_LIBS=$LIBS
12217 LIBS="-lm  $LIBS"
12218 cat >conftest.$ac_ext <<_ACEOF
12219 #line $LINENO "configure"
12220 #include "confdefs.h"
12221
12222 /* Override any gcc2 internal prototype to avoid an error.  */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 /* We use char because int might match the return type of a gcc2
12227    builtin and then its argument prototype would still apply.  */
12228 char isnan ();
12229 #ifdef F77_DUMMY_MAIN
12230 #  ifdef __cplusplus
12231      extern "C"
12232 #  endif
12233    int F77_DUMMY_MAIN() { return 1; }
12234 #endif
12235 int
12236 main ()
12237 {
12238 isnan ();
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext conftest$ac_exeext
12244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245   (eval $ac_link) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -s conftest$ac_exeext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_cv_lib_m_isnan=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 cat conftest.$ac_ext >&5
12259 ac_cv_lib_m_isnan=no
12260 fi
12261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12263 fi
12264 echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5
12265 echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6
12266 if test $ac_cv_lib_m_isnan = yes; then
12267   cat >>confdefs.h <<\_ACEOF
12268 #define HAVE_ISNAN 1
12269 _ACEOF
12270
12271 fi
12272
12273 fi
12274
12275
12276 echo "$as_me:$LINENO: checking for isinf" >&5
12277 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
12278 if test "${ac_cv_func_isinf+set}" = set; then
12279   echo $ECHO_N "(cached) $ECHO_C" >&6
12280 else
12281   cat >conftest.$ac_ext <<_ACEOF
12282 #line $LINENO "configure"
12283 #include "confdefs.h"
12284 /* System header to define __stub macros and hopefully few prototypes,
12285     which can conflict with char isinf (); below.  */
12286 #include <assert.h>
12287 /* Override any gcc2 internal prototype to avoid an error.  */
12288 #ifdef __cplusplus
12289 extern "C"
12290 #endif
12291 /* We use char because int might match the return type of a gcc2
12292    builtin and then its argument prototype would still apply.  */
12293 char isinf ();
12294 char (*f) ();
12295
12296 #ifdef F77_DUMMY_MAIN
12297 #  ifdef __cplusplus
12298      extern "C"
12299 #  endif
12300    int F77_DUMMY_MAIN() { return 1; }
12301 #endif
12302 int
12303 main ()
12304 {
12305 /* The GNU C library defines this for functions which it implements
12306     to always fail with ENOSYS.  Some functions are actually named
12307     something starting with __ and the normal name is an alias.  */
12308 #if defined (__stub_isinf) || defined (__stub___isinf)
12309 choke me
12310 #else
12311 f = isinf;
12312 #endif
12313
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12320   (eval $ac_link) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -s conftest$ac_exeext'
12325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326   (eval $ac_try) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; }; then
12330   ac_cv_func_isinf=yes
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 cat conftest.$ac_ext >&5
12334 ac_cv_func_isinf=no
12335 fi
12336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12337 fi
12338 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
12339 echo "${ECHO_T}$ac_cv_func_isinf" >&6
12340 if test $ac_cv_func_isinf = yes; then
12341   cat >>confdefs.h <<\_ACEOF
12342 #define HAVE_ISINF 1
12343 _ACEOF
12344
12345 else
12346   echo "$as_me:$LINENO: checking for isinf in -lm" >&5
12347 echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6
12348 if test "${ac_cv_lib_m_isinf+set}" = set; then
12349   echo $ECHO_N "(cached) $ECHO_C" >&6
12350 else
12351   ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-lm  $LIBS"
12353 cat >conftest.$ac_ext <<_ACEOF
12354 #line $LINENO "configure"
12355 #include "confdefs.h"
12356
12357 /* Override any gcc2 internal prototype to avoid an error.  */
12358 #ifdef __cplusplus
12359 extern "C"
12360 #endif
12361 /* We use char because int might match the return type of a gcc2
12362    builtin and then its argument prototype would still apply.  */
12363 char isinf ();
12364 #ifdef F77_DUMMY_MAIN
12365 #  ifdef __cplusplus
12366      extern "C"
12367 #  endif
12368    int F77_DUMMY_MAIN() { return 1; }
12369 #endif
12370 int
12371 main ()
12372 {
12373 isinf ();
12374   ;
12375   return 0;
12376 }
12377 _ACEOF
12378 rm -f conftest.$ac_objext conftest$ac_exeext
12379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12380   (eval $ac_link) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); } &&
12384          { ac_try='test -s conftest$ac_exeext'
12385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386   (eval $ac_try) 2>&5
12387   ac_status=$?
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); }; }; then
12390   ac_cv_lib_m_isinf=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 cat conftest.$ac_ext >&5
12394 ac_cv_lib_m_isinf=no
12395 fi
12396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12397 LIBS=$ac_check_lib_save_LIBS
12398 fi
12399 echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5
12400 echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6
12401 if test $ac_cv_lib_m_isinf = yes; then
12402   cat >>confdefs.h <<\_ACEOF
12403 #define HAVE_ISINF 1
12404 _ACEOF
12405
12406 fi
12407
12408 fi
12409
12410
12411 XML_LIBDIR='-L${libdir}'
12412 XML_INCLUDEDIR='-I${includedir}/libxml2'
12413
12414 XML_CFLAGS=""
12415 RDL_LIBS=""
12416
12417 if test "${GCC}" != "yes" ; then
12418     case "${host}" in
12419           *-*-hpux* )
12420                CFLAGS="${CFLAGS} -Wp,-H30000"
12421                ;;
12422           *-dec-osf* )
12423                CFLAGS="${CFLAGS} -ieee"
12424                ;;
12425     esac
12426 else
12427     CFLAGS="${CFLAGS} -Wall"
12428     case "${host}" in
12429           alpha*-*-linux* )
12430                CFLAGS="${CFLAGS} -mieee"
12431                ;;
12432           alpha*-*-osf* )
12433                CFLAGS="${CFLAGS} -mieee"
12434                ;;
12435     esac
12436 fi
12437 case ${host} in
12438     *-*-solaris*)
12439         XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
12440         ;;
12441     hppa*-hp-mpeix)
12442         NEED_TRIO=1
12443         ;;
12444 esac
12445
12446
12447
12448 PYTHON=
12449 PYTHON_VERSION=
12450 PYTHON_INCLUDES=
12451 PYTHON_SITE_PACKAGES=
12452
12453 # Check whether --with-python or --without-python was given.
12454 if test "${with_python+set}" = set; then
12455   withval="$with_python"
12456
12457 fi;
12458 if test "$with_python" != "no" ; then
12459     if test -x "$with_python/bin/python"
12460     then
12461         echo Found python in $with_python/bin/python
12462         PYTHON="$with_python/bin/python"
12463     else
12464         if test -x "$with_python"
12465         then
12466             echo Found python in $with_python
12467             PYTHON="$with_python"
12468         else
12469             # Extract the first word of "python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
12470 set dummy python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
12471 echo "$as_me:$LINENO: checking for $ac_word" >&5
12472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12473 if test "${ac_cv_path_PYTHON+set}" = set; then
12474   echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12476   case $PYTHON in
12477   [\\/]* | ?:[\\/]*)
12478   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12479   ;;
12480   *)
12481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484   IFS=$as_save_IFS
12485   test -z "$as_dir" && as_dir=.
12486   for ac_exec_ext in '' $ac_executable_extensions; do
12487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12490     break 2
12491   fi
12492 done
12493 done
12494
12495   ;;
12496 esac
12497 fi
12498 PYTHON=$ac_cv_path_PYTHON
12499
12500 if test -n "$PYTHON"; then
12501   echo "$as_me:$LINENO: result: $PYTHON" >&5
12502 echo "${ECHO_T}$PYTHON" >&6
12503 else
12504   echo "$as_me:$LINENO: result: no" >&5
12505 echo "${ECHO_T}no" >&6
12506 fi
12507
12508         fi
12509     fi
12510     if test "$PYTHON" != ""
12511     then
12512         PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
12513         echo Found Python version $PYTHON_VERSION
12514     fi
12515     if test "$PYTHON_VERSION" != ""
12516     then
12517         if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
12518            -d $with_python/lib/python$PYTHON_VERSION/site-packages
12519         then
12520             PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
12521             PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
12522         else
12523             if test -r $prefix/include/python$PYTHON_VERSION/Python.h
12524             then
12525                 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
12526                 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
12527             else
12528                 if test -r /usr/include/python$PYTHON_VERSION/Python.h
12529                 then
12530                     PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
12531                     PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
12532                 else
12533                     echo could not find python$PYTHON_VERSION/Python.h
12534                 fi
12535             fi
12536             if ! test -d "$PYTHON_SITE_PACKAGES"
12537             then
12538                     PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
12539             fi
12540         fi
12541     fi
12542 fi
12543
12544
12545 if test "$PYTHON_INCLUDES" != ""; then
12546   WITH_PYTHON_TRUE=
12547   WITH_PYTHON_FALSE='#'
12548 else
12549   WITH_PYTHON_TRUE='#'
12550   WITH_PYTHON_FALSE=
12551 fi
12552 if test "$PYTHON_INCLUDES" != ""
12553 then
12554     PYTHON_SUBDIR=python
12555 else
12556     PYTHON_SUBDIR=
12557 fi
12558
12559
12560 _cppflags="${CPPFLAGS}"
12561 _ldflags="${LDFLAGS}"
12562
12563
12564 # Check whether --with-readline or --without-readline was given.
12565 if test "${with_readline+set}" = set; then
12566   withval="$with_readline"
12567
12568   if test "$withval" != "no" -a "$withval" != "yes"; then
12569     RDL_DIR=$withval
12570     CPPFLAGS="${CPPFLAGS} -I$withval/include"
12571     LDFLAGS="${LDFLAGS} -L$withval/lib"
12572   fi
12573
12574 fi;
12575
12576 if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
12577     if test "${with_mem_debug}" = "" ; then
12578         with_mem_debug="yes"
12579     fi
12580     if test "${with_docbook}" = "" ; then
12581         with_docbook="yes"
12582     fi
12583     CFLAGS="-g -O -pedantic -W -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 "
12584     STATIC_BINARIES="-static"
12585 else
12586     STATIC_BINARIES=
12587 fi
12588
12589
12590
12591 if test "${NEED_TRIO}" = "1" ; then
12592     echo Adding trio library for string functions
12593     WITH_TRIO=1
12594 else
12595     WITH_TRIO=0
12596 fi
12597
12598
12599 if test "${NEED_TRIO}" = "1"; then
12600   WITH_TRIO_SOURCES_TRUE=
12601   WITH_TRIO_SOURCES_FALSE='#'
12602 else
12603   WITH_TRIO_SOURCES_TRUE='#'
12604   WITH_TRIO_SOURCES_FALSE=
12605 fi
12606
12607
12608
12609 THREAD_LIBS=""
12610 WITH_THREADS=0
12611 THREAD_CFLAGS=""
12612 TEST_THREADS=""
12613
12614
12615 # Check whether --with-threads or --without-threads was given.
12616 if test "${with_threads+set}" = set; then
12617   withval="$with_threads"
12618
12619 fi;
12620 if test "$with_threads" = "yes" ; then
12621     echo Enabling multithreaded support
12622
12623     if test "${ac_cv_header_pthread_h+set}" = set; then
12624   echo "$as_me:$LINENO: checking for pthread.h" >&5
12625 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12626 if test "${ac_cv_header_pthread_h+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 fi
12629 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12631 else
12632   # Is the header compilable?
12633 echo "$as_me:$LINENO: checking pthread.h usability" >&5
12634 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
12635 cat >conftest.$ac_ext <<_ACEOF
12636 #line $LINENO "configure"
12637 #include "confdefs.h"
12638 $ac_includes_default
12639 #include <pthread.h>
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643   (eval $ac_compile) 2>&5
12644   ac_status=$?
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -s conftest.$ac_objext'
12648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649   (eval $ac_try) 2>&5
12650   ac_status=$?
12651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652   (exit $ac_status); }; }; then
12653   ac_header_compiler=yes
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 cat conftest.$ac_ext >&5
12657 ac_header_compiler=no
12658 fi
12659 rm -f conftest.$ac_objext conftest.$ac_ext
12660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12661 echo "${ECHO_T}$ac_header_compiler" >&6
12662
12663 # Is the header present?
12664 echo "$as_me:$LINENO: checking pthread.h presence" >&5
12665 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
12666 cat >conftest.$ac_ext <<_ACEOF
12667 #line $LINENO "configure"
12668 #include "confdefs.h"
12669 #include <pthread.h>
12670 _ACEOF
12671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12672   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12673   ac_status=$?
12674   egrep -v '^ *\+' conftest.er1 >conftest.err
12675   rm -f conftest.er1
12676   cat conftest.err >&5
12677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678   (exit $ac_status); } >/dev/null; then
12679   if test -s conftest.err; then
12680     ac_cpp_err=$ac_c_preproc_warn_flag
12681   else
12682     ac_cpp_err=
12683   fi
12684 else
12685   ac_cpp_err=yes
12686 fi
12687 if test -z "$ac_cpp_err"; then
12688   ac_header_preproc=yes
12689 else
12690   echo "$as_me: failed program was:" >&5
12691   cat conftest.$ac_ext >&5
12692   ac_header_preproc=no
12693 fi
12694 rm -f conftest.err conftest.$ac_ext
12695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12696 echo "${ECHO_T}$ac_header_preproc" >&6
12697
12698 # So?  What about this header?
12699 case $ac_header_compiler:$ac_header_preproc in
12700   yes:no )
12701     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
12702 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12703     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12704 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12705   no:yes )
12706     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
12707 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
12708     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
12709 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
12710     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
12711 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;};;
12712 esac
12713 echo "$as_me:$LINENO: checking for pthread.h" >&5
12714 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12715 if test "${ac_cv_header_pthread_h+set}" = set; then
12716   echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718   ac_cv_header_pthread_h=$ac_header_preproc
12719 fi
12720 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
12721 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12722
12723 fi
12724 if test $ac_cv_header_pthread_h = yes; then
12725   echo "$as_me:$LINENO: checking for pthread_join in -lpthread" >&5
12726 echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6
12727 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   ac_check_lib_save_LIBS=$LIBS
12731 LIBS="-lpthread  $LIBS"
12732 cat >conftest.$ac_ext <<_ACEOF
12733 #line $LINENO "configure"
12734 #include "confdefs.h"
12735
12736 /* Override any gcc2 internal prototype to avoid an error.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 /* We use char because int might match the return type of a gcc2
12741    builtin and then its argument prototype would still apply.  */
12742 char pthread_join ();
12743 #ifdef F77_DUMMY_MAIN
12744 #  ifdef __cplusplus
12745      extern "C"
12746 #  endif
12747    int F77_DUMMY_MAIN() { return 1; }
12748 #endif
12749 int
12750 main ()
12751 {
12752 pthread_join ();
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12759   (eval $ac_link) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); } &&
12763          { ac_try='test -s conftest$ac_exeext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   ac_cv_lib_pthread_pthread_join=yes
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 cat conftest.$ac_ext >&5
12773 ac_cv_lib_pthread_pthread_join=no
12774 fi
12775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12776 LIBS=$ac_check_lib_save_LIBS
12777 fi
12778 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_join" >&5
12779 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6
12780 if test $ac_cv_lib_pthread_pthread_join = yes; then
12781
12782            THREAD_LIBS="-lpthread"
12783            cat >>confdefs.h <<\_ACEOF
12784 #define HAVE_LIBPTHREAD 1
12785 _ACEOF
12786
12787            cat >>confdefs.h <<\_ACEOF
12788 #define HAVE_PTHREAD_H 1
12789 _ACEOF
12790
12791            WITH_THREADS="1"
12792 fi
12793
12794 fi
12795
12796
12797
12798     if test "$WITH_THREADS" = "1" ; then
12799         THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
12800         TEST_THREADS="Threadtests"
12801     fi
12802 fi
12803
12804 # Check whether --with-thread-alloc or --without-thread-alloc was given.
12805 if test "${with_thread_alloc+set}" = set; then
12806   withval="$with_thread_alloc"
12807
12808 fi;
12809 if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
12810     THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
12811 fi
12812
12813
12814
12815
12816
12817
12818
12819 # Check whether --with-history or --without-history was given.
12820 if test "${with_history+set}" = set; then
12821   withval="$with_history"
12822
12823 fi;
12824 if test "$with_history" = "yes" ; then
12825     echo Enabling xmllint shell history
12826             unset tcap
12827     for termlib in ncurses curses termcap terminfo termlib; do
12828         as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
12829 echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5
12830 echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6
12831 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   ac_check_lib_save_LIBS=$LIBS
12835 LIBS="-l${termlib}  $LIBS"
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line $LINENO "configure"
12838 #include "confdefs.h"
12839
12840 /* Override any gcc2 internal prototype to avoid an error.  */
12841 #ifdef __cplusplus
12842 extern "C"
12843 #endif
12844 /* We use char because int might match the return type of a gcc2
12845    builtin and then its argument prototype would still apply.  */
12846 char tputs ();
12847 #ifdef F77_DUMMY_MAIN
12848 #  ifdef __cplusplus
12849      extern "C"
12850 #  endif
12851    int F77_DUMMY_MAIN() { return 1; }
12852 #endif
12853 int
12854 main ()
12855 {
12856 tputs ();
12857   ;
12858   return 0;
12859 }
12860 _ACEOF
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12863   (eval $ac_link) 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); } &&
12867          { ac_try='test -s conftest$ac_exeext'
12868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869   (eval $ac_try) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; }; then
12873   eval "$as_ac_Lib=yes"
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 eval "$as_ac_Lib=no"
12878 fi
12879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12880 LIBS=$ac_check_lib_save_LIBS
12881 fi
12882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12883 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12884 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12885   tcap="-l$termlib"
12886 fi
12887
12888         test -n "$tcap" && break
12889     done
12890
12891     if test "${ac_cv_header_readline_history_h+set}" = set; then
12892   echo "$as_me:$LINENO: checking for readline/history.h" >&5
12893 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
12894 if test "${ac_cv_header_readline_history_h+set}" = set; then
12895   echo $ECHO_N "(cached) $ECHO_C" >&6
12896 fi
12897 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
12898 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
12899 else
12900   # Is the header compilable?
12901 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
12902 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
12903 cat >conftest.$ac_ext <<_ACEOF
12904 #line $LINENO "configure"
12905 #include "confdefs.h"
12906 $ac_includes_default
12907 #include <readline/history.h>
12908 _ACEOF
12909 rm -f conftest.$ac_objext
12910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12911   (eval $ac_compile) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -s conftest.$ac_objext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   ac_header_compiler=yes
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 cat conftest.$ac_ext >&5
12925 ac_header_compiler=no
12926 fi
12927 rm -f conftest.$ac_objext conftest.$ac_ext
12928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12929 echo "${ECHO_T}$ac_header_compiler" >&6
12930
12931 # Is the header present?
12932 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
12933 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
12934 cat >conftest.$ac_ext <<_ACEOF
12935 #line $LINENO "configure"
12936 #include "confdefs.h"
12937 #include <readline/history.h>
12938 _ACEOF
12939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12941   ac_status=$?
12942   egrep -v '^ *\+' conftest.er1 >conftest.err
12943   rm -f conftest.er1
12944   cat conftest.err >&5
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); } >/dev/null; then
12947   if test -s conftest.err; then
12948     ac_cpp_err=$ac_c_preproc_warn_flag
12949   else
12950     ac_cpp_err=
12951   fi
12952 else
12953   ac_cpp_err=yes
12954 fi
12955 if test -z "$ac_cpp_err"; then
12956   ac_header_preproc=yes
12957 else
12958   echo "$as_me: failed program was:" >&5
12959   cat conftest.$ac_ext >&5
12960   ac_header_preproc=no
12961 fi
12962 rm -f conftest.err conftest.$ac_ext
12963 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12964 echo "${ECHO_T}$ac_header_preproc" >&6
12965
12966 # So?  What about this header?
12967 case $ac_header_compiler:$ac_header_preproc in
12968   yes:no )
12969     { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
12970 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12971     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
12972 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
12973   no:yes )
12974     { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
12975 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
12976     { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
12977 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
12978     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
12979 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
12980 esac
12981 echo "$as_me:$LINENO: checking for readline/history.h" >&5
12982 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
12983 if test "${ac_cv_header_readline_history_h+set}" = set; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 else
12986   ac_cv_header_readline_history_h=$ac_header_preproc
12987 fi
12988 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
12989 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
12990
12991 fi
12992 if test $ac_cv_header_readline_history_h = yes; then
12993   echo "$as_me:$LINENO: checking for append_history in -lhistory" >&5
12994 echo $ECHO_N "checking for append_history in -lhistory... $ECHO_C" >&6
12995 if test "${ac_cv_lib_history_append_history+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   ac_check_lib_save_LIBS=$LIBS
12999 LIBS="-lhistory  $LIBS"
13000 cat >conftest.$ac_ext <<_ACEOF
13001 #line $LINENO "configure"
13002 #include "confdefs.h"
13003
13004 /* Override any gcc2 internal prototype to avoid an error.  */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 /* We use char because int might match the return type of a gcc2
13009    builtin and then its argument prototype would still apply.  */
13010 char append_history ();
13011 #ifdef F77_DUMMY_MAIN
13012 #  ifdef __cplusplus
13013      extern "C"
13014 #  endif
13015    int F77_DUMMY_MAIN() { return 1; }
13016 #endif
13017 int
13018 main ()
13019 {
13020 append_history ();
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext conftest$ac_exeext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13027   (eval $ac_link) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); } &&
13031          { ac_try='test -s conftest$ac_exeext'
13032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033   (eval $ac_try) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; }; then
13037   ac_cv_lib_history_append_history=yes
13038 else
13039   echo "$as_me: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13041 ac_cv_lib_history_append_history=no
13042 fi
13043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13045 fi
13046 echo "$as_me:$LINENO: result: $ac_cv_lib_history_append_history" >&5
13047 echo "${ECHO_T}$ac_cv_lib_history_append_history" >&6
13048 if test $ac_cv_lib_history_append_history = yes; then
13049
13050            RDL_LIBS="-lhistory"
13051            cat >>confdefs.h <<\_ACEOF
13052 #define HAVE_LIBHISTORY 1
13053 _ACEOF
13054
13055 fi
13056
13057 fi
13058
13059
13060     if test "${ac_cv_header_readline_readline_h+set}" = set; then
13061   echo "$as_me:$LINENO: checking for readline/readline.h" >&5
13062 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
13063 if test "${ac_cv_header_readline_readline_h+set}" = set; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 fi
13066 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
13067 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
13068 else
13069   # Is the header compilable?
13070 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
13071 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
13072 cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13074 #include "confdefs.h"
13075 $ac_includes_default
13076 #include <readline/readline.h>
13077 _ACEOF
13078 rm -f conftest.$ac_objext
13079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13080   (eval $ac_compile) 2>&5
13081   ac_status=$?
13082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083   (exit $ac_status); } &&
13084          { ac_try='test -s conftest.$ac_objext'
13085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086   (eval $ac_try) 2>&5
13087   ac_status=$?
13088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089   (exit $ac_status); }; }; then
13090   ac_header_compiler=yes
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 ac_header_compiler=no
13095 fi
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13098 echo "${ECHO_T}$ac_header_compiler" >&6
13099
13100 # Is the header present?
13101 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
13102 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
13103 cat >conftest.$ac_ext <<_ACEOF
13104 #line $LINENO "configure"
13105 #include "confdefs.h"
13106 #include <readline/readline.h>
13107 _ACEOF
13108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13110   ac_status=$?
13111   egrep -v '^ *\+' conftest.er1 >conftest.err
13112   rm -f conftest.er1
13113   cat conftest.err >&5
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); } >/dev/null; then
13116   if test -s conftest.err; then
13117     ac_cpp_err=$ac_c_preproc_warn_flag
13118   else
13119     ac_cpp_err=
13120   fi
13121 else
13122   ac_cpp_err=yes
13123 fi
13124 if test -z "$ac_cpp_err"; then
13125   ac_header_preproc=yes
13126 else
13127   echo "$as_me: failed program was:" >&5
13128   cat conftest.$ac_ext >&5
13129   ac_header_preproc=no
13130 fi
13131 rm -f conftest.err conftest.$ac_ext
13132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13133 echo "${ECHO_T}$ac_header_preproc" >&6
13134
13135 # So?  What about this header?
13136 case $ac_header_compiler:$ac_header_preproc in
13137   yes:no )
13138     { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13139 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13140     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;};;
13142   no:yes )
13143     { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
13144 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
13145     { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
13146 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
13147     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
13148 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;};;
13149 esac
13150 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
13151 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
13152 if test "${ac_cv_header_readline_readline_h+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   ac_cv_header_readline_readline_h=$ac_header_preproc
13156 fi
13157 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
13158 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
13159
13160 fi
13161 if test $ac_cv_header_readline_readline_h = yes; then
13162   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13163 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
13164 if test "${ac_cv_lib_readline_readline+set}" = set; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lreadline $tcap $LIBS"
13169 cat >conftest.$ac_ext <<_ACEOF
13170 #line $LINENO "configure"
13171 #include "confdefs.h"
13172
13173 /* Override any gcc2 internal prototype to avoid an error.  */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 /* We use char because int might match the return type of a gcc2
13178    builtin and then its argument prototype would still apply.  */
13179 char readline ();
13180 #ifdef F77_DUMMY_MAIN
13181 #  ifdef __cplusplus
13182      extern "C"
13183 #  endif
13184    int F77_DUMMY_MAIN() { return 1; }
13185 #endif
13186 int
13187 main ()
13188 {
13189 readline ();
13190   ;
13191   return 0;
13192 }
13193 _ACEOF
13194 rm -f conftest.$ac_objext conftest$ac_exeext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13196   (eval $ac_link) 2>&5
13197   ac_status=$?
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } &&
13200          { ac_try='test -s conftest$ac_exeext'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; }; then
13206   ac_cv_lib_readline_readline=yes
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13210 ac_cv_lib_readline_readline=no
13211 fi
13212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13213 LIBS=$ac_check_lib_save_LIBS
13214 fi
13215 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13216 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
13217 if test $ac_cv_lib_readline_readline = yes; then
13218
13219            RDL_LIBS="-lreadline $RDL_LIBS $tcap"
13220            cat >>confdefs.h <<\_ACEOF
13221 #define HAVE_LIBREADLINE 1
13222 _ACEOF
13223
13224 fi
13225
13226 fi
13227
13228
13229     if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
13230         CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
13231         RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
13232     else
13233         CPPFLAGS=${_cppflags}
13234     fi
13235     LDFLAGS=${_ldflags}
13236 fi
13237
13238
13239
13240
13241 # Check whether --with-ftp or --without-ftp was given.
13242 if test "${with_ftp+set}" = set; then
13243   withval="$with_ftp"
13244
13245 fi;
13246 if test "$with_ftp" = "no" ; then
13247     echo Disabling FTP support
13248     WITH_FTP=0
13249     FTP_OBJ=
13250 else
13251     WITH_FTP=1
13252     FTP_OBJ=nanoftp.o
13253 fi
13254
13255
13256
13257
13258 # Check whether --with-http or --without-http was given.
13259 if test "${with_http+set}" = set; then
13260   withval="$with_http"
13261
13262 fi;
13263 if test "$with_http" = "no" ; then
13264     echo Disabling HTTP support
13265     WITH_HTTP=0
13266     HTTP_OBJ=
13267 else
13268     WITH_HTTP=1
13269     HTTP_OBJ=nanohttp.o
13270 fi
13271
13272
13273
13274
13275 # Check whether --with-html or --without-html was given.
13276 if test "${with_html+set}" = set; then
13277   withval="$with_html"
13278
13279 fi;
13280 if test "$with_html" = "no" ; then
13281     echo Disabling HTML support
13282     WITH_HTML=0
13283     HTML_OBJ=
13284 else
13285     WITH_HTML=1
13286     HTML_OBJ="HTMLparser.o HTMLtree.o"
13287 fi
13288
13289
13290
13291
13292 # Check whether --with-catalog or --without-catalog was given.
13293 if test "${with_catalog+set}" = set; then
13294   withval="$with_catalog"
13295
13296 fi;
13297 if test "$with_catalog" = "no" ; then
13298     echo Disabling Catalog support
13299     WITH_CATALOG=0
13300     CATALOG_OBJ=
13301 else
13302     WITH_CATALOG=1
13303     CATALOG_OBJ="catalog.o"
13304 fi
13305
13306
13307
13308
13309 # Check whether --with-docbook or --without-docbook was given.
13310 if test "${with_docbook+set}" = set; then
13311   withval="$with_docbook"
13312
13313 fi;
13314 if test "$with_docbook" = "no" ; then
13315     echo Disabling Docbook support
13316     WITH_DOCB=0
13317     DOCB_OBJ=
13318 else
13319     WITH_DOCB=1
13320     DOCB_OBJ="DOCBparser.o"
13321 fi
13322
13323
13324
13325
13326
13327 # Check whether --with-xpath or --without-xpath was given.
13328 if test "${with_xpath+set}" = set; then
13329   withval="$with_xpath"
13330
13331 fi;
13332 if test "$with_xpath" = "no" ; then
13333     echo Disabling XPATH support
13334     with_xptr="no"
13335     with_c14n="no"
13336     with_xinclude="no"
13337     WITH_XPATH=0
13338     XPATH_OBJ=
13339 else
13340     WITH_XPATH=1
13341     XPATH_OBJ=xpath.o
13342 fi
13343
13344
13345
13346
13347 # Check whether --with-xptr or --without-xptr was given.
13348 if test "${with_xptr+set}" = set; then
13349   withval="$with_xptr"
13350
13351 fi;
13352 if test "$with_xptr" = "no" ; then
13353     echo Disabling XPointer support
13354     WITH_XPTR=0
13355     XPTR_OBJ=
13356 else
13357     WITH_XPTR=1
13358     XPTR_OBJ=xpointer.o
13359 fi
13360
13361
13362
13363
13364 # Check whether --with-c14n or --without-c14n was given.
13365 if test "${with_c14n+set}" = set; then
13366   withval="$with_c14n"
13367
13368 fi;
13369 if test "$with_c14n" = "no" ; then
13370     echo Disabling C14N support
13371     WITH_C14N=0
13372     C14N_OBJ=
13373 else
13374     WITH_C14N=1
13375     C14N_OBJ="c14n.c"
13376 fi
13377
13378
13379
13380
13381 # Check whether --with-xinclude or --without-xinclude was given.
13382 if test "${with_xinclude+set}" = set; then
13383   withval="$with_xinclude"
13384
13385 fi;
13386 if test "$with_xinclude" = "no" ; then
13387     echo Disabling XInclude support
13388     WITH_XINCLUDE=0
13389     XINCLUDE_OBJ=
13390     with_xinclude="no"
13391 else
13392     WITH_XINCLUDE=1
13393     XINCLUDE_OBJ=xinclude.o
13394 fi
13395
13396
13397
13398 WITH_ICONV=0
13399
13400 # Check whether --with-iconv or --without-iconv was given.
13401 if test "${with_iconv+set}" = set; then
13402   withval="$with_iconv"
13403
13404 fi;
13405 if test "$with_iconv" = "no" ; then
13406     echo Disabling ICONV support
13407 else
13408     if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
13409         CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
13410         # Export this since our headers include iconv.h
13411         XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
13412         ICONV_LIBS="-L$with_iconv/lib"
13413     fi
13414
13415     if test "${ac_cv_header_iconv_h+set}" = set; then
13416   echo "$as_me:$LINENO: checking for iconv.h" >&5
13417 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13418 if test "${ac_cv_header_iconv_h+set}" = set; then
13419   echo $ECHO_N "(cached) $ECHO_C" >&6
13420 fi
13421 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13422 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13423 else
13424   # Is the header compilable?
13425 echo "$as_me:$LINENO: checking iconv.h usability" >&5
13426 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
13427 cat >conftest.$ac_ext <<_ACEOF
13428 #line $LINENO "configure"
13429 #include "confdefs.h"
13430 $ac_includes_default
13431 #include <iconv.h>
13432 _ACEOF
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435   (eval $ac_compile) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_header_compiler=yes
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 cat conftest.$ac_ext >&5
13449 ac_header_compiler=no
13450 fi
13451 rm -f conftest.$ac_objext conftest.$ac_ext
13452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6
13454
13455 # Is the header present?
13456 echo "$as_me:$LINENO: checking iconv.h presence" >&5
13457 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
13458 cat >conftest.$ac_ext <<_ACEOF
13459 #line $LINENO "configure"
13460 #include "confdefs.h"
13461 #include <iconv.h>
13462 _ACEOF
13463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13465   ac_status=$?
13466   egrep -v '^ *\+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } >/dev/null; then
13471   if test -s conftest.err; then
13472     ac_cpp_err=$ac_c_preproc_warn_flag
13473   else
13474     ac_cpp_err=
13475   fi
13476 else
13477   ac_cpp_err=yes
13478 fi
13479 if test -z "$ac_cpp_err"; then
13480   ac_header_preproc=yes
13481 else
13482   echo "$as_me: failed program was:" >&5
13483   cat conftest.$ac_ext >&5
13484   ac_header_preproc=no
13485 fi
13486 rm -f conftest.err conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13488 echo "${ECHO_T}$ac_header_preproc" >&6
13489
13490 # So?  What about this header?
13491 case $ac_header_compiler:$ac_header_preproc in
13492   yes:no )
13493     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
13494 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13495     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13496 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
13497   no:yes )
13498     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
13499 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
13500     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
13501 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
13502     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
13503 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
13504 esac
13505 echo "$as_me:$LINENO: checking for iconv.h" >&5
13506 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
13507 if test "${ac_cv_header_iconv_h+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   ac_cv_header_iconv_h=$ac_header_preproc
13511 fi
13512 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
13513 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
13514
13515 fi
13516 if test $ac_cv_header_iconv_h = yes; then
13517   echo "$as_me:$LINENO: checking for iconv" >&5
13518 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
13519         cat >conftest.$ac_ext <<_ACEOF
13520 #line $LINENO "configure"
13521 #include "confdefs.h"
13522 #include <stdlib.h>
13523 #include <iconv.h>
13524 #ifdef F77_DUMMY_MAIN
13525 #  ifdef __cplusplus
13526      extern "C"
13527 #  endif
13528    int F77_DUMMY_MAIN() { return 1; }
13529 #endif
13530 int
13531 main ()
13532 {
13533
13534 iconv_t cd = iconv_open ("","");
13535 iconv (cd, NULL, NULL, NULL, NULL);
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext conftest$ac_exeext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13542   (eval $ac_link) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); } &&
13546          { ac_try='test -s conftest$ac_exeext'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; }; then
13552
13553             echo "$as_me:$LINENO: result: yes" >&5
13554 echo "${ECHO_T}yes" >&6
13555             WITH_ICONV=1
13556 else
13557   echo "$as_me: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13559
13560             echo "$as_me:$LINENO: result: no" >&5
13561 echo "${ECHO_T}no" >&6
13562             echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
13563 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
13564
13565             _ldflags="${LDFLAGS}"
13566             _libs="${LIBS}"
13567             LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
13568             LIBS="${LIBS} -liconv"
13569
13570             cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 #include "confdefs.h"
13573 #include <stdlib.h>
13574 #include <iconv.h>
13575 #ifdef F77_DUMMY_MAIN
13576 #  ifdef __cplusplus
13577      extern "C"
13578 #  endif
13579    int F77_DUMMY_MAIN() { return 1; }
13580 #endif
13581 int
13582 main ()
13583 {
13584
13585 iconv_t cd = iconv_open ("","");
13586 iconv (cd, NULL, NULL, NULL, NULL);
13587   ;
13588   return 0;
13589 }
13590 _ACEOF
13591 rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13593   (eval $ac_link) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); } &&
13597          { ac_try='test -s conftest$ac_exeext'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; }; then
13603
13604                 echo "$as_me:$LINENO: result: yes" >&5
13605 echo "${ECHO_T}yes" >&6
13606                 WITH_ICONV=1
13607                 ICONV_LIBS="${ICONV_LIBS} -liconv"
13608                 LIBS="${_libs}"
13609                 LDFLAGS="${_ldflags}"
13610 else
13611   echo "$as_me: failed program was:" >&5
13612 cat conftest.$ac_ext >&5
13613
13614                 echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6
13616                 LIBS="${_libs}"
13617                 LDFLAGS="${_ldflags}"
13618 fi
13619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13620 fi
13621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13622 fi
13623
13624
13625 fi
13626 M_LIBS="-lm"
13627 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
13628
13629
13630
13631 # Check whether --with-schemas or --without-schemas was given.
13632 if test "${with_schemas+set}" = set; then
13633   withval="$with_schemas"
13634
13635 fi;
13636 if test "$with_schemas" = "no" ; then
13637     echo "Disabled Schemas/Relax-NG support"
13638     WITH_SCHEMAS=0
13639     TEST_SCHEMAS=
13640 else
13641     echo "Enabled Schemas/Relax-NG support"
13642     WITH_SCHEMAS=1
13643     TEST_SCHEMAS="Schemastests Relaxtests"
13644     with_regexps=yes
13645 fi
13646
13647
13648
13649
13650 # Check whether --with-regexps or --without-regexps was given.
13651 if test "${with_regexps+set}" = set; then
13652   withval="$with_regexps"
13653
13654 fi;
13655 if test "$with_regexps" = "no" ; then
13656     echo Disabling Regexps support
13657     WITH_REGEXPS=0
13658     TEST_REGEXPS=
13659 else
13660     WITH_REGEXPS=1
13661     TEST_REGEXPS="Regexptests Automatatests"
13662 fi
13663
13664
13665
13666
13667 # Check whether --with-debug or --without-debug was given.
13668 if test "${with_debug+set}" = set; then
13669   withval="$with_debug"
13670
13671 fi;
13672 if test "$with_debug" = "no" ; then
13673     echo Disabling DEBUG support
13674     WITH_DEBUG=0
13675     DEBUG_OBJ=
13676 else
13677     WITH_DEBUG=1
13678     DEBUG_OBJ=debugXML.o
13679 fi
13680
13681
13682
13683
13684 # Check whether --with-mem_debug or --without-mem_debug was given.
13685 if test "${with_mem_debug+set}" = set; then
13686   withval="$with_mem_debug"
13687
13688 fi;
13689 if test "$with_mem_debug" = "yes" ; then
13690     echo Enabling memory debug support
13691     WITH_MEM_DEBUG=1
13692 else
13693     WITH_MEM_DEBUG=0
13694 fi
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715 RELDATE=`date +'%a %b %e %Y'`
13716
13717
13718 rm -f COPYING.LIB COPYING
13719 ln -s Copyright COPYING
13720
13721 ac_config_files="$ac_config_files libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py"
13722 cat >confcache <<\_ACEOF
13723 # This file is a shell script that caches the results of configure
13724 # tests run on this system so they can be shared between configure
13725 # scripts and configure runs, see configure's option --config-cache.
13726 # It is not useful on other systems.  If it contains results you don't
13727 # want to keep, you may remove or edit it.
13728 #
13729 # config.status only pays attention to the cache file if you give it
13730 # the --recheck option to rerun configure.
13731 #
13732 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13734 # following values.
13735
13736 _ACEOF
13737
13738 # The following way of writing the cache mishandles newlines in values,
13739 # but we know of no workaround that is simple, portable, and efficient.
13740 # So, don't put newlines in cache variables' values.
13741 # Ultrix sh set writes to stderr and can't be redirected directly,
13742 # and sets the high bit in the cache file unless we assign to the vars.
13743 {
13744   (set) 2>&1 |
13745     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13746     *ac_space=\ *)
13747       # `set' does not quote correctly, so add quotes (double-quote
13748       # substitution turns \\\\ into \\, and sed turns \\ into \).
13749       sed -n \
13750         "s/'/'\\\\''/g;
13751           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13752       ;;
13753     *)
13754       # `set' quotes correctly as required by POSIX, so do not add quotes.
13755       sed -n \
13756         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13757       ;;
13758     esac;
13759 } |
13760   sed '
13761      t clear
13762      : clear
13763      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13764      t end
13765      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13766      : end' >>confcache
13767 if cmp -s $cache_file confcache; then :; else
13768   if test -w $cache_file; then
13769     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13770     cat confcache >$cache_file
13771   else
13772     echo "not updating unwritable cache $cache_file"
13773   fi
13774 fi
13775 rm -f confcache
13776
13777 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13778 # Let make expand exec_prefix.
13779 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13780
13781 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13782 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13783 # trailing colons and then remove the whole line if VPATH becomes empty
13784 # (actually we leave an empty line to preserve line numbers).
13785 if test "x$srcdir" = x.; then
13786   ac_vpsub='/^[         ]*VPATH[        ]*=/{
13787 s/:*\$(srcdir):*/:/;
13788 s/:*\${srcdir}:*/:/;
13789 s/:*@srcdir@:*/:/;
13790 s/^\([^=]*=[    ]*\):*/\1/;
13791 s/:*$//;
13792 s/^[^=]*=[      ]*$//;
13793 }'
13794 fi
13795
13796 DEFS=-DHAVE_CONFIG_H
13797
13798
13799 : ${CONFIG_STATUS=./config.status}
13800 ac_clean_files_save=$ac_clean_files
13801 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13802 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13803 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13804 cat >$CONFIG_STATUS <<_ACEOF
13805 #! $SHELL
13806 # Generated by $as_me.
13807 # Run this file to recreate the current configuration.
13808 # Compiler output produced by configure, useful for debugging
13809 # configure, is in config.log if it exists.
13810
13811 debug=false
13812 SHELL=\${CONFIG_SHELL-$SHELL}
13813 _ACEOF
13814
13815 cat >>$CONFIG_STATUS <<\_ACEOF
13816
13817 ## --------------------- ##
13818 ## M4sh Initialization.  ##
13819 ## --------------------- ##
13820
13821 # Be Bourne compatible
13822 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13823   emulate sh
13824   NULLCMD=:
13825 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13826   set -o posix
13827 fi
13828
13829 # NLS nuisances.
13830 # Support unset when possible.
13831 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13832   as_unset=unset
13833 else
13834   as_unset=false
13835 fi
13836
13837 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
13838     { $as_unset LANG || test "${LANG+set}" != set; } ||
13839       { LANG=C; export LANG; }
13840 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
13841     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
13842       { LC_ALL=C; export LC_ALL; }
13843 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
13844     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
13845       { LC_TIME=C; export LC_TIME; }
13846 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
13847     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
13848       { LC_CTYPE=C; export LC_CTYPE; }
13849 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
13850     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
13851       { LANGUAGE=C; export LANGUAGE; }
13852 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
13853     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
13854       { LC_COLLATE=C; export LC_COLLATE; }
13855 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
13856     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
13857       { LC_NUMERIC=C; export LC_NUMERIC; }
13858 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
13859     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
13860       { LC_MESSAGES=C; export LC_MESSAGES; }
13861
13862
13863 # Name of the executable.
13864 as_me=`(basename "$0") 2>/dev/null ||
13865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13866          X"$0" : 'X\(//\)$' \| \
13867          X"$0" : 'X\(/\)$' \| \
13868          .     : '\(.\)' 2>/dev/null ||
13869 echo X/"$0" |
13870     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13871           /^X\/\(\/\/\)$/{ s//\1/; q; }
13872           /^X\/\(\/\).*/{ s//\1/; q; }
13873           s/.*/./; q'`
13874
13875 # PATH needs CR, and LINENO needs CR and PATH.
13876 # Avoid depending upon Character Ranges.
13877 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13878 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13879 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13880 as_cr_digits='0123456789'
13881 as_cr_alnum=$as_cr_Letters$as_cr_digits
13882
13883 # The user is always right.
13884 if test "${PATH_SEPARATOR+set}" != set; then
13885   echo "#! /bin/sh" >conftest.sh
13886   echo  "exit 0"   >>conftest.sh
13887   chmod +x conftest.sh
13888   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
13889     PATH_SEPARATOR=';'
13890   else
13891     PATH_SEPARATOR=:
13892   fi
13893   rm -f conftest.sh
13894 fi
13895
13896
13897   as_lineno_1=$LINENO
13898   as_lineno_2=$LINENO
13899   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13900   test "x$as_lineno_1" != "x$as_lineno_2" &&
13901   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13902   # Find who we are.  Look in the path if we contain no path at all
13903   # relative or not.
13904   case $0 in
13905     *[\\/]* ) as_myself=$0 ;;
13906     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907 for as_dir in $PATH
13908 do
13909   IFS=$as_save_IFS
13910   test -z "$as_dir" && as_dir=.
13911   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13912 done
13913
13914        ;;
13915   esac
13916   # We did not find ourselves, most probably we were run as `sh COMMAND'
13917   # in which case we are not to be found in the path.
13918   if test "x$as_myself" = x; then
13919     as_myself=$0
13920   fi
13921   if test ! -f "$as_myself"; then
13922     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13923 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13924    { (exit 1); exit 1; }; }
13925   fi
13926   case $CONFIG_SHELL in
13927   '')
13928     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13929 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13930 do
13931   IFS=$as_save_IFS
13932   test -z "$as_dir" && as_dir=.
13933   for as_base in sh bash ksh sh5; do
13934          case $as_dir in
13935          /*)
13936            if ("$as_dir/$as_base" -c '
13937   as_lineno_1=$LINENO
13938   as_lineno_2=$LINENO
13939   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13940   test "x$as_lineno_1" != "x$as_lineno_2" &&
13941   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13942              CONFIG_SHELL=$as_dir/$as_base
13943              export CONFIG_SHELL
13944              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13945            fi;;
13946          esac
13947        done
13948 done
13949 ;;
13950   esac
13951
13952   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13953   # uniformly replaced by the line number.  The first 'sed' inserts a
13954   # line-number line before each line; the second 'sed' does the real
13955   # work.  The second script uses 'N' to pair each line-number line
13956   # with the numbered line, and appends trailing '-' during
13957   # substitution so that $LINENO is not a special case at line end.
13958   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13959   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13960   sed '=' <$as_myself |
13961     sed '
13962       N
13963       s,$,-,
13964       : loop
13965       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13966       t loop
13967       s,-$,,
13968       s,^['$as_cr_digits']*\n,,
13969     ' >$as_me.lineno &&
13970   chmod +x $as_me.lineno ||
13971     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13972 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13973    { (exit 1); exit 1; }; }
13974
13975   # Don't try to exec as it changes $[0], causing all sort of problems
13976   # (the dirname of $[0] is not the place where we might find the
13977   # original and so on.  Autoconf is especially sensible to this).
13978   . ./$as_me.lineno
13979   # Exit status is that of the last command.
13980   exit
13981 }
13982
13983
13984 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13985   *c*,-n*) ECHO_N= ECHO_C='
13986 ' ECHO_T='      ' ;;
13987   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13988   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13989 esac
13990
13991 if expr a : '\(a\)' >/dev/null 2>&1; then
13992   as_expr=expr
13993 else
13994   as_expr=false
13995 fi
13996
13997 rm -f conf$$ conf$$.exe conf$$.file
13998 echo >conf$$.file
13999 if ln -s conf$$.file conf$$ 2>/dev/null; then
14000   # We could just check for DJGPP; but this test a) works b) is more generic
14001   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14002   if test -f conf$$.exe; then
14003     # Don't use ln at all; we don't have any links
14004     as_ln_s='cp -p'
14005   else
14006     as_ln_s='ln -s'
14007   fi
14008 elif ln conf$$.file conf$$ 2>/dev/null; then
14009   as_ln_s=ln
14010 else
14011   as_ln_s='cp -p'
14012 fi
14013 rm -f conf$$ conf$$.exe conf$$.file
14014
14015 as_executable_p="test -f"
14016
14017 # Sed expression to map a string onto a valid CPP name.
14018 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14019
14020 # Sed expression to map a string onto a valid variable name.
14021 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14022
14023
14024 # IFS
14025 # We need space, tab and new line, in precisely that order.
14026 as_nl='
14027 '
14028 IFS="   $as_nl"
14029
14030 # CDPATH.
14031 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
14032
14033 exec 6>&1
14034
14035 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14036 # report actual input values of CONFIG_FILES etc. instead of their
14037 # values after options handling.  Logging --version etc. is OK.
14038 exec 5>>config.log
14039 {
14040   echo
14041   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14042 ## Running $as_me. ##
14043 _ASBOX
14044 } >&5
14045 cat >&5 <<_CSEOF
14046
14047 This file was extended by $as_me, which was
14048 generated by GNU Autoconf 2.53.  Invocation command line was
14049
14050   CONFIG_FILES    = $CONFIG_FILES
14051   CONFIG_HEADERS  = $CONFIG_HEADERS
14052   CONFIG_LINKS    = $CONFIG_LINKS
14053   CONFIG_COMMANDS = $CONFIG_COMMANDS
14054   $ $0 $@
14055
14056 _CSEOF
14057 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14058 echo >&5
14059 _ACEOF
14060
14061 # Files that config.status was made for.
14062 if test -n "$ac_config_files"; then
14063   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14064 fi
14065
14066 if test -n "$ac_config_headers"; then
14067   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14068 fi
14069
14070 if test -n "$ac_config_links"; then
14071   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14072 fi
14073
14074 if test -n "$ac_config_commands"; then
14075   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14076 fi
14077
14078 cat >>$CONFIG_STATUS <<\_ACEOF
14079
14080 ac_cs_usage="\
14081 \`$as_me' instantiates files from templates according to the
14082 current configuration.
14083
14084 Usage: $0 [OPTIONS] [FILE]...
14085
14086   -h, --help       print this help, then exit
14087   -V, --version    print version number, then exit
14088   -d, --debug      don't remove temporary files
14089       --recheck    update $as_me by reconfiguring in the same conditions
14090   --file=FILE[:TEMPLATE]
14091                    instantiate the configuration file FILE
14092   --header=FILE[:TEMPLATE]
14093                    instantiate the configuration header FILE
14094
14095 Configuration files:
14096 $config_files
14097
14098 Configuration headers:
14099 $config_headers
14100
14101 Configuration commands:
14102 $config_commands
14103
14104 Report bugs to <bug-autoconf@gnu.org>."
14105 _ACEOF
14106
14107 cat >>$CONFIG_STATUS <<_ACEOF
14108 ac_cs_version="\\
14109 config.status
14110 configured by $0, generated by GNU Autoconf 2.53,
14111   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14112
14113 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14114 Free Software Foundation, Inc.
14115 This config.status script is free software; the Free Software Foundation
14116 gives unlimited permission to copy, distribute and modify it."
14117 srcdir=$srcdir
14118 INSTALL="$INSTALL"
14119 _ACEOF
14120
14121 cat >>$CONFIG_STATUS <<\_ACEOF
14122 # If no file are specified by the user, then we need to provide default
14123 # value.  By we need to know if files were specified by the user.
14124 ac_need_defaults=:
14125 while test $# != 0
14126 do
14127   case $1 in
14128   --*=*)
14129     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14130     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14131     shift
14132     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14133     shift
14134     ;;
14135   -*);;
14136   *) # This is not an option, so the user has probably given explicit
14137      # arguments.
14138      ac_need_defaults=false;;
14139   esac
14140
14141   case $1 in
14142   # Handling of the options.
14143 _ACEOF
14144 cat >>$CONFIG_STATUS <<_ACEOF
14145   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14146     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14147     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14148 _ACEOF
14149 cat >>$CONFIG_STATUS <<\_ACEOF
14150   --version | --vers* | -V )
14151     echo "$ac_cs_version"; exit 0 ;;
14152   --he | --h)
14153     # Conflict between --help and --header
14154     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14155 Try \`$0 --help' for more information." >&5
14156 echo "$as_me: error: ambiguous option: $1
14157 Try \`$0 --help' for more information." >&2;}
14158    { (exit 1); exit 1; }; };;
14159   --help | --hel | -h )
14160     echo "$ac_cs_usage"; exit 0 ;;
14161   --debug | --d* | -d )
14162     debug=: ;;
14163   --file | --fil | --fi | --f )
14164     shift
14165     CONFIG_FILES="$CONFIG_FILES $1"
14166     ac_need_defaults=false;;
14167   --header | --heade | --head | --hea )
14168     shift
14169     CONFIG_HEADERS="$CONFIG_HEADERS $1"
14170     ac_need_defaults=false;;
14171
14172   # This is an error.
14173   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14174 Try \`$0 --help' for more information." >&5
14175 echo "$as_me: error: unrecognized option: $1
14176 Try \`$0 --help' for more information." >&2;}
14177    { (exit 1); exit 1; }; } ;;
14178
14179   *) ac_config_targets="$ac_config_targets $1" ;;
14180
14181   esac
14182   shift
14183 done
14184
14185 _ACEOF
14186
14187 cat >>$CONFIG_STATUS <<_ACEOF
14188 #
14189 # INIT-COMMANDS section.
14190 #
14191
14192
14193
14194 _ACEOF
14195
14196
14197
14198 cat >>$CONFIG_STATUS <<\_ACEOF
14199 for ac_config_target in $ac_config_targets
14200 do
14201   case "$ac_config_target" in
14202   # Handling of arguments.
14203   "libxml.spec" ) CONFIG_FILES="$CONFIG_FILES libxml.spec" ;;
14204   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14205   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14206   "include/libxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/libxml/Makefile" ;;
14207   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14208   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
14209   "python/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14210   "python/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
14211   "include/libxml/xmlversion.h" ) CONFIG_FILES="$CONFIG_FILES include/libxml/xmlversion.h" ;;
14212   "xml2-config" ) CONFIG_FILES="$CONFIG_FILES xml2-config" ;;
14213   "libxml-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES libxml-2.0.pc" ;;
14214   "xml2Conf.sh" ) CONFIG_FILES="$CONFIG_FILES xml2Conf.sh" ;;
14215   "python/setup.py" ) CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
14216   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14217   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14218   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14219 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14220    { (exit 1); exit 1; }; };;
14221   esac
14222 done
14223
14224 # If the user did not use the arguments to specify the items to instantiate,
14225 # then the envvar interface is used.  Set only those that are not.
14226 # We use the long form for the default assignment because of an extremely
14227 # bizarre bug on SunOS 4.1.3.
14228 if $ac_need_defaults; then
14229   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14230   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14231   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14232 fi
14233
14234 # Create a temporary directory, and hook for its removal unless debugging.
14235 $debug ||
14236 {
14237   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14238   trap '{ (exit 1); exit 1; }' 1 2 13 15
14239 }
14240
14241 # Create a (secure) tmp directory for tmp files.
14242 : ${TMPDIR=/tmp}
14243 {
14244   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14245   test -n "$tmp" && test -d "$tmp"
14246 }  ||
14247 {
14248   tmp=$TMPDIR/cs$$-$RANDOM
14249   (umask 077 && mkdir $tmp)
14250 } ||
14251 {
14252    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
14253    { (exit 1); exit 1; }
14254 }
14255
14256 _ACEOF
14257
14258 cat >>$CONFIG_STATUS <<_ACEOF
14259
14260 #
14261 # CONFIG_FILES section.
14262 #
14263
14264 # No need to generate the scripts if there are no CONFIG_FILES.
14265 # This happens for instance when ./config.status config.h
14266 if test -n "\$CONFIG_FILES"; then
14267   # Protect against being on the right side of a sed subst in config.status.
14268   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14269    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14270 s,@SHELL@,$SHELL,;t t
14271 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14272 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14273 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14274 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14275 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14276 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14277 s,@exec_prefix@,$exec_prefix,;t t
14278 s,@prefix@,$prefix,;t t
14279 s,@program_transform_name@,$program_transform_name,;t t
14280 s,@bindir@,$bindir,;t t
14281 s,@sbindir@,$sbindir,;t t
14282 s,@libexecdir@,$libexecdir,;t t
14283 s,@datadir@,$datadir,;t t
14284 s,@sysconfdir@,$sysconfdir,;t t
14285 s,@sharedstatedir@,$sharedstatedir,;t t
14286 s,@localstatedir@,$localstatedir,;t t
14287 s,@libdir@,$libdir,;t t
14288 s,@includedir@,$includedir,;t t
14289 s,@oldincludedir@,$oldincludedir,;t t
14290 s,@infodir@,$infodir,;t t
14291 s,@mandir@,$mandir,;t t
14292 s,@build_alias@,$build_alias,;t t
14293 s,@host_alias@,$host_alias,;t t
14294 s,@target_alias@,$target_alias,;t t
14295 s,@DEFS@,$DEFS,;t t
14296 s,@ECHO_C@,$ECHO_C,;t t
14297 s,@ECHO_N@,$ECHO_N,;t t
14298 s,@ECHO_T@,$ECHO_T,;t t
14299 s,@LIBS@,$LIBS,;t t
14300 s,@build@,$build,;t t
14301 s,@build_cpu@,$build_cpu,;t t
14302 s,@build_vendor@,$build_vendor,;t t
14303 s,@build_os@,$build_os,;t t
14304 s,@host@,$host,;t t
14305 s,@host_cpu@,$host_cpu,;t t
14306 s,@host_vendor@,$host_vendor,;t t
14307 s,@host_os@,$host_os,;t t
14308 s,@LIBXML_MAJOR_VERSION@,$LIBXML_MAJOR_VERSION,;t t
14309 s,@LIBXML_MINOR_VERSION@,$LIBXML_MINOR_VERSION,;t t
14310 s,@LIBXML_MICRO_VERSION@,$LIBXML_MICRO_VERSION,;t t
14311 s,@LIBXML_VERSION@,$LIBXML_VERSION,;t t
14312 s,@LIBXML_VERSION_INFO@,$LIBXML_VERSION_INFO,;t t
14313 s,@LIBXML_VERSION_NUMBER@,$LIBXML_VERSION_NUMBER,;t t
14314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14317 s,@PACKAGE@,$PACKAGE,;t t
14318 s,@VERSION@,$VERSION,;t t
14319 s,@ACLOCAL@,$ACLOCAL,;t t
14320 s,@AUTOCONF@,$AUTOCONF,;t t
14321 s,@AUTOMAKE@,$AUTOMAKE,;t t
14322 s,@AUTOHEADER@,$AUTOHEADER,;t t
14323 s,@MAKEINFO@,$MAKEINFO,;t t
14324 s,@SET_MAKE@,$SET_MAKE,;t t
14325 s,@CC@,$CC,;t t
14326 s,@CFLAGS@,$CFLAGS,;t t
14327 s,@LDFLAGS@,$LDFLAGS,;t t
14328 s,@CPPFLAGS@,$CPPFLAGS,;t t
14329 s,@ac_ct_CC@,$ac_ct_CC,;t t
14330 s,@EXEEXT@,$EXEEXT,;t t
14331 s,@OBJEXT@,$OBJEXT,;t t
14332 s,@CPP@,$CPP,;t t
14333 s,@RM@,$RM,;t t
14334 s,@MV@,$MV,;t t
14335 s,@TAR@,$TAR,;t t
14336 s,@U@,$U,;t t
14337 s,@ANSI2KNR@,$ANSI2KNR,;t t
14338 s,@LN_S@,$LN_S,;t t
14339 s,@ECHO@,$ECHO,;t t
14340 s,@RANLIB@,$RANLIB,;t t
14341 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14342 s,@STRIP@,$STRIP,;t t
14343 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14344 s,@LIBTOOL@,$LIBTOOL,;t t
14345 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14346 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14347 s,@MAINT@,$MAINT,;t t
14348 s,@Z_CFLAGS@,$Z_CFLAGS,;t t
14349 s,@Z_LIBS@,$Z_LIBS,;t t
14350 s,@HTML_DIR@,$HTML_DIR,;t t
14351 s,@PYTHON@,$PYTHON,;t t
14352 s,@WITH_PYTHON_TRUE@,$WITH_PYTHON_TRUE,;t t
14353 s,@WITH_PYTHON_FALSE@,$WITH_PYTHON_FALSE,;t t
14354 s,@PYTHON_SUBDIR@,$PYTHON_SUBDIR,;t t
14355 s,@STATIC_BINARIES@,$STATIC_BINARIES,;t t
14356 s,@WITH_TRIO_SOURCES_TRUE@,$WITH_TRIO_SOURCES_TRUE,;t t
14357 s,@WITH_TRIO_SOURCES_FALSE@,$WITH_TRIO_SOURCES_FALSE,;t t
14358 s,@WITH_TRIO@,$WITH_TRIO,;t t
14359 s,@THREAD_LIBS@,$THREAD_LIBS,;t t
14360 s,@WITH_THREADS@,$WITH_THREADS,;t t
14361 s,@THREAD_CFLAGS@,$THREAD_CFLAGS,;t t
14362 s,@TEST_THREADS@,$TEST_THREADS,;t t
14363 s,@WITH_FTP@,$WITH_FTP,;t t
14364 s,@FTP_OBJ@,$FTP_OBJ,;t t
14365 s,@WITH_HTTP@,$WITH_HTTP,;t t
14366 s,@HTTP_OBJ@,$HTTP_OBJ,;t t
14367 s,@WITH_HTML@,$WITH_HTML,;t t
14368 s,@HTML_OBJ@,$HTML_OBJ,;t t
14369 s,@WITH_CATALOG@,$WITH_CATALOG,;t t
14370 s,@CATALOG_OBJ@,$CATALOG_OBJ,;t t
14371 s,@WITH_DOCB@,$WITH_DOCB,;t t
14372 s,@DOCB_OBJ@,$DOCB_OBJ,;t t
14373 s,@WITH_XPATH@,$WITH_XPATH,;t t
14374 s,@XPATH_OBJ@,$XPATH_OBJ,;t t
14375 s,@WITH_XPTR@,$WITH_XPTR,;t t
14376 s,@XPTR_OBJ@,$XPTR_OBJ,;t t
14377 s,@WITH_C14N@,$WITH_C14N,;t t
14378 s,@C14N_OBJ@,$C14N_OBJ,;t t
14379 s,@WITH_XINCLUDE@,$WITH_XINCLUDE,;t t
14380 s,@XINCLUDE_OBJ@,$XINCLUDE_OBJ,;t t
14381 s,@WITH_ICONV@,$WITH_ICONV,;t t
14382 s,@WITH_SCHEMAS@,$WITH_SCHEMAS,;t t
14383 s,@TEST_SCHEMAS@,$TEST_SCHEMAS,;t t
14384 s,@WITH_REGEXPS@,$WITH_REGEXPS,;t t
14385 s,@TEST_REGEXPS@,$TEST_REGEXPS,;t t
14386 s,@WITH_DEBUG@,$WITH_DEBUG,;t t
14387 s,@DEBUG_OBJ@,$DEBUG_OBJ,;t t
14388 s,@WITH_MEM_DEBUG@,$WITH_MEM_DEBUG,;t t
14389 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
14390 s,@XML_LIBDIR@,$XML_LIBDIR,;t t
14391 s,@XML_LIBS@,$XML_LIBS,;t t
14392 s,@ICONV_LIBS@,$ICONV_LIBS,;t t
14393 s,@XML_INCLUDEDIR@,$XML_INCLUDEDIR,;t t
14394 s,@HAVE_ISNAN@,$HAVE_ISNAN,;t t
14395 s,@HAVE_ISINF@,$HAVE_ISINF,;t t
14396 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
14397 s,@PYTHON_INCLUDES@,$PYTHON_INCLUDES,;t t
14398 s,@PYTHON_SITE_PACKAGES@,$PYTHON_SITE_PACKAGES,;t t
14399 s,@M_LIBS@,$M_LIBS,;t t
14400 s,@RDL_LIBS@,$RDL_LIBS,;t t
14401 s,@RELDATE@,$RELDATE,;t t
14402 CEOF
14403
14404 _ACEOF
14405
14406   cat >>$CONFIG_STATUS <<\_ACEOF
14407   # Split the substitutions into bite-sized pieces for seds with
14408   # small command number limits, like on Digital OSF/1 and HP-UX.
14409   ac_max_sed_lines=48
14410   ac_sed_frag=1 # Number of current file.
14411   ac_beg=1 # First line for current file.
14412   ac_end=$ac_max_sed_lines # Line after last line for current file.
14413   ac_more_lines=:
14414   ac_sed_cmds=
14415   while $ac_more_lines; do
14416     if test $ac_beg -gt 1; then
14417       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14418     else
14419       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14420     fi
14421     if test ! -s $tmp/subs.frag; then
14422       ac_more_lines=false
14423     else
14424       # The purpose of the label and of the branching condition is to
14425       # speed up the sed processing (if there are no `@' at all, there
14426       # is no need to browse any of the substitutions).
14427       # These are the two extra sed commands mentioned above.
14428       (echo ':t
14429   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14430       if test -z "$ac_sed_cmds"; then
14431         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14432       else
14433         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14434       fi
14435       ac_sed_frag=`expr $ac_sed_frag + 1`
14436       ac_beg=$ac_end
14437       ac_end=`expr $ac_end + $ac_max_sed_lines`
14438     fi
14439   done
14440   if test -z "$ac_sed_cmds"; then
14441     ac_sed_cmds=cat
14442   fi
14443 fi # test -n "$CONFIG_FILES"
14444
14445 _ACEOF
14446 cat >>$CONFIG_STATUS <<\_ACEOF
14447 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14448   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14449   case $ac_file in
14450   - | *:- | *:-:* ) # input from stdin
14451         cat >$tmp/stdin
14452         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14453         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14454   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14455         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14456   * )   ac_file_in=$ac_file.in ;;
14457   esac
14458
14459   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14460   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14461 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14462          X"$ac_file" : 'X\(//\)[^/]' \| \
14463          X"$ac_file" : 'X\(//\)$' \| \
14464          X"$ac_file" : 'X\(/\)' \| \
14465          .     : '\(.\)' 2>/dev/null ||
14466 echo X"$ac_file" |
14467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14469           /^X\(\/\/\)$/{ s//\1/; q; }
14470           /^X\(\/\).*/{ s//\1/; q; }
14471           s/.*/./; q'`
14472   { case "$ac_dir" in
14473   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14474   *)                      as_incr_dir=.;;
14475 esac
14476 as_dummy="$ac_dir"
14477 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14478   case $as_mkdir_dir in
14479     # Skip DOS drivespec
14480     ?:) as_incr_dir=$as_mkdir_dir ;;
14481     *)
14482       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14483       test -d "$as_incr_dir" ||
14484         mkdir "$as_incr_dir" ||
14485         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14486 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14487    { (exit 1); exit 1; }; }
14488     ;;
14489   esac
14490 done; }
14491
14492   ac_builddir=.
14493
14494 if test "$ac_dir" != .; then
14495   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14496   # A "../" for each directory in $ac_dir_suffix.
14497   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14498 else
14499   ac_dir_suffix= ac_top_builddir=
14500 fi
14501
14502 case $srcdir in
14503   .)  # No --srcdir option.  We are building in place.
14504     ac_srcdir=.
14505     if test -z "$ac_top_builddir"; then
14506        ac_top_srcdir=.
14507     else
14508        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14509     fi ;;
14510   [\\/]* | ?:[\\/]* )  # Absolute path.
14511     ac_srcdir=$srcdir$ac_dir_suffix;
14512     ac_top_srcdir=$srcdir ;;
14513   *) # Relative path.
14514     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14515     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14516 esac
14517 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14518 # absolute.
14519 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14520 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14521 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14522 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14523
14524
14525   case $INSTALL in
14526   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14527   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14528   esac
14529
14530   if test x"$ac_file" != x-; then
14531     { echo "$as_me:$LINENO: creating $ac_file" >&5
14532 echo "$as_me: creating $ac_file" >&6;}
14533     rm -f "$ac_file"
14534   fi
14535   # Let's still pretend it is `configure' which instantiates (i.e., don't
14536   # use $as_me), people would be surprised to read:
14537   #    /* config.h.  Generated by config.status.  */
14538   if test x"$ac_file" = x-; then
14539     configure_input=
14540   else
14541     configure_input="$ac_file.  "
14542   fi
14543   configure_input=$configure_input"Generated from `echo $ac_file_in |
14544                                      sed 's,.*/,,'` by configure."
14545
14546   # First look for the input files in the build tree, otherwise in the
14547   # src tree.
14548   ac_file_inputs=`IFS=:
14549     for f in $ac_file_in; do
14550       case $f in
14551       -) echo $tmp/stdin ;;
14552       [\\/$]*)
14553          # Absolute (can't be DOS-style, as IFS=:)
14554          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14555 echo "$as_me: error: cannot find input file: $f" >&2;}
14556    { (exit 1); exit 1; }; }
14557          echo $f;;
14558       *) # Relative
14559          if test -f "$f"; then
14560            # Build tree
14561            echo $f
14562          elif test -f "$srcdir/$f"; then
14563            # Source tree
14564            echo $srcdir/$f
14565          else
14566            # /dev/null tree
14567            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14568 echo "$as_me: error: cannot find input file: $f" >&2;}
14569    { (exit 1); exit 1; }; }
14570          fi;;
14571       esac
14572     done` || { (exit 1); exit 1; }
14573 _ACEOF
14574 cat >>$CONFIG_STATUS <<_ACEOF
14575   sed "$ac_vpsub
14576 $extrasub
14577 _ACEOF
14578 cat >>$CONFIG_STATUS <<\_ACEOF
14579 :t
14580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14581 s,@configure_input@,$configure_input,;t t
14582 s,@srcdir@,$ac_srcdir,;t t
14583 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14584 s,@top_srcdir@,$ac_top_srcdir,;t t
14585 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14586 s,@builddir@,$ac_builddir,;t t
14587 s,@abs_builddir@,$ac_abs_builddir,;t t
14588 s,@top_builddir@,$ac_top_builddir,;t t
14589 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14590 s,@INSTALL@,$ac_INSTALL,;t t
14591 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14592   rm -f $tmp/stdin
14593   if test x"$ac_file" != x-; then
14594     mv $tmp/out $ac_file
14595   else
14596     cat $tmp/out
14597     rm -f $tmp/out
14598   fi
14599
14600 done
14601 _ACEOF
14602 cat >>$CONFIG_STATUS <<\_ACEOF
14603
14604 #
14605 # CONFIG_HEADER section.
14606 #
14607
14608 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14609 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14610 #
14611 # ac_d sets the value in "#define NAME VALUE" lines.
14612 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
14613 ac_dB='[        ].*$,\1#\2'
14614 ac_dC=' '
14615 ac_dD=',;t'
14616 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14617 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14618 ac_uB='$,\1#\2define\3'
14619 ac_uC=' '
14620 ac_uD=',;t'
14621
14622 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14623   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14624   case $ac_file in
14625   - | *:- | *:-:* ) # input from stdin
14626         cat >$tmp/stdin
14627         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14628         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14629   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14630         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14631   * )   ac_file_in=$ac_file.in ;;
14632   esac
14633
14634   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14635 echo "$as_me: creating $ac_file" >&6;}
14636
14637   # First look for the input files in the build tree, otherwise in the
14638   # src tree.
14639   ac_file_inputs=`IFS=:
14640     for f in $ac_file_in; do
14641       case $f in
14642       -) echo $tmp/stdin ;;
14643       [\\/$]*)
14644          # Absolute (can't be DOS-style, as IFS=:)
14645          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14646 echo "$as_me: error: cannot find input file: $f" >&2;}
14647    { (exit 1); exit 1; }; }
14648          echo $f;;
14649       *) # Relative
14650          if test -f "$f"; then
14651            # Build tree
14652            echo $f
14653          elif test -f "$srcdir/$f"; then
14654            # Source tree
14655            echo $srcdir/$f
14656          else
14657            # /dev/null tree
14658            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14659 echo "$as_me: error: cannot find input file: $f" >&2;}
14660    { (exit 1); exit 1; }; }
14661          fi;;
14662       esac
14663     done` || { (exit 1); exit 1; }
14664   # Remove the trailing spaces.
14665   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
14666
14667 _ACEOF
14668
14669 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14670 # `conftest.undefs', that substitutes the proper values into
14671 # config.h.in to produce config.h.  The first handles `#define'
14672 # templates, and the second `#undef' templates.
14673 # And first: Protect against being on the right side of a sed subst in
14674 # config.status.  Protect against being in an unquoted here document
14675 # in config.status.
14676 rm -f conftest.defines conftest.undefs
14677 # Using a here document instead of a string reduces the quoting nightmare.
14678 # Putting comments in sed scripts is not portable.
14679 #
14680 # `end' is used to avoid that the second main sed command (meant for
14681 # 0-ary CPP macros) applies to n-ary macro definitions.
14682 # See the Autoconf documentation for `clear'.
14683 cat >confdef2sed.sed <<\_ACEOF
14684 s/[\\&,]/\\&/g
14685 s,[\\$`],\\&,g
14686 t clear
14687 : clear
14688 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14689 t end
14690 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14691 : end
14692 _ACEOF
14693 # If some macros were called several times there might be several times
14694 # the same #defines, which is useless.  Nevertheless, we may not want to
14695 # sort them, since we want the *last* AC-DEFINE to be honored.
14696 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14697 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14698 rm -f confdef2sed.sed
14699
14700 # This sed command replaces #undef with comments.  This is necessary, for
14701 # example, in the case of _POSIX_SOURCE, which is predefined and required
14702 # on some systems where configure will not decide to define it.
14703 cat >>conftest.undefs <<\_ACEOF
14704 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14705 _ACEOF
14706
14707 # Break up conftest.defines because some shells have a limit on the size
14708 # of here documents, and old seds have small limits too (100 cmds).
14709 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14710 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14711 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14712 echo '  :' >>$CONFIG_STATUS
14713 rm -f conftest.tail
14714 while grep . conftest.defines >/dev/null
14715 do
14716   # Write a limited-size here document to $tmp/defines.sed.
14717   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14718   # Speed up: don't consider the non `#define' lines.
14719   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
14720   # Work around the forget-to-reset-the-flag bug.
14721   echo 't clr' >>$CONFIG_STATUS
14722   echo ': clr' >>$CONFIG_STATUS
14723   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14724   echo 'CEOF
14725   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14726   rm -f $tmp/in
14727   mv $tmp/out $tmp/in
14728 ' >>$CONFIG_STATUS
14729   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14730   rm -f conftest.defines
14731   mv conftest.tail conftest.defines
14732 done
14733 rm -f conftest.defines
14734 echo '  fi # egrep' >>$CONFIG_STATUS
14735 echo >>$CONFIG_STATUS
14736
14737 # Break up conftest.undefs because some shells have a limit on the size
14738 # of here documents, and old seds have small limits too (100 cmds).
14739 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14740 rm -f conftest.tail
14741 while grep . conftest.undefs >/dev/null
14742 do
14743   # Write a limited-size here document to $tmp/undefs.sed.
14744   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14745   # Speed up: don't consider the non `#undef'
14746   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14747   # Work around the forget-to-reset-the-flag bug.
14748   echo 't clr' >>$CONFIG_STATUS
14749   echo ': clr' >>$CONFIG_STATUS
14750   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14751   echo 'CEOF
14752   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14753   rm -f $tmp/in
14754   mv $tmp/out $tmp/in
14755 ' >>$CONFIG_STATUS
14756   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14757   rm -f conftest.undefs
14758   mv conftest.tail conftest.undefs
14759 done
14760 rm -f conftest.undefs
14761
14762 cat >>$CONFIG_STATUS <<\_ACEOF
14763   # Let's still pretend it is `configure' which instantiates (i.e., don't
14764   # use $as_me), people would be surprised to read:
14765   #    /* config.h.  Generated by config.status.  */
14766   if test x"$ac_file" = x-; then
14767     echo "/* Generated by configure.  */" >$tmp/config.h
14768   else
14769     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14770   fi
14771   cat $tmp/in >>$tmp/config.h
14772   rm -f $tmp/in
14773   if test x"$ac_file" != x-; then
14774     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14775       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14776 echo "$as_me: $ac_file is unchanged" >&6;}
14777     else
14778       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14779 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14780          X"$ac_file" : 'X\(//\)[^/]' \| \
14781          X"$ac_file" : 'X\(//\)$' \| \
14782          X"$ac_file" : 'X\(/\)' \| \
14783          .     : '\(.\)' 2>/dev/null ||
14784 echo X"$ac_file" |
14785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14786           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14787           /^X\(\/\/\)$/{ s//\1/; q; }
14788           /^X\(\/\).*/{ s//\1/; q; }
14789           s/.*/./; q'`
14790       { case "$ac_dir" in
14791   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14792   *)                      as_incr_dir=.;;
14793 esac
14794 as_dummy="$ac_dir"
14795 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14796   case $as_mkdir_dir in
14797     # Skip DOS drivespec
14798     ?:) as_incr_dir=$as_mkdir_dir ;;
14799     *)
14800       as_incr_dir=$as_incr_dir/$as_mkdir_dir
14801       test -d "$as_incr_dir" ||
14802         mkdir "$as_incr_dir" ||
14803         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
14804 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
14805    { (exit 1); exit 1; }; }
14806     ;;
14807   esac
14808 done; }
14809
14810       rm -f $ac_file
14811       mv $tmp/config.h $ac_file
14812     fi
14813   else
14814     cat $tmp/config.h
14815     rm -f $tmp/config.h
14816   fi
14817 done
14818 _ACEOF
14819 cat >>$CONFIG_STATUS <<\_ACEOF
14820
14821 #
14822 # CONFIG_COMMANDS section.
14823 #
14824 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14825   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14826   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14827   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14828 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14829          X"$ac_dest" : 'X\(//\)[^/]' \| \
14830          X"$ac_dest" : 'X\(//\)$' \| \
14831          X"$ac_dest" : 'X\(/\)' \| \
14832          .     : '\(.\)' 2>/dev/null ||
14833 echo X"$ac_dest" |
14834     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14835           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14836           /^X\(\/\/\)$/{ s//\1/; q; }
14837           /^X\(\/\).*/{ s//\1/; q; }
14838           s/.*/./; q'`
14839   ac_builddir=.
14840
14841 if test "$ac_dir" != .; then
14842   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14843   # A "../" for each directory in $ac_dir_suffix.
14844   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14845 else
14846   ac_dir_suffix= ac_top_builddir=
14847 fi
14848
14849 case $srcdir in
14850   .)  # No --srcdir option.  We are building in place.
14851     ac_srcdir=.
14852     if test -z "$ac_top_builddir"; then
14853        ac_top_srcdir=.
14854     else
14855        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14856     fi ;;
14857   [\\/]* | ?:[\\/]* )  # Absolute path.
14858     ac_srcdir=$srcdir$ac_dir_suffix;
14859     ac_top_srcdir=$srcdir ;;
14860   *) # Relative path.
14861     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14862     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14863 esac
14864 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14865 # absolute.
14866 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14867 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
14868 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14869 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14870
14871
14872   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14873 echo "$as_me: executing $ac_dest commands" >&6;}
14874   case $ac_dest in
14875     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
14876   esac
14877 done
14878 _ACEOF
14879
14880 cat >>$CONFIG_STATUS <<\_ACEOF
14881
14882 { (exit 0); exit 0; }
14883 _ACEOF
14884 chmod +x $CONFIG_STATUS
14885 ac_clean_files=$ac_clean_files_save
14886
14887
14888 # configure is writing to config.log, and then calls config.status.
14889 # config.status does its own redirection, appending to config.log.
14890 # Unfortunately, on DOS this fails, as config.log is still kept open
14891 # by configure, so config.status won't be able to write to it; its
14892 # output is simply discarded.  So we exec the FD to /dev/null,
14893 # effectively closing config.log, so it can be properly (re)opened and
14894 # appended to by config.status.  When coming back to configure, we
14895 # need to make the FD available again.
14896 if test "$no_create" != yes; then
14897   ac_cs_success=:
14898   exec 5>/dev/null
14899   $SHELL $CONFIG_STATUS || ac_cs_success=false
14900   exec 5>>config.log
14901   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14902   # would make configure fail if this is the last instruction.
14903   $ac_cs_success || { (exit 1); exit 1; }
14904 fi
14905
14906
14907 chmod +x xml2-config xml2Conf.sh python/setup.py