added Info.plist
[TestXSLT.git] / libxml2 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
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 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator.  Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246   UNAME=${UNAME-`uname 2>/dev/null`}
247   case X$UNAME in
248     *-DOS) lt_cv_sys_path_separator=';' ;;
249     *)     lt_cv_sys_path_separator=':' ;;
250   esac
251   PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260   # Remove one level of quotation (which was required for Make).
261   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262   ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267   # Discard the --no-reexec flag, and continue.
268   shift
269 elif test "X$1" = X--fallback-echo; then
270   # Avoid inline document here, it may be left over
271   :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273   # Yippee, $echo works!
274   :
275 else
276   # Restart under the correct shell.
277   exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281   # used as fallback echo
282   shift
283   cat <<EOF
284
285 EOF
286   exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299        echo_test_string="`eval $cmd`" &&
300        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301     then
302       break
303     fi
304   done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309    test "X$echo_testing_string" = "X$echo_test_string"; then
310   :
311 else
312   # The Solaris, AIX, and Digital Unix default echo programs unquote
313   # backslashes.  This makes it impossible to quote backslashes using
314   #   echo "$something" | sed 's/\\/\\\\/g'
315   #
316   # So, first we look for a working echo in the user's PATH.
317
318   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319   for dir in $PATH /usr/ucb; do
320     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323        test "X$echo_testing_string" = "X$echo_test_string"; then
324       echo="$dir/echo"
325       break
326     fi
327   done
328   IFS="$save_ifs"
329
330   if test "X$echo" = Xecho; then
331     # We didn't find a better echo, so look for alternatives.
332     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334        test "X$echo_testing_string" = "X$echo_test_string"; then
335       # This shell has a builtin print -r that does the trick.
336       echo='print -r'
337     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338          test "X$CONFIG_SHELL" != X/bin/ksh; then
339       # If we have ksh, try running configure again with it.
340       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341       export ORIGINAL_CONFIG_SHELL
342       CONFIG_SHELL=/bin/ksh
343       export CONFIG_SHELL
344       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345     else
346       # Try using printf.
347       echo='printf %s\n'
348       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350          test "X$echo_testing_string" = "X$echo_test_string"; then
351         # Cool, printf works
352         :
353       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358         export CONFIG_SHELL
359         SHELL="$CONFIG_SHELL"
360         export SHELL
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363            test "X$echo_testing_string" = 'X\t' &&
364            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365            test "X$echo_testing_string" = "X$echo_test_string"; then
366         echo="$CONFIG_SHELL $0 --fallback-echo"
367       else
368         # maybe with a smaller string...
369         prev=:
370
371         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373           then
374             break
375           fi
376           prev="$cmd"
377         done
378
379         if test "$prev" != 'sed 50q "$0"'; then
380           echo_test_string=`eval $prev`
381           export echo_test_string
382           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383         else
384           # Oops.  We lost completely, so just stick with echo.
385           echo=echo
386         fi
387       fi
388     fi
389   fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete.  It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="entities.c"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
435 #include <stdio.h>
436 #if HAVE_SYS_TYPES_H
437 # include <sys/types.h>
438 #endif
439 #if HAVE_SYS_STAT_H
440 # include <sys/stat.h>
441 #endif
442 #if STDC_HEADERS
443 # include <stdlib.h>
444 # include <stddef.h>
445 #else
446 # if HAVE_STDLIB_H
447 #  include <stdlib.h>
448 # endif
449 #endif
450 #if HAVE_STRING_H
451 # if !STDC_HEADERS && HAVE_MEMORY_H
452 #  include <memory.h>
453 # endif
454 # include <string.h>
455 #endif
456 #if HAVE_STRINGS_H
457 # include <strings.h>
458 #endif
459 #if HAVE_INTTYPES_H
460 # include <inttypes.h>
461 #else
462 # if HAVE_STDINT_H
463 #  include <stdint.h>
464 # endif
465 #endif
466 #if HAVE_UNISTD_H
467 # include <unistd.h>
468 #endif"
469
470 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBXML_MAJOR_VERSION LIBXML_MINOR_VERSION LIBXML_MICRO_VERSION LIBXML_VERSION LIBXML_VERSION_INFO LIBXML_VERSION_NUMBER INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP RM MV TAR EGREP U ANSI2KNR LN_S ECHO RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT Z_CFLAGS Z_LIBS HTML_DIR PYTHON WITH_PYTHON_TRUE WITH_PYTHON_FALSE pythondir PYTHON_SUBDIR STATIC_BINARIES WITH_TRIO_SOURCES_TRUE WITH_TRIO_SOURCES_FALSE WITH_TRIO THREAD_LIBS WITH_THREADS THREAD_CFLAGS TEST_THREADS WITH_FTP FTP_OBJ WITH_HTTP HTTP_OBJ WITH_HTML HTML_OBJ WITH_CATALOG CATALOG_OBJ WITH_DOCB DOCB_OBJ WITH_XPATH XPATH_OBJ WITH_XPTR XPTR_OBJ WITH_C14N C14N_OBJ WITH_XINCLUDE XINCLUDE_OBJ WITH_ICONV WITH_ISO8859X WITH_SCHEMAS TEST_SCHEMAS WITH_REGEXPS TEST_REGEXPS WITH_DEBUG DEBUG_OBJ WITH_MEM_DEBUG WIN32_EXTRA_LIBADD WIN32_EXTRA_LDFLAGS XML_CFLAGS XML_LIBDIR XML_LIBS ICONV_LIBS XML_INCLUDEDIR HAVE_ISNAN HAVE_ISINF PYTHON_VERSION PYTHON_INCLUDES PYTHON_SITE_PACKAGES M_LIBS RDL_LIBS RELDATE LIBOBJS LTLIBOBJS'
471 ac_subst_files=''
472
473 # Initialize some variables set by options.
474 ac_init_help=
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
478 cache_file=/dev/null
479 exec_prefix=NONE
480 no_create=
481 no_recursion=
482 prefix=NONE
483 program_prefix=NONE
484 program_suffix=NONE
485 program_transform_name=s,x,x,
486 silent=
487 site=
488 srcdir=
489 verbose=
490 x_includes=NONE
491 x_libraries=NONE
492
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
510
511 ac_prev=
512 for ac_option
513 do
514   # If the previous option needs an argument, assign it.
515   if test -n "$ac_prev"; then
516     eval "$ac_prev=\$ac_option"
517     ac_prev=
518     continue
519   fi
520
521   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523   # Accept the important Cygnus configure options, so we can diagnose typos.
524
525   case $ac_option in
526
527   -bindir | --bindir | --bindi | --bind | --bin | --bi)
528     ac_prev=bindir ;;
529   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530     bindir=$ac_optarg ;;
531
532   -build | --build | --buil | --bui | --bu)
533     ac_prev=build_alias ;;
534   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535     build_alias=$ac_optarg ;;
536
537   -cache-file | --cache-file | --cache-fil | --cache-fi \
538   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539     ac_prev=cache_file ;;
540   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542     cache_file=$ac_optarg ;;
543
544   --config-cache | -C)
545     cache_file=config.cache ;;
546
547   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548     ac_prev=datadir ;;
549   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550   | --da=*)
551     datadir=$ac_optarg ;;
552
553   -disable-* | --disable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     eval "enable_$ac_feature=no" ;;
561
562   -enable-* | --enable-*)
563     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564     # Reject names that are not valid shell variable names.
565     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567    { (exit 1); exit 1; }; }
568     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569     case $ac_option in
570       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571       *) ac_optarg=yes ;;
572     esac
573     eval "enable_$ac_feature='$ac_optarg'" ;;
574
575   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577   | --exec | --exe | --ex)
578     ac_prev=exec_prefix ;;
579   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581   | --exec=* | --exe=* | --ex=*)
582     exec_prefix=$ac_optarg ;;
583
584   -gas | --gas | --ga | --g)
585     # Obsolete; use --with-gas.
586     with_gas=yes ;;
587
588   -help | --help | --hel | --he | -h)
589     ac_init_help=long ;;
590   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591     ac_init_help=recursive ;;
592   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593     ac_init_help=short ;;
594
595   -host | --host | --hos | --ho)
596     ac_prev=host_alias ;;
597   -host=* | --host=* | --hos=* | --ho=*)
598     host_alias=$ac_optarg ;;
599
600   -includedir | --includedir | --includedi | --included | --include \
601   | --includ | --inclu | --incl | --inc)
602     ac_prev=includedir ;;
603   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604   | --includ=* | --inclu=* | --incl=* | --inc=*)
605     includedir=$ac_optarg ;;
606
607   -infodir | --infodir | --infodi | --infod | --info | --inf)
608     ac_prev=infodir ;;
609   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610     infodir=$ac_optarg ;;
611
612   -libdir | --libdir | --libdi | --libd)
613     ac_prev=libdir ;;
614   -libdir=* | --libdir=* | --libdi=* | --libd=*)
615     libdir=$ac_optarg ;;
616
617   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618   | --libexe | --libex | --libe)
619     ac_prev=libexecdir ;;
620   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621   | --libexe=* | --libex=* | --libe=*)
622     libexecdir=$ac_optarg ;;
623
624   -localstatedir | --localstatedir | --localstatedi | --localstated \
625   | --localstate | --localstat | --localsta | --localst \
626   | --locals | --local | --loca | --loc | --lo)
627     ac_prev=localstatedir ;;
628   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631     localstatedir=$ac_optarg ;;
632
633   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634     ac_prev=mandir ;;
635   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636     mandir=$ac_optarg ;;
637
638   -nfp | --nfp | --nf)
639     # Obsolete; use --without-fp.
640     with_fp=no ;;
641
642   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643   | --no-cr | --no-c | -n)
644     no_create=yes ;;
645
646   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648     no_recursion=yes ;;
649
650   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652   | --oldin | --oldi | --old | --ol | --o)
653     ac_prev=oldincludedir ;;
654   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657     oldincludedir=$ac_optarg ;;
658
659   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660     ac_prev=prefix ;;
661   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662     prefix=$ac_optarg ;;
663
664   -program-prefix | --program-prefix | --program-prefi | --program-pref \
665   | --program-pre | --program-pr | --program-p)
666     ac_prev=program_prefix ;;
667   -program-prefix=* | --program-prefix=* | --program-prefi=* \
668   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669     program_prefix=$ac_optarg ;;
670
671   -program-suffix | --program-suffix | --program-suffi | --program-suff \
672   | --program-suf | --program-su | --program-s)
673     ac_prev=program_suffix ;;
674   -program-suffix=* | --program-suffix=* | --program-suffi=* \
675   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676     program_suffix=$ac_optarg ;;
677
678   -program-transform-name | --program-transform-name \
679   | --program-transform-nam | --program-transform-na \
680   | --program-transform-n | --program-transform- \
681   | --program-transform | --program-transfor \
682   | --program-transfo | --program-transf \
683   | --program-trans | --program-tran \
684   | --progr-tra | --program-tr | --program-t)
685     ac_prev=program_transform_name ;;
686   -program-transform-name=* | --program-transform-name=* \
687   | --program-transform-nam=* | --program-transform-na=* \
688   | --program-transform-n=* | --program-transform-=* \
689   | --program-transform=* | --program-transfor=* \
690   | --program-transfo=* | --program-transf=* \
691   | --program-trans=* | --program-tran=* \
692   | --progr-tra=* | --program-tr=* | --program-t=*)
693     program_transform_name=$ac_optarg ;;
694
695   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696   | -silent | --silent | --silen | --sile | --sil)
697     silent=yes ;;
698
699   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700     ac_prev=sbindir ;;
701   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702   | --sbi=* | --sb=*)
703     sbindir=$ac_optarg ;;
704
705   -sharedstatedir | --sharedstatedir | --sharedstatedi \
706   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707   | --sharedst | --shareds | --shared | --share | --shar \
708   | --sha | --sh)
709     ac_prev=sharedstatedir ;;
710   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713   | --sha=* | --sh=*)
714     sharedstatedir=$ac_optarg ;;
715
716   -site | --site | --sit)
717     ac_prev=site ;;
718   -site=* | --site=* | --sit=*)
719     site=$ac_optarg ;;
720
721   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722     ac_prev=srcdir ;;
723   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724     srcdir=$ac_optarg ;;
725
726   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727   | --syscon | --sysco | --sysc | --sys | --sy)
728     ac_prev=sysconfdir ;;
729   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731     sysconfdir=$ac_optarg ;;
732
733   -target | --target | --targe | --targ | --tar | --ta | --t)
734     ac_prev=target_alias ;;
735   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736     target_alias=$ac_optarg ;;
737
738   -v | -verbose | --verbose | --verbos | --verbo | --verb)
739     verbose=yes ;;
740
741   -version | --version | --versio | --versi | --vers | -V)
742     ac_init_version=: ;;
743
744   -with-* | --with-*)
745     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid package name: $ac_package" >&2
749    { (exit 1); exit 1; }; }
750     ac_package=`echo $ac_package| sed 's/-/_/g'`
751     case $ac_option in
752       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753       *) ac_optarg=yes ;;
754     esac
755     eval "with_$ac_package='$ac_optarg'" ;;
756
757   -without-* | --without-*)
758     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759     # Reject names that are not valid shell variable names.
760     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761       { echo "$as_me: error: invalid package name: $ac_package" >&2
762    { (exit 1); exit 1; }; }
763     ac_package=`echo $ac_package | sed 's/-/_/g'`
764     eval "with_$ac_package=no" ;;
765
766   --x)
767     # Obsolete; use --with-x.
768     with_x=yes ;;
769
770   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771   | --x-incl | --x-inc | --x-in | --x-i)
772     ac_prev=x_includes ;;
773   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775     x_includes=$ac_optarg ;;
776
777   -x-libraries | --x-libraries | --x-librarie | --x-librari \
778   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779     ac_prev=x_libraries ;;
780   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782     x_libraries=$ac_optarg ;;
783
784   -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786    { (exit 1); exit 1; }; }
787     ;;
788
789   *=*)
790     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791     # Reject names that are not valid shell variable names.
792     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794    { (exit 1); exit 1; }; }
795     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796     eval "$ac_envvar='$ac_optarg'"
797     export $ac_envvar ;;
798
799   *)
800     # FIXME: should be removed in autoconf 3.0.
801     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805     ;;
806
807   esac
808 done
809
810 if test -n "$ac_prev"; then
811   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812   { echo "$as_me: error: missing argument to $ac_option" >&2
813    { (exit 1); exit 1; }; }
814 fi
815
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
818 do
819   eval ac_val=$`echo $ac_var`
820   case $ac_val in
821     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823    { (exit 1); exit 1; }; };;
824   esac
825 done
826
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829               localstatedir libdir includedir oldincludedir infodir mandir
830 do
831   eval ac_val=$`echo $ac_var`
832   case $ac_val in
833     [\\/$]* | ?:[\\/]* ) ;;
834     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835    { (exit 1); exit 1; }; };;
836   esac
837 done
838
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
842 build=$build_alias
843 host=$host_alias
844 target=$target_alias
845
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848   if test "x$build_alias" = x; then
849     cross_compiling=maybe
850     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851     If a cross compiler is detected then cross compile mode will be used." >&2
852   elif test "x$build_alias" != "x$host_alias"; then
853     cross_compiling=yes
854   fi
855 fi
856
857 ac_tool_prefix=
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860 test "$silent" = yes && exec 6>/dev/null
861
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865   ac_srcdir_defaulted=yes
866   # Try the directory containing this script, then its parent.
867   ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869          X"$0" : 'X\(//\)[^/]' \| \
870          X"$0" : 'X\(//\)$' \| \
871          X"$0" : 'X\(/\)' \| \
872          .     : '\(.\)' 2>/dev/null ||
873 echo X"$0" |
874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876           /^X\(\/\/\)$/{ s//\1/; q; }
877           /^X\(\/\).*/{ s//\1/; q; }
878           s/.*/./; q'`
879   srcdir=$ac_confdir
880   if test ! -r $srcdir/$ac_unique_file; then
881     srcdir=..
882   fi
883 else
884   ac_srcdir_defaulted=no
885 fi
886 if test ! -r $srcdir/$ac_unique_file; then
887   if test "$ac_srcdir_defaulted" = yes; then
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889    { (exit 1); exit 1; }; }
890   else
891     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892    { (exit 1); exit 1; }; }
893   fi
894 fi
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897    { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
912 ac_env_CC_value=$CC
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures this package to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 Program names:
993   --program-prefix=PREFIX            prepend PREFIX to installed program names
994   --program-suffix=SUFFIX            append SUFFIX to installed program names
995   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000 _ACEOF
1001 fi
1002
1003 if test -n "$ac_init_help"; then
1004
1005   cat <<\_ACEOF
1006
1007 Optional Features:
1008   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1009   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1010   --disable-dependency-tracking Speeds up one-time builds
1011   --enable-dependency-tracking  Do not reject slow dependency extractors
1012   --enable-shared=PKGS  build shared libraries default=yes
1013   --enable-static=PKGS  build static libraries default=yes
1014   --enable-fast-install=PKGS  optimize for fast installation default=yes
1015   --disable-libtool-lock  avoid locking (might break parallel builds)
1016   --enable-maintainer-mode enable make rules and dependencies not useful
1017                           (and sometimes confusing) to the casual installer
1018  --enable-ipv6=yes/no enables compilation of IPv6 code
1019
1020 Optional Packages:
1021   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1022   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1023   --with-html-dir=PATH    path to installed docs
1024   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1025   --with-pic              try to use only PIC/non-PIC objects default=use both
1026   --with-zlib[=DIR]       use libz in DIR
1027   --with-fexceptions      add GCC flag -fexceptions for C++ exceptions (off)
1028   --with-python[=DIR]     build Python bindings if found
1029   --with-readline=DIR     use readline in DIR
1030   --with-threads          add multithread support(on)
1031   --with-thread-alloc     add per-thread memory(off)
1032   --with-history          add history support to xmllint shell(off)
1033   --with-ftp              add the FTP support (on)
1034   --with-http             add the HTTP support (on)
1035   --with-html             add the HTML support (on)
1036   --with-catalog          add the Catalog support (on)
1037   --with-docbook          add Docbook SGML support (on)
1038   --with-xpath            add the XPATH support (on)
1039   --with-xptr             add the XPointer support (on)
1040   --with-c14n             add the Canonicalization support (on)
1041   --with-xinclude         add the XInclude support (on)
1042   --with-iconv[=DIR]      add ICONV support (on)
1043   --with-iso8859x         add ISO8859X support if no iconv (on)
1044   --with-schemas          add experimental Schemas/RelaxNG support (on)
1045   --with-regexps          add Regular Expressions support (on)
1046   --with-debug            add the debugging module (on)
1047   --with-mem-debug        add the memory debugging module (off)
1048
1049 Some influential environment variables:
1050   CC          C compiler command
1051   CFLAGS      C compiler flags
1052   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053               nonstandard directory <lib dir>
1054   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055               headers in a nonstandard directory <include dir>
1056   CPP         C preprocessor
1057
1058 Use these variables to override the choices made by `configure' or to help
1059 it to find libraries and programs with nonstandard names/locations.
1060
1061 _ACEOF
1062 fi
1063
1064 if test "$ac_init_help" = "recursive"; then
1065   # If there are subdirs, report their specific --help.
1066   ac_popdir=`pwd`
1067   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1068     test -d $ac_dir || continue
1069     ac_builddir=.
1070
1071 if test "$ac_dir" != .; then
1072   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1073   # A "../" for each directory in $ac_dir_suffix.
1074   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1075 else
1076   ac_dir_suffix= ac_top_builddir=
1077 fi
1078
1079 case $srcdir in
1080   .)  # No --srcdir option.  We are building in place.
1081     ac_srcdir=.
1082     if test -z "$ac_top_builddir"; then
1083        ac_top_srcdir=.
1084     else
1085        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1086     fi ;;
1087   [\\/]* | ?:[\\/]* )  # Absolute path.
1088     ac_srcdir=$srcdir$ac_dir_suffix;
1089     ac_top_srcdir=$srcdir ;;
1090   *) # Relative path.
1091     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1092     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1093 esac
1094 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1095 # absolute.
1096 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1097 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1098 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1099 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1100
1101     cd $ac_dir
1102     # Check for guested configure; otherwise get Cygnus style configure.
1103     if test -f $ac_srcdir/configure.gnu; then
1104       echo
1105       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1106     elif test -f $ac_srcdir/configure; then
1107       echo
1108       $SHELL $ac_srcdir/configure  --help=recursive
1109     elif test -f $ac_srcdir/configure.ac ||
1110            test -f $ac_srcdir/configure.in; then
1111       echo
1112       $ac_configure --help
1113     else
1114       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1115     fi
1116     cd $ac_popdir
1117   done
1118 fi
1119
1120 test -n "$ac_init_help" && exit 0
1121 if $ac_init_version; then
1122   cat <<\_ACEOF
1123
1124 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1125 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129   exit 0
1130 fi
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1135
1136 It was created by $as_me, which was
1137 generated by GNU Autoconf 2.57.  Invocation command line was
1138
1139   $ $0 $@
1140
1141 _ACEOF
1142 {
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1147
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1156
1157 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1158 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1161 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1162 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1163 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1164
1165 _ASUNAME
1166
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1169 do
1170   IFS=$as_save_IFS
1171   test -z "$as_dir" && as_dir=.
1172   echo "PATH: $as_dir"
1173 done
1174
1175 } >&5
1176
1177 cat >&5 <<_ACEOF
1178
1179
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1183
1184 _ACEOF
1185
1186
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1198 do
1199   for ac_arg
1200   do
1201     case $ac_arg in
1202     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204     | -silent | --silent | --silen | --sile | --sil)
1205       continue ;;
1206     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208     esac
1209     case $ac_pass in
1210     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211     2)
1212       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213       if test $ac_must_keep_next = true; then
1214         ac_must_keep_next=false # Got value, back to normal.
1215       else
1216         case $ac_arg in
1217           *=* | --config-cache | -C | -disable-* | --disable-* \
1218           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220           | -with-* | --with-* | -without-* | --without-* | --x)
1221             case "$ac_configure_args0 " in
1222               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223             esac
1224             ;;
1225           -* ) ac_must_keep_next=true ;;
1226         esac
1227       fi
1228       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229       # Get rid of the leading space.
1230       ac_sep=" "
1231       ;;
1232     esac
1233   done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log.  We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244   # Save into config.log some information that might help in debugging.
1245   {
1246     echo
1247
1248     cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253     echo
1254     # The following way of writing the cache mishandles newlines in values,
1255 {
1256   (set) 2>&1 |
1257     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258     *ac_space=\ *)
1259       sed -n \
1260         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262       ;;
1263     *)
1264       sed -n \
1265         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266       ;;
1267     esac;
1268 }
1269     echo
1270
1271     cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276     echo
1277     for ac_var in $ac_subst_vars
1278     do
1279       eval ac_val=$`echo $ac_var`
1280       echo "$ac_var='"'"'$ac_val'"'"'"
1281     done | sort
1282     echo
1283
1284     if test -n "$ac_subst_files"; then
1285       cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290       echo
1291       for ac_var in $ac_subst_files
1292       do
1293         eval ac_val=$`echo $ac_var`
1294         echo "$ac_var='"'"'$ac_val'"'"'"
1295       done | sort
1296       echo
1297     fi
1298
1299     if test -s confdefs.h; then
1300       cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305       echo
1306       sed "/^$/d" confdefs.h | sort
1307       echo
1308     fi
1309     test "$ac_signal" != 0 &&
1310       echo "$as_me: caught signal $ac_signal"
1311     echo "$as_me: exit $exit_status"
1312   } >&5
1313   rm -f core core.* *.core &&
1314   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315     exit $exit_status
1316      ' 0
1317 for ac_signal in 1 2 13 15; do
1318   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1321
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1326
1327 # Predefined preprocessor variables.
1328
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1332
1333
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1337
1338
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1342
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1352
1353
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357   if test "x$prefix" != xNONE; then
1358     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359   else
1360     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361   fi
1362 fi
1363 for ac_site_file in $CONFIG_SITE; do
1364   if test -r "$ac_site_file"; then
1365     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367     sed 's/^/| /' "$ac_site_file" >&5
1368     . "$ac_site_file"
1369   fi
1370 done
1371
1372 if test -r "$cache_file"; then
1373   # Some versions of bash will fail to source /dev/null (special
1374   # files actually), so we avoid doing that.
1375   if test -f "$cache_file"; then
1376     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378     case $cache_file in
1379       [\\/]* | ?:[\\/]* ) . $cache_file;;
1380       *)                      . ./$cache_file;;
1381     esac
1382   fi
1383 else
1384   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386   >$cache_file
1387 fi
1388
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395   eval ac_new_set=\$ac_env_${ac_var}_set
1396   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397   eval ac_new_val="\$ac_env_${ac_var}_value"
1398   case $ac_old_set,$ac_new_set in
1399     set,)
1400       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402       ac_cache_corrupted=: ;;
1403     ,set)
1404       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406       ac_cache_corrupted=: ;;
1407     ,);;
1408     *)
1409       if test "x$ac_old_val" != "x$ac_new_val"; then
1410         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1411 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1412         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1413 echo "$as_me:   former value:  $ac_old_val" >&2;}
1414         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1415 echo "$as_me:   current value: $ac_new_val" >&2;}
1416         ac_cache_corrupted=:
1417       fi;;
1418   esac
1419   # Pass precious variables to config.status.
1420   if test "$ac_new_set" = set; then
1421     case $ac_new_val in
1422     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1423       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1424     *) ac_arg=$ac_var=$ac_new_val ;;
1425     esac
1426     case " $ac_configure_args " in
1427       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1428       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1429     esac
1430   fi
1431 done
1432 if $ac_cache_corrupted; then
1433   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1434 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1435   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1436 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1437    { (exit 1); exit 1; }; }
1438 fi
1439
1440 ac_ext=c
1441 ac_cpp='$CPP $CPPFLAGS'
1442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464 # Add the stamp file to the list of files AC keeps track of,
1465 # along with our hook.
1466           ac_config_headers="$ac_config_headers config.h"
1467
1468
1469
1470 ac_aux_dir=
1471 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1472   if test -f $ac_dir/install-sh; then
1473     ac_aux_dir=$ac_dir
1474     ac_install_sh="$ac_aux_dir/install-sh -c"
1475     break
1476   elif test -f $ac_dir/install.sh; then
1477     ac_aux_dir=$ac_dir
1478     ac_install_sh="$ac_aux_dir/install.sh -c"
1479     break
1480   elif test -f $ac_dir/shtool; then
1481     ac_aux_dir=$ac_dir
1482     ac_install_sh="$ac_aux_dir/shtool install -c"
1483     break
1484   fi
1485 done
1486 if test -z "$ac_aux_dir"; then
1487   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1488 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1492 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1493 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1494
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499    { (exit 1); exit 1; }; }
1500
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508   ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512    { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 fi
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
1526
1527 echo "$as_me:$LINENO: checking host system type" >&5
1528 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529 if test "${ac_cv_host+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   ac_cv_host_alias=$host_alias
1533 test -z "$ac_cv_host_alias" &&
1534   ac_cv_host_alias=$ac_cv_build_alias
1535 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538    { (exit 1); exit 1; }; }
1539
1540 fi
1541 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542 echo "${ECHO_T}$ac_cv_host" >&6
1543 host=$ac_cv_host
1544 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549
1550 LIBXML_MAJOR_VERSION=2
1551 LIBXML_MINOR_VERSION=5
1552 LIBXML_MICRO_VERSION=10
1553 LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION
1554 LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
1555
1556 LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
1557
1558
1559
1560
1561
1562
1563
1564
1565 VERSION=${LIBXML_VERSION}
1566
1567 am__api_version="1.6"
1568 # Find a good install program.  We prefer a C program (faster),
1569 # so one script is as good as another.  But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593   ./ | .// | /cC/* | \
1594   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595   /usr/ucb/* ) ;;
1596   *)
1597     # OSF1 and SCO ODT 3.0 have their own names for install.
1598     # Don't use installbsd from OSF since it installs stuff as root
1599     # by default.
1600     for ac_prog in ginstall scoinst install; do
1601       for ac_exec_ext in '' $ac_executable_extensions; do
1602         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603           if test $ac_prog = install &&
1604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605             # AIX install.  It has an incompatible calling convention.
1606             :
1607           elif test $ac_prog = install &&
1608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609             # program-specific install script used by HP pwplus--don't use.
1610             :
1611           else
1612             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613             break 3
1614           fi
1615         fi
1616       done
1617     done
1618     ;;
1619 esac
1620 done
1621
1622
1623 fi
1624   if test "${ac_cv_path_install+set}" = set; then
1625     INSTALL=$ac_cv_path_install
1626   else
1627     # As a last resort, use the slow shell script.  We don't cache a
1628     # path for INSTALL within a source directory, because that will
1629     # break other packages using the cache if that directory is
1630     # removed, or if the path is relative.
1631     INSTALL=$ac_install_sh
1632   fi
1633 fi
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1636
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments.  Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657    if test "$*" = "X"; then
1658       # -L didn't work.
1659       set X `ls -t $srcdir/configure conftest.file`
1660    fi
1661    rm -f conftest.file
1662    if test "$*" != "X $srcdir/configure conftest.file" \
1663       && test "$*" != "X conftest.file $srcdir/configure"; then
1664
1665       # If neither matched, then we have a broken ls.  This can happen
1666       # if, for instance, CONFIG_SHELL is bash and it inherits a
1667       # broken ls alias from the environment.  This has actually
1668       # happened.  Such a system could not be considered "sane".
1669       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1672 alias in your environment" >&2;}
1673    { (exit 1); exit 1; }; }
1674    fi
1675
1676    test "$2" = conftest.file
1677    )
1678 then
1679    # Ok.
1680    :
1681 else
1682    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686    { (exit 1); exit 1; }; }
1687 fi
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $.  echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1702
1703
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710   am_missing_run="$MISSING --run "
1711 else
1712   am_missing_run=
1713   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 fi
1716
1717 for ac_prog in gawk mawk nawk awk
1718 do
1719   # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724   echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726   if test -n "$AWK"; then
1727   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732   IFS=$as_save_IFS
1733   test -z "$as_dir" && as_dir=.
1734   for ac_exec_ext in '' $ac_executable_extensions; do
1735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736     ac_cv_prog_AWK="$ac_prog"
1737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738     break 2
1739   fi
1740 done
1741 done
1742
1743 fi
1744 fi
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747   echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750   echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754   test -n "$AWK" && break
1755 done
1756
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   cat >conftest.make <<\_ACEOF
1764 all:
1765         @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770   eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772   eval ac_cv_prog_make_${ac_make}_set=no
1773 fi
1774 rm -f conftest.make
1775 fi
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777   echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779   SET_MAKE=
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783   SET_MAKE="MAKE=${MAKE-make}"
1784 fi
1785
1786  # test to see if srcdir already configured
1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1788    test -f $srcdir/config.status; then
1789   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1791    { (exit 1); exit 1; }; }
1792 fi
1793
1794 # Define the identity of the package.
1795  PACKAGE=libxml2
1796  VERSION=$VERSION
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE "$PACKAGE"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define VERSION "$VERSION"
1806 _ACEOF
1807
1808 # Some tools Automake needs.
1809
1810 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1811
1812
1813 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1814
1815
1816 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1817
1818
1819 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1820
1821
1822 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1823
1824
1825 AMTAR=${AMTAR-"${am_missing_run}tar"}
1826
1827 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1828
1829 # Installed binaries are usually stripped using `strip' when the user
1830 # run `make install-strip'.  However `strip' might not be the right
1831 # tool to use in cross-compilation environments, therefore Automake
1832 # will honor the `STRIP' environment variable to overrule this program.
1833 if test "$cross_compiling" != no; then
1834   if test -n "$ac_tool_prefix"; then
1835   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}strip; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_STRIP+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   if test -n "$STRIP"; then
1843   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848   IFS=$as_save_IFS
1849   test -z "$as_dir" && as_dir=.
1850   for ac_exec_ext in '' $ac_executable_extensions; do
1851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854     break 2
1855   fi
1856 done
1857 done
1858
1859 fi
1860 fi
1861 STRIP=$ac_cv_prog_STRIP
1862 if test -n "$STRIP"; then
1863   echo "$as_me:$LINENO: result: $STRIP" >&5
1864 echo "${ECHO_T}$STRIP" >&6
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 fi
1869
1870 fi
1871 if test -z "$ac_cv_prog_STRIP"; then
1872   ac_ct_STRIP=$STRIP
1873   # Extract the first word of "strip", so it can be a program name with args.
1874 set dummy strip; ac_word=$2
1875 echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1878   echo $ECHO_N "(cached) $ECHO_C" >&6
1879 else
1880   if test -n "$ac_ct_STRIP"; then
1881   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1882 else
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 for as_dir in $PATH
1885 do
1886   IFS=$as_save_IFS
1887   test -z "$as_dir" && as_dir=.
1888   for ac_exec_ext in '' $ac_executable_extensions; do
1889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890     ac_cv_prog_ac_ct_STRIP="strip"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1898 fi
1899 fi
1900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1901 if test -n "$ac_ct_STRIP"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1903 echo "${ECHO_T}$ac_ct_STRIP" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   STRIP=$ac_ct_STRIP
1910 else
1911   STRIP="$ac_cv_prog_STRIP"
1912 fi
1913
1914 fi
1915 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1916
1917 # We need awk for the "check" target.  The system "awk" is bad on
1918 # some platforms.
1919
1920
1921
1922
1923
1924 # Check whether --with-html-dir or --without-html-dir was given.
1925 if test "${with_html_dir+set}" = set; then
1926   withval="$with_html_dir"
1927
1928 fi;
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935 if test -n "$ac_tool_prefix"; then
1936   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$CC"; then
1944   ac_cv_prog_CC="$CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 CC=$ac_cv_prog_CC
1963 if test -n "$CC"; then
1964   echo "$as_me:$LINENO: result: $CC" >&5
1965 echo "${ECHO_T}$CC" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971 fi
1972 if test -z "$ac_cv_prog_CC"; then
1973   ac_ct_CC=$CC
1974   # Extract the first word of "gcc", so it can be a program name with args.
1975 set dummy gcc; ac_word=$2
1976 echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_CC"; then
1982   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1991     ac_cv_prog_ac_ct_CC="gcc"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997
1998 fi
1999 fi
2000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001 if test -n "$ac_ct_CC"; then
2002   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003 echo "${ECHO_T}$ac_ct_CC" >&6
2004 else
2005   echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2007 fi
2008
2009   CC=$ac_ct_CC
2010 else
2011   CC="$ac_cv_prog_CC"
2012 fi
2013
2014 if test -z "$CC"; then
2015   if test -n "$ac_tool_prefix"; then
2016   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2017 set dummy ${ac_tool_prefix}cc; ac_word=$2
2018 echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020 if test "${ac_cv_prog_CC+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   if test -n "$CC"; then
2024   ac_cv_prog_CC="$CC" # Let the user override the test.
2025 else
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   for ac_exec_ext in '' $ac_executable_extensions; do
2032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033     ac_cv_prog_CC="${ac_tool_prefix}cc"
2034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035     break 2
2036   fi
2037 done
2038 done
2039
2040 fi
2041 fi
2042 CC=$ac_cv_prog_CC
2043 if test -n "$CC"; then
2044   echo "$as_me:$LINENO: result: $CC" >&5
2045 echo "${ECHO_T}$CC" >&6
2046 else
2047   echo "$as_me:$LINENO: result: no" >&5
2048 echo "${ECHO_T}no" >&6
2049 fi
2050
2051 fi
2052 if test -z "$ac_cv_prog_CC"; then
2053   ac_ct_CC=$CC
2054   # Extract the first word of "cc", so it can be a program name with args.
2055 set dummy cc; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$ac_ct_CC"; then
2062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071     ac_cv_prog_ac_ct_CC="cc"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077
2078 fi
2079 fi
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 echo "${ECHO_T}$ac_ct_CC" >&6
2084 else
2085   echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2087 fi
2088
2089   CC=$ac_ct_CC
2090 else
2091   CC="$ac_cv_prog_CC"
2092 fi
2093
2094 fi
2095 if test -z "$CC"; then
2096   # Extract the first word of "cc", so it can be a program name with args.
2097 set dummy cc; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$CC"; then
2104   ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106   ac_prog_rejected=no
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   for ac_exec_ext in '' $ac_executable_extensions; do
2113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2114     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2115        ac_prog_rejected=yes
2116        continue
2117      fi
2118     ac_cv_prog_CC="cc"
2119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120     break 2
2121   fi
2122 done
2123 done
2124
2125 if test $ac_prog_rejected = yes; then
2126   # We found a bogon in the path, so make sure we never use it.
2127   set dummy $ac_cv_prog_CC
2128   shift
2129   if test $# != 0; then
2130     # We chose a different compiler from the bogus one.
2131     # However, it has the same basename, so the bogon will be chosen
2132     # first if we set CC to just the basename; use the full file name.
2133     shift
2134     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2135   fi
2136 fi
2137 fi
2138 fi
2139 CC=$ac_cv_prog_CC
2140 if test -n "$CC"; then
2141   echo "$as_me:$LINENO: result: $CC" >&5
2142 echo "${ECHO_T}$CC" >&6
2143 else
2144   echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2146 fi
2147
2148 fi
2149 if test -z "$CC"; then
2150   if test -n "$ac_tool_prefix"; then
2151   for ac_prog in cl
2152   do
2153     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2155 echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   if test -n "$CC"; then
2161   ac_cv_prog_CC="$CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168   for ac_exec_ext in '' $ac_executable_extensions; do
2169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176
2177 fi
2178 fi
2179 CC=$ac_cv_prog_CC
2180 if test -n "$CC"; then
2181   echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6
2183 else
2184   echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6
2186 fi
2187
2188     test -n "$CC" && break
2189   done
2190 fi
2191 if test -z "$CC"; then
2192   ac_ct_CC=$CC
2193   for ac_prog in cl
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$ac_ct_CC"; then
2203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212     ac_cv_prog_ac_ct_CC="$ac_prog"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218
2219 fi
2220 fi
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6
2225 else
2226   echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2228 fi
2229
2230   test -n "$ac_ct_CC" && break
2231 done
2232
2233   CC=$ac_ct_CC
2234 fi
2235
2236 fi
2237
2238
2239 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: no acceptable C compiler found in \$PATH
2242 See \`config.log' for more details." >&2;}
2243    { (exit 1); exit 1; }; }
2244
2245 # Provide some information about the compiler.
2246 echo "$as_me:$LINENO:" \
2247      "checking for C compiler version" >&5
2248 ac_compiler=`set X $ac_compile; echo $2`
2249 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2250   (eval $ac_compiler --version </dev/null >&5) 2>&5
2251   ac_status=$?
2252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253   (exit $ac_status); }
2254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2255   (eval $ac_compiler -v </dev/null >&5) 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }
2259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2260   (eval $ac_compiler -V </dev/null >&5) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }
2264
2265 cat >conftest.$ac_ext <<_ACEOF
2266 #line $LINENO "configure"
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272
2273 int
2274 main ()
2275 {
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 ac_clean_files_save=$ac_clean_files
2282 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2283 # Try to create an executable without -o first, disregard a.out.
2284 # It will help us diagnose broken compilers, and finding out an intuition
2285 # of exeext.
2286 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2287 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2288 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2289 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2290   (eval $ac_link_default) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }; then
2294   # Find the output, starting from the most likely.  This scheme is
2295 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2296 # resort.
2297
2298 # Be careful to initialize this variable, since it used to be cached.
2299 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2300 ac_cv_exeext=
2301 # b.out is created by i960 compilers.
2302 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2303 do
2304   test -f "$ac_file" || continue
2305   case $ac_file in
2306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2307         ;;
2308     conftest.$ac_ext )
2309         # This is the source file.
2310         ;;
2311     [ab].out )
2312         # We found the default executable, but exeext='' is most
2313         # certainly right.
2314         break;;
2315     *.* )
2316         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2317         # FIXME: I believe we export ac_cv_exeext for Libtool,
2318         # but it would be cool to find out if it's true.  Does anybody
2319         # maintain Libtool? --akim.
2320         export ac_cv_exeext
2321         break;;
2322     * )
2323         break;;
2324   esac
2325 done
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: C compiler cannot create executables
2333 See \`config.log' for more details." >&2;}
2334    { (exit 77); exit 77; }; }
2335 fi
2336
2337 ac_exeext=$ac_cv_exeext
2338 echo "$as_me:$LINENO: result: $ac_file" >&5
2339 echo "${ECHO_T}$ac_file" >&6
2340
2341 # Check the compiler produces executables we can run.  If not, either
2342 # the compiler is broken, or we cross compile.
2343 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2344 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2345 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2346 # If not cross compiling, check that we can run a simple program.
2347 if test "$cross_compiling" != yes; then
2348   if { ac_try='./$ac_file'
2349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2350   (eval $ac_try) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); }; }; then
2354     cross_compiling=no
2355   else
2356     if test "$cross_compiling" = maybe; then
2357         cross_compiling=yes
2358     else
2359         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2360 If you meant to cross compile, use \`--host'.
2361 See \`config.log' for more details." >&5
2362 echo "$as_me: error: cannot run C compiled programs.
2363 If you meant to cross compile, use \`--host'.
2364 See \`config.log' for more details." >&2;}
2365    { (exit 1); exit 1; }; }
2366     fi
2367   fi
2368 fi
2369 echo "$as_me:$LINENO: result: yes" >&5
2370 echo "${ECHO_T}yes" >&6
2371
2372 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2373 ac_clean_files=$ac_clean_files_save
2374 # Check the compiler produces executables we can run.  If not, either
2375 # the compiler is broken, or we cross compile.
2376 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2377 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2378 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2379 echo "${ECHO_T}$cross_compiling" >&6
2380
2381 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2382 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2384   (eval $ac_link) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; then
2388   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2389 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2390 # work properly (i.e., refer to `conftest.exe'), while it won't with
2391 # `rm'.
2392 for ac_file in conftest.exe conftest conftest.*; do
2393   test -f "$ac_file" || continue
2394   case $ac_file in
2395     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2396     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2397           export ac_cv_exeext
2398           break;;
2399     * ) break;;
2400   esac
2401 done
2402 else
2403   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2406 See \`config.log' for more details." >&2;}
2407    { (exit 1); exit 1; }; }
2408 fi
2409
2410 rm -f conftest$ac_cv_exeext
2411 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2412 echo "${ECHO_T}$ac_cv_exeext" >&6
2413
2414 rm -f conftest.$ac_ext
2415 EXEEXT=$ac_cv_exeext
2416 ac_exeext=$EXEEXT
2417 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2418 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2419 if test "${ac_cv_objext+set}" = set; then
2420   echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422   cat >conftest.$ac_ext <<_ACEOF
2423 #line $LINENO "configure"
2424 /* confdefs.h.  */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h.  */
2429
2430 int
2431 main ()
2432 {
2433
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 rm -f conftest.o conftest.obj
2439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2440   (eval $ac_compile) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; then
2444   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2445   case $ac_file in
2446     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2447     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2448        break;;
2449   esac
2450 done
2451 else
2452   echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2456 See \`config.log' for more details." >&5
2457 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&2;}
2459    { (exit 1); exit 1; }; }
2460 fi
2461
2462 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2463 fi
2464 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2465 echo "${ECHO_T}$ac_cv_objext" >&6
2466 OBJEXT=$ac_cv_objext
2467 ac_objext=$OBJEXT
2468 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2469 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2470 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   cat >conftest.$ac_ext <<_ACEOF
2474 #line $LINENO "configure"
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480
2481 int
2482 main ()
2483 {
2484 #ifndef __GNUC__
2485        choke me
2486 #endif
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 rm -f conftest.$ac_objext
2493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2494   (eval $ac_compile) 2>&5
2495   ac_status=$?
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -s conftest.$ac_objext'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; }; then
2504   ac_compiler_gnu=yes
2505 else
2506   echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 ac_compiler_gnu=no
2510 fi
2511 rm -f conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2513
2514 fi
2515 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 CFLAGS="-g"
2521 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2522 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2523 if test "${ac_cv_prog_cc_g+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   cat >conftest.$ac_ext <<_ACEOF
2527 #line $LINENO "configure"
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533
2534 int
2535 main ()
2536 {
2537
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544   (eval $ac_compile) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); } &&
2548          { ac_try='test -s conftest.$ac_objext'
2549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550   (eval $ac_try) 2>&5
2551   ac_status=$?
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); }; }; then
2554   ac_cv_prog_cc_g=yes
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 ac_cv_prog_cc_g=no
2560 fi
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2562 fi
2563 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2564 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2565 if test "$ac_test_CFLAGS" = set; then
2566   CFLAGS=$ac_save_CFLAGS
2567 elif test $ac_cv_prog_cc_g = yes; then
2568   if test "$GCC" = yes; then
2569     CFLAGS="-g -O2"
2570   else
2571     CFLAGS="-g"
2572   fi
2573 else
2574   if test "$GCC" = yes; then
2575     CFLAGS="-O2"
2576   else
2577     CFLAGS=
2578   fi
2579 fi
2580 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2581 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2582 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   ac_cv_prog_cc_stdc=no
2586 ac_save_CC=$CC
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #line $LINENO "configure"
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594 #include <stdarg.h>
2595 #include <stdio.h>
2596 #include <sys/types.h>
2597 #include <sys/stat.h>
2598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2599 struct buf { int x; };
2600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601 static char *e (p, i)
2602      char **p;
2603      int i;
2604 {
2605   return p[i];
2606 }
2607 static char *f (char * (*g) (char **, int), char **p, ...)
2608 {
2609   char *s;
2610   va_list v;
2611   va_start (v,p);
2612   s = g (p, va_arg (v,int));
2613   va_end (v);
2614   return s;
2615 }
2616 int test (int i, double x);
2617 struct s1 {int (*f) (int a);};
2618 struct s2 {int (*f) (double a);};
2619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2620 int argc;
2621 char **argv;
2622 int
2623 main ()
2624 {
2625 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 # Don't try gcc -ansi; that turns off useful extensions and
2631 # breaks some systems' header files.
2632 # AIX                   -qlanglvl=ansi
2633 # Ultrix and OSF/1      -std1
2634 # HP-UX 10.20 and later -Ae
2635 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2636 # SVR4                  -Xc -D__EXTENSIONS__
2637 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2638 do
2639   CC="$ac_save_CC $ac_arg"
2640   rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>&5
2643   ac_status=$?
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); } &&
2646          { ac_try='test -s conftest.$ac_objext'
2647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648   (eval $ac_try) 2>&5
2649   ac_status=$?
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }; }; then
2652   ac_cv_prog_cc_stdc=$ac_arg
2653 break
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 fi
2659 rm -f conftest.$ac_objext
2660 done
2661 rm -f conftest.$ac_ext conftest.$ac_objext
2662 CC=$ac_save_CC
2663
2664 fi
2665
2666 case "x$ac_cv_prog_cc_stdc" in
2667   x|xno)
2668     echo "$as_me:$LINENO: result: none needed" >&5
2669 echo "${ECHO_T}none needed" >&6 ;;
2670   *)
2671     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2673     CC="$CC $ac_cv_prog_cc_stdc" ;;
2674 esac
2675
2676 # Some people use a C++ compiler to compile C.  Since we use `exit',
2677 # in C++ we need to declare it.  In case someone uses the same compiler
2678 # for both compiling C and C++ we need to have the C++ compiler decide
2679 # the declaration of exit, since it's the most demanding environment.
2680 cat >conftest.$ac_ext <<_ACEOF
2681 #ifndef __cplusplus
2682   choke me
2683 #endif
2684 _ACEOF
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687   (eval $ac_compile) 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); } &&
2691          { ac_try='test -s conftest.$ac_objext'
2692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; }; then
2697   for ac_declaration in \
2698    ''\
2699    '#include <stdlib.h>' \
2700    'extern "C" void std::exit (int) throw (); using std::exit;' \
2701    'extern "C" void std::exit (int); using std::exit;' \
2702    'extern "C" void exit (int) throw ();' \
2703    'extern "C" void exit (int);' \
2704    'void exit (int);'
2705 do
2706   cat >conftest.$ac_ext <<_ACEOF
2707 #line $LINENO "configure"
2708 /* confdefs.h.  */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h.  */
2713 #include <stdlib.h>
2714 $ac_declaration
2715 int
2716 main ()
2717 {
2718 exit (42);
2719   ;
2720   return 0;
2721 }
2722 _ACEOF
2723 rm -f conftest.$ac_objext
2724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725   (eval $ac_compile) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); } &&
2729          { ac_try='test -s conftest.$ac_objext'
2730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731   (eval $ac_try) 2>&5
2732   ac_status=$?
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); }; }; then
2735   :
2736 else
2737   echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740 continue
2741 fi
2742 rm -f conftest.$ac_objext conftest.$ac_ext
2743   cat >conftest.$ac_ext <<_ACEOF
2744 #line $LINENO "configure"
2745 /* confdefs.h.  */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h.  */
2750 $ac_declaration
2751 int
2752 main ()
2753 {
2754 exit (42);
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761   (eval $ac_compile) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -s conftest.$ac_objext'
2766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; }; then
2771   break
2772 else
2773   echo "$as_me: failed program was:" >&5
2774 sed 's/^/| /' conftest.$ac_ext >&5
2775
2776 fi
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778 done
2779 rm -f conftest*
2780 if test -n "$ac_declaration"; then
2781   echo '#ifdef __cplusplus' >>confdefs.h
2782   echo $ac_declaration      >>confdefs.h
2783   echo '#endif'             >>confdefs.h
2784 fi
2785
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 fi
2791 rm -f conftest.$ac_objext conftest.$ac_ext
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 rm -f .deps 2>/dev/null
2798 mkdir .deps 2>/dev/null
2799 if test -d .deps; then
2800   DEPDIR=.deps
2801 else
2802   # MS-DOS does not allow filenames that begin with a dot.
2803   DEPDIR=_deps
2804 fi
2805 rmdir .deps 2>/dev/null
2806
2807
2808           ac_config_commands="$ac_config_commands depfiles"
2809
2810
2811 am_make=${MAKE-make}
2812 cat > confinc << 'END'
2813 doit:
2814         @echo done
2815 END
2816 # If we don't find an include directive, just comment out the code.
2817 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2818 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2819 am__include="#"
2820 am__quote=
2821 _am_result=none
2822 # First try GNU make style include.
2823 echo "include confinc" > confmf
2824 # We grep out `Entering directory' and `Leaving directory'
2825 # messages which can occur if `w' ends up in MAKEFLAGS.
2826 # In particular we don't look at `^make:' because GNU make might
2827 # be invoked under some other name (usually "gmake"), in which
2828 # case it prints its new name instead of `make'.
2829 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2830    am__include=include
2831    am__quote=
2832    _am_result=GNU
2833 fi
2834 # Now try BSD make style include.
2835 if test "$am__include" = "#"; then
2836    echo '.include "confinc"' > confmf
2837    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2838       am__include=.include
2839       am__quote="\""
2840       _am_result=BSD
2841    fi
2842 fi
2843
2844
2845 echo "$as_me:$LINENO: result: $_am_result" >&5
2846 echo "${ECHO_T}$_am_result" >&6
2847 rm -f confinc confmf
2848
2849 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2850 if test "${enable_dependency_tracking+set}" = set; then
2851   enableval="$enable_dependency_tracking"
2852
2853 fi;
2854 if test "x$enable_dependency_tracking" != xno; then
2855   am_depcomp="$ac_aux_dir/depcomp"
2856   AMDEPBACKSLASH='\'
2857 fi
2858
2859
2860 if test "x$enable_dependency_tracking" != xno; then
2861   AMDEP_TRUE=
2862   AMDEP_FALSE='#'
2863 else
2864   AMDEP_TRUE='#'
2865   AMDEP_FALSE=
2866 fi
2867
2868
2869
2870
2871 depcc="$CC"   am_compiler_list=
2872
2873 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2874 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2875 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2876   echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2879   # We make a subdir and do the tests there.  Otherwise we can end up
2880   # making bogus files that we don't know about and never remove.  For
2881   # instance it was reported that on HP-UX the gcc test will end up
2882   # making a dummy file named `D' -- because `-MD' means `put the output
2883   # in D'.
2884   mkdir conftest.dir
2885   # Copy depcomp to subdir because otherwise we won't find it if we're
2886   # using a relative directory.
2887   cp "$am_depcomp" conftest.dir
2888   cd conftest.dir
2889
2890   am_cv_CC_dependencies_compiler_type=none
2891   if test "$am_compiler_list" = ""; then
2892      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2893   fi
2894   for depmode in $am_compiler_list; do
2895     # We need to recreate these files for each test, as the compiler may
2896     # overwrite some of them when testing with obscure command lines.
2897     # This happens at least with the AIX C compiler.
2898     echo '#include "conftest.h"' > conftest.c
2899     echo 'int i;' > conftest.h
2900     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2901
2902     case $depmode in
2903     nosideeffect)
2904       # after this tag, mechanisms are not by side-effect, so they'll
2905       # only be used when explicitly requested
2906       if test "x$enable_dependency_tracking" = xyes; then
2907         continue
2908       else
2909         break
2910       fi
2911       ;;
2912     none) break ;;
2913     esac
2914     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2915     # mode.  It turns out that the SunPro C++ compiler does not properly
2916     # handle `-M -o', and we need to detect this.
2917     if depmode=$depmode \
2918        source=conftest.c object=conftest.o \
2919        depfile=conftest.Po tmpdepfile=conftest.TPo \
2920        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2921        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2923       am_cv_CC_dependencies_compiler_type=$depmode
2924       break
2925     fi
2926   done
2927
2928   cd ..
2929   rm -rf conftest.dir
2930 else
2931   am_cv_CC_dependencies_compiler_type=none
2932 fi
2933
2934 fi
2935 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2936 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2937 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2938
2939
2940 # Find a good install program.  We prefer a C program (faster),
2941 # so one script is as good as another.  But avoid the broken or
2942 # incompatible versions:
2943 # SysV /etc/install, /usr/sbin/install
2944 # SunOS /usr/etc/install
2945 # IRIX /sbin/install
2946 # AIX /bin/install
2947 # AmigaOS /C/install, which installs bootblocks on floppy discs
2948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2951 # ./install, which can be erroneously created by make from ./install.sh.
2952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2954 if test -z "$INSTALL"; then
2955 if test "${ac_cv_path_install+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2960 do
2961   IFS=$as_save_IFS
2962   test -z "$as_dir" && as_dir=.
2963   # Account for people who put trailing slashes in PATH elements.
2964 case $as_dir/ in
2965   ./ | .// | /cC/* | \
2966   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2967   /usr/ucb/* ) ;;
2968   *)
2969     # OSF1 and SCO ODT 3.0 have their own names for install.
2970     # Don't use installbsd from OSF since it installs stuff as root
2971     # by default.
2972     for ac_prog in ginstall scoinst install; do
2973       for ac_exec_ext in '' $ac_executable_extensions; do
2974         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2975           if test $ac_prog = install &&
2976             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2977             # AIX install.  It has an incompatible calling convention.
2978             :
2979           elif test $ac_prog = install &&
2980             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2981             # program-specific install script used by HP pwplus--don't use.
2982             :
2983           else
2984             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2985             break 3
2986           fi
2987         fi
2988       done
2989     done
2990     ;;
2991 esac
2992 done
2993
2994
2995 fi
2996   if test "${ac_cv_path_install+set}" = set; then
2997     INSTALL=$ac_cv_path_install
2998   else
2999     # As a last resort, use the slow shell script.  We don't cache a
3000     # path for INSTALL within a source directory, because that will
3001     # break other packages using the cache if that directory is
3002     # removed, or if the path is relative.
3003     INSTALL=$ac_install_sh
3004   fi
3005 fi
3006 echo "$as_me:$LINENO: result: $INSTALL" >&5
3007 echo "${ECHO_T}$INSTALL" >&6
3008
3009 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3010 # It thinks the first close brace ends the variable substitution.
3011 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3012
3013 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3014
3015 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3016
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3023 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3024 # On Suns, sometimes $CPP names a directory.
3025 if test -n "$CPP" && test -d "$CPP"; then
3026   CPP=
3027 fi
3028 if test -z "$CPP"; then
3029   if test "${ac_cv_prog_CPP+set}" = set; then
3030   echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032       # Double quotes because CPP needs to be expanded
3033     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3034     do
3035       ac_preproc_ok=false
3036 for ac_c_preproc_warn_flag in '' yes
3037 do
3038   # Use a header file that comes with gcc, so configuring glibc
3039   # with a fresh cross-compiler works.
3040   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041   # <limits.h> exists even on freestanding compilers.
3042   # On the NeXT, cc -E runs the code through the compiler's parser,
3043   # not just through cpp. "Syntax error" is here to catch this case.
3044   cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3046 /* confdefs.h.  */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h.  */
3051 #ifdef __STDC__
3052 # include <limits.h>
3053 #else
3054 # include <assert.h>
3055 #endif
3056                      Syntax error
3057 _ACEOF
3058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3059   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3060   ac_status=$?
3061   grep -v '^ *+' conftest.er1 >conftest.err
3062   rm -f conftest.er1
3063   cat conftest.err >&5
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); } >/dev/null; then
3066   if test -s conftest.err; then
3067     ac_cpp_err=$ac_c_preproc_warn_flag
3068   else
3069     ac_cpp_err=
3070   fi
3071 else
3072   ac_cpp_err=yes
3073 fi
3074 if test -z "$ac_cpp_err"; then
3075   :
3076 else
3077   echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3079
3080   # Broken: fails on valid input.
3081 continue
3082 fi
3083 rm -f conftest.err conftest.$ac_ext
3084
3085   # OK, works on sane cases.  Now check whether non-existent headers
3086   # can be detected and how.
3087   cat >conftest.$ac_ext <<_ACEOF
3088 #line $LINENO "configure"
3089 /* confdefs.h.  */
3090 _ACEOF
3091 cat confdefs.h >>conftest.$ac_ext
3092 cat >>conftest.$ac_ext <<_ACEOF
3093 /* end confdefs.h.  */
3094 #include <ac_nonexistent.h>
3095 _ACEOF
3096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3098   ac_status=$?
3099   grep -v '^ *+' conftest.er1 >conftest.err
3100   rm -f conftest.er1
3101   cat conftest.err >&5
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); } >/dev/null; then
3104   if test -s conftest.err; then
3105     ac_cpp_err=$ac_c_preproc_warn_flag
3106   else
3107     ac_cpp_err=
3108   fi
3109 else
3110   ac_cpp_err=yes
3111 fi
3112 if test -z "$ac_cpp_err"; then
3113   # Broken: success on invalid input.
3114 continue
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119   # Passes both tests.
3120 ac_preproc_ok=:
3121 break
3122 fi
3123 rm -f conftest.err conftest.$ac_ext
3124
3125 done
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then
3129   break
3130 fi
3131
3132     done
3133     ac_cv_prog_CPP=$CPP
3134
3135 fi
3136   CPP=$ac_cv_prog_CPP
3137 else
3138   ac_cv_prog_CPP=$CPP
3139 fi
3140 echo "$as_me:$LINENO: result: $CPP" >&5
3141 echo "${ECHO_T}$CPP" >&6
3142 ac_preproc_ok=false
3143 for ac_c_preproc_warn_flag in '' yes
3144 do
3145   # Use a header file that comes with gcc, so configuring glibc
3146   # with a fresh cross-compiler works.
3147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148   # <limits.h> exists even on freestanding compilers.
3149   # On the NeXT, cc -E runs the code through the compiler's parser,
3150   # not just through cpp. "Syntax error" is here to catch this case.
3151   cat >conftest.$ac_ext <<_ACEOF
3152 #line $LINENO "configure"
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #ifdef __STDC__
3159 # include <limits.h>
3160 #else
3161 # include <assert.h>
3162 #endif
3163                      Syntax error
3164 _ACEOF
3165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } >/dev/null; then
3173   if test -s conftest.err; then
3174     ac_cpp_err=$ac_c_preproc_warn_flag
3175   else
3176     ac_cpp_err=
3177   fi
3178 else
3179   ac_cpp_err=yes
3180 fi
3181 if test -z "$ac_cpp_err"; then
3182   :
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187   # Broken: fails on valid input.
3188 continue
3189 fi
3190 rm -f conftest.err conftest.$ac_ext
3191
3192   # OK, works on sane cases.  Now check whether non-existent headers
3193   # can be detected and how.
3194   cat >conftest.$ac_ext <<_ACEOF
3195 #line $LINENO "configure"
3196 /* confdefs.h.  */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h.  */
3201 #include <ac_nonexistent.h>
3202 _ACEOF
3203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } >/dev/null; then
3211   if test -s conftest.err; then
3212     ac_cpp_err=$ac_c_preproc_warn_flag
3213   else
3214     ac_cpp_err=
3215   fi
3216 else
3217   ac_cpp_err=yes
3218 fi
3219 if test -z "$ac_cpp_err"; then
3220   # Broken: success on invalid input.
3221 continue
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226   # Passes both tests.
3227 ac_preproc_ok=:
3228 break
3229 fi
3230 rm -f conftest.err conftest.$ac_ext
3231
3232 done
3233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234 rm -f conftest.err conftest.$ac_ext
3235 if $ac_preproc_ok; then
3236   :
3237 else
3238   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239 See \`config.log' for more details." >&5
3240 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241 See \`config.log' for more details." >&2;}
3242    { (exit 1); exit 1; }; }
3243 fi
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251 # Extract the first word of "rm", so it can be a program name with args.
3252 set dummy rm; ac_word=$2
3253 echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3255 if test "${ac_cv_path_RM+set}" = set; then
3256   echo $ECHO_N "(cached) $ECHO_C" >&6
3257 else
3258   case $RM in
3259   [\\/]* | ?:[\\/]*)
3260   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3261   ;;
3262   *)
3263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266   IFS=$as_save_IFS
3267   test -z "$as_dir" && as_dir=.
3268   for ac_exec_ext in '' $ac_executable_extensions; do
3269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272     break 2
3273   fi
3274 done
3275 done
3276
3277   test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
3278   ;;
3279 esac
3280 fi
3281 RM=$ac_cv_path_RM
3282
3283 if test -n "$RM"; then
3284   echo "$as_me:$LINENO: result: $RM" >&5
3285 echo "${ECHO_T}$RM" >&6
3286 else
3287   echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6
3289 fi
3290
3291 # Extract the first word of "mv", so it can be a program name with args.
3292 set dummy mv; ac_word=$2
3293 echo "$as_me:$LINENO: checking for $ac_word" >&5
3294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295 if test "${ac_cv_path_MV+set}" = set; then
3296   echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298   case $MV in
3299   [\\/]* | ?:[\\/]*)
3300   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3301   ;;
3302   *)
3303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308   for ac_exec_ext in '' $ac_executable_extensions; do
3309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315 done
3316
3317   test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
3318   ;;
3319 esac
3320 fi
3321 MV=$ac_cv_path_MV
3322
3323 if test -n "$MV"; then
3324   echo "$as_me:$LINENO: result: $MV" >&5
3325 echo "${ECHO_T}$MV" >&6
3326 else
3327   echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3329 fi
3330
3331 # Extract the first word of "tar", so it can be a program name with args.
3332 set dummy tar; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_path_TAR+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   case $TAR in
3339   [\\/]* | ?:[\\/]*)
3340   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
3341   ;;
3342   *)
3343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348   for ac_exec_ext in '' $ac_executable_extensions; do
3349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
3351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355 done
3356
3357   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
3358   ;;
3359 esac
3360 fi
3361 TAR=$ac_cv_path_TAR
3362
3363 if test -n "$TAR"; then
3364   echo "$as_me:$LINENO: result: $TAR" >&5
3365 echo "${ECHO_T}$TAR" >&6
3366 else
3367   echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369 fi
3370
3371
3372
3373
3374
3375
3376 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3377 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3378 if test "${am_cv_prog_cc_stdc+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   am_cv_prog_cc_stdc=no
3382 ac_save_CC="$CC"
3383 # Don't try gcc -ansi; that turns off useful extensions and
3384 # breaks some systems' header files.
3385 # AIX                   -qlanglvl=ansi
3386 # Ultrix and OSF/1      -std1
3387 # HP-UX 10.20 and later -Ae
3388 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3389 # SVR4                  -Xc -D__EXTENSIONS__
3390 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391 do
3392   CC="$ac_save_CC $ac_arg"
3393   cat >conftest.$ac_ext <<_ACEOF
3394 #line $LINENO "configure"
3395 /* confdefs.h.  */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h.  */
3400 #include <stdarg.h>
3401 #include <stdio.h>
3402 #include <sys/types.h>
3403 #include <sys/stat.h>
3404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3405 struct buf { int x; };
3406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3407 static char *e (p, i)
3408      char **p;
3409      int i;
3410 {
3411   return p[i];
3412 }
3413 static char *f (char * (*g) (char **, int), char **p, ...)
3414 {
3415   char *s;
3416   va_list v;
3417   va_start (v,p);
3418   s = g (p, va_arg (v,int));
3419   va_end (v);
3420   return s;
3421 }
3422 int test (int i, double x);
3423 struct s1 {int (*f) (int a);};
3424 struct s2 {int (*f) (double a);};
3425 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3426 int argc;
3427 char **argv;
3428
3429 int
3430 main ()
3431 {
3432
3433 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441   (eval $ac_compile) 2>&5
3442   ac_status=$?
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -s conftest.$ac_objext'
3446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447   (eval $ac_try) 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }; }; then
3451   am_cv_prog_cc_stdc="$ac_arg"; break
3452 else
3453   echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 fi
3457 rm -f conftest.$ac_objext conftest.$ac_ext
3458 done
3459 CC="$ac_save_CC"
3460
3461 fi
3462
3463 if test -z "$am_cv_prog_cc_stdc"; then
3464   echo "$as_me:$LINENO: result: none needed" >&5
3465 echo "${ECHO_T}none needed" >&6
3466 else
3467   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3468 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3469 fi
3470 case "x$am_cv_prog_cc_stdc" in
3471   x|xno) ;;
3472   *) CC="$CC $am_cv_prog_cc_stdc" ;;
3473 esac
3474
3475
3476 echo "$as_me:$LINENO: checking for egrep" >&5
3477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3478 if test "${ac_cv_prog_egrep+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3482     then ac_cv_prog_egrep='grep -E'
3483     else ac_cv_prog_egrep='egrep'
3484     fi
3485 fi
3486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3488  EGREP=$ac_cv_prog_egrep
3489
3490
3491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3502                   inttypes.h stdint.h unistd.h
3503 do
3504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3505 echo "$as_me:$LINENO: checking for $ac_header" >&5
3506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   cat >conftest.$ac_ext <<_ACEOF
3511 #line $LINENO "configure"
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 $ac_includes_default
3518
3519 #include <$ac_header>
3520 _ACEOF
3521 rm -f conftest.$ac_objext
3522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523   (eval $ac_compile) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); } &&
3527          { ac_try='test -s conftest.$ac_objext'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   eval "$as_ac_Header=yes"
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 eval "$as_ac_Header=no"
3539 fi
3540 rm -f conftest.$ac_objext conftest.$ac_ext
3541 fi
3542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3545   cat >>confdefs.h <<_ACEOF
3546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3547 _ACEOF
3548
3549 fi
3550
3551 done
3552
3553
3554
3555
3556 echo "$as_me:$LINENO: checking for function prototypes" >&5
3557 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3558 if test "$am_cv_prog_cc_stdc" != no; then
3559   echo "$as_me:$LINENO: result: yes" >&5
3560 echo "${ECHO_T}yes" >&6
3561
3562 cat >>confdefs.h <<\_ACEOF
3563 #define PROTOTYPES 1
3564 _ACEOF
3565
3566   U= ANSI2KNR=
3567 else
3568   echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6
3570   U=_ ANSI2KNR=./ansi2knr
3571 fi
3572 # Ensure some checks needed by ansi2knr itself.
3573 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3574 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3575 if test "${ac_cv_header_stdc+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 #line $LINENO "configure"
3580 /* confdefs.h.  */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h.  */
3585 #include <stdlib.h>
3586 #include <stdarg.h>
3587 #include <string.h>
3588 #include <float.h>
3589
3590 int
3591 main ()
3592 {
3593
3594   ;
3595   return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600   (eval $ac_compile) 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } &&
3604          { ac_try='test -s conftest.$ac_objext'
3605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606   (eval $ac_try) 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; }; then
3610   ac_cv_header_stdc=yes
3611 else
3612   echo "$as_me: failed program was:" >&5
3613 sed 's/^/| /' conftest.$ac_ext >&5
3614
3615 ac_cv_header_stdc=no
3616 fi
3617 rm -f conftest.$ac_objext conftest.$ac_ext
3618
3619 if test $ac_cv_header_stdc = yes; then
3620   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3621   cat >conftest.$ac_ext <<_ACEOF
3622 #line $LINENO "configure"
3623 /* confdefs.h.  */
3624 _ACEOF
3625 cat confdefs.h >>conftest.$ac_ext
3626 cat >>conftest.$ac_ext <<_ACEOF
3627 /* end confdefs.h.  */
3628 #include <string.h>
3629
3630 _ACEOF
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632   $EGREP "memchr" >/dev/null 2>&1; then
3633   :
3634 else
3635   ac_cv_header_stdc=no
3636 fi
3637 rm -f conftest*
3638
3639 fi
3640
3641 if test $ac_cv_header_stdc = yes; then
3642   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3643   cat >conftest.$ac_ext <<_ACEOF
3644 #line $LINENO "configure"
3645 /* confdefs.h.  */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h.  */
3650 #include <stdlib.h>
3651
3652 _ACEOF
3653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3654   $EGREP "free" >/dev/null 2>&1; then
3655   :
3656 else
3657   ac_cv_header_stdc=no
3658 fi
3659 rm -f conftest*
3660
3661 fi
3662
3663 if test $ac_cv_header_stdc = yes; then
3664   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3665   if test "$cross_compiling" = yes; then
3666   :
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 #line $LINENO "configure"
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675 #include <ctype.h>
3676 #if ((' ' & 0x0FF) == 0x020)
3677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3679 #else
3680 # define ISLOWER(c) \
3681                    (('a' <= (c) && (c) <= 'i') \
3682                      || ('j' <= (c) && (c) <= 'r') \
3683                      || ('s' <= (c) && (c) <= 'z'))
3684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3685 #endif
3686
3687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3688 int
3689 main ()
3690 {
3691   int i;
3692   for (i = 0; i < 256; i++)
3693     if (XOR (islower (i), ISLOWER (i))
3694         || toupper (i) != TOUPPER (i))
3695       exit(2);
3696   exit (0);
3697 }
3698 _ACEOF
3699 rm -f conftest$ac_exeext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3701   (eval $ac_link) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706   (eval $ac_try) 2>&5
3707   ac_status=$?
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); }; }; then
3710   :
3711 else
3712   echo "$as_me: program exited with status $ac_status" >&5
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ( exit $ac_status )
3717 ac_cv_header_stdc=no
3718 fi
3719 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3720 fi
3721 fi
3722 fi
3723 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3724 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3725 if test $ac_cv_header_stdc = yes; then
3726
3727 cat >>confdefs.h <<\_ACEOF
3728 #define STDC_HEADERS 1
3729 _ACEOF
3730
3731 fi
3732
3733
3734 for ac_header in string.h
3735 do
3736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3738   echo "$as_me:$LINENO: checking for $ac_header" >&5
3739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 fi
3743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3745 else
3746   # Is the header compilable?
3747 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3748 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3749 cat >conftest.$ac_ext <<_ACEOF
3750 #line $LINENO "configure"
3751 /* confdefs.h.  */
3752 _ACEOF
3753 cat confdefs.h >>conftest.$ac_ext
3754 cat >>conftest.$ac_ext <<_ACEOF
3755 /* end confdefs.h.  */
3756 $ac_includes_default
3757 #include <$ac_header>
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3761   (eval $ac_compile) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); } &&
3765          { ac_try='test -s conftest.$ac_objext'
3766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767   (eval $ac_try) 2>&5
3768   ac_status=$?
3769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770   (exit $ac_status); }; }; then
3771   ac_header_compiler=yes
3772 else
3773   echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776 ac_header_compiler=no
3777 fi
3778 rm -f conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3780 echo "${ECHO_T}$ac_header_compiler" >&6
3781
3782 # Is the header present?
3783 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3784 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3785 cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792 #include <$ac_header>
3793 _ACEOF
3794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3796   ac_status=$?
3797   grep -v '^ *+' conftest.er1 >conftest.err
3798   rm -f conftest.er1
3799   cat conftest.err >&5
3800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801   (exit $ac_status); } >/dev/null; then
3802   if test -s conftest.err; then
3803     ac_cpp_err=$ac_c_preproc_warn_flag
3804   else
3805     ac_cpp_err=
3806   fi
3807 else
3808   ac_cpp_err=yes
3809 fi
3810 if test -z "$ac_cpp_err"; then
3811   ac_header_preproc=yes
3812 else
3813   echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816   ac_header_preproc=no
3817 fi
3818 rm -f conftest.err conftest.$ac_ext
3819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3820 echo "${ECHO_T}$ac_header_preproc" >&6
3821
3822 # So?  What about this header?
3823 case $ac_header_compiler:$ac_header_preproc in
3824   yes:no )
3825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3829     (
3830       cat <<\_ASBOX
3831 ## ------------------------------------ ##
3832 ## Report this to bug-autoconf@gnu.org. ##
3833 ## ------------------------------------ ##
3834 _ASBOX
3835     ) |
3836       sed "s/^/$as_me: WARNING:     /" >&2
3837     ;;
3838   no:yes )
3839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3841     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3842 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3845     (
3846       cat <<\_ASBOX
3847 ## ------------------------------------ ##
3848 ## Report this to bug-autoconf@gnu.org. ##
3849 ## ------------------------------------ ##
3850 _ASBOX
3851     ) |
3852       sed "s/^/$as_me: WARNING:     /" >&2
3853     ;;
3854 esac
3855 echo "$as_me:$LINENO: checking for $ac_header" >&5
3856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   eval "$as_ac_Header=$ac_header_preproc"
3861 fi
3862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3864
3865 fi
3866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3867   cat >>confdefs.h <<_ACEOF
3868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3869 _ACEOF
3870
3871 fi
3872
3873 done
3874
3875
3876 test "x$U" != "x" && { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3877 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3878    { (exit 1); exit 1; }; }
3879
3880 # Check whether --enable-shared or --disable-shared was given.
3881 if test "${enable_shared+set}" = set; then
3882   enableval="$enable_shared"
3883   p=${PACKAGE-default}
3884 case $enableval in
3885 yes) enable_shared=yes ;;
3886 no) enable_shared=no ;;
3887 *)
3888   enable_shared=no
3889   # Look at the argument we got.  We use all the common list separators.
3890   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3891   for pkg in $enableval; do
3892     if test "X$pkg" = "X$p"; then
3893       enable_shared=yes
3894     fi
3895   done
3896   IFS="$ac_save_ifs"
3897   ;;
3898 esac
3899 else
3900   enable_shared=yes
3901 fi;
3902 # Check whether --enable-static or --disable-static was given.
3903 if test "${enable_static+set}" = set; then
3904   enableval="$enable_static"
3905   p=${PACKAGE-default}
3906 case $enableval in
3907 yes) enable_static=yes ;;
3908 no) enable_static=no ;;
3909 *)
3910   enable_static=no
3911   # Look at the argument we got.  We use all the common list separators.
3912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3913   for pkg in $enableval; do
3914     if test "X$pkg" = "X$p"; then
3915       enable_static=yes
3916     fi
3917   done
3918   IFS="$ac_save_ifs"
3919   ;;
3920 esac
3921 else
3922   enable_static=yes
3923 fi;
3924 # Check whether --enable-fast-install or --disable-fast-install was given.
3925 if test "${enable_fast_install+set}" = set; then
3926   enableval="$enable_fast_install"
3927   p=${PACKAGE-default}
3928 case $enableval in
3929 yes) enable_fast_install=yes ;;
3930 no) enable_fast_install=no ;;
3931 *)
3932   enable_fast_install=no
3933   # Look at the argument we got.  We use all the common list separators.
3934   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3935   for pkg in $enableval; do
3936     if test "X$pkg" = "X$p"; then
3937       enable_fast_install=yes
3938     fi
3939   done
3940   IFS="$ac_save_ifs"
3941   ;;
3942 esac
3943 else
3944   enable_fast_install=yes
3945 fi;
3946 # Find the correct PATH separator.  Usually this is `:', but
3947 # DJGPP uses `;' like DOS.
3948 if test "X${PATH_SEPARATOR+set}" != Xset; then
3949   UNAME=${UNAME-`uname 2>/dev/null`}
3950   case X$UNAME in
3951     *-DOS) lt_cv_sys_path_separator=';' ;;
3952     *)     lt_cv_sys_path_separator=':' ;;
3953   esac
3954   PATH_SEPARATOR=$lt_cv_sys_path_separator
3955 fi
3956
3957
3958 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3959 if test "${with_gnu_ld+set}" = set; then
3960   withval="$with_gnu_ld"
3961   test "$withval" = no || with_gnu_ld=yes
3962 else
3963   with_gnu_ld=no
3964 fi;
3965 ac_prog=ld
3966 if test "$GCC" = yes; then
3967   # Check if gcc -print-prog-name=ld gives a path.
3968   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3969 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3970   case $host in
3971   *-*-mingw*)
3972     # gcc leaves a trailing carriage return which upsets mingw
3973     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3974   *)
3975     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3976   esac
3977   case $ac_prog in
3978     # Accept absolute paths.
3979     [\\/]* | [A-Za-z]:[\\/]*)
3980       re_direlt='/[^/][^/]*/\.\./'
3981       # Canonicalize the path of ld
3982       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3983       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3984         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3985       done
3986       test -z "$LD" && LD="$ac_prog"
3987       ;;
3988   "")
3989     # If it fails, then pretend we aren't using GCC.
3990     ac_prog=ld
3991     ;;
3992   *)
3993     # If it is relative, then search for the first ld in PATH.
3994     with_gnu_ld=unknown
3995     ;;
3996   esac
3997 elif test "$with_gnu_ld" = yes; then
3998   echo "$as_me:$LINENO: checking for GNU ld" >&5
3999 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4000 else
4001   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4002 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4003 fi
4004 if test "${lt_cv_path_LD+set}" = set; then
4005   echo $ECHO_N "(cached) $ECHO_C" >&6
4006 else
4007   if test -z "$LD"; then
4008   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4009   for ac_dir in $PATH; do
4010     test -z "$ac_dir" && ac_dir=.
4011     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4012       lt_cv_path_LD="$ac_dir/$ac_prog"
4013       # Check to see if the program is GNU ld.  I'd rather use --version,
4014       # but apparently some GNU ld's only accept -v.
4015       # Break only if it was the GNU/non-GNU ld that we prefer.
4016       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4017         test "$with_gnu_ld" != no && break
4018       else
4019         test "$with_gnu_ld" != yes && break
4020       fi
4021     fi
4022   done
4023   IFS="$ac_save_ifs"
4024 else
4025   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4026 fi
4027 fi
4028
4029 LD="$lt_cv_path_LD"
4030 if test -n "$LD"; then
4031   echo "$as_me:$LINENO: result: $LD" >&5
4032 echo "${ECHO_T}$LD" >&6
4033 else
4034   echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4036 fi
4037 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4038 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4039    { (exit 1); exit 1; }; }
4040 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4041 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4042 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4043   echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4046 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4047   lt_cv_prog_gnu_ld=yes
4048 else
4049   lt_cv_prog_gnu_ld=no
4050 fi
4051 fi
4052 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4053 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4054 with_gnu_ld=$lt_cv_prog_gnu_ld
4055
4056
4057 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4058 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4059 if test "${lt_cv_ld_reload_flag+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   lt_cv_ld_reload_flag='-r'
4063 fi
4064 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4065 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4066 reload_flag=$lt_cv_ld_reload_flag
4067 test -n "$reload_flag" && reload_flag=" $reload_flag"
4068
4069 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4071 if test "${lt_cv_path_NM+set}" = set; then
4072   echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074   if test -n "$NM"; then
4075   # Let the user override the test.
4076   lt_cv_path_NM="$NM"
4077 else
4078   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4080     test -z "$ac_dir" && ac_dir=.
4081     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4082     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4083       # Check to see if the nm accepts a BSD-compat flag.
4084       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4085       #   nm: unknown option "B" ignored
4086       # Tru64's nm complains that /dev/null is an invalid object file
4087       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4088         lt_cv_path_NM="$tmp_nm -B"
4089         break
4090       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4091         lt_cv_path_NM="$tmp_nm -p"
4092         break
4093       else
4094         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4095         continue # so that we can try to find one that supports BSD flags
4096       fi
4097     fi
4098   done
4099   IFS="$ac_save_ifs"
4100   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4101 fi
4102 fi
4103
4104 NM="$lt_cv_path_NM"
4105 echo "$as_me:$LINENO: result: $NM" >&5
4106 echo "${ECHO_T}$NM" >&6
4107
4108 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4109 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4110 if test "${lt_cv_path_SED+set}" = set; then
4111   echo $ECHO_N "(cached) $ECHO_C" >&6
4112 else
4113   # Loop through the user's path and test for sed and gsed.
4114 # Then use that list of sed's as ones to test for truncation.
4115 as_executable_p="test -f"
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119   IFS=$as_save_IFS
4120   test -z "$as_dir" && as_dir=.
4121   for ac_prog in sed gsed; do
4122     for ac_exec_ext in '' $ac_executable_extensions; do
4123       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4124         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
4125       fi
4126     done
4127   done
4128 done
4129
4130   # Create a temporary directory, and hook for its removal unless debugging.
4131 $debug ||
4132 {
4133   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4134   trap '{ (exit 1); exit 1; }' 1 2 13 15
4135 }
4136
4137 # Create a (secure) tmp directory for tmp files.
4138 : ${TMPDIR=/tmp}
4139 {
4140   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
4141   test -n "$tmp" && test -d "$tmp"
4142 }  ||
4143 {
4144   tmp=$TMPDIR/sed$$-$RANDOM
4145   (umask 077 && mkdir $tmp)
4146 } ||
4147 {
4148    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4149    { (exit 1); exit 1; }
4150 }
4151   _max=0
4152   _count=0
4153   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4154   # along with /bin/sed that truncates output.
4155   for _sed in $_sed_list /usr/xpg4/bin/sed; do
4156     test ! -f ${_sed} && break
4157     cat /dev/null > "$tmp/sed.in"
4158     _count=0
4159     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
4160     # Check for GNU sed and select it if it is found.
4161     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
4162       lt_cv_path_SED=${_sed}
4163       break
4164     fi
4165     while true; do
4166       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
4167       mv "$tmp/sed.tmp" "$tmp/sed.in"
4168       cp "$tmp/sed.in" "$tmp/sed.nl"
4169       echo >>"$tmp/sed.nl"
4170       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
4171       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
4172       # 40000 chars as input seems more than enough
4173       test $_count -gt 10 && break
4174       _count=`expr $_count + 1`
4175       if test $_count -gt $_max; then
4176         _max=$_count
4177         lt_cv_path_SED=$_sed
4178       fi
4179     done
4180   done
4181   rm -rf "$tmp"
4182
4183 fi
4184
4185 if test "X$SED" != "X"; then
4186   lt_cv_path_SED=$SED
4187 else
4188   SED=$lt_cv_path_SED
4189 fi
4190 echo "$as_me:$LINENO: result: $SED" >&5
4191 echo "${ECHO_T}$SED" >&6
4192
4193 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4194 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4195 LN_S=$as_ln_s
4196 if test "$LN_S" = "ln -s"; then
4197   echo "$as_me:$LINENO: result: yes" >&5
4198 echo "${ECHO_T}yes" >&6
4199 else
4200   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4201 echo "${ECHO_T}no, using $LN_S" >&6
4202 fi
4203
4204 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4205 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4206 if test "${lt_cv_deplibs_check_method+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   lt_cv_file_magic_cmd='$MAGIC_CMD'
4210 lt_cv_file_magic_test_file=
4211 lt_cv_deplibs_check_method='unknown'
4212 # Need to set the preceding variable on all platforms that support
4213 # interlibrary dependencies.
4214 # 'none' -- dependencies not supported.
4215 # `unknown' -- same as none, but documents that we really don't know.
4216 # 'pass_all' -- all dependencies passed with no checks.
4217 # 'test_compile' -- check by making test program.
4218 # 'file_magic [[regex]]' -- check by looking for files in library path
4219 # which responds to the $file_magic_cmd with a given egrep regex.
4220 # If you have `file' or equivalent on your system and you're not sure
4221 # whether `pass_all' will *always* work, you probably want this one.
4222
4223 case $host_os in
4224 aix4* | aix5*)
4225   lt_cv_deplibs_check_method=pass_all
4226   ;;
4227
4228 beos*)
4229   lt_cv_deplibs_check_method=pass_all
4230   ;;
4231
4232 bsdi4*)
4233   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4234   lt_cv_file_magic_cmd='/usr/bin/file -L'
4235   lt_cv_file_magic_test_file=/shlib/libc.so
4236   ;;
4237
4238 cygwin* | mingw* | pw32*)
4239   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4240   lt_cv_file_magic_cmd='$OBJDUMP -f'
4241   ;;
4242
4243 darwin* | rhapsody*)
4244   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4245   lt_cv_file_magic_cmd='/usr/bin/file -L'
4246   case "$host_os" in
4247   rhapsody* | darwin1.[012])
4248     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4249     ;;
4250   *) # Darwin 1.3 on
4251     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4252     ;;
4253   esac
4254   ;;
4255
4256 freebsd*)
4257   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4258     case $host_cpu in
4259     i*86 )
4260       # Not sure whether the presence of OpenBSD here was a mistake.
4261       # Let's accept both of them until this is cleared up.
4262       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4263       lt_cv_file_magic_cmd=/usr/bin/file
4264       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4265       ;;
4266     esac
4267   else
4268     lt_cv_deplibs_check_method=pass_all
4269   fi
4270   ;;
4271
4272 gnu*)
4273   lt_cv_deplibs_check_method=pass_all
4274   ;;
4275
4276 hpux10.20*|hpux11*)
4277   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4278   lt_cv_file_magic_cmd=/usr/bin/file
4279   lt_cv_file_magic_test_file=/usr/lib/libc.sl
4280   ;;
4281
4282 irix5* | irix6* | nonstopux*)
4283   case $host_os in
4284   irix5* | nonstopux*)
4285     # this will be overridden with pass_all, but let us keep it just in case
4286     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4287     ;;
4288   *)
4289     case $LD in
4290     *-32|*"-32 ") libmagic=32-bit;;
4291     *-n32|*"-n32 ") libmagic=N32;;
4292     *-64|*"-64 ") libmagic=64-bit;;
4293     *) libmagic=never-match;;
4294     esac
4295     # this will be overridden with pass_all, but let us keep it just in case
4296     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4297     ;;
4298   esac
4299   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4300   lt_cv_deplibs_check_method=pass_all
4301   ;;
4302
4303 # This must be Linux ELF.
4304 linux-gnu*)
4305   case $host_cpu in
4306   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
4307     lt_cv_deplibs_check_method=pass_all ;;
4308   *)
4309     # glibc up to 2.1.1 does not perform some relocations on ARM
4310     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4311   esac
4312   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4313   ;;
4314
4315 netbsd*)
4316   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4317     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4318   else
4319     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4320   fi
4321   ;;
4322
4323 newos6*)
4324   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4325   lt_cv_file_magic_cmd=/usr/bin/file
4326   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4327   ;;
4328
4329 openbsd*)
4330   lt_cv_file_magic_cmd=/usr/bin/file
4331   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4332   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4333     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4334   else
4335     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4336   fi
4337   ;;
4338
4339 osf3* | osf4* | osf5*)
4340   # this will be overridden with pass_all, but let us keep it just in case
4341   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4342   lt_cv_file_magic_test_file=/shlib/libc.so
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345
4346 sco3.2v5*)
4347   lt_cv_deplibs_check_method=pass_all
4348   ;;
4349
4350 solaris*)
4351   lt_cv_deplibs_check_method=pass_all
4352   lt_cv_file_magic_test_file=/lib/libc.so
4353   ;;
4354
4355 sysv5uw[78]* | sysv4*uw2*)
4356   lt_cv_deplibs_check_method=pass_all
4357   ;;
4358
4359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4360   case $host_vendor in
4361   motorola)
4362     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]'
4363     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4364     ;;
4365   ncr)
4366     lt_cv_deplibs_check_method=pass_all
4367     ;;
4368   sequent)
4369     lt_cv_file_magic_cmd='/bin/file'
4370     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4371     ;;
4372   sni)
4373     lt_cv_file_magic_cmd='/bin/file'
4374     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4375     lt_cv_file_magic_test_file=/lib/libc.so
4376     ;;
4377   siemens)
4378     lt_cv_deplibs_check_method=pass_all
4379     ;;
4380   esac
4381   ;;
4382 esac
4383
4384 fi
4385 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4386 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4387 file_magic_cmd=$lt_cv_file_magic_cmd
4388 deplibs_check_method=$lt_cv_deplibs_check_method
4389
4390
4391
4392
4393
4394
4395
4396 # Check for command to grab the raw symbol name followed by C symbol from nm.
4397 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4398 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402
4403 # These are sane defaults that work on at least a few old systems.
4404 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4405
4406 # Character class describing NM global symbol codes.
4407 symcode='[BCDEGRST]'
4408
4409 # Regexp to match symbols that can be accessed directly from C.
4410 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4411
4412 # Transform the above into a raw symbol and a C symbol.
4413 symxfrm='\1 \2\3 \3'
4414
4415 # Transform an extracted symbol line into a proper C declaration
4416 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4417
4418 # Transform an extracted symbol line into symbol name and symbol address
4419 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'"
4420
4421 # Define system-specific variables.
4422 case $host_os in
4423 aix*)
4424   symcode='[BCDT]'
4425   ;;
4426 cygwin* | mingw* | pw32*)
4427   symcode='[ABCDGISTW]'
4428   ;;
4429 hpux*) # Its linker distinguishes data from code symbols
4430   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4431   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'"
4432   ;;
4433 irix* | nonstopux*)
4434   symcode='[BCDEGRST]'
4435   ;;
4436 osf*)
4437   symcode='[BCDEGQRST]'
4438   ;;
4439 solaris* | sysv5*)
4440   symcode='[BDT]'
4441   ;;
4442 sysv4)
4443   symcode='[DFNSTU]'
4444   ;;
4445 esac
4446
4447 # Handle CRLF in mingw tool chain
4448 opt_cr=
4449 case $host_os in
4450 mingw*)
4451   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4452   ;;
4453 esac
4454
4455 # If we're using GNU nm, then use its standard symbol codes.
4456 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4457   symcode='[ABCDGISTW]'
4458 fi
4459
4460 # Try without a prefix undercore, then with it.
4461 for ac_symprfx in "" "_"; do
4462
4463   # Write the raw and C identifiers.
4464 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4465
4466   # Check to see that the pipe works correctly.
4467   pipe_works=no
4468   rm -f conftest*
4469   cat > conftest.$ac_ext <<EOF
4470 #ifdef __cplusplus
4471 extern "C" {
4472 #endif
4473 char nm_test_var;
4474 void nm_test_func(){}
4475 #ifdef __cplusplus
4476 }
4477 #endif
4478 int main(){nm_test_var='a';nm_test_func();return(0);}
4479 EOF
4480
4481   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482   (eval $ac_compile) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); }; then
4486     # Now try to grab the symbols.
4487     nlist=conftest.nm
4488     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4489   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4490   ac_status=$?
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } && test -s "$nlist"; then
4493       # Try sorting and uniquifying the output.
4494       if sort "$nlist" | uniq > "$nlist"T; then
4495         mv -f "$nlist"T "$nlist"
4496       else
4497         rm -f "$nlist"T
4498       fi
4499
4500       # Make sure that we snagged all the symbols we need.
4501       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4502         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4503           cat <<EOF > conftest.$ac_ext
4504 #ifdef __cplusplus
4505 extern "C" {
4506 #endif
4507
4508 EOF
4509           # Now generate the symbol file.
4510           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4511
4512           cat <<EOF >> conftest.$ac_ext
4513 #if defined (__STDC__) && __STDC__
4514 # define lt_ptr void *
4515 #else
4516 # define lt_ptr char *
4517 # define const
4518 #endif
4519
4520 /* The mapping between symbol names and symbols. */
4521 const struct {
4522   const char *name;
4523   lt_ptr address;
4524 }
4525 lt_preloaded_symbols[] =
4526 {
4527 EOF
4528           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4529           cat <<\EOF >> conftest.$ac_ext
4530   {0, (lt_ptr) 0}
4531 };
4532
4533 #ifdef __cplusplus
4534 }
4535 #endif
4536 EOF
4537           # Now try linking the two files.
4538           mv conftest.$ac_objext conftstm.$ac_objext
4539           save_LIBS="$LIBS"
4540           save_CFLAGS="$CFLAGS"
4541           LIBS="conftstm.$ac_objext"
4542           CFLAGS="$CFLAGS$no_builtin_flag"
4543           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4544   (eval $ac_link) 2>&5
4545   ac_status=$?
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } && test -s conftest$ac_exeext; then
4548             pipe_works=yes
4549           fi
4550           LIBS="$save_LIBS"
4551           CFLAGS="$save_CFLAGS"
4552         else
4553           echo "cannot find nm_test_func in $nlist" >&5
4554         fi
4555       else
4556         echo "cannot find nm_test_var in $nlist" >&5
4557       fi
4558     else
4559       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4560     fi
4561   else
4562     echo "$progname: failed program was:" >&5
4563     cat conftest.$ac_ext >&5
4564   fi
4565   rm -f conftest* conftst*
4566
4567   # Do not use the global_symbol_pipe unless it works.
4568   if test "$pipe_works" = yes; then
4569     break
4570   else
4571     lt_cv_sys_global_symbol_pipe=
4572   fi
4573 done
4574
4575 fi
4576
4577 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4578 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4579   global_symbol_to_cdecl=
4580   global_symbol_to_c_name_address=
4581 else
4582   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4583   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4584 fi
4585 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4586 then
4587   echo "$as_me:$LINENO: result: failed" >&5
4588 echo "${ECHO_T}failed" >&6
4589 else
4590   echo "$as_me:$LINENO: result: ok" >&5
4591 echo "${ECHO_T}ok" >&6
4592 fi
4593
4594
4595 for ac_header in dlfcn.h
4596 do
4597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4599   echo "$as_me:$LINENO: checking for $ac_header" >&5
4600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 fi
4604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4606 else
4607   # Is the header compilable?
4608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line $LINENO "configure"
4612 /* confdefs.h.  */
4613 _ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h.  */
4617 $ac_includes_default
4618 #include <$ac_header>
4619 _ACEOF
4620 rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622   (eval $ac_compile) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_header_compiler=yes
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_header_compiler=no
4638 fi
4639 rm -f conftest.$ac_objext conftest.$ac_ext
4640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4641 echo "${ECHO_T}$ac_header_compiler" >&6
4642
4643 # Is the header present?
4644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4646 cat >conftest.$ac_ext <<_ACEOF
4647 #line $LINENO "configure"
4648 /* confdefs.h.  */
4649 _ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h.  */
4653 #include <$ac_header>
4654 _ACEOF
4655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4657   ac_status=$?
4658   grep -v '^ *+' conftest.er1 >conftest.err
4659   rm -f conftest.er1
4660   cat conftest.err >&5
4661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662   (exit $ac_status); } >/dev/null; then
4663   if test -s conftest.err; then
4664     ac_cpp_err=$ac_c_preproc_warn_flag
4665   else
4666     ac_cpp_err=
4667   fi
4668 else
4669   ac_cpp_err=yes
4670 fi
4671 if test -z "$ac_cpp_err"; then
4672   ac_header_preproc=yes
4673 else
4674   echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677   ac_header_preproc=no
4678 fi
4679 rm -f conftest.err conftest.$ac_ext
4680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4681 echo "${ECHO_T}$ac_header_preproc" >&6
4682
4683 # So?  What about this header?
4684 case $ac_header_compiler:$ac_header_preproc in
4685   yes:no )
4686     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4688     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690     (
4691       cat <<\_ASBOX
4692 ## ------------------------------------ ##
4693 ## Report this to bug-autoconf@gnu.org. ##
4694 ## ------------------------------------ ##
4695 _ASBOX
4696     ) |
4697       sed "s/^/$as_me: WARNING:     /" >&2
4698     ;;
4699   no:yes )
4700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4702     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4704     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4706     (
4707       cat <<\_ASBOX
4708 ## ------------------------------------ ##
4709 ## Report this to bug-autoconf@gnu.org. ##
4710 ## ------------------------------------ ##
4711 _ASBOX
4712     ) |
4713       sed "s/^/$as_me: WARNING:     /" >&2
4714     ;;
4715 esac
4716 echo "$as_me:$LINENO: checking for $ac_header" >&5
4717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   eval "$as_ac_Header=$ac_header_preproc"
4722 fi
4723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4725
4726 fi
4727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4728   cat >>confdefs.h <<_ACEOF
4729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 _ACEOF
4731
4732 fi
4733
4734 done
4735
4736
4737
4738
4739
4740
4741 # Only perform the check for file, if the check method requires it
4742 case $deplibs_check_method in
4743 file_magic*)
4744   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4745     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4746 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   case $MAGIC_CMD in
4751   /*)
4752   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4753   ;;
4754   ?:/*)
4755   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4756   ;;
4757   *)
4758   ac_save_MAGIC_CMD="$MAGIC_CMD"
4759   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4760   ac_dummy="/usr/bin:$PATH"
4761   for ac_dir in $ac_dummy; do
4762     test -z "$ac_dir" && ac_dir=.
4763     if test -f $ac_dir/${ac_tool_prefix}file; then
4764       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4765       if test -n "$file_magic_test_file"; then
4766         case $deplibs_check_method in
4767         "file_magic "*)
4768           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4769           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4770           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4771             egrep "$file_magic_regex" > /dev/null; then
4772             :
4773           else
4774             cat <<EOF 1>&2
4775
4776 *** Warning: the command libtool uses to detect shared libraries,
4777 *** $file_magic_cmd, produces output that libtool cannot recognize.
4778 *** The result is that libtool may fail to recognize shared libraries
4779 *** as such.  This will affect the creation of libtool libraries that
4780 *** depend on shared libraries, but programs linked with such libtool
4781 *** libraries will work regardless of this problem.  Nevertheless, you
4782 *** may want to report the problem to your system manager and/or to
4783 *** bug-libtool@gnu.org
4784
4785 EOF
4786           fi ;;
4787         esac
4788       fi
4789       break
4790     fi
4791   done
4792   IFS="$ac_save_ifs"
4793   MAGIC_CMD="$ac_save_MAGIC_CMD"
4794   ;;
4795 esac
4796 fi
4797
4798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4799 if test -n "$MAGIC_CMD"; then
4800   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4801 echo "${ECHO_T}$MAGIC_CMD" >&6
4802 else
4803   echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6
4805 fi
4806
4807 if test -z "$lt_cv_path_MAGIC_CMD"; then
4808   if test -n "$ac_tool_prefix"; then
4809     echo "$as_me:$LINENO: checking for file" >&5
4810 echo $ECHO_N "checking for file... $ECHO_C" >&6
4811 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4812   echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814   case $MAGIC_CMD in
4815   /*)
4816   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4817   ;;
4818   ?:/*)
4819   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4820   ;;
4821   *)
4822   ac_save_MAGIC_CMD="$MAGIC_CMD"
4823   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4824   ac_dummy="/usr/bin:$PATH"
4825   for ac_dir in $ac_dummy; do
4826     test -z "$ac_dir" && ac_dir=.
4827     if test -f $ac_dir/file; then
4828       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4829       if test -n "$file_magic_test_file"; then
4830         case $deplibs_check_method in
4831         "file_magic "*)
4832           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4833           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4834           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4835             egrep "$file_magic_regex" > /dev/null; then
4836             :
4837           else
4838             cat <<EOF 1>&2
4839
4840 *** Warning: the command libtool uses to detect shared libraries,
4841 *** $file_magic_cmd, produces output that libtool cannot recognize.
4842 *** The result is that libtool may fail to recognize shared libraries
4843 *** as such.  This will affect the creation of libtool libraries that
4844 *** depend on shared libraries, but programs linked with such libtool
4845 *** libraries will work regardless of this problem.  Nevertheless, you
4846 *** may want to report the problem to your system manager and/or to
4847 *** bug-libtool@gnu.org
4848
4849 EOF
4850           fi ;;
4851         esac
4852       fi
4853       break
4854     fi
4855   done
4856   IFS="$ac_save_ifs"
4857   MAGIC_CMD="$ac_save_MAGIC_CMD"
4858   ;;
4859 esac
4860 fi
4861
4862 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4863 if test -n "$MAGIC_CMD"; then
4864   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4865 echo "${ECHO_T}$MAGIC_CMD" >&6
4866 else
4867   echo "$as_me:$LINENO: result: no" >&5
4868 echo "${ECHO_T}no" >&6
4869 fi
4870
4871   else
4872     MAGIC_CMD=:
4873   fi
4874 fi
4875
4876   fi
4877   ;;
4878 esac
4879
4880 if test -n "$ac_tool_prefix"; then
4881   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4883 echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885 if test "${ac_cv_prog_RANLIB+set}" = set; then
4886   echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888   if test -n "$RANLIB"; then
4889   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4898     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904
4905 fi
4906 fi
4907 RANLIB=$ac_cv_prog_RANLIB
4908 if test -n "$RANLIB"; then
4909   echo "$as_me:$LINENO: result: $RANLIB" >&5
4910 echo "${ECHO_T}$RANLIB" >&6
4911 else
4912   echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6
4914 fi
4915
4916 fi
4917 if test -z "$ac_cv_prog_RANLIB"; then
4918   ac_ct_RANLIB=$RANLIB
4919   # Extract the first word of "ranlib", so it can be a program name with args.
4920 set dummy ranlib; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   if test -n "$ac_ct_RANLIB"; then
4927   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_prog_ac_ct_RANLIB="ranlib"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942
4943   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4944 fi
4945 fi
4946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947 if test -n "$ac_ct_RANLIB"; then
4948   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4949 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4950 else
4951   echo "$as_me:$LINENO: result: no" >&5
4952 echo "${ECHO_T}no" >&6
4953 fi
4954
4955   RANLIB=$ac_ct_RANLIB
4956 else
4957   RANLIB="$ac_cv_prog_RANLIB"
4958 fi
4959
4960 if test -n "$ac_tool_prefix"; then
4961   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4962 set dummy ${ac_tool_prefix}strip; ac_word=$2
4963 echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965 if test "${ac_cv_prog_STRIP+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   if test -n "$STRIP"; then
4969   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4973 do
4974   IFS=$as_save_IFS
4975   test -z "$as_dir" && as_dir=.
4976   for ac_exec_ext in '' $ac_executable_extensions; do
4977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980     break 2
4981   fi
4982 done
4983 done
4984
4985 fi
4986 fi
4987 STRIP=$ac_cv_prog_STRIP
4988 if test -n "$STRIP"; then
4989   echo "$as_me:$LINENO: result: $STRIP" >&5
4990 echo "${ECHO_T}$STRIP" >&6
4991 else
4992   echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6
4994 fi
4995
4996 fi
4997 if test -z "$ac_cv_prog_STRIP"; then
4998   ac_ct_STRIP=$STRIP
4999   # Extract the first word of "strip", so it can be a program name with args.
5000 set dummy strip; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   if test -n "$ac_ct_STRIP"; then
5007   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5011 do
5012   IFS=$as_save_IFS
5013   test -z "$as_dir" && as_dir=.
5014   for ac_exec_ext in '' $ac_executable_extensions; do
5015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016     ac_cv_prog_ac_ct_STRIP="strip"
5017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5018     break 2
5019   fi
5020 done
5021 done
5022
5023   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5024 fi
5025 fi
5026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5027 if test -n "$ac_ct_STRIP"; then
5028   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5029 echo "${ECHO_T}$ac_ct_STRIP" >&6
5030 else
5031   echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6
5033 fi
5034
5035   STRIP=$ac_ct_STRIP
5036 else
5037   STRIP="$ac_cv_prog_STRIP"
5038 fi
5039
5040
5041 enable_dlopen=no
5042 enable_win32_dll=no
5043
5044 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5045 if test "${enable_libtool_lock+set}" = set; then
5046   enableval="$enable_libtool_lock"
5047
5048 fi;
5049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5050
5051 # Some flags need to be propagated to the compiler or linker for good
5052 # libtool support.
5053 case $host in
5054 *-*-irix6*)
5055   # Find out which ABI we are using.
5056   echo '#line 5056 "configure"' > conftest.$ac_ext
5057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; then
5062     case `/usr/bin/file conftest.$ac_objext` in
5063     *32-bit*)
5064       LD="${LD-ld} -32"
5065       ;;
5066     *N32*)
5067       LD="${LD-ld} -n32"
5068       ;;
5069     *64-bit*)
5070       LD="${LD-ld} -64"
5071       ;;
5072     esac
5073   fi
5074   rm -rf conftest*
5075   ;;
5076
5077 *-*-sco3.2v5*)
5078   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5079   SAVE_CFLAGS="$CFLAGS"
5080   CFLAGS="$CFLAGS -belf"
5081   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5082 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5083 if test "${lt_cv_cc_needs_belf+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086
5087
5088      ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094      cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101
5102 int
5103 main ()
5104 {
5105
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112   (eval $ac_link) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } &&
5116          { ac_try='test -s conftest$ac_exeext'
5117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118   (eval $ac_try) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }; }; then
5122   lt_cv_cc_needs_belf=yes
5123 else
5124   echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 lt_cv_cc_needs_belf=no
5128 fi
5129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5130      ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136 fi
5137 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5138 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5139   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5140     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5141     CFLAGS="$SAVE_CFLAGS"
5142   fi
5143   ;;
5144
5145
5146 esac
5147
5148 # Sed substitution that helps us do robust quoting.  It backslashifies
5149 # metacharacters that are still active within double-quoted strings.
5150 Xsed='sed -e s/^X//'
5151 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5152
5153 # Same as above, but do not quote variable references.
5154 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5155
5156 # Sed substitution to delay expansion of an escaped shell variable in a
5157 # double_quote_subst'ed string.
5158 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5159
5160 # Constants:
5161 rm="rm -f"
5162
5163 # Global variables:
5164 default_ofile=libtool
5165 can_build_shared=yes
5166
5167 # All known linkers require a `.a' archive for static linking (except M$VC,
5168 # which needs '.lib').
5169 libext=a
5170 ltmain="$ac_aux_dir/ltmain.sh"
5171 ofile="$default_ofile"
5172 with_gnu_ld="$lt_cv_prog_gnu_ld"
5173 need_locks="$enable_libtool_lock"
5174
5175 old_CC="$CC"
5176 old_CFLAGS="$CFLAGS"
5177
5178 # Set sane defaults for various variables
5179 test -z "$AR" && AR=ar
5180 test -z "$AR_FLAGS" && AR_FLAGS=cru
5181 test -z "$AS" && AS=as
5182 test -z "$CC" && CC=cc
5183 test -z "$DLLTOOL" && DLLTOOL=dlltool
5184 test -z "$LD" && LD=ld
5185 test -z "$LN_S" && LN_S="ln -s"
5186 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5187 test -z "$NM" && NM=nm
5188 test -z "$OBJDUMP" && OBJDUMP=objdump
5189 test -z "$RANLIB" && RANLIB=:
5190 test -z "$STRIP" && STRIP=:
5191 test -z "$ac_objext" && ac_objext=o
5192
5193 if test x"$host" != x"$build"; then
5194   ac_tool_prefix=${host_alias}-
5195 else
5196   ac_tool_prefix=
5197 fi
5198
5199 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5200 case $host_os in
5201 linux-gnu*) ;;
5202 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5203 esac
5204
5205 case $host_os in
5206 aix3*)
5207   # AIX sometimes has problems with the GCC collect2 program.  For some
5208   # reason, if we set the COLLECT_NAMES environment variable, the problems
5209   # vanish in a puff of smoke.
5210   if test "X${COLLECT_NAMES+set}" != Xset; then
5211     COLLECT_NAMES=
5212     export COLLECT_NAMES
5213   fi
5214   ;;
5215 esac
5216
5217 # Determine commands to create old-style static archives.
5218 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5219 old_postinstall_cmds='chmod 644 $oldlib'
5220 old_postuninstall_cmds=
5221
5222 if test -n "$RANLIB"; then
5223   case $host_os in
5224   openbsd*)
5225     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5226     ;;
5227   *)
5228     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5229     ;;
5230   esac
5231   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5232 fi
5233
5234 # Allow CC to be a program name with arguments.
5235 set dummy $CC
5236 compiler="$2"
5237
5238 echo "$as_me:$LINENO: checking for objdir" >&5
5239 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5240 rm -f .libs 2>/dev/null
5241 mkdir .libs 2>/dev/null
5242 if test -d .libs; then
5243   objdir=.libs
5244 else
5245   # MS-DOS does not allow filenames that begin with a dot.
5246   objdir=_libs
5247 fi
5248 rmdir .libs 2>/dev/null
5249 echo "$as_me:$LINENO: result: $objdir" >&5
5250 echo "${ECHO_T}$objdir" >&6
5251
5252
5253
5254 # Check whether --with-pic or --without-pic was given.
5255 if test "${with_pic+set}" = set; then
5256   withval="$with_pic"
5257   pic_mode="$withval"
5258 else
5259   pic_mode=default
5260 fi;
5261 test -z "$pic_mode" && pic_mode=default
5262
5263 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5264 # in isolation, and that seeing it set (from the cache) indicates that
5265 # the associated values are set (in the cache) correctly too.
5266 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5268 if test "${lt_cv_prog_cc_pic+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271    lt_cv_prog_cc_pic=
5272   lt_cv_prog_cc_shlib=
5273   lt_cv_prog_cc_wl=
5274   lt_cv_prog_cc_static=
5275   lt_cv_prog_cc_no_builtin=
5276   lt_cv_prog_cc_can_build_shared=$can_build_shared
5277
5278   if test "$GCC" = yes; then
5279     lt_cv_prog_cc_wl='-Wl,'
5280     lt_cv_prog_cc_static='-static'
5281
5282     case $host_os in
5283     aix*)
5284       # Below there is a dirty hack to force normal static linking with -ldl
5285       # The problem is because libdl dynamically linked with both libc and
5286       # libC (AIX C++ library), which obviously doesn't included in libraries
5287       # list by gcc. This cause undefined symbols with -static flags.
5288       # This hack allows C programs to be linked with "-static -ldl", but
5289       # not sure about C++ programs.
5290       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5291       ;;
5292     amigaos*)
5293       # FIXME: we need at least 68020 code to build shared libraries, but
5294       # adding the `-m68020' flag to GCC prevents building anything better,
5295       # like `-m68040'.
5296       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5297       ;;
5298     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5299       # PIC is the default for these OSes.
5300       ;;
5301     darwin* | rhapsody*)
5302       # PIC is the default on this platform
5303       # Common symbols not allowed in MH_DYLIB files
5304       lt_cv_prog_cc_pic='-fno-common'
5305       ;;
5306     cygwin* | mingw* | pw32* | os2*)
5307       # This hack is so that the source file can tell whether it is being
5308       # built for inclusion in a dll (and should export symbols for example).
5309       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5310       ;;
5311     sysv4*MP*)
5312       if test -d /usr/nec; then
5313          lt_cv_prog_cc_pic=-Kconform_pic
5314       fi
5315       ;;
5316     *)
5317       lt_cv_prog_cc_pic='-fPIC'
5318       ;;
5319     esac
5320   else
5321     # PORTME Check for PIC flags for the system compiler.
5322     case $host_os in
5323     aix3* | aix4* | aix5*)
5324       lt_cv_prog_cc_wl='-Wl,'
5325       # All AIX code is PIC.
5326       if test "$host_cpu" = ia64; then
5327         # AIX 5 now supports IA64 processor
5328         lt_cv_prog_cc_static='-Bstatic'
5329       else
5330         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5331       fi
5332       ;;
5333
5334     hpux9* | hpux10* | hpux11*)
5335       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5336       lt_cv_prog_cc_wl='-Wl,'
5337       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5338       lt_cv_prog_cc_pic='+Z'
5339       ;;
5340
5341     irix5* | irix6* | nonstopux*)
5342       lt_cv_prog_cc_wl='-Wl,'
5343       lt_cv_prog_cc_static='-non_shared'
5344       # PIC (with -KPIC) is the default.
5345       ;;
5346
5347     cygwin* | mingw* | pw32* | os2*)
5348       # This hack is so that the source file can tell whether it is being
5349       # built for inclusion in a dll (and should export symbols for example).
5350       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5351       ;;
5352
5353     newsos6)
5354       lt_cv_prog_cc_pic='-KPIC'
5355       lt_cv_prog_cc_static='-Bstatic'
5356       ;;
5357
5358     osf3* | osf4* | osf5*)
5359       # All OSF/1 code is PIC.
5360       lt_cv_prog_cc_wl='-Wl,'
5361       lt_cv_prog_cc_static='-non_shared'
5362       ;;
5363
5364     sco3.2v5*)
5365       lt_cv_prog_cc_pic='-Kpic'
5366       lt_cv_prog_cc_static='-dn'
5367       lt_cv_prog_cc_shlib='-belf'
5368       ;;
5369
5370     solaris*)
5371       lt_cv_prog_cc_pic='-KPIC'
5372       lt_cv_prog_cc_static='-Bstatic'
5373       lt_cv_prog_cc_wl='-Wl,'
5374       ;;
5375
5376     sunos4*)
5377       lt_cv_prog_cc_pic='-PIC'
5378       lt_cv_prog_cc_static='-Bstatic'
5379       lt_cv_prog_cc_wl='-Qoption ld '
5380       ;;
5381
5382     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5383       lt_cv_prog_cc_pic='-KPIC'
5384       lt_cv_prog_cc_static='-Bstatic'
5385       lt_cv_prog_cc_wl='-Wl,'
5386       ;;
5387
5388     uts4*)
5389       lt_cv_prog_cc_pic='-pic'
5390       lt_cv_prog_cc_static='-Bstatic'
5391       ;;
5392
5393     sysv4*MP*)
5394       if test -d /usr/nec ;then
5395         lt_cv_prog_cc_pic='-Kconform_pic'
5396         lt_cv_prog_cc_static='-Bstatic'
5397       fi
5398       ;;
5399
5400     *)
5401       lt_cv_prog_cc_can_build_shared=no
5402       ;;
5403     esac
5404   fi
5405
5406 fi
5407
5408 if test -z "$lt_cv_prog_cc_pic"; then
5409   echo "$as_me:$LINENO: result: none" >&5
5410 echo "${ECHO_T}none" >&6
5411 else
5412   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5413 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5414
5415   # Check to make sure the pic_flag actually works.
5416   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5417 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5418   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421       save_CFLAGS="$CFLAGS"
5422     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5423     cat >conftest.$ac_ext <<_ACEOF
5424 #line $LINENO "configure"
5425 /* confdefs.h.  */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h.  */
5430
5431 int
5432 main ()
5433 {
5434
5435   ;
5436   return 0;
5437 }
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5441   (eval $ac_compile) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } &&
5445          { ac_try='test -s conftest.$ac_objext'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451         case $host_os in
5452       hpux9* | hpux10* | hpux11*)
5453         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5454         # they create non-PIC objects.  So, if there were any warnings, we
5455         # assume that PIC is not supported.
5456         if test -s conftest.err; then
5457           lt_cv_prog_cc_pic_works=no
5458         else
5459           lt_cv_prog_cc_pic_works=yes
5460         fi
5461         ;;
5462       *)
5463         lt_cv_prog_cc_pic_works=yes
5464         ;;
5465       esac
5466
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471       lt_cv_prog_cc_pic_works=no
5472
5473 fi
5474 rm -f conftest.$ac_objext conftest.$ac_ext
5475     CFLAGS="$save_CFLAGS"
5476
5477 fi
5478
5479
5480   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5481     lt_cv_prog_cc_pic=
5482     lt_cv_prog_cc_can_build_shared=no
5483   else
5484     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5485   fi
5486
5487   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5488 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5489 fi
5490
5491 # Check for any special shared library compilation flags.
5492 if test -n "$lt_cv_prog_cc_shlib"; then
5493   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5494 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5495   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5496   else
5497    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5498 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5499     lt_cv_prog_cc_can_build_shared=no
5500   fi
5501 fi
5502
5503 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5504 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5505 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508     lt_cv_prog_cc_static_works=no
5509   save_LDFLAGS="$LDFLAGS"
5510   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5511   cat >conftest.$ac_ext <<_ACEOF
5512 #line $LINENO "configure"
5513 /* confdefs.h.  */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h.  */
5518
5519 int
5520 main ()
5521 {
5522
5523   ;
5524   return 0;
5525 }
5526 _ACEOF
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529   (eval $ac_link) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } &&
5533          { ac_try='test -s conftest$ac_exeext'
5534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535   (eval $ac_try) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   lt_cv_prog_cc_static_works=yes
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544 fi
5545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5546   LDFLAGS="$save_LDFLAGS"
5547
5548 fi
5549
5550
5551 # Belt *and* braces to stop my trousers falling down:
5552 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5553 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5554 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5555
5556 pic_flag="$lt_cv_prog_cc_pic"
5557 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5558 wl="$lt_cv_prog_cc_wl"
5559 link_static_flag="$lt_cv_prog_cc_static"
5560 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5561 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5562
5563
5564 # Check to see if options -o and -c are simultaneously supported by compiler
5565 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5566 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5567 if test "${lt_cv_compiler_c_o+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570
5571 $rm -r conftest 2>/dev/null
5572 mkdir conftest
5573 cd conftest
5574 echo "int some_variable = 0;" > conftest.$ac_ext
5575 mkdir out
5576 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5577 # that will create temporary files in the current directory regardless of
5578 # the output directory.  Thus, making CWD read-only will cause this test
5579 # to fail, enabling locking or at least warning the user not to do parallel
5580 # builds.
5581 chmod -w .
5582 save_CFLAGS="$CFLAGS"
5583 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5584 compiler_c_o=no
5585 if { (eval echo configure:5585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5586   # The compiler can only warn and ignore the option if not recognized
5587   # So say no if there are warnings
5588   if test -s out/conftest.err; then
5589     lt_cv_compiler_c_o=no
5590   else
5591     lt_cv_compiler_c_o=yes
5592   fi
5593 else
5594   # Append any errors to the config.log.
5595   cat out/conftest.err 1>&5
5596   lt_cv_compiler_c_o=no
5597 fi
5598 CFLAGS="$save_CFLAGS"
5599 chmod u+w .
5600 $rm conftest* out/*
5601 rmdir out
5602 cd ..
5603 rmdir conftest
5604 $rm -r conftest 2>/dev/null
5605
5606 fi
5607
5608 compiler_c_o=$lt_cv_compiler_c_o
5609 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5610 echo "${ECHO_T}$compiler_c_o" >&6
5611
5612 if test x"$compiler_c_o" = x"yes"; then
5613   # Check to see if we can write to a .lo
5614   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5615 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5616   if test "${lt_cv_compiler_o_lo+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619
5620   lt_cv_compiler_o_lo=no
5621   save_CFLAGS="$CFLAGS"
5622   CFLAGS="$CFLAGS -c -o conftest.lo"
5623   save_objext="$ac_objext"
5624   ac_objext=lo
5625   cat >conftest.$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 /* confdefs.h.  */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h.  */
5632
5633 int
5634 main ()
5635 {
5636 int some_variable = 0;
5637   ;
5638   return 0;
5639 }
5640 _ACEOF
5641 rm -f conftest.$ac_objext
5642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643   (eval $ac_compile) 2>&5
5644   ac_status=$?
5645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646   (exit $ac_status); } &&
5647          { ac_try='test -s conftest.$ac_objext'
5648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649   (eval $ac_try) 2>&5
5650   ac_status=$?
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); }; }; then
5653       # The compiler can only warn and ignore the option if not recognized
5654     # So say no if there are warnings
5655     if test -s conftest.err; then
5656       lt_cv_compiler_o_lo=no
5657     else
5658       lt_cv_compiler_o_lo=yes
5659     fi
5660
5661 else
5662   echo "$as_me: failed program was:" >&5
5663 sed 's/^/| /' conftest.$ac_ext >&5
5664
5665 fi
5666 rm -f conftest.$ac_objext conftest.$ac_ext
5667   ac_objext="$save_objext"
5668   CFLAGS="$save_CFLAGS"
5669
5670 fi
5671
5672   compiler_o_lo=$lt_cv_compiler_o_lo
5673   echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5674 echo "${ECHO_T}$compiler_o_lo" >&6
5675 else
5676   compiler_o_lo=no
5677 fi
5678
5679 # Check to see if we can do hard links to lock some files if needed
5680 hard_links="nottested"
5681 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5682   # do not overwrite the value of need_locks provided by the user
5683   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5684 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5685   hard_links=yes
5686   $rm conftest*
5687   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5688   touch conftest.a
5689   ln conftest.a conftest.b 2>&5 || hard_links=no
5690   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5691   echo "$as_me:$LINENO: result: $hard_links" >&5
5692 echo "${ECHO_T}$hard_links" >&6
5693   if test "$hard_links" = no; then
5694     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5695 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5696     need_locks=warn
5697   fi
5698 else
5699   need_locks=no
5700 fi
5701
5702 if test "$GCC" = yes; then
5703   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5704   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5705 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5706   echo "int some_variable = 0;" > conftest.$ac_ext
5707   save_CFLAGS="$CFLAGS"
5708   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5709   compiler_rtti_exceptions=no
5710   cat >conftest.$ac_ext <<_ACEOF
5711 #line $LINENO "configure"
5712 /* confdefs.h.  */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h.  */
5717
5718 int
5719 main ()
5720 {
5721 int some_variable = 0;
5722   ;
5723   return 0;
5724 }
5725 _ACEOF
5726 rm -f conftest.$ac_objext
5727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728   (eval $ac_compile) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -s conftest.$ac_objext'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; }; then
5738       # The compiler can only warn and ignore the option if not recognized
5739     # So say no if there are warnings
5740     if test -s conftest.err; then
5741       compiler_rtti_exceptions=no
5742     else
5743       compiler_rtti_exceptions=yes
5744     fi
5745
5746 else
5747   echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5749
5750 fi
5751 rm -f conftest.$ac_objext conftest.$ac_ext
5752   CFLAGS="$save_CFLAGS"
5753   echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5754 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5755
5756   if test "$compiler_rtti_exceptions" = "yes"; then
5757     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5758   else
5759     no_builtin_flag=' -fno-builtin'
5760   fi
5761 fi
5762
5763 # See if the linker supports building shared libraries.
5764 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5765 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5766
5767 allow_undefined_flag=
5768 no_undefined_flag=
5769 need_lib_prefix=unknown
5770 need_version=unknown
5771 # when you set need_version to no, make sure it does not cause -set_version
5772 # flags to be left without arguments
5773 archive_cmds=
5774 archive_expsym_cmds=
5775 old_archive_from_new_cmds=
5776 old_archive_from_expsyms_cmds=
5777 export_dynamic_flag_spec=
5778 whole_archive_flag_spec=
5779 thread_safe_flag_spec=
5780 hardcode_into_libs=no
5781 hardcode_libdir_flag_spec=
5782 hardcode_libdir_separator=
5783 hardcode_direct=no
5784 hardcode_minus_L=no
5785 hardcode_shlibpath_var=unsupported
5786 runpath_var=
5787 link_all_deplibs=unknown
5788 always_export_symbols=no
5789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5790 # include_expsyms should be a list of space-separated symbols to be *always*
5791 # included in the symbol list
5792 include_expsyms=
5793 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5794 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5795 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5796 # as well as any symbol that contains `d'.
5797 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5798 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5799 # platforms (ab)use it in PIC code, but their linkers get confused if
5800 # the symbol is explicitly referenced.  Since portable code cannot
5801 # rely on this symbol name, it's probably fine to never include it in
5802 # preloaded symbol tables.
5803 extract_expsyms_cmds=
5804
5805 case $host_os in
5806 cygwin* | mingw* | pw32*)
5807   # FIXME: the MSVC++ port hasn't been tested in a loooong time
5808   # When not using gcc, we currently assume that we are using
5809   # Microsoft Visual C++.
5810   if test "$GCC" != yes; then
5811     with_gnu_ld=no
5812   fi
5813   ;;
5814 openbsd*)
5815   with_gnu_ld=no
5816   ;;
5817 esac
5818
5819 ld_shlibs=yes
5820 if test "$with_gnu_ld" = yes; then
5821   # If archive_cmds runs LD, not CC, wlarc should be empty
5822   wlarc='${wl}'
5823
5824   # See if GNU ld supports shared libraries.
5825   case $host_os in
5826   aix3* | aix4* | aix5*)
5827     # On AIX, the GNU linker is very broken
5828     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5829     ld_shlibs=no
5830     cat <<EOF 1>&2
5831
5832 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5833 *** to be unable to reliably create shared libraries on AIX.
5834 *** Therefore, libtool is disabling shared libraries support.  If you
5835 *** really care for shared libraries, you may want to modify your PATH
5836 *** so that a non-GNU linker is found, and then restart.
5837
5838 EOF
5839     ;;
5840
5841   amigaos*)
5842     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)'
5843     hardcode_libdir_flag_spec='-L$libdir'
5844     hardcode_minus_L=yes
5845
5846     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5847     # that the semantics of dynamic libraries on AmigaOS, at least up
5848     # to version 4, is to share data among multiple programs linked
5849     # with the same dynamic library.  Since this doesn't match the
5850     # behavior of shared libraries on other platforms, we can use
5851     # them.
5852     ld_shlibs=no
5853     ;;
5854
5855   beos*)
5856     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5857       allow_undefined_flag=unsupported
5858       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5859       # support --undefined.  This deserves some investigation.  FIXME
5860       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5861     else
5862       ld_shlibs=no
5863     fi
5864     ;;
5865
5866   cygwin* | mingw* | pw32*)
5867     # hardcode_libdir_flag_spec is actually meaningless, as there is
5868     # no search path for DLLs.
5869     hardcode_libdir_flag_spec='-L$libdir'
5870     allow_undefined_flag=unsupported
5871     always_export_symbols=yes
5872
5873     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5874       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5875       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5876       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5877       else $CC -o impgen impgen.c ; fi)~
5878       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5879
5880     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5881
5882     # cygwin and mingw dlls have different entry points and sets of symbols
5883     # to exclude.
5884     # FIXME: what about values for MSVC?
5885     dll_entry=__cygwin_dll_entry@12
5886     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5887     case $host_os in
5888     mingw*)
5889       # mingw values
5890       dll_entry=_DllMainCRTStartup@12
5891       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5892       ;;
5893     esac
5894
5895     # mingw and cygwin differ, and it's simplest to just exclude the union
5896     # of the two symbol sets.
5897     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5898
5899     # recent cygwin and mingw systems supply a stub DllMain which the user
5900     # can override, but on older systems we have to supply one (in ltdll.c)
5901     if test "x$lt_cv_need_dllmain" = "xyes"; then
5902       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5903       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~
5904         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5905     else
5906       ltdll_obj=
5907       ltdll_cmds=
5908     fi
5909
5910     # Extract the symbol export list from an `--export-all' def file,
5911     # then regenerate the def file from the symbol export list, so that
5912     # the compiled dll only exports the symbol export list.
5913     # Be careful not to strip the DATA tag left be newer dlltools.
5914     export_symbols_cmds="$ltdll_cmds"'
5915       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5916       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5917
5918     # If the export-symbols file already is a .def file (1st line
5919     # is EXPORTS), use it as is.
5920     # If DATA tags from a recent dlltool are present, honour them!
5921     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5922         cp $export_symbols $output_objdir/$soname-def;
5923       else
5924         echo EXPORTS > $output_objdir/$soname-def;
5925         _lt_hint=1;
5926         cat $export_symbols | while read symbol; do
5927          set dummy \$symbol;
5928          case \$# in
5929            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5930            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5931            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5932          esac;
5933          _lt_hint=`expr 1 + \$_lt_hint`;
5934         done;
5935       fi~
5936       '"$ltdll_cmds"'
5937       $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~
5938       $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~
5939       $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~
5940       $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~
5941       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5942     ;;
5943
5944   netbsd*)
5945     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5946       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5947       wlarc=
5948     else
5949       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5950       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5951     fi
5952     ;;
5953
5954   solaris* | sysv5*)
5955     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5956       ld_shlibs=no
5957       cat <<EOF 1>&2
5958
5959 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5960 *** create shared libraries on Solaris systems.  Therefore, libtool
5961 *** is disabling shared libraries support.  We urge you to upgrade GNU
5962 *** binutils to release 2.9.1 or newer.  Another option is to modify
5963 *** your PATH or compiler configuration so that the native linker is
5964 *** used, and then restart.
5965
5966 EOF
5967     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5968       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5969       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5970     else
5971       ld_shlibs=no
5972     fi
5973     ;;
5974
5975   sunos4*)
5976     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5977     wlarc=
5978     hardcode_direct=yes
5979     hardcode_shlibpath_var=no
5980     ;;
5981
5982   *)
5983     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5984       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5985       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5986     else
5987       ld_shlibs=no
5988     fi
5989     ;;
5990   esac
5991
5992   if test "$ld_shlibs" = yes; then
5993     runpath_var=LD_RUN_PATH
5994     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5995     export_dynamic_flag_spec='${wl}--export-dynamic'
5996     case $host_os in
5997     cygwin* | mingw* | pw32*)
5998       # dlltool doesn't understand --whole-archive et. al.
5999       whole_archive_flag_spec=
6000       ;;
6001     *)
6002       # ancient GNU ld didn't support --whole-archive et. al.
6003       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6004         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6005       else
6006         whole_archive_flag_spec=
6007       fi
6008       ;;
6009     esac
6010   fi
6011 else
6012   # PORTME fill in a description of your system's linker (not GNU ld)
6013   case $host_os in
6014   aix3*)
6015     allow_undefined_flag=unsupported
6016     always_export_symbols=yes
6017     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'
6018     # Note: this linker hardcodes the directories in LIBPATH if there
6019     # are no directories specified by -L.
6020     hardcode_minus_L=yes
6021     if test "$GCC" = yes && test -z "$link_static_flag"; then
6022       # Neither direct hardcoding nor static linking is supported with a
6023       # broken collect2.
6024       hardcode_direct=unsupported
6025     fi
6026     ;;
6027
6028   aix4* | aix5*)
6029     if test "$host_cpu" = ia64; then
6030       # On IA64, the linker does run time linking by default, so we don't
6031       # have to do anything special.
6032       aix_use_runtimelinking=no
6033       exp_sym_flag='-Bexport'
6034       no_entry_flag=""
6035     else
6036       aix_use_runtimelinking=no
6037
6038       # Test if we are trying to use run time linking or normal
6039       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6040       # need to do runtime linking.
6041       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6042         for ld_flag in $LDFLAGS; do
6043           case $ld_flag in
6044           *-brtl*)
6045             aix_use_runtimelinking=yes
6046             break
6047           ;;
6048           esac
6049         done
6050       esac
6051
6052       exp_sym_flag='-bexport'
6053       no_entry_flag='-bnoentry'
6054     fi
6055
6056     # When large executables or shared objects are built, AIX ld can
6057     # have problems creating the table of contents.  If linking a library
6058     # or program results in "error TOC overflow" add -mminimal-toc to
6059     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6060     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6061
6062     hardcode_direct=yes
6063     archive_cmds=''
6064     hardcode_libdir_separator=':'
6065     if test "$GCC" = yes; then
6066       case $host_os in aix4.[012]|aix4.[012].*)
6067         collect2name=`${CC} -print-prog-name=collect2`
6068         if test -f "$collect2name" && \
6069           strings "$collect2name" | grep resolve_lib_name >/dev/null
6070         then
6071           # We have reworked collect2
6072           hardcode_direct=yes
6073         else
6074           # We have old collect2
6075           hardcode_direct=unsupported
6076           # It fails to find uninstalled libraries when the uninstalled
6077           # path is not listed in the libpath.  Setting hardcode_minus_L
6078           # to unsupported forces relinking
6079           hardcode_minus_L=yes
6080           hardcode_libdir_flag_spec='-L$libdir'
6081           hardcode_libdir_separator=
6082         fi
6083       esac
6084
6085       shared_flag='-shared'
6086     else
6087       # not using gcc
6088       if test "$host_cpu" = ia64; then
6089         shared_flag='${wl}-G'
6090       else
6091         if test "$aix_use_runtimelinking" = yes; then
6092           shared_flag='${wl}-G'
6093         else
6094           shared_flag='${wl}-bM:SRE'
6095         fi
6096       fi
6097     fi
6098
6099     # It seems that -bexpall can do strange things, so it is better to
6100     # generate a list of symbols to export.
6101     always_export_symbols=yes
6102     if test "$aix_use_runtimelinking" = yes; then
6103       # Warning - without using the other runtime loading flags (-brtl),
6104       # -berok will link without error, but may produce a broken library.
6105       allow_undefined_flag='-berok'
6106       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6107       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"
6108     else
6109       if test "$host_cpu" = ia64; then
6110         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6111         allow_undefined_flag="-z nodefs"
6112         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"
6113       else
6114         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6115         # Warning - without using the other run time loading flags,
6116         # -berok will link without error, but may produce a broken library.
6117         allow_undefined_flag='${wl}-berok'
6118         # This is a bit strange, but is similar to how AIX traditionally builds
6119         # it's shared libraries.
6120         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'
6121       fi
6122     fi
6123     ;;
6124
6125   amigaos*)
6126     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)'
6127     hardcode_libdir_flag_spec='-L$libdir'
6128     hardcode_minus_L=yes
6129     # see comment about different semantics on the GNU ld section
6130     ld_shlibs=no
6131     ;;
6132
6133   cygwin* | mingw* | pw32*)
6134     # When not using gcc, we currently assume that we are using
6135     # Microsoft Visual C++.
6136     # hardcode_libdir_flag_spec is actually meaningless, as there is
6137     # no search path for DLLs.
6138     hardcode_libdir_flag_spec=' '
6139     allow_undefined_flag=unsupported
6140     # Tell ltmain to make .lib files, not .a files.
6141     libext=lib
6142     # FIXME: Setting linknames here is a bad hack.
6143     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6144     # The linker will automatically build a .lib file if we build a DLL.
6145     old_archive_from_new_cmds='true'
6146     # FIXME: Should let the user specify the lib program.
6147     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6148     fix_srcfile_path='`cygpath -w "$srcfile"`'
6149     ;;
6150
6151   darwin* | rhapsody*)
6152     case "$host_os" in
6153     rhapsody* | darwin1.[012])
6154       allow_undefined_flag='-undefined suppress'
6155       ;;
6156     *) # Darwin 1.3 on
6157       allow_undefined_flag='-flat_namespace -undefined suppress'
6158       ;;
6159     esac
6160     # FIXME: Relying on posixy $() will cause problems for
6161     #        cross-compilation, but unfortunately the echo tests do not
6162     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6163     #        `"' quotes if we put them in here... so don't!
6164     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6165     # We need to add '_' to the symbols in $export_symbols first
6166     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6167     hardcode_direct=yes
6168     hardcode_shlibpath_var=no
6169     whole_archive_flag_spec='-all_load $convenience'
6170     ;;
6171
6172   freebsd1*)
6173     ld_shlibs=no
6174     ;;
6175
6176   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6177   # support.  Future versions do this automatically, but an explicit c++rt0.o
6178   # does not break anything, and helps significantly (at the cost of a little
6179   # extra space).
6180   freebsd2.2*)
6181     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6182     hardcode_libdir_flag_spec='-R$libdir'
6183     hardcode_direct=yes
6184     hardcode_shlibpath_var=no
6185     ;;
6186
6187   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6188   freebsd2*)
6189     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6190     hardcode_direct=yes
6191     hardcode_minus_L=yes
6192     hardcode_shlibpath_var=no
6193     ;;
6194
6195   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6196   freebsd*)
6197     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6198     hardcode_libdir_flag_spec='-R$libdir'
6199     hardcode_direct=yes
6200     hardcode_shlibpath_var=no
6201     ;;
6202
6203   hpux9* | hpux10* | hpux11*)
6204     case $host_os in
6205     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' ;;
6206     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6207     esac
6208     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6209     hardcode_libdir_separator=:
6210     hardcode_direct=yes
6211     hardcode_minus_L=yes # Not in the search PATH, but as the default
6212                          # location of the library.
6213     export_dynamic_flag_spec='${wl}-E'
6214     ;;
6215
6216   irix5* | irix6* | nonstopux*)
6217     if test "$GCC" = yes; then
6218       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'
6219       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6220     else
6221       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'
6222       hardcode_libdir_flag_spec='-rpath $libdir'
6223     fi
6224     hardcode_libdir_separator=:
6225     link_all_deplibs=yes
6226     ;;
6227
6228   netbsd*)
6229     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6230       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6231     else
6232       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6233     fi
6234     hardcode_libdir_flag_spec='-R$libdir'
6235     hardcode_direct=yes
6236     hardcode_shlibpath_var=no
6237     ;;
6238
6239   newsos6)
6240     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6241     hardcode_direct=yes
6242     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6243     hardcode_libdir_separator=:
6244     hardcode_shlibpath_var=no
6245     ;;
6246
6247   openbsd*)
6248     hardcode_direct=yes
6249     hardcode_shlibpath_var=no
6250     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6251       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6252       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6253       export_dynamic_flag_spec='${wl}-E'
6254     else
6255       case "$host_os" in
6256       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6257         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6258         hardcode_libdir_flag_spec='-R$libdir'
6259         ;;
6260       *)
6261         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6262         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6263         ;;
6264       esac
6265     fi
6266     ;;
6267
6268   os2*)
6269     hardcode_libdir_flag_spec='-L$libdir'
6270     hardcode_minus_L=yes
6271     allow_undefined_flag=unsupported
6272     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'
6273     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6274     ;;
6275
6276   osf3*)
6277     if test "$GCC" = yes; then
6278       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6279       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'
6280     else
6281       allow_undefined_flag=' -expect_unresolved \*'
6282       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'
6283     fi
6284     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6285     hardcode_libdir_separator=:
6286     ;;
6287
6288   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6289     if test "$GCC" = yes; then
6290       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6291       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'
6292       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6293     else
6294       allow_undefined_flag=' -expect_unresolved \*'
6295       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'
6296       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6297       $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'
6298
6299       #Both c and cxx compiler support -rpath directly
6300       hardcode_libdir_flag_spec='-rpath $libdir'
6301     fi
6302     hardcode_libdir_separator=:
6303     ;;
6304
6305   sco3.2v5*)
6306     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6307     hardcode_shlibpath_var=no
6308     runpath_var=LD_RUN_PATH
6309     hardcode_runpath_var=yes
6310     export_dynamic_flag_spec='${wl}-Bexport'
6311     ;;
6312
6313   solaris*)
6314     # gcc --version < 3.0 without binutils cannot create self contained
6315     # shared libraries reliably, requiring libgcc.a to resolve some of
6316     # the object symbols generated in some cases.  Libraries that use
6317     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6318     # a copy of libgcc.a into every shared library to guarantee resolving
6319     # such symbols causes other problems:  According to Tim Van Holder
6320     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6321     # (to the application) exception stack for one thing.
6322     no_undefined_flag=' -z defs'
6323     if test "$GCC" = yes; then
6324       case `$CC --version 2>/dev/null` in
6325       [12].*)
6326         cat <<EOF 1>&2
6327
6328 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6329 *** create self contained shared libraries on Solaris systems, without
6330 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6331 *** -no-undefined support, which will at least allow you to build shared
6332 *** libraries.  However, you may find that when you link such libraries
6333 *** into an application without using GCC, you have to manually add
6334 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6335 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6336 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6337
6338 EOF
6339         no_undefined_flag=
6340         ;;
6341       esac
6342     fi
6343     # $CC -shared without GNU ld will not create a library from C++
6344     # object files and a static libstdc++, better avoid it by now
6345     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6346     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6347                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6348     hardcode_libdir_flag_spec='-R$libdir'
6349     hardcode_shlibpath_var=no
6350     case $host_os in
6351     solaris2.[0-5] | solaris2.[0-5].*) ;;
6352     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6353       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6354     esac
6355     link_all_deplibs=yes
6356     ;;
6357
6358   sunos4*)
6359     if test "x$host_vendor" = xsequent; then
6360       # Use $CC to link under sequent, because it throws in some extra .o
6361       # files that make .init and .fini sections work.
6362       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6363     else
6364       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6365     fi
6366     hardcode_libdir_flag_spec='-L$libdir'
6367     hardcode_direct=yes
6368     hardcode_minus_L=yes
6369     hardcode_shlibpath_var=no
6370     ;;
6371
6372   sysv4)
6373     case $host_vendor in
6374       sni)
6375         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6376         hardcode_direct=yes # is this really true???
6377         ;;
6378       siemens)
6379         ## LD is ld it makes a PLAMLIB
6380         ## CC just makes a GrossModule.
6381         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6382         reload_cmds='$CC -r -o $output$reload_objs'
6383         hardcode_direct=no
6384         ;;
6385       motorola)
6386         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6387         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6388         ;;
6389     esac
6390     runpath_var='LD_RUN_PATH'
6391     hardcode_shlibpath_var=no
6392     ;;
6393
6394   sysv4.3*)
6395     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6396     hardcode_shlibpath_var=no
6397     export_dynamic_flag_spec='-Bexport'
6398     ;;
6399
6400   sysv5*)
6401     no_undefined_flag=' -z text'
6402     # $CC -shared without GNU ld will not create a library from C++
6403     # object files and a static libstdc++, better avoid it by now
6404     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6405     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6406                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6407     hardcode_libdir_flag_spec=
6408     hardcode_shlibpath_var=no
6409     runpath_var='LD_RUN_PATH'
6410     ;;
6411
6412   uts4*)
6413     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6414     hardcode_libdir_flag_spec='-L$libdir'
6415     hardcode_shlibpath_var=no
6416     ;;
6417
6418   dgux*)
6419     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6420     hardcode_libdir_flag_spec='-L$libdir'
6421     hardcode_shlibpath_var=no
6422     ;;
6423
6424   sysv4*MP*)
6425     if test -d /usr/nec; then
6426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6427       hardcode_shlibpath_var=no
6428       runpath_var=LD_RUN_PATH
6429       hardcode_runpath_var=yes
6430       ld_shlibs=yes
6431     fi
6432     ;;
6433
6434   sysv4.2uw2*)
6435     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6436     hardcode_direct=yes
6437     hardcode_minus_L=no
6438     hardcode_shlibpath_var=no
6439     hardcode_runpath_var=yes
6440     runpath_var=LD_RUN_PATH
6441     ;;
6442
6443   sysv5uw7* | unixware7*)
6444     no_undefined_flag='${wl}-z ${wl}text'
6445     if test "$GCC" = yes; then
6446       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6447     else
6448       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6449     fi
6450     runpath_var='LD_RUN_PATH'
6451     hardcode_shlibpath_var=no
6452     ;;
6453
6454   *)
6455     ld_shlibs=no
6456     ;;
6457   esac
6458 fi
6459 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6460 echo "${ECHO_T}$ld_shlibs" >&6
6461 test "$ld_shlibs" = no && can_build_shared=no
6462
6463 # Check hardcoding attributes.
6464 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6465 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6466 hardcode_action=
6467 if test -n "$hardcode_libdir_flag_spec" || \
6468    test -n "$runpath_var"; then
6469
6470   # We can hardcode non-existant directories.
6471   if test "$hardcode_direct" != no &&
6472      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6473      # have to relink, otherwise we might link with an installed library
6474      # when we should be linking with a yet-to-be-installed one
6475      ## test "$hardcode_shlibpath_var" != no &&
6476      test "$hardcode_minus_L" != no; then
6477     # Linking always hardcodes the temporary library directory.
6478     hardcode_action=relink
6479   else
6480     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6481     hardcode_action=immediate
6482   fi
6483 else
6484   # We cannot hardcode anything, or else we can only hardcode existing
6485   # directories.
6486   hardcode_action=unsupported
6487 fi
6488 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6489 echo "${ECHO_T}$hardcode_action" >&6
6490
6491 striplib=
6492 old_striplib=
6493 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6494 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6495 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6496   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6497   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6498   echo "$as_me:$LINENO: result: yes" >&5
6499 echo "${ECHO_T}yes" >&6
6500 else
6501   echo "$as_me:$LINENO: result: no" >&5
6502 echo "${ECHO_T}no" >&6
6503 fi
6504
6505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6506 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6507
6508 # PORTME Fill in your ld.so characteristics
6509 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6510 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6511 library_names_spec=
6512 libname_spec='lib$name'
6513 soname_spec=
6514 postinstall_cmds=
6515 postuninstall_cmds=
6516 finish_cmds=
6517 finish_eval=
6518 shlibpath_var=
6519 shlibpath_overrides_runpath=unknown
6520 version_type=none
6521 dynamic_linker="$host_os ld.so"
6522 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6523 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6524
6525 case $host_os in
6526 aix3*)
6527   version_type=linux
6528   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6529   shlibpath_var=LIBPATH
6530
6531   # AIX has no versioning support, so we append a major version to the name.
6532   soname_spec='${libname}${release}.so$major'
6533   ;;
6534
6535 aix4* | aix5*)
6536   version_type=linux
6537   need_lib_prefix=no
6538   need_version=no
6539   hardcode_into_libs=yes
6540   if test "$host_cpu" = ia64; then
6541     # AIX 5 supports IA64
6542     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6543     shlibpath_var=LD_LIBRARY_PATH
6544   else
6545     # With GCC up to 2.95.x, collect2 would create an import file
6546     # for dependence libraries.  The import file would start with
6547     # the line `#! .'.  This would cause the generated library to
6548     # depend on `.', always an invalid library.  This was fixed in
6549     # development snapshots of GCC prior to 3.0.
6550     case $host_os in
6551       aix4 | aix4.[01] | aix4.[01].*)
6552         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6553              echo ' yes '
6554              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6555           :
6556         else
6557           can_build_shared=no
6558         fi
6559         ;;
6560     esac
6561     # AIX (on Power*) has no versioning support, so currently we can
6562     # not hardcode correct soname into executable. Probably we can
6563     # add versioning support to collect2, so additional links can
6564     # be useful in future.
6565     if test "$aix_use_runtimelinking" = yes; then
6566       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6567       # instead of lib<name>.a to let people know that these are not
6568       # typical AIX shared libraries.
6569       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6570     else
6571       # We preserve .a as extension for shared libraries through AIX4.2
6572       # and later when we are not doing run time linking.
6573       library_names_spec='${libname}${release}.a $libname.a'
6574       soname_spec='${libname}${release}.so$major'
6575     fi
6576     shlibpath_var=LIBPATH
6577   fi
6578   hardcode_into_libs=yes
6579   ;;
6580
6581 amigaos*)
6582   library_names_spec='$libname.ixlibrary $libname.a'
6583   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6584   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'
6585   ;;
6586
6587 beos*)
6588   library_names_spec='${libname}.so'
6589   dynamic_linker="$host_os ld.so"
6590   shlibpath_var=LIBRARY_PATH
6591   ;;
6592
6593 bsdi4*)
6594   version_type=linux
6595   need_version=no
6596   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6597   soname_spec='${libname}${release}.so$major'
6598   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6599   shlibpath_var=LD_LIBRARY_PATH
6600   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6601   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6602   export_dynamic_flag_spec=-rdynamic
6603   # the default ld.so.conf also contains /usr/contrib/lib and
6604   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6605   # libtool to hard-code these into programs
6606   ;;
6607
6608 cygwin* | mingw* | pw32*)
6609   version_type=windows
6610   need_version=no
6611   need_lib_prefix=no
6612   case $GCC,$host_os in
6613   yes,cygwin*)
6614     library_names_spec='$libname.dll.a'
6615     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6616     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6617       dldir=$destdir/`dirname \$dlpath`~
6618       test -d \$dldir || mkdir -p \$dldir~
6619       $install_prog .libs/$dlname \$dldir/$dlname'
6620     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6621       dlpath=$dir/\$dldll~
6622        $rm \$dlpath'
6623     ;;
6624   yes,mingw*)
6625     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6626     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6627     ;;
6628   yes,pw32*)
6629     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6630     ;;
6631   *)
6632     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6633     ;;
6634   esac
6635   dynamic_linker='Win32 ld.exe'
6636   # FIXME: first we should search . and the directory the executable is in
6637   shlibpath_var=PATH
6638   ;;
6639
6640 darwin* | rhapsody*)
6641   dynamic_linker="$host_os dyld"
6642   version_type=darwin
6643   need_lib_prefix=no
6644   need_version=no
6645   # FIXME: Relying on posixy $() will cause problems for
6646   #        cross-compilation, but unfortunately the echo tests do not
6647   #        yet detect zsh echo's removal of \ escapes.
6648   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)'
6649   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6650   shlibpath_overrides_runpath=yes
6651   shlibpath_var=DYLD_LIBRARY_PATH
6652   ;;
6653
6654 freebsd1*)
6655   dynamic_linker=no
6656   ;;
6657
6658 freebsd*)
6659   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6660   version_type=freebsd-$objformat
6661   case $version_type in
6662     freebsd-elf*)
6663       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6664       need_version=no
6665       need_lib_prefix=no
6666       ;;
6667     freebsd-*)
6668       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6669       need_version=yes
6670       ;;
6671   esac
6672   shlibpath_var=LD_LIBRARY_PATH
6673   case $host_os in
6674   freebsd2*)
6675     shlibpath_overrides_runpath=yes
6676     ;;
6677   *)
6678     shlibpath_overrides_runpath=no
6679     hardcode_into_libs=yes
6680     ;;
6681   esac
6682   ;;
6683
6684 gnu*)
6685   version_type=linux
6686   need_lib_prefix=no
6687   need_version=no
6688   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6689   soname_spec='${libname}${release}.so$major'
6690   shlibpath_var=LD_LIBRARY_PATH
6691   hardcode_into_libs=yes
6692   ;;
6693
6694 hpux9* | hpux10* | hpux11*)
6695   # Give a soname corresponding to the major version so that dld.sl refuses to
6696   # link against other versions.
6697   dynamic_linker="$host_os dld.sl"
6698   version_type=sunos
6699   need_lib_prefix=no
6700   need_version=no
6701   shlibpath_var=SHLIB_PATH
6702   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6703   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6704   soname_spec='${libname}${release}.sl$major'
6705   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6706   postinstall_cmds='chmod 555 $lib'
6707   ;;
6708
6709 irix5* | irix6* | nonstopux*)
6710   case $host_os in
6711     nonstopux*) version_type=nonstopux ;;
6712     *)          version_type=irix ;;
6713   esac
6714   need_lib_prefix=no
6715   need_version=no
6716   soname_spec='${libname}${release}.so$major'
6717   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6718   case $host_os in
6719   irix5* | nonstopux*)
6720     libsuff= shlibsuff=
6721     ;;
6722   *)
6723     case $LD in # libtool.m4 will add one of these switches to LD
6724     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6725     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6726     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6727     *) libsuff= shlibsuff= libmagic=never-match;;
6728     esac
6729     ;;
6730   esac
6731   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6732   shlibpath_overrides_runpath=no
6733   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6734   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6735   ;;
6736
6737 # No shared lib support for Linux oldld, aout, or coff.
6738 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6739   dynamic_linker=no
6740   ;;
6741
6742 # This must be Linux ELF.
6743 linux-gnu*)
6744   version_type=linux
6745   need_lib_prefix=no
6746   need_version=no
6747   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6748   soname_spec='${libname}${release}.so$major'
6749   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6750   shlibpath_var=LD_LIBRARY_PATH
6751   shlibpath_overrides_runpath=no
6752   # This implies no fast_install, which is unacceptable.
6753   # Some rework will be needed to allow for fast_install
6754   # before this can be enabled.
6755   hardcode_into_libs=yes
6756
6757   # We used to test for /lib/ld.so.1 and disable shared libraries on
6758   # powerpc, because MkLinux only supported shared libraries with the
6759   # GNU dynamic linker.  Since this was broken with cross compilers,
6760   # most powerpc-linux boxes support dynamic linking these days and
6761   # people can always --disable-shared, the test was removed, and we
6762   # assume the GNU/Linux dynamic linker is in use.
6763   dynamic_linker='GNU/Linux ld.so'
6764
6765   # Find out which ABI we are using (multilib Linux x86_64 hack).
6766   libsuff=
6767   case "$host_cpu" in
6768   x86_64*|s390x*)
6769     echo '#line 6769 "configure"' > conftest.$ac_ext
6770     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; then
6775       case `/usr/bin/file conftest.$ac_objext` in
6776       *64-bit*)
6777         libsuff=64
6778         ;;
6779       esac
6780     fi
6781     rm -rf conftest*
6782     ;;
6783   *)
6784     ;;
6785   esac
6786   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6787   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6788   ;;
6789
6790 netbsd*)
6791   version_type=sunos
6792   need_lib_prefix=no
6793   need_version=no
6794   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6795     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6796     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6797     dynamic_linker='NetBSD (a.out) ld.so'
6798   else
6799     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6800     soname_spec='${libname}${release}.so$major'
6801     dynamic_linker='NetBSD ld.elf_so'
6802   fi
6803   shlibpath_var=LD_LIBRARY_PATH
6804   shlibpath_overrides_runpath=yes
6805   hardcode_into_libs=yes
6806   ;;
6807
6808 newsos6)
6809   version_type=linux
6810   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6811   shlibpath_var=LD_LIBRARY_PATH
6812   shlibpath_overrides_runpath=yes
6813   ;;
6814
6815 openbsd*)
6816   version_type=sunos
6817   need_lib_prefix=no
6818   need_version=no
6819   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6820     case "$host_os" in
6821     openbsd2.[89] | openbsd2.[89].*)
6822       shlibpath_overrides_runpath=no
6823       ;;
6824     *)
6825       shlibpath_overrides_runpath=yes
6826       ;;
6827     esac
6828   else
6829     shlibpath_overrides_runpath=yes
6830   fi
6831   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6832   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6833   shlibpath_var=LD_LIBRARY_PATH
6834   ;;
6835
6836 os2*)
6837   libname_spec='$name'
6838   need_lib_prefix=no
6839   library_names_spec='$libname.dll $libname.a'
6840   dynamic_linker='OS/2 ld.exe'
6841   shlibpath_var=LIBPATH
6842   ;;
6843
6844 osf3* | osf4* | osf5*)
6845   version_type=osf
6846   need_version=no
6847   soname_spec='${libname}${release}.so$major'
6848   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6849   shlibpath_var=LD_LIBRARY_PATH
6850   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6851   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6852   hardcode_into_libs=yes
6853   ;;
6854
6855 sco3.2v5*)
6856   version_type=osf
6857   soname_spec='${libname}${release}.so$major'
6858   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6859   shlibpath_var=LD_LIBRARY_PATH
6860   ;;
6861
6862 solaris*)
6863   version_type=linux
6864   need_lib_prefix=no
6865   need_version=no
6866   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6867   soname_spec='${libname}${release}.so$major'
6868   shlibpath_var=LD_LIBRARY_PATH
6869   shlibpath_overrides_runpath=yes
6870   hardcode_into_libs=yes
6871   # ldd complains unless libraries are executable
6872   postinstall_cmds='chmod +x $lib'
6873   ;;
6874
6875 sunos4*)
6876   version_type=sunos
6877   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6878   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6879   shlibpath_var=LD_LIBRARY_PATH
6880   shlibpath_overrides_runpath=yes
6881   if test "$with_gnu_ld" = yes; then
6882     need_lib_prefix=no
6883   fi
6884   need_version=yes
6885   ;;
6886
6887 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6888   version_type=linux
6889   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6890   soname_spec='${libname}${release}.so$major'
6891   shlibpath_var=LD_LIBRARY_PATH
6892   case $host_vendor in
6893     sni)
6894       shlibpath_overrides_runpath=no
6895       need_lib_prefix=no
6896       export_dynamic_flag_spec='${wl}-Blargedynsym'
6897       runpath_var=LD_RUN_PATH
6898       ;;
6899     siemens)
6900       need_lib_prefix=no
6901       ;;
6902     motorola)
6903       need_lib_prefix=no
6904       need_version=no
6905       shlibpath_overrides_runpath=no
6906       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6907       ;;
6908   esac
6909   ;;
6910
6911 uts4*)
6912   version_type=linux
6913   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6914   soname_spec='${libname}${release}.so$major'
6915   shlibpath_var=LD_LIBRARY_PATH
6916   ;;
6917
6918 dgux*)
6919   version_type=linux
6920   need_lib_prefix=no
6921   need_version=no
6922   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6923   soname_spec='${libname}${release}.so$major'
6924   shlibpath_var=LD_LIBRARY_PATH
6925   ;;
6926
6927 sysv4*MP*)
6928   if test -d /usr/nec ;then
6929     version_type=linux
6930     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6931     soname_spec='$libname.so.$major'
6932     shlibpath_var=LD_LIBRARY_PATH
6933   fi
6934   ;;
6935
6936 *)
6937   dynamic_linker=no
6938   ;;
6939 esac
6940 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6941 echo "${ECHO_T}$dynamic_linker" >&6
6942 test "$dynamic_linker" = no && can_build_shared=no
6943
6944 # Report the final consequences.
6945 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6946 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6947 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6948 echo "${ECHO_T}$can_build_shared" >&6
6949
6950 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6951 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6952 test "$can_build_shared" = "no" && enable_shared=no
6953
6954 # On AIX, shared libraries and static libraries use the same namespace, and
6955 # are all built from PIC.
6956 case "$host_os" in
6957 aix3*)
6958   test "$enable_shared" = yes && enable_static=no
6959   if test -n "$RANLIB"; then
6960     archive_cmds="$archive_cmds~\$RANLIB \$lib"
6961     postinstall_cmds='$RANLIB $lib'
6962   fi
6963   ;;
6964
6965 aix4*)
6966   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6967     test "$enable_shared" = yes && enable_static=no
6968   fi
6969   ;;
6970 esac
6971 echo "$as_me:$LINENO: result: $enable_shared" >&5
6972 echo "${ECHO_T}$enable_shared" >&6
6973
6974 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6975 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6976 # Make sure either enable_shared or enable_static is yes.
6977 test "$enable_shared" = yes || enable_static=yes
6978 echo "$as_me:$LINENO: result: $enable_static" >&5
6979 echo "${ECHO_T}$enable_static" >&6
6980
6981 if test "$hardcode_action" = relink; then
6982   # Fast installation is not supported
6983   enable_fast_install=no
6984 elif test "$shlibpath_overrides_runpath" = yes ||
6985      test "$enable_shared" = no; then
6986   # Fast installation is not necessary
6987   enable_fast_install=needless
6988 fi
6989
6990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6991 if test "$GCC" = yes; then
6992   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6993 fi
6994
6995 if test "x$enable_dlopen" != xyes; then
6996   enable_dlopen=unknown
6997   enable_dlopen_self=unknown
6998   enable_dlopen_self_static=unknown
6999 else
7000   lt_cv_dlopen=no
7001   lt_cv_dlopen_libs=
7002
7003   case $host_os in
7004   beos*)
7005     lt_cv_dlopen="load_add_on"
7006     lt_cv_dlopen_libs=
7007     lt_cv_dlopen_self=yes
7008     ;;
7009
7010   cygwin* | mingw* | pw32*)
7011     lt_cv_dlopen="LoadLibrary"
7012     lt_cv_dlopen_libs=
7013    ;;
7014
7015   *)
7016     echo "$as_me:$LINENO: checking for shl_load" >&5
7017 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7018 if test "${ac_cv_func_shl_load+set}" = set; then
7019   echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021   cat >conftest.$ac_ext <<_ACEOF
7022 #line $LINENO "configure"
7023 /* confdefs.h.  */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h.  */
7028 /* System header to define __stub macros and hopefully few prototypes,
7029     which can conflict with char shl_load (); below.
7030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7031     <limits.h> exists even on freestanding compilers.  */
7032 #ifdef __STDC__
7033 # include <limits.h>
7034 #else
7035 # include <assert.h>
7036 #endif
7037 /* Override any gcc2 internal prototype to avoid an error.  */
7038 #ifdef __cplusplus
7039 extern "C"
7040 {
7041 #endif
7042 /* We use char because int might match the return type of a gcc2
7043    builtin and then its argument prototype would still apply.  */
7044 char shl_load ();
7045 /* The GNU C library defines this for functions which it implements
7046     to always fail with ENOSYS.  Some functions are actually named
7047     something starting with __ and the normal name is an alias.  */
7048 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7049 choke me
7050 #else
7051 char (*f) () = shl_load;
7052 #endif
7053 #ifdef __cplusplus
7054 }
7055 #endif
7056
7057 int
7058 main ()
7059 {
7060 return f != shl_load;
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 rm -f conftest.$ac_objext conftest$ac_exeext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7067   (eval $ac_link) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); } &&
7071          { ac_try='test -s conftest$ac_exeext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   ac_cv_func_shl_load=yes
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ac_cv_func_shl_load=no
7083 fi
7084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7085 fi
7086 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7087 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7088 if test $ac_cv_func_shl_load = yes; then
7089   lt_cv_dlopen="shl_load"
7090 else
7091   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7092 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7093 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   ac_check_lib_save_LIBS=$LIBS
7097 LIBS="-ldld  $LIBS"
7098 cat >conftest.$ac_ext <<_ACEOF
7099 #line $LINENO "configure"
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105
7106 /* Override any gcc2 internal prototype to avoid an error.  */
7107 #ifdef __cplusplus
7108 extern "C"
7109 #endif
7110 /* We use char because int might match the return type of a gcc2
7111    builtin and then its argument prototype would still apply.  */
7112 char shl_load ();
7113 int
7114 main ()
7115 {
7116 shl_load ();
7117   ;
7118   return 0;
7119 }
7120 _ACEOF
7121 rm -f conftest.$ac_objext conftest$ac_exeext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7123   (eval $ac_link) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } &&
7127          { ac_try='test -s conftest$ac_exeext'
7128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129   (eval $ac_try) 2>&5
7130   ac_status=$?
7131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); }; }; then
7133   ac_cv_lib_dld_shl_load=yes
7134 else
7135   echo "$as_me: failed program was:" >&5
7136 sed 's/^/| /' conftest.$ac_ext >&5
7137
7138 ac_cv_lib_dld_shl_load=no
7139 fi
7140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7141 LIBS=$ac_check_lib_save_LIBS
7142 fi
7143 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7144 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7145 if test $ac_cv_lib_dld_shl_load = yes; then
7146   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7147 else
7148   echo "$as_me:$LINENO: checking for dlopen" >&5
7149 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7150 if test "${ac_cv_func_dlopen+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   cat >conftest.$ac_ext <<_ACEOF
7154 #line $LINENO "configure"
7155 /* confdefs.h.  */
7156 _ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h.  */
7160 /* System header to define __stub macros and hopefully few prototypes,
7161     which can conflict with char dlopen (); below.
7162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7163     <limits.h> exists even on freestanding compilers.  */
7164 #ifdef __STDC__
7165 # include <limits.h>
7166 #else
7167 # include <assert.h>
7168 #endif
7169 /* Override any gcc2 internal prototype to avoid an error.  */
7170 #ifdef __cplusplus
7171 extern "C"
7172 {
7173 #endif
7174 /* We use char because int might match the return type of a gcc2
7175    builtin and then its argument prototype would still apply.  */
7176 char dlopen ();
7177 /* The GNU C library defines this for functions which it implements
7178     to always fail with ENOSYS.  Some functions are actually named
7179     something starting with __ and the normal name is an alias.  */
7180 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7181 choke me
7182 #else
7183 char (*f) () = dlopen;
7184 #endif
7185 #ifdef __cplusplus
7186 }
7187 #endif
7188
7189 int
7190 main ()
7191 {
7192 return f != dlopen;
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199   (eval $ac_link) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -s conftest$ac_exeext'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; }; then
7209   ac_cv_func_dlopen=yes
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 ac_cv_func_dlopen=no
7215 fi
7216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7217 fi
7218 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7219 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7220 if test $ac_cv_func_dlopen = yes; then
7221   lt_cv_dlopen="dlopen"
7222 else
7223   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7224 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7225 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   ac_check_lib_save_LIBS=$LIBS
7229 LIBS="-ldl  $LIBS"
7230 cat >conftest.$ac_ext <<_ACEOF
7231 #line $LINENO "configure"
7232 /* confdefs.h.  */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h.  */
7237
7238 /* Override any gcc2 internal prototype to avoid an error.  */
7239 #ifdef __cplusplus
7240 extern "C"
7241 #endif
7242 /* We use char because int might match the return type of a gcc2
7243    builtin and then its argument prototype would still apply.  */
7244 char dlopen ();
7245 int
7246 main ()
7247 {
7248 dlopen ();
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255   (eval $ac_link) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest$ac_exeext'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   ac_cv_lib_dl_dlopen=yes
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7269
7270 ac_cv_lib_dl_dlopen=no
7271 fi
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7276 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7277 if test $ac_cv_lib_dl_dlopen = yes; then
7278   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7279 else
7280   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7281 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7282 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   ac_check_lib_save_LIBS=$LIBS
7286 LIBS="-lsvld  $LIBS"
7287 cat >conftest.$ac_ext <<_ACEOF
7288 #line $LINENO "configure"
7289 /* confdefs.h.  */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h.  */
7294
7295 /* Override any gcc2 internal prototype to avoid an error.  */
7296 #ifdef __cplusplus
7297 extern "C"
7298 #endif
7299 /* We use char because int might match the return type of a gcc2
7300    builtin and then its argument prototype would still apply.  */
7301 char dlopen ();
7302 int
7303 main ()
7304 {
7305 dlopen ();
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 rm -f conftest.$ac_objext conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312   (eval $ac_link) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } &&
7316          { ac_try='test -s conftest$ac_exeext'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; }; then
7322   ac_cv_lib_svld_dlopen=yes
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ac_cv_lib_svld_dlopen=no
7328 fi
7329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7330 LIBS=$ac_check_lib_save_LIBS
7331 fi
7332 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7333 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7334 if test $ac_cv_lib_svld_dlopen = yes; then
7335   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7336 else
7337   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7338 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7339 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   ac_check_lib_save_LIBS=$LIBS
7343 LIBS="-ldld  $LIBS"
7344 cat >conftest.$ac_ext <<_ACEOF
7345 #line $LINENO "configure"
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351
7352 /* Override any gcc2 internal prototype to avoid an error.  */
7353 #ifdef __cplusplus
7354 extern "C"
7355 #endif
7356 /* We use char because int might match the return type of a gcc2
7357    builtin and then its argument prototype would still apply.  */
7358 char dld_link ();
7359 int
7360 main ()
7361 {
7362 dld_link ();
7363   ;
7364   return 0;
7365 }
7366 _ACEOF
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369   (eval $ac_link) 2>&5
7370   ac_status=$?
7371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372   (exit $ac_status); } &&
7373          { ac_try='test -s conftest$ac_exeext'
7374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375   (eval $ac_try) 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   ac_cv_lib_dld_dld_link=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384 ac_cv_lib_dld_dld_link=no
7385 fi
7386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7387 LIBS=$ac_check_lib_save_LIBS
7388 fi
7389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7390 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7391 if test $ac_cv_lib_dld_dld_link = yes; then
7392   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7393 fi
7394
7395
7396 fi
7397
7398
7399 fi
7400
7401
7402 fi
7403
7404
7405 fi
7406
7407
7408 fi
7409
7410     ;;
7411   esac
7412
7413   if test "x$lt_cv_dlopen" != xno; then
7414     enable_dlopen=yes
7415   else
7416     enable_dlopen=no
7417   fi
7418
7419   case $lt_cv_dlopen in
7420   dlopen)
7421     save_CPPFLAGS="$CPPFLAGS"
7422         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7423
7424     save_LDFLAGS="$LDFLAGS"
7425     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7426
7427     save_LIBS="$LIBS"
7428     LIBS="$lt_cv_dlopen_libs $LIBS"
7429
7430     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7431 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7432 if test "${lt_cv_dlopen_self+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435           if test "$cross_compiling" = yes; then :
7436   lt_cv_dlopen_self=cross
7437 else
7438     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7439   lt_status=$lt_dlunknown
7440   cat > conftest.$ac_ext <<EOF
7441 #line 7441 "configure"
7442 #include "confdefs.h"
7443
7444 #if HAVE_DLFCN_H
7445 #include <dlfcn.h>
7446 #endif
7447
7448 #include <stdio.h>
7449
7450 #ifdef RTLD_GLOBAL
7451 #  define LT_DLGLOBAL           RTLD_GLOBAL
7452 #else
7453 #  ifdef DL_GLOBAL
7454 #    define LT_DLGLOBAL         DL_GLOBAL
7455 #  else
7456 #    define LT_DLGLOBAL         0
7457 #  endif
7458 #endif
7459
7460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7461    find out it does not work in some platform. */
7462 #ifndef LT_DLLAZY_OR_NOW
7463 #  ifdef RTLD_LAZY
7464 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7465 #  else
7466 #    ifdef DL_LAZY
7467 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7468 #    else
7469 #      ifdef RTLD_NOW
7470 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7471 #      else
7472 #        ifdef DL_NOW
7473 #          define LT_DLLAZY_OR_NOW      DL_NOW
7474 #        else
7475 #          define LT_DLLAZY_OR_NOW      0
7476 #        endif
7477 #      endif
7478 #    endif
7479 #  endif
7480 #endif
7481
7482 #ifdef __cplusplus
7483 extern "C" void exit (int);
7484 #endif
7485
7486 void fnord() { int i=42;}
7487 int main ()
7488 {
7489   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7490   int status = $lt_dlunknown;
7491
7492   if (self)
7493     {
7494       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7495       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7496       /* dlclose (self); */
7497     }
7498
7499     exit (status);
7500 }
7501 EOF
7502   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503   (eval $ac_link) 2>&5
7504   ac_status=$?
7505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7507     (./conftest; exit; ) 2>/dev/null
7508     lt_status=$?
7509     case x$lt_status in
7510       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7511       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7512       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7513     esac
7514   else :
7515     # compilation failed
7516     lt_cv_dlopen_self=no
7517   fi
7518 fi
7519 rm -fr conftest*
7520
7521
7522 fi
7523 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7524 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7525
7526     if test "x$lt_cv_dlopen_self" = xyes; then
7527       LDFLAGS="$LDFLAGS $link_static_flag"
7528       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7529 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7530 if test "${lt_cv_dlopen_self_static+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533           if test "$cross_compiling" = yes; then :
7534   lt_cv_dlopen_self_static=cross
7535 else
7536     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7537   lt_status=$lt_dlunknown
7538   cat > conftest.$ac_ext <<EOF
7539 #line 7539 "configure"
7540 #include "confdefs.h"
7541
7542 #if HAVE_DLFCN_H
7543 #include <dlfcn.h>
7544 #endif
7545
7546 #include <stdio.h>
7547
7548 #ifdef RTLD_GLOBAL
7549 #  define LT_DLGLOBAL           RTLD_GLOBAL
7550 #else
7551 #  ifdef DL_GLOBAL
7552 #    define LT_DLGLOBAL         DL_GLOBAL
7553 #  else
7554 #    define LT_DLGLOBAL         0
7555 #  endif
7556 #endif
7557
7558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7559    find out it does not work in some platform. */
7560 #ifndef LT_DLLAZY_OR_NOW
7561 #  ifdef RTLD_LAZY
7562 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7563 #  else
7564 #    ifdef DL_LAZY
7565 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7566 #    else
7567 #      ifdef RTLD_NOW
7568 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7569 #      else
7570 #        ifdef DL_NOW
7571 #          define LT_DLLAZY_OR_NOW      DL_NOW
7572 #        else
7573 #          define LT_DLLAZY_OR_NOW      0
7574 #        endif
7575 #      endif
7576 #    endif
7577 #  endif
7578 #endif
7579
7580 #ifdef __cplusplus
7581 extern "C" void exit (int);
7582 #endif
7583
7584 void fnord() { int i=42;}
7585 int main ()
7586 {
7587   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7588   int status = $lt_dlunknown;
7589
7590   if (self)
7591     {
7592       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7593       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7594       /* dlclose (self); */
7595     }
7596
7597     exit (status);
7598 }
7599 EOF
7600   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7601   (eval $ac_link) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7605     (./conftest; exit; ) 2>/dev/null
7606     lt_status=$?
7607     case x$lt_status in
7608       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7609       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7610       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7611     esac
7612   else :
7613     # compilation failed
7614     lt_cv_dlopen_self_static=no
7615   fi
7616 fi
7617 rm -fr conftest*
7618
7619
7620 fi
7621 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7622 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7623     fi
7624
7625     CPPFLAGS="$save_CPPFLAGS"
7626     LDFLAGS="$save_LDFLAGS"
7627     LIBS="$save_LIBS"
7628     ;;
7629   esac
7630
7631   case $lt_cv_dlopen_self in
7632   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7633   *) enable_dlopen_self=unknown ;;
7634   esac
7635
7636   case $lt_cv_dlopen_self_static in
7637   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7638   *) enable_dlopen_self_static=unknown ;;
7639   esac
7640 fi
7641
7642
7643 if test "$enable_shared" = yes && test "$GCC" = yes; then
7644   case $archive_cmds in
7645   *'~'*)
7646     # FIXME: we may have to deal with multi-command sequences.
7647     ;;
7648   '$CC '*)
7649     # Test whether the compiler implicitly links with -lc since on some
7650     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7651     # to ld, don't add -lc before -lgcc.
7652     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7653 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7654     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   $rm conftest*
7658     echo 'static int dummy;' > conftest.$ac_ext
7659
7660     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7661   (eval $ac_compile) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; then
7665       soname=conftest
7666       lib=conftest
7667       libobjs=conftest.$ac_objext
7668       deplibs=
7669       wl=$lt_cv_prog_cc_wl
7670       compiler_flags=-v
7671       linker_flags=-v
7672       verstring=
7673       output_objdir=.
7674       libname=conftest
7675       save_allow_undefined_flag=$allow_undefined_flag
7676       allow_undefined_flag=
7677       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7678   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7679   ac_status=$?
7680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681   (exit $ac_status); }
7682       then
7683         lt_cv_archive_cmds_need_lc=no
7684       else
7685         lt_cv_archive_cmds_need_lc=yes
7686       fi
7687       allow_undefined_flag=$save_allow_undefined_flag
7688     else
7689       cat conftest.err 1>&5
7690     fi
7691 fi
7692
7693     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7694 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7695     ;;
7696   esac
7697 fi
7698 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7699
7700 # The second clause should only fire when bootstrapping the
7701 # libtool distribution, otherwise you forgot to ship ltmain.sh
7702 # with your package, and you will get complaints that there are
7703 # no rules to generate ltmain.sh.
7704 if test -f "$ltmain"; then
7705   :
7706 else
7707   # If there is no Makefile yet, we rely on a make rule to execute
7708   # `config.status --recheck' to rerun these tests and create the
7709   # libtool script then.
7710   test -f Makefile && make "$ltmain"
7711 fi
7712
7713 if test -f "$ltmain"; then
7714   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7715   $rm -f "${ofile}T"
7716
7717   echo creating $ofile
7718
7719   # Now quote all the things that may contain metacharacters while being
7720   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7721   # variables and quote the copies for generation of the libtool script.
7722   for var in echo old_CC old_CFLAGS SED \
7723     AR AR_FLAGS CC LD LN_S NM SHELL \
7724     reload_flag reload_cmds wl \
7725     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7726     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7727     library_names_spec soname_spec \
7728     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7729     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7730     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7731     old_striplib striplib file_magic_cmd export_symbols_cmds \
7732     deplibs_check_method allow_undefined_flag no_undefined_flag \
7733     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7734     global_symbol_to_c_name_address \
7735     hardcode_libdir_flag_spec hardcode_libdir_separator  \
7736     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7737     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7738
7739     case $var in
7740     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7741     old_postinstall_cmds | old_postuninstall_cmds | \
7742     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7743     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7744     postinstall_cmds | postuninstall_cmds | \
7745     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7746       # Double-quote double-evaled strings.
7747       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7748       ;;
7749     *)
7750       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7751       ;;
7752     esac
7753   done
7754
7755   cat <<__EOF__ > "${ofile}T"
7756 #! $SHELL
7757
7758 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7759 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7761 #
7762 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7763 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7764 #
7765 # This program is free software; you can redistribute it and/or modify
7766 # it under the terms of the GNU General Public License as published by
7767 # the Free Software Foundation; either version 2 of the License, or
7768 # (at your option) any later version.
7769 #
7770 # This program is distributed in the hope that it will be useful, but
7771 # WITHOUT ANY WARRANTY; without even the implied warranty of
7772 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7773 # General Public License for more details.
7774 #
7775 # You should have received a copy of the GNU General Public License
7776 # along with this program; if not, write to the Free Software
7777 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7778 #
7779 # As a special exception to the GNU General Public License, if you
7780 # distribute this file as part of a program that contains a
7781 # configuration script generated by Autoconf, you may include it under
7782 # the same distribution terms that you use for the rest of that program.
7783
7784 # A sed that does not truncate output.
7785 SED=$lt_SED
7786
7787 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7788 Xsed="${SED} -e s/^X//"
7789
7790 # The HP-UX ksh and POSIX shell print the target directory to stdout
7791 # if CDPATH is set.
7792 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7793
7794 # ### BEGIN LIBTOOL CONFIG
7795
7796 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7797
7798 # Shell to use when invoking shell scripts.
7799 SHELL=$lt_SHELL
7800
7801 # Whether or not to build shared libraries.
7802 build_libtool_libs=$enable_shared
7803
7804 # Whether or not to build static libraries.
7805 build_old_libs=$enable_static
7806
7807 # Whether or not to add -lc for building shared libraries.
7808 build_libtool_need_lc=$need_lc
7809
7810 # Whether or not to optimize for fast installation.
7811 fast_install=$enable_fast_install
7812
7813 # The host system.
7814 host_alias=$host_alias
7815 host=$host
7816
7817 # An echo program that does not interpret backslashes.
7818 echo=$lt_echo
7819
7820 # The archiver.
7821 AR=$lt_AR
7822 AR_FLAGS=$lt_AR_FLAGS
7823
7824 # The default C compiler.
7825 CC=$lt_CC
7826
7827 # Is the compiler the GNU C compiler?
7828 with_gcc=$GCC
7829
7830 # The linker used to build libraries.
7831 LD=$lt_LD
7832
7833 # Whether we need hard or soft links.
7834 LN_S=$lt_LN_S
7835
7836 # A BSD-compatible nm program.
7837 NM=$lt_NM
7838
7839 # A symbol stripping program
7840 STRIP=$STRIP
7841
7842 # Used to examine libraries when file_magic_cmd begins "file"
7843 MAGIC_CMD=$MAGIC_CMD
7844
7845 # Used on cygwin: DLL creation program.
7846 DLLTOOL="$DLLTOOL"
7847
7848 # Used on cygwin: object dumper.
7849 OBJDUMP="$OBJDUMP"
7850
7851 # Used on cygwin: assembler.
7852 AS="$AS"
7853
7854 # The name of the directory that contains temporary libtool files.
7855 objdir=$objdir
7856
7857 # How to create reloadable object files.
7858 reload_flag=$lt_reload_flag
7859 reload_cmds=$lt_reload_cmds
7860
7861 # How to pass a linker flag through the compiler.
7862 wl=$lt_wl
7863
7864 # Object file suffix (normally "o").
7865 objext="$ac_objext"
7866
7867 # Old archive suffix (normally "a").
7868 libext="$libext"
7869
7870 # Executable file suffix (normally "").
7871 exeext="$exeext"
7872
7873 # Additional compiler flags for building library objects.
7874 pic_flag=$lt_pic_flag
7875 pic_mode=$pic_mode
7876
7877 # Does compiler simultaneously support -c and -o options?
7878 compiler_c_o=$lt_compiler_c_o
7879
7880 # Can we write directly to a .lo ?
7881 compiler_o_lo=$lt_compiler_o_lo
7882
7883 # Must we lock files when doing compilation ?
7884 need_locks=$lt_need_locks
7885
7886 # Do we need the lib prefix for modules?
7887 need_lib_prefix=$need_lib_prefix
7888
7889 # Do we need a version for libraries?
7890 need_version=$need_version
7891
7892 # Whether dlopen is supported.
7893 dlopen_support=$enable_dlopen
7894
7895 # Whether dlopen of programs is supported.
7896 dlopen_self=$enable_dlopen_self
7897
7898 # Whether dlopen of statically linked programs is supported.
7899 dlopen_self_static=$enable_dlopen_self_static
7900
7901 # Compiler flag to prevent dynamic linking.
7902 link_static_flag=$lt_link_static_flag
7903
7904 # Compiler flag to turn off builtin functions.
7905 no_builtin_flag=$lt_no_builtin_flag
7906
7907 # Compiler flag to allow reflexive dlopens.
7908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7909
7910 # Compiler flag to generate shared objects directly from archives.
7911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7912
7913 # Compiler flag to generate thread-safe objects.
7914 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7915
7916 # Library versioning type.
7917 version_type=$version_type
7918
7919 # Format of library name prefix.
7920 libname_spec=$lt_libname_spec
7921
7922 # List of archive names.  First name is the real one, the rest are links.
7923 # The last name is the one that the linker finds with -lNAME.
7924 library_names_spec=$lt_library_names_spec
7925
7926 # The coded name of the library, if different from the real name.
7927 soname_spec=$lt_soname_spec
7928
7929 # Commands used to build and install an old-style archive.
7930 RANLIB=$lt_RANLIB
7931 old_archive_cmds=$lt_old_archive_cmds
7932 old_postinstall_cmds=$lt_old_postinstall_cmds
7933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7934
7935 # Create an old-style archive from a shared archive.
7936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7937
7938 # Create a temporary old-style archive to link instead of a shared archive.
7939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7940
7941 # Commands used to build and install a shared archive.
7942 archive_cmds=$lt_archive_cmds
7943 archive_expsym_cmds=$lt_archive_expsym_cmds
7944 postinstall_cmds=$lt_postinstall_cmds
7945 postuninstall_cmds=$lt_postuninstall_cmds
7946
7947 # Commands to strip libraries.
7948 old_striplib=$lt_old_striplib
7949 striplib=$lt_striplib
7950
7951 # Method to check whether dependent libraries are shared objects.
7952 deplibs_check_method=$lt_deplibs_check_method
7953
7954 # Command to use when deplibs_check_method == file_magic.
7955 file_magic_cmd=$lt_file_magic_cmd
7956
7957 # Flag that allows shared libraries with undefined symbols to be built.
7958 allow_undefined_flag=$lt_allow_undefined_flag
7959
7960 # Flag that forces no undefined symbols.
7961 no_undefined_flag=$lt_no_undefined_flag
7962
7963 # Commands used to finish a libtool library installation in a directory.
7964 finish_cmds=$lt_finish_cmds
7965
7966 # Same as above, but a single script fragment to be evaled but not shown.
7967 finish_eval=$lt_finish_eval
7968
7969 # Take the output of nm and produce a listing of raw symbols and C names.
7970 global_symbol_pipe=$lt_global_symbol_pipe
7971
7972 # Transform the output of nm in a proper C declaration
7973 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7974
7975 # Transform the output of nm in a C name address pair
7976 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7977
7978 # This is the shared library runtime path variable.
7979 runpath_var=$runpath_var
7980
7981 # This is the shared library path variable.
7982 shlibpath_var=$shlibpath_var
7983
7984 # Is shlibpath searched before the hard-coded library search path?
7985 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7986
7987 # How to hardcode a shared library path into an executable.
7988 hardcode_action=$hardcode_action
7989
7990 # Whether we should hardcode library paths into libraries.
7991 hardcode_into_libs=$hardcode_into_libs
7992
7993 # Flag to hardcode \$libdir into a binary during linking.
7994 # This must work even if \$libdir does not exist.
7995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7996
7997 # Whether we need a single -rpath flag with a separated argument.
7998 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7999
8000 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8001 # resulting binary.
8002 hardcode_direct=$hardcode_direct
8003
8004 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8005 # resulting binary.
8006 hardcode_minus_L=$hardcode_minus_L
8007
8008 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8009 # the resulting binary.
8010 hardcode_shlibpath_var=$hardcode_shlibpath_var
8011
8012 # Variables whose values should be saved in libtool wrapper scripts and
8013 # restored at relink time.
8014 variables_saved_for_relink="$variables_saved_for_relink"
8015
8016 # Whether libtool must link a program against all its dependency libraries.
8017 link_all_deplibs=$link_all_deplibs
8018
8019 # Compile-time system search path for libraries
8020 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8021
8022 # Run-time system search path for libraries
8023 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8024
8025 # Fix the shell variable \$srcfile for the compiler.
8026 fix_srcfile_path="$fix_srcfile_path"
8027
8028 # Set to yes if exported symbols are required.
8029 always_export_symbols=$always_export_symbols
8030
8031 # The commands to list exported symbols.
8032 export_symbols_cmds=$lt_export_symbols_cmds
8033
8034 # The commands to extract the exported symbol list from a shared archive.
8035 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8036
8037 # Symbols that should not be listed in the preloaded symbols.
8038 exclude_expsyms=$lt_exclude_expsyms
8039
8040 # Symbols that must always be exported.
8041 include_expsyms=$lt_include_expsyms
8042
8043 # ### END LIBTOOL CONFIG
8044
8045 __EOF__
8046
8047   case $host_os in
8048   aix3*)
8049     cat <<\EOF >> "${ofile}T"
8050
8051 # AIX sometimes has problems with the GCC collect2 program.  For some
8052 # reason, if we set the COLLECT_NAMES environment variable, the problems
8053 # vanish in a puff of smoke.
8054 if test "X${COLLECT_NAMES+set}" != Xset; then
8055   COLLECT_NAMES=
8056   export COLLECT_NAMES
8057 fi
8058 EOF
8059     ;;
8060   esac
8061
8062   case $host_os in
8063   cygwin* | mingw* | pw32* | os2*)
8064     cat <<'EOF' >> "${ofile}T"
8065       # This is a source program that is used to create dlls on Windows
8066       # Don't remove nor modify the starting and closing comments
8067 # /* ltdll.c starts here */
8068 # #define WIN32_LEAN_AND_MEAN
8069 # #include <windows.h>
8070 # #undef WIN32_LEAN_AND_MEAN
8071 # #include <stdio.h>
8072 #
8073 # #ifndef __CYGWIN__
8074 # #  ifdef __CYGWIN32__
8075 # #    define __CYGWIN__ __CYGWIN32__
8076 # #  endif
8077 # #endif
8078 #
8079 # #ifdef __cplusplus
8080 # extern "C" {
8081 # #endif
8082 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8083 # #ifdef __cplusplus
8084 # }
8085 # #endif
8086 #
8087 # #ifdef __CYGWIN__
8088 # #include <cygwin/cygwin_dll.h>
8089 # DECLARE_CYGWIN_DLL( DllMain );
8090 # #endif
8091 # HINSTANCE __hDllInstance_base;
8092 #
8093 # BOOL APIENTRY
8094 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8095 # {
8096 #   __hDllInstance_base = hInst;
8097 #   return TRUE;
8098 # }
8099 # /* ltdll.c ends here */
8100         # This is a source program that is used to create import libraries
8101         # on Windows for dlls which lack them. Don't remove nor modify the
8102         # starting and closing comments
8103 # /* impgen.c starts here */
8104 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8105 #
8106 #  This file is part of GNU libtool.
8107 #
8108 #  This program is free software; you can redistribute it and/or modify
8109 #  it under the terms of the GNU General Public License as published by
8110 #  the Free Software Foundation; either version 2 of the License, or
8111 #  (at your option) any later version.
8112 #
8113 #  This program is distributed in the hope that it will be useful,
8114 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8115 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8116 #  GNU General Public License for more details.
8117 #
8118 #  You should have received a copy of the GNU General Public License
8119 #  along with this program; if not, write to the Free Software
8120 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8121 #  */
8122 #
8123 # #include <stdio.h>            /* for printf() */
8124 # #include <unistd.h>           /* for open(), lseek(), read() */
8125 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8126 # #include <string.h>           /* for strdup() */
8127 #
8128 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8129 # #ifndef O_BINARY
8130 # #define O_BINARY 0
8131 # #endif
8132 #
8133 # static unsigned int
8134 # pe_get16 (fd, offset)
8135 #      int fd;
8136 #      int offset;
8137 # {
8138 #   unsigned char b[2];
8139 #   lseek (fd, offset, SEEK_SET);
8140 #   read (fd, b, 2);
8141 #   return b[0] + (b[1]<<8);
8142 # }
8143 #
8144 # static unsigned int
8145 # pe_get32 (fd, offset)
8146 #     int fd;
8147 #     int offset;
8148 # {
8149 #   unsigned char b[4];
8150 #   lseek (fd, offset, SEEK_SET);
8151 #   read (fd, b, 4);
8152 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8153 # }
8154 #
8155 # static unsigned int
8156 # pe_as32 (ptr)
8157 #      void *ptr;
8158 # {
8159 #   unsigned char *b = ptr;
8160 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8161 # }
8162 #
8163 # int
8164 # main (argc, argv)
8165 #     int argc;
8166 #     char *argv[];
8167 # {
8168 #     int dll;
8169 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8170 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8171 #     unsigned long name_rvas, nexp;
8172 #     unsigned char *expdata, *erva;
8173 #     char *filename, *dll_name;
8174 #
8175 #     filename = argv[1];
8176 #
8177 #     dll = open(filename, O_RDONLY|O_BINARY);
8178 #     if (dll < 1)
8179 #       return 1;
8180 #
8181 #     dll_name = filename;
8182 #
8183 #     for (i=0; filename[i]; i++)
8184 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8185 #           dll_name = filename + i +1;
8186 #
8187 #     pe_header_offset = pe_get32 (dll, 0x3c);
8188 #     opthdr_ofs = pe_header_offset + 4 + 20;
8189 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8190 #
8191 #     if (num_entries < 1) /* no exports */
8192 #       return 1;
8193 #
8194 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8195 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8196 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8197 #     secptr = (pe_header_offset + 4 + 20 +
8198 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8199 #
8200 #     expptr = 0;
8201 #     for (i = 0; i < nsections; i++)
8202 #     {
8203 #       char sname[8];
8204 #       unsigned long secptr1 = secptr + 40 * i;
8205 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8206 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8207 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8208 #       lseek(dll, secptr1, SEEK_SET);
8209 #       read(dll, sname, 8);
8210 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8211 #       {
8212 #           expptr = fptr + (export_rva - vaddr);
8213 #           if (export_rva + export_size > vaddr + vsize)
8214 #               export_size = vsize - (export_rva - vaddr);
8215 #           break;
8216 #       }
8217 #     }
8218 #
8219 #     expdata = (unsigned char*)malloc(export_size);
8220 #     lseek (dll, expptr, SEEK_SET);
8221 #     read (dll, expdata, export_size);
8222 #     erva = expdata - export_rva;
8223 #
8224 #     nexp = pe_as32 (expdata+24);
8225 #     name_rvas = pe_as32 (expdata+32);
8226 #
8227 #     printf ("EXPORTS\n");
8228 #     for (i = 0; i<nexp; i++)
8229 #     {
8230 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8231 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8232 #     }
8233 #
8234 #     return 0;
8235 # }
8236 # /* impgen.c ends here */
8237
8238 EOF
8239     ;;
8240   esac
8241
8242   # We use sed instead of cat because bash on DJGPP gets confused if
8243   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8244   # text mode, it properly converts lines to CR/LF.  This bash problem
8245   # is reportedly fixed, but why not run on old versions too?
8246   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8247
8248   mv -f "${ofile}T" "$ofile" || \
8249     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8250   chmod +x "$ofile"
8251 fi
8252
8253
8254
8255
8256
8257 # This can be used to rebuild libtool when needed
8258 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8259
8260 # Always use our own libtool.
8261 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8262
8263 # Prevent multiple expansion
8264
8265
8266
8267 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8268 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
8269     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8270 if test "${enable_maintainer_mode+set}" = set; then
8271   enableval="$enable_maintainer_mode"
8272   USE_MAINTAINER_MODE=$enableval
8273 else
8274   USE_MAINTAINER_MODE=no
8275 fi;
8276   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8277 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
8278
8279
8280 if test $USE_MAINTAINER_MODE = yes; then
8281   MAINTAINER_MODE_TRUE=
8282   MAINTAINER_MODE_FALSE='#'
8283 else
8284   MAINTAINER_MODE_TRUE='#'
8285   MAINTAINER_MODE_FALSE=
8286 fi
8287
8288   MAINT=$MAINTAINER_MODE_TRUE
8289
8290
8291
8292 _cppflags="${CPPFLAGS}"
8293 _ldflags="${LDFLAGS}"
8294
8295
8296
8297 # Check whether --with-zlib or --without-zlib was given.
8298 if test "${with_zlib+set}" = set; then
8299   withval="$with_zlib"
8300
8301   if test "$withval" != "no" -a "$withval" != "yes"; then
8302     Z_DIR=$withval
8303     CPPFLAGS="${CPPFLAGS} -I$withval/include"
8304     LDFLAGS="${LDFLAGS} -L$withval/lib"
8305   fi
8306
8307 fi;
8308 if test "$with_zlib" = "no"; then
8309     echo "Disabling compression support"
8310 else
8311
8312 for ac_header in zlib.h
8313 do
8314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8316   echo "$as_me:$LINENO: checking for $ac_header" >&5
8317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8318 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8319   echo $ECHO_N "(cached) $ECHO_C" >&6
8320 fi
8321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8323 else
8324   # Is the header compilable?
8325 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8327 cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 $ac_includes_default
8335 #include <$ac_header>
8336 _ACEOF
8337 rm -f conftest.$ac_objext
8338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8339   (eval $ac_compile) 2>&5
8340   ac_status=$?
8341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } &&
8343          { ac_try='test -s conftest.$ac_objext'
8344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345   (eval $ac_try) 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; }; then
8349   ac_header_compiler=yes
8350 else
8351   echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354 ac_header_compiler=no
8355 fi
8356 rm -f conftest.$ac_objext conftest.$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 echo "${ECHO_T}$ac_header_compiler" >&6
8359
8360 # Is the header present?
8361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8363 cat >conftest.$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 #include <$ac_header>
8371 _ACEOF
8372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } >/dev/null; then
8380   if test -s conftest.err; then
8381     ac_cpp_err=$ac_c_preproc_warn_flag
8382   else
8383     ac_cpp_err=
8384   fi
8385 else
8386   ac_cpp_err=yes
8387 fi
8388 if test -z "$ac_cpp_err"; then
8389   ac_header_preproc=yes
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394   ac_header_preproc=no
8395 fi
8396 rm -f conftest.err conftest.$ac_ext
8397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8398 echo "${ECHO_T}$ac_header_preproc" >&6
8399
8400 # So?  What about this header?
8401 case $ac_header_compiler:$ac_header_preproc in
8402   yes:no )
8403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8407     (
8408       cat <<\_ASBOX
8409 ## ------------------------------------ ##
8410 ## Report this to bug-autoconf@gnu.org. ##
8411 ## ------------------------------------ ##
8412 _ASBOX
8413     ) |
8414       sed "s/^/$as_me: WARNING:     /" >&2
8415     ;;
8416   no:yes )
8417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8419     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8423     (
8424       cat <<\_ASBOX
8425 ## ------------------------------------ ##
8426 ## Report this to bug-autoconf@gnu.org. ##
8427 ## ------------------------------------ ##
8428 _ASBOX
8429     ) |
8430       sed "s/^/$as_me: WARNING:     /" >&2
8431     ;;
8432 esac
8433 echo "$as_me:$LINENO: checking for $ac_header" >&5
8434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438   eval "$as_ac_Header=$ac_header_preproc"
8439 fi
8440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8442
8443 fi
8444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8445   cat >>confdefs.h <<_ACEOF
8446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8447 _ACEOF
8448  echo "$as_me:$LINENO: checking for gzread in -lz" >&5
8449 echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
8450 if test "${ac_cv_lib_z_gzread+set}" = set; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   ac_check_lib_save_LIBS=$LIBS
8454 LIBS="-lz  $LIBS"
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line $LINENO "configure"
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462
8463 /* Override any gcc2 internal prototype to avoid an error.  */
8464 #ifdef __cplusplus
8465 extern "C"
8466 #endif
8467 /* We use char because int might match the return type of a gcc2
8468    builtin and then its argument prototype would still apply.  */
8469 char gzread ();
8470 int
8471 main ()
8472 {
8473 gzread ();
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480   (eval $ac_link) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } &&
8484          { ac_try='test -s conftest$ac_exeext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_cv_lib_z_gzread=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ac_cv_lib_z_gzread=no
8496 fi
8497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8498 LIBS=$ac_check_lib_save_LIBS
8499 fi
8500 echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
8501 echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
8502 if test $ac_cv_lib_z_gzread = yes; then
8503
8504             cat >>confdefs.h <<\_ACEOF
8505 #define HAVE_LIBZ 1
8506 _ACEOF
8507
8508             if test "x${Z_DIR}" != "x"; then
8509                 Z_CFLAGS="-I${Z_DIR}/include"
8510                 Z_LIBS="-L${Z_DIR}/lib -lz"
8511                 case ${host} in
8512                     *-*-solaris*)
8513                         Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
8514                         ;;
8515                 esac
8516             else
8517                 Z_LIBS="-lz"
8518             fi
8519 fi
8520
8521 fi
8522
8523 done
8524
8525 fi
8526
8527
8528
8529
8530 CPPFLAGS=${_cppflags}
8531 LDFLAGS=${_ldflags}
8532
8533
8534
8535
8536
8537
8538 ac_header_dirent=no
8539 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8540   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8541 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8542 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553 #include <sys/types.h>
8554 #include <$ac_hdr>
8555
8556 int
8557 main ()
8558 {
8559 if ((DIR *) 0)
8560 return 0;
8561   ;
8562   return 0;
8563 }
8564 _ACEOF
8565 rm -f conftest.$ac_objext
8566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8567   (eval $ac_compile) 2>&5
8568   ac_status=$?
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); } &&
8571          { ac_try='test -s conftest.$ac_objext'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; }; then
8577   eval "$as_ac_Header=yes"
8578 else
8579   echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582 eval "$as_ac_Header=no"
8583 fi
8584 rm -f conftest.$ac_objext conftest.$ac_ext
8585 fi
8586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8589   cat >>confdefs.h <<_ACEOF
8590 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8591 _ACEOF
8592
8593 ac_header_dirent=$ac_hdr; break
8594 fi
8595
8596 done
8597 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8598 if test $ac_header_dirent = dirent.h; then
8599   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8600 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8601 if test "${ac_cv_search_opendir+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   ac_func_search_save_LIBS=$LIBS
8605 ac_cv_search_opendir=no
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line $LINENO "configure"
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613
8614 /* Override any gcc2 internal prototype to avoid an error.  */
8615 #ifdef __cplusplus
8616 extern "C"
8617 #endif
8618 /* We use char because int might match the return type of a gcc2
8619    builtin and then its argument prototype would still apply.  */
8620 char opendir ();
8621 int
8622 main ()
8623 {
8624 opendir ();
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8631   (eval $ac_link) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_search_opendir="none required"
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 fi
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 if test "$ac_cv_search_opendir" = no; then
8649   for ac_lib in dir; do
8650     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8651     cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8653 /* confdefs.h.  */
8654 _ACEOF
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h.  */
8658
8659 /* Override any gcc2 internal prototype to avoid an error.  */
8660 #ifdef __cplusplus
8661 extern "C"
8662 #endif
8663 /* We use char because int might match the return type of a gcc2
8664    builtin and then its argument prototype would still apply.  */
8665 char opendir ();
8666 int
8667 main ()
8668 {
8669 opendir ();
8670   ;
8671   return 0;
8672 }
8673 _ACEOF
8674 rm -f conftest.$ac_objext conftest$ac_exeext
8675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8676   (eval $ac_link) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } &&
8680          { ac_try='test -s conftest$ac_exeext'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; }; then
8686   ac_cv_search_opendir="-l$ac_lib"
8687 break
8688 else
8689   echo "$as_me: failed program was:" >&5
8690 sed 's/^/| /' conftest.$ac_ext >&5
8691
8692 fi
8693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8694   done
8695 fi
8696 LIBS=$ac_func_search_save_LIBS
8697 fi
8698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8700 if test "$ac_cv_search_opendir" != no; then
8701   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8702
8703 fi
8704
8705 else
8706   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8707 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8708 if test "${ac_cv_search_opendir+set}" = set; then
8709   echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711   ac_func_search_save_LIBS=$LIBS
8712 ac_cv_search_opendir=no
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8715 /* confdefs.h.  */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h.  */
8720
8721 /* Override any gcc2 internal prototype to avoid an error.  */
8722 #ifdef __cplusplus
8723 extern "C"
8724 #endif
8725 /* We use char because int might match the return type of a gcc2
8726    builtin and then its argument prototype would still apply.  */
8727 char opendir ();
8728 int
8729 main ()
8730 {
8731 opendir ();
8732   ;
8733   return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8738   (eval $ac_link) 2>&5
8739   ac_status=$?
8740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741   (exit $ac_status); } &&
8742          { ac_try='test -s conftest$ac_exeext'
8743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744   (eval $ac_try) 2>&5
8745   ac_status=$?
8746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747   (exit $ac_status); }; }; then
8748   ac_cv_search_opendir="none required"
8749 else
8750   echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 fi
8754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8755 if test "$ac_cv_search_opendir" = no; then
8756   for ac_lib in x; do
8757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8758     cat >conftest.$ac_ext <<_ACEOF
8759 #line $LINENO "configure"
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765
8766 /* Override any gcc2 internal prototype to avoid an error.  */
8767 #ifdef __cplusplus
8768 extern "C"
8769 #endif
8770 /* We use char because int might match the return type of a gcc2
8771    builtin and then its argument prototype would still apply.  */
8772 char opendir ();
8773 int
8774 main ()
8775 {
8776 opendir ();
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext conftest$ac_exeext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8783   (eval $ac_link) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); } &&
8787          { ac_try='test -s conftest$ac_exeext'
8788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789   (eval $ac_try) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; }; then
8793   ac_cv_search_opendir="-l$ac_lib"
8794 break
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799 fi
8800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8801   done
8802 fi
8803 LIBS=$ac_func_search_save_LIBS
8804 fi
8805 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8806 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8807 if test "$ac_cv_search_opendir" != no; then
8808   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8809
8810 fi
8811
8812 fi
8813
8814 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8816 if test "${ac_cv_header_stdc+set}" = set; then
8817   echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819   cat >conftest.$ac_ext <<_ACEOF
8820 #line $LINENO "configure"
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 #include <stdlib.h>
8827 #include <stdarg.h>
8828 #include <string.h>
8829 #include <float.h>
8830
8831 int
8832 main ()
8833 {
8834
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest.$ac_objext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8841   (eval $ac_compile) 2>&5
8842   ac_status=$?
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } &&
8845          { ac_try='test -s conftest.$ac_objext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   ac_cv_header_stdc=yes
8852 else
8853   echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_cv_header_stdc=no
8857 fi
8858 rm -f conftest.$ac_objext conftest.$ac_ext
8859
8860 if test $ac_cv_header_stdc = yes; then
8861   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8862   cat >conftest.$ac_ext <<_ACEOF
8863 #line $LINENO "configure"
8864 /* confdefs.h.  */
8865 _ACEOF
8866 cat confdefs.h >>conftest.$ac_ext
8867 cat >>conftest.$ac_ext <<_ACEOF
8868 /* end confdefs.h.  */
8869 #include <string.h>
8870
8871 _ACEOF
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873   $EGREP "memchr" >/dev/null 2>&1; then
8874   :
8875 else
8876   ac_cv_header_stdc=no
8877 fi
8878 rm -f conftest*
8879
8880 fi
8881
8882 if test $ac_cv_header_stdc = yes; then
8883   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8884   cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8886 /* confdefs.h.  */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h.  */
8891 #include <stdlib.h>
8892
8893 _ACEOF
8894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895   $EGREP "free" >/dev/null 2>&1; then
8896   :
8897 else
8898   ac_cv_header_stdc=no
8899 fi
8900 rm -f conftest*
8901
8902 fi
8903
8904 if test $ac_cv_header_stdc = yes; then
8905   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8906   if test "$cross_compiling" = yes; then
8907   :
8908 else
8909   cat >conftest.$ac_ext <<_ACEOF
8910 #line $LINENO "configure"
8911 /* confdefs.h.  */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h.  */
8916 #include <ctype.h>
8917 #if ((' ' & 0x0FF) == 0x020)
8918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8920 #else
8921 # define ISLOWER(c) \
8922                    (('a' <= (c) && (c) <= 'i') \
8923                      || ('j' <= (c) && (c) <= 'r') \
8924                      || ('s' <= (c) && (c) <= 'z'))
8925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8926 #endif
8927
8928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8929 int
8930 main ()
8931 {
8932   int i;
8933   for (i = 0; i < 256; i++)
8934     if (XOR (islower (i), ISLOWER (i))
8935         || toupper (i) != TOUPPER (i))
8936       exit(2);
8937   exit (0);
8938 }
8939 _ACEOF
8940 rm -f conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942   (eval $ac_link) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; }; then
8951   :
8952 else
8953   echo "$as_me: program exited with status $ac_status" >&5
8954 echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957 ( exit $ac_status )
8958 ac_cv_header_stdc=no
8959 fi
8960 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 fi
8963 fi
8964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8966 if test $ac_cv_header_stdc = yes; then
8967
8968 cat >>confdefs.h <<\_ACEOF
8969 #define STDC_HEADERS 1
8970 _ACEOF
8971
8972 fi
8973
8974
8975 for ac_header in fcntl.h
8976 do
8977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8979   echo "$as_me:$LINENO: checking for $ac_header" >&5
8980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8982   echo $ECHO_N "(cached) $ECHO_C" >&6
8983 fi
8984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8986 else
8987   # Is the header compilable?
8988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8990 cat >conftest.$ac_ext <<_ACEOF
8991 #line $LINENO "configure"
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997 $ac_includes_default
8998 #include <$ac_header>
8999 _ACEOF
9000 rm -f conftest.$ac_objext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9002   (eval $ac_compile) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); } &&
9006          { ac_try='test -s conftest.$ac_objext'
9007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008   (eval $ac_try) 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); }; }; then
9012   ac_header_compiler=yes
9013 else
9014   echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.$ac_ext >&5
9016
9017 ac_header_compiler=no
9018 fi
9019 rm -f conftest.$ac_objext conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9021 echo "${ECHO_T}$ac_header_compiler" >&6
9022
9023 # Is the header present?
9024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 #include <$ac_header>
9034 _ACEOF
9035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9037   ac_status=$?
9038   grep -v '^ *+' conftest.er1 >conftest.err
9039   rm -f conftest.er1
9040   cat conftest.err >&5
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); } >/dev/null; then
9043   if test -s conftest.err; then
9044     ac_cpp_err=$ac_c_preproc_warn_flag
9045   else
9046     ac_cpp_err=
9047   fi
9048 else
9049   ac_cpp_err=yes
9050 fi
9051 if test -z "$ac_cpp_err"; then
9052   ac_header_preproc=yes
9053 else
9054   echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057   ac_header_preproc=no
9058 fi
9059 rm -f conftest.err conftest.$ac_ext
9060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9061 echo "${ECHO_T}$ac_header_preproc" >&6
9062
9063 # So?  What about this header?
9064 case $ac_header_compiler:$ac_header_preproc in
9065   yes:no )
9066     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9068     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9070     (
9071       cat <<\_ASBOX
9072 ## ------------------------------------ ##
9073 ## Report this to bug-autoconf@gnu.org. ##
9074 ## ------------------------------------ ##
9075 _ASBOX
9076     ) |
9077       sed "s/^/$as_me: WARNING:     /" >&2
9078     ;;
9079   no:yes )
9080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9082     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9086     (
9087       cat <<\_ASBOX
9088 ## ------------------------------------ ##
9089 ## Report this to bug-autoconf@gnu.org. ##
9090 ## ------------------------------------ ##
9091 _ASBOX
9092     ) |
9093       sed "s/^/$as_me: WARNING:     /" >&2
9094     ;;
9095 esac
9096 echo "$as_me:$LINENO: checking for $ac_header" >&5
9097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   eval "$as_ac_Header=$ac_header_preproc"
9102 fi
9103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9105
9106 fi
9107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9108   cat >>confdefs.h <<_ACEOF
9109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9110 _ACEOF
9111
9112 fi
9113
9114 done
9115
9116
9117 for ac_header in unistd.h
9118 do
9119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9121   echo "$as_me:$LINENO: checking for $ac_header" >&5
9122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 fi
9126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9128 else
9129   # Is the header compilable?
9130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9132 cat >conftest.$ac_ext <<_ACEOF
9133 #line $LINENO "configure"
9134 /* confdefs.h.  */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h.  */
9139 $ac_includes_default
9140 #include <$ac_header>
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9144   (eval $ac_compile) 2>&5
9145   ac_status=$?
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } &&
9148          { ac_try='test -s conftest.$ac_objext'
9149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150   (eval $ac_try) 2>&5
9151   ac_status=$?
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); }; }; then
9154   ac_header_compiler=yes
9155 else
9156   echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9158
9159 ac_header_compiler=no
9160 fi
9161 rm -f conftest.$ac_objext conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9163 echo "${ECHO_T}$ac_header_compiler" >&6
9164
9165 # Is the header present?
9166 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9170 /* confdefs.h.  */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h.  */
9175 #include <$ac_header>
9176 _ACEOF
9177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } >/dev/null; then
9185   if test -s conftest.err; then
9186     ac_cpp_err=$ac_c_preproc_warn_flag
9187   else
9188     ac_cpp_err=
9189   fi
9190 else
9191   ac_cpp_err=yes
9192 fi
9193 if test -z "$ac_cpp_err"; then
9194   ac_header_preproc=yes
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199   ac_header_preproc=no
9200 fi
9201 rm -f conftest.err conftest.$ac_ext
9202 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9203 echo "${ECHO_T}$ac_header_preproc" >&6
9204
9205 # So?  What about this header?
9206 case $ac_header_compiler:$ac_header_preproc in
9207   yes:no )
9208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9212     (
9213       cat <<\_ASBOX
9214 ## ------------------------------------ ##
9215 ## Report this to bug-autoconf@gnu.org. ##
9216 ## ------------------------------------ ##
9217 _ASBOX
9218     ) |
9219       sed "s/^/$as_me: WARNING:     /" >&2
9220     ;;
9221   no:yes )
9222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9224     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9228     (
9229       cat <<\_ASBOX
9230 ## ------------------------------------ ##
9231 ## Report this to bug-autoconf@gnu.org. ##
9232 ## ------------------------------------ ##
9233 _ASBOX
9234     ) |
9235       sed "s/^/$as_me: WARNING:     /" >&2
9236     ;;
9237 esac
9238 echo "$as_me:$LINENO: checking for $ac_header" >&5
9239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   eval "$as_ac_Header=$ac_header_preproc"
9244 fi
9245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9247
9248 fi
9249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9250   cat >>confdefs.h <<_ACEOF
9251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9252 _ACEOF
9253
9254 fi
9255
9256 done
9257
9258
9259 for ac_header in ctype.h
9260 do
9261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263   echo "$as_me:$LINENO: checking for $ac_header" >&5
9264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9266   echo $ECHO_N "(cached) $ECHO_C" >&6
9267 fi
9268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9270 else
9271   # Is the header compilable?
9272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9274 cat >conftest.$ac_ext <<_ACEOF
9275 #line $LINENO "configure"
9276 /* confdefs.h.  */
9277 _ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h.  */
9281 $ac_includes_default
9282 #include <$ac_header>
9283 _ACEOF
9284 rm -f conftest.$ac_objext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9286   (eval $ac_compile) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); } &&
9290          { ac_try='test -s conftest.$ac_objext'
9291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292   (eval $ac_try) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; }; then
9296   ac_header_compiler=yes
9297 else
9298   echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301 ac_header_compiler=no
9302 fi
9303 rm -f conftest.$ac_objext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9305 echo "${ECHO_T}$ac_header_compiler" >&6
9306
9307 # Is the header present?
9308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9310 cat >conftest.$ac_ext <<_ACEOF
9311 #line $LINENO "configure"
9312 /* confdefs.h.  */
9313 _ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h.  */
9317 #include <$ac_header>
9318 _ACEOF
9319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9321   ac_status=$?
9322   grep -v '^ *+' conftest.er1 >conftest.err
9323   rm -f conftest.er1
9324   cat conftest.err >&5
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); } >/dev/null; then
9327   if test -s conftest.err; then
9328     ac_cpp_err=$ac_c_preproc_warn_flag
9329   else
9330     ac_cpp_err=
9331   fi
9332 else
9333   ac_cpp_err=yes
9334 fi
9335 if test -z "$ac_cpp_err"; then
9336   ac_header_preproc=yes
9337 else
9338   echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9340
9341   ac_header_preproc=no
9342 fi
9343 rm -f conftest.err conftest.$ac_ext
9344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9345 echo "${ECHO_T}$ac_header_preproc" >&6
9346
9347 # So?  What about this header?
9348 case $ac_header_compiler:$ac_header_preproc in
9349   yes:no )
9350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9354     (
9355       cat <<\_ASBOX
9356 ## ------------------------------------ ##
9357 ## Report this to bug-autoconf@gnu.org. ##
9358 ## ------------------------------------ ##
9359 _ASBOX
9360     ) |
9361       sed "s/^/$as_me: WARNING:     /" >&2
9362     ;;
9363   no:yes )
9364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9366     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9370     (
9371       cat <<\_ASBOX
9372 ## ------------------------------------ ##
9373 ## Report this to bug-autoconf@gnu.org. ##
9374 ## ------------------------------------ ##
9375 _ASBOX
9376     ) |
9377       sed "s/^/$as_me: WARNING:     /" >&2
9378     ;;
9379 esac
9380 echo "$as_me:$LINENO: checking for $ac_header" >&5
9381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   eval "$as_ac_Header=$ac_header_preproc"
9386 fi
9387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9389
9390 fi
9391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9392   cat >>confdefs.h <<_ACEOF
9393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9394 _ACEOF
9395
9396 fi
9397
9398 done
9399
9400
9401 for ac_header in dirent.h
9402 do
9403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9405   echo "$as_me:$LINENO: checking for $ac_header" >&5
9406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9408   echo $ECHO_N "(cached) $ECHO_C" >&6
9409 fi
9410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9412 else
9413   # Is the header compilable?
9414 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9416 cat >conftest.$ac_ext <<_ACEOF
9417 #line $LINENO "configure"
9418 /* confdefs.h.  */
9419 _ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h.  */
9423 $ac_includes_default
9424 #include <$ac_header>
9425 _ACEOF
9426 rm -f conftest.$ac_objext
9427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9428   (eval $ac_compile) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); } &&
9432          { ac_try='test -s conftest.$ac_objext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_header_compiler=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 ac_header_compiler=no
9444 fi
9445 rm -f conftest.$ac_objext conftest.$ac_ext
9446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9447 echo "${ECHO_T}$ac_header_compiler" >&6
9448
9449 # Is the header present?
9450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9452 cat >conftest.$ac_ext <<_ACEOF
9453 #line $LINENO "configure"
9454 /* confdefs.h.  */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h.  */
9459 #include <$ac_header>
9460 _ACEOF
9461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9463   ac_status=$?
9464   grep -v '^ *+' conftest.er1 >conftest.err
9465   rm -f conftest.er1
9466   cat conftest.err >&5
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } >/dev/null; then
9469   if test -s conftest.err; then
9470     ac_cpp_err=$ac_c_preproc_warn_flag
9471   else
9472     ac_cpp_err=
9473   fi
9474 else
9475   ac_cpp_err=yes
9476 fi
9477 if test -z "$ac_cpp_err"; then
9478   ac_header_preproc=yes
9479 else
9480   echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483   ac_header_preproc=no
9484 fi
9485 rm -f conftest.err conftest.$ac_ext
9486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9487 echo "${ECHO_T}$ac_header_preproc" >&6
9488
9489 # So?  What about this header?
9490 case $ac_header_compiler:$ac_header_preproc in
9491   yes:no )
9492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9496     (
9497       cat <<\_ASBOX
9498 ## ------------------------------------ ##
9499 ## Report this to bug-autoconf@gnu.org. ##
9500 ## ------------------------------------ ##
9501 _ASBOX
9502     ) |
9503       sed "s/^/$as_me: WARNING:     /" >&2
9504     ;;
9505   no:yes )
9506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9508     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9512     (
9513       cat <<\_ASBOX
9514 ## ------------------------------------ ##
9515 ## Report this to bug-autoconf@gnu.org. ##
9516 ## ------------------------------------ ##
9517 _ASBOX
9518     ) |
9519       sed "s/^/$as_me: WARNING:     /" >&2
9520     ;;
9521 esac
9522 echo "$as_me:$LINENO: checking for $ac_header" >&5
9523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9525   echo $ECHO_N "(cached) $ECHO_C" >&6
9526 else
9527   eval "$as_ac_Header=$ac_header_preproc"
9528 fi
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9531
9532 fi
9533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9534   cat >>confdefs.h <<_ACEOF
9535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9536 _ACEOF
9537
9538 fi
9539
9540 done
9541
9542
9543 for ac_header in errno.h
9544 do
9545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9547   echo "$as_me:$LINENO: checking for $ac_header" >&5
9548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 fi
9552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9554 else
9555   # Is the header compilable?
9556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9558 cat >conftest.$ac_ext <<_ACEOF
9559 #line $LINENO "configure"
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 $ac_includes_default
9566 #include <$ac_header>
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570   (eval $ac_compile) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); } &&
9574          { ac_try='test -s conftest.$ac_objext'
9575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576   (eval $ac_try) 2>&5
9577   ac_status=$?
9578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579   (exit $ac_status); }; }; then
9580   ac_header_compiler=yes
9581 else
9582   echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 ac_header_compiler=no
9586 fi
9587 rm -f conftest.$ac_objext conftest.$ac_ext
9588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9589 echo "${ECHO_T}$ac_header_compiler" >&6
9590
9591 # Is the header present?
9592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 #line $LINENO "configure"
9596 /* confdefs.h.  */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h.  */
9601 #include <$ac_header>
9602 _ACEOF
9603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9604   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } >/dev/null; then
9611   if test -s conftest.err; then
9612     ac_cpp_err=$ac_c_preproc_warn_flag
9613   else
9614     ac_cpp_err=
9615   fi
9616 else
9617   ac_cpp_err=yes
9618 fi
9619 if test -z "$ac_cpp_err"; then
9620   ac_header_preproc=yes
9621 else
9622   echo "$as_me: failed program was:" >&5
9623 sed 's/^/| /' conftest.$ac_ext >&5
9624
9625   ac_header_preproc=no
9626 fi
9627 rm -f conftest.err conftest.$ac_ext
9628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9629 echo "${ECHO_T}$ac_header_preproc" >&6
9630
9631 # So?  What about this header?
9632 case $ac_header_compiler:$ac_header_preproc in
9633   yes:no )
9634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9638     (
9639       cat <<\_ASBOX
9640 ## ------------------------------------ ##
9641 ## Report this to bug-autoconf@gnu.org. ##
9642 ## ------------------------------------ ##
9643 _ASBOX
9644     ) |
9645       sed "s/^/$as_me: WARNING:     /" >&2
9646     ;;
9647   no:yes )
9648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9650     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9651 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9654     (
9655       cat <<\_ASBOX
9656 ## ------------------------------------ ##
9657 ## Report this to bug-autoconf@gnu.org. ##
9658 ## ------------------------------------ ##
9659 _ASBOX
9660     ) |
9661       sed "s/^/$as_me: WARNING:     /" >&2
9662     ;;
9663 esac
9664 echo "$as_me:$LINENO: checking for $ac_header" >&5
9665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   eval "$as_ac_Header=$ac_header_preproc"
9670 fi
9671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9673
9674 fi
9675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676   cat >>confdefs.h <<_ACEOF
9677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678 _ACEOF
9679
9680 fi
9681
9682 done
9683
9684
9685 for ac_header in malloc.h
9686 do
9687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9689   echo "$as_me:$LINENO: checking for $ac_header" >&5
9690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 fi
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696 else
9697   # Is the header compilable?
9698 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9701 #line $LINENO "configure"
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707 $ac_includes_default
9708 #include <$ac_header>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712   (eval $ac_compile) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -s conftest.$ac_objext'
9717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718   (eval $ac_try) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722   ac_header_compiler=yes
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_header_compiler=no
9728 fi
9729 rm -f conftest.$ac_objext conftest.$ac_ext
9730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6
9732
9733 # Is the header present?
9734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 #include <$ac_header>
9744 _ACEOF
9745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9747   ac_status=$?
9748   grep -v '^ *+' conftest.er1 >conftest.err
9749   rm -f conftest.er1
9750   cat conftest.err >&5
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } >/dev/null; then
9753   if test -s conftest.err; then
9754     ac_cpp_err=$ac_c_preproc_warn_flag
9755   else
9756     ac_cpp_err=
9757   fi
9758 else
9759   ac_cpp_err=yes
9760 fi
9761 if test -z "$ac_cpp_err"; then
9762   ac_header_preproc=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767   ac_header_preproc=no
9768 fi
9769 rm -f conftest.err conftest.$ac_ext
9770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 echo "${ECHO_T}$ac_header_preproc" >&6
9772
9773 # So?  What about this header?
9774 case $ac_header_compiler:$ac_header_preproc in
9775   yes:no )
9776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9780     (
9781       cat <<\_ASBOX
9782 ## ------------------------------------ ##
9783 ## Report this to bug-autoconf@gnu.org. ##
9784 ## ------------------------------------ ##
9785 _ASBOX
9786     ) |
9787       sed "s/^/$as_me: WARNING:     /" >&2
9788     ;;
9789   no:yes )
9790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9792     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9796     (
9797       cat <<\_ASBOX
9798 ## ------------------------------------ ##
9799 ## Report this to bug-autoconf@gnu.org. ##
9800 ## ------------------------------------ ##
9801 _ASBOX
9802     ) |
9803       sed "s/^/$as_me: WARNING:     /" >&2
9804     ;;
9805 esac
9806 echo "$as_me:$LINENO: checking for $ac_header" >&5
9807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   eval "$as_ac_Header=$ac_header_preproc"
9812 fi
9813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9815
9816 fi
9817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9818   cat >>confdefs.h <<_ACEOF
9819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9820 _ACEOF
9821
9822 fi
9823
9824 done
9825
9826
9827 for ac_header in stdarg.h
9828 do
9829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9831   echo "$as_me:$LINENO: checking for $ac_header" >&5
9832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 fi
9836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9838 else
9839   # Is the header compilable?
9840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9843 #line $LINENO "configure"
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849 $ac_includes_default
9850 #include <$ac_header>
9851 _ACEOF
9852 rm -f conftest.$ac_objext
9853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9854   (eval $ac_compile) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_header_compiler=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_header_compiler=no
9870 fi
9871 rm -f conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9873 echo "${ECHO_T}$ac_header_compiler" >&6
9874
9875 # Is the header present?
9876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9879 #line $LINENO "configure"
9880 /* confdefs.h.  */
9881 _ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h.  */
9885 #include <$ac_header>
9886 _ACEOF
9887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9889   ac_status=$?
9890   grep -v '^ *+' conftest.er1 >conftest.err
9891   rm -f conftest.er1
9892   cat conftest.err >&5
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); } >/dev/null; then
9895   if test -s conftest.err; then
9896     ac_cpp_err=$ac_c_preproc_warn_flag
9897   else
9898     ac_cpp_err=
9899   fi
9900 else
9901   ac_cpp_err=yes
9902 fi
9903 if test -z "$ac_cpp_err"; then
9904   ac_header_preproc=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909   ac_header_preproc=no
9910 fi
9911 rm -f conftest.err conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9913 echo "${ECHO_T}$ac_header_preproc" >&6
9914
9915 # So?  What about this header?
9916 case $ac_header_compiler:$ac_header_preproc in
9917   yes:no )
9918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9922     (
9923       cat <<\_ASBOX
9924 ## ------------------------------------ ##
9925 ## Report this to bug-autoconf@gnu.org. ##
9926 ## ------------------------------------ ##
9927 _ASBOX
9928     ) |
9929       sed "s/^/$as_me: WARNING:     /" >&2
9930     ;;
9931   no:yes )
9932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9934     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9938     (
9939       cat <<\_ASBOX
9940 ## ------------------------------------ ##
9941 ## Report this to bug-autoconf@gnu.org. ##
9942 ## ------------------------------------ ##
9943 _ASBOX
9944     ) |
9945       sed "s/^/$as_me: WARNING:     /" >&2
9946     ;;
9947 esac
9948 echo "$as_me:$LINENO: checking for $ac_header" >&5
9949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   eval "$as_ac_Header=$ac_header_preproc"
9954 fi
9955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9957
9958 fi
9959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9960   cat >>confdefs.h <<_ACEOF
9961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9962 _ACEOF
9963
9964 fi
9965
9966 done
9967
9968
9969 for ac_header in sys/stat.h
9970 do
9971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9973   echo "$as_me:$LINENO: checking for $ac_header" >&5
9974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 fi
9978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9980 else
9981   # Is the header compilable?
9982 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9983 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9984 cat >conftest.$ac_ext <<_ACEOF
9985 #line $LINENO "configure"
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 $ac_includes_default
9992 #include <$ac_header>
9993 _ACEOF
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996   (eval $ac_compile) 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); } &&
10000          { ac_try='test -s conftest.$ac_objext'
10001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002   (eval $ac_try) 2>&5
10003   ac_status=$?
10004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005   (exit $ac_status); }; }; then
10006   ac_header_compiler=yes
10007 else
10008   echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 ac_header_compiler=no
10012 fi
10013 rm -f conftest.$ac_objext conftest.$ac_ext
10014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10015 echo "${ECHO_T}$ac_header_compiler" >&6
10016
10017 # Is the header present?
10018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10020 cat >conftest.$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10022 /* confdefs.h.  */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h.  */
10027 #include <$ac_header>
10028 _ACEOF
10029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10031   ac_status=$?
10032   grep -v '^ *+' conftest.er1 >conftest.err
10033   rm -f conftest.er1
10034   cat conftest.err >&5
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); } >/dev/null; then
10037   if test -s conftest.err; then
10038     ac_cpp_err=$ac_c_preproc_warn_flag
10039   else
10040     ac_cpp_err=
10041   fi
10042 else
10043   ac_cpp_err=yes
10044 fi
10045 if test -z "$ac_cpp_err"; then
10046   ac_header_preproc=yes
10047 else
10048   echo "$as_me: failed program was:" >&5
10049 sed 's/^/| /' conftest.$ac_ext >&5
10050
10051   ac_header_preproc=no
10052 fi
10053 rm -f conftest.err conftest.$ac_ext
10054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10055 echo "${ECHO_T}$ac_header_preproc" >&6
10056
10057 # So?  What about this header?
10058 case $ac_header_compiler:$ac_header_preproc in
10059   yes:no )
10060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10064     (
10065       cat <<\_ASBOX
10066 ## ------------------------------------ ##
10067 ## Report this to bug-autoconf@gnu.org. ##
10068 ## ------------------------------------ ##
10069 _ASBOX
10070     ) |
10071       sed "s/^/$as_me: WARNING:     /" >&2
10072     ;;
10073   no:yes )
10074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10076     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10078     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10080     (
10081       cat <<\_ASBOX
10082 ## ------------------------------------ ##
10083 ## Report this to bug-autoconf@gnu.org. ##
10084 ## ------------------------------------ ##
10085 _ASBOX
10086     ) |
10087       sed "s/^/$as_me: WARNING:     /" >&2
10088     ;;
10089 esac
10090 echo "$as_me:$LINENO: checking for $ac_header" >&5
10091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   eval "$as_ac_Header=$ac_header_preproc"
10096 fi
10097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10099
10100 fi
10101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10102   cat >>confdefs.h <<_ACEOF
10103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10104 _ACEOF
10105
10106 fi
10107
10108 done
10109
10110
10111 for ac_header in sys/types.h
10112 do
10113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10115   echo "$as_me:$LINENO: checking for $ac_header" >&5
10116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 fi
10120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10122 else
10123   # Is the header compilable?
10124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10127 #line $LINENO "configure"
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 $ac_includes_default
10134 #include <$ac_header>
10135 _ACEOF
10136 rm -f conftest.$ac_objext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10138   (eval $ac_compile) 2>&5
10139   ac_status=$?
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } &&
10142          { ac_try='test -s conftest.$ac_objext'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; }; then
10148   ac_header_compiler=yes
10149 else
10150   echo "$as_me: failed program was:" >&5
10151 sed 's/^/| /' conftest.$ac_ext >&5
10152
10153 ac_header_compiler=no
10154 fi
10155 rm -f conftest.$ac_objext conftest.$ac_ext
10156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 echo "${ECHO_T}$ac_header_compiler" >&6
10158
10159 # Is the header present?
10160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10162 cat >conftest.$ac_ext <<_ACEOF
10163 #line $LINENO "configure"
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169 #include <$ac_header>
10170 _ACEOF
10171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } >/dev/null; then
10179   if test -s conftest.err; then
10180     ac_cpp_err=$ac_c_preproc_warn_flag
10181   else
10182     ac_cpp_err=
10183   fi
10184 else
10185   ac_cpp_err=yes
10186 fi
10187 if test -z "$ac_cpp_err"; then
10188   ac_header_preproc=yes
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193   ac_header_preproc=no
10194 fi
10195 rm -f conftest.err conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10197 echo "${ECHO_T}$ac_header_preproc" >&6
10198
10199 # So?  What about this header?
10200 case $ac_header_compiler:$ac_header_preproc in
10201   yes:no )
10202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10206     (
10207       cat <<\_ASBOX
10208 ## ------------------------------------ ##
10209 ## Report this to bug-autoconf@gnu.org. ##
10210 ## ------------------------------------ ##
10211 _ASBOX
10212     ) |
10213       sed "s/^/$as_me: WARNING:     /" >&2
10214     ;;
10215   no:yes )
10216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10218     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10222     (
10223       cat <<\_ASBOX
10224 ## ------------------------------------ ##
10225 ## Report this to bug-autoconf@gnu.org. ##
10226 ## ------------------------------------ ##
10227 _ASBOX
10228     ) |
10229       sed "s/^/$as_me: WARNING:     /" >&2
10230     ;;
10231 esac
10232 echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10235   echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237   eval "$as_ac_Header=$ac_header_preproc"
10238 fi
10239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10241
10242 fi
10243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10244   cat >>confdefs.h <<_ACEOF
10245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10246 _ACEOF
10247
10248 fi
10249
10250 done
10251
10252
10253 for ac_header in time.h
10254 do
10255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10257   echo "$as_me:$LINENO: checking for $ac_header" >&5
10258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 fi
10262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10264 else
10265   # Is the header compilable?
10266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10268 cat >conftest.$ac_ext <<_ACEOF
10269 #line $LINENO "configure"
10270 /* confdefs.h.  */
10271 _ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h.  */
10275 $ac_includes_default
10276 #include <$ac_header>
10277 _ACEOF
10278 rm -f conftest.$ac_objext
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280   (eval $ac_compile) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -s conftest.$ac_objext'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   ac_header_compiler=yes
10291 else
10292   echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10294
10295 ac_header_compiler=no
10296 fi
10297 rm -f conftest.$ac_objext conftest.$ac_ext
10298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10299 echo "${ECHO_T}$ac_header_compiler" >&6
10300
10301 # Is the header present?
10302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10304 cat >conftest.$ac_ext <<_ACEOF
10305 #line $LINENO "configure"
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311 #include <$ac_header>
10312 _ACEOF
10313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10315   ac_status=$?
10316   grep -v '^ *+' conftest.er1 >conftest.err
10317   rm -f conftest.er1
10318   cat conftest.err >&5
10319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320   (exit $ac_status); } >/dev/null; then
10321   if test -s conftest.err; then
10322     ac_cpp_err=$ac_c_preproc_warn_flag
10323   else
10324     ac_cpp_err=
10325   fi
10326 else
10327   ac_cpp_err=yes
10328 fi
10329 if test -z "$ac_cpp_err"; then
10330   ac_header_preproc=yes
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335   ac_header_preproc=no
10336 fi
10337 rm -f conftest.err conftest.$ac_ext
10338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10339 echo "${ECHO_T}$ac_header_preproc" >&6
10340
10341 # So?  What about this header?
10342 case $ac_header_compiler:$ac_header_preproc in
10343   yes:no )
10344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10348     (
10349       cat <<\_ASBOX
10350 ## ------------------------------------ ##
10351 ## Report this to bug-autoconf@gnu.org. ##
10352 ## ------------------------------------ ##
10353 _ASBOX
10354     ) |
10355       sed "s/^/$as_me: WARNING:     /" >&2
10356     ;;
10357   no:yes )
10358     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10360     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364     (
10365       cat <<\_ASBOX
10366 ## ------------------------------------ ##
10367 ## Report this to bug-autoconf@gnu.org. ##
10368 ## ------------------------------------ ##
10369 _ASBOX
10370     ) |
10371       sed "s/^/$as_me: WARNING:     /" >&2
10372     ;;
10373 esac
10374 echo "$as_me:$LINENO: checking for $ac_header" >&5
10375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   eval "$as_ac_Header=$ac_header_preproc"
10380 fi
10381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10383
10384 fi
10385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10386   cat >>confdefs.h <<_ACEOF
10387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10388 _ACEOF
10389
10390 fi
10391
10392 done
10393
10394
10395 for ac_header in ansidecl.h
10396 do
10397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399   echo "$as_me:$LINENO: checking for $ac_header" >&5
10400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402   echo $ECHO_N "(cached) $ECHO_C" >&6
10403 fi
10404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10406 else
10407   # Is the header compilable?
10408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10410 cat >conftest.$ac_ext <<_ACEOF
10411 #line $LINENO "configure"
10412 /* confdefs.h.  */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h.  */
10417 $ac_includes_default
10418 #include <$ac_header>
10419 _ACEOF
10420 rm -f conftest.$ac_objext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422   (eval $ac_compile) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } &&
10426          { ac_try='test -s conftest.$ac_objext'
10427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428   (eval $ac_try) 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   ac_header_compiler=yes
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ac_header_compiler=no
10438 fi
10439 rm -f conftest.$ac_objext conftest.$ac_ext
10440 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10441 echo "${ECHO_T}$ac_header_compiler" >&6
10442
10443 # Is the header present?
10444 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10447 #line $LINENO "configure"
10448 /* confdefs.h.  */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h.  */
10453 #include <$ac_header>
10454 _ACEOF
10455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10457   ac_status=$?
10458   grep -v '^ *+' conftest.er1 >conftest.err
10459   rm -f conftest.er1
10460   cat conftest.err >&5
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); } >/dev/null; then
10463   if test -s conftest.err; then
10464     ac_cpp_err=$ac_c_preproc_warn_flag
10465   else
10466     ac_cpp_err=
10467   fi
10468 else
10469   ac_cpp_err=yes
10470 fi
10471 if test -z "$ac_cpp_err"; then
10472   ac_header_preproc=yes
10473 else
10474   echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10476
10477   ac_header_preproc=no
10478 fi
10479 rm -f conftest.err conftest.$ac_ext
10480 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10481 echo "${ECHO_T}$ac_header_preproc" >&6
10482
10483 # So?  What about this header?
10484 case $ac_header_compiler:$ac_header_preproc in
10485   yes:no )
10486     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10488     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10489 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10490     (
10491       cat <<\_ASBOX
10492 ## ------------------------------------ ##
10493 ## Report this to bug-autoconf@gnu.org. ##
10494 ## ------------------------------------ ##
10495 _ASBOX
10496     ) |
10497       sed "s/^/$as_me: WARNING:     /" >&2
10498     ;;
10499   no:yes )
10500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10502     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10506     (
10507       cat <<\_ASBOX
10508 ## ------------------------------------ ##
10509 ## Report this to bug-autoconf@gnu.org. ##
10510 ## ------------------------------------ ##
10511 _ASBOX
10512     ) |
10513       sed "s/^/$as_me: WARNING:     /" >&2
10514     ;;
10515 esac
10516 echo "$as_me:$LINENO: checking for $ac_header" >&5
10517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   eval "$as_ac_Header=$ac_header_preproc"
10522 fi
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10525
10526 fi
10527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10528   cat >>confdefs.h <<_ACEOF
10529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10530 _ACEOF
10531
10532 fi
10533
10534 done
10535
10536
10537 for ac_header in ieeefp.h
10538 do
10539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10541   echo "$as_me:$LINENO: checking for $ac_header" >&5
10542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 fi
10546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10548 else
10549   # Is the header compilable?
10550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10552 cat >conftest.$ac_ext <<_ACEOF
10553 #line $LINENO "configure"
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559 $ac_includes_default
10560 #include <$ac_header>
10561 _ACEOF
10562 rm -f conftest.$ac_objext
10563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10564   (eval $ac_compile) 2>&5
10565   ac_status=$?
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } &&
10568          { ac_try='test -s conftest.$ac_objext'
10569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570   (eval $ac_try) 2>&5
10571   ac_status=$?
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); }; }; then
10574   ac_header_compiler=yes
10575 else
10576   echo "$as_me: failed program was:" >&5
10577 sed 's/^/| /' conftest.$ac_ext >&5
10578
10579 ac_header_compiler=no
10580 fi
10581 rm -f conftest.$ac_objext conftest.$ac_ext
10582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10583 echo "${ECHO_T}$ac_header_compiler" >&6
10584
10585 # Is the header present?
10586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10588 cat >conftest.$ac_ext <<_ACEOF
10589 #line $LINENO "configure"
10590 /* confdefs.h.  */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h.  */
10595 #include <$ac_header>
10596 _ACEOF
10597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10599   ac_status=$?
10600   grep -v '^ *+' conftest.er1 >conftest.err
10601   rm -f conftest.er1
10602   cat conftest.err >&5
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } >/dev/null; then
10605   if test -s conftest.err; then
10606     ac_cpp_err=$ac_c_preproc_warn_flag
10607   else
10608     ac_cpp_err=
10609   fi
10610 else
10611   ac_cpp_err=yes
10612 fi
10613 if test -z "$ac_cpp_err"; then
10614   ac_header_preproc=yes
10615 else
10616   echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619   ac_header_preproc=no
10620 fi
10621 rm -f conftest.err conftest.$ac_ext
10622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 echo "${ECHO_T}$ac_header_preproc" >&6
10624
10625 # So?  What about this header?
10626 case $ac_header_compiler:$ac_header_preproc in
10627   yes:no )
10628     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10632     (
10633       cat <<\_ASBOX
10634 ## ------------------------------------ ##
10635 ## Report this to bug-autoconf@gnu.org. ##
10636 ## ------------------------------------ ##
10637 _ASBOX
10638     ) |
10639       sed "s/^/$as_me: WARNING:     /" >&2
10640     ;;
10641   no:yes )
10642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10644     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10648     (
10649       cat <<\_ASBOX
10650 ## ------------------------------------ ##
10651 ## Report this to bug-autoconf@gnu.org. ##
10652 ## ------------------------------------ ##
10653 _ASBOX
10654     ) |
10655       sed "s/^/$as_me: WARNING:     /" >&2
10656     ;;
10657 esac
10658 echo "$as_me:$LINENO: checking for $ac_header" >&5
10659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10661   echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663   eval "$as_ac_Header=$ac_header_preproc"
10664 fi
10665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10667
10668 fi
10669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10670   cat >>confdefs.h <<_ACEOF
10671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10672 _ACEOF
10673
10674 fi
10675
10676 done
10677
10678
10679 for ac_header in nan.h
10680 do
10681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10683   echo "$as_me:$LINENO: checking for $ac_header" >&5
10684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 fi
10688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10690 else
10691   # Is the header compilable?
10692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10694 cat >conftest.$ac_ext <<_ACEOF
10695 #line $LINENO "configure"
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701 $ac_includes_default
10702 #include <$ac_header>
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706   (eval $ac_compile) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -s conftest.$ac_objext'
10711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_header_compiler=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 ac_header_compiler=no
10722 fi
10723 rm -f conftest.$ac_objext conftest.$ac_ext
10724 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10725 echo "${ECHO_T}$ac_header_compiler" >&6
10726
10727 # Is the header present?
10728 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10730 cat >conftest.$ac_ext <<_ACEOF
10731 #line $LINENO "configure"
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 #include <$ac_header>
10738 _ACEOF
10739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } >/dev/null; then
10747   if test -s conftest.err; then
10748     ac_cpp_err=$ac_c_preproc_warn_flag
10749   else
10750     ac_cpp_err=
10751   fi
10752 else
10753   ac_cpp_err=yes
10754 fi
10755 if test -z "$ac_cpp_err"; then
10756   ac_header_preproc=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761   ac_header_preproc=no
10762 fi
10763 rm -f conftest.err conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10765 echo "${ECHO_T}$ac_header_preproc" >&6
10766
10767 # So?  What about this header?
10768 case $ac_header_compiler:$ac_header_preproc in
10769   yes:no )
10770     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774     (
10775       cat <<\_ASBOX
10776 ## ------------------------------------ ##
10777 ## Report this to bug-autoconf@gnu.org. ##
10778 ## ------------------------------------ ##
10779 _ASBOX
10780     ) |
10781       sed "s/^/$as_me: WARNING:     /" >&2
10782     ;;
10783   no:yes )
10784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10790     (
10791       cat <<\_ASBOX
10792 ## ------------------------------------ ##
10793 ## Report this to bug-autoconf@gnu.org. ##
10794 ## ------------------------------------ ##
10795 _ASBOX
10796     ) |
10797       sed "s/^/$as_me: WARNING:     /" >&2
10798     ;;
10799 esac
10800 echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   eval "$as_ac_Header=$ac_header_preproc"
10806 fi
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809
10810 fi
10811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812   cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817
10818 done
10819
10820
10821 for ac_header in math.h
10822 do
10823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10825   echo "$as_me:$LINENO: checking for $ac_header" >&5
10826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10827 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10828   echo $ECHO_N "(cached) $ECHO_C" >&6
10829 fi
10830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10832 else
10833   # Is the header compilable?
10834 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10837 #line $LINENO "configure"
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 $ac_includes_default
10844 #include <$ac_header>
10845 _ACEOF
10846 rm -f conftest.$ac_objext
10847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10848   (eval $ac_compile) 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); } &&
10852          { ac_try='test -s conftest.$ac_objext'
10853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854   (eval $ac_try) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; }; then
10858   ac_header_compiler=yes
10859 else
10860   echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863 ac_header_compiler=no
10864 fi
10865 rm -f conftest.$ac_objext conftest.$ac_ext
10866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10867 echo "${ECHO_T}$ac_header_compiler" >&6
10868
10869 # Is the header present?
10870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879 #include <$ac_header>
10880 _ACEOF
10881 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10882   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } >/dev/null; then
10889   if test -s conftest.err; then
10890     ac_cpp_err=$ac_c_preproc_warn_flag
10891   else
10892     ac_cpp_err=
10893   fi
10894 else
10895   ac_cpp_err=yes
10896 fi
10897 if test -z "$ac_cpp_err"; then
10898   ac_header_preproc=yes
10899 else
10900   echo "$as_me: failed program was:" >&5
10901 sed 's/^/| /' conftest.$ac_ext >&5
10902
10903   ac_header_preproc=no
10904 fi
10905 rm -f conftest.err conftest.$ac_ext
10906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10907 echo "${ECHO_T}$ac_header_preproc" >&6
10908
10909 # So?  What about this header?
10910 case $ac_header_compiler:$ac_header_preproc in
10911   yes:no )
10912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10916     (
10917       cat <<\_ASBOX
10918 ## ------------------------------------ ##
10919 ## Report this to bug-autoconf@gnu.org. ##
10920 ## ------------------------------------ ##
10921 _ASBOX
10922     ) |
10923       sed "s/^/$as_me: WARNING:     /" >&2
10924     ;;
10925   no:yes )
10926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10928     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10932     (
10933       cat <<\_ASBOX
10934 ## ------------------------------------ ##
10935 ## Report this to bug-autoconf@gnu.org. ##
10936 ## ------------------------------------ ##
10937 _ASBOX
10938     ) |
10939       sed "s/^/$as_me: WARNING:     /" >&2
10940     ;;
10941 esac
10942 echo "$as_me:$LINENO: checking for $ac_header" >&5
10943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   eval "$as_ac_Header=$ac_header_preproc"
10948 fi
10949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10951
10952 fi
10953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10954   cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10956 _ACEOF
10957
10958 fi
10959
10960 done
10961
10962
10963 for ac_header in fp_class.h
10964 do
10965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10967   echo "$as_me:$LINENO: checking for $ac_header" >&5
10968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10970   echo $ECHO_N "(cached) $ECHO_C" >&6
10971 fi
10972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10974 else
10975   # Is the header compilable?
10976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10978 cat >conftest.$ac_ext <<_ACEOF
10979 #line $LINENO "configure"
10980 /* confdefs.h.  */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h.  */
10985 $ac_includes_default
10986 #include <$ac_header>
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990   (eval $ac_compile) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } &&
10994          { ac_try='test -s conftest.$ac_objext'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; }; then
11000   ac_header_compiler=yes
11001 else
11002   echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 ac_header_compiler=no
11006 fi
11007 rm -f conftest.$ac_objext conftest.$ac_ext
11008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11009 echo "${ECHO_T}$ac_header_compiler" >&6
11010
11011 # Is the header present?
11012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11014 cat >conftest.$ac_ext <<_ACEOF
11015 #line $LINENO "configure"
11016 /* confdefs.h.  */
11017 _ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h.  */
11021 #include <$ac_header>
11022 _ACEOF
11023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } >/dev/null; then
11031   if test -s conftest.err; then
11032     ac_cpp_err=$ac_c_preproc_warn_flag
11033   else
11034     ac_cpp_err=
11035   fi
11036 else
11037   ac_cpp_err=yes
11038 fi
11039 if test -z "$ac_cpp_err"; then
11040   ac_header_preproc=yes
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045   ac_header_preproc=no
11046 fi
11047 rm -f conftest.err conftest.$ac_ext
11048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11049 echo "${ECHO_T}$ac_header_preproc" >&6
11050
11051 # So?  What about this header?
11052 case $ac_header_compiler:$ac_header_preproc in
11053   yes:no )
11054     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058     (
11059       cat <<\_ASBOX
11060 ## ------------------------------------ ##
11061 ## Report this to bug-autoconf@gnu.org. ##
11062 ## ------------------------------------ ##
11063 _ASBOX
11064     ) |
11065       sed "s/^/$as_me: WARNING:     /" >&2
11066     ;;
11067   no:yes )
11068     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11070     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11074     (
11075       cat <<\_ASBOX
11076 ## ------------------------------------ ##
11077 ## Report this to bug-autoconf@gnu.org. ##
11078 ## ------------------------------------ ##
11079 _ASBOX
11080     ) |
11081       sed "s/^/$as_me: WARNING:     /" >&2
11082     ;;
11083 esac
11084 echo "$as_me:$LINENO: checking for $ac_header" >&5
11085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11087   echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089   eval "$as_ac_Header=$ac_header_preproc"
11090 fi
11091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11093
11094 fi
11095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11096   cat >>confdefs.h <<_ACEOF
11097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11098 _ACEOF
11099
11100 fi
11101
11102 done
11103
11104
11105 for ac_header in float.h
11106 do
11107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109   echo "$as_me:$LINENO: checking for $ac_header" >&5
11110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11112   echo $ECHO_N "(cached) $ECHO_C" >&6
11113 fi
11114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11116 else
11117   # Is the header compilable?
11118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127 $ac_includes_default
11128 #include <$ac_header>
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132   (eval $ac_compile) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -s conftest.$ac_objext'
11137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138   (eval $ac_try) 2>&5
11139   ac_status=$?
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); }; }; then
11142   ac_header_compiler=yes
11143 else
11144   echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 ac_header_compiler=no
11148 fi
11149 rm -f conftest.$ac_objext conftest.$ac_ext
11150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11151 echo "${ECHO_T}$ac_header_compiler" >&6
11152
11153 # Is the header present?
11154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11156 cat >conftest.$ac_ext <<_ACEOF
11157 #line $LINENO "configure"
11158 /* confdefs.h.  */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h.  */
11163 #include <$ac_header>
11164 _ACEOF
11165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11167   ac_status=$?
11168   grep -v '^ *+' conftest.er1 >conftest.err
11169   rm -f conftest.er1
11170   cat conftest.err >&5
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); } >/dev/null; then
11173   if test -s conftest.err; then
11174     ac_cpp_err=$ac_c_preproc_warn_flag
11175   else
11176     ac_cpp_err=
11177   fi
11178 else
11179   ac_cpp_err=yes
11180 fi
11181 if test -z "$ac_cpp_err"; then
11182   ac_header_preproc=yes
11183 else
11184   echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11186
11187   ac_header_preproc=no
11188 fi
11189 rm -f conftest.err conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11191 echo "${ECHO_T}$ac_header_preproc" >&6
11192
11193 # So?  What about this header?
11194 case $ac_header_compiler:$ac_header_preproc in
11195   yes:no )
11196     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11200     (
11201       cat <<\_ASBOX
11202 ## ------------------------------------ ##
11203 ## Report this to bug-autoconf@gnu.org. ##
11204 ## ------------------------------------ ##
11205 _ASBOX
11206     ) |
11207       sed "s/^/$as_me: WARNING:     /" >&2
11208     ;;
11209   no:yes )
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216     (
11217       cat <<\_ASBOX
11218 ## ------------------------------------ ##
11219 ## Report this to bug-autoconf@gnu.org. ##
11220 ## ------------------------------------ ##
11221 _ASBOX
11222     ) |
11223       sed "s/^/$as_me: WARNING:     /" >&2
11224     ;;
11225 esac
11226 echo "$as_me:$LINENO: checking for $ac_header" >&5
11227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231   eval "$as_ac_Header=$ac_header_preproc"
11232 fi
11233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11235
11236 fi
11237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11238   cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11240 _ACEOF
11241
11242 fi
11243
11244 done
11245
11246
11247 for ac_header in stdlib.h
11248 do
11249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251   echo "$as_me:$LINENO: checking for $ac_header" >&5
11252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11254   echo $ECHO_N "(cached) $ECHO_C" >&6
11255 fi
11256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11258 else
11259   # Is the header compilable?
11260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11263 #line $LINENO "configure"
11264 /* confdefs.h.  */
11265 _ACEOF
11266 cat confdefs.h >>conftest.$ac_ext
11267 cat >>conftest.$ac_ext <<_ACEOF
11268 /* end confdefs.h.  */
11269 $ac_includes_default
11270 #include <$ac_header>
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274   (eval $ac_compile) 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } &&
11278          { ac_try='test -s conftest.$ac_objext'
11279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280   (eval $ac_try) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; }; then
11284   ac_header_compiler=yes
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289 ac_header_compiler=no
11290 fi
11291 rm -f conftest.$ac_objext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293 echo "${ECHO_T}$ac_header_compiler" >&6
11294
11295 # Is the header present?
11296 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11298 cat >conftest.$ac_ext <<_ACEOF
11299 #line $LINENO "configure"
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 #include <$ac_header>
11306 _ACEOF
11307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11308   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11309   ac_status=$?
11310   grep -v '^ *+' conftest.er1 >conftest.err
11311   rm -f conftest.er1
11312   cat conftest.err >&5
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } >/dev/null; then
11315   if test -s conftest.err; then
11316     ac_cpp_err=$ac_c_preproc_warn_flag
11317   else
11318     ac_cpp_err=
11319   fi
11320 else
11321   ac_cpp_err=yes
11322 fi
11323 if test -z "$ac_cpp_err"; then
11324   ac_header_preproc=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329   ac_header_preproc=no
11330 fi
11331 rm -f conftest.err conftest.$ac_ext
11332 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11333 echo "${ECHO_T}$ac_header_preproc" >&6
11334
11335 # So?  What about this header?
11336 case $ac_header_compiler:$ac_header_preproc in
11337   yes:no )
11338     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11339 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11342     (
11343       cat <<\_ASBOX
11344 ## ------------------------------------ ##
11345 ## Report this to bug-autoconf@gnu.org. ##
11346 ## ------------------------------------ ##
11347 _ASBOX
11348     ) |
11349       sed "s/^/$as_me: WARNING:     /" >&2
11350     ;;
11351   no:yes )
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11358     (
11359       cat <<\_ASBOX
11360 ## ------------------------------------ ##
11361 ## Report this to bug-autoconf@gnu.org. ##
11362 ## ------------------------------------ ##
11363 _ASBOX
11364     ) |
11365       sed "s/^/$as_me: WARNING:     /" >&2
11366     ;;
11367 esac
11368 echo "$as_me:$LINENO: checking for $ac_header" >&5
11369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   eval "$as_ac_Header=$ac_header_preproc"
11374 fi
11375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11377
11378 fi
11379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11380   cat >>confdefs.h <<_ACEOF
11381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11382 _ACEOF
11383
11384 fi
11385
11386 done
11387
11388
11389 for ac_header in sys/socket.h
11390 do
11391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11392 echo "$as_me:$LINENO: checking for $ac_header" >&5
11393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11395   echo $ECHO_N "(cached) $ECHO_C" >&6
11396 else
11397   cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 #if HAVE_SYS_TYPES_H
11405 # include <sys/types.h>
11406 # endif
11407
11408
11409 #include <$ac_header>
11410 _ACEOF
11411 rm -f conftest.$ac_objext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413   (eval $ac_compile) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -s conftest.$ac_objext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   eval "$as_ac_Header=yes"
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 eval "$as_ac_Header=no"
11429 fi
11430 rm -f conftest.$ac_objext conftest.$ac_ext
11431 fi
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11435   cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11437 _ACEOF
11438
11439 fi
11440
11441 done
11442
11443
11444 for ac_header in netinet/in.h
11445 do
11446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11447 echo "$as_me:$LINENO: checking for $ac_header" >&5
11448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11450   echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452   cat >conftest.$ac_ext <<_ACEOF
11453 #line $LINENO "configure"
11454 /* confdefs.h.  */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h.  */
11459 #if HAVE_SYS_TYPES_H
11460 # include <sys/types.h>
11461 # endif
11462
11463
11464 #include <$ac_header>
11465 _ACEOF
11466 rm -f conftest.$ac_objext
11467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11468   (eval $ac_compile) 2>&5
11469   ac_status=$?
11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471   (exit $ac_status); } &&
11472          { ac_try='test -s conftest.$ac_objext'
11473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474   (eval $ac_try) 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; }; then
11478   eval "$as_ac_Header=yes"
11479 else
11480   echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11482
11483 eval "$as_ac_Header=no"
11484 fi
11485 rm -f conftest.$ac_objext conftest.$ac_ext
11486 fi
11487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11490   cat >>confdefs.h <<_ACEOF
11491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11492 _ACEOF
11493
11494 fi
11495
11496 done
11497
11498
11499 for ac_header in arpa/inet.h
11500 do
11501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502 echo "$as_me:$LINENO: checking for $ac_header" >&5
11503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   cat >conftest.$ac_ext <<_ACEOF
11508 #line $LINENO "configure"
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 #if HAVE_SYS_TYPES_H
11515 # include <sys/types.h>
11516 # endif
11517 #if HAVE_ARPA_INET_H
11518 # include <arpa/inet.h>
11519 # endif
11520
11521
11522 #include <$ac_header>
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526   (eval $ac_compile) 2>&5
11527   ac_status=$?
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -s conftest.$ac_objext'
11531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532   (eval $ac_try) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; }; then
11536   eval "$as_ac_Header=yes"
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 eval "$as_ac_Header=no"
11542 fi
11543 rm -f conftest.$ac_objext conftest.$ac_ext
11544 fi
11545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11548   cat >>confdefs.h <<_ACEOF
11549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11550 _ACEOF
11551
11552 fi
11553
11554 done
11555
11556
11557 for ac_header in netdb.h
11558 do
11559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11561   echo "$as_me:$LINENO: checking for $ac_header" >&5
11562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 fi
11566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11568 else
11569   # Is the header compilable?
11570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11572 cat >conftest.$ac_ext <<_ACEOF
11573 #line $LINENO "configure"
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 $ac_includes_default
11580 #include <$ac_header>
11581 _ACEOF
11582 rm -f conftest.$ac_objext
11583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11584   (eval $ac_compile) 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); } &&
11588          { ac_try='test -s conftest.$ac_objext'
11589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590   (eval $ac_try) 2>&5
11591   ac_status=$?
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); }; }; then
11594   ac_header_compiler=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599 ac_header_compiler=no
11600 fi
11601 rm -f conftest.$ac_objext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11603 echo "${ECHO_T}$ac_header_compiler" >&6
11604
11605 # Is the header present?
11606 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11607 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11608 cat >conftest.$ac_ext <<_ACEOF
11609 #line $LINENO "configure"
11610 /* confdefs.h.  */
11611 _ACEOF
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h.  */
11615 #include <$ac_header>
11616 _ACEOF
11617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } >/dev/null; then
11625   if test -s conftest.err; then
11626     ac_cpp_err=$ac_c_preproc_warn_flag
11627   else
11628     ac_cpp_err=
11629   fi
11630 else
11631   ac_cpp_err=yes
11632 fi
11633 if test -z "$ac_cpp_err"; then
11634   ac_header_preproc=yes
11635 else
11636   echo "$as_me: failed program was:" >&5
11637 sed 's/^/| /' conftest.$ac_ext >&5
11638
11639   ac_header_preproc=no
11640 fi
11641 rm -f conftest.err conftest.$ac_ext
11642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11643 echo "${ECHO_T}$ac_header_preproc" >&6
11644
11645 # So?  What about this header?
11646 case $ac_header_compiler:$ac_header_preproc in
11647   yes:no )
11648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11652     (
11653       cat <<\_ASBOX
11654 ## ------------------------------------ ##
11655 ## Report this to bug-autoconf@gnu.org. ##
11656 ## ------------------------------------ ##
11657 _ASBOX
11658     ) |
11659       sed "s/^/$as_me: WARNING:     /" >&2
11660     ;;
11661   no:yes )
11662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11664     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11668     (
11669       cat <<\_ASBOX
11670 ## ------------------------------------ ##
11671 ## Report this to bug-autoconf@gnu.org. ##
11672 ## ------------------------------------ ##
11673 _ASBOX
11674     ) |
11675       sed "s/^/$as_me: WARNING:     /" >&2
11676     ;;
11677 esac
11678 echo "$as_me:$LINENO: checking for $ac_header" >&5
11679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   eval "$as_ac_Header=$ac_header_preproc"
11684 fi
11685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11687
11688 fi
11689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11690   cat >>confdefs.h <<_ACEOF
11691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11692 _ACEOF
11693
11694 fi
11695
11696 done
11697
11698
11699 for ac_header in sys/time.h
11700 do
11701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11703   echo "$as_me:$LINENO: checking for $ac_header" >&5
11704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11706   echo $ECHO_N "(cached) $ECHO_C" >&6
11707 fi
11708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11710 else
11711   # Is the header compilable?
11712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line $LINENO "configure"
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721 $ac_includes_default
11722 #include <$ac_header>
11723 _ACEOF
11724 rm -f conftest.$ac_objext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726   (eval $ac_compile) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } &&
11730          { ac_try='test -s conftest.$ac_objext'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   ac_header_compiler=yes
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 ac_header_compiler=no
11742 fi
11743 rm -f conftest.$ac_objext conftest.$ac_ext
11744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11745 echo "${ECHO_T}$ac_header_compiler" >&6
11746
11747 # Is the header present?
11748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11750 cat >conftest.$ac_ext <<_ACEOF
11751 #line $LINENO "configure"
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 #include <$ac_header>
11758 _ACEOF
11759 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11760   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11761   ac_status=$?
11762   grep -v '^ *+' conftest.er1 >conftest.err
11763   rm -f conftest.er1
11764   cat conftest.err >&5
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } >/dev/null; then
11767   if test -s conftest.err; then
11768     ac_cpp_err=$ac_c_preproc_warn_flag
11769   else
11770     ac_cpp_err=
11771   fi
11772 else
11773   ac_cpp_err=yes
11774 fi
11775 if test -z "$ac_cpp_err"; then
11776   ac_header_preproc=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781   ac_header_preproc=no
11782 fi
11783 rm -f conftest.err conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11785 echo "${ECHO_T}$ac_header_preproc" >&6
11786
11787 # So?  What about this header?
11788 case $ac_header_compiler:$ac_header_preproc in
11789   yes:no )
11790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11794     (
11795       cat <<\_ASBOX
11796 ## ------------------------------------ ##
11797 ## Report this to bug-autoconf@gnu.org. ##
11798 ## ------------------------------------ ##
11799 _ASBOX
11800     ) |
11801       sed "s/^/$as_me: WARNING:     /" >&2
11802     ;;
11803   no:yes )
11804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11806     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11808     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810     (
11811       cat <<\_ASBOX
11812 ## ------------------------------------ ##
11813 ## Report this to bug-autoconf@gnu.org. ##
11814 ## ------------------------------------ ##
11815 _ASBOX
11816     ) |
11817       sed "s/^/$as_me: WARNING:     /" >&2
11818     ;;
11819 esac
11820 echo "$as_me:$LINENO: checking for $ac_header" >&5
11821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11823   echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825   eval "$as_ac_Header=$ac_header_preproc"
11826 fi
11827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11829
11830 fi
11831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11832   cat >>confdefs.h <<_ACEOF
11833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11834 _ACEOF
11835
11836 fi
11837
11838 done
11839
11840
11841 for ac_header in sys/select.h
11842 do
11843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11845   echo "$as_me:$LINENO: checking for $ac_header" >&5
11846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 fi
11850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11852 else
11853   # Is the header compilable?
11854 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11856 cat >conftest.$ac_ext <<_ACEOF
11857 #line $LINENO "configure"
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 $ac_includes_default
11864 #include <$ac_header>
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868   (eval $ac_compile) 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -s conftest.$ac_objext'
11873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874   (eval $ac_try) 2>&5
11875   ac_status=$?
11876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877   (exit $ac_status); }; }; then
11878   ac_header_compiler=yes
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883 ac_header_compiler=no
11884 fi
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11887 echo "${ECHO_T}$ac_header_compiler" >&6
11888
11889 # Is the header present?
11890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11892 cat >conftest.$ac_ext <<_ACEOF
11893 #line $LINENO "configure"
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899 #include <$ac_header>
11900 _ACEOF
11901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11902   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } >/dev/null; then
11909   if test -s conftest.err; then
11910     ac_cpp_err=$ac_c_preproc_warn_flag
11911   else
11912     ac_cpp_err=
11913   fi
11914 else
11915   ac_cpp_err=yes
11916 fi
11917 if test -z "$ac_cpp_err"; then
11918   ac_header_preproc=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923   ac_header_preproc=no
11924 fi
11925 rm -f conftest.err conftest.$ac_ext
11926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11927 echo "${ECHO_T}$ac_header_preproc" >&6
11928
11929 # So?  What about this header?
11930 case $ac_header_compiler:$ac_header_preproc in
11931   yes:no )
11932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11936     (
11937       cat <<\_ASBOX
11938 ## ------------------------------------ ##
11939 ## Report this to bug-autoconf@gnu.org. ##
11940 ## ------------------------------------ ##
11941 _ASBOX
11942     ) |
11943       sed "s/^/$as_me: WARNING:     /" >&2
11944     ;;
11945   no:yes )
11946     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11948     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11952     (
11953       cat <<\_ASBOX
11954 ## ------------------------------------ ##
11955 ## Report this to bug-autoconf@gnu.org. ##
11956 ## ------------------------------------ ##
11957 _ASBOX
11958     ) |
11959       sed "s/^/$as_me: WARNING:     /" >&2
11960     ;;
11961 esac
11962 echo "$as_me:$LINENO: checking for $ac_header" >&5
11963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11965   echo $ECHO_N "(cached) $ECHO_C" >&6
11966 else
11967   eval "$as_ac_Header=$ac_header_preproc"
11968 fi
11969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11971
11972 fi
11973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974   cat >>confdefs.h <<_ACEOF
11975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976 _ACEOF
11977
11978 fi
11979
11980 done
11981
11982
11983 for ac_header in sys/mman.h
11984 do
11985 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11987   echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11990   echo $ECHO_N "(cached) $ECHO_C" >&6
11991 fi
11992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11994 else
11995   # Is the header compilable?
11996 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
11999 #line $LINENO "configure"
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005 $ac_includes_default
12006 #include <$ac_header>
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010   (eval $ac_compile) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -s conftest.$ac_objext'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   ac_header_compiler=yes
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025 ac_header_compiler=no
12026 fi
12027 rm -f conftest.$ac_objext conftest.$ac_ext
12028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12029 echo "${ECHO_T}$ac_header_compiler" >&6
12030
12031 # Is the header present?
12032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <$ac_header>
12042 _ACEOF
12043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12045   ac_status=$?
12046   grep -v '^ *+' conftest.er1 >conftest.err
12047   rm -f conftest.er1
12048   cat conftest.err >&5
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); } >/dev/null; then
12051   if test -s conftest.err; then
12052     ac_cpp_err=$ac_c_preproc_warn_flag
12053   else
12054     ac_cpp_err=
12055   fi
12056 else
12057   ac_cpp_err=yes
12058 fi
12059 if test -z "$ac_cpp_err"; then
12060   ac_header_preproc=yes
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065   ac_header_preproc=no
12066 fi
12067 rm -f conftest.err conftest.$ac_ext
12068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12069 echo "${ECHO_T}$ac_header_preproc" >&6
12070
12071 # So?  What about this header?
12072 case $ac_header_compiler:$ac_header_preproc in
12073   yes:no )
12074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12078     (
12079       cat <<\_ASBOX
12080 ## ------------------------------------ ##
12081 ## Report this to bug-autoconf@gnu.org. ##
12082 ## ------------------------------------ ##
12083 _ASBOX
12084     ) |
12085       sed "s/^/$as_me: WARNING:     /" >&2
12086     ;;
12087   no:yes )
12088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12090     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12091 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12092     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12094     (
12095       cat <<\_ASBOX
12096 ## ------------------------------------ ##
12097 ## Report this to bug-autoconf@gnu.org. ##
12098 ## ------------------------------------ ##
12099 _ASBOX
12100     ) |
12101       sed "s/^/$as_me: WARNING:     /" >&2
12102     ;;
12103 esac
12104 echo "$as_me:$LINENO: checking for $ac_header" >&5
12105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   eval "$as_ac_Header=$ac_header_preproc"
12110 fi
12111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12113
12114 fi
12115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12116   cat >>confdefs.h <<_ACEOF
12117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12118 _ACEOF
12119
12120 fi
12121
12122 done
12123
12124
12125 for ac_header in sys/timeb.h
12126 do
12127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12129   echo "$as_me:$LINENO: checking for $ac_header" >&5
12130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12132   echo $ECHO_N "(cached) $ECHO_C" >&6
12133 fi
12134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12136 else
12137   # Is the header compilable?
12138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 $ac_includes_default
12148 #include <$ac_header>
12149 _ACEOF
12150 rm -f conftest.$ac_objext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12152   (eval $ac_compile) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } &&
12156          { ac_try='test -s conftest.$ac_objext'
12157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158   (eval $ac_try) 2>&5
12159   ac_status=$?
12160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161   (exit $ac_status); }; }; then
12162   ac_header_compiler=yes
12163 else
12164   echo "$as_me: failed program was:" >&5
12165 sed 's/^/| /' conftest.$ac_ext >&5
12166
12167 ac_header_compiler=no
12168 fi
12169 rm -f conftest.$ac_objext conftest.$ac_ext
12170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12171 echo "${ECHO_T}$ac_header_compiler" >&6
12172
12173 # Is the header present?
12174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12176 cat >conftest.$ac_ext <<_ACEOF
12177 #line $LINENO "configure"
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 #include <$ac_header>
12184 _ACEOF
12185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12186   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12187   ac_status=$?
12188   grep -v '^ *+' conftest.er1 >conftest.err
12189   rm -f conftest.er1
12190   cat conftest.err >&5
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); } >/dev/null; then
12193   if test -s conftest.err; then
12194     ac_cpp_err=$ac_c_preproc_warn_flag
12195   else
12196     ac_cpp_err=
12197   fi
12198 else
12199   ac_cpp_err=yes
12200 fi
12201 if test -z "$ac_cpp_err"; then
12202   ac_header_preproc=yes
12203 else
12204   echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.$ac_ext >&5
12206
12207   ac_header_preproc=no
12208 fi
12209 rm -f conftest.err conftest.$ac_ext
12210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12211 echo "${ECHO_T}$ac_header_preproc" >&6
12212
12213 # So?  What about this header?
12214 case $ac_header_compiler:$ac_header_preproc in
12215   yes:no )
12216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12220     (
12221       cat <<\_ASBOX
12222 ## ------------------------------------ ##
12223 ## Report this to bug-autoconf@gnu.org. ##
12224 ## ------------------------------------ ##
12225 _ASBOX
12226     ) |
12227       sed "s/^/$as_me: WARNING:     /" >&2
12228     ;;
12229   no:yes )
12230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12232     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12234     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12236     (
12237       cat <<\_ASBOX
12238 ## ------------------------------------ ##
12239 ## Report this to bug-autoconf@gnu.org. ##
12240 ## ------------------------------------ ##
12241 _ASBOX
12242     ) |
12243       sed "s/^/$as_me: WARNING:     /" >&2
12244     ;;
12245 esac
12246 echo "$as_me:$LINENO: checking for $ac_header" >&5
12247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12249   echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251   eval "$as_ac_Header=$ac_header_preproc"
12252 fi
12253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12255
12256 fi
12257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12258   cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12260 _ACEOF
12261
12262 fi
12263
12264 done
12265
12266
12267 for ac_header in signal.h
12268 do
12269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12271   echo "$as_me:$LINENO: checking for $ac_header" >&5
12272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 fi
12276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12278 else
12279   # Is the header compilable?
12280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12282 cat >conftest.$ac_ext <<_ACEOF
12283 #line $LINENO "configure"
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 $ac_includes_default
12290 #include <$ac_header>
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294   (eval $ac_compile) 2>&5
12295   ac_status=$?
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -s conftest.$ac_objext'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; }; then
12304   ac_header_compiler=yes
12305 else
12306   echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12308
12309 ac_header_compiler=no
12310 fi
12311 rm -f conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12313 echo "${ECHO_T}$ac_header_compiler" >&6
12314
12315 # Is the header present?
12316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12318 cat >conftest.$ac_ext <<_ACEOF
12319 #line $LINENO "configure"
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325 #include <$ac_header>
12326 _ACEOF
12327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12329   ac_status=$?
12330   grep -v '^ *+' conftest.er1 >conftest.err
12331   rm -f conftest.er1
12332   cat conftest.err >&5
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } >/dev/null; then
12335   if test -s conftest.err; then
12336     ac_cpp_err=$ac_c_preproc_warn_flag
12337   else
12338     ac_cpp_err=
12339   fi
12340 else
12341   ac_cpp_err=yes
12342 fi
12343 if test -z "$ac_cpp_err"; then
12344   ac_header_preproc=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349   ac_header_preproc=no
12350 fi
12351 rm -f conftest.err conftest.$ac_ext
12352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12353 echo "${ECHO_T}$ac_header_preproc" >&6
12354
12355 # So?  What about this header?
12356 case $ac_header_compiler:$ac_header_preproc in
12357   yes:no )
12358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12362     (
12363       cat <<\_ASBOX
12364 ## ------------------------------------ ##
12365 ## Report this to bug-autoconf@gnu.org. ##
12366 ## ------------------------------------ ##
12367 _ASBOX
12368     ) |
12369       sed "s/^/$as_me: WARNING:     /" >&2
12370     ;;
12371   no:yes )
12372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12374     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12378     (
12379       cat <<\_ASBOX
12380 ## ------------------------------------ ##
12381 ## Report this to bug-autoconf@gnu.org. ##
12382 ## ------------------------------------ ##
12383 _ASBOX
12384     ) |
12385       sed "s/^/$as_me: WARNING:     /" >&2
12386     ;;
12387 esac
12388 echo "$as_me:$LINENO: checking for $ac_header" >&5
12389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   eval "$as_ac_Header=$ac_header_preproc"
12394 fi
12395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12397
12398 fi
12399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12400   cat >>confdefs.h <<_ACEOF
12401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12402 _ACEOF
12403
12404 fi
12405
12406 done
12407
12408
12409 for ac_header in arpa/nameser.h
12410 do
12411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12412 echo "$as_me:$LINENO: checking for $ac_header" >&5
12413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   cat >conftest.$ac_ext <<_ACEOF
12418 #line $LINENO "configure"
12419 /* confdefs.h.  */
12420 _ACEOF
12421 cat confdefs.h >>conftest.$ac_ext
12422 cat >>conftest.$ac_ext <<_ACEOF
12423 /* end confdefs.h.  */
12424 #if HAVE_SYS_TYPES_H
12425 # include <sys/types.h>
12426 # endif
12427
12428
12429 #include <$ac_header>
12430 _ACEOF
12431 rm -f conftest.$ac_objext
12432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12433   (eval $ac_compile) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); } &&
12437          { ac_try='test -s conftest.$ac_objext'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; }; then
12443   eval "$as_ac_Header=yes"
12444 else
12445   echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 eval "$as_ac_Header=no"
12449 fi
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12451 fi
12452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12453 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12455   cat >>confdefs.h <<_ACEOF
12456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12457 _ACEOF
12458
12459 fi
12460
12461 done
12462
12463
12464 for ac_header in resolv.h
12465 do
12466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12467 echo "$as_me:$LINENO: checking for $ac_header" >&5
12468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12470   echo $ECHO_N "(cached) $ECHO_C" >&6
12471 else
12472   cat >conftest.$ac_ext <<_ACEOF
12473 #line $LINENO "configure"
12474 /* confdefs.h.  */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h.  */
12479 #if HAVE_SYS_TYPES_H
12480 # include <sys/types.h>
12481 # endif
12482 #if HAVE_NETINET_IN_H
12483 # include <netinet/in.h>
12484 # endif
12485 #if HAVE_ARPA_NAMESER_H
12486 # include <arpa/nameser.h>
12487 # endif
12488
12489
12490 #include <$ac_header>
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494   (eval $ac_compile) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } &&
12498          { ac_try='test -s conftest.$ac_objext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   eval "$as_ac_Header=yes"
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 eval "$as_ac_Header=no"
12510 fi
12511 rm -f conftest.$ac_objext conftest.$ac_ext
12512 fi
12513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12516   cat >>confdefs.h <<_ACEOF
12517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12518 _ACEOF
12519
12520 fi
12521
12522 done
12523
12524
12525 if test "x$with_html_dir" = "x" ; then
12526   HTML_DIR='$(prefix)/doc'
12527 else
12528   HTML_DIR=$with_html_dir
12529 fi
12530
12531
12532
12533
12534 for ac_func in strftime
12535 do
12536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12537 echo "$as_me:$LINENO: checking for $ac_func" >&5
12538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12539 if eval "test \"\${$as_ac_var+set}\" = set"; then
12540   echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12542   cat >conftest.$ac_ext <<_ACEOF
12543 #line $LINENO "configure"
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 /* System header to define __stub macros and hopefully few prototypes,
12550     which can conflict with char $ac_func (); below.
12551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12552     <limits.h> exists even on freestanding compilers.  */
12553 #ifdef __STDC__
12554 # include <limits.h>
12555 #else
12556 # include <assert.h>
12557 #endif
12558 /* Override any gcc2 internal prototype to avoid an error.  */
12559 #ifdef __cplusplus
12560 extern "C"
12561 {
12562 #endif
12563 /* We use char because int might match the return type of a gcc2
12564    builtin and then its argument prototype would still apply.  */
12565 char $ac_func ();
12566 /* The GNU C library defines this for functions which it implements
12567     to always fail with ENOSYS.  Some functions are actually named
12568     something starting with __ and the normal name is an alias.  */
12569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12570 choke me
12571 #else
12572 char (*f) () = $ac_func;
12573 #endif
12574 #ifdef __cplusplus
12575 }
12576 #endif
12577
12578 int
12579 main ()
12580 {
12581 return f != $ac_func;
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 rm -f conftest.$ac_objext conftest$ac_exeext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12588   (eval $ac_link) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } &&
12592          { ac_try='test -s conftest$ac_exeext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598   eval "$as_ac_var=yes"
12599 else
12600   echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 eval "$as_ac_var=no"
12604 fi
12605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12606 fi
12607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12609 if test `eval echo '${'$as_ac_var'}'` = yes; then
12610   cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12612 _ACEOF
12613
12614 else
12615   # strftime is in -lintl on SCO UNIX.
12616 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
12617 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
12618 if test "${ac_cv_lib_intl_strftime+set}" = set; then
12619   echo $ECHO_N "(cached) $ECHO_C" >&6
12620 else
12621   ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-lintl  $LIBS"
12623 cat >conftest.$ac_ext <<_ACEOF
12624 #line $LINENO "configure"
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630
12631 /* Override any gcc2 internal prototype to avoid an error.  */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 /* We use char because int might match the return type of a gcc2
12636    builtin and then its argument prototype would still apply.  */
12637 char strftime ();
12638 int
12639 main ()
12640 {
12641 strftime ();
12642   ;
12643   return 0;
12644 }
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648   (eval $ac_link) 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); } &&
12652          { ac_try='test -s conftest$ac_exeext'
12653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654   (eval $ac_try) 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   ac_cv_lib_intl_strftime=yes
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 ac_cv_lib_intl_strftime=no
12664 fi
12665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12666 LIBS=$ac_check_lib_save_LIBS
12667 fi
12668 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12669 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
12670 if test $ac_cv_lib_intl_strftime = yes; then
12671   cat >>confdefs.h <<\_ACEOF
12672 #define HAVE_STRFTIME 1
12673 _ACEOF
12674
12675 LIBS="-lintl $LIBS"
12676 fi
12677
12678 fi
12679 done
12680
12681
12682
12683
12684 for ac_func in strdup strndup strerror
12685 do
12686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12687 echo "$as_me:$LINENO: checking for $ac_func" >&5
12688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12689 if eval "test \"\${$as_ac_var+set}\" = set"; then
12690   echo $ECHO_N "(cached) $ECHO_C" >&6
12691 else
12692   cat >conftest.$ac_ext <<_ACEOF
12693 #line $LINENO "configure"
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699 /* System header to define __stub macros and hopefully few prototypes,
12700     which can conflict with char $ac_func (); below.
12701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12702     <limits.h> exists even on freestanding compilers.  */
12703 #ifdef __STDC__
12704 # include <limits.h>
12705 #else
12706 # include <assert.h>
12707 #endif
12708 /* Override any gcc2 internal prototype to avoid an error.  */
12709 #ifdef __cplusplus
12710 extern "C"
12711 {
12712 #endif
12713 /* We use char because int might match the return type of a gcc2
12714    builtin and then its argument prototype would still apply.  */
12715 char $ac_func ();
12716 /* The GNU C library defines this for functions which it implements
12717     to always fail with ENOSYS.  Some functions are actually named
12718     something starting with __ and the normal name is an alias.  */
12719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12720 choke me
12721 #else
12722 char (*f) () = $ac_func;
12723 #endif
12724 #ifdef __cplusplus
12725 }
12726 #endif
12727
12728 int
12729 main ()
12730 {
12731 return f != $ac_func;
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext conftest$ac_exeext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12738   (eval $ac_link) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } &&
12742          { ac_try='test -s conftest$ac_exeext'
12743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744   (eval $ac_try) 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); }; }; then
12748   eval "$as_ac_var=yes"
12749 else
12750   echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753 eval "$as_ac_var=no"
12754 fi
12755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12756 fi
12757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12759 if test `eval echo '${'$as_ac_var'}'` = yes; then
12760   cat >>confdefs.h <<_ACEOF
12761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12762 _ACEOF
12763
12764 fi
12765 done
12766
12767
12768
12769
12770
12771
12772 for ac_func in finite isnand fp_class class fpclass
12773 do
12774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12775 echo "$as_me:$LINENO: checking for $ac_func" >&5
12776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12777 if eval "test \"\${$as_ac_var+set}\" = set"; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   cat >conftest.$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 /* confdefs.h.  */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h.  */
12787 /* System header to define __stub macros and hopefully few prototypes,
12788     which can conflict with char $ac_func (); below.
12789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12790     <limits.h> exists even on freestanding compilers.  */
12791 #ifdef __STDC__
12792 # include <limits.h>
12793 #else
12794 # include <assert.h>
12795 #endif
12796 /* Override any gcc2 internal prototype to avoid an error.  */
12797 #ifdef __cplusplus
12798 extern "C"
12799 {
12800 #endif
12801 /* We use char because int might match the return type of a gcc2
12802    builtin and then its argument prototype would still apply.  */
12803 char $ac_func ();
12804 /* The GNU C library defines this for functions which it implements
12805     to always fail with ENOSYS.  Some functions are actually named
12806     something starting with __ and the normal name is an alias.  */
12807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 choke me
12809 #else
12810 char (*f) () = $ac_func;
12811 #endif
12812 #ifdef __cplusplus
12813 }
12814 #endif
12815
12816 int
12817 main ()
12818 {
12819 return f != $ac_func;
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826   (eval $ac_link) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); } &&
12830          { ac_try='test -s conftest$ac_exeext'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836   eval "$as_ac_var=yes"
12837 else
12838   echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12840
12841 eval "$as_ac_var=no"
12842 fi
12843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12844 fi
12845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12847 if test `eval echo '${'$as_ac_var'}'` = yes; then
12848   cat >>confdefs.h <<_ACEOF
12849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12850 _ACEOF
12851
12852 fi
12853 done
12854
12855
12856
12857
12858
12859 for ac_func in strftime localtime gettimeofday ftime
12860 do
12861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12862 echo "$as_me:$LINENO: checking for $ac_func" >&5
12863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12864 if eval "test \"\${$as_ac_var+set}\" = set"; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   cat >conftest.$ac_ext <<_ACEOF
12868 #line $LINENO "configure"
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 /* System header to define __stub macros and hopefully few prototypes,
12875     which can conflict with char $ac_func (); below.
12876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12877     <limits.h> exists even on freestanding compilers.  */
12878 #ifdef __STDC__
12879 # include <limits.h>
12880 #else
12881 # include <assert.h>
12882 #endif
12883 /* Override any gcc2 internal prototype to avoid an error.  */
12884 #ifdef __cplusplus
12885 extern "C"
12886 {
12887 #endif
12888 /* We use char because int might match the return type of a gcc2
12889    builtin and then its argument prototype would still apply.  */
12890 char $ac_func ();
12891 /* The GNU C library defines this for functions which it implements
12892     to always fail with ENOSYS.  Some functions are actually named
12893     something starting with __ and the normal name is an alias.  */
12894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12895 choke me
12896 #else
12897 char (*f) () = $ac_func;
12898 #endif
12899 #ifdef __cplusplus
12900 }
12901 #endif
12902
12903 int
12904 main ()
12905 {
12906 return f != $ac_func;
12907   ;
12908   return 0;
12909 }
12910 _ACEOF
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12913   (eval $ac_link) 2>&5
12914   ac_status=$?
12915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916   (exit $ac_status); } &&
12917          { ac_try='test -s conftest$ac_exeext'
12918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12919   (eval $ac_try) 2>&5
12920   ac_status=$?
12921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922   (exit $ac_status); }; }; then
12923   eval "$as_ac_var=yes"
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 eval "$as_ac_var=no"
12929 fi
12930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12931 fi
12932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12934 if test `eval echo '${'$as_ac_var'}'` = yes; then
12935   cat >>confdefs.h <<_ACEOF
12936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12937 _ACEOF
12938
12939 fi
12940 done
12941
12942
12943
12944
12945 for ac_func in stat _stat signal
12946 do
12947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12948 echo "$as_me:$LINENO: checking for $ac_func" >&5
12949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12950 if eval "test \"\${$as_ac_var+set}\" = set"; then
12951   echo $ECHO_N "(cached) $ECHO_C" >&6
12952 else
12953   cat >conftest.$ac_ext <<_ACEOF
12954 #line $LINENO "configure"
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 /* System header to define __stub macros and hopefully few prototypes,
12961     which can conflict with char $ac_func (); below.
12962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12963     <limits.h> exists even on freestanding compilers.  */
12964 #ifdef __STDC__
12965 # include <limits.h>
12966 #else
12967 # include <assert.h>
12968 #endif
12969 /* Override any gcc2 internal prototype to avoid an error.  */
12970 #ifdef __cplusplus
12971 extern "C"
12972 {
12973 #endif
12974 /* We use char because int might match the return type of a gcc2
12975    builtin and then its argument prototype would still apply.  */
12976 char $ac_func ();
12977 /* The GNU C library defines this for functions which it implements
12978     to always fail with ENOSYS.  Some functions are actually named
12979     something starting with __ and the normal name is an alias.  */
12980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12981 choke me
12982 #else
12983 char (*f) () = $ac_func;
12984 #endif
12985 #ifdef __cplusplus
12986 }
12987 #endif
12988
12989 int
12990 main ()
12991 {
12992 return f != $ac_func;
12993   ;
12994   return 0;
12995 }
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999   (eval $ac_link) 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); } &&
13003          { ac_try='test -s conftest$ac_exeext'
13004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005   (eval $ac_try) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; }; then
13009   eval "$as_ac_var=yes"
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 eval "$as_ac_var=no"
13015 fi
13016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13017 fi
13018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13020 if test `eval echo '${'$as_ac_var'}'` = yes; then
13021   cat >>confdefs.h <<_ACEOF
13022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13023 _ACEOF
13024
13025 fi
13026 done
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
13038 do
13039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13040 echo "$as_me:$LINENO: checking for $ac_func" >&5
13041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13042 if eval "test \"\${$as_ac_var+set}\" = set"; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045   cat >conftest.$ac_ext <<_ACEOF
13046 #line $LINENO "configure"
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052 /* System header to define __stub macros and hopefully few prototypes,
13053     which can conflict with char $ac_func (); below.
13054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13055     <limits.h> exists even on freestanding compilers.  */
13056 #ifdef __STDC__
13057 # include <limits.h>
13058 #else
13059 # include <assert.h>
13060 #endif
13061 /* Override any gcc2 internal prototype to avoid an error.  */
13062 #ifdef __cplusplus
13063 extern "C"
13064 {
13065 #endif
13066 /* We use char because int might match the return type of a gcc2
13067    builtin and then its argument prototype would still apply.  */
13068 char $ac_func ();
13069 /* The GNU C library defines this for functions which it implements
13070     to always fail with ENOSYS.  Some functions are actually named
13071     something starting with __ and the normal name is an alias.  */
13072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13073 choke me
13074 #else
13075 char (*f) () = $ac_func;
13076 #endif
13077 #ifdef __cplusplus
13078 }
13079 #endif
13080
13081 int
13082 main ()
13083 {
13084 return f != $ac_func;
13085   ;
13086   return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext conftest$ac_exeext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13091   (eval $ac_link) 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); } &&
13095          { ac_try='test -s conftest$ac_exeext'
13096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097   (eval $ac_try) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; }; then
13101   eval "$as_ac_var=yes"
13102 else
13103   echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13105
13106 eval "$as_ac_var=no"
13107 fi
13108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13109 fi
13110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13112 if test `eval echo '${'$as_ac_var'}'` = yes; then
13113   cat >>confdefs.h <<_ACEOF
13114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13115 _ACEOF
13116
13117 else
13118   NEED_TRIO=1
13119 fi
13120 done
13121
13122
13123 echo "$as_me:$LINENO: checking for gethostent" >&5
13124 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
13125 if test "${ac_cv_func_gethostent+set}" = set; then
13126   echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128   cat >conftest.$ac_ext <<_ACEOF
13129 #line $LINENO "configure"
13130 /* confdefs.h.  */
13131 _ACEOF
13132 cat confdefs.h >>conftest.$ac_ext
13133 cat >>conftest.$ac_ext <<_ACEOF
13134 /* end confdefs.h.  */
13135 /* System header to define __stub macros and hopefully few prototypes,
13136     which can conflict with char gethostent (); below.
13137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13138     <limits.h> exists even on freestanding compilers.  */
13139 #ifdef __STDC__
13140 # include <limits.h>
13141 #else
13142 # include <assert.h>
13143 #endif
13144 /* Override any gcc2 internal prototype to avoid an error.  */
13145 #ifdef __cplusplus
13146 extern "C"
13147 {
13148 #endif
13149 /* We use char because int might match the return type of a gcc2
13150    builtin and then its argument prototype would still apply.  */
13151 char gethostent ();
13152 /* The GNU C library defines this for functions which it implements
13153     to always fail with ENOSYS.  Some functions are actually named
13154     something starting with __ and the normal name is an alias.  */
13155 #if defined (__stub_gethostent) || defined (__stub___gethostent)
13156 choke me
13157 #else
13158 char (*f) () = gethostent;
13159 #endif
13160 #ifdef __cplusplus
13161 }
13162 #endif
13163
13164 int
13165 main ()
13166 {
13167 return f != gethostent;
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174   (eval $ac_link) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } &&
13178          { ac_try='test -s conftest$ac_exeext'
13179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180   (eval $ac_try) 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; }; then
13184   ac_cv_func_gethostent=yes
13185 else
13186   echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ac_cv_func_gethostent=no
13190 fi
13191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13192 fi
13193 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
13194 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
13195 if test $ac_cv_func_gethostent = yes; then
13196   :
13197 else
13198
13199 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
13200 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
13201 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
13202   echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204   ac_check_lib_save_LIBS=$LIBS
13205 LIBS="-lnsl  $LIBS"
13206 cat >conftest.$ac_ext <<_ACEOF
13207 #line $LINENO "configure"
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213
13214 /* Override any gcc2 internal prototype to avoid an error.  */
13215 #ifdef __cplusplus
13216 extern "C"
13217 #endif
13218 /* We use char because int might match the return type of a gcc2
13219    builtin and then its argument prototype would still apply.  */
13220 char gethostent ();
13221 int
13222 main ()
13223 {
13224 gethostent ();
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231   (eval $ac_link) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } &&
13235          { ac_try='test -s conftest$ac_exeext'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; }; then
13241   ac_cv_lib_nsl_gethostent=yes
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 ac_cv_lib_nsl_gethostent=no
13247 fi
13248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13250 fi
13251 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
13252 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
13253 if test $ac_cv_lib_nsl_gethostent = yes; then
13254   cat >>confdefs.h <<_ACEOF
13255 #define HAVE_LIBNSL 1
13256 _ACEOF
13257
13258   LIBS="-lnsl $LIBS"
13259
13260 fi
13261
13262 fi
13263
13264 echo "$as_me:$LINENO: checking for setsockopt" >&5
13265 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
13266 if test "${ac_cv_func_setsockopt+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 else
13269   cat >conftest.$ac_ext <<_ACEOF
13270 #line $LINENO "configure"
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 /* System header to define __stub macros and hopefully few prototypes,
13277     which can conflict with char setsockopt (); below.
13278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13279     <limits.h> exists even on freestanding compilers.  */
13280 #ifdef __STDC__
13281 # include <limits.h>
13282 #else
13283 # include <assert.h>
13284 #endif
13285 /* Override any gcc2 internal prototype to avoid an error.  */
13286 #ifdef __cplusplus
13287 extern "C"
13288 {
13289 #endif
13290 /* We use char because int might match the return type of a gcc2
13291    builtin and then its argument prototype would still apply.  */
13292 char setsockopt ();
13293 /* The GNU C library defines this for functions which it implements
13294     to always fail with ENOSYS.  Some functions are actually named
13295     something starting with __ and the normal name is an alias.  */
13296 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
13297 choke me
13298 #else
13299 char (*f) () = setsockopt;
13300 #endif
13301 #ifdef __cplusplus
13302 }
13303 #endif
13304
13305 int
13306 main ()
13307 {
13308 return f != setsockopt;
13309   ;
13310   return 0;
13311 }
13312 _ACEOF
13313 rm -f conftest.$ac_objext conftest$ac_exeext
13314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13315   (eval $ac_link) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -s conftest$ac_exeext'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; }; then
13325   ac_cv_func_setsockopt=yes
13326 else
13327   echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13329
13330 ac_cv_func_setsockopt=no
13331 fi
13332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13333 fi
13334 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
13335 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
13336 if test $ac_cv_func_setsockopt = yes; then
13337   :
13338 else
13339
13340 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
13341 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
13342 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
13343   echo $ECHO_N "(cached) $ECHO_C" >&6
13344 else
13345   ac_check_lib_save_LIBS=$LIBS
13346 LIBS="-lsocket  $LIBS"
13347 cat >conftest.$ac_ext <<_ACEOF
13348 #line $LINENO "configure"
13349 /* confdefs.h.  */
13350 _ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h.  */
13354
13355 /* Override any gcc2 internal prototype to avoid an error.  */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 /* We use char because int might match the return type of a gcc2
13360    builtin and then its argument prototype would still apply.  */
13361 char setsockopt ();
13362 int
13363 main ()
13364 {
13365 setsockopt ();
13366   ;
13367   return 0;
13368 }
13369 _ACEOF
13370 rm -f conftest.$ac_objext conftest$ac_exeext
13371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13372   (eval $ac_link) 2>&5
13373   ac_status=$?
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } &&
13376          { ac_try='test -s conftest$ac_exeext'
13377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378   (eval $ac_try) 2>&5
13379   ac_status=$?
13380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381   (exit $ac_status); }; }; then
13382   ac_cv_lib_socket_setsockopt=yes
13383 else
13384   echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13386
13387 ac_cv_lib_socket_setsockopt=no
13388 fi
13389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13390 LIBS=$ac_check_lib_save_LIBS
13391 fi
13392 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
13393 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
13394 if test $ac_cv_lib_socket_setsockopt = yes; then
13395   cat >>confdefs.h <<_ACEOF
13396 #define HAVE_LIBSOCKET 1
13397 _ACEOF
13398
13399   LIBS="-lsocket $LIBS"
13400
13401 fi
13402
13403 fi
13404
13405 echo "$as_me:$LINENO: checking for connect" >&5
13406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13407 if test "${ac_cv_func_connect+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 #line $LINENO "configure"
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 /* System header to define __stub macros and hopefully few prototypes,
13418     which can conflict with char connect (); below.
13419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13420     <limits.h> exists even on freestanding compilers.  */
13421 #ifdef __STDC__
13422 # include <limits.h>
13423 #else
13424 # include <assert.h>
13425 #endif
13426 /* Override any gcc2 internal prototype to avoid an error.  */
13427 #ifdef __cplusplus
13428 extern "C"
13429 {
13430 #endif
13431 /* We use char because int might match the return type of a gcc2
13432    builtin and then its argument prototype would still apply.  */
13433 char connect ();
13434 /* The GNU C library defines this for functions which it implements
13435     to always fail with ENOSYS.  Some functions are actually named
13436     something starting with __ and the normal name is an alias.  */
13437 #if defined (__stub_connect) || defined (__stub___connect)
13438 choke me
13439 #else
13440 char (*f) () = connect;
13441 #endif
13442 #ifdef __cplusplus
13443 }
13444 #endif
13445
13446 int
13447 main ()
13448 {
13449 return f != connect;
13450   ;
13451   return 0;
13452 }
13453 _ACEOF
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456   (eval $ac_link) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); } &&
13460          { ac_try='test -s conftest$ac_exeext'
13461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462   (eval $ac_try) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; }; then
13466   ac_cv_func_connect=yes
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 ac_cv_func_connect=no
13472 fi
13473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474 fi
13475 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13476 echo "${ECHO_T}$ac_cv_func_connect" >&6
13477 if test $ac_cv_func_connect = yes; then
13478   :
13479 else
13480
13481 echo "$as_me:$LINENO: checking for connect in -linet" >&5
13482 echo $ECHO_N "checking for connect in -linet... $ECHO_C" >&6
13483 if test "${ac_cv_lib_inet_connect+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   ac_check_lib_save_LIBS=$LIBS
13487 LIBS="-linet  $LIBS"
13488 cat >conftest.$ac_ext <<_ACEOF
13489 #line $LINENO "configure"
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495
13496 /* Override any gcc2 internal prototype to avoid an error.  */
13497 #ifdef __cplusplus
13498 extern "C"
13499 #endif
13500 /* We use char because int might match the return type of a gcc2
13501    builtin and then its argument prototype would still apply.  */
13502 char connect ();
13503 int
13504 main ()
13505 {
13506 connect ();
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext conftest$ac_exeext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13513   (eval $ac_link) 2>&5
13514   ac_status=$?
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -s conftest$ac_exeext'
13518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519   (eval $ac_try) 2>&5
13520   ac_status=$?
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); }; }; then
13523   ac_cv_lib_inet_connect=yes
13524 else
13525   echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_cv_lib_inet_connect=no
13529 fi
13530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13531 LIBS=$ac_check_lib_save_LIBS
13532 fi
13533 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_connect" >&5
13534 echo "${ECHO_T}$ac_cv_lib_inet_connect" >&6
13535 if test $ac_cv_lib_inet_connect = yes; then
13536   cat >>confdefs.h <<_ACEOF
13537 #define HAVE_LIBINET 1
13538 _ACEOF
13539
13540   LIBS="-linet $LIBS"
13541
13542 fi
13543
13544 fi
13545
13546
13547 echo "$as_me:$LINENO: checking for type of socket length (socklen_t)" >&5
13548 echo $ECHO_N "checking for type of socket length (socklen_t)... $ECHO_C" >&6
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13550 "configure"
13551 #include "confdefs.h"
13552
13553 #include <stddef.h>
13554 #include <sys/types.h>
13555 #include <sys/socket.h>
13556 int main() {
13557
13558 (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
13559 ; return 0; }
13560 EOF
13561 if { (eval echo configure:13561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13562   rm -rf conftest*
13563
13564   echo "$as_me:$LINENO: result: socklen_t *" >&5
13565 echo "${ECHO_T}socklen_t *" >&6
13566   SOCKLEN_T=socklen_t
13567 else
13568   echo "configure: failed program was:" >&5
13569   cat conftest.$ac_ext >&5
13570   rm -rf conftest*
13571
13572   cat > conftest.$ac_ext <<EOF
13573 #line 13573 "configure"
13574 #include "confdefs.h"
13575
13576 #include <stddef.h>
13577 #include <sys/types.h>
13578 #include <sys/socket.h>
13579 int main() {
13580
13581 (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
13582 ; return 0; }
13583 EOF
13584 if { (eval echo configure:13584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13585   rm -rf conftest*
13586
13587     echo "$as_me:$LINENO: result: size_t *" >&5
13588 echo "${ECHO_T}size_t *" >&6
13589     SOCKLEN_T=size_t
13590 else
13591   echo "configure: failed program was:" >&5
13592   cat conftest.$ac_ext >&5
13593   rm -rf conftest*
13594
13595     cat > conftest.$ac_ext <<EOF
13596 #line 13596 "configure"
13597 #include "confdefs.h"
13598
13599 #include <stddef.h>
13600 #include <sys/types.h>
13601 #include <sys/socket.h>
13602 int main() {
13603
13604 (void)getsockopt (1, 1, 1, NULL, (int *)NULL)
13605 ; return 0; }
13606 EOF
13607 if { (eval echo configure:13607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
13608   rm -rf conftest*
13609
13610       echo "$as_me:$LINENO: result: int *" >&5
13611 echo "${ECHO_T}int *" >&6
13612       SOCKLEN_T=int
13613 else
13614   echo "configure: failed program was:" >&5
13615   cat conftest.$ac_ext >&5
13616   rm -rf conftest*
13617
13618       { echo "$as_me:$LINENO: WARNING: could not determine" >&5
13619 echo "$as_me: WARNING: could not determine" >&2;}
13620 fi
13621 rm -f conftest*
13622 fi
13623 rm -f conftest*
13624 fi
13625 rm -f conftest*
13626 cat >>confdefs.h <<_ACEOF
13627 #define SOCKLEN_T $SOCKLEN_T
13628 _ACEOF
13629
13630
13631
13632 echo "$as_me:$LINENO: checking whether to enable IPv6" >&5
13633 echo $ECHO_N "checking whether to enable IPv6... $ECHO_C" >&6
13634 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13635 if test "${enable_ipv6+set}" = set; then
13636   enableval="$enable_ipv6"
13637
13638 else
13639   enable_ipv6=yes
13640 fi;
13641 if test $enable_ipv6 = yes; then
13642   have_ipv6=no
13643   cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13645 /* confdefs.h.  */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h.  */
13650
13651     #include <sys/socket.h>
13652     #include <sys/types.h>
13653 int
13654 main ()
13655 {
13656
13657     struct sockaddr_storage ss;
13658     socket(AF_INET6, SOCK_STREAM, 0)
13659
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666   (eval $ac_compile) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -s conftest.$ac_objext'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; }; then
13676   have_ipv6=yes
13677 else
13678   echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 have_ipv6=no
13682
13683 fi
13684 rm -f conftest.$ac_objext conftest.$ac_ext
13685   echo "$as_me:$LINENO: result: $have_ipv6" >&5
13686 echo "${ECHO_T}$have_ipv6" >&6
13687
13688   if test $have_ipv6 = yes; then
13689     cat >>confdefs.h <<\_ACEOF
13690 #define SUPPORT_IP6 1
13691 _ACEOF
13692
13693
13694     have_getaddrinfo=no
13695     echo "$as_me:$LINENO: checking for getaddrinfo" >&5
13696 echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
13697 if test "${ac_cv_func_getaddrinfo+set}" = set; then
13698   echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700   cat >conftest.$ac_ext <<_ACEOF
13701 #line $LINENO "configure"
13702 /* confdefs.h.  */
13703 _ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h.  */
13707 /* System header to define __stub macros and hopefully few prototypes,
13708     which can conflict with char getaddrinfo (); below.
13709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13710     <limits.h> exists even on freestanding compilers.  */
13711 #ifdef __STDC__
13712 # include <limits.h>
13713 #else
13714 # include <assert.h>
13715 #endif
13716 /* Override any gcc2 internal prototype to avoid an error.  */
13717 #ifdef __cplusplus
13718 extern "C"
13719 {
13720 #endif
13721 /* We use char because int might match the return type of a gcc2
13722    builtin and then its argument prototype would still apply.  */
13723 char getaddrinfo ();
13724 /* The GNU C library defines this for functions which it implements
13725     to always fail with ENOSYS.  Some functions are actually named
13726     something starting with __ and the normal name is an alias.  */
13727 #if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
13728 choke me
13729 #else
13730 char (*f) () = getaddrinfo;
13731 #endif
13732 #ifdef __cplusplus
13733 }
13734 #endif
13735
13736 int
13737 main ()
13738 {
13739 return f != getaddrinfo;
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 rm -f conftest.$ac_objext conftest$ac_exeext
13745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13746   (eval $ac_link) 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); } &&
13750          { ac_try='test -s conftest$ac_exeext'
13751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752   (eval $ac_try) 2>&5
13753   ac_status=$?
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); }; }; then
13756   ac_cv_func_getaddrinfo=yes
13757 else
13758   echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13760
13761 ac_cv_func_getaddrinfo=no
13762 fi
13763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13764 fi
13765 echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
13766 echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
13767 if test $ac_cv_func_getaddrinfo = yes; then
13768   have_getaddrinfo=yes
13769 fi
13770
13771     if test $have_getaddrinfo != yes; then
13772       for lib in bsd socket inet; do
13773         as_ac_Lib=`echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
13774 echo "$as_me:$LINENO: checking for getaddrinfo in -l$lib" >&5
13775 echo $ECHO_N "checking for getaddrinfo in -l$lib... $ECHO_C" >&6
13776 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   ac_check_lib_save_LIBS=$LIBS
13780 LIBS="-l$lib  $LIBS"
13781 cat >conftest.$ac_ext <<_ACEOF
13782 #line $LINENO "configure"
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788
13789 /* Override any gcc2 internal prototype to avoid an error.  */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 /* We use char because int might match the return type of a gcc2
13794    builtin and then its argument prototype would still apply.  */
13795 char getaddrinfo ();
13796 int
13797 main ()
13798 {
13799 getaddrinfo ();
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806   (eval $ac_link) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); } &&
13810          { ac_try='test -s conftest$ac_exeext'
13811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812   (eval $ac_try) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); }; }; then
13816   eval "$as_ac_Lib=yes"
13817 else
13818   echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 eval "$as_ac_Lib=no"
13822 fi
13823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13824 LIBS=$ac_check_lib_save_LIBS
13825 fi
13826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13827 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13828 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13829   LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
13830 fi
13831
13832       done
13833     fi
13834
13835     if test $have_getaddrinfo = yes; then
13836       cat >>confdefs.h <<\_ACEOF
13837 #define HAVE_GETADDRINFO 1
13838 _ACEOF
13839
13840     fi
13841   fi
13842 fi
13843
13844
13845 echo "$as_me:$LINENO: checking for isnan" >&5
13846 echo $ECHO_N "checking for isnan... $ECHO_C" >&6
13847 if test "${ac_cv_func_isnan+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   cat >conftest.$ac_ext <<_ACEOF
13851 #line $LINENO "configure"
13852 /* confdefs.h.  */
13853 _ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h.  */
13857 /* System header to define __stub macros and hopefully few prototypes,
13858     which can conflict with char isnan (); below.
13859     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13860     <limits.h> exists even on freestanding compilers.  */
13861 #ifdef __STDC__
13862 # include <limits.h>
13863 #else
13864 # include <assert.h>
13865 #endif
13866 /* Override any gcc2 internal prototype to avoid an error.  */
13867 #ifdef __cplusplus
13868 extern "C"
13869 {
13870 #endif
13871 /* We use char because int might match the return type of a gcc2
13872    builtin and then its argument prototype would still apply.  */
13873 char isnan ();
13874 /* The GNU C library defines this for functions which it implements
13875     to always fail with ENOSYS.  Some functions are actually named
13876     something starting with __ and the normal name is an alias.  */
13877 #if defined (__stub_isnan) || defined (__stub___isnan)
13878 choke me
13879 #else
13880 char (*f) () = isnan;
13881 #endif
13882 #ifdef __cplusplus
13883 }
13884 #endif
13885
13886 int
13887 main ()
13888 {
13889 return f != isnan;
13890   ;
13891   return 0;
13892 }
13893 _ACEOF
13894 rm -f conftest.$ac_objext conftest$ac_exeext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896   (eval $ac_link) 2>&5
13897   ac_status=$?
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } &&
13900          { ac_try='test -s conftest$ac_exeext'
13901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902   (eval $ac_try) 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; }; then
13906   ac_cv_func_isnan=yes
13907 else
13908   echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13910
13911 ac_cv_func_isnan=no
13912 fi
13913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13914 fi
13915 echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
13916 echo "${ECHO_T}$ac_cv_func_isnan" >&6
13917 if test $ac_cv_func_isnan = yes; then
13918   :
13919 else
13920   echo "$as_me:$LINENO: checking for isnan in -lm" >&5
13921 echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6
13922 if test "${ac_cv_lib_m_isnan+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lm  $LIBS"
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934
13935 /* Override any gcc2 internal prototype to avoid an error.  */
13936 #ifdef __cplusplus
13937 extern "C"
13938 #endif
13939 /* We use char because int might match the return type of a gcc2
13940    builtin and then its argument prototype would still apply.  */
13941 char isnan ();
13942 int
13943 main ()
13944 {
13945 isnan ();
13946   ;
13947   return 0;
13948 }
13949 _ACEOF
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13952   (eval $ac_link) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -s conftest$ac_exeext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_cv_lib_m_isnan=yes
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 ac_cv_lib_m_isnan=no
13968 fi
13969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13970 LIBS=$ac_check_lib_save_LIBS
13971 fi
13972 echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5
13973 echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6
13974 if test $ac_cv_lib_m_isnan = yes; then
13975   cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_ISNAN 1
13977 _ACEOF
13978
13979 fi
13980
13981 fi
13982
13983
13984 echo "$as_me:$LINENO: checking for isinf" >&5
13985 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
13986 if test "${ac_cv_func_isinf+set}" = set; then
13987   echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989   cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996 /* System header to define __stub macros and hopefully few prototypes,
13997     which can conflict with char isinf (); below.
13998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13999     <limits.h> exists even on freestanding compilers.  */
14000 #ifdef __STDC__
14001 # include <limits.h>
14002 #else
14003 # include <assert.h>
14004 #endif
14005 /* Override any gcc2 internal prototype to avoid an error.  */
14006 #ifdef __cplusplus
14007 extern "C"
14008 {
14009 #endif
14010 /* We use char because int might match the return type of a gcc2
14011    builtin and then its argument prototype would still apply.  */
14012 char isinf ();
14013 /* The GNU C library defines this for functions which it implements
14014     to always fail with ENOSYS.  Some functions are actually named
14015     something starting with __ and the normal name is an alias.  */
14016 #if defined (__stub_isinf) || defined (__stub___isinf)
14017 choke me
14018 #else
14019 char (*f) () = isinf;
14020 #endif
14021 #ifdef __cplusplus
14022 }
14023 #endif
14024
14025 int
14026 main ()
14027 {
14028 return f != isinf;
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14035   (eval $ac_link) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -s conftest$ac_exeext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_cv_func_isinf=yes
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_cv_func_isinf=no
14051 fi
14052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14053 fi
14054 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
14055 echo "${ECHO_T}$ac_cv_func_isinf" >&6
14056 if test $ac_cv_func_isinf = yes; then
14057   cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_ISINF 1
14059 _ACEOF
14060
14061 else
14062   echo "$as_me:$LINENO: checking for isinf in -lm" >&5
14063 echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6
14064 if test "${ac_cv_lib_m_isinf+set}" = set; then
14065   echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14067   ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-lm  $LIBS"
14069 cat >conftest.$ac_ext <<_ACEOF
14070 #line $LINENO "configure"
14071 /* confdefs.h.  */
14072 _ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h.  */
14076
14077 /* Override any gcc2 internal prototype to avoid an error.  */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 /* We use char because int might match the return type of a gcc2
14082    builtin and then its argument prototype would still apply.  */
14083 char isinf ();
14084 int
14085 main ()
14086 {
14087 isinf ();
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094   (eval $ac_link) 2>&5
14095   ac_status=$?
14096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097   (exit $ac_status); } &&
14098          { ac_try='test -s conftest$ac_exeext'
14099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100   (eval $ac_try) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; }; then
14104   ac_cv_lib_m_isinf=yes
14105 else
14106   echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ac_cv_lib_m_isinf=no
14110 fi
14111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14112 LIBS=$ac_check_lib_save_LIBS
14113 fi
14114 echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5
14115 echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6
14116 if test $ac_cv_lib_m_isinf = yes; then
14117   cat >>confdefs.h <<\_ACEOF
14118 #define HAVE_ISINF 1
14119 _ACEOF
14120
14121 fi
14122
14123 fi
14124
14125
14126 XML_LIBDIR='-L${libdir}'
14127 XML_INCLUDEDIR='-I${includedir}/libxml2'
14128
14129 XML_CFLAGS=""
14130 RDL_LIBS=""
14131
14132
14133 # Check whether --with-fexceptions or --without-fexceptions was given.
14134 if test "${with_fexceptions+set}" = set; then
14135   withval="$with_fexceptions"
14136
14137 fi;
14138 if test "${GCC}" != "yes" ; then
14139     case "${host}" in
14140           *-*-hpux* )
14141                CFLAGS="${CFLAGS} -Wp,-H30000"
14142                ;;
14143           *-dec-osf* )
14144                CFLAGS="${CFLAGS} -ieee"
14145                ;;
14146           alpha*-*-linux* )
14147                CFLAGS="${CFLAGS} -ieee"
14148                ;;
14149     esac
14150 else
14151     if test "$with_fexceptions" = "yes"
14152     then
14153         #
14154         # Not activated by default because this inflates the code size
14155         # Used to allow propagation of C++ exceptions through the library
14156         #
14157         CFLAGS="${CFLAGS} -fexceptions"
14158     fi
14159
14160     CFLAGS="${CFLAGS} -Wall"
14161     case "${host}" in
14162           alpha*-*-linux* )
14163                CFLAGS="${CFLAGS} -mieee"
14164                ;;
14165           alpha*-*-osf* )
14166                CFLAGS="${CFLAGS} -mieee"
14167                ;;
14168     esac
14169 fi
14170 case ${host} in
14171     *-*-solaris*)
14172         XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
14173         ;;
14174     hppa*-hp-mpeix)
14175         NEED_TRIO=1
14176         ;;
14177 esac
14178
14179
14180
14181 PYTHON=
14182 PYTHON_VERSION=
14183 PYTHON_INCLUDES=
14184 PYTHON_SITE_PACKAGES=
14185 pythondir=
14186
14187 # Check whether --with-python or --without-python was given.
14188 if test "${with_python+set}" = set; then
14189   withval="$with_python"
14190
14191 fi;
14192 if test "$with_python" != "no" ; then
14193     if test -x "$with_python/bin/python"
14194     then
14195         echo Found python in $with_python/bin/python
14196         PYTHON="$with_python/bin/python"
14197     else
14198         if test -x "$with_python"
14199         then
14200             echo Found python in $with_python
14201             PYTHON="$with_python"
14202         else
14203             # 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.
14204 set dummy python python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
14205 echo "$as_me:$LINENO: checking for $ac_word" >&5
14206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14207 if test "${ac_cv_path_PYTHON+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   case $PYTHON in
14211   [\\/]* | ?:[\\/]*)
14212   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14213   ;;
14214   *)
14215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14216 for as_dir in $PATH
14217 do
14218   IFS=$as_save_IFS
14219   test -z "$as_dir" && as_dir=.
14220   for ac_exec_ext in '' $ac_executable_extensions; do
14221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14222     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14224     break 2
14225   fi
14226 done
14227 done
14228
14229   ;;
14230 esac
14231 fi
14232 PYTHON=$ac_cv_path_PYTHON
14233
14234 if test -n "$PYTHON"; then
14235   echo "$as_me:$LINENO: result: $PYTHON" >&5
14236 echo "${ECHO_T}$PYTHON" >&6
14237 else
14238   echo "$as_me:$LINENO: result: no" >&5
14239 echo "${ECHO_T}no" >&6
14240 fi
14241
14242         fi
14243     fi
14244     if test "$PYTHON" != ""
14245     then
14246         PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
14247         echo Found Python version $PYTHON_VERSION
14248     fi
14249     if test "$PYTHON_VERSION" != ""
14250     then
14251         if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
14252            -d $with_python/lib/python$PYTHON_VERSION/site-packages
14253         then
14254             PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
14255             PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
14256         else
14257             if test -r $prefix/include/python$PYTHON_VERSION/Python.h
14258             then
14259                 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
14260                 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
14261             else
14262                 if test -r /usr/include/python$PYTHON_VERSION/Python.h
14263                 then
14264                     PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
14265                     PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
14266                 else
14267                     echo could not find python$PYTHON_VERSION/Python.h
14268                 fi
14269             fi
14270             if ! test -d "$PYTHON_SITE_PACKAGES"
14271             then
14272                     PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
14273             fi
14274         fi
14275     fi
14276     if test "$with_python" != ""
14277     then
14278         pythondir='$(PYTHON_SITE_PACKAGES)'
14279     else
14280         pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
14281     fi
14282 fi
14283
14284
14285 if test "$PYTHON_INCLUDES" != ""; then
14286   WITH_PYTHON_TRUE=
14287   WITH_PYTHON_FALSE='#'
14288 else
14289   WITH_PYTHON_TRUE='#'
14290   WITH_PYTHON_FALSE=
14291 fi
14292
14293 if test "$PYTHON_INCLUDES" != ""
14294 then
14295     PYTHON_SUBDIR=python
14296 else
14297     PYTHON_SUBDIR=
14298 fi
14299
14300
14301
14302 _cppflags="${CPPFLAGS}"
14303 _ldflags="${LDFLAGS}"
14304
14305
14306 # Check whether --with-readline or --without-readline was given.
14307 if test "${with_readline+set}" = set; then
14308   withval="$with_readline"
14309
14310   if test "$withval" != "no" -a "$withval" != "yes"; then
14311     RDL_DIR=$withval
14312     CPPFLAGS="${CPPFLAGS} -I$withval/include"
14313     LDFLAGS="${LDFLAGS} -L$withval/lib"
14314   fi
14315
14316 fi;
14317
14318 if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
14319     if test "${with_mem_debug}" = "" ; then
14320         with_mem_debug="yes"
14321     fi
14322     if test "${with_docbook}" = "" ; then
14323         with_docbook="yes"
14324     fi
14325     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 "
14326     STATIC_BINARIES="-static"
14327 else
14328     STATIC_BINARIES=
14329 fi
14330
14331
14332
14333 if test "${NEED_TRIO}" = "1" ; then
14334     echo Adding trio library for string functions
14335     WITH_TRIO=1
14336 else
14337     WITH_TRIO=0
14338 fi
14339
14340
14341 if test "${NEED_TRIO}" = "1"; then
14342   WITH_TRIO_SOURCES_TRUE=
14343   WITH_TRIO_SOURCES_FALSE='#'
14344 else
14345   WITH_TRIO_SOURCES_TRUE='#'
14346   WITH_TRIO_SOURCES_FALSE=
14347 fi
14348
14349
14350
14351
14352 THREAD_LIBS=""
14353 WITH_THREADS=0
14354 THREAD_CFLAGS=""
14355 TEST_THREADS=""
14356
14357
14358 # Check whether --with-threads or --without-threads was given.
14359 if test "${with_threads+set}" = set; then
14360   withval="$with_threads"
14361
14362 fi;
14363 if test "$with_threads" = "no" ; then
14364     echo Disabling multithreaded support
14365 else
14366     echo Enabling multithreaded support
14367
14368     if test "${ac_cv_header_pthread_h+set}" = set; then
14369   echo "$as_me:$LINENO: checking for pthread.h" >&5
14370 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14371 if test "${ac_cv_header_pthread_h+set}" = set; then
14372   echo $ECHO_N "(cached) $ECHO_C" >&6
14373 fi
14374 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
14375 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14376 else
14377   # Is the header compilable?
14378 echo "$as_me:$LINENO: checking pthread.h usability" >&5
14379 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387 $ac_includes_default
14388 #include <pthread.h>
14389 _ACEOF
14390 rm -f conftest.$ac_objext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14392   (eval $ac_compile) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); } &&
14396          { ac_try='test -s conftest.$ac_objext'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402   ac_header_compiler=yes
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ac_header_compiler=no
14408 fi
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14410 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14411 echo "${ECHO_T}$ac_header_compiler" >&6
14412
14413 # Is the header present?
14414 echo "$as_me:$LINENO: checking pthread.h presence" >&5
14415 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
14416 cat >conftest.$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423 #include <pthread.h>
14424 _ACEOF
14425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14426   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14427   ac_status=$?
14428   grep -v '^ *+' conftest.er1 >conftest.err
14429   rm -f conftest.er1
14430   cat conftest.err >&5
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } >/dev/null; then
14433   if test -s conftest.err; then
14434     ac_cpp_err=$ac_c_preproc_warn_flag
14435   else
14436     ac_cpp_err=
14437   fi
14438 else
14439   ac_cpp_err=yes
14440 fi
14441 if test -z "$ac_cpp_err"; then
14442   ac_header_preproc=yes
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447   ac_header_preproc=no
14448 fi
14449 rm -f conftest.err conftest.$ac_ext
14450 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14451 echo "${ECHO_T}$ac_header_preproc" >&6
14452
14453 # So?  What about this header?
14454 case $ac_header_compiler:$ac_header_preproc in
14455   yes:no )
14456     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
14457 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14458     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
14459 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
14460     (
14461       cat <<\_ASBOX
14462 ## ------------------------------------ ##
14463 ## Report this to bug-autoconf@gnu.org. ##
14464 ## ------------------------------------ ##
14465 _ASBOX
14466     ) |
14467       sed "s/^/$as_me: WARNING:     /" >&2
14468     ;;
14469   no:yes )
14470     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
14472     { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
14474     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
14475 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
14476     (
14477       cat <<\_ASBOX
14478 ## ------------------------------------ ##
14479 ## Report this to bug-autoconf@gnu.org. ##
14480 ## ------------------------------------ ##
14481 _ASBOX
14482     ) |
14483       sed "s/^/$as_me: WARNING:     /" >&2
14484     ;;
14485 esac
14486 echo "$as_me:$LINENO: checking for pthread.h" >&5
14487 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
14488 if test "${ac_cv_header_pthread_h+set}" = set; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 else
14491   ac_cv_header_pthread_h=$ac_header_preproc
14492 fi
14493 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
14495
14496 fi
14497 if test $ac_cv_header_pthread_h = yes; then
14498   echo "$as_me:$LINENO: checking for pthread_join in -lpthread" >&5
14499 echo $ECHO_N "checking for pthread_join in -lpthread... $ECHO_C" >&6
14500 if test "${ac_cv_lib_pthread_pthread_join+set}" = set; then
14501   echo $ECHO_N "(cached) $ECHO_C" >&6
14502 else
14503   ac_check_lib_save_LIBS=$LIBS
14504 LIBS="-lpthread  $LIBS"
14505 cat >conftest.$ac_ext <<_ACEOF
14506 #line $LINENO "configure"
14507 /* confdefs.h.  */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h.  */
14512
14513 /* Override any gcc2 internal prototype to avoid an error.  */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 /* We use char because int might match the return type of a gcc2
14518    builtin and then its argument prototype would still apply.  */
14519 char pthread_join ();
14520 int
14521 main ()
14522 {
14523 pthread_join ();
14524   ;
14525   return 0;
14526 }
14527 _ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14530   (eval $ac_link) 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } &&
14534          { ac_try='test -s conftest$ac_exeext'
14535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536   (eval $ac_try) 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; }; then
14540   ac_cv_lib_pthread_pthread_join=yes
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545 ac_cv_lib_pthread_pthread_join=no
14546 fi
14547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14548 LIBS=$ac_check_lib_save_LIBS
14549 fi
14550 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_join" >&5
14551 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_join" >&6
14552 if test $ac_cv_lib_pthread_pthread_join = yes; then
14553
14554            THREAD_LIBS="-lpthread"
14555            cat >>confdefs.h <<\_ACEOF
14556 #define HAVE_LIBPTHREAD 1
14557 _ACEOF
14558
14559            cat >>confdefs.h <<\_ACEOF
14560 #define HAVE_PTHREAD_H 1
14561 _ACEOF
14562
14563            WITH_THREADS="1"
14564 fi
14565
14566 fi
14567
14568
14569
14570     if test "$WITH_THREADS" = "1" ; then
14571         THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
14572         TEST_THREADS="Threadtests"
14573     fi
14574 fi
14575
14576 # Check whether --with-thread-alloc or --without-thread-alloc was given.
14577 if test "${with_thread_alloc+set}" = set; then
14578   withval="$with_thread_alloc"
14579
14580 fi;
14581 if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
14582     THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
14583 fi
14584
14585
14586
14587
14588
14589
14590
14591 # Check whether --with-history or --without-history was given.
14592 if test "${with_history+set}" = set; then
14593   withval="$with_history"
14594
14595 fi;
14596 if test "$with_history" = "yes" ; then
14597     echo Enabling xmllint shell history
14598             unset tcap
14599     for termlib in ncurses curses termcap terminfo termlib; do
14600         as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
14601 echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5
14602 echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6
14603 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14604   echo $ECHO_N "(cached) $ECHO_C" >&6
14605 else
14606   ac_check_lib_save_LIBS=$LIBS
14607 LIBS="-l${termlib}  $LIBS"
14608 cat >conftest.$ac_ext <<_ACEOF
14609 #line $LINENO "configure"
14610 /* confdefs.h.  */
14611 _ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h.  */
14615
14616 /* Override any gcc2 internal prototype to avoid an error.  */
14617 #ifdef __cplusplus
14618 extern "C"
14619 #endif
14620 /* We use char because int might match the return type of a gcc2
14621    builtin and then its argument prototype would still apply.  */
14622 char tputs ();
14623 int
14624 main ()
14625 {
14626 tputs ();
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest.$ac_objext conftest$ac_exeext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14633   (eval $ac_link) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } &&
14637          { ac_try='test -s conftest$ac_exeext'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   eval "$as_ac_Lib=yes"
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 eval "$as_ac_Lib=no"
14649 fi
14650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14651 LIBS=$ac_check_lib_save_LIBS
14652 fi
14653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14654 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14655 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14656   tcap="-l$termlib"
14657 fi
14658
14659         test -n "$tcap" && break
14660     done
14661
14662     if test "${ac_cv_header_readline_history_h+set}" = set; then
14663   echo "$as_me:$LINENO: checking for readline/history.h" >&5
14664 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
14665 if test "${ac_cv_header_readline_history_h+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 fi
14668 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
14669 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
14670 else
14671   # Is the header compilable?
14672 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
14673 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
14674 cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681 $ac_includes_default
14682 #include <readline/history.h>
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686   (eval $ac_compile) 2>&5
14687   ac_status=$?
14688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689   (exit $ac_status); } &&
14690          { ac_try='test -s conftest.$ac_objext'
14691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692   (eval $ac_try) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); }; }; then
14696   ac_header_compiler=yes
14697 else
14698   echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14700
14701 ac_header_compiler=no
14702 fi
14703 rm -f conftest.$ac_objext conftest.$ac_ext
14704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14705 echo "${ECHO_T}$ac_header_compiler" >&6
14706
14707 # Is the header present?
14708 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
14709 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
14710 cat >conftest.$ac_ext <<_ACEOF
14711 #line $LINENO "configure"
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717 #include <readline/history.h>
14718 _ACEOF
14719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14721   ac_status=$?
14722   grep -v '^ *+' conftest.er1 >conftest.err
14723   rm -f conftest.er1
14724   cat conftest.err >&5
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } >/dev/null; then
14727   if test -s conftest.err; then
14728     ac_cpp_err=$ac_c_preproc_warn_flag
14729   else
14730     ac_cpp_err=
14731   fi
14732 else
14733   ac_cpp_err=yes
14734 fi
14735 if test -z "$ac_cpp_err"; then
14736   ac_header_preproc=yes
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741   ac_header_preproc=no
14742 fi
14743 rm -f conftest.err conftest.$ac_ext
14744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745 echo "${ECHO_T}$ac_header_preproc" >&6
14746
14747 # So?  What about this header?
14748 case $ac_header_compiler:$ac_header_preproc in
14749   yes:no )
14750     { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
14751 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
14753 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
14754     (
14755       cat <<\_ASBOX
14756 ## ------------------------------------ ##
14757 ## Report this to bug-autoconf@gnu.org. ##
14758 ## ------------------------------------ ##
14759 _ASBOX
14760     ) |
14761       sed "s/^/$as_me: WARNING:     /" >&2
14762     ;;
14763   no:yes )
14764     { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
14765 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
14766     { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
14767 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
14768     { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
14769 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
14770     (
14771       cat <<\_ASBOX
14772 ## ------------------------------------ ##
14773 ## Report this to bug-autoconf@gnu.org. ##
14774 ## ------------------------------------ ##
14775 _ASBOX
14776     ) |
14777       sed "s/^/$as_me: WARNING:     /" >&2
14778     ;;
14779 esac
14780 echo "$as_me:$LINENO: checking for readline/history.h" >&5
14781 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
14782 if test "${ac_cv_header_readline_history_h+set}" = set; then
14783   echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785   ac_cv_header_readline_history_h=$ac_header_preproc
14786 fi
14787 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
14788 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
14789
14790 fi
14791 if test $ac_cv_header_readline_history_h = yes; then
14792   echo "$as_me:$LINENO: checking for append_history in -lhistory" >&5
14793 echo $ECHO_N "checking for append_history in -lhistory... $ECHO_C" >&6
14794 if test "${ac_cv_lib_history_append_history+set}" = set; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 else
14797   ac_check_lib_save_LIBS=$LIBS
14798 LIBS="-lhistory  $LIBS"
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806
14807 /* Override any gcc2 internal prototype to avoid an error.  */
14808 #ifdef __cplusplus
14809 extern "C"
14810 #endif
14811 /* We use char because int might match the return type of a gcc2
14812    builtin and then its argument prototype would still apply.  */
14813 char append_history ();
14814 int
14815 main ()
14816 {
14817 append_history ();
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824   (eval $ac_link) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } &&
14828          { ac_try='test -s conftest$ac_exeext'
14829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834   ac_cv_lib_history_append_history=yes
14835 else
14836   echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 ac_cv_lib_history_append_history=no
14840 fi
14841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14842 LIBS=$ac_check_lib_save_LIBS
14843 fi
14844 echo "$as_me:$LINENO: result: $ac_cv_lib_history_append_history" >&5
14845 echo "${ECHO_T}$ac_cv_lib_history_append_history" >&6
14846 if test $ac_cv_lib_history_append_history = yes; then
14847
14848            RDL_LIBS="-lhistory"
14849            cat >>confdefs.h <<\_ACEOF
14850 #define HAVE_LIBHISTORY 1
14851 _ACEOF
14852
14853 fi
14854
14855 fi
14856
14857
14858     if test "${ac_cv_header_readline_readline_h+set}" = set; then
14859   echo "$as_me:$LINENO: checking for readline/readline.h" >&5
14860 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
14861 if test "${ac_cv_header_readline_readline_h+set}" = set; then
14862   echo $ECHO_N "(cached) $ECHO_C" >&6
14863 fi
14864 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
14865 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
14866 else
14867   # Is the header compilable?
14868 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
14869 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
14870 cat >conftest.$ac_ext <<_ACEOF
14871 #line $LINENO "configure"
14872 /* confdefs.h.  */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h.  */
14877 $ac_includes_default
14878 #include <readline/readline.h>
14879 _ACEOF
14880 rm -f conftest.$ac_objext
14881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882   (eval $ac_compile) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } &&
14886          { ac_try='test -s conftest.$ac_objext'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; }; then
14892   ac_header_compiler=yes
14893 else
14894   echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897 ac_header_compiler=no
14898 fi
14899 rm -f conftest.$ac_objext conftest.$ac_ext
14900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14901 echo "${ECHO_T}$ac_header_compiler" >&6
14902
14903 # Is the header present?
14904 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
14905 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
14906 cat >conftest.$ac_ext <<_ACEOF
14907 #line $LINENO "configure"
14908 /* confdefs.h.  */
14909 _ACEOF
14910 cat confdefs.h >>conftest.$ac_ext
14911 cat >>conftest.$ac_ext <<_ACEOF
14912 /* end confdefs.h.  */
14913 #include <readline/readline.h>
14914 _ACEOF
14915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14917   ac_status=$?
14918   grep -v '^ *+' conftest.er1 >conftest.err
14919   rm -f conftest.er1
14920   cat conftest.err >&5
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); } >/dev/null; then
14923   if test -s conftest.err; then
14924     ac_cpp_err=$ac_c_preproc_warn_flag
14925   else
14926     ac_cpp_err=
14927   fi
14928 else
14929   ac_cpp_err=yes
14930 fi
14931 if test -z "$ac_cpp_err"; then
14932   ac_header_preproc=yes
14933 else
14934   echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14936
14937   ac_header_preproc=no
14938 fi
14939 rm -f conftest.err conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14941 echo "${ECHO_T}$ac_header_preproc" >&6
14942
14943 # So?  What about this header?
14944 case $ac_header_compiler:$ac_header_preproc in
14945   yes:no )
14946     { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14947 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
14949 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
14950     (
14951       cat <<\_ASBOX
14952 ## ------------------------------------ ##
14953 ## Report this to bug-autoconf@gnu.org. ##
14954 ## ------------------------------------ ##
14955 _ASBOX
14956     ) |
14957       sed "s/^/$as_me: WARNING:     /" >&2
14958     ;;
14959   no:yes )
14960     { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
14961 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
14962     { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
14963 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
14964     { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
14965 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
14966     (
14967       cat <<\_ASBOX
14968 ## ------------------------------------ ##
14969 ## Report this to bug-autoconf@gnu.org. ##
14970 ## ------------------------------------ ##
14971 _ASBOX
14972     ) |
14973       sed "s/^/$as_me: WARNING:     /" >&2
14974     ;;
14975 esac
14976 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
14977 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
14978 if test "${ac_cv_header_readline_readline_h+set}" = set; then
14979   echo $ECHO_N "(cached) $ECHO_C" >&6
14980 else
14981   ac_cv_header_readline_readline_h=$ac_header_preproc
14982 fi
14983 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
14984 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
14985
14986 fi
14987 if test $ac_cv_header_readline_readline_h = yes; then
14988   echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
14989 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
14990 if test "${ac_cv_lib_readline_readline+set}" = set; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   ac_check_lib_save_LIBS=$LIBS
14994 LIBS="-lreadline $tcap $LIBS"
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002
15003 /* Override any gcc2 internal prototype to avoid an error.  */
15004 #ifdef __cplusplus
15005 extern "C"
15006 #endif
15007 /* We use char because int might match the return type of a gcc2
15008    builtin and then its argument prototype would still apply.  */
15009 char readline ();
15010 int
15011 main ()
15012 {
15013 readline ();
15014   ;
15015   return 0;
15016 }
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020   (eval $ac_link) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -s conftest$ac_exeext'
15025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026   (eval $ac_try) 2>&5
15027   ac_status=$?
15028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029   (exit $ac_status); }; }; then
15030   ac_cv_lib_readline_readline=yes
15031 else
15032   echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15034
15035 ac_cv_lib_readline_readline=no
15036 fi
15037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15038 LIBS=$ac_check_lib_save_LIBS
15039 fi
15040 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15041 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
15042 if test $ac_cv_lib_readline_readline = yes; then
15043
15044            RDL_LIBS="-lreadline $RDL_LIBS $tcap"
15045            cat >>confdefs.h <<\_ACEOF
15046 #define HAVE_LIBREADLINE 1
15047 _ACEOF
15048
15049 fi
15050
15051 fi
15052
15053
15054     if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
15055         CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
15056         RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
15057     else
15058         CPPFLAGS=${_cppflags}
15059     fi
15060     LDFLAGS=${_ldflags}
15061 fi
15062
15063
15064
15065
15066 # Check whether --with-ftp or --without-ftp was given.
15067 if test "${with_ftp+set}" = set; then
15068   withval="$with_ftp"
15069
15070 fi;
15071 if test "$with_ftp" = "no" ; then
15072     echo Disabling FTP support
15073     WITH_FTP=0
15074     FTP_OBJ=
15075 else
15076     WITH_FTP=1
15077     FTP_OBJ=nanoftp.o
15078 fi
15079
15080
15081
15082
15083 # Check whether --with-http or --without-http was given.
15084 if test "${with_http+set}" = set; then
15085   withval="$with_http"
15086
15087 fi;
15088 if test "$with_http" = "no" ; then
15089     echo Disabling HTTP support
15090     WITH_HTTP=0
15091     HTTP_OBJ=
15092 else
15093     WITH_HTTP=1
15094     HTTP_OBJ=nanohttp.o
15095 fi
15096
15097
15098
15099
15100 # Check whether --with-html or --without-html was given.
15101 if test "${with_html+set}" = set; then
15102   withval="$with_html"
15103
15104 fi;
15105 if test "$with_html" = "no" ; then
15106     echo Disabling HTML support
15107     WITH_HTML=0
15108     HTML_OBJ=
15109 else
15110     WITH_HTML=1
15111     HTML_OBJ="HTMLparser.o HTMLtree.o"
15112 fi
15113
15114
15115
15116
15117 # Check whether --with-catalog or --without-catalog was given.
15118 if test "${with_catalog+set}" = set; then
15119   withval="$with_catalog"
15120
15121 fi;
15122 if test "$with_catalog" = "no" ; then
15123     echo Disabling Catalog support
15124     WITH_CATALOG=0
15125     CATALOG_OBJ=
15126 else
15127     WITH_CATALOG=1
15128     CATALOG_OBJ="catalog.o"
15129 fi
15130
15131
15132
15133
15134 # Check whether --with-docbook or --without-docbook was given.
15135 if test "${with_docbook+set}" = set; then
15136   withval="$with_docbook"
15137
15138 fi;
15139 if test "$with_docbook" = "no" ; then
15140     echo Disabling Docbook support
15141     WITH_DOCB=0
15142     DOCB_OBJ=
15143 else
15144     WITH_DOCB=1
15145     DOCB_OBJ="DOCBparser.o"
15146 fi
15147
15148
15149
15150
15151
15152 # Check whether --with-xpath or --without-xpath was given.
15153 if test "${with_xpath+set}" = set; then
15154   withval="$with_xpath"
15155
15156 fi;
15157 if test "$with_xpath" = "no" ; then
15158     echo Disabling XPATH support
15159     with_xptr="no"
15160     with_c14n="no"
15161     with_xinclude="no"
15162     WITH_XPATH=0
15163     XPATH_OBJ=
15164 else
15165     WITH_XPATH=1
15166     XPATH_OBJ=xpath.o
15167 fi
15168
15169
15170
15171
15172 # Check whether --with-xptr or --without-xptr was given.
15173 if test "${with_xptr+set}" = set; then
15174   withval="$with_xptr"
15175
15176 fi;
15177 if test "$with_xptr" = "no" ; then
15178     echo Disabling XPointer support
15179     WITH_XPTR=0
15180     XPTR_OBJ=
15181 else
15182     WITH_XPTR=1
15183     XPTR_OBJ=xpointer.o
15184 fi
15185
15186
15187
15188
15189 # Check whether --with-c14n or --without-c14n was given.
15190 if test "${with_c14n+set}" = set; then
15191   withval="$with_c14n"
15192
15193 fi;
15194 if test "$with_c14n" = "no" ; then
15195     echo Disabling C14N support
15196     WITH_C14N=0
15197     C14N_OBJ=
15198 else
15199     WITH_C14N=1
15200     C14N_OBJ="c14n.c"
15201 fi
15202
15203
15204
15205
15206 # Check whether --with-xinclude or --without-xinclude was given.
15207 if test "${with_xinclude+set}" = set; then
15208   withval="$with_xinclude"
15209
15210 fi;
15211 if test "$with_xinclude" = "no" ; then
15212     echo Disabling XInclude support
15213     WITH_XINCLUDE=0
15214     XINCLUDE_OBJ=
15215     with_xinclude="no"
15216 else
15217     WITH_XINCLUDE=1
15218     XINCLUDE_OBJ=xinclude.o
15219 fi
15220
15221
15222
15223 WITH_ICONV=0
15224
15225 # Check whether --with-iconv or --without-iconv was given.
15226 if test "${with_iconv+set}" = set; then
15227   withval="$with_iconv"
15228
15229 fi;
15230 if test "$with_iconv" = "no" ; then
15231     echo Disabling ICONV support
15232 else
15233     if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
15234         CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
15235         # Export this since our headers include iconv.h
15236         XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
15237         ICONV_LIBS="-L$with_iconv/lib"
15238     fi
15239
15240     if test "${ac_cv_header_iconv_h+set}" = set; then
15241   echo "$as_me:$LINENO: checking for iconv.h" >&5
15242 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15243 if test "${ac_cv_header_iconv_h+set}" = set; then
15244   echo $ECHO_N "(cached) $ECHO_C" >&6
15245 fi
15246 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15247 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15248 else
15249   # Is the header compilable?
15250 echo "$as_me:$LINENO: checking iconv.h usability" >&5
15251 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
15252 cat >conftest.$ac_ext <<_ACEOF
15253 #line $LINENO "configure"
15254 /* confdefs.h.  */
15255 _ACEOF
15256 cat confdefs.h >>conftest.$ac_ext
15257 cat >>conftest.$ac_ext <<_ACEOF
15258 /* end confdefs.h.  */
15259 $ac_includes_default
15260 #include <iconv.h>
15261 _ACEOF
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264   (eval $ac_compile) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -s conftest.$ac_objext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   ac_header_compiler=yes
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_header_compiler=no
15280 fi
15281 rm -f conftest.$ac_objext conftest.$ac_ext
15282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15283 echo "${ECHO_T}$ac_header_compiler" >&6
15284
15285 # Is the header present?
15286 echo "$as_me:$LINENO: checking iconv.h presence" >&5
15287 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <iconv.h>
15296 _ACEOF
15297 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15298   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15299   ac_status=$?
15300   grep -v '^ *+' conftest.er1 >conftest.err
15301   rm -f conftest.er1
15302   cat conftest.err >&5
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   (exit $ac_status); } >/dev/null; then
15305   if test -s conftest.err; then
15306     ac_cpp_err=$ac_c_preproc_warn_flag
15307   else
15308     ac_cpp_err=
15309   fi
15310 else
15311   ac_cpp_err=yes
15312 fi
15313 if test -z "$ac_cpp_err"; then
15314   ac_header_preproc=yes
15315 else
15316   echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319   ac_header_preproc=no
15320 fi
15321 rm -f conftest.err conftest.$ac_ext
15322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15323 echo "${ECHO_T}$ac_header_preproc" >&6
15324
15325 # So?  What about this header?
15326 case $ac_header_compiler:$ac_header_preproc in
15327   yes:no )
15328     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
15329 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15330     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15331 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15332     (
15333       cat <<\_ASBOX
15334 ## ------------------------------------ ##
15335 ## Report this to bug-autoconf@gnu.org. ##
15336 ## ------------------------------------ ##
15337 _ASBOX
15338     ) |
15339       sed "s/^/$as_me: WARNING:     /" >&2
15340     ;;
15341   no:yes )
15342     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
15347 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
15348     (
15349       cat <<\_ASBOX
15350 ## ------------------------------------ ##
15351 ## Report this to bug-autoconf@gnu.org. ##
15352 ## ------------------------------------ ##
15353 _ASBOX
15354     ) |
15355       sed "s/^/$as_me: WARNING:     /" >&2
15356     ;;
15357 esac
15358 echo "$as_me:$LINENO: checking for iconv.h" >&5
15359 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
15360 if test "${ac_cv_header_iconv_h+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   ac_cv_header_iconv_h=$ac_header_preproc
15364 fi
15365 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
15366 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
15367
15368 fi
15369 if test $ac_cv_header_iconv_h = yes; then
15370   echo "$as_me:$LINENO: checking for iconv" >&5
15371 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15372         cat >conftest.$ac_ext <<_ACEOF
15373 #line $LINENO "configure"
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 #include <stdlib.h>
15380 #include <iconv.h>
15381 int
15382 main ()
15383 {
15384
15385 iconv_t cd = iconv_open ("","");
15386 iconv (cd, NULL, NULL, NULL, NULL);
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15393   (eval $ac_link) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); } &&
15397          { ac_try='test -s conftest$ac_exeext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403
15404             echo "$as_me:$LINENO: result: yes" >&5
15405 echo "${ECHO_T}yes" >&6
15406             WITH_ICONV=1
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411
15412             echo "$as_me:$LINENO: result: no" >&5
15413 echo "${ECHO_T}no" >&6
15414             echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
15415 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
15416
15417             _ldflags="${LDFLAGS}"
15418             _libs="${LIBS}"
15419             LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
15420             LIBS="${LIBS} -liconv"
15421
15422             cat >conftest.$ac_ext <<_ACEOF
15423 #line $LINENO "configure"
15424 /* confdefs.h.  */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h.  */
15429 #include <stdlib.h>
15430 #include <iconv.h>
15431 int
15432 main ()
15433 {
15434
15435 iconv_t cd = iconv_open ("","");
15436 iconv (cd, NULL, NULL, NULL, NULL);
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15443   (eval $ac_link) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); } &&
15447          { ac_try='test -s conftest$ac_exeext'
15448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449   (eval $ac_try) 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; }; then
15453
15454                 echo "$as_me:$LINENO: result: yes" >&5
15455 echo "${ECHO_T}yes" >&6
15456                 WITH_ICONV=1
15457                 ICONV_LIBS="${ICONV_LIBS} -liconv"
15458                 LIBS="${_libs}"
15459                 LDFLAGS="${_ldflags}"
15460 else
15461   echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464
15465                 echo "$as_me:$LINENO: result: no" >&5
15466 echo "${ECHO_T}no" >&6
15467                 LIBS="${_libs}"
15468                 LDFLAGS="${_ldflags}"
15469 fi
15470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15473 fi
15474
15475
15476 fi
15477 M_LIBS="-lm"
15478 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
15479
15480
15481 WITH_ISO8859X=1
15482
15483 # Check whether --with-iso8859x or --without-iso8859x was given.
15484 if test "${with_iso8859x+set}" = set; then
15485   withval="$with_iso8859x"
15486
15487 fi;
15488 if test "$WITH_ICONV" != "1" ; then
15489 if test "$with_iso8859x" = "no" ; then
15490     echo Disabling ISO8859X support
15491     WITH_ISO8859X=0
15492 fi
15493 fi
15494
15495
15496
15497 # Check whether --with-schemas or --without-schemas was given.
15498 if test "${with_schemas+set}" = set; then
15499   withval="$with_schemas"
15500
15501 fi;
15502 if test "$with_schemas" = "no" ; then
15503     echo "Disabled Schemas/Relax-NG support"
15504     WITH_SCHEMAS=0
15505     TEST_SCHEMAS=
15506 else
15507     echo "Enabled Schemas/Relax-NG support"
15508     WITH_SCHEMAS=1
15509     TEST_SCHEMAS="Schemastests Relaxtests"
15510     with_regexps=yes
15511 fi
15512
15513
15514
15515
15516 # Check whether --with-regexps or --without-regexps was given.
15517 if test "${with_regexps+set}" = set; then
15518   withval="$with_regexps"
15519
15520 fi;
15521 if test "$with_regexps" = "no" ; then
15522     echo Disabling Regexps support
15523     WITH_REGEXPS=0
15524     TEST_REGEXPS=
15525 else
15526     WITH_REGEXPS=1
15527     TEST_REGEXPS="Regexptests Automatatests"
15528 fi
15529
15530
15531
15532
15533 # Check whether --with-debug or --without-debug was given.
15534 if test "${with_debug+set}" = set; then
15535   withval="$with_debug"
15536
15537 fi;
15538 if test "$with_debug" = "no" ; then
15539     echo Disabling DEBUG support
15540     WITH_DEBUG=0
15541     DEBUG_OBJ=
15542 else
15543     WITH_DEBUG=1
15544     DEBUG_OBJ=debugXML.o
15545 fi
15546
15547
15548
15549
15550 # Check whether --with-mem_debug or --without-mem_debug was given.
15551 if test "${with_mem_debug+set}" = set; then
15552   withval="$with_mem_debug"
15553
15554 fi;
15555 if test "$with_mem_debug" = "yes" ; then
15556     echo Enabling memory debug support
15557     WITH_MEM_DEBUG=1
15558 else
15559     WITH_MEM_DEBUG=0
15560 fi
15561
15562
15563
15564 WIN32_EXTRA_LIBADD=
15565 WIN32_EXTRA_LDFLAGS=
15566 case "$host" in
15567  *-*-mingw*)
15568  WIN32_EXTRA_LIBADD="-lwsock32"
15569  WIN32_EXTRA_LDFLAGS="-no-undefined"
15570
15571 cat >>confdefs.h <<\_ACEOF
15572 #define _WINSOCKAPI_ 1
15573 _ACEOF
15574
15575
15576 cat >>confdefs.h <<\_ACEOF
15577 #define snprintf _snprintf
15578 _ACEOF
15579
15580
15581 cat >>confdefs.h <<\_ACEOF
15582 #define vsnprintf _vsnprintf
15583 _ACEOF
15584
15585  ;;
15586 esac
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609 RELDATE=`date +'%a %b %e %Y'`
15610
15611
15612 rm -f COPYING.LIB COPYING
15613 ln -s Copyright COPYING
15614
15615                                                                                                                                   ac_config_files="$ac_config_files libxml2.spec:libxml.spec.in 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"
15616 cat >confcache <<\_ACEOF
15617 # This file is a shell script that caches the results of configure
15618 # tests run on this system so they can be shared between configure
15619 # scripts and configure runs, see configure's option --config-cache.
15620 # It is not useful on other systems.  If it contains results you don't
15621 # want to keep, you may remove or edit it.
15622 #
15623 # config.status only pays attention to the cache file if you give it
15624 # the --recheck option to rerun configure.
15625 #
15626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15628 # following values.
15629
15630 _ACEOF
15631
15632 # The following way of writing the cache mishandles newlines in values,
15633 # but we know of no workaround that is simple, portable, and efficient.
15634 # So, don't put newlines in cache variables' values.
15635 # Ultrix sh set writes to stderr and can't be redirected directly,
15636 # and sets the high bit in the cache file unless we assign to the vars.
15637 {
15638   (set) 2>&1 |
15639     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15640     *ac_space=\ *)
15641       # `set' does not quote correctly, so add quotes (double-quote
15642       # substitution turns \\\\ into \\, and sed turns \\ into \).
15643       sed -n \
15644         "s/'/'\\\\''/g;
15645           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15646       ;;
15647     *)
15648       # `set' quotes correctly as required by POSIX, so do not add quotes.
15649       sed -n \
15650         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15651       ;;
15652     esac;
15653 } |
15654   sed '
15655      t clear
15656      : clear
15657      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15658      t end
15659      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15660      : end' >>confcache
15661 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15662   if test -w $cache_file; then
15663     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15664     cat confcache >$cache_file
15665   else
15666     echo "not updating unwritable cache $cache_file"
15667   fi
15668 fi
15669 rm -f confcache
15670
15671 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15672 # Let make expand exec_prefix.
15673 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15674
15675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15677 # trailing colons and then remove the whole line if VPATH becomes empty
15678 # (actually we leave an empty line to preserve line numbers).
15679 if test "x$srcdir" = x.; then
15680   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15681 s/:*\$(srcdir):*/:/;
15682 s/:*\${srcdir}:*/:/;
15683 s/:*@srcdir@:*/:/;
15684 s/^\([^=]*=[    ]*\):*/\1/;
15685 s/:*$//;
15686 s/^[^=]*=[      ]*$//;
15687 }'
15688 fi
15689
15690 DEFS=-DHAVE_CONFIG_H
15691
15692 ac_libobjs=
15693 ac_ltlibobjs=
15694 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15695   # 1. Remove the extension, and $U if already installed.
15696   ac_i=`echo "$ac_i" |
15697          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15698   # 2. Add them.
15699   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15700   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15701 done
15702 LIBOBJS=$ac_libobjs
15703
15704 LTLIBOBJS=$ac_ltlibobjs
15705
15706
15707 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15708   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15709 Usually this means the macro was only invoked conditionally." >&5
15710 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15711 Usually this means the macro was only invoked conditionally." >&2;}
15712    { (exit 1); exit 1; }; }
15713 fi
15714 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15715   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15716 Usually this means the macro was only invoked conditionally." >&5
15717 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15718 Usually this means the macro was only invoked conditionally." >&2;}
15719    { (exit 1); exit 1; }; }
15720 fi
15721 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
15722   { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined.
15723 Usually this means the macro was only invoked conditionally." >&5
15724 echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
15725 Usually this means the macro was only invoked conditionally." >&2;}
15726    { (exit 1); exit 1; }; }
15727 fi
15728 if test -z "${WITH_TRIO_SOURCES_TRUE}" && test -z "${WITH_TRIO_SOURCES_FALSE}"; then
15729   { { echo "$as_me:$LINENO: error: conditional \"WITH_TRIO_SOURCES\" was never defined.
15730 Usually this means the macro was only invoked conditionally." >&5
15731 echo "$as_me: error: conditional \"WITH_TRIO_SOURCES\" was never defined.
15732 Usually this means the macro was only invoked conditionally." >&2;}
15733    { (exit 1); exit 1; }; }
15734 fi
15735
15736 : ${CONFIG_STATUS=./config.status}
15737 ac_clean_files_save=$ac_clean_files
15738 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15739 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15740 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15741 cat >$CONFIG_STATUS <<_ACEOF
15742 #! $SHELL
15743 # Generated by $as_me.
15744 # Run this file to recreate the current configuration.
15745 # Compiler output produced by configure, useful for debugging
15746 # configure, is in config.log if it exists.
15747
15748 debug=false
15749 ac_cs_recheck=false
15750 ac_cs_silent=false
15751 SHELL=\${CONFIG_SHELL-$SHELL}
15752 _ACEOF
15753
15754 cat >>$CONFIG_STATUS <<\_ACEOF
15755 ## --------------------- ##
15756 ## M4sh Initialization.  ##
15757 ## --------------------- ##
15758
15759 # Be Bourne compatible
15760 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15761   emulate sh
15762   NULLCMD=:
15763   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15764   # is contrary to our usage.  Disable this feature.
15765   alias -g '${1+"$@"}'='"$@"'
15766 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15767   set -o posix
15768 fi
15769
15770 # Support unset when possible.
15771 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15772   as_unset=unset
15773 else
15774   as_unset=false
15775 fi
15776
15777
15778 # Work around bugs in pre-3.0 UWIN ksh.
15779 $as_unset ENV MAIL MAILPATH
15780 PS1='$ '