Imported Upstream version 2.5.2p1
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="common-src/amanda.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 gl_header_list=
467 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 target target_cpu target_vendor target_os CONFIGURE_COMMAND INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SNAPSHOT_STAMP VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_COMMENT VERSION_SUFFIX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE ALLOCA ALLOCA_H ARPA_INET_H SYS_SOCKET_H LIBPTH LTLIBPTH LIBPTH_PREFIX LIBTHREAD LTLIBTHREAD LIBMULTITHREAD LTLIBMULTITHREAD NETINET_IN_H STDBOOL_H HAVE__BOOL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_DECL_STRNCASECMP HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_DECL_STRTOK_R REPLACE_STRCASECMP REPLACE_STRSTR REPLACE_STRCASESTR ABSOLUTE_STRING_H MKDIR_P EOVERFLOW CFLAG_VISIBILITY HAVE_VISIBILITY GREP AMLINT AMLINTFLAGS DUMPER_DIR CONFIG_DIR USE_VERSION_SUFFIXES CLIENT_SCRIPTS_OPT DEFAULT_SERVER CLIENT_LOGIN SETUID_GROUP BINARY_OWNER DEFAULT_CONFIG DEFAULT_TAPE_SERVER DEFAULT_TAPE_DEVICE EXAMPLE_TAPEDEV DEFAULT_RAW_TAPE_DEVICE DEFAULT_CHANGER_DEVICE GNUTAR_LISTED_INCREMENTAL_DIRX GNUTAR_LISTED_INCREMENTAL_DIR SSH MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_SUFFIX MT_FILE_FLAG AR YACC CAT COMPRESS DD GETCONF GNUPLOT GNUTAR SAMBA_CLIENT GZIP SORT MAILER MT CHIO CHS MTX MCUTIL PRINT PCAT PERL DUMP RESTORE XFSDUMP XFSRESTORE VXDUMP VXRESTORE VDUMP VRESTORE AMPLOT_COMPRESS AMPLOT_CAT_GZIP AMPLOT_CAT_COMPRESS AMPLOT_CAT_PACK LL_FMT LL_RFMT LN_S ECHO ac_ct_AR CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LEX LEXLIB LEX_OUTPUT_ROOT READLINE_LIBS DB_EXT ac_n ac_c WANT_CLIENT_TRUE WANT_CLIENT_FALSE WANT_SAMBA_TRUE WANT_SAMBA_FALSE WANT_RESTORE_TRUE WANT_RESTORE_FALSE WANT_SERVER_TRUE WANT_SERVER_FALSE WANT_RECOVER_TRUE WANT_RECOVER_FALSE WANT_TAPE_TRUE WANT_TAPE_FALSE WANT_AMPLOT_TRUE WANT_AMPLOT_FALSE WANT_CHG_SCSI_TRUE WANT_CHG_SCSI_FALSE WANT_CHIO_SCSI_TRUE WANT_CHIO_SCSI_FALSE WANT_RUNTIME_PSEUDO_RELOC_TRUE WANT_RUNTIME_PSEUDO_RELOC_FALSE WANT_SETUID_CLIENT_TRUE WANT_SETUID_CLIENT_FALSE WANT_SSH_SECURITY_TRUE WANT_SSH_SECURITY_FALSE LTLIBOBJS LTALLOCA DOC_BUILD_DATE XSLTPROC_FLAGS XSLTPROC ENABLE_MANPAGE_BUILD_TRUE ENABLE_MANPAGE_BUILD_FALSE GCC_COMPILER_TRUE GCC_COMPILER_FALSE AM_CFLAGS LIBOBJS gl_LIBOBJS gl_LTLIBOBJS'
468 ac_subst_files=''
469
470 # Initialize some variables set by options.
471 ac_init_help=
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
475 cache_file=/dev/null
476 exec_prefix=NONE
477 no_create=
478 no_recursion=
479 prefix=NONE
480 program_prefix=NONE
481 program_suffix=NONE
482 program_transform_name=s,x,x,
483 silent=
484 site=
485 srcdir=
486 verbose=
487 x_includes=NONE
488 x_libraries=NONE
489
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
507
508 ac_prev=
509 for ac_option
510 do
511   # If the previous option needs an argument, assign it.
512   if test -n "$ac_prev"; then
513     eval "$ac_prev=\$ac_option"
514     ac_prev=
515     continue
516   fi
517
518   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520   # Accept the important Cygnus configure options, so we can diagnose typos.
521
522   case $ac_option in
523
524   -bindir | --bindir | --bindi | --bind | --bin | --bi)
525     ac_prev=bindir ;;
526   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527     bindir=$ac_optarg ;;
528
529   -build | --build | --buil | --bui | --bu)
530     ac_prev=build_alias ;;
531   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532     build_alias=$ac_optarg ;;
533
534   -cache-file | --cache-file | --cache-fil | --cache-fi \
535   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536     ac_prev=cache_file ;;
537   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539     cache_file=$ac_optarg ;;
540
541   --config-cache | -C)
542     cache_file=config.cache ;;
543
544   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545     ac_prev=datadir ;;
546   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547   | --da=*)
548     datadir=$ac_optarg ;;
549
550   -disable-* | --disable-*)
551     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552     # Reject names that are not valid shell variable names.
553     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555    { (exit 1); exit 1; }; }
556     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557     eval "enable_$ac_feature=no" ;;
558
559   -enable-* | --enable-*)
560     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561     # Reject names that are not valid shell variable names.
562     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564    { (exit 1); exit 1; }; }
565     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566     case $ac_option in
567       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568       *) ac_optarg=yes ;;
569     esac
570     eval "enable_$ac_feature='$ac_optarg'" ;;
571
572   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574   | --exec | --exe | --ex)
575     ac_prev=exec_prefix ;;
576   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578   | --exec=* | --exe=* | --ex=*)
579     exec_prefix=$ac_optarg ;;
580
581   -gas | --gas | --ga | --g)
582     # Obsolete; use --with-gas.
583     with_gas=yes ;;
584
585   -help | --help | --hel | --he | -h)
586     ac_init_help=long ;;
587   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588     ac_init_help=recursive ;;
589   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590     ac_init_help=short ;;
591
592   -host | --host | --hos | --ho)
593     ac_prev=host_alias ;;
594   -host=* | --host=* | --hos=* | --ho=*)
595     host_alias=$ac_optarg ;;
596
597   -includedir | --includedir | --includedi | --included | --include \
598   | --includ | --inclu | --incl | --inc)
599     ac_prev=includedir ;;
600   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601   | --includ=* | --inclu=* | --incl=* | --inc=*)
602     includedir=$ac_optarg ;;
603
604   -infodir | --infodir | --infodi | --infod | --info | --inf)
605     ac_prev=infodir ;;
606   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607     infodir=$ac_optarg ;;
608
609   -libdir | --libdir | --libdi | --libd)
610     ac_prev=libdir ;;
611   -libdir=* | --libdir=* | --libdi=* | --libd=*)
612     libdir=$ac_optarg ;;
613
614   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615   | --libexe | --libex | --libe)
616     ac_prev=libexecdir ;;
617   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618   | --libexe=* | --libex=* | --libe=*)
619     libexecdir=$ac_optarg ;;
620
621   -localstatedir | --localstatedir | --localstatedi | --localstated \
622   | --localstate | --localstat | --localsta | --localst \
623   | --locals | --local | --loca | --loc | --lo)
624     ac_prev=localstatedir ;;
625   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628     localstatedir=$ac_optarg ;;
629
630   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631     ac_prev=mandir ;;
632   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633     mandir=$ac_optarg ;;
634
635   -nfp | --nfp | --nf)
636     # Obsolete; use --without-fp.
637     with_fp=no ;;
638
639   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640   | --no-cr | --no-c | -n)
641     no_create=yes ;;
642
643   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645     no_recursion=yes ;;
646
647   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649   | --oldin | --oldi | --old | --ol | --o)
650     ac_prev=oldincludedir ;;
651   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654     oldincludedir=$ac_optarg ;;
655
656   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657     ac_prev=prefix ;;
658   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659     prefix=$ac_optarg ;;
660
661   -program-prefix | --program-prefix | --program-prefi | --program-pref \
662   | --program-pre | --program-pr | --program-p)
663     ac_prev=program_prefix ;;
664   -program-prefix=* | --program-prefix=* | --program-prefi=* \
665   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666     program_prefix=$ac_optarg ;;
667
668   -program-suffix | --program-suffix | --program-suffi | --program-suff \
669   | --program-suf | --program-su | --program-s)
670     ac_prev=program_suffix ;;
671   -program-suffix=* | --program-suffix=* | --program-suffi=* \
672   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673     program_suffix=$ac_optarg ;;
674
675   -program-transform-name | --program-transform-name \
676   | --program-transform-nam | --program-transform-na \
677   | --program-transform-n | --program-transform- \
678   | --program-transform | --program-transfor \
679   | --program-transfo | --program-transf \
680   | --program-trans | --program-tran \
681   | --progr-tra | --program-tr | --program-t)
682     ac_prev=program_transform_name ;;
683   -program-transform-name=* | --program-transform-name=* \
684   | --program-transform-nam=* | --program-transform-na=* \
685   | --program-transform-n=* | --program-transform-=* \
686   | --program-transform=* | --program-transfor=* \
687   | --program-transfo=* | --program-transf=* \
688   | --program-trans=* | --program-tran=* \
689   | --progr-tra=* | --program-tr=* | --program-t=*)
690     program_transform_name=$ac_optarg ;;
691
692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693   | -silent | --silent | --silen | --sile | --sil)
694     silent=yes ;;
695
696   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697     ac_prev=sbindir ;;
698   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699   | --sbi=* | --sb=*)
700     sbindir=$ac_optarg ;;
701
702   -sharedstatedir | --sharedstatedir | --sharedstatedi \
703   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704   | --sharedst | --shareds | --shared | --share | --shar \
705   | --sha | --sh)
706     ac_prev=sharedstatedir ;;
707   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710   | --sha=* | --sh=*)
711     sharedstatedir=$ac_optarg ;;
712
713   -site | --site | --sit)
714     ac_prev=site ;;
715   -site=* | --site=* | --sit=*)
716     site=$ac_optarg ;;
717
718   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719     ac_prev=srcdir ;;
720   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721     srcdir=$ac_optarg ;;
722
723   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724   | --syscon | --sysco | --sysc | --sys | --sy)
725     ac_prev=sysconfdir ;;
726   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728     sysconfdir=$ac_optarg ;;
729
730   -target | --target | --targe | --targ | --tar | --ta | --t)
731     ac_prev=target_alias ;;
732   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733     target_alias=$ac_optarg ;;
734
735   -v | -verbose | --verbose | --verbos | --verbo | --verb)
736     verbose=yes ;;
737
738   -version | --version | --versio | --versi | --vers | -V)
739     ac_init_version=: ;;
740
741   -with-* | --with-*)
742     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743     # Reject names that are not valid shell variable names.
744     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745       { echo "$as_me: error: invalid package name: $ac_package" >&2
746    { (exit 1); exit 1; }; }
747     ac_package=`echo $ac_package| sed 's/-/_/g'`
748     case $ac_option in
749       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750       *) ac_optarg=yes ;;
751     esac
752     eval "with_$ac_package='$ac_optarg'" ;;
753
754   -without-* | --without-*)
755     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756     # Reject names that are not valid shell variable names.
757     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758       { echo "$as_me: error: invalid package name: $ac_package" >&2
759    { (exit 1); exit 1; }; }
760     ac_package=`echo $ac_package | sed 's/-/_/g'`
761     eval "with_$ac_package=no" ;;
762
763   --x)
764     # Obsolete; use --with-x.
765     with_x=yes ;;
766
767   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768   | --x-incl | --x-inc | --x-in | --x-i)
769     ac_prev=x_includes ;;
770   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772     x_includes=$ac_optarg ;;
773
774   -x-libraries | --x-libraries | --x-librarie | --x-librari \
775   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776     ac_prev=x_libraries ;;
777   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779     x_libraries=$ac_optarg ;;
780
781   -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783    { (exit 1); exit 1; }; }
784     ;;
785
786   *=*)
787     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788     # Reject names that are not valid shell variable names.
789     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791    { (exit 1); exit 1; }; }
792     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793     eval "$ac_envvar='$ac_optarg'"
794     export $ac_envvar ;;
795
796   *)
797     # FIXME: should be removed in autoconf 3.0.
798     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802     ;;
803
804   esac
805 done
806
807 if test -n "$ac_prev"; then
808   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809   { echo "$as_me: error: missing argument to $ac_option" >&2
810    { (exit 1); exit 1; }; }
811 fi
812
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
815 do
816   eval ac_val=$`echo $ac_var`
817   case $ac_val in
818     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820    { (exit 1); exit 1; }; };;
821   esac
822 done
823
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826               localstatedir libdir includedir oldincludedir infodir mandir
827 do
828   eval ac_val=$`echo $ac_var`
829   case $ac_val in
830     [\\/$]* | ?:[\\/]* ) ;;
831     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832    { (exit 1); exit 1; }; };;
833   esac
834 done
835
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
839 build=$build_alias
840 host=$host_alias
841 target=$target_alias
842
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845   if test "x$build_alias" = x; then
846     cross_compiling=maybe
847     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848     If a cross compiler is detected then cross compile mode will be used." >&2
849   elif test "x$build_alias" != "x$host_alias"; then
850     cross_compiling=yes
851   fi
852 fi
853
854 ac_tool_prefix=
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857 test "$silent" = yes && exec 6>/dev/null
858
859
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862   ac_srcdir_defaulted=yes
863   # Try the directory containing this script, then its parent.
864   ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866          X"$0" : 'X\(//\)[^/]' \| \
867          X"$0" : 'X\(//\)$' \| \
868          X"$0" : 'X\(/\)' \| \
869          .     : '\(.\)' 2>/dev/null ||
870 echo X"$0" |
871     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873           /^X\(\/\/\)$/{ s//\1/; q; }
874           /^X\(\/\).*/{ s//\1/; q; }
875           s/.*/./; q'`
876   srcdir=$ac_confdir
877   if test ! -r $srcdir/$ac_unique_file; then
878     srcdir=..
879   fi
880 else
881   ac_srcdir_defaulted=no
882 fi
883 if test ! -r $srcdir/$ac_unique_file; then
884   if test "$ac_srcdir_defaulted" = yes; then
885     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886    { (exit 1); exit 1; }; }
887   else
888     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889    { (exit 1); exit 1; }; }
890   fi
891 fi
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894    { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
909 ac_env_CC_value=$CC
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
948
949 #
950 # Report the --help message.
951 #
952 if test "$ac_init_help" = "long"; then
953   # Omit some internal or obsolete options to make the list less imposing.
954   # This message is too long to be a string in the A/UX 3.1 sh.
955   cat <<_ACEOF
956 \`configure' configures this package to adapt to many kinds of systems.
957
958 Usage: $0 [OPTION]... [VAR=VALUE]...
959
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE.  See below for descriptions of some of the useful variables.
962
963 Defaults for the options are specified in brackets.
964
965 Configuration:
966   -h, --help              display this help and exit
967       --help=short        display options specific to this package
968       --help=recursive    display the short help of all the included packages
969   -V, --version           display version information and exit
970   -q, --quiet, --silent   do not print \`checking...' messages
971       --cache-file=FILE   cache test results in FILE [disabled]
972   -C, --config-cache      alias for \`--cache-file=config.cache'
973   -n, --no-create         do not create output files
974       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
976 _ACEOF
977
978   cat <<_ACEOF
979 Installation directories:
980   --prefix=PREFIX         install architecture-independent files in PREFIX
981                           [$ac_default_prefix]
982   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983                           [PREFIX]
984
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
989
990 For better control, use the options below.
991
992 Fine tuning of the installation directories:
993   --bindir=DIR           user executables [EPREFIX/bin]
994   --sbindir=DIR          system admin executables [EPREFIX/sbin]
995   --libexecdir=DIR       program executables [EPREFIX/libexec]
996   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000   --libdir=DIR           object code libraries [EPREFIX/lib]
1001   --includedir=DIR       C header files [PREFIX/include]
1002   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003   --infodir=DIR          info documentation [PREFIX/info]
1004   --mandir=DIR           man documentation [PREFIX/man]
1005 _ACEOF
1006
1007   cat <<\_ACEOF
1008
1009 Program names:
1010   --program-prefix=PREFIX            prepend PREFIX to installed program names
1011   --program-suffix=SUFFIX            append SUFFIX to installed program names
1012   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
1014 System types:
1015   --build=BUILD     configure for building on BUILD [guessed]
1016   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017   --target=TARGET   configure for building compilers for TARGET [HOST]
1018 _ACEOF
1019 fi
1020
1021 if test -n "$ac_init_help"; then
1022
1023   cat <<\_ACEOF
1024
1025 Optional Features:
1026   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1027   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1028   --disable-dependency-tracking  speeds up one-time build
1029   --enable-dependency-tracking   do not reject slow dependency extractors
1030   --enable-threads={posix|solaris|pth|win32}
1031                           specify multithreading API
1032   --disable-threads       build without multithread safety
1033   --disable-rpath         do not hardcode runtime library paths
1034   --disable-largefile     omit support for large files
1035   --enable-shared[=PKGS]
1036                           build shared libraries [default=yes]
1037   --enable-static[=PKGS]
1038                           build static libraries [default=yes]
1039   --enable-fast-install[=PKGS]
1040                           optimize for fast installation [default=yes]
1041   --disable-libtool-lock  avoid locking (might break parallel builds)
1042   --enable-manpage-build  Build the manpages from their XML source (shipped
1043                           manpages are usually sufficient)
1044
1045 Optional Packages:
1046   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048   --with-cflags=CFLAGS   arguments to the c compiler (-Wall, -g, etc)
1049   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1050   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1051   --without-libpth-prefix     don't search for libpth in includedir and libdir
1052   --with-includes=DIR    site header files for readline, etc in DIR
1053   --with-libraries=DIR   site library directories for readline, etc in DIR
1054   --with-dumperdir=DIR   where we install the dumpers [EPREFIX/dumper]
1055   --with-configdir=DIR   runtime config files in DIR [sysconfdir/amanda]
1056   --with-indexdir        deprecated, use indexdir in amanda.conf
1057   --with-dbdir           deprecated, use infofile in amanda.conf
1058   --with-logdir          deprecated, use logfile in amanda.conf
1059   --with-suffixes        install binaries with version string appended to name
1060   --with-client-only     deprecated, use --without-server
1061   --with-server-only     deprecated, use --without-client
1062   --without-client       do not build client stuff
1063   --without-server       do not build server stuff (set --without-restore)
1064   --without-restore      do not build amrestore nor amidxtaped
1065   --without-amrecover    do not build amrecover
1066   --with-index-server=HOST default amanda index server [`uname -n`]
1067   --without-force-uid    do not force the uid to --with-user
1068   --with-user=USER       force execution to USER on client systems [required]
1069   --with-group=GROUP     group allowed to execute setuid-root programs [required]
1070   --with-owner=USER       force ownership of files to USER [default == --with-user value]
1071   --with-rundump         use rundump (setuid-root) to invoke dump
1072   --with-config=CONFIG   default configuration [DailySet1]
1073   --with-tape-server=HOST default restoring tape server is HOST [same as --with-index-server]
1074   --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1075   --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1076   --with-rew-tape        deprecated, use --with-tape-device
1077   --with-norew-tape=ARG  deprecated, use --with-tape-device
1078   --with-changer-device=ARG default tape changer device [/dev/ch0 if it exists]
1079   --with-fqdn            use FQDN's to backup multiple networks
1080   --with-broken-fsf      only enable if tape fsf calls fail mid-file
1081   --without-reuseaddr    Don't closed network connections to be reused until full timeout period.
1082   --with-gnutar[=PROG]      use PROG as GNU tar executable [default: looks for one]
1083   --with-smbclient[=PROG]   use PROG as Samba's smbclient executable [default: looks for one]
1084   --with-samba-user was deprecated
1085   --with-gnutar-listdir=DIR  gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1086   --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1087   --without-bsd-security do not use BSD rsh/rlogin style security
1088   --without-amandahosts  use .rhosts instead of .amandahosts
1089   --with-dbmalloc=DIR  Location of dbmalloc libs and headers
1090   --with-ipv6             If IPv6 must be enabled (Default)
1091   --without-ipv6          If IPv6 must be disable
1092   --with-krb4-security=DIR   Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1093   --with-rsh-security use rsh as a transport
1094   --with-ssh-security use ssh as a transport
1095   --with-ssh-options=[OPTIONS]
1096                           Use these ssh options for ssh security; the default
1097                           should work
1098   --with-bsdtcp-security use tcp as a transport
1099   --with-bsdudp-security use udp as a transport
1100     --with-server-principal=ARG    server host principal  ["amanda"]
1101     --with-server-instance=ARG     server host instance   ["amanda"]
1102     --with-server-keyfile=ARG      server host key file   ["/.amanda"]
1103     --with-client-principal=ARG    client host principal  ["rcmd"]
1104     --with-client-instance=ARG     client host instance   [HOSTNAME_INSTANCE]
1105     --with-client-keyfile=ARG      client host key file   [KEYFILE]
1106     --with-ticket-lifetime=ARG     ticket lifetime        [128]
1107   --with-krb5-security=DIR   Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1108   --with-low-tcpportrange=low,high     bind reserved TCP server sockets to ports within this range unlimited (mainly for amrecover)
1109   --with-tcpportrange=low,high  bind unreserved TCP server sockets to ports within this range [unlimited]
1110   --with-udpportrange=low,high  bind reserved UDP server sockets to ports within this range [unlimited]
1111   --with-maxtapeblocksize=kb            Maximum size of a tape block
1112   --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1113   --with-mmap            force use of mmap instead of shared memory support
1114   --with-buffered-dump   buffer the dumping sockets on the server for speed
1115   --with-assertions      compile assertions into code
1116   --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1117   --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1118   --with-debug-days=NN    number of days to keep debugging files [default=4]
1119   --with-testing[=suffix] use alternate service names
1120   --with-gnuplot=PATH     use gnuplot executable at PATH in amplot
1121   --with-dump-honor-nodump  if dump supports -h, use it for level0s too
1122   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1123   --with-pic              try to use only PIC/non-PIC objects [default=use
1124                           both]
1125   --with-tags[=TAGS]
1126                           include additional configurations [automatic]
1127   --with-xsltproc[=PATH]
1128                           Use the xsltproc binary in in PATH.
1129     --with-xsltproc-flags=FLAGS
1130                           Flags to pass to xsltproc (default --nonet)
1131
1132 Some influential environment variables:
1133   CC          C compiler command
1134   CFLAGS      C compiler flags
1135   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1136               nonstandard directory <lib dir>
1137   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1138               headers in a nonstandard directory <include dir>
1139   CPP         C preprocessor
1140   CXX         C++ compiler command
1141   CXXFLAGS    C++ compiler flags
1142   CXXCPP      C++ preprocessor
1143   F77         Fortran 77 compiler command
1144   FFLAGS      Fortran 77 compiler flags
1145
1146 Use these variables to override the choices made by `configure' or to help
1147 it to find libraries and programs with nonstandard names/locations.
1148
1149 _ACEOF
1150 fi
1151
1152 if test "$ac_init_help" = "recursive"; then
1153   # If there are subdirs, report their specific --help.
1154   ac_popdir=`pwd`
1155   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1156     test -d $ac_dir || continue
1157     ac_builddir=.
1158
1159 if test "$ac_dir" != .; then
1160   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1161   # A "../" for each directory in $ac_dir_suffix.
1162   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1163 else
1164   ac_dir_suffix= ac_top_builddir=
1165 fi
1166
1167 case $srcdir in
1168   .)  # No --srcdir option.  We are building in place.
1169     ac_srcdir=.
1170     if test -z "$ac_top_builddir"; then
1171        ac_top_srcdir=.
1172     else
1173        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1174     fi ;;
1175   [\\/]* | ?:[\\/]* )  # Absolute path.
1176     ac_srcdir=$srcdir$ac_dir_suffix;
1177     ac_top_srcdir=$srcdir ;;
1178   *) # Relative path.
1179     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1180     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1181 esac
1182
1183 # Do not use `cd foo && pwd` to compute absolute paths, because
1184 # the directories may not exist.
1185 case `pwd` in
1186 .) ac_abs_builddir="$ac_dir";;
1187 *)
1188   case "$ac_dir" in
1189   .) ac_abs_builddir=`pwd`;;
1190   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1191   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1192   esac;;
1193 esac
1194 case $ac_abs_builddir in
1195 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1196 *)
1197   case ${ac_top_builddir}. in
1198   .) ac_abs_top_builddir=$ac_abs_builddir;;
1199   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1200   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1201   esac;;
1202 esac
1203 case $ac_abs_builddir in
1204 .) ac_abs_srcdir=$ac_srcdir;;
1205 *)
1206   case $ac_srcdir in
1207   .) ac_abs_srcdir=$ac_abs_builddir;;
1208   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1209   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1210   esac;;
1211 esac
1212 case $ac_abs_builddir in
1213 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1214 *)
1215   case $ac_top_srcdir in
1216   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1217   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1218   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1219   esac;;
1220 esac
1221
1222     cd $ac_dir
1223     # Check for guested configure; otherwise get Cygnus style configure.
1224     if test -f $ac_srcdir/configure.gnu; then
1225       echo
1226       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1227     elif test -f $ac_srcdir/configure; then
1228       echo
1229       $SHELL $ac_srcdir/configure  --help=recursive
1230     elif test -f $ac_srcdir/configure.ac ||
1231            test -f $ac_srcdir/configure.in; then
1232       echo
1233       $ac_configure --help
1234     else
1235       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1236     fi
1237     cd $ac_popdir
1238   done
1239 fi
1240
1241 test -n "$ac_init_help" && exit 0
1242 if $ac_init_version; then
1243   cat <<\_ACEOF
1244
1245 Copyright (C) 2003 Free Software Foundation, Inc.
1246 This configure script is free software; the Free Software Foundation
1247 gives unlimited permission to copy, distribute and modify it.
1248 _ACEOF
1249   exit 0
1250 fi
1251 exec 5>config.log
1252 cat >&5 <<_ACEOF
1253 This file contains any messages produced by compilers while
1254 running configure, to aid debugging if configure makes a mistake.
1255
1256 It was created by $as_me, which was
1257 generated by GNU Autoconf 2.59.  Invocation command line was
1258
1259   $ $0 $@
1260
1261 _ACEOF
1262 {
1263 cat <<_ASUNAME
1264 ## --------- ##
1265 ## Platform. ##
1266 ## --------- ##
1267
1268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1273
1274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1275 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1276
1277 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1278 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1280 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1281 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1282 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1283 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1284
1285 _ASUNAME
1286
1287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1288 for as_dir in $PATH
1289 do
1290   IFS=$as_save_IFS
1291   test -z "$as_dir" && as_dir=.
1292   echo "PATH: $as_dir"
1293 done
1294
1295 } >&5
1296
1297 cat >&5 <<_ACEOF
1298
1299
1300 ## ----------- ##
1301 ## Core tests. ##
1302 ## ----------- ##
1303
1304 _ACEOF
1305
1306
1307 # Keep a trace of the command line.
1308 # Strip out --no-create and --no-recursion so they do not pile up.
1309 # Strip out --silent because we don't want to record it for future runs.
1310 # Also quote any args containing shell meta-characters.
1311 # Make two passes to allow for proper duplicate-argument suppression.
1312 ac_configure_args=
1313 ac_configure_args0=
1314 ac_configure_args1=
1315 ac_sep=
1316 ac_must_keep_next=false
1317 for ac_pass in 1 2
1318 do
1319   for ac_arg
1320   do
1321     case $ac_arg in
1322     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1323     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324     | -silent | --silent | --silen | --sile | --sil)
1325       continue ;;
1326     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1327       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1328     esac
1329     case $ac_pass in
1330     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1331     2)
1332       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1333       if test $ac_must_keep_next = true; then
1334         ac_must_keep_next=false # Got value, back to normal.
1335       else
1336         case $ac_arg in
1337           *=* | --config-cache | -C | -disable-* | --disable-* \
1338           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1339           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1340           | -with-* | --with-* | -without-* | --without-* | --x)
1341             case "$ac_configure_args0 " in
1342               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1343             esac
1344             ;;
1345           -* ) ac_must_keep_next=true ;;
1346         esac
1347       fi
1348       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1349       # Get rid of the leading space.
1350       ac_sep=" "
1351       ;;
1352     esac
1353   done
1354 done
1355 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1356 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1357
1358 # When interrupted or exit'd, cleanup temporary files, and complete
1359 # config.log.  We remove comments because anyway the quotes in there
1360 # would cause problems or look ugly.
1361 # WARNING: Be sure not to use single quotes in there, as some shells,
1362 # such as our DU 5.0 friend, will then `close' the trap.
1363 trap 'exit_status=$?
1364   # Save into config.log some information that might help in debugging.
1365   {
1366     echo
1367
1368     cat <<\_ASBOX
1369 ## ---------------- ##
1370 ## Cache variables. ##
1371 ## ---------------- ##
1372 _ASBOX
1373     echo
1374     # The following way of writing the cache mishandles newlines in values,
1375 {
1376   (set) 2>&1 |
1377     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1378     *ac_space=\ *)
1379       sed -n \
1380         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1381           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1382       ;;
1383     *)
1384       sed -n \
1385         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1386       ;;
1387     esac;
1388 }
1389     echo
1390
1391     cat <<\_ASBOX
1392 ## ----------------- ##
1393 ## Output variables. ##
1394 ## ----------------- ##
1395 _ASBOX
1396     echo
1397     for ac_var in $ac_subst_vars
1398     do
1399       eval ac_val=$`echo $ac_var`
1400       echo "$ac_var='"'"'$ac_val'"'"'"
1401     done | sort
1402     echo
1403
1404     if test -n "$ac_subst_files"; then
1405       cat <<\_ASBOX
1406 ## ------------- ##
1407 ## Output files. ##
1408 ## ------------- ##
1409 _ASBOX
1410       echo
1411       for ac_var in $ac_subst_files
1412       do
1413         eval ac_val=$`echo $ac_var`
1414         echo "$ac_var='"'"'$ac_val'"'"'"
1415       done | sort
1416       echo
1417     fi
1418
1419     if test -s confdefs.h; then
1420       cat <<\_ASBOX
1421 ## ----------- ##
1422 ## confdefs.h. ##
1423 ## ----------- ##
1424 _ASBOX
1425       echo
1426       sed "/^$/d" confdefs.h | sort
1427       echo
1428     fi
1429     test "$ac_signal" != 0 &&
1430       echo "$as_me: caught signal $ac_signal"
1431     echo "$as_me: exit $exit_status"
1432   } >&5
1433   rm -f core *.core &&
1434   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1435     exit $exit_status
1436      ' 0
1437 for ac_signal in 1 2 13 15; do
1438   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1439 done
1440 ac_signal=0
1441
1442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1443 rm -rf conftest* confdefs.h
1444 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1445 echo >confdefs.h
1446
1447 # Predefined preprocessor variables.
1448
1449 cat >>confdefs.h <<_ACEOF
1450 #define PACKAGE_NAME "$PACKAGE_NAME"
1451 _ACEOF
1452
1453
1454 cat >>confdefs.h <<_ACEOF
1455 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1456 _ACEOF
1457
1458
1459 cat >>confdefs.h <<_ACEOF
1460 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1461 _ACEOF
1462
1463
1464 cat >>confdefs.h <<_ACEOF
1465 #define PACKAGE_STRING "$PACKAGE_STRING"
1466 _ACEOF
1467
1468
1469 cat >>confdefs.h <<_ACEOF
1470 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1471 _ACEOF
1472
1473
1474 # Let the site file select an alternate cache file if it wants to.
1475 # Prefer explicitly selected file to automatically selected ones.
1476 if test -z "$CONFIG_SITE"; then
1477   if test "x$prefix" != xNONE; then
1478     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1479   else
1480     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1481   fi
1482 fi
1483 for ac_site_file in $CONFIG_SITE; do
1484   if test -r "$ac_site_file"; then
1485     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1486 echo "$as_me: loading site script $ac_site_file" >&6;}
1487     sed 's/^/| /' "$ac_site_file" >&5
1488     . "$ac_site_file"
1489   fi
1490 done
1491
1492 if test -r "$cache_file"; then
1493   # Some versions of bash will fail to source /dev/null (special
1494   # files actually), so we avoid doing that.
1495   if test -f "$cache_file"; then
1496     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1497 echo "$as_me: loading cache $cache_file" >&6;}
1498     case $cache_file in
1499       [\\/]* | ?:[\\/]* ) . $cache_file;;
1500       *)                      . ./$cache_file;;
1501     esac
1502   fi
1503 else
1504   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1505 echo "$as_me: creating cache $cache_file" >&6;}
1506   >$cache_file
1507 fi
1508
1509 # Check that the precious variables saved in the cache have kept the same
1510 # value.
1511 ac_cache_corrupted=false
1512 for ac_var in `(set) 2>&1 |
1513                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1514   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1515   eval ac_new_set=\$ac_env_${ac_var}_set
1516   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1517   eval ac_new_val="\$ac_env_${ac_var}_value"
1518   case $ac_old_set,$ac_new_set in
1519     set,)
1520       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1521 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1522       ac_cache_corrupted=: ;;
1523     ,set)
1524       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1525 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1526       ac_cache_corrupted=: ;;
1527     ,);;
1528     *)
1529       if test "x$ac_old_val" != "x$ac_new_val"; then
1530         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1531 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1532         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1533 echo "$as_me:   former value:  $ac_old_val" >&2;}
1534         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1535 echo "$as_me:   current value: $ac_new_val" >&2;}
1536         ac_cache_corrupted=:
1537       fi;;
1538   esac
1539   # Pass precious variables to config.status.
1540   if test "$ac_new_set" = set; then
1541     case $ac_new_val in
1542     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1543       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1544     *) ac_arg=$ac_var=$ac_new_val ;;
1545     esac
1546     case " $ac_configure_args " in
1547       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1548       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1549     esac
1550   fi
1551 done
1552 if $ac_cache_corrupted; then
1553   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1554 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1555   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1556 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1557    { (exit 1); exit 1; }; }
1558 fi
1559
1560 ac_ext=c
1561 ac_cpp='$CPP $CPPFLAGS'
1562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1565
1566
1567 gl_header_list="$gl_header_list arpa/inet.h"
1568 gl_header_list="$gl_header_list sys/socket.h"
1569 gl_header_list="$gl_header_list netinet/in.h"
1570 gl_header_list="$gl_header_list netdb.h"
1571 gl_header_list="$gl_header_list string.h"
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590 ac_aux_dir=
1591 for ac_dir in config $srcdir/config; do
1592   if test -f $ac_dir/install-sh; then
1593     ac_aux_dir=$ac_dir
1594     ac_install_sh="$ac_aux_dir/install-sh -c"
1595     break
1596   elif test -f $ac_dir/install.sh; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/install.sh -c"
1599     break
1600   elif test -f $ac_dir/shtool; then
1601     ac_aux_dir=$ac_dir
1602     ac_install_sh="$ac_aux_dir/shtool install -c"
1603     break
1604   fi
1605 done
1606 if test -z "$ac_aux_dir"; then
1607   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1608 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1612 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1613 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1614
1615 # Make sure we can run config.sub.
1616 $ac_config_sub sun4 >/dev/null 2>&1 ||
1617   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1618 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1619    { (exit 1); exit 1; }; }
1620
1621 echo "$as_me:$LINENO: checking build system type" >&5
1622 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1623 if test "${ac_cv_build+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   ac_cv_build_alias=$build_alias
1627 test -z "$ac_cv_build_alias" &&
1628   ac_cv_build_alias=`$ac_config_guess`
1629 test -z "$ac_cv_build_alias" &&
1630   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1631 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1632    { (exit 1); exit 1; }; }
1633 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1640 echo "${ECHO_T}$ac_cv_build" >&6
1641 build=$ac_cv_build
1642 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 echo "$as_me:$LINENO: checking host system type" >&5
1648 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1649 if test "${ac_cv_host+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   ac_cv_host_alias=$host_alias
1653 test -z "$ac_cv_host_alias" &&
1654   ac_cv_host_alias=$ac_cv_build_alias
1655 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1662 echo "${ECHO_T}$ac_cv_host" >&6
1663 host=$ac_cv_host
1664 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 echo "$as_me:$LINENO: checking target system type" >&5
1670 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1671 if test "${ac_cv_target+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   ac_cv_target_alias=$target_alias
1675 test "x$ac_cv_target_alias" = "x" &&
1676   ac_cv_target_alias=$ac_cv_host_alias
1677 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1678   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1679 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1680    { (exit 1); exit 1; }; }
1681
1682 fi
1683 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1684 echo "${ECHO_T}$ac_cv_target" >&6
1685 target=$ac_cv_target
1686 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691 # The aliases save the names the user supplied, while $host etc.
1692 # will get canonicalized.
1693 test -n "$target_alias" &&
1694   test "$program_prefix$program_suffix$program_transform_name" = \
1695     NONENONEs,x,x, &&
1696   program_prefix=${target_alias}-
1697
1698
1699 CONFIGURE_COMMAND="'$0'"
1700 for arg in "$@"; do
1701   CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1702 done
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1706 _ACEOF
1707
1708
1709
1710 am__api_version="1.9"
1711 # Find a good install program.  We prefer a C program (faster),
1712 # so one script is as good as another.  But avoid the broken or
1713 # incompatible versions:
1714 # SysV /etc/install, /usr/sbin/install
1715 # SunOS /usr/etc/install
1716 # IRIX /sbin/install
1717 # AIX /bin/install
1718 # AmigaOS /C/install, which installs bootblocks on floppy discs
1719 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1720 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1721 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1722 # OS/2's system install, which has a completely different semantic
1723 # ./install, which can be erroneously created by make from ./install.sh.
1724 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1725 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1726 if test -z "$INSTALL"; then
1727 if test "${ac_cv_path_install+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1732 do
1733   IFS=$as_save_IFS
1734   test -z "$as_dir" && as_dir=.
1735   # Account for people who put trailing slashes in PATH elements.
1736 case $as_dir/ in
1737   ./ | .// | /cC/* | \
1738   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1739   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1740   /usr/ucb/* ) ;;
1741   *)
1742     # OSF1 and SCO ODT 3.0 have their own names for install.
1743     # Don't use installbsd from OSF since it installs stuff as root
1744     # by default.
1745     for ac_prog in ginstall scoinst install; do
1746       for ac_exec_ext in '' $ac_executable_extensions; do
1747         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1748           if test $ac_prog = install &&
1749             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750             # AIX install.  It has an incompatible calling convention.
1751             :
1752           elif test $ac_prog = install &&
1753             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1754             # program-specific install script used by HP pwplus--don't use.
1755             :
1756           else
1757             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758             break 3
1759           fi
1760         fi
1761       done
1762     done
1763     ;;
1764 esac
1765 done
1766
1767
1768 fi
1769   if test "${ac_cv_path_install+set}" = set; then
1770     INSTALL=$ac_cv_path_install
1771   else
1772     # As a last resort, use the slow shell script.  We don't cache a
1773     # path for INSTALL within a source directory, because that will
1774     # break other packages using the cache if that directory is
1775     # removed, or if the path is relative.
1776     INSTALL=$ac_install_sh
1777   fi
1778 fi
1779 echo "$as_me:$LINENO: result: $INSTALL" >&5
1780 echo "${ECHO_T}$INSTALL" >&6
1781
1782 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1783 # It thinks the first close brace ends the variable substitution.
1784 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1785
1786 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1787
1788 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1789
1790 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1791 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1792 # Just in case
1793 sleep 1
1794 echo timestamp > conftest.file
1795 # Do `set' in a subshell so we don't clobber the current shell's
1796 # arguments.  Must try -L first in case configure is actually a
1797 # symlink; some systems play weird games with the mod time of symlinks
1798 # (eg FreeBSD returns the mod time of the symlink's containing
1799 # directory).
1800 if (
1801    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1802    if test "$*" = "X"; then
1803       # -L didn't work.
1804       set X `ls -t $srcdir/configure conftest.file`
1805    fi
1806    rm -f conftest.file
1807    if test "$*" != "X $srcdir/configure conftest.file" \
1808       && test "$*" != "X conftest.file $srcdir/configure"; then
1809
1810       # If neither matched, then we have a broken ls.  This can happen
1811       # if, for instance, CONFIG_SHELL is bash and it inherits a
1812       # broken ls alias from the environment.  This has actually
1813       # happened.  Such a system could not be considered "sane".
1814       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1815 alias in your environment" >&5
1816 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1817 alias in your environment" >&2;}
1818    { (exit 1); exit 1; }; }
1819    fi
1820
1821    test "$2" = conftest.file
1822    )
1823 then
1824    # Ok.
1825    :
1826 else
1827    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1828 Check your system clock" >&5
1829 echo "$as_me: error: newly created file is older than distributed files!
1830 Check your system clock" >&2;}
1831    { (exit 1); exit 1; }; }
1832 fi
1833 echo "$as_me:$LINENO: result: yes" >&5
1834 echo "${ECHO_T}yes" >&6
1835 test "$program_prefix" != NONE &&
1836   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1837 # Use a double $ so make ignores it.
1838 test "$program_suffix" != NONE &&
1839   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1840 # Double any \ or $.  echo might interpret backslashes.
1841 # By default was `s,x,x', remove it if useless.
1842 cat <<\_ACEOF >conftest.sed
1843 s/[\\$]/&&/g;s/;s,x,x,$//
1844 _ACEOF
1845 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846 rm conftest.sed
1847
1848 # expand $ac_aux_dir to an absolute path
1849 am_aux_dir=`cd $ac_aux_dir && pwd`
1850
1851 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852 # Use eval to expand $SHELL
1853 if eval "$MISSING --run true"; then
1854   am_missing_run="$MISSING --run "
1855 else
1856   am_missing_run=
1857   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1858 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1859 fi
1860
1861 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1862   # We used to keeping the `.' as first argument, in order to
1863   # allow $(mkdir_p) to be used without argument.  As in
1864   #   $(mkdir_p) $(somedir)
1865   # where $(somedir) is conditionally defined.  However this is wrong
1866   # for two reasons:
1867   #  1. if the package is installed by a user who cannot write `.'
1868   #     make install will fail,
1869   #  2. the above comment should most certainly read
1870   #     $(mkdir_p) $(DESTDIR)$(somedir)
1871   #     so it does not work when $(somedir) is undefined and
1872   #     $(DESTDIR) is not.
1873   #  To support the latter case, we have to write
1874   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1875   #  so the `.' trick is pointless.
1876   mkdir_p='mkdir -p --'
1877 else
1878   # On NextStep and OpenStep, the `mkdir' command does not
1879   # recognize any option.  It will interpret all options as
1880   # directories to create, and then abort because `.' already
1881   # exists.
1882   for d in ./-p ./--version;
1883   do
1884     test -d $d && rmdir $d
1885   done
1886   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1887   if test -f "$ac_aux_dir/mkinstalldirs"; then
1888     mkdir_p='$(mkinstalldirs)'
1889   else
1890     mkdir_p='$(install_sh) -d'
1891   fi
1892 fi
1893
1894 for ac_prog in gawk mawk nawk awk
1895 do
1896   # Extract the first word of "$ac_prog", so it can be a program name with args.
1897 set dummy $ac_prog; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_AWK+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$AWK"; then
1904   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_AWK="$ac_prog"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 AWK=$ac_cv_prog_AWK
1923 if test -n "$AWK"; then
1924   echo "$as_me:$LINENO: result: $AWK" >&5
1925 echo "${ECHO_T}$AWK" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931   test -n "$AWK" && break
1932 done
1933
1934 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1935 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1936 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1937 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   cat >conftest.make <<\_ACEOF
1941 all:
1942         @echo 'ac_maketemp="$(MAKE)"'
1943 _ACEOF
1944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1945 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1946 if test -n "$ac_maketemp"; then
1947   eval ac_cv_prog_make_${ac_make}_set=yes
1948 else
1949   eval ac_cv_prog_make_${ac_make}_set=no
1950 fi
1951 rm -f conftest.make
1952 fi
1953 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1954   echo "$as_me:$LINENO: result: yes" >&5
1955 echo "${ECHO_T}yes" >&6
1956   SET_MAKE=
1957 else
1958   echo "$as_me:$LINENO: result: no" >&5
1959 echo "${ECHO_T}no" >&6
1960   SET_MAKE="MAKE=${MAKE-make}"
1961 fi
1962
1963 rm -rf .tst 2>/dev/null
1964 mkdir .tst 2>/dev/null
1965 if test -d .tst; then
1966   am__leading_dot=.
1967 else
1968   am__leading_dot=_
1969 fi
1970 rmdir .tst 2>/dev/null
1971
1972 # test to see if srcdir already configured
1973 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1974    test -f $srcdir/config.status; then
1975   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1976 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980 # test whether we have cygpath
1981 if test -z "$CYGPATH_W"; then
1982   if (cygpath --version) >/dev/null 2>/dev/null; then
1983     CYGPATH_W='cygpath -w'
1984   else
1985     CYGPATH_W=echo
1986   fi
1987 fi
1988
1989
1990 # Define the identity of the package.
1991  PACKAGE=amanda
1992  VERSION=2.5.2p1
1993
1994
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE "$PACKAGE"
1997 _ACEOF
1998
1999
2000 cat >>confdefs.h <<_ACEOF
2001 #define VERSION "$VERSION"
2002 _ACEOF
2003
2004 # Some tools Automake needs.
2005
2006 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2007
2008
2009 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2010
2011
2012 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2013
2014
2015 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2016
2017
2018 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2019
2020 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2021
2022 # Installed binaries are usually stripped using `strip' when the user
2023 # run `make install-strip'.  However `strip' might not be the right
2024 # tool to use in cross-compilation environments, therefore Automake
2025 # will honor the `STRIP' environment variable to overrule this program.
2026 if test "$cross_compiling" != no; then
2027   if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}strip; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_STRIP+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$STRIP"; then
2036   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 STRIP=$ac_cv_prog_STRIP
2055 if test -n "$STRIP"; then
2056   echo "$as_me:$LINENO: result: $STRIP" >&5
2057 echo "${ECHO_T}$STRIP" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063 fi
2064 if test -z "$ac_cv_prog_STRIP"; then
2065   ac_ct_STRIP=$STRIP
2066   # Extract the first word of "strip", so it can be a program name with args.
2067 set dummy strip; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$ac_ct_STRIP"; then
2074   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_ac_ct_STRIP="strip"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2091 fi
2092 fi
2093 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2094 if test -n "$ac_ct_STRIP"; then
2095   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2096 echo "${ECHO_T}$ac_ct_STRIP" >&6
2097 else
2098   echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6
2100 fi
2101
2102   STRIP=$ac_ct_STRIP
2103 else
2104   STRIP="$ac_cv_prog_STRIP"
2105 fi
2106
2107 fi
2108 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2109
2110 # We need awk for the "check" target.  The system "awk" is bad on
2111 # some platforms.
2112 # Always define AMTAR for backward compatibility.
2113
2114 AMTAR=${AMTAR-"${am_missing_run}tar"}
2115
2116 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2117
2118
2119
2120
2121
2122           ac_config_headers="$ac_config_headers config/config.h"
2123
2124
2125
2126 if test -f "$srcdir/SNAPSHOT"; then
2127   cat < "$srcdir/SNAPSHOT"
2128
2129   snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2130
2131   test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2132   SNAPSHOT_STAMP=SNAPSHOT
2133 else
2134   SNAPSHOT_STAMP=
2135 fi
2136
2137
2138 if test -f config.local; then
2139     echo "running local script ./config.local"
2140     . ./config.local
2141 fi
2142
2143
2144 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2145 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2146 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2147 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2148
2149
2150 VERSION_SUFFIX="$VERSION"
2151
2152
2153
2154
2155
2156
2157 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2158 LOCPATH=`(
2159     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2160     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2161     eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2162 )`
2163 SYSLOCPATH="$SYSPATH:$LOCPATH"
2164 LOCSYSPATH="$LOCPATH:$SYSPATH"
2165
2166
2167
2168 # Check whether --with-cflags or --without-cflags was given.
2169 if test "${with_cflags+set}" = set; then
2170   withval="$with_cflags"
2171
2172         case "$withval" in
2173         "" | y | ye | yes | n | no)
2174             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
2175 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
2176    { (exit 1); exit 1; }; }
2177             ;;
2178         esac
2179         CFLAGS="$withval"
2180
2181 fi;
2182
2183 CFLAGS="-D_GNU_SOURCE $CFLAGS"
2184
2185 ac_ext=c
2186 ac_cpp='$CPP $CPPFLAGS'
2187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 if test -n "$ac_tool_prefix"; then
2191   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2193 echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196   echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198   if test -n "$CC"; then
2199   ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2203 do
2204   IFS=$as_save_IFS
2205   test -z "$as_dir" && as_dir=.
2206   for ac_exec_ext in '' $ac_executable_extensions; do
2207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210     break 2
2211   fi
2212 done
2213 done
2214
2215 fi
2216 fi
2217 CC=$ac_cv_prog_CC
2218 if test -n "$CC"; then
2219   echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6
2221 else
2222   echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2224 fi
2225
2226 fi
2227 if test -z "$ac_cv_prog_CC"; then
2228   ac_ct_CC=$CC
2229   # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2233 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2234   echo $ECHO_N "(cached) $ECHO_C" >&6
2235 else
2236   if test -n "$ac_ct_CC"; then
2237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2238 else
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246     ac_cv_prog_ac_ct_CC="gcc"
2247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2248     break 2
2249   fi
2250 done
2251 done
2252
2253 fi
2254 fi
2255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2256 if test -n "$ac_ct_CC"; then
2257   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2258 echo "${ECHO_T}$ac_ct_CC" >&6
2259 else
2260   echo "$as_me:$LINENO: result: no" >&5
2261 echo "${ECHO_T}no" >&6
2262 fi
2263
2264   CC=$ac_ct_CC
2265 else
2266   CC="$ac_cv_prog_CC"
2267 fi
2268
2269 if test -z "$CC"; then
2270   if test -n "$ac_tool_prefix"; then
2271   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2272 set dummy ${ac_tool_prefix}cc; ac_word=$2
2273 echo "$as_me:$LINENO: checking for $ac_word" >&5
2274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2275 if test "${ac_cv_prog_CC+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   if test -n "$CC"; then
2279   ac_cv_prog_CC="$CC" # Let the user override the test.
2280 else
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2283 do
2284   IFS=$as_save_IFS
2285   test -z "$as_dir" && as_dir=.
2286   for ac_exec_ext in '' $ac_executable_extensions; do
2287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2288     ac_cv_prog_CC="${ac_tool_prefix}cc"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294
2295 fi
2296 fi
2297 CC=$ac_cv_prog_CC
2298 if test -n "$CC"; then
2299   echo "$as_me:$LINENO: result: $CC" >&5
2300 echo "${ECHO_T}$CC" >&6
2301 else
2302   echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6
2304 fi
2305
2306 fi
2307 if test -z "$ac_cv_prog_CC"; then
2308   ac_ct_CC=$CC
2309   # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   if test -n "$ac_ct_CC"; then
2317   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322   IFS=$as_save_IFS
2323   test -z "$as_dir" && as_dir=.
2324   for ac_exec_ext in '' $ac_executable_extensions; do
2325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326     ac_cv_prog_ac_ct_CC="cc"
2327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328     break 2
2329   fi
2330 done
2331 done
2332
2333 fi
2334 fi
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2338 echo "${ECHO_T}$ac_ct_CC" >&6
2339 else
2340   echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2342 fi
2343
2344   CC=$ac_ct_CC
2345 else
2346   CC="$ac_cv_prog_CC"
2347 fi
2348
2349 fi
2350 if test -z "$CC"; then
2351   # Extract the first word of "cc", so it can be a program name with args.
2352 set dummy cc; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_CC+set}" = set; then
2356   echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358   if test -n "$CC"; then
2359   ac_cv_prog_CC="$CC" # Let the user override the test.
2360 else
2361   ac_prog_rejected=no
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 for as_dir in $PATH
2364 do
2365   IFS=$as_save_IFS
2366   test -z "$as_dir" && as_dir=.
2367   for ac_exec_ext in '' $ac_executable_extensions; do
2368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2370        ac_prog_rejected=yes
2371        continue
2372      fi
2373     ac_cv_prog_CC="cc"
2374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378 done
2379
2380 if test $ac_prog_rejected = yes; then
2381   # We found a bogon in the path, so make sure we never use it.
2382   set dummy $ac_cv_prog_CC
2383   shift
2384   if test $# != 0; then
2385     # We chose a different compiler from the bogus one.
2386     # However, it has the same basename, so the bogon will be chosen
2387     # first if we set CC to just the basename; use the full file name.
2388     shift
2389     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390   fi
2391 fi
2392 fi
2393 fi
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396   echo "$as_me:$LINENO: result: $CC" >&5
2397 echo "${ECHO_T}$CC" >&6
2398 else
2399   echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6
2401 fi
2402
2403 fi
2404 if test -z "$CC"; then
2405   if test -n "$ac_tool_prefix"; then
2406   for ac_prog in cl
2407   do
2408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413   echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415   if test -n "$CC"; then
2416   ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421   IFS=$as_save_IFS
2422   test -z "$as_dir" && as_dir=.
2423   for ac_exec_ext in '' $ac_executable_extensions; do
2424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2425     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428   fi
2429 done
2430 done
2431
2432 fi
2433 fi
2434 CC=$ac_cv_prog_CC
2435 if test -n "$CC"; then
2436   echo "$as_me:$LINENO: result: $CC" >&5
2437 echo "${ECHO_T}$CC" >&6
2438 else
2439   echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6
2441 fi
2442
2443     test -n "$CC" && break
2444   done
2445 fi
2446 if test -z "$CC"; then
2447   ac_ct_CC=$CC
2448   for ac_prog in cl
2449 do
2450   # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2455   echo $ECHO_N "(cached) $ECHO_C" >&6
2456 else
2457   if test -n "$ac_ct_CC"; then
2458   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465   for ac_exec_ext in '' $ac_executable_extensions; do
2466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2467     ac_cv_prog_ac_ct_CC="$ac_prog"
2468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2469     break 2
2470   fi
2471 done
2472 done
2473
2474 fi
2475 fi
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479 echo "${ECHO_T}$ac_ct_CC" >&6
2480 else
2481   echo "$as_me:$LINENO: result: no" >&5
2482 echo "${ECHO_T}no" >&6
2483 fi
2484
2485   test -n "$ac_ct_CC" && break
2486 done
2487
2488   CC=$ac_ct_CC
2489 fi
2490
2491 fi
2492
2493
2494 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: no acceptable C compiler found in \$PATH
2497 See \`config.log' for more details." >&2;}
2498    { (exit 1); exit 1; }; }
2499
2500 # Provide some information about the compiler.
2501 echo "$as_me:$LINENO:" \
2502      "checking for C compiler version" >&5
2503 ac_compiler=`set X $ac_compile; echo $2`
2504 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2505   (eval $ac_compiler --version </dev/null >&5) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }
2509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2510   (eval $ac_compiler -v </dev/null >&5) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }
2514 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2515   (eval $ac_compiler -V </dev/null >&5) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }
2519
2520 cat >conftest.$ac_ext <<_ACEOF
2521 /* confdefs.h.  */
2522 _ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h.  */
2526
2527 int
2528 main ()
2529 {
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 ac_clean_files_save=$ac_clean_files
2536 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2537 # Try to create an executable without -o first, disregard a.out.
2538 # It will help us diagnose broken compilers, and finding out an intuition
2539 # of exeext.
2540 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2542 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2544   (eval $ac_link_default) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; then
2548   # Find the output, starting from the most likely.  This scheme is
2549 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2550 # resort.
2551
2552 # Be careful to initialize this variable, since it used to be cached.
2553 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2554 ac_cv_exeext=
2555 # b.out is created by i960 compilers.
2556 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2557 do
2558   test -f "$ac_file" || continue
2559   case $ac_file in
2560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2561         ;;
2562     conftest.$ac_ext )
2563         # This is the source file.
2564         ;;
2565     [ab].out )
2566         # We found the default executable, but exeext='' is most
2567         # certainly right.
2568         break;;
2569     *.* )
2570         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2571         # FIXME: I believe we export ac_cv_exeext for Libtool,
2572         # but it would be cool to find out if it's true.  Does anybody
2573         # maintain Libtool? --akim.
2574         export ac_cv_exeext
2575         break;;
2576     * )
2577         break;;
2578   esac
2579 done
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&2;}
2588    { (exit 77); exit 77; }; }
2589 fi
2590
2591 ac_exeext=$ac_cv_exeext
2592 echo "$as_me:$LINENO: result: $ac_file" >&5
2593 echo "${ECHO_T}$ac_file" >&6
2594
2595 # Check the compiler produces executables we can run.  If not, either
2596 # the compiler is broken, or we cross compile.
2597 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2598 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2599 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2600 # If not cross compiling, check that we can run a simple program.
2601 if test "$cross_compiling" != yes; then
2602   if { ac_try='./$ac_file'
2603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604   (eval $ac_try) 2>&5
2605   ac_status=$?
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); }; }; then
2608     cross_compiling=no
2609   else
2610     if test "$cross_compiling" = maybe; then
2611         cross_compiling=yes
2612     else
2613         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2614 If you meant to cross compile, use \`--host'.
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot run C compiled programs.
2617 If you meant to cross compile, use \`--host'.
2618 See \`config.log' for more details." >&2;}
2619    { (exit 1); exit 1; }; }
2620     fi
2621   fi
2622 fi
2623 echo "$as_me:$LINENO: result: yes" >&5
2624 echo "${ECHO_T}yes" >&6
2625
2626 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2627 ac_clean_files=$ac_clean_files_save
2628 # Check the compiler produces executables we can run.  If not, either
2629 # the compiler is broken, or we cross compile.
2630 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2631 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2632 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2633 echo "${ECHO_T}$cross_compiling" >&6
2634
2635 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2636 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638   (eval $ac_link) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; then
2642   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2645 # `rm'.
2646 for ac_file in conftest.exe conftest conftest.*; do
2647   test -f "$ac_file" || continue
2648   case $ac_file in
2649     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2650     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2651           export ac_cv_exeext
2652           break;;
2653     * ) break;;
2654   esac
2655 done
2656 else
2657   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&2;}
2661    { (exit 1); exit 1; }; }
2662 fi
2663
2664 rm -f conftest$ac_cv_exeext
2665 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2666 echo "${ECHO_T}$ac_cv_exeext" >&6
2667
2668 rm -f conftest.$ac_ext
2669 EXEEXT=$ac_cv_exeext
2670 ac_exeext=$EXEEXT
2671 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2672 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2673 if test "${ac_cv_objext+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.o conftest.obj
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693   (eval $ac_compile) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; then
2697   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2698   case $ac_file in
2699     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2700     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2701        break;;
2702   esac
2703 done
2704 else
2705   echo "$as_me: failed program was:" >&5
2706 sed 's/^/| /' conftest.$ac_ext >&5
2707
2708 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2709 See \`config.log' for more details." >&5
2710 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&2;}
2712    { (exit 1); exit 1; }; }
2713 fi
2714
2715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2716 fi
2717 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2718 echo "${ECHO_T}$ac_cv_objext" >&6
2719 OBJEXT=$ac_cv_objext
2720 ac_objext=$OBJEXT
2721 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2722 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2723 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732
2733 int
2734 main ()
2735 {
2736 #ifndef __GNUC__
2737        choke me
2738 #endif
2739
2740   ;
2741   return 0;
2742 }
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746   (eval $ac_compile) 2>conftest.er1
2747   ac_status=$?
2748   grep -v '^ *+' conftest.er1 >conftest.err
2749   rm -f conftest.er1
2750   cat conftest.err >&5
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); } &&
2753          { ac_try='test -z "$ac_c_werror_flag"
2754                          || test ! -s conftest.err'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); }; }; then
2766   ac_compiler_gnu=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771 ac_compiler_gnu=no
2772 fi
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775
2776 fi
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2782 CFLAGS="-g"
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786   echo $ECHO_N "(cached) $ECHO_C" >&6
2787 else
2788   cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794
2795 int
2796 main ()
2797 {
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805   (eval $ac_compile) 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } &&
2812          { ac_try='test -z "$ac_c_werror_flag"
2813                          || test ! -s conftest.err'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; } &&
2819          { ac_try='test -s conftest.$ac_objext'
2820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2821   (eval $ac_try) 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; }; then
2825   ac_cv_prog_cc_g=yes
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830 ac_cv_prog_cc_g=no
2831 fi
2832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 fi
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2836 if test "$ac_test_CFLAGS" = set; then
2837   CFLAGS=$ac_save_CFLAGS
2838 elif test $ac_cv_prog_cc_g = yes; then
2839   if test "$GCC" = yes; then
2840     CFLAGS="-g -O2"
2841   else
2842     CFLAGS="-g"
2843   fi
2844 else
2845   if test "$GCC" = yes; then
2846     CFLAGS="-O2"
2847   else
2848     CFLAGS=
2849   fi
2850 fi
2851 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2852 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2853 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2854   echo $ECHO_N "(cached) $ECHO_C" >&6
2855 else
2856   ac_cv_prog_cc_stdc=no
2857 ac_save_CC=$CC
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h.  */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h.  */
2864 #include <stdarg.h>
2865 #include <stdio.h>
2866 #include <sys/types.h>
2867 #include <sys/stat.h>
2868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2869 struct buf { int x; };
2870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2871 static char *e (p, i)
2872      char **p;
2873      int i;
2874 {
2875   return p[i];
2876 }
2877 static char *f (char * (*g) (char **, int), char **p, ...)
2878 {
2879   char *s;
2880   va_list v;
2881   va_start (v,p);
2882   s = g (p, va_arg (v,int));
2883   va_end (v);
2884   return s;
2885 }
2886
2887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2888    function prototypes and stuff, but not '\xHH' hex character constants.
2889    These don't provoke an error unfortunately, instead are silently treated
2890    as 'x'.  The following induces an error, until -std1 is added to get
2891    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2892    array size at least.  It's necessary to write '\x00'==0 to get something
2893    that's true only with -std1.  */
2894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895
2896 int test (int i, double x);
2897 struct s1 {int (*f) (int a);};
2898 struct s2 {int (*f) (double a);};
2899 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2900 int argc;
2901 char **argv;
2902 int
2903 main ()
2904 {
2905 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 # Don't try gcc -ansi; that turns off useful extensions and
2911 # breaks some systems' header files.
2912 # AIX                   -qlanglvl=ansi
2913 # Ultrix and OSF/1      -std1
2914 # HP-UX 10.20 and later -Ae
2915 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2916 # SVR4                  -Xc -D__EXTENSIONS__
2917 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918 do
2919   CC="$ac_save_CC $ac_arg"
2920   rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2922   (eval $ac_compile) 2>conftest.er1
2923   ac_status=$?
2924   grep -v '^ *+' conftest.er1 >conftest.err
2925   rm -f conftest.er1
2926   cat conftest.err >&5
2927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928   (exit $ac_status); } &&
2929          { ac_try='test -z "$ac_c_werror_flag"
2930                          || test ! -s conftest.err'
2931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932   (eval $ac_try) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }; } &&
2936          { ac_try='test -s conftest.$ac_objext'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; }; then
2942   ac_cv_prog_cc_stdc=$ac_arg
2943 break
2944 else
2945   echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 fi
2949 rm -f conftest.err conftest.$ac_objext
2950 done
2951 rm -f conftest.$ac_ext conftest.$ac_objext
2952 CC=$ac_save_CC
2953
2954 fi
2955
2956 case "x$ac_cv_prog_cc_stdc" in
2957   x|xno)
2958     echo "$as_me:$LINENO: result: none needed" >&5
2959 echo "${ECHO_T}none needed" >&6 ;;
2960   *)
2961     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2962 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2963     CC="$CC $ac_cv_prog_cc_stdc" ;;
2964 esac
2965
2966 # Some people use a C++ compiler to compile C.  Since we use `exit',
2967 # in C++ we need to declare it.  In case someone uses the same compiler
2968 # for both compiling C and C++ we need to have the C++ compiler decide
2969 # the declaration of exit, since it's the most demanding environment.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #ifndef __cplusplus
2972   choke me
2973 #endif
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -z "$ac_c_werror_flag"
2985                          || test ! -s conftest.err'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; } &&
2991          { ac_try='test -s conftest.$ac_objext'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   for ac_declaration in \
2998    '' \
2999    'extern "C" void std::exit (int) throw (); using std::exit;' \
3000    'extern "C" void std::exit (int); using std::exit;' \
3001    'extern "C" void exit (int) throw ();' \
3002    'extern "C" void exit (int);' \
3003    'void exit (int);'
3004 do
3005   cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 $ac_declaration
3012 #include <stdlib.h>
3013 int
3014 main ()
3015 {
3016 exit (42);
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 rm -f conftest.$ac_objext
3022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3023   (eval $ac_compile) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } &&
3030          { ac_try='test -z "$ac_c_werror_flag"
3031                          || test ! -s conftest.err'
3032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033   (eval $ac_try) 2>&5
3034   ac_status=$?
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); }; } &&
3037          { ac_try='test -s conftest.$ac_objext'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; }; then
3043   :
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 continue
3049 fi
3050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057 $ac_declaration
3058 int
3059 main ()
3060 {
3061 exit (42);
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068   (eval $ac_compile) 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag"
3076                          || test ! -s conftest.err'
3077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078   (eval $ac_try) 2>&5
3079   ac_status=$?
3080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081   (exit $ac_status); }; } &&
3082          { ac_try='test -s conftest.$ac_objext'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; }; then
3088   break
3089 else
3090   echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 fi
3094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095 done
3096 rm -f conftest*
3097 if test -n "$ac_declaration"; then
3098   echo '#ifdef __cplusplus' >>confdefs.h
3099   echo $ac_declaration      >>confdefs.h
3100   echo '#endif'             >>confdefs.h
3101 fi
3102
3103 else
3104   echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 fi
3108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 DEPDIR="${am__leading_dot}deps"
3115
3116           ac_config_commands="$ac_config_commands depfiles"
3117
3118
3119 am_make=${MAKE-make}
3120 cat > confinc << 'END'
3121 am__doit:
3122         @echo done
3123 .PHONY: am__doit
3124 END
3125 # If we don't find an include directive, just comment out the code.
3126 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3127 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3128 am__include="#"
3129 am__quote=
3130 _am_result=none
3131 # First try GNU make style include.
3132 echo "include confinc" > confmf
3133 # We grep out `Entering directory' and `Leaving directory'
3134 # messages which can occur if `w' ends up in MAKEFLAGS.
3135 # In particular we don't look at `^make:' because GNU make might
3136 # be invoked under some other name (usually "gmake"), in which
3137 # case it prints its new name instead of `make'.
3138 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3139    am__include=include
3140    am__quote=
3141    _am_result=GNU
3142 fi
3143 # Now try BSD make style include.
3144 if test "$am__include" = "#"; then
3145    echo '.include "confinc"' > confmf
3146    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3147       am__include=.include
3148       am__quote="\""
3149       _am_result=BSD
3150    fi
3151 fi
3152
3153
3154 echo "$as_me:$LINENO: result: $_am_result" >&5
3155 echo "${ECHO_T}$_am_result" >&6
3156 rm -f confinc confmf
3157
3158 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3159 if test "${enable_dependency_tracking+set}" = set; then
3160   enableval="$enable_dependency_tracking"
3161
3162 fi;
3163 if test "x$enable_dependency_tracking" != xno; then
3164   am_depcomp="$ac_aux_dir/depcomp"
3165   AMDEPBACKSLASH='\'
3166 fi
3167
3168
3169 if test "x$enable_dependency_tracking" != xno; then
3170   AMDEP_TRUE=
3171   AMDEP_FALSE='#'
3172 else
3173   AMDEP_TRUE='#'
3174   AMDEP_FALSE=
3175 fi
3176
3177
3178
3179
3180 depcc="$CC"   am_compiler_list=
3181
3182 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3183 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3184 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3185   echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3188   # We make a subdir and do the tests there.  Otherwise we can end up
3189   # making bogus files that we don't know about and never remove.  For
3190   # instance it was reported that on HP-UX the gcc test will end up
3191   # making a dummy file named `D' -- because `-MD' means `put the output
3192   # in D'.
3193   mkdir conftest.dir
3194   # Copy depcomp to subdir because otherwise we won't find it if we're
3195   # using a relative directory.
3196   cp "$am_depcomp" conftest.dir
3197   cd conftest.dir
3198   # We will build objects and dependencies in a subdirectory because
3199   # it helps to detect inapplicable dependency modes.  For instance
3200   # both Tru64's cc and ICC support -MD to output dependencies as a
3201   # side effect of compilation, but ICC will put the dependencies in
3202   # the current directory while Tru64 will put them in the object
3203   # directory.
3204   mkdir sub
3205
3206   am_cv_CC_dependencies_compiler_type=none
3207   if test "$am_compiler_list" = ""; then
3208      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3209   fi
3210   for depmode in $am_compiler_list; do
3211     # Setup a source with many dependencies, because some compilers
3212     # like to wrap large dependency lists on column 80 (with \), and
3213     # we should not choose a depcomp mode which is confused by this.
3214     #
3215     # We need to recreate these files for each test, as the compiler may
3216     # overwrite some of them when testing with obscure command lines.
3217     # This happens at least with the AIX C compiler.
3218     : > sub/conftest.c
3219     for i in 1 2 3 4 5 6; do
3220       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3221       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3222       # Solaris 8's {/usr,}/bin/sh.
3223       touch sub/conftst$i.h
3224     done
3225     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3226
3227     case $depmode in
3228     nosideeffect)
3229       # after this tag, mechanisms are not by side-effect, so they'll
3230       # only be used when explicitly requested
3231       if test "x$enable_dependency_tracking" = xyes; then
3232         continue
3233       else
3234         break
3235       fi
3236       ;;
3237     none) break ;;
3238     esac
3239     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3240     # mode.  It turns out that the SunPro C++ compiler does not properly
3241     # handle `-M -o', and we need to detect this.
3242     if depmode=$depmode \
3243        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3244        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3245        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3246          >/dev/null 2>conftest.err &&
3247        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3248        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3249        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3250       # icc doesn't choke on unknown options, it will just issue warnings
3251       # or remarks (even with -Werror).  So we grep stderr for any message
3252       # that says an option was ignored or not supported.
3253       # When given -MP, icc 7.0 and 7.1 complain thusly:
3254       #   icc: Command line warning: ignoring option '-M'; no argument required
3255       # The diagnosis changed in icc 8.0:
3256       #   icc: Command line remark: option '-MP' not supported
3257       if (grep 'ignoring option' conftest.err ||
3258           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3259         am_cv_CC_dependencies_compiler_type=$depmode
3260         break
3261       fi
3262     fi
3263   done
3264
3265   cd ..
3266   rm -rf conftest.dir
3267 else
3268   am_cv_CC_dependencies_compiler_type=none
3269 fi
3270
3271 fi
3272 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3273 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3275
3276
3277
3278 if
3279   test "x$enable_dependency_tracking" != xno \
3280   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281   am__fastdepCC_TRUE=
3282   am__fastdepCC_FALSE='#'
3283 else
3284   am__fastdepCC_TRUE='#'
3285   am__fastdepCC_FALSE=
3286 fi
3287
3288
3289 if test -n "$ac_tool_prefix"; then
3290   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3292 echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_RANLIB+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   if test -n "$RANLIB"; then
3298   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305   for ac_exec_ext in '' $ac_executable_extensions; do
3306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309     break 2
3310   fi
3311 done
3312 done
3313
3314 fi
3315 fi
3316 RANLIB=$ac_cv_prog_RANLIB
3317 if test -n "$RANLIB"; then
3318   echo "$as_me:$LINENO: result: $RANLIB" >&5
3319 echo "${ECHO_T}$RANLIB" >&6
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325 fi
3326 if test -z "$ac_cv_prog_RANLIB"; then
3327   ac_ct_RANLIB=$RANLIB
3328   # Extract the first word of "ranlib", so it can be a program name with args.
3329 set dummy ranlib; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -n "$ac_ct_RANLIB"; then
3336   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343   for ac_exec_ext in '' $ac_executable_extensions; do
3344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345     ac_cv_prog_ac_ct_RANLIB="ranlib"
3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351
3352   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3353 fi
3354 fi
3355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3356 if test -n "$ac_ct_RANLIB"; then
3357   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3358 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3359 else
3360   echo "$as_me:$LINENO: result: no" >&5
3361 echo "${ECHO_T}no" >&6
3362 fi
3363
3364   RANLIB=$ac_ct_RANLIB
3365 else
3366   RANLIB="$ac_cv_prog_RANLIB"
3367 fi
3368
3369
3370 cat >>confdefs.h <<\_ACEOF
3371 #define _GNU_SOURCE 1
3372 _ACEOF
3373
3374
3375
3376 ac_ext=c
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3383 # On Suns, sometimes $CPP names a directory.
3384 if test -n "$CPP" && test -d "$CPP"; then
3385   CPP=
3386 fi
3387 if test -z "$CPP"; then
3388   if test "${ac_cv_prog_CPP+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391       # Double quotes because CPP needs to be expanded
3392     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3393     do
3394       ac_preproc_ok=false
3395 for ac_c_preproc_warn_flag in '' yes
3396 do
3397   # Use a header file that comes with gcc, so configuring glibc
3398   # with a fresh cross-compiler works.
3399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3400   # <limits.h> exists even on freestanding compilers.
3401   # On the NeXT, cc -E runs the code through the compiler's parser,
3402   # not just through cpp. "Syntax error" is here to catch this case.
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #ifdef __STDC__
3410 # include <limits.h>
3411 #else
3412 # include <assert.h>
3413 #endif
3414                      Syntax error
3415 _ACEOF
3416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } >/dev/null; then
3424   if test -s conftest.err; then
3425     ac_cpp_err=$ac_c_preproc_warn_flag
3426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427   else
3428     ac_cpp_err=
3429   fi
3430 else
3431   ac_cpp_err=yes
3432 fi
3433 if test -z "$ac_cpp_err"; then
3434   :
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439   # Broken: fails on valid input.
3440 continue
3441 fi
3442 rm -f conftest.err conftest.$ac_ext
3443
3444   # OK, works on sane cases.  Now check whether non-existent headers
3445   # can be detected and how.
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3455   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3456   ac_status=$?
3457   grep -v '^ *+' conftest.er1 >conftest.err
3458   rm -f conftest.er1
3459   cat conftest.err >&5
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } >/dev/null; then
3462   if test -s conftest.err; then
3463     ac_cpp_err=$ac_c_preproc_warn_flag
3464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3465   else
3466     ac_cpp_err=
3467   fi
3468 else
3469   ac_cpp_err=yes
3470 fi
3471 if test -z "$ac_cpp_err"; then
3472   # Broken: success on invalid input.
3473 continue
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478   # Passes both tests.
3479 ac_preproc_ok=:
3480 break
3481 fi
3482 rm -f conftest.err conftest.$ac_ext
3483
3484 done
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3488   break
3489 fi
3490
3491     done
3492     ac_cv_prog_CPP=$CPP
3493
3494 fi
3495   CPP=$ac_cv_prog_CPP
3496 else
3497   ac_cv_prog_CPP=$CPP
3498 fi
3499 echo "$as_me:$LINENO: result: $CPP" >&5
3500 echo "${ECHO_T}$CPP" >&6
3501 ac_preproc_ok=false
3502 for ac_c_preproc_warn_flag in '' yes
3503 do
3504   # Use a header file that comes with gcc, so configuring glibc
3505   # with a fresh cross-compiler works.
3506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507   # <limits.h> exists even on freestanding compilers.
3508   # On the NeXT, cc -E runs the code through the compiler's parser,
3509   # not just through cpp. "Syntax error" is here to catch this case.
3510   cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 #ifdef __STDC__
3517 # include <limits.h>
3518 #else
3519 # include <assert.h>
3520 #endif
3521                      Syntax error
3522 _ACEOF
3523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } >/dev/null; then
3531   if test -s conftest.err; then
3532     ac_cpp_err=$ac_c_preproc_warn_flag
3533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534   else
3535     ac_cpp_err=
3536   fi
3537 else
3538   ac_cpp_err=yes
3539 fi
3540 if test -z "$ac_cpp_err"; then
3541   :
3542 else
3543   echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546   # Broken: fails on valid input.
3547 continue
3548 fi
3549 rm -f conftest.err conftest.$ac_ext
3550
3551   # OK, works on sane cases.  Now check whether non-existent headers
3552   # can be detected and how.
3553   cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559 #include <ac_nonexistent.h>
3560 _ACEOF
3561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } >/dev/null; then
3569   if test -s conftest.err; then
3570     ac_cpp_err=$ac_c_preproc_warn_flag
3571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3572   else
3573     ac_cpp_err=
3574   fi
3575 else
3576   ac_cpp_err=yes
3577 fi
3578 if test -z "$ac_cpp_err"; then
3579   # Broken: success on invalid input.
3580 continue
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585   # Passes both tests.
3586 ac_preproc_ok=:
3587 break
3588 fi
3589 rm -f conftest.err conftest.$ac_ext
3590
3591 done
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then
3595   :
3596 else
3597   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details." >&5
3599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details." >&2;}
3601    { (exit 1); exit 1; }; }
3602 fi
3603
3604 ac_ext=c
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3609
3610
3611 echo "$as_me:$LINENO: checking for egrep" >&5
3612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3613 if test "${ac_cv_prog_egrep+set}" = set; then
3614   echo $ECHO_N "(cached) $ECHO_C" >&6
3615 else
3616   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3617     then ac_cv_prog_egrep='grep -E'
3618     else ac_cv_prog_egrep='egrep'
3619     fi
3620 fi
3621 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3622 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3623  EGREP=$ac_cv_prog_egrep
3624
3625
3626
3627 echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #ifdef _AIX
3636   yes
3637 #endif
3638
3639 _ACEOF
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641   $EGREP "yes" >/dev/null 2>&1; then
3642   echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3646 _ACEOF
3647
3648 else
3649   echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652 rm -f conftest*
3653
3654
3655 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3656 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3657 if test "${ac_cv_header_stdc+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #include <stdlib.h>
3667 #include <stdarg.h>
3668 #include <string.h>
3669 #include <float.h>
3670
3671 int
3672 main ()
3673 {
3674
3675   ;
3676   return 0;
3677 }
3678 _ACEOF
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681   (eval $ac_compile) 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } &&
3688          { ac_try='test -z "$ac_c_werror_flag"
3689                          || test ! -s conftest.err'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; } &&
3695          { ac_try='test -s conftest.$ac_objext'
3696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697   (eval $ac_try) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701   ac_cv_header_stdc=yes
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_cv_header_stdc=no
3707 fi
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709
3710 if test $ac_cv_header_stdc = yes; then
3711   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3712   cat >conftest.$ac_ext <<_ACEOF
3713 /* confdefs.h.  */
3714 _ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h.  */
3718 #include <string.h>
3719
3720 _ACEOF
3721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722   $EGREP "memchr" >/dev/null 2>&1; then
3723   :
3724 else
3725   ac_cv_header_stdc=no
3726 fi
3727 rm -f conftest*
3728
3729 fi
3730
3731 if test $ac_cv_header_stdc = yes; then
3732   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <stdlib.h>
3740
3741 _ACEOF
3742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743   $EGREP "free" >/dev/null 2>&1; then
3744   :
3745 else
3746   ac_cv_header_stdc=no
3747 fi
3748 rm -f conftest*
3749
3750 fi
3751
3752 if test $ac_cv_header_stdc = yes; then
3753   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3754   if test "$cross_compiling" = yes; then
3755   :
3756 else
3757   cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 #include <ctype.h>
3764 #if ((' ' & 0x0FF) == 0x020)
3765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3767 #else
3768 # define ISLOWER(c) \
3769                    (('a' <= (c) && (c) <= 'i') \
3770                      || ('j' <= (c) && (c) <= 'r') \
3771                      || ('s' <= (c) && (c) <= 'z'))
3772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3773 #endif
3774
3775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3776 int
3777 main ()
3778 {
3779   int i;
3780   for (i = 0; i < 256; i++)
3781     if (XOR (islower (i), ISLOWER (i))
3782         || toupper (i) != TOUPPER (i))
3783       exit(2);
3784   exit (0);
3785 }
3786 _ACEOF
3787 rm -f conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789   (eval $ac_link) 2>&5
3790   ac_status=$?
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; }; then
3798   :
3799 else
3800   echo "$as_me: program exited with status $ac_status" >&5
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804 ( exit $ac_status )
3805 ac_cv_header_stdc=no
3806 fi
3807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3808 fi
3809 fi
3810 fi
3811 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3812 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3813 if test $ac_cv_header_stdc = yes; then
3814
3815 cat >>confdefs.h <<\_ACEOF
3816 #define STDC_HEADERS 1
3817 _ACEOF
3818
3819 fi
3820
3821 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3832                   inttypes.h stdint.h unistd.h
3833 do
3834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835 echo "$as_me:$LINENO: checking for $ac_header" >&5
3836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 $ac_includes_default
3847
3848 #include <$ac_header>
3849 _ACEOF
3850 rm -f conftest.$ac_objext
3851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3852   (eval $ac_compile) 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } &&
3859          { ac_try='test -z "$ac_c_werror_flag"
3860                          || test ! -s conftest.err'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; } &&
3866          { ac_try='test -s conftest.$ac_objext'
3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868   (eval $ac_try) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; }; then
3872   eval "$as_ac_Header=yes"
3873 else
3874   echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 eval "$as_ac_Header=no"
3878 fi
3879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3880 fi
3881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3884   cat >>confdefs.h <<_ACEOF
3885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3886 _ACEOF
3887
3888 fi
3889
3890 done
3891
3892
3893 if test "${ac_cv_header_minix_config_h+set}" = set; then
3894   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3895 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3896 if test "${ac_cv_header_minix_config_h+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 fi
3899 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3900 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3901 else
3902   # Is the header compilable?
3903 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3904 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h.  */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h.  */
3911 $ac_includes_default
3912 #include <minix/config.h>
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3916   (eval $ac_compile) 2>conftest.er1
3917   ac_status=$?
3918   grep -v '^ *+' conftest.er1 >conftest.err
3919   rm -f conftest.er1
3920   cat conftest.err >&5
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); } &&
3923          { ac_try='test -z "$ac_c_werror_flag"
3924                          || test ! -s conftest.err'
3925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926   (eval $ac_try) 2>&5
3927   ac_status=$?
3928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929   (exit $ac_status); }; } &&
3930          { ac_try='test -s conftest.$ac_objext'
3931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932   (eval $ac_try) 2>&5
3933   ac_status=$?
3934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); }; }; then
3936   ac_header_compiler=yes
3937 else
3938   echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3940
3941 ac_header_compiler=no
3942 fi
3943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3945 echo "${ECHO_T}$ac_header_compiler" >&6
3946
3947 # Is the header present?
3948 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3949 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956 #include <minix/config.h>
3957 _ACEOF
3958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3960   ac_status=$?
3961   grep -v '^ *+' conftest.er1 >conftest.err
3962   rm -f conftest.er1
3963   cat conftest.err >&5
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); } >/dev/null; then
3966   if test -s conftest.err; then
3967     ac_cpp_err=$ac_c_preproc_warn_flag
3968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3969   else
3970     ac_cpp_err=
3971   fi
3972 else
3973   ac_cpp_err=yes
3974 fi
3975 if test -z "$ac_cpp_err"; then
3976   ac_header_preproc=yes
3977 else
3978   echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3980
3981   ac_header_preproc=no
3982 fi
3983 rm -f conftest.err conftest.$ac_ext
3984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3985 echo "${ECHO_T}$ac_header_preproc" >&6
3986
3987 # So?  What about this header?
3988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3989   yes:no: )
3990     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3991 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3992     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3993 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3994     ac_header_preproc=yes
3995     ;;
3996   no:yes:* )
3997     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3998 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3999     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4000 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4001     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4002 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4003     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4004 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4005     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4006 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4007     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4008 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4009     (
4010       cat <<\_ASBOX
4011 ## ------------------------------------------ ##
4012 ## Report this to the AC_PACKAGE_NAME lists.  ##
4013 ## ------------------------------------------ ##
4014 _ASBOX
4015     ) |
4016       sed "s/^/$as_me: WARNING:     /" >&2
4017     ;;
4018 esac
4019 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4020 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4021 if test "${ac_cv_header_minix_config_h+set}" = set; then
4022   echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024   ac_cv_header_minix_config_h=$ac_header_preproc
4025 fi
4026 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4027 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4028
4029 fi
4030 if test $ac_cv_header_minix_config_h = yes; then
4031   MINIX=yes
4032 else
4033   MINIX=
4034 fi
4035
4036
4037 if test "$MINIX" = yes; then
4038
4039 cat >>confdefs.h <<\_ACEOF
4040 #define _POSIX_SOURCE 1
4041 _ACEOF
4042
4043
4044 cat >>confdefs.h <<\_ACEOF
4045 #define _POSIX_1_SOURCE 2
4046 _ACEOF
4047
4048
4049 cat >>confdefs.h <<\_ACEOF
4050 #define _MINIX 1
4051 _ACEOF
4052
4053 fi
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4066 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4067 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h.  */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h.  */
4076
4077 #         define __EXTENSIONS__ 1
4078           $ac_includes_default
4079 int
4080 main ()
4081 {
4082
4083   ;
4084   return 0;
4085 }
4086 _ACEOF
4087 rm -f conftest.$ac_objext
4088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4089   (eval $ac_compile) 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } &&
4096          { ac_try='test -z "$ac_c_werror_flag"
4097                          || test ! -s conftest.err'
4098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099   (eval $ac_try) 2>&5
4100   ac_status=$?
4101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102   (exit $ac_status); }; } &&
4103          { ac_try='test -s conftest.$ac_objext'
4104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105   (eval $ac_try) 2>&5
4106   ac_status=$?
4107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108   (exit $ac_status); }; }; then
4109   ac_cv_safe_to_define___extensions__=yes
4110 else
4111   echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114 ac_cv_safe_to_define___extensions__=no
4115 fi
4116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4117 fi
4118 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4119 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4120   test $ac_cv_safe_to_define___extensions__ = yes &&
4121     cat >>confdefs.h <<\_ACEOF
4122 #define __EXTENSIONS__ 1
4123 _ACEOF
4124
4125   cat >>confdefs.h <<\_ACEOF
4126 #define _POSIX_PTHREAD_SEMANTICS 1
4127 _ACEOF
4128
4129   cat >>confdefs.h <<\_ACEOF
4130 #define _TANDEM_SOURCE 1
4131 _ACEOF
4132
4133
4134
4135
4136
4137
4138        # Check whether --enable-threads or --disable-threads was given.
4139 if test "${enable_threads+set}" = set; then
4140   enableval="$enable_threads"
4141   gl_use_threads=$enableval
4142 else
4143   case "$host_os" in
4144                             osf*) gl_use_threads=no ;;
4145        *)    gl_use_threads=yes ;;
4146      esac
4147
4148 fi;
4149   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
4150     # For using <pthread.h>:
4151     case "$host_os" in
4152       osf*)
4153         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
4154         # groks <pthread.h>. cc also understands the flag -pthread, but
4155         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
4156         # 2. putting a flag into CPPFLAGS that has an effect on the linker
4157         # causes the AC_TRY_LINK test below to succeed unexpectedly,
4158         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
4159         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
4160         ;;
4161     esac
4162     # Some systems optimize for single-threaded programs by default, and
4163     # need special flags to disable these optimizations. For example, the
4164     # definition of 'errno' in <errno.h>.
4165     case "$host_os" in
4166       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
4167       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
4168     esac
4169   fi
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4181 # for constant arguments.  Useless!
4182 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4183 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4184 if test "${ac_cv_working_alloca_h+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   cat >conftest.$ac_ext <<_ACEOF
4188 /* confdefs.h.  */
4189 _ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h.  */
4193 #include <alloca.h>
4194 int
4195 main ()
4196 {
4197 char *p = (char *) alloca (2 * sizeof (int));
4198   ;
4199   return 0;
4200 }
4201 _ACEOF
4202 rm -f conftest.$ac_objext conftest$ac_exeext
4203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4204   (eval $ac_link) 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } &&
4211          { ac_try='test -z "$ac_c_werror_flag"
4212                          || test ! -s conftest.err'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; } &&
4218          { ac_try='test -s conftest$ac_exeext'
4219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220   (eval $ac_try) 2>&5
4221   ac_status=$?
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); }; }; then
4224   ac_cv_working_alloca_h=yes
4225 else
4226   echo "$as_me: failed program was:" >&5
4227 sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_cv_working_alloca_h=no
4230 fi
4231 rm -f conftest.err conftest.$ac_objext \
4232       conftest$ac_exeext conftest.$ac_ext
4233 fi
4234 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4235 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4236 if test $ac_cv_working_alloca_h = yes; then
4237
4238 cat >>confdefs.h <<\_ACEOF
4239 #define HAVE_ALLOCA_H 1
4240 _ACEOF
4241
4242 fi
4243
4244 echo "$as_me:$LINENO: checking for alloca" >&5
4245 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4246 if test "${ac_cv_func_alloca_works+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   cat >conftest.$ac_ext <<_ACEOF
4250 /* confdefs.h.  */
4251 _ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h.  */
4255 #ifdef __GNUC__
4256 # define alloca __builtin_alloca
4257 #else
4258 # ifdef _MSC_VER
4259 #  include <malloc.h>
4260 #  define alloca _alloca
4261 # else
4262 #  if HAVE_ALLOCA_H
4263 #   include <alloca.h>
4264 #  else
4265 #   ifdef _AIX
4266  #pragma alloca
4267 #   else
4268 #    ifndef alloca /* predefined by HP cc +Olibcalls */
4269 char *alloca ();
4270 #    endif
4271 #   endif
4272 #  endif
4273 # endif
4274 #endif
4275
4276 int
4277 main ()
4278 {
4279 char *p = (char *) alloca (1);
4280   ;
4281   return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest.$ac_objext conftest$ac_exeext
4285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286   (eval $ac_link) 2>conftest.er1
4287   ac_status=$?
4288   grep -v '^ *+' conftest.er1 >conftest.err
4289   rm -f conftest.er1
4290   cat conftest.err >&5
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); } &&
4293          { ac_try='test -z "$ac_c_werror_flag"
4294                          || test ! -s conftest.err'
4295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296   (eval $ac_try) 2>&5
4297   ac_status=$?
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); }; } &&
4300          { ac_try='test -s conftest$ac_exeext'
4301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302   (eval $ac_try) 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); }; }; then
4306   ac_cv_func_alloca_works=yes
4307 else
4308   echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4310
4311 ac_cv_func_alloca_works=no
4312 fi
4313 rm -f conftest.err conftest.$ac_objext \
4314       conftest$ac_exeext conftest.$ac_ext
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4317 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4318
4319 if test $ac_cv_func_alloca_works = yes; then
4320
4321 cat >>confdefs.h <<\_ACEOF
4322 #define HAVE_ALLOCA 1
4323 _ACEOF
4324
4325 else
4326   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4327 # that cause trouble.  Some versions do not even contain alloca or
4328 # contain a buggy version.  If you still want to use their alloca,
4329 # use ar to extract alloca.o from them instead of compiling alloca.c.
4330
4331 ALLOCA=alloca.$ac_objext
4332
4333 cat >>confdefs.h <<\_ACEOF
4334 #define C_ALLOCA 1
4335 _ACEOF
4336
4337
4338 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4339 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4340 if test "${ac_cv_os_cray+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h.  */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h.  */
4349 #if defined(CRAY) && ! defined(CRAY2)
4350 webecray
4351 #else
4352 wenotbecray
4353 #endif
4354
4355 _ACEOF
4356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357   $EGREP "webecray" >/dev/null 2>&1; then
4358   ac_cv_os_cray=yes
4359 else
4360   ac_cv_os_cray=no
4361 fi
4362 rm -f conftest*
4363
4364 fi
4365 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4366 echo "${ECHO_T}$ac_cv_os_cray" >&6
4367 if test $ac_cv_os_cray = yes; then
4368   for ac_func in _getb67 GETB67 getb67; do
4369     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4370 echo "$as_me:$LINENO: checking for $ac_func" >&5
4371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4372 if eval "test \"\${$as_ac_var+set}\" = set"; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4383 #define $ac_func innocuous_$ac_func
4384
4385 /* System header to define __stub macros and hopefully few prototypes,
4386     which can conflict with char $ac_func (); below.
4387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4388     <limits.h> exists even on freestanding compilers.  */
4389
4390 #ifdef __STDC__
4391 # include <limits.h>
4392 #else
4393 # include <assert.h>
4394 #endif
4395
4396 #undef $ac_func
4397
4398 /* Override any gcc2 internal prototype to avoid an error.  */
4399 #ifdef __cplusplus
4400 extern "C"
4401 {
4402 #endif
4403 /* We use char because int might match the return type of a gcc2
4404    builtin and then its argument prototype would still apply.  */
4405 char $ac_func ();
4406 /* The GNU C library defines this for functions which it implements
4407     to always fail with ENOSYS.  Some functions are actually named
4408     something starting with __ and the normal name is an alias.  */
4409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4410 choke me
4411 #else
4412 char (*f) () = $ac_func;
4413 #endif
4414 #ifdef __cplusplus
4415 }
4416 #endif
4417
4418 int
4419 main ()
4420 {
4421 return f != $ac_func;
4422   ;
4423   return 0;
4424 }
4425 _ACEOF
4426 rm -f conftest.$ac_objext conftest$ac_exeext
4427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4428   (eval $ac_link) 2>conftest.er1
4429   ac_status=$?
4430   grep -v '^ *+' conftest.er1 >conftest.err
4431   rm -f conftest.er1
4432   cat conftest.err >&5
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); } &&
4435          { ac_try='test -z "$ac_c_werror_flag"
4436                          || test ! -s conftest.err'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; } &&
4442          { ac_try='test -s conftest$ac_exeext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   eval "$as_ac_var=yes"
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 eval "$as_ac_var=no"
4454 fi
4455 rm -f conftest.err conftest.$ac_objext \
4456       conftest$ac_exeext conftest.$ac_ext
4457 fi
4458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4460 if test `eval echo '${'$as_ac_var'}'` = yes; then
4461
4462 cat >>confdefs.h <<_ACEOF
4463 #define CRAY_STACKSEG_END $ac_func
4464 _ACEOF
4465
4466     break
4467 fi
4468
4469   done
4470 fi
4471
4472 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4473 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4474 if test "${ac_cv_c_stack_direction+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test "$cross_compiling" = yes; then
4478   ac_cv_c_stack_direction=0
4479 else
4480   cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h.  */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h.  */
4486 int
4487 find_stack_direction ()
4488 {
4489   static char *addr = 0;
4490   auto char dummy;
4491   if (addr == 0)
4492     {
4493       addr = &dummy;
4494       return find_stack_direction ();
4495     }
4496   else
4497     return (&dummy > addr) ? 1 : -1;
4498 }
4499
4500 int
4501 main ()
4502 {
4503   exit (find_stack_direction () < 0);
4504 }
4505 _ACEOF
4506 rm -f conftest$ac_exeext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4508   (eval $ac_link) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513   (eval $ac_try) 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; }; then
4517   ac_cv_c_stack_direction=1
4518 else
4519   echo "$as_me: program exited with status $ac_status" >&5
4520 echo "$as_me: failed program was:" >&5
4521 sed 's/^/| /' conftest.$ac_ext >&5
4522
4523 ( exit $ac_status )
4524 ac_cv_c_stack_direction=-1
4525 fi
4526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4527 fi
4528 fi
4529 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4530 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4531
4532 cat >>confdefs.h <<_ACEOF
4533 #define STACK_DIRECTION $ac_cv_c_stack_direction
4534 _ACEOF
4535
4536
4537 fi
4538
4539
4540
4541
4542
4543
4544 for ac_header in $gl_header_list
4545 do
4546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548   echo "$as_me:$LINENO: checking for $ac_header" >&5
4549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 fi
4553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4555 else
4556   # Is the header compilable?
4557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565 $ac_includes_default
4566 #include <$ac_header>
4567 _ACEOF
4568 rm -f conftest.$ac_objext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570   (eval $ac_compile) 2>conftest.er1
4571   ac_status=$?
4572   grep -v '^ *+' conftest.er1 >conftest.err
4573   rm -f conftest.er1
4574   cat conftest.err >&5
4575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576   (exit $ac_status); } &&
4577          { ac_try='test -z "$ac_c_werror_flag"
4578                          || test ! -s conftest.err'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; } &&
4584          { ac_try='test -s conftest.$ac_objext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   ac_header_compiler=yes
4591 else
4592   echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 ac_header_compiler=no
4596 fi
4597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4599 echo "${ECHO_T}$ac_header_compiler" >&6
4600
4601 # Is the header present?
4602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4604 cat >conftest.$ac_ext <<_ACEOF
4605 /* confdefs.h.  */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h.  */
4610 #include <$ac_header>
4611 _ACEOF
4612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4614   ac_status=$?
4615   grep -v '^ *+' conftest.er1 >conftest.err
4616   rm -f conftest.er1
4617   cat conftest.err >&5
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } >/dev/null; then
4620   if test -s conftest.err; then
4621     ac_cpp_err=$ac_c_preproc_warn_flag
4622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4623   else
4624     ac_cpp_err=
4625   fi
4626 else
4627   ac_cpp_err=yes
4628 fi
4629 if test -z "$ac_cpp_err"; then
4630   ac_header_preproc=yes
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635   ac_header_preproc=no
4636 fi
4637 rm -f conftest.err conftest.$ac_ext
4638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4639 echo "${ECHO_T}$ac_header_preproc" >&6
4640
4641 # So?  What about this header?
4642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4643   yes:no: )
4644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4648     ac_header_preproc=yes
4649     ;;
4650   no:yes:* )
4651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4663     (
4664       cat <<\_ASBOX
4665 ## ------------------------------------------ ##
4666 ## Report this to the AC_PACKAGE_NAME lists.  ##
4667 ## ------------------------------------------ ##
4668 _ASBOX
4669     ) |
4670       sed "s/^/$as_me: WARNING:     /" >&2
4671     ;;
4672 esac
4673 echo "$as_me:$LINENO: checking for $ac_header" >&5
4674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   eval "$as_ac_Header=\$ac_header_preproc"
4679 fi
4680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4682
4683 fi
4684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4685   cat >>confdefs.h <<_ACEOF
4686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 _ACEOF
4688
4689 fi
4690
4691 done
4692
4693
4694
4695
4696
4697
4698 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4699 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4700 if test "${ac_cv_c_restrict+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   ac_cv_c_restrict=no
4704    # Try the official restrict keyword, then gcc's __restrict, and
4705    # the less common variants.
4706    for ac_kw in restrict __restrict __restrict__ _Restrict; do
4707      cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h.  */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h.  */
4713 float * $ac_kw x;
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717   (eval $ac_compile) 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_c_werror_flag"
4725                          || test ! -s conftest.err'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; } &&
4731          { ac_try='test -s conftest.$ac_objext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_cv_c_restrict=$ac_kw; break
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 fi
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744    done
4745
4746 fi
4747 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4748 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4749  case $ac_cv_c_restrict in
4750    restrict) ;;
4751    no)
4752 cat >>confdefs.h <<\_ACEOF
4753 #define restrict
4754 _ACEOF
4755  ;;
4756    *)  cat >>confdefs.h <<_ACEOF
4757 #define restrict $ac_cv_c_restrict
4758 _ACEOF
4759  ;;
4760  esac
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770   :
4771
4772
4773
4774
4775
4776   if test $ac_cv_header_sys_socket_h = yes; then
4777     SYS_SOCKET_H=''
4778   else
4779
4780
4781 for ac_header in winsock2.h ws2tcpip.h
4782 do
4783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4785   echo "$as_me:$LINENO: checking for $ac_header" >&5
4786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 fi
4790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4792 else
4793   # Is the header compilable?
4794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 $ac_includes_default
4803 #include <$ac_header>
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807   (eval $ac_compile) 2>conftest.er1
4808   ac_status=$?
4809   grep -v '^ *+' conftest.er1 >conftest.err
4810   rm -f conftest.er1
4811   cat conftest.err >&5
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } &&
4814          { ac_try='test -z "$ac_c_werror_flag"
4815                          || test ! -s conftest.err'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; } &&
4821          { ac_try='test -s conftest.$ac_objext'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   ac_header_compiler=yes
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 ac_header_compiler=no
4833 fi
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4836 echo "${ECHO_T}$ac_header_compiler" >&6
4837
4838 # Is the header present?
4839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847 #include <$ac_header>
4848 _ACEOF
4849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4850   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4851   ac_status=$?
4852   grep -v '^ *+' conftest.er1 >conftest.err
4853   rm -f conftest.er1
4854   cat conftest.err >&5
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); } >/dev/null; then
4857   if test -s conftest.err; then
4858     ac_cpp_err=$ac_c_preproc_warn_flag
4859     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4860   else
4861     ac_cpp_err=
4862   fi
4863 else
4864   ac_cpp_err=yes
4865 fi
4866 if test -z "$ac_cpp_err"; then
4867   ac_header_preproc=yes
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872   ac_header_preproc=no
4873 fi
4874 rm -f conftest.err conftest.$ac_ext
4875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4876 echo "${ECHO_T}$ac_header_preproc" >&6
4877
4878 # So?  What about this header?
4879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4880   yes:no: )
4881     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4885     ac_header_preproc=yes
4886     ;;
4887   no:yes:* )
4888     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4890     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4891 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4892     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4894     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4895 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4898     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4900     (
4901       cat <<\_ASBOX
4902 ## ------------------------------------------ ##
4903 ## Report this to the AC_PACKAGE_NAME lists.  ##
4904 ## ------------------------------------------ ##
4905 _ASBOX
4906     ) |
4907       sed "s/^/$as_me: WARNING:     /" >&2
4908     ;;
4909 esac
4910 echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4913   echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915   eval "$as_ac_Header=\$ac_header_preproc"
4916 fi
4917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4919
4920 fi
4921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4922   cat >>confdefs.h <<_ACEOF
4923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4924 _ACEOF
4925
4926 fi
4927
4928 done
4929
4930     SYS_SOCKET_H='sys/socket.h'
4931   fi
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943   :
4944
4945
4946
4947
4948
4949
4950   echo "$as_me:$LINENO: checking for IPv4 sockets" >&5
4951 echo $ECHO_N "checking for IPv4 sockets... $ECHO_C" >&6
4952   if test "${gl_cv_socket_ipv4+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h.  */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h.  */
4961 #include <sys/types.h>
4962 #ifdef HAVE_SYS_SOCKET_H
4963 #include <sys/socket.h>
4964 #endif
4965 #ifdef HAVE_NETINET_IN_H
4966 #include <netinet/in.h>
4967 #endif
4968 #ifdef HAVE_WINSOCK2_H
4969 #include <winsock2.h>
4970 #endif
4971 int
4972 main ()
4973 {
4974 int x = AF_INET; struct in_addr y; struct sockaddr_in z;
4975  if (&x && &y && &z) return 0;
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982   (eval $ac_compile) 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989          { ac_try='test -z "$ac_c_werror_flag"
4990                          || test ! -s conftest.err'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; } &&
4996          { ac_try='test -s conftest.$ac_objext'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; }; then
5002   gl_cv_socket_ipv4=yes
5003 else
5004   echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 gl_cv_socket_ipv4=no
5008 fi
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010 fi
5011
5012   echo "$as_me:$LINENO: result: $gl_cv_socket_ipv4" >&5
5013 echo "${ECHO_T}$gl_cv_socket_ipv4" >&6
5014   if test $gl_cv_socket_ipv4 = yes; then
5015
5016 cat >>confdefs.h <<\_ACEOF
5017 #define HAVE_IPV4 1
5018 _ACEOF
5019
5020   fi
5021
5022   echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
5023 echo $ECHO_N "checking for IPv6 sockets... $ECHO_C" >&6
5024   if test "${gl_cv_socket_ipv6+set}" = set; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   cat >conftest.$ac_ext <<_ACEOF
5028 /* confdefs.h.  */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h.  */
5033 #include <sys/types.h>
5034 #ifdef HAVE_SYS_SOCKET_H
5035 #include <sys/socket.h>
5036 #endif
5037 #ifdef HAVE_NETINET_IN_H
5038 #include <netinet/in.h>
5039 #endif
5040 #ifdef HAVE_WINSOCK2_H
5041 #include <winsock2.h>
5042 #endif
5043 int
5044 main ()
5045 {
5046 int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
5047  if (&x && &y && &z) return 0;
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } &&
5061          { ac_try='test -z "$ac_c_werror_flag"
5062                          || test ! -s conftest.err'
5063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5064   (eval $ac_try) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   gl_cv_socket_ipv6=yes
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 gl_cv_socket_ipv6=no
5080 fi
5081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082 fi
5083
5084   echo "$as_me:$LINENO: result: $gl_cv_socket_ipv6" >&5
5085 echo "${ECHO_T}$gl_cv_socket_ipv6" >&6
5086   if test $gl_cv_socket_ipv6 = yes; then
5087
5088 cat >>confdefs.h <<\_ACEOF
5089 #define HAVE_IPV6 1
5090 _ACEOF
5091
5092   fi
5093
5094 echo "$as_me:$LINENO: checking for inline" >&5
5095 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5096 if test "${ac_cv_c_inline+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   ac_cv_c_inline=no
5100 for ac_kw in inline __inline__ __inline; do
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #ifndef __cplusplus
5108 typedef int foo_t;
5109 static $ac_kw foo_t static_foo () {return 0; }
5110 $ac_kw foo_t foo () {return 0; }
5111 #endif
5112
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5116   (eval $ac_compile) 2>conftest.er1
5117   ac_status=$?
5118   grep -v '^ *+' conftest.er1 >conftest.err
5119   rm -f conftest.er1
5120   cat conftest.err >&5
5121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122   (exit $ac_status); } &&
5123          { ac_try='test -z "$ac_c_werror_flag"
5124                          || test ! -s conftest.err'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; } &&
5130          { ac_try='test -s conftest.$ac_objext'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; }; then
5136   ac_cv_c_inline=$ac_kw; break
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 fi
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143 done
5144
5145 fi
5146 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5147 echo "${ECHO_T}$ac_cv_c_inline" >&6
5148
5149
5150 case $ac_cv_c_inline in
5151   inline | yes) ;;
5152   *)
5153     case $ac_cv_c_inline in
5154       no) ac_val=;;
5155       *) ac_val=$ac_cv_c_inline;;
5156     esac
5157     cat >>confdefs.h <<_ACEOF
5158 #ifndef __cplusplus
5159 #define inline $ac_val
5160 #endif
5161 _ACEOF
5162     ;;
5163 esac
5164
5165
5166
5167
5168
5169
5170
5171
5172       if test "X$prefix" = "XNONE"; then
5173     acl_final_prefix="$ac_default_prefix"
5174   else
5175     acl_final_prefix="$prefix"
5176   fi
5177   if test "X$exec_prefix" = "XNONE"; then
5178     acl_final_exec_prefix='${prefix}'
5179   else
5180     acl_final_exec_prefix="$exec_prefix"
5181   fi
5182   acl_save_prefix="$prefix"
5183   prefix="$acl_final_prefix"
5184   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5185   prefix="$acl_save_prefix"
5186
5187
5188 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5189 if test "${with_gnu_ld+set}" = set; then
5190   withval="$with_gnu_ld"
5191   test "$withval" = no || with_gnu_ld=yes
5192 else
5193   with_gnu_ld=no
5194 fi;
5195 # Prepare PATH_SEPARATOR.
5196 # The user is always right.
5197 if test "${PATH_SEPARATOR+set}" != set; then
5198   echo "#! /bin/sh" >conf$$.sh
5199   echo  "exit 0"   >>conf$$.sh
5200   chmod +x conf$$.sh
5201   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5202     PATH_SEPARATOR=';'
5203   else
5204     PATH_SEPARATOR=:
5205   fi
5206   rm -f conf$$.sh
5207 fi
5208 ac_prog=ld
5209 if test "$GCC" = yes; then
5210   # Check if gcc -print-prog-name=ld gives a path.
5211   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5212 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5213   case $host in
5214   *-*-mingw*)
5215     # gcc leaves a trailing carriage return which upsets mingw
5216     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5217   *)
5218     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5219   esac
5220   case $ac_prog in
5221     # Accept absolute paths.
5222     [\\/]* | [A-Za-z]:[\\/]*)
5223       re_direlt='/[^/][^/]*/\.\./'
5224       # Canonicalize the path of ld
5225       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5226       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5227         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5228       done
5229       test -z "$LD" && LD="$ac_prog"
5230       ;;
5231   "")
5232     # If it fails, then pretend we aren't using GCC.
5233     ac_prog=ld
5234     ;;
5235   *)
5236     # If it is relative, then search for the first ld in PATH.
5237     with_gnu_ld=unknown
5238     ;;
5239   esac
5240 elif test "$with_gnu_ld" = yes; then
5241   echo "$as_me:$LINENO: checking for GNU ld" >&5
5242 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5243 else
5244   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5245 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5246 fi
5247 if test "${acl_cv_path_LD+set}" = set; then
5248   echo $ECHO_N "(cached) $ECHO_C" >&6
5249 else
5250   if test -z "$LD"; then
5251   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5252   for ac_dir in $PATH; do
5253     test -z "$ac_dir" && ac_dir=.
5254     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5255       acl_cv_path_LD="$ac_dir/$ac_prog"
5256       # Check to see if the program is GNU ld.  I'd rather use --version,
5257       # but apparently some GNU ld's only accept -v.
5258       # Break only if it was the GNU/non-GNU ld that we prefer.
5259       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5260       *GNU* | *'with BFD'*)
5261         test "$with_gnu_ld" != no && break ;;
5262       *)
5263         test "$with_gnu_ld" != yes && break ;;
5264       esac
5265     fi
5266   done
5267   IFS="$ac_save_ifs"
5268 else
5269   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5270 fi
5271 fi
5272
5273 LD="$acl_cv_path_LD"
5274 if test -n "$LD"; then
5275   echo "$as_me:$LINENO: result: $LD" >&5
5276 echo "${ECHO_T}$LD" >&6
5277 else
5278   echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5283    { (exit 1); exit 1; }; }
5284 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5286 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5290 case `$LD -v 2>&1 </dev/null` in
5291 *GNU* | *'with BFD'*)
5292   acl_cv_prog_gnu_ld=yes ;;
5293 *)
5294   acl_cv_prog_gnu_ld=no ;;
5295 esac
5296 fi
5297 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5298 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5299 with_gnu_ld=$acl_cv_prog_gnu_ld
5300
5301
5302
5303
5304                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5305 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5306 if test "${acl_cv_rpath+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309
5310     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5311     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5312     . ./conftest.sh
5313     rm -f ./conftest.sh
5314     acl_cv_rpath=done
5315
5316 fi
5317 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5318 echo "${ECHO_T}$acl_cv_rpath" >&6
5319   wl="$acl_cv_wl"
5320   acl_libext="$acl_cv_libext"
5321   acl_shlibext="$acl_cv_shlibext"
5322   acl_libname_spec="$acl_cv_libname_spec"
5323   acl_library_names_spec="$acl_cv_library_names_spec"
5324   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5325   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5326   acl_hardcode_direct="$acl_cv_hardcode_direct"
5327   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5328     # Check whether --enable-rpath or --disable-rpath was given.
5329 if test "${enable_rpath+set}" = set; then
5330   enableval="$enable_rpath"
5331   :
5332 else
5333   enable_rpath=yes
5334 fi;
5335
5336
5337                   acl_libdirstem=lib
5338   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5339   if test -n "$searchpath"; then
5340     acl_save_IFS="${IFS=        }"; IFS=":"
5341     for searchdir in $searchpath; do
5342       if test -d "$searchdir"; then
5343         case "$searchdir" in
5344           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5345           *) searchdir=`cd "$searchdir" && pwd`
5346              case "$searchdir" in
5347                */lib64 ) acl_libdirstem=lib64 ;;
5348              esac ;;
5349         esac
5350       fi
5351     done
5352     IFS="$acl_save_IFS"
5353   fi
5354
5355
5356
5357   gl_threads_api=none
5358   LIBTHREAD=
5359   LTLIBTHREAD=
5360   LIBMULTITHREAD=
5361   LTLIBMULTITHREAD=
5362   if test "$gl_use_threads" != no; then
5363         echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
5364 echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6
5365     gl_have_weak=no
5366     cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 extern void xyzzy ();
5373 #pragma weak xyzzy
5374 int
5375 main ()
5376 {
5377 xyzzy();
5378   ;
5379   return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext conftest$ac_exeext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384   (eval $ac_link) 2>conftest.er1
5385   ac_status=$?
5386   grep -v '^ *+' conftest.er1 >conftest.err
5387   rm -f conftest.er1
5388   cat conftest.err >&5
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } &&
5391          { ac_try='test -z "$ac_c_werror_flag"
5392                          || test ! -s conftest.err'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; } &&
5398          { ac_try='test -s conftest$ac_exeext'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; }; then
5404   gl_have_weak=yes
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5408
5409 fi
5410 rm -f conftest.err conftest.$ac_objext \
5411       conftest$ac_exeext conftest.$ac_ext
5412     echo "$as_me:$LINENO: result: $gl_have_weak" >&5
5413 echo "${ECHO_T}$gl_have_weak" >&6
5414     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
5415       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
5416       # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
5417       if test "${ac_cv_header_pthread_h+set}" = set; then
5418   echo "$as_me:$LINENO: checking for pthread.h" >&5
5419 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5420 if test "${ac_cv_header_pthread_h+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 fi
5423 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5424 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5425 else
5426   # Is the header compilable?
5427 echo "$as_me:$LINENO: checking pthread.h usability" >&5
5428 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435 $ac_includes_default
5436 #include <pthread.h>
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440   (eval $ac_compile) 2>conftest.er1
5441   ac_status=$?
5442   grep -v '^ *+' conftest.er1 >conftest.err
5443   rm -f conftest.er1
5444   cat conftest.err >&5
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); } &&
5447          { ac_try='test -z "$ac_c_werror_flag"
5448                          || test ! -s conftest.err'
5449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450   (eval $ac_try) 2>&5
5451   ac_status=$?
5452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453   (exit $ac_status); }; } &&
5454          { ac_try='test -s conftest.$ac_objext'
5455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456   (eval $ac_try) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); }; }; then
5460   ac_header_compiler=yes
5461 else
5462   echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_header_compiler=no
5466 fi
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5469 echo "${ECHO_T}$ac_header_compiler" >&6
5470
5471 # Is the header present?
5472 echo "$as_me:$LINENO: checking pthread.h presence" >&5
5473 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h.  */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h.  */
5480 #include <pthread.h>
5481 _ACEOF
5482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5483   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } >/dev/null; then
5490   if test -s conftest.err; then
5491     ac_cpp_err=$ac_c_preproc_warn_flag
5492     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5493   else
5494     ac_cpp_err=
5495   fi
5496 else
5497   ac_cpp_err=yes
5498 fi
5499 if test -z "$ac_cpp_err"; then
5500   ac_header_preproc=yes
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505   ac_header_preproc=no
5506 fi
5507 rm -f conftest.err conftest.$ac_ext
5508 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5509 echo "${ECHO_T}$ac_header_preproc" >&6
5510
5511 # So?  What about this header?
5512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5513   yes:no: )
5514     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
5515 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5516     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
5517 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
5518     ac_header_preproc=yes
5519     ;;
5520   no:yes:* )
5521     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
5522 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
5524 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
5525     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
5526 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
5527     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
5528 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5529     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
5530 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
5531     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
5532 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
5533     (
5534       cat <<\_ASBOX
5535 ## ------------------------------------------ ##
5536 ## Report this to the AC_PACKAGE_NAME lists.  ##
5537 ## ------------------------------------------ ##
5538 _ASBOX
5539     ) |
5540       sed "s/^/$as_me: WARNING:     /" >&2
5541     ;;
5542 esac
5543 echo "$as_me:$LINENO: checking for pthread.h" >&5
5544 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
5545 if test "${ac_cv_header_pthread_h+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   ac_cv_header_pthread_h=$ac_header_preproc
5549 fi
5550 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
5551 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
5552
5553 fi
5554 if test $ac_cv_header_pthread_h = yes; then
5555   gl_have_pthread_h=yes
5556 else
5557   gl_have_pthread_h=no
5558 fi
5559
5560
5561       if test "$gl_have_pthread_h" = yes; then
5562         # Other possible tests:
5563         #   -lpthreads (FSU threads, PCthreads)
5564         #   -lgthreads
5565         gl_have_pthread=
5566         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
5567         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
5568         # the second one only in libpthread, and lock.c needs it.
5569         cat >conftest.$ac_ext <<_ACEOF
5570 /* confdefs.h.  */
5571 _ACEOF
5572 cat confdefs.h >>conftest.$ac_ext
5573 cat >>conftest.$ac_ext <<_ACEOF
5574 /* end confdefs.h.  */
5575 #include <pthread.h>
5576 int
5577 main ()
5578 {
5579 pthread_mutex_lock((pthread_mutex_t*)0);
5580            pthread_mutexattr_init((pthread_mutexattr_t*)0);
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest.$ac_objext conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587   (eval $ac_link) 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } &&
5594          { ac_try='test -z "$ac_c_werror_flag"
5595                          || test ! -s conftest.err'
5596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597   (eval $ac_try) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; } &&
5601          { ac_try='test -s conftest$ac_exeext'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; }; then
5607   gl_have_pthread=yes
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612 fi
5613 rm -f conftest.err conftest.$ac_objext \
5614       conftest$ac_exeext conftest.$ac_ext
5615         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
5616         # since it is defined as a macro on OSF/1.)
5617         if test -n "$gl_have_pthread"; then
5618           # The program links fine without libpthread. But it may actually
5619           # need to link with libpthread in order to create multiple threads.
5620           echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
5621 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6
5622 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   ac_check_lib_save_LIBS=$LIBS
5626 LIBS="-lpthread  $LIBS"
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h.  */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h.  */
5633
5634 /* Override any gcc2 internal prototype to avoid an error.  */
5635 #ifdef __cplusplus
5636 extern "C"
5637 #endif
5638 /* We use char because int might match the return type of a gcc2
5639    builtin and then its argument prototype would still apply.  */
5640 char pthread_kill ();
5641 int
5642 main ()
5643 {
5644 pthread_kill ();
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651   (eval $ac_link) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; } &&
5665          { ac_try='test -s conftest$ac_exeext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_lib_pthread_pthread_kill=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_lib_pthread_pthread_kill=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext \
5679       conftest$ac_exeext conftest.$ac_ext
5680 LIBS=$ac_check_lib_save_LIBS
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
5683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6
5684 if test $ac_cv_lib_pthread_pthread_kill = yes; then
5685   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5686              # On Solaris and HP-UX, most pthread functions exist also in libc.
5687              # Therefore pthread_in_use() needs to actually try to create a
5688              # thread: pthread_create from libc will fail, whereas
5689              # pthread_create will actually create a thread.
5690              case "$host_os" in
5691                solaris* | hpux*)
5692
5693 cat >>confdefs.h <<\_ACEOF
5694 #define PTHREAD_IN_USE_DETECTION_HARD 1
5695 _ACEOF
5696
5697              esac
5698
5699 fi
5700
5701         else
5702           # Some library is needed. Try libpthread and libc_r.
5703           echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
5704 echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6
5705 if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   ac_check_lib_save_LIBS=$LIBS
5709 LIBS="-lpthread  $LIBS"
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716
5717 /* Override any gcc2 internal prototype to avoid an error.  */
5718 #ifdef __cplusplus
5719 extern "C"
5720 #endif
5721 /* We use char because int might match the return type of a gcc2
5722    builtin and then its argument prototype would still apply.  */
5723 char pthread_kill ();
5724 int
5725 main ()
5726 {
5727 pthread_kill ();
5728   ;
5729   return 0;
5730 }
5731 _ACEOF
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734   (eval $ac_link) 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } &&
5741          { ac_try='test -z "$ac_c_werror_flag"
5742                          || test ! -s conftest.err'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; } &&
5748          { ac_try='test -s conftest$ac_exeext'
5749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750   (eval $ac_try) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; }; then
5754   ac_cv_lib_pthread_pthread_kill=yes
5755 else
5756   echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5758
5759 ac_cv_lib_pthread_pthread_kill=no
5760 fi
5761 rm -f conftest.err conftest.$ac_objext \
5762       conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5764 fi
5765 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
5766 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6
5767 if test $ac_cv_lib_pthread_pthread_kill = yes; then
5768   gl_have_pthread=yes
5769              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
5770              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
5771 fi
5772
5773           if test -z "$gl_have_pthread"; then
5774             # For FreeBSD 4.
5775             echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
5776 echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6
5777 if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
5778   echo $ECHO_N "(cached) $ECHO_C" >&6
5779 else
5780   ac_check_lib_save_LIBS=$LIBS
5781 LIBS="-lc_r  $LIBS"
5782 cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788
5789 /* Override any gcc2 internal prototype to avoid an error.  */
5790 #ifdef __cplusplus
5791 extern "C"
5792 #endif
5793 /* We use char because int might match the return type of a gcc2
5794    builtin and then its argument prototype would still apply.  */
5795 char pthread_kill ();
5796 int
5797 main ()
5798 {
5799 pthread_kill ();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   ac_cv_lib_c_r_pthread_kill=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 ac_cv_lib_c_r_pthread_kill=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835 LIBS=$ac_check_lib_save_LIBS
5836 fi
5837 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
5838 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6
5839 if test $ac_cv_lib_c_r_pthread_kill = yes; then
5840   gl_have_pthread=yes
5841                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
5842                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
5843 fi
5844
5845           fi
5846         fi
5847         if test -n "$gl_have_pthread"; then
5848           gl_threads_api=posix
5849
5850 cat >>confdefs.h <<\_ACEOF
5851 #define USE_POSIX_THREADS 1
5852 _ACEOF
5853
5854           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
5855             if test $gl_have_weak = yes; then
5856
5857 cat >>confdefs.h <<\_ACEOF
5858 #define USE_POSIX_THREADS_WEAK 1
5859 _ACEOF
5860
5861               LIBTHREAD=
5862               LTLIBTHREAD=
5863             fi
5864           fi
5865           # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
5866           # pthread_rwlock_* functions.
5867           echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
5868 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
5869 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h.  */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h.  */
5878 #include <pthread.h>
5879
5880 int
5881 main ()
5882 {
5883 if ((pthread_rwlock_t *) 0)
5884   return 0;
5885 if (sizeof (pthread_rwlock_t))
5886   return 0;
5887   ;
5888   return 0;
5889 }
5890 _ACEOF
5891 rm -f conftest.$ac_objext
5892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893   (eval $ac_compile) 2>conftest.er1
5894   ac_status=$?
5895   grep -v '^ *+' conftest.er1 >conftest.err
5896   rm -f conftest.er1
5897   cat conftest.err >&5
5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); } &&
5900          { ac_try='test -z "$ac_c_werror_flag"
5901                          || test ! -s conftest.err'
5902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903   (eval $ac_try) 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }; } &&
5907          { ac_try='test -s conftest.$ac_objext'
5908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909   (eval $ac_try) 2>&5
5910   ac_status=$?
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); }; }; then
5913   ac_cv_type_pthread_rwlock_t=yes
5914 else
5915   echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918 ac_cv_type_pthread_rwlock_t=no
5919 fi
5920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
5923 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
5924 if test $ac_cv_type_pthread_rwlock_t = yes; then
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define HAVE_PTHREAD_RWLOCK 1
5928 _ACEOF
5929
5930 fi
5931
5932           # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
5933           cat >conftest.$ac_ext <<_ACEOF
5934 /* confdefs.h.  */
5935 _ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h.  */
5939 #include <pthread.h>
5940 int
5941 main ()
5942 {
5943 #if __FreeBSD__ == 4
5944 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
5945 #else
5946 int x = (int)PTHREAD_MUTEX_RECURSIVE;
5947 return !x;
5948 #endif
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955   (eval $ac_compile) 2>conftest.er1
5956   ac_status=$?
5957   grep -v '^ *+' conftest.er1 >conftest.err
5958   rm -f conftest.er1
5959   cat conftest.err >&5
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); } &&
5962          { ac_try='test -z "$ac_c_werror_flag"
5963                          || test ! -s conftest.err'
5964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5965   (eval $ac_try) 2>&5
5966   ac_status=$?
5967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); }; } &&
5969          { ac_try='test -s conftest.$ac_objext'
5970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5971   (eval $ac_try) 2>&5
5972   ac_status=$?
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); }; }; then
5975
5976 cat >>confdefs.h <<\_ACEOF
5977 #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
5978 _ACEOF
5979
5980 else
5981   echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 fi
5985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5986         fi
5987       fi
5988     fi
5989     if test -z "$gl_have_pthread"; then
5990       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
5991         gl_have_solaristhread=
5992         gl_save_LIBS="$LIBS"
5993         LIBS="$LIBS -lthread"
5994         cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000 #include <thread.h>
6001 #include <synch.h>
6002 int
6003 main ()
6004 {
6005 thr_self();
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6012   (eval $ac_link) 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } &&
6019          { ac_try='test -z "$ac_c_werror_flag"
6020                          || test ! -s conftest.err'
6021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022   (eval $ac_try) 2>&5
6023   ac_status=$?
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); }; } &&
6026          { ac_try='test -s conftest$ac_exeext'
6027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6028   (eval $ac_try) 2>&5
6029   ac_status=$?
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); }; }; then
6032   gl_have_solaristhread=yes
6033 else
6034   echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6036
6037 fi
6038 rm -f conftest.err conftest.$ac_objext \
6039       conftest$ac_exeext conftest.$ac_ext
6040         LIBS="$gl_save_LIBS"
6041         if test -n "$gl_have_solaristhread"; then
6042           gl_threads_api=solaris
6043           LIBTHREAD=-lthread
6044           LTLIBTHREAD=-lthread
6045           LIBMULTITHREAD="$LIBTHREAD"
6046           LTLIBMULTITHREAD="$LTLIBTHREAD"
6047
6048 cat >>confdefs.h <<\_ACEOF
6049 #define USE_SOLARIS_THREADS 1
6050 _ACEOF
6051
6052           if test $gl_have_weak = yes; then
6053
6054 cat >>confdefs.h <<\_ACEOF
6055 #define USE_SOLARIS_THREADS_WEAK 1
6056 _ACEOF
6057
6058             LIBTHREAD=
6059             LTLIBTHREAD=
6060           fi
6061         fi
6062       fi
6063     fi
6064     if test "$gl_use_threads" = pth; then
6065       gl_save_CPPFLAGS="$CPPFLAGS"
6066
6067
6068
6069
6070
6071   echo "$as_me:$LINENO: checking how to link with libpth" >&5
6072 echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6
6073 if test "${ac_cv_libpth_libs+set}" = set; then
6074   echo $ECHO_N "(cached) $ECHO_C" >&6
6075 else
6076
6077
6078
6079
6080
6081     use_additional=yes
6082
6083   acl_save_prefix="$prefix"
6084   prefix="$acl_final_prefix"
6085   acl_save_exec_prefix="$exec_prefix"
6086   exec_prefix="$acl_final_exec_prefix"
6087
6088     eval additional_includedir=\"$includedir\"
6089     eval additional_libdir=\"$libdir\"
6090
6091   exec_prefix="$acl_save_exec_prefix"
6092   prefix="$acl_save_prefix"
6093
6094
6095 # Check whether --with-libpth-prefix or --without-libpth-prefix was given.
6096 if test "${with_libpth_prefix+set}" = set; then
6097   withval="$with_libpth_prefix"
6098
6099     if test "X$withval" = "Xno"; then
6100       use_additional=no
6101     else
6102       if test "X$withval" = "X"; then
6103
6104   acl_save_prefix="$prefix"
6105   prefix="$acl_final_prefix"
6106   acl_save_exec_prefix="$exec_prefix"
6107   exec_prefix="$acl_final_exec_prefix"
6108
6109           eval additional_includedir=\"$includedir\"
6110           eval additional_libdir=\"$libdir\"
6111
6112   exec_prefix="$acl_save_exec_prefix"
6113   prefix="$acl_save_prefix"
6114
6115       else
6116         additional_includedir="$withval/include"
6117         additional_libdir="$withval/$acl_libdirstem"
6118       fi
6119     fi
6120
6121 fi;
6122       LIBPTH=
6123   LTLIBPTH=
6124   INCPTH=
6125   LIBPTH_PREFIX=
6126   rpathdirs=
6127   ltrpathdirs=
6128   names_already_handled=
6129   names_next_round='pth '
6130   while test -n "$names_next_round"; do
6131     names_this_round="$names_next_round"
6132     names_next_round=
6133     for name in $names_this_round; do
6134       already_handled=
6135       for n in $names_already_handled; do
6136         if test "$n" = "$name"; then
6137           already_handled=yes
6138           break
6139         fi
6140       done
6141       if test -z "$already_handled"; then
6142         names_already_handled="$names_already_handled $name"
6143                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6144         eval value=\"\$HAVE_LIB$uppername\"
6145         if test -n "$value"; then
6146           if test "$value" = yes; then
6147             eval value=\"\$LIB$uppername\"
6148             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
6149             eval value=\"\$LTLIB$uppername\"
6150             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
6151           else
6152                                     :
6153           fi
6154         else
6155                               found_dir=
6156           found_la=
6157           found_so=
6158           found_a=
6159           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6160           if test -n "$acl_shlibext"; then
6161             shrext=".$acl_shlibext"             # typically: shrext=.so
6162           else
6163             shrext=
6164           fi
6165           if test $use_additional = yes; then
6166             dir="$additional_libdir"
6167                                     if test -n "$acl_shlibext"; then
6168               if test -f "$dir/$libname$shrext"; then
6169                 found_dir="$dir"
6170                 found_so="$dir/$libname$shrext"
6171               else
6172                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6173                   ver=`(cd "$dir" && \
6174                         for f in "$libname$shrext".*; do echo "$f"; done \
6175                         | sed -e "s,^$libname$shrext\\\\.,," \
6176                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6177                         | sed 1q ) 2>/dev/null`
6178                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6179                     found_dir="$dir"
6180                     found_so="$dir/$libname$shrext.$ver"
6181                   fi
6182                 else
6183                   eval library_names=\"$acl_library_names_spec\"
6184                   for f in $library_names; do
6185                     if test -f "$dir/$f"; then
6186                       found_dir="$dir"
6187                       found_so="$dir/$f"
6188                       break
6189                     fi
6190                   done
6191                 fi
6192               fi
6193             fi
6194                         if test "X$found_dir" = "X"; then
6195               if test -f "$dir/$libname.$acl_libext"; then
6196                 found_dir="$dir"
6197                 found_a="$dir/$libname.$acl_libext"
6198               fi
6199             fi
6200             if test "X$found_dir" != "X"; then
6201               if test -f "$dir/$libname.la"; then
6202                 found_la="$dir/$libname.la"
6203               fi
6204             fi
6205           fi
6206           if test "X$found_dir" = "X"; then
6207             for x in $LDFLAGS $LTLIBPTH; do
6208
6209   acl_save_prefix="$prefix"
6210   prefix="$acl_final_prefix"
6211   acl_save_exec_prefix="$exec_prefix"
6212   exec_prefix="$acl_final_exec_prefix"
6213   eval x=\"$x\"
6214   exec_prefix="$acl_save_exec_prefix"
6215   prefix="$acl_save_prefix"
6216
6217               case "$x" in
6218                 -L*)
6219                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6220                                     if test -n "$acl_shlibext"; then
6221                     if test -f "$dir/$libname$shrext"; then
6222                       found_dir="$dir"
6223                       found_so="$dir/$libname$shrext"
6224                     else
6225                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6226                         ver=`(cd "$dir" && \
6227                               for f in "$libname$shrext".*; do echo "$f"; done \
6228                               | sed -e "s,^$libname$shrext\\\\.,," \
6229                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6230                               | sed 1q ) 2>/dev/null`
6231                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6232                           found_dir="$dir"
6233                           found_so="$dir/$libname$shrext.$ver"
6234                         fi
6235                       else
6236                         eval library_names=\"$acl_library_names_spec\"
6237                         for f in $library_names; do
6238                           if test -f "$dir/$f"; then
6239                             found_dir="$dir"
6240                             found_so="$dir/$f"
6241                             break
6242                           fi
6243                         done
6244                       fi
6245                     fi
6246                   fi
6247                                     if test "X$found_dir" = "X"; then
6248                     if test -f "$dir/$libname.$acl_libext"; then
6249                       found_dir="$dir"
6250                       found_a="$dir/$libname.$acl_libext"
6251                     fi
6252                   fi
6253                   if test "X$found_dir" != "X"; then
6254                     if test -f "$dir/$libname.la"; then
6255                       found_la="$dir/$libname.la"
6256                     fi
6257                   fi
6258                   ;;
6259               esac
6260               if test "X$found_dir" != "X"; then
6261                 break
6262               fi
6263             done
6264           fi
6265           if test "X$found_dir" != "X"; then
6266                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
6267             if test "X$found_so" != "X"; then
6268                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6269                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6270               else
6271                                                                                 haveit=
6272                 for x in $ltrpathdirs; do
6273                   if test "X$x" = "X$found_dir"; then
6274                     haveit=yes
6275                     break
6276                   fi
6277                 done
6278                 if test -z "$haveit"; then
6279                   ltrpathdirs="$ltrpathdirs $found_dir"
6280                 fi
6281                                 if test "$acl_hardcode_direct" = yes; then
6282                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6283                 else
6284                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6285                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6286                                                             haveit=
6287                     for x in $rpathdirs; do
6288                       if test "X$x" = "X$found_dir"; then
6289                         haveit=yes
6290                         break
6291                       fi
6292                     done
6293                     if test -z "$haveit"; then
6294                       rpathdirs="$rpathdirs $found_dir"
6295                     fi
6296                   else
6297                                                                                 haveit=
6298                     for x in $LDFLAGS $LIBPTH; do
6299
6300   acl_save_prefix="$prefix"
6301   prefix="$acl_final_prefix"
6302   acl_save_exec_prefix="$exec_prefix"
6303   exec_prefix="$acl_final_exec_prefix"
6304   eval x=\"$x\"
6305   exec_prefix="$acl_save_exec_prefix"
6306   prefix="$acl_save_prefix"
6307
6308                       if test "X$x" = "X-L$found_dir"; then
6309                         haveit=yes
6310                         break
6311                       fi
6312                     done
6313                     if test -z "$haveit"; then
6314                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
6315                     fi
6316                     if test "$acl_hardcode_minus_L" != no; then
6317                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
6318                     else
6319                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6320                     fi
6321                   fi
6322                 fi
6323               fi
6324             else
6325               if test "X$found_a" != "X"; then
6326                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
6327               else
6328                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
6329               fi
6330             fi
6331                         additional_includedir=
6332             case "$found_dir" in
6333               */$acl_libdirstem | */$acl_libdirstem/)
6334                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6335                 LIBPTH_PREFIX="$basedir"
6336                 additional_includedir="$basedir/include"
6337                 ;;
6338             esac
6339             if test "X$additional_includedir" != "X"; then
6340                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6341                 haveit=
6342                 if test "X$additional_includedir" = "X/usr/local/include"; then
6343                   if test -n "$GCC"; then
6344                     case $host_os in
6345                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6346                     esac
6347                   fi
6348                 fi
6349                 if test -z "$haveit"; then
6350                   for x in $CPPFLAGS $INCPTH; do
6351
6352   acl_save_prefix="$prefix"
6353   prefix="$acl_final_prefix"
6354   acl_save_exec_prefix="$exec_prefix"
6355   exec_prefix="$acl_final_exec_prefix"
6356   eval x=\"$x\"
6357   exec_prefix="$acl_save_exec_prefix"
6358   prefix="$acl_save_prefix"
6359
6360                     if test "X$x" = "X-I$additional_includedir"; then
6361                       haveit=yes
6362                       break
6363                     fi
6364                   done
6365                   if test -z "$haveit"; then
6366                     if test -d "$additional_includedir"; then
6367                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
6368                     fi
6369                   fi
6370                 fi
6371               fi
6372             fi
6373                         if test -n "$found_la"; then
6374                                                         save_libdir="$libdir"
6375               case "$found_la" in
6376                 */* | *\\*) . "$found_la" ;;
6377                 *) . "./$found_la" ;;
6378               esac
6379               libdir="$save_libdir"
6380                             for dep in $dependency_libs; do
6381                 case "$dep" in
6382                   -L*)
6383                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6384                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
6385                       haveit=
6386                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
6387                         if test -n "$GCC"; then
6388                           case $host_os in
6389                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6390                           esac
6391                         fi
6392                       fi
6393                       if test -z "$haveit"; then
6394                         haveit=
6395                         for x in $LDFLAGS $LIBPTH; do
6396
6397   acl_save_prefix="$prefix"
6398   prefix="$acl_final_prefix"
6399   acl_save_exec_prefix="$exec_prefix"
6400   exec_prefix="$acl_final_exec_prefix"
6401   eval x=\"$x\"
6402   exec_prefix="$acl_save_exec_prefix"
6403   prefix="$acl_save_prefix"
6404
6405                           if test "X$x" = "X-L$additional_libdir"; then
6406                             haveit=yes
6407                             break
6408                           fi
6409                         done
6410                         if test -z "$haveit"; then
6411                           if test -d "$additional_libdir"; then
6412                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
6413                           fi
6414                         fi
6415                         haveit=
6416                         for x in $LDFLAGS $LTLIBPTH; do
6417
6418   acl_save_prefix="$prefix"
6419   prefix="$acl_final_prefix"
6420   acl_save_exec_prefix="$exec_prefix"
6421   exec_prefix="$acl_final_exec_prefix"
6422   eval x=\"$x\"
6423   exec_prefix="$acl_save_exec_prefix"
6424   prefix="$acl_save_prefix"
6425
6426                           if test "X$x" = "X-L$additional_libdir"; then
6427                             haveit=yes
6428                             break
6429                           fi
6430                         done
6431                         if test -z "$haveit"; then
6432                           if test -d "$additional_libdir"; then
6433                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
6434                           fi
6435                         fi
6436                       fi
6437                     fi
6438                     ;;
6439                   -R*)
6440                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6441                     if test "$enable_rpath" != no; then
6442                                                                   haveit=
6443                       for x in $rpathdirs; do
6444                         if test "X$x" = "X$dir"; then
6445                           haveit=yes
6446                           break
6447                         fi
6448                       done
6449                       if test -z "$haveit"; then
6450                         rpathdirs="$rpathdirs $dir"
6451                       fi
6452                                                                   haveit=
6453                       for x in $ltrpathdirs; do
6454                         if test "X$x" = "X$dir"; then
6455                           haveit=yes
6456                           break
6457                         fi
6458                       done
6459                       if test -z "$haveit"; then
6460                         ltrpathdirs="$ltrpathdirs $dir"
6461                       fi
6462                     fi
6463                     ;;
6464                   -l*)
6465                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6466                     ;;
6467                   *.la)
6468                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6469                     ;;
6470                   *)
6471                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
6472                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
6473                     ;;
6474                 esac
6475               done
6476             fi
6477           else
6478                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
6479             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
6480           fi
6481         fi
6482       fi
6483     done
6484   done
6485   if test "X$rpathdirs" != "X"; then
6486     if test -n "$acl_hardcode_libdir_separator"; then
6487                         alldirs=
6488       for found_dir in $rpathdirs; do
6489         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6490       done
6491             acl_save_libdir="$libdir"
6492       libdir="$alldirs"
6493       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6494       libdir="$acl_save_libdir"
6495       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6496     else
6497             for found_dir in $rpathdirs; do
6498         acl_save_libdir="$libdir"
6499         libdir="$found_dir"
6500         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6501         libdir="$acl_save_libdir"
6502         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
6503       done
6504     fi
6505   fi
6506   if test "X$ltrpathdirs" != "X"; then
6507             for found_dir in $ltrpathdirs; do
6508       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
6509     done
6510   fi
6511
6512     ac_cv_libpth_libs="$LIBPTH"
6513     ac_cv_libpth_ltlibs="$LTLIBPTH"
6514     ac_cv_libpth_cppflags="$INCPTH"
6515     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
6516
6517 fi
6518 echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
6519 echo "${ECHO_T}$ac_cv_libpth_libs" >&6
6520   LIBPTH="$ac_cv_libpth_libs"
6521   LTLIBPTH="$ac_cv_libpth_ltlibs"
6522   INCPTH="$ac_cv_libpth_cppflags"
6523   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
6524
6525   for element in $INCPTH; do
6526     haveit=
6527     for x in $CPPFLAGS; do
6528
6529   acl_save_prefix="$prefix"
6530   prefix="$acl_final_prefix"
6531   acl_save_exec_prefix="$exec_prefix"
6532   exec_prefix="$acl_final_exec_prefix"
6533   eval x=\"$x\"
6534   exec_prefix="$acl_save_exec_prefix"
6535   prefix="$acl_save_prefix"
6536
6537       if test "X$x" = "X$element"; then
6538         haveit=yes
6539         break
6540       fi
6541     done
6542     if test -z "$haveit"; then
6543       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6544     fi
6545   done
6546
6547
6548
6549
6550       HAVE_LIBPTH=yes
6551
6552
6553
6554       gl_have_pth=
6555       gl_save_LIBS="$LIBS"
6556       LIBS="$LIBS -lpth"
6557       cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 #include <pth.h>
6564 int
6565 main ()
6566 {
6567 pth_self();
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574   (eval $ac_link) 2>conftest.er1
6575   ac_status=$?
6576   grep -v '^ *+' conftest.er1 >conftest.err
6577   rm -f conftest.er1
6578   cat conftest.err >&5
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } &&
6581          { ac_try='test -z "$ac_c_werror_flag"
6582                          || test ! -s conftest.err'
6583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584   (eval $ac_try) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; } &&
6588          { ac_try='test -s conftest$ac_exeext'
6589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590   (eval $ac_try) 2>&5
6591   ac_status=$?
6592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593   (exit $ac_status); }; }; then
6594   gl_have_pth=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 fi
6600 rm -f conftest.err conftest.$ac_objext \
6601       conftest$ac_exeext conftest.$ac_ext
6602       LIBS="$gl_save_LIBS"
6603       if test -n "$gl_have_pth"; then
6604         gl_threads_api=pth
6605         LIBTHREAD="$LIBPTH"
6606         LTLIBTHREAD="$LTLIBPTH"
6607         LIBMULTITHREAD="$LIBTHREAD"
6608         LTLIBMULTITHREAD="$LTLIBTHREAD"
6609
6610 cat >>confdefs.h <<\_ACEOF
6611 #define USE_PTH_THREADS 1
6612 _ACEOF
6613
6614         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
6615           if test $gl_have_weak = yes; then
6616
6617 cat >>confdefs.h <<\_ACEOF
6618 #define USE_PTH_THREADS_WEAK 1
6619 _ACEOF
6620
6621             LIBTHREAD=
6622             LTLIBTHREAD=
6623           fi
6624         fi
6625       else
6626         CPPFLAGS="$gl_save_CPPFLAGS"
6627       fi
6628     fi
6629     if test -z "$gl_have_pthread"; then
6630       if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
6631         if { case "$host_os" in
6632                mingw*) true;;
6633                *) false;;
6634              esac
6635            }; then
6636           gl_threads_api=win32
6637
6638 cat >>confdefs.h <<\_ACEOF
6639 #define USE_WIN32_THREADS 1
6640 _ACEOF
6641
6642         fi
6643       fi
6644     fi
6645   fi
6646   echo "$as_me:$LINENO: checking for multithread API to use" >&5
6647 echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6
6648   echo "$as_me:$LINENO: result: $gl_threads_api" >&5
6649 echo "${ECHO_T}$gl_threads_api" >&6
6650
6651
6652
6653
6654
6655
6656       echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
6657 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
6658 if test "${ac_cv_have_decl_snprintf+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   cat >conftest.$ac_ext <<_ACEOF
6662 /* confdefs.h.  */
6663 _ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h.  */
6667 $ac_includes_default
6668 int
6669 main ()
6670 {
6671 #ifndef snprintf
6672   char *p = (char *) snprintf;
6673 #endif
6674
6675   ;
6676   return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest.$ac_objext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6681   (eval $ac_compile) 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } &&
6688          { ac_try='test -z "$ac_c_werror_flag"
6689                          || test ! -s conftest.err'
6690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691   (eval $ac_try) 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); }; } &&
6695          { ac_try='test -s conftest.$ac_objext'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; }; then
6701   ac_cv_have_decl_snprintf=yes
6702 else
6703   echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 ac_cv_have_decl_snprintf=no
6707 fi
6708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6709 fi
6710 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
6711 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
6712 if test $ac_cv_have_decl_snprintf = yes; then
6713
6714 cat >>confdefs.h <<_ACEOF
6715 #define HAVE_DECL_SNPRINTF 1
6716 _ACEOF
6717
6718
6719 else
6720   cat >>confdefs.h <<_ACEOF
6721 #define HAVE_DECL_SNPRINTF 0
6722 _ACEOF
6723
6724
6725 fi
6726
6727
6728
6729 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
6730 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
6731 if test "${ac_cv_header_stdbool_h+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h.  */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h.  */
6740
6741           #include <stdbool.h>
6742           #ifndef bool
6743            "error: bool is not defined"
6744           #endif
6745           #ifndef false
6746            "error: false is not defined"
6747           #endif
6748           #if false
6749            "error: false is not 0"
6750           #endif
6751           #ifndef true
6752            "error: true is not defined"
6753           #endif
6754           #if true != 1
6755            "error: true is not 1"
6756           #endif
6757           #ifndef __bool_true_false_are_defined
6758            "error: __bool_true_false_are_defined is not defined"
6759           #endif
6760
6761           struct s { _Bool s: 1; _Bool t; } s;
6762
6763           char a[true == 1 ? 1 : -1];
6764           char b[false == 0 ? 1 : -1];
6765           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6766           char d[(bool) 0.5 == true ? 1 : -1];
6767           bool e = &s;
6768           char f[(_Bool) 0.0 == false ? 1 : -1];
6769           char g[true];
6770           char h[sizeof (_Bool)];
6771           char i[sizeof s.t];
6772           enum { j = false, k = true, l = false * true, m = true * 256 };
6773           _Bool n[m];
6774           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6775           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6776           #if defined __xlc__ || defined __GNUC__
6777            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6778               reported by James Lemley on 2005-10-05; see
6779               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6780               This test is not quite right, since xlc is allowed to
6781               reject this program, as the initializer for xlcbug is
6782               not one of the forms that C requires support for.
6783               However, doing the test right would require a run-time
6784               test, and that would make cross-compilation harder.
6785               Let us hope that IBM fixes the xlc bug, and also adds
6786               support for this kind of constant expression.  In the
6787               meantime, this test will reject xlc, which is OK, since
6788               our stdbool.h substitute should suffice.  We also test
6789               this with GCC, where it should work, to detect more
6790               quickly whether someone messes up the test in the
6791               future.  */
6792            char digs[] = "0123456789";
6793            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6794           #endif
6795           /* Catch a bug in an HP-UX C compiler.  See
6796              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6797              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6798            */
6799           _Bool q = true;
6800           _Bool *pq = &q;
6801
6802 int
6803 main ()
6804 {
6805
6806           *pq |= q;
6807           *pq |= ! q;
6808           /* Refer to every declared value, to avoid compiler optimizations.  */
6809           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6810                   + !m + !n + !o + !p + !q + !pq);
6811
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818   (eval $ac_compile) 2>conftest.er1
6819   ac_status=$?
6820   grep -v '^ *+' conftest.er1 >conftest.err
6821   rm -f conftest.er1
6822   cat conftest.err >&5
6823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824   (exit $ac_status); } &&
6825          { ac_try='test -z "$ac_c_werror_flag"
6826                          || test ! -s conftest.err'
6827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828   (eval $ac_try) 2>&5
6829   ac_status=$?
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); }; } &&
6832          { ac_try='test -s conftest.$ac_objext'
6833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834   (eval $ac_try) 2>&5
6835   ac_status=$?
6836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837   (exit $ac_status); }; }; then
6838   ac_cv_header_stdbool_h=yes
6839 else
6840   echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.$ac_ext >&5
6842
6843 ac_cv_header_stdbool_h=no
6844 fi
6845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846 fi
6847 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
6848 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
6849    echo "$as_me:$LINENO: checking for _Bool" >&5
6850 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
6851 if test "${ac_cv_type__Bool+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h.  */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h.  */
6860 $ac_includes_default
6861 int
6862 main ()
6863 {
6864 if ((_Bool *) 0)
6865   return 0;
6866 if (sizeof (_Bool))
6867   return 0;
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>conftest.er1
6875   ac_status=$?
6876   grep -v '^ *+' conftest.er1 >conftest.err
6877   rm -f conftest.er1
6878   cat conftest.err >&5
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); } &&
6881          { ac_try='test -z "$ac_c_werror_flag"
6882                          || test ! -s conftest.err'
6883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884   (eval $ac_try) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); }; } &&
6888          { ac_try='test -s conftest.$ac_objext'
6889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890   (eval $ac_try) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); }; }; then
6894   ac_cv_type__Bool=yes
6895 else
6896   echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 ac_cv_type__Bool=no
6900 fi
6901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6902 fi
6903 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
6904 echo "${ECHO_T}$ac_cv_type__Bool" >&6
6905 if test $ac_cv_type__Bool = yes; then
6906
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE__BOOL 1
6909 _ACEOF
6910
6911
6912 fi
6913
6914    if test $ac_cv_header_stdbool_h = yes; then
6915
6916 cat >>confdefs.h <<\_ACEOF
6917 #define HAVE_STDBOOL_H 1
6918 _ACEOF
6919
6920    fi
6921
6922     HAVE_DECL_MEMMEM=1;
6923   HAVE_MEMPCPY=1;
6924   HAVE_DECL_MEMRCHR=1;
6925   HAVE_STPCPY=1;
6926   HAVE_STPNCPY=1;
6927   HAVE_DECL_STRNCASECMP=1;
6928   HAVE_STRCHRNUL=1;
6929   HAVE_DECL_STRDUP=1;
6930   HAVE_STRNDUP=1;
6931   HAVE_DECL_STRNDUP=1;
6932   HAVE_DECL_STRNLEN=1;
6933   HAVE_STRPBRK=1;
6934   HAVE_STRSEP=1;
6935   HAVE_DECL_STRTOK_R=1;
6936   REPLACE_STRCASECMP=0;
6937   REPLACE_STRSTR=0;
6938   REPLACE_STRCASESTR=0;
6939
6940
6941       echo "$as_me:$LINENO: checking whether strdup is declared" >&5
6942 echo $ECHO_N "checking whether strdup is declared... $ECHO_C" >&6
6943 if test "${ac_cv_have_decl_strdup+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   cat >conftest.$ac_ext <<_ACEOF
6947 /* confdefs.h.  */
6948 _ACEOF
6949 cat confdefs.h >>conftest.$ac_ext
6950 cat >>conftest.$ac_ext <<_ACEOF
6951 /* end confdefs.h.  */
6952 $ac_includes_default
6953 int
6954 main ()
6955 {
6956 #ifndef strdup
6957   char *p = (char *) strdup;
6958 #endif
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966   (eval $ac_compile) 2>conftest.er1
6967   ac_status=$?
6968   grep -v '^ *+' conftest.er1 >conftest.err
6969   rm -f conftest.er1
6970   cat conftest.err >&5
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); } &&
6973          { ac_try='test -z "$ac_c_werror_flag"
6974                          || test ! -s conftest.err'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest.$ac_objext'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   ac_cv_have_decl_strdup=yes
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 ac_cv_have_decl_strdup=no
6992 fi
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994 fi
6995 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
6996 echo "${ECHO_T}$ac_cv_have_decl_strdup" >&6
6997 if test $ac_cv_have_decl_strdup = yes; then
6998
6999 cat >>confdefs.h <<_ACEOF
7000 #define HAVE_DECL_STRDUP 1
7001 _ACEOF
7002
7003
7004 else
7005   cat >>confdefs.h <<_ACEOF
7006 #define HAVE_DECL_STRDUP 0
7007 _ACEOF
7008
7009
7010 fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023     echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
7024 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
7025 if test "${gl_cv_absolute_string_h+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028
7029   :
7030
7031
7032
7033
7034     if test $ac_cv_header_string_h = yes; then
7035       cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041 #include <string.h>
7042 _ACEOF
7043       gl_cv_absolute_string_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 sed -n '\#/string.h#{s#.*"\(.*/string.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`
7045     fi
7046
7047 fi
7048 echo "$as_me:$LINENO: result: $gl_cv_absolute_string_h" >&5
7049 echo "${ECHO_T}$gl_cv_absolute_string_h" >&6
7050 cat >>confdefs.h <<_ACEOF
7051 #define ABSOLUTE_STRING_H "$gl_cv_absolute_string_h"
7052 _ACEOF
7053
7054
7055   ABSOLUTE_STRING_H=\"$gl_cv_absolute_string_h\"
7056
7057
7058
7059
7060   echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
7061 echo $ECHO_N "checking for EOVERFLOW... $ECHO_C" >&6
7062 if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
7063   echo $ECHO_N "(cached) $ECHO_C" >&6
7064 else
7065
7066     cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h.  */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h.  */
7072
7073 #include <errno.h>
7074 #ifdef EOVERFLOW
7075 yes
7076 #endif
7077
7078 _ACEOF
7079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7080   $EGREP "yes" >/dev/null 2>&1; then
7081   have_eoverflow=1
7082 fi
7083 rm -f conftest*
7084
7085     if test -n "$have_eoverflow"; then
7086             ac_cv_decl_EOVERFLOW=yes
7087     else
7088       cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094
7095 #define _XOPEN_SOURCE_EXTENDED 1
7096 #include <errno.h>
7097 #ifdef EOVERFLOW
7098 yes
7099 #endif
7100
7101 _ACEOF
7102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7103   $EGREP "yes" >/dev/null 2>&1; then
7104   have_eoverflow=1
7105 fi
7106 rm -f conftest*
7107
7108       if test -n "$have_eoverflow"; then
7109                         if test "$cross_compiling" = yes; then
7110   # Depending upon the size, compute the lo and hi bounds.
7111 cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h.  */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h.  */
7117
7118 #define _XOPEN_SOURCE_EXTENDED 1
7119 #include <errno.h>
7120 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7121 #include <stdio.h>
7122 #include <stdlib.h>
7123
7124 int
7125 main ()
7126 {
7127 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
7128 test_array [0] = 0
7129
7130   ;
7131   return 0;
7132 }
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7136   (eval $ac_compile) 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } &&
7143          { ac_try='test -z "$ac_c_werror_flag"
7144                          || test ! -s conftest.err'
7145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146   (eval $ac_try) 2>&5
7147   ac_status=$?
7148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149   (exit $ac_status); }; } &&
7150          { ac_try='test -s conftest.$ac_objext'
7151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152   (eval $ac_try) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   ac_lo=0 ac_mid=0
7157   while :; do
7158     cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164
7165 #define _XOPEN_SOURCE_EXTENDED 1
7166 #include <errno.h>
7167 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7168 #include <stdio.h>
7169 #include <stdlib.h>
7170
7171 int
7172 main ()
7173 {
7174 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7175 test_array [0] = 0
7176
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 rm -f conftest.$ac_objext
7182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7183   (eval $ac_compile) 2>conftest.er1
7184   ac_status=$?
7185   grep -v '^ *+' conftest.er1 >conftest.err
7186   rm -f conftest.er1
7187   cat conftest.err >&5
7188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); } &&
7190          { ac_try='test -z "$ac_c_werror_flag"
7191                          || test ! -s conftest.err'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; } &&
7197          { ac_try='test -s conftest.$ac_objext'
7198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7199   (eval $ac_try) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); }; }; then
7203   ac_hi=$ac_mid; break
7204 else
7205   echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 ac_lo=`expr $ac_mid + 1`
7209                     if test $ac_lo -le $ac_mid; then
7210                       ac_lo= ac_hi=
7211                       break
7212                     fi
7213                     ac_mid=`expr 2 '*' $ac_mid + 1`
7214 fi
7215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7216   done
7217 else
7218   echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227
7228 #define _XOPEN_SOURCE_EXTENDED 1
7229 #include <errno.h>
7230 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7231 #include <stdio.h>
7232 #include <stdlib.h>
7233
7234 int
7235 main ()
7236 {
7237 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
7238 test_array [0] = 0
7239
7240   ;
7241   return 0;
7242 }
7243 _ACEOF
7244 rm -f conftest.$ac_objext
7245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246   (eval $ac_compile) 2>conftest.er1
7247   ac_status=$?
7248   grep -v '^ *+' conftest.er1 >conftest.err
7249   rm -f conftest.er1
7250   cat conftest.err >&5
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } &&
7253          { ac_try='test -z "$ac_c_werror_flag"
7254                          || test ! -s conftest.err'
7255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256   (eval $ac_try) 2>&5
7257   ac_status=$?
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); }; } &&
7260          { ac_try='test -s conftest.$ac_objext'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; }; then
7266   ac_hi=-1 ac_mid=-1
7267   while :; do
7268     cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274
7275 #define _XOPEN_SOURCE_EXTENDED 1
7276 #include <errno.h>
7277 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7278 #include <stdio.h>
7279 #include <stdlib.h>
7280
7281 int
7282 main ()
7283 {
7284 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
7285 test_array [0] = 0
7286
7287   ;
7288   return 0;
7289 }
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293   (eval $ac_compile) 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } &&
7300          { ac_try='test -z "$ac_c_werror_flag"
7301                          || test ! -s conftest.err'
7302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303   (eval $ac_try) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; } &&
7307          { ac_try='test -s conftest.$ac_objext'
7308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309   (eval $ac_try) 2>&5
7310   ac_status=$?
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); }; }; then
7313   ac_lo=$ac_mid; break
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318 ac_hi=`expr '(' $ac_mid ')' - 1`
7319                        if test $ac_mid -le $ac_hi; then
7320                          ac_lo= ac_hi=
7321                          break
7322                        fi
7323                        ac_mid=`expr 2 '*' $ac_mid`
7324 fi
7325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7326   done
7327 else
7328   echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331 ac_lo= ac_hi=
7332 fi
7333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7334 fi
7335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336 # Binary search between lo and hi bounds.
7337 while test "x$ac_lo" != "x$ac_hi"; do
7338   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7339   cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345
7346 #define _XOPEN_SOURCE_EXTENDED 1
7347 #include <errno.h>
7348 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7349 #include <stdio.h>
7350 #include <stdlib.h>
7351
7352 int
7353 main ()
7354 {
7355 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
7356 test_array [0] = 0
7357
7358   ;
7359   return 0;
7360 }
7361 _ACEOF
7362 rm -f conftest.$ac_objext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364   (eval $ac_compile) 2>conftest.er1
7365   ac_status=$?
7366   grep -v '^ *+' conftest.er1 >conftest.err
7367   rm -f conftest.er1
7368   cat conftest.err >&5
7369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } &&
7371          { ac_try='test -z "$ac_c_werror_flag"
7372                          || test ! -s conftest.err'
7373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374   (eval $ac_try) 2>&5
7375   ac_status=$?
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); }; } &&
7378          { ac_try='test -s conftest.$ac_objext'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; }; then
7384   ac_hi=$ac_mid
7385 else
7386   echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 ac_lo=`expr '(' $ac_mid ')' + 1`
7390 fi
7391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7392 done
7393 case $ac_lo in
7394 ?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
7395 '')  ;;
7396 esac
7397 else
7398   if test "$cross_compiling" = yes; then
7399   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7400 See \`config.log' for more details." >&5
7401 echo "$as_me: error: cannot run test program while cross compiling
7402 See \`config.log' for more details." >&2;}
7403    { (exit 1); exit 1; }; }
7404 else
7405   cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411
7412 #define _XOPEN_SOURCE_EXTENDED 1
7413 #include <errno.h>
7414 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
7415 #include <stdio.h>
7416 #include <stdlib.h>
7417
7418 long longval () { return EOVERFLOW; }
7419 unsigned long ulongval () { return EOVERFLOW; }
7420 #include <stdio.h>
7421 #include <stdlib.h>
7422 int
7423 main ()
7424 {
7425
7426   FILE *f = fopen ("conftest.val", "w");
7427   if (! f)
7428     exit (1);
7429   if ((EOVERFLOW) < 0)
7430     {
7431       long i = longval ();
7432       if (i != (EOVERFLOW))
7433         exit (1);
7434       fprintf (f, "%ld\n", i);
7435     }
7436   else
7437     {
7438       unsigned long i = ulongval ();
7439       if (i != (EOVERFLOW))
7440         exit (1);
7441       fprintf (f, "%lu\n", i);
7442     }
7443   exit (ferror (f) || fclose (f) != 0);
7444
7445   ;
7446   return 0;
7447 }
7448 _ACEOF
7449 rm -f conftest$ac_exeext
7450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7451   (eval $ac_link) 2>&5
7452   ac_status=$?
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; }; then
7460   ac_cv_decl_EOVERFLOW=`cat conftest.val`
7461 else
7462   echo "$as_me: program exited with status $ac_status" >&5
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466 fi
7467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7468 fi
7469 fi
7470 rm -f conftest.val
7471       else
7472                                 ac_cv_decl_EOVERFLOW=E2BIG
7473       fi
7474     fi
7475
7476 fi
7477 echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
7478 echo "${ECHO_T}$ac_cv_decl_EOVERFLOW" >&6
7479   if test "$ac_cv_decl_EOVERFLOW" != yes; then
7480
7481 cat >>confdefs.h <<_ACEOF
7482 #define EOVERFLOW $ac_cv_decl_EOVERFLOW
7483 _ACEOF
7484
7485     EOVERFLOW="$ac_cv_decl_EOVERFLOW"
7486
7487   fi
7488
7489
7490   echo "$as_me:$LINENO: checking for long long int" >&5
7491 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
7492 if test "${ac_cv_type_long_long_int+set}" = set; then
7493   echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495   cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501 long long int ll = 9223372036854775807ll;
7502             long long int nll = -9223372036854775807LL;
7503             typedef int a[((-9223372036854775807LL < 0
7504                             && 0 < 9223372036854775807ll)
7505                            ? 1 : -1)];
7506             int i = 63;
7507 int
7508 main ()
7509 {
7510 long long int llmax = 9223372036854775807ll;
7511             return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7512                     | (llmax / ll) | (llmax % ll));
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7519   (eval $ac_link) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"
7527                          || test ! -s conftest.err'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; } &&
7533          { ac_try='test -s conftest$ac_exeext'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539                         if test "$cross_compiling" = yes; then
7540   ac_cv_type_long_long_int=yes
7541 else
7542   cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h.  */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h.  */
7548 #include <limits.h>
7549                #ifndef LLONG_MAX
7550                # define HALF \
7551                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7552                # define LLONG_MAX (HALF - 1 + HALF)
7553                #endif
7554 int
7555 main ()
7556 {
7557 long long int n = 1;
7558                int i;
7559                for (i = 0; ; i++)
7560                  {
7561                    long long int m = n << i;
7562                    if (m >> i != n)
7563                      return 1;
7564                    if (LLONG_MAX / 2 < m)
7565                      break;
7566                  }
7567                return 0;
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574   (eval $ac_link) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   ac_cv_type_long_long_int=yes
7584 else
7585   echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ( exit $ac_status )
7590 ac_cv_type_long_long_int=no
7591 fi
7592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7593 fi
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 ac_cv_type_long_long_int=no
7599 fi
7600 rm -f conftest.err conftest.$ac_objext \
7601       conftest$ac_exeext conftest.$ac_ext
7602 fi
7603 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
7604 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
7605   if test $ac_cv_type_long_long_int = yes; then
7606
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_LONG_LONG_INT 1
7609 _ACEOF
7610
7611   fi
7612
7613
7614   echo "$as_me:$LINENO: checking for long double" >&5
7615 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7616 if test "${gt_cv_c_long_double+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   if test "$GCC" = yes; then
7620        gt_cv_c_long_double=yes
7621      else
7622        cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628
7629          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7630          long double foo = 0.0;
7631          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7632          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7633
7634 int
7635 main ()
7636 {
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext
7643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7644   (eval $ac_compile) 2>conftest.er1
7645   ac_status=$?
7646   grep -v '^ *+' conftest.er1 >conftest.err
7647   rm -f conftest.er1
7648   cat conftest.err >&5
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); } &&
7651          { ac_try='test -z "$ac_c_werror_flag"
7652                          || test ! -s conftest.err'
7653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654   (eval $ac_try) 2>&5
7655   ac_status=$?
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); }; } &&
7658          { ac_try='test -s conftest.$ac_objext'
7659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660   (eval $ac_try) 2>&5
7661   ac_status=$?
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); }; }; then
7664   gt_cv_c_long_double=yes
7665 else
7666   echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7668
7669 gt_cv_c_long_double=no
7670 fi
7671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7672      fi
7673 fi
7674 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7675 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7676   if test $gt_cv_c_long_double = yes; then
7677
7678 cat >>confdefs.h <<\_ACEOF
7679 #define HAVE_LONG_DOUBLE 1
7680 _ACEOF
7681
7682   fi
7683
7684
7685   echo "$as_me:$LINENO: checking for wchar_t" >&5
7686 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7687 if test "${gt_cv_c_wchar_t+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696 #include <stddef.h>
7697        wchar_t foo = (wchar_t)'\0';
7698 int
7699 main ()
7700 {
7701
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708   (eval $ac_compile) 2>conftest.er1
7709   ac_status=$?
7710   grep -v '^ *+' conftest.er1 >conftest.err
7711   rm -f conftest.er1
7712   cat conftest.err >&5
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); } &&
7715          { ac_try='test -z "$ac_c_werror_flag"
7716                          || test ! -s conftest.err'
7717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7718   (eval $ac_try) 2>&5
7719   ac_status=$?
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); }; } &&
7722          { ac_try='test -s conftest.$ac_objext'
7723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7724   (eval $ac_try) 2>&5
7725   ac_status=$?
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); }; }; then
7728   gt_cv_c_wchar_t=yes
7729 else
7730   echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733 gt_cv_c_wchar_t=no
7734 fi
7735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7738 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7739   if test $gt_cv_c_wchar_t = yes; then
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_WCHAR_T 1
7743 _ACEOF
7744
7745   fi
7746
7747
7748   echo "$as_me:$LINENO: checking for wint_t" >&5
7749 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7750 if test "${gt_cv_c_wint_t+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759
7760 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7761    <wchar.h>.
7762    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
7763    before <wchar.h>.  */
7764 #include <stddef.h>
7765 #include <stdio.h>
7766 #include <time.h>
7767 #include <wchar.h>
7768        wint_t foo = (wchar_t)'\0';
7769 int
7770 main ()
7771 {
7772
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7779   (eval $ac_compile) 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag"
7787                          || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest.$ac_objext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   gt_cv_c_wint_t=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 gt_cv_c_wint_t=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7809 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7810   if test $gt_cv_c_wint_t = yes; then
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_WINT_T 1
7814 _ACEOF
7815
7816   fi
7817
7818 echo "$as_me:$LINENO: checking for size_t" >&5
7819 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7820 if test "${ac_cv_type_size_t+set}" = set; then
7821   echo $ECHO_N "(cached) $ECHO_C" >&6
7822 else
7823   cat >conftest.$ac_ext <<_ACEOF
7824 /* confdefs.h.  */
7825 _ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h.  */
7829 $ac_includes_default
7830 int
7831 main ()
7832 {
7833 if ((size_t *) 0)
7834   return 0;
7835 if (sizeof (size_t))
7836   return 0;
7837   ;
7838   return 0;
7839 }
7840 _ACEOF
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7843   (eval $ac_compile) 2>conftest.er1
7844   ac_status=$?
7845   grep -v '^ *+' conftest.er1 >conftest.err
7846   rm -f conftest.er1
7847   cat conftest.err >&5
7848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849   (exit $ac_status); } &&
7850          { ac_try='test -z "$ac_c_werror_flag"
7851                          || test ! -s conftest.err'
7852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853   (eval $ac_try) 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); }; } &&
7857          { ac_try='test -s conftest.$ac_objext'
7858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859   (eval $ac_try) 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   ac_cv_type_size_t=yes
7864 else
7865   echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868 ac_cv_type_size_t=no
7869 fi
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7873 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7874 if test $ac_cv_type_size_t = yes; then
7875   :
7876 else
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define size_t unsigned
7880 _ACEOF
7881
7882 fi
7883
7884
7885   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7886 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7887 if test "${gl_cv_header_inttypes_h+set}" = set; then
7888   echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #include <sys/types.h>
7897 #include <inttypes.h>
7898 int
7899 main ()
7900 {
7901 uintmax_t i = (uintmax_t) -1; return !i;
7902   ;
7903   return 0;
7904 }
7905 _ACEOF
7906 rm -f conftest.$ac_objext
7907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7908   (eval $ac_compile) 2>conftest.er1
7909   ac_status=$?
7910   grep -v '^ *+' conftest.er1 >conftest.err
7911   rm -f conftest.er1
7912   cat conftest.err >&5
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); } &&
7915          { ac_try='test -z "$ac_c_werror_flag"
7916                          || test ! -s conftest.err'
7917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918   (eval $ac_try) 2>&5
7919   ac_status=$?
7920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921   (exit $ac_status); }; } &&
7922          { ac_try='test -s conftest.$ac_objext'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; }; then
7928   gl_cv_header_inttypes_h=yes
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933 gl_cv_header_inttypes_h=no
7934 fi
7935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7936 fi
7937 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7938 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7939   if test $gl_cv_header_inttypes_h = yes; then
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7943 _ACEOF
7944
7945   fi
7946
7947
7948   echo "$as_me:$LINENO: checking for stdint.h" >&5
7949 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7950 if test "${gl_cv_header_stdint_h+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   cat >conftest.$ac_ext <<_ACEOF
7954 /* confdefs.h.  */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h.  */
7959 #include <sys/types.h>
7960 #include <stdint.h>
7961 int
7962 main ()
7963 {
7964 uintmax_t i = (uintmax_t) -1; return !i;
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"
7979                          || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest.$ac_objext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   gl_cv_header_stdint_h=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 gl_cv_header_stdint_h=no
7997 fi
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8001 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8002   if test $gl_cv_header_stdint_h = yes; then
8003
8004 cat >>confdefs.h <<_ACEOF
8005 #define HAVE_STDINT_H_WITH_UINTMAX 1
8006 _ACEOF
8007
8008   fi
8009
8010
8011
8012   ac_cv_type_long_long=$ac_cv_type_long_long_int
8013   if test $ac_cv_type_long_long = yes; then
8014
8015 cat >>confdefs.h <<\_ACEOF
8016 #define HAVE_LONG_LONG 1
8017 _ACEOF
8018
8019   fi
8020
8021
8022
8023
8024   echo "$as_me:$LINENO: checking for intmax_t" >&5
8025 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8026 if test "${gt_cv_c_intmax_t+set}" = set; then
8027   echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029   cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035
8036 #include <stddef.h>
8037 #include <stdlib.h>
8038 #if HAVE_STDINT_H_WITH_UINTMAX
8039 #include <stdint.h>
8040 #endif
8041 #if HAVE_INTTYPES_H_WITH_UINTMAX
8042 #include <inttypes.h>
8043 #endif
8044
8045 int
8046 main ()
8047 {
8048 intmax_t x = -1; return !x;
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8055   (eval $ac_compile) 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_c_werror_flag"
8063                          || test ! -s conftest.err'
8064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065   (eval $ac_try) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); }; } &&
8069          { ac_try='test -s conftest.$ac_objext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   gt_cv_c_intmax_t=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080 gt_cv_c_intmax_t=no
8081 fi
8082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8085 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8086   if test $gt_cv_c_intmax_t = yes; then
8087
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_INTMAX_T 1
8090 _ACEOF
8091
8092   else
8093
8094     test $ac_cv_type_long_long = yes \
8095       && ac_type='long long' \
8096       || ac_type='long'
8097
8098 cat >>confdefs.h <<_ACEOF
8099 #define intmax_t $ac_type
8100 _ACEOF
8101
8102   fi
8103
8104
8105
8106
8107
8108
8109
8110 if true; then
8111   GL_COND_LIBTOOL_TRUE=
8112   GL_COND_LIBTOOL_FALSE='#'
8113 else
8114   GL_COND_LIBTOOL_TRUE='#'
8115   GL_COND_LIBTOOL_FALSE=
8116 fi
8117
8118   gl_cond_libtool=true
8119   gl_source_base='gnulib'
8120
8121
8122
8123
8124
8125   if test $ac_cv_func_alloca_works = no; then
8126     :
8127   fi
8128
8129   # Define an additional variable used in the Makefile substitution.
8130   if test $ac_cv_working_alloca_h = yes; then
8131     echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
8132 echo $ECHO_N "checking for alloca as a compiler built-in... $ECHO_C" >&6
8133 if test "${gl_cv_rpl_alloca+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136
8137       cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h.  */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h.  */
8143
8144 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8145         Need own alloca
8146 #endif
8147
8148 _ACEOF
8149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8150   $EGREP "Need own alloca" >/dev/null 2>&1; then
8151   gl_cv_rpl_alloca=yes
8152 else
8153   gl_cv_rpl_alloca=no
8154 fi
8155 rm -f conftest*
8156
8157
8158 fi
8159 echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
8160 echo "${ECHO_T}$gl_cv_rpl_alloca" >&6
8161     if test $gl_cv_rpl_alloca = yes; then
8162
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_ALLOCA 1
8165 _ACEOF
8166
8167       ALLOCA_H=alloca.h
8168     else
8169                   ALLOCA_H=
8170     fi
8171   else
8172     ALLOCA_H=alloca.h
8173   fi
8174
8175
8176
8177 cat >>confdefs.h <<\_ACEOF
8178 #define HAVE_ALLOCA_H 1
8179 _ACEOF
8180
8181
8182
8183
8184   :
8185
8186
8187
8188
8189
8190   if test $ac_cv_header_arpa_inet_h = yes; then
8191     ARPA_INET_H=''
8192   else
8193     ARPA_INET_H='arpa/inet.h'
8194   fi
8195
8196
8197
8198   { echo "$as_me:$LINENO: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&5
8199 echo "$as_me: checking how to do getaddrinfo, freeaddrinfo and getnameinfo" >&6;}
8200
8201   echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
8202 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
8203 if test "${ac_cv_search_getaddrinfo+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   ac_func_search_save_LIBS=$LIBS
8207 ac_cv_search_getaddrinfo=no
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h.  */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h.  */
8214
8215 /* Override any gcc2 internal prototype to avoid an error.  */
8216 #ifdef __cplusplus
8217 extern "C"
8218 #endif
8219 /* We use char because int might match the return type of a gcc2
8220    builtin and then its argument prototype would still apply.  */
8221 char getaddrinfo ();
8222 int
8223 main ()
8224 {
8225 getaddrinfo ();
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext conftest$ac_exeext
8231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8232   (eval $ac_link) 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } &&
8239          { ac_try='test -z "$ac_c_werror_flag"
8240                          || test ! -s conftest.err'
8241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242   (eval $ac_try) 2>&5
8243   ac_status=$?
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); }; } &&
8246          { ac_try='test -s conftest$ac_exeext'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; }; then
8252   ac_cv_search_getaddrinfo="none required"
8253 else
8254   echo "$as_me: failed program was:" >&5
8255 sed 's/^/| /' conftest.$ac_ext >&5
8256
8257 fi
8258 rm -f conftest.err conftest.$ac_objext \
8259       conftest$ac_exeext conftest.$ac_ext
8260 if test "$ac_cv_search_getaddrinfo" = no; then
8261   for ac_lib in nsl socket; do
8262     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8263     cat >conftest.$ac_ext <<_ACEOF
8264 /* confdefs.h.  */
8265 _ACEOF
8266 cat confdefs.h >>conftest.$ac_ext
8267 cat >>conftest.$ac_ext <<_ACEOF
8268 /* end confdefs.h.  */
8269
8270 /* Override any gcc2 internal prototype to avoid an error.  */
8271 #ifdef __cplusplus
8272 extern "C"
8273 #endif
8274 /* We use char because int might match the return type of a gcc2
8275    builtin and then its argument prototype would still apply.  */
8276 char getaddrinfo ();
8277 int
8278 main ()
8279 {
8280 getaddrinfo ();
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287   (eval $ac_link) 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -z "$ac_c_werror_flag"
8295                          || test ! -s conftest.err'
8296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297   (eval $ac_try) 2>&5
8298   ac_status=$?
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); }; } &&
8301          { ac_try='test -s conftest$ac_exeext'
8302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303   (eval $ac_try) 2>&5
8304   ac_status=$?
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); }; }; then
8307   ac_cv_search_getaddrinfo="-l$ac_lib"
8308 break
8309 else
8310   echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313 fi
8314 rm -f conftest.err conftest.$ac_objext \
8315       conftest$ac_exeext conftest.$ac_ext
8316   done
8317 fi
8318 LIBS=$ac_func_search_save_LIBS
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
8321 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
8322 if test "$ac_cv_search_getaddrinfo" != no; then
8323   test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
8324
8325 fi
8326
8327
8328 for ac_func in getaddrinfo
8329 do
8330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8331 echo "$as_me:$LINENO: checking for $ac_func" >&5
8332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8333 if eval "test \"\${$as_ac_var+set}\" = set"; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8344 #define $ac_func innocuous_$ac_func
8345
8346 /* System header to define __stub macros and hopefully few prototypes,
8347     which can conflict with char $ac_func (); below.
8348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349     <limits.h> exists even on freestanding compilers.  */
8350
8351 #ifdef __STDC__
8352 # include <limits.h>
8353 #else
8354 # include <assert.h>
8355 #endif
8356
8357 #undef $ac_func
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 {
8363 #endif
8364 /* We use char because int might match the return type of a gcc2
8365    builtin and then its argument prototype would still apply.  */
8366 char $ac_func ();
8367 /* The GNU C library defines this for functions which it implements
8368     to always fail with ENOSYS.  Some functions are actually named
8369     something starting with __ and the normal name is an alias.  */
8370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8371 choke me
8372 #else
8373 char (*f) () = $ac_func;
8374 #endif
8375 #ifdef __cplusplus
8376 }
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 return f != $ac_func;
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>conftest.er1
8390   ac_status=$?
8391   grep -v '^ *+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -z "$ac_c_werror_flag"
8397                          || test ! -s conftest.err'
8398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399   (eval $ac_try) 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; } &&
8403          { ac_try='test -s conftest$ac_exeext'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; }; then
8409   eval "$as_ac_var=yes"
8410 else
8411   echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 eval "$as_ac_var=no"
8415 fi
8416 rm -f conftest.err conftest.$ac_objext \
8417       conftest$ac_exeext conftest.$ac_ext
8418 fi
8419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8421 if test `eval echo '${'$as_ac_var'}'` = yes; then
8422   cat >>confdefs.h <<_ACEOF
8423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8424 _ACEOF
8425
8426 else
8427
8428     echo "$as_me:$LINENO: checking for getaddrinfo in ws2tcpip.h and -lws2_32" >&5
8429 echo $ECHO_N "checking for getaddrinfo in ws2tcpip.h and -lws2_32... $ECHO_C" >&6
8430 if test "${gl_cv_w32_getaddrinfo+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433
8434       gl_cv_w32_getaddrinfo=no
8435       am_save_LIBS="$LIBS"
8436       LIBS="$LIBS -lws2_32"
8437       cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8443
8444 #ifdef HAVE_WS2TCPIP_H
8445 #include <ws2tcpip.h>
8446 #endif
8447
8448 int
8449 main ()
8450 {
8451 getaddrinfo(0, 0, 0, 0);
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8458   (eval $ac_link) 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -z "$ac_c_werror_flag"
8466                          || test ! -s conftest.err'
8467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468   (eval $ac_try) 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; } &&
8472          { ac_try='test -s conftest$ac_exeext'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   gl_cv_w32_getaddrinfo=yes
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483 fi
8484 rm -f conftest.err conftest.$ac_objext \
8485       conftest$ac_exeext conftest.$ac_ext
8486     LIBS="$am_save_LIBS"
8487 fi
8488 echo "$as_me:$LINENO: result: $gl_cv_w32_getaddrinfo" >&5
8489 echo "${ECHO_T}$gl_cv_w32_getaddrinfo" >&6
8490     if test "$gl_cv_w32_getaddrinfo" = "yes"; then
8491       LIBS="$LIBS -lws2_32"
8492     else
8493       gl_LIBOBJS="$gl_LIBOBJS getaddrinfo.$ac_objext"
8494     fi
8495
8496 fi
8497 done
8498
8499
8500
8501 for ac_func in gai_strerror
8502 do
8503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8504 echo "$as_me:$LINENO: checking for $ac_func" >&5
8505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_var+set}\" = set"; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8517 #define $ac_func innocuous_$ac_func
8518
8519 /* System header to define __stub macros and hopefully few prototypes,
8520     which can conflict with char $ac_func (); below.
8521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8522     <limits.h> exists even on freestanding compilers.  */
8523
8524 #ifdef __STDC__
8525 # include <limits.h>
8526 #else
8527 # include <assert.h>
8528 #endif
8529
8530 #undef $ac_func
8531
8532 /* Override any gcc2 internal prototype to avoid an error.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 {
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char $ac_func ();
8540 /* The GNU C library defines this for functions which it implements
8541     to always fail with ENOSYS.  Some functions are actually named
8542     something starting with __ and the normal name is an alias.  */
8543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8544 choke me
8545 #else
8546 char (*f) () = $ac_func;
8547 #endif
8548 #ifdef __cplusplus
8549 }
8550 #endif
8551
8552 int
8553 main ()
8554 {
8555 return f != $ac_func;
8556   ;
8557   return 0;
8558 }
8559 _ACEOF
8560 rm -f conftest.$ac_objext conftest$ac_exeext
8561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8562   (eval $ac_link) 2>conftest.er1
8563   ac_status=$?
8564   grep -v '^ *+' conftest.er1 >conftest.err
8565   rm -f conftest.er1
8566   cat conftest.err >&5
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); } &&
8569          { ac_try='test -z "$ac_c_werror_flag"
8570                          || test ! -s conftest.err'
8571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8572   (eval $ac_try) 2>&5
8573   ac_status=$?
8574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575   (exit $ac_status); }; } &&
8576          { ac_try='test -s conftest$ac_exeext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   eval "$as_ac_var=yes"
8583 else
8584   echo "$as_me: failed program was:" >&5
8585 sed 's/^/| /' conftest.$ac_ext >&5
8586
8587 eval "$as_ac_var=no"
8588 fi
8589 rm -f conftest.err conftest.$ac_objext \
8590       conftest$ac_exeext conftest.$ac_ext
8591 fi
8592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8594 if test `eval echo '${'$as_ac_var'}'` = yes; then
8595   cat >>confdefs.h <<_ACEOF
8596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8597 _ACEOF
8598
8599 else
8600   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
8601 fi
8602 done
8603
8604
8605   echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8606 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8607 if test "${ac_cv_search_gethostbyname+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   ac_func_search_save_LIBS=$LIBS
8611 ac_cv_search_gethostbyname=no
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h.  */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h.  */
8618
8619 /* Override any gcc2 internal prototype to avoid an error.  */
8620 #ifdef __cplusplus
8621 extern "C"
8622 #endif
8623 /* We use char because int might match the return type of a gcc2
8624    builtin and then its argument prototype would still apply.  */
8625 char gethostbyname ();
8626 int
8627 main ()
8628 {
8629 gethostbyname ();
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8636   (eval $ac_link) 2>conftest.er1
8637   ac_status=$?
8638   grep -v '^ *+' conftest.er1 >conftest.err
8639   rm -f conftest.er1
8640   cat conftest.err >&5
8641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642   (exit $ac_status); } &&
8643          { ac_try='test -z "$ac_c_werror_flag"
8644                          || test ! -s conftest.err'
8645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646   (eval $ac_try) 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; }; then
8656   ac_cv_search_gethostbyname="none required"
8657 else
8658   echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 fi
8662 rm -f conftest.err conftest.$ac_objext \
8663       conftest$ac_exeext conftest.$ac_ext
8664 if test "$ac_cv_search_gethostbyname" = no; then
8665   for ac_lib in inet nsl; do
8666     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8667     cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673
8674 /* Override any gcc2 internal prototype to avoid an error.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 /* We use char because int might match the return type of a gcc2
8679    builtin and then its argument prototype would still apply.  */
8680 char gethostbyname ();
8681 int
8682 main ()
8683 {
8684 gethostbyname ();
8685   ;
8686   return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691   (eval $ac_link) 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -z "$ac_c_werror_flag"
8699                          || test ! -s conftest.err'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; } &&
8705          { ac_try='test -s conftest$ac_exeext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_cv_search_gethostbyname="-l$ac_lib"
8712 break
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717 fi
8718 rm -f conftest.err conftest.$ac_objext \
8719       conftest$ac_exeext conftest.$ac_ext
8720   done
8721 fi
8722 LIBS=$ac_func_search_save_LIBS
8723 fi
8724 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8725 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8726 if test "$ac_cv_search_gethostbyname" != no; then
8727   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8728
8729 fi
8730
8731   echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
8732 echo $ECHO_N "checking for library containing getservbyname... $ECHO_C" >&6
8733 if test "${ac_cv_search_getservbyname+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   ac_func_search_save_LIBS=$LIBS
8737 ac_cv_search_getservbyname=no
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744
8745 /* Override any gcc2 internal prototype to avoid an error.  */
8746 #ifdef __cplusplus
8747 extern "C"
8748 #endif
8749 /* We use char because int might match the return type of a gcc2
8750    builtin and then its argument prototype would still apply.  */
8751 char getservbyname ();
8752 int
8753 main ()
8754 {
8755 getservbyname ();
8756   ;
8757   return 0;
8758 }
8759 _ACEOF
8760 rm -f conftest.$ac_objext conftest$ac_exeext
8761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762   (eval $ac_link) 2>conftest.er1
8763   ac_status=$?
8764   grep -v '^ *+' conftest.er1 >conftest.err
8765   rm -f conftest.er1
8766   cat conftest.err >&5
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); } &&
8769          { ac_try='test -z "$ac_c_werror_flag"
8770                          || test ! -s conftest.err'
8771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772   (eval $ac_try) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); }; } &&
8776          { ac_try='test -s conftest$ac_exeext'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; }; then
8782   ac_cv_search_getservbyname="none required"
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 fi
8788 rm -f conftest.err conftest.$ac_objext \
8789       conftest$ac_exeext conftest.$ac_ext
8790 if test "$ac_cv_search_getservbyname" = no; then
8791   for ac_lib in inet nsl socket xnet; do
8792     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8793     cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799
8800 /* Override any gcc2 internal prototype to avoid an error.  */
8801 #ifdef __cplusplus
8802 extern "C"
8803 #endif
8804 /* We use char because int might match the return type of a gcc2
8805    builtin and then its argument prototype would still apply.  */
8806 char getservbyname ();
8807 int
8808 main ()
8809 {
8810 getservbyname ();
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8817   (eval $ac_link) 2>conftest.er1
8818   ac_status=$?
8819   grep -v '^ *+' conftest.er1 >conftest.err
8820   rm -f conftest.er1
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   (exit $ac_status); } &&
8824          { ac_try='test -z "$ac_c_werror_flag"
8825                          || test ! -s conftest.err'
8826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827   (eval $ac_try) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); }; } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   ac_cv_search_getservbyname="-l$ac_lib"
8838 break
8839 else
8840   echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 fi
8844 rm -f conftest.err conftest.$ac_objext \
8845       conftest$ac_exeext conftest.$ac_ext
8846   done
8847 fi
8848 LIBS=$ac_func_search_save_LIBS
8849 fi
8850 echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
8851 echo "${ECHO_T}$ac_cv_search_getservbyname" >&6
8852 if test "$ac_cv_search_getservbyname" != no; then
8853   test "$ac_cv_search_getservbyname" = "none required" || LIBS="$ac_cv_search_getservbyname $LIBS"
8854
8855 fi
8856
8857
8858 for ac_func in gethostbyname
8859 do
8860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8861 echo "$as_me:$LINENO: checking for $ac_func" >&5
8862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8863 if eval "test \"\${$as_ac_var+set}\" = set"; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8874 #define $ac_func innocuous_$ac_func
8875
8876 /* System header to define __stub macros and hopefully few prototypes,
8877     which can conflict with char $ac_func (); below.
8878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8879     <limits.h> exists even on freestanding compilers.  */
8880
8881 #ifdef __STDC__
8882 # include <limits.h>
8883 #else
8884 # include <assert.h>
8885 #endif
8886
8887 #undef $ac_func
8888
8889 /* Override any gcc2 internal prototype to avoid an error.  */
8890 #ifdef __cplusplus
8891 extern "C"
8892 {
8893 #endif
8894 /* We use char because int might match the return type of a gcc2
8895    builtin and then its argument prototype would still apply.  */
8896 char $ac_func ();
8897 /* The GNU C library defines this for functions which it implements
8898     to always fail with ENOSYS.  Some functions are actually named
8899     something starting with __ and the normal name is an alias.  */
8900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8901 choke me
8902 #else
8903 char (*f) () = $ac_func;
8904 #endif
8905 #ifdef __cplusplus
8906 }
8907 #endif
8908
8909 int
8910 main ()
8911 {
8912 return f != $ac_func;
8913   ;
8914   return 0;
8915 }
8916 _ACEOF
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919   (eval $ac_link) 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag"
8927                          || test ! -s conftest.err'
8928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929   (eval $ac_try) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; } &&
8933          { ac_try='test -s conftest$ac_exeext'
8934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935   (eval $ac_try) 2>&5
8936   ac_status=$?
8937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938   (exit $ac_status); }; }; then
8939   eval "$as_ac_var=yes"
8940 else
8941   echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 eval "$as_ac_var=no"
8945 fi
8946 rm -f conftest.err conftest.$ac_objext \
8947       conftest$ac_exeext conftest.$ac_ext
8948 fi
8949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8951 if test `eval echo '${'$as_ac_var'}'` = yes; then
8952   cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8954 _ACEOF
8955
8956 else
8957
8958     echo "$as_me:$LINENO: checking for gethostbyname in winsock2.h and -lws2_32" >&5
8959 echo $ECHO_N "checking for gethostbyname in winsock2.h and -lws2_32... $ECHO_C" >&6
8960 if test "${gl_cv_w32_gethostbyname+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963
8964       gl_cv_w32_gethostbyname=no
8965       am_save_LIBS="$LIBS"
8966       LIBS="$LIBS -lws2_32"
8967       cat >conftest.$ac_ext <<_ACEOF
8968 /* confdefs.h.  */
8969 _ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h.  */
8973
8974 #ifdef HAVE_WINSOCK2_H
8975 #include <winsock2.h>
8976 #endif
8977
8978 int
8979 main ()
8980 {
8981 gethostbyname(0);
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988   (eval $ac_link) 2>conftest.er1
8989   ac_status=$?
8990   grep -v '^ *+' conftest.er1 >conftest.err
8991   rm -f conftest.er1
8992   cat conftest.err >&5
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); } &&
8995          { ac_try='test -z "$ac_c_werror_flag"
8996                          || test ! -s conftest.err'
8997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998   (eval $ac_try) 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); }; } &&
9002          { ac_try='test -s conftest$ac_exeext'
9003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004   (eval $ac_try) 2>&5
9005   ac_status=$?
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); }; }; then
9008   gl_cv_w32_gethostbyname=yes
9009 else
9010   echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 fi
9014 rm -f conftest.err conftest.$ac_objext \
9015       conftest$ac_exeext conftest.$ac_ext
9016     LIBS="$am_save_LIBS"
9017 fi
9018 echo "$as_me:$LINENO: result: $gl_cv_w32_gethostbyname" >&5
9019 echo "${ECHO_T}$gl_cv_w32_gethostbyname" >&6
9020     if test "$gl_cv_w32_gethostbyname" = "yes"; then
9021       LIBS="$LIBS -lws2_32"
9022     fi
9023
9024 fi
9025 done
9026
9027
9028
9029
9030
9031
9032
9033   :
9034
9035
9036
9037
9038
9039
9040
9041
9042   echo "$as_me:$LINENO: checking whether getaddrinfo is declared" >&5
9043 echo $ECHO_N "checking whether getaddrinfo is declared... $ECHO_C" >&6
9044 if test "${ac_cv_have_decl_getaddrinfo+set}" = set; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047   cat >conftest.$ac_ext <<_ACEOF
9048 /* confdefs.h.  */
9049 _ACEOF
9050 cat confdefs.h >>conftest.$ac_ext
9051 cat >>conftest.$ac_ext <<_ACEOF
9052 /* end confdefs.h.  */
9053
9054   /* sys/types.h is not needed according to POSIX, but the
9055      sys/socket.h in i386-unknown-freebsd4.10 and
9056      powerpc-apple-darwin5.5 required it. */
9057 #include <sys/types.h>
9058 #ifdef HAVE_SYS_SOCKET_H
9059 #include <sys/socket.h>
9060 #endif
9061 #ifdef HAVE_NETDB_H
9062 #include <netdb.h>
9063 #endif
9064 #ifdef HAVE_WS2TCPIP_H
9065 #include <ws2tcpip.h>
9066 #endif
9067
9068
9069 int
9070 main ()
9071 {
9072 #ifndef getaddrinfo
9073   char *p = (char *) getaddrinfo;
9074 #endif
9075
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082   (eval $ac_compile) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag"
9090                          || test ! -s conftest.err'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest.$ac_objext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_have_decl_getaddrinfo=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_cv_have_decl_getaddrinfo=no
9108 fi
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getaddrinfo" >&5
9112 echo "${ECHO_T}$ac_cv_have_decl_getaddrinfo" >&6
9113 if test $ac_cv_have_decl_getaddrinfo = yes; then
9114
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_GETADDRINFO 1
9117 _ACEOF
9118
9119
9120 else
9121   cat >>confdefs.h <<_ACEOF
9122 #define HAVE_DECL_GETADDRINFO 0
9123 _ACEOF
9124
9125
9126 fi
9127 echo "$as_me:$LINENO: checking whether freeaddrinfo is declared" >&5
9128 echo $ECHO_N "checking whether freeaddrinfo is declared... $ECHO_C" >&6
9129 if test "${ac_cv_have_decl_freeaddrinfo+set}" = set; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132   cat >conftest.$ac_ext <<_ACEOF
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138
9139   /* sys/types.h is not needed according to POSIX, but the
9140      sys/socket.h in i386-unknown-freebsd4.10 and
9141      powerpc-apple-darwin5.5 required it. */
9142 #include <sys/types.h>
9143 #ifdef HAVE_SYS_SOCKET_H
9144 #include <sys/socket.h>
9145 #endif
9146 #ifdef HAVE_NETDB_H
9147 #include <netdb.h>
9148 #endif
9149 #ifdef HAVE_WS2TCPIP_H
9150 #include <ws2tcpip.h>
9151 #endif
9152
9153
9154 int
9155 main ()
9156 {
9157 #ifndef freeaddrinfo
9158   char *p = (char *) freeaddrinfo;
9159 #endif
9160
9161   ;
9162   return 0;
9163 }
9164 _ACEOF
9165 rm -f conftest.$ac_objext
9166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9167   (eval $ac_compile) 2>conftest.er1
9168   ac_status=$?
9169   grep -v '^ *+' conftest.er1 >conftest.err
9170   rm -f conftest.er1
9171   cat conftest.err >&5
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); } &&
9174          { ac_try='test -z "$ac_c_werror_flag"
9175                          || test ! -s conftest.err'
9176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177   (eval $ac_try) 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; } &&
9181          { ac_try='test -s conftest.$ac_objext'
9182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183   (eval $ac_try) 2>&5
9184   ac_status=$?
9185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186   (exit $ac_status); }; }; then
9187   ac_cv_have_decl_freeaddrinfo=yes
9188 else
9189   echo "$as_me: failed program was:" >&5
9190 sed 's/^/| /' conftest.$ac_ext >&5
9191
9192 ac_cv_have_decl_freeaddrinfo=no
9193 fi
9194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9195 fi
9196 echo "$as_me:$LINENO: result: $ac_cv_have_decl_freeaddrinfo" >&5
9197 echo "${ECHO_T}$ac_cv_have_decl_freeaddrinfo" >&6
9198 if test $ac_cv_have_decl_freeaddrinfo = yes; then
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define HAVE_DECL_FREEADDRINFO 1
9202 _ACEOF
9203
9204
9205 else
9206   cat >>confdefs.h <<_ACEOF
9207 #define HAVE_DECL_FREEADDRINFO 0
9208 _ACEOF
9209
9210
9211 fi
9212 echo "$as_me:$LINENO: checking whether gai_strerror is declared" >&5
9213 echo $ECHO_N "checking whether gai_strerror is declared... $ECHO_C" >&6
9214 if test "${ac_cv_have_decl_gai_strerror+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223
9224   /* sys/types.h is not needed according to POSIX, but the
9225      sys/socket.h in i386-unknown-freebsd4.10 and
9226      powerpc-apple-darwin5.5 required it. */
9227 #include <sys/types.h>
9228 #ifdef HAVE_SYS_SOCKET_H
9229 #include <sys/socket.h>
9230 #endif
9231 #ifdef HAVE_NETDB_H
9232 #include <netdb.h>
9233 #endif
9234 #ifdef HAVE_WS2TCPIP_H
9235 #include <ws2tcpip.h>
9236 #endif
9237
9238
9239 int
9240 main ()
9241 {
9242 #ifndef gai_strerror
9243   char *p = (char *) gai_strerror;
9244 #endif
9245
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9252   (eval $ac_compile) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"
9260                          || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest.$ac_objext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_cv_have_decl_gai_strerror=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_cv_have_decl_gai_strerror=no
9278 fi
9279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9280 fi
9281 echo "$as_me:$LINENO: result: $ac_cv_have_decl_gai_strerror" >&5
9282 echo "${ECHO_T}$ac_cv_have_decl_gai_strerror" >&6
9283 if test $ac_cv_have_decl_gai_strerror = yes; then
9284
9285 cat >>confdefs.h <<_ACEOF
9286 #define HAVE_DECL_GAI_STRERROR 1
9287 _ACEOF
9288
9289
9290 else
9291   cat >>confdefs.h <<_ACEOF
9292 #define HAVE_DECL_GAI_STRERROR 0
9293 _ACEOF
9294
9295
9296 fi
9297 echo "$as_me:$LINENO: checking whether getnameinfo is declared" >&5
9298 echo $ECHO_N "checking whether getnameinfo is declared... $ECHO_C" >&6
9299 if test "${ac_cv_have_decl_getnameinfo+set}" = set; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309   /* sys/types.h is not needed according to POSIX, but the
9310      sys/socket.h in i386-unknown-freebsd4.10 and
9311      powerpc-apple-darwin5.5 required it. */
9312 #include <sys/types.h>
9313 #ifdef HAVE_SYS_SOCKET_H
9314 #include <sys/socket.h>
9315 #endif
9316 #ifdef HAVE_NETDB_H
9317 #include <netdb.h>
9318 #endif
9319 #ifdef HAVE_WS2TCPIP_H
9320 #include <ws2tcpip.h>
9321 #endif
9322
9323
9324 int
9325 main ()
9326 {
9327 #ifndef getnameinfo
9328   char *p = (char *) getnameinfo;
9329 #endif
9330
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext
9336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9337   (eval $ac_compile) 2>conftest.er1
9338   ac_status=$?
9339   grep -v '^ *+' conftest.er1 >conftest.err
9340   rm -f conftest.er1
9341   cat conftest.err >&5
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } &&
9344          { ac_try='test -z "$ac_c_werror_flag"
9345                          || test ! -s conftest.err'
9346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347   (eval $ac_try) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; } &&
9351          { ac_try='test -s conftest.$ac_objext'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   ac_cv_have_decl_getnameinfo=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362 ac_cv_have_decl_getnameinfo=no
9363 fi
9364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9365 fi
9366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getnameinfo" >&5
9367 echo "${ECHO_T}$ac_cv_have_decl_getnameinfo" >&6
9368 if test $ac_cv_have_decl_getnameinfo = yes; then
9369
9370 cat >>confdefs.h <<_ACEOF
9371 #define HAVE_DECL_GETNAMEINFO 1
9372 _ACEOF
9373
9374
9375 else
9376   cat >>confdefs.h <<_ACEOF
9377 #define HAVE_DECL_GETNAMEINFO 0
9378 _ACEOF
9379
9380
9381 fi
9382
9383
9384   echo "$as_me:$LINENO: checking for struct addrinfo" >&5
9385 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
9386 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h.  */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h.  */
9395
9396 #include <sys/types.h>
9397 #ifdef HAVE_SYS_SOCKET_H
9398 #include <sys/socket.h>
9399 #endif
9400 #ifdef HAVE_NETDB_H
9401 #include <netdb.h>
9402 #endif
9403 #ifdef HAVE_WS2TCPIP_H
9404 #include <ws2tcpip.h>
9405 #endif
9406
9407
9408 int
9409 main ()
9410 {
9411 if ((struct addrinfo *) 0)
9412   return 0;
9413 if (sizeof (struct addrinfo))
9414   return 0;
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421   (eval $ac_compile) 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -z "$ac_c_werror_flag"
9429                          || test ! -s conftest.err'
9430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431   (eval $ac_try) 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; } &&
9435          { ac_try='test -s conftest.$ac_objext'
9436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437   (eval $ac_try) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; }; then
9441   ac_cv_type_struct_addrinfo=yes
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 ac_cv_type_struct_addrinfo=no
9447 fi
9448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9449 fi
9450 echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
9451 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
9452 if test $ac_cv_type_struct_addrinfo = yes; then
9453
9454 cat >>confdefs.h <<_ACEOF
9455 #define HAVE_STRUCT_ADDRINFO 1
9456 _ACEOF
9457
9458
9459 fi
9460
9461
9462
9463
9464
9465 for ac_func in inet_ntop
9466 do
9467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9468 echo "$as_me:$LINENO: checking for $ac_func" >&5
9469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_var+set}\" = set"; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473   cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h.  */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h.  */
9479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9481 #define $ac_func innocuous_$ac_func
9482
9483 /* System header to define __stub macros and hopefully few prototypes,
9484     which can conflict with char $ac_func (); below.
9485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9486     <limits.h> exists even on freestanding compilers.  */
9487
9488 #ifdef __STDC__
9489 # include <limits.h>
9490 #else
9491 # include <assert.h>
9492 #endif
9493
9494 #undef $ac_func
9495
9496 /* Override any gcc2 internal prototype to avoid an error.  */
9497 #ifdef __cplusplus
9498 extern "C"
9499 {
9500 #endif
9501 /* We use char because int might match the return type of a gcc2
9502    builtin and then its argument prototype would still apply.  */
9503 char $ac_func ();
9504 /* The GNU C library defines this for functions which it implements
9505     to always fail with ENOSYS.  Some functions are actually named
9506     something starting with __ and the normal name is an alias.  */
9507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9508 choke me
9509 #else
9510 char (*f) () = $ac_func;
9511 #endif
9512 #ifdef __cplusplus
9513 }
9514 #endif
9515
9516 int
9517 main ()
9518 {
9519 return f != $ac_func;
9520   ;
9521   return 0;
9522 }
9523 _ACEOF
9524 rm -f conftest.$ac_objext conftest$ac_exeext
9525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526   (eval $ac_link) 2>conftest.er1
9527   ac_status=$?
9528   grep -v '^ *+' conftest.er1 >conftest.err
9529   rm -f conftest.er1
9530   cat conftest.err >&5
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } &&
9533          { ac_try='test -z "$ac_c_werror_flag"
9534                          || test ! -s conftest.err'
9535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536   (eval $ac_try) 2>&5
9537   ac_status=$?
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); }; } &&
9540          { ac_try='test -s conftest$ac_exeext'
9541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542   (eval $ac_try) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }; }; then
9546   eval "$as_ac_var=yes"
9547 else
9548   echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 eval "$as_ac_var=no"
9552 fi
9553 rm -f conftest.err conftest.$ac_objext \
9554       conftest$ac_exeext conftest.$ac_ext
9555 fi
9556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9558 if test `eval echo '${'$as_ac_var'}'` = yes; then
9559   cat >>confdefs.h <<_ACEOF
9560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9561 _ACEOF
9562
9563 else
9564   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
9565 fi
9566 done
9567
9568
9569
9570   :
9571
9572
9573
9574
9575
9576
9577
9578
9579   echo "$as_me:$LINENO: checking whether inet_ntop is declared" >&5
9580 echo $ECHO_N "checking whether inet_ntop is declared... $ECHO_C" >&6
9581 if test "${ac_cv_have_decl_inet_ntop+set}" = set; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590 #include <arpa/inet.h>
9591
9592 int
9593 main ()
9594 {
9595 #ifndef inet_ntop
9596   char *p = (char *) inet_ntop;
9597 #endif
9598
9599   ;
9600   return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605   (eval $ac_compile) 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -z "$ac_c_werror_flag"
9613                          || test ! -s conftest.err'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; } &&
9619          { ac_try='test -s conftest.$ac_objext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   ac_cv_have_decl_inet_ntop=yes
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_cv_have_decl_inet_ntop=no
9631 fi
9632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9633 fi
9634 echo "$as_me:$LINENO: result: $ac_cv_have_decl_inet_ntop" >&5
9635 echo "${ECHO_T}$ac_cv_have_decl_inet_ntop" >&6
9636 if test $ac_cv_have_decl_inet_ntop = yes; then
9637
9638 cat >>confdefs.h <<_ACEOF
9639 #define HAVE_DECL_INET_NTOP 1
9640 _ACEOF
9641
9642
9643 else
9644   cat >>confdefs.h <<_ACEOF
9645 #define HAVE_DECL_INET_NTOP 0
9646 _ACEOF
9647
9648
9649 fi
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665   :
9666
9667
9668
9669
9670
9671   if test $ac_cv_header_netinet_in_h = yes; then
9672     NETINET_IN_H=''
9673   else
9674     NETINET_IN_H='netinet/in.h'
9675   fi
9676
9677
9678
9679
9680 for ac_header in stdint.h
9681 do
9682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9684   echo "$as_me:$LINENO: checking for $ac_header" >&5
9685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 fi
9689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9691 else
9692   # Is the header compilable?
9693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h.  */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h.  */
9701 $ac_includes_default
9702 #include <$ac_header>
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9706   (eval $ac_compile) 2>conftest.er1
9707   ac_status=$?
9708   grep -v '^ *+' conftest.er1 >conftest.err
9709   rm -f conftest.er1
9710   cat conftest.err >&5
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); } &&
9713          { ac_try='test -z "$ac_c_werror_flag"
9714                          || test ! -s conftest.err'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; } &&
9720          { ac_try='test -s conftest.$ac_objext'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; }; then
9726   ac_header_compiler=yes
9727 else
9728   echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_header_compiler=no
9732 fi
9733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9735 echo "${ECHO_T}$ac_header_compiler" >&6
9736
9737 # Is the header present?
9738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746 #include <$ac_header>
9747 _ACEOF
9748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9750   ac_status=$?
9751   grep -v '^ *+' conftest.er1 >conftest.err
9752   rm -f conftest.er1
9753   cat conftest.err >&5
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); } >/dev/null; then
9756   if test -s conftest.err; then
9757     ac_cpp_err=$ac_c_preproc_warn_flag
9758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9759   else
9760     ac_cpp_err=
9761   fi
9762 else
9763   ac_cpp_err=yes
9764 fi
9765 if test -z "$ac_cpp_err"; then
9766   ac_header_preproc=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771   ac_header_preproc=no
9772 fi
9773 rm -f conftest.err conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9775 echo "${ECHO_T}$ac_header_preproc" >&6
9776
9777 # So?  What about this header?
9778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9779   yes:no: )
9780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9784     ac_header_preproc=yes
9785     ;;
9786   no:yes:* )
9787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9799     (
9800       cat <<\_ASBOX
9801 ## ------------------------------------------ ##
9802 ## Report this to the AC_PACKAGE_NAME lists.  ##
9803 ## ------------------------------------------ ##
9804 _ASBOX
9805     ) |
9806       sed "s/^/$as_me: WARNING:     /" >&2
9807     ;;
9808 esac
9809 echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   eval "$as_ac_Header=\$ac_header_preproc"
9815 fi
9816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9818
9819 fi
9820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9821   cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 _ACEOF
9824
9825 fi
9826
9827 done
9828
9829     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9830 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9831   if test "${gl_cv_size_max+set}" = set; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834
9835     gl_cv_size_max=
9836     cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 #include <limits.h>
9844 #if HAVE_STDINT_H
9845 #include <stdint.h>
9846 #endif
9847 #ifdef SIZE_MAX
9848 Found it
9849 #endif
9850
9851 _ACEOF
9852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9853   $EGREP "Found it" >/dev/null 2>&1; then
9854   gl_cv_size_max=yes
9855 fi
9856 rm -f conftest*
9857
9858     if test -z "$gl_cv_size_max"; then
9859                         if test "$cross_compiling" = yes; then
9860   # Depending upon the size, compute the lo and hi bounds.
9861 cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 #include <stddef.h>
9868 #include <limits.h>
9869 int
9870 main ()
9871 {
9872 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
9873 test_array [0] = 0
9874
9875   ;
9876   return 0;
9877 }
9878 _ACEOF
9879 rm -f conftest.$ac_objext
9880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881   (eval $ac_compile) 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } &&
9888          { ac_try='test -z "$ac_c_werror_flag"
9889                          || test ! -s conftest.err'
9890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9891   (eval $ac_try) 2>&5
9892   ac_status=$?
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); }; } &&
9895          { ac_try='test -s conftest.$ac_objext'
9896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9897   (eval $ac_try) 2>&5
9898   ac_status=$?
9899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900   (exit $ac_status); }; }; then
9901   ac_lo=0 ac_mid=0
9902   while :; do
9903     cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909 #include <stddef.h>
9910 #include <limits.h>
9911 int
9912 main ()
9913 {
9914 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
9915 test_array [0] = 0
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923   (eval $ac_compile) 2>conftest.er1
9924   ac_status=$?
9925   grep -v '^ *+' conftest.er1 >conftest.err
9926   rm -f conftest.er1
9927   cat conftest.err >&5
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); } &&
9930          { ac_try='test -z "$ac_c_werror_flag"
9931                          || test ! -s conftest.err'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; } &&
9937          { ac_try='test -s conftest.$ac_objext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_hi=$ac_mid; break
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_lo=`expr $ac_mid + 1`
9949                     if test $ac_lo -le $ac_mid; then
9950                       ac_lo= ac_hi=
9951                       break
9952                     fi
9953                     ac_mid=`expr 2 '*' $ac_mid + 1`
9954 fi
9955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9956   done
9957 else
9958   echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #include <stddef.h>
9968 #include <limits.h>
9969 int
9970 main ()
9971 {
9972 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
9973 test_array [0] = 0
9974
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9981   (eval $ac_compile) 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_c_werror_flag"
9989                          || test ! -s conftest.err'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; } &&
9995          { ac_try='test -s conftest.$ac_objext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_hi=-1 ac_mid=-1
10002   while :; do
10003     cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h.  */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h.  */
10009 #include <stddef.h>
10010 #include <limits.h>
10011 int
10012 main ()
10013 {
10014 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
10015 test_array [0] = 0
10016
10017   ;
10018   return 0;
10019 }
10020 _ACEOF
10021 rm -f conftest.$ac_objext
10022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023   (eval $ac_compile) 2>conftest.er1
10024   ac_status=$?
10025   grep -v '^ *+' conftest.er1 >conftest.err
10026   rm -f conftest.er1
10027   cat conftest.err >&5
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); } &&
10030          { ac_try='test -z "$ac_c_werror_flag"
10031                          || test ! -s conftest.err'
10032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10033   (eval $ac_try) 2>&5
10034   ac_status=$?
10035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036   (exit $ac_status); }; } &&
10037          { ac_try='test -s conftest.$ac_objext'
10038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039   (eval $ac_try) 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; }; then
10043   ac_lo=$ac_mid; break
10044 else
10045   echo "$as_me: failed program was:" >&5
10046 sed 's/^/| /' conftest.$ac_ext >&5
10047
10048 ac_hi=`expr '(' $ac_mid ')' - 1`
10049                        if test $ac_mid -le $ac_hi; then
10050                          ac_lo= ac_hi=
10051                          break
10052                        fi
10053                        ac_mid=`expr 2 '*' $ac_mid`
10054 fi
10055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10056   done
10057 else
10058   echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_lo= ac_hi=
10062 fi
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10066 # Binary search between lo and hi bounds.
10067 while test "x$ac_lo" != "x$ac_hi"; do
10068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10069   cat >conftest.$ac_ext <<_ACEOF
10070 /* confdefs.h.  */
10071 _ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h.  */
10075 #include <stddef.h>
10076 #include <limits.h>
10077 int
10078 main ()
10079 {
10080 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
10081 test_array [0] = 0
10082
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089   (eval $ac_compile) 2>conftest.er1
10090   ac_status=$?
10091   grep -v '^ *+' conftest.er1 >conftest.err
10092   rm -f conftest.er1
10093   cat conftest.err >&5
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); } &&
10096          { ac_try='test -z "$ac_c_werror_flag"
10097                          || test ! -s conftest.err'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; } &&
10103          { ac_try='test -s conftest.$ac_objext'
10104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105   (eval $ac_try) 2>&5
10106   ac_status=$?
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); }; }; then
10109   ac_hi=$ac_mid
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 ac_lo=`expr '(' $ac_mid ')' + 1`
10115 fi
10116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10117 done
10118 case $ac_lo in
10119 ?*) size_t_bits_minus_1=$ac_lo;;
10120 '') size_t_bits_minus_1= ;;
10121 esac
10122 else
10123   if test "$cross_compiling" = yes; then
10124   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10125 See \`config.log' for more details." >&5
10126 echo "$as_me: error: cannot run test program while cross compiling
10127 See \`config.log' for more details." >&2;}
10128    { (exit 1); exit 1; }; }
10129 else
10130   cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h.  */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h.  */
10136 #include <stddef.h>
10137 #include <limits.h>
10138 long longval () { return sizeof (size_t) * CHAR_BIT - 1; }
10139 unsigned long ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
10140 #include <stdio.h>
10141 #include <stdlib.h>
10142 int
10143 main ()
10144 {
10145
10146   FILE *f = fopen ("conftest.val", "w");
10147   if (! f)
10148     exit (1);
10149   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
10150     {
10151       long i = longval ();
10152       if (i != (sizeof (size_t) * CHAR_BIT - 1))
10153         exit (1);
10154       fprintf (f, "%ld\n", i);
10155     }
10156   else
10157     {
10158       unsigned long i = ulongval ();
10159       if (i != (sizeof (size_t) * CHAR_BIT - 1))
10160         exit (1);
10161       fprintf (f, "%lu\n", i);
10162     }
10163   exit (ferror (f) || fclose (f) != 0);
10164
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171   (eval $ac_link) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   size_t_bits_minus_1=`cat conftest.val`
10181 else
10182   echo "$as_me: program exited with status $ac_status" >&5
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 ( exit $ac_status )
10187 size_t_bits_minus_1=
10188 fi
10189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10190 fi
10191 fi
10192 rm -f conftest.val
10193       if test "$cross_compiling" = yes; then
10194   # Depending upon the size, compute the lo and hi bounds.
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 #include <stddef.h>
10202 int
10203 main ()
10204 {
10205 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10206 test_array [0] = 0
10207
10208   ;
10209   return 0;
10210 }
10211 _ACEOF
10212 rm -f conftest.$ac_objext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214   (eval $ac_compile) 2>conftest.er1
10215   ac_status=$?
10216   grep -v '^ *+' conftest.er1 >conftest.err
10217   rm -f conftest.er1
10218   cat conftest.err >&5
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); } &&
10221          { ac_try='test -z "$ac_c_werror_flag"
10222                          || test ! -s conftest.err'
10223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224   (eval $ac_try) 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; } &&
10228          { ac_try='test -s conftest.$ac_objext'
10229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230   (eval $ac_try) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); }; }; then
10234   ac_lo=0 ac_mid=0
10235   while :; do
10236     cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 #include <stddef.h>
10243 int
10244 main ()
10245 {
10246 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10247 test_array [0] = 0
10248
10249   ;
10250   return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255   (eval $ac_compile) 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -z "$ac_c_werror_flag"
10263                          || test ! -s conftest.err'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; } &&
10269          { ac_try='test -s conftest.$ac_objext'
10270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271   (eval $ac_try) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; }; then
10275   ac_hi=$ac_mid; break
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 ac_lo=`expr $ac_mid + 1`
10281                     if test $ac_lo -le $ac_mid; then
10282                       ac_lo= ac_hi=
10283                       break
10284                     fi
10285                     ac_mid=`expr 2 '*' $ac_mid + 1`
10286 fi
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288   done
10289 else
10290   echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 cat >conftest.$ac_ext <<_ACEOF
10294 /* confdefs.h.  */
10295 _ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h.  */
10299 #include <stddef.h>
10300 int
10301 main ()
10302 {
10303 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10304 test_array [0] = 0
10305
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312   (eval $ac_compile) 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag"
10320                          || test ! -s conftest.err'
10321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322   (eval $ac_try) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; } &&
10326          { ac_try='test -s conftest.$ac_objext'
10327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328   (eval $ac_try) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; }; then
10332   ac_hi=-1 ac_mid=-1
10333   while :; do
10334     cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 #include <stddef.h>
10341 int
10342 main ()
10343 {
10344 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10345 test_array [0] = 0
10346
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353   (eval $ac_compile) 2>conftest.er1
10354   ac_status=$?
10355   grep -v '^ *+' conftest.er1 >conftest.err
10356   rm -f conftest.er1
10357   cat conftest.err >&5
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } &&
10360          { ac_try='test -z "$ac_c_werror_flag"
10361                          || test ! -s conftest.err'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   ac_lo=$ac_mid; break
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378 ac_hi=`expr '(' $ac_mid ')' - 1`
10379                        if test $ac_mid -le $ac_hi; then
10380                          ac_lo= ac_hi=
10381                          break
10382                        fi
10383                        ac_mid=`expr 2 '*' $ac_mid`
10384 fi
10385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10386   done
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 ac_lo= ac_hi=
10392 fi
10393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10394 fi
10395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10396 # Binary search between lo and hi bounds.
10397 while test "x$ac_lo" != "x$ac_hi"; do
10398   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10399   cat >conftest.$ac_ext <<_ACEOF
10400 /* confdefs.h.  */
10401 _ACEOF
10402 cat confdefs.h >>conftest.$ac_ext
10403 cat >>conftest.$ac_ext <<_ACEOF
10404 /* end confdefs.h.  */
10405 #include <stddef.h>
10406 int
10407 main ()
10408 {
10409 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10410 test_array [0] = 0
10411
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext
10417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10418   (eval $ac_compile) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } &&
10425          { ac_try='test -z "$ac_c_werror_flag"
10426                          || test ! -s conftest.err'
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); }; } &&
10432          { ac_try='test -s conftest.$ac_objext'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; }; then
10438   ac_hi=$ac_mid
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443 ac_lo=`expr '(' $ac_mid ')' + 1`
10444 fi
10445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10446 done
10447 case $ac_lo in
10448 ?*) fits_in_uint=$ac_lo;;
10449 '') fits_in_uint= ;;
10450 esac
10451 else
10452   if test "$cross_compiling" = yes; then
10453   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10454 See \`config.log' for more details." >&5
10455 echo "$as_me: error: cannot run test program while cross compiling
10456 See \`config.log' for more details." >&2;}
10457    { (exit 1); exit 1; }; }
10458 else
10459   cat >conftest.$ac_ext <<_ACEOF
10460 /* confdefs.h.  */
10461 _ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h.  */
10465 #include <stddef.h>
10466 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10467 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10468 #include <stdio.h>
10469 #include <stdlib.h>
10470 int
10471 main ()
10472 {
10473
10474   FILE *f = fopen ("conftest.val", "w");
10475   if (! f)
10476     exit (1);
10477   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10478     {
10479       long i = longval ();
10480       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10481         exit (1);
10482       fprintf (f, "%ld\n", i);
10483     }
10484   else
10485     {
10486       unsigned long i = ulongval ();
10487       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10488         exit (1);
10489       fprintf (f, "%lu\n", i);
10490     }
10491   exit (ferror (f) || fclose (f) != 0);
10492
10493   ;
10494   return 0;
10495 }
10496 _ACEOF
10497 rm -f conftest$ac_exeext
10498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499   (eval $ac_link) 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504   (eval $ac_try) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; }; then
10508   fits_in_uint=`cat conftest.val`
10509 else
10510   echo "$as_me: program exited with status $ac_status" >&5
10511 echo "$as_me: failed program was:" >&5
10512 sed 's/^/| /' conftest.$ac_ext >&5
10513
10514 ( exit $ac_status )
10515 fits_in_uint=
10516 fi
10517 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10518 fi
10519 fi
10520 rm -f conftest.val
10521       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10522         if test $fits_in_uint = 1; then
10523                               cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529 #include <stddef.h>
10530             extern size_t foo;
10531             extern unsigned long foo;
10532
10533 int
10534 main ()
10535 {
10536
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 rm -f conftest.$ac_objext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10543   (eval $ac_compile) 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -z "$ac_c_werror_flag"
10551                          || test ! -s conftest.err'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest.$ac_objext'
10558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559   (eval $ac_try) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); }; }; then
10563   fits_in_uint=0
10564 else
10565   echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 fi
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570         fi
10571                                 if test $fits_in_uint = 1; then
10572           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10573         else
10574           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10575         fi
10576       else
10577                 gl_cv_size_max='((size_t)~(size_t)0)'
10578       fi
10579     fi
10580
10581 fi
10582
10583   echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
10584 echo "${ECHO_T}$gl_cv_size_max" >&6
10585   if test "$gl_cv_size_max" != yes; then
10586
10587 cat >>confdefs.h <<_ACEOF
10588 #define SIZE_MAX $gl_cv_size_max
10589 _ACEOF
10590
10591   fi
10592
10593
10594
10595 for ac_func in snprintf
10596 do
10597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_func" >&5
10599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_var+set}\" = set"; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10611 #define $ac_func innocuous_$ac_func
10612
10613 /* System header to define __stub macros and hopefully few prototypes,
10614     which can conflict with char $ac_func (); below.
10615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616     <limits.h> exists even on freestanding compilers.  */
10617
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10623
10624 #undef $ac_func
10625
10626 /* Override any gcc2 internal prototype to avoid an error.  */
10627 #ifdef __cplusplus
10628 extern "C"
10629 {
10630 #endif
10631 /* We use char because int might match the return type of a gcc2
10632    builtin and then its argument prototype would still apply.  */
10633 char $ac_func ();
10634 /* The GNU C library defines this for functions which it implements
10635     to always fail with ENOSYS.  Some functions are actually named
10636     something starting with __ and the normal name is an alias.  */
10637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10638 choke me
10639 #else
10640 char (*f) () = $ac_func;
10641 #endif
10642 #ifdef __cplusplus
10643 }
10644 #endif
10645
10646 int
10647 main ()
10648 {
10649 return f != $ac_func;
10650   ;
10651   return 0;
10652 }
10653 _ACEOF
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10656   (eval $ac_link) 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -z "$ac_c_werror_flag"
10664                          || test ! -s conftest.err'
10665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10666   (eval $ac_try) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); }; } &&
10670          { ac_try='test -s conftest$ac_exeext'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; }; then
10676   eval "$as_ac_var=yes"
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 eval "$as_ac_var=no"
10682 fi
10683 rm -f conftest.err conftest.$ac_objext \
10684       conftest$ac_exeext conftest.$ac_ext
10685 fi
10686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10688 if test `eval echo '${'$as_ac_var'}'` = yes; then
10689   cat >>confdefs.h <<_ACEOF
10690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10691 _ACEOF
10692
10693 else
10694   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10695 fi
10696 done
10697
10698
10699   :
10700
10701
10702
10703
10704
10705   :
10706
10707      echo "$as_me:$LINENO: checking for socklen_t" >&5
10708 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10709 if test "${ac_cv_type_socklen_t+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 #include <sys/types.h>
10719       #if HAVE_SYS_SOCKET_H
10720       # include <sys/socket.h>
10721       #elif HAVE_WS2TCPIP_H
10722       # include <ws2tcpip.h>
10723       #endif
10724
10725 int
10726 main ()
10727 {
10728 if ((socklen_t *) 0)
10729   return 0;
10730 if (sizeof (socklen_t))
10731   return 0;
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738   (eval $ac_compile) 2>conftest.er1
10739   ac_status=$?
10740   grep -v '^ *+' conftest.er1 >conftest.err
10741   rm -f conftest.er1
10742   cat conftest.err >&5
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); } &&
10745          { ac_try='test -z "$ac_c_werror_flag"
10746                          || test ! -s conftest.err'
10747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748   (eval $ac_try) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); }; } &&
10752          { ac_try='test -s conftest.$ac_objext'
10753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754   (eval $ac_try) 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   ac_cv_type_socklen_t=yes
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763 ac_cv_type_socklen_t=no
10764 fi
10765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10766 fi
10767 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
10768 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
10769 if test $ac_cv_type_socklen_t = yes; then
10770   :
10771 else
10772   echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
10773 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
10774       if test "${gl_cv_gl_cv_socklen_t_equiv+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   # Systems have either "struct sockaddr *" or
10778          # "void *" as the second argument to getpeername
10779          gl_cv_socklen_t_equiv=
10780          for arg2 in "struct sockaddr" void; do
10781            for t in int size_t "unsigned int" "long int" "unsigned long int"; do
10782              cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788 #include <sys/types.h>
10789                 #include <sys/socket.h>
10790
10791                 int getpeername (int, $arg2 *, $t *);
10792 int
10793 main ()
10794 {
10795 $t len;
10796                 getpeername (0, 0, &len);
10797   ;
10798   return 0;
10799 }
10800 _ACEOF
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803   (eval $ac_compile) 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -z "$ac_c_werror_flag"
10811                          || test ! -s conftest.err'
10812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813   (eval $ac_try) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; } &&
10817          { ac_try='test -s conftest.$ac_objext'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   gl_cv_socklen_t_equiv="$t"
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 fi
10829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10830              test "$gl_cv_socklen_t_equiv" != "" && break
10831            done
10832            test "$gl_cv_socklen_t_equiv" != "" && break
10833          done
10834
10835 fi
10836
10837       if test "$gl_cv_socklen_t_equiv" = ""; then
10838         { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
10839 echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
10840    { (exit 1); exit 1; }; }
10841       fi
10842       echo "$as_me:$LINENO: result: $gl_cv_socklen_t_equiv" >&5
10843 echo "${ECHO_T}$gl_cv_socklen_t_equiv" >&6
10844
10845 cat >>confdefs.h <<_ACEOF
10846 #define socklen_t $gl_cv_socklen_t_equiv
10847 _ACEOF
10848
10849 fi
10850
10851
10852
10853
10854   # Define two additional variables used in the Makefile substitution.
10855
10856   if test "$ac_cv_header_stdbool_h" = yes; then
10857     STDBOOL_H=''
10858   else
10859     STDBOOL_H='stdbool.h'
10860   fi
10861
10862
10863   if test "$ac_cv_type__Bool" = yes; then
10864     HAVE__BOOL=1
10865   else
10866     HAVE__BOOL=0
10867   fi
10868
10869
10870
10871
10872
10873 for ac_func in strdup
10874 do
10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 echo "$as_me:$LINENO: checking for $ac_func" >&5
10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10878 if eval "test \"\${$as_ac_var+set}\" = set"; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10889 #define $ac_func innocuous_$ac_func
10890
10891 /* System header to define __stub macros and hopefully few prototypes,
10892     which can conflict with char $ac_func (); below.
10893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10894     <limits.h> exists even on freestanding compilers.  */
10895
10896 #ifdef __STDC__
10897 # include <limits.h>
10898 #else
10899 # include <assert.h>
10900 #endif
10901
10902 #undef $ac_func
10903
10904 /* Override any gcc2 internal prototype to avoid an error.  */
10905 #ifdef __cplusplus
10906 extern "C"
10907 {
10908 #endif
10909 /* We use char because int might match the return type of a gcc2
10910    builtin and then its argument prototype would still apply.  */
10911 char $ac_func ();
10912 /* The GNU C library defines this for functions which it implements
10913     to always fail with ENOSYS.  Some functions are actually named
10914     something starting with __ and the normal name is an alias.  */
10915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10916 choke me
10917 #else
10918 char (*f) () = $ac_func;
10919 #endif
10920 #ifdef __cplusplus
10921 }
10922 #endif
10923
10924 int
10925 main ()
10926 {
10927 return f != $ac_func;
10928   ;
10929   return 0;
10930 }
10931 _ACEOF
10932 rm -f conftest.$ac_objext conftest$ac_exeext
10933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934   (eval $ac_link) 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag"
10942                          || test ! -s conftest.err'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest$ac_exeext'
10949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950   (eval $ac_try) 2>&5
10951   ac_status=$?
10952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953   (exit $ac_status); }; }; then
10954   eval "$as_ac_var=yes"
10955 else
10956   echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 eval "$as_ac_var=no"
10960 fi
10961 rm -f conftest.err conftest.$ac_objext \
10962       conftest$ac_exeext conftest.$ac_ext
10963 fi
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10966 if test `eval echo '${'$as_ac_var'}'` = yes; then
10967   cat >>confdefs.h <<_ACEOF
10968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10969 _ACEOF
10970
10971 else
10972   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
10973 fi
10974 done
10975
10976
10977   :
10978
10979
10980
10981
10982
10983   if test $ac_cv_have_decl_strdup = no; then
10984     HAVE_DECL_STRDUP=0
10985   fi
10986   :
10987
10988
10989
10990
10991
10992
10993   :
10994
10995
10996
10997
10998
10999   if test $ac_cv_header_sys_socket_h = yes; then
11000     SYS_SOCKET_H=''
11001   else
11002
11003
11004 for ac_header in winsock2.h ws2tcpip.h
11005 do
11006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11008   echo "$as_me:$LINENO: checking for $ac_header" >&5
11009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11011   echo $ECHO_N "(cached) $ECHO_C" >&6
11012 fi
11013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11015 else
11016   # Is the header compilable?
11017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11019 cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 $ac_includes_default
11026 #include <$ac_header>
11027 _ACEOF
11028 rm -f conftest.$ac_objext
11029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11030   (eval $ac_compile) 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } &&
11037          { ac_try='test -z "$ac_c_werror_flag"
11038                          || test ! -s conftest.err'
11039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11040   (eval $ac_try) 2>&5
11041   ac_status=$?
11042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); }; } &&
11044          { ac_try='test -s conftest.$ac_objext'
11045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046   (eval $ac_try) 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   ac_header_compiler=yes
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 ac_header_compiler=no
11056 fi
11057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11059 echo "${ECHO_T}$ac_header_compiler" >&6
11060
11061 # Is the header present?
11062 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070 #include <$ac_header>
11071 _ACEOF
11072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11074   ac_status=$?
11075   grep -v '^ *+' conftest.er1 >conftest.err
11076   rm -f conftest.er1
11077   cat conftest.err >&5
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } >/dev/null; then
11080   if test -s conftest.err; then
11081     ac_cpp_err=$ac_c_preproc_warn_flag
11082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11083   else
11084     ac_cpp_err=
11085   fi
11086 else
11087   ac_cpp_err=yes
11088 fi
11089 if test -z "$ac_cpp_err"; then
11090   ac_header_preproc=yes
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095   ac_header_preproc=no
11096 fi
11097 rm -f conftest.err conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11099 echo "${ECHO_T}$ac_header_preproc" >&6
11100
11101 # So?  What about this header?
11102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11103   yes:no: )
11104     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11106     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11108     ac_header_preproc=yes
11109     ;;
11110   no:yes:* )
11111     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11113     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11114 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11115     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11117     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11118 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11121     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11123     (
11124       cat <<\_ASBOX
11125 ## ------------------------------------------ ##
11126 ## Report this to the AC_PACKAGE_NAME lists.  ##
11127 ## ------------------------------------------ ##
11128 _ASBOX
11129     ) |
11130       sed "s/^/$as_me: WARNING:     /" >&2
11131     ;;
11132 esac
11133 echo "$as_me:$LINENO: checking for $ac_header" >&5
11134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   eval "$as_ac_Header=\$ac_header_preproc"
11139 fi
11140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11142
11143 fi
11144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11145   cat >>confdefs.h <<_ACEOF
11146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11147 _ACEOF
11148
11149 fi
11150
11151 done
11152
11153     SYS_SOCKET_H='sys/socket.h'
11154   fi
11155
11156
11157        MKDIR_P='$(mkdir_p)'
11158
11159
11160
11161
11162 for ac_func in vasnprintf
11163 do
11164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11165 echo "$as_me:$LINENO: checking for $ac_func" >&5
11166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11167 if eval "test \"\${$as_ac_var+set}\" = set"; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170   cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11178 #define $ac_func innocuous_$ac_func
11179
11180 /* System header to define __stub macros and hopefully few prototypes,
11181     which can conflict with char $ac_func (); below.
11182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11183     <limits.h> exists even on freestanding compilers.  */
11184
11185 #ifdef __STDC__
11186 # include <limits.h>
11187 #else
11188 # include <assert.h>
11189 #endif
11190
11191 #undef $ac_func
11192
11193 /* Override any gcc2 internal prototype to avoid an error.  */
11194 #ifdef __cplusplus
11195 extern "C"
11196 {
11197 #endif
11198 /* We use char because int might match the return type of a gcc2
11199    builtin and then its argument prototype would still apply.  */
11200 char $ac_func ();
11201 /* The GNU C library defines this for functions which it implements
11202     to always fail with ENOSYS.  Some functions are actually named
11203     something starting with __ and the normal name is an alias.  */
11204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11205 choke me
11206 #else
11207 char (*f) () = $ac_func;
11208 #endif
11209 #ifdef __cplusplus
11210 }
11211 #endif
11212
11213 int
11214 main ()
11215 {
11216 return f != $ac_func;
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11223   (eval $ac_link) 2>conftest.er1
11224   ac_status=$?
11225   grep -v '^ *+' conftest.er1 >conftest.err
11226   rm -f conftest.er1
11227   cat conftest.err >&5
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -z "$ac_c_werror_flag"
11231                          || test ! -s conftest.err'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; } &&
11237          { ac_try='test -s conftest$ac_exeext'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; }; then
11243   eval "$as_ac_var=yes"
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 eval "$as_ac_var=no"
11249 fi
11250 rm -f conftest.err conftest.$ac_objext \
11251       conftest$ac_exeext conftest.$ac_ext
11252 fi
11253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256   cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 _ACEOF
11259
11260 else
11261   gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
11262 fi
11263 done
11264
11265   if test $ac_cv_func_vasnprintf = no; then
11266     gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
11267     gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
11268     gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11282 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
11283 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11284   echo $ECHO_N "(cached) $ECHO_C" >&6
11285 else
11286   cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h.  */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h.  */
11292 $ac_includes_default
11293 int
11294 main ()
11295 {
11296 if ((ptrdiff_t *) 0)
11297   return 0;
11298 if (sizeof (ptrdiff_t))
11299   return 0;
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11306   (eval $ac_compile) 2>conftest.er1
11307   ac_status=$?
11308   grep -v '^ *+' conftest.er1 >conftest.err
11309   rm -f conftest.er1
11310   cat conftest.err >&5
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } &&
11313          { ac_try='test -z "$ac_c_werror_flag"
11314                          || test ! -s conftest.err'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; } &&
11320          { ac_try='test -s conftest.$ac_objext'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; }; then
11326   ac_cv_type_ptrdiff_t=yes
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 ac_cv_type_ptrdiff_t=no
11332 fi
11333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334 fi
11335 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11336 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
11337 if test $ac_cv_type_ptrdiff_t = yes; then
11338
11339 cat >>confdefs.h <<_ACEOF
11340 #define HAVE_PTRDIFF_T 1
11341 _ACEOF
11342
11343
11344 fi
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356 for ac_func in snprintf wcslen
11357 do
11358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11359 echo "$as_me:$LINENO: checking for $ac_func" >&5
11360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11361 if eval "test \"\${$as_ac_var+set}\" = set"; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11372 #define $ac_func innocuous_$ac_func
11373
11374 /* System header to define __stub macros and hopefully few prototypes,
11375     which can conflict with char $ac_func (); below.
11376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11377     <limits.h> exists even on freestanding compilers.  */
11378
11379 #ifdef __STDC__
11380 # include <limits.h>
11381 #else
11382 # include <assert.h>
11383 #endif
11384
11385 #undef $ac_func
11386
11387 /* Override any gcc2 internal prototype to avoid an error.  */
11388 #ifdef __cplusplus
11389 extern "C"
11390 {
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393    builtin and then its argument prototype would still apply.  */
11394 char $ac_func ();
11395 /* The GNU C library defines this for functions which it implements
11396     to always fail with ENOSYS.  Some functions are actually named
11397     something starting with __ and the normal name is an alias.  */
11398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11399 choke me
11400 #else
11401 char (*f) () = $ac_func;
11402 #endif
11403 #ifdef __cplusplus
11404 }
11405 #endif
11406
11407 int
11408 main ()
11409 {
11410 return f != $ac_func;
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417   (eval $ac_link) 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } &&
11424          { ac_try='test -z "$ac_c_werror_flag"
11425                          || test ! -s conftest.err'
11426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427   (eval $ac_try) 2>&5
11428   ac_status=$?
11429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430   (exit $ac_status); }; } &&
11431          { ac_try='test -s conftest$ac_exeext'
11432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433   (eval $ac_try) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); }; }; then
11437   eval "$as_ac_var=yes"
11438 else
11439   echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 eval "$as_ac_var=no"
11443 fi
11444 rm -f conftest.err conftest.$ac_objext \
11445       conftest$ac_exeext conftest.$ac_ext
11446 fi
11447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11449 if test `eval echo '${'$as_ac_var'}'` = yes; then
11450   cat >>confdefs.h <<_ACEOF
11451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 _ACEOF
11453
11454 fi
11455 done
11456
11457
11458
11459
11460   fi
11461
11462
11463
11464   CFLAG_VISIBILITY=
11465   HAVE_VISIBILITY=0
11466   if test -n "$GCC"; then
11467     echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
11468 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6
11469     if test "${gl_cv_cc_visibility+set}" = set; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472
11473       gl_save_CFLAGS="$CFLAGS"
11474       CFLAGS="$CFLAGS -fvisibility=hidden"
11475       cat >conftest.$ac_ext <<_ACEOF
11476 /* confdefs.h.  */
11477 _ACEOF
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h.  */
11481 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11482          extern __attribute__((__visibility__("default"))) int exportedvar;
11483          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11484          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11485 int
11486 main ()
11487 {
11488
11489   ;
11490   return 0;
11491 }
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11495   (eval $ac_compile) 2>conftest.er1
11496   ac_status=$?
11497   grep -v '^ *+' conftest.er1 >conftest.err
11498   rm -f conftest.er1
11499   cat conftest.err >&5
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } &&
11502          { ac_try='test -z "$ac_c_werror_flag"
11503                          || test ! -s conftest.err'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; } &&
11509          { ac_try='test -s conftest.$ac_objext'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515   gl_cv_cc_visibility=yes
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 gl_cv_cc_visibility=no
11521 fi
11522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523       CFLAGS="$gl_save_CFLAGS"
11524 fi
11525
11526     echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
11527 echo "${ECHO_T}$gl_cv_cc_visibility" >&6
11528     if test $gl_cv_cc_visibility = yes; then
11529       CFLAG_VISIBILITY="-fvisibility=hidden"
11530       HAVE_VISIBILITY=1
11531     fi
11532   fi
11533
11534
11535
11536 cat >>confdefs.h <<_ACEOF
11537 #define HAVE_VISIBILITY $HAVE_VISIBILITY
11538 _ACEOF
11539
11540
11541
11542
11543
11544
11545 for ac_header in stdint.h
11546 do
11547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11549   echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 fi
11554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11556 else
11557   # Is the header compilable?
11558 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 $ac_includes_default
11567 #include <$ac_header>
11568 _ACEOF
11569 rm -f conftest.$ac_objext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11571   (eval $ac_compile) 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -z "$ac_c_werror_flag"
11579                          || test ! -s conftest.err'
11580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11581   (eval $ac_try) 2>&5
11582   ac_status=$?
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); }; } &&
11585          { ac_try='test -s conftest.$ac_objext'
11586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587   (eval $ac_try) 2>&5
11588   ac_status=$?
11589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); }; }; then
11591   ac_header_compiler=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596 ac_header_compiler=no
11597 fi
11598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11600 echo "${ECHO_T}$ac_header_compiler" >&6
11601
11602 # Is the header present?
11603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11605 cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611 #include <$ac_header>
11612 _ACEOF
11613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } >/dev/null; then
11621   if test -s conftest.err; then
11622     ac_cpp_err=$ac_c_preproc_warn_flag
11623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11624   else
11625     ac_cpp_err=
11626   fi
11627 else
11628   ac_cpp_err=yes
11629 fi
11630 if test -z "$ac_cpp_err"; then
11631   ac_header_preproc=yes
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636   ac_header_preproc=no
11637 fi
11638 rm -f conftest.err conftest.$ac_ext
11639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11640 echo "${ECHO_T}$ac_header_preproc" >&6
11641
11642 # So?  What about this header?
11643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11644   yes:no: )
11645     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11649     ac_header_preproc=yes
11650     ;;
11651   no:yes:* )
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11655 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11656     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11658     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11659 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11662     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11664     (
11665       cat <<\_ASBOX
11666 ## ------------------------------------------ ##
11667 ## Report this to the AC_PACKAGE_NAME lists.  ##
11668 ## ------------------------------------------ ##
11669 _ASBOX
11670     ) |
11671       sed "s/^/$as_me: WARNING:     /" >&2
11672     ;;
11673 esac
11674 echo "$as_me:$LINENO: checking for $ac_header" >&5
11675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   eval "$as_ac_Header=\$ac_header_preproc"
11680 fi
11681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11683
11684 fi
11685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11686   cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11688 _ACEOF
11689
11690 fi
11691
11692 done
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702 # Check whether --enable-largefile or --disable-largefile was given.
11703 if test "${enable_largefile+set}" = set; then
11704   enableval="$enable_largefile"
11705
11706 fi;
11707 if test "$enable_largefile" != no; then
11708
11709   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
11710 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
11711 if test "${ac_cv_sys_largefile_CC+set}" = set; then
11712   echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714   ac_cv_sys_largefile_CC=no
11715      if test "$GCC" != yes; then
11716        ac_save_CC=$CC
11717        while :; do
11718          # IRIX 6.2 and later do not support large files by default,
11719          # so use the C compiler's -n32 option if that helps.
11720          cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726 #include <sys/types.h>
11727  /* Check that off_t can represent 2**63 - 1 correctly.
11728     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11729     since some C++ compilers masquerading as C compilers
11730     incorrectly reject 9223372036854775807.  */
11731 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11732   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11733                        && LARGE_OFF_T % 2147483647 == 1)
11734                       ? 1 : -1];
11735 int
11736 main ()
11737 {
11738
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743          rm -f conftest.$ac_objext
11744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745   (eval $ac_compile) 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } &&
11752          { ac_try='test -z "$ac_c_werror_flag"
11753                          || test ! -s conftest.err'
11754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755   (eval $ac_try) 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; } &&
11759          { ac_try='test -s conftest.$ac_objext'
11760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761   (eval $ac_try) 2>&5
11762   ac_status=$?
11763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764   (exit $ac_status); }; }; then
11765   break
11766 else
11767   echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 fi
11771 rm -f conftest.err conftest.$ac_objext
11772          CC="$CC -n32"
11773          rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775   (eval $ac_compile) 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag"
11783                          || test ! -s conftest.err'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; } &&
11789          { ac_try='test -s conftest.$ac_objext'
11790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791   (eval $ac_try) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   ac_cv_sys_largefile_CC=' -n32'; break
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 fi
11801 rm -f conftest.err conftest.$ac_objext
11802          break
11803        done
11804        CC=$ac_save_CC
11805        rm -f conftest.$ac_ext
11806     fi
11807 fi
11808 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
11809 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
11810   if test "$ac_cv_sys_largefile_CC" != no; then
11811     CC=$CC$ac_cv_sys_largefile_CC
11812   fi
11813
11814   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11815 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
11816 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   while :; do
11820   ac_cv_sys_file_offset_bits=no
11821   cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 #include <sys/types.h>
11828  /* Check that off_t can represent 2**63 - 1 correctly.
11829     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11830     since some C++ compilers masquerading as C compilers
11831     incorrectly reject 9223372036854775807.  */
11832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11833   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11834                        && LARGE_OFF_T % 2147483647 == 1)
11835                       ? 1 : -1];
11836 int
11837 main ()
11838 {
11839
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846   (eval $ac_compile) 2>conftest.er1
11847   ac_status=$?
11848   grep -v '^ *+' conftest.er1 >conftest.err
11849   rm -f conftest.er1
11850   cat conftest.err >&5
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); } &&
11853          { ac_try='test -z "$ac_c_werror_flag"
11854                          || test ! -s conftest.err'
11855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11856   (eval $ac_try) 2>&5
11857   ac_status=$?
11858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); }; } &&
11860          { ac_try='test -s conftest.$ac_objext'
11861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862   (eval $ac_try) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; }; then
11866   break
11867 else
11868   echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 fi
11872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 #define _FILE_OFFSET_BITS 64
11880 #include <sys/types.h>
11881  /* Check that off_t can represent 2**63 - 1 correctly.
11882     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11883     since some C++ compilers masquerading as C compilers
11884     incorrectly reject 9223372036854775807.  */
11885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11886   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11887                        && LARGE_OFF_T % 2147483647 == 1)
11888                       ? 1 : -1];
11889 int
11890 main ()
11891 {
11892
11893   ;
11894   return 0;
11895 }
11896 _ACEOF
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899   (eval $ac_compile) 2>conftest.er1
11900   ac_status=$?
11901   grep -v '^ *+' conftest.er1 >conftest.err
11902   rm -f conftest.er1
11903   cat conftest.err >&5
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); } &&
11906          { ac_try='test -z "$ac_c_werror_flag"
11907                          || test ! -s conftest.err'
11908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909   (eval $ac_try) 2>&5
11910   ac_status=$?
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); }; } &&
11913          { ac_try='test -s conftest.$ac_objext'
11914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915   (eval $ac_try) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); }; }; then
11919   ac_cv_sys_file_offset_bits=64; break
11920 else
11921   echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 fi
11925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11926   break
11927 done
11928 fi
11929 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11930 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11931 if test "$ac_cv_sys_file_offset_bits" != no; then
11932
11933 cat >>confdefs.h <<_ACEOF
11934 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11935 _ACEOF
11936
11937 fi
11938 rm -f conftest*
11939   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
11940 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
11941 if test "${ac_cv_sys_large_files+set}" = set; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944   while :; do
11945   ac_cv_sys_large_files=no
11946   cat >conftest.$ac_ext <<_ACEOF
11947 /* confdefs.h.  */
11948 _ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h.  */
11952 #include <sys/types.h>
11953  /* Check that off_t can represent 2**63 - 1 correctly.
11954     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11955     since some C++ compilers masquerading as C compilers
11956     incorrectly reject 9223372036854775807.  */
11957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11958   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11959                        && LARGE_OFF_T % 2147483647 == 1)
11960                       ? 1 : -1];
11961 int
11962 main ()
11963 {
11964
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11971   (eval $ac_compile) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest.$ac_objext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   break
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 fi
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998   cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 #define _LARGE_FILES 1
12005 #include <sys/types.h>
12006  /* Check that off_t can represent 2**63 - 1 correctly.
12007     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12008     since some C++ compilers masquerading as C compilers
12009     incorrectly reject 9223372036854775807.  */
12010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12011   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12012                        && LARGE_OFF_T % 2147483647 == 1)
12013                       ? 1 : -1];
12014 int
12015 main ()
12016 {
12017
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 rm -f conftest.$ac_objext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12024   (eval $ac_compile) 2>conftest.er1
12025   ac_status=$?
12026   grep -v '^ *+' conftest.er1 >conftest.err
12027   rm -f conftest.er1
12028   cat conftest.err >&5
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); } &&
12031          { ac_try='test -z "$ac_c_werror_flag"
12032                          || test ! -s conftest.err'
12033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034   (eval $ac_try) 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; } &&
12038          { ac_try='test -s conftest.$ac_objext'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; }; then
12044   ac_cv_sys_large_files=1; break
12045 else
12046   echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 fi
12050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12051   break
12052 done
12053 fi
12054 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12055 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
12056 if test "$ac_cv_sys_large_files" != no; then
12057
12058 cat >>confdefs.h <<_ACEOF
12059 #define _LARGE_FILES $ac_cv_sys_large_files
12060 _ACEOF
12061
12062 fi
12063 rm -f conftest*
12064 fi
12065
12066
12067 for ac_prog in grep
12068 do
12069   # Extract the first word of "$ac_prog", so it can be a program name with args.
12070 set dummy $ac_prog; ac_word=$2
12071 echo "$as_me:$LINENO: checking for $ac_word" >&5
12072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12073 if test "${ac_cv_path_GREP+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   case $GREP in
12077   [\\/]* | ?:[\\/]*)
12078   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
12079   ;;
12080   *)
12081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $LOCSYSPATH
12083 do
12084   IFS=$as_save_IFS
12085   test -z "$as_dir" && as_dir=.
12086   for ac_exec_ext in '' $ac_executable_extensions; do
12087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
12089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12090     break 2
12091   fi
12092 done
12093 done
12094
12095   ;;
12096 esac
12097 fi
12098 GREP=$ac_cv_path_GREP
12099
12100 if test -n "$GREP"; then
12101   echo "$as_me:$LINENO: result: $GREP" >&5
12102 echo "${ECHO_T}$GREP" >&6
12103 else
12104   echo "$as_me:$LINENO: result: no" >&5
12105 echo "${ECHO_T}no" >&6
12106 fi
12107
12108   test -n "$GREP" && break
12109 done
12110
12111 if test -z "$GREP"; then
12112     GREP=grep
12113 fi
12114
12115 cat >>confdefs.h <<_ACEOF
12116 #define GREP "$GREP"
12117 _ACEOF
12118
12119 for ac_prog in egrep
12120 do
12121   # Extract the first word of "$ac_prog", so it can be a program name with args.
12122 set dummy $ac_prog; ac_word=$2
12123 echo "$as_me:$LINENO: checking for $ac_word" >&5
12124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12125 if test "${ac_cv_path_EGREP+set}" = set; then
12126   echo $ECHO_N "(cached) $ECHO_C" >&6
12127 else
12128   case $EGREP in
12129   [\\/]* | ?:[\\/]*)
12130   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12131   ;;
12132   *)
12133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $LOCSYSPATH
12135 do
12136   IFS=$as_save_IFS
12137   test -z "$as_dir" && as_dir=.
12138   for ac_exec_ext in '' $ac_executable_extensions; do
12139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12142     break 2
12143   fi
12144 done
12145 done
12146
12147   ;;
12148 esac
12149 fi
12150 EGREP=$ac_cv_path_EGREP
12151
12152 if test -n "$EGREP"; then
12153   echo "$as_me:$LINENO: result: $EGREP" >&5
12154 echo "${ECHO_T}$EGREP" >&6
12155 else
12156   echo "$as_me:$LINENO: result: no" >&5
12157 echo "${ECHO_T}no" >&6
12158 fi
12159
12160   test -n "$EGREP" && break
12161 done
12162
12163
12164 for ac_prog in lint
12165 do
12166   # Extract the first word of "$ac_prog", so it can be a program name with args.
12167 set dummy $ac_prog; ac_word=$2
12168 echo "$as_me:$LINENO: checking for $ac_word" >&5
12169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12170 if test "${ac_cv_path_AMLINT+set}" = set; then
12171   echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173   case $AMLINT in
12174   [\\/]* | ?:[\\/]*)
12175   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
12176   ;;
12177   *)
12178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
12180 for as_dir in $as_dummy
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184   for ac_exec_ext in '' $ac_executable_extensions; do
12185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12186     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
12187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191 done
12192
12193   ;;
12194 esac
12195 fi
12196 AMLINT=$ac_cv_path_AMLINT
12197
12198 if test -n "$AMLINT"; then
12199   echo "$as_me:$LINENO: result: $AMLINT" >&5
12200 echo "${ECHO_T}$AMLINT" >&6
12201 else
12202   echo "$as_me:$LINENO: result: no" >&5
12203 echo "${ECHO_T}no" >&6
12204 fi
12205
12206   test -n "$AMLINT" && break
12207 done
12208
12209 if test ! -z "$AMLINT"; then
12210   $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
12211   if test $? -eq 0; then
12212     AMLINTFLAGS="-n -s -u -m -x"
12213     AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
12214     AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
12215     AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
12216     AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
12217     AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
12218     AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
12219     AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
12220     AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
12221     AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
12222     AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
12223     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
12224     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
12225     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
12226     AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
12227     AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
12228     AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
12229     AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
12230     AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
12231     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
12232     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
12233     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
12234     AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
12235     AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
12236     AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
12237     AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
12238     AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
12239     AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
12240     AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
12241     AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
12242     AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
12243     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
12244     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
12245     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
12246     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
12247     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
12248     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
12249     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
12250     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
12251     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
12252     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
12253     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
12254     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
12255     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
12256     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
12257     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
12258     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
12259     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
12260     AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
12261     AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
12262     AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
12263   else
12264     AMLINTFLAGS=""
12265   fi
12266 else
12267   for ac_prog in splint
12268 do
12269   # Extract the first word of "$ac_prog", so it can be a program name with args.
12270 set dummy $ac_prog; ac_word=$2
12271 echo "$as_me:$LINENO: checking for $ac_word" >&5
12272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12273 if test "${ac_cv_path_AMLINT+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276   case $AMLINT in
12277   [\\/]* | ?:[\\/]*)
12278   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
12279   ;;
12280   *)
12281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $SYSLOCPATH
12283 do
12284   IFS=$as_save_IFS
12285   test -z "$as_dir" && as_dir=.
12286   for ac_exec_ext in '' $ac_executable_extensions; do
12287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12288     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
12289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12290     break 2
12291   fi
12292 done
12293 done
12294
12295   ;;
12296 esac
12297 fi
12298 AMLINT=$ac_cv_path_AMLINT
12299
12300 if test -n "$AMLINT"; then
12301   echo "$as_me:$LINENO: result: $AMLINT" >&5
12302 echo "${ECHO_T}$AMLINT" >&6
12303 else
12304   echo "$as_me:$LINENO: result: no" >&5
12305 echo "${ECHO_T}no" >&6
12306 fi
12307
12308   test -n "$AMLINT" && break
12309 done
12310
12311   if test ! -z "$AMLINT"; then
12312     AMLINT="splint"
12313   fi
12314   AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
12315 fi
12316
12317
12318
12319 # Check whether --with-includes or --without-includes was given.
12320 if test "${with_includes+set}" = set; then
12321   withval="$with_includes"
12322
12323         case "$withval" in
12324         "" | y | ye | yes | n | no)
12325             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
12326 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
12327    { (exit 1); exit 1; }; }
12328           ;;
12329         esac
12330         INCLUDE_DIRS="$withval"
12331
12332 fi;
12333
12334 if test "$INCLUDE_DIRS"; then
12335         for dir in $INCLUDE_DIRS; do
12336             if test -d "$dir"; then
12337                 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
12338             else
12339                 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
12340 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
12341             fi
12342         done
12343 fi
12344
12345
12346 # Check whether --with-libraries or --without-libraries was given.
12347 if test "${with_libraries+set}" = set; then
12348   withval="$with_libraries"
12349
12350         case "$withval" in
12351         "" | y | ye | yes | n | no)
12352             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
12353 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
12354    { (exit 1); exit 1; }; }
12355           ;;
12356         esac
12357         LIBRARY_DIRS="$withval"
12358
12359 fi;
12360
12361 if test "$LIBRARY_DIRS"; then
12362         for dir in $LIBRARY_DIRS; do
12363             if test -d "$dir"; then
12364                 case "$target" in
12365                   *-solaris2*,*-netbsd*)
12366                         AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
12367                         ;;
12368                 esac
12369                 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
12370             else
12371                 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
12372 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
12373             fi
12374         done
12375 fi
12376
12377
12378
12379 # Check whether --with-dumperdir or --without-dumperdir was given.
12380 if test "${with_dumperdir+set}" = set; then
12381   withval="$with_dumperdir"
12382
12383         case "$withval" in
12384         "" | y | ye | yes | n | no)
12385             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
12386 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
12387    { (exit 1); exit 1; }; }
12388           ;;
12389         esac
12390         DUMPER_DIR="$withval"
12391
12392 else
12393
12394         test "x$prefix" = xNONE && prefix=$ac_default_prefix
12395         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
12396         DUMPER_DIR=$exec_prefix/dumper
12397
12398
12399 fi;
12400 DUMPER_DIR=`(
12401     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12402     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
12403     eval echo "$DUMPER_DIR"
12404 )`
12405
12406 cat >>confdefs.h <<_ACEOF
12407 #define DUMPER_DIR "$DUMPER_DIR"
12408 _ACEOF
12409
12410
12411
12412
12413 # Check whether --with-configdir or --without-configdir was given.
12414 if test "${with_configdir+set}" = set; then
12415   withval="$with_configdir"
12416
12417         case "$withval" in
12418         "" | y | ye | yes | n | no)
12419             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
12420 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
12421    { (exit 1); exit 1; }; }
12422           ;;
12423         *) CONFIG_DIR="$withval"
12424           ;;
12425         esac
12426
12427 else
12428   : ${CONFIG_DIR="$sysconfdir/amanda"}
12429
12430 fi;
12431 CONFIG_DIR=`(
12432     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12433     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
12434     eval echo "$CONFIG_DIR"
12435 )`
12436
12437 cat >>confdefs.h <<_ACEOF
12438 #define CONFIG_DIR "$CONFIG_DIR"
12439 _ACEOF
12440
12441
12442
12443
12444 # Check whether --with-indexdir or --without-indexdir was given.
12445 if test "${with_indexdir+set}" = set; then
12446   withval="$with_indexdir"
12447      { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
12448 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
12449    { (exit 1); exit 1; }; }
12450
12451 fi;
12452
12453
12454 # Check whether --with-dbdir or --without-dbdir was given.
12455 if test "${with_dbdir+set}" = set; then
12456   withval="$with_dbdir"
12457      { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
12458 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
12459    { (exit 1); exit 1; }; }
12460
12461 fi;
12462
12463
12464 # Check whether --with-logdir or --without-logdir was given.
12465 if test "${with_logdir+set}" = set; then
12466   withval="$with_logdir"
12467      { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
12468 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
12469    { (exit 1); exit 1; }; }
12470
12471 fi;
12472
12473
12474 # Check whether --with-suffixes or --without-suffixes was given.
12475 if test "${with_suffixes+set}" = set; then
12476   withval="$with_suffixes"
12477   USE_VERSION_SUFFIXES=$withval
12478 else
12479   : ${USE_VERSION_SUFFIXES=no}
12480
12481 fi;
12482 case "$USE_VERSION_SUFFIXES" in
12483 y | ye | yes)
12484
12485 cat >>confdefs.h <<\_ACEOF
12486 #define USE_VERSION_SUFFIXES 1
12487 _ACEOF
12488
12489
12490     program_suffix="-$VERSION"
12491     # This is from the output of configure.in.
12492     if test "x$program_transform_name" = xs,x,x,; then
12493         program_transform_name=
12494     else
12495         # Double any \ or $.  echo might interpret backslashes.
12496         cat <<\EOF_SED > conftestsed
12497 s,\\,\\\\,g; s,\$,$$,g
12498 EOF_SED
12499         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
12500         rm -f conftestsed
12501     fi
12502     test "x$program_prefix" != xNONE &&
12503         program_transform_name="s,^,${program_prefix},; $program_transform_name"
12504     # Use a double $ so make ignores it.
12505     test "x$program_suffix" != xNONE &&
12506         program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
12507
12508     # sed with no file args requires a program.
12509     test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
12510     # Remove empty command
12511     cat <<\EOF_SED > conftestsed
12512 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
12513 EOF_SED
12514     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
12515     rm -f conftestsed
12516   ;;
12517 n | no) USE_VERSION_SUFFIXES=no
12518   ;;
12519 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
12520 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
12521    { (exit 1); exit 1; }; }
12522   ;;
12523 esac
12524
12525
12526 case "$target" in
12527     *-hp-*)
12528         CLIENT_SCRIPTS_OPT=amhpfixdevs
12529         ;;
12530     *-sni-sysv4)
12531         CLIENT_SCRIPTS_OPT=amsinixfixdevs
12532         ;;
12533     *)
12534         CLIENT_SCRIPTS_OPT=
12535         ;;
12536 esac
12537
12538
12539
12540
12541 # Check whether --with-client-only or --without-client-only was given.
12542 if test "${with_client_only+set}" = set; then
12543   withval="$with_client_only"
12544      { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
12545 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
12546    { (exit 1); exit 1; }; }
12547
12548 fi;
12549
12550 # Check whether --with-server-only or --without-server-only was given.
12551 if test "${with_server_only+set}" = set; then
12552   withval="$with_server_only"
12553      { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
12554 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
12555    { (exit 1); exit 1; }; }
12556
12557 fi;
12558
12559
12560 # Check whether --with-client or --without-client was given.
12561 if test "${with_client+set}" = set; then
12562   withval="$with_client"
12563
12564         case "$withval" in
12565         y | ye | yes) NO_CLIENT_MODE=false;;
12566         n | no) NO_CLIENT_MODE=true;;
12567         *)
12568             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
12569 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
12570    { (exit 1); exit 1; }; }
12571           ;;
12572         esac
12573
12574
12575 fi;
12576
12577
12578 # Check whether --with-server or --without-server was given.
12579 if test "${with_server+set}" = set; then
12580   withval="$with_server"
12581
12582         case "$withval" in
12583         y | ye | yes) NO_SERVER_MODE=false ;;
12584         n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
12585         *)
12586             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&5
12587 echo "$as_me: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&2;}
12588    { (exit 1); exit 1; }; }
12589           ;;
12590         esac
12591
12592
12593 fi;
12594 if test "x${NO_SERVER_MODE+set}" != xset ; then
12595    NO_SERVER_MODE=false
12596 fi
12597
12598
12599 # Check whether --with-restore or --without-restore was given.
12600 if test "${with_restore+set}" = set; then
12601   withval="$with_restore"
12602
12603         case "$withval" in
12604         y | ye | yes) NO_RESTORE_MODE=false;;
12605         n | no) NO_RESTORE_MODE=true;;
12606         *)
12607             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
12608 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
12609    { (exit 1); exit 1; }; }
12610           ;;
12611         esac
12612
12613
12614 fi;
12615 if test "x${NO_RESTORE_MODE+set}" != xset ; then
12616    NO_RESTORE_MODE=${NO_SERVER_MODE-false}
12617 fi
12618
12619 if ${NO_SERVER_MODE-false}; then
12620    if ${NO_RESTORE_MODE-false}; then
12621                         true
12622    else
12623       { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
12624 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
12625    { (exit 1); exit 1; }; }
12626    fi
12627 fi
12628
12629
12630 # Check whether --with-amrecover or --without-amrecover was given.
12631 if test "${with_amrecover+set}" = set; then
12632   withval="$with_amrecover"
12633
12634         case "$withval" in
12635         y | ye | yes)
12636             if ${NO_CLIENT_MODE-false}; then
12637                 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
12638 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
12639    { (exit 1); exit 1; }; }
12640             fi
12641             NO_RECOVER_MODE=false;;
12642         n | no) NO_RECOVER_MODE=true;;
12643         *)
12644             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
12645 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
12646    { (exit 1); exit 1; }; }
12647           ;;
12648         esac
12649
12650
12651 fi;
12652
12653
12654 # Check whether --with-index-server or --without-index-server was given.
12655 if test "${with_index_server+set}" = set; then
12656   withval="$with_index_server"
12657
12658         case "$withval" in
12659         "" | y | ye | yes | n | no)
12660             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
12661 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
12662    { (exit 1); exit 1; }; }
12663           ;;
12664         *) DEFAULT_SERVER="$withval"
12665           ;;
12666         esac
12667
12668 else
12669   : ${DEFAULT_SERVER=`uname -n`}
12670
12671 fi;
12672
12673 cat >>confdefs.h <<_ACEOF
12674 #define DEFAULT_SERVER "$DEFAULT_SERVER"
12675 _ACEOF
12676
12677
12678
12679
12680 # Check whether --with-force-uid or --without-force-uid was given.
12681 if test "${with_force_uid+set}" = set; then
12682   withval="$with_force_uid"
12683   FORCE_USERID="$withval"
12684 else
12685   : ${FORCE_USERID=yes}
12686
12687 fi;
12688 case "$FORCE_USERID" in
12689 y | ye | yes)
12690 cat >>confdefs.h <<\_ACEOF
12691 #define FORCE_USERID 1
12692 _ACEOF
12693
12694   ;;
12695 n | no) :
12696   ;;
12697 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
12698 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
12699    { (exit 1); exit 1; }; }
12700 esac
12701
12702
12703 # Check whether --with-user or --without-user was given.
12704 if test "${with_user+set}" = set; then
12705   withval="$with_user"
12706
12707         case "$withval" in
12708         "" | y | ye | yes | n | no)
12709             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
12710 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
12711    { (exit 1); exit 1; }; }
12712           ;;
12713         *) CLIENT_LOGIN="$withval"
12714           ;;
12715         esac
12716
12717
12718 fi;
12719 if test "x${CLIENT_LOGIN+set}" != xset; then
12720     { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
12721 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
12722    { (exit 1); exit 1; }; }
12723 fi
12724
12725 cat >>confdefs.h <<_ACEOF
12726 #define CLIENT_LOGIN "$CLIENT_LOGIN"
12727 _ACEOF
12728
12729
12730
12731
12732 # Check whether --with-group or --without-group was given.
12733 if test "${with_group+set}" = set; then
12734   withval="$with_group"
12735
12736         case "$withval" in
12737         "" | y | ye | yes | n | no)
12738             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
12739 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
12740    { (exit 1); exit 1; }; }
12741           ;;
12742         *) SETUID_GROUP="$withval"
12743           ;;
12744         esac
12745
12746
12747 fi;
12748 if test "x${SETUID_GROUP+set}" != xset; then
12749     { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
12750 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
12751    { (exit 1); exit 1; }; }
12752 fi
12753
12754
12755
12756 # Check whether --with-owner or --without-owner was given.
12757 if test "${with_owner+set}" = set; then
12758   withval="$with_owner"
12759
12760         case "$withval" in
12761         "" | y | ye | yes | n | no)
12762             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
12763 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
12764    { (exit 1); exit 1; }; }
12765           ;;
12766         *) BINARY_OWNER="$withval"
12767           ;;
12768         esac
12769
12770
12771 fi;
12772 if test "x${BINARY_OWNER+set}" != xset ; then
12773    BINARY_OWNER=$CLIENT_LOGIN
12774 fi
12775
12776 cat >>confdefs.h <<_ACEOF
12777 #define BINARY_OWNER "$BINARY_OWNER"
12778 _ACEOF
12779
12780
12781
12782
12783 # Check whether --with-rundump or --without-rundump was given.
12784 if test "${with_rundump+set}" = set; then
12785   withval="$with_rundump"
12786
12787     case "$withval" in
12788         n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
12789         *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
12790 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
12791    { (exit 1); exit 1; }; };;
12792     esac
12793
12794
12795 fi;
12796
12797
12798 # Check whether --with-config or --without-config was given.
12799 if test "${with_config+set}" = set; then
12800   withval="$with_config"
12801
12802         case "$withval" in
12803         "" | y | ye | yes | n | no)
12804             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
12805 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
12806    { (exit 1); exit 1; }; }
12807           ;;
12808         *) DEFAULT_CONFIG="$withval"
12809           ;;
12810         esac
12811
12812 else
12813   : ${DEFAULT_CONFIG=DailySet1}
12814
12815 fi;
12816
12817 cat >>confdefs.h <<_ACEOF
12818 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
12819 _ACEOF
12820
12821
12822
12823
12824 # Check whether --with-tape-server or --without-tape-server was given.
12825 if test "${with_tape_server+set}" = set; then
12826   withval="$with_tape_server"
12827
12828         case "$withval" in
12829         "" | y | ye | yes | n | no)
12830             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
12831 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
12832    { (exit 1); exit 1; }; }
12833           ;;
12834         *) DEFAULT_TAPE_SERVER="$withval"
12835           ;;
12836         esac
12837
12838 else
12839   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
12840
12841 fi;
12842
12843 cat >>confdefs.h <<_ACEOF
12844 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
12845 _ACEOF
12846
12847
12848
12849
12850 # Check whether --with-tape-device or --without-tape-device was given.
12851 if test "${with_tape_device+set}" = set; then
12852   withval="$with_tape_device"
12853
12854         case "$withval" in
12855         "" | y | ye | yes | n | no)
12856             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
12857 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
12858    { (exit 1); exit 1; }; }
12859           ;;
12860         *) DEFAULT_TAPE_DEVICE="$withval"
12861           ;;
12862         esac
12863
12864
12865 fi;
12866
12867 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
12868
12869 cat >>confdefs.h <<_ACEOF
12870 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
12871 _ACEOF
12872
12873
12874     EXAMPLE_TAPEDEV=$DEFAULT_TAPE_DEVICE
12875 else
12876     EXAMPLE_TAPEDEV="/dev/null"
12877 fi
12878
12879
12880
12881 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
12882 if test "${with_ftape_raw_device+set}" = set; then
12883   withval="$with_ftape_raw_device"
12884
12885         case "$withval" in
12886         "" | y | ye | yes | n | no)
12887             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
12888 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
12889    { (exit 1); exit 1; }; }
12890           ;;
12891         *) DEFAULT_RAW_TAPE_DEVICE="$withval"
12892           ;;
12893         esac
12894
12895 else
12896
12897         if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
12898             echo "$as_me:$LINENO: checking for raw ftape device" >&5
12899 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
12900                     raw_tape_dev=/dev/null
12901                                 for num in 3 2 1 0 ; do
12902                     td=/dev/rawft${num}
12903                     if test -r $td; then
12904                         raw_tape_dev=$td
12905                     fi
12906                 done
12907             DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
12908             echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
12909 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
12910         fi
12911
12912
12913 fi;
12914
12915 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
12916     DEFAULT_RAW_TAPE_DEVICE=/dev/null
12917 fi
12918
12919
12920 cat >>confdefs.h <<_ACEOF
12921 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
12922 _ACEOF
12923
12924
12925
12926
12927 # Check whether --with-rew-tape or --without-rew-tape was given.
12928 if test "${with_rew_tape+set}" = set; then
12929   withval="$with_rew_tape"
12930      { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
12931 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
12932    { (exit 1); exit 1; }; }
12933
12934 fi;
12935
12936
12937 # Check whether --with-norew-tape or --without-norew-tape was given.
12938 if test "${with_norew_tape+set}" = set; then
12939   withval="$with_norew_tape"
12940      { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
12941 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
12942    { (exit 1); exit 1; }; }
12943
12944 fi;
12945
12946
12947 # Check whether --with-changer-device or --without-changer-device was given.
12948 if test "${with_changer_device+set}" = set; then
12949   withval="$with_changer_device"
12950
12951         case "$withval" in
12952         "" | y | ye | yes | n | no)
12953             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
12954 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
12955    { (exit 1); exit 1; }; }
12956           ;;
12957         *) DEFAULT_CHANGER_DEVICE="$withval"
12958           ;;
12959         esac
12960
12961 else
12962
12963         if test -z "$DEFAULT_CHANGER_DEVICE" &&
12964            test -f /dev/ch0; then
12965             DEFAULT_CHANGER_DEVICE=/dev/ch0
12966         fi
12967
12968
12969 fi;
12970
12971 if test -z "$DEFAULT_CHANGER_DEVICE"; then
12972     DEFAULT_CHANGER_DEVICE=/dev/null
12973 fi
12974
12975
12976 cat >>confdefs.h <<_ACEOF
12977 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
12978 _ACEOF
12979
12980
12981
12982
12983 # Check whether --with-fqdn or --without-fqdn was given.
12984 if test "${with_fqdn+set}" = set; then
12985   withval="$with_fqdn"
12986   USE_FQDN=$withval
12987 else
12988   : ${USE_FQDN=no}
12989
12990 fi;
12991 case "$USE_FQDN" in
12992 n | no) : ;;
12993 y |  ye | yes)
12994 cat >>confdefs.h <<\_ACEOF
12995 #define USE_FQDN 1
12996 _ACEOF
12997
12998   ;;
12999 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
13000 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
13001    { (exit 1); exit 1; }; }
13002   ;;
13003 esac
13004
13005
13006 # Check whether --with-broken-fsf or --without-broken-fsf was given.
13007 if test "${with_broken_fsf+set}" = set; then
13008   withval="$with_broken_fsf"
13009   HAVE_BROKEN_FSF=$withval
13010 else
13011   : ${HAVE_BROKEN_FSF=no}
13012
13013 fi;
13014 case "$HAVE_BROKEN_FSF" in
13015 n | no) : ;;
13016 y |  ye | yes)
13017 cat >>confdefs.h <<\_ACEOF
13018 #define HAVE_BROKEN_FSF 1
13019 _ACEOF
13020
13021   ;;
13022 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
13023 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
13024    { (exit 1); exit 1; }; }
13025   ;;
13026 esac
13027
13028
13029 # Check whether --with-reuseports or --without-reuseports was given.
13030 if test "${with_reuseports+set}" = set; then
13031   withval="$with_reuseports"
13032    case "$withval" in
13033         y | ye | yes)
13034           REUSEADDR=no;;
13035         n | no)
13036           REUSEADDR=yes;;
13037         *)
13038           REUSEADDR=no;;
13039       esac
13040
13041 else
13042    REUSEADDR=yes;
13043 fi;
13044 case "$REUSEADDR" in
13045 n | no) :
13046     ;;
13047 y |  ye | yes)
13048
13049 cat >>confdefs.h <<\_ACEOF
13050 #define USE_REUSEADDR 1
13051 _ACEOF
13052
13053     ;;
13054 *)
13055     { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-reuseports option." >&5
13056 echo "$as_me: error: *** You must not supply an argument to --with-reuseports option." >&2;}
13057    { (exit 1); exit 1; }; }
13058     ;;
13059 esac
13060
13061
13062 # Check whether --with-gnutar or --without-gnutar was given.
13063 if test "${with_gnutar+set}" = set; then
13064   withval="$with_gnutar"
13065
13066         case "$withval" in
13067             /*) GNUTAR="$withval";;
13068             y|ye|yes) :;;
13069             n|no) GNUTAR=;;
13070             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
13071 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
13072    { (exit 1); exit 1; }; };;
13073         esac
13074
13075
13076 fi;
13077
13078
13079 # Check whether --with-smbclient or --without-smbclient was given.
13080 if test "${with_smbclient+set}" = set; then
13081   withval="$with_smbclient"
13082
13083         case "$withval" in
13084             /*) SAMBA_CLIENT="$withval";;
13085             y|ye|yes) :;;
13086             n|no) SAMBA_CLIENT=;;
13087             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
13088 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
13089    { (exit 1); exit 1; }; };;
13090         esac
13091
13092
13093 fi;
13094
13095
13096 # Check whether --with-samba-user or --without-samba-user was given.
13097 if test "${with_samba_user+set}" = set; then
13098   withval="$with_samba_user"
13099       { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
13100 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
13101    { (exit 1); exit 1; }; }
13102
13103
13104 fi;
13105
13106
13107 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
13108 if test "${with_gnutar_listdir+set}" = set; then
13109   withval="$with_gnutar_listdir"
13110
13111         case "$withval" in
13112             n | no)             unset GNUTAR_LISTDIR ;;
13113             y | ye | yes)       : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
13114             /*)                 GNUTAR_LISTDIR="$withval" ;;
13115             *)                  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
13116 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
13117    { (exit 1); exit 1; }; }
13118         esac
13119
13120 else
13121   : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
13122
13123 fi;
13124 if test "$GNUTAR_LISTDIR"; then
13125     GNUTAR_LISTDIR=`(
13126         test "x$prefix" = xNONE && prefix=$ac_default_prefix
13127         eval echo "$GNUTAR_LISTDIR"
13128     )`
13129
13130 cat >>confdefs.h <<_ACEOF
13131 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
13132 _ACEOF
13133
13134     GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
13135 else
13136     GNUTAR_LISTED_INCREMENTAL_DIRX=
13137 fi
13138
13139
13140
13141 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
13142 if test "${with_gnutar_listed_incremental+set}" = set; then
13143   withval="$with_gnutar_listed_incremental"
13144       { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
13145 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
13146    { (exit 1); exit 1; }; }
13147
13148
13149 fi;
13150 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
13151
13152
13153
13154 # Check whether --with-bsd-security or --without-bsd-security was given.
13155 if test "${with_bsd_security+set}" = set; then
13156   withval="$with_bsd_security"
13157   BSD_SECURITY=$withval
13158 else
13159   : ${BSD_SECURITY=yes}
13160
13161 fi;
13162 case "$BSD_SECURITY" in
13163 n | no) : ;;
13164 y |  ye | yes)
13165 cat >>confdefs.h <<\_ACEOF
13166 #define BSD_SECURITY 1
13167 _ACEOF
13168
13169   ;;
13170 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
13171 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
13172    { (exit 1); exit 1; }; }
13173   ;;
13174 esac
13175
13176
13177 # Check whether --with-amandahosts or --without-amandahosts was given.
13178 if test "${with_amandahosts+set}" = set; then
13179   withval="$with_amandahosts"
13180   USE_AMANDAHOSTS=$withval
13181 else
13182   : ${USE_AMANDAHOSTS=yes}
13183
13184 fi;
13185 case "$USE_AMANDAHOSTS" in
13186 n | no) : ;;
13187 y |  ye | yes) :
13188   case "$BSD_SECURITY" in
13189   y | ye | yes)
13190 cat >>confdefs.h <<\_ACEOF
13191 #define USE_AMANDAHOSTS 1
13192 _ACEOF
13193
13194     ;;
13195   esac
13196   ;;
13197 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
13198 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
13199    { (exit 1); exit 1; }; }
13200   ;;
13201 esac
13202
13203
13204
13205 # Check whether --with-dbmalloc or --without-dbmalloc was given.
13206 if test "${with_dbmalloc+set}" = set; then
13207   withval="$with_dbmalloc"
13208   DBMALLOC="$withval"
13209 else
13210   : ${DBMALLOC=no}
13211
13212 fi;
13213
13214 case "$DBMALLOC" in
13215 n | no)
13216     DBMALLOCCFLAGS=""
13217     DBMALLOCLIBS=""
13218     ;;
13219 *)
13220
13221 echo "$as_me:$LINENO: checking for malloc in -ldbmalloc" >&5
13222 echo $ECHO_N "checking for malloc in -ldbmalloc... $ECHO_C" >&6
13223 if test "${ac_cv_lib_dbmalloc_malloc+set}" = set; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-ldbmalloc  $LIBS"
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h.  */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h.  */
13234
13235 /* Override any gcc2 internal prototype to avoid an error.  */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 /* We use char because int might match the return type of a gcc2
13240    builtin and then its argument prototype would still apply.  */
13241 char malloc ();
13242 int
13243 main ()
13244 {
13245 malloc ();
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13252   (eval $ac_link) 2>conftest.er1
13253   ac_status=$?
13254   grep -v '^ *+' conftest.er1 >conftest.err
13255   rm -f conftest.er1
13256   cat conftest.err >&5
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); } &&
13259          { ac_try='test -z "$ac_c_werror_flag"
13260                          || test ! -s conftest.err'
13261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262   (eval $ac_try) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; } &&
13266          { ac_try='test -s conftest$ac_exeext'
13267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268   (eval $ac_try) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   ac_cv_lib_dbmalloc_malloc=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277 ac_cv_lib_dbmalloc_malloc=no
13278 fi
13279 rm -f conftest.err conftest.$ac_objext \
13280       conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13282 fi
13283 echo "$as_me:$LINENO: result: $ac_cv_lib_dbmalloc_malloc" >&5
13284 echo "${ECHO_T}$ac_cv_lib_dbmalloc_malloc" >&6
13285 if test $ac_cv_lib_dbmalloc_malloc = yes; then
13286   cat >>confdefs.h <<_ACEOF
13287 #define HAVE_LIBDBMALLOC 1
13288 _ACEOF
13289
13290   LIBS="-ldbmalloc $LIBS"
13291
13292 fi
13293
13294     if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
13295       { echo "$as_me:$LINENO: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&5
13296 echo "$as_me: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&2;}
13297       DBMALLOCCFLAGS=""
13298       DBMALLOCLIBS=""
13299     else
13300       DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
13301       DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
13302     fi
13303     ;;
13304 esac
13305
13306
13307 # Check whether --with-ipv6 or --without-ipv6 was given.
13308 if test "${with_ipv6+set}" = set; then
13309   withval="$with_ipv6"
13310
13311         case "$withval" in
13312         y | ye | yes) amanda_ipv6=true;;
13313         n | no) amanda_ipv6=false;;
13314         *)
13315             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
13316 echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
13317    { (exit 1); exit 1; }; }
13318           ;;
13319         esac
13320
13321
13322 fi;
13323
13324
13325 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
13326
13327
13328 # Check whether --with-krb4-security or --without-krb4-security was given.
13329 if test "${with_krb4_security+set}" = set; then
13330   withval="$with_krb4_security"
13331   KRB4_SECURITY="$withval"
13332 else
13333   : ${KRB4_SECURITY=no}
13334
13335 fi;
13336
13337 case "$KRB4_SECURITY" in
13338 n | no) KRB4_SECURITY=no ;;
13339 y | ye | yes) : ;;
13340 *) KRB4_SPOTS="$KRB4_SECURITY"
13341    KRB4_SECURITY=yes
13342    ;;
13343 esac
13344
13345 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
13346 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
13347 if test "x${KRB4_SECURITY}" = xyes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
13348     for dir in $KRB4_SPOTS; do
13349         if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
13350             #
13351             # This is the original Kerberos 4.
13352             #
13353             echo "$as_me:$LINENO: result: found in $dir" >&5
13354 echo "${ECHO_T}found in $dir" >&6
13355             KRB4_SECURITY=yes
13356
13357 cat >>confdefs.h <<\_ACEOF
13358 #define KRB4_SECURITY 1
13359 _ACEOF
13360
13361             if test -d $dir/include/kerberosIV ; then
13362                 #
13363                 # This handles BSD/OS.
13364                 #
13365                 KRB4INCLUDES=-I$dir/include/kerberosIV
13366             else
13367                 KRB4INCLUDES=-I$dir/include
13368             fi
13369             KRB4LDFLAGS=-L$dir/lib
13370             KRB4LIBS="-lkrb -ldes"
13371             if test -f ${dir}/lib/libcom_err.a; then
13372                 KRB4LIBS="$KRB4LIBS -lcom_err"
13373             fi
13374             break
13375         elif test -f ${dir}/lib/libkrb4.a &&
13376              test -f ${dir}/lib/libcrypto.a &&
13377              test -f ${dir}/lib/libdes425.a ; then
13378             #
13379             # This is Kerberos 5 with Kerberos 4 back-support.
13380             #
13381             echo "$as_me:$LINENO: result: found in $dir" >&5
13382 echo "${ECHO_T}found in $dir" >&6
13383             KRB4_SECURITY=yes
13384
13385 cat >>confdefs.h <<\_ACEOF
13386 #define KRB4_SECURITY 1
13387 _ACEOF
13388
13389             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
13390             KRB4LDFLAGS=-L$dir/lib
13391             if test -f ${dir}/lib/libkrb5.a &&
13392                test -f ${dir}/lib/libcom_err.a; then
13393                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
13394             else
13395                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
13396             fi
13397             break
13398         fi
13399     done
13400
13401     if test "x$KRB4LDFLAGS" = "x" ; then
13402         echo "$as_me:$LINENO: result: no libraries found" >&5
13403 echo "${ECHO_T}no libraries found" >&6
13404     fi
13405 else
13406     echo "$as_me:$LINENO: result: no" >&5
13407 echo "${ECHO_T}no" >&6
13408 fi
13409
13410
13411 # Check whether --with-rsh-security or --without-rsh-security was given.
13412 if test "${with_rsh_security+set}" = set; then
13413   withval="$with_rsh_security"
13414   RSH_SECURITY=$withval
13415 else
13416   : ${RSH_SECURITY=yes}
13417
13418 fi;
13419 case "$RSH_SECURITY" in
13420 n | no) : ;;
13421 y |  ye | yes)
13422 cat >>confdefs.h <<\_ACEOF
13423 #define RSH_SECURITY 1
13424 _ACEOF
13425
13426   ;;
13427 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
13428 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
13429    { (exit 1); exit 1; }; }
13430   ;;
13431 esac
13432
13433
13434 # Check whether --with-ssh-security or --without-ssh-security was given.
13435 if test "${with_ssh_security+set}" = set; then
13436   withval="$with_ssh_security"
13437   SSH_SECURITY=$withval
13438 else
13439   : ${SSH_SECURITY=no}
13440
13441 fi;
13442 case "$SSH_SECURITY" in
13443 n | no) : ;;
13444 y |  ye | yes)
13445 cat >>confdefs.h <<\_ACEOF
13446 #define SSH_SECURITY 1
13447 _ACEOF
13448
13449                SSH_SECURITY_SET=true
13450   ;;
13451 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
13452 echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
13453    { (exit 1); exit 1; }; }
13454   ;;
13455 esac
13456
13457 # find SSH and check for SSH options if we're using SSH security
13458 if test x"$SSH_SECURITY" = "xyes"; then
13459     for ac_prog in ssh
13460 do
13461   # Extract the first word of "$ac_prog", so it can be a program name with args.
13462 set dummy $ac_prog; ac_word=$2
13463 echo "$as_me:$LINENO: checking for $ac_word" >&5
13464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13465 if test "${ac_cv_path_SSH+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   case $SSH in
13469   [\\/]* | ?:[\\/]*)
13470   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
13471   ;;
13472   *)
13473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13474 for as_dir in $LOCSYSPATH
13475 do
13476   IFS=$as_save_IFS
13477   test -z "$as_dir" && as_dir=.
13478   for ac_exec_ext in '' $ac_executable_extensions; do
13479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13480     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
13481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13482     break 2
13483   fi
13484 done
13485 done
13486
13487   ;;
13488 esac
13489 fi
13490 SSH=$ac_cv_path_SSH
13491
13492 if test -n "$SSH"; then
13493   echo "$as_me:$LINENO: result: $SSH" >&5
13494 echo "${ECHO_T}$SSH" >&6
13495 else
13496   echo "$as_me:$LINENO: result: no" >&5
13497 echo "${ECHO_T}no" >&6
13498 fi
13499
13500   test -n "$SSH" && break
13501 done
13502
13503
13504 cat >>confdefs.h <<_ACEOF
13505 #define SSH "$SSH"
13506 _ACEOF
13507
13508
13509
13510 # Check whether --with-ssh-options or --without-ssh-options was given.
13511 if test "${with_ssh_options+set}" = set; then
13512   withval="$with_ssh_options"
13513    SSH_OPTIONS="$withval"
13514 else
13515    SSH_OPTIONS=''
13516
13517 fi;
13518
13519     case "$SSH_OPTIONS" in
13520         y | ye | yes | n | no)
13521             { { echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
13522 echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
13523    { (exit 1); exit 1; }; };;
13524         *) : ;;
13525     esac
13526
13527     echo "$as_me:$LINENO: checking SSH options" >&5
13528 echo $ECHO_N "checking SSH options... $ECHO_C" >&6
13529     # if we didn't get SSH options from the user, figure them out for ourselves
13530     if test -z "$SSH_OPTIONS"; then
13531         # TODO - quote these (or break them up in ssh-security??)
13532         case `$SSH -V 2>&1` in
13533             OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
13534             *) SSH_OPTIONS='-x -o BatchMode=yes'
13535         esac
13536     fi
13537
13538     # now convert that to a comma-separated list of C strings
13539     eval "set dummy ${SSH_OPTIONS}"; shift
13540     SSH_OPTIONS=''
13541     for i in "${@}"; do SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }\"${i/\"/\\\"}\""; done
13542     echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
13543 echo "${ECHO_T}$SSH_OPTIONS" >&6
13544
13545
13546 cat >>confdefs.h <<_ACEOF
13547 #define SSH_OPTIONS $SSH_OPTIONS
13548 _ACEOF
13549
13550 fi
13551
13552
13553 # Check whether --with-bsdtcp-security or --without-bsdtcp-security was given.
13554 if test "${with_bsdtcp_security+set}" = set; then
13555   withval="$with_bsdtcp_security"
13556   BSDTCP_SECURITY=$withval
13557 else
13558   : ${BSDTCP_SECURITY=yes}
13559
13560 fi;
13561 case "$BSDTCP_SECURITY" in
13562 n | no) : ;;
13563 y |  ye | yes)
13564 cat >>confdefs.h <<\_ACEOF
13565 #define BSDTCP_SECURITY 1
13566 _ACEOF
13567
13568                BSDTCP_SECURITY_SET=true
13569   ;;
13570 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&5
13571 echo "$as_me: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&2;}
13572    { (exit 1); exit 1; }; }
13573   ;;
13574 esac
13575
13576
13577 # Check whether --with-bsdudp-security or --without-bsdudp-security was given.
13578 if test "${with_bsdudp_security+set}" = set; then
13579   withval="$with_bsdudp_security"
13580   BSDUDP_SECURITY=$withval
13581 else
13582   : ${BSDUDP_SECURITY=yes}
13583
13584 fi;
13585 case "$BSDUDP_SECURITY" in
13586 n | no) : ;;
13587 y |  ye | yes)
13588 cat >>confdefs.h <<\_ACEOF
13589 #define BSDUDP_SECURITY 1
13590 _ACEOF
13591
13592                BSDUDP_SECURITY_SET=true
13593   ;;
13594 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdudp-security option." >&5
13595 echo "$as_me: error: *** You must not supply an argument the to --with-bsdudp-security option." >&2;}
13596    { (exit 1); exit 1; }; }
13597   ;;
13598 esac
13599
13600
13601 # Check whether --with-server-principal or --without-server-principal was given.
13602 if test "${with_server_principal+set}" = set; then
13603   withval="$with_server_principal"
13604
13605         case "$withval" in
13606         "" | y | ye | yes | n | no)
13607             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
13608 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
13609    { (exit 1); exit 1; }; }
13610           ;;
13611         *)
13612             SERVER_HOST_PRINCIPLE="$withval"
13613           ;;
13614         esac
13615
13616 else
13617   : ${SERVER_HOST_PRINCIPLE="amanda"}
13618
13619 fi;
13620
13621 cat >>confdefs.h <<_ACEOF
13622 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
13623 _ACEOF
13624
13625
13626
13627 # Check whether --with-server-instance or --without-server-instance was given.
13628 if test "${with_server_instance+set}" = set; then
13629   withval="$with_server_instance"
13630
13631         case "$withval" in
13632         "" | y | ye | yes | n | no)
13633             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
13634 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
13635    { (exit 1); exit 1; }; }
13636           ;;
13637         *) SERVER_HOST_INSTANCE="$withval"
13638           ;;
13639         esac
13640
13641 else
13642   : ${SERVER_HOST_INSTANCE="amanda"}
13643
13644 fi;
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
13648 _ACEOF
13649
13650
13651
13652 # Check whether --with-server-keyfile or --without-server-keyfile was given.
13653 if test "${with_server_keyfile+set}" = set; then
13654   withval="$with_server_keyfile"
13655
13656         case "$withval" in
13657         "" | y | ye | yes | n | no)
13658             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
13659 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
13660    { (exit 1); exit 1; }; }
13661           ;;
13662         *) SERVER_HOST_KEY_FILE="$withval"
13663           ;;
13664         esac
13665
13666 else
13667   : ${SERVER_HOST_KEY_FILE="/.amanda"}
13668
13669 fi;
13670
13671 cat >>confdefs.h <<_ACEOF
13672 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
13673 _ACEOF
13674
13675
13676
13677 # Check whether --with-client-principal or --without-client-principal was given.
13678 if test "${with_client_principal+set}" = set; then
13679   withval="$with_client_principal"
13680
13681         case "$withval" in
13682         "" | y | ye | yes | n | no)
13683             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
13684 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
13685    { (exit 1); exit 1; }; }
13686           ;;
13687         *) CLIENT_HOST_PRINCIPLE="$withval"
13688           ;;
13689         esac
13690
13691 else
13692   : ${CLIENT_HOST_PRINCIPLE="rcmd"}
13693
13694 fi;
13695
13696 cat >>confdefs.h <<_ACEOF
13697 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
13698 _ACEOF
13699
13700
13701
13702 # Check whether --with-client-instance or --without-client-instance was given.
13703 if test "${with_client_instance+set}" = set; then
13704   withval="$with_client_instance"
13705
13706         case "$withval" in
13707         "" | y | ye | yes | n | no)
13708             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
13709 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
13710    { (exit 1); exit 1; }; }
13711           ;;
13712         *) CLIENT_HOST_INSTANCE="$withval"
13713           ;;
13714         esac
13715
13716 else
13717   : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
13718
13719 fi;
13720
13721 cat >>confdefs.h <<_ACEOF
13722 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
13723 _ACEOF
13724
13725
13726
13727 # Check whether --with-client-keyfile or --without-client-keyfile was given.
13728 if test "${with_client_keyfile+set}" = set; then
13729   withval="$with_client_keyfile"
13730
13731         case "$withval" in
13732         "" | y | ye | yes | n | no)
13733             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
13734 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
13735    { (exit 1); exit 1; }; }
13736           ;;
13737         *) CLIENT_HOST_KEY_FILE="$withval"
13738           ;;
13739         esac
13740
13741 else
13742   : ${CLIENT_HOST_KEY_FILE=KEYFILE}
13743
13744 fi;
13745
13746 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
13747 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
13748   CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
13749 fi
13750
13751
13752 cat >>confdefs.h <<_ACEOF
13753 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
13754 _ACEOF
13755
13756
13757
13758 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
13759 if test "${with_ticket_lifetime+set}" = set; then
13760   withval="$with_ticket_lifetime"
13761
13762         case "$withval" in
13763         "" | y | ye | yes | n | no)
13764             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
13765 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
13766    { (exit 1); exit 1; }; }
13767           ;;
13768         *) TICKET_LIFETIME="$withval"
13769           ;;
13770         esac
13771
13772 else
13773   : ${TICKET_LIFETIME=128}
13774
13775 fi;
13776
13777 cat >>confdefs.h <<_ACEOF
13778 #define TICKET_LIFETIME $TICKET_LIFETIME
13779 _ACEOF
13780
13781
13782
13783 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
13784
13785
13786 # Check whether --with-krb5-security or --without-krb5-security was given.
13787 if test "${with_krb5_security+set}" = set; then
13788   withval="$with_krb5_security"
13789   KRB5_SECURITY="$withval"
13790 else
13791   : ${KRB5_SECURITY=no}
13792
13793 fi;
13794
13795 case "$KRB5_SECURITY" in
13796 n | no) KRB5_SECURITY=no
13797         KRB5_SPOTS=""
13798         ;;
13799 y | ye | yes) : ;;
13800 *) KRB5_SPOTS="$KRB5_SECURITY"
13801    KRB5_SECURITY=yes
13802    ;;
13803 esac
13804
13805 # if found, force the static versions of these libs (.a) by linking directly
13806 # with the .a files.  I don't know how to get -R dependancies checked
13807 # in autoconf at this time. -kashmir
13808 echo "$as_me:$LINENO: checking for Kerberos V" >&5
13809 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
13810 KRB5_DIR_FOUND=""
13811 KRB5_CFLAGS=""
13812 for dir in $KRB5_SPOTS; do
13813   for lib in lib lib64; do
13814     k5libdir=${dir}/${lib}
13815     if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
13816         if test -f ${k5libdir}/libk5crypto.a; then
13817             K5CRYPTO=-lk5crypto
13818         elif test -f ${k5libdir}/libcrypto.a; then
13819             K5CRYPTO=-lcrypto
13820         else
13821             K5CRYPTO=""
13822         fi
13823         if test -f ${k5libdir}/libkrb5support.a; then
13824             K5SUPPORT=-lkrb5support
13825         else
13826             K5SUPPORT=""
13827         fi
13828         KRB5_DIR_FOUND=$dir
13829         KRB5LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err"
13830         KRB5CFLAGS=""
13831         break
13832     elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
13833         KRB5_DIR_FOUND=$dir
13834         KRB5LIBS="-lgssapi.a -lkrb5.a -lasn1.a"
13835         KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
13836         break
13837     fi
13838   done
13839 done
13840
13841 if test "$KRB5_DIR_FOUND"; then
13842         echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
13843 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
13844         KRB5_SECURITY=yes
13845
13846 cat >>confdefs.h <<\_ACEOF
13847 #define KRB5_SECURITY 1
13848 _ACEOF
13849
13850         #
13851         # some OS's, such as NetBSD, stick krb5 includes out of the way...
13852         # should probably just use autoconf to look for various include
13853         # options and set them, but don't quite want to do that until I've
13854         # dug into it a bit more.
13855         #
13856         if test -d "$KRB5_DIR_FOUND/krb5" ; then
13857                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
13858         else
13859                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
13860         fi
13861         if test "$KRB5_CFLAGS" ; then
13862                 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
13863         fi
13864
13865 echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
13866 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6
13867 if test "${ac_cv_lib_krb5support_main+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 else
13870   ac_check_lib_save_LIBS=$LIBS
13871 LIBS="-lkrb5support  $LIBS"
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878
13879
13880 int
13881 main ()
13882 {
13883 main ();
13884   ;
13885   return 0;
13886 }
13887 _ACEOF
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13890   (eval $ac_link) 2>conftest.er1
13891   ac_status=$?
13892   grep -v '^ *+' conftest.er1 >conftest.err
13893   rm -f conftest.er1
13894   cat conftest.err >&5
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); } &&
13897          { ac_try='test -z "$ac_c_werror_flag"
13898                          || test ! -s conftest.err'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; } &&
13904          { ac_try='test -s conftest$ac_exeext'
13905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906   (eval $ac_try) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); }; }; then
13910   ac_cv_lib_krb5support_main=yes
13911 else
13912   echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13914
13915 ac_cv_lib_krb5support_main=no
13916 fi
13917 rm -f conftest.err conftest.$ac_objext \
13918       conftest$ac_exeext conftest.$ac_ext
13919 LIBS=$ac_check_lib_save_LIBS
13920 fi
13921 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
13922 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6
13923 if test $ac_cv_lib_krb5support_main = yes; then
13924   cat >>confdefs.h <<_ACEOF
13925 #define HAVE_LIBKRB5SUPPORT 1
13926 _ACEOF
13927
13928   LIBS="-lkrb5support $LIBS"
13929
13930 fi
13931
13932         KRB5LDFLAGS=-L$k5libdir
13933         break
13934 fi
13935
13936 if test "x$KRB5LDFLAGS" = "x" ; then
13937     echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
13938 echo "${ECHO_T}no krb5 system libraries found" >&6
13939 fi
13940
13941
13942
13943 # Check whether --with-low-tcpportrange or --without-low-tcpportrange was given.
13944 if test "${with_low_tcpportrange+set}" = set; then
13945   withval="$with_low_tcpportrange"
13946
13947         LOW_TCPPORTRANGE="$withval"
13948
13949
13950 fi;
13951
13952 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
13953     if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
13954         { { echo "$as_me:$LINENO: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&5
13955 echo "$as_me: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
13956    { (exit 1); exit 1; }; }
13957     fi
13958     min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
13959     max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
13960     if test $min_low_tcp_port -gt $max_low_tcp_port; then
13961         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
13962 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
13963    { (exit 1); exit 1; }; }
13964     fi
13965     if test $min_low_tcp_port -lt 512; then
13966         { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
13967 echo "$as_me: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
13968     fi
13969     if test $max_low_tcp_port -ge 1024; then
13970         { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
13971 echo "$as_me: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
13972     fi
13973
13974 cat >>confdefs.h <<_ACEOF
13975 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
13976 _ACEOF
13977
13978 fi
13979
13980
13981 # Check whether --with-tcpportrange or --without-tcpportrange was given.
13982 if test "${with_tcpportrange+set}" = set; then
13983   withval="$with_tcpportrange"
13984
13985         TCPPORTRANGE="$withval"
13986
13987
13988 fi;
13989 if test x"${TCPPORTRANGE+set}" = x"set"; then
13990     if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
13991         { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
13992 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
13993    { (exit 1); exit 1; }; }
13994     fi
13995     min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
13996     max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
13997     if test $min_tcp_port -gt $max_tcp_port; then
13998         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
13999 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
14000    { (exit 1); exit 1; }; }
14001     fi
14002     if test $min_tcp_port -lt 1024; then
14003         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
14004 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
14005     fi
14006     if test $max_tcp_port -ge 65536; then
14007         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
14008 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
14009     fi
14010
14011 cat >>confdefs.h <<_ACEOF
14012 #define TCPPORTRANGE $TCPPORTRANGE
14013 _ACEOF
14014
14015 fi
14016
14017
14018 # Check whether --with-udpportrange or --without-udpportrange was given.
14019 if test "${with_udpportrange+set}" = set; then
14020   withval="$with_udpportrange"
14021
14022         UDPPORTRANGE="$withval"
14023
14024
14025 fi;
14026 if test x"${UDPPORTRANGE+set}" = x"set"; then
14027     if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
14028         { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
14029 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
14030    { (exit 1); exit 1; }; }
14031     fi
14032     min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
14033     max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
14034     if test $min_udp_port -gt $max_udp_port; then
14035         { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
14036 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
14037    { (exit 1); exit 1; }; }
14038     fi
14039     if test $max_udp_port -ge 1024; then
14040         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
14041 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
14042     fi
14043     if test $min_udp_port -le 0; then
14044         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
14045 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
14046     fi
14047
14048 cat >>confdefs.h <<_ACEOF
14049 #define UDPPORTRANGE $UDPPORTRANGE
14050 _ACEOF
14051
14052 fi
14053
14054
14055 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
14056 if test "${with_maxtapeblocksize+set}" = set; then
14057   withval="$with_maxtapeblocksize"
14058
14059         MAXTAPEBLOCKSIZE="$withval"
14060
14061 else
14062   : ${MAXTAPEBLOCKSIZE=32}
14063
14064 fi;
14065
14066
14067 cat >>confdefs.h <<_ACEOF
14068 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
14069 _ACEOF
14070
14071
14072
14073
14074 # Check whether --with-db or --without-db was given.
14075 if test "${with_db+set}" = set; then
14076   withval="$with_db"
14077
14078         case "$withval" in
14079         "" | y | ye | yes | n | no)
14080             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
14081 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
14082    { (exit 1); exit 1; }; }
14083           ;;
14084         *) DB_STYLE="$withval"
14085           ;;
14086         esac
14087
14088
14089 fi;
14090 if test "$DB_STYLE"; then
14091     case "$DB_STYLE" in
14092         db | dbm | gdbm | ndbm | text)  ;;
14093         *)
14094             { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&5
14095 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&2;}
14096    { (exit 1); exit 1; }; }
14097             DB_STYLE=
14098             ;;
14099     esac
14100 fi
14101
14102
14103 # Check whether --with-mmap or --without-mmap was given.
14104 if test "${with_mmap+set}" = set; then
14105   withval="$with_mmap"
14106   FORCE_MMAP=$withval
14107 else
14108   : ${FORCE_MMAP=no}
14109
14110 fi;
14111 case "$FORCE_MMAP" in
14112 y | ye | yes | n | no) : ;;
14113 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
14114 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
14115    { (exit 1); exit 1; }; }
14116   ;;
14117 esac
14118
14119
14120 # Check whether --with-buffered-dump or --without-buffered-dump was given.
14121 if test "${with_buffered_dump+set}" = set; then
14122   withval="$with_buffered_dump"
14123   DUMPER_SOCKET_BUFFERING=$withval
14124 else
14125   : ${DUMPER_SOCKET_BUFFERING=no}
14126
14127 fi;
14128 case "$DUMPER_SOCKET_BUFFERING" in
14129 n | no) :
14130   ;;
14131 y | ye | yes)
14132 cat >>confdefs.h <<\_ACEOF
14133 #define DUMPER_SOCKET_BUFFERING 1
14134 _ACEOF
14135
14136   ;;
14137 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
14138 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
14139    { (exit 1); exit 1; }; }
14140   ;;
14141 esac
14142
14143
14144 # Check whether --with-assertions or --without-assertions was given.
14145 if test "${with_assertions+set}" = set; then
14146   withval="$with_assertions"
14147   ASSERTIONS="$withval"
14148 else
14149   : ${ASSERTIONS=no}
14150
14151 fi;
14152 case "$ASSERTIONS" in
14153 n | no) : ;;
14154 y |  ye | yes)
14155 cat >>confdefs.h <<\_ACEOF
14156 #define ASSERTIONS 1
14157 _ACEOF
14158
14159   ;;
14160 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
14161 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
14162    { (exit 1); exit 1; }; }
14163   ;;
14164 esac
14165
14166
14167 # Check whether --with-tmpdir or --without-tmpdir was given.
14168 if test "${with_tmpdir+set}" = set; then
14169   withval="$with_tmpdir"
14170   tmpdir="$withval"
14171 else
14172   : ${tmpdir=yes}
14173
14174 fi;
14175 tmpdir=`(
14176     test "x$prefix" = xNONE && prefix=$ac_default_prefix
14177     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
14178     eval echo "$tmpdir"
14179 )`
14180 case "$tmpdir" in
14181 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
14182 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
14183    { (exit 1); exit 1; }; };;
14184 y |  ye | yes)
14185         AMANDA_TMPDIR="/tmp/amanda";;
14186 /*)
14187         AMANDA_TMPDIR="$tmpdir";;
14188 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
14189 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
14190    { (exit 1); exit 1; }; };;
14191 esac
14192
14193 cat >>confdefs.h <<_ACEOF
14194 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
14195 _ACEOF
14196
14197
14198
14199
14200 # Check whether --with-debugging or --without-debugging was given.
14201 if test "${with_debugging+set}" = set; then
14202   withval="$with_debugging"
14203   debugging="$withval"
14204 else
14205   : ${debugging=yes}
14206
14207 fi;
14208 debugging=`(
14209     test "x$prefix" = xNONE && prefix=$ac_default_prefix
14210     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
14211     eval echo "$debugging"
14212 )`
14213 case "$debugging" in
14214 n | no) AMANDA_DBGDIR="";;
14215 y |  ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
14216 /*) AMANDA_DBGDIR="$debugging";;
14217 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
14218 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
14219    { (exit 1); exit 1; }; }
14220   ;;
14221 esac
14222 case "$AMANDA_DBGDIR" in
14223 "") :;;
14224 *)
14225 cat >>confdefs.h <<\_ACEOF
14226 #define DEBUG_CODE 1
14227 _ACEOF
14228
14229
14230 cat >>confdefs.h <<_ACEOF
14231 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
14232 _ACEOF
14233
14234    ;;
14235 esac
14236
14237
14238 # Check whether --with-debug_days or --without-debug_days was given.
14239 if test "${with_debug_days+set}" = set; then
14240   withval="$with_debug_days"
14241   debug_days="$withval"
14242 else
14243   : ${debug_days=4}
14244
14245 fi;
14246 case "$debug_days" in
14247 n | no) AMANDA_DEBUG_DAYS=0 ;;
14248 y |  ye | yes) AMANDA_DEBUG_DAYS=4 ;;
14249 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
14250 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
14251 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
14252    { (exit 1); exit 1; }; }
14253   ;;
14254 esac
14255
14256 cat >>confdefs.h <<_ACEOF
14257 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
14258 _ACEOF
14259
14260
14261
14262
14263 # Check whether --with-testing or --without-testing was given.
14264 if test "${with_testing+set}" = set; then
14265   withval="$with_testing"
14266   TESTING="$withval"
14267 else
14268   : ${TESTING=no}
14269
14270 fi;
14271 case "$TESTING" in
14272 n | no) SERVICE_SUFFIX="";;
14273 y |  ye | yes) SERVICE_SUFFIX="-test";;
14274 *) SERVICE_SUFFIX="-$TESTING";;
14275 esac
14276 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
14277 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
14278
14279
14280 cat >>confdefs.h <<_ACEOF
14281 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
14282 _ACEOF
14283
14284
14285 cat >>confdefs.h <<_ACEOF
14286 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
14287 _ACEOF
14288
14289
14290 cat >>confdefs.h <<_ACEOF
14291 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
14292 _ACEOF
14293
14294
14295 (
14296     test "x$prefix" = xNONE && prefix=$ac_default_prefix
14297     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
14298
14299     tmp=`eval echo "$bindir"`
14300
14301 cat >>confdefs.h <<_ACEOF
14302 #define bindir "$tmp"
14303 _ACEOF
14304
14305
14306     tmp=`eval echo "$sbindir"`
14307
14308 cat >>confdefs.h <<_ACEOF
14309 #define sbindir "$tmp"
14310 _ACEOF
14311
14312
14313     tmp=`eval echo "$libexecdir"`
14314
14315 cat >>confdefs.h <<_ACEOF
14316 #define libexecdir "$tmp"
14317 _ACEOF
14318
14319
14320     tmp=`eval echo $mandir`
14321
14322 cat >>confdefs.h <<_ACEOF
14323 #define mandir "$tmp"
14324 _ACEOF
14325
14326 )
14327
14328 DUMP_PROGRAMS="ufsdump dump backup"
14329 GETCONF_LFS="LFS"
14330
14331 dump_returns_1=
14332 xenix_tapeio=
14333 case "$target" in
14334     *-dec-osf*)
14335
14336 cat >>confdefs.h <<\_ACEOF
14337 #define STATFS_OSF1 1
14338 _ACEOF
14339
14340                         ;;
14341     *-dg-*)
14342                         DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
14343                         : ${USE_RUNDUMP=yes}
14344                         dump_returns_1=yes
14345                         ;;
14346     *-netbsd*)
14347                         ;;
14348     *-freebsd*)
14349                         ;;
14350     *-openbsd*)
14351                         ;;
14352     *-hp-*)
14353                         MT_FILE_FLAG="-t"
14354                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
14355                         case "$CC" in
14356                             *gcc*)
14357                                 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
14358                                 ;;
14359                             *cc*)
14360                                 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
14361                                 ;;
14362                         esac
14363                         ;;
14364   *-ibm-aix*)
14365                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
14366                         DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
14367
14368 cat >>confdefs.h <<\_ACEOF
14369 #define AIX_TAPEIO 1
14370 _ACEOF
14371
14372
14373 cat >>confdefs.h <<\_ACEOF
14374 #define AIX_BACKUP 1
14375 _ACEOF
14376
14377                         ;;
14378   m88k-motorola-sysv4)
14379                         ;;
14380   *-nextstep3)
14381                         ;;
14382   *-pc-bsdi*)
14383                         ;;
14384   *-pc-linux-*)
14385                         ;;
14386   *-redhat-linux-*)
14387                         ;;
14388   *-suse-linux-*)
14389                         ;;
14390   x86_64-*-linux-*)
14391                         ;;
14392   alpha*-*-linux-*)
14393                         ;;
14394   sparc*-*-linux-*)
14395                         ;;
14396   powerpc-*-linux-*)
14397                         ;;
14398   *-sgi-irix3*)
14399                                                 CC=gcc
14400                         ;;
14401   *-sgi-irix4*)
14402                         ;;
14403   *-sgi-irix5*)
14404                         ;;
14405   *-sgi-irix6*)
14406                         ;;
14407   *-solaris2*)
14408                         ;;
14409   *-sun-sunos4.1*)
14410                         ;;
14411   *-ultrix*)
14412                         : ${USE_RUNDUMP=yes}
14413
14414 cat >>confdefs.h <<\_ACEOF
14415 #define STATFS_ULTRIX 1
14416 _ACEOF
14417
14418                         dump_returns_1=yes
14419                         ;;
14420   *-sysv4.2uw2*)
14421
14422 cat >>confdefs.h <<\_ACEOF
14423 #define UWARE_TAPEIO 1
14424 _ACEOF
14425
14426                         ;;
14427   *-sco3.2v4*)
14428                         DEV_PREFIX=/dev/
14429                         RDEV_PREFIX=/dev/
14430                         ;;
14431   *-sco3.2v5*)
14432                         xenix_tapeio=yes
14433
14434 cat >>confdefs.h <<\_ACEOF
14435 #define STATFS_SCO_OS5 1
14436 _ACEOF
14437
14438                         ;;
14439   i386-pc-isc4*)
14440                         xenix_tapeio=yes
14441                         ;;
14442   *-sni-sysv4)
14443                         ;;
14444   *-pc-cygwin)
14445
14446 cat >>confdefs.h <<\_ACEOF
14447 #define IGNORE_TAR_ERRORS 1
14448 _ACEOF
14449
14450                         # Cygwin needs PATH to find cygwin1.dll
14451
14452 cat >>confdefs.h <<\_ACEOF
14453 #define NEED_PATH_ENV 1
14454 _ACEOF
14455
14456
14457 cat >>confdefs.h <<\_ACEOF
14458 #define IGNORE_UID_CHECK 1
14459 _ACEOF
14460
14461
14462 cat >>confdefs.h <<\_ACEOF
14463 #define IGNORE_FSTAB 1
14464 _ACEOF
14465
14466
14467 cat >>confdefs.h <<\_ACEOF
14468 #define DONT_SUID_ROOT 1
14469 _ACEOF
14470
14471                         NEED_SETUID_CLIENT=false
14472                         NEED_RUNTIME_PSEUDO_RELOC=true
14473                         BROKEN_IPV6=true
14474                         ;;
14475   *)
14476                         cat <<END
14477
14478 *****
14479 This machine, target type $target, is not known
14480 to be fully supported by this configure script.  If the
14481 installation of Amanda on this system succeeds or needed
14482 any patches, please email amanda-hackers@amanda.org with
14483 the patches or an indication of the sucess or failure of
14484 the Amanda installation on your system.
14485 *****
14486
14487 END
14488                 ;;
14489 esac
14490
14491 if test -n "$dump_returns_1"; then
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define DUMP_RETURNS_1 1
14495 _ACEOF
14496
14497 fi
14498
14499 if test -n "$xenix_tapeio"; then
14500
14501 cat >>confdefs.h <<\_ACEOF
14502 #define XENIX_TAPEIO 1
14503 _ACEOF
14504
14505 fi
14506
14507 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
14508 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
14509 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
14510 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
14511 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
14512 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
14513 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
14514 LIBS="$AMANDA_LIBS $LIBS"
14515
14516
14517 : ${MT_FILE_FLAG="-f"}
14518
14519
14520 cat >>confdefs.h <<_ACEOF
14521 #define MT_FILE_FLAG "$MT_FILE_FLAG"
14522 _ACEOF
14523
14524
14525 # ------ AX CREATE STDINT H -------------------------------------
14526 echo "$as_me:$LINENO: checking for stdint types" >&5
14527 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
14528 ac_stdint_h=`echo common-src/amanda-int.h`
14529 # try to shortcircuit - if the default include path of the compiler
14530 # can find a "stdint.h" header then we assume that all compilers can.
14531 if test "${ac_cv_header_stdint_t+set}" = set; then
14532   echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534
14535 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
14536 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
14537 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 #include <stdint.h>
14545 int
14546 main ()
14547 {
14548 int_least32_t v = 0;
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555   (eval $ac_compile) 2>conftest.er1
14556   ac_status=$?
14557   grep -v '^ *+' conftest.er1 >conftest.err
14558   rm -f conftest.er1
14559   cat conftest.err >&5
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); } &&
14562          { ac_try='test -z "$ac_c_werror_flag"
14563                          || test ! -s conftest.err'
14564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; } &&
14569          { ac_try='test -s conftest.$ac_objext'
14570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571   (eval $ac_try) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; }; then
14575   ac_cv_stdint_result="(assuming C99 compatible system)"
14576  ac_cv_header_stdint_t="stdint.h";
14577 else
14578   echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14580
14581 ac_cv_header_stdint_t=""
14582 fi
14583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14584 CXXFLAGS="$old_CXXFLAGS"
14585 CPPFLAGS="$old_CPPFLAGS"
14586 CFLAGS="$old_CFLAGS"
14587 fi
14588
14589
14590 v="... $ac_cv_header_stdint_h"
14591 if test "$ac_stdint_h" = "stdint.h" ; then
14592  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
14593 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
14594 elif test "$ac_stdint_h" = "inttypes.h" ; then
14595  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
14596 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
14597 elif test "_$ac_cv_header_stdint_t" = "_" ; then
14598  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
14599 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
14600 else
14601  ac_cv_header_stdint="$ac_cv_header_stdint_t"
14602  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
14603 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
14604 fi
14605
14606 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14607
14608
14609 inttype_headers=`echo  | sed -e 's/,/ /g'`
14610
14611 ac_cv_stdint_result="(no helpful system typedefs seen)"
14612
14613 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14614 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14615 if test "${ac_cv_header_stdint_x+set}" = set; then
14616   echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618
14619  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14620   echo "$as_me:$LINENO: result: (..)" >&5
14621 echo "${ECHO_T}(..)" >&6
14622   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
14623    unset ac_cv_type_uintptr_t
14624    unset ac_cv_type_uint64_t
14625    echo "$as_me:$LINENO: checking for uintptr_t" >&5
14626 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14627 if test "${ac_cv_type_uintptr_t+set}" = set; then
14628   echo $ECHO_N "(cached) $ECHO_C" >&6
14629 else
14630   cat >conftest.$ac_ext <<_ACEOF
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 #include <$i>
14637
14638 int
14639 main ()
14640 {
14641 if ((uintptr_t *) 0)
14642   return 0;
14643 if (sizeof (uintptr_t))
14644   return 0;
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651   (eval $ac_compile) 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } &&
14658          { ac_try='test -z "$ac_c_werror_flag"
14659                          || test ! -s conftest.err'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; } &&
14665          { ac_try='test -s conftest.$ac_objext'
14666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667   (eval $ac_try) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; }; then
14671   ac_cv_type_uintptr_t=yes
14672 else
14673   echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676 ac_cv_type_uintptr_t=no
14677 fi
14678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14679 fi
14680 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14681 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14682 if test $ac_cv_type_uintptr_t = yes; then
14683   ac_cv_header_stdint_x=$i
14684 else
14685   continue
14686 fi
14687
14688    echo "$as_me:$LINENO: checking for uint64_t" >&5
14689 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14690 if test "${ac_cv_type_uint64_t+set}" = set; then
14691   echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693   cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h.  */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h.  */
14699 #include<$i>
14700
14701 int
14702 main ()
14703 {
14704 if ((uint64_t *) 0)
14705   return 0;
14706 if (sizeof (uint64_t))
14707   return 0;
14708   ;
14709   return 0;
14710 }
14711 _ACEOF
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714   (eval $ac_compile) 2>conftest.er1
14715   ac_status=$?
14716   grep -v '^ *+' conftest.er1 >conftest.err
14717   rm -f conftest.er1
14718   cat conftest.err >&5
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -z "$ac_c_werror_flag"
14722                          || test ! -s conftest.err'
14723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14724   (eval $ac_try) 2>&5
14725   ac_status=$?
14726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727   (exit $ac_status); }; } &&
14728          { ac_try='test -s conftest.$ac_objext'
14729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14730   (eval $ac_try) 2>&5
14731   ac_status=$?
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); }; }; then
14734   ac_cv_type_uint64_t=yes
14735 else
14736   echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14738
14739 ac_cv_type_uint64_t=no
14740 fi
14741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14742 fi
14743 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14744 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14745 if test $ac_cv_type_uint64_t = yes; then
14746   and64="/uint64_t"
14747 else
14748   and64=""
14749 fi
14750
14751       stdint.h inttypes.h sys/inttypes.h $inttype_headers
14752  break
14753   done
14754   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
14755 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
14756
14757 fi
14758 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
14759 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
14760
14761
14762 if test "_$ac_cv_header_stdint_x" = "_" ; then
14763
14764 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
14765 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
14766 if test "${ac_cv_header_stdint_o+set}" = set; then
14767   echo $ECHO_N "(cached) $ECHO_C" >&6
14768 else
14769
14770  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14771   echo "$as_me:$LINENO: result: (..)" >&5
14772 echo "${ECHO_T}(..)" >&6
14773   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
14774    unset ac_cv_type_uint32_t
14775    unset ac_cv_type_uint64_t
14776    echo "$as_me:$LINENO: checking for uint32_t" >&5
14777 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
14778 if test "${ac_cv_type_uint32_t+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h.  */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h.  */
14787 #include <$i>
14788
14789 int
14790 main ()
14791 {
14792 if ((uint32_t *) 0)
14793   return 0;
14794 if (sizeof (uint32_t))
14795   return 0;
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14802   (eval $ac_compile) 2>conftest.er1
14803   ac_status=$?
14804   grep -v '^ *+' conftest.er1 >conftest.err
14805   rm -f conftest.er1
14806   cat conftest.err >&5
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); } &&
14809          { ac_try='test -z "$ac_c_werror_flag"
14810                          || test ! -s conftest.err'
14811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812   (eval $ac_try) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); }; } &&
14816          { ac_try='test -s conftest.$ac_objext'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822   ac_cv_type_uint32_t=yes
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827 ac_cv_type_uint32_t=no
14828 fi
14829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14830 fi
14831 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
14832 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
14833 if test $ac_cv_type_uint32_t = yes; then
14834   ac_cv_header_stdint_o=$i
14835 else
14836   continue
14837 fi
14838
14839    echo "$as_me:$LINENO: checking for uint64_t" >&5
14840 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
14841 if test "${ac_cv_type_uint64_t+set}" = set; then
14842   echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844   cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h.  */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h.  */
14850 #include<$i>
14851
14852 int
14853 main ()
14854 {
14855 if ((uint64_t *) 0)
14856   return 0;
14857 if (sizeof (uint64_t))
14858   return 0;
14859   ;
14860   return 0;
14861 }
14862 _ACEOF
14863 rm -f conftest.$ac_objext
14864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865   (eval $ac_compile) 2>conftest.er1
14866   ac_status=$?
14867   grep -v '^ *+' conftest.er1 >conftest.err
14868   rm -f conftest.er1
14869   cat conftest.err >&5
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); } &&
14872          { ac_try='test -z "$ac_c_werror_flag"
14873                          || test ! -s conftest.err'
14874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875   (eval $ac_try) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; } &&
14879          { ac_try='test -s conftest.$ac_objext'
14880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881   (eval $ac_try) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; }; then
14885   ac_cv_type_uint64_t=yes
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ac_cv_type_uint64_t=no
14891 fi
14892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14893 fi
14894 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14895 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
14896 if test $ac_cv_type_uint64_t = yes; then
14897   and64="/uint64_t"
14898 else
14899   and64=""
14900 fi
14901
14902       inttypes.h sys/inttypes.h stdint.h $inttype_headers
14903  break
14904    break;
14905   done
14906   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
14907 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
14908
14909 fi
14910 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
14911 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
14912
14913 fi
14914
14915 if test "_$ac_cv_header_stdint_x" = "_" ; then
14916 if test "_$ac_cv_header_stdint_o" = "_" ; then
14917
14918 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
14919 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
14920 if test "${ac_cv_header_stdint_u+set}" = set; then
14921   echo $ECHO_N "(cached) $ECHO_C" >&6
14922 else
14923
14924  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14925   echo "$as_me:$LINENO: result: (..)" >&5
14926 echo "${ECHO_T}(..)" >&6
14927   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14928    unset ac_cv_type_u_int32_t
14929    unset ac_cv_type_u_int64_t
14930    echo "$as_me:$LINENO: checking for u_int32_t" >&5
14931 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
14932 if test "${ac_cv_type_u_int32_t+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 #include <$i>
14942
14943 int
14944 main ()
14945 {
14946 if ((u_int32_t *) 0)
14947   return 0;
14948 if (sizeof (u_int32_t))
14949   return 0;
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 rm -f conftest.$ac_objext
14955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14956   (eval $ac_compile) 2>conftest.er1
14957   ac_status=$?
14958   grep -v '^ *+' conftest.er1 >conftest.err
14959   rm -f conftest.er1
14960   cat conftest.err >&5
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); } &&
14963          { ac_try='test -z "$ac_c_werror_flag"
14964                          || test ! -s conftest.err'
14965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966   (eval $ac_try) 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); }; } &&
14970          { ac_try='test -s conftest.$ac_objext'
14971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972   (eval $ac_try) 2>&5
14973   ac_status=$?
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); }; }; then
14976   ac_cv_type_u_int32_t=yes
14977 else
14978   echo "$as_me: failed program was:" >&5
14979 sed 's/^/| /' conftest.$ac_ext >&5
14980
14981 ac_cv_type_u_int32_t=no
14982 fi
14983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14984 fi
14985 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
14986 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
14987 if test $ac_cv_type_u_int32_t = yes; then
14988   ac_cv_header_stdint_u=$i
14989 else
14990   continue
14991 fi
14992
14993    echo "$as_me:$LINENO: checking for u_int64_t" >&5
14994 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
14995 if test "${ac_cv_type_u_int64_t+set}" = set; then
14996   echo $ECHO_N "(cached) $ECHO_C" >&6
14997 else
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 #include<$i>
15005
15006 int
15007 main ()
15008 {
15009 if ((u_int64_t *) 0)
15010   return 0;
15011 if (sizeof (u_int64_t))
15012   return 0;
15013   ;
15014   return 0;
15015 }
15016 _ACEOF
15017 rm -f conftest.$ac_objext
15018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15019   (eval $ac_compile) 2>conftest.er1
15020   ac_status=$?
15021   grep -v '^ *+' conftest.er1 >conftest.err
15022   rm -f conftest.er1
15023   cat conftest.err >&5
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); } &&
15026          { ac_try='test -z "$ac_c_werror_flag"
15027                          || test ! -s conftest.err'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; } &&
15033          { ac_try='test -s conftest.$ac_objext'
15034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035   (eval $ac_try) 2>&5
15036   ac_status=$?
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); }; }; then
15039   ac_cv_type_u_int64_t=yes
15040 else
15041   echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044 ac_cv_type_u_int64_t=no
15045 fi
15046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15047 fi
15048 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
15049 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
15050 if test $ac_cv_type_u_int64_t = yes; then
15051   and64="/u_int64_t"
15052 else
15053   and64=""
15054 fi
15055
15056       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
15057  break
15058    break;
15059   done
15060   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
15061 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
15062
15063 fi
15064 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
15065 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
15066
15067 fi fi
15068
15069 if test "_$ac_cv_header_stdint_x" = "_" ; then
15070    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
15071 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
15072    echo "$as_me:$LINENO: result: (..)" >&5
15073 echo "${ECHO_T}(..)" >&6
15074
15075    echo "$as_me:$LINENO: checking for char" >&5
15076 echo $ECHO_N "checking for char... $ECHO_C" >&6
15077 if test "${ac_cv_type_char+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 if ((char *) 0)
15091   return 0;
15092 if (sizeof (char))
15093   return 0;
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100   (eval $ac_compile) 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -z "$ac_c_werror_flag"
15108                          || test ! -s conftest.err'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; } &&
15114          { ac_try='test -s conftest.$ac_objext'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   ac_cv_type_char=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 ac_cv_type_char=no
15126 fi
15127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15128 fi
15129 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15130 echo "${ECHO_T}$ac_cv_type_char" >&6
15131
15132 echo "$as_me:$LINENO: checking size of char" >&5
15133 echo $ECHO_N "checking size of char... $ECHO_C" >&6
15134 if test "${ac_cv_sizeof_char+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   if test "$ac_cv_type_char" = yes; then
15138   # The cast to unsigned long works around a bug in the HP C Compiler
15139   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15140   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15141   # This bug is HP SR number 8606223364.
15142   if test "$cross_compiling" = yes; then
15143   # Depending upon the size, compute the lo and hi bounds.
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 int
15152 main ()
15153 {
15154 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15155 test_array [0] = 0
15156
15157   ;
15158   return 0;
15159 }
15160 _ACEOF
15161 rm -f conftest.$ac_objext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163   (eval $ac_compile) 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -z "$ac_c_werror_flag"
15171                          || test ! -s conftest.err'
15172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173   (eval $ac_try) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; } &&
15177          { ac_try='test -s conftest.$ac_objext'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }; then
15183   ac_lo=0 ac_mid=0
15184   while :; do
15185     cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 $ac_includes_default
15192 int
15193 main ()
15194 {
15195 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15196 test_array [0] = 0
15197
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204   (eval $ac_compile) 2>conftest.er1
15205   ac_status=$?
15206   grep -v '^ *+' conftest.er1 >conftest.err
15207   rm -f conftest.er1
15208   cat conftest.err >&5
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); } &&
15211          { ac_try='test -z "$ac_c_werror_flag"
15212                          || test ! -s conftest.err'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; } &&
15218          { ac_try='test -s conftest.$ac_objext'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; }; then
15224   ac_hi=$ac_mid; break
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229 ac_lo=`expr $ac_mid + 1`
15230                     if test $ac_lo -le $ac_mid; then
15231                       ac_lo= ac_hi=
15232                       break
15233                     fi
15234                     ac_mid=`expr 2 '*' $ac_mid + 1`
15235 fi
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15237   done
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 $ac_includes_default
15249 int
15250 main ()
15251 {
15252 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15253 test_array [0] = 0
15254
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261   (eval $ac_compile) 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -z "$ac_c_werror_flag"
15269                          || test ! -s conftest.err'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; } &&
15275          { ac_try='test -s conftest.$ac_objext'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   ac_hi=-1 ac_mid=-1
15282   while :; do
15283     cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 $ac_includes_default
15290 int
15291 main ()
15292 {
15293 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15294 test_array [0] = 0
15295
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302   (eval $ac_compile) 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag"
15310                          || test ! -s conftest.err'
15311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312   (eval $ac_try) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; } &&
15316          { ac_try='test -s conftest.$ac_objext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   ac_lo=$ac_mid; break
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_hi=`expr '(' $ac_mid ')' - 1`
15328                        if test $ac_mid -le $ac_hi; then
15329                          ac_lo= ac_hi=
15330                          break
15331                        fi
15332                        ac_mid=`expr 2 '*' $ac_mid`
15333 fi
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335   done
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 ac_lo= ac_hi=
15341 fi
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 fi
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345 # Binary search between lo and hi bounds.
15346 while test "x$ac_lo" != "x$ac_hi"; do
15347   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15348   cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 $ac_includes_default
15355 int
15356 main ()
15357 {
15358 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15359 test_array [0] = 0
15360
15361   ;
15362   return 0;
15363 }
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367   (eval $ac_compile) 2>conftest.er1
15368   ac_status=$?
15369   grep -v '^ *+' conftest.er1 >conftest.err
15370   rm -f conftest.er1
15371   cat conftest.err >&5
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -z "$ac_c_werror_flag"
15375                          || test ! -s conftest.err'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; } &&
15381          { ac_try='test -s conftest.$ac_objext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387   ac_hi=$ac_mid
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_lo=`expr '(' $ac_mid ')' + 1`
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395 done
15396 case $ac_lo in
15397 ?*) ac_cv_sizeof_char=$ac_lo;;
15398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15399 See \`config.log' for more details." >&5
15400 echo "$as_me: error: cannot compute sizeof (char), 77
15401 See \`config.log' for more details." >&2;}
15402    { (exit 1); exit 1; }; } ;;
15403 esac
15404 else
15405   if test "$cross_compiling" = yes; then
15406   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15407 See \`config.log' for more details." >&5
15408 echo "$as_me: error: cannot run test program while cross compiling
15409 See \`config.log' for more details." >&2;}
15410    { (exit 1); exit 1; }; }
15411 else
15412   cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418 $ac_includes_default
15419 long longval () { return (long) (sizeof (char)); }
15420 unsigned long ulongval () { return (long) (sizeof (char)); }
15421 #include <stdio.h>
15422 #include <stdlib.h>
15423 int
15424 main ()
15425 {
15426
15427   FILE *f = fopen ("conftest.val", "w");
15428   if (! f)
15429     exit (1);
15430   if (((long) (sizeof (char))) < 0)
15431     {
15432       long i = longval ();
15433       if (i != ((long) (sizeof (char))))
15434         exit (1);
15435       fprintf (f, "%ld\n", i);
15436     }
15437   else
15438     {
15439       unsigned long i = ulongval ();
15440       if (i != ((long) (sizeof (char))))
15441         exit (1);
15442       fprintf (f, "%lu\n", i);
15443     }
15444   exit (ferror (f) || fclose (f) != 0);
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452   (eval $ac_link) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   ac_cv_sizeof_char=`cat conftest.val`
15462 else
15463   echo "$as_me: program exited with status $ac_status" >&5
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 ( exit $ac_status )
15468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15469 See \`config.log' for more details." >&5
15470 echo "$as_me: error: cannot compute sizeof (char), 77
15471 See \`config.log' for more details." >&2;}
15472    { (exit 1); exit 1; }; }
15473 fi
15474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15475 fi
15476 fi
15477 rm -f conftest.val
15478 else
15479   ac_cv_sizeof_char=0
15480 fi
15481 fi
15482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15483 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15484 cat >>confdefs.h <<_ACEOF
15485 #define SIZEOF_CHAR $ac_cv_sizeof_char
15486 _ACEOF
15487
15488
15489    echo "$as_me:$LINENO: checking for short" >&5
15490 echo $ECHO_N "checking for short... $ECHO_C" >&6
15491 if test "${ac_cv_type_short+set}" = set; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 $ac_includes_default
15501 int
15502 main ()
15503 {
15504 if ((short *) 0)
15505   return 0;
15506 if (sizeof (short))
15507   return 0;
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514   (eval $ac_compile) 2>conftest.er1
15515   ac_status=$?
15516   grep -v '^ *+' conftest.er1 >conftest.err
15517   rm -f conftest.er1
15518   cat conftest.err >&5
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } &&
15521          { ac_try='test -z "$ac_c_werror_flag"
15522                          || test ! -s conftest.err'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_cv_type_short=yes
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ac_cv_type_short=no
15540 fi
15541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15542 fi
15543 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15544 echo "${ECHO_T}$ac_cv_type_short" >&6
15545
15546 echo "$as_me:$LINENO: checking size of short" >&5
15547 echo $ECHO_N "checking size of short... $ECHO_C" >&6
15548 if test "${ac_cv_sizeof_short+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   if test "$ac_cv_type_short" = yes; then
15552   # The cast to unsigned long works around a bug in the HP C Compiler
15553   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15554   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15555   # This bug is HP SR number 8606223364.
15556   if test "$cross_compiling" = yes; then
15557   # Depending upon the size, compute the lo and hi bounds.
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 $ac_includes_default
15565 int
15566 main ()
15567 {
15568 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15569 test_array [0] = 0
15570
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_lo=0 ac_mid=0
15598   while :; do
15599     cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605 $ac_includes_default
15606 int
15607 main ()
15608 {
15609 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15610 test_array [0] = 0
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag"
15626                          || test ! -s conftest.err'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; } &&
15632          { ac_try='test -s conftest.$ac_objext'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; }; then
15638   ac_hi=$ac_mid; break
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_lo=`expr $ac_mid + 1`
15644                     if test $ac_lo -le $ac_mid; then
15645                       ac_lo= ac_hi=
15646                       break
15647                     fi
15648                     ac_mid=`expr 2 '*' $ac_mid + 1`
15649 fi
15650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15651   done
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662 $ac_includes_default
15663 int
15664 main ()
15665 {
15666 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15667 test_array [0] = 0
15668
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675   (eval $ac_compile) 2>conftest.er1
15676   ac_status=$?
15677   grep -v '^ *+' conftest.er1 >conftest.err
15678   rm -f conftest.er1
15679   cat conftest.err >&5
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -z "$ac_c_werror_flag"
15683                          || test ! -s conftest.err'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; } &&
15689          { ac_try='test -s conftest.$ac_objext'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }; then
15695   ac_hi=-1 ac_mid=-1
15696   while :; do
15697     cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h.  */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h.  */
15703 $ac_includes_default
15704 int
15705 main ()
15706 {
15707 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15708 test_array [0] = 0
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716   (eval $ac_compile) 2>conftest.er1
15717   ac_status=$?
15718   grep -v '^ *+' conftest.er1 >conftest.err
15719   rm -f conftest.er1
15720   cat conftest.err >&5
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } &&
15723          { ac_try='test -z "$ac_c_werror_flag"
15724                          || test ! -s conftest.err'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; } &&
15730          { ac_try='test -s conftest.$ac_objext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   ac_lo=$ac_mid; break
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_hi=`expr '(' $ac_mid ')' - 1`
15742                        if test $ac_mid -le $ac_hi; then
15743                          ac_lo= ac_hi=
15744                          break
15745                        fi
15746                        ac_mid=`expr 2 '*' $ac_mid`
15747 fi
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749   done
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_lo= ac_hi=
15755 fi
15756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15757 fi
15758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759 # Binary search between lo and hi bounds.
15760 while test "x$ac_lo" != "x$ac_hi"; do
15761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15762   cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 $ac_includes_default
15769 int
15770 main ()
15771 {
15772 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15773 test_array [0] = 0
15774
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781   (eval $ac_compile) 2>conftest.er1
15782   ac_status=$?
15783   grep -v '^ *+' conftest.er1 >conftest.err
15784   rm -f conftest.er1
15785   cat conftest.err >&5
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); } &&
15788          { ac_try='test -z "$ac_c_werror_flag"
15789                          || test ! -s conftest.err'
15790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791   (eval $ac_try) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; } &&
15795          { ac_try='test -s conftest.$ac_objext'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   ac_hi=$ac_mid
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 ac_lo=`expr '(' $ac_mid ')' + 1`
15807 fi
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809 done
15810 case $ac_lo in
15811 ?*) ac_cv_sizeof_short=$ac_lo;;
15812 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15813 See \`config.log' for more details." >&5
15814 echo "$as_me: error: cannot compute sizeof (short), 77
15815 See \`config.log' for more details." >&2;}
15816    { (exit 1); exit 1; }; } ;;
15817 esac
15818 else
15819   if test "$cross_compiling" = yes; then
15820   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15821 See \`config.log' for more details." >&5
15822 echo "$as_me: error: cannot run test program while cross compiling
15823 See \`config.log' for more details." >&2;}
15824    { (exit 1); exit 1; }; }
15825 else
15826   cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h.  */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h.  */
15832 $ac_includes_default
15833 long longval () { return (long) (sizeof (short)); }
15834 unsigned long ulongval () { return (long) (sizeof (short)); }
15835 #include <stdio.h>
15836 #include <stdlib.h>
15837 int
15838 main ()
15839 {
15840
15841   FILE *f = fopen ("conftest.val", "w");
15842   if (! f)
15843     exit (1);
15844   if (((long) (sizeof (short))) < 0)
15845     {
15846       long i = longval ();
15847       if (i != ((long) (sizeof (short))))
15848         exit (1);
15849       fprintf (f, "%ld\n", i);
15850     }
15851   else
15852     {
15853       unsigned long i = ulongval ();
15854       if (i != ((long) (sizeof (short))))
15855         exit (1);
15856       fprintf (f, "%lu\n", i);
15857     }
15858   exit (ferror (f) || fclose (f) != 0);
15859
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866   (eval $ac_link) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_cv_sizeof_short=`cat conftest.val`
15876 else
15877   echo "$as_me: program exited with status $ac_status" >&5
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ( exit $ac_status )
15882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15883 See \`config.log' for more details." >&5
15884 echo "$as_me: error: cannot compute sizeof (short), 77
15885 See \`config.log' for more details." >&2;}
15886    { (exit 1); exit 1; }; }
15887 fi
15888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15889 fi
15890 fi
15891 rm -f conftest.val
15892 else
15893   ac_cv_sizeof_short=0
15894 fi
15895 fi
15896 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15897 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15898 cat >>confdefs.h <<_ACEOF
15899 #define SIZEOF_SHORT $ac_cv_sizeof_short
15900 _ACEOF
15901
15902
15903    echo "$as_me:$LINENO: checking for int" >&5
15904 echo $ECHO_N "checking for int... $ECHO_C" >&6
15905 if test "${ac_cv_type_int+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 $ac_includes_default
15915 int
15916 main ()
15917 {
15918 if ((int *) 0)
15919   return 0;
15920 if (sizeof (int))
15921   return 0;
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928   (eval $ac_compile) 2>conftest.er1
15929   ac_status=$?
15930   grep -v '^ *+' conftest.er1 >conftest.err
15931   rm -f conftest.er1
15932   cat conftest.err >&5
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); } &&
15935          { ac_try='test -z "$ac_c_werror_flag"
15936                          || test ! -s conftest.err'
15937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938   (eval $ac_try) 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); }; } &&
15942          { ac_try='test -s conftest.$ac_objext'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }; then
15948   ac_cv_type_int=yes
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 ac_cv_type_int=no
15954 fi
15955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15956 fi
15957 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15958 echo "${ECHO_T}$ac_cv_type_int" >&6
15959
15960 echo "$as_me:$LINENO: checking size of int" >&5
15961 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15962 if test "${ac_cv_sizeof_int+set}" = set; then
15963   echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965   if test "$ac_cv_type_int" = yes; then
15966   # The cast to unsigned long works around a bug in the HP C Compiler
15967   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15968   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15969   # This bug is HP SR number 8606223364.
15970   if test "$cross_compiling" = yes; then
15971   # Depending upon the size, compute the lo and hi bounds.
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 $ac_includes_default
15979 int
15980 main ()
15981 {
15982 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15983 test_array [0] = 0
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991   (eval $ac_compile) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag"
15999                          || test ! -s conftest.err'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; } &&
16005          { ac_try='test -s conftest.$ac_objext'
16006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007   (eval $ac_try) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   ac_lo=0 ac_mid=0
16012   while :; do
16013     cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h.  */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h.  */
16019 $ac_includes_default
16020 int
16021 main ()
16022 {
16023 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16024 test_array [0] = 0
16025
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032   (eval $ac_compile) 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } &&
16039          { ac_try='test -z "$ac_c_werror_flag"
16040                          || test ! -s conftest.err'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; } &&
16046          { ac_try='test -s conftest.$ac_objext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   ac_hi=$ac_mid; break
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 ac_lo=`expr $ac_mid + 1`
16058                     if test $ac_lo -le $ac_mid; then
16059                       ac_lo= ac_hi=
16060                       break
16061                     fi
16062                     ac_mid=`expr 2 '*' $ac_mid + 1`
16063 fi
16064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16065   done
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076 $ac_includes_default
16077 int
16078 main ()
16079 {
16080 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16081 test_array [0] = 0
16082
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089   (eval $ac_compile) 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -z "$ac_c_werror_flag"
16097                          || test ! -s conftest.err'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_hi=-1 ac_mid=-1
16110   while :; do
16111     cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117 $ac_includes_default
16118 int
16119 main ()
16120 {
16121 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16122 test_array [0] = 0
16123
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130   (eval $ac_compile) 2>conftest.er1
16131   ac_status=$?
16132   grep -v '^ *+' conftest.er1 >conftest.err
16133   rm -f conftest.er1
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } &&
16137          { ac_try='test -z "$ac_c_werror_flag"
16138                          || test ! -s conftest.err'
16139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140   (eval $ac_try) 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; } &&
16144          { ac_try='test -s conftest.$ac_objext'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; }; then
16150   ac_lo=$ac_mid; break
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ac_hi=`expr '(' $ac_mid ')' - 1`
16156                        if test $ac_mid -le $ac_hi; then
16157                          ac_lo= ac_hi=
16158                          break
16159                        fi
16160                        ac_mid=`expr 2 '*' $ac_mid`
16161 fi
16162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163   done
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168 ac_lo= ac_hi=
16169 fi
16170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16171 fi
16172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173 # Binary search between lo and hi bounds.
16174 while test "x$ac_lo" != "x$ac_hi"; do
16175   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16176   cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182 $ac_includes_default
16183 int
16184 main ()
16185 {
16186 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16187 test_array [0] = 0
16188
16189   ;
16190   return 0;
16191 }
16192 _ACEOF
16193 rm -f conftest.$ac_objext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195   (eval $ac_compile) 2>conftest.er1
16196   ac_status=$?
16197   grep -v '^ *+' conftest.er1 >conftest.err
16198   rm -f conftest.er1
16199   cat conftest.err >&5
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); } &&
16202          { ac_try='test -z "$ac_c_werror_flag"
16203                          || test ! -s conftest.err'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; } &&
16209          { ac_try='test -s conftest.$ac_objext'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; }; then
16215   ac_hi=$ac_mid
16216 else
16217   echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 ac_lo=`expr '(' $ac_mid ')' + 1`
16221 fi
16222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16223 done
16224 case $ac_lo in
16225 ?*) ac_cv_sizeof_int=$ac_lo;;
16226 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16227 See \`config.log' for more details." >&5
16228 echo "$as_me: error: cannot compute sizeof (int), 77
16229 See \`config.log' for more details." >&2;}
16230    { (exit 1); exit 1; }; } ;;
16231 esac
16232 else
16233   if test "$cross_compiling" = yes; then
16234   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16235 See \`config.log' for more details." >&5
16236 echo "$as_me: error: cannot run test program while cross compiling
16237 See \`config.log' for more details." >&2;}
16238    { (exit 1); exit 1; }; }
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 $ac_includes_default
16247 long longval () { return (long) (sizeof (int)); }
16248 unsigned long ulongval () { return (long) (sizeof (int)); }
16249 #include <stdio.h>
16250 #include <stdlib.h>
16251 int
16252 main ()
16253 {
16254
16255   FILE *f = fopen ("conftest.val", "w");
16256   if (! f)
16257     exit (1);
16258   if (((long) (sizeof (int))) < 0)
16259     {
16260       long i = longval ();
16261       if (i != ((long) (sizeof (int))))
16262         exit (1);
16263       fprintf (f, "%ld\n", i);
16264     }
16265   else
16266     {
16267       unsigned long i = ulongval ();
16268       if (i != ((long) (sizeof (int))))
16269         exit (1);
16270       fprintf (f, "%lu\n", i);
16271     }
16272   exit (ferror (f) || fclose (f) != 0);
16273
16274   ;
16275   return 0;
16276 }
16277 _ACEOF
16278 rm -f conftest$ac_exeext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16280   (eval $ac_link) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285   (eval $ac_try) 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; }; then
16289   ac_cv_sizeof_int=`cat conftest.val`
16290 else
16291   echo "$as_me: program exited with status $ac_status" >&5
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 ( exit $ac_status )
16296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16297 See \`config.log' for more details." >&5
16298 echo "$as_me: error: cannot compute sizeof (int), 77
16299 See \`config.log' for more details." >&2;}
16300    { (exit 1); exit 1; }; }
16301 fi
16302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16303 fi
16304 fi
16305 rm -f conftest.val
16306 else
16307   ac_cv_sizeof_int=0
16308 fi
16309 fi
16310 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16311 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16312 cat >>confdefs.h <<_ACEOF
16313 #define SIZEOF_INT $ac_cv_sizeof_int
16314 _ACEOF
16315
16316
16317    echo "$as_me:$LINENO: checking for long" >&5
16318 echo $ECHO_N "checking for long... $ECHO_C" >&6
16319 if test "${ac_cv_type_long+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322   cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 $ac_includes_default
16329 int
16330 main ()
16331 {
16332 if ((long *) 0)
16333   return 0;
16334 if (sizeof (long))
16335   return 0;
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342   (eval $ac_compile) 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag"
16350                          || test ! -s conftest.err'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest.$ac_objext'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; }; then
16362   ac_cv_type_long=yes
16363 else
16364   echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16366
16367 ac_cv_type_long=no
16368 fi
16369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16370 fi
16371 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16372 echo "${ECHO_T}$ac_cv_type_long" >&6
16373
16374 echo "$as_me:$LINENO: checking size of long" >&5
16375 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16376 if test "${ac_cv_sizeof_long+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379   if test "$ac_cv_type_long" = yes; then
16380   # The cast to unsigned long works around a bug in the HP C Compiler
16381   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16382   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16383   # This bug is HP SR number 8606223364.
16384   if test "$cross_compiling" = yes; then
16385   # Depending upon the size, compute the lo and hi bounds.
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392 $ac_includes_default
16393 int
16394 main ()
16395 {
16396 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16397 test_array [0] = 0
16398
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405   (eval $ac_compile) 2>conftest.er1
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
16409   cat conftest.err >&5
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); } &&
16412          { ac_try='test -z "$ac_c_werror_flag"
16413                          || test ! -s conftest.err'
16414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415   (eval $ac_try) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; } &&
16419          { ac_try='test -s conftest.$ac_objext'
16420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421   (eval $ac_try) 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   ac_lo=0 ac_mid=0
16426   while :; do
16427     cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 $ac_includes_default
16434 int
16435 main ()
16436 {
16437 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16438 test_array [0] = 0
16439
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446   (eval $ac_compile) 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -z "$ac_c_werror_flag"
16454                          || test ! -s conftest.err'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest.$ac_objext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_hi=$ac_mid; break
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_lo=`expr $ac_mid + 1`
16472                     if test $ac_lo -le $ac_mid; then
16473                       ac_lo= ac_hi=
16474                       break
16475                     fi
16476                     ac_mid=`expr 2 '*' $ac_mid + 1`
16477 fi
16478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16479   done
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h.  */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h.  */
16490 $ac_includes_default
16491 int
16492 main ()
16493 {
16494 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16495 test_array [0] = 0
16496
16497   ;
16498   return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503   (eval $ac_compile) 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag"
16511                          || test ! -s conftest.err'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest.$ac_objext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ac_hi=-1 ac_mid=-1
16524   while :; do
16525     cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 $ac_includes_default
16532 int
16533 main ()
16534 {
16535 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16536 test_array [0] = 0
16537
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544   (eval $ac_compile) 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag"
16552                          || test ! -s conftest.err'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; } &&
16558          { ac_try='test -s conftest.$ac_objext'
16559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560   (eval $ac_try) 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); }; }; then
16564   ac_lo=$ac_mid; break
16565 else
16566   echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ac_hi=`expr '(' $ac_mid ')' - 1`
16570                        if test $ac_mid -le $ac_hi; then
16571                          ac_lo= ac_hi=
16572                          break
16573                        fi
16574                        ac_mid=`expr 2 '*' $ac_mid`
16575 fi
16576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16577   done
16578 else
16579   echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582 ac_lo= ac_hi=
16583 fi
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 # Binary search between lo and hi bounds.
16588 while test "x$ac_lo" != "x$ac_hi"; do
16589   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16590   cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596 $ac_includes_default
16597 int
16598 main ()
16599 {
16600 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16601 test_array [0] = 0
16602
16603   ;
16604   return 0;
16605 }
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609   (eval $ac_compile) 2>conftest.er1
16610   ac_status=$?
16611   grep -v '^ *+' conftest.er1 >conftest.err
16612   rm -f conftest.er1
16613   cat conftest.err >&5
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } &&
16616          { ac_try='test -z "$ac_c_werror_flag"
16617                          || test ! -s conftest.err'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; } &&
16623          { ac_try='test -s conftest.$ac_objext'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; }; then
16629   ac_hi=$ac_mid
16630 else
16631   echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ac_lo=`expr '(' $ac_mid ')' + 1`
16635 fi
16636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16637 done
16638 case $ac_lo in
16639 ?*) ac_cv_sizeof_long=$ac_lo;;
16640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16641 See \`config.log' for more details." >&5
16642 echo "$as_me: error: cannot compute sizeof (long), 77
16643 See \`config.log' for more details." >&2;}
16644    { (exit 1); exit 1; }; } ;;
16645 esac
16646 else
16647   if test "$cross_compiling" = yes; then
16648   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16649 See \`config.log' for more details." >&5
16650 echo "$as_me: error: cannot run test program while cross compiling
16651 See \`config.log' for more details." >&2;}
16652    { (exit 1); exit 1; }; }
16653 else
16654   cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660 $ac_includes_default
16661 long longval () { return (long) (sizeof (long)); }
16662 unsigned long ulongval () { return (long) (sizeof (long)); }
16663 #include <stdio.h>
16664 #include <stdlib.h>
16665 int
16666 main ()
16667 {
16668
16669   FILE *f = fopen ("conftest.val", "w");
16670   if (! f)
16671     exit (1);
16672   if (((long) (sizeof (long))) < 0)
16673     {
16674       long i = longval ();
16675       if (i != ((long) (sizeof (long))))
16676         exit (1);
16677       fprintf (f, "%ld\n", i);
16678     }
16679   else
16680     {
16681       unsigned long i = ulongval ();
16682       if (i != ((long) (sizeof (long))))
16683         exit (1);
16684       fprintf (f, "%lu\n", i);
16685     }
16686   exit (ferror (f) || fclose (f) != 0);
16687
16688   ;
16689   return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest$ac_exeext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16694   (eval $ac_link) 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699   (eval $ac_try) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; }; then
16703   ac_cv_sizeof_long=`cat conftest.val`
16704 else
16705   echo "$as_me: program exited with status $ac_status" >&5
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 ( exit $ac_status )
16710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16711 See \`config.log' for more details." >&5
16712 echo "$as_me: error: cannot compute sizeof (long), 77
16713 See \`config.log' for more details." >&2;}
16714    { (exit 1); exit 1; }; }
16715 fi
16716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717 fi
16718 fi
16719 rm -f conftest.val
16720 else
16721   ac_cv_sizeof_long=0
16722 fi
16723 fi
16724 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16725 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16726 cat >>confdefs.h <<_ACEOF
16727 #define SIZEOF_LONG $ac_cv_sizeof_long
16728 _ACEOF
16729
16730
16731    echo "$as_me:$LINENO: checking for void*" >&5
16732 echo $ECHO_N "checking for void*... $ECHO_C" >&6
16733 if test "${ac_cv_type_voidp+set}" = set; then
16734   echo $ECHO_N "(cached) $ECHO_C" >&6
16735 else
16736   cat >conftest.$ac_ext <<_ACEOF
16737 /* confdefs.h.  */
16738 _ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h.  */
16742 $ac_includes_default
16743 int
16744 main ()
16745 {
16746 if ((void* *) 0)
16747   return 0;
16748 if (sizeof (void*))
16749   return 0;
16750   ;
16751   return 0;
16752 }
16753 _ACEOF
16754 rm -f conftest.$ac_objext
16755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16756   (eval $ac_compile) 2>conftest.er1
16757   ac_status=$?
16758   grep -v '^ *+' conftest.er1 >conftest.err
16759   rm -f conftest.er1
16760   cat conftest.err >&5
16761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762   (exit $ac_status); } &&
16763          { ac_try='test -z "$ac_c_werror_flag"
16764                          || test ! -s conftest.err'
16765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16766   (eval $ac_try) 2>&5
16767   ac_status=$?
16768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769   (exit $ac_status); }; } &&
16770          { ac_try='test -s conftest.$ac_objext'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; }; then
16776   ac_cv_type_voidp=yes
16777 else
16778   echo "$as_me: failed program was:" >&5
16779 sed 's/^/| /' conftest.$ac_ext >&5
16780
16781 ac_cv_type_voidp=no
16782 fi
16783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16784 fi
16785 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
16786 echo "${ECHO_T}$ac_cv_type_voidp" >&6
16787
16788 echo "$as_me:$LINENO: checking size of void*" >&5
16789 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
16790 if test "${ac_cv_sizeof_voidp+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   if test "$ac_cv_type_voidp" = yes; then
16794   # The cast to unsigned long works around a bug in the HP C Compiler
16795   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16796   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16797   # This bug is HP SR number 8606223364.
16798   if test "$cross_compiling" = yes; then
16799   # Depending upon the size, compute the lo and hi bounds.
16800 cat >conftest.$ac_ext <<_ACEOF
16801 /* confdefs.h.  */
16802 _ACEOF
16803 cat confdefs.h >>conftest.$ac_ext
16804 cat >>conftest.$ac_ext <<_ACEOF
16805 /* end confdefs.h.  */
16806 $ac_includes_default
16807 int
16808 main ()
16809 {
16810 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
16811 test_array [0] = 0
16812
16813   ;
16814   return 0;
16815 }
16816 _ACEOF
16817 rm -f conftest.$ac_objext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16819   (eval $ac_compile) 2>conftest.er1
16820   ac_status=$?
16821   grep -v '^ *+' conftest.er1 >conftest.err
16822   rm -f conftest.er1
16823   cat conftest.err >&5
16824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825   (exit $ac_status); } &&
16826          { ac_try='test -z "$ac_c_werror_flag"
16827                          || test ! -s conftest.err'
16828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829   (eval $ac_try) 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; } &&
16833          { ac_try='test -s conftest.$ac_objext'
16834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835   (eval $ac_try) 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; }; then
16839   ac_lo=0 ac_mid=0
16840   while :; do
16841     cat >conftest.$ac_ext <<_ACEOF
16842 /* confdefs.h.  */
16843 _ACEOF
16844 cat confdefs.h >>conftest.$ac_ext
16845 cat >>conftest.$ac_ext <<_ACEOF
16846 /* end confdefs.h.  */
16847 $ac_includes_default
16848 int
16849 main ()
16850 {
16851 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
16852 test_array [0] = 0
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext
16859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16860   (eval $ac_compile) 2>conftest.er1
16861   ac_status=$?
16862   grep -v '^ *+' conftest.er1 >conftest.err
16863   rm -f conftest.er1
16864   cat conftest.err >&5
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } &&
16867          { ac_try='test -z "$ac_c_werror_flag"
16868                          || test ! -s conftest.err'
16869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870   (eval $ac_try) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; } &&
16874          { ac_try='test -s conftest.$ac_objext'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; }; then
16880   ac_hi=$ac_mid; break
16881 else
16882   echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16884
16885 ac_lo=`expr $ac_mid + 1`
16886                     if test $ac_lo -le $ac_mid; then
16887                       ac_lo= ac_hi=
16888                       break
16889                     fi
16890                     ac_mid=`expr 2 '*' $ac_mid + 1`
16891 fi
16892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16893   done
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h.  */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h.  */
16904 $ac_includes_default
16905 int
16906 main ()
16907 {
16908 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
16909 test_array [0] = 0
16910
16911   ;
16912   return 0;
16913 }
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16917   (eval $ac_compile) 2>conftest.er1
16918   ac_status=$?
16919   grep -v '^ *+' conftest.er1 >conftest.err
16920   rm -f conftest.er1
16921   cat conftest.err >&5
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } &&
16924          { ac_try='test -z "$ac_c_werror_flag"
16925                          || test ! -s conftest.err'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; } &&
16931          { ac_try='test -s conftest.$ac_objext'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; }; then
16937   ac_hi=-1 ac_mid=-1
16938   while :; do
16939     cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h.  */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h.  */
16945 $ac_includes_default
16946 int
16947 main ()
16948 {
16949 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
16950 test_array [0] = 0
16951
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest.$ac_objext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16958   (eval $ac_compile) 2>conftest.er1
16959   ac_status=$?
16960   grep -v '^ *+' conftest.er1 >conftest.err
16961   rm -f conftest.er1
16962   cat conftest.err >&5
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); } &&
16965          { ac_try='test -z "$ac_c_werror_flag"
16966                          || test ! -s conftest.err'
16967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16968   (eval $ac_try) 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); }; } &&
16972          { ac_try='test -s conftest.$ac_objext'
16973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974   (eval $ac_try) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; }; then
16978   ac_lo=$ac_mid; break
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ac_hi=`expr '(' $ac_mid ')' - 1`
16984                        if test $ac_mid -le $ac_hi; then
16985                          ac_lo= ac_hi=
16986                          break
16987                        fi
16988                        ac_mid=`expr 2 '*' $ac_mid`
16989 fi
16990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16991   done
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996 ac_lo= ac_hi=
16997 fi
16998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16999 fi
17000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17001 # Binary search between lo and hi bounds.
17002 while test "x$ac_lo" != "x$ac_hi"; do
17003   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17004   cat >conftest.$ac_ext <<_ACEOF
17005 /* confdefs.h.  */
17006 _ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h.  */
17010 $ac_includes_default
17011 int
17012 main ()
17013 {
17014 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
17015 test_array [0] = 0
17016
17017   ;
17018   return 0;
17019 }
17020 _ACEOF
17021 rm -f conftest.$ac_objext
17022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17023   (eval $ac_compile) 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } &&
17030          { ac_try='test -z "$ac_c_werror_flag"
17031                          || test ! -s conftest.err'
17032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17033   (eval $ac_try) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); }; } &&
17037          { ac_try='test -s conftest.$ac_objext'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043   ac_hi=$ac_mid
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17047
17048 ac_lo=`expr '(' $ac_mid ')' + 1`
17049 fi
17050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17051 done
17052 case $ac_lo in
17053 ?*) ac_cv_sizeof_voidp=$ac_lo;;
17054 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17055 See \`config.log' for more details." >&5
17056 echo "$as_me: error: cannot compute sizeof (void*), 77
17057 See \`config.log' for more details." >&2;}
17058    { (exit 1); exit 1; }; } ;;
17059 esac
17060 else
17061   if test "$cross_compiling" = yes; then
17062   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17063 See \`config.log' for more details." >&5
17064 echo "$as_me: error: cannot run test program while cross compiling
17065 See \`config.log' for more details." >&2;}
17066    { (exit 1); exit 1; }; }
17067 else
17068   cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074 $ac_includes_default
17075 long longval () { return (long) (sizeof (void*)); }
17076 unsigned long ulongval () { return (long) (sizeof (void*)); }
17077 #include <stdio.h>
17078 #include <stdlib.h>
17079 int
17080 main ()
17081 {
17082
17083   FILE *f = fopen ("conftest.val", "w");
17084   if (! f)
17085     exit (1);
17086   if (((long) (sizeof (void*))) < 0)
17087     {
17088       long i = longval ();
17089       if (i != ((long) (sizeof (void*))))
17090         exit (1);
17091       fprintf (f, "%ld\n", i);
17092     }
17093   else
17094     {
17095       unsigned long i = ulongval ();
17096       if (i != ((long) (sizeof (void*))))
17097         exit (1);
17098       fprintf (f, "%lu\n", i);
17099     }
17100   exit (ferror (f) || fclose (f) != 0);
17101
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 rm -f conftest$ac_exeext
17107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17108   (eval $ac_link) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; }; then
17117   ac_cv_sizeof_voidp=`cat conftest.val`
17118 else
17119   echo "$as_me: program exited with status $ac_status" >&5
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 ( exit $ac_status )
17124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
17125 See \`config.log' for more details." >&5
17126 echo "$as_me: error: cannot compute sizeof (void*), 77
17127 See \`config.log' for more details." >&2;}
17128    { (exit 1); exit 1; }; }
17129 fi
17130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17131 fi
17132 fi
17133 rm -f conftest.val
17134 else
17135   ac_cv_sizeof_voidp=0
17136 fi
17137 fi
17138 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
17139 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
17140 cat >>confdefs.h <<_ACEOF
17141 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
17142 _ACEOF
17143
17144
17145    ac_cv_char_data_model=""
17146    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
17147    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
17148    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
17149    ac_cv_long_data_model=""
17150    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
17151    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
17152    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
17153    echo "$as_me:$LINENO: checking data model" >&5
17154 echo $ECHO_N "checking data model... $ECHO_C" >&6
17155    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
17156     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
17157     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
17158     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
17159     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
17160     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
17161     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
17162     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
17163     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
17164     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
17165     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
17166     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
17167     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
17168     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
17169     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
17170     222/*|333/*|444/*|666/*|888/*) :
17171                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
17172      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
17173    esac
17174    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
17175 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
17176
17177 fi
17178
17179 if test "_$ac_cv_header_stdint_x" != "_" ; then
17180    ac_cv_header_stdint="$ac_cv_header_stdint_x"
17181 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
17182    ac_cv_header_stdint="$ac_cv_header_stdint_o"
17183 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
17184    ac_cv_header_stdint="$ac_cv_header_stdint_u"
17185 else
17186    ac_cv_header_stdint="stddef.h"
17187 fi
17188
17189 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
17190 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
17191 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
17192 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
17193 unset ac_cv_type_int_least32_t
17194 unset ac_cv_type_int_fast32_t
17195 echo "$as_me:$LINENO: checking for int_least32_t" >&5
17196 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
17197 if test "${ac_cv_type_int_least32_t+set}" = set; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200   cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h.  */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h.  */
17206 #include <$ac_cv_header_stdint>
17207
17208 int
17209 main ()
17210 {
17211 if ((int_least32_t *) 0)
17212   return 0;
17213 if (sizeof (int_least32_t))
17214   return 0;
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext
17220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17221   (eval $ac_compile) 2>conftest.er1
17222   ac_status=$?
17223   grep -v '^ *+' conftest.er1 >conftest.err
17224   rm -f conftest.er1
17225   cat conftest.err >&5
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } &&
17228          { ac_try='test -z "$ac_c_werror_flag"
17229                          || test ! -s conftest.err'
17230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17231   (eval $ac_try) 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest.$ac_objext'
17236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237   (eval $ac_try) 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   ac_cv_type_int_least32_t=yes
17242 else
17243   echo "$as_me: failed program was:" >&5
17244 sed 's/^/| /' conftest.$ac_ext >&5
17245
17246 ac_cv_type_int_least32_t=no
17247 fi
17248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17249 fi
17250 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
17251 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
17252
17253 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
17254 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
17255 if test "${ac_cv_type_int_fast32_t+set}" = set; then
17256   echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258   cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h.  */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h.  */
17264 #include<$ac_cv_header_stdint>
17265
17266 int
17267 main ()
17268 {
17269 if ((int_fast32_t *) 0)
17270   return 0;
17271 if (sizeof (int_fast32_t))
17272   return 0;
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279   (eval $ac_compile) 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -z "$ac_c_werror_flag"
17287                          || test ! -s conftest.err'
17288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289   (eval $ac_try) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; } &&
17293          { ac_try='test -s conftest.$ac_objext'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   ac_cv_type_int_fast32_t=yes
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 ac_cv_type_int_fast32_t=no
17305 fi
17306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17307 fi
17308 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
17309 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
17310
17311 echo "$as_me:$LINENO: checking for intmax_t" >&5
17312 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
17313 if test "${ac_cv_type_intmax_t+set}" = set; then
17314   echo $ECHO_N "(cached) $ECHO_C" >&6
17315 else
17316   cat >conftest.$ac_ext <<_ACEOF
17317 /* confdefs.h.  */
17318 _ACEOF
17319 cat confdefs.h >>conftest.$ac_ext
17320 cat >>conftest.$ac_ext <<_ACEOF
17321 /* end confdefs.h.  */
17322 #include <$ac_cv_header_stdint>
17323
17324 int
17325 main ()
17326 {
17327 if ((intmax_t *) 0)
17328   return 0;
17329 if (sizeof (intmax_t))
17330   return 0;
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17337   (eval $ac_compile) 2>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag"
17345                          || test ! -s conftest.err'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest.$ac_objext'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }; then
17357   ac_cv_type_intmax_t=yes
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362 ac_cv_type_intmax_t=no
17363 fi
17364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17365 fi
17366 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
17367 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
17368
17369
17370 fi # shortcircut to system "stdint.h"
17371 # ------------------ PREPARE VARIABLES ------------------------------
17372 if test "$GCC" = "yes" ; then
17373 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
17374 else
17375 ac_cv_stdint_message="using $CC"
17376 fi
17377
17378 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
17379 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
17380
17381 # ----------------- DONE inttypes.h checks START header -------------
17382           ac_config_commands="$ac_config_commands $ac_stdint_h"
17383
17384
17385
17386 for ac_prog in ar
17387 do
17388   # Extract the first word of "$ac_prog", so it can be a program name with args.
17389 set dummy $ac_prog; ac_word=$2
17390 echo "$as_me:$LINENO: checking for $ac_word" >&5
17391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17392 if test "${ac_cv_path_AR+set}" = set; then
17393   echo $ECHO_N "(cached) $ECHO_C" >&6
17394 else
17395   case $AR in
17396   [\\/]* | ?:[\\/]*)
17397   ac_cv_path_AR="$AR" # Let the user override the test with a path.
17398   ;;
17399   *)
17400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401 for as_dir in $LOCSYSPATH
17402 do
17403   IFS=$as_save_IFS
17404   test -z "$as_dir" && as_dir=.
17405   for ac_exec_ext in '' $ac_executable_extensions; do
17406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17407     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17409     break 2
17410   fi
17411 done
17412 done
17413
17414   ;;
17415 esac
17416 fi
17417 AR=$ac_cv_path_AR
17418
17419 if test -n "$AR"; then
17420   echo "$as_me:$LINENO: result: $AR" >&5
17421 echo "${ECHO_T}$AR" >&6
17422 else
17423   echo "$as_me:$LINENO: result: no" >&5
17424 echo "${ECHO_T}no" >&6
17425 fi
17426
17427   test -n "$AR" && break
17428 done
17429
17430
17431 for ac_prog in gawk mawk nawk awk
17432 do
17433   # Extract the first word of "$ac_prog", so it can be a program name with args.
17434 set dummy $ac_prog; ac_word=$2
17435 echo "$as_me:$LINENO: checking for $ac_word" >&5
17436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17437 if test "${ac_cv_prog_AWK+set}" = set; then
17438   echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440   if test -n "$AWK"; then
17441   ac_cv_prog_AWK="$AWK" # Let the user override the test.
17442 else
17443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17444 for as_dir in $PATH
17445 do
17446   IFS=$as_save_IFS
17447   test -z "$as_dir" && as_dir=.
17448   for ac_exec_ext in '' $ac_executable_extensions; do
17449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17450     ac_cv_prog_AWK="$ac_prog"
17451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17452     break 2
17453   fi
17454 done
17455 done
17456
17457 fi
17458 fi
17459 AWK=$ac_cv_prog_AWK
17460 if test -n "$AWK"; then
17461   echo "$as_me:$LINENO: result: $AWK" >&5
17462 echo "${ECHO_T}$AWK" >&6
17463 else
17464   echo "$as_me:$LINENO: result: no" >&5
17465 echo "${ECHO_T}no" >&6
17466 fi
17467
17468   test -n "$AWK" && break
17469 done
17470
17471 for ac_prog in 'bison -y' byacc
17472 do
17473   # Extract the first word of "$ac_prog", so it can be a program name with args.
17474 set dummy $ac_prog; ac_word=$2
17475 echo "$as_me:$LINENO: checking for $ac_word" >&5
17476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17477 if test "${ac_cv_prog_YACC+set}" = set; then
17478   echo $ECHO_N "(cached) $ECHO_C" >&6
17479 else
17480   if test -n "$YACC"; then
17481   ac_cv_prog_YACC="$YACC" # Let the user override the test.
17482 else
17483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17484 for as_dir in $PATH
17485 do
17486   IFS=$as_save_IFS
17487   test -z "$as_dir" && as_dir=.
17488   for ac_exec_ext in '' $ac_executable_extensions; do
17489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17490     ac_cv_prog_YACC="$ac_prog"
17491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17492     break 2
17493   fi
17494 done
17495 done
17496
17497 fi
17498 fi
17499 YACC=$ac_cv_prog_YACC
17500 if test -n "$YACC"; then
17501   echo "$as_me:$LINENO: result: $YACC" >&5
17502 echo "${ECHO_T}$YACC" >&6
17503 else
17504   echo "$as_me:$LINENO: result: no" >&5
17505 echo "${ECHO_T}no" >&6
17506 fi
17507
17508   test -n "$YACC" && break
17509 done
17510 test -n "$YACC" || YACC="yacc"
17511
17512 for ac_prog in cat
17513 do
17514   # Extract the first word of "$ac_prog", so it can be a program name with args.
17515 set dummy $ac_prog; ac_word=$2
17516 echo "$as_me:$LINENO: checking for $ac_word" >&5
17517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17518 if test "${ac_cv_path_CAT+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   case $CAT in
17522   [\\/]* | ?:[\\/]*)
17523   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
17524   ;;
17525   *)
17526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17527 for as_dir in $LOCSYSPATH
17528 do
17529   IFS=$as_save_IFS
17530   test -z "$as_dir" && as_dir=.
17531   for ac_exec_ext in '' $ac_executable_extensions; do
17532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17533     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
17534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17535     break 2
17536   fi
17537 done
17538 done
17539
17540   ;;
17541 esac
17542 fi
17543 CAT=$ac_cv_path_CAT
17544
17545 if test -n "$CAT"; then
17546   echo "$as_me:$LINENO: result: $CAT" >&5
17547 echo "${ECHO_T}$CAT" >&6
17548 else
17549   echo "$as_me:$LINENO: result: no" >&5
17550 echo "${ECHO_T}no" >&6
17551 fi
17552
17553   test -n "$CAT" && break
17554 done
17555
17556 if test -z "$CAT"; then
17557     CAT=cat
17558 fi
17559 for ac_prog in compress
17560 do
17561   # Extract the first word of "$ac_prog", so it can be a program name with args.
17562 set dummy $ac_prog; ac_word=$2
17563 echo "$as_me:$LINENO: checking for $ac_word" >&5
17564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17565 if test "${ac_cv_path_COMPRESS+set}" = set; then
17566   echo $ECHO_N "(cached) $ECHO_C" >&6
17567 else
17568   case $COMPRESS in
17569   [\\/]* | ?:[\\/]*)
17570   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
17571   ;;
17572   *)
17573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17574 for as_dir in $LOCSYSPATH
17575 do
17576   IFS=$as_save_IFS
17577   test -z "$as_dir" && as_dir=.
17578   for ac_exec_ext in '' $ac_executable_extensions; do
17579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17580     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
17581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17582     break 2
17583   fi
17584 done
17585 done
17586
17587   ;;
17588 esac
17589 fi
17590 COMPRESS=$ac_cv_path_COMPRESS
17591
17592 if test -n "$COMPRESS"; then
17593   echo "$as_me:$LINENO: result: $COMPRESS" >&5
17594 echo "${ECHO_T}$COMPRESS" >&6
17595 else
17596   echo "$as_me:$LINENO: result: no" >&5
17597 echo "${ECHO_T}no" >&6
17598 fi
17599
17600   test -n "$COMPRESS" && break
17601 done
17602
17603 for ac_prog in dd
17604 do
17605   # Extract the first word of "$ac_prog", so it can be a program name with args.
17606 set dummy $ac_prog; ac_word=$2
17607 echo "$as_me:$LINENO: checking for $ac_word" >&5
17608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17609 if test "${ac_cv_path_DD+set}" = set; then
17610   echo $ECHO_N "(cached) $ECHO_C" >&6
17611 else
17612   case $DD in
17613   [\\/]* | ?:[\\/]*)
17614   ac_cv_path_DD="$DD" # Let the user override the test with a path.
17615   ;;
17616   *)
17617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17618 for as_dir in $LOCSYSPATH
17619 do
17620   IFS=$as_save_IFS
17621   test -z "$as_dir" && as_dir=.
17622   for ac_exec_ext in '' $ac_executable_extensions; do
17623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17624     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
17625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17626     break 2
17627   fi
17628 done
17629 done
17630
17631   ;;
17632 esac
17633 fi
17634 DD=$ac_cv_path_DD
17635
17636 if test -n "$DD"; then
17637   echo "$as_me:$LINENO: result: $DD" >&5
17638 echo "${ECHO_T}$DD" >&6
17639 else
17640   echo "$as_me:$LINENO: result: no" >&5
17641 echo "${ECHO_T}no" >&6
17642 fi
17643
17644   test -n "$DD" && break
17645 done
17646
17647 for ac_prog in getconf
17648 do
17649   # Extract the first word of "$ac_prog", so it can be a program name with args.
17650 set dummy $ac_prog; ac_word=$2
17651 echo "$as_me:$LINENO: checking for $ac_word" >&5
17652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17653 if test "${ac_cv_path_GETCONF+set}" = set; then
17654   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656   case $GETCONF in
17657   [\\/]* | ?:[\\/]*)
17658   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
17659   ;;
17660   *)
17661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $SYSPATH
17663 do
17664   IFS=$as_save_IFS
17665   test -z "$as_dir" && as_dir=.
17666   for ac_exec_ext in '' $ac_executable_extensions; do
17667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17668     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
17669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17670     break 2
17671   fi
17672 done
17673 done
17674
17675   ;;
17676 esac
17677 fi
17678 GETCONF=$ac_cv_path_GETCONF
17679
17680 if test -n "$GETCONF"; then
17681   echo "$as_me:$LINENO: result: $GETCONF" >&5
17682 echo "${ECHO_T}$GETCONF" >&6
17683 else
17684   echo "$as_me:$LINENO: result: no" >&5
17685 echo "${ECHO_T}no" >&6
17686 fi
17687
17688   test -n "$GETCONF" && break
17689 done
17690
17691
17692
17693 # Check whether --with-gnuplot or --without-gnuplot was given.
17694 if test "${with_gnuplot+set}" = set; then
17695   withval="$with_gnuplot"
17696    ac_with_gnuplot=$withval;
17697 else
17698    ac_with_gnuplot=maybe;
17699 fi;
17700
17701 if test "$ac_with_gnuplot" = "yes" -o "$ac_with_gnuplot" = "maybe"; then
17702     for ac_prog in gnuplot
17703 do
17704   # Extract the first word of "$ac_prog", so it can be a program name with args.
17705 set dummy $ac_prog; ac_word=$2
17706 echo "$as_me:$LINENO: checking for $ac_word" >&5
17707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17708 if test "${ac_cv_path_GNUPLOT+set}" = set; then
17709   echo $ECHO_N "(cached) $ECHO_C" >&6
17710 else
17711   case $GNUPLOT in
17712   [\\/]* | ?:[\\/]*)
17713   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
17714   ;;
17715   *)
17716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17717 for as_dir in $LOCSYSPATH
17718 do
17719   IFS=$as_save_IFS
17720   test -z "$as_dir" && as_dir=.
17721   for ac_exec_ext in '' $ac_executable_extensions; do
17722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17723     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
17724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17725     break 2
17726   fi
17727 done
17728 done
17729
17730   ;;
17731 esac
17732 fi
17733 GNUPLOT=$ac_cv_path_GNUPLOT
17734
17735 if test -n "$GNUPLOT"; then
17736   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
17737 echo "${ECHO_T}$GNUPLOT" >&6
17738 else
17739   echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6
17741 fi
17742
17743   test -n "$GNUPLOT" && break
17744 done
17745
17746 else
17747     if test "$ac_with_gnuplot" != "no"; then
17748         if test -x "$ac_with_gnuplot"; then
17749             GNUPLOT="$ac_with_gnuplot";
17750         else
17751             { echo "$as_me:$LINENO: WARNING: Specified gnuplot of $ac_with_gnuplot isn't" >&5
17752 echo "$as_me: WARNING: Specified gnuplot of $ac_with_gnuplot isn't" >&2;}
17753             { echo "$as_me:$LINENO: WARNING: executable, searching for an alternative." >&5
17754 echo "$as_me: WARNING: executable, searching for an alternative." >&2;}
17755             for ac_prog in gnuplot
17756 do
17757   # Extract the first word of "$ac_prog", so it can be a program name with args.
17758 set dummy $ac_prog; ac_word=$2
17759 echo "$as_me:$LINENO: checking for $ac_word" >&5
17760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17761 if test "${ac_cv_path_GNUPLOT+set}" = set; then
17762   echo $ECHO_N "(cached) $ECHO_C" >&6
17763 else
17764   case $GNUPLOT in
17765   [\\/]* | ?:[\\/]*)
17766   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
17767   ;;
17768   *)
17769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 for as_dir in $LOCSYSPATH
17771 do
17772   IFS=$as_save_IFS
17773   test -z "$as_dir" && as_dir=.
17774   for ac_exec_ext in '' $ac_executable_extensions; do
17775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17776     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
17777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17778     break 2
17779   fi
17780 done
17781 done
17782
17783   ;;
17784 esac
17785 fi
17786 GNUPLOT=$ac_cv_path_GNUPLOT
17787
17788 if test -n "$GNUPLOT"; then
17789   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
17790 echo "${ECHO_T}$GNUPLOT" >&6
17791 else
17792   echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6
17794 fi
17795
17796   test -n "$GNUPLOT" && break
17797 done
17798
17799         fi
17800     fi
17801 fi
17802
17803
17804 for ac_prog in gtar gnutar tar
17805 do
17806   # Extract the first word of "$ac_prog", so it can be a program name with args.
17807 set dummy $ac_prog; ac_word=$2
17808 echo "$as_me:$LINENO: checking for $ac_word" >&5
17809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17810 if test "${ac_cv_path_GNUTAR+set}" = set; then
17811   echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813   case $GNUTAR in
17814   [\\/]* | ?:[\\/]*)
17815   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
17816   ;;
17817   *)
17818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17819 for as_dir in $LOCSYSPATH
17820 do
17821   IFS=$as_save_IFS
17822   test -z "$as_dir" && as_dir=.
17823   for ac_exec_ext in '' $ac_executable_extensions; do
17824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17825     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
17826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17827     break 2
17828   fi
17829 done
17830 done
17831
17832   ;;
17833 esac
17834 fi
17835 GNUTAR=$ac_cv_path_GNUTAR
17836
17837 if test -n "$GNUTAR"; then
17838   echo "$as_me:$LINENO: result: $GNUTAR" >&5
17839 echo "${ECHO_T}$GNUTAR" >&6
17840 else
17841   echo "$as_me:$LINENO: result: no" >&5
17842 echo "${ECHO_T}no" >&6
17843 fi
17844
17845   test -n "$GNUTAR" && break
17846 done
17847
17848 if test ! -z "$GNUTAR"; then
17849   case "`\"$GNUTAR\" --version 2>&1`" in
17850    *GNU*tar* | *Free*paxutils* )
17851
17852 cat >>confdefs.h <<_ACEOF
17853 #define GNUTAR "$GNUTAR"
17854 _ACEOF
17855
17856                 ;;
17857    *)
17858                 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
17859 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
17860                 GNUTAR=
17861                 ;;
17862   esac
17863 fi
17864
17865 for ac_prog in smbclient
17866 do
17867   # Extract the first word of "$ac_prog", so it can be a program name with args.
17868 set dummy $ac_prog; ac_word=$2
17869 echo "$as_me:$LINENO: checking for $ac_word" >&5
17870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17871 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
17872   echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874   case $SAMBA_CLIENT in
17875   [\\/]* | ?:[\\/]*)
17876   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
17877   ;;
17878   *)
17879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in $LOCSYSPATH
17881 do
17882   IFS=$as_save_IFS
17883   test -z "$as_dir" && as_dir=.
17884   for ac_exec_ext in '' $ac_executable_extensions; do
17885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17886     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
17887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17888     break 2
17889   fi
17890 done
17891 done
17892
17893   ;;
17894 esac
17895 fi
17896 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
17897
17898 if test -n "$SAMBA_CLIENT"; then
17899   echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
17900 echo "${ECHO_T}$SAMBA_CLIENT" >&6
17901 else
17902   echo "$as_me:$LINENO: result: no" >&5
17903 echo "${ECHO_T}no" >&6
17904 fi
17905
17906   test -n "$SAMBA_CLIENT" && break
17907 done
17908
17909 if test ! -z "$SAMBA_CLIENT"; then
17910   case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
17911   *"Unknown host"*)
17912                 smbversion=1
17913                 ;;
17914   *"Connection to not.a.host.name failed"*)
17915                 smbversion=2
17916                 ;;
17917   *)
17918                 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
17919 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
17920                 SAMBA_CLIENT=
17921                 ;;
17922   esac
17923   if test -n "$SAMBA_CLIENT"; then
17924
17925 cat >>confdefs.h <<_ACEOF
17926 #define SAMBA_CLIENT "$SAMBA_CLIENT"
17927 _ACEOF
17928
17929
17930 cat >>confdefs.h <<_ACEOF
17931 #define SAMBA_VERSION $smbversion
17932 _ACEOF
17933
17934   fi
17935 fi
17936
17937 for ac_prog in gzip
17938 do
17939   # Extract the first word of "$ac_prog", so it can be a program name with args.
17940 set dummy $ac_prog; ac_word=$2
17941 echo "$as_me:$LINENO: checking for $ac_word" >&5
17942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17943 if test "${ac_cv_path_GZIP+set}" = set; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   case $GZIP in
17947   [\\/]* | ?:[\\/]*)
17948   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
17949   ;;
17950   *)
17951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17952 for as_dir in $LOCSYSPATH
17953 do
17954   IFS=$as_save_IFS
17955   test -z "$as_dir" && as_dir=.
17956   for ac_exec_ext in '' $ac_executable_extensions; do
17957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17958     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
17959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17960     break 2
17961   fi
17962 done
17963 done
17964
17965   ;;
17966 esac
17967 fi
17968 GZIP=$ac_cv_path_GZIP
17969
17970 if test -n "$GZIP"; then
17971   echo "$as_me:$LINENO: result: $GZIP" >&5
17972 echo "${ECHO_T}$GZIP" >&6
17973 else
17974   echo "$as_me:$LINENO: result: no" >&5
17975 echo "${ECHO_T}no" >&6
17976 fi
17977
17978   test -n "$GZIP" && break
17979 done
17980
17981 if test "$GZIP"; then
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define HAVE_GZIP 1
17985 _ACEOF
17986
17987     COMPRESS_PATH="$GZIP"
17988     COMPRESS_SUFFIX=".gz"
17989     COMPRESS_FAST_OPT="--fast"
17990     COMPRESS_BEST_OPT="--best"
17991     UNCOMPRESS_PATH="$GZIP"
17992     UNCOMPRESS_OPT="-dc"
17993 else
17994     if test "$COMPRESS"; then
17995         COMPRESS_PATH="$COMPRESS"
17996         COMPRESS_SUFFIX=".Z"
17997         COMPRESS_FAST_OPT="-f"
17998         COMPRESS_BEST_OPT="-f"
17999         UNCOMPRESS_PATH="$COMPRESS"
18000         UNCOMPRESS_OPT="-dc"
18001     else
18002                                 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&5
18003 echo "$as_me: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&2;}
18004         COMPRESS_PATH="$CAT"
18005         COMPRESS_SUFFIX=""
18006         COMPRESS_FAST_OPT=""
18007         COMPRESS_BEST_OPT=""
18008         UNCOMPRESS_PATH="$CAT"
18009         UNCOMPRESS_OPT=""
18010     fi
18011 fi
18012
18013 cat >>confdefs.h <<_ACEOF
18014 #define COMPRESS_PATH "$COMPRESS_PATH"
18015 _ACEOF
18016
18017
18018 cat >>confdefs.h <<_ACEOF
18019 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
18020 _ACEOF
18021
18022
18023 cat >>confdefs.h <<_ACEOF
18024 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
18025 _ACEOF
18026
18027
18028 cat >>confdefs.h <<_ACEOF
18029 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
18030 _ACEOF
18031
18032
18033 cat >>confdefs.h <<_ACEOF
18034 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
18035 _ACEOF
18036
18037
18038 cat >>confdefs.h <<_ACEOF
18039 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
18040 _ACEOF
18041
18042
18043 for ac_prog in sort
18044 do
18045   # Extract the first word of "$ac_prog", so it can be a program name with args.
18046 set dummy $ac_prog; ac_word=$2
18047 echo "$as_me:$LINENO: checking for $ac_word" >&5
18048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18049 if test "${ac_cv_path_SORT+set}" = set; then
18050   echo $ECHO_N "(cached) $ECHO_C" >&6
18051 else
18052   case $SORT in
18053   [\\/]* | ?:[\\/]*)
18054   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
18055   ;;
18056   *)
18057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18058 for as_dir in $LOCSYSPATH
18059 do
18060   IFS=$as_save_IFS
18061   test -z "$as_dir" && as_dir=.
18062   for ac_exec_ext in '' $ac_executable_extensions; do
18063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18064     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
18065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18066     break 2
18067   fi
18068 done
18069 done
18070
18071   ;;
18072 esac
18073 fi
18074 SORT=$ac_cv_path_SORT
18075
18076 if test -n "$SORT"; then
18077   echo "$as_me:$LINENO: result: $SORT" >&5
18078 echo "${ECHO_T}$SORT" >&6
18079 else
18080   echo "$as_me:$LINENO: result: no" >&5
18081 echo "${ECHO_T}no" >&6
18082 fi
18083
18084   test -n "$SORT" && break
18085 done
18086
18087 if test -z "$SORT"; then
18088     if $NO_SERVER_MODE; then
18089         SORT="NONE"
18090     else
18091         { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
18092 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
18093    { (exit 1); exit 1; }; }
18094     fi
18095 fi
18096
18097 cat >>confdefs.h <<_ACEOF
18098 #define SORT_PATH "$SORT"
18099 _ACEOF
18100
18101
18102 for ac_prog in Mail mailx mail
18103 do
18104   # Extract the first word of "$ac_prog", so it can be a program name with args.
18105 set dummy $ac_prog; ac_word=$2
18106 echo "$as_me:$LINENO: checking for $ac_word" >&5
18107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18108 if test "${ac_cv_path_MAILER+set}" = set; then
18109   echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111   case $MAILER in
18112   [\\/]* | ?:[\\/]*)
18113   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
18114   ;;
18115   *)
18116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18117 for as_dir in $PATH
18118 do
18119   IFS=$as_save_IFS
18120   test -z "$as_dir" && as_dir=.
18121   for ac_exec_ext in '' $ac_executable_extensions; do
18122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18123     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
18124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18125     break 2
18126   fi
18127 done
18128 done
18129
18130   ;;
18131 esac
18132 fi
18133 MAILER=$ac_cv_path_MAILER
18134
18135 if test -n "$MAILER"; then
18136   echo "$as_me:$LINENO: result: $MAILER" >&5
18137 echo "${ECHO_T}$MAILER" >&6
18138 else
18139   echo "$as_me:$LINENO: result: no" >&5
18140 echo "${ECHO_T}no" >&6
18141 fi
18142
18143   test -n "$MAILER" && break
18144 done
18145
18146 if test -z "$MAILER"; then
18147     if $NO_SERVER_MODE; then
18148         MAILER="NONE"
18149         { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
18150 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
18151     else
18152         { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
18153 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
18154    { (exit 1); exit 1; }; }
18155     fi
18156 fi
18157
18158 cat >>confdefs.h <<_ACEOF
18159 #define MAILER "$MAILER"
18160 _ACEOF
18161
18162
18163 for ac_prog in mt
18164 do
18165   # Extract the first word of "$ac_prog", so it can be a program name with args.
18166 set dummy $ac_prog; ac_word=$2
18167 echo "$as_me:$LINENO: checking for $ac_word" >&5
18168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18169 if test "${ac_cv_path_MT+set}" = set; then
18170   echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172   case $MT in
18173   [\\/]* | ?:[\\/]*)
18174   ac_cv_path_MT="$MT" # Let the user override the test with a path.
18175   ;;
18176   *)
18177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18178 for as_dir in $LOCSYSPATH
18179 do
18180   IFS=$as_save_IFS
18181   test -z "$as_dir" && as_dir=.
18182   for ac_exec_ext in '' $ac_executable_extensions; do
18183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18184     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
18185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18186     break 2
18187   fi
18188 done
18189 done
18190
18191   ;;
18192 esac
18193 fi
18194 MT=$ac_cv_path_MT
18195
18196 if test -n "$MT"; then
18197   echo "$as_me:$LINENO: result: $MT" >&5
18198 echo "${ECHO_T}$MT" >&6
18199 else
18200   echo "$as_me:$LINENO: result: no" >&5
18201 echo "${ECHO_T}no" >&6
18202 fi
18203
18204   test -n "$MT" && break
18205 done
18206 test -n "$MT" || MT="mt"
18207
18208
18209 for ac_prog in chio
18210 do
18211   # Extract the first word of "$ac_prog", so it can be a program name with args.
18212 set dummy $ac_prog; ac_word=$2
18213 echo "$as_me:$LINENO: checking for $ac_word" >&5
18214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18215 if test "${ac_cv_path_CHIO+set}" = set; then
18216   echo $ECHO_N "(cached) $ECHO_C" >&6
18217 else
18218   case $CHIO in
18219   [\\/]* | ?:[\\/]*)
18220   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
18221   ;;
18222   *)
18223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18224 for as_dir in $LOCSYSPATH
18225 do
18226   IFS=$as_save_IFS
18227   test -z "$as_dir" && as_dir=.
18228   for ac_exec_ext in '' $ac_executable_extensions; do
18229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18230     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
18231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18232     break 2
18233   fi
18234 done
18235 done
18236
18237   ;;
18238 esac
18239 fi
18240 CHIO=$ac_cv_path_CHIO
18241
18242 if test -n "$CHIO"; then
18243   echo "$as_me:$LINENO: result: $CHIO" >&5
18244 echo "${ECHO_T}$CHIO" >&6
18245 else
18246   echo "$as_me:$LINENO: result: no" >&5
18247 echo "${ECHO_T}no" >&6
18248 fi
18249
18250   test -n "$CHIO" && break
18251 done
18252 test -n "$CHIO" || CHIO="chio"
18253
18254
18255 for ac_prog in chs
18256 do
18257   # Extract the first word of "$ac_prog", so it can be a program name with args.
18258 set dummy $ac_prog; ac_word=$2
18259 echo "$as_me:$LINENO: checking for $ac_word" >&5
18260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18261 if test "${ac_cv_path_CHS+set}" = set; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   case $CHS in
18265   [\\/]* | ?:[\\/]*)
18266   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
18267   ;;
18268   *)
18269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18270 for as_dir in $LOCSYSPATH
18271 do
18272   IFS=$as_save_IFS
18273   test -z "$as_dir" && as_dir=.
18274   for ac_exec_ext in '' $ac_executable_extensions; do
18275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18276     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
18277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18278     break 2
18279   fi
18280 done
18281 done
18282
18283   ;;
18284 esac
18285 fi
18286 CHS=$ac_cv_path_CHS
18287
18288 if test -n "$CHS"; then
18289   echo "$as_me:$LINENO: result: $CHS" >&5
18290 echo "${ECHO_T}$CHS" >&6
18291 else
18292   echo "$as_me:$LINENO: result: no" >&5
18293 echo "${ECHO_T}no" >&6
18294 fi
18295
18296   test -n "$CHS" && break
18297 done
18298 test -n "$CHS" || CHS="chs"
18299
18300
18301 for ac_prog in mtx
18302 do
18303   # Extract the first word of "$ac_prog", so it can be a program name with args.
18304 set dummy $ac_prog; ac_word=$2
18305 echo "$as_me:$LINENO: checking for $ac_word" >&5
18306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18307 if test "${ac_cv_path_MTX+set}" = set; then
18308   echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310   case $MTX in
18311   [\\/]* | ?:[\\/]*)
18312   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
18313   ;;
18314   *)
18315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18316 for as_dir in $LOCSYSPATH
18317 do
18318   IFS=$as_save_IFS
18319   test -z "$as_dir" && as_dir=.
18320   for ac_exec_ext in '' $ac_executable_extensions; do
18321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18322     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
18323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18324     break 2
18325   fi
18326 done
18327 done
18328
18329   ;;
18330 esac
18331 fi
18332 MTX=$ac_cv_path_MTX
18333
18334 if test -n "$MTX"; then
18335   echo "$as_me:$LINENO: result: $MTX" >&5
18336 echo "${ECHO_T}$MTX" >&6
18337 else
18338   echo "$as_me:$LINENO: result: no" >&5
18339 echo "${ECHO_T}no" >&6
18340 fi
18341
18342   test -n "$MTX" && break
18343 done
18344 test -n "$MTX" || MTX="mtx"
18345
18346
18347 for ac_prog in mcutil
18348 do
18349   # Extract the first word of "$ac_prog", so it can be a program name with args.
18350 set dummy $ac_prog; ac_word=$2
18351 echo "$as_me:$LINENO: checking for $ac_word" >&5
18352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18353 if test "${ac_cv_path_MCUTIL+set}" = set; then
18354   echo $ECHO_N "(cached) $ECHO_C" >&6
18355 else
18356   case $MCUTIL in
18357   [\\/]* | ?:[\\/]*)
18358   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
18359   ;;
18360   *)
18361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18362 for as_dir in $LOCSYSPATH
18363 do
18364   IFS=$as_save_IFS
18365   test -z "$as_dir" && as_dir=.
18366   for ac_exec_ext in '' $ac_executable_extensions; do
18367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18368     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
18369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18370     break 2
18371   fi
18372 done
18373 done
18374
18375   ;;
18376 esac
18377 fi
18378 MCUTIL=$ac_cv_path_MCUTIL
18379
18380 if test -n "$MCUTIL"; then
18381   echo "$as_me:$LINENO: result: $MCUTIL" >&5
18382 echo "${ECHO_T}$MCUTIL" >&6
18383 else
18384   echo "$as_me:$LINENO: result: no" >&5
18385 echo "${ECHO_T}no" >&6
18386 fi
18387
18388   test -n "$MCUTIL" && break
18389 done
18390 test -n "$MCUTIL" || MCUTIL="mcutil"
18391
18392
18393 for ac_prog in lpr lp
18394 do
18395   # Extract the first word of "$ac_prog", so it can be a program name with args.
18396 set dummy $ac_prog; ac_word=$2
18397 echo "$as_me:$LINENO: checking for $ac_word" >&5
18398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18399 if test "${ac_cv_path_PRINT+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402   case $PRINT in
18403   [\\/]* | ?:[\\/]*)
18404   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
18405   ;;
18406   *)
18407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408 for as_dir in $PATH
18409 do
18410   IFS=$as_save_IFS
18411   test -z "$as_dir" && as_dir=.
18412   for ac_exec_ext in '' $ac_executable_extensions; do
18413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18414     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
18415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18416     break 2
18417   fi
18418 done
18419 done
18420
18421   ;;
18422 esac
18423 fi
18424 PRINT=$ac_cv_path_PRINT
18425
18426 if test -n "$PRINT"; then
18427   echo "$as_me:$LINENO: result: $PRINT" >&5
18428 echo "${ECHO_T}$PRINT" >&6
18429 else
18430   echo "$as_me:$LINENO: result: no" >&5
18431 echo "${ECHO_T}no" >&6
18432 fi
18433
18434   test -n "$PRINT" && break
18435 done
18436
18437 if test ! -z "$PRINT"; then
18438
18439 cat >>confdefs.h <<_ACEOF
18440 #define LPRCMD "$PRINT"
18441 _ACEOF
18442
18443     echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
18444 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
18445 if test "${amanda_cv_printer_flag+set}" = set; then
18446   echo $ECHO_N "(cached) $ECHO_C" >&6
18447 else
18448
18449         amanda_cv_printer_flag=$PRINTER_FLAG
18450         case "$PRINT" in
18451         lpr|*/lpr) amanda_cv_printer_flag="-P";;
18452         lp|*/lp) amanda_cv_printer_flag="-d";;
18453         esac
18454
18455 fi
18456 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
18457 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
18458     if test ! -z "$amanda_cv_printer_flag"; then
18459
18460 cat >>confdefs.h <<_ACEOF
18461 #define LPRFLAG "$amanda_cv_printer_flag"
18462 _ACEOF
18463
18464     else
18465         { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
18466 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
18467     fi
18468 fi
18469
18470 for ac_prog in pcat
18471 do
18472   # Extract the first word of "$ac_prog", so it can be a program name with args.
18473 set dummy $ac_prog; ac_word=$2
18474 echo "$as_me:$LINENO: checking for $ac_word" >&5
18475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18476 if test "${ac_cv_path_PCAT+set}" = set; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 else
18479   case $PCAT in
18480   [\\/]* | ?:[\\/]*)
18481   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
18482   ;;
18483   *)
18484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485 for as_dir in $LOCSYSPATH
18486 do
18487   IFS=$as_save_IFS
18488   test -z "$as_dir" && as_dir=.
18489   for ac_exec_ext in '' $ac_executable_extensions; do
18490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18491     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
18492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18493     break 2
18494   fi
18495 done
18496 done
18497
18498   ;;
18499 esac
18500 fi
18501 PCAT=$ac_cv_path_PCAT
18502
18503 if test -n "$PCAT"; then
18504   echo "$as_me:$LINENO: result: $PCAT" >&5
18505 echo "${ECHO_T}$PCAT" >&6
18506 else
18507   echo "$as_me:$LINENO: result: no" >&5
18508 echo "${ECHO_T}no" >&6
18509 fi
18510
18511   test -n "$PCAT" && break
18512 done
18513
18514 for ac_prog in perl5 perl
18515 do
18516   # Extract the first word of "$ac_prog", so it can be a program name with args.
18517 set dummy $ac_prog; ac_word=$2
18518 echo "$as_me:$LINENO: checking for $ac_word" >&5
18519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18520 if test "${ac_cv_path_PERL+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   case $PERL in
18524   [\\/]* | ?:[\\/]*)
18525   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18526   ;;
18527   *)
18528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18529 for as_dir in $LOCSYSPATH
18530 do
18531   IFS=$as_save_IFS
18532   test -z "$as_dir" && as_dir=.
18533   for ac_exec_ext in '' $ac_executable_extensions; do
18534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18535     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18537     break 2
18538   fi
18539 done
18540 done
18541
18542   ;;
18543 esac
18544 fi
18545 PERL=$ac_cv_path_PERL
18546
18547 if test -n "$PERL"; then
18548   echo "$as_me:$LINENO: result: $PERL" >&5
18549 echo "${ECHO_T}$PERL" >&6
18550 else
18551   echo "$as_me:$LINENO: result: no" >&5
18552 echo "${ECHO_T}no" >&6
18553 fi
18554
18555   test -n "$PERL" && break
18556 done
18557
18558
18559
18560 for ac_prog in $DUMP_PROGRAMS
18561 do
18562   # Extract the first word of "$ac_prog", so it can be a program name with args.
18563 set dummy $ac_prog; ac_word=$2
18564 echo "$as_me:$LINENO: checking for $ac_word" >&5
18565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18566 if test "${ac_cv_path_DUMP+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   case $DUMP in
18570   [\\/]* | ?:[\\/]*)
18571   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
18572   ;;
18573   *)
18574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $SYSLOCPATH
18576 do
18577   IFS=$as_save_IFS
18578   test -z "$as_dir" && as_dir=.
18579   for ac_exec_ext in '' $ac_executable_extensions; do
18580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18581     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
18582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18583     break 2
18584   fi
18585 done
18586 done
18587
18588   ;;
18589 esac
18590 fi
18591 DUMP=$ac_cv_path_DUMP
18592
18593 if test -n "$DUMP"; then
18594   echo "$as_me:$LINENO: result: $DUMP" >&5
18595 echo "${ECHO_T}$DUMP" >&6
18596 else
18597   echo "$as_me:$LINENO: result: no" >&5
18598 echo "${ECHO_T}no" >&6
18599 fi
18600
18601   test -n "$DUMP" && break
18602 done
18603
18604 if test -n "$DUMP"; then
18605   if test "`basename $DUMP`" = "backup"; then
18606     backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
18607     if test $? -eq 0; then
18608       DUMP=
18609     fi
18610   fi
18611 fi
18612 for ac_prog in ufsrestore restore
18613 do
18614   # Extract the first word of "$ac_prog", so it can be a program name with args.
18615 set dummy $ac_prog; ac_word=$2
18616 echo "$as_me:$LINENO: checking for $ac_word" >&5
18617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18618 if test "${ac_cv_path_RESTORE+set}" = set; then
18619   echo $ECHO_N "(cached) $ECHO_C" >&6
18620 else
18621   case $RESTORE in
18622   [\\/]* | ?:[\\/]*)
18623   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
18624   ;;
18625   *)
18626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18627 for as_dir in $SYSLOCPATH
18628 do
18629   IFS=$as_save_IFS
18630   test -z "$as_dir" && as_dir=.
18631   for ac_exec_ext in '' $ac_executable_extensions; do
18632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18633     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
18634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18635     break 2
18636   fi
18637 done
18638 done
18639
18640   ;;
18641 esac
18642 fi
18643 RESTORE=$ac_cv_path_RESTORE
18644
18645 if test -n "$RESTORE"; then
18646   echo "$as_me:$LINENO: result: $RESTORE" >&5
18647 echo "${ECHO_T}$RESTORE" >&6
18648 else
18649   echo "$as_me:$LINENO: result: no" >&5
18650 echo "${ECHO_T}no" >&6
18651 fi
18652
18653   test -n "$RESTORE" && break
18654 done
18655
18656 if test "$DUMP" -a "$RESTORE"; then
18657
18658 cat >>confdefs.h <<_ACEOF
18659 #define DUMP "$DUMP"
18660 _ACEOF
18661
18662
18663 cat >>confdefs.h <<_ACEOF
18664 #define RESTORE "$RESTORE"
18665 _ACEOF
18666
18667     if test -x $DUMP; then
18668         echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
18669 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
18670 if test "${amanda_cv_dump_estimate+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673
18674                 case "$DUMP" in
18675                 *dump)
18676                     { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
18677                         | $GREP -v Dumping
18678                         | $GREP -v Date
18679                         | $GREP -v Label >conftest.d-E 2>&1'
18680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18681   (eval $ac_try) 2>&5
18682   ac_status=$?
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); }; }
18685                     cat conftest.d-E >&5
18686                     { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
18687                         | $GREP -v Dumping
18688                         | $GREP -v Date
18689                         | $GREP -v Label >conftest.d-S 2>&1'
18690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691   (eval $ac_try) 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }
18695                     cat conftest.d-S >&5
18696                     { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
18697                         | $GREP -v Dumping
18698                         | $GREP -v Date
18699                         | $GREP -v Label >conftest.d 2>&1'
18700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701   (eval $ac_try) 2>&5
18702   ac_status=$?
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); }; }
18705                     cat conftest.d >&5
18706                     if { ac_try='cmp conftest.d-E conftest.d 1>&2'
18707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708   (eval $ac_try) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; }; then
18712                         amanda_cv_dump_estimate=E
18713                     elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
18714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715   (eval $ac_try) 2>&5
18716   ac_status=$?
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); }; }; then
18719                         amanda_cv_dump_estimate=S
18720                     else
18721                         amanda_cv_dump_estimate=no
18722                     fi
18723                     rm -f conftest.d conftest.d-E conftest.d-S
18724                   ;;
18725                 *) amanda_cv_dump_estimate=no
18726                   ;;
18727                 esac
18728
18729 fi
18730 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
18731 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
18732     else
18733         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
18734 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
18735         amanda_cv_dump_estimate=no
18736     fi
18737     if test "x$amanda_cv_dump_estimate" != xno; then
18738
18739 cat >>confdefs.h <<_ACEOF
18740 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
18741 _ACEOF
18742
18743     fi
18744
18745
18746 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
18747 if test "${with_dump_honor_nodump+set}" = set; then
18748   withval="$with_dump_honor_nodump"
18749    if test -x $DUMP; then
18750         echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
18751 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
18752 if test "${amanda_cv_honor_nodump+set}" = set; then
18753   echo $ECHO_N "(cached) $ECHO_C" >&6
18754 else
18755
18756             case "$DUMP" in
18757             *dump)
18758                 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
18759                     | $GREP -v Dumping
18760                     | $GREP -v Date
18761                     | $GREP -v Label >conftest.d-h 2>&1'
18762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763   (eval $ac_try) 2>&5
18764   ac_status=$?
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); }; }
18767                 cat conftest.d-h >&5
18768                 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
18769                     | $GREP -v Dumping
18770                     | $GREP -v Date
18771                     | $GREP -v Label >conftest.d 2>&1'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }
18777                 cat conftest.d >&5
18778                 if { ac_try='diff conftest.d-h conftest.d 1>&2'
18779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780   (eval $ac_try) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; }; then
18784                     amanda_cv_honor_nodump=yes
18785                 else
18786                     amanda_cv_honor_nodump=no
18787                 fi
18788                 rm -f conftest.d conftest.d-h
18789               ;;
18790             *) amanda_cv_honor_nodump=no
18791               ;;
18792             esac
18793
18794 fi
18795 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
18796 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
18797       else
18798         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
18799 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
18800         amanda_cv_honor_nodump=no
18801       fi
18802       if test "x$amanda_cv_honor_nodump" = xyes; then
18803
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_HONOR_NODUMP 1
18806 _ACEOF
18807
18808       fi
18809
18810 fi;
18811 fi
18812
18813 for ac_prog in xfsdump
18814 do
18815   # Extract the first word of "$ac_prog", so it can be a program name with args.
18816 set dummy $ac_prog; ac_word=$2
18817 echo "$as_me:$LINENO: checking for $ac_word" >&5
18818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18819 if test "${ac_cv_path_XFSDUMP+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   case $XFSDUMP in
18823   [\\/]* | ?:[\\/]*)
18824   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
18825   ;;
18826   *)
18827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $SYSLOCPATH
18829 do
18830   IFS=$as_save_IFS
18831   test -z "$as_dir" && as_dir=.
18832   for ac_exec_ext in '' $ac_executable_extensions; do
18833   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
18835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18836     break 2
18837   fi
18838 done
18839 done
18840
18841   ;;
18842 esac
18843 fi
18844 XFSDUMP=$ac_cv_path_XFSDUMP
18845
18846 if test -n "$XFSDUMP"; then
18847   echo "$as_me:$LINENO: result: $XFSDUMP" >&5
18848 echo "${ECHO_T}$XFSDUMP" >&6
18849 else
18850   echo "$as_me:$LINENO: result: no" >&5
18851 echo "${ECHO_T}no" >&6
18852 fi
18853
18854   test -n "$XFSDUMP" && break
18855 done
18856
18857 for ac_prog in xfsrestore
18858 do
18859   # Extract the first word of "$ac_prog", so it can be a program name with args.
18860 set dummy $ac_prog; ac_word=$2
18861 echo "$as_me:$LINENO: checking for $ac_word" >&5
18862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18863 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
18864   echo $ECHO_N "(cached) $ECHO_C" >&6
18865 else
18866   case $XFSRESTORE in
18867   [\\/]* | ?:[\\/]*)
18868   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
18869   ;;
18870   *)
18871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872 for as_dir in $SYSLOCPATH
18873 do
18874   IFS=$as_save_IFS
18875   test -z "$as_dir" && as_dir=.
18876   for ac_exec_ext in '' $ac_executable_extensions; do
18877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18878     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
18879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18880     break 2
18881   fi
18882 done
18883 done
18884
18885   ;;
18886 esac
18887 fi
18888 XFSRESTORE=$ac_cv_path_XFSRESTORE
18889
18890 if test -n "$XFSRESTORE"; then
18891   echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
18892 echo "${ECHO_T}$XFSRESTORE" >&6
18893 else
18894   echo "$as_me:$LINENO: result: no" >&5
18895 echo "${ECHO_T}no" >&6
18896 fi
18897
18898   test -n "$XFSRESTORE" && break
18899 done
18900
18901 if test "$XFSDUMP" -a "$XFSRESTORE"; then
18902
18903 cat >>confdefs.h <<_ACEOF
18904 #define XFSDUMP "$XFSDUMP"
18905 _ACEOF
18906
18907
18908 cat >>confdefs.h <<_ACEOF
18909 #define XFSRESTORE "$XFSRESTORE"
18910 _ACEOF
18911
18912     { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
18913 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
18914     { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
18915 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
18916 fi
18917
18918 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
18919 for ac_prog in vxdump
18920 do
18921   # Extract the first word of "$ac_prog", so it can be a program name with args.
18922 set dummy $ac_prog; ac_word=$2
18923 echo "$as_me:$LINENO: checking for $ac_word" >&5
18924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925 if test "${ac_cv_path_VXDUMP+set}" = set; then
18926   echo $ECHO_N "(cached) $ECHO_C" >&6
18927 else
18928   case $VXDUMP in
18929   [\\/]* | ?:[\\/]*)
18930   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
18931   ;;
18932   *)
18933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $VXSYSLOCPATH
18935 do
18936   IFS=$as_save_IFS
18937   test -z "$as_dir" && as_dir=.
18938   for ac_exec_ext in '' $ac_executable_extensions; do
18939   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
18941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18942     break 2
18943   fi
18944 done
18945 done
18946
18947   ;;
18948 esac
18949 fi
18950 VXDUMP=$ac_cv_path_VXDUMP
18951
18952 if test -n "$VXDUMP"; then
18953   echo "$as_me:$LINENO: result: $VXDUMP" >&5
18954 echo "${ECHO_T}$VXDUMP" >&6
18955 else
18956   echo "$as_me:$LINENO: result: no" >&5
18957 echo "${ECHO_T}no" >&6
18958 fi
18959
18960   test -n "$VXDUMP" && break
18961 done
18962
18963 for ac_prog in vxrestore
18964 do
18965   # Extract the first word of "$ac_prog", so it can be a program name with args.
18966 set dummy $ac_prog; ac_word=$2
18967 echo "$as_me:$LINENO: checking for $ac_word" >&5
18968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969 if test "${ac_cv_path_VXRESTORE+set}" = set; then
18970   echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972   case $VXRESTORE in
18973   [\\/]* | ?:[\\/]*)
18974   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
18975   ;;
18976   *)
18977   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978 for as_dir in $VXSYSLOCPATH
18979 do
18980   IFS=$as_save_IFS
18981   test -z "$as_dir" && as_dir=.
18982   for ac_exec_ext in '' $ac_executable_extensions; do
18983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
18985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986     break 2
18987   fi
18988 done
18989 done
18990
18991   ;;
18992 esac
18993 fi
18994 VXRESTORE=$ac_cv_path_VXRESTORE
18995
18996 if test -n "$VXRESTORE"; then
18997   echo "$as_me:$LINENO: result: $VXRESTORE" >&5
18998 echo "${ECHO_T}$VXRESTORE" >&6
18999 else
19000   echo "$as_me:$LINENO: result: no" >&5
19001 echo "${ECHO_T}no" >&6
19002 fi
19003
19004   test -n "$VXRESTORE" && break
19005 done
19006
19007 if test "$VXDUMP" -a "$VXRESTORE"; then
19008
19009 cat >>confdefs.h <<_ACEOF
19010 #define VXDUMP "$VXDUMP"
19011 _ACEOF
19012
19013
19014 cat >>confdefs.h <<_ACEOF
19015 #define VXRESTORE "$VXRESTORE"
19016 _ACEOF
19017
19018 fi
19019
19020 for ac_prog in vdump
19021 do
19022   # Extract the first word of "$ac_prog", so it can be a program name with args.
19023 set dummy $ac_prog; ac_word=$2
19024 echo "$as_me:$LINENO: checking for $ac_word" >&5
19025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19026 if test "${ac_cv_path_VDUMP+set}" = set; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 else
19029   case $VDUMP in
19030   [\\/]* | ?:[\\/]*)
19031   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
19032   ;;
19033   *)
19034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19035 for as_dir in $SYSLOCPATH
19036 do
19037   IFS=$as_save_IFS
19038   test -z "$as_dir" && as_dir=.
19039   for ac_exec_ext in '' $ac_executable_extensions; do
19040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19041     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
19042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19043     break 2
19044   fi
19045 done
19046 done
19047
19048   ;;
19049 esac
19050 fi
19051 VDUMP=$ac_cv_path_VDUMP
19052
19053 if test -n "$VDUMP"; then
19054   echo "$as_me:$LINENO: result: $VDUMP" >&5
19055 echo "${ECHO_T}$VDUMP" >&6
19056 else
19057   echo "$as_me:$LINENO: result: no" >&5
19058 echo "${ECHO_T}no" >&6
19059 fi
19060
19061   test -n "$VDUMP" && break
19062 done
19063
19064 for ac_prog in vrestore
19065 do
19066   # Extract the first word of "$ac_prog", so it can be a program name with args.
19067 set dummy $ac_prog; ac_word=$2
19068 echo "$as_me:$LINENO: checking for $ac_word" >&5
19069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19070 if test "${ac_cv_path_VRESTORE+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   case $VRESTORE in
19074   [\\/]* | ?:[\\/]*)
19075   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
19076   ;;
19077   *)
19078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19079 for as_dir in $SYSLOCPATH
19080 do
19081   IFS=$as_save_IFS
19082   test -z "$as_dir" && as_dir=.
19083   for ac_exec_ext in '' $ac_executable_extensions; do
19084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19085     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
19086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19087     break 2
19088   fi
19089 done
19090 done
19091
19092   ;;
19093 esac
19094 fi
19095 VRESTORE=$ac_cv_path_VRESTORE
19096
19097 if test -n "$VRESTORE"; then
19098   echo "$as_me:$LINENO: result: $VRESTORE" >&5
19099 echo "${ECHO_T}$VRESTORE" >&6
19100 else
19101   echo "$as_me:$LINENO: result: no" >&5
19102 echo "${ECHO_T}no" >&6
19103 fi
19104
19105   test -n "$VRESTORE" && break
19106 done
19107
19108 if test "$VDUMP" -a "$VRESTORE"; then
19109
19110 cat >>confdefs.h <<_ACEOF
19111 #define VDUMP "$VDUMP"
19112 _ACEOF
19113
19114
19115 cat >>confdefs.h <<_ACEOF
19116 #define VRESTORE "$VRESTORE"
19117 _ACEOF
19118
19119 fi
19120
19121 if test "$PCAT"; then
19122     AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
19123 else
19124     AMPLOT_CAT_PACK=
19125 fi
19126 if test "$COMPRESS"; then
19127     AMPLOT_COMPRESS=$COMPRESS
19128     AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
19129 else
19130     AMPLOT_CAT_COMPRESS=
19131 fi
19132 if test "$GZIP"; then
19133     AMPLOT_COMPRESS=$GZIP
19134     AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
19135 else
19136     AMPLOT_CAT_GZIP=
19137 fi
19138
19139
19140
19141
19142
19143 echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
19144 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6
19145     if test "${ac_cv_has_sockaddr_storage+set}" = set; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   cat >conftest.$ac_ext <<_ACEOF
19149 /* confdefs.h.  */
19150 _ACEOF
19151 cat confdefs.h >>conftest.$ac_ext
19152 cat >>conftest.$ac_ext <<_ACEOF
19153 /* end confdefs.h.  */
19154
19155 #       include <sys/types.h>
19156 #       include <sys/socket.h>
19157 int
19158 main ()
19159 {
19160 u_int i = sizeof (struct sockaddr_storage)
19161   ;
19162   return 0;
19163 }
19164 _ACEOF
19165 rm -f conftest.$ac_objext
19166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19167   (eval $ac_compile) 2>conftest.er1
19168   ac_status=$?
19169   grep -v '^ *+' conftest.er1 >conftest.err
19170   rm -f conftest.er1
19171   cat conftest.err >&5
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -z "$ac_c_werror_flag"
19175                          || test ! -s conftest.err'
19176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177   (eval $ac_try) 2>&5
19178   ac_status=$?
19179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180   (exit $ac_status); }; } &&
19181          { ac_try='test -s conftest.$ac_objext'
19182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183   (eval $ac_try) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; }; then
19187   ac_cv_has_sockaddr_storage=yes
19188 else
19189   echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19191
19192 ac_cv_has_sockaddr_storage=no
19193 fi
19194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19195 fi
19196
19197     echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
19198 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6
19199     if test $ac_cv_has_sockaddr_storage = yes ; then
19200
19201 cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_SOCKADDR_STORAGE 1
19203 _ACEOF
19204
19205     fi
19206
19207 # Determine the printf format characters to use when printing
19208 # values of type long long. This will normally be "ll", but where
19209 # the compiler treats "long long" as a alias for "long" and printf
19210 # doesn't know about "long long" use "l".  Hopefully the sprintf
19211 # will produce a inconsistant result in the later case.  If the compiler
19212 # fails due to seeing "%lld" we fall back to "l".
19213 #
19214 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
19215 # configure on Win32.
19216 #
19217 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
19218 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
19219 if test "$cross_compiling" = yes; then
19220   echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
19221 echo "${ECHO_T}assuming target platform uses ll" >&6
19222         LL_FMT="%lld"; LL_RFMT="lld"
19223 else
19224   cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230
19231 #include <stdio.h>
19232 main() {
19233         long long int j = 0;
19234         char buf[100];
19235         buf[0] = 0;
19236         sprintf(buf, "%lld", j);
19237         exit((sizeof(long long int) != sizeof(long int))? 0 :
19238              (strcmp(buf, "0") != 0));
19239 }
19240
19241 _ACEOF
19242 rm -f conftest$ac_exeext
19243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19244   (eval $ac_link) 2>&5
19245   ac_status=$?
19246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249   (eval $ac_try) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; }; then
19253   echo "$as_me:$LINENO: result: ll" >&5
19254 echo "${ECHO_T}ll" >&6
19255         LL_FMT="%lld"; LL_RFMT="lld"
19256 else
19257   echo "$as_me: program exited with status $ac_status" >&5
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261 ( exit $ac_status )
19262 echo "$as_me:$LINENO: result: l" >&5
19263 echo "${ECHO_T}l" >&6
19264         LL_FMT="%ld"; LL_RFMT="ld"
19265 fi
19266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19267 fi
19268
19269 cat >>confdefs.h <<_ACEOF
19270 #define LL_FMT "$LL_FMT"
19271 _ACEOF
19272
19273
19274 cat >>confdefs.h <<_ACEOF
19275 #define LL_RFMT "$LL_RFMT"
19276 _ACEOF
19277
19278
19279
19280
19281 GZIP=
19282
19283 need_resetofs=yes
19284 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
19285 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
19286 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
19287   echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289
19290         amanda_cv_LFS_CFLAGS=
19291         if test "$GETCONF"; then
19292             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
19293                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
19294                 need_resetofs=no
19295             fi
19296         fi
19297
19298
19299 fi
19300 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
19301 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
19302 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
19303 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
19304 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307
19308         amanda_cv_LFS_LDFLAGS=
19309         if test "$GETCONF"; then
19310             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
19311                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
19312                 need_resetofs=no
19313             fi
19314         fi
19315
19316
19317 fi
19318 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
19319 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
19320 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
19321 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
19322 if test "${amanda_cv_LFS_LIBS+set}" = set; then
19323   echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325
19326         amanda_cv_LFS_LIBS=
19327         if test "$GETCONF"; then
19328             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
19329                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
19330                 need_resetofs=no
19331             fi
19332         fi
19333
19334
19335 fi
19336 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
19337 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
19338 if test "x$need_resetofs" = xyes; then
19339
19340 cat >>confdefs.h <<\_ACEOF
19341 #define NEED_RESETOFS 1
19342 _ACEOF
19343
19344 fi
19345
19346
19347 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
19348 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
19349 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
19350 LIBS="$amanda_cv_LFS_LIBS $LIBS"
19351
19352 echo "$as_me:$LINENO: checking for int" >&5
19353 echo $ECHO_N "checking for int... $ECHO_C" >&6
19354 if test "${ac_cv_type_int+set}" = set; then
19355   echo $ECHO_N "(cached) $ECHO_C" >&6
19356 else
19357   cat >conftest.$ac_ext <<_ACEOF
19358 /* confdefs.h.  */
19359 _ACEOF
19360 cat confdefs.h >>conftest.$ac_ext
19361 cat >>conftest.$ac_ext <<_ACEOF
19362 /* end confdefs.h.  */
19363 $ac_includes_default
19364 int
19365 main ()
19366 {
19367 if ((int *) 0)
19368   return 0;
19369 if (sizeof (int))
19370   return 0;
19371   ;
19372   return 0;
19373 }
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377   (eval $ac_compile) 2>conftest.er1
19378   ac_status=$?
19379   grep -v '^ *+' conftest.er1 >conftest.err
19380   rm -f conftest.er1
19381   cat conftest.err >&5
19382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383   (exit $ac_status); } &&
19384          { ac_try='test -z "$ac_c_werror_flag"
19385                          || test ! -s conftest.err'
19386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387   (eval $ac_try) 2>&5
19388   ac_status=$?
19389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); }; } &&
19391          { ac_try='test -s conftest.$ac_objext'
19392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19393   (eval $ac_try) 2>&5
19394   ac_status=$?
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); }; }; then
19397   ac_cv_type_int=yes
19398 else
19399   echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19401
19402 ac_cv_type_int=no
19403 fi
19404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19405 fi
19406 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19407 echo "${ECHO_T}$ac_cv_type_int" >&6
19408
19409 echo "$as_me:$LINENO: checking size of int" >&5
19410 echo $ECHO_N "checking size of int... $ECHO_C" >&6
19411 if test "${ac_cv_sizeof_int+set}" = set; then
19412   echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414   if test "$ac_cv_type_int" = yes; then
19415   # The cast to unsigned long works around a bug in the HP C Compiler
19416   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19417   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19418   # This bug is HP SR number 8606223364.
19419   if test "$cross_compiling" = yes; then
19420   # Depending upon the size, compute the lo and hi bounds.
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h.  */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h.  */
19427 $ac_includes_default
19428 int
19429 main ()
19430 {
19431 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19432 test_array [0] = 0
19433
19434   ;
19435   return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440   (eval $ac_compile) 2>conftest.er1
19441   ac_status=$?
19442   grep -v '^ *+' conftest.er1 >conftest.err
19443   rm -f conftest.er1
19444   cat conftest.err >&5
19445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446   (exit $ac_status); } &&
19447          { ac_try='test -z "$ac_c_werror_flag"
19448                          || test ! -s conftest.err'
19449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450   (eval $ac_try) 2>&5
19451   ac_status=$?
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); }; } &&
19454          { ac_try='test -s conftest.$ac_objext'
19455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456   (eval $ac_try) 2>&5
19457   ac_status=$?
19458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459   (exit $ac_status); }; }; then
19460   ac_lo=0 ac_mid=0
19461   while :; do
19462     cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468 $ac_includes_default
19469 int
19470 main ()
19471 {
19472 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19473 test_array [0] = 0
19474
19475   ;
19476   return 0;
19477 }
19478 _ACEOF
19479 rm -f conftest.$ac_objext
19480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19481   (eval $ac_compile) 2>conftest.er1
19482   ac_status=$?
19483   grep -v '^ *+' conftest.er1 >conftest.err
19484   rm -f conftest.er1
19485   cat conftest.err >&5
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); } &&
19488          { ac_try='test -z "$ac_c_werror_flag"
19489                          || test ! -s conftest.err'
19490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491   (eval $ac_try) 2>&5
19492   ac_status=$?
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); }; } &&
19495          { ac_try='test -s conftest.$ac_objext'
19496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497   (eval $ac_try) 2>&5
19498   ac_status=$?
19499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500   (exit $ac_status); }; }; then
19501   ac_hi=$ac_mid; break
19502 else
19503   echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19505
19506 ac_lo=`expr $ac_mid + 1`
19507                     if test $ac_lo -le $ac_mid; then
19508                       ac_lo= ac_hi=
19509                       break
19510                     fi
19511                     ac_mid=`expr 2 '*' $ac_mid + 1`
19512 fi
19513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19514   done
19515 else
19516   echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525 $ac_includes_default
19526 int
19527 main ()
19528 {
19529 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19530 test_array [0] = 0
19531
19532   ;
19533   return 0;
19534 }
19535 _ACEOF
19536 rm -f conftest.$ac_objext
19537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19538   (eval $ac_compile) 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } &&
19545          { ac_try='test -z "$ac_c_werror_flag"
19546                          || test ! -s conftest.err'
19547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548   (eval $ac_try) 2>&5
19549   ac_status=$?
19550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551   (exit $ac_status); }; } &&
19552          { ac_try='test -s conftest.$ac_objext'
19553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554   (eval $ac_try) 2>&5
19555   ac_status=$?
19556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557   (exit $ac_status); }; }; then
19558   ac_hi=-1 ac_mid=-1
19559   while :; do
19560     cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h.  */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h.  */
19566 $ac_includes_default
19567 int
19568 main ()
19569 {
19570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19571 test_array [0] = 0
19572
19573   ;
19574   return 0;
19575 }
19576 _ACEOF
19577 rm -f conftest.$ac_objext
19578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19579   (eval $ac_compile) 2>conftest.er1
19580   ac_status=$?
19581   grep -v '^ *+' conftest.er1 >conftest.err
19582   rm -f conftest.er1
19583   cat conftest.err >&5
19584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585   (exit $ac_status); } &&
19586          { ac_try='test -z "$ac_c_werror_flag"
19587                          || test ! -s conftest.err'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; } &&
19593          { ac_try='test -s conftest.$ac_objext'
19594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19595   (eval $ac_try) 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); }; }; then
19599   ac_lo=$ac_mid; break
19600 else
19601   echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_hi=`expr '(' $ac_mid ')' - 1`
19605                        if test $ac_mid -le $ac_hi; then
19606                          ac_lo= ac_hi=
19607                          break
19608                        fi
19609                        ac_mid=`expr 2 '*' $ac_mid`
19610 fi
19611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19612   done
19613 else
19614   echo "$as_me: failed program was:" >&5
19615 sed 's/^/| /' conftest.$ac_ext >&5
19616
19617 ac_lo= ac_hi=
19618 fi
19619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19620 fi
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 # Binary search between lo and hi bounds.
19623 while test "x$ac_lo" != "x$ac_hi"; do
19624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19625   cat >conftest.$ac_ext <<_ACEOF
19626 /* confdefs.h.  */
19627 _ACEOF
19628 cat confdefs.h >>conftest.$ac_ext
19629 cat >>conftest.$ac_ext <<_ACEOF
19630 /* end confdefs.h.  */
19631 $ac_includes_default
19632 int
19633 main ()
19634 {
19635 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19636 test_array [0] = 0
19637
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext
19643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19644   (eval $ac_compile) 2>conftest.er1
19645   ac_status=$?
19646   grep -v '^ *+' conftest.er1 >conftest.err
19647   rm -f conftest.er1
19648   cat conftest.err >&5
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); } &&
19651          { ac_try='test -z "$ac_c_werror_flag"
19652                          || test ! -s conftest.err'
19653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654   (eval $ac_try) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }; } &&
19658          { ac_try='test -s conftest.$ac_objext'
19659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660   (eval $ac_try) 2>&5
19661   ac_status=$?
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); }; }; then
19664   ac_hi=$ac_mid
19665 else
19666   echo "$as_me: failed program was:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 ac_lo=`expr '(' $ac_mid ')' + 1`
19670 fi
19671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672 done
19673 case $ac_lo in
19674 ?*) ac_cv_sizeof_int=$ac_lo;;
19675 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19676 See \`config.log' for more details." >&5
19677 echo "$as_me: error: cannot compute sizeof (int), 77
19678 See \`config.log' for more details." >&2;}
19679    { (exit 1); exit 1; }; } ;;
19680 esac
19681 else
19682   if test "$cross_compiling" = yes; then
19683   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19684 See \`config.log' for more details." >&5
19685 echo "$as_me: error: cannot run test program while cross compiling
19686 See \`config.log' for more details." >&2;}
19687    { (exit 1); exit 1; }; }
19688 else
19689   cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695 $ac_includes_default
19696 long longval () { return (long) (sizeof (int)); }
19697 unsigned long ulongval () { return (long) (sizeof (int)); }
19698 #include <stdio.h>
19699 #include <stdlib.h>
19700 int
19701 main ()
19702 {
19703
19704   FILE *f = fopen ("conftest.val", "w");
19705   if (! f)
19706     exit (1);
19707   if (((long) (sizeof (int))) < 0)
19708     {
19709       long i = longval ();
19710       if (i != ((long) (sizeof (int))))
19711         exit (1);
19712       fprintf (f, "%ld\n", i);
19713     }
19714   else
19715     {
19716       unsigned long i = ulongval ();
19717       if (i != ((long) (sizeof (int))))
19718         exit (1);
19719       fprintf (f, "%lu\n", i);
19720     }
19721   exit (ferror (f) || fclose (f) != 0);
19722
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729   (eval $ac_link) 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734   (eval $ac_try) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; }; then
19738   ac_cv_sizeof_int=`cat conftest.val`
19739 else
19740   echo "$as_me: program exited with status $ac_status" >&5
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 ( exit $ac_status )
19745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19746 See \`config.log' for more details." >&5
19747 echo "$as_me: error: cannot compute sizeof (int), 77
19748 See \`config.log' for more details." >&2;}
19749    { (exit 1); exit 1; }; }
19750 fi
19751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19752 fi
19753 fi
19754 rm -f conftest.val
19755 else
19756   ac_cv_sizeof_int=0
19757 fi
19758 fi
19759 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19760 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19761 cat >>confdefs.h <<_ACEOF
19762 #define SIZEOF_INT $ac_cv_sizeof_int
19763 _ACEOF
19764
19765
19766 echo "$as_me:$LINENO: checking for long" >&5
19767 echo $ECHO_N "checking for long... $ECHO_C" >&6
19768 if test "${ac_cv_type_long+set}" = set; then
19769   echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771   cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h.  */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h.  */
19777 $ac_includes_default
19778 int
19779 main ()
19780 {
19781 if ((long *) 0)
19782   return 0;
19783 if (sizeof (long))
19784   return 0;
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791   (eval $ac_compile) 2>conftest.er1
19792   ac_status=$?
19793   grep -v '^ *+' conftest.er1 >conftest.err
19794   rm -f conftest.er1
19795   cat conftest.err >&5
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); } &&
19798          { ac_try='test -z "$ac_c_werror_flag"
19799                          || test ! -s conftest.err'
19800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801   (eval $ac_try) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; } &&
19805          { ac_try='test -s conftest.$ac_objext'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   ac_cv_type_long=yes
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 ac_cv_type_long=no
19817 fi
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19819 fi
19820 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19821 echo "${ECHO_T}$ac_cv_type_long" >&6
19822
19823 echo "$as_me:$LINENO: checking size of long" >&5
19824 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19825 if test "${ac_cv_sizeof_long+set}" = set; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   if test "$ac_cv_type_long" = yes; then
19829   # The cast to unsigned long works around a bug in the HP C Compiler
19830   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19831   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19832   # This bug is HP SR number 8606223364.
19833   if test "$cross_compiling" = yes; then
19834   # Depending upon the size, compute the lo and hi bounds.
19835 cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 $ac_includes_default
19842 int
19843 main ()
19844 {
19845 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19846 test_array [0] = 0
19847
19848   ;
19849   return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext
19853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19854   (eval $ac_compile) 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } &&
19861          { ac_try='test -z "$ac_c_werror_flag"
19862                          || test ! -s conftest.err'
19863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864   (eval $ac_try) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; } &&
19868          { ac_try='test -s conftest.$ac_objext'
19869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870   (eval $ac_try) 2>&5
19871   ac_status=$?
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); }; }; then
19874   ac_lo=0 ac_mid=0
19875   while :; do
19876     cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 $ac_includes_default
19883 int
19884 main ()
19885 {
19886 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19887 test_array [0] = 0
19888
19889   ;
19890   return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext
19894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19895   (eval $ac_compile) 2>conftest.er1
19896   ac_status=$?
19897   grep -v '^ *+' conftest.er1 >conftest.err
19898   rm -f conftest.er1
19899   cat conftest.err >&5
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); } &&
19902          { ac_try='test -z "$ac_c_werror_flag"
19903                          || test ! -s conftest.err'
19904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19905   (eval $ac_try) 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); }; } &&
19909          { ac_try='test -s conftest.$ac_objext'
19910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911   (eval $ac_try) 2>&5
19912   ac_status=$?
19913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914   (exit $ac_status); }; }; then
19915   ac_hi=$ac_mid; break
19916 else
19917   echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920 ac_lo=`expr $ac_mid + 1`
19921                     if test $ac_lo -le $ac_mid; then
19922                       ac_lo= ac_hi=
19923                       break
19924                     fi
19925                     ac_mid=`expr 2 '*' $ac_mid + 1`
19926 fi
19927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19928   done
19929 else
19930   echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h.  */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h.  */
19939 $ac_includes_default
19940 int
19941 main ()
19942 {
19943 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19944 test_array [0] = 0
19945
19946   ;
19947   return 0;
19948 }
19949 _ACEOF
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952   (eval $ac_compile) 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } &&
19959          { ac_try='test -z "$ac_c_werror_flag"
19960                          || test ! -s conftest.err'
19961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962   (eval $ac_try) 2>&5
19963   ac_status=$?
19964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965   (exit $ac_status); }; } &&
19966          { ac_try='test -s conftest.$ac_objext'
19967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968   (eval $ac_try) 2>&5
19969   ac_status=$?
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); }; }; then
19972   ac_hi=-1 ac_mid=-1
19973   while :; do
19974     cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980 $ac_includes_default
19981 int
19982 main ()
19983 {
19984 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19985 test_array [0] = 0
19986
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993   (eval $ac_compile) 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -z "$ac_c_werror_flag"
20001                          || test ! -s conftest.err'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; } &&
20007          { ac_try='test -s conftest.$ac_objext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_lo=$ac_mid; break
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 ac_hi=`expr '(' $ac_mid ')' - 1`
20019                        if test $ac_mid -le $ac_hi; then
20020                          ac_lo= ac_hi=
20021                          break
20022                        fi
20023                        ac_mid=`expr 2 '*' $ac_mid`
20024 fi
20025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20026   done
20027 else
20028   echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20030
20031 ac_lo= ac_hi=
20032 fi
20033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20034 fi
20035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20036 # Binary search between lo and hi bounds.
20037 while test "x$ac_lo" != "x$ac_hi"; do
20038   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20039   cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045 $ac_includes_default
20046 int
20047 main ()
20048 {
20049 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
20050 test_array [0] = 0
20051
20052   ;
20053   return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext
20057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20058   (eval $ac_compile) 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } &&
20065          { ac_try='test -z "$ac_c_werror_flag"
20066                          || test ! -s conftest.err'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; } &&
20072          { ac_try='test -s conftest.$ac_objext'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   ac_hi=$ac_mid
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 ac_lo=`expr '(' $ac_mid ')' + 1`
20084 fi
20085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20086 done
20087 case $ac_lo in
20088 ?*) ac_cv_sizeof_long=$ac_lo;;
20089 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20090 See \`config.log' for more details." >&5
20091 echo "$as_me: error: cannot compute sizeof (long), 77
20092 See \`config.log' for more details." >&2;}
20093    { (exit 1); exit 1; }; } ;;
20094 esac
20095 else
20096   if test "$cross_compiling" = yes; then
20097   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20098 See \`config.log' for more details." >&5
20099 echo "$as_me: error: cannot run test program while cross compiling
20100 See \`config.log' for more details." >&2;}
20101    { (exit 1); exit 1; }; }
20102 else
20103   cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h.  */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h.  */
20109 $ac_includes_default
20110 long longval () { return (long) (sizeof (long)); }
20111 unsigned long ulongval () { return (long) (sizeof (long)); }
20112 #include <stdio.h>
20113 #include <stdlib.h>
20114 int
20115 main ()
20116 {
20117
20118   FILE *f = fopen ("conftest.val", "w");
20119   if (! f)
20120     exit (1);
20121   if (((long) (sizeof (long))) < 0)
20122     {
20123       long i = longval ();
20124       if (i != ((long) (sizeof (long))))
20125         exit (1);
20126       fprintf (f, "%ld\n", i);
20127     }
20128   else
20129     {
20130       unsigned long i = ulongval ();
20131       if (i != ((long) (sizeof (long))))
20132         exit (1);
20133       fprintf (f, "%lu\n", i);
20134     }
20135   exit (ferror (f) || fclose (f) != 0);
20136
20137   ;
20138   return 0;
20139 }
20140 _ACEOF
20141 rm -f conftest$ac_exeext
20142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20143   (eval $ac_link) 2>&5
20144   ac_status=$?
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   ac_cv_sizeof_long=`cat conftest.val`
20153 else
20154   echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158 ( exit $ac_status )
20159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20160 See \`config.log' for more details." >&5
20161 echo "$as_me: error: cannot compute sizeof (long), 77
20162 See \`config.log' for more details." >&2;}
20163    { (exit 1); exit 1; }; }
20164 fi
20165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20166 fi
20167 fi
20168 rm -f conftest.val
20169 else
20170   ac_cv_sizeof_long=0
20171 fi
20172 fi
20173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20174 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20175 cat >>confdefs.h <<_ACEOF
20176 #define SIZEOF_LONG $ac_cv_sizeof_long
20177 _ACEOF
20178
20179
20180 echo "$as_me:$LINENO: checking for long long" >&5
20181 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20182 if test "${ac_cv_type_long_long+set}" = set; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185   cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 $ac_includes_default
20192 int
20193 main ()
20194 {
20195 if ((long long *) 0)
20196   return 0;
20197 if (sizeof (long long))
20198   return 0;
20199   ;
20200   return 0;
20201 }
20202 _ACEOF
20203 rm -f conftest.$ac_objext
20204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20205   (eval $ac_compile) 2>conftest.er1
20206   ac_status=$?
20207   grep -v '^ *+' conftest.er1 >conftest.err
20208   rm -f conftest.er1
20209   cat conftest.err >&5
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); } &&
20212          { ac_try='test -z "$ac_c_werror_flag"
20213                          || test ! -s conftest.err'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; } &&
20219          { ac_try='test -s conftest.$ac_objext'
20220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20221   (eval $ac_try) 2>&5
20222   ac_status=$?
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); }; }; then
20225   ac_cv_type_long_long=yes
20226 else
20227   echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20229
20230 ac_cv_type_long_long=no
20231 fi
20232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20233 fi
20234 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20235 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20236
20237 echo "$as_me:$LINENO: checking size of long long" >&5
20238 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20239 if test "${ac_cv_sizeof_long_long+set}" = set; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 else
20242   if test "$ac_cv_type_long_long" = yes; then
20243   # The cast to unsigned long works around a bug in the HP C Compiler
20244   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20245   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20246   # This bug is HP SR number 8606223364.
20247   if test "$cross_compiling" = yes; then
20248   # Depending upon the size, compute the lo and hi bounds.
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 $ac_includes_default
20256 int
20257 main ()
20258 {
20259 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20260 test_array [0] = 0
20261
20262   ;
20263   return 0;
20264 }
20265 _ACEOF
20266 rm -f conftest.$ac_objext
20267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20268   (eval $ac_compile) 2>conftest.er1
20269   ac_status=$?
20270   grep -v '^ *+' conftest.er1 >conftest.err
20271   rm -f conftest.er1
20272   cat conftest.err >&5
20273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274   (exit $ac_status); } &&
20275          { ac_try='test -z "$ac_c_werror_flag"
20276                          || test ! -s conftest.err'
20277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278   (eval $ac_try) 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; } &&
20282          { ac_try='test -s conftest.$ac_objext'
20283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284   (eval $ac_try) 2>&5
20285   ac_status=$?
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); }; }; then
20288   ac_lo=0 ac_mid=0
20289   while :; do
20290     cat >conftest.$ac_ext <<_ACEOF
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 $ac_includes_default
20297 int
20298 main ()
20299 {
20300 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20301 test_array [0] = 0
20302
20303   ;
20304   return 0;
20305 }
20306 _ACEOF
20307 rm -f conftest.$ac_objext
20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20309   (eval $ac_compile) 2>conftest.er1
20310   ac_status=$?
20311   grep -v '^ *+' conftest.er1 >conftest.err
20312   rm -f conftest.er1
20313   cat conftest.err >&5
20314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20315   (exit $ac_status); } &&
20316          { ac_try='test -z "$ac_c_werror_flag"
20317                          || test ! -s conftest.err'
20318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319   (eval $ac_try) 2>&5
20320   ac_status=$?
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); }; } &&
20323          { ac_try='test -s conftest.$ac_objext'
20324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325   (eval $ac_try) 2>&5
20326   ac_status=$?
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); }; }; then
20329   ac_hi=$ac_mid; break
20330 else
20331   echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ac_lo=`expr $ac_mid + 1`
20335                     if test $ac_lo -le $ac_mid; then
20336                       ac_lo= ac_hi=
20337                       break
20338                     fi
20339                     ac_mid=`expr 2 '*' $ac_mid + 1`
20340 fi
20341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20342   done
20343 else
20344   echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353 $ac_includes_default
20354 int
20355 main ()
20356 {
20357 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20358 test_array [0] = 0
20359
20360   ;
20361   return 0;
20362 }
20363 _ACEOF
20364 rm -f conftest.$ac_objext
20365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20366   (eval $ac_compile) 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } &&
20373          { ac_try='test -z "$ac_c_werror_flag"
20374                          || test ! -s conftest.err'
20375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20376   (eval $ac_try) 2>&5
20377   ac_status=$?
20378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20379   (exit $ac_status); }; } &&
20380          { ac_try='test -s conftest.$ac_objext'
20381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20382   (eval $ac_try) 2>&5
20383   ac_status=$?
20384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385   (exit $ac_status); }; }; then
20386   ac_hi=-1 ac_mid=-1
20387   while :; do
20388     cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h.  */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h.  */
20394 $ac_includes_default
20395 int
20396 main ()
20397 {
20398 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20399 test_array [0] = 0
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 rm -f conftest.$ac_objext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20407   (eval $ac_compile) 2>conftest.er1
20408   ac_status=$?
20409   grep -v '^ *+' conftest.er1 >conftest.err
20410   rm -f conftest.er1
20411   cat conftest.err >&5
20412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413   (exit $ac_status); } &&
20414          { ac_try='test -z "$ac_c_werror_flag"
20415                          || test ! -s conftest.err'
20416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417   (eval $ac_try) 2>&5
20418   ac_status=$?
20419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420   (exit $ac_status); }; } &&
20421          { ac_try='test -s conftest.$ac_objext'
20422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423   (eval $ac_try) 2>&5
20424   ac_status=$?
20425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426   (exit $ac_status); }; }; then
20427   ac_lo=$ac_mid; break
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432 ac_hi=`expr '(' $ac_mid ')' - 1`
20433                        if test $ac_mid -le $ac_hi; then
20434                          ac_lo= ac_hi=
20435                          break
20436                        fi
20437                        ac_mid=`expr 2 '*' $ac_mid`
20438 fi
20439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20440   done
20441 else
20442   echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20444
20445 ac_lo= ac_hi=
20446 fi
20447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20448 fi
20449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20450 # Binary search between lo and hi bounds.
20451 while test "x$ac_lo" != "x$ac_hi"; do
20452   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20453   cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 $ac_includes_default
20460 int
20461 main ()
20462 {
20463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20464 test_array [0] = 0
20465
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20472   (eval $ac_compile) 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -z "$ac_c_werror_flag"
20480                          || test ! -s conftest.err'
20481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482   (eval $ac_try) 2>&5
20483   ac_status=$?
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); }; } &&
20486          { ac_try='test -s conftest.$ac_objext'
20487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488   (eval $ac_try) 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   ac_hi=$ac_mid
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497 ac_lo=`expr '(' $ac_mid ')' + 1`
20498 fi
20499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20500 done
20501 case $ac_lo in
20502 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20504 See \`config.log' for more details." >&5
20505 echo "$as_me: error: cannot compute sizeof (long long), 77
20506 See \`config.log' for more details." >&2;}
20507    { (exit 1); exit 1; }; } ;;
20508 esac
20509 else
20510   if test "$cross_compiling" = yes; then
20511   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20512 See \`config.log' for more details." >&5
20513 echo "$as_me: error: cannot run test program while cross compiling
20514 See \`config.log' for more details." >&2;}
20515    { (exit 1); exit 1; }; }
20516 else
20517   cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h.  */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h.  */
20523 $ac_includes_default
20524 long longval () { return (long) (sizeof (long long)); }
20525 unsigned long ulongval () { return (long) (sizeof (long long)); }
20526 #include <stdio.h>
20527 #include <stdlib.h>
20528 int
20529 main ()
20530 {
20531
20532   FILE *f = fopen ("conftest.val", "w");
20533   if (! f)
20534     exit (1);
20535   if (((long) (sizeof (long long))) < 0)
20536     {
20537       long i = longval ();
20538       if (i != ((long) (sizeof (long long))))
20539         exit (1);
20540       fprintf (f, "%ld\n", i);
20541     }
20542   else
20543     {
20544       unsigned long i = ulongval ();
20545       if (i != ((long) (sizeof (long long))))
20546         exit (1);
20547       fprintf (f, "%lu\n", i);
20548     }
20549   exit (ferror (f) || fclose (f) != 0);
20550
20551   ;
20552   return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest$ac_exeext
20556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20557   (eval $ac_link) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562   (eval $ac_try) 2>&5
20563   ac_status=$?
20564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565   (exit $ac_status); }; }; then
20566   ac_cv_sizeof_long_long=`cat conftest.val`
20567 else
20568   echo "$as_me: program exited with status $ac_status" >&5
20569 echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ( exit $ac_status )
20573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20574 See \`config.log' for more details." >&5
20575 echo "$as_me: error: cannot compute sizeof (long long), 77
20576 See \`config.log' for more details." >&2;}
20577    { (exit 1); exit 1; }; }
20578 fi
20579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20580 fi
20581 fi
20582 rm -f conftest.val
20583 else
20584   ac_cv_sizeof_long_long=0
20585 fi
20586 fi
20587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20588 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20589 cat >>confdefs.h <<_ACEOF
20590 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20591 _ACEOF
20592
20593
20594 echo "$as_me:$LINENO: checking for intmax_t" >&5
20595 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
20596 if test "${ac_cv_type_intmax_t+set}" = set; then
20597   echo $ECHO_N "(cached) $ECHO_C" >&6
20598 else
20599   cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h.  */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h.  */
20605 $ac_includes_default
20606 int
20607 main ()
20608 {
20609 if ((intmax_t *) 0)
20610   return 0;
20611 if (sizeof (intmax_t))
20612   return 0;
20613   ;
20614   return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20619   (eval $ac_compile) 2>conftest.er1
20620   ac_status=$?
20621   grep -v '^ *+' conftest.er1 >conftest.err
20622   rm -f conftest.er1
20623   cat conftest.err >&5
20624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625   (exit $ac_status); } &&
20626          { ac_try='test -z "$ac_c_werror_flag"
20627                          || test ! -s conftest.err'
20628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629   (eval $ac_try) 2>&5
20630   ac_status=$?
20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632   (exit $ac_status); }; } &&
20633          { ac_try='test -s conftest.$ac_objext'
20634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635   (eval $ac_try) 2>&5
20636   ac_status=$?
20637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638   (exit $ac_status); }; }; then
20639   ac_cv_type_intmax_t=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 ac_cv_type_intmax_t=no
20645 fi
20646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20647 fi
20648 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
20649 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
20650
20651 echo "$as_me:$LINENO: checking size of intmax_t" >&5
20652 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
20653 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
20654   echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656   if test "$ac_cv_type_intmax_t" = yes; then
20657   # The cast to unsigned long works around a bug in the HP C Compiler
20658   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20659   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20660   # This bug is HP SR number 8606223364.
20661   if test "$cross_compiling" = yes; then
20662   # Depending upon the size, compute the lo and hi bounds.
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h.  */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h.  */
20669 $ac_includes_default
20670 int
20671 main ()
20672 {
20673 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
20674 test_array [0] = 0
20675
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext
20681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20682   (eval $ac_compile) 2>conftest.er1
20683   ac_status=$?
20684   grep -v '^ *+' conftest.er1 >conftest.err
20685   rm -f conftest.er1
20686   cat conftest.err >&5
20687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688   (exit $ac_status); } &&
20689          { ac_try='test -z "$ac_c_werror_flag"
20690                          || test ! -s conftest.err'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; } &&
20696          { ac_try='test -s conftest.$ac_objext'
20697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698   (eval $ac_try) 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; }; then
20702   ac_lo=0 ac_mid=0
20703   while :; do
20704     cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h.  */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h.  */
20710 $ac_includes_default
20711 int
20712 main ()
20713 {
20714 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
20715 test_array [0] = 0
20716
20717   ;
20718   return 0;
20719 }
20720 _ACEOF
20721 rm -f conftest.$ac_objext
20722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20723   (eval $ac_compile) 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } &&
20730          { ac_try='test -z "$ac_c_werror_flag"
20731                          || test ! -s conftest.err'
20732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733   (eval $ac_try) 2>&5
20734   ac_status=$?
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); }; } &&
20737          { ac_try='test -s conftest.$ac_objext'
20738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20739   (eval $ac_try) 2>&5
20740   ac_status=$?
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); }; }; then
20743   ac_hi=$ac_mid; break
20744 else
20745   echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748 ac_lo=`expr $ac_mid + 1`
20749                     if test $ac_lo -le $ac_mid; then
20750                       ac_lo= ac_hi=
20751                       break
20752                     fi
20753                     ac_mid=`expr 2 '*' $ac_mid + 1`
20754 fi
20755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20756   done
20757 else
20758   echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761 cat >conftest.$ac_ext <<_ACEOF
20762 /* confdefs.h.  */
20763 _ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h.  */
20767 $ac_includes_default
20768 int
20769 main ()
20770 {
20771 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
20772 test_array [0] = 0
20773
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20780   (eval $ac_compile) 2>conftest.er1
20781   ac_status=$?
20782   grep -v '^ *+' conftest.er1 >conftest.err
20783   rm -f conftest.er1
20784   cat conftest.err >&5
20785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786   (exit $ac_status); } &&
20787          { ac_try='test -z "$ac_c_werror_flag"
20788                          || test ! -s conftest.err'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; } &&
20794          { ac_try='test -s conftest.$ac_objext'
20795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796   (eval $ac_try) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; }; then
20800   ac_hi=-1 ac_mid=-1
20801   while :; do
20802     cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808 $ac_includes_default
20809 int
20810 main ()
20811 {
20812 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
20813 test_array [0] = 0
20814
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext
20820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20821   (eval $ac_compile) 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } &&
20828          { ac_try='test -z "$ac_c_werror_flag"
20829                          || test ! -s conftest.err'
20830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831   (eval $ac_try) 2>&5
20832   ac_status=$?
20833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834   (exit $ac_status); }; } &&
20835          { ac_try='test -s conftest.$ac_objext'
20836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837   (eval $ac_try) 2>&5
20838   ac_status=$?
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); }; }; then
20841   ac_lo=$ac_mid; break
20842 else
20843   echo "$as_me: failed program was:" >&5
20844 sed 's/^/| /' conftest.$ac_ext >&5
20845
20846 ac_hi=`expr '(' $ac_mid ')' - 1`
20847                        if test $ac_mid -le $ac_hi; then
20848                          ac_lo= ac_hi=
20849                          break
20850                        fi
20851                        ac_mid=`expr 2 '*' $ac_mid`
20852 fi
20853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20854   done
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_lo= ac_hi=
20860 fi
20861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20862 fi
20863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20864 # Binary search between lo and hi bounds.
20865 while test "x$ac_lo" != "x$ac_hi"; do
20866   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 $ac_includes_default
20874 int
20875 main ()
20876 {
20877 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
20878 test_array [0] = 0
20879
20880   ;
20881   return 0;
20882 }
20883 _ACEOF
20884 rm -f conftest.$ac_objext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886   (eval $ac_compile) 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } &&
20893          { ac_try='test -z "$ac_c_werror_flag"
20894                          || test ! -s conftest.err'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; } &&
20900          { ac_try='test -s conftest.$ac_objext'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_hi=$ac_mid
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911 ac_lo=`expr '(' $ac_mid ')' + 1`
20912 fi
20913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20914 done
20915 case $ac_lo in
20916 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
20917 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
20918 See \`config.log' for more details." >&5
20919 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
20920 See \`config.log' for more details." >&2;}
20921    { (exit 1); exit 1; }; } ;;
20922 esac
20923 else
20924   if test "$cross_compiling" = yes; then
20925   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20926 See \`config.log' for more details." >&5
20927 echo "$as_me: error: cannot run test program while cross compiling
20928 See \`config.log' for more details." >&2;}
20929    { (exit 1); exit 1; }; }
20930 else
20931   cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937 $ac_includes_default
20938 long longval () { return (long) (sizeof (intmax_t)); }
20939 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
20940 #include <stdio.h>
20941 #include <stdlib.h>
20942 int
20943 main ()
20944 {
20945
20946   FILE *f = fopen ("conftest.val", "w");
20947   if (! f)
20948     exit (1);
20949   if (((long) (sizeof (intmax_t))) < 0)
20950     {
20951       long i = longval ();
20952       if (i != ((long) (sizeof (intmax_t))))
20953         exit (1);
20954       fprintf (f, "%ld\n", i);
20955     }
20956   else
20957     {
20958       unsigned long i = ulongval ();
20959       if (i != ((long) (sizeof (intmax_t))))
20960         exit (1);
20961       fprintf (f, "%lu\n", i);
20962     }
20963   exit (ferror (f) || fclose (f) != 0);
20964
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest$ac_exeext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20971   (eval $ac_link) 2>&5
20972   ac_status=$?
20973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20976   (eval $ac_try) 2>&5
20977   ac_status=$?
20978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979   (exit $ac_status); }; }; then
20980   ac_cv_sizeof_intmax_t=`cat conftest.val`
20981 else
20982   echo "$as_me: program exited with status $ac_status" >&5
20983 echo "$as_me: failed program was:" >&5
20984 sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ( exit $ac_status )
20987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
20988 See \`config.log' for more details." >&5
20989 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
20990 See \`config.log' for more details." >&2;}
20991    { (exit 1); exit 1; }; }
20992 fi
20993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20994 fi
20995 fi
20996 rm -f conftest.val
20997 else
20998   ac_cv_sizeof_intmax_t=0
20999 fi
21000 fi
21001 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
21002 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
21003 cat >>confdefs.h <<_ACEOF
21004 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
21005 _ACEOF
21006
21007
21008 echo "$as_me:$LINENO: checking for off_t" >&5
21009 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21010 if test "${ac_cv_type_off_t+set}" = set; then
21011   echo $ECHO_N "(cached) $ECHO_C" >&6
21012 else
21013   cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019 $ac_includes_default
21020 int
21021 main ()
21022 {
21023 if ((off_t *) 0)
21024   return 0;
21025 if (sizeof (off_t))
21026   return 0;
21027   ;
21028   return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033   (eval $ac_compile) 2>conftest.er1
21034   ac_status=$?
21035   grep -v '^ *+' conftest.er1 >conftest.err
21036   rm -f conftest.er1
21037   cat conftest.err >&5
21038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039   (exit $ac_status); } &&
21040          { ac_try='test -z "$ac_c_werror_flag"
21041                          || test ! -s conftest.err'
21042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043   (eval $ac_try) 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; } &&
21047          { ac_try='test -s conftest.$ac_objext'
21048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049   (eval $ac_try) 2>&5
21050   ac_status=$?
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); }; }; then
21053   ac_cv_type_off_t=yes
21054 else
21055   echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ac_cv_type_off_t=no
21059 fi
21060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21061 fi
21062 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21063 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21064
21065 echo "$as_me:$LINENO: checking size of off_t" >&5
21066 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
21067 if test "${ac_cv_sizeof_off_t+set}" = set; then
21068   echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070   if test "$ac_cv_type_off_t" = yes; then
21071   # The cast to unsigned long works around a bug in the HP C Compiler
21072   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21073   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21074   # This bug is HP SR number 8606223364.
21075   if test "$cross_compiling" = yes; then
21076   # Depending upon the size, compute the lo and hi bounds.
21077 cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h.  */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h.  */
21083 $ac_includes_default
21084 int
21085 main ()
21086 {
21087 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
21088 test_array [0] = 0
21089
21090   ;
21091   return 0;
21092 }
21093 _ACEOF
21094 rm -f conftest.$ac_objext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21096   (eval $ac_compile) 2>conftest.er1
21097   ac_status=$?
21098   grep -v '^ *+' conftest.er1 >conftest.err
21099   rm -f conftest.er1
21100   cat conftest.err >&5
21101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102   (exit $ac_status); } &&
21103          { ac_try='test -z "$ac_c_werror_flag"
21104                          || test ! -s conftest.err'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; } &&
21110          { ac_try='test -s conftest.$ac_objext'
21111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112   (eval $ac_try) 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   ac_lo=0 ac_mid=0
21117   while :; do
21118     cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h.  */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h.  */
21124 $ac_includes_default
21125 int
21126 main ()
21127 {
21128 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21129 test_array [0] = 0
21130
21131   ;
21132   return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21137   (eval $ac_compile) 2>conftest.er1
21138   ac_status=$?
21139   grep -v '^ *+' conftest.er1 >conftest.err
21140   rm -f conftest.er1
21141   cat conftest.err >&5
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); } &&
21144          { ac_try='test -z "$ac_c_werror_flag"
21145                          || test ! -s conftest.err'
21146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147   (eval $ac_try) 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); }; } &&
21151          { ac_try='test -s conftest.$ac_objext'
21152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153   (eval $ac_try) 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; }; then
21157   ac_hi=$ac_mid; break
21158 else
21159   echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162 ac_lo=`expr $ac_mid + 1`
21163                     if test $ac_lo -le $ac_mid; then
21164                       ac_lo= ac_hi=
21165                       break
21166                     fi
21167                     ac_mid=`expr 2 '*' $ac_mid + 1`
21168 fi
21169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21170   done
21171 else
21172   echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21174
21175 cat >conftest.$ac_ext <<_ACEOF
21176 /* confdefs.h.  */
21177 _ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h.  */
21181 $ac_includes_default
21182 int
21183 main ()
21184 {
21185 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
21186 test_array [0] = 0
21187
21188   ;
21189   return 0;
21190 }
21191 _ACEOF
21192 rm -f conftest.$ac_objext
21193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194   (eval $ac_compile) 2>conftest.er1
21195   ac_status=$?
21196   grep -v '^ *+' conftest.er1 >conftest.err
21197   rm -f conftest.er1
21198   cat conftest.err >&5
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -z "$ac_c_werror_flag"
21202                          || test ! -s conftest.err'
21203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204   (eval $ac_try) 2>&5
21205   ac_status=$?
21206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207   (exit $ac_status); }; } &&
21208          { ac_try='test -s conftest.$ac_objext'
21209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210   (eval $ac_try) 2>&5
21211   ac_status=$?
21212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213   (exit $ac_status); }; }; then
21214   ac_hi=-1 ac_mid=-1
21215   while :; do
21216     cat >conftest.$ac_ext <<_ACEOF
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222 $ac_includes_default
21223 int
21224 main ()
21225 {
21226 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
21227 test_array [0] = 0
21228
21229   ;
21230   return 0;
21231 }
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21235   (eval $ac_compile) 2>conftest.er1
21236   ac_status=$?
21237   grep -v '^ *+' conftest.er1 >conftest.err
21238   rm -f conftest.er1
21239   cat conftest.err >&5
21240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241   (exit $ac_status); } &&
21242          { ac_try='test -z "$ac_c_werror_flag"
21243                          || test ! -s conftest.err'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; } &&
21249          { ac_try='test -s conftest.$ac_objext'
21250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251   (eval $ac_try) 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; }; then
21255   ac_lo=$ac_mid; break
21256 else
21257   echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21259
21260 ac_hi=`expr '(' $ac_mid ')' - 1`
21261                        if test $ac_mid -le $ac_hi; then
21262                          ac_lo= ac_hi=
21263                          break
21264                        fi
21265                        ac_mid=`expr 2 '*' $ac_mid`
21266 fi
21267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21268   done
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 ac_lo= ac_hi=
21274 fi
21275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21276 fi
21277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21278 # Binary search between lo and hi bounds.
21279 while test "x$ac_lo" != "x$ac_hi"; do
21280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21281   cat >conftest.$ac_ext <<_ACEOF
21282 /* confdefs.h.  */
21283 _ACEOF
21284 cat confdefs.h >>conftest.$ac_ext
21285 cat >>conftest.$ac_ext <<_ACEOF
21286 /* end confdefs.h.  */
21287 $ac_includes_default
21288 int
21289 main ()
21290 {
21291 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
21292 test_array [0] = 0
21293
21294   ;
21295   return 0;
21296 }
21297 _ACEOF
21298 rm -f conftest.$ac_objext
21299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21300   (eval $ac_compile) 2>conftest.er1
21301   ac_status=$?
21302   grep -v '^ *+' conftest.er1 >conftest.err
21303   rm -f conftest.er1
21304   cat conftest.err >&5
21305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306   (exit $ac_status); } &&
21307          { ac_try='test -z "$ac_c_werror_flag"
21308                          || test ! -s conftest.err'
21309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310   (eval $ac_try) 2>&5
21311   ac_status=$?
21312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313   (exit $ac_status); }; } &&
21314          { ac_try='test -s conftest.$ac_objext'
21315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21316   (eval $ac_try) 2>&5
21317   ac_status=$?
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); }; }; then
21320   ac_hi=$ac_mid
21321 else
21322   echo "$as_me: failed program was:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21324
21325 ac_lo=`expr '(' $ac_mid ')' + 1`
21326 fi
21327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21328 done
21329 case $ac_lo in
21330 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21332 See \`config.log' for more details." >&5
21333 echo "$as_me: error: cannot compute sizeof (off_t), 77
21334 See \`config.log' for more details." >&2;}
21335    { (exit 1); exit 1; }; } ;;
21336 esac
21337 else
21338   if test "$cross_compiling" = yes; then
21339   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21340 See \`config.log' for more details." >&5
21341 echo "$as_me: error: cannot run test program while cross compiling
21342 See \`config.log' for more details." >&2;}
21343    { (exit 1); exit 1; }; }
21344 else
21345   cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h.  */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h.  */
21351 $ac_includes_default
21352 long longval () { return (long) (sizeof (off_t)); }
21353 unsigned long ulongval () { return (long) (sizeof (off_t)); }
21354 #include <stdio.h>
21355 #include <stdlib.h>
21356 int
21357 main ()
21358 {
21359
21360   FILE *f = fopen ("conftest.val", "w");
21361   if (! f)
21362     exit (1);
21363   if (((long) (sizeof (off_t))) < 0)
21364     {
21365       long i = longval ();
21366       if (i != ((long) (sizeof (off_t))))
21367         exit (1);
21368       fprintf (f, "%ld\n", i);
21369     }
21370   else
21371     {
21372       unsigned long i = ulongval ();
21373       if (i != ((long) (sizeof (off_t))))
21374         exit (1);
21375       fprintf (f, "%lu\n", i);
21376     }
21377   exit (ferror (f) || fclose (f) != 0);
21378
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest$ac_exeext
21384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21385   (eval $ac_link) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21390   (eval $ac_try) 2>&5
21391   ac_status=$?
21392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393   (exit $ac_status); }; }; then
21394   ac_cv_sizeof_off_t=`cat conftest.val`
21395 else
21396   echo "$as_me: program exited with status $ac_status" >&5
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ( exit $ac_status )
21401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
21402 See \`config.log' for more details." >&5
21403 echo "$as_me: error: cannot compute sizeof (off_t), 77
21404 See \`config.log' for more details." >&2;}
21405    { (exit 1); exit 1; }; }
21406 fi
21407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21408 fi
21409 fi
21410 rm -f conftest.val
21411 else
21412   ac_cv_sizeof_off_t=0
21413 fi
21414 fi
21415 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21416 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
21417 cat >>confdefs.h <<_ACEOF
21418 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21419 _ACEOF
21420
21421
21422 echo "$as_me:$LINENO: checking for size_t" >&5
21423 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21424 if test "${ac_cv_type_size_t+set}" = set; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 $ac_includes_default
21434 int
21435 main ()
21436 {
21437 if ((size_t *) 0)
21438   return 0;
21439 if (sizeof (size_t))
21440   return 0;
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21447   (eval $ac_compile) 2>conftest.er1
21448   ac_status=$?
21449   grep -v '^ *+' conftest.er1 >conftest.err
21450   rm -f conftest.er1
21451   cat conftest.err >&5
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); } &&
21454          { ac_try='test -z "$ac_c_werror_flag"
21455                          || test ! -s conftest.err'
21456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457   (eval $ac_try) 2>&5
21458   ac_status=$?
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); }; } &&
21461          { ac_try='test -s conftest.$ac_objext'
21462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21463   (eval $ac_try) 2>&5
21464   ac_status=$?
21465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466   (exit $ac_status); }; }; then
21467   ac_cv_type_size_t=yes
21468 else
21469   echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472 ac_cv_type_size_t=no
21473 fi
21474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21475 fi
21476 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21477 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21478
21479 echo "$as_me:$LINENO: checking size of size_t" >&5
21480 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
21481 if test "${ac_cv_sizeof_size_t+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   if test "$ac_cv_type_size_t" = yes; then
21485   # The cast to unsigned long works around a bug in the HP C Compiler
21486   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21487   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21488   # This bug is HP SR number 8606223364.
21489   if test "$cross_compiling" = yes; then
21490   # Depending upon the size, compute the lo and hi bounds.
21491 cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 $ac_includes_default
21498 int
21499 main ()
21500 {
21501 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
21502 test_array [0] = 0
21503
21504   ;
21505   return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21510   (eval $ac_compile) 2>conftest.er1
21511   ac_status=$?
21512   grep -v '^ *+' conftest.er1 >conftest.err
21513   rm -f conftest.er1
21514   cat conftest.err >&5
21515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516   (exit $ac_status); } &&
21517          { ac_try='test -z "$ac_c_werror_flag"
21518                          || test ! -s conftest.err'
21519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520   (eval $ac_try) 2>&5
21521   ac_status=$?
21522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523   (exit $ac_status); }; } &&
21524          { ac_try='test -s conftest.$ac_objext'
21525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21526   (eval $ac_try) 2>&5
21527   ac_status=$?
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); }; }; then
21530   ac_lo=0 ac_mid=0
21531   while :; do
21532     cat >conftest.$ac_ext <<_ACEOF
21533 /* confdefs.h.  */
21534 _ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h.  */
21538 $ac_includes_default
21539 int
21540 main ()
21541 {
21542 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21543 test_array [0] = 0
21544
21545   ;
21546   return 0;
21547 }
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21551   (eval $ac_compile) 2>conftest.er1
21552   ac_status=$?
21553   grep -v '^ *+' conftest.er1 >conftest.err
21554   rm -f conftest.er1
21555   cat conftest.err >&5
21556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21557   (exit $ac_status); } &&
21558          { ac_try='test -z "$ac_c_werror_flag"
21559                          || test ! -s conftest.err'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; } &&
21565          { ac_try='test -s conftest.$ac_objext'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; }; then
21571   ac_hi=$ac_mid; break
21572 else
21573   echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 ac_lo=`expr $ac_mid + 1`
21577                     if test $ac_lo -le $ac_mid; then
21578                       ac_lo= ac_hi=
21579                       break
21580                     fi
21581                     ac_mid=`expr 2 '*' $ac_mid + 1`
21582 fi
21583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21584   done
21585 else
21586   echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 cat >conftest.$ac_ext <<_ACEOF
21590 /* confdefs.h.  */
21591 _ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h.  */
21595 $ac_includes_default
21596 int
21597 main ()
21598 {
21599 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
21600 test_array [0] = 0
21601
21602   ;
21603   return 0;
21604 }
21605 _ACEOF
21606 rm -f conftest.$ac_objext
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608   (eval $ac_compile) 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } &&
21615          { ac_try='test -z "$ac_c_werror_flag"
21616                          || test ! -s conftest.err'
21617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618   (eval $ac_try) 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); }; } &&
21622          { ac_try='test -s conftest.$ac_objext'
21623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624   (eval $ac_try) 2>&5
21625   ac_status=$?
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); }; }; then
21628   ac_hi=-1 ac_mid=-1
21629   while :; do
21630     cat >conftest.$ac_ext <<_ACEOF
21631 /* confdefs.h.  */
21632 _ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h.  */
21636 $ac_includes_default
21637 int
21638 main ()
21639 {
21640 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
21641 test_array [0] = 0
21642
21643   ;
21644   return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext
21648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21649   (eval $ac_compile) 2>conftest.er1
21650   ac_status=$?
21651   grep -v '^ *+' conftest.er1 >conftest.err
21652   rm -f conftest.er1
21653   cat conftest.err >&5
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); } &&
21656          { ac_try='test -z "$ac_c_werror_flag"
21657                          || test ! -s conftest.err'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; } &&
21663          { ac_try='test -s conftest.$ac_objext'
21664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665   (eval $ac_try) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; }; then
21669   ac_lo=$ac_mid; break
21670 else
21671   echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.$ac_ext >&5
21673
21674 ac_hi=`expr '(' $ac_mid ')' - 1`
21675                        if test $ac_mid -le $ac_hi; then
21676                          ac_lo= ac_hi=
21677                          break
21678                        fi
21679                        ac_mid=`expr 2 '*' $ac_mid`
21680 fi
21681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21682   done
21683 else
21684   echo "$as_me: failed program was:" >&5
21685 sed 's/^/| /' conftest.$ac_ext >&5
21686
21687 ac_lo= ac_hi=
21688 fi
21689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21690 fi
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 # Binary search between lo and hi bounds.
21693 while test "x$ac_lo" != "x$ac_hi"; do
21694   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21695   cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h.  */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h.  */
21701 $ac_includes_default
21702 int
21703 main ()
21704 {
21705 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
21706 test_array [0] = 0
21707
21708   ;
21709   return 0;
21710 }
21711 _ACEOF
21712 rm -f conftest.$ac_objext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714   (eval $ac_compile) 2>conftest.er1
21715   ac_status=$?
21716   grep -v '^ *+' conftest.er1 >conftest.err
21717   rm -f conftest.er1
21718   cat conftest.err >&5
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } &&
21721          { ac_try='test -z "$ac_c_werror_flag"
21722                          || test ! -s conftest.err'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; } &&
21728          { ac_try='test -s conftest.$ac_objext'
21729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730   (eval $ac_try) 2>&5
21731   ac_status=$?
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); }; }; then
21734   ac_hi=$ac_mid
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739 ac_lo=`expr '(' $ac_mid ')' + 1`
21740 fi
21741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21742 done
21743 case $ac_lo in
21744 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21745 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21746 See \`config.log' for more details." >&5
21747 echo "$as_me: error: cannot compute sizeof (size_t), 77
21748 See \`config.log' for more details." >&2;}
21749    { (exit 1); exit 1; }; } ;;
21750 esac
21751 else
21752   if test "$cross_compiling" = yes; then
21753   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21754 See \`config.log' for more details." >&5
21755 echo "$as_me: error: cannot run test program while cross compiling
21756 See \`config.log' for more details." >&2;}
21757    { (exit 1); exit 1; }; }
21758 else
21759   cat >conftest.$ac_ext <<_ACEOF
21760 /* confdefs.h.  */
21761 _ACEOF
21762 cat confdefs.h >>conftest.$ac_ext
21763 cat >>conftest.$ac_ext <<_ACEOF
21764 /* end confdefs.h.  */
21765 $ac_includes_default
21766 long longval () { return (long) (sizeof (size_t)); }
21767 unsigned long ulongval () { return (long) (sizeof (size_t)); }
21768 #include <stdio.h>
21769 #include <stdlib.h>
21770 int
21771 main ()
21772 {
21773
21774   FILE *f = fopen ("conftest.val", "w");
21775   if (! f)
21776     exit (1);
21777   if (((long) (sizeof (size_t))) < 0)
21778     {
21779       long i = longval ();
21780       if (i != ((long) (sizeof (size_t))))
21781         exit (1);
21782       fprintf (f, "%ld\n", i);
21783     }
21784   else
21785     {
21786       unsigned long i = ulongval ();
21787       if (i != ((long) (sizeof (size_t))))
21788         exit (1);
21789       fprintf (f, "%lu\n", i);
21790     }
21791   exit (ferror (f) || fclose (f) != 0);
21792
21793   ;
21794   return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest$ac_exeext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21799   (eval $ac_link) 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21804   (eval $ac_try) 2>&5
21805   ac_status=$?
21806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807   (exit $ac_status); }; }; then
21808   ac_cv_sizeof_size_t=`cat conftest.val`
21809 else
21810   echo "$as_me: program exited with status $ac_status" >&5
21811 echo "$as_me: failed program was:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21813
21814 ( exit $ac_status )
21815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
21816 See \`config.log' for more details." >&5
21817 echo "$as_me: error: cannot compute sizeof (size_t), 77
21818 See \`config.log' for more details." >&2;}
21819    { (exit 1); exit 1; }; }
21820 fi
21821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21822 fi
21823 fi
21824 rm -f conftest.val
21825 else
21826   ac_cv_sizeof_size_t=0
21827 fi
21828 fi
21829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21830 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
21831 cat >>confdefs.h <<_ACEOF
21832 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21833 _ACEOF
21834
21835
21836 echo "$as_me:$LINENO: checking for ssize_t" >&5
21837 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
21838 if test "${ac_cv_type_ssize_t+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h.  */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h.  */
21847 $ac_includes_default
21848 int
21849 main ()
21850 {
21851 if ((ssize_t *) 0)
21852   return 0;
21853 if (sizeof (ssize_t))
21854   return 0;
21855   ;
21856   return 0;
21857 }
21858 _ACEOF
21859 rm -f conftest.$ac_objext
21860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21861   (eval $ac_compile) 2>conftest.er1
21862   ac_status=$?
21863   grep -v '^ *+' conftest.er1 >conftest.err
21864   rm -f conftest.er1
21865   cat conftest.err >&5
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); } &&
21868          { ac_try='test -z "$ac_c_werror_flag"
21869                          || test ! -s conftest.err'
21870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21871   (eval $ac_try) 2>&5
21872   ac_status=$?
21873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21874   (exit $ac_status); }; } &&
21875          { ac_try='test -s conftest.$ac_objext'
21876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877   (eval $ac_try) 2>&5
21878   ac_status=$?
21879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880   (exit $ac_status); }; }; then
21881   ac_cv_type_ssize_t=yes
21882 else
21883   echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_cv_type_ssize_t=no
21887 fi
21888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21889 fi
21890 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21891 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
21892
21893 echo "$as_me:$LINENO: checking size of ssize_t" >&5
21894 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
21895 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
21896   echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898   if test "$ac_cv_type_ssize_t" = yes; then
21899   # The cast to unsigned long works around a bug in the HP C Compiler
21900   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21901   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21902   # This bug is HP SR number 8606223364.
21903   if test "$cross_compiling" = yes; then
21904   # Depending upon the size, compute the lo and hi bounds.
21905 cat >conftest.$ac_ext <<_ACEOF
21906 /* confdefs.h.  */
21907 _ACEOF
21908 cat confdefs.h >>conftest.$ac_ext
21909 cat >>conftest.$ac_ext <<_ACEOF
21910 /* end confdefs.h.  */
21911 $ac_includes_default
21912 int
21913 main ()
21914 {
21915 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
21916 test_array [0] = 0
21917
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924   (eval $ac_compile) 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } &&
21931          { ac_try='test -z "$ac_c_werror_flag"
21932                          || test ! -s conftest.err'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; } &&
21938          { ac_try='test -s conftest.$ac_objext'
21939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940   (eval $ac_try) 2>&5
21941   ac_status=$?
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); }; }; then
21944   ac_lo=0 ac_mid=0
21945   while :; do
21946     cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 $ac_includes_default
21953 int
21954 main ()
21955 {
21956 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
21957 test_array [0] = 0
21958
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21965   (eval $ac_compile) 2>conftest.er1
21966   ac_status=$?
21967   grep -v '^ *+' conftest.er1 >conftest.err
21968   rm -f conftest.er1
21969   cat conftest.err >&5
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); } &&
21972          { ac_try='test -z "$ac_c_werror_flag"
21973                          || test ! -s conftest.err'
21974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975   (eval $ac_try) 2>&5
21976   ac_status=$?
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); }; } &&
21979          { ac_try='test -s conftest.$ac_objext'
21980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21981   (eval $ac_try) 2>&5
21982   ac_status=$?
21983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984   (exit $ac_status); }; }; then
21985   ac_hi=$ac_mid; break
21986 else
21987   echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21989
21990 ac_lo=`expr $ac_mid + 1`
21991                     if test $ac_lo -le $ac_mid; then
21992                       ac_lo= ac_hi=
21993                       break
21994                     fi
21995                     ac_mid=`expr 2 '*' $ac_mid + 1`
21996 fi
21997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21998   done
21999 else
22000   echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22002
22003 cat >conftest.$ac_ext <<_ACEOF
22004 /* confdefs.h.  */
22005 _ACEOF
22006 cat confdefs.h >>conftest.$ac_ext
22007 cat >>conftest.$ac_ext <<_ACEOF
22008 /* end confdefs.h.  */
22009 $ac_includes_default
22010 int
22011 main ()
22012 {
22013 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
22014 test_array [0] = 0
22015
22016   ;
22017   return 0;
22018 }
22019 _ACEOF
22020 rm -f conftest.$ac_objext
22021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22022   (eval $ac_compile) 2>conftest.er1
22023   ac_status=$?
22024   grep -v '^ *+' conftest.er1 >conftest.err
22025   rm -f conftest.er1
22026   cat conftest.err >&5
22027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028   (exit $ac_status); } &&
22029          { ac_try='test -z "$ac_c_werror_flag"
22030                          || test ! -s conftest.err'
22031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032   (eval $ac_try) 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; } &&
22036          { ac_try='test -s conftest.$ac_objext'
22037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038   (eval $ac_try) 2>&5
22039   ac_status=$?
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); }; }; then
22042   ac_hi=-1 ac_mid=-1
22043   while :; do
22044     cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h.  */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h.  */
22050 $ac_includes_default
22051 int
22052 main ()
22053 {
22054 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
22055 test_array [0] = 0
22056
22057   ;
22058   return 0;
22059 }
22060 _ACEOF
22061 rm -f conftest.$ac_objext
22062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22063   (eval $ac_compile) 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } &&
22070          { ac_try='test -z "$ac_c_werror_flag"
22071                          || test ! -s conftest.err'
22072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073   (eval $ac_try) 2>&5
22074   ac_status=$?
22075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076   (exit $ac_status); }; } &&
22077          { ac_try='test -s conftest.$ac_objext'
22078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079   (eval $ac_try) 2>&5
22080   ac_status=$?
22081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082   (exit $ac_status); }; }; then
22083   ac_lo=$ac_mid; break
22084 else
22085   echo "$as_me: failed program was:" >&5
22086 sed 's/^/| /' conftest.$ac_ext >&5
22087
22088 ac_hi=`expr '(' $ac_mid ')' - 1`
22089                        if test $ac_mid -le $ac_hi; then
22090                          ac_lo= ac_hi=
22091                          break
22092                        fi
22093                        ac_mid=`expr 2 '*' $ac_mid`
22094 fi
22095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22096   done
22097 else
22098   echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101 ac_lo= ac_hi=
22102 fi
22103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104 fi
22105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22106 # Binary search between lo and hi bounds.
22107 while test "x$ac_lo" != "x$ac_hi"; do
22108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22109   cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h.  */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h.  */
22115 $ac_includes_default
22116 int
22117 main ()
22118 {
22119 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
22120 test_array [0] = 0
22121
22122   ;
22123   return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22128   (eval $ac_compile) 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } &&
22135          { ac_try='test -z "$ac_c_werror_flag"
22136                          || test ! -s conftest.err'
22137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138   (eval $ac_try) 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; } &&
22142          { ac_try='test -s conftest.$ac_objext'
22143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22144   (eval $ac_try) 2>&5
22145   ac_status=$?
22146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147   (exit $ac_status); }; }; then
22148   ac_hi=$ac_mid
22149 else
22150   echo "$as_me: failed program was:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22152
22153 ac_lo=`expr '(' $ac_mid ')' + 1`
22154 fi
22155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22156 done
22157 case $ac_lo in
22158 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
22159 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
22160 See \`config.log' for more details." >&5
22161 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
22162 See \`config.log' for more details." >&2;}
22163    { (exit 1); exit 1; }; } ;;
22164 esac
22165 else
22166   if test "$cross_compiling" = yes; then
22167   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22168 See \`config.log' for more details." >&5
22169 echo "$as_me: error: cannot run test program while cross compiling
22170 See \`config.log' for more details." >&2;}
22171    { (exit 1); exit 1; }; }
22172 else
22173   cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 $ac_includes_default
22180 long longval () { return (long) (sizeof (ssize_t)); }
22181 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
22182 #include <stdio.h>
22183 #include <stdlib.h>
22184 int
22185 main ()
22186 {
22187
22188   FILE *f = fopen ("conftest.val", "w");
22189   if (! f)
22190     exit (1);
22191   if (((long) (sizeof (ssize_t))) < 0)
22192     {
22193       long i = longval ();
22194       if (i != ((long) (sizeof (ssize_t))))
22195         exit (1);
22196       fprintf (f, "%ld\n", i);
22197     }
22198   else
22199     {
22200       unsigned long i = ulongval ();
22201       if (i != ((long) (sizeof (ssize_t))))
22202         exit (1);
22203       fprintf (f, "%lu\n", i);
22204     }
22205   exit (ferror (f) || fclose (f) != 0);
22206
22207   ;
22208   return 0;
22209 }
22210 _ACEOF
22211 rm -f conftest$ac_exeext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22213   (eval $ac_link) 2>&5
22214   ac_status=$?
22215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22218   (eval $ac_try) 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_cv_sizeof_ssize_t=`cat conftest.val`
22223 else
22224   echo "$as_me: program exited with status $ac_status" >&5
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ( exit $ac_status )
22229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
22230 See \`config.log' for more details." >&5
22231 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
22232 See \`config.log' for more details." >&2;}
22233    { (exit 1); exit 1; }; }
22234 fi
22235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22236 fi
22237 fi
22238 rm -f conftest.val
22239 else
22240   ac_cv_sizeof_ssize_t=0
22241 fi
22242 fi
22243 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
22244 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
22245 cat >>confdefs.h <<_ACEOF
22246 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22247 _ACEOF
22248
22249
22250 echo "$as_me:$LINENO: checking for time_t" >&5
22251 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
22252 if test "${ac_cv_type_time_t+set}" = set; then
22253   echo $ECHO_N "(cached) $ECHO_C" >&6
22254 else
22255   cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h.  */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h.  */
22261 $ac_includes_default
22262 int
22263 main ()
22264 {
22265 if ((time_t *) 0)
22266   return 0;
22267 if (sizeof (time_t))
22268   return 0;
22269   ;
22270   return 0;
22271 }
22272 _ACEOF
22273 rm -f conftest.$ac_objext
22274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22275   (eval $ac_compile) 2>conftest.er1
22276   ac_status=$?
22277   grep -v '^ *+' conftest.er1 >conftest.err
22278   rm -f conftest.er1
22279   cat conftest.err >&5
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); } &&
22282          { ac_try='test -z "$ac_c_werror_flag"
22283                          || test ! -s conftest.err'
22284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22285   (eval $ac_try) 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; } &&
22289          { ac_try='test -s conftest.$ac_objext'
22290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22291   (eval $ac_try) 2>&5
22292   ac_status=$?
22293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294   (exit $ac_status); }; }; then
22295   ac_cv_type_time_t=yes
22296 else
22297   echo "$as_me: failed program was:" >&5
22298 sed 's/^/| /' conftest.$ac_ext >&5
22299
22300 ac_cv_type_time_t=no
22301 fi
22302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22303 fi
22304 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
22305 echo "${ECHO_T}$ac_cv_type_time_t" >&6
22306
22307 echo "$as_me:$LINENO: checking size of time_t" >&5
22308 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
22309 if test "${ac_cv_sizeof_time_t+set}" = set; then
22310   echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312   if test "$ac_cv_type_time_t" = yes; then
22313   # The cast to unsigned long works around a bug in the HP C Compiler
22314   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22315   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22316   # This bug is HP SR number 8606223364.
22317   if test "$cross_compiling" = yes; then
22318   # Depending upon the size, compute the lo and hi bounds.
22319 cat >conftest.$ac_ext <<_ACEOF
22320 /* confdefs.h.  */
22321 _ACEOF
22322 cat confdefs.h >>conftest.$ac_ext
22323 cat >>conftest.$ac_ext <<_ACEOF
22324 /* end confdefs.h.  */
22325 $ac_includes_default
22326 int
22327 main ()
22328 {
22329 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
22330 test_array [0] = 0
22331
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext
22337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22338   (eval $ac_compile) 2>conftest.er1
22339   ac_status=$?
22340   grep -v '^ *+' conftest.er1 >conftest.err
22341   rm -f conftest.er1
22342   cat conftest.err >&5
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } &&
22345          { ac_try='test -z "$ac_c_werror_flag"
22346                          || test ! -s conftest.err'
22347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22348   (eval $ac_try) 2>&5
22349   ac_status=$?
22350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351   (exit $ac_status); }; } &&
22352          { ac_try='test -s conftest.$ac_objext'
22353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22354   (eval $ac_try) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); }; }; then
22358   ac_lo=0 ac_mid=0
22359   while :; do
22360     cat >conftest.$ac_ext <<_ACEOF
22361 /* confdefs.h.  */
22362 _ACEOF
22363 cat confdefs.h >>conftest.$ac_ext
22364 cat >>conftest.$ac_ext <<_ACEOF
22365 /* end confdefs.h.  */
22366 $ac_includes_default
22367 int
22368 main ()
22369 {
22370 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
22371 test_array [0] = 0
22372
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379   (eval $ac_compile) 2>conftest.er1
22380   ac_status=$?
22381   grep -v '^ *+' conftest.er1 >conftest.err
22382   rm -f conftest.er1
22383   cat conftest.err >&5
22384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385   (exit $ac_status); } &&
22386          { ac_try='test -z "$ac_c_werror_flag"
22387                          || test ! -s conftest.err'
22388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389   (eval $ac_try) 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; } &&
22393          { ac_try='test -s conftest.$ac_objext'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; }; then
22399   ac_hi=$ac_mid; break
22400 else
22401   echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404 ac_lo=`expr $ac_mid + 1`
22405                     if test $ac_lo -le $ac_mid; then
22406                       ac_lo= ac_hi=
22407                       break
22408                     fi
22409                     ac_mid=`expr 2 '*' $ac_mid + 1`
22410 fi
22411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22412   done
22413 else
22414   echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h.  */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h.  */
22423 $ac_includes_default
22424 int
22425 main ()
22426 {
22427 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
22428 test_array [0] = 0
22429
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436   (eval $ac_compile) 2>conftest.er1
22437   ac_status=$?
22438   grep -v '^ *+' conftest.er1 >conftest.err
22439   rm -f conftest.er1
22440   cat conftest.err >&5
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } &&
22443          { ac_try='test -z "$ac_c_werror_flag"
22444                          || test ! -s conftest.err'
22445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; } &&
22450          { ac_try='test -s conftest.$ac_objext'
22451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); }; }; then
22456   ac_hi=-1 ac_mid=-1
22457   while :; do
22458     cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h.  */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h.  */
22464 $ac_includes_default
22465 int
22466 main ()
22467 {
22468 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
22469 test_array [0] = 0
22470
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 rm -f conftest.$ac_objext
22476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22477   (eval $ac_compile) 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } &&
22484          { ac_try='test -z "$ac_c_werror_flag"
22485                          || test ! -s conftest.err'
22486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487   (eval $ac_try) 2>&5
22488   ac_status=$?
22489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490   (exit $ac_status); }; } &&
22491          { ac_try='test -s conftest.$ac_objext'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; }; then
22497   ac_lo=$ac_mid; break
22498 else
22499   echo "$as_me: failed program was:" >&5
22500 sed 's/^/| /' conftest.$ac_ext >&5
22501
22502 ac_hi=`expr '(' $ac_mid ')' - 1`
22503                        if test $ac_mid -le $ac_hi; then
22504                          ac_lo= ac_hi=
22505                          break
22506                        fi
22507                        ac_mid=`expr 2 '*' $ac_mid`
22508 fi
22509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22510   done
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515 ac_lo= ac_hi=
22516 fi
22517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22518 fi
22519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22520 # Binary search between lo and hi bounds.
22521 while test "x$ac_lo" != "x$ac_hi"; do
22522   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22523   cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 $ac_includes_default
22530 int
22531 main ()
22532 {
22533 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
22534 test_array [0] = 0
22535
22536   ;
22537   return 0;
22538 }
22539 _ACEOF
22540 rm -f conftest.$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542   (eval $ac_compile) 2>conftest.er1
22543   ac_status=$?
22544   grep -v '^ *+' conftest.er1 >conftest.err
22545   rm -f conftest.er1
22546   cat conftest.err >&5
22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548   (exit $ac_status); } &&
22549          { ac_try='test -z "$ac_c_werror_flag"
22550                          || test ! -s conftest.err'
22551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552   (eval $ac_try) 2>&5
22553   ac_status=$?
22554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555   (exit $ac_status); }; } &&
22556          { ac_try='test -s conftest.$ac_objext'
22557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558   (eval $ac_try) 2>&5
22559   ac_status=$?
22560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561   (exit $ac_status); }; }; then
22562   ac_hi=$ac_mid
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567 ac_lo=`expr '(' $ac_mid ')' + 1`
22568 fi
22569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22570 done
22571 case $ac_lo in
22572 ?*) ac_cv_sizeof_time_t=$ac_lo;;
22573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
22574 See \`config.log' for more details." >&5
22575 echo "$as_me: error: cannot compute sizeof (time_t), 77
22576 See \`config.log' for more details." >&2;}
22577    { (exit 1); exit 1; }; } ;;
22578 esac
22579 else
22580   if test "$cross_compiling" = yes; then
22581   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22582 See \`config.log' for more details." >&5
22583 echo "$as_me: error: cannot run test program while cross compiling
22584 See \`config.log' for more details." >&2;}
22585    { (exit 1); exit 1; }; }
22586 else
22587   cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593 $ac_includes_default
22594 long longval () { return (long) (sizeof (time_t)); }
22595 unsigned long ulongval () { return (long) (sizeof (time_t)); }
22596 #include <stdio.h>
22597 #include <stdlib.h>
22598 int
22599 main ()
22600 {
22601
22602   FILE *f = fopen ("conftest.val", "w");
22603   if (! f)
22604     exit (1);
22605   if (((long) (sizeof (time_t))) < 0)
22606     {
22607       long i = longval ();
22608       if (i != ((long) (sizeof (time_t))))
22609         exit (1);
22610       fprintf (f, "%ld\n", i);
22611     }
22612   else
22613     {
22614       unsigned long i = ulongval ();
22615       if (i != ((long) (sizeof (time_t))))
22616         exit (1);
22617       fprintf (f, "%lu\n", i);
22618     }
22619   exit (ferror (f) || fclose (f) != 0);
22620
22621   ;
22622   return 0;
22623 }
22624 _ACEOF
22625 rm -f conftest$ac_exeext
22626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22627   (eval $ac_link) 2>&5
22628   ac_status=$?
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22632   (eval $ac_try) 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; }; then
22636   ac_cv_sizeof_time_t=`cat conftest.val`
22637 else
22638   echo "$as_me: program exited with status $ac_status" >&5
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 ( exit $ac_status )
22643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
22644 See \`config.log' for more details." >&5
22645 echo "$as_me: error: cannot compute sizeof (time_t), 77
22646 See \`config.log' for more details." >&2;}
22647    { (exit 1); exit 1; }; }
22648 fi
22649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22650 fi
22651 fi
22652 rm -f conftest.val
22653 else
22654   ac_cv_sizeof_time_t=0
22655 fi
22656 fi
22657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
22658 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
22659 cat >>confdefs.h <<_ACEOF
22660 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
22661 _ACEOF
22662
22663
22664
22665 # Check whether --enable-shared or --disable-shared was given.
22666 if test "${enable_shared+set}" = set; then
22667   enableval="$enable_shared"
22668   p=${PACKAGE-default}
22669     case $enableval in
22670     yes) enable_shared=yes ;;
22671     no) enable_shared=no ;;
22672     *)
22673       enable_shared=no
22674       # Look at the argument we got.  We use all the common list separators.
22675       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22676       for pkg in $enableval; do
22677         IFS="$lt_save_ifs"
22678         if test "X$pkg" = "X$p"; then
22679           enable_shared=yes
22680         fi
22681       done
22682       IFS="$lt_save_ifs"
22683       ;;
22684     esac
22685 else
22686   enable_shared=yes
22687 fi;
22688
22689 # Check whether --enable-static or --disable-static was given.
22690 if test "${enable_static+set}" = set; then
22691   enableval="$enable_static"
22692   p=${PACKAGE-default}
22693     case $enableval in
22694     yes) enable_static=yes ;;
22695     no) enable_static=no ;;
22696     *)
22697      enable_static=no
22698       # Look at the argument we got.  We use all the common list separators.
22699       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22700       for pkg in $enableval; do
22701         IFS="$lt_save_ifs"
22702         if test "X$pkg" = "X$p"; then
22703           enable_static=yes
22704         fi
22705       done
22706       IFS="$lt_save_ifs"
22707       ;;
22708     esac
22709 else
22710   enable_static=yes
22711 fi;
22712
22713 # Check whether --enable-fast-install or --disable-fast-install was given.
22714 if test "${enable_fast_install+set}" = set; then
22715   enableval="$enable_fast_install"
22716   p=${PACKAGE-default}
22717     case $enableval in
22718     yes) enable_fast_install=yes ;;
22719     no) enable_fast_install=no ;;
22720     *)
22721       enable_fast_install=no
22722       # Look at the argument we got.  We use all the common list separators.
22723       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22724       for pkg in $enableval; do
22725         IFS="$lt_save_ifs"
22726         if test "X$pkg" = "X$p"; then
22727           enable_fast_install=yes
22728         fi
22729       done
22730       IFS="$lt_save_ifs"
22731       ;;
22732     esac
22733 else
22734   enable_fast_install=yes
22735 fi;
22736
22737 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
22738 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
22739 if test "${lt_cv_path_SED+set}" = set; then
22740   echo $ECHO_N "(cached) $ECHO_C" >&6
22741 else
22742   # Loop through the user's path and test for sed and gsed.
22743 # Then use that list of sed's as ones to test for truncation.
22744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22745 for as_dir in $PATH
22746 do
22747   IFS=$as_save_IFS
22748   test -z "$as_dir" && as_dir=.
22749   for lt_ac_prog in sed gsed; do
22750     for ac_exec_ext in '' $ac_executable_extensions; do
22751       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
22752         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
22753       fi
22754     done
22755   done
22756 done
22757 lt_ac_max=0
22758 lt_ac_count=0
22759 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
22760 # along with /bin/sed that truncates output.
22761 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
22762   test ! -f $lt_ac_sed && continue
22763   cat /dev/null > conftest.in
22764   lt_ac_count=0
22765   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
22766   # Check for GNU sed and select it if it is found.
22767   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
22768     lt_cv_path_SED=$lt_ac_sed
22769     break
22770   fi
22771   while true; do
22772     cat conftest.in conftest.in >conftest.tmp
22773     mv conftest.tmp conftest.in
22774     cp conftest.in conftest.nl
22775     echo >>conftest.nl
22776     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
22777     cmp -s conftest.out conftest.nl || break
22778     # 10000 chars as input seems more than enough
22779     test $lt_ac_count -gt 10 && break
22780     lt_ac_count=`expr $lt_ac_count + 1`
22781     if test $lt_ac_count -gt $lt_ac_max; then
22782       lt_ac_max=$lt_ac_count
22783       lt_cv_path_SED=$lt_ac_sed
22784     fi
22785   done
22786 done
22787
22788 fi
22789
22790 SED=$lt_cv_path_SED
22791 echo "$as_me:$LINENO: result: $SED" >&5
22792 echo "${ECHO_T}$SED" >&6
22793
22794
22795 # Check whether --with-gnu-ld or --without-gnu-ld was given.
22796 if test "${with_gnu_ld+set}" = set; then
22797   withval="$with_gnu_ld"
22798   test "$withval" = no || with_gnu_ld=yes
22799 else
22800   with_gnu_ld=no
22801 fi;
22802 ac_prog=ld
22803 if test "$GCC" = yes; then
22804   # Check if gcc -print-prog-name=ld gives a path.
22805   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
22806 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
22807   case $host in
22808   *-*-mingw*)
22809     # gcc leaves a trailing carriage return which upsets mingw
22810     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22811   *)
22812     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22813   esac
22814   case $ac_prog in
22815     # Accept absolute paths.
22816     [\\/]* | ?:[\\/]*)
22817       re_direlt='/[^/][^/]*/\.\./'
22818       # Canonicalize the pathname of ld
22819       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
22820       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22821         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
22822       done
22823       test -z "$LD" && LD="$ac_prog"
22824       ;;
22825   "")
22826     # If it fails, then pretend we aren't using GCC.
22827     ac_prog=ld
22828     ;;
22829   *)
22830     # If it is relative, then search for the first ld in PATH.
22831     with_gnu_ld=unknown
22832     ;;
22833   esac
22834 elif test "$with_gnu_ld" = yes; then
22835   echo "$as_me:$LINENO: checking for GNU ld" >&5
22836 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22837 else
22838   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22839 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22840 fi
22841 if test "${lt_cv_path_LD+set}" = set; then
22842   echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844   if test -z "$LD"; then
22845   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22846   for ac_dir in $PATH; do
22847     IFS="$lt_save_ifs"
22848     test -z "$ac_dir" && ac_dir=.
22849     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22850       lt_cv_path_LD="$ac_dir/$ac_prog"
22851       # Check to see if the program is GNU ld.  I'd rather use --version,
22852       # but apparently some variants of GNU ld only accept -v.
22853       # Break only if it was the GNU/non-GNU ld that we prefer.
22854       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22855       *GNU* | *'with BFD'*)
22856         test "$with_gnu_ld" != no && break
22857         ;;
22858       *)
22859         test "$with_gnu_ld" != yes && break
22860         ;;
22861       esac
22862     fi
22863   done
22864   IFS="$lt_save_ifs"
22865 else
22866   lt_cv_path_LD="$LD" # Let the user override the test with a path.
22867 fi
22868 fi
22869
22870 LD="$lt_cv_path_LD"
22871 if test -n "$LD"; then
22872   echo "$as_me:$LINENO: result: $LD" >&5
22873 echo "${ECHO_T}$LD" >&6
22874 else
22875   echo "$as_me:$LINENO: result: no" >&5
22876 echo "${ECHO_T}no" >&6
22877 fi
22878 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22879 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22880    { (exit 1); exit 1; }; }
22881 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22882 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22883 if test "${lt_cv_prog_gnu_ld+set}" = set; then
22884   echo $ECHO_N "(cached) $ECHO_C" >&6
22885 else
22886   # I'd rather use --version here, but apparently some GNU lds only accept -v.
22887 case `$LD -v 2>&1 </dev/null` in
22888 *GNU* | *'with BFD'*)
22889   lt_cv_prog_gnu_ld=yes
22890   ;;
22891 *)
22892   lt_cv_prog_gnu_ld=no
22893   ;;
22894 esac
22895 fi
22896 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
22897 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
22898 with_gnu_ld=$lt_cv_prog_gnu_ld
22899
22900
22901 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
22902 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
22903 if test "${lt_cv_ld_reload_flag+set}" = set; then
22904   echo $ECHO_N "(cached) $ECHO_C" >&6
22905 else
22906   lt_cv_ld_reload_flag='-r'
22907 fi
22908 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
22909 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
22910 reload_flag=$lt_cv_ld_reload_flag
22911 case $reload_flag in
22912 "" | " "*) ;;
22913 *) reload_flag=" $reload_flag" ;;
22914 esac
22915 reload_cmds='$LD$reload_flag -o $output$reload_objs'
22916 case $host_os in
22917   darwin*)
22918     if test "$GCC" = yes; then
22919       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
22920     else
22921       reload_cmds='$LD$reload_flag -o $output$reload_objs'
22922     fi
22923     ;;
22924 esac
22925
22926 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
22927 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
22928 if test "${lt_cv_path_NM+set}" = set; then
22929   echo $ECHO_N "(cached) $ECHO_C" >&6
22930 else
22931   if test -n "$NM"; then
22932   # Let the user override the test.
22933   lt_cv_path_NM="$NM"
22934 else
22935   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22936   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
22937     IFS="$lt_save_ifs"
22938     test -z "$ac_dir" && ac_dir=.
22939     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
22940     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
22941       # Check to see if the nm accepts a BSD-compat flag.
22942       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
22943       #   nm: unknown option "B" ignored
22944       # Tru64's nm complains that /dev/null is an invalid object file
22945       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
22946       */dev/null* | *'Invalid file or object type'*)
22947         lt_cv_path_NM="$tmp_nm -B"
22948         break
22949         ;;
22950       *)
22951         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
22952         */dev/null*)
22953           lt_cv_path_NM="$tmp_nm -p"
22954           break
22955           ;;
22956         *)
22957           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
22958           continue # so that we can try to find one that supports BSD flags
22959           ;;
22960         esac
22961       esac
22962     fi
22963   done
22964   IFS="$lt_save_ifs"
22965   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
22966 fi
22967 fi
22968 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
22969 echo "${ECHO_T}$lt_cv_path_NM" >&6
22970 NM="$lt_cv_path_NM"
22971
22972 echo "$as_me:$LINENO: checking whether ln -s works" >&5
22973 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
22974 LN_S=$as_ln_s
22975 if test "$LN_S" = "ln -s"; then
22976   echo "$as_me:$LINENO: result: yes" >&5
22977 echo "${ECHO_T}yes" >&6
22978 else
22979   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
22980 echo "${ECHO_T}no, using $LN_S" >&6
22981 fi
22982
22983 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
22984 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
22985 if test "${lt_cv_deplibs_check_method+set}" = set; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   lt_cv_file_magic_cmd='$MAGIC_CMD'
22989 lt_cv_file_magic_test_file=
22990 lt_cv_deplibs_check_method='unknown'
22991 # Need to set the preceding variable on all platforms that support
22992 # interlibrary dependencies.
22993 # 'none' -- dependencies not supported.
22994 # `unknown' -- same as none, but documents that we really don't know.
22995 # 'pass_all' -- all dependencies passed with no checks.
22996 # 'test_compile' -- check by making test program.
22997 # 'file_magic [[regex]]' -- check by looking for files in library path
22998 # which responds to the $file_magic_cmd with a given extended regex.
22999 # If you have `file' or equivalent on your system and you're not sure
23000 # whether `pass_all' will *always* work, you probably want this one.
23001
23002 case $host_os in
23003 aix4* | aix5*)
23004   lt_cv_deplibs_check_method=pass_all
23005   ;;
23006
23007 beos*)
23008   lt_cv_deplibs_check_method=pass_all
23009   ;;
23010
23011 bsdi[45]*)
23012   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
23013   lt_cv_file_magic_cmd='/usr/bin/file -L'
23014   lt_cv_file_magic_test_file=/shlib/libc.so
23015   ;;
23016
23017 cygwin*)
23018   # func_win32_libid is a shell function defined in ltmain.sh
23019   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
23020   lt_cv_file_magic_cmd='func_win32_libid'
23021   ;;
23022
23023 mingw* | pw32*)
23024   # Base MSYS/MinGW do not provide the 'file' command needed by
23025   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
23026   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
23027   lt_cv_file_magic_cmd='$OBJDUMP -f'
23028   ;;
23029
23030 darwin* | rhapsody*)
23031   lt_cv_deplibs_check_method=pass_all
23032   ;;
23033
23034 freebsd* | kfreebsd*-gnu | dragonfly*)
23035   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
23036     case $host_cpu in
23037     i*86 )
23038       # Not sure whether the presence of OpenBSD here was a mistake.
23039       # Let's accept both of them until this is cleared up.
23040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
23041       lt_cv_file_magic_cmd=/usr/bin/file
23042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
23043       ;;
23044     esac
23045   else
23046     lt_cv_deplibs_check_method=pass_all
23047   fi
23048   ;;
23049
23050 gnu*)
23051   lt_cv_deplibs_check_method=pass_all
23052   ;;
23053
23054 hpux10.20* | hpux11*)
23055   lt_cv_file_magic_cmd=/usr/bin/file
23056   case $host_cpu in
23057   ia64*)
23058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
23059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
23060     ;;
23061   hppa*64*)
23062     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
23063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
23064     ;;
23065   *)
23066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
23067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
23068     ;;
23069   esac
23070   ;;
23071
23072 irix5* | irix6* | nonstopux*)
23073   case $LD in
23074   *-32|*"-32 ") libmagic=32-bit;;
23075   *-n32|*"-n32 ") libmagic=N32;;
23076   *-64|*"-64 ") libmagic=64-bit;;
23077   *) libmagic=never-match;;
23078   esac
23079   lt_cv_deplibs_check_method=pass_all
23080   ;;
23081
23082 # This must be Linux ELF.
23083 linux*)
23084   lt_cv_deplibs_check_method=pass_all
23085   ;;
23086
23087 netbsd*)
23088   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
23089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
23090   else
23091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
23092   fi
23093   ;;
23094
23095 newos6*)
23096   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
23097   lt_cv_file_magic_cmd=/usr/bin/file
23098   lt_cv_file_magic_test_file=/usr/lib/libnls.so
23099   ;;
23100
23101 nto-qnx*)
23102   lt_cv_deplibs_check_method=unknown
23103   ;;
23104
23105 openbsd*)
23106   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23107     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
23108   else
23109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
23110   fi
23111   ;;
23112
23113 osf3* | osf4* | osf5*)
23114   lt_cv_deplibs_check_method=pass_all
23115   ;;
23116
23117 sco3.2v5*)
23118   lt_cv_deplibs_check_method=pass_all
23119   ;;
23120
23121 solaris*)
23122   lt_cv_deplibs_check_method=pass_all
23123   ;;
23124
23125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
23126   case $host_vendor in
23127   motorola)
23128     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]'
23129     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
23130     ;;
23131   ncr)
23132     lt_cv_deplibs_check_method=pass_all
23133     ;;
23134   sequent)
23135     lt_cv_file_magic_cmd='/bin/file'
23136     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
23137     ;;
23138   sni)
23139     lt_cv_file_magic_cmd='/bin/file'
23140     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
23141     lt_cv_file_magic_test_file=/lib/libc.so
23142     ;;
23143   siemens)
23144     lt_cv_deplibs_check_method=pass_all
23145     ;;
23146   esac
23147   ;;
23148
23149 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
23150   lt_cv_deplibs_check_method=pass_all
23151   ;;
23152 esac
23153
23154 fi
23155 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
23156 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
23157 file_magic_cmd=$lt_cv_file_magic_cmd
23158 deplibs_check_method=$lt_cv_deplibs_check_method
23159 test -z "$deplibs_check_method" && deplibs_check_method=unknown
23160
23161
23162 # If no C compiler was specified, use CC.
23163 LTCC=${LTCC-"$CC"}
23164
23165 # Allow CC to be a program name with arguments.
23166 compiler=$CC
23167
23168 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
23169 if test "${enable_libtool_lock+set}" = set; then
23170   enableval="$enable_libtool_lock"
23171
23172 fi;
23173 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
23174
23175 # Some flags need to be propagated to the compiler or linker for good
23176 # libtool support.
23177 case $host in
23178 ia64-*-hpux*)
23179   # Find out which ABI we are using.
23180   echo 'int i;' > conftest.$ac_ext
23181   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23182   (eval $ac_compile) 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); }; then
23186     case `/usr/bin/file conftest.$ac_objext` in
23187     *ELF-32*)
23188       HPUX_IA64_MODE="32"
23189       ;;
23190     *ELF-64*)
23191       HPUX_IA64_MODE="64"
23192       ;;
23193     esac
23194   fi
23195   rm -rf conftest*
23196   ;;
23197 *-*-irix6*)
23198   # Find out which ABI we are using.
23199   echo '#line 23199 "configure"' > conftest.$ac_ext
23200   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23201   (eval $ac_compile) 2>&5
23202   ac_status=$?
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); }; then
23205    if test "$lt_cv_prog_gnu_ld" = yes; then
23206     case `/usr/bin/file conftest.$ac_objext` in
23207     *32-bit*)
23208       LD="${LD-ld} -melf32bsmip"
23209       ;;
23210     *N32*)
23211       LD="${LD-ld} -melf32bmipn32"
23212       ;;
23213     *64-bit*)
23214       LD="${LD-ld} -melf64bmip"
23215       ;;
23216     esac
23217    else
23218     case `/usr/bin/file conftest.$ac_objext` in
23219     *32-bit*)
23220       LD="${LD-ld} -32"
23221       ;;
23222     *N32*)
23223       LD="${LD-ld} -n32"
23224       ;;
23225     *64-bit*)
23226       LD="${LD-ld} -64"
23227       ;;
23228     esac
23229    fi
23230   fi
23231   rm -rf conftest*
23232   ;;
23233
23234 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
23235   # Find out which ABI we are using.
23236   echo 'int i;' > conftest.$ac_ext
23237   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23238   (eval $ac_compile) 2>&5
23239   ac_status=$?
23240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241   (exit $ac_status); }; then
23242     case `/usr/bin/file conftest.o` in
23243     *32-bit*)
23244       case $host in
23245         x86_64-*linux*)
23246           LD="${LD-ld} -m elf_i386"
23247           ;;
23248         ppc64-*linux*|powerpc64-*linux*)
23249           LD="${LD-ld} -m elf32ppclinux"
23250           ;;
23251         s390x-*linux*)
23252           LD="${LD-ld} -m elf_s390"
23253           ;;
23254         sparc64-*linux*)
23255           LD="${LD-ld} -m elf32_sparc"
23256           ;;
23257       esac
23258       ;;
23259     *64-bit*)
23260       case $host in
23261         x86_64-*linux*)
23262           LD="${LD-ld} -m elf_x86_64"
23263           ;;
23264         ppc*-*linux*|powerpc*-*linux*)
23265           LD="${LD-ld} -m elf64ppc"
23266           ;;
23267         s390*-*linux*)
23268           LD="${LD-ld} -m elf64_s390"
23269           ;;
23270         sparc*-*linux*)
23271           LD="${LD-ld} -m elf64_sparc"
23272           ;;
23273       esac
23274       ;;
23275     esac
23276   fi
23277   rm -rf conftest*
23278   ;;
23279
23280 *-*-sco3.2v5*)
23281   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
23282   SAVE_CFLAGS="$CFLAGS"
23283   CFLAGS="$CFLAGS -belf"
23284   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
23285 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
23286 if test "${lt_cv_cc_needs_belf+set}" = set; then
23287   echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289   ac_ext=c
23290 ac_cpp='$CPP $CPPFLAGS'
23291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23294
23295      cat >conftest.$ac_ext <<_ACEOF
23296 /* confdefs.h.  */
23297 _ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h.  */
23301
23302 int
23303 main ()
23304 {
23305
23306   ;
23307   return 0;
23308 }
23309 _ACEOF
23310 rm -f conftest.$ac_objext conftest$ac_exeext
23311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23312   (eval $ac_link) 2>conftest.er1
23313   ac_status=$?
23314   grep -v '^ *+' conftest.er1 >conftest.err
23315   rm -f conftest.er1
23316   cat conftest.err >&5
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); } &&
23319          { ac_try='test -z "$ac_c_werror_flag"
23320                          || test ! -s conftest.err'
23321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23322   (eval $ac_try) 2>&5
23323   ac_status=$?
23324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325   (exit $ac_status); }; } &&
23326          { ac_try='test -s conftest$ac_exeext'
23327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328   (eval $ac_try) 2>&5
23329   ac_status=$?
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); }; }; then
23332   lt_cv_cc_needs_belf=yes
23333 else
23334   echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337 lt_cv_cc_needs_belf=no
23338 fi
23339 rm -f conftest.err conftest.$ac_objext \
23340       conftest$ac_exeext conftest.$ac_ext
23341      ac_ext=c
23342 ac_cpp='$CPP $CPPFLAGS'
23343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23346
23347 fi
23348 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
23349 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
23350   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
23351     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
23352     CFLAGS="$SAVE_CFLAGS"
23353   fi
23354   ;;
23355
23356 esac
23357
23358 need_locks="$enable_libtool_lock"
23359
23360
23361
23362 for ac_header in dlfcn.h
23363 do
23364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23366   echo "$as_me:$LINENO: checking for $ac_header" >&5
23367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23369   echo $ECHO_N "(cached) $ECHO_C" >&6
23370 fi
23371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23373 else
23374   # Is the header compilable?
23375 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23376 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23377 cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 $ac_includes_default
23384 #include <$ac_header>
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23388   (eval $ac_compile) 2>conftest.er1
23389   ac_status=$?
23390   grep -v '^ *+' conftest.er1 >conftest.err
23391   rm -f conftest.er1
23392   cat conftest.err >&5
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); } &&
23395          { ac_try='test -z "$ac_c_werror_flag"
23396                          || test ! -s conftest.err'
23397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398   (eval $ac_try) 2>&5
23399   ac_status=$?
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); }; } &&
23402          { ac_try='test -s conftest.$ac_objext'
23403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404   (eval $ac_try) 2>&5
23405   ac_status=$?
23406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407   (exit $ac_status); }; }; then
23408   ac_header_compiler=yes
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413 ac_header_compiler=no
23414 fi
23415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23416 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23417 echo "${ECHO_T}$ac_header_compiler" >&6
23418
23419 # Is the header present?
23420 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23421 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23422 cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428 #include <$ac_header>
23429 _ACEOF
23430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23432   ac_status=$?
23433   grep -v '^ *+' conftest.er1 >conftest.err
23434   rm -f conftest.er1
23435   cat conftest.err >&5
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); } >/dev/null; then
23438   if test -s conftest.err; then
23439     ac_cpp_err=$ac_c_preproc_warn_flag
23440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23441   else
23442     ac_cpp_err=
23443   fi
23444 else
23445   ac_cpp_err=yes
23446 fi
23447 if test -z "$ac_cpp_err"; then
23448   ac_header_preproc=yes
23449 else
23450   echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453   ac_header_preproc=no
23454 fi
23455 rm -f conftest.err conftest.$ac_ext
23456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23457 echo "${ECHO_T}$ac_header_preproc" >&6
23458
23459 # So?  What about this header?
23460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23461   yes:no: )
23462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23466     ac_header_preproc=yes
23467     ;;
23468   no:yes:* )
23469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481     (
23482       cat <<\_ASBOX
23483 ## ------------------------------------------ ##
23484 ## Report this to the AC_PACKAGE_NAME lists.  ##
23485 ## ------------------------------------------ ##
23486 _ASBOX
23487     ) |
23488       sed "s/^/$as_me: WARNING:     /" >&2
23489     ;;
23490 esac
23491 echo "$as_me:$LINENO: checking for $ac_header" >&5
23492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23494   echo $ECHO_N "(cached) $ECHO_C" >&6
23495 else
23496   eval "$as_ac_Header=\$ac_header_preproc"
23497 fi
23498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23500
23501 fi
23502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23503   cat >>confdefs.h <<_ACEOF
23504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23505 _ACEOF
23506
23507 fi
23508
23509 done
23510
23511 ac_ext=cc
23512 ac_cpp='$CXXCPP $CPPFLAGS'
23513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23516 if test -n "$ac_tool_prefix"; then
23517   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
23518   do
23519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23521 echo "$as_me:$LINENO: checking for $ac_word" >&5
23522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23523 if test "${ac_cv_prog_CXX+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526   if test -n "$CXX"; then
23527   ac_cv_prog_CXX="$CXX" # Let the user override the test.
23528 else
23529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23530 for as_dir in $PATH
23531 do
23532   IFS=$as_save_IFS
23533   test -z "$as_dir" && as_dir=.
23534   for ac_exec_ext in '' $ac_executable_extensions; do
23535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23536     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23538     break 2
23539   fi
23540 done
23541 done
23542
23543 fi
23544 fi
23545 CXX=$ac_cv_prog_CXX
23546 if test -n "$CXX"; then
23547   echo "$as_me:$LINENO: result: $CXX" >&5
23548 echo "${ECHO_T}$CXX" >&6
23549 else
23550   echo "$as_me:$LINENO: result: no" >&5
23551 echo "${ECHO_T}no" >&6
23552 fi
23553
23554     test -n "$CXX" && break
23555   done
23556 fi
23557 if test -z "$CXX"; then
23558   ac_ct_CXX=$CXX
23559   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
23560 do
23561   # Extract the first word of "$ac_prog", so it can be a program name with args.
23562 set dummy $ac_prog; ac_word=$2
23563 echo "$as_me:$LINENO: checking for $ac_word" >&5
23564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23565 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
23566   echo $ECHO_N "(cached) $ECHO_C" >&6
23567 else
23568   if test -n "$ac_ct_CXX"; then
23569   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23570 else
23571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23572 for as_dir in $PATH
23573 do
23574   IFS=$as_save_IFS
23575   test -z "$as_dir" && as_dir=.
23576   for ac_exec_ext in '' $ac_executable_extensions; do
23577   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23578     ac_cv_prog_ac_ct_CXX="$ac_prog"
23579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23580     break 2
23581   fi
23582 done
23583 done
23584
23585 fi
23586 fi
23587 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23588 if test -n "$ac_ct_CXX"; then
23589   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
23590 echo "${ECHO_T}$ac_ct_CXX" >&6
23591 else
23592   echo "$as_me:$LINENO: result: no" >&5
23593 echo "${ECHO_T}no" >&6
23594 fi
23595
23596   test -n "$ac_ct_CXX" && break
23597 done
23598 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
23599
23600   CXX=$ac_ct_CXX
23601 fi
23602
23603
23604 # Provide some information about the compiler.
23605 echo "$as_me:$LINENO:" \
23606      "checking for C++ compiler version" >&5
23607 ac_compiler=`set X $ac_compile; echo $2`
23608 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
23609   (eval $ac_compiler --version </dev/null >&5) 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }
23613 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
23614   (eval $ac_compiler -v </dev/null >&5) 2>&5
23615   ac_status=$?
23616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617   (exit $ac_status); }
23618 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
23619   (eval $ac_compiler -V </dev/null >&5) 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }
23623
23624 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
23625 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
23626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
23627   echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629   cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635
23636 int
23637 main ()
23638 {
23639 #ifndef __GNUC__
23640        choke me
23641 #endif
23642
23643   ;
23644   return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23649   (eval $ac_compile) 2>conftest.er1
23650   ac_status=$?
23651   grep -v '^ *+' conftest.er1 >conftest.err
23652   rm -f conftest.er1
23653   cat conftest.err >&5
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } &&
23656          { ac_try='test -z "$ac_cxx_werror_flag"
23657                          || test ! -s conftest.err'
23658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659   (eval $ac_try) 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); }; } &&
23663          { ac_try='test -s conftest.$ac_objext'
23664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665   (eval $ac_try) 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); }; }; then
23669   ac_compiler_gnu=yes
23670 else
23671   echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23673
23674 ac_compiler_gnu=no
23675 fi
23676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23677 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23678
23679 fi
23680 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
23681 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
23682 GXX=`test $ac_compiler_gnu = yes && echo yes`
23683 ac_test_CXXFLAGS=${CXXFLAGS+set}
23684 ac_save_CXXFLAGS=$CXXFLAGS
23685 CXXFLAGS="-g"
23686 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
23687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
23688 if test "${ac_cv_prog_cxx_g+set}" = set; then
23689   echo $ECHO_N "(cached) $ECHO_C" >&6
23690 else
23691   cat >conftest.$ac_ext <<_ACEOF
23692 /* confdefs.h.  */
23693 _ACEOF
23694 cat confdefs.h >>conftest.$ac_ext
23695 cat >>conftest.$ac_ext <<_ACEOF
23696 /* end confdefs.h.  */
23697
23698 int
23699 main ()
23700 {
23701
23702   ;
23703   return 0;
23704 }
23705 _ACEOF
23706 rm -f conftest.$ac_objext
23707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23708   (eval $ac_compile) 2>conftest.er1
23709   ac_status=$?
23710   grep -v '^ *+' conftest.er1 >conftest.err
23711   rm -f conftest.er1
23712   cat conftest.err >&5
23713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714   (exit $ac_status); } &&
23715          { ac_try='test -z "$ac_cxx_werror_flag"
23716                          || test ! -s conftest.err'
23717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718   (eval $ac_try) 2>&5
23719   ac_status=$?
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); }; } &&
23722          { ac_try='test -s conftest.$ac_objext'
23723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724   (eval $ac_try) 2>&5
23725   ac_status=$?
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); }; }; then
23728   ac_cv_prog_cxx_g=yes
23729 else
23730   echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.$ac_ext >&5
23732
23733 ac_cv_prog_cxx_g=no
23734 fi
23735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23736 fi
23737 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
23738 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
23739 if test "$ac_test_CXXFLAGS" = set; then
23740   CXXFLAGS=$ac_save_CXXFLAGS
23741 elif test $ac_cv_prog_cxx_g = yes; then
23742   if test "$GXX" = yes; then
23743     CXXFLAGS="-g -O2"
23744   else
23745     CXXFLAGS="-g"
23746   fi
23747 else
23748   if test "$GXX" = yes; then
23749     CXXFLAGS="-O2"
23750   else
23751     CXXFLAGS=
23752   fi
23753 fi
23754 for ac_declaration in \
23755    '' \
23756    'extern "C" void std::exit (int) throw (); using std::exit;' \
23757    'extern "C" void std::exit (int); using std::exit;' \
23758    'extern "C" void exit (int) throw ();' \
23759    'extern "C" void exit (int);' \
23760    'void exit (int);'
23761 do
23762   cat >conftest.$ac_ext <<_ACEOF
23763 /* confdefs.h.  */
23764 _ACEOF
23765 cat confdefs.h >>conftest.$ac_ext
23766 cat >>conftest.$ac_ext <<_ACEOF
23767 /* end confdefs.h.  */
23768 $ac_declaration
23769 #include <stdlib.h>
23770 int
23771 main ()
23772 {
23773 exit (42);
23774   ;
23775   return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23780   (eval $ac_compile) 2>conftest.er1
23781   ac_status=$?
23782   grep -v '^ *+' conftest.er1 >conftest.err
23783   rm -f conftest.er1
23784   cat conftest.err >&5
23785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786   (exit $ac_status); } &&
23787          { ac_try='test -z "$ac_cxx_werror_flag"
23788                          || test ! -s conftest.err'
23789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790   (eval $ac_try) 2>&5
23791   ac_status=$?
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); }; } &&
23794          { ac_try='test -s conftest.$ac_objext'
23795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796   (eval $ac_try) 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; }; then
23800   :
23801 else
23802   echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805 continue
23806 fi
23807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23808   cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 $ac_declaration
23815 int
23816 main ()
23817 {
23818 exit (42);
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext
23824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23825   (eval $ac_compile) 2>conftest.er1
23826   ac_status=$?
23827   grep -v '^ *+' conftest.er1 >conftest.err
23828   rm -f conftest.er1
23829   cat conftest.err >&5
23830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831   (exit $ac_status); } &&
23832          { ac_try='test -z "$ac_cxx_werror_flag"
23833                          || test ! -s conftest.err'
23834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835   (eval $ac_try) 2>&5
23836   ac_status=$?
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); }; } &&
23839          { ac_try='test -s conftest.$ac_objext'
23840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841   (eval $ac_try) 2>&5
23842   ac_status=$?
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); }; }; then
23845   break
23846 else
23847   echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850 fi
23851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23852 done
23853 rm -f conftest*
23854 if test -n "$ac_declaration"; then
23855   echo '#ifdef __cplusplus' >>confdefs.h
23856   echo $ac_declaration      >>confdefs.h
23857   echo '#endif'             >>confdefs.h
23858 fi
23859
23860 ac_ext=cc
23861 ac_cpp='$CXXCPP $CPPFLAGS'
23862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23865
23866 depcc="$CXX"  am_compiler_list=
23867
23868 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
23869 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
23870 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
23871   echo $ECHO_N "(cached) $ECHO_C" >&6
23872 else
23873   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23874   # We make a subdir and do the tests there.  Otherwise we can end up
23875   # making bogus files that we don't know about and never remove.  For
23876   # instance it was reported that on HP-UX the gcc test will end up
23877   # making a dummy file named `D' -- because `-MD' means `put the output
23878   # in D'.
23879   mkdir conftest.dir
23880   # Copy depcomp to subdir because otherwise we won't find it if we're
23881   # using a relative directory.
23882   cp "$am_depcomp" conftest.dir
23883   cd conftest.dir
23884   # We will build objects and dependencies in a subdirectory because
23885   # it helps to detect inapplicable dependency modes.  For instance
23886   # both Tru64's cc and ICC support -MD to output dependencies as a
23887   # side effect of compilation, but ICC will put the dependencies in
23888   # the current directory while Tru64 will put them in the object
23889   # directory.
23890   mkdir sub
23891
23892   am_cv_CXX_dependencies_compiler_type=none
23893   if test "$am_compiler_list" = ""; then
23894      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23895   fi
23896   for depmode in $am_compiler_list; do
23897     # Setup a source with many dependencies, because some compilers
23898     # like to wrap large dependency lists on column 80 (with \), and
23899     # we should not choose a depcomp mode which is confused by this.
23900     #
23901     # We need to recreate these files for each test, as the compiler may
23902     # overwrite some of them when testing with obscure command lines.
23903     # This happens at least with the AIX C compiler.
23904     : > sub/conftest.c
23905     for i in 1 2 3 4 5 6; do
23906       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23907       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23908       # Solaris 8's {/usr,}/bin/sh.
23909       touch sub/conftst$i.h
23910     done
23911     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23912
23913     case $depmode in
23914     nosideeffect)
23915       # after this tag, mechanisms are not by side-effect, so they'll
23916       # only be used when explicitly requested
23917       if test "x$enable_dependency_tracking" = xyes; then
23918         continue
23919       else
23920         break
23921       fi
23922       ;;
23923     none) break ;;
23924     esac
23925     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23926     # mode.  It turns out that the SunPro C++ compiler does not properly
23927     # handle `-M -o', and we need to detect this.
23928     if depmode=$depmode \
23929        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
23930        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23931        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
23932          >/dev/null 2>conftest.err &&
23933        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23934        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
23935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23936       # icc doesn't choke on unknown options, it will just issue warnings
23937       # or remarks (even with -Werror).  So we grep stderr for any message
23938       # that says an option was ignored or not supported.
23939       # When given -MP, icc 7.0 and 7.1 complain thusly:
23940       #   icc: Command line warning: ignoring option '-M'; no argument required
23941       # The diagnosis changed in icc 8.0:
23942       #   icc: Command line remark: option '-MP' not supported
23943       if (grep 'ignoring option' conftest.err ||
23944           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23945         am_cv_CXX_dependencies_compiler_type=$depmode
23946         break
23947       fi
23948     fi
23949   done
23950
23951   cd ..
23952   rm -rf conftest.dir
23953 else
23954   am_cv_CXX_dependencies_compiler_type=none
23955 fi
23956
23957 fi
23958 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
23959 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
23960 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23961
23962
23963
23964 if
23965   test "x$enable_dependency_tracking" != xno \
23966   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23967   am__fastdepCXX_TRUE=
23968   am__fastdepCXX_FALSE='#'
23969 else
23970   am__fastdepCXX_TRUE='#'
23971   am__fastdepCXX_FALSE=
23972 fi
23973
23974
23975
23976
23977 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
23978     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
23979     (test "X$CXX" != "Xg++"))) ; then
23980   ac_ext=cc
23981 ac_cpp='$CXXCPP $CPPFLAGS'
23982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23985 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
23986 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
23987 if test -z "$CXXCPP"; then
23988   if test "${ac_cv_prog_CXXCPP+set}" = set; then
23989   echo $ECHO_N "(cached) $ECHO_C" >&6
23990 else
23991       # Double quotes because CXXCPP needs to be expanded
23992     for CXXCPP in "$CXX -E" "/lib/cpp"
23993     do
23994       ac_preproc_ok=false
23995 for ac_cxx_preproc_warn_flag in '' yes
23996 do
23997   # Use a header file that comes with gcc, so configuring glibc
23998   # with a fresh cross-compiler works.
23999   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24000   # <limits.h> exists even on freestanding compilers.
24001   # On the NeXT, cc -E runs the code through the compiler's parser,
24002   # not just through cpp. "Syntax error" is here to catch this case.
24003   cat >conftest.$ac_ext <<_ACEOF
24004 /* confdefs.h.  */
24005 _ACEOF
24006 cat confdefs.h >>conftest.$ac_ext
24007 cat >>conftest.$ac_ext <<_ACEOF
24008 /* end confdefs.h.  */
24009 #ifdef __STDC__
24010 # include <limits.h>
24011 #else
24012 # include <assert.h>
24013 #endif
24014                      Syntax error
24015 _ACEOF
24016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24018   ac_status=$?
24019   grep -v '^ *+' conftest.er1 >conftest.err
24020   rm -f conftest.er1
24021   cat conftest.err >&5
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); } >/dev/null; then
24024   if test -s conftest.err; then
24025     ac_cpp_err=$ac_cxx_preproc_warn_flag
24026     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24027   else
24028     ac_cpp_err=
24029   fi
24030 else
24031   ac_cpp_err=yes
24032 fi
24033 if test -z "$ac_cpp_err"; then
24034   :
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039   # Broken: fails on valid input.
24040 continue
24041 fi
24042 rm -f conftest.err conftest.$ac_ext
24043
24044   # OK, works on sane cases.  Now check whether non-existent headers
24045   # can be detected and how.
24046   cat >conftest.$ac_ext <<_ACEOF
24047 /* confdefs.h.  */
24048 _ACEOF
24049 cat confdefs.h >>conftest.$ac_ext
24050 cat >>conftest.$ac_ext <<_ACEOF
24051 /* end confdefs.h.  */
24052 #include <ac_nonexistent.h>
24053 _ACEOF
24054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24056   ac_status=$?
24057   grep -v '^ *+' conftest.er1 >conftest.err
24058   rm -f conftest.er1
24059   cat conftest.err >&5
24060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24061   (exit $ac_status); } >/dev/null; then
24062   if test -s conftest.err; then
24063     ac_cpp_err=$ac_cxx_preproc_warn_flag
24064     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24065   else
24066     ac_cpp_err=
24067   fi
24068 else
24069   ac_cpp_err=yes
24070 fi
24071 if test -z "$ac_cpp_err"; then
24072   # Broken: success on invalid input.
24073 continue
24074 else
24075   echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24077
24078   # Passes both tests.
24079 ac_preproc_ok=:
24080 break
24081 fi
24082 rm -f conftest.err conftest.$ac_ext
24083
24084 done
24085 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24086 rm -f conftest.err conftest.$ac_ext
24087 if $ac_preproc_ok; then
24088   break
24089 fi
24090
24091     done
24092     ac_cv_prog_CXXCPP=$CXXCPP
24093
24094 fi
24095   CXXCPP=$ac_cv_prog_CXXCPP
24096 else
24097   ac_cv_prog_CXXCPP=$CXXCPP
24098 fi
24099 echo "$as_me:$LINENO: result: $CXXCPP" >&5
24100 echo "${ECHO_T}$CXXCPP" >&6
24101 ac_preproc_ok=false
24102 for ac_cxx_preproc_warn_flag in '' yes
24103 do
24104   # Use a header file that comes with gcc, so configuring glibc
24105   # with a fresh cross-compiler works.
24106   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24107   # <limits.h> exists even on freestanding compilers.
24108   # On the NeXT, cc -E runs the code through the compiler's parser,
24109   # not just through cpp. "Syntax error" is here to catch this case.
24110   cat >conftest.$ac_ext <<_ACEOF
24111 /* confdefs.h.  */
24112 _ACEOF
24113 cat confdefs.h >>conftest.$ac_ext
24114 cat >>conftest.$ac_ext <<_ACEOF
24115 /* end confdefs.h.  */
24116 #ifdef __STDC__
24117 # include <limits.h>
24118 #else
24119 # include <assert.h>
24120 #endif
24121                      Syntax error
24122 _ACEOF
24123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24124   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } >/dev/null; then
24131   if test -s conftest.err; then
24132     ac_cpp_err=$ac_cxx_preproc_warn_flag
24133     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24134   else
24135     ac_cpp_err=
24136   fi
24137 else
24138   ac_cpp_err=yes
24139 fi
24140 if test -z "$ac_cpp_err"; then
24141   :
24142 else
24143   echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146   # Broken: fails on valid input.
24147 continue
24148 fi
24149 rm -f conftest.err conftest.$ac_ext
24150
24151   # OK, works on sane cases.  Now check whether non-existent headers
24152   # can be detected and how.
24153   cat >conftest.$ac_ext <<_ACEOF
24154 /* confdefs.h.  */
24155 _ACEOF
24156 cat confdefs.h >>conftest.$ac_ext
24157 cat >>conftest.$ac_ext <<_ACEOF
24158 /* end confdefs.h.  */
24159 #include <ac_nonexistent.h>
24160 _ACEOF
24161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24163   ac_status=$?
24164   grep -v '^ *+' conftest.er1 >conftest.err
24165   rm -f conftest.er1
24166   cat conftest.err >&5
24167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24168   (exit $ac_status); } >/dev/null; then
24169   if test -s conftest.err; then
24170     ac_cpp_err=$ac_cxx_preproc_warn_flag
24171     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24172   else
24173     ac_cpp_err=
24174   fi
24175 else
24176   ac_cpp_err=yes
24177 fi
24178 if test -z "$ac_cpp_err"; then
24179   # Broken: success on invalid input.
24180 continue
24181 else
24182   echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185   # Passes both tests.
24186 ac_preproc_ok=:
24187 break
24188 fi
24189 rm -f conftest.err conftest.$ac_ext
24190
24191 done
24192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24193 rm -f conftest.err conftest.$ac_ext
24194 if $ac_preproc_ok; then
24195   :
24196 else
24197   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
24198 See \`config.log' for more details." >&5
24199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
24200 See \`config.log' for more details." >&2;}
24201    { (exit 1); exit 1; }; }
24202 fi
24203
24204 ac_ext=cc
24205 ac_cpp='$CXXCPP $CPPFLAGS'
24206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24209
24210 fi
24211
24212
24213 ac_ext=f
24214 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24215 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24216 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24217 if test -n "$ac_tool_prefix"; then
24218   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
24219   do
24220     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24221 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24222 echo "$as_me:$LINENO: checking for $ac_word" >&5
24223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24224 if test "${ac_cv_prog_F77+set}" = set; then
24225   echo $ECHO_N "(cached) $ECHO_C" >&6
24226 else
24227   if test -n "$F77"; then
24228   ac_cv_prog_F77="$F77" # Let the user override the test.
24229 else
24230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24231 for as_dir in $PATH
24232 do
24233   IFS=$as_save_IFS
24234   test -z "$as_dir" && as_dir=.
24235   for ac_exec_ext in '' $ac_executable_extensions; do
24236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24237     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24239     break 2
24240   fi
24241 done
24242 done
24243
24244 fi
24245 fi
24246 F77=$ac_cv_prog_F77
24247 if test -n "$F77"; then
24248   echo "$as_me:$LINENO: result: $F77" >&5
24249 echo "${ECHO_T}$F77" >&6
24250 else
24251   echo "$as_me:$LINENO: result: no" >&5
24252 echo "${ECHO_T}no" >&6
24253 fi
24254
24255     test -n "$F77" && break
24256   done
24257 fi
24258 if test -z "$F77"; then
24259   ac_ct_F77=$F77
24260   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
24261 do
24262   # Extract the first word of "$ac_prog", so it can be a program name with args.
24263 set dummy $ac_prog; ac_word=$2
24264 echo "$as_me:$LINENO: checking for $ac_word" >&5
24265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24266 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24267   echo $ECHO_N "(cached) $ECHO_C" >&6
24268 else
24269   if test -n "$ac_ct_F77"; then
24270   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24271 else
24272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24273 for as_dir in $PATH
24274 do
24275   IFS=$as_save_IFS
24276   test -z "$as_dir" && as_dir=.
24277   for ac_exec_ext in '' $ac_executable_extensions; do
24278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24279     ac_cv_prog_ac_ct_F77="$ac_prog"
24280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24281     break 2
24282   fi
24283 done
24284 done
24285
24286 fi
24287 fi
24288 ac_ct_F77=$ac_cv_prog_ac_ct_F77
24289 if test -n "$ac_ct_F77"; then
24290   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24291 echo "${ECHO_T}$ac_ct_F77" >&6
24292 else
24293   echo "$as_me:$LINENO: result: no" >&5
24294 echo "${ECHO_T}no" >&6
24295 fi
24296
24297   test -n "$ac_ct_F77" && break
24298 done
24299
24300   F77=$ac_ct_F77
24301 fi
24302
24303
24304 # Provide some information about the compiler.
24305 echo "$as_me:24305:" \
24306      "checking for Fortran 77 compiler version" >&5
24307 ac_compiler=`set X $ac_compile; echo $2`
24308 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
24309   (eval $ac_compiler --version </dev/null >&5) 2>&5
24310   ac_status=$?
24311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312   (exit $ac_status); }
24313 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
24314   (eval $ac_compiler -v </dev/null >&5) 2>&5
24315   ac_status=$?
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); }
24318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
24319   (eval $ac_compiler -V </dev/null >&5) 2>&5
24320   ac_status=$?
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); }
24323 rm -f a.out
24324
24325 # If we don't use `.F' as extension, the preprocessor is not run on the
24326 # input file.  (Note that this only needs to work for GNU compilers.)
24327 ac_save_ext=$ac_ext
24328 ac_ext=F
24329 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
24330 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
24331 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
24332   echo $ECHO_N "(cached) $ECHO_C" >&6
24333 else
24334   cat >conftest.$ac_ext <<_ACEOF
24335       program main
24336 #ifndef __GNUC__
24337        choke me
24338 #endif
24339
24340       end
24341 _ACEOF
24342 rm -f conftest.$ac_objext
24343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24344   (eval $ac_compile) 2>conftest.er1
24345   ac_status=$?
24346   grep -v '^ *+' conftest.er1 >conftest.err
24347   rm -f conftest.er1
24348   cat conftest.err >&5
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); } &&
24351          { ac_try='test -z "$ac_f77_werror_flag"
24352                          || test ! -s conftest.err'
24353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354   (eval $ac_try) 2>&5
24355   ac_status=$?
24356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357   (exit $ac_status); }; } &&
24358          { ac_try='test -s conftest.$ac_objext'
24359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360   (eval $ac_try) 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); }; }; then
24364   ac_compiler_gnu=yes
24365 else
24366   echo "$as_me: failed program was:" >&5
24367 sed 's/^/| /' conftest.$ac_ext >&5
24368
24369 ac_compiler_gnu=no
24370 fi
24371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24372 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
24373
24374 fi
24375 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
24376 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
24377 ac_ext=$ac_save_ext
24378 ac_test_FFLAGS=${FFLAGS+set}
24379 ac_save_FFLAGS=$FFLAGS
24380 FFLAGS=
24381 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
24382 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
24383 if test "${ac_cv_prog_f77_g+set}" = set; then
24384   echo $ECHO_N "(cached) $ECHO_C" >&6
24385 else
24386   FFLAGS=-g
24387 cat >conftest.$ac_ext <<_ACEOF
24388       program main
24389
24390       end
24391 _ACEOF
24392 rm -f conftest.$ac_objext
24393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394   (eval $ac_compile) 2>conftest.er1
24395   ac_status=$?
24396   grep -v '^ *+' conftest.er1 >conftest.err
24397   rm -f conftest.er1
24398   cat conftest.err >&5
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); } &&
24401          { ac_try='test -z "$ac_f77_werror_flag"
24402                          || test ! -s conftest.err'
24403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404   (eval $ac_try) 2>&5
24405   ac_status=$?
24406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407   (exit $ac_status); }; } &&
24408          { ac_try='test -s conftest.$ac_objext'
24409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410   (eval $ac_try) 2>&5
24411   ac_status=$?
24412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413   (exit $ac_status); }; }; then
24414   ac_cv_prog_f77_g=yes
24415 else
24416   echo "$as_me: failed program was:" >&5
24417 sed 's/^/| /' conftest.$ac_ext >&5
24418
24419 ac_cv_prog_f77_g=no
24420 fi
24421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24422
24423 fi
24424 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
24425 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
24426 if test "$ac_test_FFLAGS" = set; then
24427   FFLAGS=$ac_save_FFLAGS
24428 elif test $ac_cv_prog_f77_g = yes; then
24429   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
24430     FFLAGS="-g -O2"
24431   else
24432     FFLAGS="-g"
24433   fi
24434 else
24435   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
24436     FFLAGS="-O2"
24437   else
24438     FFLAGS=
24439   fi
24440 fi
24441
24442 G77=`test $ac_compiler_gnu = yes && echo yes`
24443 ac_ext=c
24444 ac_cpp='$CPP $CPPFLAGS'
24445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24448
24449
24450
24451 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
24452
24453 # find the maximum length of command line arguments
24454 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
24455 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
24456 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
24457   echo $ECHO_N "(cached) $ECHO_C" >&6
24458 else
24459     i=0
24460   teststring="ABCD"
24461
24462   case $build_os in
24463   msdosdjgpp*)
24464     # On DJGPP, this test can blow up pretty badly due to problems in libc
24465     # (any single argument exceeding 2000 bytes causes a buffer overrun
24466     # during glob expansion).  Even if it were fixed, the result of this
24467     # check would be larger than it should be.
24468     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
24469     ;;
24470
24471   gnu*)
24472     # Under GNU Hurd, this test is not required because there is
24473     # no limit to the length of command line arguments.
24474     # Libtool will interpret -1 as no limit whatsoever
24475     lt_cv_sys_max_cmd_len=-1;
24476     ;;
24477
24478   cygwin* | mingw*)
24479     # On Win9x/ME, this test blows up -- it succeeds, but takes
24480     # about 5 minutes as the teststring grows exponentially.
24481     # Worse, since 9x/ME are not pre-emptively multitasking,
24482     # you end up with a "frozen" computer, even though with patience
24483     # the test eventually succeeds (with a max line length of 256k).
24484     # Instead, let's just punt: use the minimum linelength reported by
24485     # all of the supported platforms: 8192 (on NT/2K/XP).
24486     lt_cv_sys_max_cmd_len=8192;
24487     ;;
24488
24489   amigaos*)
24490     # On AmigaOS with pdksh, this test takes hours, literally.
24491     # So we just punt and use a minimum line length of 8192.
24492     lt_cv_sys_max_cmd_len=8192;
24493     ;;
24494
24495   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
24496     # This has been around since 386BSD, at least.  Likely further.
24497     if test -x /sbin/sysctl; then
24498       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
24499     elif test -x /usr/sbin/sysctl; then
24500       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
24501     else
24502       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
24503     fi
24504     # And add a safety zone
24505     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
24506     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
24507     ;;
24508   osf*)
24509     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
24510     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
24511     # nice to cause kernel panics so lets avoid the loop below.
24512     # First set a reasonable default.
24513     lt_cv_sys_max_cmd_len=16384
24514     #
24515     if test -x /sbin/sysconfig; then
24516       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
24517         *1*) lt_cv_sys_max_cmd_len=-1 ;;
24518       esac
24519     fi
24520     ;;
24521   *)
24522     # If test is not a shell built-in, we'll probably end up computing a
24523     # maximum length that is only half of the actual maximum length, but
24524     # we can't tell.
24525     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
24526     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
24527                = "XX$teststring") >/dev/null 2>&1 &&
24528             new_result=`expr "X$teststring" : ".*" 2>&1` &&
24529             lt_cv_sys_max_cmd_len=$new_result &&
24530             test $i != 17 # 1/2 MB should be enough
24531     do
24532       i=`expr $i + 1`
24533       teststring=$teststring$teststring
24534     done
24535     teststring=
24536     # Add a significant safety factor because C++ compilers can tack on massive
24537     # amounts of additional arguments before passing them to the linker.
24538     # It appears as though 1/2 is a usable value.
24539     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
24540     ;;
24541   esac
24542
24543 fi
24544
24545 if test -n $lt_cv_sys_max_cmd_len ; then
24546   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
24547 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
24548 else
24549   echo "$as_me:$LINENO: result: none" >&5
24550 echo "${ECHO_T}none" >&6
24551 fi
24552
24553
24554
24555
24556 # Check for command to grab the raw symbol name followed by C symbol from nm.
24557 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
24558 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
24559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
24560   echo $ECHO_N "(cached) $ECHO_C" >&6
24561 else
24562
24563 # These are sane defaults that work on at least a few old systems.
24564 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
24565
24566 # Character class describing NM global symbol codes.
24567 symcode='[BCDEGRST]'
24568
24569 # Regexp to match symbols that can be accessed directly from C.
24570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
24571
24572 # Transform an extracted symbol line into a proper C declaration
24573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
24574
24575 # Transform an extracted symbol line into symbol name and symbol address
24576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
24577
24578 # Define system-specific variables.
24579 case $host_os in
24580 aix*)
24581   symcode='[BCDT]'
24582   ;;
24583 cygwin* | mingw* | pw32*)
24584   symcode='[ABCDGISTW]'
24585   ;;
24586 hpux*) # Its linker distinguishes data from code symbols
24587   if test "$host_cpu" = ia64; then
24588     symcode='[ABCDEGRST]'
24589   fi
24590   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
24591   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
24592   ;;
24593 linux*)
24594   if test "$host_cpu" = ia64; then
24595     symcode='[ABCDGIRSTW]'
24596     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
24597     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
24598   fi
24599   ;;
24600 irix* | nonstopux*)
24601   symcode='[BCDEGRST]'
24602   ;;
24603 osf*)
24604   symcode='[BCDEGQRST]'
24605   ;;
24606 solaris* | sysv5*)
24607   symcode='[BDRT]'
24608   ;;
24609 sysv4)
24610   symcode='[DFNSTU]'
24611   ;;
24612 esac
24613
24614 # Handle CRLF in mingw tool chain
24615 opt_cr=
24616 case $build_os in
24617 mingw*)
24618   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
24619   ;;
24620 esac
24621
24622 # If we're using GNU nm, then use its standard symbol codes.
24623 case `$NM -V 2>&1` in
24624 *GNU* | *'with BFD'*)
24625   symcode='[ABCDGIRSTW]' ;;
24626 esac
24627
24628 # Try without a prefix undercore, then with it.
24629 for ac_symprfx in "" "_"; do
24630
24631   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
24632   symxfrm="\\1 $ac_symprfx\\2 \\2"
24633
24634   # Write the raw and C identifiers.
24635   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
24636
24637   # Check to see that the pipe works correctly.
24638   pipe_works=no
24639
24640   rm -f conftest*
24641   cat > conftest.$ac_ext <<EOF
24642 #ifdef __cplusplus
24643 extern "C" {
24644 #endif
24645 char nm_test_var;
24646 void nm_test_func(){}
24647 #ifdef __cplusplus
24648 }
24649 #endif
24650 int main(){nm_test_var='a';nm_test_func();return(0);}
24651 EOF
24652
24653   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24654   (eval $ac_compile) 2>&5
24655   ac_status=$?
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); }; then
24658     # Now try to grab the symbols.
24659     nlist=conftest.nm
24660     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
24661   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
24662   ac_status=$?
24663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24664   (exit $ac_status); } && test -s "$nlist"; then
24665       # Try sorting and uniquifying the output.
24666       if sort "$nlist" | uniq > "$nlist"T; then
24667         mv -f "$nlist"T "$nlist"
24668       else
24669         rm -f "$nlist"T
24670       fi
24671
24672       # Make sure that we snagged all the symbols we need.
24673       if grep ' nm_test_var$' "$nlist" >/dev/null; then
24674         if grep ' nm_test_func$' "$nlist" >/dev/null; then
24675           cat <<EOF > conftest.$ac_ext
24676 #ifdef __cplusplus
24677 extern "C" {
24678 #endif
24679
24680 EOF
24681           # Now generate the symbol file.
24682           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
24683
24684           cat <<EOF >> conftest.$ac_ext
24685 #if defined (__STDC__) && __STDC__
24686 # define lt_ptr_t void *
24687 #else
24688 # define lt_ptr_t char *
24689 # define const
24690 #endif
24691
24692 /* The mapping between symbol names and symbols. */
24693 const struct {
24694   const char *name;
24695   lt_ptr_t address;
24696 }
24697 lt_preloaded_symbols[] =
24698 {
24699 EOF
24700           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
24701           cat <<\EOF >> conftest.$ac_ext
24702   {0, (lt_ptr_t) 0}
24703 };
24704
24705 #ifdef __cplusplus
24706 }
24707 #endif
24708 EOF
24709           # Now try linking the two files.
24710           mv conftest.$ac_objext conftstm.$ac_objext
24711           lt_save_LIBS="$LIBS"
24712           lt_save_CFLAGS="$CFLAGS"
24713           LIBS="conftstm.$ac_objext"
24714           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
24715           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24716   (eval $ac_link) 2>&5
24717   ac_status=$?
24718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719   (exit $ac_status); } && test -s conftest${ac_exeext}; then
24720             pipe_works=yes
24721           fi
24722           LIBS="$lt_save_LIBS"
24723           CFLAGS="$lt_save_CFLAGS"
24724         else
24725           echo "cannot find nm_test_func in $nlist" >&5
24726         fi
24727       else
24728         echo "cannot find nm_test_var in $nlist" >&5
24729       fi
24730     else
24731       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
24732     fi
24733   else
24734     echo "$progname: failed program was:" >&5
24735     cat conftest.$ac_ext >&5
24736   fi
24737   rm -f conftest* conftst*
24738
24739   # Do not use the global_symbol_pipe unless it works.
24740   if test "$pipe_works" = yes; then
24741     break
24742   else
24743     lt_cv_sys_global_symbol_pipe=
24744   fi
24745 done
24746
24747 fi
24748
24749 if test -z "$lt_cv_sys_global_symbol_pipe"; then
24750   lt_cv_sys_global_symbol_to_cdecl=
24751 fi
24752 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
24753   echo "$as_me:$LINENO: result: failed" >&5
24754 echo "${ECHO_T}failed" >&6
24755 else
24756   echo "$as_me:$LINENO: result: ok" >&5
24757 echo "${ECHO_T}ok" >&6
24758 fi
24759
24760 echo "$as_me:$LINENO: checking for objdir" >&5
24761 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
24762 if test "${lt_cv_objdir+set}" = set; then
24763   echo $ECHO_N "(cached) $ECHO_C" >&6
24764 else
24765   rm -f .libs 2>/dev/null
24766 mkdir .libs 2>/dev/null
24767 if test -d .libs; then
24768   lt_cv_objdir=.libs
24769 else
24770   # MS-DOS does not allow filenames that begin with a dot.
24771   lt_cv_objdir=_libs
24772 fi
24773 rmdir .libs 2>/dev/null
24774 fi
24775 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
24776 echo "${ECHO_T}$lt_cv_objdir" >&6
24777 objdir=$lt_cv_objdir
24778
24779
24780
24781
24782
24783 case $host_os in
24784 aix3*)
24785   # AIX sometimes has problems with the GCC collect2 program.  For some
24786   # reason, if we set the COLLECT_NAMES environment variable, the problems
24787   # vanish in a puff of smoke.
24788   if test "X${COLLECT_NAMES+set}" != Xset; then
24789     COLLECT_NAMES=
24790     export COLLECT_NAMES
24791   fi
24792   ;;
24793 esac
24794
24795 # Sed substitution that helps us do robust quoting.  It backslashifies
24796 # metacharacters that are still active within double-quoted strings.
24797 Xsed='sed -e 1s/^X//'
24798 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
24799
24800 # Same as above, but do not quote variable references.
24801 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
24802
24803 # Sed substitution to delay expansion of an escaped shell variable in a
24804 # double_quote_subst'ed string.
24805 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
24806
24807 # Sed substitution to avoid accidental globbing in evaled expressions
24808 no_glob_subst='s/\*/\\\*/g'
24809
24810 # Constants:
24811 rm="rm -f"
24812
24813 # Global variables:
24814 default_ofile=libtool
24815 can_build_shared=yes
24816
24817 # All known linkers require a `.a' archive for static linking (except MSVC,
24818 # which needs '.lib').
24819 libext=a
24820 ltmain="$ac_aux_dir/ltmain.sh"
24821 ofile="$default_ofile"
24822 with_gnu_ld="$lt_cv_prog_gnu_ld"
24823
24824 if test -n "$ac_tool_prefix"; then
24825   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
24826 set dummy ${ac_tool_prefix}ar; ac_word=$2
24827 echo "$as_me:$LINENO: checking for $ac_word" >&5
24828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24829 if test "${ac_cv_prog_AR+set}" = set; then
24830   echo $ECHO_N "(cached) $ECHO_C" >&6
24831 else
24832   if test -n "$AR"; then
24833   ac_cv_prog_AR="$AR" # Let the user override the test.
24834 else
24835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24836 for as_dir in $PATH
24837 do
24838   IFS=$as_save_IFS
24839   test -z "$as_dir" && as_dir=.
24840   for ac_exec_ext in '' $ac_executable_extensions; do
24841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24842     ac_cv_prog_AR="${ac_tool_prefix}ar"
24843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24844     break 2
24845   fi
24846 done
24847 done
24848
24849 fi
24850 fi
24851 AR=$ac_cv_prog_AR
24852 if test -n "$AR"; then
24853   echo "$as_me:$LINENO: result: $AR" >&5
24854 echo "${ECHO_T}$AR" >&6
24855 else
24856   echo "$as_me:$LINENO: result: no" >&5
24857 echo "${ECHO_T}no" >&6
24858 fi
24859
24860 fi
24861 if test -z "$ac_cv_prog_AR"; then
24862   ac_ct_AR=$AR
24863   # Extract the first word of "ar", so it can be a program name with args.
24864 set dummy ar; ac_word=$2
24865 echo "$as_me:$LINENO: checking for $ac_word" >&5
24866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   if test -n "$ac_ct_AR"; then
24871   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
24872 else
24873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24874 for as_dir in $PATH
24875 do
24876   IFS=$as_save_IFS
24877   test -z "$as_dir" && as_dir=.
24878   for ac_exec_ext in '' $ac_executable_extensions; do
24879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24880     ac_cv_prog_ac_ct_AR="ar"
24881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24882     break 2
24883   fi
24884 done
24885 done
24886
24887   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
24888 fi
24889 fi
24890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
24891 if test -n "$ac_ct_AR"; then
24892   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
24893 echo "${ECHO_T}$ac_ct_AR" >&6
24894 else
24895   echo "$as_me:$LINENO: result: no" >&5
24896 echo "${ECHO_T}no" >&6
24897 fi
24898
24899   AR=$ac_ct_AR
24900 else
24901   AR="$ac_cv_prog_AR"
24902 fi
24903
24904 if test -n "$ac_tool_prefix"; then
24905   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
24906 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
24907 echo "$as_me:$LINENO: checking for $ac_word" >&5
24908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24909 if test "${ac_cv_prog_RANLIB+set}" = set; then
24910   echo $ECHO_N "(cached) $ECHO_C" >&6
24911 else
24912   if test -n "$RANLIB"; then
24913   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
24914 else
24915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24916 for as_dir in $PATH
24917 do
24918   IFS=$as_save_IFS
24919   test -z "$as_dir" && as_dir=.
24920   for ac_exec_ext in '' $ac_executable_extensions; do
24921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24922     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
24923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24924     break 2
24925   fi
24926 done
24927 done
24928
24929 fi
24930 fi
24931 RANLIB=$ac_cv_prog_RANLIB
24932 if test -n "$RANLIB"; then
24933   echo "$as_me:$LINENO: result: $RANLIB" >&5
24934 echo "${ECHO_T}$RANLIB" >&6
24935 else
24936   echo "$as_me:$LINENO: result: no" >&5
24937 echo "${ECHO_T}no" >&6
24938 fi
24939
24940 fi
24941 if test -z "$ac_cv_prog_RANLIB"; then
24942   ac_ct_RANLIB=$RANLIB
24943   # Extract the first word of "ranlib", so it can be a program name with args.
24944 set dummy ranlib; ac_word=$2
24945 echo "$as_me:$LINENO: checking for $ac_word" >&5
24946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
24948   echo $ECHO_N "(cached) $ECHO_C" >&6
24949 else
24950   if test -n "$ac_ct_RANLIB"; then
24951   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
24952 else
24953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24954 for as_dir in $PATH
24955 do
24956   IFS=$as_save_IFS
24957   test -z "$as_dir" && as_dir=.
24958   for ac_exec_ext in '' $ac_executable_extensions; do
24959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24960     ac_cv_prog_ac_ct_RANLIB="ranlib"
24961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24962     break 2
24963   fi
24964 done
24965 done
24966
24967   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
24968 fi
24969 fi
24970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
24971 if test -n "$ac_ct_RANLIB"; then
24972   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
24973 echo "${ECHO_T}$ac_ct_RANLIB" >&6
24974 else
24975   echo "$as_me:$LINENO: result: no" >&5
24976 echo "${ECHO_T}no" >&6
24977 fi
24978
24979   RANLIB=$ac_ct_RANLIB
24980 else
24981   RANLIB="$ac_cv_prog_RANLIB"
24982 fi
24983
24984 if test -n "$ac_tool_prefix"; then
24985   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24986 set dummy ${ac_tool_prefix}strip; ac_word=$2
24987 echo "$as_me:$LINENO: checking for $ac_word" >&5
24988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24989 if test "${ac_cv_prog_STRIP+set}" = set; then
24990   echo $ECHO_N "(cached) $ECHO_C" >&6
24991 else
24992   if test -n "$STRIP"; then
24993   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24994 else
24995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24996 for as_dir in $PATH
24997 do
24998   IFS=$as_save_IFS
24999   test -z "$as_dir" && as_dir=.
25000   for ac_exec_ext in '' $ac_executable_extensions; do
25001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25002     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
25003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25004     break 2
25005   fi
25006 done
25007 done
25008
25009 fi
25010 fi
25011 STRIP=$ac_cv_prog_STRIP
25012 if test -n "$STRIP"; then
25013   echo "$as_me:$LINENO: result: $STRIP" >&5
25014 echo "${ECHO_T}$STRIP" >&6
25015 else
25016   echo "$as_me:$LINENO: result: no" >&5
25017 echo "${ECHO_T}no" >&6
25018 fi
25019
25020 fi
25021 if test -z "$ac_cv_prog_STRIP"; then
25022   ac_ct_STRIP=$STRIP
25023   # Extract the first word of "strip", so it can be a program name with args.
25024 set dummy strip; ac_word=$2
25025 echo "$as_me:$LINENO: checking for $ac_word" >&5
25026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25027 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
25028   echo $ECHO_N "(cached) $ECHO_C" >&6
25029 else
25030   if test -n "$ac_ct_STRIP"; then
25031   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
25032 else
25033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25034 for as_dir in $PATH
25035 do
25036   IFS=$as_save_IFS
25037   test -z "$as_dir" && as_dir=.
25038   for ac_exec_ext in '' $ac_executable_extensions; do
25039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25040     ac_cv_prog_ac_ct_STRIP="strip"
25041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25042     break 2
25043   fi
25044 done
25045 done
25046
25047   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
25048 fi
25049 fi
25050 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
25051 if test -n "$ac_ct_STRIP"; then
25052   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
25053 echo "${ECHO_T}$ac_ct_STRIP" >&6
25054 else
25055   echo "$as_me:$LINENO: result: no" >&5
25056 echo "${ECHO_T}no" >&6
25057 fi
25058
25059   STRIP=$ac_ct_STRIP
25060 else
25061   STRIP="$ac_cv_prog_STRIP"
25062 fi
25063
25064
25065 old_CC="$CC"
25066 old_CFLAGS="$CFLAGS"
25067
25068 # Set sane defaults for various variables
25069 test -z "$AR" && AR=ar
25070 test -z "$AR_FLAGS" && AR_FLAGS=cru
25071 test -z "$AS" && AS=as
25072 test -z "$CC" && CC=cc
25073 test -z "$LTCC" && LTCC=$CC
25074 test -z "$DLLTOOL" && DLLTOOL=dlltool
25075 test -z "$LD" && LD=ld
25076 test -z "$LN_S" && LN_S="ln -s"
25077 test -z "$MAGIC_CMD" && MAGIC_CMD=file
25078 test -z "$NM" && NM=nm
25079 test -z "$SED" && SED=sed
25080 test -z "$OBJDUMP" && OBJDUMP=objdump
25081 test -z "$RANLIB" && RANLIB=:
25082 test -z "$STRIP" && STRIP=:
25083 test -z "$ac_objext" && ac_objext=o
25084
25085 # Determine commands to create old-style static archives.
25086 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
25087 old_postinstall_cmds='chmod 644 $oldlib'
25088 old_postuninstall_cmds=
25089
25090 if test -n "$RANLIB"; then
25091   case $host_os in
25092   openbsd*)
25093     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
25094     ;;
25095   *)
25096     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
25097     ;;
25098   esac
25099   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
25100 fi
25101
25102 for cc_temp in $compiler""; do
25103   case $cc_temp in
25104     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25105     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25106     \-*) ;;
25107     *) break;;
25108   esac
25109 done
25110 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25111
25112
25113 # Only perform the check for file, if the check method requires it
25114 case $deplibs_check_method in
25115 file_magic*)
25116   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
25117     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
25118 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
25119 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   case $MAGIC_CMD in
25123 [\\/*] |  ?:[\\/]*)
25124   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
25125   ;;
25126 *)
25127   lt_save_MAGIC_CMD="$MAGIC_CMD"
25128   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
25129   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
25130   for ac_dir in $ac_dummy; do
25131     IFS="$lt_save_ifs"
25132     test -z "$ac_dir" && ac_dir=.
25133     if test -f $ac_dir/${ac_tool_prefix}file; then
25134       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
25135       if test -n "$file_magic_test_file"; then
25136         case $deplibs_check_method in
25137         "file_magic "*)
25138           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
25139           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25140           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
25141             $EGREP "$file_magic_regex" > /dev/null; then
25142             :
25143           else
25144             cat <<EOF 1>&2
25145
25146 *** Warning: the command libtool uses to detect shared libraries,
25147 *** $file_magic_cmd, produces output that libtool cannot recognize.
25148 *** The result is that libtool may fail to recognize shared libraries
25149 *** as such.  This will affect the creation of libtool libraries that
25150 *** depend on shared libraries, but programs linked with such libtool
25151 *** libraries will work regardless of this problem.  Nevertheless, you
25152 *** may want to report the problem to your system manager and/or to
25153 *** bug-libtool@gnu.org
25154
25155 EOF
25156           fi ;;
25157         esac
25158       fi
25159       break
25160     fi
25161   done
25162   IFS="$lt_save_ifs"
25163   MAGIC_CMD="$lt_save_MAGIC_CMD"
25164   ;;
25165 esac
25166 fi
25167
25168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25169 if test -n "$MAGIC_CMD"; then
25170   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
25171 echo "${ECHO_T}$MAGIC_CMD" >&6
25172 else
25173   echo "$as_me:$LINENO: result: no" >&5
25174 echo "${ECHO_T}no" >&6
25175 fi
25176
25177 if test -z "$lt_cv_path_MAGIC_CMD"; then
25178   if test -n "$ac_tool_prefix"; then
25179     echo "$as_me:$LINENO: checking for file" >&5
25180 echo $ECHO_N "checking for file... $ECHO_C" >&6
25181 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
25182   echo $ECHO_N "(cached) $ECHO_C" >&6
25183 else
25184   case $MAGIC_CMD in
25185 [\\/*] |  ?:[\\/]*)
25186   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
25187   ;;
25188 *)
25189   lt_save_MAGIC_CMD="$MAGIC_CMD"
25190   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
25191   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
25192   for ac_dir in $ac_dummy; do
25193     IFS="$lt_save_ifs"
25194     test -z "$ac_dir" && ac_dir=.
25195     if test -f $ac_dir/file; then
25196       lt_cv_path_MAGIC_CMD="$ac_dir/file"
25197       if test -n "$file_magic_test_file"; then
25198         case $deplibs_check_method in
25199         "file_magic "*)
25200           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
25201           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25202           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
25203             $EGREP "$file_magic_regex" > /dev/null; then
25204             :
25205           else
25206             cat <<EOF 1>&2
25207
25208 *** Warning: the command libtool uses to detect shared libraries,
25209 *** $file_magic_cmd, produces output that libtool cannot recognize.
25210 *** The result is that libtool may fail to recognize shared libraries
25211 *** as such.  This will affect the creation of libtool libraries that
25212 *** depend on shared libraries, but programs linked with such libtool
25213 *** libraries will work regardless of this problem.  Nevertheless, you
25214 *** may want to report the problem to your system manager and/or to
25215 *** bug-libtool@gnu.org
25216
25217 EOF
25218           fi ;;
25219         esac
25220       fi
25221       break
25222     fi
25223   done
25224   IFS="$lt_save_ifs"
25225   MAGIC_CMD="$lt_save_MAGIC_CMD"
25226   ;;
25227 esac
25228 fi
25229
25230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
25231 if test -n "$MAGIC_CMD"; then
25232   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
25233 echo "${ECHO_T}$MAGIC_CMD" >&6
25234 else
25235   echo "$as_me:$LINENO: result: no" >&5
25236 echo "${ECHO_T}no" >&6
25237 fi
25238
25239   else
25240     MAGIC_CMD=:
25241   fi
25242 fi
25243
25244   fi
25245   ;;
25246 esac
25247
25248 enable_dlopen=no
25249 enable_win32_dll=no
25250
25251 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
25252 if test "${enable_libtool_lock+set}" = set; then
25253   enableval="$enable_libtool_lock"
25254
25255 fi;
25256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
25257
25258
25259 # Check whether --with-pic or --without-pic was given.
25260 if test "${with_pic+set}" = set; then
25261   withval="$with_pic"
25262   pic_mode="$withval"
25263 else
25264   pic_mode=default
25265 fi;
25266 test -z "$pic_mode" && pic_mode=default
25267
25268 # Use C for the default configuration in the libtool script
25269 tagname=
25270 lt_save_CC="$CC"
25271 ac_ext=c
25272 ac_cpp='$CPP $CPPFLAGS'
25273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25276
25277
25278 # Source file extension for C test sources.
25279 ac_ext=c
25280
25281 # Object file extension for compiled C test sources.
25282 objext=o
25283 objext=$objext
25284
25285 # Code to be used in simple compile tests
25286 lt_simple_compile_test_code="int some_variable = 0;\n"
25287
25288 # Code to be used in simple link tests
25289 lt_simple_link_test_code='int main(){return(0);}\n'
25290
25291
25292 # If no C compiler was specified, use CC.
25293 LTCC=${LTCC-"$CC"}
25294
25295 # Allow CC to be a program name with arguments.
25296 compiler=$CC
25297
25298
25299 # save warnings/boilerplate of simple test code
25300 ac_outfile=conftest.$ac_objext
25301 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25303 _lt_compiler_boilerplate=`cat conftest.err`
25304 $rm conftest*
25305
25306 ac_outfile=conftest.$ac_objext
25307 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25309 _lt_linker_boilerplate=`cat conftest.err`
25310 $rm conftest*
25311
25312
25313 #
25314 # Check for any special shared library compilation flags.
25315 #
25316 lt_prog_cc_shlib=
25317 if test "$GCC" = no; then
25318   case $host_os in
25319   sco3.2v5*)
25320     lt_prog_cc_shlib='-belf'
25321     ;;
25322   esac
25323 fi
25324 if test -n "$lt_prog_cc_shlib"; then
25325   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
25326 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
25327   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
25328   else
25329     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
25330 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
25331     lt_cv_prog_cc_can_build_shared=no
25332   fi
25333 fi
25334
25335
25336 #
25337 # Check to make sure the static flag actually works.
25338 #
25339 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
25340 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
25341 if test "${lt_prog_compiler_static_works+set}" = set; then
25342   echo $ECHO_N "(cached) $ECHO_C" >&6
25343 else
25344   lt_prog_compiler_static_works=no
25345    save_LDFLAGS="$LDFLAGS"
25346    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
25347    printf "$lt_simple_link_test_code" > conftest.$ac_ext
25348    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
25349      # The linker can only warn and ignore the option if not recognized
25350      # So say no if there are warnings
25351      if test -s conftest.err; then
25352        # Append any errors to the config.log.
25353        cat conftest.err 1>&5
25354        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
25355        $SED '/^$/d' conftest.err >conftest.er2
25356        if diff conftest.exp conftest.er2 >/dev/null; then
25357          lt_prog_compiler_static_works=yes
25358        fi
25359      else
25360        lt_prog_compiler_static_works=yes
25361      fi
25362    fi
25363    $rm conftest*
25364    LDFLAGS="$save_LDFLAGS"
25365
25366 fi
25367 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
25368 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
25369
25370 if test x"$lt_prog_compiler_static_works" = xyes; then
25371     :
25372 else
25373     lt_prog_compiler_static=
25374 fi
25375
25376
25377
25378 ## CAVEAT EMPTOR:
25379 ## There is no encapsulation within the following macros, do not change
25380 ## the running order or otherwise move them around unless you know exactly
25381 ## what you are doing...
25382
25383 lt_prog_compiler_no_builtin_flag=
25384
25385 if test "$GCC" = yes; then
25386   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
25387
25388
25389 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
25390 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
25391 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
25392   echo $ECHO_N "(cached) $ECHO_C" >&6
25393 else
25394   lt_cv_prog_compiler_rtti_exceptions=no
25395   ac_outfile=conftest.$ac_objext
25396    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25397    lt_compiler_flag="-fno-rtti -fno-exceptions"
25398    # Insert the option either (1) after the last *FLAGS variable, or
25399    # (2) before a word containing "conftest.", or (3) at the end.
25400    # Note that $ac_compile itself does not contain backslashes and begins
25401    # with a dollar sign (not a hyphen), so the echo should work correctly.
25402    # The option is referenced via a variable to avoid confusing sed.
25403    lt_compile=`echo "$ac_compile" | $SED \
25404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25406    -e 's:$: $lt_compiler_flag:'`
25407    (eval echo "\"\$as_me:25407: $lt_compile\"" >&5)
25408    (eval "$lt_compile" 2>conftest.err)
25409    ac_status=$?
25410    cat conftest.err >&5
25411    echo "$as_me:25411: \$? = $ac_status" >&5
25412    if (exit $ac_status) && test -s "$ac_outfile"; then
25413      # The compiler can only warn and ignore the option if not recognized
25414      # So say no if there are warnings other than the usual output.
25415      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
25416      $SED '/^$/d' conftest.err >conftest.er2
25417      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
25418        lt_cv_prog_compiler_rtti_exceptions=yes
25419      fi
25420    fi
25421    $rm conftest*
25422
25423 fi
25424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
25425 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
25426
25427 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
25428     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
25429 else
25430     :
25431 fi
25432
25433 fi
25434
25435 lt_prog_compiler_wl=
25436 lt_prog_compiler_pic=
25437 lt_prog_compiler_static=
25438
25439 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25440 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25441
25442   if test "$GCC" = yes; then
25443     lt_prog_compiler_wl='-Wl,'
25444     lt_prog_compiler_static='-static'
25445
25446     case $host_os in
25447       aix*)
25448       # All AIX code is PIC.
25449       if test "$host_cpu" = ia64; then
25450         # AIX 5 now supports IA64 processor
25451         lt_prog_compiler_static='-Bstatic'
25452       fi
25453       ;;
25454
25455     amigaos*)
25456       # FIXME: we need at least 68020 code to build shared libraries, but
25457       # adding the `-m68020' flag to GCC prevents building anything better,
25458       # like `-m68040'.
25459       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
25460       ;;
25461
25462     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25463       # PIC is the default for these OSes.
25464       ;;
25465
25466     mingw* | pw32* | os2*)
25467       # This hack is so that the source file can tell whether it is being
25468       # built for inclusion in a dll (and should export symbols for example).
25469       lt_prog_compiler_pic='-DDLL_EXPORT'
25470       ;;
25471
25472     darwin* | rhapsody*)
25473       # PIC is the default on this platform
25474       # Common symbols not allowed in MH_DYLIB files
25475       lt_prog_compiler_pic='-fno-common'
25476       ;;
25477
25478     msdosdjgpp*)
25479       # Just because we use GCC doesn't mean we suddenly get shared libraries
25480       # on systems that don't support them.
25481       lt_prog_compiler_can_build_shared=no
25482       enable_shared=no
25483       ;;
25484
25485     sysv4*MP*)
25486       if test -d /usr/nec; then
25487         lt_prog_compiler_pic=-Kconform_pic
25488       fi
25489       ;;
25490
25491     hpux*)
25492       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25493       # not for PA HP-UX.
25494       case $host_cpu in
25495       hppa*64*|ia64*)
25496         # +Z the default
25497         ;;
25498       *)
25499         lt_prog_compiler_pic='-fPIC'
25500         ;;
25501       esac
25502       ;;
25503
25504     *)
25505       lt_prog_compiler_pic='-fPIC'
25506       ;;
25507     esac
25508   else
25509     # PORTME Check for flag to pass linker flags through the system compiler.
25510     case $host_os in
25511     aix*)
25512       lt_prog_compiler_wl='-Wl,'
25513       if test "$host_cpu" = ia64; then
25514         # AIX 5 now supports IA64 processor
25515         lt_prog_compiler_static='-Bstatic'
25516       else
25517         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
25518       fi
25519       ;;
25520       darwin*)
25521         # PIC is the default on this platform
25522         # Common symbols not allowed in MH_DYLIB files
25523        case $cc_basename in
25524          xlc*)
25525          lt_prog_compiler_pic='-qnocommon'
25526          lt_prog_compiler_wl='-Wl,'
25527          ;;
25528        esac
25529        ;;
25530
25531     mingw* | pw32* | os2*)
25532       # This hack is so that the source file can tell whether it is being
25533       # built for inclusion in a dll (and should export symbols for example).
25534       lt_prog_compiler_pic='-DDLL_EXPORT'
25535       ;;
25536
25537     hpux9* | hpux10* | hpux11*)
25538       lt_prog_compiler_wl='-Wl,'
25539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25540       # not for PA HP-UX.
25541       case $host_cpu in
25542       hppa*64*|ia64*)
25543         # +Z the default
25544         ;;
25545       *)
25546         lt_prog_compiler_pic='+Z'
25547         ;;
25548       esac
25549       # Is there a better lt_prog_compiler_static that works with the bundled CC?
25550       lt_prog_compiler_static='${wl}-a ${wl}archive'
25551       ;;
25552
25553     irix5* | irix6* | nonstopux*)
25554       lt_prog_compiler_wl='-Wl,'
25555       # PIC (with -KPIC) is the default.
25556       lt_prog_compiler_static='-non_shared'
25557       ;;
25558
25559     newsos6)
25560       lt_prog_compiler_pic='-KPIC'
25561       lt_prog_compiler_static='-Bstatic'
25562       ;;
25563
25564     linux*)
25565       case $cc_basename in
25566       icc* | ecc*)
25567         lt_prog_compiler_wl='-Wl,'
25568         lt_prog_compiler_pic='-KPIC'
25569         lt_prog_compiler_static='-static'
25570         ;;
25571       pgcc* | pgf77* | pgf90* | pgf95*)
25572         # Portland Group compilers (*not* the Pentium gcc compiler,
25573         # which looks to be a dead project)
25574         lt_prog_compiler_wl='-Wl,'
25575         lt_prog_compiler_pic='-fpic'
25576         lt_prog_compiler_static='-Bstatic'
25577         ;;
25578       ccc*)
25579         lt_prog_compiler_wl='-Wl,'
25580         # All Alpha code is PIC.
25581         lt_prog_compiler_static='-non_shared'
25582         ;;
25583       esac
25584       ;;
25585
25586     osf3* | osf4* | osf5*)
25587       lt_prog_compiler_wl='-Wl,'
25588       # All OSF/1 code is PIC.
25589       lt_prog_compiler_static='-non_shared'
25590       ;;
25591
25592     sco3.2v5*)
25593       lt_prog_compiler_pic='-Kpic'
25594       lt_prog_compiler_static='-dn'
25595       ;;
25596
25597     solaris*)
25598       lt_prog_compiler_pic='-KPIC'
25599       lt_prog_compiler_static='-Bstatic'
25600       case $cc_basename in
25601       f77* | f90* | f95*)
25602         lt_prog_compiler_wl='-Qoption ld ';;
25603       *)
25604         lt_prog_compiler_wl='-Wl,';;
25605       esac
25606       ;;
25607
25608     sunos4*)
25609       lt_prog_compiler_wl='-Qoption ld '
25610       lt_prog_compiler_pic='-PIC'
25611       lt_prog_compiler_static='-Bstatic'
25612       ;;
25613
25614     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25615       lt_prog_compiler_wl='-Wl,'
25616       lt_prog_compiler_pic='-KPIC'
25617       lt_prog_compiler_static='-Bstatic'
25618       ;;
25619
25620     sysv4*MP*)
25621       if test -d /usr/nec ;then
25622         lt_prog_compiler_pic='-Kconform_pic'
25623         lt_prog_compiler_static='-Bstatic'
25624       fi
25625       ;;
25626
25627     unicos*)
25628       lt_prog_compiler_wl='-Wl,'
25629       lt_prog_compiler_can_build_shared=no
25630       ;;
25631
25632     uts4*)
25633       lt_prog_compiler_pic='-pic'
25634       lt_prog_compiler_static='-Bstatic'
25635       ;;
25636
25637     *)
25638       lt_prog_compiler_can_build_shared=no
25639       ;;
25640     esac
25641   fi
25642
25643 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
25644 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
25645
25646 #
25647 # Check to make sure the PIC flag actually works.
25648 #
25649 if test -n "$lt_prog_compiler_pic"; then
25650
25651 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
25652 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
25653 if test "${lt_prog_compiler_pic_works+set}" = set; then
25654   echo $ECHO_N "(cached) $ECHO_C" >&6
25655 else
25656   lt_prog_compiler_pic_works=no
25657   ac_outfile=conftest.$ac_objext
25658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25659    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
25660    # Insert the option either (1) after the last *FLAGS variable, or
25661    # (2) before a word containing "conftest.", or (3) at the end.
25662    # Note that $ac_compile itself does not contain backslashes and begins
25663    # with a dollar sign (not a hyphen), so the echo should work correctly.
25664    # The option is referenced via a variable to avoid confusing sed.
25665    lt_compile=`echo "$ac_compile" | $SED \
25666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25668    -e 's:$: $lt_compiler_flag:'`
25669    (eval echo "\"\$as_me:25669: $lt_compile\"" >&5)
25670    (eval "$lt_compile" 2>conftest.err)
25671    ac_status=$?
25672    cat conftest.err >&5
25673    echo "$as_me:25673: \$? = $ac_status" >&5
25674    if (exit $ac_status) && test -s "$ac_outfile"; then
25675      # The compiler can only warn and ignore the option if not recognized
25676      # So say no if there are warnings other than the usual output.
25677      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
25678      $SED '/^$/d' conftest.err >conftest.er2
25679      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
25680        lt_prog_compiler_pic_works=yes
25681      fi
25682    fi
25683    $rm conftest*
25684
25685 fi
25686 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
25687 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
25688
25689 if test x"$lt_prog_compiler_pic_works" = xyes; then
25690     case $lt_prog_compiler_pic in
25691      "" | " "*) ;;
25692      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
25693      esac
25694 else
25695     lt_prog_compiler_pic=
25696      lt_prog_compiler_can_build_shared=no
25697 fi
25698
25699 fi
25700 case $host_os in
25701   # For platforms which do not support PIC, -DPIC is meaningless:
25702   *djgpp*)
25703     lt_prog_compiler_pic=
25704     ;;
25705   *)
25706     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
25707     ;;
25708 esac
25709
25710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
25713   echo $ECHO_N "(cached) $ECHO_C" >&6
25714 else
25715   lt_cv_prog_compiler_c_o=no
25716    $rm -r conftest 2>/dev/null
25717    mkdir conftest
25718    cd conftest
25719    mkdir out
25720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25721
25722    lt_compiler_flag="-o out/conftest2.$ac_objext"
25723    # Insert the option either (1) after the last *FLAGS variable, or
25724    # (2) before a word containing "conftest.", or (3) at the end.
25725    # Note that $ac_compile itself does not contain backslashes and begins
25726    # with a dollar sign (not a hyphen), so the echo should work correctly.
25727    lt_compile=`echo "$ac_compile" | $SED \
25728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25730    -e 's:$: $lt_compiler_flag:'`
25731    (eval echo "\"\$as_me:25731: $lt_compile\"" >&5)
25732    (eval "$lt_compile" 2>out/conftest.err)
25733    ac_status=$?
25734    cat out/conftest.err >&5
25735    echo "$as_me:25735: \$? = $ac_status" >&5
25736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
25737    then
25738      # The compiler can only warn and ignore the option if not recognized
25739      # So say no if there are warnings
25740      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
25741      $SED '/^$/d' out/conftest.err >out/conftest.er2
25742      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25743        lt_cv_prog_compiler_c_o=yes
25744      fi
25745    fi
25746    chmod u+w . 2>&5
25747    $rm conftest*
25748    # SGI C++ compiler will create directory out/ii_files/ for
25749    # template instantiation
25750    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25751    $rm out/* && rmdir out
25752    cd ..
25753    rmdir conftest
25754    $rm conftest*
25755
25756 fi
25757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
25758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
25759
25760
25761 hard_links="nottested"
25762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
25763   # do not overwrite the value of need_locks provided by the user
25764   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25766   hard_links=yes
25767   $rm conftest*
25768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25769   touch conftest.a
25770   ln conftest.a conftest.b 2>&5 || hard_links=no
25771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25772   echo "$as_me:$LINENO: result: $hard_links" >&5
25773 echo "${ECHO_T}$hard_links" >&6
25774   if test "$hard_links" = no; then
25775     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25777     need_locks=warn
25778   fi
25779 else
25780   need_locks=no
25781 fi
25782
25783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25785
25786   runpath_var=
25787   allow_undefined_flag=
25788   enable_shared_with_static_runtimes=no
25789   archive_cmds=
25790   archive_expsym_cmds=
25791   old_archive_From_new_cmds=
25792   old_archive_from_expsyms_cmds=
25793   export_dynamic_flag_spec=
25794   whole_archive_flag_spec=
25795   thread_safe_flag_spec=
25796   hardcode_libdir_flag_spec=
25797   hardcode_libdir_flag_spec_ld=
25798   hardcode_libdir_separator=
25799   hardcode_direct=no
25800   hardcode_minus_L=no
25801   hardcode_shlibpath_var=unsupported
25802   link_all_deplibs=unknown
25803   hardcode_automatic=no
25804   module_cmds=
25805   module_expsym_cmds=
25806   always_export_symbols=no
25807   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25808   # include_expsyms should be a list of space-separated symbols to be *always*
25809   # included in the symbol list
25810   include_expsyms=
25811   # exclude_expsyms can be an extended regexp of symbols to exclude
25812   # it will be wrapped by ` (' and `)$', so one must not match beginning or
25813   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25814   # as well as any symbol that contains `d'.
25815   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
25816   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25817   # platforms (ab)use it in PIC code, but their linkers get confused if
25818   # the symbol is explicitly referenced.  Since portable code cannot
25819   # rely on this symbol name, it's probably fine to never include it in
25820   # preloaded symbol tables.
25821   extract_expsyms_cmds=
25822   # Just being paranoid about ensuring that cc_basename is set.
25823   for cc_temp in $compiler""; do
25824   case $cc_temp in
25825     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25826     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25827     \-*) ;;
25828     *) break;;
25829   esac
25830 done
25831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25832
25833   case $host_os in
25834   cygwin* | mingw* | pw32*)
25835     # FIXME: the MSVC++ port hasn't been tested in a loooong time
25836     # When not using gcc, we currently assume that we are using
25837     # Microsoft Visual C++.
25838     if test "$GCC" != yes; then
25839       with_gnu_ld=no
25840     fi
25841     ;;
25842   openbsd*)
25843     with_gnu_ld=no
25844     ;;
25845   esac
25846
25847   ld_shlibs=yes
25848   if test "$with_gnu_ld" = yes; then
25849     # If archive_cmds runs LD, not CC, wlarc should be empty
25850     wlarc='${wl}'
25851
25852     # Set some defaults for GNU ld with shared library support. These
25853     # are reset later if shared libraries are not supported. Putting them
25854     # here allows them to be overridden if necessary.
25855     runpath_var=LD_RUN_PATH
25856     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
25857     export_dynamic_flag_spec='${wl}--export-dynamic'
25858     # ancient GNU ld didn't support --whole-archive et. al.
25859     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25860         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25861       else
25862         whole_archive_flag_spec=
25863     fi
25864     supports_anon_versioning=no
25865     case `$LD -v 2>/dev/null` in
25866       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25867       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25868       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25869       *\ 2.11.*) ;; # other 2.11 versions
25870       *) supports_anon_versioning=yes ;;
25871     esac
25872
25873     # See if GNU ld supports shared libraries.
25874     case $host_os in
25875     aix3* | aix4* | aix5*)
25876       # On AIX/PPC, the GNU linker is very broken
25877       if test "$host_cpu" != ia64; then
25878         ld_shlibs=no
25879         cat <<EOF 1>&2
25880
25881 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25882 *** to be unable to reliably create shared libraries on AIX.
25883 *** Therefore, libtool is disabling shared libraries support.  If you
25884 *** really care for shared libraries, you may want to modify your PATH
25885 *** so that a non-GNU linker is found, and then restart.
25886
25887 EOF
25888       fi
25889       ;;
25890
25891     amigaos*)
25892       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)'
25893       hardcode_libdir_flag_spec='-L$libdir'
25894       hardcode_minus_L=yes
25895
25896       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25897       # that the semantics of dynamic libraries on AmigaOS, at least up
25898       # to version 4, is to share data among multiple programs linked
25899       # with the same dynamic library.  Since this doesn't match the
25900       # behavior of shared libraries on other platforms, we can't use
25901       # them.
25902       ld_shlibs=no
25903       ;;
25904
25905     beos*)
25906       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25907         allow_undefined_flag=unsupported
25908         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25909         # support --undefined.  This deserves some investigation.  FIXME
25910         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25911       else
25912         ld_shlibs=no
25913       fi
25914       ;;
25915
25916     cygwin* | mingw* | pw32*)
25917       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
25918       # as there is no search path for DLLs.
25919       hardcode_libdir_flag_spec='-L$libdir'
25920       allow_undefined_flag=unsupported
25921       always_export_symbols=no
25922       enable_shared_with_static_runtimes=yes
25923       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25924
25925       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25926         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25927         # If the export-symbols file already is a .def file (1st line
25928         # is EXPORTS), use it as is; otherwise, prepend...
25929         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25930           cp $export_symbols $output_objdir/$soname.def;
25931         else
25932           echo EXPORTS > $output_objdir/$soname.def;
25933           cat $export_symbols >> $output_objdir/$soname.def;
25934         fi~
25935         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
25936       else
25937         ld_shlibs=no
25938       fi
25939       ;;
25940
25941     linux*)
25942       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25943         tmp_addflag=
25944         case $cc_basename,$host_cpu in
25945         pgcc*)                          # Portland Group C compiler
25946           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25947           tmp_addflag=' $pic_flag'
25948           ;;
25949         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25950           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
25951           tmp_addflag=' $pic_flag -Mnomain' ;;
25952         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25953           tmp_addflag=' -i_dynamic' ;;
25954         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25955           tmp_addflag=' -i_dynamic -nofor_main' ;;
25956         ifc* | ifort*)                  # Intel Fortran compiler
25957           tmp_addflag=' -nofor_main' ;;
25958         esac
25959         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25960
25961         if test $supports_anon_versioning = yes; then
25962           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
25963   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25964   $echo "local: *; };" >> $output_objdir/$libname.ver~
25965           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25966         fi
25967       else
25968         ld_shlibs=no
25969       fi
25970       ;;
25971
25972     netbsd*)
25973       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25974         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25975         wlarc=
25976       else
25977         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25978         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25979       fi
25980       ;;
25981
25982     solaris* | sysv5*)
25983       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25984         ld_shlibs=no
25985         cat <<EOF 1>&2
25986
25987 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25988 *** create shared libraries on Solaris systems.  Therefore, libtool
25989 *** is disabling shared libraries support.  We urge you to upgrade GNU
25990 *** binutils to release 2.9.1 or newer.  Another option is to modify
25991 *** your PATH or compiler configuration so that the native linker is
25992 *** used, and then restart.
25993
25994 EOF
25995       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25998       else
25999         ld_shlibs=no
26000       fi
26001       ;;
26002
26003     sunos4*)
26004       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26005       wlarc=
26006       hardcode_direct=yes
26007       hardcode_shlibpath_var=no
26008       ;;
26009
26010     *)
26011       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26012         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26013         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26014       else
26015         ld_shlibs=no
26016       fi
26017       ;;
26018     esac
26019
26020     if test "$ld_shlibs" = no; then
26021       runpath_var=
26022       hardcode_libdir_flag_spec=
26023       export_dynamic_flag_spec=
26024       whole_archive_flag_spec=
26025     fi
26026   else
26027     # PORTME fill in a description of your system's linker (not GNU ld)
26028     case $host_os in
26029     aix3*)
26030       allow_undefined_flag=unsupported
26031       always_export_symbols=yes
26032       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'
26033       # Note: this linker hardcodes the directories in LIBPATH if there
26034       # are no directories specified by -L.
26035       hardcode_minus_L=yes
26036       if test "$GCC" = yes && test -z "$link_static_flag"; then
26037         # Neither direct hardcoding nor static linking is supported with a
26038         # broken collect2.
26039         hardcode_direct=unsupported
26040       fi
26041       ;;
26042
26043     aix4* | aix5*)
26044       if test "$host_cpu" = ia64; then
26045         # On IA64, the linker does run time linking by default, so we don't
26046         # have to do anything special.
26047         aix_use_runtimelinking=no
26048         exp_sym_flag='-Bexport'
26049         no_entry_flag=""
26050       else
26051         # If we're using GNU nm, then we don't want the "-C" option.
26052         # -C means demangle to AIX nm, but means don't demangle with GNU nm
26053         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26054           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26055         else
26056           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26057         fi
26058         aix_use_runtimelinking=no
26059
26060         # Test if we are trying to use run time linking or normal
26061         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26062         # need to do runtime linking.
26063         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
26064           for ld_flag in $LDFLAGS; do
26065           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26066             aix_use_runtimelinking=yes
26067             break
26068           fi
26069           done
26070         esac
26071
26072         exp_sym_flag='-bexport'
26073         no_entry_flag='-bnoentry'
26074       fi
26075
26076       # When large executables or shared objects are built, AIX ld can
26077       # have problems creating the table of contents.  If linking a library
26078       # or program results in "error TOC overflow" add -mminimal-toc to
26079       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
26080       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26081
26082       archive_cmds=''
26083       hardcode_direct=yes
26084       hardcode_libdir_separator=':'
26085       link_all_deplibs=yes
26086
26087       if test "$GCC" = yes; then
26088         case $host_os in aix4.[012]|aix4.[012].*)
26089         # We only want to do this on AIX 4.2 and lower, the check
26090         # below for broken collect2 doesn't work under 4.3+
26091           collect2name=`${CC} -print-prog-name=collect2`
26092           if test -f "$collect2name" && \
26093            strings "$collect2name" | grep resolve_lib_name >/dev/null
26094           then
26095           # We have reworked collect2
26096           hardcode_direct=yes
26097           else
26098           # We have old collect2
26099           hardcode_direct=unsupported
26100           # It fails to find uninstalled libraries when the uninstalled
26101           # path is not listed in the libpath.  Setting hardcode_minus_L
26102           # to unsupported forces relinking
26103           hardcode_minus_L=yes
26104           hardcode_libdir_flag_spec='-L$libdir'
26105           hardcode_libdir_separator=
26106           fi
26107         esac
26108         shared_flag='-shared'
26109         if test "$aix_use_runtimelinking" = yes; then
26110           shared_flag="$shared_flag "'${wl}-G'
26111         fi
26112       else
26113         # not using gcc
26114         if test "$host_cpu" = ia64; then
26115         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26116         # chokes on -Wl,-G. The following line is correct:
26117           shared_flag='-G'
26118         else
26119         if test "$aix_use_runtimelinking" = yes; then
26120             shared_flag='${wl}-G'
26121           else
26122             shared_flag='${wl}-bM:SRE'
26123         fi
26124         fi
26125       fi
26126
26127       # It seems that -bexpall does not export symbols beginning with
26128       # underscore (_), so it is better to generate a list of symbols to export.
26129       always_export_symbols=yes
26130       if test "$aix_use_runtimelinking" = yes; then
26131         # Warning - without using the other runtime loading flags (-brtl),
26132         # -berok will link without error, but may produce a broken library.
26133         allow_undefined_flag='-berok'
26134        # Determine the default libpath from the value encoded in an empty executable.
26135        cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141
26142 int
26143 main ()
26144 {
26145
26146   ;
26147   return 0;
26148 }
26149 _ACEOF
26150 rm -f conftest.$ac_objext conftest$ac_exeext
26151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26152   (eval $ac_link) 2>conftest.er1
26153   ac_status=$?
26154   grep -v '^ *+' conftest.er1 >conftest.err
26155   rm -f conftest.er1
26156   cat conftest.err >&5
26157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158   (exit $ac_status); } &&
26159          { ac_try='test -z "$ac_c_werror_flag"
26160                          || test ! -s conftest.err'
26161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162   (eval $ac_try) 2>&5
26163   ac_status=$?
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); }; } &&
26166          { ac_try='test -s conftest$ac_exeext'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; }; then
26172
26173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26174 }'`
26175 # Check for a 64-bit object if we didn't find anything.
26176 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26177 }'`; fi
26178 else
26179   echo "$as_me: failed program was:" >&5
26180 sed 's/^/| /' conftest.$ac_ext >&5
26181
26182 fi
26183 rm -f conftest.err conftest.$ac_objext \
26184       conftest$ac_exeext conftest.$ac_ext
26185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26186
26187        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26188         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"
26189        else
26190         if test "$host_cpu" = ia64; then
26191           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
26192           allow_undefined_flag="-z nodefs"
26193           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
26194         else
26195          # Determine the default libpath from the value encoded in an empty executable.
26196          cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202
26203 int
26204 main ()
26205 {
26206
26207   ;
26208   return 0;
26209 }
26210 _ACEOF
26211 rm -f conftest.$ac_objext conftest$ac_exeext
26212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26213   (eval $ac_link) 2>conftest.er1
26214   ac_status=$?
26215   grep -v '^ *+' conftest.er1 >conftest.err
26216   rm -f conftest.er1
26217   cat conftest.err >&5
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); } &&
26220          { ac_try='test -z "$ac_c_werror_flag"
26221                          || test ! -s conftest.err'
26222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223   (eval $ac_try) 2>&5
26224   ac_status=$?
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); }; } &&
26227          { ac_try='test -s conftest$ac_exeext'
26228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229   (eval $ac_try) 2>&5
26230   ac_status=$?
26231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232   (exit $ac_status); }; }; then
26233
26234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26235 }'`
26236 # Check for a 64-bit object if we didn't find anything.
26237 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
26238 }'`; fi
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243 fi
26244 rm -f conftest.err conftest.$ac_objext \
26245       conftest$ac_exeext conftest.$ac_ext
26246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26247
26248          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
26249           # Warning - without using the other run time loading flags,
26250           # -berok will link without error, but may produce a broken library.
26251           no_undefined_flag=' ${wl}-bernotok'
26252           allow_undefined_flag=' ${wl}-berok'
26253           # -bexpall does not export symbols beginning with underscore (_)
26254           always_export_symbols=yes
26255           # Exported symbols can be pulled into shared objects from archives
26256           whole_archive_flag_spec=' '
26257           archive_cmds_need_lc=yes
26258           # This is similar to how AIX traditionally builds its shared libraries.
26259           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26260         fi
26261       fi
26262       ;;
26263
26264     amigaos*)
26265       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)'
26266       hardcode_libdir_flag_spec='-L$libdir'
26267       hardcode_minus_L=yes
26268       # see comment about different semantics on the GNU ld section
26269       ld_shlibs=no
26270       ;;
26271
26272     bsdi[45]*)
26273       export_dynamic_flag_spec=-rdynamic
26274       ;;
26275
26276     cygwin* | mingw* | pw32*)
26277       # When not using gcc, we currently assume that we are using
26278       # Microsoft Visual C++.
26279       # hardcode_libdir_flag_spec is actually meaningless, as there is
26280       # no search path for DLLs.
26281       hardcode_libdir_flag_spec=' '
26282       allow_undefined_flag=unsupported
26283       # Tell ltmain to make .lib files, not .a files.
26284       libext=lib
26285       # Tell ltmain to make .dll files, not .so files.
26286       shrext_cmds=".dll"
26287       # FIXME: Setting linknames here is a bad hack.
26288       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
26289       # The linker will automatically build a .lib file if we build a DLL.
26290       old_archive_From_new_cmds='true'
26291       # FIXME: Should let the user specify the lib program.
26292       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
26293       fix_srcfile_path='`cygpath -w "$srcfile"`'
26294       enable_shared_with_static_runtimes=yes
26295       ;;
26296
26297     darwin* | rhapsody*)
26298       case $host_os in
26299         rhapsody* | darwin1.[012])
26300          allow_undefined_flag='${wl}-undefined ${wl}suppress'
26301          ;;
26302        *) # Darwin 1.3 on
26303          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26304            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26305          else
26306            case ${MACOSX_DEPLOYMENT_TARGET} in
26307              10.[012])
26308                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
26309                ;;
26310              10.*)
26311                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
26312                ;;
26313            esac
26314          fi
26315          ;;
26316       esac
26317       archive_cmds_need_lc=no
26318       hardcode_direct=no
26319       hardcode_automatic=yes
26320       hardcode_shlibpath_var=unsupported
26321       whole_archive_flag_spec=''
26322       link_all_deplibs=yes
26323     if test "$GCC" = yes ; then
26324         output_verbose_link_cmd='echo'
26325         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26326       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26327       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26328       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26329       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26330     else
26331       case $cc_basename in
26332         xlc*)
26333          output_verbose_link_cmd='echo'
26334          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
26335          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26336           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
26337          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26338           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26339           ;;
26340        *)
26341          ld_shlibs=no
26342           ;;
26343       esac
26344     fi
26345       ;;
26346
26347     dgux*)
26348       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26349       hardcode_libdir_flag_spec='-L$libdir'
26350       hardcode_shlibpath_var=no
26351       ;;
26352
26353     freebsd1*)
26354       ld_shlibs=no
26355       ;;
26356
26357     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26358     # support.  Future versions do this automatically, but an explicit c++rt0.o
26359     # does not break anything, and helps significantly (at the cost of a little
26360     # extra space).
26361     freebsd2.2*)
26362       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26363       hardcode_libdir_flag_spec='-R$libdir'
26364       hardcode_direct=yes
26365       hardcode_shlibpath_var=no
26366       ;;
26367
26368     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26369     freebsd2*)
26370       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26371       hardcode_direct=yes
26372       hardcode_minus_L=yes
26373       hardcode_shlibpath_var=no
26374       ;;
26375
26376     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26377     freebsd* | kfreebsd*-gnu | dragonfly*)
26378       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26379       hardcode_libdir_flag_spec='-R$libdir'
26380       hardcode_direct=yes
26381       hardcode_shlibpath_var=no
26382       ;;
26383
26384     hpux9*)
26385       if test "$GCC" = yes; then
26386         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26387       else
26388         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'
26389       fi
26390       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26391       hardcode_libdir_separator=:
26392       hardcode_direct=yes
26393
26394       # hardcode_minus_L: Not really in the search PATH,
26395       # but as the default location of the library.
26396       hardcode_minus_L=yes
26397       export_dynamic_flag_spec='${wl}-E'
26398       ;;
26399
26400     hpux10* | hpux11*)
26401       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26402         case $host_cpu in
26403         hppa*64*|ia64*)
26404           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26405           ;;
26406         *)
26407           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26408           ;;
26409         esac
26410       else
26411         case $host_cpu in
26412         hppa*64*|ia64*)
26413           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
26414           ;;
26415         *)
26416           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26417           ;;
26418         esac
26419       fi
26420       if test "$with_gnu_ld" = no; then
26421         case $host_cpu in
26422         hppa*64*)
26423           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26424           hardcode_libdir_flag_spec_ld='+b $libdir'
26425           hardcode_libdir_separator=:
26426           hardcode_direct=no
26427           hardcode_shlibpath_var=no
26428           ;;
26429         ia64*)
26430           hardcode_libdir_flag_spec='-L$libdir'
26431           hardcode_direct=no
26432           hardcode_shlibpath_var=no
26433
26434           # hardcode_minus_L: Not really in the search PATH,
26435           # but as the default location of the library.
26436           hardcode_minus_L=yes
26437           ;;
26438         *)
26439           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
26440           hardcode_libdir_separator=:
26441           hardcode_direct=yes
26442           export_dynamic_flag_spec='${wl}-E'
26443
26444           # hardcode_minus_L: Not really in the search PATH,
26445           # but as the default location of the library.
26446           hardcode_minus_L=yes
26447           ;;
26448         esac
26449       fi
26450       ;;
26451
26452     irix5* | irix6* | nonstopux*)
26453       if test "$GCC" = yes; then
26454         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'
26455       else
26456         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'
26457         hardcode_libdir_flag_spec_ld='-rpath $libdir'
26458       fi
26459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26460       hardcode_libdir_separator=:
26461       link_all_deplibs=yes
26462       ;;
26463
26464     netbsd*)
26465       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26466         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
26467       else
26468         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
26469       fi
26470       hardcode_libdir_flag_spec='-R$libdir'
26471       hardcode_direct=yes
26472       hardcode_shlibpath_var=no
26473       ;;
26474
26475     newsos6)
26476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26477       hardcode_direct=yes
26478       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26479       hardcode_libdir_separator=:
26480       hardcode_shlibpath_var=no
26481       ;;
26482
26483     openbsd*)
26484       hardcode_direct=yes
26485       hardcode_shlibpath_var=no
26486       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26487         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26488         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
26489         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
26490         export_dynamic_flag_spec='${wl}-E'
26491       else
26492        case $host_os in
26493          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26494            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26495            hardcode_libdir_flag_spec='-R$libdir'
26496            ;;
26497          *)
26498            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26499            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
26500            ;;
26501        esac
26502       fi
26503       ;;
26504
26505     os2*)
26506       hardcode_libdir_flag_spec='-L$libdir'
26507       hardcode_minus_L=yes
26508       allow_undefined_flag=unsupported
26509       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'
26510       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26511       ;;
26512
26513     osf3*)
26514       if test "$GCC" = yes; then
26515         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
26516         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'
26517       else
26518         allow_undefined_flag=' -expect_unresolved \*'
26519         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'
26520       fi
26521       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26522       hardcode_libdir_separator=:
26523       ;;
26524
26525     osf4* | osf5*)      # as osf3* with the addition of -msym flag
26526       if test "$GCC" = yes; then
26527         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
26528         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'
26529         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
26530       else
26531         allow_undefined_flag=' -expect_unresolved \*'
26532         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'
26533         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
26534         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
26535
26536         # Both c and cxx compiler support -rpath directly
26537         hardcode_libdir_flag_spec='-rpath $libdir'
26538       fi
26539       hardcode_libdir_separator=:
26540       ;;
26541
26542     sco3.2v5*)
26543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26544       hardcode_shlibpath_var=no
26545       export_dynamic_flag_spec='${wl}-Bexport'
26546       runpath_var=LD_RUN_PATH
26547       hardcode_runpath_var=yes
26548       ;;
26549
26550     solaris*)
26551       no_undefined_flag=' -z text'
26552       if test "$GCC" = yes; then
26553         wlarc='${wl}'
26554         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26555         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26556           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26557       else
26558         wlarc=''
26559         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26560         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26561         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26562       fi
26563       hardcode_libdir_flag_spec='-R$libdir'
26564       hardcode_shlibpath_var=no
26565       case $host_os in
26566       solaris2.[0-5] | solaris2.[0-5].*) ;;
26567       *)
26568         # The compiler driver will combine linker options so we
26569         # cannot just pass the convience library names through
26570         # without $wl, iff we do not link with $LD.
26571         # Luckily, gcc supports the same syntax we need for Sun Studio.
26572         # Supported since Solaris 2.6 (maybe 2.5.1?)
26573         case $wlarc in
26574         '')
26575           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
26576         *)
26577           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
26578         esac ;;
26579       esac
26580       link_all_deplibs=yes
26581       ;;
26582
26583     sunos4*)
26584       if test "x$host_vendor" = xsequent; then
26585         # Use $CC to link under sequent, because it throws in some extra .o
26586         # files that make .init and .fini sections work.
26587         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26588       else
26589         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26590       fi
26591       hardcode_libdir_flag_spec='-L$libdir'
26592       hardcode_direct=yes
26593       hardcode_minus_L=yes
26594       hardcode_shlibpath_var=no
26595       ;;
26596
26597     sysv4)
26598       case $host_vendor in
26599         sni)
26600           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26601           hardcode_direct=yes # is this really true???
26602         ;;
26603         siemens)
26604           ## LD is ld it makes a PLAMLIB
26605           ## CC just makes a GrossModule.
26606           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26607           reload_cmds='$CC -r -o $output$reload_objs'
26608           hardcode_direct=no
26609         ;;
26610         motorola)
26611           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26612           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
26613         ;;
26614       esac
26615       runpath_var='LD_RUN_PATH'
26616       hardcode_shlibpath_var=no
26617       ;;
26618
26619     sysv4.3*)
26620       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26621       hardcode_shlibpath_var=no
26622       export_dynamic_flag_spec='-Bexport'
26623       ;;
26624
26625     sysv4*MP*)
26626       if test -d /usr/nec; then
26627         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26628         hardcode_shlibpath_var=no
26629         runpath_var=LD_RUN_PATH
26630         hardcode_runpath_var=yes
26631         ld_shlibs=yes
26632       fi
26633       ;;
26634
26635     sysv4.2uw2*)
26636       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26637       hardcode_direct=yes
26638       hardcode_minus_L=no
26639       hardcode_shlibpath_var=no
26640       hardcode_runpath_var=yes
26641       runpath_var=LD_RUN_PATH
26642       ;;
26643
26644    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
26645       no_undefined_flag='${wl}-z ${wl}text'
26646       if test "$GCC" = yes; then
26647         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26648       else
26649         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26650       fi
26651       runpath_var='LD_RUN_PATH'
26652       hardcode_shlibpath_var=no
26653       ;;
26654
26655     sysv5*)
26656       no_undefined_flag=' -z text'
26657       # $CC -shared without GNU ld will not create a library from C++
26658       # object files and a static libstdc++, better avoid it by now
26659       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26660       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26661                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26662       hardcode_libdir_flag_spec=
26663       hardcode_shlibpath_var=no
26664       runpath_var='LD_RUN_PATH'
26665       ;;
26666
26667     uts4*)
26668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26669       hardcode_libdir_flag_spec='-L$libdir'
26670       hardcode_shlibpath_var=no
26671       ;;
26672
26673     *)
26674       ld_shlibs=no
26675       ;;
26676     esac
26677   fi
26678
26679 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
26680 echo "${ECHO_T}$ld_shlibs" >&6
26681 test "$ld_shlibs" = no && can_build_shared=no
26682
26683 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26684 if test "$GCC" = yes; then
26685   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26686 fi
26687
26688 #
26689 # Do we need to explicitly link libc?
26690 #
26691 case "x$archive_cmds_need_lc" in
26692 x|xyes)
26693   # Assume -lc should be added
26694   archive_cmds_need_lc=yes
26695
26696   if test "$enable_shared" = yes && test "$GCC" = yes; then
26697     case $archive_cmds in
26698     *'~'*)
26699       # FIXME: we may have to deal with multi-command sequences.
26700       ;;
26701     '$CC '*)
26702       # Test whether the compiler implicitly links with -lc since on some
26703       # systems, -lgcc has to come before -lc. If gcc already passes -lc
26704       # to ld, don't add -lc before -lgcc.
26705       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26706 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26707       $rm conftest*
26708       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26709
26710       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26711   (eval $ac_compile) 2>&5
26712   ac_status=$?
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); } 2>conftest.err; then
26715         soname=conftest
26716         lib=conftest
26717         libobjs=conftest.$ac_objext
26718         deplibs=
26719         wl=$lt_prog_compiler_wl
26720         compiler_flags=-v
26721         linker_flags=-v
26722         verstring=
26723         output_objdir=.
26724         libname=conftest
26725         lt_save_allow_undefined_flag=$allow_undefined_flag
26726         allow_undefined_flag=
26727         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26728   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26729   ac_status=$?
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); }
26732         then
26733           archive_cmds_need_lc=no
26734         else
26735           archive_cmds_need_lc=yes
26736         fi
26737         allow_undefined_flag=$lt_save_allow_undefined_flag
26738       else
26739         cat conftest.err 1>&5
26740       fi
26741       $rm conftest*
26742       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
26743 echo "${ECHO_T}$archive_cmds_need_lc" >&6
26744       ;;
26745     esac
26746   fi
26747   ;;
26748 esac
26749
26750 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26751 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26752 library_names_spec=
26753 libname_spec='lib$name'
26754 soname_spec=
26755 shrext_cmds=".so"
26756 postinstall_cmds=
26757 postuninstall_cmds=
26758 finish_cmds=
26759 finish_eval=
26760 shlibpath_var=
26761 shlibpath_overrides_runpath=unknown
26762 version_type=none
26763 dynamic_linker="$host_os ld.so"
26764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26765 if test "$GCC" = yes; then
26766   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26767   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26768     # if the path contains ";" then we assume it to be the separator
26769     # otherwise default to the standard path separator (i.e. ":") - it is
26770     # assumed that no part of a normal pathname contains ";" but that should
26771     # okay in the real world where ";" in dirpaths is itself problematic.
26772     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26773   else
26774     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26775   fi
26776 else
26777   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26778 fi
26779 need_lib_prefix=unknown
26780 hardcode_into_libs=no
26781
26782 # when you set need_version to no, make sure it does not cause -set_version
26783 # flags to be left without arguments
26784 need_version=unknown
26785
26786 case $host_os in
26787 aix3*)
26788   version_type=linux
26789   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26790   shlibpath_var=LIBPATH
26791
26792   # AIX 3 has no versioning support, so we append a major version to the name.
26793   soname_spec='${libname}${release}${shared_ext}$major'
26794   ;;
26795
26796 aix4* | aix5*)
26797   version_type=linux
26798   need_lib_prefix=no
26799   need_version=no
26800   hardcode_into_libs=yes
26801   if test "$host_cpu" = ia64; then
26802     # AIX 5 supports IA64
26803     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26804     shlibpath_var=LD_LIBRARY_PATH
26805   else
26806     # With GCC up to 2.95.x, collect2 would create an import file
26807     # for dependence libraries.  The import file would start with
26808     # the line `#! .'.  This would cause the generated library to
26809     # depend on `.', always an invalid library.  This was fixed in
26810     # development snapshots of GCC prior to 3.0.
26811     case $host_os in
26812       aix4 | aix4.[01] | aix4.[01].*)
26813       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26814            echo ' yes '
26815            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26816         :
26817       else
26818         can_build_shared=no
26819       fi
26820       ;;
26821     esac
26822     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26823     # soname into executable. Probably we can add versioning support to
26824     # collect2, so additional links can be useful in future.
26825     if test "$aix_use_runtimelinking" = yes; then
26826       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26827       # instead of lib<name>.a to let people know that these are not
26828       # typical AIX shared libraries.
26829       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26830     else
26831       # We preserve .a as extension for shared libraries through AIX4.2
26832       # and later when we are not doing run time linking.
26833       library_names_spec='${libname}${release}.a $libname.a'
26834       soname_spec='${libname}${release}${shared_ext}$major'
26835     fi
26836     shlibpath_var=LIBPATH
26837   fi
26838   ;;
26839
26840 amigaos*)
26841   library_names_spec='$libname.ixlibrary $libname.a'
26842   # Create ${libname}_ixlibrary.a entries in /sys/libs.
26843   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'
26844   ;;
26845
26846 beos*)
26847   library_names_spec='${libname}${shared_ext}'
26848   dynamic_linker="$host_os ld.so"
26849   shlibpath_var=LIBRARY_PATH
26850   ;;
26851
26852 bsdi[45]*)
26853   version_type=linux
26854   need_version=no
26855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26856   soname_spec='${libname}${release}${shared_ext}$major'
26857   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26858   shlibpath_var=LD_LIBRARY_PATH
26859   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26860   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26861   # the default ld.so.conf also contains /usr/contrib/lib and
26862   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26863   # libtool to hard-code these into programs
26864   ;;
26865
26866 cygwin* | mingw* | pw32*)
26867   version_type=windows
26868   shrext_cmds=".dll"
26869   need_version=no
26870   need_lib_prefix=no
26871
26872   case $GCC,$host_os in
26873   yes,cygwin* | yes,mingw* | yes,pw32*)
26874     library_names_spec='$libname.dll.a'
26875     # DLL is installed to $(libdir)/../bin by postinstall_cmds
26876     postinstall_cmds='base_file=`basename \${file}`~
26877       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26878       dldir=$destdir/`dirname \$dlpath`~
26879       test -d \$dldir || mkdir -p \$dldir~
26880       $install_prog $dir/$dlname \$dldir/$dlname~
26881       chmod a+x \$dldir/$dlname'
26882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26883       dlpath=$dir/\$dldll~
26884        $rm \$dlpath'
26885     shlibpath_overrides_runpath=yes
26886
26887     case $host_os in
26888     cygwin*)
26889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26891       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26892       ;;
26893     mingw*)
26894       # MinGW DLLs use traditional 'lib' prefix
26895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26896       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26897       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26898         # It is most probably a Windows format PATH printed by
26899         # mingw gcc, but we are running on Cygwin. Gcc prints its search
26900         # path with ; separators, and with drive letters. We can handle the
26901         # drive letters (cygwin fileutils understands them), so leave them,
26902         # especially as we might pass files found there to a mingw objdump,
26903         # which wouldn't understand a cygwinified path. Ahh.
26904         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26905       else
26906         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26907       fi
26908       ;;
26909     pw32*)
26910       # pw32 DLLs use 'pw' prefix rather than 'lib'
26911       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26912       ;;
26913     esac
26914     ;;
26915
26916   *)
26917     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26918     ;;
26919   esac
26920   dynamic_linker='Win32 ld.exe'
26921   # FIXME: first we should search . and the directory the executable is in
26922   shlibpath_var=PATH
26923   ;;
26924
26925 darwin* | rhapsody*)
26926   dynamic_linker="$host_os dyld"
26927   version_type=darwin
26928   need_lib_prefix=no
26929   need_version=no
26930   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26931   soname_spec='${libname}${release}${major}$shared_ext'
26932   shlibpath_overrides_runpath=yes
26933   shlibpath_var=DYLD_LIBRARY_PATH
26934   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26935   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26936   if test "$GCC" = yes; then
26937     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
26938   else
26939     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26940   fi
26941   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26942   ;;
26943
26944 dgux*)
26945   version_type=linux
26946   need_lib_prefix=no
26947   need_version=no
26948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26949   soname_spec='${libname}${release}${shared_ext}$major'
26950   shlibpath_var=LD_LIBRARY_PATH
26951   ;;
26952
26953 freebsd1*)
26954   dynamic_linker=no
26955   ;;
26956
26957 kfreebsd*-gnu)
26958   version_type=linux
26959   need_lib_prefix=no
26960   need_version=no
26961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26962   soname_spec='${libname}${release}${shared_ext}$major'
26963   shlibpath_var=LD_LIBRARY_PATH
26964   shlibpath_overrides_runpath=no
26965   hardcode_into_libs=yes
26966   dynamic_linker='GNU ld.so'
26967   ;;
26968
26969 freebsd* | dragonfly*)
26970   # DragonFly does not have aout.  When/if they implement a new
26971   # versioning mechanism, adjust this.
26972   if test -x /usr/bin/objformat; then
26973     objformat=`/usr/bin/objformat`
26974   else
26975     case $host_os in
26976     freebsd[123]*) objformat=aout ;;
26977     *) objformat=elf ;;
26978     esac
26979   fi
26980   version_type=freebsd-$objformat
26981   case $version_type in
26982     freebsd-elf*)
26983       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26984       need_version=no
26985       need_lib_prefix=no
26986       ;;
26987     freebsd-*)
26988       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26989       need_version=yes
26990       ;;
26991   esac
26992   shlibpath_var=LD_LIBRARY_PATH
26993   case $host_os in
26994   freebsd2*)
26995     shlibpath_overrides_runpath=yes
26996     ;;
26997   freebsd3.[01]* | freebsdelf3.[01]*)
26998     shlibpath_overrides_runpath=yes
26999     hardcode_into_libs=yes
27000     ;;
27001   *) # from 3.2 on
27002     shlibpath_overrides_runpath=no
27003     hardcode_into_libs=yes
27004     ;;
27005   esac
27006   ;;
27007
27008 gnu*)
27009   version_type=linux
27010   need_lib_prefix=no
27011   need_version=no
27012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27013   soname_spec='${libname}${release}${shared_ext}$major'
27014   shlibpath_var=LD_LIBRARY_PATH
27015   hardcode_into_libs=yes
27016   ;;
27017
27018 hpux9* | hpux10* | hpux11*)
27019   # Give a soname corresponding to the major version so that dld.sl refuses to
27020   # link against other versions.
27021   version_type=sunos
27022   need_lib_prefix=no
27023   need_version=no
27024   case $host_cpu in
27025   ia64*)
27026     shrext_cmds='.so'
27027     hardcode_into_libs=yes
27028     dynamic_linker="$host_os dld.so"
27029     shlibpath_var=LD_LIBRARY_PATH
27030     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27032     soname_spec='${libname}${release}${shared_ext}$major'
27033     if test "X$HPUX_IA64_MODE" = X32; then
27034       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27035     else
27036       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27037     fi
27038     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27039     ;;
27040    hppa*64*)
27041      shrext_cmds='.sl'
27042      hardcode_into_libs=yes
27043      dynamic_linker="$host_os dld.sl"
27044      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27045      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27047      soname_spec='${libname}${release}${shared_ext}$major'
27048      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27049      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27050      ;;
27051    *)
27052     shrext_cmds='.sl'
27053     dynamic_linker="$host_os dld.sl"
27054     shlibpath_var=SHLIB_PATH
27055     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27057     soname_spec='${libname}${release}${shared_ext}$major'
27058     ;;
27059   esac
27060   # HP-UX runs *really* slowly unless shared libraries are mode 555.
27061   postinstall_cmds='chmod 555 $lib'
27062   ;;
27063
27064 irix5* | irix6* | nonstopux*)
27065   case $host_os in
27066     nonstopux*) version_type=nonstopux ;;
27067     *)
27068         if test "$lt_cv_prog_gnu_ld" = yes; then
27069                 version_type=linux
27070         else
27071                 version_type=irix
27072         fi ;;
27073   esac
27074   need_lib_prefix=no
27075   need_version=no
27076   soname_spec='${libname}${release}${shared_ext}$major'
27077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
27078   case $host_os in
27079   irix5* | nonstopux*)
27080     libsuff= shlibsuff=
27081     ;;
27082   *)
27083     case $LD in # libtool.m4 will add one of these switches to LD
27084     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27085       libsuff= shlibsuff= libmagic=32-bit;;
27086     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27087       libsuff=32 shlibsuff=N32 libmagic=N32;;
27088     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27089       libsuff=64 shlibsuff=64 libmagic=64-bit;;
27090     *) libsuff= shlibsuff= libmagic=never-match;;
27091     esac
27092     ;;
27093   esac
27094   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27095   shlibpath_overrides_runpath=no
27096   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27097   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27098   hardcode_into_libs=yes
27099   ;;
27100
27101 # No shared lib support for Linux oldld, aout, or coff.
27102 linux*oldld* | linux*aout* | linux*coff*)
27103   dynamic_linker=no
27104   ;;
27105
27106 # This must be Linux ELF.
27107 linux*)
27108   version_type=linux
27109   need_lib_prefix=no
27110   need_version=no
27111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27112   soname_spec='${libname}${release}${shared_ext}$major'
27113   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27114   shlibpath_var=LD_LIBRARY_PATH
27115   shlibpath_overrides_runpath=no
27116   # This implies no fast_install, which is unacceptable.
27117   # Some rework will be needed to allow for fast_install
27118   # before this can be enabled.
27119   hardcode_into_libs=yes
27120
27121   # Append ld.so.conf contents to the search path
27122   if test -f /etc/ld.so.conf; then
27123     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
27124     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27125   fi
27126
27127   # We used to test for /lib/ld.so.1 and disable shared libraries on
27128   # powerpc, because MkLinux only supported shared libraries with the
27129   # GNU dynamic linker.  Since this was broken with cross compilers,
27130   # most powerpc-linux boxes support dynamic linking these days and
27131   # people can always --disable-shared, the test was removed, and we
27132   # assume the GNU/Linux dynamic linker is in use.
27133   dynamic_linker='GNU/Linux ld.so'
27134   ;;
27135
27136 knetbsd*-gnu)
27137   version_type=linux
27138   need_lib_prefix=no
27139   need_version=no
27140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27141   soname_spec='${libname}${release}${shared_ext}$major'
27142   shlibpath_var=LD_LIBRARY_PATH
27143   shlibpath_overrides_runpath=no
27144   hardcode_into_libs=yes
27145   dynamic_linker='GNU ld.so'
27146   ;;
27147
27148 netbsd*)
27149   version_type=sunos
27150   need_lib_prefix=no
27151   need_version=no
27152   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27154     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27155     dynamic_linker='NetBSD (a.out) ld.so'
27156   else
27157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27158     soname_spec='${libname}${release}${shared_ext}$major'
27159     dynamic_linker='NetBSD ld.elf_so'
27160   fi
27161   shlibpath_var=LD_LIBRARY_PATH
27162   shlibpath_overrides_runpath=yes
27163   hardcode_into_libs=yes
27164   ;;
27165
27166 newsos6)
27167   version_type=linux
27168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27169   shlibpath_var=LD_LIBRARY_PATH
27170   shlibpath_overrides_runpath=yes
27171   ;;
27172
27173 nto-qnx*)
27174   version_type=linux
27175   need_lib_prefix=no
27176   need_version=no
27177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27178   soname_spec='${libname}${release}${shared_ext}$major'
27179   shlibpath_var=LD_LIBRARY_PATH
27180   shlibpath_overrides_runpath=yes
27181   ;;
27182
27183 openbsd*)
27184   version_type=sunos
27185   need_lib_prefix=no
27186   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
27187   case $host_os in
27188     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
27189     *)                         need_version=no  ;;
27190   esac
27191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27192   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27193   shlibpath_var=LD_LIBRARY_PATH
27194   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27195     case $host_os in
27196       openbsd2.[89] | openbsd2.[89].*)
27197         shlibpath_overrides_runpath=no
27198         ;;
27199       *)
27200         shlibpath_overrides_runpath=yes
27201         ;;
27202       esac
27203   else
27204     shlibpath_overrides_runpath=yes
27205   fi
27206   ;;
27207
27208 os2*)
27209   libname_spec='$name'
27210   shrext_cmds=".dll"
27211   need_lib_prefix=no
27212   library_names_spec='$libname${shared_ext} $libname.a'
27213   dynamic_linker='OS/2 ld.exe'
27214   shlibpath_var=LIBPATH
27215   ;;
27216
27217 osf3* | osf4* | osf5*)
27218   version_type=osf
27219   need_lib_prefix=no
27220   need_version=no
27221   soname_spec='${libname}${release}${shared_ext}$major'
27222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27223   shlibpath_var=LD_LIBRARY_PATH
27224   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27225   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27226   ;;
27227
27228 sco3.2v5*)
27229   version_type=osf
27230   soname_spec='${libname}${release}${shared_ext}$major'
27231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27232   shlibpath_var=LD_LIBRARY_PATH
27233   ;;
27234
27235 solaris*)
27236   version_type=linux
27237   need_lib_prefix=no
27238   need_version=no
27239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27240   soname_spec='${libname}${release}${shared_ext}$major'
27241   shlibpath_var=LD_LIBRARY_PATH
27242   shlibpath_overrides_runpath=yes
27243   hardcode_into_libs=yes
27244   # ldd complains unless libraries are executable
27245   postinstall_cmds='chmod +x $lib'
27246   ;;
27247
27248 sunos4*)
27249   version_type=sunos
27250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27251   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27252   shlibpath_var=LD_LIBRARY_PATH
27253   shlibpath_overrides_runpath=yes
27254   if test "$with_gnu_ld" = yes; then
27255     need_lib_prefix=no
27256   fi
27257   need_version=yes
27258   ;;
27259
27260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
27261   version_type=linux
27262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27263   soname_spec='${libname}${release}${shared_ext}$major'
27264   shlibpath_var=LD_LIBRARY_PATH
27265   case $host_vendor in
27266     sni)
27267       shlibpath_overrides_runpath=no
27268       need_lib_prefix=no
27269       export_dynamic_flag_spec='${wl}-Blargedynsym'
27270       runpath_var=LD_RUN_PATH
27271       ;;
27272     siemens)
27273       need_lib_prefix=no
27274       ;;
27275     motorola)
27276       need_lib_prefix=no
27277       need_version=no
27278       shlibpath_overrides_runpath=no
27279       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27280       ;;
27281   esac
27282   ;;
27283
27284 sysv4*MP*)
27285   if test -d /usr/nec ;then
27286     version_type=linux
27287     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27288     soname_spec='$libname${shared_ext}.$major'
27289     shlibpath_var=LD_LIBRARY_PATH
27290   fi
27291   ;;
27292
27293 uts4*)
27294   version_type=linux
27295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27296   soname_spec='${libname}${release}${shared_ext}$major'
27297   shlibpath_var=LD_LIBRARY_PATH
27298   ;;
27299
27300 *)
27301   dynamic_linker=no
27302   ;;
27303 esac
27304 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27305 echo "${ECHO_T}$dynamic_linker" >&6
27306 test "$dynamic_linker" = no && can_build_shared=no
27307
27308 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27309 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
27310 hardcode_action=
27311 if test -n "$hardcode_libdir_flag_spec" || \
27312    test -n "$runpath_var" || \
27313    test "X$hardcode_automatic" = "Xyes" ; then
27314
27315   # We can hardcode non-existant directories.
27316   if test "$hardcode_direct" != no &&
27317      # If the only mechanism to avoid hardcoding is shlibpath_var, we
27318      # have to relink, otherwise we might link with an installed library
27319      # when we should be linking with a yet-to-be-installed one
27320      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
27321      test "$hardcode_minus_L" != no; then
27322     # Linking always hardcodes the temporary library directory.
27323     hardcode_action=relink
27324   else
27325     # We can link without hardcoding, and we can hardcode nonexisting dirs.
27326     hardcode_action=immediate
27327   fi
27328 else
27329   # We cannot hardcode anything, or else we can only hardcode existing
27330   # directories.
27331   hardcode_action=unsupported
27332 fi
27333 echo "$as_me:$LINENO: result: $hardcode_action" >&5
27334 echo "${ECHO_T}$hardcode_action" >&6
27335
27336 if test "$hardcode_action" = relink; then
27337   # Fast installation is not supported
27338   enable_fast_install=no
27339 elif test "$shlibpath_overrides_runpath" = yes ||
27340      test "$enable_shared" = no; then
27341   # Fast installation is not necessary
27342   enable_fast_install=needless
27343 fi
27344
27345 striplib=
27346 old_striplib=
27347 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
27348 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
27349 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
27350   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
27351   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
27352   echo "$as_me:$LINENO: result: yes" >&5
27353 echo "${ECHO_T}yes" >&6
27354 else
27355 # FIXME - insert some real tests, host_os isn't really good enough
27356   case $host_os in
27357    darwin*)
27358        if test -n "$STRIP" ; then
27359          striplib="$STRIP -x"
27360          echo "$as_me:$LINENO: result: yes" >&5
27361 echo "${ECHO_T}yes" >&6
27362        else
27363   echo "$as_me:$LINENO: result: no" >&5
27364 echo "${ECHO_T}no" >&6
27365 fi
27366        ;;
27367    *)
27368   echo "$as_me:$LINENO: result: no" >&5
27369 echo "${ECHO_T}no" >&6
27370     ;;
27371   esac
27372 fi
27373
27374 if test "x$enable_dlopen" != xyes; then
27375   enable_dlopen=unknown
27376   enable_dlopen_self=unknown
27377   enable_dlopen_self_static=unknown
27378 else
27379   lt_cv_dlopen=no
27380   lt_cv_dlopen_libs=
27381
27382   case $host_os in
27383   beos*)
27384     lt_cv_dlopen="load_add_on"
27385     lt_cv_dlopen_libs=
27386     lt_cv_dlopen_self=yes
27387     ;;
27388
27389   mingw* | pw32*)
27390     lt_cv_dlopen="LoadLibrary"
27391     lt_cv_dlopen_libs=
27392    ;;
27393
27394   cygwin*)
27395     lt_cv_dlopen="dlopen"
27396     lt_cv_dlopen_libs=
27397    ;;
27398
27399   darwin*)
27400   # if libdl is installed we need to link against it
27401     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27402 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27403 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27404   echo $ECHO_N "(cached) $ECHO_C" >&6
27405 else
27406   ac_check_lib_save_LIBS=$LIBS
27407 LIBS="-ldl  $LIBS"
27408 cat >conftest.$ac_ext <<_ACEOF
27409 /* confdefs.h.  */
27410 _ACEOF
27411 cat confdefs.h >>conftest.$ac_ext
27412 cat >>conftest.$ac_ext <<_ACEOF
27413 /* end confdefs.h.  */
27414
27415 /* Override any gcc2 internal prototype to avoid an error.  */
27416 #ifdef __cplusplus
27417 extern "C"
27418 #endif
27419 /* We use char because int might match the return type of a gcc2
27420    builtin and then its argument prototype would still apply.  */
27421 char dlopen ();
27422 int
27423 main ()
27424 {
27425 dlopen ();
27426   ;
27427   return 0;
27428 }
27429 _ACEOF
27430 rm -f conftest.$ac_objext conftest$ac_exeext
27431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27432   (eval $ac_link) 2>conftest.er1
27433   ac_status=$?
27434   grep -v '^ *+' conftest.er1 >conftest.err
27435   rm -f conftest.er1
27436   cat conftest.err >&5
27437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438   (exit $ac_status); } &&
27439          { ac_try='test -z "$ac_c_werror_flag"
27440                          || test ! -s conftest.err'
27441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442   (eval $ac_try) 2>&5
27443   ac_status=$?
27444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445   (exit $ac_status); }; } &&
27446          { ac_try='test -s conftest$ac_exeext'
27447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27448   (eval $ac_try) 2>&5
27449   ac_status=$?
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); }; }; then
27452   ac_cv_lib_dl_dlopen=yes
27453 else
27454   echo "$as_me: failed program was:" >&5
27455 sed 's/^/| /' conftest.$ac_ext >&5
27456
27457 ac_cv_lib_dl_dlopen=no
27458 fi
27459 rm -f conftest.err conftest.$ac_objext \
27460       conftest$ac_exeext conftest.$ac_ext
27461 LIBS=$ac_check_lib_save_LIBS
27462 fi
27463 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27464 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27465 if test $ac_cv_lib_dl_dlopen = yes; then
27466   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27467 else
27468
27469     lt_cv_dlopen="dyld"
27470     lt_cv_dlopen_libs=
27471     lt_cv_dlopen_self=yes
27472
27473 fi
27474
27475    ;;
27476
27477   *)
27478     echo "$as_me:$LINENO: checking for shl_load" >&5
27479 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
27480 if test "${ac_cv_func_shl_load+set}" = set; then
27481   echo $ECHO_N "(cached) $ECHO_C" >&6
27482 else
27483   cat >conftest.$ac_ext <<_ACEOF
27484 /* confdefs.h.  */
27485 _ACEOF
27486 cat confdefs.h >>conftest.$ac_ext
27487 cat >>conftest.$ac_ext <<_ACEOF
27488 /* end confdefs.h.  */
27489 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
27490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27491 #define shl_load innocuous_shl_load
27492
27493 /* System header to define __stub macros and hopefully few prototypes,
27494     which can conflict with char shl_load (); below.
27495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27496     <limits.h> exists even on freestanding compilers.  */
27497
27498 #ifdef __STDC__
27499 # include <limits.h>
27500 #else
27501 # include <assert.h>
27502 #endif
27503
27504 #undef shl_load
27505
27506 /* Override any gcc2 internal prototype to avoid an error.  */
27507 #ifdef __cplusplus
27508 extern "C"
27509 {
27510 #endif
27511 /* We use char because int might match the return type of a gcc2
27512    builtin and then its argument prototype would still apply.  */
27513 char shl_load ();
27514 /* The GNU C library defines this for functions which it implements
27515     to always fail with ENOSYS.  Some functions are actually named
27516     something starting with __ and the normal name is an alias.  */
27517 #if defined (__stub_shl_load) || defined (__stub___shl_load)
27518 choke me
27519 #else
27520 char (*f) () = shl_load;
27521 #endif
27522 #ifdef __cplusplus
27523 }
27524 #endif
27525
27526 int
27527 main ()
27528 {
27529 return f != shl_load;
27530   ;
27531   return 0;
27532 }
27533 _ACEOF
27534 rm -f conftest.$ac_objext conftest$ac_exeext
27535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27536   (eval $ac_link) 2>conftest.er1
27537   ac_status=$?
27538   grep -v '^ *+' conftest.er1 >conftest.err
27539   rm -f conftest.er1
27540   cat conftest.err >&5
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); } &&
27543          { ac_try='test -z "$ac_c_werror_flag"
27544                          || test ! -s conftest.err'
27545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27546   (eval $ac_try) 2>&5
27547   ac_status=$?
27548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); }; } &&
27550          { ac_try='test -s conftest$ac_exeext'
27551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27552   (eval $ac_try) 2>&5
27553   ac_status=$?
27554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555   (exit $ac_status); }; }; then
27556   ac_cv_func_shl_load=yes
27557 else
27558   echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27560
27561 ac_cv_func_shl_load=no
27562 fi
27563 rm -f conftest.err conftest.$ac_objext \
27564       conftest$ac_exeext conftest.$ac_ext
27565 fi
27566 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
27567 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
27568 if test $ac_cv_func_shl_load = yes; then
27569   lt_cv_dlopen="shl_load"
27570 else
27571   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
27572 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
27573 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
27574   echo $ECHO_N "(cached) $ECHO_C" >&6
27575 else
27576   ac_check_lib_save_LIBS=$LIBS
27577 LIBS="-ldld  $LIBS"
27578 cat >conftest.$ac_ext <<_ACEOF
27579 /* confdefs.h.  */
27580 _ACEOF
27581 cat confdefs.h >>conftest.$ac_ext
27582 cat >>conftest.$ac_ext <<_ACEOF
27583 /* end confdefs.h.  */
27584
27585 /* Override any gcc2 internal prototype to avoid an error.  */
27586 #ifdef __cplusplus
27587 extern "C"
27588 #endif
27589 /* We use char because int might match the return type of a gcc2
27590    builtin and then its argument prototype would still apply.  */
27591 char shl_load ();
27592 int
27593 main ()
27594 {
27595 shl_load ();
27596   ;
27597   return 0;
27598 }
27599 _ACEOF
27600 rm -f conftest.$ac_objext conftest$ac_exeext
27601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27602   (eval $ac_link) 2>conftest.er1
27603   ac_status=$?
27604   grep -v '^ *+' conftest.er1 >conftest.err
27605   rm -f conftest.er1
27606   cat conftest.err >&5
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } &&
27609          { ac_try='test -z "$ac_c_werror_flag"
27610                          || test ! -s conftest.err'
27611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612   (eval $ac_try) 2>&5
27613   ac_status=$?
27614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615   (exit $ac_status); }; } &&
27616          { ac_try='test -s conftest$ac_exeext'
27617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27618   (eval $ac_try) 2>&5
27619   ac_status=$?
27620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621   (exit $ac_status); }; }; then
27622   ac_cv_lib_dld_shl_load=yes
27623 else
27624   echo "$as_me: failed program was:" >&5
27625 sed 's/^/| /' conftest.$ac_ext >&5
27626
27627 ac_cv_lib_dld_shl_load=no
27628 fi
27629 rm -f conftest.err conftest.$ac_objext \
27630       conftest$ac_exeext conftest.$ac_ext
27631 LIBS=$ac_check_lib_save_LIBS
27632 fi
27633 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
27634 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
27635 if test $ac_cv_lib_dld_shl_load = yes; then
27636   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
27637 else
27638   echo "$as_me:$LINENO: checking for dlopen" >&5
27639 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27640 if test "${ac_cv_func_dlopen+set}" = set; then
27641   echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643   cat >conftest.$ac_ext <<_ACEOF
27644 /* confdefs.h.  */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h.  */
27649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
27650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27651 #define dlopen innocuous_dlopen
27652
27653 /* System header to define __stub macros and hopefully few prototypes,
27654     which can conflict with char dlopen (); below.
27655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27656     <limits.h> exists even on freestanding compilers.  */
27657
27658 #ifdef __STDC__
27659 # include <limits.h>
27660 #else
27661 # include <assert.h>
27662 #endif
27663
27664 #undef dlopen
27665
27666 /* Override any gcc2 internal prototype to avoid an error.  */
27667 #ifdef __cplusplus
27668 extern "C"
27669 {
27670 #endif
27671 /* We use char because int might match the return type of a gcc2
27672    builtin and then its argument prototype would still apply.  */
27673 char dlopen ();
27674 /* The GNU C library defines this for functions which it implements
27675     to always fail with ENOSYS.  Some functions are actually named
27676     something starting with __ and the normal name is an alias.  */
27677 #if defined (__stub_dlopen) || defined (__stub___dlopen)
27678 choke me
27679 #else
27680 char (*f) () = dlopen;
27681 #endif
27682 #ifdef __cplusplus
27683 }
27684 #endif
27685
27686 int
27687 main ()
27688 {
27689 return f != dlopen;
27690   ;
27691   return 0;
27692 }
27693 _ACEOF
27694 rm -f conftest.$ac_objext conftest$ac_exeext
27695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27696   (eval $ac_link) 2>conftest.er1
27697   ac_status=$?
27698   grep -v '^ *+' conftest.er1 >conftest.err
27699   rm -f conftest.er1
27700   cat conftest.err >&5
27701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702   (exit $ac_status); } &&
27703          { ac_try='test -z "$ac_c_werror_flag"
27704                          || test ! -s conftest.err'
27705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706   (eval $ac_try) 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); }; } &&
27710          { ac_try='test -s conftest$ac_exeext'
27711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712   (eval $ac_try) 2>&5
27713   ac_status=$?
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); }; }; then
27716   ac_cv_func_dlopen=yes
27717 else
27718   echo "$as_me: failed program was:" >&5
27719 sed 's/^/| /' conftest.$ac_ext >&5
27720
27721 ac_cv_func_dlopen=no
27722 fi
27723 rm -f conftest.err conftest.$ac_objext \
27724       conftest$ac_exeext conftest.$ac_ext
27725 fi
27726 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27727 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27728 if test $ac_cv_func_dlopen = yes; then
27729   lt_cv_dlopen="dlopen"
27730 else
27731   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27732 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27733 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27734   echo $ECHO_N "(cached) $ECHO_C" >&6
27735 else
27736   ac_check_lib_save_LIBS=$LIBS
27737 LIBS="-ldl  $LIBS"
27738 cat >conftest.$ac_ext <<_ACEOF
27739 /* confdefs.h.  */
27740 _ACEOF
27741 cat confdefs.h >>conftest.$ac_ext
27742 cat >>conftest.$ac_ext <<_ACEOF
27743 /* end confdefs.h.  */
27744
27745 /* Override any gcc2 internal prototype to avoid an error.  */
27746 #ifdef __cplusplus
27747 extern "C"
27748 #endif
27749 /* We use char because int might match the return type of a gcc2
27750    builtin and then its argument prototype would still apply.  */
27751 char dlopen ();
27752 int
27753 main ()
27754 {
27755 dlopen ();
27756   ;
27757   return 0;
27758 }
27759 _ACEOF
27760 rm -f conftest.$ac_objext conftest$ac_exeext
27761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27762   (eval $ac_link) 2>conftest.er1
27763   ac_status=$?
27764   grep -v '^ *+' conftest.er1 >conftest.err
27765   rm -f conftest.er1
27766   cat conftest.err >&5
27767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27768   (exit $ac_status); } &&
27769          { ac_try='test -z "$ac_c_werror_flag"
27770                          || test ! -s conftest.err'
27771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772   (eval $ac_try) 2>&5
27773   ac_status=$?
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); }; } &&
27776          { ac_try='test -s conftest$ac_exeext'
27777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778   (eval $ac_try) 2>&5
27779   ac_status=$?
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); }; }; then
27782   ac_cv_lib_dl_dlopen=yes
27783 else
27784   echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27786
27787 ac_cv_lib_dl_dlopen=no
27788 fi
27789 rm -f conftest.err conftest.$ac_objext \
27790       conftest$ac_exeext conftest.$ac_ext
27791 LIBS=$ac_check_lib_save_LIBS
27792 fi
27793 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27794 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27795 if test $ac_cv_lib_dl_dlopen = yes; then
27796   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27797 else
27798   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27799 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27800 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27801   echo $ECHO_N "(cached) $ECHO_C" >&6
27802 else
27803   ac_check_lib_save_LIBS=$LIBS
27804 LIBS="-lsvld  $LIBS"
27805 cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811
27812 /* Override any gcc2 internal prototype to avoid an error.  */
27813 #ifdef __cplusplus
27814 extern "C"
27815 #endif
27816 /* We use char because int might match the return type of a gcc2
27817    builtin and then its argument prototype would still apply.  */
27818 char dlopen ();
27819 int
27820 main ()
27821 {
27822 dlopen ();
27823   ;
27824   return 0;
27825 }
27826 _ACEOF
27827 rm -f conftest.$ac_objext conftest$ac_exeext
27828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27829   (eval $ac_link) 2>conftest.er1
27830   ac_status=$?
27831   grep -v '^ *+' conftest.er1 >conftest.err
27832   rm -f conftest.er1
27833   cat conftest.err >&5
27834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835   (exit $ac_status); } &&
27836          { ac_try='test -z "$ac_c_werror_flag"
27837                          || test ! -s conftest.err'
27838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27839   (eval $ac_try) 2>&5
27840   ac_status=$?
27841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842   (exit $ac_status); }; } &&
27843          { ac_try='test -s conftest$ac_exeext'
27844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845   (eval $ac_try) 2>&5
27846   ac_status=$?
27847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848   (exit $ac_status); }; }; then
27849   ac_cv_lib_svld_dlopen=yes
27850 else
27851   echo "$as_me: failed program was:" >&5
27852 sed 's/^/| /' conftest.$ac_ext >&5
27853
27854 ac_cv_lib_svld_dlopen=no
27855 fi
27856 rm -f conftest.err conftest.$ac_objext \
27857       conftest$ac_exeext conftest.$ac_ext
27858 LIBS=$ac_check_lib_save_LIBS
27859 fi
27860 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27861 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27862 if test $ac_cv_lib_svld_dlopen = yes; then
27863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27864 else
27865   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27866 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27868   echo $ECHO_N "(cached) $ECHO_C" >&6
27869 else
27870   ac_check_lib_save_LIBS=$LIBS
27871 LIBS="-ldld  $LIBS"
27872 cat >conftest.$ac_ext <<_ACEOF
27873 /* confdefs.h.  */
27874 _ACEOF
27875 cat confdefs.h >>conftest.$ac_ext
27876 cat >>conftest.$ac_ext <<_ACEOF
27877 /* end confdefs.h.  */
27878
27879 /* Override any gcc2 internal prototype to avoid an error.  */
27880 #ifdef __cplusplus
27881 extern "C"
27882 #endif
27883 /* We use char because int might match the return type of a gcc2
27884    builtin and then its argument prototype would still apply.  */
27885 char dld_link ();
27886 int
27887 main ()
27888 {
27889 dld_link ();
27890   ;
27891   return 0;
27892 }
27893 _ACEOF
27894 rm -f conftest.$ac_objext conftest$ac_exeext
27895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27896   (eval $ac_link) 2>conftest.er1
27897   ac_status=$?
27898   grep -v '^ *+' conftest.er1 >conftest.err
27899   rm -f conftest.er1
27900   cat conftest.err >&5
27901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902   (exit $ac_status); } &&
27903          { ac_try='test -z "$ac_c_werror_flag"
27904                          || test ! -s conftest.err'
27905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27906   (eval $ac_try) 2>&5
27907   ac_status=$?
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); }; } &&
27910          { ac_try='test -s conftest$ac_exeext'
27911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912   (eval $ac_try) 2>&5
27913   ac_status=$?
27914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915   (exit $ac_status); }; }; then
27916   ac_cv_lib_dld_dld_link=yes
27917 else
27918   echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27920
27921 ac_cv_lib_dld_dld_link=no
27922 fi
27923 rm -f conftest.err conftest.$ac_objext \
27924       conftest$ac_exeext conftest.$ac_ext
27925 LIBS=$ac_check_lib_save_LIBS
27926 fi
27927 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27928 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27929 if test $ac_cv_lib_dld_dld_link = yes; then
27930   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27931 fi
27932
27933
27934 fi
27935
27936
27937 fi
27938
27939
27940 fi
27941
27942
27943 fi
27944
27945
27946 fi
27947
27948     ;;
27949   esac
27950
27951   if test "x$lt_cv_dlopen" != xno; then
27952     enable_dlopen=yes
27953   else
27954     enable_dlopen=no
27955   fi
27956
27957   case $lt_cv_dlopen in
27958   dlopen)
27959     save_CPPFLAGS="$CPPFLAGS"
27960     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27961
27962     save_LDFLAGS="$LDFLAGS"
27963     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27964
27965     save_LIBS="$LIBS"
27966     LIBS="$lt_cv_dlopen_libs $LIBS"
27967
27968     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27969 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27970 if test "${lt_cv_dlopen_self+set}" = set; then
27971   echo $ECHO_N "(cached) $ECHO_C" >&6
27972 else
27973           if test "$cross_compiling" = yes; then :
27974   lt_cv_dlopen_self=cross
27975 else
27976   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27977   lt_status=$lt_dlunknown
27978   cat > conftest.$ac_ext <<EOF
27979 #line 27979 "configure"
27980 #include "confdefs.h"
27981
27982 #if HAVE_DLFCN_H
27983 #include <dlfcn.h>
27984 #endif
27985
27986 #include <stdio.h>
27987
27988 #ifdef RTLD_GLOBAL
27989 #  define LT_DLGLOBAL           RTLD_GLOBAL
27990 #else
27991 #  ifdef DL_GLOBAL
27992 #    define LT_DLGLOBAL         DL_GLOBAL
27993 #  else
27994 #    define LT_DLGLOBAL         0
27995 #  endif
27996 #endif
27997
27998 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27999    find out it does not work in some platform. */
28000 #ifndef LT_DLLAZY_OR_NOW
28001 #  ifdef RTLD_LAZY
28002 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
28003 #  else
28004 #    ifdef DL_LAZY
28005 #      define LT_DLLAZY_OR_NOW          DL_LAZY
28006 #    else
28007 #      ifdef RTLD_NOW
28008 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
28009 #      else
28010 #        ifdef DL_NOW
28011 #          define LT_DLLAZY_OR_NOW      DL_NOW
28012 #        else
28013 #          define LT_DLLAZY_OR_NOW      0
28014 #        endif
28015 #      endif
28016 #    endif
28017 #  endif
28018 #endif
28019
28020 #ifdef __cplusplus
28021 extern "C" void exit (int);
28022 #endif
28023
28024 void fnord() { int i=42;}
28025 int main ()
28026 {
28027   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28028   int status = $lt_dlunknown;
28029
28030   if (self)
28031     {
28032       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
28033       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28034       /* dlclose (self); */
28035     }
28036
28037     exit (status);
28038 }
28039 EOF
28040   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28041   (eval $ac_link) 2>&5
28042   ac_status=$?
28043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
28045     (./conftest; exit; ) >&5 2>/dev/null
28046     lt_status=$?
28047     case x$lt_status in
28048       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
28049       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
28050       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
28051     esac
28052   else :
28053     # compilation failed
28054     lt_cv_dlopen_self=no
28055   fi
28056 fi
28057 rm -fr conftest*
28058
28059
28060 fi
28061 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
28062 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
28063
28064     if test "x$lt_cv_dlopen_self" = xyes; then
28065       LDFLAGS="$LDFLAGS $link_static_flag"
28066       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
28067 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
28068 if test "${lt_cv_dlopen_self_static+set}" = set; then
28069   echo $ECHO_N "(cached) $ECHO_C" >&6
28070 else
28071           if test "$cross_compiling" = yes; then :
28072   lt_cv_dlopen_self_static=cross
28073 else
28074   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
28075   lt_status=$lt_dlunknown
28076   cat > conftest.$ac_ext <<EOF
28077 #line 28077 "configure"
28078 #include "confdefs.h"
28079
28080 #if HAVE_DLFCN_H
28081 #include <dlfcn.h>
28082 #endif
28083
28084 #include <stdio.h>
28085
28086 #ifdef RTLD_GLOBAL
28087 #  define LT_DLGLOBAL           RTLD_GLOBAL
28088 #else
28089 #  ifdef DL_GLOBAL
28090 #    define LT_DLGLOBAL         DL_GLOBAL
28091 #  else
28092 #    define LT_DLGLOBAL         0
28093 #  endif
28094 #endif
28095
28096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
28097    find out it does not work in some platform. */
28098 #ifndef LT_DLLAZY_OR_NOW
28099 #  ifdef RTLD_LAZY
28100 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
28101 #  else
28102 #    ifdef DL_LAZY
28103 #      define LT_DLLAZY_OR_NOW          DL_LAZY
28104 #    else
28105 #      ifdef RTLD_NOW
28106 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
28107 #      else
28108 #        ifdef DL_NOW
28109 #          define LT_DLLAZY_OR_NOW      DL_NOW
28110 #        else
28111 #          define LT_DLLAZY_OR_NOW      0
28112 #        endif
28113 #      endif
28114 #    endif
28115 #  endif
28116 #endif
28117
28118 #ifdef __cplusplus
28119 extern "C" void exit (int);
28120 #endif
28121
28122 void fnord() { int i=42;}
28123 int main ()
28124 {
28125   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
28126   int status = $lt_dlunknown;
28127
28128   if (self)
28129     {
28130       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
28131       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
28132       /* dlclose (self); */
28133     }
28134
28135     exit (status);
28136 }
28137 EOF
28138   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28139   (eval $ac_link) 2>&5
28140   ac_status=$?
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
28143     (./conftest; exit; ) >&5 2>/dev/null
28144     lt_status=$?
28145     case x$lt_status in
28146       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
28147       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
28148       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
28149     esac
28150   else :
28151     # compilation failed
28152     lt_cv_dlopen_self_static=no
28153   fi
28154 fi
28155 rm -fr conftest*
28156
28157
28158 fi
28159 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
28160 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
28161     fi
28162
28163     CPPFLAGS="$save_CPPFLAGS"
28164     LDFLAGS="$save_LDFLAGS"
28165     LIBS="$save_LIBS"
28166     ;;
28167   esac
28168
28169   case $lt_cv_dlopen_self in
28170   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
28171   *) enable_dlopen_self=unknown ;;
28172   esac
28173
28174   case $lt_cv_dlopen_self_static in
28175   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
28176   *) enable_dlopen_self_static=unknown ;;
28177   esac
28178 fi
28179
28180
28181 # Report which librarie types wil actually be built
28182 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
28183 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
28184 echo "$as_me:$LINENO: result: $can_build_shared" >&5
28185 echo "${ECHO_T}$can_build_shared" >&6
28186
28187 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
28188 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
28189 test "$can_build_shared" = "no" && enable_shared=no
28190
28191 # On AIX, shared libraries and static libraries use the same namespace, and
28192 # are all built from PIC.
28193 case $host_os in
28194 aix3*)
28195   test "$enable_shared" = yes && enable_static=no
28196   if test -n "$RANLIB"; then
28197     archive_cmds="$archive_cmds~\$RANLIB \$lib"
28198     postinstall_cmds='$RANLIB $lib'
28199   fi
28200   ;;
28201
28202 aix4* | aix5*)
28203   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
28204     test "$enable_shared" = yes && enable_static=no
28205   fi
28206     ;;
28207 esac
28208 echo "$as_me:$LINENO: result: $enable_shared" >&5
28209 echo "${ECHO_T}$enable_shared" >&6
28210
28211 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
28212 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
28213 # Make sure either enable_shared or enable_static is yes.
28214 test "$enable_shared" = yes || enable_static=yes
28215 echo "$as_me:$LINENO: result: $enable_static" >&5
28216 echo "${ECHO_T}$enable_static" >&6
28217
28218 # The else clause should only fire when bootstrapping the
28219 # libtool distribution, otherwise you forgot to ship ltmain.sh
28220 # with your package, and you will get complaints that there are
28221 # no rules to generate ltmain.sh.
28222 if test -f "$ltmain"; then
28223   # See if we are running on zsh, and set the options which allow our commands through
28224   # without removal of \ escapes.
28225   if test -n "${ZSH_VERSION+set}" ; then
28226     setopt NO_GLOB_SUBST
28227   fi
28228   # Now quote all the things that may contain metacharacters while being
28229   # careful not to overquote the AC_SUBSTed values.  We take copies of the
28230   # variables and quote the copies for generation of the libtool script.
28231   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
28232     SED SHELL STRIP \
28233     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28234     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28235     deplibs_check_method reload_flag reload_cmds need_locks \
28236     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28237     lt_cv_sys_global_symbol_to_c_name_address \
28238     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28239     old_postinstall_cmds old_postuninstall_cmds \
28240     compiler \
28241     CC \
28242     LD \
28243     lt_prog_compiler_wl \
28244     lt_prog_compiler_pic \
28245     lt_prog_compiler_static \
28246     lt_prog_compiler_no_builtin_flag \
28247     export_dynamic_flag_spec \
28248     thread_safe_flag_spec \
28249     whole_archive_flag_spec \
28250     enable_shared_with_static_runtimes \
28251     old_archive_cmds \
28252     old_archive_from_new_cmds \
28253     predep_objects \
28254     postdep_objects \
28255     predeps \
28256     postdeps \
28257     compiler_lib_search_path \
28258     archive_cmds \
28259     archive_expsym_cmds \
28260     postinstall_cmds \
28261     postuninstall_cmds \
28262     old_archive_from_expsyms_cmds \
28263     allow_undefined_flag \
28264     no_undefined_flag \
28265     export_symbols_cmds \
28266     hardcode_libdir_flag_spec \
28267     hardcode_libdir_flag_spec_ld \
28268     hardcode_libdir_separator \
28269     hardcode_automatic \
28270     module_cmds \
28271     module_expsym_cmds \
28272     lt_cv_prog_compiler_c_o \
28273     exclude_expsyms \
28274     include_expsyms; do
28275
28276     case $var in
28277     old_archive_cmds | \
28278     old_archive_from_new_cmds | \
28279     archive_cmds | \
28280     archive_expsym_cmds | \
28281     module_cmds | \
28282     module_expsym_cmds | \
28283     old_archive_from_expsyms_cmds | \
28284     export_symbols_cmds | \
28285     extract_expsyms_cmds | reload_cmds | finish_cmds | \
28286     postinstall_cmds | postuninstall_cmds | \
28287     old_postinstall_cmds | old_postuninstall_cmds | \
28288     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28289       # Double-quote double-evaled strings.
28290       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28291       ;;
28292     *)
28293       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28294       ;;
28295     esac
28296   done
28297
28298   case $lt_echo in
28299   *'\$0 --fallback-echo"')
28300     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28301     ;;
28302   esac
28303
28304 cfgfile="${ofile}T"
28305   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
28306   $rm -f "$cfgfile"
28307   { echo "$as_me:$LINENO: creating $ofile" >&5
28308 echo "$as_me: creating $ofile" >&6;}
28309
28310   cat <<__EOF__ >> "$cfgfile"
28311 #! $SHELL
28312
28313 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28314 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
28315 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28316 #
28317 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
28318 # Free Software Foundation, Inc.
28319 #
28320 # This file is part of GNU Libtool:
28321 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
28322 #
28323 # This program is free software; you can redistribute it and/or modify
28324 # it under the terms of the GNU General Public License as published by
28325 # the Free Software Foundation; either version 2 of the License, or
28326 # (at your option) any later version.
28327 #
28328 # This program is distributed in the hope that it will be useful, but
28329 # WITHOUT ANY WARRANTY; without even the implied warranty of
28330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
28331 # General Public License for more details.
28332 #
28333 # You should have received a copy of the GNU General Public License
28334 # along with this program; if not, write to the Free Software
28335 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28336 #
28337 # As a special exception to the GNU General Public License, if you
28338 # distribute this file as part of a program that contains a
28339 # configuration script generated by Autoconf, you may include it under
28340 # the same distribution terms that you use for the rest of that program.
28341
28342 # A sed program that does not truncate output.
28343 SED=$lt_SED
28344
28345 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28346 Xsed="$SED -e 1s/^X//"
28347
28348 # The HP-UX ksh and POSIX shell print the target directory to stdout
28349 # if CDPATH is set.
28350 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28351
28352 # The names of the tagged configurations supported by this script.
28353 available_tags=
28354
28355 # ### BEGIN LIBTOOL CONFIG
28356
28357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28358
28359 # Shell to use when invoking shell scripts.
28360 SHELL=$lt_SHELL
28361
28362 # Whether or not to build shared libraries.
28363 build_libtool_libs=$enable_shared
28364
28365 # Whether or not to build static libraries.
28366 build_old_libs=$enable_static
28367
28368 # Whether or not to add -lc for building shared libraries.
28369 build_libtool_need_lc=$archive_cmds_need_lc
28370
28371 # Whether or not to disallow shared libs when runtime libs are static
28372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28373
28374 # Whether or not to optimize for fast installation.
28375 fast_install=$enable_fast_install
28376
28377 # The host system.
28378 host_alias=$host_alias
28379 host=$host
28380 host_os=$host_os
28381
28382 # The build system.
28383 build_alias=$build_alias
28384 build=$build
28385 build_os=$build_os
28386
28387 # An echo program that does not interpret backslashes.
28388 echo=$lt_echo
28389
28390 # The archiver.
28391 AR=$lt_AR
28392 AR_FLAGS=$lt_AR_FLAGS
28393
28394 # A C compiler.
28395 LTCC=$lt_LTCC
28396
28397 # A language-specific compiler.
28398 CC=$lt_compiler
28399
28400 # Is the compiler the GNU C compiler?
28401 with_gcc=$GCC
28402
28403 # An ERE matcher.
28404 EGREP=$lt_EGREP
28405
28406 # The linker used to build libraries.
28407 LD=$lt_LD
28408
28409 # Whether we need hard or soft links.
28410 LN_S=$lt_LN_S
28411
28412 # A BSD-compatible nm program.
28413 NM=$lt_NM
28414
28415 # A symbol stripping program
28416 STRIP=$lt_STRIP
28417
28418 # Used to examine libraries when file_magic_cmd begins "file"
28419 MAGIC_CMD=$MAGIC_CMD
28420
28421 # Used on cygwin: DLL creation program.
28422 DLLTOOL="$DLLTOOL"
28423
28424 # Used on cygwin: object dumper.
28425 OBJDUMP="$OBJDUMP"
28426
28427 # Used on cygwin: assembler.
28428 AS="$AS"
28429
28430 # The name of the directory that contains temporary libtool files.
28431 objdir=$objdir
28432
28433 # How to create reloadable object files.
28434 reload_flag=$lt_reload_flag
28435 reload_cmds=$lt_reload_cmds
28436
28437 # How to pass a linker flag through the compiler.
28438 wl=$lt_lt_prog_compiler_wl
28439
28440 # Object file suffix (normally "o").
28441 objext="$ac_objext"
28442
28443 # Old archive suffix (normally "a").
28444 libext="$libext"
28445
28446 # Shared library suffix (normally ".so").
28447 shrext_cmds='$shrext_cmds'
28448
28449 # Executable file suffix (normally "").
28450 exeext="$exeext"
28451
28452 # Additional compiler flags for building library objects.
28453 pic_flag=$lt_lt_prog_compiler_pic
28454 pic_mode=$pic_mode
28455
28456 # What is the maximum length of a command?
28457 max_cmd_len=$lt_cv_sys_max_cmd_len
28458
28459 # Does compiler simultaneously support -c and -o options?
28460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28461
28462 # Must we lock files when doing compilation?
28463 need_locks=$lt_need_locks
28464
28465 # Do we need the lib prefix for modules?
28466 need_lib_prefix=$need_lib_prefix
28467
28468 # Do we need a version for libraries?
28469 need_version=$need_version
28470
28471 # Whether dlopen is supported.
28472 dlopen_support=$enable_dlopen
28473
28474 # Whether dlopen of programs is supported.
28475 dlopen_self=$enable_dlopen_self
28476
28477 # Whether dlopen of statically linked programs is supported.
28478 dlopen_self_static=$enable_dlopen_self_static
28479
28480 # Compiler flag to prevent dynamic linking.
28481 link_static_flag=$lt_lt_prog_compiler_static
28482
28483 # Compiler flag to turn off builtin functions.
28484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28485
28486 # Compiler flag to allow reflexive dlopens.
28487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28488
28489 # Compiler flag to generate shared objects directly from archives.
28490 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28491
28492 # Compiler flag to generate thread-safe objects.
28493 thread_safe_flag_spec=$lt_thread_safe_flag_spec
28494
28495 # Library versioning type.
28496 version_type=$version_type
28497
28498 # Format of library name prefix.
28499 libname_spec=$lt_libname_spec
28500
28501 # List of archive names.  First name is the real one, the rest are links.
28502 # The last name is the one that the linker finds with -lNAME.
28503 library_names_spec=$lt_library_names_spec
28504
28505 # The coded name of the library, if different from the real name.
28506 soname_spec=$lt_soname_spec
28507
28508 # Commands used to build and install an old-style archive.
28509 RANLIB=$lt_RANLIB
28510 old_archive_cmds=$lt_old_archive_cmds
28511 old_postinstall_cmds=$lt_old_postinstall_cmds
28512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28513
28514 # Create an old-style archive from a shared archive.
28515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28516
28517 # Create a temporary old-style archive to link instead of a shared archive.
28518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28519
28520 # Commands used to build and install a shared archive.
28521 archive_cmds=$lt_archive_cmds
28522 archive_expsym_cmds=$lt_archive_expsym_cmds
28523 postinstall_cmds=$lt_postinstall_cmds
28524 postuninstall_cmds=$lt_postuninstall_cmds
28525
28526 # Commands used to build a loadable module (assumed same as above if empty)
28527 module_cmds=$lt_module_cmds
28528 module_expsym_cmds=$lt_module_expsym_cmds
28529
28530 # Commands to strip libraries.
28531 old_striplib=$lt_old_striplib
28532 striplib=$lt_striplib
28533
28534 # Dependencies to place before the objects being linked to create a
28535 # shared library.
28536 predep_objects=$lt_predep_objects
28537
28538 # Dependencies to place after the objects being linked to create a
28539 # shared library.
28540 postdep_objects=$lt_postdep_objects
28541
28542 # Dependencies to place before the objects being linked to create a
28543 # shared library.
28544 predeps=$lt_predeps
28545
28546 # Dependencies to place after the objects being linked to create a
28547 # shared library.
28548 postdeps=$lt_postdeps
28549
28550 # The library search path used internally by the compiler when linking
28551 # a shared library.
28552 compiler_lib_search_path=$lt_compiler_lib_search_path
28553
28554 # Method to check whether dependent libraries are shared objects.
28555 deplibs_check_method=$lt_deplibs_check_method
28556
28557 # Command to use when deplibs_check_method == file_magic.
28558 file_magic_cmd=$lt_file_magic_cmd
28559
28560 # Flag that allows shared libraries with undefined symbols to be built.
28561 allow_undefined_flag=$lt_allow_undefined_flag
28562
28563 # Flag that forces no undefined symbols.
28564 no_undefined_flag=$lt_no_undefined_flag
28565
28566 # Commands used to finish a libtool library installation in a directory.
28567 finish_cmds=$lt_finish_cmds
28568
28569 # Same as above, but a single script fragment to be evaled but not shown.
28570 finish_eval=$lt_finish_eval
28571
28572 # Take the output of nm and produce a listing of raw symbols and C names.
28573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28574
28575 # Transform the output of nm in a proper C declaration
28576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28577
28578 # Transform the output of nm in a C name address pair
28579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28580
28581 # This is the shared library runtime path variable.
28582 runpath_var=$runpath_var
28583
28584 # This is the shared library path variable.
28585 shlibpath_var=$shlibpath_var
28586
28587 # Is shlibpath searched before the hard-coded library search path?
28588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28589
28590 # How to hardcode a shared library path into an executable.
28591 hardcode_action=$hardcode_action
28592
28593 # Whether we should hardcode library paths into libraries.
28594 hardcode_into_libs=$hardcode_into_libs
28595
28596 # Flag to hardcode \$libdir into a binary during linking.
28597 # This must work even if \$libdir does not exist.
28598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28599
28600 # If ld is used when linking, flag to hardcode \$libdir into
28601 # a binary during linking. This must work even if \$libdir does
28602 # not exist.
28603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28604
28605 # Whether we need a single -rpath flag with a separated argument.
28606 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28607
28608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28609 # resulting binary.
28610 hardcode_direct=$hardcode_direct
28611
28612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28613 # resulting binary.
28614 hardcode_minus_L=$hardcode_minus_L
28615
28616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28617 # the resulting binary.
28618 hardcode_shlibpath_var=$hardcode_shlibpath_var
28619
28620 # Set to yes if building a shared library automatically hardcodes DIR into the library
28621 # and all subsequent libraries and executables linked against it.
28622 hardcode_automatic=$hardcode_automatic
28623
28624 # Variables whose values should be saved in libtool wrapper scripts and
28625 # restored at relink time.
28626 variables_saved_for_relink="$variables_saved_for_relink"
28627
28628 # Whether libtool must link a program against all its dependency libraries.
28629 link_all_deplibs=$link_all_deplibs
28630
28631 # Compile-time system search path for libraries
28632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28633
28634 # Run-time system search path for libraries
28635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28636
28637 # Fix the shell variable \$srcfile for the compiler.
28638 fix_srcfile_path="$fix_srcfile_path"
28639
28640 # Set to yes if exported symbols are required.
28641 always_export_symbols=$always_export_symbols
28642
28643 # The commands to list exported symbols.
28644 export_symbols_cmds=$lt_export_symbols_cmds
28645
28646 # The commands to extract the exported symbol list from a shared archive.
28647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28648
28649 # Symbols that should not be listed in the preloaded symbols.
28650 exclude_expsyms=$lt_exclude_expsyms
28651
28652 # Symbols that must always be exported.
28653 include_expsyms=$lt_include_expsyms
28654
28655 # ### END LIBTOOL CONFIG
28656
28657 __EOF__
28658
28659
28660   case $host_os in
28661   aix3*)
28662     cat <<\EOF >> "$cfgfile"
28663
28664 # AIX sometimes has problems with the GCC collect2 program.  For some
28665 # reason, if we set the COLLECT_NAMES environment variable, the problems
28666 # vanish in a puff of smoke.
28667 if test "X${COLLECT_NAMES+set}" != Xset; then
28668   COLLECT_NAMES=
28669   export COLLECT_NAMES
28670 fi
28671 EOF
28672     ;;
28673   esac
28674
28675   # We use sed instead of cat because bash on DJGPP gets confused if
28676   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28677   # text mode, it properly converts lines to CR/LF.  This bash problem
28678   # is reportedly fixed, but why not run on old versions too?
28679   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
28680
28681   mv -f "$cfgfile" "$ofile" || \
28682     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28683   chmod +x "$ofile"
28684
28685 else
28686   # If there is no Makefile yet, we rely on a make rule to execute
28687   # `config.status --recheck' to rerun these tests and create the
28688   # libtool script then.
28689   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28690   if test -f "$ltmain_in"; then
28691     test -f Makefile && make "$ltmain"
28692   fi
28693 fi
28694
28695
28696 ac_ext=c
28697 ac_cpp='$CPP $CPPFLAGS'
28698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28701
28702 CC="$lt_save_CC"
28703
28704
28705 # Check whether --with-tags or --without-tags was given.
28706 if test "${with_tags+set}" = set; then
28707   withval="$with_tags"
28708   tagnames="$withval"
28709 fi;
28710
28711 if test -f "$ltmain" && test -n "$tagnames"; then
28712   if test ! -f "${ofile}"; then
28713     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
28714 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
28715   fi
28716
28717   if test -z "$LTCC"; then
28718     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
28719     if test -z "$LTCC"; then
28720       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
28721 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
28722     else
28723       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
28724 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
28725     fi
28726   fi
28727
28728   # Extract list of available tagged configurations in $ofile.
28729   # Note that this assumes the entire list is on one line.
28730   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
28731
28732   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
28733   for tagname in $tagnames; do
28734     IFS="$lt_save_ifs"
28735     # Check whether tagname contains only valid characters
28736     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
28737     "") ;;
28738     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
28739 echo "$as_me: error: invalid tag name: $tagname" >&2;}
28740    { (exit 1); exit 1; }; }
28741         ;;
28742     esac
28743
28744     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
28745     then
28746       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
28747 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
28748    { (exit 1); exit 1; }; }
28749     fi
28750
28751     # Update the list of available tags.
28752     if test -n "$tagname"; then
28753       echo appending configuration tag \"$tagname\" to $ofile
28754
28755       case $tagname in
28756       CXX)
28757         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
28758             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
28759             (test "X$CXX" != "Xg++"))) ; then
28760           ac_ext=cc
28761 ac_cpp='$CXXCPP $CPPFLAGS'
28762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28765
28766
28767
28768
28769 archive_cmds_need_lc_CXX=no
28770 allow_undefined_flag_CXX=
28771 always_export_symbols_CXX=no
28772 archive_expsym_cmds_CXX=
28773 export_dynamic_flag_spec_CXX=
28774 hardcode_direct_CXX=no
28775 hardcode_libdir_flag_spec_CXX=
28776 hardcode_libdir_flag_spec_ld_CXX=
28777 hardcode_libdir_separator_CXX=
28778 hardcode_minus_L_CXX=no
28779 hardcode_automatic_CXX=no
28780 module_cmds_CXX=
28781 module_expsym_cmds_CXX=
28782 link_all_deplibs_CXX=unknown
28783 old_archive_cmds_CXX=$old_archive_cmds
28784 no_undefined_flag_CXX=
28785 whole_archive_flag_spec_CXX=
28786 enable_shared_with_static_runtimes_CXX=no
28787
28788 # Dependencies to place before and after the object being linked:
28789 predep_objects_CXX=
28790 postdep_objects_CXX=
28791 predeps_CXX=
28792 postdeps_CXX=
28793 compiler_lib_search_path_CXX=
28794
28795 # Source file extension for C++ test sources.
28796 ac_ext=cpp
28797
28798 # Object file extension for compiled C++ test sources.
28799 objext=o
28800 objext_CXX=$objext
28801
28802 # Code to be used in simple compile tests
28803 lt_simple_compile_test_code="int some_variable = 0;\n"
28804
28805 # Code to be used in simple link tests
28806 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
28807
28808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
28809
28810 # If no C compiler was specified, use CC.
28811 LTCC=${LTCC-"$CC"}
28812
28813 # Allow CC to be a program name with arguments.
28814 compiler=$CC
28815
28816
28817 # save warnings/boilerplate of simple test code
28818 ac_outfile=conftest.$ac_objext
28819 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
28820 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
28821 _lt_compiler_boilerplate=`cat conftest.err`
28822 $rm conftest*
28823
28824 ac_outfile=conftest.$ac_objext
28825 printf "$lt_simple_link_test_code" >conftest.$ac_ext
28826 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
28827 _lt_linker_boilerplate=`cat conftest.err`
28828 $rm conftest*
28829
28830
28831 # Allow CC to be a program name with arguments.
28832 lt_save_CC=$CC
28833 lt_save_LD=$LD
28834 lt_save_GCC=$GCC
28835 GCC=$GXX
28836 lt_save_with_gnu_ld=$with_gnu_ld
28837 lt_save_path_LD=$lt_cv_path_LD
28838 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
28839   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
28840 else
28841   unset lt_cv_prog_gnu_ld
28842 fi
28843 if test -n "${lt_cv_path_LDCXX+set}"; then
28844   lt_cv_path_LD=$lt_cv_path_LDCXX
28845 else
28846   unset lt_cv_path_LD
28847 fi
28848 test -z "${LDCXX+set}" || LD=$LDCXX
28849 CC=${CXX-"c++"}
28850 compiler=$CC
28851 compiler_CXX=$CC
28852 for cc_temp in $compiler""; do
28853   case $cc_temp in
28854     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28855     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28856     \-*) ;;
28857     *) break;;
28858   esac
28859 done
28860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
28861
28862
28863 # We don't want -fno-exception wen compiling C++ code, so set the
28864 # no_builtin_flag separately
28865 if test "$GXX" = yes; then
28866   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
28867 else
28868   lt_prog_compiler_no_builtin_flag_CXX=
28869 fi
28870
28871 if test "$GXX" = yes; then
28872   # Set up default GNU C++ configuration
28873
28874
28875 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28876 if test "${with_gnu_ld+set}" = set; then
28877   withval="$with_gnu_ld"
28878   test "$withval" = no || with_gnu_ld=yes
28879 else
28880   with_gnu_ld=no
28881 fi;
28882 ac_prog=ld
28883 if test "$GCC" = yes; then
28884   # Check if gcc -print-prog-name=ld gives a path.
28885   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
28886 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
28887   case $host in
28888   *-*-mingw*)
28889     # gcc leaves a trailing carriage return which upsets mingw
28890     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28891   *)
28892     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28893   esac
28894   case $ac_prog in
28895     # Accept absolute paths.
28896     [\\/]* | ?:[\\/]*)
28897       re_direlt='/[^/][^/]*/\.\./'
28898       # Canonicalize the pathname of ld
28899       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
28900       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28901         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
28902       done
28903       test -z "$LD" && LD="$ac_prog"
28904       ;;
28905   "")
28906     # If it fails, then pretend we aren't using GCC.
28907     ac_prog=ld
28908     ;;
28909   *)
28910     # If it is relative, then search for the first ld in PATH.
28911     with_gnu_ld=unknown
28912     ;;
28913   esac
28914 elif test "$with_gnu_ld" = yes; then
28915   echo "$as_me:$LINENO: checking for GNU ld" >&5
28916 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28917 else
28918   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28919 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28920 fi
28921 if test "${lt_cv_path_LD+set}" = set; then
28922   echo $ECHO_N "(cached) $ECHO_C" >&6
28923 else
28924   if test -z "$LD"; then
28925   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
28926   for ac_dir in $PATH; do
28927     IFS="$lt_save_ifs"
28928     test -z "$ac_dir" && ac_dir=.
28929     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28930       lt_cv_path_LD="$ac_dir/$ac_prog"
28931       # Check to see if the program is GNU ld.  I'd rather use --version,
28932       # but apparently some variants of GNU ld only accept -v.
28933       # Break only if it was the GNU/non-GNU ld that we prefer.
28934       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
28935       *GNU* | *'with BFD'*)
28936         test "$with_gnu_ld" != no && break
28937         ;;
28938       *)
28939         test "$with_gnu_ld" != yes && break
28940         ;;
28941       esac
28942     fi
28943   done
28944   IFS="$lt_save_ifs"
28945 else
28946   lt_cv_path_LD="$LD" # Let the user override the test with a path.
28947 fi
28948 fi
28949
28950 LD="$lt_cv_path_LD"
28951 if test -n "$LD"; then
28952   echo "$as_me:$LINENO: result: $LD" >&5
28953 echo "${ECHO_T}$LD" >&6
28954 else
28955   echo "$as_me:$LINENO: result: no" >&5
28956 echo "${ECHO_T}no" >&6
28957 fi
28958 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28959 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28960    { (exit 1); exit 1; }; }
28961 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28962 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28963 if test "${lt_cv_prog_gnu_ld+set}" = set; then
28964   echo $ECHO_N "(cached) $ECHO_C" >&6
28965 else
28966   # I'd rather use --version here, but apparently some GNU lds only accept -v.
28967 case `$LD -v 2>&1 </dev/null` in
28968 *GNU* | *'with BFD'*)
28969   lt_cv_prog_gnu_ld=yes
28970   ;;
28971 *)
28972   lt_cv_prog_gnu_ld=no
28973   ;;
28974 esac
28975 fi
28976 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
28977 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
28978 with_gnu_ld=$lt_cv_prog_gnu_ld
28979
28980
28981
28982   # Check if GNU C++ uses GNU ld as the underlying linker, since the
28983   # archiving commands below assume that GNU ld is being used.
28984   if test "$with_gnu_ld" = yes; then
28985     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
28986     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28987
28988     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
28989     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
28990
28991     # If archive_cmds runs LD, not CC, wlarc should be empty
28992     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
28993     #     investigate it a little bit more. (MM)
28994     wlarc='${wl}'
28995
28996     # ancient GNU ld didn't support --whole-archive et. al.
28997     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
28998         grep 'no-whole-archive' > /dev/null; then
28999       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
29000     else
29001       whole_archive_flag_spec_CXX=
29002     fi
29003   else
29004     with_gnu_ld=no
29005     wlarc=
29006
29007     # A generic and very simple default shared library creation
29008     # command for GNU C++ for the case where it uses the native
29009     # linker, instead of GNU ld.  If possible, this setting should
29010     # overridden to take advantage of the native linker features on
29011     # the platform it is being used on.
29012     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
29013   fi
29014
29015   # Commands to make compiler produce verbose output that lists
29016   # what "hidden" libraries, object files and flags are used when
29017   # linking a shared library.
29018   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
29019
29020 else
29021   GXX=no
29022   with_gnu_ld=no
29023   wlarc=
29024 fi
29025
29026 # PORTME: fill in a description of your system's C++ link characteristics
29027 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
29028 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
29029 ld_shlibs_CXX=yes
29030 case $host_os in
29031   aix3*)
29032     # FIXME: insert proper C++ library support
29033     ld_shlibs_CXX=no
29034     ;;
29035   aix4* | aix5*)
29036     if test "$host_cpu" = ia64; then
29037       # On IA64, the linker does run time linking by default, so we don't
29038       # have to do anything special.
29039       aix_use_runtimelinking=no
29040       exp_sym_flag='-Bexport'
29041       no_entry_flag=""
29042     else
29043       aix_use_runtimelinking=no
29044
29045       # Test if we are trying to use run time linking or normal
29046       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
29047       # need to do runtime linking.
29048       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
29049         for ld_flag in $LDFLAGS; do
29050           case $ld_flag in
29051           *-brtl*)
29052             aix_use_runtimelinking=yes
29053             break
29054             ;;
29055           esac
29056         done
29057       esac
29058
29059       exp_sym_flag='-bexport'
29060       no_entry_flag='-bnoentry'
29061     fi
29062
29063     # When large executables or shared objects are built, AIX ld can
29064     # have problems creating the table of contents.  If linking a library
29065     # or program results in "error TOC overflow" add -mminimal-toc to
29066     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
29067     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
29068
29069     archive_cmds_CXX=''
29070     hardcode_direct_CXX=yes
29071     hardcode_libdir_separator_CXX=':'
29072     link_all_deplibs_CXX=yes
29073
29074     if test "$GXX" = yes; then
29075       case $host_os in aix4.[012]|aix4.[012].*)
29076       # We only want to do this on AIX 4.2 and lower, the check
29077       # below for broken collect2 doesn't work under 4.3+
29078         collect2name=`${CC} -print-prog-name=collect2`
29079         if test -f "$collect2name" && \
29080            strings "$collect2name" | grep resolve_lib_name >/dev/null
29081         then
29082           # We have reworked collect2
29083           hardcode_direct_CXX=yes
29084         else
29085           # We have old collect2
29086           hardcode_direct_CXX=unsupported
29087           # It fails to find uninstalled libraries when the uninstalled
29088           # path is not listed in the libpath.  Setting hardcode_minus_L
29089           # to unsupported forces relinking
29090           hardcode_minus_L_CXX=yes
29091           hardcode_libdir_flag_spec_CXX='-L$libdir'
29092           hardcode_libdir_separator_CXX=
29093         fi
29094       esac
29095       shared_flag='-shared'
29096       if test "$aix_use_runtimelinking" = yes; then
29097         shared_flag="$shared_flag "'${wl}-G'
29098       fi
29099     else
29100       # not using gcc
29101       if test "$host_cpu" = ia64; then
29102         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
29103         # chokes on -Wl,-G. The following line is correct:
29104         shared_flag='-G'
29105       else
29106         if test "$aix_use_runtimelinking" = yes; then
29107           shared_flag='${wl}-G'
29108         else
29109           shared_flag='${wl}-bM:SRE'
29110         fi
29111       fi
29112     fi
29113
29114     # It seems that -bexpall does not export symbols beginning with
29115     # underscore (_), so it is better to generate a list of symbols to export.
29116     always_export_symbols_CXX=yes
29117     if test "$aix_use_runtimelinking" = yes; then
29118       # Warning - without using the other runtime loading flags (-brtl),
29119       # -berok will link without error, but may produce a broken library.
29120       allow_undefined_flag_CXX='-berok'
29121       # Determine the default libpath from the value encoded in an empty executable.
29122       cat >conftest.$ac_ext <<_ACEOF
29123 /* confdefs.h.  */
29124 _ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h.  */
29128
29129 int
29130 main ()
29131 {
29132
29133   ;
29134   return 0;
29135 }
29136 _ACEOF
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29139   (eval $ac_link) 2>conftest.er1
29140   ac_status=$?
29141   grep -v '^ *+' conftest.er1 >conftest.err
29142   rm -f conftest.er1
29143   cat conftest.err >&5
29144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); } &&
29146          { ac_try='test -z "$ac_cxx_werror_flag"
29147                          || test ! -s conftest.err'
29148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29149   (eval $ac_try) 2>&5
29150   ac_status=$?
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); }; } &&
29153          { ac_try='test -s conftest$ac_exeext'
29154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29155   (eval $ac_try) 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; }; then
29159
29160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
29161 }'`
29162 # Check for a 64-bit object if we didn't find anything.
29163 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
29164 }'`; fi
29165 else
29166   echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29168
29169 fi
29170 rm -f conftest.err conftest.$ac_objext \
29171       conftest$ac_exeext conftest.$ac_ext
29172 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
29173
29174       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
29175
29176       archive_expsym_cmds_CXX="\$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"
29177      else
29178       if test "$host_cpu" = ia64; then
29179         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
29180         allow_undefined_flag_CXX="-z nodefs"
29181         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
29182       else
29183         # Determine the default libpath from the value encoded in an empty executable.
29184         cat >conftest.$ac_ext <<_ACEOF
29185 /* confdefs.h.  */
29186 _ACEOF
29187 cat confdefs.h >>conftest.$ac_ext
29188 cat >>conftest.$ac_ext <<_ACEOF
29189 /* end confdefs.h.  */
29190
29191 int
29192 main ()
29193 {
29194
29195   ;
29196   return 0;
29197 }
29198 _ACEOF
29199 rm -f conftest.$ac_objext conftest$ac_exeext
29200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29201   (eval $ac_link) 2>conftest.er1
29202   ac_status=$?
29203   grep -v '^ *+' conftest.er1 >conftest.err
29204   rm -f conftest.er1
29205   cat conftest.err >&5
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } &&
29208          { ac_try='test -z "$ac_cxx_werror_flag"
29209                          || test ! -s conftest.err'
29210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211   (eval $ac_try) 2>&5
29212   ac_status=$?
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); }; } &&
29215          { ac_try='test -s conftest$ac_exeext'
29216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217   (eval $ac_try) 2>&5
29218   ac_status=$?
29219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220   (exit $ac_status); }; }; then
29221
29222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
29223 }'`
29224 # Check for a 64-bit object if we didn't find anything.
29225 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
29226 }'`; fi
29227 else
29228   echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29230
29231 fi
29232 rm -f conftest.err conftest.$ac_objext \
29233       conftest$ac_exeext conftest.$ac_ext
29234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
29235
29236         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
29237         # Warning - without using the other run time loading flags,
29238         # -berok will link without error, but may produce a broken library.
29239         no_undefined_flag_CXX=' ${wl}-bernotok'
29240         allow_undefined_flag_CXX=' ${wl}-berok'
29241         # -bexpall does not export symbols beginning with underscore (_)
29242         always_export_symbols_CXX=yes
29243         # Exported symbols can be pulled into shared objects from archives
29244         whole_archive_flag_spec_CXX=' '
29245         archive_cmds_need_lc_CXX=yes
29246         # This is similar to how AIX traditionally builds its shared libraries.
29247         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
29248       fi
29249     fi
29250     ;;
29251   chorus*)
29252     case $cc_basename in
29253       *)
29254         # FIXME: insert proper C++ library support
29255         ld_shlibs_CXX=no
29256         ;;
29257     esac
29258     ;;
29259
29260
29261   cygwin* | mingw* | pw32*)
29262     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
29263     # as there is no search path for DLLs.
29264     hardcode_libdir_flag_spec_CXX='-L$libdir'
29265     allow_undefined_flag_CXX=unsupported
29266     always_export_symbols_CXX=no
29267     enable_shared_with_static_runtimes_CXX=yes
29268
29269     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
29270       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
29271       # If the export-symbols file already is a .def file (1st line
29272       # is EXPORTS), use it as is; otherwise, prepend...
29273       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
29274         cp $export_symbols $output_objdir/$soname.def;
29275       else
29276         echo EXPORTS > $output_objdir/$soname.def;
29277         cat $export_symbols >> $output_objdir/$soname.def;
29278       fi~
29279       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
29280     else
29281       ld_shlibs_CXX=no
29282     fi
29283   ;;
29284       darwin* | rhapsody*)
29285         case $host_os in
29286         rhapsody* | darwin1.[012])
29287          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
29288          ;;
29289        *) # Darwin 1.3 on
29290          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
29291            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
29292          else
29293            case ${MACOSX_DEPLOYMENT_TARGET} in
29294              10.[012])
29295                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
29296                ;;
29297              10.*)
29298                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
29299                ;;
29300            esac
29301          fi
29302          ;;
29303         esac
29304       archive_cmds_need_lc_CXX=no
29305       hardcode_direct_CXX=no
29306       hardcode_automatic_CXX=yes
29307       hardcode_shlibpath_var_CXX=unsupported
29308       whole_archive_flag_spec_CXX=''
29309       link_all_deplibs_CXX=yes
29310
29311     if test "$GXX" = yes ; then
29312       lt_int_apple_cc_single_mod=no
29313       output_verbose_link_cmd='echo'
29314       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
29315        lt_int_apple_cc_single_mod=yes
29316       fi
29317       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
29318        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
29319       else
29320           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
29321         fi
29322         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
29323         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
29324           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
29325             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29326           else
29327             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29328           fi
29329             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29330       else
29331       case $cc_basename in
29332         xlc*)
29333          output_verbose_link_cmd='echo'
29334           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
29335           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
29336           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
29337           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29338           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
29339           ;;
29340        *)
29341          ld_shlibs_CXX=no
29342           ;;
29343       esac
29344       fi
29345         ;;
29346
29347   dgux*)
29348     case $cc_basename in
29349       ec++*)
29350         # FIXME: insert proper C++ library support
29351         ld_shlibs_CXX=no
29352         ;;
29353       ghcx*)
29354         # Green Hills C++ Compiler
29355         # FIXME: insert proper C++ library support
29356         ld_shlibs_CXX=no
29357         ;;
29358       *)
29359         # FIXME: insert proper C++ library support
29360         ld_shlibs_CXX=no
29361         ;;
29362     esac
29363     ;;
29364   freebsd[12]*)
29365     # C++ shared libraries reported to be fairly broken before switch to ELF
29366     ld_shlibs_CXX=no
29367     ;;
29368   freebsd-elf*)
29369     archive_cmds_need_lc_CXX=no
29370     ;;
29371   freebsd* | kfreebsd*-gnu | dragonfly*)
29372     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
29373     # conventions
29374     ld_shlibs_CXX=yes
29375     ;;
29376   gnu*)
29377     ;;
29378   hpux9*)
29379     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29380     hardcode_libdir_separator_CXX=:
29381     export_dynamic_flag_spec_CXX='${wl}-E'
29382     hardcode_direct_CXX=yes
29383     hardcode_minus_L_CXX=yes # Not in the search PATH,
29384                                 # but as the default
29385                                 # location of the library.
29386
29387     case $cc_basename in
29388     CC*)
29389       # FIXME: insert proper C++ library support
29390       ld_shlibs_CXX=no
29391       ;;
29392     aCC*)
29393       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
29394       # Commands to make compiler produce verbose output that lists
29395       # what "hidden" libraries, object files and flags are used when
29396       # linking a shared library.
29397       #
29398       # There doesn't appear to be a way to prevent this compiler from
29399       # explicitly linking system object files so we need to strip them
29400       # from the output so that they don't get included in the library
29401       # dependencies.
29402       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29403       ;;
29404     *)
29405       if test "$GXX" = yes; then
29406         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
29407       else
29408         # FIXME: insert proper C++ library support
29409         ld_shlibs_CXX=no
29410       fi
29411       ;;
29412     esac
29413     ;;
29414   hpux10*|hpux11*)
29415     if test $with_gnu_ld = no; then
29416       case $host_cpu in
29417       hppa*64*)
29418         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29419         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
29420         hardcode_libdir_separator_CXX=:
29421         ;;
29422       ia64*)
29423         hardcode_libdir_flag_spec_CXX='-L$libdir'
29424         ;;
29425       *)
29426         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
29427         hardcode_libdir_separator_CXX=:
29428         export_dynamic_flag_spec_CXX='${wl}-E'
29429         ;;
29430       esac
29431     fi
29432     case $host_cpu in
29433     hppa*64*)
29434       hardcode_direct_CXX=no
29435       hardcode_shlibpath_var_CXX=no
29436       ;;
29437     ia64*)
29438       hardcode_direct_CXX=no
29439       hardcode_shlibpath_var_CXX=no
29440       hardcode_minus_L_CXX=yes # Not in the search PATH,
29441                                               # but as the default
29442                                               # location of the library.
29443       ;;
29444     *)
29445       hardcode_direct_CXX=yes
29446       hardcode_minus_L_CXX=yes # Not in the search PATH,
29447                                               # but as the default
29448                                               # location of the library.
29449       ;;
29450     esac
29451
29452     case $cc_basename in
29453       CC*)
29454         # FIXME: insert proper C++ library support
29455         ld_shlibs_CXX=no
29456         ;;
29457       aCC*)
29458         case $host_cpu in
29459         hppa*64*|ia64*)
29460           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
29461           ;;
29462         *)
29463           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
29464           ;;
29465         esac
29466         # Commands to make compiler produce verbose output that lists
29467         # what "hidden" libraries, object files and flags are used when
29468         # linking a shared library.
29469         #
29470         # There doesn't appear to be a way to prevent this compiler from
29471         # explicitly linking system object files so we need to strip them
29472         # from the output so that they don't get included in the library
29473         # dependencies.
29474         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29475         ;;
29476       *)
29477         if test "$GXX" = yes; then
29478           if test $with_gnu_ld = no; then
29479             case $host_cpu in
29480             ia64*|hppa*64*)
29481               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
29482               ;;
29483             *)
29484               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
29485               ;;
29486             esac
29487           fi
29488         else
29489           # FIXME: insert proper C++ library support
29490           ld_shlibs_CXX=no
29491         fi
29492         ;;
29493     esac
29494     ;;
29495   irix5* | irix6*)
29496     case $cc_basename in
29497       CC*)
29498         # SGI C++
29499         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29500
29501         # Archives containing C++ object files must be created using
29502         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
29503         # necessary to make sure instantiated templates are included
29504         # in the archive.
29505         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
29506         ;;
29507       *)
29508         if test "$GXX" = yes; then
29509           if test "$with_gnu_ld" = no; then
29510             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
29511           else
29512             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
29513           fi
29514         fi
29515         link_all_deplibs_CXX=yes
29516         ;;
29517     esac
29518     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29519     hardcode_libdir_separator_CXX=:
29520     ;;
29521   linux*)
29522     case $cc_basename in
29523       KCC*)
29524         # Kuck and Associates, Inc. (KAI) C++ Compiler
29525
29526         # KCC will only create a shared library if the output file
29527         # ends with ".so" (or ".sl" for HP-UX), so rename the library
29528         # to its proper name (with version) after linking.
29529         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
29530         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
29531         # Commands to make compiler produce verbose output that lists
29532         # what "hidden" libraries, object files and flags are used when
29533         # linking a shared library.
29534         #
29535         # There doesn't appear to be a way to prevent this compiler from
29536         # explicitly linking system object files so we need to strip them
29537         # from the output so that they don't get included in the library
29538         # dependencies.
29539         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29540
29541         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
29542         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29543
29544         # Archives containing C++ object files must be created using
29545         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
29546         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
29547         ;;
29548       icpc*)
29549         # Intel C++
29550         with_gnu_ld=yes
29551         # version 8.0 and above of icpc choke on multiply defined symbols
29552         # if we add $predep_objects and $postdep_objects, however 7.1 and
29553         # earlier do not add the objects themselves.
29554         case `$CC -V 2>&1` in
29555         *"Version 7."*)
29556           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
29557           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
29558           ;;
29559         *)  # Version 8.0 or newer
29560           tmp_idyn=
29561           case $host_cpu in
29562             ia64*) tmp_idyn=' -i_dynamic';;
29563           esac
29564           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
29565           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
29566           ;;
29567         esac
29568         archive_cmds_need_lc_CXX=no
29569         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29570         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29571         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
29572         ;;
29573       pgCC*)
29574         # Portland Group C++ compiler
29575         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
29576         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
29577
29578         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
29579         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
29580         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
29581         ;;
29582       cxx*)
29583         # Compaq C++
29584         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
29585         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
29586
29587         runpath_var=LD_RUN_PATH
29588         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
29589         hardcode_libdir_separator_CXX=:
29590
29591         # Commands to make compiler produce verbose output that lists
29592         # what "hidden" libraries, object files and flags are used when
29593         # linking a shared library.
29594         #
29595         # There doesn't appear to be a way to prevent this compiler from
29596         # explicitly linking system object files so we need to strip them
29597         # from the output so that they don't get included in the library
29598         # dependencies.
29599         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29600         ;;
29601     esac
29602     ;;
29603   lynxos*)
29604     # FIXME: insert proper C++ library support
29605     ld_shlibs_CXX=no
29606     ;;
29607   m88k*)
29608     # FIXME: insert proper C++ library support
29609     ld_shlibs_CXX=no
29610     ;;
29611   mvs*)
29612     case $cc_basename in
29613       cxx*)
29614         # FIXME: insert proper C++ library support
29615         ld_shlibs_CXX=no
29616         ;;
29617       *)
29618         # FIXME: insert proper C++ library support
29619         ld_shlibs_CXX=no
29620         ;;
29621     esac
29622     ;;
29623   netbsd*)
29624     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29625       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
29626       wlarc=
29627       hardcode_libdir_flag_spec_CXX='-R$libdir'
29628       hardcode_direct_CXX=yes
29629       hardcode_shlibpath_var_CXX=no
29630     fi
29631     # Workaround some broken pre-1.5 toolchains
29632     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
29633     ;;
29634   openbsd2*)
29635     # C++ shared libraries are fairly broken
29636     ld_shlibs_CXX=no
29637     ;;
29638   openbsd*)
29639     hardcode_direct_CXX=yes
29640     hardcode_shlibpath_var_CXX=no
29641     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
29642     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29643     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29644       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
29645       export_dynamic_flag_spec_CXX='${wl}-E'
29646       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
29647     fi
29648     output_verbose_link_cmd='echo'
29649     ;;
29650   osf3*)
29651     case $cc_basename in
29652       KCC*)
29653         # Kuck and Associates, Inc. (KAI) C++ Compiler
29654
29655         # KCC will only create a shared library if the output file
29656         # ends with ".so" (or ".sl" for HP-UX), so rename the library
29657         # to its proper name (with version) after linking.
29658         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
29659
29660         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29661         hardcode_libdir_separator_CXX=:
29662
29663         # Archives containing C++ object files must be created using
29664         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
29665         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
29666
29667         ;;
29668       RCC*)
29669         # Rational C++ 2.4.1
29670         # FIXME: insert proper C++ library support
29671         ld_shlibs_CXX=no
29672         ;;
29673       cxx*)
29674         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
29675         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29676
29677         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29678         hardcode_libdir_separator_CXX=:
29679
29680         # Commands to make compiler produce verbose output that lists
29681         # what "hidden" libraries, object files and flags are used when
29682         # linking a shared library.
29683         #
29684         # There doesn't appear to be a way to prevent this compiler from
29685         # explicitly linking system object files so we need to strip them
29686         # from the output so that they don't get included in the library
29687         # dependencies.
29688         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29689         ;;
29690       *)
29691         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
29692           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
29693           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
29694
29695           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29696           hardcode_libdir_separator_CXX=:
29697
29698           # Commands to make compiler produce verbose output that lists
29699           # what "hidden" libraries, object files and flags are used when
29700           # linking a shared library.
29701           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
29702
29703         else
29704           # FIXME: insert proper C++ library support
29705           ld_shlibs_CXX=no
29706         fi
29707         ;;
29708     esac
29709     ;;
29710   osf4* | osf5*)
29711     case $cc_basename in
29712       KCC*)
29713         # Kuck and Associates, Inc. (KAI) C++ Compiler
29714
29715         # KCC will only create a shared library if the output file
29716         # ends with ".so" (or ".sl" for HP-UX), so rename the library
29717         # to its proper name (with version) after linking.
29718         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
29719
29720         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
29721         hardcode_libdir_separator_CXX=:
29722
29723         # Archives containing C++ object files must be created using
29724         # the KAI C++ compiler.
29725         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
29726         ;;
29727       RCC*)
29728         # Rational C++ 2.4.1
29729         # FIXME: insert proper C++ library support
29730         ld_shlibs_CXX=no
29731         ;;
29732       cxx*)
29733         allow_undefined_flag_CXX=' -expect_unresolved \*'
29734         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29735         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
29736           echo "-hidden">> $lib.exp~
29737           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
29738           $rm $lib.exp'
29739
29740         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
29741         hardcode_libdir_separator_CXX=:
29742
29743         # Commands to make compiler produce verbose output that lists
29744         # what "hidden" libraries, object files and flags are used when
29745         # linking a shared library.
29746         #
29747         # There doesn't appear to be a way to prevent this compiler from
29748         # explicitly linking system object files so we need to strip them
29749         # from the output so that they don't get included in the library
29750         # dependencies.
29751         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
29752         ;;
29753       *)
29754         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
29755           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
29756          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
29757
29758           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
29759           hardcode_libdir_separator_CXX=:
29760
29761           # Commands to make compiler produce verbose output that lists
29762           # what "hidden" libraries, object files and flags are used when
29763           # linking a shared library.
29764           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
29765
29766         else
29767           # FIXME: insert proper C++ library support
29768           ld_shlibs_CXX=no
29769         fi
29770         ;;
29771     esac
29772     ;;
29773   psos*)
29774     # FIXME: insert proper C++ library support
29775     ld_shlibs_CXX=no
29776     ;;
29777   sco*)
29778     archive_cmds_need_lc_CXX=no
29779     case $cc_basename in
29780       CC*)
29781         # FIXME: insert proper C++ library support
29782         ld_shlibs_CXX=no
29783         ;;
29784       *)
29785         # FIXME: insert proper C++ library support
29786         ld_shlibs_CXX=no
29787         ;;
29788     esac
29789     ;;
29790   sunos4*)
29791     case $cc_basename in
29792       CC*)
29793         # Sun C++ 4.x
29794         # FIXME: insert proper C++ library support
29795         ld_shlibs_CXX=no
29796         ;;
29797       lcc*)
29798         # Lucid
29799         # FIXME: insert proper C++ library support
29800         ld_shlibs_CXX=no
29801         ;;
29802       *)
29803         # FIXME: insert proper C++ library support
29804         ld_shlibs_CXX=no
29805         ;;
29806     esac
29807     ;;
29808   solaris*)
29809     case $cc_basename in
29810       CC*)
29811         # Sun C++ 4.2, 5.x and Centerline C++
29812         archive_cmds_need_lc_CXX=yes
29813         no_undefined_flag_CXX=' -zdefs'
29814         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
29815         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29816         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
29817
29818         hardcode_libdir_flag_spec_CXX='-R$libdir'
29819         hardcode_shlibpath_var_CXX=no
29820         case $host_os in
29821           solaris2.[0-5] | solaris2.[0-5].*) ;;
29822           *)
29823             # The C++ compiler is used as linker so we must use $wl
29824             # flag to pass the commands to the underlying system
29825             # linker. We must also pass each convience library through
29826             # to the system linker between allextract/defaultextract.
29827             # The C++ compiler will combine linker options so we
29828             # cannot just pass the convience library names through
29829             # without $wl.
29830             # Supported since Solaris 2.6 (maybe 2.5.1?)
29831             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
29832             ;;
29833         esac
29834         link_all_deplibs_CXX=yes
29835
29836         output_verbose_link_cmd='echo'
29837
29838         # Archives containing C++ object files must be created using
29839         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
29840         # necessary to make sure instantiated templates are included
29841         # in the archive.
29842         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
29843         ;;
29844       gcx*)
29845         # Green Hills C++ Compiler
29846         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
29847
29848         # The C++ compiler must be used to create the archive.
29849         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
29850         ;;
29851       *)
29852         # GNU C++ compiler with Solaris linker
29853         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
29854           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
29855           if $CC --version | grep -v '^2\.7' > /dev/null; then
29856             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
29857             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29858                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
29859
29860             # Commands to make compiler produce verbose output that lists
29861             # what "hidden" libraries, object files and flags are used when
29862             # linking a shared library.
29863             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
29864           else
29865             # g++ 2.7 appears to require `-G' NOT `-shared' on this
29866             # platform.
29867             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
29868             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29869                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
29870
29871             # Commands to make compiler produce verbose output that lists
29872             # what "hidden" libraries, object files and flags are used when
29873             # linking a shared library.
29874             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
29875           fi
29876
29877           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
29878         fi
29879         ;;
29880     esac
29881     ;;
29882   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
29883     archive_cmds_need_lc_CXX=no
29884     ;;
29885   tandem*)
29886     case $cc_basename in
29887       NCC*)
29888         # NonStop-UX NCC 3.20
29889         # FIXME: insert proper C++ library support
29890         ld_shlibs_CXX=no
29891         ;;
29892       *)
29893         # FIXME: insert proper C++ library support
29894         ld_shlibs_CXX=no
29895         ;;
29896     esac
29897     ;;
29898   vxworks*)
29899     # FIXME: insert proper C++ library support
29900     ld_shlibs_CXX=no
29901     ;;
29902   *)
29903     # FIXME: insert proper C++ library support
29904     ld_shlibs_CXX=no
29905     ;;
29906 esac
29907 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
29908 echo "${ECHO_T}$ld_shlibs_CXX" >&6
29909 test "$ld_shlibs_CXX" = no && can_build_shared=no
29910
29911 GCC_CXX="$GXX"
29912 LD_CXX="$LD"
29913
29914 ## CAVEAT EMPTOR:
29915 ## There is no encapsulation within the following macros, do not change
29916 ## the running order or otherwise move them around unless you know exactly
29917 ## what you are doing...
29918
29919 cat > conftest.$ac_ext <<EOF
29920 class Foo
29921 {
29922 public:
29923   Foo (void) { a = 0; }
29924 private:
29925   int a;
29926 };
29927 EOF
29928
29929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29930   (eval $ac_compile) 2>&5
29931   ac_status=$?
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); }; then
29934   # Parse the compiler output and extract the necessary
29935   # objects, libraries and library flags.
29936
29937   # Sentinel used to keep track of whether or not we are before
29938   # the conftest object file.
29939   pre_test_object_deps_done=no
29940
29941   # The `*' in the case matches for architectures that use `case' in
29942   # $output_verbose_cmd can trigger glob expansion during the loop
29943   # eval without this substitution.
29944   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
29945
29946   for p in `eval $output_verbose_link_cmd`; do
29947     case $p in
29948
29949     -L* | -R* | -l*)
29950        # Some compilers place space between "-{L,R}" and the path.
29951        # Remove the space.
29952        if test $p = "-L" \
29953           || test $p = "-R"; then
29954          prev=$p
29955          continue
29956        else
29957          prev=
29958        fi
29959
29960        if test "$pre_test_object_deps_done" = no; then
29961          case $p in
29962          -L* | -R*)
29963            # Internal compiler library paths should come after those
29964            # provided the user.  The postdeps already come after the
29965            # user supplied libs so there is no need to process them.
29966            if test -z "$compiler_lib_search_path_CXX"; then
29967              compiler_lib_search_path_CXX="${prev}${p}"
29968            else
29969              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
29970            fi
29971            ;;
29972          # The "-l" case would never come before the object being
29973          # linked, so don't bother handling this case.
29974          esac
29975        else
29976          if test -z "$postdeps_CXX"; then
29977            postdeps_CXX="${prev}${p}"
29978          else
29979            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
29980          fi
29981        fi
29982        ;;
29983
29984     *.$objext)
29985        # This assumes that the test object file only shows up
29986        # once in the compiler output.
29987        if test "$p" = "conftest.$objext"; then
29988          pre_test_object_deps_done=yes
29989          continue
29990        fi
29991
29992        if test "$pre_test_object_deps_done" = no; then
29993          if test -z "$predep_objects_CXX"; then
29994            predep_objects_CXX="$p"
29995          else
29996            predep_objects_CXX="$predep_objects_CXX $p"
29997          fi
29998        else
29999          if test -z "$postdep_objects_CXX"; then
30000            postdep_objects_CXX="$p"
30001          else
30002            postdep_objects_CXX="$postdep_objects_CXX $p"
30003          fi
30004        fi
30005        ;;
30006
30007     *) ;; # Ignore the rest.
30008
30009     esac
30010   done
30011
30012   # Clean up.
30013   rm -f a.out a.exe
30014 else
30015   echo "libtool.m4: error: problem compiling CXX test program"
30016 fi
30017
30018 $rm -f confest.$objext
30019
30020 # PORTME: override above test on systems where it is broken
30021 case $host_os in
30022 solaris*)
30023   case $cc_basename in
30024   CC*)
30025     # Adding this requires a known-good setup of shared libraries for
30026     # Sun compiler versions before 5.6, else PIC objects from an old
30027     # archive will be linked into the output, leading to subtle bugs.
30028     postdeps_CXX='-lCstd -lCrun'
30029     ;;
30030   esac
30031 esac
30032
30033
30034 case " $postdeps_CXX " in
30035 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
30036 esac
30037
30038 lt_prog_compiler_wl_CXX=
30039 lt_prog_compiler_pic_CXX=
30040 lt_prog_compiler_static_CXX=
30041
30042 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
30043 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
30044
30045   # C++ specific cases for pic, static, wl, etc.
30046   if test "$GXX" = yes; then
30047     lt_prog_compiler_wl_CXX='-Wl,'
30048     lt_prog_compiler_static_CXX='-static'
30049
30050     case $host_os in
30051     aix*)
30052       # All AIX code is PIC.
30053       if test "$host_cpu" = ia64; then
30054         # AIX 5 now supports IA64 processor
30055         lt_prog_compiler_static_CXX='-Bstatic'
30056       fi
30057       ;;
30058     amigaos*)
30059       # FIXME: we need at least 68020 code to build shared libraries, but
30060       # adding the `-m68020' flag to GCC prevents building anything better,
30061       # like `-m68040'.
30062       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
30063       ;;
30064     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30065       # PIC is the default for these OSes.
30066       ;;
30067     mingw* | os2* | pw32*)
30068       # This hack is so that the source file can tell whether it is being
30069       # built for inclusion in a dll (and should export symbols for example).
30070       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
30071       ;;
30072     darwin* | rhapsody*)
30073       # PIC is the default on this platform
30074       # Common symbols not allowed in MH_DYLIB files
30075       lt_prog_compiler_pic_CXX='-fno-common'
30076       ;;
30077     *djgpp*)
30078       # DJGPP does not support shared libraries at all
30079       lt_prog_compiler_pic_CXX=
30080       ;;
30081     sysv4*MP*)
30082       if test -d /usr/nec; then
30083         lt_prog_compiler_pic_CXX=-Kconform_pic
30084       fi
30085       ;;
30086     hpux*)
30087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30088       # not for PA HP-UX.
30089       case $host_cpu in
30090       hppa*64*|ia64*)
30091         ;;
30092       *)
30093         lt_prog_compiler_pic_CXX='-fPIC'
30094         ;;
30095       esac
30096       ;;
30097     *)
30098       lt_prog_compiler_pic_CXX='-fPIC'
30099       ;;
30100     esac
30101   else
30102     case $host_os in
30103       aix4* | aix5*)
30104         # All AIX code is PIC.
30105         if test "$host_cpu" = ia64; then
30106           # AIX 5 now supports IA64 processor
30107           lt_prog_compiler_static_CXX='-Bstatic'
30108         else
30109           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
30110         fi
30111         ;;
30112       chorus*)
30113         case $cc_basename in
30114         cxch68*)
30115           # Green Hills C++ Compiler
30116           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
30117           ;;
30118         esac
30119         ;;
30120        darwin*)
30121          # PIC is the default on this platform
30122          # Common symbols not allowed in MH_DYLIB files
30123          case $cc_basename in
30124            xlc*)
30125            lt_prog_compiler_pic_CXX='-qnocommon'
30126            lt_prog_compiler_wl_CXX='-Wl,'
30127            ;;
30128          esac
30129        ;;
30130       dgux*)
30131         case $cc_basename in
30132           ec++*)
30133             lt_prog_compiler_pic_CXX='-KPIC'
30134             ;;
30135           ghcx*)
30136             # Green Hills C++ Compiler
30137             lt_prog_compiler_pic_CXX='-pic'
30138             ;;
30139           *)
30140             ;;
30141         esac
30142         ;;
30143       freebsd* | kfreebsd*-gnu | dragonfly*)
30144         # FreeBSD uses GNU C++
30145         ;;
30146       hpux9* | hpux10* | hpux11*)
30147         case $cc_basename in
30148           CC*)
30149             lt_prog_compiler_wl_CXX='-Wl,'
30150             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
30151             if test "$host_cpu" != ia64; then
30152               lt_prog_compiler_pic_CXX='+Z'
30153             fi
30154             ;;
30155           aCC*)
30156             lt_prog_compiler_wl_CXX='-Wl,'
30157             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
30158             case $host_cpu in
30159             hppa*64*|ia64*)
30160               # +Z the default
30161               ;;
30162             *)
30163               lt_prog_compiler_pic_CXX='+Z'
30164               ;;
30165             esac
30166             ;;
30167           *)
30168             ;;
30169         esac
30170         ;;
30171       irix5* | irix6* | nonstopux*)
30172         case $cc_basename in
30173           CC*)
30174             lt_prog_compiler_wl_CXX='-Wl,'
30175             lt_prog_compiler_static_CXX='-non_shared'
30176             # CC pic flag -KPIC is the default.
30177             ;;
30178           *)
30179             ;;
30180         esac
30181         ;;
30182       linux*)
30183         case $cc_basename in
30184           KCC*)
30185             # KAI C++ Compiler
30186             lt_prog_compiler_wl_CXX='--backend -Wl,'
30187             lt_prog_compiler_pic_CXX='-fPIC'
30188             ;;
30189           icpc* | ecpc*)
30190             # Intel C++
30191             lt_prog_compiler_wl_CXX='-Wl,'
30192             lt_prog_compiler_pic_CXX='-KPIC'
30193             lt_prog_compiler_static_CXX='-static'
30194             ;;
30195           pgCC*)
30196             # Portland Group C++ compiler.
30197             lt_prog_compiler_wl_CXX='-Wl,'
30198             lt_prog_compiler_pic_CXX='-fpic'
30199             lt_prog_compiler_static_CXX='-Bstatic'
30200             ;;
30201           cxx*)
30202             # Compaq C++
30203             # Make sure the PIC flag is empty.  It appears that all Alpha
30204             # Linux and Compaq Tru64 Unix objects are PIC.
30205             lt_prog_compiler_pic_CXX=
30206             lt_prog_compiler_static_CXX='-non_shared'
30207             ;;
30208           *)
30209             ;;
30210         esac
30211         ;;
30212       lynxos*)
30213         ;;
30214       m88k*)
30215         ;;
30216       mvs*)
30217         case $cc_basename in
30218           cxx*)
30219             lt_prog_compiler_pic_CXX='-W c,exportall'
30220             ;;
30221           *)
30222             ;;
30223         esac
30224         ;;
30225       netbsd*)
30226         ;;
30227       osf3* | osf4* | osf5*)
30228         case $cc_basename in
30229           KCC*)
30230             lt_prog_compiler_wl_CXX='--backend -Wl,'
30231             ;;
30232           RCC*)
30233             # Rational C++ 2.4.1
30234             lt_prog_compiler_pic_CXX='-pic'
30235             ;;
30236           cxx*)
30237             # Digital/Compaq C++
30238             lt_prog_compiler_wl_CXX='-Wl,'
30239             # Make sure the PIC flag is empty.  It appears that all Alpha
30240             # Linux and Compaq Tru64 Unix objects are PIC.
30241             lt_prog_compiler_pic_CXX=
30242             lt_prog_compiler_static_CXX='-non_shared'
30243             ;;
30244           *)
30245             ;;
30246         esac
30247         ;;
30248       psos*)
30249         ;;
30250       sco*)
30251         case $cc_basename in
30252           CC*)
30253             lt_prog_compiler_pic_CXX='-fPIC'
30254             ;;
30255           *)
30256             ;;
30257         esac
30258         ;;
30259       solaris*)
30260         case $cc_basename in
30261           CC*)
30262             # Sun C++ 4.2, 5.x and Centerline C++
30263             lt_prog_compiler_pic_CXX='-KPIC'
30264             lt_prog_compiler_static_CXX='-Bstatic'
30265             lt_prog_compiler_wl_CXX='-Qoption ld '
30266             ;;
30267           gcx*)
30268             # Green Hills C++ Compiler
30269             lt_prog_compiler_pic_CXX='-PIC'
30270             ;;
30271           *)
30272             ;;
30273         esac
30274         ;;
30275       sunos4*)
30276         case $cc_basename in
30277           CC*)
30278             # Sun C++ 4.x
30279             lt_prog_compiler_pic_CXX='-pic'
30280             lt_prog_compiler_static_CXX='-Bstatic'
30281             ;;
30282           lcc*)
30283             # Lucid
30284             lt_prog_compiler_pic_CXX='-pic'
30285             ;;
30286           *)
30287             ;;
30288         esac
30289         ;;
30290       tandem*)
30291         case $cc_basename in
30292           NCC*)
30293             # NonStop-UX NCC 3.20
30294             lt_prog_compiler_pic_CXX='-KPIC'
30295             ;;
30296           *)
30297             ;;
30298         esac
30299         ;;
30300       unixware*)
30301         ;;
30302       vxworks*)
30303         ;;
30304       *)
30305         lt_prog_compiler_can_build_shared_CXX=no
30306         ;;
30307     esac
30308   fi
30309
30310 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
30311 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
30312
30313 #
30314 # Check to make sure the PIC flag actually works.
30315 #
30316 if test -n "$lt_prog_compiler_pic_CXX"; then
30317
30318 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
30319 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
30320 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
30321   echo $ECHO_N "(cached) $ECHO_C" >&6
30322 else
30323   lt_prog_compiler_pic_works_CXX=no
30324   ac_outfile=conftest.$ac_objext
30325    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30326    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
30327    # Insert the option either (1) after the last *FLAGS variable, or
30328    # (2) before a word containing "conftest.", or (3) at the end.
30329    # Note that $ac_compile itself does not contain backslashes and begins
30330    # with a dollar sign (not a hyphen), so the echo should work correctly.
30331    # The option is referenced via a variable to avoid confusing sed.
30332    lt_compile=`echo "$ac_compile" | $SED \
30333    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30335    -e 's:$: $lt_compiler_flag:'`
30336    (eval echo "\"\$as_me:30336: $lt_compile\"" >&5)
30337    (eval "$lt_compile" 2>conftest.err)
30338    ac_status=$?
30339    cat conftest.err >&5
30340    echo "$as_me:30340: \$? = $ac_status" >&5
30341    if (exit $ac_status) && test -s "$ac_outfile"; then
30342      # The compiler can only warn and ignore the option if not recognized
30343      # So say no if there are warnings other than the usual output.
30344      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
30345      $SED '/^$/d' conftest.err >conftest.er2
30346      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
30347        lt_prog_compiler_pic_works_CXX=yes
30348      fi
30349    fi
30350    $rm conftest*
30351
30352 fi
30353 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
30354 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
30355
30356 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
30357     case $lt_prog_compiler_pic_CXX in
30358      "" | " "*) ;;
30359      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
30360      esac
30361 else
30362     lt_prog_compiler_pic_CXX=
30363      lt_prog_compiler_can_build_shared_CXX=no
30364 fi
30365
30366 fi
30367 case $host_os in
30368   # For platforms which do not support PIC, -DPIC is meaningless:
30369   *djgpp*)
30370     lt_prog_compiler_pic_CXX=
30371     ;;
30372   *)
30373     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
30374     ;;
30375 esac
30376
30377 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
30378 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
30379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
30380   echo $ECHO_N "(cached) $ECHO_C" >&6
30381 else
30382   lt_cv_prog_compiler_c_o_CXX=no
30383    $rm -r conftest 2>/dev/null
30384    mkdir conftest
30385    cd conftest
30386    mkdir out
30387    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30388
30389    lt_compiler_flag="-o out/conftest2.$ac_objext"
30390    # Insert the option either (1) after the last *FLAGS variable, or
30391    # (2) before a word containing "conftest.", or (3) at the end.
30392    # Note that $ac_compile itself does not contain backslashes and begins
30393    # with a dollar sign (not a hyphen), so the echo should work correctly.
30394    lt_compile=`echo "$ac_compile" | $SED \
30395    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30397    -e 's:$: $lt_compiler_flag:'`
30398    (eval echo "\"\$as_me:30398: $lt_compile\"" >&5)
30399    (eval "$lt_compile" 2>out/conftest.err)
30400    ac_status=$?
30401    cat out/conftest.err >&5
30402    echo "$as_me:30402: \$? = $ac_status" >&5
30403    if (exit $ac_status) && test -s out/conftest2.$ac_objext
30404    then
30405      # The compiler can only warn and ignore the option if not recognized
30406      # So say no if there are warnings
30407      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
30408      $SED '/^$/d' out/conftest.err >out/conftest.er2
30409      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
30410        lt_cv_prog_compiler_c_o_CXX=yes
30411      fi
30412    fi
30413    chmod u+w . 2>&5
30414    $rm conftest*
30415    # SGI C++ compiler will create directory out/ii_files/ for
30416    # template instantiation
30417    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
30418    $rm out/* && rmdir out
30419    cd ..
30420    rmdir conftest
30421    $rm conftest*
30422
30423 fi
30424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
30425 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
30426
30427
30428 hard_links="nottested"
30429 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
30430   # do not overwrite the value of need_locks provided by the user
30431   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
30432 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
30433   hard_links=yes
30434   $rm conftest*
30435   ln conftest.a conftest.b 2>/dev/null && hard_links=no
30436   touch conftest.a
30437   ln conftest.a conftest.b 2>&5 || hard_links=no
30438   ln conftest.a conftest.b 2>/dev/null && hard_links=no
30439   echo "$as_me:$LINENO: result: $hard_links" >&5
30440 echo "${ECHO_T}$hard_links" >&6
30441   if test "$hard_links" = no; then
30442     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
30443 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
30444     need_locks=warn
30445   fi
30446 else
30447   need_locks=no
30448 fi
30449
30450 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
30451 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
30452
30453   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30454   case $host_os in
30455   aix4* | aix5*)
30456     # If we're using GNU nm, then we don't want the "-C" option.
30457     # -C means demangle to AIX nm, but means don't demangle with GNU nm
30458     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
30459       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
30460     else
30461       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
30462     fi
30463     ;;
30464   pw32*)
30465     export_symbols_cmds_CXX="$ltdll_cmds"
30466   ;;
30467   cygwin* | mingw*)
30468     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
30469   ;;
30470   *)
30471     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
30472   ;;
30473   esac
30474
30475 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
30476 echo "${ECHO_T}$ld_shlibs_CXX" >&6
30477 test "$ld_shlibs_CXX" = no && can_build_shared=no
30478
30479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
30480 if test "$GCC" = yes; then
30481   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
30482 fi
30483
30484 #
30485 # Do we need to explicitly link libc?
30486 #
30487 case "x$archive_cmds_need_lc_CXX" in
30488 x|xyes)
30489   # Assume -lc should be added
30490   archive_cmds_need_lc_CXX=yes
30491
30492   if test "$enable_shared" = yes && test "$GCC" = yes; then
30493     case $archive_cmds_CXX in
30494     *'~'*)
30495       # FIXME: we may have to deal with multi-command sequences.
30496       ;;
30497     '$CC '*)
30498       # Test whether the compiler implicitly links with -lc since on some
30499       # systems, -lgcc has to come before -lc. If gcc already passes -lc
30500       # to ld, don't add -lc before -lgcc.
30501       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
30502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
30503       $rm conftest*
30504       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30505
30506       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30507   (eval $ac_compile) 2>&5
30508   ac_status=$?
30509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30510   (exit $ac_status); } 2>conftest.err; then
30511         soname=conftest
30512         lib=conftest
30513         libobjs=conftest.$ac_objext
30514         deplibs=
30515         wl=$lt_prog_compiler_wl_CXX
30516         compiler_flags=-v
30517         linker_flags=-v
30518         verstring=
30519         output_objdir=.
30520         libname=conftest
30521         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
30522         allow_undefined_flag_CXX=
30523         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
30524   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
30525   ac_status=$?
30526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527   (exit $ac_status); }
30528         then
30529           archive_cmds_need_lc_CXX=no
30530         else
30531           archive_cmds_need_lc_CXX=yes
30532         fi
30533         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
30534       else
30535         cat conftest.err 1>&5
30536       fi
30537       $rm conftest*
30538       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
30539 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
30540       ;;
30541     esac
30542   fi
30543   ;;
30544 esac
30545
30546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
30547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
30548 library_names_spec=
30549 libname_spec='lib$name'
30550 soname_spec=
30551 shrext_cmds=".so"
30552 postinstall_cmds=
30553 postuninstall_cmds=
30554 finish_cmds=
30555 finish_eval=
30556 shlibpath_var=
30557 shlibpath_overrides_runpath=unknown
30558 version_type=none
30559 dynamic_linker="$host_os ld.so"
30560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
30561 if test "$GCC" = yes; then
30562   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
30563   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
30564     # if the path contains ";" then we assume it to be the separator
30565     # otherwise default to the standard path separator (i.e. ":") - it is
30566     # assumed that no part of a normal pathname contains ";" but that should
30567     # okay in the real world where ";" in dirpaths is itself problematic.
30568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
30569   else
30570     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
30571   fi
30572 else
30573   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
30574 fi
30575 need_lib_prefix=unknown
30576 hardcode_into_libs=no
30577
30578 # when you set need_version to no, make sure it does not cause -set_version
30579 # flags to be left without arguments
30580 need_version=unknown
30581
30582 case $host_os in
30583 aix3*)
30584   version_type=linux
30585   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
30586   shlibpath_var=LIBPATH
30587
30588   # AIX 3 has no versioning support, so we append a major version to the name.
30589   soname_spec='${libname}${release}${shared_ext}$major'
30590   ;;
30591
30592 aix4* | aix5*)
30593   version_type=linux
30594   need_lib_prefix=no
30595   need_version=no
30596   hardcode_into_libs=yes
30597   if test "$host_cpu" = ia64; then
30598     # AIX 5 supports IA64
30599     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
30600     shlibpath_var=LD_LIBRARY_PATH
30601   else
30602     # With GCC up to 2.95.x, collect2 would create an import file
30603     # for dependence libraries.  The import file would start with
30604     # the line `#! .'.  This would cause the generated library to
30605     # depend on `.', always an invalid library.  This was fixed in
30606     # development snapshots of GCC prior to 3.0.
30607     case $host_os in
30608       aix4 | aix4.[01] | aix4.[01].*)
30609       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
30610            echo ' yes '
30611            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
30612         :
30613       else
30614         can_build_shared=no
30615       fi
30616       ;;
30617     esac
30618     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
30619     # soname into executable. Probably we can add versioning support to
30620     # collect2, so additional links can be useful in future.
30621     if test "$aix_use_runtimelinking" = yes; then
30622       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
30623       # instead of lib<name>.a to let people know that these are not
30624       # typical AIX shared libraries.
30625       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30626     else
30627       # We preserve .a as extension for shared libraries through AIX4.2
30628       # and later when we are not doing run time linking.
30629       library_names_spec='${libname}${release}.a $libname.a'
30630       soname_spec='${libname}${release}${shared_ext}$major'
30631     fi
30632     shlibpath_var=LIBPATH
30633   fi
30634   ;;
30635
30636 amigaos*)
30637   library_names_spec='$libname.ixlibrary $libname.a'
30638   # Create ${libname}_ixlibrary.a entries in /sys/libs.
30639   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'
30640   ;;
30641
30642 beos*)
30643   library_names_spec='${libname}${shared_ext}'
30644   dynamic_linker="$host_os ld.so"
30645   shlibpath_var=LIBRARY_PATH
30646   ;;
30647
30648 bsdi[45]*)
30649   version_type=linux
30650   need_version=no
30651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30652   soname_spec='${libname}${release}${shared_ext}$major'
30653   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
30654   shlibpath_var=LD_LIBRARY_PATH
30655   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
30656   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
30657   # the default ld.so.conf also contains /usr/contrib/lib and
30658   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
30659   # libtool to hard-code these into programs
30660   ;;
30661
30662 cygwin* | mingw* | pw32*)
30663   version_type=windows
30664   shrext_cmds=".dll"
30665   need_version=no
30666   need_lib_prefix=no
30667
30668   case $GCC,$host_os in
30669   yes,cygwin* | yes,mingw* | yes,pw32*)
30670     library_names_spec='$libname.dll.a'
30671     # DLL is installed to $(libdir)/../bin by postinstall_cmds
30672     postinstall_cmds='base_file=`basename \${file}`~
30673       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
30674       dldir=$destdir/`dirname \$dlpath`~
30675       test -d \$dldir || mkdir -p \$dldir~
30676       $install_prog $dir/$dlname \$dldir/$dlname~
30677       chmod a+x \$dldir/$dlname'
30678     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
30679       dlpath=$dir/\$dldll~
30680        $rm \$dlpath'
30681     shlibpath_overrides_runpath=yes
30682
30683     case $host_os in
30684     cygwin*)
30685       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
30686       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
30687       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
30688       ;;
30689     mingw*)
30690       # MinGW DLLs use traditional 'lib' prefix
30691       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
30692       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
30693       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
30694         # It is most probably a Windows format PATH printed by
30695         # mingw gcc, but we are running on Cygwin. Gcc prints its search
30696         # path with ; separators, and with drive letters. We can handle the
30697         # drive letters (cygwin fileutils understands them), so leave them,
30698         # especially as we might pass files found there to a mingw objdump,
30699         # which wouldn't understand a cygwinified path. Ahh.
30700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
30701       else
30702         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
30703       fi
30704       ;;
30705     pw32*)
30706       # pw32 DLLs use 'pw' prefix rather than 'lib'
30707       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
30708       ;;
30709     esac
30710     ;;
30711
30712   *)
30713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
30714     ;;
30715   esac
30716   dynamic_linker='Win32 ld.exe'
30717   # FIXME: first we should search . and the directory the executable is in
30718   shlibpath_var=PATH
30719   ;;
30720
30721 darwin* | rhapsody*)
30722   dynamic_linker="$host_os dyld"
30723   version_type=darwin
30724   need_lib_prefix=no
30725   need_version=no
30726   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
30727   soname_spec='${libname}${release}${major}$shared_ext'
30728   shlibpath_overrides_runpath=yes
30729   shlibpath_var=DYLD_LIBRARY_PATH
30730   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
30731   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
30732   if test "$GCC" = yes; then
30733     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
30734   else
30735     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
30736   fi
30737   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
30738   ;;
30739
30740 dgux*)
30741   version_type=linux
30742   need_lib_prefix=no
30743   need_version=no
30744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
30745   soname_spec='${libname}${release}${shared_ext}$major'
30746   shlibpath_var=LD_LIBRARY_PATH
30747   ;;
30748
30749 freebsd1*)
30750   dynamic_linker=no
30751   ;;
30752
30753 kfreebsd*-gnu)
30754   version_type=linux
30755   need_lib_prefix=no
30756   need_version=no
30757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30758   soname_spec='${libname}${release}${shared_ext}$major'
30759   shlibpath_var=LD_LIBRARY_PATH
30760   shlibpath_overrides_runpath=no
30761   hardcode_into_libs=yes
30762   dynamic_linker='GNU ld.so'
30763   ;;
30764
30765 freebsd* | dragonfly*)
30766   # DragonFly does not have aout.  When/if they implement a new
30767   # versioning mechanism, adjust this.
30768   if test -x /usr/bin/objformat; then
30769     objformat=`/usr/bin/objformat`
30770   else
30771     case $host_os in
30772     freebsd[123]*) objformat=aout ;;
30773     *) objformat=elf ;;
30774     esac
30775   fi
30776   version_type=freebsd-$objformat
30777   case $version_type in
30778     freebsd-elf*)
30779       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
30780       need_version=no
30781       need_lib_prefix=no
30782       ;;
30783     freebsd-*)
30784       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
30785       need_version=yes
30786       ;;
30787   esac
30788   shlibpath_var=LD_LIBRARY_PATH
30789   case $host_os in
30790   freebsd2*)
30791     shlibpath_overrides_runpath=yes
30792     ;;
30793   freebsd3.[01]* | freebsdelf3.[01]*)
30794     shlibpath_overrides_runpath=yes
30795     hardcode_into_libs=yes
30796     ;;
30797   *) # from 3.2 on
30798     shlibpath_overrides_runpath=no
30799     hardcode_into_libs=yes
30800     ;;
30801   esac
30802   ;;
30803
30804 gnu*)
30805   version_type=linux
30806   need_lib_prefix=no
30807   need_version=no
30808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
30809   soname_spec='${libname}${release}${shared_ext}$major'
30810   shlibpath_var=LD_LIBRARY_PATH
30811   hardcode_into_libs=yes
30812   ;;
30813
30814 hpux9* | hpux10* | hpux11*)
30815   # Give a soname corresponding to the major version so that dld.sl refuses to
30816   # link against other versions.
30817   version_type=sunos
30818   need_lib_prefix=no
30819   need_version=no
30820   case $host_cpu in
30821   ia64*)
30822     shrext_cmds='.so'
30823     hardcode_into_libs=yes
30824     dynamic_linker="$host_os dld.so"
30825     shlibpath_var=LD_LIBRARY_PATH
30826     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
30827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30828     soname_spec='${libname}${release}${shared_ext}$major'
30829     if test "X$HPUX_IA64_MODE" = X32; then
30830       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
30831     else
30832       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
30833     fi
30834     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30835     ;;
30836    hppa*64*)
30837      shrext_cmds='.sl'
30838      hardcode_into_libs=yes
30839      dynamic_linker="$host_os dld.sl"
30840      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
30841      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
30842      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30843      soname_spec='${libname}${release}${shared_ext}$major'
30844      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
30845      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
30846      ;;
30847    *)
30848     shrext_cmds='.sl'
30849     dynamic_linker="$host_os dld.sl"
30850     shlibpath_var=SHLIB_PATH
30851     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
30852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30853     soname_spec='${libname}${release}${shared_ext}$major'
30854     ;;
30855   esac
30856   # HP-UX runs *really* slowly unless shared libraries are mode 555.
30857   postinstall_cmds='chmod 555 $lib'
30858   ;;
30859
30860 irix5* | irix6* | nonstopux*)
30861   case $host_os in
30862     nonstopux*) version_type=nonstopux ;;
30863     *)
30864         if test "$lt_cv_prog_gnu_ld" = yes; then
30865                 version_type=linux
30866         else
30867                 version_type=irix
30868         fi ;;
30869   esac
30870   need_lib_prefix=no
30871   need_version=no
30872   soname_spec='${libname}${release}${shared_ext}$major'
30873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
30874   case $host_os in
30875   irix5* | nonstopux*)
30876     libsuff= shlibsuff=
30877     ;;
30878   *)
30879     case $LD in # libtool.m4 will add one of these switches to LD
30880     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
30881       libsuff= shlibsuff= libmagic=32-bit;;
30882     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
30883       libsuff=32 shlibsuff=N32 libmagic=N32;;
30884     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
30885       libsuff=64 shlibsuff=64 libmagic=64-bit;;
30886     *) libsuff= shlibsuff= libmagic=never-match;;
30887     esac
30888     ;;
30889   esac
30890   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
30891   shlibpath_overrides_runpath=no
30892   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
30893   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
30894   hardcode_into_libs=yes
30895   ;;
30896
30897 # No shared lib support for Linux oldld, aout, or coff.
30898 linux*oldld* | linux*aout* | linux*coff*)
30899   dynamic_linker=no
30900   ;;
30901
30902 # This must be Linux ELF.
30903 linux*)
30904   version_type=linux
30905   need_lib_prefix=no
30906   need_version=no
30907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30908   soname_spec='${libname}${release}${shared_ext}$major'
30909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
30910   shlibpath_var=LD_LIBRARY_PATH
30911   shlibpath_overrides_runpath=no
30912   # This implies no fast_install, which is unacceptable.
30913   # Some rework will be needed to allow for fast_install
30914   # before this can be enabled.
30915   hardcode_into_libs=yes
30916
30917   # Append ld.so.conf contents to the search path
30918   if test -f /etc/ld.so.conf; then
30919     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
30920     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
30921   fi
30922
30923   # We used to test for /lib/ld.so.1 and disable shared libraries on
30924   # powerpc, because MkLinux only supported shared libraries with the
30925   # GNU dynamic linker.  Since this was broken with cross compilers,
30926   # most powerpc-linux boxes support dynamic linking these days and
30927   # people can always --disable-shared, the test was removed, and we
30928   # assume the GNU/Linux dynamic linker is in use.
30929   dynamic_linker='GNU/Linux ld.so'
30930   ;;
30931
30932 knetbsd*-gnu)
30933   version_type=linux
30934   need_lib_prefix=no
30935   need_version=no
30936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30937   soname_spec='${libname}${release}${shared_ext}$major'
30938   shlibpath_var=LD_LIBRARY_PATH
30939   shlibpath_overrides_runpath=no
30940   hardcode_into_libs=yes
30941   dynamic_linker='GNU ld.so'
30942   ;;
30943
30944 netbsd*)
30945   version_type=sunos
30946   need_lib_prefix=no
30947   need_version=no
30948   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
30949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30950     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30951     dynamic_linker='NetBSD (a.out) ld.so'
30952   else
30953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
30954     soname_spec='${libname}${release}${shared_ext}$major'
30955     dynamic_linker='NetBSD ld.elf_so'
30956   fi
30957   shlibpath_var=LD_LIBRARY_PATH
30958   shlibpath_overrides_runpath=yes
30959   hardcode_into_libs=yes
30960   ;;
30961
30962 newsos6)
30963   version_type=linux
30964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30965   shlibpath_var=LD_LIBRARY_PATH
30966   shlibpath_overrides_runpath=yes
30967   ;;
30968
30969 nto-qnx*)
30970   version_type=linux
30971   need_lib_prefix=no
30972   need_version=no
30973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
30974   soname_spec='${libname}${release}${shared_ext}$major'
30975   shlibpath_var=LD_LIBRARY_PATH
30976   shlibpath_overrides_runpath=yes
30977   ;;
30978
30979 openbsd*)
30980   version_type=sunos
30981   need_lib_prefix=no
30982   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
30983   case $host_os in
30984     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
30985     *)                         need_version=no  ;;
30986   esac
30987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
30988   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
30989   shlibpath_var=LD_LIBRARY_PATH
30990   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
30991     case $host_os in
30992       openbsd2.[89] | openbsd2.[89].*)
30993         shlibpath_overrides_runpath=no
30994         ;;
30995       *)
30996         shlibpath_overrides_runpath=yes
30997         ;;
30998       esac
30999   else
31000     shlibpath_overrides_runpath=yes
31001   fi
31002   ;;
31003
31004 os2*)
31005   libname_spec='$name'
31006   shrext_cmds=".dll"
31007   need_lib_prefix=no
31008   library_names_spec='$libname${shared_ext} $libname.a'
31009   dynamic_linker='OS/2 ld.exe'
31010   shlibpath_var=LIBPATH
31011   ;;
31012
31013 osf3* | osf4* | osf5*)
31014   version_type=osf
31015   need_lib_prefix=no
31016   need_version=no
31017   soname_spec='${libname}${release}${shared_ext}$major'
31018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31019   shlibpath_var=LD_LIBRARY_PATH
31020   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
31021   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
31022   ;;
31023
31024 sco3.2v5*)
31025   version_type=osf
31026   soname_spec='${libname}${release}${shared_ext}$major'
31027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31028   shlibpath_var=LD_LIBRARY_PATH
31029   ;;
31030
31031 solaris*)
31032   version_type=linux
31033   need_lib_prefix=no
31034   need_version=no
31035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31036   soname_spec='${libname}${release}${shared_ext}$major'
31037   shlibpath_var=LD_LIBRARY_PATH
31038   shlibpath_overrides_runpath=yes
31039   hardcode_into_libs=yes
31040   # ldd complains unless libraries are executable
31041   postinstall_cmds='chmod +x $lib'
31042   ;;
31043
31044 sunos4*)
31045   version_type=sunos
31046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
31047   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
31048   shlibpath_var=LD_LIBRARY_PATH
31049   shlibpath_overrides_runpath=yes
31050   if test "$with_gnu_ld" = yes; then
31051     need_lib_prefix=no
31052   fi
31053   need_version=yes
31054   ;;
31055
31056 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
31057   version_type=linux
31058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31059   soname_spec='${libname}${release}${shared_ext}$major'
31060   shlibpath_var=LD_LIBRARY_PATH
31061   case $host_vendor in
31062     sni)
31063       shlibpath_overrides_runpath=no
31064       need_lib_prefix=no
31065       export_dynamic_flag_spec='${wl}-Blargedynsym'
31066       runpath_var=LD_RUN_PATH
31067       ;;
31068     siemens)
31069       need_lib_prefix=no
31070       ;;
31071     motorola)
31072       need_lib_prefix=no
31073       need_version=no
31074       shlibpath_overrides_runpath=no
31075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
31076       ;;
31077   esac
31078   ;;
31079
31080 sysv4*MP*)
31081   if test -d /usr/nec ;then
31082     version_type=linux
31083     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
31084     soname_spec='$libname${shared_ext}.$major'
31085     shlibpath_var=LD_LIBRARY_PATH
31086   fi
31087   ;;
31088
31089 uts4*)
31090   version_type=linux
31091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
31092   soname_spec='${libname}${release}${shared_ext}$major'
31093   shlibpath_var=LD_LIBRARY_PATH
31094   ;;
31095
31096 *)
31097   dynamic_linker=no
31098   ;;
31099 esac
31100 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
31101 echo "${ECHO_T}$dynamic_linker" >&6
31102 test "$dynamic_linker" = no && can_build_shared=no
31103
31104 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
31105 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
31106 hardcode_action_CXX=
31107 if test -n "$hardcode_libdir_flag_spec_CXX" || \
31108    test -n "$runpath_var_CXX" || \
31109    test "X$hardcode_automatic_CXX" = "Xyes" ; then
31110
31111   # We can hardcode non-existant directories.
31112   if test "$hardcode_direct_CXX" != no &&
31113      # If the only mechanism to avoid hardcoding is shlibpath_var, we
31114      # have to relink, otherwise we might link with an installed library
31115      # when we should be linking with a yet-to-be-installed one
31116      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
31117      test "$hardcode_minus_L_CXX" != no; then
31118     # Linking always hardcodes the temporary library directory.
31119     hardcode_action_CXX=relink
31120   else
31121     # We can link without hardcoding, and we can hardcode nonexisting dirs.
31122     hardcode_action_CXX=immediate
31123   fi
31124 else
31125   # We cannot hardcode anything, or else we can only hardcode existing
31126   # directories.
31127   hardcode_action_CXX=unsupported
31128 fi
31129 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
31130 echo "${ECHO_T}$hardcode_action_CXX" >&6
31131
31132 if test "$hardcode_action_CXX" = relink; then
31133   # Fast installation is not supported
31134   enable_fast_install=no
31135 elif test "$shlibpath_overrides_runpath" = yes ||
31136      test "$enable_shared" = no; then
31137   # Fast installation is not necessary
31138   enable_fast_install=needless
31139 fi
31140
31141 striplib=
31142 old_striplib=
31143 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
31144 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
31145 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
31146   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
31147   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
31148   echo "$as_me:$LINENO: result: yes" >&5
31149 echo "${ECHO_T}yes" >&6
31150 else
31151 # FIXME - insert some real tests, host_os isn't really good enough
31152   case $host_os in
31153    darwin*)
31154        if test -n "$STRIP" ; then
31155          striplib="$STRIP -x"
31156          echo "$as_me:$LINENO: result: yes" >&5
31157 echo "${ECHO_T}yes" >&6
31158        else
31159   echo "$as_me:$LINENO: result: no" >&5
31160 echo "${ECHO_T}no" >&6
31161 fi
31162        ;;
31163    *)
31164   echo "$as_me:$LINENO: result: no" >&5
31165 echo "${ECHO_T}no" >&6
31166     ;;
31167   esac
31168 fi
31169
31170 if test "x$enable_dlopen" != xyes; then
31171   enable_dlopen=unknown
31172   enable_dlopen_self=unknown
31173   enable_dlopen_self_static=unknown
31174 else
31175   lt_cv_dlopen=no
31176   lt_cv_dlopen_libs=
31177
31178   case $host_os in
31179   beos*)
31180     lt_cv_dlopen="load_add_on"
31181     lt_cv_dlopen_libs=
31182     lt_cv_dlopen_self=yes
31183     ;;
31184
31185   mingw* | pw32*)
31186     lt_cv_dlopen="LoadLibrary"
31187     lt_cv_dlopen_libs=
31188    ;;
31189
31190   cygwin*)
31191     lt_cv_dlopen="dlopen"
31192     lt_cv_dlopen_libs=
31193    ;;
31194
31195   darwin*)
31196   # if libdl is installed we need to link against it
31197     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31198 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31199 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31200   echo $ECHO_N "(cached) $ECHO_C" >&6
31201 else
31202   ac_check_lib_save_LIBS=$LIBS
31203 LIBS="-ldl  $LIBS"
31204 cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210
31211 /* Override any gcc2 internal prototype to avoid an error.  */
31212 #ifdef __cplusplus
31213 extern "C"
31214 #endif
31215 /* We use char because int might match the return type of a gcc2
31216    builtin and then its argument prototype would still apply.  */
31217 char dlopen ();
31218 int
31219 main ()
31220 {
31221 dlopen ();
31222   ;
31223   return 0;
31224 }
31225 _ACEOF
31226 rm -f conftest.$ac_objext conftest$ac_exeext
31227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31228   (eval $ac_link) 2>conftest.er1
31229   ac_status=$?
31230   grep -v '^ *+' conftest.er1 >conftest.err
31231   rm -f conftest.er1
31232   cat conftest.err >&5
31233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234   (exit $ac_status); } &&
31235          { ac_try='test -z "$ac_cxx_werror_flag"
31236                          || test ! -s conftest.err'
31237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31238   (eval $ac_try) 2>&5
31239   ac_status=$?
31240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241   (exit $ac_status); }; } &&
31242          { ac_try='test -s conftest$ac_exeext'
31243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31244   (eval $ac_try) 2>&5
31245   ac_status=$?
31246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247   (exit $ac_status); }; }; then
31248   ac_cv_lib_dl_dlopen=yes
31249 else
31250   echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253 ac_cv_lib_dl_dlopen=no
31254 fi
31255 rm -f conftest.err conftest.$ac_objext \
31256       conftest$ac_exeext conftest.$ac_ext
31257 LIBS=$ac_check_lib_save_LIBS
31258 fi
31259 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31260 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31261 if test $ac_cv_lib_dl_dlopen = yes; then
31262   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
31263 else
31264
31265     lt_cv_dlopen="dyld"
31266     lt_cv_dlopen_libs=
31267     lt_cv_dlopen_self=yes
31268
31269 fi
31270
31271    ;;
31272
31273   *)
31274     echo "$as_me:$LINENO: checking for shl_load" >&5
31275 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
31276 if test "${ac_cv_func_shl_load+set}" = set; then
31277   echo $ECHO_N "(cached) $ECHO_C" >&6
31278 else
31279   cat >conftest.$ac_ext <<_ACEOF
31280 /* confdefs.h.  */
31281 _ACEOF
31282 cat confdefs.h >>conftest.$ac_ext
31283 cat >>conftest.$ac_ext <<_ACEOF
31284 /* end confdefs.h.  */
31285 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
31286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31287 #define shl_load innocuous_shl_load
31288
31289 /* System header to define __stub macros and hopefully few prototypes,
31290     which can conflict with char shl_load (); below.
31291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31292     <limits.h> exists even on freestanding compilers.  */
31293
31294 #ifdef __STDC__
31295 # include <limits.h>
31296 #else
31297 # include <assert.h>
31298 #endif
31299
31300 #undef shl_load
31301
31302 /* Override any gcc2 internal prototype to avoid an error.  */
31303 #ifdef __cplusplus
31304 extern "C"
31305 {
31306 #endif
31307 /* We use char because int might match the return type of a gcc2
31308    builtin and then its argument prototype would still apply.  */
31309 char shl_load ();
31310 /* The GNU C library defines this for functions which it implements
31311     to always fail with ENOSYS.  Some functions are actually named
31312     something starting with __ and the normal name is an alias.  */
31313 #if defined (__stub_shl_load) || defined (__stub___shl_load)
31314 choke me
31315 #else
31316 char (*f) () = shl_load;
31317 #endif
31318 #ifdef __cplusplus
31319 }
31320 #endif
31321
31322 int
31323 main ()
31324 {
31325 return f != shl_load;
31326   ;
31327   return 0;
31328 }
31329 _ACEOF
31330 rm -f conftest.$ac_objext conftest$ac_exeext
31331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31332   (eval $ac_link) 2>conftest.er1
31333   ac_status=$?
31334   grep -v '^ *+' conftest.er1 >conftest.err
31335   rm -f conftest.er1
31336   cat conftest.err >&5
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); } &&
31339          { ac_try='test -z "$ac_cxx_werror_flag"
31340                          || test ! -s conftest.err'
31341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342   (eval $ac_try) 2>&5
31343   ac_status=$?
31344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345   (exit $ac_status); }; } &&
31346          { ac_try='test -s conftest$ac_exeext'
31347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348   (eval $ac_try) 2>&5
31349   ac_status=$?
31350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351   (exit $ac_status); }; }; then
31352   ac_cv_func_shl_load=yes
31353 else
31354   echo "$as_me: failed program was:" >&5
31355 sed 's/^/| /' conftest.$ac_ext >&5
31356
31357 ac_cv_func_shl_load=no
31358 fi
31359 rm -f conftest.err conftest.$ac_objext \
31360       conftest$ac_exeext conftest.$ac_ext
31361 fi
31362 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
31363 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
31364 if test $ac_cv_func_shl_load = yes; then
31365   lt_cv_dlopen="shl_load"
31366 else
31367   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
31368 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
31369 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
31370   echo $ECHO_N "(cached) $ECHO_C" >&6
31371 else
31372   ac_check_lib_save_LIBS=$LIBS
31373 LIBS="-ldld  $LIBS"
31374 cat >conftest.$ac_ext <<_ACEOF
31375 /* confdefs.h.  */
31376 _ACEOF
31377 cat confdefs.h >>conftest.$ac_ext
31378 cat >>conftest.$ac_ext <<_ACEOF
31379 /* end confdefs.h.  */
31380
31381 /* Override any gcc2 internal prototype to avoid an error.  */
31382 #ifdef __cplusplus
31383 extern "C"
31384 #endif
31385 /* We use char because int might match the return type of a gcc2
31386    builtin and then its argument prototype would still apply.  */
31387 char shl_load ();
31388 int
31389 main ()
31390 {
31391 shl_load ();
31392   ;
31393   return 0;
31394 }
31395 _ACEOF
31396 rm -f conftest.$ac_objext conftest$ac_exeext
31397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31398   (eval $ac_link) 2>conftest.er1
31399   ac_status=$?
31400   grep -v '^ *+' conftest.er1 >conftest.err
31401   rm -f conftest.er1
31402   cat conftest.err >&5
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); } &&
31405          { ac_try='test -z "$ac_cxx_werror_flag"
31406                          || test ! -s conftest.err'
31407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31408   (eval $ac_try) 2>&5
31409   ac_status=$?
31410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); }; } &&
31412          { ac_try='test -s conftest$ac_exeext'
31413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31414   (eval $ac_try) 2>&5
31415   ac_status=$?
31416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417   (exit $ac_status); }; }; then
31418   ac_cv_lib_dld_shl_load=yes
31419 else
31420   echo "$as_me: failed program was:" >&5
31421 sed 's/^/| /' conftest.$ac_ext >&5
31422
31423 ac_cv_lib_dld_shl_load=no
31424 fi
31425 rm -f conftest.err conftest.$ac_objext \
31426       conftest$ac_exeext conftest.$ac_ext
31427 LIBS=$ac_check_lib_save_LIBS
31428 fi
31429 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
31430 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
31431 if test $ac_cv_lib_dld_shl_load = yes; then
31432   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
31433 else
31434   echo "$as_me:$LINENO: checking for dlopen" >&5
31435 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
31436 if test "${ac_cv_func_dlopen+set}" = set; then
31437   echo $ECHO_N "(cached) $ECHO_C" >&6
31438 else
31439   cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h.  */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h.  */
31445 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
31446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31447 #define dlopen innocuous_dlopen
31448
31449 /* System header to define __stub macros and hopefully few prototypes,
31450     which can conflict with char dlopen (); below.
31451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31452     <limits.h> exists even on freestanding compilers.  */
31453
31454 #ifdef __STDC__
31455 # include <limits.h>
31456 #else
31457 # include <assert.h>
31458 #endif
31459
31460 #undef dlopen
31461
31462 /* Override any gcc2 internal prototype to avoid an error.  */
31463 #ifdef __cplusplus
31464 extern "C"
31465 {
31466 #endif
31467 /* We use char because int might match the return type of a gcc2
31468    builtin and then its argument prototype would still apply.  */
31469 char dlopen ();
31470 /* The GNU C library defines this for functions which it implements
31471     to always fail with ENOSYS.  Some functions are actually named
31472     something starting with __ and the normal name is an alias.  */
31473 #if defined (__stub_dlopen) || defined (__stub___dlopen)
31474 choke me
31475 #else
31476 char (*f) () = dlopen;
31477 #endif
31478 #ifdef __cplusplus
31479 }
31480 #endif
31481
31482 int
31483 main ()
31484 {
31485 return f != dlopen;
31486   ;
31487   return 0;
31488 }
31489 _ACEOF
31490 rm -f conftest.$ac_objext conftest$ac_exeext
31491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31492   (eval $ac_link) 2>conftest.er1
31493   ac_status=$?
31494   grep -v '^ *+' conftest.er1 >conftest.err
31495   rm -f conftest.er1
31496   cat conftest.err >&5
31497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498   (exit $ac_status); } &&
31499          { ac_try='test -z "$ac_cxx_werror_flag"
31500                          || test ! -s conftest.err'
31501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502   (eval $ac_try) 2>&5
31503   ac_status=$?
31504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505   (exit $ac_status); }; } &&
31506          { ac_try='test -s conftest$ac_exeext'
31507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31508   (eval $ac_try) 2>&5
31509   ac_status=$?
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); }; }; then
31512   ac_cv_func_dlopen=yes
31513 else
31514   echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31516
31517 ac_cv_func_dlopen=no
31518 fi
31519 rm -f conftest.err conftest.$ac_objext \
31520       conftest$ac_exeext conftest.$ac_ext
31521 fi
31522 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
31523 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
31524 if test $ac_cv_func_dlopen = yes; then
31525   lt_cv_dlopen="dlopen"
31526 else
31527   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31528 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31529 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31530   echo $ECHO_N "(cached) $ECHO_C" >&6
31531 else
31532   ac_check_lib_save_LIBS=$LIBS
31533 LIBS="-ldl  $LIBS"
31534 cat >conftest.$ac_ext <<_ACEOF
31535 /* confdefs.h.  */
31536 _ACEOF
31537 cat confdefs.h >>conftest.$ac_ext
31538 cat >>conftest.$ac_ext <<_ACEOF
31539 /* end confdefs.h.  */
31540
31541 /* Override any gcc2 internal prototype to avoid an error.  */
31542 #ifdef __cplusplus
31543 extern "C"
31544 #endif
31545 /* We use char because int might match the return type of a gcc2
31546    builtin and then its argument prototype would still apply.  */
31547 char dlopen ();
31548 int
31549 main ()
31550 {
31551 dlopen ();
31552   ;
31553   return 0;
31554 }
31555 _ACEOF
31556 rm -f conftest.$ac_objext conftest$ac_exeext
31557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31558   (eval $ac_link) 2>conftest.er1
31559   ac_status=$?
31560   grep -v '^ *+' conftest.er1 >conftest.err
31561   rm -f conftest.er1
31562   cat conftest.err >&5
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); } &&
31565          { ac_try='test -z "$ac_cxx_werror_flag"
31566                          || test ! -s conftest.err'
31567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31568   (eval $ac_try) 2>&5
31569   ac_status=$?
31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571   (exit $ac_status); }; } &&
31572          { ac_try='test -s conftest$ac_exeext'
31573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574   (eval $ac_try) 2>&5
31575   ac_status=$?
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); }; }; then
31578   ac_cv_lib_dl_dlopen=yes
31579 else
31580   echo "$as_me: failed program was:" >&5
31581 sed 's/^/| /' conftest.$ac_ext >&5
31582
31583 ac_cv_lib_dl_dlopen=no
31584 fi
31585 rm -f conftest.err conftest.$ac_objext \
31586       conftest$ac_exeext conftest.$ac_ext
31587 LIBS=$ac_check_lib_save_LIBS
31588 fi
31589 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31590 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31591 if test $ac_cv_lib_dl_dlopen = yes; then
31592   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
31593 else
31594   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
31595 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
31596 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
31597   echo $ECHO_N "(cached) $ECHO_C" >&6
31598 else
31599   ac_check_lib_save_LIBS=$LIBS
31600 LIBS="-lsvld  $LIBS"
31601 cat >conftest.$ac_ext <<_ACEOF
31602 /* confdefs.h.  */
31603 _ACEOF
31604 cat confdefs.h >>conftest.$ac_ext
31605 cat >>conftest.$ac_ext <<_ACEOF
31606 /* end confdefs.h.  */
31607
31608 /* Override any gcc2 internal prototype to avoid an error.  */
31609 #ifdef __cplusplus
31610 extern "C"
31611 #endif
31612 /* We use char because int might match the return type of a gcc2
31613    builtin and then its argument prototype would still apply.  */
31614 char dlopen ();
31615 int
31616 main ()
31617 {
31618 dlopen ();
31619   ;
31620   return 0;
31621 }
31622 _ACEOF
31623 rm -f conftest.$ac_objext conftest$ac_exeext
31624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31625   (eval $ac_link) 2>conftest.er1
31626   ac_status=$?
31627   grep -v '^ *+' conftest.er1 >conftest.err
31628   rm -f conftest.er1
31629   cat conftest.err >&5
31630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631   (exit $ac_status); } &&
31632          { ac_try='test -z "$ac_cxx_werror_flag"
31633                          || test ! -s conftest.err'
31634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635   (eval $ac_try) 2>&5
31636   ac_status=$?
31637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638   (exit $ac_status); }; } &&
31639          { ac_try='test -s conftest$ac_exeext'
31640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31641   (eval $ac_try) 2>&5
31642   ac_status=$?
31643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644   (exit $ac_status); }; }; then
31645   ac_cv_lib_svld_dlopen=yes
31646 else
31647   echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31649
31650 ac_cv_lib_svld_dlopen=no
31651 fi
31652 rm -f conftest.err conftest.$ac_objext \
31653       conftest$ac_exeext conftest.$ac_ext
31654 LIBS=$ac_check_lib_save_LIBS
31655 fi
31656 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
31657 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
31658 if test $ac_cv_lib_svld_dlopen = yes; then
31659   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
31660 else
31661   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
31662 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
31663 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
31664   echo $ECHO_N "(cached) $ECHO_C" >&6
31665 else
31666   ac_check_lib_save_LIBS=$LIBS
31667 LIBS="-ldld  $LIBS"
31668 cat >conftest.$ac_ext <<_ACEOF
31669 /* confdefs.h.  */
31670 _ACEOF
31671 cat confdefs.h >>conftest.$ac_ext
31672 cat >>conftest.$ac_ext <<_ACEOF
31673 /* end confdefs.h.  */
31674
31675 /* Override any gcc2 internal prototype to avoid an error.  */
31676 #ifdef __cplusplus
31677 extern "C"
31678 #endif
31679 /* We use char because int might match the return type of a gcc2
31680    builtin and then its argument prototype would still apply.  */
31681 char dld_link ();
31682 int
31683 main ()
31684 {
31685 dld_link ();
31686   ;
31687   return 0;
31688 }
31689 _ACEOF
31690 rm -f conftest.$ac_objext conftest$ac_exeext
31691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31692   (eval $ac_link) 2>conftest.er1
31693   ac_status=$?
31694   grep -v '^ *+' conftest.er1 >conftest.err
31695   rm -f conftest.er1
31696   cat conftest.err >&5
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); } &&
31699          { ac_try='test -z "$ac_cxx_werror_flag"
31700                          || test ! -s conftest.err'
31701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702   (eval $ac_try) 2>&5
31703   ac_status=$?
31704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705   (exit $ac_status); }; } &&
31706          { ac_try='test -s conftest$ac_exeext'
31707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708   (eval $ac_try) 2>&5
31709   ac_status=$?
31710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711   (exit $ac_status); }; }; then
31712   ac_cv_lib_dld_dld_link=yes
31713 else
31714   echo "$as_me: failed program was:" >&5
31715 sed 's/^/| /' conftest.$ac_ext >&5
31716
31717 ac_cv_lib_dld_dld_link=no
31718 fi
31719 rm -f conftest.err conftest.$ac_objext \
31720       conftest$ac_exeext conftest.$ac_ext
31721 LIBS=$ac_check_lib_save_LIBS
31722 fi
31723 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
31724 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
31725 if test $ac_cv_lib_dld_dld_link = yes; then
31726   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
31727 fi
31728
31729
31730 fi
31731
31732
31733 fi
31734
31735
31736 fi
31737
31738
31739 fi
31740
31741
31742 fi
31743
31744     ;;
31745   esac
31746
31747   if test "x$lt_cv_dlopen" != xno; then
31748     enable_dlopen=yes
31749   else
31750     enable_dlopen=no
31751   fi
31752
31753   case $lt_cv_dlopen in
31754   dlopen)
31755     save_CPPFLAGS="$CPPFLAGS"
31756     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
31757
31758     save_LDFLAGS="$LDFLAGS"
31759     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
31760
31761     save_LIBS="$LIBS"
31762     LIBS="$lt_cv_dlopen_libs $LIBS"
31763
31764     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
31765 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
31766 if test "${lt_cv_dlopen_self+set}" = set; then
31767   echo $ECHO_N "(cached) $ECHO_C" >&6
31768 else
31769           if test "$cross_compiling" = yes; then :
31770   lt_cv_dlopen_self=cross
31771 else
31772   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31773   lt_status=$lt_dlunknown
31774   cat > conftest.$ac_ext <<EOF
31775 #line 31775 "configure"
31776 #include "confdefs.h"
31777
31778 #if HAVE_DLFCN_H
31779 #include <dlfcn.h>
31780 #endif
31781
31782 #include <stdio.h>
31783
31784 #ifdef RTLD_GLOBAL
31785 #  define LT_DLGLOBAL           RTLD_GLOBAL
31786 #else
31787 #  ifdef DL_GLOBAL
31788 #    define LT_DLGLOBAL         DL_GLOBAL
31789 #  else
31790 #    define LT_DLGLOBAL         0
31791 #  endif
31792 #endif
31793
31794 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
31795    find out it does not work in some platform. */
31796 #ifndef LT_DLLAZY_OR_NOW
31797 #  ifdef RTLD_LAZY
31798 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
31799 #  else
31800 #    ifdef DL_LAZY
31801 #      define LT_DLLAZY_OR_NOW          DL_LAZY
31802 #    else
31803 #      ifdef RTLD_NOW
31804 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
31805 #      else
31806 #        ifdef DL_NOW
31807 #          define LT_DLLAZY_OR_NOW      DL_NOW
31808 #        else
31809 #          define LT_DLLAZY_OR_NOW      0
31810 #        endif
31811 #      endif
31812 #    endif
31813 #  endif
31814 #endif
31815
31816 #ifdef __cplusplus
31817 extern "C" void exit (int);
31818 #endif
31819
31820 void fnord() { int i=42;}
31821 int main ()
31822 {
31823   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31824   int status = $lt_dlunknown;
31825
31826   if (self)
31827     {
31828       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
31829       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
31830       /* dlclose (self); */
31831     }
31832
31833     exit (status);
31834 }
31835 EOF
31836   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837   (eval $ac_link) 2>&5
31838   ac_status=$?
31839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
31841     (./conftest; exit; ) >&5 2>/dev/null
31842     lt_status=$?
31843     case x$lt_status in
31844       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
31845       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
31846       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
31847     esac
31848   else :
31849     # compilation failed
31850     lt_cv_dlopen_self=no
31851   fi
31852 fi
31853 rm -fr conftest*
31854
31855
31856 fi
31857 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
31858 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
31859
31860     if test "x$lt_cv_dlopen_self" = xyes; then
31861       LDFLAGS="$LDFLAGS $link_static_flag"
31862       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
31863 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
31864 if test "${lt_cv_dlopen_self_static+set}" = set; then
31865   echo $ECHO_N "(cached) $ECHO_C" >&6
31866 else
31867           if test "$cross_compiling" = yes; then :
31868   lt_cv_dlopen_self_static=cross
31869 else
31870   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
31871   lt_status=$lt_dlunknown
31872   cat > conftest.$ac_ext <<EOF
31873 #line 31873 "configure"
31874 #include "confdefs.h"
31875
31876 #if HAVE_DLFCN_H
31877 #include <dlfcn.h>
31878 #endif
31879
31880 #include <stdio.h>
31881
31882 #ifdef RTLD_GLOBAL
31883 #  define LT_DLGLOBAL           RTLD_GLOBAL
31884 #else
31885 #  ifdef DL_GLOBAL
31886 #    define LT_DLGLOBAL         DL_GLOBAL
31887 #  else
31888 #    define LT_DLGLOBAL         0
31889 #  endif
31890 #endif
31891
31892 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
31893    find out it does not work in some platform. */
31894 #ifndef LT_DLLAZY_OR_NOW
31895 #  ifdef RTLD_LAZY
31896 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
31897 #  else
31898 #    ifdef DL_LAZY
31899 #      define LT_DLLAZY_OR_NOW          DL_LAZY
31900 #    else
31901 #      ifdef RTLD_NOW
31902 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
31903 #      else
31904 #        ifdef DL_NOW
31905 #          define LT_DLLAZY_OR_NOW      DL_NOW
31906 #        else
31907 #          define LT_DLLAZY_OR_NOW      0
31908 #        endif
31909 #      endif
31910 #    endif
31911 #  endif
31912 #endif
31913
31914 #ifdef __cplusplus
31915 extern "C" void exit (int);
31916 #endif
31917
31918 void fnord() { int i=42;}
31919 int main ()
31920 {
31921   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
31922   int status = $lt_dlunknown;
31923
31924   if (self)
31925     {
31926       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
31927       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
31928       /* dlclose (self); */
31929     }
31930
31931     exit (status);
31932 }
31933 EOF
31934   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31935   (eval $ac_link) 2>&5
31936   ac_status=$?
31937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
31939     (./conftest; exit; ) >&5 2>/dev/null
31940     lt_status=$?
31941     case x$lt_status in
31942       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
31943       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
31944       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
31945     esac
31946   else :
31947     # compilation failed
31948     lt_cv_dlopen_self_static=no
31949   fi
31950 fi
31951 rm -fr conftest*
31952
31953
31954 fi
31955 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
31956 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
31957     fi
31958
31959     CPPFLAGS="$save_CPPFLAGS"
31960     LDFLAGS="$save_LDFLAGS"
31961     LIBS="$save_LIBS"
31962     ;;
31963   esac
31964
31965   case $lt_cv_dlopen_self in
31966   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
31967   *) enable_dlopen_self=unknown ;;
31968   esac
31969
31970   case $lt_cv_dlopen_self_static in
31971   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
31972   *) enable_dlopen_self_static=unknown ;;
31973   esac
31974 fi
31975
31976
31977 # The else clause should only fire when bootstrapping the
31978 # libtool distribution, otherwise you forgot to ship ltmain.sh
31979 # with your package, and you will get complaints that there are
31980 # no rules to generate ltmain.sh.
31981 if test -f "$ltmain"; then
31982   # See if we are running on zsh, and set the options which allow our commands through
31983   # without removal of \ escapes.
31984   if test -n "${ZSH_VERSION+set}" ; then
31985     setopt NO_GLOB_SUBST
31986   fi
31987   # Now quote all the things that may contain metacharacters while being
31988   # careful not to overquote the AC_SUBSTed values.  We take copies of the
31989   # variables and quote the copies for generation of the libtool script.
31990   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
31991     SED SHELL STRIP \
31992     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
31993     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
31994     deplibs_check_method reload_flag reload_cmds need_locks \
31995     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
31996     lt_cv_sys_global_symbol_to_c_name_address \
31997     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
31998     old_postinstall_cmds old_postuninstall_cmds \
31999     compiler_CXX \
32000     CC_CXX \
32001     LD_CXX \
32002     lt_prog_compiler_wl_CXX \
32003     lt_prog_compiler_pic_CXX \
32004     lt_prog_compiler_static_CXX \
32005     lt_prog_compiler_no_builtin_flag_CXX \
32006     export_dynamic_flag_spec_CXX \
32007     thread_safe_flag_spec_CXX \
32008     whole_archive_flag_spec_CXX \
32009     enable_shared_with_static_runtimes_CXX \
32010     old_archive_cmds_CXX \
32011     old_archive_from_new_cmds_CXX \
32012     predep_objects_CXX \
32013     postdep_objects_CXX \
32014     predeps_CXX \
32015     postdeps_CXX \
32016     compiler_lib_search_path_CXX \
32017     archive_cmds_CXX \
32018     archive_expsym_cmds_CXX \
32019     postinstall_cmds_CXX \
32020     postuninstall_cmds_CXX \
32021     old_archive_from_expsyms_cmds_CXX \
32022     allow_undefined_flag_CXX \
32023     no_undefined_flag_CXX \
32024     export_symbols_cmds_CXX \
32025     hardcode_libdir_flag_spec_CXX \
32026     hardcode_libdir_flag_spec_ld_CXX \
32027     hardcode_libdir_separator_CXX \
32028     hardcode_automatic_CXX \
32029     module_cmds_CXX \
32030     module_expsym_cmds_CXX \
32031     lt_cv_prog_compiler_c_o_CXX \
32032     exclude_expsyms_CXX \
32033     include_expsyms_CXX; do
32034
32035     case $var in
32036     old_archive_cmds_CXX | \
32037     old_archive_from_new_cmds_CXX | \
32038     archive_cmds_CXX | \
32039     archive_expsym_cmds_CXX | \
32040     module_cmds_CXX | \
32041     module_expsym_cmds_CXX | \
32042     old_archive_from_expsyms_cmds_CXX | \
32043     export_symbols_cmds_CXX | \
32044     extract_expsyms_cmds | reload_cmds | finish_cmds | \
32045     postinstall_cmds | postuninstall_cmds | \
32046     old_postinstall_cmds | old_postuninstall_cmds | \
32047     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
32048       # Double-quote double-evaled strings.
32049       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
32050       ;;
32051     *)
32052       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
32053       ;;
32054     esac
32055   done
32056
32057   case $lt_echo in
32058   *'\$0 --fallback-echo"')
32059     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
32060     ;;
32061   esac
32062
32063 cfgfile="$ofile"
32064
32065   cat <<__EOF__ >> "$cfgfile"
32066 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
32067
32068 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32069
32070 # Shell to use when invoking shell scripts.
32071 SHELL=$lt_SHELL
32072
32073 # Whether or not to build shared libraries.
32074 build_libtool_libs=$enable_shared
32075
32076 # Whether or not to build static libraries.
32077 build_old_libs=$enable_static
32078
32079 # Whether or not to add -lc for building shared libraries.
32080 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32081
32082 # Whether or not to disallow shared libs when runtime libs are static
32083 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32084
32085 # Whether or not to optimize for fast installation.
32086 fast_install=$enable_fast_install
32087
32088 # The host system.
32089 host_alias=$host_alias
32090 host=$host
32091 host_os=$host_os
32092
32093 # The build system.
32094 build_alias=$build_alias
32095 build=$build
32096 build_os=$build_os
32097
32098 # An echo program that does not interpret backslashes.
32099 echo=$lt_echo
32100
32101 # The archiver.
32102 AR=$lt_AR
32103 AR_FLAGS=$lt_AR_FLAGS
32104
32105 # A C compiler.
32106 LTCC=$lt_LTCC
32107
32108 # A language-specific compiler.
32109 CC=$lt_compiler_CXX
32110
32111 # Is the compiler the GNU C compiler?
32112 with_gcc=$GCC_CXX
32113
32114 # An ERE matcher.
32115 EGREP=$lt_EGREP
32116
32117 # The linker used to build libraries.
32118 LD=$lt_LD_CXX
32119
32120 # Whether we need hard or soft links.
32121 LN_S=$lt_LN_S
32122
32123 # A BSD-compatible nm program.
32124 NM=$lt_NM
32125
32126 # A symbol stripping program
32127 STRIP=$lt_STRIP
32128
32129 # Used to examine libraries when file_magic_cmd begins "file"
32130 MAGIC_CMD=$MAGIC_CMD
32131
32132 # Used on cygwin: DLL creation program.
32133 DLLTOOL="$DLLTOOL"
32134
32135 # Used on cygwin: object dumper.
32136 OBJDUMP="$OBJDUMP"
32137
32138 # Used on cygwin: assembler.
32139 AS="$AS"
32140
32141 # The name of the directory that contains temporary libtool files.
32142 objdir=$objdir
32143
32144 # How to create reloadable object files.
32145 reload_flag=$lt_reload_flag
32146 reload_cmds=$lt_reload_cmds
32147
32148 # How to pass a linker flag through the compiler.
32149 wl=$lt_lt_prog_compiler_wl_CXX
32150
32151 # Object file suffix (normally "o").
32152 objext="$ac_objext"
32153
32154 # Old archive suffix (normally "a").
32155 libext="$libext"
32156
32157 # Shared library suffix (normally ".so").
32158 shrext_cmds='$shrext_cmds'
32159
32160 # Executable file suffix (normally "").
32161 exeext="$exeext"
32162
32163 # Additional compiler flags for building library objects.
32164 pic_flag=$lt_lt_prog_compiler_pic_CXX
32165 pic_mode=$pic_mode
32166
32167 # What is the maximum length of a command?
32168 max_cmd_len=$lt_cv_sys_max_cmd_len
32169
32170 # Does compiler simultaneously support -c and -o options?
32171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32172
32173 # Must we lock files when doing compilation?
32174 need_locks=$lt_need_locks
32175
32176 # Do we need the lib prefix for modules?
32177 need_lib_prefix=$need_lib_prefix
32178
32179 # Do we need a version for libraries?
32180 need_version=$need_version
32181
32182 # Whether dlopen is supported.
32183 dlopen_support=$enable_dlopen
32184
32185 # Whether dlopen of programs is supported.
32186 dlopen_self=$enable_dlopen_self
32187
32188 # Whether dlopen of statically linked programs is supported.
32189 dlopen_self_static=$enable_dlopen_self_static
32190
32191 # Compiler flag to prevent dynamic linking.
32192 link_static_flag=$lt_lt_prog_compiler_static_CXX
32193
32194 # Compiler flag to turn off builtin functions.
32195 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32196
32197 # Compiler flag to allow reflexive dlopens.
32198 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32199
32200 # Compiler flag to generate shared objects directly from archives.
32201 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32202
32203 # Compiler flag to generate thread-safe objects.
32204 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
32205
32206 # Library versioning type.
32207 version_type=$version_type
32208
32209 # Format of library name prefix.
32210 libname_spec=$lt_libname_spec
32211
32212 # List of archive names.  First name is the real one, the rest are links.
32213 # The last name is the one that the linker finds with -lNAME.
32214 library_names_spec=$lt_library_names_spec
32215
32216 # The coded name of the library, if different from the real name.
32217 soname_spec=$lt_soname_spec
32218
32219 # Commands used to build and install an old-style archive.
32220 RANLIB=$lt_RANLIB
32221 old_archive_cmds=$lt_old_archive_cmds_CXX
32222 old_postinstall_cmds=$lt_old_postinstall_cmds
32223 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32224
32225 # Create an old-style archive from a shared archive.
32226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32227
32228 # Create a temporary old-style archive to link instead of a shared archive.
32229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32230
32231 # Commands used to build and install a shared archive.
32232 archive_cmds=$lt_archive_cmds_CXX
32233 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32234 postinstall_cmds=$lt_postinstall_cmds
32235 postuninstall_cmds=$lt_postuninstall_cmds
32236
32237 # Commands used to build a loadable module (assumed same as above if empty)
32238 module_cmds=$lt_module_cmds_CXX
32239 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32240
32241 # Commands to strip libraries.
32242 old_striplib=$lt_old_striplib
32243 striplib=$lt_striplib
32244
32245 # Dependencies to place before the objects being linked to create a
32246 # shared library.
32247 predep_objects=$lt_predep_objects_CXX
32248
32249 # Dependencies to place after the objects being linked to create a
32250 # shared library.
32251 postdep_objects=$lt_postdep_objects_CXX
32252
32253 # Dependencies to place before the objects being linked to create a
32254 # shared library.
32255 predeps=$lt_predeps_CXX
32256
32257 # Dependencies to place after the objects being linked to create a
32258 # shared library.
32259 postdeps=$lt_postdeps_CXX
32260
32261 # The library search path used internally by the compiler when linking
32262 # a shared library.
32263 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32264
32265 # Method to check whether dependent libraries are shared objects.
32266 deplibs_check_method=$lt_deplibs_check_method
32267
32268 # Command to use when deplibs_check_method == file_magic.
32269 file_magic_cmd=$lt_file_magic_cmd
32270
32271 # Flag that allows shared libraries with undefined symbols to be built.
32272 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32273
32274 # Flag that forces no undefined symbols.
32275 no_undefined_flag=$lt_no_undefined_flag_CXX
32276
32277 # Commands used to finish a libtool library installation in a directory.
32278 finish_cmds=$lt_finish_cmds
32279
32280 # Same as above, but a single script fragment to be evaled but not shown.
32281 finish_eval=$lt_finish_eval
32282
32283 # Take the output of nm and produce a listing of raw symbols and C names.
32284 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32285
32286 # Transform the output of nm in a proper C declaration
32287 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32288
32289 # Transform the output of nm in a C name address pair
32290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32291
32292 # This is the shared library runtime path variable.
32293 runpath_var=$runpath_var
32294
32295 # This is the shared library path variable.
32296 shlibpath_var=$shlibpath_var
32297
32298 # Is shlibpath searched before the hard-coded library search path?
32299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32300
32301 # How to hardcode a shared library path into an executable.
32302 hardcode_action=$hardcode_action_CXX
32303
32304 # Whether we should hardcode library paths into libraries.
32305 hardcode_into_libs=$hardcode_into_libs
32306
32307 # Flag to hardcode \$libdir into a binary during linking.
32308 # This must work even if \$libdir does not exist.
32309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32310
32311 # If ld is used when linking, flag to hardcode \$libdir into
32312 # a binary during linking. This must work even if \$libdir does
32313 # not exist.
32314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32315
32316 # Whether we need a single -rpath flag with a separated argument.
32317 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32318
32319 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
32320 # resulting binary.
32321 hardcode_direct=$hardcode_direct_CXX
32322
32323 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
32324 # resulting binary.
32325 hardcode_minus_L=$hardcode_minus_L_CXX
32326
32327 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
32328 # the resulting binary.
32329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32330
32331 # Set to yes if building a shared library automatically hardcodes DIR into the library
32332 # and all subsequent libraries and executables linked against it.
32333 hardcode_automatic=$hardcode_automatic_CXX
32334
32335 # Variables whose values should be saved in libtool wrapper scripts and
32336 # restored at relink time.
32337 variables_saved_for_relink="$variables_saved_for_relink"
32338
32339 # Whether libtool must link a program against all its dependency libraries.
32340 link_all_deplibs=$link_all_deplibs_CXX
32341
32342 # Compile-time system search path for libraries
32343 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32344
32345 # Run-time system search path for libraries
32346 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32347
32348 # Fix the shell variable \$srcfile for the compiler.
32349 fix_srcfile_path="$fix_srcfile_path_CXX"
32350
32351 # Set to yes if exported symbols are required.
32352 always_export_symbols=$always_export_symbols_CXX
32353
32354 # The commands to list exported symbols.
32355 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32356
32357 # The commands to extract the exported symbol list from a shared archive.
32358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32359
32360 # Symbols that should not be listed in the preloaded symbols.
32361 exclude_expsyms=$lt_exclude_expsyms_CXX
32362
32363 # Symbols that must always be exported.
32364 include_expsyms=$lt_include_expsyms_CXX
32365
32366 # ### END LIBTOOL TAG CONFIG: $tagname
32367
32368 __EOF__
32369
32370
32371 else
32372   # If there is no Makefile yet, we rely on a make rule to execute
32373   # `config.status --recheck' to rerun these tests and create the
32374   # libtool script then.
32375   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
32376   if test -f "$ltmain_in"; then
32377     test -f Makefile && make "$ltmain"
32378   fi
32379 fi
32380
32381
32382 ac_ext=c
32383 ac_cpp='$CPP $CPPFLAGS'
32384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32387
32388 CC=$lt_save_CC
32389 LDCXX=$LD
32390 LD=$lt_save_LD
32391 GCC=$lt_save_GCC
32392 with_gnu_ldcxx=$with_gnu_ld
32393 with_gnu_ld=$lt_save_with_gnu_ld
32394 lt_cv_path_LDCXX=$lt_cv_path_LD
32395 lt_cv_path_LD=$lt_save_path_LD
32396 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
32397 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
32398
32399         else
32400           tagname=""
32401         fi
32402         ;;
32403
32404       F77)
32405         if test -n "$F77" && test "X$F77" != "Xno"; then
32406
32407 ac_ext=f
32408 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32409 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32411
32412
32413 archive_cmds_need_lc_F77=no
32414 allow_undefined_flag_F77=
32415 always_export_symbols_F77=no
32416 archive_expsym_cmds_F77=
32417 export_dynamic_flag_spec_F77=
32418 hardcode_direct_F77=no
32419 hardcode_libdir_flag_spec_F77=
32420 hardcode_libdir_flag_spec_ld_F77=
32421 hardcode_libdir_separator_F77=
32422 hardcode_minus_L_F77=no
32423 hardcode_automatic_F77=no
32424 module_cmds_F77=
32425 module_expsym_cmds_F77=
32426 link_all_deplibs_F77=unknown
32427 old_archive_cmds_F77=$old_archive_cmds
32428 no_undefined_flag_F77=
32429 whole_archive_flag_spec_F77=
32430 enable_shared_with_static_runtimes_F77=no
32431
32432 # Source file extension for f77 test sources.
32433 ac_ext=f
32434
32435 # Object file extension for compiled f77 test sources.
32436 objext=o
32437 objext_F77=$objext
32438
32439 # Code to be used in simple compile tests
32440 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
32441
32442 # Code to be used in simple link tests
32443 lt_simple_link_test_code="      program t\n      end\n"
32444
32445 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
32446
32447 # If no C compiler was specified, use CC.
32448 LTCC=${LTCC-"$CC"}
32449
32450 # Allow CC to be a program name with arguments.
32451 compiler=$CC
32452
32453
32454 # save warnings/boilerplate of simple test code
32455 ac_outfile=conftest.$ac_objext
32456 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
32457 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
32458 _lt_compiler_boilerplate=`cat conftest.err`
32459 $rm conftest*
32460
32461 ac_outfile=conftest.$ac_objext
32462 printf "$lt_simple_link_test_code" >conftest.$ac_ext
32463 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
32464 _lt_linker_boilerplate=`cat conftest.err`
32465 $rm conftest*
32466
32467
32468 # Allow CC to be a program name with arguments.
32469 lt_save_CC="$CC"
32470 CC=${F77-"f77"}
32471 compiler=$CC
32472 compiler_F77=$CC
32473 for cc_temp in $compiler""; do
32474   case $cc_temp in
32475     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32476     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32477     \-*) ;;
32478     *) break;;
32479   esac
32480 done
32481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
32482
32483
32484 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
32485 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
32486 echo "$as_me:$LINENO: result: $can_build_shared" >&5
32487 echo "${ECHO_T}$can_build_shared" >&6
32488
32489 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
32490 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
32491 test "$can_build_shared" = "no" && enable_shared=no
32492
32493 # On AIX, shared libraries and static libraries use the same namespace, and
32494 # are all built from PIC.
32495 case $host_os in
32496 aix3*)
32497   test "$enable_shared" = yes && enable_static=no
32498   if test -n "$RANLIB"; then
32499     archive_cmds="$archive_cmds~\$RANLIB \$lib"
32500     postinstall_cmds='$RANLIB $lib'
32501   fi
32502   ;;
32503 aix4* | aix5*)
32504   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
32505     test "$enable_shared" = yes && enable_static=no
32506   fi
32507   ;;
32508 esac
32509 echo "$as_me:$LINENO: result: $enable_shared" >&5
32510 echo "${ECHO_T}$enable_shared" >&6
32511
32512 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
32513 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
32514 # Make sure either enable_shared or enable_static is yes.
32515 test "$enable_shared" = yes || enable_static=yes
32516 echo "$as_me:$LINENO: result: $enable_static" >&5
32517 echo "${ECHO_T}$enable_static" >&6
32518
32519 test "$ld_shlibs_F77" = no && can_build_shared=no
32520
32521 GCC_F77="$G77"
32522 LD_F77="$LD"
32523
32524 lt_prog_compiler_wl_F77=
32525 lt_prog_compiler_pic_F77=
32526 lt_prog_compiler_static_F77=
32527
32528 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
32529 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
32530
32531   if test "$GCC" = yes; then
32532     lt_prog_compiler_wl_F77='-Wl,'
32533     lt_prog_compiler_static_F77='-static'
32534
32535     case $host_os in
32536       aix*)
32537       # All AIX code is PIC.
32538       if test "$host_cpu" = ia64; then
32539         # AIX 5 now supports IA64 processor
32540         lt_prog_compiler_static_F77='-Bstatic'
32541       fi
32542       ;;
32543
32544     amigaos*)
32545       # FIXME: we need at least 68020 code to build shared libraries, but
32546       # adding the `-m68020' flag to GCC prevents building anything better,
32547       # like `-m68040'.
32548       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
32549       ;;
32550
32551     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
32552       # PIC is the default for these OSes.
32553       ;;
32554
32555     mingw* | pw32* | os2*)
32556       # This hack is so that the source file can tell whether it is being
32557       # built for inclusion in a dll (and should export symbols for example).
32558       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
32559       ;;
32560
32561     darwin* | rhapsody*)
32562       # PIC is the default on this platform
32563       # Common symbols not allowed in MH_DYLIB files
32564       lt_prog_compiler_pic_F77='-fno-common'
32565       ;;
32566
32567     msdosdjgpp*)
32568       # Just because we use GCC doesn't mean we suddenly get shared libraries
32569       # on systems that don't support them.
32570       lt_prog_compiler_can_build_shared_F77=no
32571       enable_shared=no
32572       ;;
32573
32574     sysv4*MP*)
32575       if test -d /usr/nec; then
32576         lt_prog_compiler_pic_F77=-Kconform_pic
32577       fi
32578       ;;
32579
32580     hpux*)
32581       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
32582       # not for PA HP-UX.
32583       case $host_cpu in
32584       hppa*64*|ia64*)
32585         # +Z the default
32586         ;;
32587       *)
32588         lt_prog_compiler_pic_F77='-fPIC'
32589         ;;
32590       esac
32591       ;;
32592
32593     *)
32594       lt_prog_compiler_pic_F77='-fPIC'
32595       ;;
32596     esac
32597   else
32598     # PORTME Check for flag to pass linker flags through the system compiler.
32599     case $host_os in
32600     aix*)
32601       lt_prog_compiler_wl_F77='-Wl,'
32602       if test "$host_cpu" = ia64; then
32603         # AIX 5 now supports IA64 processor
32604         lt_prog_compiler_static_F77='-Bstatic'
32605       else
32606         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
32607       fi
32608       ;;
32609       darwin*)
32610         # PIC is the default on this platform
32611         # Common symbols not allowed in MH_DYLIB files
32612        case $cc_basename in
32613          xlc*)
32614          lt_prog_compiler_pic_F77='-qnocommon'
32615          lt_prog_compiler_wl_F77='-Wl,'
32616          ;;
32617        esac
32618        ;;
32619
32620     mingw* | pw32* | os2*)
32621       # This hack is so that the source file can tell whether it is being
32622       # built for inclusion in a dll (and should export symbols for example).
32623       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
32624       ;;
32625
32626     hpux9* | hpux10* | hpux11*)
32627       lt_prog_compiler_wl_F77='-Wl,'
32628       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
32629       # not for PA HP-UX.
32630       case $host_cpu in
32631       hppa*64*|ia64*)
32632         # +Z the default
32633         ;;
32634       *)
32635         lt_prog_compiler_pic_F77='+Z'
32636         ;;
32637       esac
32638       # Is there a better lt_prog_compiler_static that works with the bundled CC?
32639       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
32640       ;;
32641
32642     irix5* | irix6* | nonstopux*)
32643       lt_prog_compiler_wl_F77='-Wl,'
32644       # PIC (with -KPIC) is the default.
32645       lt_prog_compiler_static_F77='-non_shared'
32646       ;;
32647
32648     newsos6)
32649       lt_prog_compiler_pic_F77='-KPIC'
32650       lt_prog_compiler_static_F77='-Bstatic'
32651       ;;
32652
32653     linux*)
32654       case $cc_basename in
32655       icc* | ecc*)
32656         lt_prog_compiler_wl_F77='-Wl,'
32657         lt_prog_compiler_pic_F77='-KPIC'
32658         lt_prog_compiler_static_F77='-static'
32659         ;;
32660       pgcc* | pgf77* | pgf90* | pgf95*)
32661         # Portland Group compilers (*not* the Pentium gcc compiler,
32662         # which looks to be a dead project)
32663         lt_prog_compiler_wl_F77='-Wl,'
32664         lt_prog_compiler_pic_F77='-fpic'
32665         lt_prog_compiler_static_F77='-Bstatic'
32666         ;;
32667       ccc*)
32668         lt_prog_compiler_wl_F77='-Wl,'
32669         # All Alpha code is PIC.
32670         lt_prog_compiler_static_F77='-non_shared'
32671         ;;
32672       esac
32673       ;;
32674
32675     osf3* | osf4* | osf5*)
32676       lt_prog_compiler_wl_F77='-Wl,'
32677       # All OSF/1 code is PIC.
32678       lt_prog_compiler_static_F77='-non_shared'
32679       ;;
32680
32681     sco3.2v5*)
32682       lt_prog_compiler_pic_F77='-Kpic'
32683       lt_prog_compiler_static_F77='-dn'
32684       ;;
32685
32686     solaris*)
32687       lt_prog_compiler_pic_F77='-KPIC'
32688       lt_prog_compiler_static_F77='-Bstatic'
32689       case $cc_basename in
32690       f77* | f90* | f95*)
32691         lt_prog_compiler_wl_F77='-Qoption ld ';;
32692       *)
32693         lt_prog_compiler_wl_F77='-Wl,';;
32694       esac
32695       ;;
32696
32697     sunos4*)
32698       lt_prog_compiler_wl_F77='-Qoption ld '
32699       lt_prog_compiler_pic_F77='-PIC'
32700       lt_prog_compiler_static_F77='-Bstatic'
32701       ;;
32702
32703     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
32704       lt_prog_compiler_wl_F77='-Wl,'
32705       lt_prog_compiler_pic_F77='-KPIC'
32706       lt_prog_compiler_static_F77='-Bstatic'
32707       ;;
32708
32709     sysv4*MP*)
32710       if test -d /usr/nec ;then
32711         lt_prog_compiler_pic_F77='-Kconform_pic'
32712         lt_prog_compiler_static_F77='-Bstatic'
32713       fi
32714       ;;
32715
32716     unicos*)
32717       lt_prog_compiler_wl_F77='-Wl,'
32718       lt_prog_compiler_can_build_shared_F77=no
32719       ;;
32720
32721     uts4*)
32722       lt_prog_compiler_pic_F77='-pic'
32723       lt_prog_compiler_static_F77='-Bstatic'
32724       ;;
32725
32726     *)
32727       lt_prog_compiler_can_build_shared_F77=no
32728       ;;
32729     esac
32730   fi
32731
32732 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
32733 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
32734
32735 #
32736 # Check to make sure the PIC flag actually works.
32737 #
32738 if test -n "$lt_prog_compiler_pic_F77"; then
32739
32740 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
32741 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
32742 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
32743   echo $ECHO_N "(cached) $ECHO_C" >&6
32744 else
32745   lt_prog_compiler_pic_works_F77=no
32746   ac_outfile=conftest.$ac_objext
32747    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
32748    lt_compiler_flag="$lt_prog_compiler_pic_F77"
32749    # Insert the option either (1) after the last *FLAGS variable, or
32750    # (2) before a word containing "conftest.", or (3) at the end.
32751    # Note that $ac_compile itself does not contain backslashes and begins
32752    # with a dollar sign (not a hyphen), so the echo should work correctly.
32753    # The option is referenced via a variable to avoid confusing sed.
32754    lt_compile=`echo "$ac_compile" | $SED \
32755    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
32756    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
32757    -e 's:$: $lt_compiler_flag:'`
32758    (eval echo "\"\$as_me:32758: $lt_compile\"" >&5)
32759    (eval "$lt_compile" 2>conftest.err)
32760    ac_status=$?
32761    cat conftest.err >&5
32762    echo "$as_me:32762: \$? = $ac_status" >&5
32763    if (exit $ac_status) && test -s "$ac_outfile"; then
32764      # The compiler can only warn and ignore the option if not recognized
32765      # So say no if there are warnings other than the usual output.
32766      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
32767      $SED '/^$/d' conftest.err >conftest.er2
32768      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
32769        lt_prog_compiler_pic_works_F77=yes
32770      fi
32771    fi
32772    $rm conftest*
32773
32774 fi
32775 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
32776 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
32777
32778 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
32779     case $lt_prog_compiler_pic_F77 in
32780      "" | " "*) ;;
32781      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
32782      esac
32783 else
32784     lt_prog_compiler_pic_F77=
32785      lt_prog_compiler_can_build_shared_F77=no
32786 fi
32787
32788 fi
32789 case $host_os in
32790   # For platforms which do not support PIC, -DPIC is meaningless:
32791   *djgpp*)
32792     lt_prog_compiler_pic_F77=
32793     ;;
32794   *)
32795     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
32796     ;;
32797 esac
32798
32799 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
32800 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
32801 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
32802   echo $ECHO_N "(cached) $ECHO_C" >&6
32803 else
32804   lt_cv_prog_compiler_c_o_F77=no
32805    $rm -r conftest 2>/dev/null
32806    mkdir conftest
32807    cd conftest
32808    mkdir out
32809    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
32810
32811    lt_compiler_flag="-o out/conftest2.$ac_objext"
32812    # Insert the option either (1) after the last *FLAGS variable, or
32813    # (2) before a word containing "conftest.", or (3) at the end.
32814    # Note that $ac_compile itself does not contain backslashes and begins
32815    # with a dollar sign (not a hyphen), so the echo should work correctly.
32816    lt_compile=`echo "$ac_compile" | $SED \
32817    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
32818    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
32819    -e 's:$: $lt_compiler_flag:'`
32820    (eval echo "\"\$as_me:32820: $lt_compile\"" >&5)
32821    (eval "$lt_compile" 2>out/conftest.err)
32822    ac_status=$?
32823    cat out/conftest.err >&5
32824    echo "$as_me:32824: \$? = $ac_status" >&5
32825    if (exit $ac_status) && test -s out/conftest2.$ac_objext
32826    then
32827      # The compiler can only warn and ignore the option if not recognized
32828      # So say no if there are warnings
32829      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
32830      $SED '/^$/d' out/conftest.err >out/conftest.er2
32831      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
32832        lt_cv_prog_compiler_c_o_F77=yes
32833      fi
32834    fi
32835    chmod u+w . 2>&5
32836    $rm conftest*
32837    # SGI C++ compiler will create directory out/ii_files/ for
32838    # template instantiation
32839    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
32840    $rm out/* && rmdir out
32841    cd ..
32842    rmdir conftest
32843    $rm conftest*
32844
32845 fi
32846 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
32847 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
32848
32849
32850 hard_links="nottested"
32851 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
32852   # do not overwrite the value of need_locks provided by the user
32853   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
32854 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
32855   hard_links=yes
32856   $rm conftest*
32857   ln conftest.a conftest.b 2>/dev/null && hard_links=no
32858   touch conftest.a
32859   ln conftest.a conftest.b 2>&5 || hard_links=no
32860   ln conftest.a conftest.b 2>/dev/null && hard_links=no
32861   echo "$as_me:$LINENO: result: $hard_links" >&5
32862 echo "${ECHO_T}$hard_links" >&6
32863   if test "$hard_links" = no; then
32864     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
32865 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
32866     need_locks=warn
32867   fi
32868 else
32869   need_locks=no
32870 fi
32871
32872 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
32873 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
32874
32875   runpath_var=
32876   allow_undefined_flag_F77=
32877   enable_shared_with_static_runtimes_F77=no
32878   archive_cmds_F77=
32879   archive_expsym_cmds_F77=
32880   old_archive_From_new_cmds_F77=
32881   old_archive_from_expsyms_cmds_F77=
32882   export_dynamic_flag_spec_F77=
32883   whole_archive_flag_spec_F77=
32884   thread_safe_flag_spec_F77=
32885   hardcode_libdir_flag_spec_F77=
32886   hardcode_libdir_flag_spec_ld_F77=
32887   hardcode_libdir_separator_F77=
32888   hardcode_direct_F77=no
32889   hardcode_minus_L_F77=no
32890   hardcode_shlibpath_var_F77=unsupported
32891   link_all_deplibs_F77=unknown
32892   hardcode_automatic_F77=no
32893   module_cmds_F77=
32894   module_expsym_cmds_F77=
32895   always_export_symbols_F77=no
32896   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
32897   # include_expsyms should be a list of space-separated symbols to be *always*
32898   # included in the symbol list
32899   include_expsyms_F77=
32900   # exclude_expsyms can be an extended regexp of symbols to exclude
32901   # it will be wrapped by ` (' and `)$', so one must not match beginning or
32902   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
32903   # as well as any symbol that contains `d'.
32904   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
32905   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
32906   # platforms (ab)use it in PIC code, but their linkers get confused if
32907   # the symbol is explicitly referenced.  Since portable code cannot
32908   # rely on this symbol name, it's probably fine to never include it in
32909   # preloaded symbol tables.
32910   extract_expsyms_cmds=
32911   # Just being paranoid about ensuring that cc_basename is set.
32912   for cc_temp in $compiler""; do
32913   case $cc_temp in
32914     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
32915     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
32916     \-*) ;;
32917     *) break;;
32918   esac
32919 done
32920 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
32921
32922   case $host_os in
32923   cygwin* | mingw* | pw32*)
32924     # FIXME: the MSVC++ port hasn't been tested in a loooong time
32925     # When not using gcc, we currently assume that we are using
32926     # Microsoft Visual C++.
32927     if test "$GCC" != yes; then
32928       with_gnu_ld=no
32929     fi
32930     ;;
32931   openbsd*)
32932     with_gnu_ld=no
32933     ;;
32934   esac
32935
32936   ld_shlibs_F77=yes
32937   if test "$with_gnu_ld" = yes; then
32938     # If archive_cmds runs LD, not CC, wlarc should be empty
32939     wlarc='${wl}'
32940
32941     # Set some defaults for GNU ld with shared library support. These
32942     # are reset later if shared libraries are not supported. Putting them
32943     # here allows them to be overridden if necessary.
32944     runpath_var=LD_RUN_PATH
32945     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
32946     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
32947     # ancient GNU ld didn't support --whole-archive et. al.
32948     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
32949         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
32950       else
32951         whole_archive_flag_spec_F77=
32952     fi
32953     supports_anon_versioning=no
32954     case `$LD -v 2>/dev/null` in
32955       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
32956       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
32957       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
32958       *\ 2.11.*) ;; # other 2.11 versions
32959       *) supports_anon_versioning=yes ;;
32960     esac
32961
32962     # See if GNU ld supports shared libraries.
32963     case $host_os in
32964     aix3* | aix4* | aix5*)
32965       # On AIX/PPC, the GNU linker is very broken
32966       if test "$host_cpu" != ia64; then
32967         ld_shlibs_F77=no
32968         cat <<EOF 1>&2
32969
32970 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
32971 *** to be unable to reliably create shared libraries on AIX.
32972 *** Therefore, libtool is disabling shared libraries support.  If you
32973 *** really care for shared libraries, you may want to modify your PATH
32974 *** so that a non-GNU linker is found, and then restart.
32975
32976 EOF
32977       fi
32978       ;;
32979
32980     amigaos*)
32981       archive_cmds_F77='$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)'
32982       hardcode_libdir_flag_spec_F77='-L$libdir'
32983       hardcode_minus_L_F77=yes
32984
32985       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
32986       # that the semantics of dynamic libraries on AmigaOS, at least up
32987       # to version 4, is to share data among multiple programs linked
32988       # with the same dynamic library.  Since this doesn't match the
32989       # behavior of shared libraries on other platforms, we can't use
32990       # them.
32991       ld_shlibs_F77=no
32992       ;;
32993
32994     beos*)
32995       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
32996         allow_undefined_flag_F77=unsupported
32997         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
32998         # support --undefined.  This deserves some investigation.  FIXME
32999         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33000       else
33001         ld_shlibs_F77=no
33002       fi
33003       ;;
33004
33005     cygwin* | mingw* | pw32*)
33006       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
33007       # as there is no search path for DLLs.
33008       hardcode_libdir_flag_spec_F77='-L$libdir'
33009       allow_undefined_flag_F77=unsupported
33010       always_export_symbols_F77=no
33011       enable_shared_with_static_runtimes_F77=yes
33012       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
33013
33014       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
33015         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
33016         # If the export-symbols file already is a .def file (1st line
33017         # is EXPORTS), use it as is; otherwise, prepend...
33018         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
33019           cp $export_symbols $output_objdir/$soname.def;
33020         else
33021           echo EXPORTS > $output_objdir/$soname.def;
33022           cat $export_symbols >> $output_objdir/$soname.def;
33023         fi~
33024         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
33025       else
33026         ld_shlibs_F77=no
33027       fi
33028       ;;
33029
33030     linux*)
33031       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
33032         tmp_addflag=
33033         case $cc_basename,$host_cpu in
33034         pgcc*)                          # Portland Group C compiler
33035           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
33036           tmp_addflag=' $pic_flag'
33037           ;;
33038         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
33039           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
33040           tmp_addflag=' $pic_flag -Mnomain' ;;
33041         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
33042           tmp_addflag=' -i_dynamic' ;;
33043         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
33044           tmp_addflag=' -i_dynamic -nofor_main' ;;
33045         ifc* | ifort*)                  # Intel Fortran compiler
33046           tmp_addflag=' -nofor_main' ;;
33047         esac
33048         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33049
33050         if test $supports_anon_versioning = yes; then
33051           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
33052   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
33053   $echo "local: *; };" >> $output_objdir/$libname.ver~
33054           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
33055         fi
33056       else
33057         ld_shlibs_F77=no
33058       fi
33059       ;;
33060
33061     netbsd*)
33062       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
33063         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
33064         wlarc=
33065       else
33066         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33067         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33068       fi
33069       ;;
33070
33071     solaris* | sysv5*)
33072       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
33073         ld_shlibs_F77=no
33074         cat <<EOF 1>&2
33075
33076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
33077 *** create shared libraries on Solaris systems.  Therefore, libtool
33078 *** is disabling shared libraries support.  We urge you to upgrade GNU
33079 *** binutils to release 2.9.1 or newer.  Another option is to modify
33080 *** your PATH or compiler configuration so that the native linker is
33081 *** used, and then restart.
33082
33083 EOF
33084       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
33085         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33086         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33087       else
33088         ld_shlibs_F77=no
33089       fi
33090       ;;
33091
33092     sunos4*)
33093       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33094       wlarc=
33095       hardcode_direct_F77=yes
33096       hardcode_shlibpath_var_F77=no
33097       ;;
33098
33099     *)
33100       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
33101         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
33102         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
33103       else
33104         ld_shlibs_F77=no
33105       fi
33106       ;;
33107     esac
33108
33109     if test "$ld_shlibs_F77" = no; then
33110       runpath_var=
33111       hardcode_libdir_flag_spec_F77=
33112       export_dynamic_flag_spec_F77=
33113       whole_archive_flag_spec_F77=
33114     fi
33115   else
33116     # PORTME fill in a description of your system's linker (not GNU ld)
33117     case $host_os in
33118     aix3*)
33119       allow_undefined_flag_F77=unsupported
33120       always_export_symbols_F77=yes
33121       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
33122       # Note: this linker hardcodes the directories in LIBPATH if there
33123       # are no directories specified by -L.
33124       hardcode_minus_L_F77=yes
33125       if test "$GCC" = yes && test -z "$link_static_flag"; then
33126         # Neither direct hardcoding nor static linking is supported with a
33127         # broken collect2.
33128         hardcode_direct_F77=unsupported
33129       fi
33130       ;;
33131
33132     aix4* | aix5*)
33133       if test "$host_cpu" = ia64; then
33134         # On IA64, the linker does run time linking by default, so we don't
33135         # have to do anything special.
33136         aix_use_runtimelinking=no
33137         exp_sym_flag='-Bexport'
33138         no_entry_flag=""
33139       else
33140         # If we're using GNU nm, then we don't want the "-C" option.
33141         # -C means demangle to AIX nm, but means don't demangle with GNU nm
33142         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
33143           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
33144         else
33145           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
33146         fi
33147         aix_use_runtimelinking=no
33148
33149         # Test if we are trying to use run time linking or normal
33150         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
33151         # need to do runtime linking.
33152         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
33153           for ld_flag in $LDFLAGS; do
33154           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
33155             aix_use_runtimelinking=yes
33156             break
33157           fi
33158           done
33159         esac
33160
33161         exp_sym_flag='-bexport'
33162         no_entry_flag='-bnoentry'
33163       fi
33164
33165       # When large executables or shared objects are built, AIX ld can
33166       # have problems creating the table of contents.  If linking a library
33167       # or program results in "error TOC overflow" add -mminimal-toc to
33168       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
33169       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
33170
33171       archive_cmds_F77=''
33172       hardcode_direct_F77=yes
33173       hardcode_libdir_separator_F77=':'
33174       link_all_deplibs_F77=yes
33175
33176       if test "$GCC" = yes; then
33177         case $host_os in aix4.[012]|aix4.[012].*)
33178         # We only want to do this on AIX 4.2 and lower, the check
33179         # below for broken collect2 doesn't work under 4.3+
33180           collect2name=`${CC} -print-prog-name=collect2`
33181           if test -f "$collect2name" && \
33182            strings "$collect2name" | grep resolve_lib_name >/dev/null
33183           then
33184           # We have reworked collect2
33185           hardcode_direct_F77=yes
33186           else
33187           # We have old collect2
33188           hardcode_direct_F77=unsupported
33189           # It fails to find uninstalled libraries when the uninstalled
33190           # path is not listed in the libpath.  Setting hardcode_minus_L
33191           # to unsupported forces relinking
33192           hardcode_minus_L_F77=yes
33193           hardcode_libdir_flag_spec_F77='-L$libdir'
33194           hardcode_libdir_separator_F77=
33195           fi
33196         esac
33197         shared_flag='-shared'
33198         if test "$aix_use_runtimelinking" = yes; then
33199           shared_flag="$shared_flag "'${wl}-G'
33200         fi
33201       else
33202         # not using gcc
33203         if test "$host_cpu" = ia64; then
33204         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
33205         # chokes on -Wl,-G. The following line is correct:
33206           shared_flag='-G'
33207         else
33208         if test "$aix_use_runtimelinking" = yes; then
33209             shared_flag='${wl}-G'
33210           else
33211             shared_flag='${wl}-bM:SRE'
33212         fi
33213         fi
33214       fi
33215
33216       # It seems that -bexpall does not export symbols beginning with
33217       # underscore (_), so it is better to generate a list of symbols to export.
33218       always_export_symbols_F77=yes
33219       if test "$aix_use_runtimelinking" = yes; then
33220         # Warning - without using the other runtime loading flags (-brtl),
33221         # -berok will link without error, but may produce a broken library.
33222         allow_undefined_flag_F77='-berok'
33223        # Determine the default libpath from the value encoded in an empty executable.
33224        cat >conftest.$ac_ext <<_ACEOF
33225       program main
33226
33227       end
33228 _ACEOF
33229 rm -f conftest.$ac_objext conftest$ac_exeext
33230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33231   (eval $ac_link) 2>conftest.er1
33232   ac_status=$?
33233   grep -v '^ *+' conftest.er1 >conftest.err
33234   rm -f conftest.er1
33235   cat conftest.err >&5
33236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237   (exit $ac_status); } &&
33238          { ac_try='test -z "$ac_f77_werror_flag"
33239                          || test ! -s conftest.err'
33240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241   (eval $ac_try) 2>&5
33242   ac_status=$?
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); }; } &&
33245          { ac_try='test -s conftest$ac_exeext'
33246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247   (eval $ac_try) 2>&5
33248   ac_status=$?
33249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250   (exit $ac_status); }; }; then
33251
33252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
33253 }'`
33254 # Check for a 64-bit object if we didn't find anything.
33255 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
33256 }'`; fi
33257 else
33258   echo "$as_me: failed program was:" >&5
33259 sed 's/^/| /' conftest.$ac_ext >&5
33260
33261 fi
33262 rm -f conftest.err conftest.$ac_objext \
33263       conftest$ac_exeext conftest.$ac_ext
33264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33265
33266        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
33267         archive_expsym_cmds_F77="\$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"
33268        else
33269         if test "$host_cpu" = ia64; then
33270           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
33271           allow_undefined_flag_F77="-z nodefs"
33272           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
33273         else
33274          # Determine the default libpath from the value encoded in an empty executable.
33275          cat >conftest.$ac_ext <<_ACEOF
33276       program main
33277
33278       end
33279 _ACEOF
33280 rm -f conftest.$ac_objext conftest$ac_exeext
33281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33282   (eval $ac_link) 2>conftest.er1
33283   ac_status=$?
33284   grep -v '^ *+' conftest.er1 >conftest.err
33285   rm -f conftest.er1
33286   cat conftest.err >&5
33287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288   (exit $ac_status); } &&
33289          { ac_try='test -z "$ac_f77_werror_flag"
33290                          || test ! -s conftest.err'
33291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292   (eval $ac_try) 2>&5
33293   ac_status=$?
33294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295   (exit $ac_status); }; } &&
33296          { ac_try='test -s conftest$ac_exeext'
33297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33298   (eval $ac_try) 2>&5
33299   ac_status=$?
33300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301   (exit $ac_status); }; }; then
33302
33303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
33304 }'`
33305 # Check for a 64-bit object if we didn't find anything.
33306 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
33307 }'`; fi
33308 else
33309   echo "$as_me: failed program was:" >&5
33310 sed 's/^/| /' conftest.$ac_ext >&5
33311
33312 fi
33313 rm -f conftest.err conftest.$ac_objext \
33314       conftest$ac_exeext conftest.$ac_ext
33315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
33316
33317          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
33318           # Warning - without using the other run time loading flags,
33319           # -berok will link without error, but may produce a broken library.
33320           no_undefined_flag_F77=' ${wl}-bernotok'
33321           allow_undefined_flag_F77=' ${wl}-berok'
33322           # -bexpall does not export symbols beginning with underscore (_)
33323           always_export_symbols_F77=yes
33324           # Exported symbols can be pulled into shared objects from archives
33325           whole_archive_flag_spec_F77=' '
33326           archive_cmds_need_lc_F77=yes
33327           # This is similar to how AIX traditionally builds its shared libraries.
33328           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
33329         fi
33330       fi
33331       ;;
33332
33333     amigaos*)
33334       archive_cmds_F77='$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)'
33335       hardcode_libdir_flag_spec_F77='-L$libdir'
33336       hardcode_minus_L_F77=yes
33337       # see comment about different semantics on the GNU ld section
33338       ld_shlibs_F77=no
33339       ;;
33340
33341     bsdi[45]*)
33342       export_dynamic_flag_spec_F77=-rdynamic
33343       ;;
33344
33345     cygwin* | mingw* | pw32*)
33346       # When not using gcc, we currently assume that we are using
33347       # Microsoft Visual C++.
33348       # hardcode_libdir_flag_spec is actually meaningless, as there is
33349       # no search path for DLLs.
33350       hardcode_libdir_flag_spec_F77=' '
33351       allow_undefined_flag_F77=unsupported
33352       # Tell ltmain to make .lib files, not .a files.
33353       libext=lib
33354       # Tell ltmain to make .dll files, not .so files.
33355       shrext_cmds=".dll"
33356       # FIXME: Setting linknames here is a bad hack.
33357       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
33358       # The linker will automatically build a .lib file if we build a DLL.
33359       old_archive_From_new_cmds_F77='true'
33360       # FIXME: Should let the user specify the lib program.
33361       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
33362       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
33363       enable_shared_with_static_runtimes_F77=yes
33364       ;;
33365
33366     darwin* | rhapsody*)
33367       case $host_os in
33368         rhapsody* | darwin1.[012])
33369          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
33370          ;;
33371        *) # Darwin 1.3 on
33372          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
33373            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
33374          else
33375            case ${MACOSX_DEPLOYMENT_TARGET} in
33376              10.[012])
33377                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
33378                ;;
33379              10.*)
33380                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
33381                ;;
33382            esac
33383          fi
33384          ;;
33385       esac
33386       archive_cmds_need_lc_F77=no
33387       hardcode_direct_F77=no
33388       hardcode_automatic_F77=yes
33389       hardcode_shlibpath_var_F77=unsupported
33390       whole_archive_flag_spec_F77=''
33391       link_all_deplibs_F77=yes
33392     if test "$GCC" = yes ; then
33393         output_verbose_link_cmd='echo'
33394         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
33395       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
33396       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
33397       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33398       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33399     else
33400       case $cc_basename in
33401         xlc*)
33402          output_verbose_link_cmd='echo'
33403          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
33404          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
33405           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
33406          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33407           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
33408           ;;
33409        *)
33410          ld_shlibs_F77=no
33411           ;;
33412       esac
33413     fi
33414       ;;
33415
33416     dgux*)
33417       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33418       hardcode_libdir_flag_spec_F77='-L$libdir'
33419       hardcode_shlibpath_var_F77=no
33420       ;;
33421
33422     freebsd1*)
33423       ld_shlibs_F77=no
33424       ;;
33425
33426     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
33427     # support.  Future versions do this automatically, but an explicit c++rt0.o
33428     # does not break anything, and helps significantly (at the cost of a little
33429     # extra space).
33430     freebsd2.2*)
33431       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
33432       hardcode_libdir_flag_spec_F77='-R$libdir'
33433       hardcode_direct_F77=yes
33434       hardcode_shlibpath_var_F77=no
33435       ;;
33436
33437     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
33438     freebsd2*)
33439       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33440       hardcode_direct_F77=yes
33441       hardcode_minus_L_F77=yes
33442       hardcode_shlibpath_var_F77=no
33443       ;;
33444
33445     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
33446     freebsd* | kfreebsd*-gnu | dragonfly*)
33447       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
33448       hardcode_libdir_flag_spec_F77='-R$libdir'
33449       hardcode_direct_F77=yes
33450       hardcode_shlibpath_var_F77=no
33451       ;;
33452
33453     hpux9*)
33454       if test "$GCC" = yes; then
33455         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
33456       else
33457         archive_cmds_F77='$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'
33458       fi
33459       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
33460       hardcode_libdir_separator_F77=:
33461       hardcode_direct_F77=yes
33462
33463       # hardcode_minus_L: Not really in the search PATH,
33464       # but as the default location of the library.
33465       hardcode_minus_L_F77=yes
33466       export_dynamic_flag_spec_F77='${wl}-E'
33467       ;;
33468
33469     hpux10* | hpux11*)
33470       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
33471         case $host_cpu in
33472         hppa*64*|ia64*)
33473           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33474           ;;
33475         *)
33476           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
33477           ;;
33478         esac
33479       else
33480         case $host_cpu in
33481         hppa*64*|ia64*)
33482           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
33483           ;;
33484         *)
33485           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
33486           ;;
33487         esac
33488       fi
33489       if test "$with_gnu_ld" = no; then
33490         case $host_cpu in
33491         hppa*64*)
33492           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
33493           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
33494           hardcode_libdir_separator_F77=:
33495           hardcode_direct_F77=no
33496           hardcode_shlibpath_var_F77=no
33497           ;;
33498         ia64*)
33499           hardcode_libdir_flag_spec_F77='-L$libdir'
33500           hardcode_direct_F77=no
33501           hardcode_shlibpath_var_F77=no
33502
33503           # hardcode_minus_L: Not really in the search PATH,
33504           # but as the default location of the library.
33505           hardcode_minus_L_F77=yes
33506           ;;
33507         *)
33508           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
33509           hardcode_libdir_separator_F77=:
33510           hardcode_direct_F77=yes
33511           export_dynamic_flag_spec_F77='${wl}-E'
33512
33513           # hardcode_minus_L: Not really in the search PATH,
33514           # but as the default location of the library.
33515           hardcode_minus_L_F77=yes
33516           ;;
33517         esac
33518       fi
33519       ;;
33520
33521     irix5* | irix6* | nonstopux*)
33522       if test "$GCC" = yes; then
33523         archive_cmds_F77='$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'
33524       else
33525         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
33526         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
33527       fi
33528       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33529       hardcode_libdir_separator_F77=:
33530       link_all_deplibs_F77=yes
33531       ;;
33532
33533     netbsd*)
33534       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
33535         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
33536       else
33537         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
33538       fi
33539       hardcode_libdir_flag_spec_F77='-R$libdir'
33540       hardcode_direct_F77=yes
33541       hardcode_shlibpath_var_F77=no
33542       ;;
33543
33544     newsos6)
33545       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33546       hardcode_direct_F77=yes
33547       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33548       hardcode_libdir_separator_F77=:
33549       hardcode_shlibpath_var_F77=no
33550       ;;
33551
33552     openbsd*)
33553       hardcode_direct_F77=yes
33554       hardcode_shlibpath_var_F77=no
33555       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
33556         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
33557         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
33558         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
33559         export_dynamic_flag_spec_F77='${wl}-E'
33560       else
33561        case $host_os in
33562          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
33563            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
33564            hardcode_libdir_flag_spec_F77='-R$libdir'
33565            ;;
33566          *)
33567            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
33568            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
33569            ;;
33570        esac
33571       fi
33572       ;;
33573
33574     os2*)
33575       hardcode_libdir_flag_spec_F77='-L$libdir'
33576       hardcode_minus_L_F77=yes
33577       allow_undefined_flag_F77=unsupported
33578       archive_cmds_F77='$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'
33579       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
33580       ;;
33581
33582     osf3*)
33583       if test "$GCC" = yes; then
33584         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
33585         archive_cmds_F77='$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'
33586       else
33587         allow_undefined_flag_F77=' -expect_unresolved \*'
33588         archive_cmds_F77='$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'
33589       fi
33590       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33591       hardcode_libdir_separator_F77=:
33592       ;;
33593
33594     osf4* | osf5*)      # as osf3* with the addition of -msym flag
33595       if test "$GCC" = yes; then
33596         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
33597         archive_cmds_F77='$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'
33598         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
33599       else
33600         allow_undefined_flag_F77=' -expect_unresolved \*'
33601         archive_cmds_F77='$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'
33602         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
33603         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
33604
33605         # Both c and cxx compiler support -rpath directly
33606         hardcode_libdir_flag_spec_F77='-rpath $libdir'
33607       fi
33608       hardcode_libdir_separator_F77=:
33609       ;;
33610
33611     sco3.2v5*)
33612       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33613       hardcode_shlibpath_var_F77=no
33614       export_dynamic_flag_spec_F77='${wl}-Bexport'
33615       runpath_var=LD_RUN_PATH
33616       hardcode_runpath_var=yes
33617       ;;
33618
33619     solaris*)
33620       no_undefined_flag_F77=' -z text'
33621       if test "$GCC" = yes; then
33622         wlarc='${wl}'
33623         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33624         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
33625           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
33626       else
33627         wlarc=''
33628         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
33629         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
33630         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
33631       fi
33632       hardcode_libdir_flag_spec_F77='-R$libdir'
33633       hardcode_shlibpath_var_F77=no
33634       case $host_os in
33635       solaris2.[0-5] | solaris2.[0-5].*) ;;
33636       *)
33637         # The compiler driver will combine linker options so we
33638         # cannot just pass the convience library names through
33639         # without $wl, iff we do not link with $LD.
33640         # Luckily, gcc supports the same syntax we need for Sun Studio.
33641         # Supported since Solaris 2.6 (maybe 2.5.1?)
33642         case $wlarc in
33643         '')
33644           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
33645         *)
33646           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
33647         esac ;;
33648       esac
33649       link_all_deplibs_F77=yes
33650       ;;
33651
33652     sunos4*)
33653       if test "x$host_vendor" = xsequent; then
33654         # Use $CC to link under sequent, because it throws in some extra .o
33655         # files that make .init and .fini sections work.
33656         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
33657       else
33658         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
33659       fi
33660       hardcode_libdir_flag_spec_F77='-L$libdir'
33661       hardcode_direct_F77=yes
33662       hardcode_minus_L_F77=yes
33663       hardcode_shlibpath_var_F77=no
33664       ;;
33665
33666     sysv4)
33667       case $host_vendor in
33668         sni)
33669           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33670           hardcode_direct_F77=yes # is this really true???
33671         ;;
33672         siemens)
33673           ## LD is ld it makes a PLAMLIB
33674           ## CC just makes a GrossModule.
33675           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
33676           reload_cmds_F77='$CC -r -o $output$reload_objs'
33677           hardcode_direct_F77=no
33678         ;;
33679         motorola)
33680           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33681           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
33682         ;;
33683       esac
33684       runpath_var='LD_RUN_PATH'
33685       hardcode_shlibpath_var_F77=no
33686       ;;
33687
33688     sysv4.3*)
33689       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33690       hardcode_shlibpath_var_F77=no
33691       export_dynamic_flag_spec_F77='-Bexport'
33692       ;;
33693
33694     sysv4*MP*)
33695       if test -d /usr/nec; then
33696         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33697         hardcode_shlibpath_var_F77=no
33698         runpath_var=LD_RUN_PATH
33699         hardcode_runpath_var=yes
33700         ld_shlibs_F77=yes
33701       fi
33702       ;;
33703
33704     sysv4.2uw2*)
33705       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
33706       hardcode_direct_F77=yes
33707       hardcode_minus_L_F77=no
33708       hardcode_shlibpath_var_F77=no
33709       hardcode_runpath_var=yes
33710       runpath_var=LD_RUN_PATH
33711       ;;
33712
33713    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
33714       no_undefined_flag_F77='${wl}-z ${wl}text'
33715       if test "$GCC" = yes; then
33716         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33717       else
33718         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
33719       fi
33720       runpath_var='LD_RUN_PATH'
33721       hardcode_shlibpath_var_F77=no
33722       ;;
33723
33724     sysv5*)
33725       no_undefined_flag_F77=' -z text'
33726       # $CC -shared without GNU ld will not create a library from C++
33727       # object files and a static libstdc++, better avoid it by now
33728       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
33729       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
33730                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
33731       hardcode_libdir_flag_spec_F77=
33732       hardcode_shlibpath_var_F77=no
33733       runpath_var='LD_RUN_PATH'
33734       ;;
33735
33736     uts4*)
33737       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
33738       hardcode_libdir_flag_spec_F77='-L$libdir'
33739       hardcode_shlibpath_var_F77=no
33740       ;;
33741
33742     *)
33743       ld_shlibs_F77=no
33744       ;;
33745     esac
33746   fi
33747
33748 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
33749 echo "${ECHO_T}$ld_shlibs_F77" >&6
33750 test "$ld_shlibs_F77" = no && can_build_shared=no
33751
33752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
33753 if test "$GCC" = yes; then
33754   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
33755 fi
33756
33757 #
33758 # Do we need to explicitly link libc?
33759 #
33760 case "x$archive_cmds_need_lc_F77" in
33761 x|xyes)
33762   # Assume -lc should be added
33763   archive_cmds_need_lc_F77=yes
33764
33765   if test "$enable_shared" = yes && test "$GCC" = yes; then
33766     case $archive_cmds_F77 in
33767     *'~'*)
33768       # FIXME: we may have to deal with multi-command sequences.
33769       ;;
33770     '$CC '*)
33771       # Test whether the compiler implicitly links with -lc since on some
33772       # systems, -lgcc has to come before -lc. If gcc already passes -lc
33773       # to ld, don't add -lc before -lgcc.
33774       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
33775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
33776       $rm conftest*
33777       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
33778
33779       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780   (eval $ac_compile) 2>&5
33781   ac_status=$?
33782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783   (exit $ac_status); } 2>conftest.err; then
33784         soname=conftest
33785         lib=conftest
33786         libobjs=conftest.$ac_objext
33787         deplibs=
33788         wl=$lt_prog_compiler_wl_F77
33789         compiler_flags=-v
33790         linker_flags=-v
33791         verstring=
33792         output_objdir=.
33793         libname=conftest
33794         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
33795         allow_undefined_flag_F77=
33796         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
33797   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
33798   ac_status=$?
33799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800   (exit $ac_status); }
33801         then
33802           archive_cmds_need_lc_F77=no
33803         else
33804           archive_cmds_need_lc_F77=yes
33805         fi
33806         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
33807       else
33808         cat conftest.err 1>&5
33809       fi
33810       $rm conftest*
33811       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
33812 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
33813       ;;
33814     esac
33815   fi
33816   ;;
33817 esac
33818
33819 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
33820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
33821 library_names_spec=
33822 libname_spec='lib$name'
33823 soname_spec=
33824 shrext_cmds=".so"
33825 postinstall_cmds=
33826 postuninstall_cmds=
33827 finish_cmds=
33828 finish_eval=
33829 shlibpath_var=
33830 shlibpath_overrides_runpath=unknown
33831 version_type=none
33832 dynamic_linker="$host_os ld.so"
33833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
33834 if test "$GCC" = yes; then
33835   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
33836   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
33837     # if the path contains ";" then we assume it to be the separator
33838     # otherwise default to the standard path separator (i.e. ":") - it is
33839     # assumed that no part of a normal pathname contains ";" but that should
33840     # okay in the real world where ";" in dirpaths is itself problematic.
33841     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33842   else
33843     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
33844   fi
33845 else
33846   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
33847 fi
33848 need_lib_prefix=unknown
33849 hardcode_into_libs=no
33850
33851 # when you set need_version to no, make sure it does not cause -set_version
33852 # flags to be left without arguments
33853 need_version=unknown
33854
33855 case $host_os in
33856 aix3*)
33857   version_type=linux
33858   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
33859   shlibpath_var=LIBPATH
33860
33861   # AIX 3 has no versioning support, so we append a major version to the name.
33862   soname_spec='${libname}${release}${shared_ext}$major'
33863   ;;
33864
33865 aix4* | aix5*)
33866   version_type=linux
33867   need_lib_prefix=no
33868   need_version=no
33869   hardcode_into_libs=yes
33870   if test "$host_cpu" = ia64; then
33871     # AIX 5 supports IA64
33872     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
33873     shlibpath_var=LD_LIBRARY_PATH
33874   else
33875     # With GCC up to 2.95.x, collect2 would create an import file
33876     # for dependence libraries.  The import file would start with
33877     # the line `#! .'.  This would cause the generated library to
33878     # depend on `.', always an invalid library.  This was fixed in
33879     # development snapshots of GCC prior to 3.0.
33880     case $host_os in
33881       aix4 | aix4.[01] | aix4.[01].*)
33882       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
33883            echo ' yes '
33884            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
33885         :
33886       else
33887         can_build_shared=no
33888       fi
33889       ;;
33890     esac
33891     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
33892     # soname into executable. Probably we can add versioning support to
33893     # collect2, so additional links can be useful in future.
33894     if test "$aix_use_runtimelinking" = yes; then
33895       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
33896       # instead of lib<name>.a to let people know that these are not
33897       # typical AIX shared libraries.
33898       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33899     else
33900       # We preserve .a as extension for shared libraries through AIX4.2
33901       # and later when we are not doing run time linking.
33902       library_names_spec='${libname}${release}.a $libname.a'
33903       soname_spec='${libname}${release}${shared_ext}$major'
33904     fi
33905     shlibpath_var=LIBPATH
33906   fi
33907   ;;
33908
33909 amigaos*)
33910   library_names_spec='$libname.ixlibrary $libname.a'
33911   # Create ${libname}_ixlibrary.a entries in /sys/libs.
33912   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'
33913   ;;
33914
33915 beos*)
33916   library_names_spec='${libname}${shared_ext}'
33917   dynamic_linker="$host_os ld.so"
33918   shlibpath_var=LIBRARY_PATH
33919   ;;
33920
33921 bsdi[45]*)
33922   version_type=linux
33923   need_version=no
33924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
33925   soname_spec='${libname}${release}${shared_ext}$major'
33926   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
33927   shlibpath_var=LD_LIBRARY_PATH
33928   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
33929   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
33930   # the default ld.so.conf also contains /usr/contrib/lib and
33931   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
33932   # libtool to hard-code these into programs
33933   ;;
33934
33935 cygwin* | mingw* | pw32*)
33936   version_type=windows
33937   shrext_cmds=".dll"
33938   need_version=no
33939   need_lib_prefix=no
33940
33941   case $GCC,$host_os in
33942   yes,cygwin* | yes,mingw* | yes,pw32*)
33943     library_names_spec='$libname.dll.a'
33944     # DLL is installed to $(libdir)/../bin by postinstall_cmds
33945     postinstall_cmds='base_file=`basename \${file}`~
33946       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
33947       dldir=$destdir/`dirname \$dlpath`~
33948       test -d \$dldir || mkdir -p \$dldir~
33949       $install_prog $dir/$dlname \$dldir/$dlname~
33950       chmod a+x \$dldir/$dlname'
33951     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
33952       dlpath=$dir/\$dldll~
33953        $rm \$dlpath'
33954     shlibpath_overrides_runpath=yes
33955
33956     case $host_os in
33957     cygwin*)
33958       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
33959       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33960       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
33961       ;;
33962     mingw*)
33963       # MinGW DLLs use traditional 'lib' prefix
33964       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33965       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
33966       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
33967         # It is most probably a Windows format PATH printed by
33968         # mingw gcc, but we are running on Cygwin. Gcc prints its search
33969         # path with ; separators, and with drive letters. We can handle the
33970         # drive letters (cygwin fileutils understands them), so leave them,
33971         # especially as we might pass files found there to a mingw objdump,
33972         # which wouldn't understand a cygwinified path. Ahh.
33973         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
33974       else
33975         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
33976       fi
33977       ;;
33978     pw32*)
33979       # pw32 DLLs use 'pw' prefix rather than 'lib'
33980       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
33981       ;;
33982     esac
33983     ;;
33984
33985   *)
33986     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
33987     ;;
33988   esac
33989   dynamic_linker='Win32 ld.exe'
33990   # FIXME: first we should search . and the directory the executable is in
33991   shlibpath_var=PATH
33992   ;;
33993
33994 darwin* | rhapsody*)
33995   dynamic_linker="$host_os dyld"
33996   version_type=darwin
33997   need_lib_prefix=no
33998   need_version=no
33999   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
34000   soname_spec='${libname}${release}${major}$shared_ext'
34001   shlibpath_overrides_runpath=yes
34002   shlibpath_var=DYLD_LIBRARY_PATH
34003   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
34004   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
34005   if test "$GCC" = yes; then
34006     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
34007   else
34008     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
34009   fi
34010   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
34011   ;;
34012
34013 dgux*)
34014   version_type=linux
34015   need_lib_prefix=no
34016   need_version=no
34017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
34018   soname_spec='${libname}${release}${shared_ext}$major'
34019   shlibpath_var=LD_LIBRARY_PATH
34020   ;;
34021
34022 freebsd1*)
34023   dynamic_linker=no
34024   ;;
34025
34026 kfreebsd*-gnu)
34027   version_type=linux
34028   need_lib_prefix=no
34029   need_version=no
34030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
34031   soname_spec='${libname}${release}${shared_ext}$major'
34032   shlibpath_var=LD_LIBRARY_PATH
34033   shlibpath_overrides_runpath=no
34034   hardcode_into_libs=yes
34035   dynamic_linker='GNU ld.so'
34036   ;;
34037
34038 freebsd* | dragonfly*)
34039   # DragonFly does not have aout.  When/if they implement a new
34040   # versioning mechanism, adjust this.
34041   if test -x /usr/bin/objformat; then
34042     objformat=`/usr/bin/objformat`
34043   else
34044     case $host_os in
34045     freebsd[123]*) objformat=aout ;;
34046     *) objformat=elf ;;
34047     esac
34048   fi
34049   version_type=freebsd-$objformat
34050   case $version_type in
34051     freebsd-elf*)
34052       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
34053       need_version=no
34054       need_lib_prefix=no
34055       ;;
34056     freebsd-*)
34057       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
34058       need_version=yes
34059       ;;
34060   esac
34061   shlibpath_var=LD_LIBRARY_PATH
34062   case $host_os in
34063   freebsd2*)
34064     shlibpath_overrides_runpath=yes
34065     ;;
34066   freebsd3.[01]* | freebsdelf3.[01]*)
34067     shlibpath_overrides_runpath=yes
34068     hardcode_into_libs=yes
34069     ;;
34070   *) # from 3.2 on
34071     shlibpath_overrides_runpath=no
34072     hardcode_into_libs=yes
34073     ;;
34074   esac
34075   ;;
34076
34077 gnu*)
34078   version_type=linux
34079   need_lib_prefix=no
34080   need_version=no
34081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
34082   soname_spec='${libname}${release}${shared_ext}$major'
34083   shlibpath_var=LD_LIBRARY_PATH
34084   hardcode_into_libs=yes
34085   ;;
34086
34087 hpux9* | hpux10* | hpux11*)
34088   # Give a soname corresponding to the major version so that dld.sl refuses to
34089   # link against other versions.
34090   version_type=sunos
34091   need_lib_prefix=no
34092   need_version=no
34093   case $host_cpu in
34094   ia64*)
34095     shrext_cmds='.so'
34096     hardcode_into_libs=yes
34097     dynamic_linker="$host_os dld.so"
34098     shlibpath_var=LD_LIBRARY_PATH
34099     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
34100     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34101     soname_spec='${libname}${release}${shared_ext}$major'
34102     if test "X$HPUX_IA64_MODE" = X32; then
34103       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
34104     else
34105       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
34106     fi
34107     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34108     ;;
34109    hppa*64*)
34110      shrext_cmds='.sl'
34111      hardcode_into_libs=yes
34112      dynamic_linker="$host_os dld.sl"
34113      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
34114      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
34115      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34116      soname_spec='${libname}${release}${shared_ext}$major'
34117      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
34118      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
34119      ;;
34120    *)
34121     shrext_cmds='.sl'
34122     dynamic_linker="$host_os dld.sl"
34123     shlibpath_var=SHLIB_PATH
34124     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
34125     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34126     soname_spec='${libname}${release}${shared_ext}$major'
34127     ;;
34128   esac
34129   # HP-UX runs *really* slowly unless shared libraries are mode 555.
34130   postinstall_cmds='chmod 555 $lib'
34131   ;;
34132
34133 irix5* | irix6* | nonstopux*)
34134   case $host_os in
34135     nonstopux*) version_type=nonstopux ;;
34136     *)
34137         if test "$lt_cv_prog_gnu_ld" = yes; then
34138                 version_type=linux
34139         else
34140                 version_type=irix
34141         fi ;;
34142   esac
34143   need_lib_prefix=no
34144   need_version=no
34145   soname_spec='${libname}${release}${shared_ext}$major'
34146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
34147   case $host_os in
34148   irix5* | nonstopux*)
34149     libsuff= shlibsuff=
34150     ;;
34151   *)
34152     case $LD in # libtool.m4 will add one of these switches to LD
34153     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
34154       libsuff= shlibsuff= libmagic=32-bit;;
34155     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
34156       libsuff=32 shlibsuff=N32 libmagic=N32;;
34157     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
34158       libsuff=64 shlibsuff=64 libmagic=64-bit;;
34159     *) libsuff= shlibsuff= libmagic=never-match;;
34160     esac
34161     ;;
34162   esac
34163   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
34164   shlibpath_overrides_runpath=no
34165   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
34166   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
34167   hardcode_into_libs=yes
34168   ;;
34169
34170 # No shared lib support for Linux oldld, aout, or coff.
34171 linux*oldld* | linux*aout* | linux*coff*)
34172   dynamic_linker=no
34173   ;;
34174
34175 # This must be Linux ELF.
34176 linux*)
34177   version_type=linux
34178   need_lib_prefix=no
34179   need_version=no
34180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34181   soname_spec='${libname}${release}${shared_ext}$major'
34182   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
34183   shlibpath_var=LD_LIBRARY_PATH
34184   shlibpath_overrides_runpath=no
34185   # This implies no fast_install, which is unacceptable.
34186   # Some rework will be needed to allow for fast_install
34187   # before this can be enabled.
34188   hardcode_into_libs=yes
34189
34190   # Append ld.so.conf contents to the search path
34191   if test -f /etc/ld.so.conf; then
34192     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
34193     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
34194   fi
34195
34196   # We used to test for /lib/ld.so.1 and disable shared libraries on
34197   # powerpc, because MkLinux only supported shared libraries with the
34198   # GNU dynamic linker.  Since this was broken with cross compilers,
34199   # most powerpc-linux boxes support dynamic linking these days and
34200   # people can always --disable-shared, the test was removed, and we
34201   # assume the GNU/Linux dynamic linker is in use.
34202   dynamic_linker='GNU/Linux ld.so'
34203   ;;
34204
34205 knetbsd*-gnu)
34206   version_type=linux
34207   need_lib_prefix=no
34208   need_version=no
34209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
34210   soname_spec='${libname}${release}${shared_ext}$major'
34211   shlibpath_var=LD_LIBRARY_PATH
34212   shlibpath_overrides_runpath=no
34213   hardcode_into_libs=yes
34214   dynamic_linker='GNU ld.so'
34215   ;;
34216
34217 netbsd*)
34218   version_type=sunos
34219   need_lib_prefix=no
34220   need_version=no
34221   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
34222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
34223     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
34224     dynamic_linker='NetBSD (a.out) ld.so'
34225   else
34226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
34227     soname_spec='${libname}${release}${shared_ext}$major'
34228     dynamic_linker='NetBSD ld.elf_so'
34229   fi
34230   shlibpath_var=LD_LIBRARY_PATH
34231   shlibpath_overrides_runpath=yes
34232   hardcode_into_libs=yes
34233   ;;
34234
34235 newsos6)
34236   version_type=linux
34237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34238   shlibpath_var=LD_LIBRARY_PATH
34239   shlibpath_overrides_runpath=yes
34240   ;;
34241
34242 nto-qnx*)
34243   version_type=linux
34244   need_lib_prefix=no
34245   need_version=no
34246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34247   soname_spec='${libname}${release}${shared_ext}$major'
34248   shlibpath_var=LD_LIBRARY_PATH
34249   shlibpath_overrides_runpath=yes
34250   ;;
34251
34252 openbsd*)
34253   version_type=sunos
34254   need_lib_prefix=no
34255   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
34256   case $host_os in
34257     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
34258     *)                         need_version=no  ;;
34259   esac
34260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
34261   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
34262   shlibpath_var=LD_LIBRARY_PATH
34263   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
34264     case $host_os in
34265       openbsd2.[89] | openbsd2.[89].*)
34266         shlibpath_overrides_runpath=no
34267         ;;
34268       *)
34269         shlibpath_overrides_runpath=yes
34270         ;;
34271       esac
34272   else
34273     shlibpath_overrides_runpath=yes
34274   fi
34275   ;;
34276
34277 os2*)
34278   libname_spec='$name'
34279   shrext_cmds=".dll"
34280   need_lib_prefix=no
34281   library_names_spec='$libname${shared_ext} $libname.a'
34282   dynamic_linker='OS/2 ld.exe'
34283   shlibpath_var=LIBPATH
34284   ;;
34285
34286 osf3* | osf4* | osf5*)
34287   version_type=osf
34288   need_lib_prefix=no
34289   need_version=no
34290   soname_spec='${libname}${release}${shared_ext}$major'
34291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34292   shlibpath_var=LD_LIBRARY_PATH
34293   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
34294   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
34295   ;;
34296
34297 sco3.2v5*)
34298   version_type=osf
34299   soname_spec='${libname}${release}${shared_ext}$major'
34300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34301   shlibpath_var=LD_LIBRARY_PATH
34302   ;;
34303
34304 solaris*)
34305   version_type=linux
34306   need_lib_prefix=no
34307   need_version=no
34308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34309   soname_spec='${libname}${release}${shared_ext}$major'
34310   shlibpath_var=LD_LIBRARY_PATH
34311   shlibpath_overrides_runpath=yes
34312   hardcode_into_libs=yes
34313   # ldd complains unless libraries are executable
34314   postinstall_cmds='chmod +x $lib'
34315   ;;
34316
34317 sunos4*)
34318   version_type=sunos
34319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
34320   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
34321   shlibpath_var=LD_LIBRARY_PATH
34322   shlibpath_overrides_runpath=yes
34323   if test "$with_gnu_ld" = yes; then
34324     need_lib_prefix=no
34325   fi
34326   need_version=yes
34327   ;;
34328
34329 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
34330   version_type=linux
34331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34332   soname_spec='${libname}${release}${shared_ext}$major'
34333   shlibpath_var=LD_LIBRARY_PATH
34334   case $host_vendor in
34335     sni)
34336       shlibpath_overrides_runpath=no
34337       need_lib_prefix=no
34338       export_dynamic_flag_spec='${wl}-Blargedynsym'
34339       runpath_var=LD_RUN_PATH
34340       ;;
34341     siemens)
34342       need_lib_prefix=no
34343       ;;
34344     motorola)
34345       need_lib_prefix=no
34346       need_version=no
34347       shlibpath_overrides_runpath=no
34348       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
34349       ;;
34350   esac
34351   ;;
34352
34353 sysv4*MP*)
34354   if test -d /usr/nec ;then
34355     version_type=linux
34356     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
34357     soname_spec='$libname${shared_ext}.$major'
34358     shlibpath_var=LD_LIBRARY_PATH
34359   fi
34360   ;;
34361
34362 uts4*)
34363   version_type=linux
34364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
34365   soname_spec='${libname}${release}${shared_ext}$major'
34366   shlibpath_var=LD_LIBRARY_PATH
34367   ;;
34368
34369 *)
34370   dynamic_linker=no
34371   ;;
34372 esac
34373 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
34374 echo "${ECHO_T}$dynamic_linker" >&6
34375 test "$dynamic_linker" = no && can_build_shared=no
34376
34377 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
34378 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
34379 hardcode_action_F77=
34380 if test -n "$hardcode_libdir_flag_spec_F77" || \
34381    test -n "$runpath_var_F77" || \
34382    test "X$hardcode_automatic_F77" = "Xyes" ; then
34383
34384   # We can hardcode non-existant directories.
34385   if test "$hardcode_direct_F77" != no &&
34386      # If the only mechanism to avoid hardcoding is shlibpath_var, we
34387      # have to relink, otherwise we might link with an installed library
34388      # when we should be linking with a yet-to-be-installed one
34389      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
34390      test "$hardcode_minus_L_F77" != no; then
34391     # Linking always hardcodes the temporary library directory.
34392     hardcode_action_F77=relink
34393   else
34394     # We can link without hardcoding, and we can hardcode nonexisting dirs.
34395     hardcode_action_F77=immediate
34396   fi
34397 else
34398   # We cannot hardcode anything, or else we can only hardcode existing
34399   # directories.
34400   hardcode_action_F77=unsupported
34401 fi
34402 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
34403 echo "${ECHO_T}$hardcode_action_F77" >&6
34404
34405 if test "$hardcode_action_F77" = relink; then
34406   # Fast installation is not supported
34407   enable_fast_install=no
34408 elif test "$shlibpath_overrides_runpath" = yes ||
34409      test "$enable_shared" = no; then
34410   # Fast installation is not necessary
34411   enable_fast_install=needless
34412 fi
34413
34414 striplib=
34415 old_striplib=
34416 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
34417 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
34418 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
34419   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
34420   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
34421   echo "$as_me:$LINENO: result: yes" >&5
34422 echo "${ECHO_T}yes" >&6
34423 else
34424 # FIXME - insert some real tests, host_os isn't really good enough
34425   case $host_os in
34426    darwin*)
34427        if test -n "$STRIP" ; then
34428          striplib="$STRIP -x"
34429          echo "$as_me:$LINENO: result: yes" >&5
34430 echo "${ECHO_T}yes" >&6
34431        else
34432   echo "$as_me:$LINENO: result: no" >&5
34433 echo "${ECHO_T}no" >&6
34434 fi
34435        ;;
34436    *)
34437   echo "$as_me:$LINENO: result: no" >&5
34438 echo "${ECHO_T}no" >&6
34439     ;;
34440   esac
34441 fi
34442
34443
34444
34445 # The else clause should only fire when bootstrapping the
34446 # libtool distribution, otherwise you forgot to ship ltmain.sh
34447 # with your package, and you will get complaints that there are
34448 # no rules to generate ltmain.sh.
34449 if test -f "$ltmain"; then
34450   # See if we are running on zsh, and set the options which allow our commands through
34451   # without removal of \ escapes.
34452   if test -n "${ZSH_VERSION+set}" ; then
34453     setopt NO_GLOB_SUBST
34454   fi
34455   # Now quote all the things that may contain metacharacters while being
34456   # careful not to overquote the AC_SUBSTed values.  We take copies of the
34457   # variables and quote the copies for generation of the libtool script.
34458   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
34459     SED SHELL STRIP \
34460     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
34461     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
34462     deplibs_check_method reload_flag reload_cmds need_locks \
34463     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
34464     lt_cv_sys_global_symbol_to_c_name_address \
34465     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
34466     old_postinstall_cmds old_postuninstall_cmds \
34467     compiler_F77 \
34468     CC_F77 \
34469     LD_F77 \
34470     lt_prog_compiler_wl_F77 \
34471     lt_prog_compiler_pic_F77 \
34472     lt_prog_compiler_static_F77 \
34473     lt_prog_compiler_no_builtin_flag_F77 \
34474     export_dynamic_flag_spec_F77 \
34475     thread_safe_flag_spec_F77 \
34476     whole_archive_flag_spec_F77 \
34477     enable_shared_with_static_runtimes_F77 \
34478     old_archive_cmds_F77 \
34479     old_archive_from_new_cmds_F77 \
34480     predep_objects_F77 \
34481     postdep_objects_F77 \
34482     predeps_F77 \
34483     postdeps_F77 \
34484     compiler_lib_search_path_F77 \
34485     archive_cmds_F77 \
34486     archive_expsym_cmds_F77 \
34487     postinstall_cmds_F77 \
34488     postuninstall_cmds_F77 \
34489     old_archive_from_expsyms_cmds_F77 \
34490     allow_undefined_flag_F77 \
34491     no_undefined_flag_F77 \
34492     export_symbols_cmds_F77 \
34493     hardcode_libdir_flag_spec_F77 \
34494     hardcode_libdir_flag_spec_ld_F77 \
34495     hardcode_libdir_separator_F77 \
34496     hardcode_automatic_F77 \
34497     module_cmds_F77 \
34498     module_expsym_cmds_F77 \
34499     lt_cv_prog_compiler_c_o_F77 \
34500     exclude_expsyms_F77 \
34501     include_expsyms_F77; do
34502
34503     case $var in
34504     old_archive_cmds_F77 | \
34505     old_archive_from_new_cmds_F77 | \
34506     archive_cmds_F77 | \
34507     archive_expsym_cmds_F77 | \
34508     module_cmds_F77 | \
34509     module_expsym_cmds_F77 | \
34510     old_archive_from_expsyms_cmds_F77 | \
34511     export_symbols_cmds_F77 | \
34512     extract_expsyms_cmds | reload_cmds | finish_cmds | \
34513     postinstall_cmds | postuninstall_cmds | \
34514     old_postinstall_cmds | old_postuninstall_cmds | \
34515     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
34516       # Double-quote double-evaled strings.
34517       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
34518       ;;
34519     *)
34520       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
34521       ;;
34522     esac
34523   done
34524
34525   case $lt_echo in
34526   *'\$0 --fallback-echo"')
34527     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
34528     ;;
34529   esac
34530
34531 cfgfile="$ofile"
34532
34533   cat <<__EOF__ >> "$cfgfile"
34534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
34535
34536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34537
34538 # Shell to use when invoking shell scripts.
34539 SHELL=$lt_SHELL
34540
34541 # Whether or not to build shared libraries.
34542 build_libtool_libs=$enable_shared
34543
34544 # Whether or not to build static libraries.
34545 build_old_libs=$enable_static
34546
34547 # Whether or not to add -lc for building shared libraries.
34548 build_libtool_need_lc=$archive_cmds_need_lc_F77
34549
34550 # Whether or not to disallow shared libs when runtime libs are static
34551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
34552
34553 # Whether or not to optimize for fast installation.
34554 fast_install=$enable_fast_install
34555
34556 # The host system.
34557 host_alias=$host_alias
34558 host=$host
34559 host_os=$host_os
34560
34561 # The build system.
34562 build_alias=$build_alias
34563 build=$build
34564 build_os=$build_os
34565
34566 # An echo program that does not interpret backslashes.
34567 echo=$lt_echo
34568
34569 # The archiver.
34570 AR=$lt_AR
34571 AR_FLAGS=$lt_AR_FLAGS
34572
34573 # A C compiler.
34574 LTCC=$lt_LTCC
34575
34576 # A language-specific compiler.
34577 CC=$lt_compiler_F77
34578
34579 # Is the compiler the GNU C compiler?
34580 with_gcc=$GCC_F77
34581
34582 # An ERE matcher.
34583 EGREP=$lt_EGREP
34584
34585 # The linker used to build libraries.
34586 LD=$lt_LD_F77
34587
34588 # Whether we need hard or soft links.
34589 LN_S=$lt_LN_S
34590
34591 # A BSD-compatible nm program.
34592 NM=$lt_NM
34593
34594 # A symbol stripping program
34595 STRIP=$lt_STRIP
34596
34597 # Used to examine libraries when file_magic_cmd begins "file"
34598 MAGIC_CMD=$MAGIC_CMD
34599
34600 # Used on cygwin: DLL creation program.
34601 DLLTOOL="$DLLTOOL"
34602
34603 # Used on cygwin: object dumper.
34604 OBJDUMP="$OBJDUMP"
34605
34606 # Used on cygwin: assembler.
34607 AS="$AS"
34608
34609 # The name of the directory that contains temporary libtool files.
34610 objdir=$objdir
34611
34612 # How to create reloadable object files.
34613 reload_flag=$lt_reload_flag
34614 reload_cmds=$lt_reload_cmds
34615
34616 # How to pass a linker flag through the compiler.
34617 wl=$lt_lt_prog_compiler_wl_F77
34618
34619 # Object file suffix (normally "o").
34620 objext="$ac_objext"
34621
34622 # Old archive suffix (normally "a").
34623 libext="$libext"
34624
34625 # Shared library suffix (normally ".so").
34626 shrext_cmds='$shrext_cmds'
34627
34628 # Executable file suffix (normally "").
34629 exeext="$exeext"
34630
34631 # Additional compiler flags for building library objects.
34632 pic_flag=$lt_lt_prog_compiler_pic_F77
34633 pic_mode=$pic_mode
34634
34635 # What is the maximum length of a command?
34636 max_cmd_len=$lt_cv_sys_max_cmd_len
34637
34638 # Does compiler simultaneously support -c and -o options?
34639 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
34640
34641 # Must we lock files when doing compilation?
34642 need_locks=$lt_need_locks
34643
34644 # Do we need the lib prefix for modules?
34645 need_lib_prefix=$need_lib_prefix
34646
34647 # Do we need a version for libraries?
34648 need_version=$need_version
34649
34650 # Whether dlopen is supported.
34651 dlopen_support=$enable_dlopen
34652
34653 # Whether dlopen of programs is supported.
34654 dlopen_self=$enable_dlopen_self
34655
34656 # Whether dlopen of statically linked programs is supported.
34657 dlopen_self_static=$enable_dlopen_self_static
34658
34659 # Compiler flag to prevent dynamic linking.
34660 link_static_flag=$lt_lt_prog_compiler_static_F77
34661
34662 # Compiler flag to turn off builtin functions.
34663 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
34664
34665 # Compiler flag to allow reflexive dlopens.
34666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
34667
34668 # Compiler flag to generate shared objects directly from archives.
34669 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
34670
34671 # Compiler flag to generate thread-safe objects.
34672 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
34673
34674 # Library versioning type.
34675 version_type=$version_type
34676
34677 # Format of library name prefix.
34678 libname_spec=$lt_libname_spec
34679
34680 # List of archive names.  First name is the real one, the rest are links.
34681 # The last name is the one that the linker finds with -lNAME.
34682 library_names_spec=$lt_library_names_spec
34683
34684 # The coded name of the library, if different from the real name.
34685 soname_spec=$lt_soname_spec
34686
34687 # Commands used to build and install an old-style archive.
34688 RANLIB=$lt_RANLIB
34689 old_archive_cmds=$lt_old_archive_cmds_F77
34690 old_postinstall_cmds=$lt_old_postinstall_cmds
34691 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34692
34693 # Create an old-style archive from a shared archive.
34694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
34695
34696 # Create a temporary old-style archive to link instead of a shared archive.
34697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
34698
34699 # Commands used to build and install a shared archive.
34700 archive_cmds=$lt_archive_cmds_F77
34701 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
34702 postinstall_cmds=$lt_postinstall_cmds
34703 postuninstall_cmds=$lt_postuninstall_cmds
34704
34705 # Commands used to build a loadable module (assumed same as above if empty)
34706 module_cmds=$lt_module_cmds_F77
34707 module_expsym_cmds=$lt_module_expsym_cmds_F77
34708
34709 # Commands to strip libraries.
34710 old_striplib=$lt_old_striplib
34711 striplib=$lt_striplib
34712
34713 # Dependencies to place before the objects being linked to create a
34714 # shared library.
34715 predep_objects=$lt_predep_objects_F77
34716
34717 # Dependencies to place after the objects being linked to create a
34718 # shared library.
34719 postdep_objects=$lt_postdep_objects_F77
34720
34721 # Dependencies to place before the objects being linked to create a
34722 # shared library.
34723 predeps=$lt_predeps_F77
34724
34725 # Dependencies to place after the objects being linked to create a
34726 # shared library.
34727 postdeps=$lt_postdeps_F77
34728
34729 # The library search path used internally by the compiler when linking
34730 # a shared library.
34731 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
34732
34733 # Method to check whether dependent libraries are shared objects.
34734 deplibs_check_method=$lt_deplibs_check_method
34735
34736 # Command to use when deplibs_check_method == file_magic.
34737 file_magic_cmd=$lt_file_magic_cmd
34738
34739 # Flag that allows shared libraries with undefined symbols to be built.
34740 allow_undefined_flag=$lt_allow_undefined_flag_F77
34741
34742 # Flag that forces no undefined symbols.
34743 no_undefined_flag=$lt_no_undefined_flag_F77
34744
34745 # Commands used to finish a libtool library installation in a directory.
34746 finish_cmds=$lt_finish_cmds
34747
34748 # Same as above, but a single script fragment to be evaled but not shown.
34749 finish_eval=$lt_finish_eval
34750
34751 # Take the output of nm and produce a listing of raw symbols and C names.
34752 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34753
34754 # Transform the output of nm in a proper C declaration
34755 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34756
34757 # Transform the output of nm in a C name address pair
34758 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34759
34760 # This is the shared library runtime path variable.
34761 runpath_var=$runpath_var
34762
34763 # This is the shared library path variable.
34764 shlibpath_var=$shlibpath_var
34765
34766 # Is shlibpath searched before the hard-coded library search path?
34767 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34768
34769 # How to hardcode a shared library path into an executable.
34770 hardcode_action=$hardcode_action_F77
34771
34772 # Whether we should hardcode library paths into libraries.
34773 hardcode_into_libs=$hardcode_into_libs
34774
34775 # Flag to hardcode \$libdir into a binary during linking.
34776 # This must work even if \$libdir does not exist.
34777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
34778
34779 # If ld is used when linking, flag to hardcode \$libdir into
34780 # a binary during linking. This must work even if \$libdir does
34781 # not exist.
34782 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
34783
34784 # Whether we need a single -rpath flag with a separated argument.
34785 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
34786
34787 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
34788 # resulting binary.
34789 hardcode_direct=$hardcode_direct_F77
34790
34791 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
34792 # resulting binary.
34793 hardcode_minus_L=$hardcode_minus_L_F77
34794
34795 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
34796 # the resulting binary.
34797 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
34798
34799 # Set to yes if building a shared library automatically hardcodes DIR into the library
34800 # and all subsequent libraries and executables linked against it.
34801 hardcode_automatic=$hardcode_automatic_F77
34802
34803 # Variables whose values should be saved in libtool wrapper scripts and
34804 # restored at relink time.
34805 variables_saved_for_relink="$variables_saved_for_relink"
34806
34807 # Whether libtool must link a program against all its dependency libraries.
34808 link_all_deplibs=$link_all_deplibs_F77
34809
34810 # Compile-time system search path for libraries
34811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34812
34813 # Run-time system search path for libraries
34814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34815
34816 # Fix the shell variable \$srcfile for the compiler.
34817 fix_srcfile_path="$fix_srcfile_path_F77"
34818
34819 # Set to yes if exported symbols are required.
34820 always_export_symbols=$always_export_symbols_F77
34821
34822 # The commands to list exported symbols.
34823 export_symbols_cmds=$lt_export_symbols_cmds_F77
34824
34825 # The commands to extract the exported symbol list from a shared archive.
34826 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34827
34828 # Symbols that should not be listed in the preloaded symbols.
34829 exclude_expsyms=$lt_exclude_expsyms_F77
34830
34831 # Symbols that must always be exported.
34832 include_expsyms=$lt_include_expsyms_F77
34833
34834 # ### END LIBTOOL TAG CONFIG: $tagname
34835
34836 __EOF__
34837
34838
34839 else
34840   # If there is no Makefile yet, we rely on a make rule to execute
34841   # `config.status --recheck' to rerun these tests and create the
34842   # libtool script then.
34843   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
34844   if test -f "$ltmain_in"; then
34845     test -f Makefile && make "$ltmain"
34846   fi
34847 fi
34848
34849
34850 ac_ext=c
34851 ac_cpp='$CPP $CPPFLAGS'
34852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34855
34856 CC="$lt_save_CC"
34857
34858         else
34859           tagname=""
34860         fi
34861         ;;
34862
34863       GCJ)
34864         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
34865
34866
34867
34868 # Source file extension for Java test sources.
34869 ac_ext=java
34870
34871 # Object file extension for compiled Java test sources.
34872 objext=o
34873 objext_GCJ=$objext
34874
34875 # Code to be used in simple compile tests
34876 lt_simple_compile_test_code="class foo {}\n"
34877
34878 # Code to be used in simple link tests
34879 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
34880
34881 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
34882
34883 # If no C compiler was specified, use CC.
34884 LTCC=${LTCC-"$CC"}
34885
34886 # Allow CC to be a program name with arguments.
34887 compiler=$CC
34888
34889
34890 # save warnings/boilerplate of simple test code
34891 ac_outfile=conftest.$ac_objext
34892 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
34893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
34894 _lt_compiler_boilerplate=`cat conftest.err`
34895 $rm conftest*
34896
34897 ac_outfile=conftest.$ac_objext
34898 printf "$lt_simple_link_test_code" >conftest.$ac_ext
34899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
34900 _lt_linker_boilerplate=`cat conftest.err`
34901 $rm conftest*
34902
34903
34904 # Allow CC to be a program name with arguments.
34905 lt_save_CC="$CC"
34906 CC=${GCJ-"gcj"}
34907 compiler=$CC
34908 compiler_GCJ=$CC
34909 for cc_temp in $compiler""; do
34910   case $cc_temp in
34911     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34912     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34913     \-*) ;;
34914     *) break;;
34915   esac
34916 done
34917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
34918
34919
34920 # GCJ did not exist at the time GCC didn't implicitly link libc in.
34921 archive_cmds_need_lc_GCJ=no
34922
34923 old_archive_cmds_GCJ=$old_archive_cmds
34924
34925 ## CAVEAT EMPTOR:
34926 ## There is no encapsulation within the following macros, do not change
34927 ## the running order or otherwise move them around unless you know exactly
34928 ## what you are doing...
34929
34930 lt_prog_compiler_no_builtin_flag_GCJ=
34931
34932 if test "$GCC" = yes; then
34933   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
34934
34935
34936 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
34937 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
34938 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
34939   echo $ECHO_N "(cached) $ECHO_C" >&6
34940 else
34941   lt_cv_prog_compiler_rtti_exceptions=no
34942   ac_outfile=conftest.$ac_objext
34943    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
34944    lt_compiler_flag="-fno-rtti -fno-exceptions"
34945    # Insert the option either (1) after the last *FLAGS variable, or
34946    # (2) before a word containing "conftest.", or (3) at the end.
34947    # Note that $ac_compile itself does not contain backslashes and begins
34948    # with a dollar sign (not a hyphen), so the echo should work correctly.
34949    # The option is referenced via a variable to avoid confusing sed.
34950    lt_compile=`echo "$ac_compile" | $SED \
34951    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
34952    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
34953    -e 's:$: $lt_compiler_flag:'`
34954    (eval echo "\"\$as_me:34954: $lt_compile\"" >&5)
34955    (eval "$lt_compile" 2>conftest.err)
34956    ac_status=$?
34957    cat conftest.err >&5
34958    echo "$as_me:34958: \$? = $ac_status" >&5
34959    if (exit $ac_status) && test -s "$ac_outfile"; then
34960      # The compiler can only warn and ignore the option if not recognized
34961      # So say no if there are warnings other than the usual output.
34962      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
34963      $SED '/^$/d' conftest.err >conftest.er2
34964      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
34965        lt_cv_prog_compiler_rtti_exceptions=yes
34966      fi
34967    fi
34968    $rm conftest*
34969
34970 fi
34971 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
34972 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
34973
34974 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
34975     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
34976 else
34977     :
34978 fi
34979
34980 fi
34981
34982 lt_prog_compiler_wl_GCJ=
34983 lt_prog_compiler_pic_GCJ=
34984 lt_prog_compiler_static_GCJ=
34985
34986 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
34987 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
34988
34989   if test "$GCC" = yes; then
34990     lt_prog_compiler_wl_GCJ='-Wl,'
34991     lt_prog_compiler_static_GCJ='-static'
34992
34993     case $host_os in
34994       aix*)
34995       # All AIX code is PIC.
34996       if test "$host_cpu" = ia64; then
34997         # AIX 5 now supports IA64 processor
34998         lt_prog_compiler_static_GCJ='-Bstatic'
34999       fi
35000       ;;
35001
35002     amigaos*)
35003       # FIXME: we need at least 68020 code to build shared libraries, but
35004       # adding the `-m68020' flag to GCC prevents building anything better,
35005       # like `-m68040'.
35006       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
35007       ;;
35008
35009     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35010       # PIC is the default for these OSes.
35011       ;;
35012
35013     mingw* | pw32* | os2*)
35014       # This hack is so that the source file can tell whether it is being
35015       # built for inclusion in a dll (and should export symbols for example).
35016       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
35017       ;;
35018
35019     darwin* | rhapsody*)
35020       # PIC is the default on this platform
35021       # Common symbols not allowed in MH_DYLIB files
35022       lt_prog_compiler_pic_GCJ='-fno-common'
35023       ;;
35024
35025     msdosdjgpp*)
35026       # Just because we use GCC doesn't mean we suddenly get shared libraries
35027       # on systems that don't support them.
35028       lt_prog_compiler_can_build_shared_GCJ=no
35029       enable_shared=no
35030       ;;
35031
35032     sysv4*MP*)
35033       if test -d /usr/nec; then
35034         lt_prog_compiler_pic_GCJ=-Kconform_pic
35035       fi
35036       ;;
35037
35038     hpux*)
35039       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35040       # not for PA HP-UX.
35041       case $host_cpu in
35042       hppa*64*|ia64*)
35043         # +Z the default
35044         ;;
35045       *)
35046         lt_prog_compiler_pic_GCJ='-fPIC'
35047         ;;
35048       esac
35049       ;;
35050
35051     *)
35052       lt_prog_compiler_pic_GCJ='-fPIC'
35053       ;;
35054     esac
35055   else
35056     # PORTME Check for flag to pass linker flags through the system compiler.
35057     case $host_os in
35058     aix*)
35059       lt_prog_compiler_wl_GCJ='-Wl,'
35060       if test "$host_cpu" = ia64; then
35061         # AIX 5 now supports IA64 processor
35062         lt_prog_compiler_static_GCJ='-Bstatic'
35063       else
35064         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
35065       fi
35066       ;;
35067       darwin*)
35068         # PIC is the default on this platform
35069         # Common symbols not allowed in MH_DYLIB files
35070        case $cc_basename in
35071          xlc*)
35072          lt_prog_compiler_pic_GCJ='-qnocommon'
35073          lt_prog_compiler_wl_GCJ='-Wl,'
35074          ;;
35075        esac
35076        ;;
35077
35078     mingw* | pw32* | os2*)
35079       # This hack is so that the source file can tell whether it is being
35080       # built for inclusion in a dll (and should export symbols for example).
35081       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
35082       ;;
35083
35084     hpux9* | hpux10* | hpux11*)
35085       lt_prog_compiler_wl_GCJ='-Wl,'
35086       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35087       # not for PA HP-UX.
35088       case $host_cpu in
35089       hppa*64*|ia64*)
35090         # +Z the default
35091         ;;
35092       *)
35093         lt_prog_compiler_pic_GCJ='+Z'
35094         ;;
35095       esac
35096       # Is there a better lt_prog_compiler_static that works with the bundled CC?
35097       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
35098       ;;
35099
35100     irix5* | irix6* | nonstopux*)
35101       lt_prog_compiler_wl_GCJ='-Wl,'
35102       # PIC (with -KPIC) is the default.
35103       lt_prog_compiler_static_GCJ='-non_shared'
35104       ;;
35105
35106     newsos6)
35107       lt_prog_compiler_pic_GCJ='-KPIC'
35108       lt_prog_compiler_static_GCJ='-Bstatic'
35109       ;;
35110
35111     linux*)
35112       case $cc_basename in
35113       icc* | ecc*)
35114         lt_prog_compiler_wl_GCJ='-Wl,'
35115         lt_prog_compiler_pic_GCJ='-KPIC'
35116         lt_prog_compiler_static_GCJ='-static'
35117         ;;
35118       pgcc* | pgf77* | pgf90* | pgf95*)
35119         # Portland Group compilers (*not* the Pentium gcc compiler,
35120         # which looks to be a dead project)
35121         lt_prog_compiler_wl_GCJ='-Wl,'
35122         lt_prog_compiler_pic_GCJ='-fpic'
35123         lt_prog_compiler_static_GCJ='-Bstatic'
35124         ;;
35125       ccc*)
35126         lt_prog_compiler_wl_GCJ='-Wl,'
35127         # All Alpha code is PIC.
35128         lt_prog_compiler_static_GCJ='-non_shared'
35129         ;;
35130       esac
35131       ;;
35132
35133     osf3* | osf4* | osf5*)
35134       lt_prog_compiler_wl_GCJ='-Wl,'
35135       # All OSF/1 code is PIC.
35136       lt_prog_compiler_static_GCJ='-non_shared'
35137       ;;
35138
35139     sco3.2v5*)
35140       lt_prog_compiler_pic_GCJ='-Kpic'
35141       lt_prog_compiler_static_GCJ='-dn'
35142       ;;
35143
35144     solaris*)
35145       lt_prog_compiler_pic_GCJ='-KPIC'
35146       lt_prog_compiler_static_GCJ='-Bstatic'
35147       case $cc_basename in
35148       f77* | f90* | f95*)
35149         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
35150       *)
35151         lt_prog_compiler_wl_GCJ='-Wl,';;
35152       esac
35153       ;;
35154
35155     sunos4*)
35156       lt_prog_compiler_wl_GCJ='-Qoption ld '
35157       lt_prog_compiler_pic_GCJ='-PIC'
35158       lt_prog_compiler_static_GCJ='-Bstatic'
35159       ;;
35160
35161     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35162       lt_prog_compiler_wl_GCJ='-Wl,'
35163       lt_prog_compiler_pic_GCJ='-KPIC'
35164       lt_prog_compiler_static_GCJ='-Bstatic'
35165       ;;
35166
35167     sysv4*MP*)
35168       if test -d /usr/nec ;then
35169         lt_prog_compiler_pic_GCJ='-Kconform_pic'
35170         lt_prog_compiler_static_GCJ='-Bstatic'
35171       fi
35172       ;;
35173
35174     unicos*)
35175       lt_prog_compiler_wl_GCJ='-Wl,'
35176       lt_prog_compiler_can_build_shared_GCJ=no
35177       ;;
35178
35179     uts4*)
35180       lt_prog_compiler_pic_GCJ='-pic'
35181       lt_prog_compiler_static_GCJ='-Bstatic'
35182       ;;
35183
35184     *)
35185       lt_prog_compiler_can_build_shared_GCJ=no
35186       ;;
35187     esac
35188   fi
35189
35190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
35191 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
35192
35193 #
35194 # Check to make sure the PIC flag actually works.
35195 #
35196 if test -n "$lt_prog_compiler_pic_GCJ"; then
35197
35198 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
35199 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
35200 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
35201   echo $ECHO_N "(cached) $ECHO_C" >&6
35202 else
35203   lt_prog_compiler_pic_works_GCJ=no
35204   ac_outfile=conftest.$ac_objext
35205    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35206    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
35207    # Insert the option either (1) after the last *FLAGS variable, or
35208    # (2) before a word containing "conftest.", or (3) at the end.
35209    # Note that $ac_compile itself does not contain backslashes and begins
35210    # with a dollar sign (not a hyphen), so the echo should work correctly.
35211    # The option is referenced via a variable to avoid confusing sed.
35212    lt_compile=`echo "$ac_compile" | $SED \
35213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35215    -e 's:$: $lt_compiler_flag:'`
35216    (eval echo "\"\$as_me:35216: $lt_compile\"" >&5)
35217    (eval "$lt_compile" 2>conftest.err)
35218    ac_status=$?
35219    cat conftest.err >&5
35220    echo "$as_me:35220: \$? = $ac_status" >&5
35221    if (exit $ac_status) && test -s "$ac_outfile"; then
35222      # The compiler can only warn and ignore the option if not recognized
35223      # So say no if there are warnings other than the usual output.
35224      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35225      $SED '/^$/d' conftest.err >conftest.er2
35226      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35227        lt_prog_compiler_pic_works_GCJ=yes
35228      fi
35229    fi
35230    $rm conftest*
35231
35232 fi
35233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
35234 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
35235
35236 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
35237     case $lt_prog_compiler_pic_GCJ in
35238      "" | " "*) ;;
35239      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
35240      esac
35241 else
35242     lt_prog_compiler_pic_GCJ=
35243      lt_prog_compiler_can_build_shared_GCJ=no
35244 fi
35245
35246 fi
35247 case $host_os in
35248   # For platforms which do not support PIC, -DPIC is meaningless:
35249   *djgpp*)
35250     lt_prog_compiler_pic_GCJ=
35251     ;;
35252   *)
35253     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
35254     ;;
35255 esac
35256
35257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
35258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
35259 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
35260   echo $ECHO_N "(cached) $ECHO_C" >&6
35261 else
35262   lt_cv_prog_compiler_c_o_GCJ=no
35263    $rm -r conftest 2>/dev/null
35264    mkdir conftest
35265    cd conftest
35266    mkdir out
35267    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35268
35269    lt_compiler_flag="-o out/conftest2.$ac_objext"
35270    # Insert the option either (1) after the last *FLAGS variable, or
35271    # (2) before a word containing "conftest.", or (3) at the end.
35272    # Note that $ac_compile itself does not contain backslashes and begins
35273    # with a dollar sign (not a hyphen), so the echo should work correctly.
35274    lt_compile=`echo "$ac_compile" | $SED \
35275    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35276    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35277    -e 's:$: $lt_compiler_flag:'`
35278    (eval echo "\"\$as_me:35278: $lt_compile\"" >&5)
35279    (eval "$lt_compile" 2>out/conftest.err)
35280    ac_status=$?
35281    cat out/conftest.err >&5
35282    echo "$as_me:35282: \$? = $ac_status" >&5
35283    if (exit $ac_status) && test -s out/conftest2.$ac_objext
35284    then
35285      # The compiler can only warn and ignore the option if not recognized
35286      # So say no if there are warnings
35287      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
35288      $SED '/^$/d' out/conftest.err >out/conftest.er2
35289      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
35290        lt_cv_prog_compiler_c_o_GCJ=yes
35291      fi
35292    fi
35293    chmod u+w . 2>&5
35294    $rm conftest*
35295    # SGI C++ compiler will create directory out/ii_files/ for
35296    # template instantiation
35297    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
35298    $rm out/* && rmdir out
35299    cd ..
35300    rmdir conftest
35301    $rm conftest*
35302
35303 fi
35304 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
35305 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
35306
35307
35308 hard_links="nottested"
35309 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
35310   # do not overwrite the value of need_locks provided by the user
35311   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
35312 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
35313   hard_links=yes
35314   $rm conftest*
35315   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35316   touch conftest.a
35317   ln conftest.a conftest.b 2>&5 || hard_links=no
35318   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35319   echo "$as_me:$LINENO: result: $hard_links" >&5
35320 echo "${ECHO_T}$hard_links" >&6
35321   if test "$hard_links" = no; then
35322     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
35323 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
35324     need_locks=warn
35325   fi
35326 else
35327   need_locks=no
35328 fi
35329
35330 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
35331 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
35332
35333   runpath_var=
35334   allow_undefined_flag_GCJ=
35335   enable_shared_with_static_runtimes_GCJ=no
35336   archive_cmds_GCJ=
35337   archive_expsym_cmds_GCJ=
35338   old_archive_From_new_cmds_GCJ=
35339   old_archive_from_expsyms_cmds_GCJ=
35340   export_dynamic_flag_spec_GCJ=
35341   whole_archive_flag_spec_GCJ=
35342   thread_safe_flag_spec_GCJ=
35343   hardcode_libdir_flag_spec_GCJ=
35344   hardcode_libdir_flag_spec_ld_GCJ=
35345   hardcode_libdir_separator_GCJ=
35346   hardcode_direct_GCJ=no
35347   hardcode_minus_L_GCJ=no
35348   hardcode_shlibpath_var_GCJ=unsupported
35349   link_all_deplibs_GCJ=unknown
35350   hardcode_automatic_GCJ=no
35351   module_cmds_GCJ=
35352   module_expsym_cmds_GCJ=
35353   always_export_symbols_GCJ=no
35354   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35355   # include_expsyms should be a list of space-separated symbols to be *always*
35356   # included in the symbol list
35357   include_expsyms_GCJ=
35358   # exclude_expsyms can be an extended regexp of symbols to exclude
35359   # it will be wrapped by ` (' and `)$', so one must not match beginning or
35360   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
35361   # as well as any symbol that contains `d'.
35362   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
35363   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
35364   # platforms (ab)use it in PIC code, but their linkers get confused if
35365   # the symbol is explicitly referenced.  Since portable code cannot
35366   # rely on this symbol name, it's probably fine to never include it in
35367   # preloaded symbol tables.
35368   extract_expsyms_cmds=
35369   # Just being paranoid about ensuring that cc_basename is set.
35370   for cc_temp in $compiler""; do
35371   case $cc_temp in
35372     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35373     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35374     \-*) ;;
35375     *) break;;
35376   esac
35377 done
35378 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
35379
35380   case $host_os in
35381   cygwin* | mingw* | pw32*)
35382     # FIXME: the MSVC++ port hasn't been tested in a loooong time
35383     # When not using gcc, we currently assume that we are using
35384     # Microsoft Visual C++.
35385     if test "$GCC" != yes; then
35386       with_gnu_ld=no
35387     fi
35388     ;;
35389   openbsd*)
35390     with_gnu_ld=no
35391     ;;
35392   esac
35393
35394   ld_shlibs_GCJ=yes
35395   if test "$with_gnu_ld" = yes; then
35396     # If archive_cmds runs LD, not CC, wlarc should be empty
35397     wlarc='${wl}'
35398
35399     # Set some defaults for GNU ld with shared library support. These
35400     # are reset later if shared libraries are not supported. Putting them
35401     # here allows them to be overridden if necessary.
35402     runpath_var=LD_RUN_PATH
35403     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
35404     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
35405     # ancient GNU ld didn't support --whole-archive et. al.
35406     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
35407         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
35408       else
35409         whole_archive_flag_spec_GCJ=
35410     fi
35411     supports_anon_versioning=no
35412     case `$LD -v 2>/dev/null` in
35413       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
35414       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
35415       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
35416       *\ 2.11.*) ;; # other 2.11 versions
35417       *) supports_anon_versioning=yes ;;
35418     esac
35419
35420     # See if GNU ld supports shared libraries.
35421     case $host_os in
35422     aix3* | aix4* | aix5*)
35423       # On AIX/PPC, the GNU linker is very broken
35424       if test "$host_cpu" != ia64; then
35425         ld_shlibs_GCJ=no
35426         cat <<EOF 1>&2
35427
35428 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
35429 *** to be unable to reliably create shared libraries on AIX.
35430 *** Therefore, libtool is disabling shared libraries support.  If you
35431 *** really care for shared libraries, you may want to modify your PATH
35432 *** so that a non-GNU linker is found, and then restart.
35433
35434 EOF
35435       fi
35436       ;;
35437
35438     amigaos*)
35439       archive_cmds_GCJ='$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)'
35440       hardcode_libdir_flag_spec_GCJ='-L$libdir'
35441       hardcode_minus_L_GCJ=yes
35442
35443       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
35444       # that the semantics of dynamic libraries on AmigaOS, at least up
35445       # to version 4, is to share data among multiple programs linked
35446       # with the same dynamic library.  Since this doesn't match the
35447       # behavior of shared libraries on other platforms, we can't use
35448       # them.
35449       ld_shlibs_GCJ=no
35450       ;;
35451
35452     beos*)
35453       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35454         allow_undefined_flag_GCJ=unsupported
35455         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
35456         # support --undefined.  This deserves some investigation.  FIXME
35457         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35458       else
35459         ld_shlibs_GCJ=no
35460       fi
35461       ;;
35462
35463     cygwin* | mingw* | pw32*)
35464       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
35465       # as there is no search path for DLLs.
35466       hardcode_libdir_flag_spec_GCJ='-L$libdir'
35467       allow_undefined_flag_GCJ=unsupported
35468       always_export_symbols_GCJ=no
35469       enable_shared_with_static_runtimes_GCJ=yes
35470       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
35471
35472       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
35473         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
35474         # If the export-symbols file already is a .def file (1st line
35475         # is EXPORTS), use it as is; otherwise, prepend...
35476         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
35477           cp $export_symbols $output_objdir/$soname.def;
35478         else
35479           echo EXPORTS > $output_objdir/$soname.def;
35480           cat $export_symbols >> $output_objdir/$soname.def;
35481         fi~
35482         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
35483       else
35484         ld_shlibs_GCJ=no
35485       fi
35486       ;;
35487
35488     linux*)
35489       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35490         tmp_addflag=
35491         case $cc_basename,$host_cpu in
35492         pgcc*)                          # Portland Group C compiler
35493           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
35494           tmp_addflag=' $pic_flag'
35495           ;;
35496         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
35497           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
35498           tmp_addflag=' $pic_flag -Mnomain' ;;
35499         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
35500           tmp_addflag=' -i_dynamic' ;;
35501         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
35502           tmp_addflag=' -i_dynamic -nofor_main' ;;
35503         ifc* | ifort*)                  # Intel Fortran compiler
35504           tmp_addflag=' -nofor_main' ;;
35505         esac
35506         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35507
35508         if test $supports_anon_versioning = yes; then
35509           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
35510   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
35511   $echo "local: *; };" >> $output_objdir/$libname.ver~
35512           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
35513         fi
35514       else
35515         ld_shlibs_GCJ=no
35516       fi
35517       ;;
35518
35519     netbsd*)
35520       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
35521         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
35522         wlarc=
35523       else
35524         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35525         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35526       fi
35527       ;;
35528
35529     solaris* | sysv5*)
35530       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
35531         ld_shlibs_GCJ=no
35532         cat <<EOF 1>&2
35533
35534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
35535 *** create shared libraries on Solaris systems.  Therefore, libtool
35536 *** is disabling shared libraries support.  We urge you to upgrade GNU
35537 *** binutils to release 2.9.1 or newer.  Another option is to modify
35538 *** your PATH or compiler configuration so that the native linker is
35539 *** used, and then restart.
35540
35541 EOF
35542       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35543         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35544         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35545       else
35546         ld_shlibs_GCJ=no
35547       fi
35548       ;;
35549
35550     sunos4*)
35551       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35552       wlarc=
35553       hardcode_direct_GCJ=yes
35554       hardcode_shlibpath_var_GCJ=no
35555       ;;
35556
35557     *)
35558       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35559         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35560         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35561       else
35562         ld_shlibs_GCJ=no
35563       fi
35564       ;;
35565     esac
35566
35567     if test "$ld_shlibs_GCJ" = no; then
35568       runpath_var=
35569       hardcode_libdir_flag_spec_GCJ=
35570       export_dynamic_flag_spec_GCJ=
35571       whole_archive_flag_spec_GCJ=
35572     fi
35573   else
35574     # PORTME fill in a description of your system's linker (not GNU ld)
35575     case $host_os in
35576     aix3*)
35577       allow_undefined_flag_GCJ=unsupported
35578       always_export_symbols_GCJ=yes
35579       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
35580       # Note: this linker hardcodes the directories in LIBPATH if there
35581       # are no directories specified by -L.
35582       hardcode_minus_L_GCJ=yes
35583       if test "$GCC" = yes && test -z "$link_static_flag"; then
35584         # Neither direct hardcoding nor static linking is supported with a
35585         # broken collect2.
35586         hardcode_direct_GCJ=unsupported
35587       fi
35588       ;;
35589
35590     aix4* | aix5*)
35591       if test "$host_cpu" = ia64; then
35592         # On IA64, the linker does run time linking by default, so we don't
35593         # have to do anything special.
35594         aix_use_runtimelinking=no
35595         exp_sym_flag='-Bexport'
35596         no_entry_flag=""
35597       else
35598         # If we're using GNU nm, then we don't want the "-C" option.
35599         # -C means demangle to AIX nm, but means don't demangle with GNU nm
35600         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
35601           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
35602         else
35603           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
35604         fi
35605         aix_use_runtimelinking=no
35606
35607         # Test if we are trying to use run time linking or normal
35608         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
35609         # need to do runtime linking.
35610         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
35611           for ld_flag in $LDFLAGS; do
35612           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
35613             aix_use_runtimelinking=yes
35614             break
35615           fi
35616           done
35617         esac
35618
35619         exp_sym_flag='-bexport'
35620         no_entry_flag='-bnoentry'
35621       fi
35622
35623       # When large executables or shared objects are built, AIX ld can
35624       # have problems creating the table of contents.  If linking a library
35625       # or program results in "error TOC overflow" add -mminimal-toc to
35626       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
35627       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
35628
35629       archive_cmds_GCJ=''
35630       hardcode_direct_GCJ=yes
35631       hardcode_libdir_separator_GCJ=':'
35632       link_all_deplibs_GCJ=yes
35633
35634       if test "$GCC" = yes; then
35635         case $host_os in aix4.[012]|aix4.[012].*)
35636         # We only want to do this on AIX 4.2 and lower, the check
35637         # below for broken collect2 doesn't work under 4.3+
35638           collect2name=`${CC} -print-prog-name=collect2`
35639           if test -f "$collect2name" && \
35640            strings "$collect2name" | grep resolve_lib_name >/dev/null
35641           then
35642           # We have reworked collect2
35643           hardcode_direct_GCJ=yes
35644           else
35645           # We have old collect2
35646           hardcode_direct_GCJ=unsupported
35647           # It fails to find uninstalled libraries when the uninstalled
35648           # path is not listed in the libpath.  Setting hardcode_minus_L
35649           # to unsupported forces relinking
35650           hardcode_minus_L_GCJ=yes
35651           hardcode_libdir_flag_spec_GCJ='-L$libdir'
35652           hardcode_libdir_separator_GCJ=
35653           fi
35654         esac
35655         shared_flag='-shared'
35656         if test "$aix_use_runtimelinking" = yes; then
35657           shared_flag="$shared_flag "'${wl}-G'
35658         fi
35659       else
35660         # not using gcc
35661         if test "$host_cpu" = ia64; then
35662         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
35663         # chokes on -Wl,-G. The following line is correct:
35664           shared_flag='-G'
35665         else
35666         if test "$aix_use_runtimelinking" = yes; then
35667             shared_flag='${wl}-G'
35668           else
35669             shared_flag='${wl}-bM:SRE'
35670         fi
35671         fi
35672       fi
35673
35674       # It seems that -bexpall does not export symbols beginning with
35675       # underscore (_), so it is better to generate a list of symbols to export.
35676       always_export_symbols_GCJ=yes
35677       if test "$aix_use_runtimelinking" = yes; then
35678         # Warning - without using the other runtime loading flags (-brtl),
35679         # -berok will link without error, but may produce a broken library.
35680         allow_undefined_flag_GCJ='-berok'
35681        # Determine the default libpath from the value encoded in an empty executable.
35682        cat >conftest.$ac_ext <<_ACEOF
35683 /* confdefs.h.  */
35684 _ACEOF
35685 cat confdefs.h >>conftest.$ac_ext
35686 cat >>conftest.$ac_ext <<_ACEOF
35687 /* end confdefs.h.  */
35688
35689 int
35690 main ()
35691 {
35692
35693   ;
35694   return 0;
35695 }
35696 _ACEOF
35697 rm -f conftest.$ac_objext conftest$ac_exeext
35698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35699   (eval $ac_link) 2>conftest.er1
35700   ac_status=$?
35701   grep -v '^ *+' conftest.er1 >conftest.err
35702   rm -f conftest.er1
35703   cat conftest.err >&5
35704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705   (exit $ac_status); } &&
35706          { ac_try='test -z "$ac_c_werror_flag"
35707                          || test ! -s conftest.err'
35708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709   (eval $ac_try) 2>&5
35710   ac_status=$?
35711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712   (exit $ac_status); }; } &&
35713          { ac_try='test -s conftest$ac_exeext'
35714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35715   (eval $ac_try) 2>&5
35716   ac_status=$?
35717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718   (exit $ac_status); }; }; then
35719
35720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35721 }'`
35722 # Check for a 64-bit object if we didn't find anything.
35723 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35724 }'`; fi
35725 else
35726   echo "$as_me: failed program was:" >&5
35727 sed 's/^/| /' conftest.$ac_ext >&5
35728
35729 fi
35730 rm -f conftest.err conftest.$ac_objext \
35731       conftest$ac_exeext conftest.$ac_ext
35732 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
35733
35734        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
35735         archive_expsym_cmds_GCJ="\$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"
35736        else
35737         if test "$host_cpu" = ia64; then
35738           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
35739           allow_undefined_flag_GCJ="-z nodefs"
35740           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
35741         else
35742          # Determine the default libpath from the value encoded in an empty executable.
35743          cat >conftest.$ac_ext <<_ACEOF
35744 /* confdefs.h.  */
35745 _ACEOF
35746 cat confdefs.h >>conftest.$ac_ext
35747 cat >>conftest.$ac_ext <<_ACEOF
35748 /* end confdefs.h.  */
35749
35750 int
35751 main ()
35752 {
35753
35754   ;
35755   return 0;
35756 }
35757 _ACEOF
35758 rm -f conftest.$ac_objext conftest$ac_exeext
35759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35760   (eval $ac_link) 2>conftest.er1
35761   ac_status=$?
35762   grep -v '^ *+' conftest.er1 >conftest.err
35763   rm -f conftest.er1
35764   cat conftest.err >&5
35765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35766   (exit $ac_status); } &&
35767          { ac_try='test -z "$ac_c_werror_flag"
35768                          || test ! -s conftest.err'
35769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35770   (eval $ac_try) 2>&5
35771   ac_status=$?
35772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773   (exit $ac_status); }; } &&
35774          { ac_try='test -s conftest$ac_exeext'
35775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35776   (eval $ac_try) 2>&5
35777   ac_status=$?
35778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35779   (exit $ac_status); }; }; then
35780
35781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35782 }'`
35783 # Check for a 64-bit object if we didn't find anything.
35784 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35785 }'`; fi
35786 else
35787   echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35789
35790 fi
35791 rm -f conftest.err conftest.$ac_objext \
35792       conftest$ac_exeext conftest.$ac_ext
35793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
35794
35795          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
35796           # Warning - without using the other run time loading flags,
35797           # -berok will link without error, but may produce a broken library.
35798           no_undefined_flag_GCJ=' ${wl}-bernotok'
35799           allow_undefined_flag_GCJ=' ${wl}-berok'
35800           # -bexpall does not export symbols beginning with underscore (_)
35801           always_export_symbols_GCJ=yes
35802           # Exported symbols can be pulled into shared objects from archives
35803           whole_archive_flag_spec_GCJ=' '
35804           archive_cmds_need_lc_GCJ=yes
35805           # This is similar to how AIX traditionally builds its shared libraries.
35806           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
35807         fi
35808       fi
35809       ;;
35810
35811     amigaos*)
35812       archive_cmds_GCJ='$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)'
35813       hardcode_libdir_flag_spec_GCJ='-L$libdir'
35814       hardcode_minus_L_GCJ=yes
35815       # see comment about different semantics on the GNU ld section
35816       ld_shlibs_GCJ=no
35817       ;;
35818
35819     bsdi[45]*)
35820       export_dynamic_flag_spec_GCJ=-rdynamic
35821       ;;
35822
35823     cygwin* | mingw* | pw32*)
35824       # When not using gcc, we currently assume that we are using
35825       # Microsoft Visual C++.
35826       # hardcode_libdir_flag_spec is actually meaningless, as there is
35827       # no search path for DLLs.
35828       hardcode_libdir_flag_spec_GCJ=' '
35829       allow_undefined_flag_GCJ=unsupported
35830       # Tell ltmain to make .lib files, not .a files.
35831       libext=lib
35832       # Tell ltmain to make .dll files, not .so files.
35833       shrext_cmds=".dll"
35834       # FIXME: Setting linknames here is a bad hack.
35835       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
35836       # The linker will automatically build a .lib file if we build a DLL.
35837       old_archive_From_new_cmds_GCJ='true'
35838       # FIXME: Should let the user specify the lib program.
35839       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
35840       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
35841       enable_shared_with_static_runtimes_GCJ=yes
35842       ;;
35843
35844     darwin* | rhapsody*)
35845       case $host_os in
35846         rhapsody* | darwin1.[012])
35847          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
35848          ;;
35849        *) # Darwin 1.3 on
35850          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
35851            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
35852          else
35853            case ${MACOSX_DEPLOYMENT_TARGET} in
35854              10.[012])
35855                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
35856                ;;
35857              10.*)
35858                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
35859                ;;
35860            esac
35861          fi
35862          ;;
35863       esac
35864       archive_cmds_need_lc_GCJ=no
35865       hardcode_direct_GCJ=no
35866       hardcode_automatic_GCJ=yes
35867       hardcode_shlibpath_var_GCJ=unsupported
35868       whole_archive_flag_spec_GCJ=''
35869       link_all_deplibs_GCJ=yes
35870     if test "$GCC" = yes ; then
35871         output_verbose_link_cmd='echo'
35872         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
35873       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
35874       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
35875       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35876       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35877     else
35878       case $cc_basename in
35879         xlc*)
35880          output_verbose_link_cmd='echo'
35881          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
35882          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
35883           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
35884          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35885           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
35886           ;;
35887        *)
35888          ld_shlibs_GCJ=no
35889           ;;
35890       esac
35891     fi
35892       ;;
35893
35894     dgux*)
35895       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
35896       hardcode_libdir_flag_spec_GCJ='-L$libdir'
35897       hardcode_shlibpath_var_GCJ=no
35898       ;;
35899
35900     freebsd1*)
35901       ld_shlibs_GCJ=no
35902       ;;
35903
35904     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
35905     # support.  Future versions do this automatically, but an explicit c++rt0.o
35906     # does not break anything, and helps significantly (at the cost of a little
35907     # extra space).
35908     freebsd2.2*)
35909       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
35910       hardcode_libdir_flag_spec_GCJ='-R$libdir'
35911       hardcode_direct_GCJ=yes
35912       hardcode_shlibpath_var_GCJ=no
35913       ;;
35914
35915     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
35916     freebsd2*)
35917       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35918       hardcode_direct_GCJ=yes
35919       hardcode_minus_L_GCJ=yes
35920       hardcode_shlibpath_var_GCJ=no
35921       ;;
35922
35923     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
35924     freebsd* | kfreebsd*-gnu | dragonfly*)
35925       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
35926       hardcode_libdir_flag_spec_GCJ='-R$libdir'
35927       hardcode_direct_GCJ=yes
35928       hardcode_shlibpath_var_GCJ=no
35929       ;;
35930
35931     hpux9*)
35932       if test "$GCC" = yes; then
35933         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
35934       else
35935         archive_cmds_GCJ='$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'
35936       fi
35937       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
35938       hardcode_libdir_separator_GCJ=:
35939       hardcode_direct_GCJ=yes
35940
35941       # hardcode_minus_L: Not really in the search PATH,
35942       # but as the default location of the library.
35943       hardcode_minus_L_GCJ=yes
35944       export_dynamic_flag_spec_GCJ='${wl}-E'
35945       ;;
35946
35947     hpux10* | hpux11*)
35948       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
35949         case $host_cpu in
35950         hppa*64*|ia64*)
35951           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
35952           ;;
35953         *)
35954           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
35955           ;;
35956         esac
35957       else
35958         case $host_cpu in
35959         hppa*64*|ia64*)
35960           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
35961           ;;
35962         *)
35963           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
35964           ;;
35965         esac
35966       fi
35967       if test "$with_gnu_ld" = no; then
35968         case $host_cpu in
35969         hppa*64*)
35970           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
35971           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
35972           hardcode_libdir_separator_GCJ=:
35973           hardcode_direct_GCJ=no
35974           hardcode_shlibpath_var_GCJ=no
35975           ;;
35976         ia64*)
35977           hardcode_libdir_flag_spec_GCJ='-L$libdir'
35978           hardcode_direct_GCJ=no
35979           hardcode_shlibpath_var_GCJ=no
35980
35981           # hardcode_minus_L: Not really in the search PATH,
35982           # but as the default location of the library.
35983           hardcode_minus_L_GCJ=yes
35984           ;;
35985         *)
35986           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
35987           hardcode_libdir_separator_GCJ=:
35988           hardcode_direct_GCJ=yes
35989           export_dynamic_flag_spec_GCJ='${wl}-E'
35990
35991           # hardcode_minus_L: Not really in the search PATH,
35992           # but as the default location of the library.
35993           hardcode_minus_L_GCJ=yes
35994           ;;
35995         esac
35996       fi
35997       ;;
35998
35999     irix5* | irix6* | nonstopux*)
36000       if test "$GCC" = yes; then
36001         archive_cmds_GCJ='$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'
36002       else
36003         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
36004         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
36005       fi
36006       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36007       hardcode_libdir_separator_GCJ=:
36008       link_all_deplibs_GCJ=yes
36009       ;;
36010
36011     netbsd*)
36012       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36013         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
36014       else
36015         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
36016       fi
36017       hardcode_libdir_flag_spec_GCJ='-R$libdir'
36018       hardcode_direct_GCJ=yes
36019       hardcode_shlibpath_var_GCJ=no
36020       ;;
36021
36022     newsos6)
36023       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36024       hardcode_direct_GCJ=yes
36025       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36026       hardcode_libdir_separator_GCJ=:
36027       hardcode_shlibpath_var_GCJ=no
36028       ;;
36029
36030     openbsd*)
36031       hardcode_direct_GCJ=yes
36032       hardcode_shlibpath_var_GCJ=no
36033       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36034         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36035         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
36036         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
36037         export_dynamic_flag_spec_GCJ='${wl}-E'
36038       else
36039        case $host_os in
36040          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
36041            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36042            hardcode_libdir_flag_spec_GCJ='-R$libdir'
36043            ;;
36044          *)
36045            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36046            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
36047            ;;
36048        esac
36049       fi
36050       ;;
36051
36052     os2*)
36053       hardcode_libdir_flag_spec_GCJ='-L$libdir'
36054       hardcode_minus_L_GCJ=yes
36055       allow_undefined_flag_GCJ=unsupported
36056       archive_cmds_GCJ='$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'
36057       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
36058       ;;
36059
36060     osf3*)
36061       if test "$GCC" = yes; then
36062         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
36063         archive_cmds_GCJ='$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'
36064       else
36065         allow_undefined_flag_GCJ=' -expect_unresolved \*'
36066         archive_cmds_GCJ='$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'
36067       fi
36068       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36069       hardcode_libdir_separator_GCJ=:
36070       ;;
36071
36072     osf4* | osf5*)      # as osf3* with the addition of -msym flag
36073       if test "$GCC" = yes; then
36074         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
36075         archive_cmds_GCJ='$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'
36076         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
36077       else
36078         allow_undefined_flag_GCJ=' -expect_unresolved \*'
36079         archive_cmds_GCJ='$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'
36080         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
36081         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
36082
36083         # Both c and cxx compiler support -rpath directly
36084         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
36085       fi
36086       hardcode_libdir_separator_GCJ=:
36087       ;;
36088
36089     sco3.2v5*)
36090       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36091       hardcode_shlibpath_var_GCJ=no
36092       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
36093       runpath_var=LD_RUN_PATH
36094       hardcode_runpath_var=yes
36095       ;;
36096
36097     solaris*)
36098       no_undefined_flag_GCJ=' -z text'
36099       if test "$GCC" = yes; then
36100         wlarc='${wl}'
36101         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36102         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36103           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36104       else
36105         wlarc=''
36106         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36107         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36108         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36109       fi
36110       hardcode_libdir_flag_spec_GCJ='-R$libdir'
36111       hardcode_shlibpath_var_GCJ=no
36112       case $host_os in
36113       solaris2.[0-5] | solaris2.[0-5].*) ;;
36114       *)
36115         # The compiler driver will combine linker options so we
36116         # cannot just pass the convience library names through
36117         # without $wl, iff we do not link with $LD.
36118         # Luckily, gcc supports the same syntax we need for Sun Studio.
36119         # Supported since Solaris 2.6 (maybe 2.5.1?)
36120         case $wlarc in
36121         '')
36122           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
36123         *)
36124           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
36125         esac ;;
36126       esac
36127       link_all_deplibs_GCJ=yes
36128       ;;
36129
36130     sunos4*)
36131       if test "x$host_vendor" = xsequent; then
36132         # Use $CC to link under sequent, because it throws in some extra .o
36133         # files that make .init and .fini sections work.
36134         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
36135       else
36136         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
36137       fi
36138       hardcode_libdir_flag_spec_GCJ='-L$libdir'
36139       hardcode_direct_GCJ=yes
36140       hardcode_minus_L_GCJ=yes
36141       hardcode_shlibpath_var_GCJ=no
36142       ;;
36143
36144     sysv4)
36145       case $host_vendor in
36146         sni)
36147           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36148           hardcode_direct_GCJ=yes # is this really true???
36149         ;;
36150         siemens)
36151           ## LD is ld it makes a PLAMLIB
36152           ## CC just makes a GrossModule.
36153           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36154           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
36155           hardcode_direct_GCJ=no
36156         ;;
36157         motorola)
36158           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36159           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
36160         ;;
36161       esac
36162       runpath_var='LD_RUN_PATH'
36163       hardcode_shlibpath_var_GCJ=no
36164       ;;
36165
36166     sysv4.3*)
36167       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36168       hardcode_shlibpath_var_GCJ=no
36169       export_dynamic_flag_spec_GCJ='-Bexport'
36170       ;;
36171
36172     sysv4*MP*)
36173       if test -d /usr/nec; then
36174         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36175         hardcode_shlibpath_var_GCJ=no
36176         runpath_var=LD_RUN_PATH
36177         hardcode_runpath_var=yes
36178         ld_shlibs_GCJ=yes
36179       fi
36180       ;;
36181
36182     sysv4.2uw2*)
36183       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36184       hardcode_direct_GCJ=yes
36185       hardcode_minus_L_GCJ=no
36186       hardcode_shlibpath_var_GCJ=no
36187       hardcode_runpath_var=yes
36188       runpath_var=LD_RUN_PATH
36189       ;;
36190
36191    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
36192       no_undefined_flag_GCJ='${wl}-z ${wl}text'
36193       if test "$GCC" = yes; then
36194         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36195       else
36196         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36197       fi
36198       runpath_var='LD_RUN_PATH'
36199       hardcode_shlibpath_var_GCJ=no
36200       ;;
36201
36202     sysv5*)
36203       no_undefined_flag_GCJ=' -z text'
36204       # $CC -shared without GNU ld will not create a library from C++
36205       # object files and a static libstdc++, better avoid it by now
36206       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36207       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36208                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36209       hardcode_libdir_flag_spec_GCJ=
36210       hardcode_shlibpath_var_GCJ=no
36211       runpath_var='LD_RUN_PATH'
36212       ;;
36213
36214     uts4*)
36215       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36216       hardcode_libdir_flag_spec_GCJ='-L$libdir'
36217       hardcode_shlibpath_var_GCJ=no
36218       ;;
36219
36220     *)
36221       ld_shlibs_GCJ=no
36222       ;;
36223     esac
36224   fi
36225
36226 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
36227 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
36228 test "$ld_shlibs_GCJ" = no && can_build_shared=no
36229
36230 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
36231 if test "$GCC" = yes; then
36232   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
36233 fi
36234
36235 #
36236 # Do we need to explicitly link libc?
36237 #
36238 case "x$archive_cmds_need_lc_GCJ" in
36239 x|xyes)
36240   # Assume -lc should be added
36241   archive_cmds_need_lc_GCJ=yes
36242
36243   if test "$enable_shared" = yes && test "$GCC" = yes; then
36244     case $archive_cmds_GCJ in
36245     *'~'*)
36246       # FIXME: we may have to deal with multi-command sequences.
36247       ;;
36248     '$CC '*)
36249       # Test whether the compiler implicitly links with -lc since on some
36250       # systems, -lgcc has to come before -lc. If gcc already passes -lc
36251       # to ld, don't add -lc before -lgcc.
36252       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
36253 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
36254       $rm conftest*
36255       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36256
36257       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36258   (eval $ac_compile) 2>&5
36259   ac_status=$?
36260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261   (exit $ac_status); } 2>conftest.err; then
36262         soname=conftest
36263         lib=conftest
36264         libobjs=conftest.$ac_objext
36265         deplibs=
36266         wl=$lt_prog_compiler_wl_GCJ
36267         compiler_flags=-v
36268         linker_flags=-v
36269         verstring=
36270         output_objdir=.
36271         libname=conftest
36272         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
36273         allow_undefined_flag_GCJ=
36274         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
36275   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
36276   ac_status=$?
36277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278   (exit $ac_status); }
36279         then
36280           archive_cmds_need_lc_GCJ=no
36281         else
36282           archive_cmds_need_lc_GCJ=yes
36283         fi
36284         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
36285       else
36286         cat conftest.err 1>&5
36287       fi
36288       $rm conftest*
36289       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
36290 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
36291       ;;
36292     esac
36293   fi
36294   ;;
36295 esac
36296
36297 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
36298 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
36299 library_names_spec=
36300 libname_spec='lib$name'
36301 soname_spec=
36302 shrext_cmds=".so"
36303 postinstall_cmds=
36304 postuninstall_cmds=
36305 finish_cmds=
36306 finish_eval=
36307 shlibpath_var=
36308 shlibpath_overrides_runpath=unknown
36309 version_type=none
36310 dynamic_linker="$host_os ld.so"
36311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
36312 if test "$GCC" = yes; then
36313   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36314   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
36315     # if the path contains ";" then we assume it to be the separator
36316     # otherwise default to the standard path separator (i.e. ":") - it is
36317     # assumed that no part of a normal pathname contains ";" but that should
36318     # okay in the real world where ";" in dirpaths is itself problematic.
36319     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36320   else
36321     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36322   fi
36323 else
36324   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
36325 fi
36326 need_lib_prefix=unknown
36327 hardcode_into_libs=no
36328
36329 # when you set need_version to no, make sure it does not cause -set_version
36330 # flags to be left without arguments
36331 need_version=unknown
36332
36333 case $host_os in
36334 aix3*)
36335   version_type=linux
36336   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
36337   shlibpath_var=LIBPATH
36338
36339   # AIX 3 has no versioning support, so we append a major version to the name.
36340   soname_spec='${libname}${release}${shared_ext}$major'
36341   ;;
36342
36343 aix4* | aix5*)
36344   version_type=linux
36345   need_lib_prefix=no
36346   need_version=no
36347   hardcode_into_libs=yes
36348   if test "$host_cpu" = ia64; then
36349     # AIX 5 supports IA64
36350     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
36351     shlibpath_var=LD_LIBRARY_PATH
36352   else
36353     # With GCC up to 2.95.x, collect2 would create an import file
36354     # for dependence libraries.  The import file would start with
36355     # the line `#! .'.  This would cause the generated library to
36356     # depend on `.', always an invalid library.  This was fixed in
36357     # development snapshots of GCC prior to 3.0.
36358     case $host_os in
36359       aix4 | aix4.[01] | aix4.[01].*)
36360       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36361            echo ' yes '
36362            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36363         :
36364       else
36365         can_build_shared=no
36366       fi
36367       ;;
36368     esac
36369     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
36370     # soname into executable. Probably we can add versioning support to
36371     # collect2, so additional links can be useful in future.
36372     if test "$aix_use_runtimelinking" = yes; then
36373       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
36374       # instead of lib<name>.a to let people know that these are not
36375       # typical AIX shared libraries.
36376       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36377     else
36378       # We preserve .a as extension for shared libraries through AIX4.2
36379       # and later when we are not doing run time linking.
36380       library_names_spec='${libname}${release}.a $libname.a'
36381       soname_spec='${libname}${release}${shared_ext}$major'
36382     fi
36383     shlibpath_var=LIBPATH
36384   fi
36385   ;;
36386
36387 amigaos*)
36388   library_names_spec='$libname.ixlibrary $libname.a'
36389   # Create ${libname}_ixlibrary.a entries in /sys/libs.
36390   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'
36391   ;;
36392
36393 beos*)
36394   library_names_spec='${libname}${shared_ext}'
36395   dynamic_linker="$host_os ld.so"
36396   shlibpath_var=LIBRARY_PATH
36397   ;;
36398
36399 bsdi[45]*)
36400   version_type=linux
36401   need_version=no
36402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36403   soname_spec='${libname}${release}${shared_ext}$major'
36404   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
36405   shlibpath_var=LD_LIBRARY_PATH
36406   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
36407   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
36408   # the default ld.so.conf also contains /usr/contrib/lib and
36409   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
36410   # libtool to hard-code these into programs
36411   ;;
36412
36413 cygwin* | mingw* | pw32*)
36414   version_type=windows
36415   shrext_cmds=".dll"
36416   need_version=no
36417   need_lib_prefix=no
36418
36419   case $GCC,$host_os in
36420   yes,cygwin* | yes,mingw* | yes,pw32*)
36421     library_names_spec='$libname.dll.a'
36422     # DLL is installed to $(libdir)/../bin by postinstall_cmds
36423     postinstall_cmds='base_file=`basename \${file}`~
36424       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
36425       dldir=$destdir/`dirname \$dlpath`~
36426       test -d \$dldir || mkdir -p \$dldir~
36427       $install_prog $dir/$dlname \$dldir/$dlname~
36428       chmod a+x \$dldir/$dlname'
36429     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
36430       dlpath=$dir/\$dldll~
36431        $rm \$dlpath'
36432     shlibpath_overrides_runpath=yes
36433
36434     case $host_os in
36435     cygwin*)
36436       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
36437       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36438       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
36439       ;;
36440     mingw*)
36441       # MinGW DLLs use traditional 'lib' prefix
36442       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36443       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36444       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
36445         # It is most probably a Windows format PATH printed by
36446         # mingw gcc, but we are running on Cygwin. Gcc prints its search
36447         # path with ; separators, and with drive letters. We can handle the
36448         # drive letters (cygwin fileutils understands them), so leave them,
36449         # especially as we might pass files found there to a mingw objdump,
36450         # which wouldn't understand a cygwinified path. Ahh.
36451         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36452       else
36453         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36454       fi
36455       ;;
36456     pw32*)
36457       # pw32 DLLs use 'pw' prefix rather than 'lib'
36458       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36459       ;;
36460     esac
36461     ;;
36462
36463   *)
36464     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36465     ;;
36466   esac
36467   dynamic_linker='Win32 ld.exe'
36468   # FIXME: first we should search . and the directory the executable is in
36469   shlibpath_var=PATH
36470   ;;
36471
36472 darwin* | rhapsody*)
36473   dynamic_linker="$host_os dyld"
36474   version_type=darwin
36475   need_lib_prefix=no
36476   need_version=no
36477   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
36478   soname_spec='${libname}${release}${major}$shared_ext'
36479   shlibpath_overrides_runpath=yes
36480   shlibpath_var=DYLD_LIBRARY_PATH
36481   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
36482   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
36483   if test "$GCC" = yes; then
36484     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
36485   else
36486     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36487   fi
36488   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36489   ;;
36490
36491 dgux*)
36492   version_type=linux
36493   need_lib_prefix=no
36494   need_version=no
36495   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
36496   soname_spec='${libname}${release}${shared_ext}$major'
36497   shlibpath_var=LD_LIBRARY_PATH
36498   ;;
36499
36500 freebsd1*)
36501   dynamic_linker=no
36502   ;;
36503
36504 kfreebsd*-gnu)
36505   version_type=linux
36506   need_lib_prefix=no
36507   need_version=no
36508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36509   soname_spec='${libname}${release}${shared_ext}$major'
36510   shlibpath_var=LD_LIBRARY_PATH
36511   shlibpath_overrides_runpath=no
36512   hardcode_into_libs=yes
36513   dynamic_linker='GNU ld.so'
36514   ;;
36515
36516 freebsd* | dragonfly*)
36517   # DragonFly does not have aout.  When/if they implement a new
36518   # versioning mechanism, adjust this.
36519   if test -x /usr/bin/objformat; then
36520     objformat=`/usr/bin/objformat`
36521   else
36522     case $host_os in
36523     freebsd[123]*) objformat=aout ;;
36524     *) objformat=elf ;;
36525     esac
36526   fi
36527   version_type=freebsd-$objformat
36528   case $version_type in
36529     freebsd-elf*)
36530       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36531       need_version=no
36532       need_lib_prefix=no
36533       ;;
36534     freebsd-*)
36535       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36536       need_version=yes
36537       ;;
36538   esac
36539   shlibpath_var=LD_LIBRARY_PATH
36540   case $host_os in
36541   freebsd2*)
36542     shlibpath_overrides_runpath=yes
36543     ;;
36544   freebsd3.[01]* | freebsdelf3.[01]*)
36545     shlibpath_overrides_runpath=yes
36546     hardcode_into_libs=yes
36547     ;;
36548   *) # from 3.2 on
36549     shlibpath_overrides_runpath=no
36550     hardcode_into_libs=yes
36551     ;;
36552   esac
36553   ;;
36554
36555 gnu*)
36556   version_type=linux
36557   need_lib_prefix=no
36558   need_version=no
36559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
36560   soname_spec='${libname}${release}${shared_ext}$major'
36561   shlibpath_var=LD_LIBRARY_PATH
36562   hardcode_into_libs=yes
36563   ;;
36564
36565 hpux9* | hpux10* | hpux11*)
36566   # Give a soname corresponding to the major version so that dld.sl refuses to
36567   # link against other versions.
36568   version_type=sunos
36569   need_lib_prefix=no
36570   need_version=no
36571   case $host_cpu in
36572   ia64*)
36573     shrext_cmds='.so'
36574     hardcode_into_libs=yes
36575     dynamic_linker="$host_os dld.so"
36576     shlibpath_var=LD_LIBRARY_PATH
36577     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36579     soname_spec='${libname}${release}${shared_ext}$major'
36580     if test "X$HPUX_IA64_MODE" = X32; then
36581       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
36582     else
36583       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36584     fi
36585     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36586     ;;
36587    hppa*64*)
36588      shrext_cmds='.sl'
36589      hardcode_into_libs=yes
36590      dynamic_linker="$host_os dld.sl"
36591      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
36592      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36593      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36594      soname_spec='${libname}${release}${shared_ext}$major'
36595      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
36596      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36597      ;;
36598    *)
36599     shrext_cmds='.sl'
36600     dynamic_linker="$host_os dld.sl"
36601     shlibpath_var=SHLIB_PATH
36602     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
36603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36604     soname_spec='${libname}${release}${shared_ext}$major'
36605     ;;
36606   esac
36607   # HP-UX runs *really* slowly unless shared libraries are mode 555.
36608   postinstall_cmds='chmod 555 $lib'
36609   ;;
36610
36611 irix5* | irix6* | nonstopux*)
36612   case $host_os in
36613     nonstopux*) version_type=nonstopux ;;
36614     *)
36615         if test "$lt_cv_prog_gnu_ld" = yes; then
36616                 version_type=linux
36617         else
36618                 version_type=irix
36619         fi ;;
36620   esac
36621   need_lib_prefix=no
36622   need_version=no
36623   soname_spec='${libname}${release}${shared_ext}$major'
36624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
36625   case $host_os in
36626   irix5* | nonstopux*)
36627     libsuff= shlibsuff=
36628     ;;
36629   *)
36630     case $LD in # libtool.m4 will add one of these switches to LD
36631     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
36632       libsuff= shlibsuff= libmagic=32-bit;;
36633     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
36634       libsuff=32 shlibsuff=N32 libmagic=N32;;
36635     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
36636       libsuff=64 shlibsuff=64 libmagic=64-bit;;
36637     *) libsuff= shlibsuff= libmagic=never-match;;
36638     esac
36639     ;;
36640   esac
36641   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
36642   shlibpath_overrides_runpath=no
36643   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
36644   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
36645   hardcode_into_libs=yes
36646   ;;
36647
36648 # No shared lib support for Linux oldld, aout, or coff.
36649 linux*oldld* | linux*aout* | linux*coff*)
36650   dynamic_linker=no
36651   ;;
36652
36653 # This must be Linux ELF.
36654 linux*)
36655   version_type=linux
36656   need_lib_prefix=no
36657   need_version=no
36658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36659   soname_spec='${libname}${release}${shared_ext}$major'
36660   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
36661   shlibpath_var=LD_LIBRARY_PATH
36662   shlibpath_overrides_runpath=no
36663   # This implies no fast_install, which is unacceptable.
36664   # Some rework will be needed to allow for fast_install
36665   # before this can be enabled.
36666   hardcode_into_libs=yes
36667
36668   # Append ld.so.conf contents to the search path
36669   if test -f /etc/ld.so.conf; then
36670     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
36671     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
36672   fi
36673
36674   # We used to test for /lib/ld.so.1 and disable shared libraries on
36675   # powerpc, because MkLinux only supported shared libraries with the
36676   # GNU dynamic linker.  Since this was broken with cross compilers,
36677   # most powerpc-linux boxes support dynamic linking these days and
36678   # people can always --disable-shared, the test was removed, and we
36679   # assume the GNU/Linux dynamic linker is in use.
36680   dynamic_linker='GNU/Linux ld.so'
36681   ;;
36682
36683 knetbsd*-gnu)
36684   version_type=linux
36685   need_lib_prefix=no
36686   need_version=no
36687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36688   soname_spec='${libname}${release}${shared_ext}$major'
36689   shlibpath_var=LD_LIBRARY_PATH
36690   shlibpath_overrides_runpath=no
36691   hardcode_into_libs=yes
36692   dynamic_linker='GNU ld.so'
36693   ;;
36694
36695 netbsd*)
36696   version_type=sunos
36697   need_lib_prefix=no
36698   need_version=no
36699   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36701     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36702     dynamic_linker='NetBSD (a.out) ld.so'
36703   else
36704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36705     soname_spec='${libname}${release}${shared_ext}$major'
36706     dynamic_linker='NetBSD ld.elf_so'
36707   fi
36708   shlibpath_var=LD_LIBRARY_PATH
36709   shlibpath_overrides_runpath=yes
36710   hardcode_into_libs=yes
36711   ;;
36712
36713 newsos6)
36714   version_type=linux
36715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36716   shlibpath_var=LD_LIBRARY_PATH
36717   shlibpath_overrides_runpath=yes
36718   ;;
36719
36720 nto-qnx*)
36721   version_type=linux
36722   need_lib_prefix=no
36723   need_version=no
36724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36725   soname_spec='${libname}${release}${shared_ext}$major'
36726   shlibpath_var=LD_LIBRARY_PATH
36727   shlibpath_overrides_runpath=yes
36728   ;;
36729
36730 openbsd*)
36731   version_type=sunos
36732   need_lib_prefix=no
36733   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
36734   case $host_os in
36735     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
36736     *)                         need_version=no  ;;
36737   esac
36738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36739   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36740   shlibpath_var=LD_LIBRARY_PATH
36741   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36742     case $host_os in
36743       openbsd2.[89] | openbsd2.[89].*)
36744         shlibpath_overrides_runpath=no
36745         ;;
36746       *)
36747         shlibpath_overrides_runpath=yes
36748         ;;
36749       esac
36750   else
36751     shlibpath_overrides_runpath=yes
36752   fi
36753   ;;
36754
36755 os2*)
36756   libname_spec='$name'
36757   shrext_cmds=".dll"
36758   need_lib_prefix=no
36759   library_names_spec='$libname${shared_ext} $libname.a'
36760   dynamic_linker='OS/2 ld.exe'
36761   shlibpath_var=LIBPATH
36762   ;;
36763
36764 osf3* | osf4* | osf5*)
36765   version_type=osf
36766   need_lib_prefix=no
36767   need_version=no
36768   soname_spec='${libname}${release}${shared_ext}$major'
36769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36770   shlibpath_var=LD_LIBRARY_PATH
36771   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
36772   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
36773   ;;
36774
36775 sco3.2v5*)
36776   version_type=osf
36777   soname_spec='${libname}${release}${shared_ext}$major'
36778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36779   shlibpath_var=LD_LIBRARY_PATH
36780   ;;
36781
36782 solaris*)
36783   version_type=linux
36784   need_lib_prefix=no
36785   need_version=no
36786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36787   soname_spec='${libname}${release}${shared_ext}$major'
36788   shlibpath_var=LD_LIBRARY_PATH
36789   shlibpath_overrides_runpath=yes
36790   hardcode_into_libs=yes
36791   # ldd complains unless libraries are executable
36792   postinstall_cmds='chmod +x $lib'
36793   ;;
36794
36795 sunos4*)
36796   version_type=sunos
36797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36798   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
36799   shlibpath_var=LD_LIBRARY_PATH
36800   shlibpath_overrides_runpath=yes
36801   if test "$with_gnu_ld" = yes; then
36802     need_lib_prefix=no
36803   fi
36804   need_version=yes
36805   ;;
36806
36807 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
36808   version_type=linux
36809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36810   soname_spec='${libname}${release}${shared_ext}$major'
36811   shlibpath_var=LD_LIBRARY_PATH
36812   case $host_vendor in
36813     sni)
36814       shlibpath_overrides_runpath=no
36815       need_lib_prefix=no
36816       export_dynamic_flag_spec='${wl}-Blargedynsym'
36817       runpath_var=LD_RUN_PATH
36818       ;;
36819     siemens)
36820       need_lib_prefix=no
36821       ;;
36822     motorola)
36823       need_lib_prefix=no
36824       need_version=no
36825       shlibpath_overrides_runpath=no
36826       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
36827       ;;
36828   esac
36829   ;;
36830
36831 sysv4*MP*)
36832   if test -d /usr/nec ;then
36833     version_type=linux
36834     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
36835     soname_spec='$libname${shared_ext}.$major'
36836     shlibpath_var=LD_LIBRARY_PATH
36837   fi
36838   ;;
36839
36840 uts4*)
36841   version_type=linux
36842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36843   soname_spec='${libname}${release}${shared_ext}$major'
36844   shlibpath_var=LD_LIBRARY_PATH
36845   ;;
36846
36847 *)
36848   dynamic_linker=no
36849   ;;
36850 esac
36851 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
36852 echo "${ECHO_T}$dynamic_linker" >&6
36853 test "$dynamic_linker" = no && can_build_shared=no
36854
36855 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
36856 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
36857 hardcode_action_GCJ=
36858 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
36859    test -n "$runpath_var_GCJ" || \
36860    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
36861
36862   # We can hardcode non-existant directories.
36863   if test "$hardcode_direct_GCJ" != no &&
36864      # If the only mechanism to avoid hardcoding is shlibpath_var, we
36865      # have to relink, otherwise we might link with an installed library
36866      # when we should be linking with a yet-to-be-installed one
36867      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
36868      test "$hardcode_minus_L_GCJ" != no; then
36869     # Linking always hardcodes the temporary library directory.
36870     hardcode_action_GCJ=relink
36871   else
36872     # We can link without hardcoding, and we can hardcode nonexisting dirs.
36873     hardcode_action_GCJ=immediate
36874   fi
36875 else
36876   # We cannot hardcode anything, or else we can only hardcode existing
36877   # directories.
36878   hardcode_action_GCJ=unsupported
36879 fi
36880 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
36881 echo "${ECHO_T}$hardcode_action_GCJ" >&6
36882
36883 if test "$hardcode_action_GCJ" = relink; then
36884   # Fast installation is not supported
36885   enable_fast_install=no
36886 elif test "$shlibpath_overrides_runpath" = yes ||
36887      test "$enable_shared" = no; then
36888   # Fast installation is not necessary
36889   enable_fast_install=needless
36890 fi
36891
36892 striplib=
36893 old_striplib=
36894 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
36895 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
36896 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
36897   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
36898   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
36899   echo "$as_me:$LINENO: result: yes" >&5
36900 echo "${ECHO_T}yes" >&6
36901 else
36902 # FIXME - insert some real tests, host_os isn't really good enough
36903   case $host_os in
36904    darwin*)
36905        if test -n "$STRIP" ; then
36906          striplib="$STRIP -x"
36907          echo "$as_me:$LINENO: result: yes" >&5
36908 echo "${ECHO_T}yes" >&6
36909        else
36910   echo "$as_me:$LINENO: result: no" >&5
36911 echo "${ECHO_T}no" >&6
36912 fi
36913        ;;
36914    *)
36915   echo "$as_me:$LINENO: result: no" >&5
36916 echo "${ECHO_T}no" >&6
36917     ;;
36918   esac
36919 fi
36920
36921 if test "x$enable_dlopen" != xyes; then
36922   enable_dlopen=unknown
36923   enable_dlopen_self=unknown
36924   enable_dlopen_self_static=unknown
36925 else
36926   lt_cv_dlopen=no
36927   lt_cv_dlopen_libs=
36928
36929   case $host_os in
36930   beos*)
36931     lt_cv_dlopen="load_add_on"
36932     lt_cv_dlopen_libs=
36933     lt_cv_dlopen_self=yes
36934     ;;
36935
36936   mingw* | pw32*)
36937     lt_cv_dlopen="LoadLibrary"
36938     lt_cv_dlopen_libs=
36939    ;;
36940
36941   cygwin*)
36942     lt_cv_dlopen="dlopen"
36943     lt_cv_dlopen_libs=
36944    ;;
36945
36946   darwin*)
36947   # if libdl is installed we need to link against it
36948     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36949 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36951   echo $ECHO_N "(cached) $ECHO_C" >&6
36952 else
36953   ac_check_lib_save_LIBS=$LIBS
36954 LIBS="-ldl  $LIBS"
36955 cat >conftest.$ac_ext <<_ACEOF
36956 /* confdefs.h.  */
36957 _ACEOF
36958 cat confdefs.h >>conftest.$ac_ext
36959 cat >>conftest.$ac_ext <<_ACEOF
36960 /* end confdefs.h.  */
36961
36962 /* Override any gcc2 internal prototype to avoid an error.  */
36963 #ifdef __cplusplus
36964 extern "C"
36965 #endif
36966 /* We use char because int might match the return type of a gcc2
36967    builtin and then its argument prototype would still apply.  */
36968 char dlopen ();
36969 int
36970 main ()
36971 {
36972 dlopen ();
36973   ;
36974   return 0;
36975 }
36976 _ACEOF
36977 rm -f conftest.$ac_objext conftest$ac_exeext
36978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36979   (eval $ac_link) 2>conftest.er1
36980   ac_status=$?
36981   grep -v '^ *+' conftest.er1 >conftest.err
36982   rm -f conftest.er1
36983   cat conftest.err >&5
36984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985   (exit $ac_status); } &&
36986          { ac_try='test -z "$ac_c_werror_flag"
36987                          || test ! -s conftest.err'
36988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36989   (eval $ac_try) 2>&5
36990   ac_status=$?
36991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36992   (exit $ac_status); }; } &&
36993          { ac_try='test -s conftest$ac_exeext'
36994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36995   (eval $ac_try) 2>&5
36996   ac_status=$?
36997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998   (exit $ac_status); }; }; then
36999   ac_cv_lib_dl_dlopen=yes
37000 else
37001   echo "$as_me: failed program was:" >&5
37002 sed 's/^/| /' conftest.$ac_ext >&5
37003
37004 ac_cv_lib_dl_dlopen=no
37005 fi
37006 rm -f conftest.err conftest.$ac_objext \
37007       conftest$ac_exeext conftest.$ac_ext
37008 LIBS=$ac_check_lib_save_LIBS
37009 fi
37010 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37012 if test $ac_cv_lib_dl_dlopen = yes; then
37013   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37014 else
37015
37016     lt_cv_dlopen="dyld"
37017     lt_cv_dlopen_libs=
37018     lt_cv_dlopen_self=yes
37019
37020 fi
37021
37022    ;;
37023
37024   *)
37025     echo "$as_me:$LINENO: checking for shl_load" >&5
37026 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
37027 if test "${ac_cv_func_shl_load+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
37037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37038 #define shl_load innocuous_shl_load
37039
37040 /* System header to define __stub macros and hopefully few prototypes,
37041     which can conflict with char shl_load (); below.
37042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37043     <limits.h> exists even on freestanding compilers.  */
37044
37045 #ifdef __STDC__
37046 # include <limits.h>
37047 #else
37048 # include <assert.h>
37049 #endif
37050
37051 #undef shl_load
37052
37053 /* Override any gcc2 internal prototype to avoid an error.  */
37054 #ifdef __cplusplus
37055 extern "C"
37056 {
37057 #endif
37058 /* We use char because int might match the return type of a gcc2
37059    builtin and then its argument prototype would still apply.  */
37060 char shl_load ();
37061 /* The GNU C library defines this for functions which it implements
37062     to always fail with ENOSYS.  Some functions are actually named
37063     something starting with __ and the normal name is an alias.  */
37064 #if defined (__stub_shl_load) || defined (__stub___shl_load)
37065 choke me
37066 #else
37067 char (*f) () = shl_load;
37068 #endif
37069 #ifdef __cplusplus
37070 }
37071 #endif
37072
37073 int
37074 main ()
37075 {
37076 return f != shl_load;
37077   ;
37078   return 0;
37079 }
37080 _ACEOF
37081 rm -f conftest.$ac_objext conftest$ac_exeext
37082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37083   (eval $ac_link) 2>conftest.er1
37084   ac_status=$?
37085   grep -v '^ *+' conftest.er1 >conftest.err
37086   rm -f conftest.er1
37087   cat conftest.err >&5
37088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37089   (exit $ac_status); } &&
37090          { ac_try='test -z "$ac_c_werror_flag"
37091                          || test ! -s conftest.err'
37092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37093   (eval $ac_try) 2>&5
37094   ac_status=$?
37095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37096   (exit $ac_status); }; } &&
37097          { ac_try='test -s conftest$ac_exeext'
37098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37099   (eval $ac_try) 2>&5
37100   ac_status=$?
37101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37102   (exit $ac_status); }; }; then
37103   ac_cv_func_shl_load=yes
37104 else
37105   echo "$as_me: failed program was:" >&5
37106 sed 's/^/| /' conftest.$ac_ext >&5
37107
37108 ac_cv_func_shl_load=no
37109 fi
37110 rm -f conftest.err conftest.$ac_objext \
37111       conftest$ac_exeext conftest.$ac_ext
37112 fi
37113 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
37114 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
37115 if test $ac_cv_func_shl_load = yes; then
37116   lt_cv_dlopen="shl_load"
37117 else
37118   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
37119 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
37120 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
37121   echo $ECHO_N "(cached) $ECHO_C" >&6
37122 else
37123   ac_check_lib_save_LIBS=$LIBS
37124 LIBS="-ldld  $LIBS"
37125 cat >conftest.$ac_ext <<_ACEOF
37126 /* confdefs.h.  */
37127 _ACEOF
37128 cat confdefs.h >>conftest.$ac_ext
37129 cat >>conftest.$ac_ext <<_ACEOF
37130 /* end confdefs.h.  */
37131
37132 /* Override any gcc2 internal prototype to avoid an error.  */
37133 #ifdef __cplusplus
37134 extern "C"
37135 #endif
37136 /* We use char because int might match the return type of a gcc2
37137    builtin and then its argument prototype would still apply.  */
37138 char shl_load ();
37139 int
37140 main ()
37141 {
37142 shl_load ();
37143   ;
37144   return 0;
37145 }
37146 _ACEOF
37147 rm -f conftest.$ac_objext conftest$ac_exeext
37148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37149   (eval $ac_link) 2>conftest.er1
37150   ac_status=$?
37151   grep -v '^ *+' conftest.er1 >conftest.err
37152   rm -f conftest.er1
37153   cat conftest.err >&5
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); } &&
37156          { ac_try='test -z "$ac_c_werror_flag"
37157                          || test ! -s conftest.err'
37158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37159   (eval $ac_try) 2>&5
37160   ac_status=$?
37161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37162   (exit $ac_status); }; } &&
37163          { ac_try='test -s conftest$ac_exeext'
37164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37165   (eval $ac_try) 2>&5
37166   ac_status=$?
37167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37168   (exit $ac_status); }; }; then
37169   ac_cv_lib_dld_shl_load=yes
37170 else
37171   echo "$as_me: failed program was:" >&5
37172 sed 's/^/| /' conftest.$ac_ext >&5
37173
37174 ac_cv_lib_dld_shl_load=no
37175 fi
37176 rm -f conftest.err conftest.$ac_objext \
37177       conftest$ac_exeext conftest.$ac_ext
37178 LIBS=$ac_check_lib_save_LIBS
37179 fi
37180 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
37181 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
37182 if test $ac_cv_lib_dld_shl_load = yes; then
37183   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
37184 else
37185   echo "$as_me:$LINENO: checking for dlopen" >&5
37186 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
37187 if test "${ac_cv_func_dlopen+set}" = set; then
37188   echo $ECHO_N "(cached) $ECHO_C" >&6
37189 else
37190   cat >conftest.$ac_ext <<_ACEOF
37191 /* confdefs.h.  */
37192 _ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h.  */
37196 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
37197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37198 #define dlopen innocuous_dlopen
37199
37200 /* System header to define __stub macros and hopefully few prototypes,
37201     which can conflict with char dlopen (); below.
37202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37203     <limits.h> exists even on freestanding compilers.  */
37204
37205 #ifdef __STDC__
37206 # include <limits.h>
37207 #else
37208 # include <assert.h>
37209 #endif
37210
37211 #undef dlopen
37212
37213 /* Override any gcc2 internal prototype to avoid an error.  */
37214 #ifdef __cplusplus
37215 extern "C"
37216 {
37217 #endif
37218 /* We use char because int might match the return type of a gcc2
37219    builtin and then its argument prototype would still apply.  */
37220 char dlopen ();
37221 /* The GNU C library defines this for functions which it implements
37222     to always fail with ENOSYS.  Some functions are actually named
37223     something starting with __ and the normal name is an alias.  */
37224 #if defined (__stub_dlopen) || defined (__stub___dlopen)
37225 choke me
37226 #else
37227 char (*f) () = dlopen;
37228 #endif
37229 #ifdef __cplusplus
37230 }
37231 #endif
37232
37233 int
37234 main ()
37235 {
37236 return f != dlopen;
37237   ;
37238   return 0;
37239 }
37240 _ACEOF
37241 rm -f conftest.$ac_objext conftest$ac_exeext
37242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37243   (eval $ac_link) 2>conftest.er1
37244   ac_status=$?
37245   grep -v '^ *+' conftest.er1 >conftest.err
37246   rm -f conftest.er1
37247   cat conftest.err >&5
37248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249   (exit $ac_status); } &&
37250          { ac_try='test -z "$ac_c_werror_flag"
37251                          || test ! -s conftest.err'
37252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37253   (eval $ac_try) 2>&5
37254   ac_status=$?
37255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37256   (exit $ac_status); }; } &&
37257          { ac_try='test -s conftest$ac_exeext'
37258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259   (eval $ac_try) 2>&5
37260   ac_status=$?
37261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262   (exit $ac_status); }; }; then
37263   ac_cv_func_dlopen=yes
37264 else
37265   echo "$as_me: failed program was:" >&5
37266 sed 's/^/| /' conftest.$ac_ext >&5
37267
37268 ac_cv_func_dlopen=no
37269 fi
37270 rm -f conftest.err conftest.$ac_objext \
37271       conftest$ac_exeext conftest.$ac_ext
37272 fi
37273 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
37274 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
37275 if test $ac_cv_func_dlopen = yes; then
37276   lt_cv_dlopen="dlopen"
37277 else
37278   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37279 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
37280 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37281   echo $ECHO_N "(cached) $ECHO_C" >&6
37282 else
37283   ac_check_lib_save_LIBS=$LIBS
37284 LIBS="-ldl  $LIBS"
37285 cat >conftest.$ac_ext <<_ACEOF
37286 /* confdefs.h.  */
37287 _ACEOF
37288 cat confdefs.h >>conftest.$ac_ext
37289 cat >>conftest.$ac_ext <<_ACEOF
37290 /* end confdefs.h.  */
37291
37292 /* Override any gcc2 internal prototype to avoid an error.  */
37293 #ifdef __cplusplus
37294 extern "C"
37295 #endif
37296 /* We use char because int might match the return type of a gcc2
37297    builtin and then its argument prototype would still apply.  */
37298 char dlopen ();
37299 int
37300 main ()
37301 {
37302 dlopen ();
37303   ;
37304   return 0;
37305 }
37306 _ACEOF
37307 rm -f conftest.$ac_objext conftest$ac_exeext
37308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37309   (eval $ac_link) 2>conftest.er1
37310   ac_status=$?
37311   grep -v '^ *+' conftest.er1 >conftest.err
37312   rm -f conftest.er1
37313   cat conftest.err >&5
37314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315   (exit $ac_status); } &&
37316          { ac_try='test -z "$ac_c_werror_flag"
37317                          || test ! -s conftest.err'
37318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319   (eval $ac_try) 2>&5
37320   ac_status=$?
37321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322   (exit $ac_status); }; } &&
37323          { ac_try='test -s conftest$ac_exeext'
37324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37325   (eval $ac_try) 2>&5
37326   ac_status=$?
37327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37328   (exit $ac_status); }; }; then
37329   ac_cv_lib_dl_dlopen=yes
37330 else
37331   echo "$as_me: failed program was:" >&5
37332 sed 's/^/| /' conftest.$ac_ext >&5
37333
37334 ac_cv_lib_dl_dlopen=no
37335 fi
37336 rm -f conftest.err conftest.$ac_objext \
37337       conftest$ac_exeext conftest.$ac_ext
37338 LIBS=$ac_check_lib_save_LIBS
37339 fi
37340 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37341 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
37342 if test $ac_cv_lib_dl_dlopen = yes; then
37343   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37344 else
37345   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
37346 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
37347 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
37348   echo $ECHO_N "(cached) $ECHO_C" >&6
37349 else
37350   ac_check_lib_save_LIBS=$LIBS
37351 LIBS="-lsvld  $LIBS"
37352 cat >conftest.$ac_ext <<_ACEOF
37353 /* confdefs.h.  */
37354 _ACEOF
37355 cat confdefs.h >>conftest.$ac_ext
37356 cat >>conftest.$ac_ext <<_ACEOF
37357 /* end confdefs.h.  */
37358
37359 /* Override any gcc2 internal prototype to avoid an error.  */
37360 #ifdef __cplusplus
37361 extern "C"
37362 #endif
37363 /* We use char because int might match the return type of a gcc2
37364    builtin and then its argument prototype would still apply.  */
37365 char dlopen ();
37366 int
37367 main ()
37368 {
37369 dlopen ();
37370   ;
37371   return 0;
37372 }
37373 _ACEOF
37374 rm -f conftest.$ac_objext conftest$ac_exeext
37375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37376   (eval $ac_link) 2>conftest.er1
37377   ac_status=$?
37378   grep -v '^ *+' conftest.er1 >conftest.err
37379   rm -f conftest.er1
37380   cat conftest.err >&5
37381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382   (exit $ac_status); } &&
37383          { ac_try='test -z "$ac_c_werror_flag"
37384                          || test ! -s conftest.err'
37385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37386   (eval $ac_try) 2>&5
37387   ac_status=$?
37388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389   (exit $ac_status); }; } &&
37390          { ac_try='test -s conftest$ac_exeext'
37391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37392   (eval $ac_try) 2>&5
37393   ac_status=$?
37394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395   (exit $ac_status); }; }; then
37396   ac_cv_lib_svld_dlopen=yes
37397 else
37398   echo "$as_me: failed program was:" >&5
37399 sed 's/^/| /' conftest.$ac_ext >&5
37400
37401 ac_cv_lib_svld_dlopen=no
37402 fi
37403 rm -f conftest.err conftest.$ac_objext \
37404       conftest$ac_exeext conftest.$ac_ext
37405 LIBS=$ac_check_lib_save_LIBS
37406 fi
37407 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
37408 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
37409 if test $ac_cv_lib_svld_dlopen = yes; then
37410   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
37411 else
37412   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
37413 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
37414 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
37415   echo $ECHO_N "(cached) $ECHO_C" >&6
37416 else
37417   ac_check_lib_save_LIBS=$LIBS
37418 LIBS="-ldld  $LIBS"
37419 cat >conftest.$ac_ext <<_ACEOF
37420 /* confdefs.h.  */
37421 _ACEOF
37422 cat confdefs.h >>conftest.$ac_ext
37423 cat >>conftest.$ac_ext <<_ACEOF
37424 /* end confdefs.h.  */
37425
37426 /* Override any gcc2 internal prototype to avoid an error.  */
37427 #ifdef __cplusplus
37428 extern "C"
37429 #endif
37430 /* We use char because int might match the return type of a gcc2
37431    builtin and then its argument prototype would still apply.  */
37432 char dld_link ();
37433 int
37434 main ()
37435 {
37436 dld_link ();
37437   ;
37438   return 0;
37439 }
37440 _ACEOF
37441 rm -f conftest.$ac_objext conftest$ac_exeext
37442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37443   (eval $ac_link) 2>conftest.er1
37444   ac_status=$?
37445   grep -v '^ *+' conftest.er1 >conftest.err
37446   rm -f conftest.er1
37447   cat conftest.err >&5
37448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449   (exit $ac_status); } &&
37450          { ac_try='test -z "$ac_c_werror_flag"
37451                          || test ! -s conftest.err'
37452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37453   (eval $ac_try) 2>&5
37454   ac_status=$?
37455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456   (exit $ac_status); }; } &&
37457          { ac_try='test -s conftest$ac_exeext'
37458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37459   (eval $ac_try) 2>&5
37460   ac_status=$?
37461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37462   (exit $ac_status); }; }; then
37463   ac_cv_lib_dld_dld_link=yes
37464 else
37465   echo "$as_me: failed program was:" >&5
37466 sed 's/^/| /' conftest.$ac_ext >&5
37467
37468 ac_cv_lib_dld_dld_link=no
37469 fi
37470 rm -f conftest.err conftest.$ac_objext \
37471       conftest$ac_exeext conftest.$ac_ext
37472 LIBS=$ac_check_lib_save_LIBS
37473 fi
37474 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
37475 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
37476 if test $ac_cv_lib_dld_dld_link = yes; then
37477   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
37478 fi
37479
37480
37481 fi
37482
37483
37484 fi
37485
37486
37487 fi
37488
37489
37490 fi
37491
37492
37493 fi
37494
37495     ;;
37496   esac
37497
37498   if test "x$lt_cv_dlopen" != xno; then
37499     enable_dlopen=yes
37500   else
37501     enable_dlopen=no
37502   fi
37503
37504   case $lt_cv_dlopen in
37505   dlopen)
37506     save_CPPFLAGS="$CPPFLAGS"
37507     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
37508
37509     save_LDFLAGS="$LDFLAGS"
37510     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
37511
37512     save_LIBS="$LIBS"
37513     LIBS="$lt_cv_dlopen_libs $LIBS"
37514
37515     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
37516 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
37517 if test "${lt_cv_dlopen_self+set}" = set; then
37518   echo $ECHO_N "(cached) $ECHO_C" >&6
37519 else
37520           if test "$cross_compiling" = yes; then :
37521   lt_cv_dlopen_self=cross
37522 else
37523   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37524   lt_status=$lt_dlunknown
37525   cat > conftest.$ac_ext <<EOF
37526 #line 37526 "configure"
37527 #include "confdefs.h"
37528
37529 #if HAVE_DLFCN_H
37530 #include <dlfcn.h>
37531 #endif
37532
37533 #include <stdio.h>
37534
37535 #ifdef RTLD_GLOBAL
37536 #  define LT_DLGLOBAL           RTLD_GLOBAL
37537 #else
37538 #  ifdef DL_GLOBAL
37539 #    define LT_DLGLOBAL         DL_GLOBAL
37540 #  else
37541 #    define LT_DLGLOBAL         0
37542 #  endif
37543 #endif
37544
37545 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37546    find out it does not work in some platform. */
37547 #ifndef LT_DLLAZY_OR_NOW
37548 #  ifdef RTLD_LAZY
37549 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37550 #  else
37551 #    ifdef DL_LAZY
37552 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37553 #    else
37554 #      ifdef RTLD_NOW
37555 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37556 #      else
37557 #        ifdef DL_NOW
37558 #          define LT_DLLAZY_OR_NOW      DL_NOW
37559 #        else
37560 #          define LT_DLLAZY_OR_NOW      0
37561 #        endif
37562 #      endif
37563 #    endif
37564 #  endif
37565 #endif
37566
37567 #ifdef __cplusplus
37568 extern "C" void exit (int);
37569 #endif
37570
37571 void fnord() { int i=42;}
37572 int main ()
37573 {
37574   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37575   int status = $lt_dlunknown;
37576
37577   if (self)
37578     {
37579       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37580       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37581       /* dlclose (self); */
37582     }
37583
37584     exit (status);
37585 }
37586 EOF
37587   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37588   (eval $ac_link) 2>&5
37589   ac_status=$?
37590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37591   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37592     (./conftest; exit; ) >&5 2>/dev/null
37593     lt_status=$?
37594     case x$lt_status in
37595       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
37596       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
37597       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
37598     esac
37599   else :
37600     # compilation failed
37601     lt_cv_dlopen_self=no
37602   fi
37603 fi
37604 rm -fr conftest*
37605
37606
37607 fi
37608 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
37609 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
37610
37611     if test "x$lt_cv_dlopen_self" = xyes; then
37612       LDFLAGS="$LDFLAGS $link_static_flag"
37613       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
37614 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
37615 if test "${lt_cv_dlopen_self_static+set}" = set; then
37616   echo $ECHO_N "(cached) $ECHO_C" >&6
37617 else
37618           if test "$cross_compiling" = yes; then :
37619   lt_cv_dlopen_self_static=cross
37620 else
37621   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37622   lt_status=$lt_dlunknown
37623   cat > conftest.$ac_ext <<EOF
37624 #line 37624 "configure"
37625 #include "confdefs.h"
37626
37627 #if HAVE_DLFCN_H
37628 #include <dlfcn.h>
37629 #endif
37630
37631 #include <stdio.h>
37632
37633 #ifdef RTLD_GLOBAL
37634 #  define LT_DLGLOBAL           RTLD_GLOBAL
37635 #else
37636 #  ifdef DL_GLOBAL
37637 #    define LT_DLGLOBAL         DL_GLOBAL
37638 #  else
37639 #    define LT_DLGLOBAL         0
37640 #  endif
37641 #endif
37642
37643 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37644    find out it does not work in some platform. */
37645 #ifndef LT_DLLAZY_OR_NOW
37646 #  ifdef RTLD_LAZY
37647 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37648 #  else
37649 #    ifdef DL_LAZY
37650 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37651 #    else
37652 #      ifdef RTLD_NOW
37653 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37654 #      else
37655 #        ifdef DL_NOW
37656 #          define LT_DLLAZY_OR_NOW      DL_NOW
37657 #        else
37658 #          define LT_DLLAZY_OR_NOW      0
37659 #        endif
37660 #      endif
37661 #    endif
37662 #  endif
37663 #endif
37664
37665 #ifdef __cplusplus
37666 extern "C" void exit (int);
37667 #endif
37668
37669 void fnord() { int i=42;}
37670 int main ()
37671 {
37672   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37673   int status = $lt_dlunknown;
37674
37675   if (self)
37676     {
37677       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37678       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37679       /* dlclose (self); */
37680     }
37681
37682     exit (status);
37683 }
37684 EOF
37685   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37686   (eval $ac_link) 2>&5
37687   ac_status=$?
37688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37690     (./conftest; exit; ) >&5 2>/dev/null
37691     lt_status=$?
37692     case x$lt_status in
37693       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
37694       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
37695       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
37696     esac
37697   else :
37698     # compilation failed
37699     lt_cv_dlopen_self_static=no
37700   fi
37701 fi
37702 rm -fr conftest*
37703
37704
37705 fi
37706 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
37707 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
37708     fi
37709
37710     CPPFLAGS="$save_CPPFLAGS"
37711     LDFLAGS="$save_LDFLAGS"
37712     LIBS="$save_LIBS"
37713     ;;
37714   esac
37715
37716   case $lt_cv_dlopen_self in
37717   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
37718   *) enable_dlopen_self=unknown ;;
37719   esac
37720
37721   case $lt_cv_dlopen_self_static in
37722   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
37723   *) enable_dlopen_self_static=unknown ;;
37724   esac
37725 fi
37726
37727
37728 # The else clause should only fire when bootstrapping the
37729 # libtool distribution, otherwise you forgot to ship ltmain.sh
37730 # with your package, and you will get complaints that there are
37731 # no rules to generate ltmain.sh.
37732 if test -f "$ltmain"; then
37733   # See if we are running on zsh, and set the options which allow our commands through
37734   # without removal of \ escapes.
37735   if test -n "${ZSH_VERSION+set}" ; then
37736     setopt NO_GLOB_SUBST
37737   fi
37738   # Now quote all the things that may contain metacharacters while being
37739   # careful not to overquote the AC_SUBSTed values.  We take copies of the
37740   # variables and quote the copies for generation of the libtool script.
37741   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
37742     SED SHELL STRIP \
37743     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
37744     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
37745     deplibs_check_method reload_flag reload_cmds need_locks \
37746     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
37747     lt_cv_sys_global_symbol_to_c_name_address \
37748     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
37749     old_postinstall_cmds old_postuninstall_cmds \
37750     compiler_GCJ \
37751     CC_GCJ \
37752     LD_GCJ \
37753     lt_prog_compiler_wl_GCJ \
37754     lt_prog_compiler_pic_GCJ \
37755     lt_prog_compiler_static_GCJ \
37756     lt_prog_compiler_no_builtin_flag_GCJ \
37757     export_dynamic_flag_spec_GCJ \
37758     thread_safe_flag_spec_GCJ \
37759     whole_archive_flag_spec_GCJ \
37760     enable_shared_with_static_runtimes_GCJ \
37761     old_archive_cmds_GCJ \
37762     old_archive_from_new_cmds_GCJ \
37763     predep_objects_GCJ \
37764     postdep_objects_GCJ \
37765     predeps_GCJ \
37766     postdeps_GCJ \
37767     compiler_lib_search_path_GCJ \
37768     archive_cmds_GCJ \
37769     archive_expsym_cmds_GCJ \
37770     postinstall_cmds_GCJ \
37771     postuninstall_cmds_GCJ \
37772     old_archive_from_expsyms_cmds_GCJ \
37773     allow_undefined_flag_GCJ \
37774     no_undefined_flag_GCJ \
37775     export_symbols_cmds_GCJ \
37776     hardcode_libdir_flag_spec_GCJ \
37777     hardcode_libdir_flag_spec_ld_GCJ \
37778     hardcode_libdir_separator_GCJ \
37779     hardcode_automatic_GCJ \
37780     module_cmds_GCJ \
37781     module_expsym_cmds_GCJ \
37782     lt_cv_prog_compiler_c_o_GCJ \
37783     exclude_expsyms_GCJ \
37784     include_expsyms_GCJ; do
37785
37786     case $var in
37787     old_archive_cmds_GCJ | \
37788     old_archive_from_new_cmds_GCJ | \
37789     archive_cmds_GCJ | \
37790     archive_expsym_cmds_GCJ | \
37791     module_cmds_GCJ | \
37792     module_expsym_cmds_GCJ | \
37793     old_archive_from_expsyms_cmds_GCJ | \
37794     export_symbols_cmds_GCJ | \
37795     extract_expsyms_cmds | reload_cmds | finish_cmds | \
37796     postinstall_cmds | postuninstall_cmds | \
37797     old_postinstall_cmds | old_postuninstall_cmds | \
37798     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
37799       # Double-quote double-evaled strings.
37800       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
37801       ;;
37802     *)
37803       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
37804       ;;
37805     esac
37806   done
37807
37808   case $lt_echo in
37809   *'\$0 --fallback-echo"')
37810     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
37811     ;;
37812   esac
37813
37814 cfgfile="$ofile"
37815
37816   cat <<__EOF__ >> "$cfgfile"
37817 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
37818
37819 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37820
37821 # Shell to use when invoking shell scripts.
37822 SHELL=$lt_SHELL
37823
37824 # Whether or not to build shared libraries.
37825 build_libtool_libs=$enable_shared
37826
37827 # Whether or not to build static libraries.
37828 build_old_libs=$enable_static
37829
37830 # Whether or not to add -lc for building shared libraries.
37831 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
37832
37833 # Whether or not to disallow shared libs when runtime libs are static
37834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
37835
37836 # Whether or not to optimize for fast installation.
37837 fast_install=$enable_fast_install
37838
37839 # The host system.
37840 host_alias=$host_alias
37841 host=$host
37842 host_os=$host_os
37843
37844 # The build system.
37845 build_alias=$build_alias
37846 build=$build
37847 build_os=$build_os
37848
37849 # An echo program that does not interpret backslashes.
37850 echo=$lt_echo
37851
37852 # The archiver.
37853 AR=$lt_AR
37854 AR_FLAGS=$lt_AR_FLAGS
37855
37856 # A C compiler.
37857 LTCC=$lt_LTCC
37858
37859 # A language-specific compiler.
37860 CC=$lt_compiler_GCJ
37861
37862 # Is the compiler the GNU C compiler?
37863 with_gcc=$GCC_GCJ
37864
37865 # An ERE matcher.
37866 EGREP=$lt_EGREP
37867
37868 # The linker used to build libraries.
37869 LD=$lt_LD_GCJ
37870
37871 # Whether we need hard or soft links.
37872 LN_S=$lt_LN_S
37873
37874 # A BSD-compatible nm program.
37875 NM=$lt_NM
37876
37877 # A symbol stripping program
37878 STRIP=$lt_STRIP
37879
37880 # Used to examine libraries when file_magic_cmd begins "file"
37881 MAGIC_CMD=$MAGIC_CMD
37882
37883 # Used on cygwin: DLL creation program.
37884 DLLTOOL="$DLLTOOL"
37885
37886 # Used on cygwin: object dumper.
37887 OBJDUMP="$OBJDUMP"
37888
37889 # Used on cygwin: assembler.
37890 AS="$AS"
37891
37892 # The name of the directory that contains temporary libtool files.
37893 objdir=$objdir
37894
37895 # How to create reloadable object files.
37896 reload_flag=$lt_reload_flag
37897 reload_cmds=$lt_reload_cmds
37898
37899 # How to pass a linker flag through the compiler.
37900 wl=$lt_lt_prog_compiler_wl_GCJ
37901
37902 # Object file suffix (normally "o").
37903 objext="$ac_objext"
37904
37905 # Old archive suffix (normally "a").
37906 libext="$libext"
37907
37908 # Shared library suffix (normally ".so").
37909 shrext_cmds='$shrext_cmds'
37910
37911 # Executable file suffix (normally "").
37912 exeext="$exeext"
37913
37914 # Additional compiler flags for building library objects.
37915 pic_flag=$lt_lt_prog_compiler_pic_GCJ
37916 pic_mode=$pic_mode
37917
37918 # What is the maximum length of a command?
37919 max_cmd_len=$lt_cv_sys_max_cmd_len
37920
37921 # Does compiler simultaneously support -c and -o options?
37922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
37923
37924 # Must we lock files when doing compilation?
37925 need_locks=$lt_need_locks
37926
37927 # Do we need the lib prefix for modules?
37928 need_lib_prefix=$need_lib_prefix
37929
37930 # Do we need a version for libraries?
37931 need_version=$need_version
37932
37933 # Whether dlopen is supported.
37934 dlopen_support=$enable_dlopen
37935
37936 # Whether dlopen of programs is supported.
37937 dlopen_self=$enable_dlopen_self
37938
37939 # Whether dlopen of statically linked programs is supported.
37940 dlopen_self_static=$enable_dlopen_self_static
37941
37942 # Compiler flag to prevent dynamic linking.
37943 link_static_flag=$lt_lt_prog_compiler_static_GCJ
37944
37945 # Compiler flag to turn off builtin functions.
37946 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
37947
37948 # Compiler flag to allow reflexive dlopens.
37949 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
37950
37951 # Compiler flag to generate shared objects directly from archives.
37952 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
37953
37954 # Compiler flag to generate thread-safe objects.
37955 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
37956
37957 # Library versioning type.
37958 version_type=$version_type
37959
37960 # Format of library name prefix.
37961 libname_spec=$lt_libname_spec
37962
37963 # List of archive names.  First name is the real one, the rest are links.
37964 # The last name is the one that the linker finds with -lNAME.
37965 library_names_spec=$lt_library_names_spec
37966
37967 # The coded name of the library, if different from the real name.
37968 soname_spec=$lt_soname_spec
37969
37970 # Commands used to build and install an old-style archive.
37971 RANLIB=$lt_RANLIB
37972 old_archive_cmds=$lt_old_archive_cmds_GCJ
37973 old_postinstall_cmds=$lt_old_postinstall_cmds
37974 old_postuninstall_cmds=$lt_old_postuninstall_cmds
37975
37976 # Create an old-style archive from a shared archive.
37977 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
37978
37979 # Create a temporary old-style archive to link instead of a shared archive.
37980 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
37981
37982 # Commands used to build and install a shared archive.
37983 archive_cmds=$lt_archive_cmds_GCJ
37984 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
37985 postinstall_cmds=$lt_postinstall_cmds
37986 postuninstall_cmds=$lt_postuninstall_cmds
37987
37988 # Commands used to build a loadable module (assumed same as above if empty)
37989 module_cmds=$lt_module_cmds_GCJ
37990 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
37991
37992 # Commands to strip libraries.
37993 old_striplib=$lt_old_striplib
37994 striplib=$lt_striplib
37995
37996 # Dependencies to place before the objects being linked to create a
37997 # shared library.
37998 predep_objects=$lt_predep_objects_GCJ
37999
38000 # Dependencies to place after the objects being linked to create a
38001 # shared library.
38002 postdep_objects=$lt_postdep_objects_GCJ
38003
38004 # Dependencies to place before the objects being linked to create a
38005 # shared library.
38006 predeps=$lt_predeps_GCJ
38007
38008 # Dependencies to place after the objects being linked to create a
38009 # shared library.
38010 postdeps=$lt_postdeps_GCJ
38011
38012 # The library search path used internally by the compiler when linking
38013 # a shared library.
38014 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
38015
38016 # Method to check whether dependent libraries are shared objects.
38017 deplibs_check_method=$lt_deplibs_check_method
38018
38019 # Command to use when deplibs_check_method == file_magic.
38020 file_magic_cmd=$lt_file_magic_cmd
38021
38022 # Flag that allows shared libraries with undefined symbols to be built.
38023 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
38024
38025 # Flag that forces no undefined symbols.
38026 no_undefined_flag=$lt_no_undefined_flag_GCJ
38027
38028 # Commands used to finish a libtool library installation in a directory.
38029 finish_cmds=$lt_finish_cmds
38030
38031 # Same as above, but a single script fragment to be evaled but not shown.
38032 finish_eval=$lt_finish_eval
38033
38034 # Take the output of nm and produce a listing of raw symbols and C names.
38035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38036
38037 # Transform the output of nm in a proper C declaration
38038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38039
38040 # Transform the output of nm in a C name address pair
38041 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38042
38043 # This is the shared library runtime path variable.
38044 runpath_var=$runpath_var
38045
38046 # This is the shared library path variable.
38047 shlibpath_var=$shlibpath_var
38048
38049 # Is shlibpath searched before the hard-coded library search path?
38050 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38051
38052 # How to hardcode a shared library path into an executable.
38053 hardcode_action=$hardcode_action_GCJ
38054
38055 # Whether we should hardcode library paths into libraries.
38056 hardcode_into_libs=$hardcode_into_libs
38057
38058 # Flag to hardcode \$libdir into a binary during linking.
38059 # This must work even if \$libdir does not exist.
38060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
38061
38062 # If ld is used when linking, flag to hardcode \$libdir into
38063 # a binary during linking. This must work even if \$libdir does
38064 # not exist.
38065 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
38066
38067 # Whether we need a single -rpath flag with a separated argument.
38068 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
38069
38070 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38071 # resulting binary.
38072 hardcode_direct=$hardcode_direct_GCJ
38073
38074 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38075 # resulting binary.
38076 hardcode_minus_L=$hardcode_minus_L_GCJ
38077
38078 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38079 # the resulting binary.
38080 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
38081
38082 # Set to yes if building a shared library automatically hardcodes DIR into the library
38083 # and all subsequent libraries and executables linked against it.
38084 hardcode_automatic=$hardcode_automatic_GCJ
38085
38086 # Variables whose values should be saved in libtool wrapper scripts and
38087 # restored at relink time.
38088 variables_saved_for_relink="$variables_saved_for_relink"
38089
38090 # Whether libtool must link a program against all its dependency libraries.
38091 link_all_deplibs=$link_all_deplibs_GCJ
38092
38093 # Compile-time system search path for libraries
38094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38095
38096 # Run-time system search path for libraries
38097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38098
38099 # Fix the shell variable \$srcfile for the compiler.
38100 fix_srcfile_path="$fix_srcfile_path_GCJ"
38101
38102 # Set to yes if exported symbols are required.
38103 always_export_symbols=$always_export_symbols_GCJ
38104
38105 # The commands to list exported symbols.
38106 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
38107
38108 # The commands to extract the exported symbol list from a shared archive.
38109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38110
38111 # Symbols that should not be listed in the preloaded symbols.
38112 exclude_expsyms=$lt_exclude_expsyms_GCJ
38113
38114 # Symbols that must always be exported.
38115 include_expsyms=$lt_include_expsyms_GCJ
38116
38117 # ### END LIBTOOL TAG CONFIG: $tagname
38118
38119 __EOF__
38120
38121
38122 else
38123   # If there is no Makefile yet, we rely on a make rule to execute
38124   # `config.status --recheck' to rerun these tests and create the
38125   # libtool script then.
38126   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38127   if test -f "$ltmain_in"; then
38128     test -f Makefile && make "$ltmain"
38129   fi
38130 fi
38131
38132
38133 ac_ext=c
38134 ac_cpp='$CPP $CPPFLAGS'
38135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38138
38139 CC="$lt_save_CC"
38140
38141         else
38142           tagname=""
38143         fi
38144         ;;
38145
38146       RC)
38147
38148
38149
38150 # Source file extension for RC test sources.
38151 ac_ext=rc
38152
38153 # Object file extension for compiled RC test sources.
38154 objext=o
38155 objext_RC=$objext
38156
38157 # Code to be used in simple compile tests
38158 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
38159
38160 # Code to be used in simple link tests
38161 lt_simple_link_test_code="$lt_simple_compile_test_code"
38162
38163 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38164
38165 # If no C compiler was specified, use CC.
38166 LTCC=${LTCC-"$CC"}
38167
38168 # Allow CC to be a program name with arguments.
38169 compiler=$CC
38170
38171
38172 # save warnings/boilerplate of simple test code
38173 ac_outfile=conftest.$ac_objext
38174 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
38175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38176 _lt_compiler_boilerplate=`cat conftest.err`
38177 $rm conftest*
38178
38179 ac_outfile=conftest.$ac_objext
38180 printf "$lt_simple_link_test_code" >conftest.$ac_ext
38181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38182 _lt_linker_boilerplate=`cat conftest.err`
38183 $rm conftest*
38184
38185
38186 # Allow CC to be a program name with arguments.
38187 lt_save_CC="$CC"
38188 CC=${RC-"windres"}
38189 compiler=$CC
38190 compiler_RC=$CC
38191 for cc_temp in $compiler""; do
38192   case $cc_temp in
38193     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38194     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38195     \-*) ;;
38196     *) break;;
38197   esac
38198 done
38199 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38200
38201 lt_cv_prog_compiler_c_o_RC=yes
38202
38203 # The else clause should only fire when bootstrapping the
38204 # libtool distribution, otherwise you forgot to ship ltmain.sh
38205 # with your package, and you will get complaints that there are
38206 # no rules to generate ltmain.sh.
38207 if test -f "$ltmain"; then
38208   # See if we are running on zsh, and set the options which allow our commands through
38209   # without removal of \ escapes.
38210   if test -n "${ZSH_VERSION+set}" ; then
38211     setopt NO_GLOB_SUBST
38212   fi
38213   # Now quote all the things that may contain metacharacters while being
38214   # careful not to overquote the AC_SUBSTed values.  We take copies of the
38215   # variables and quote the copies for generation of the libtool script.
38216   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
38217     SED SHELL STRIP \
38218     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
38219     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38220     deplibs_check_method reload_flag reload_cmds need_locks \
38221     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38222     lt_cv_sys_global_symbol_to_c_name_address \
38223     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38224     old_postinstall_cmds old_postuninstall_cmds \
38225     compiler_RC \
38226     CC_RC \
38227     LD_RC \
38228     lt_prog_compiler_wl_RC \
38229     lt_prog_compiler_pic_RC \
38230     lt_prog_compiler_static_RC \
38231     lt_prog_compiler_no_builtin_flag_RC \
38232     export_dynamic_flag_spec_RC \
38233     thread_safe_flag_spec_RC \
38234     whole_archive_flag_spec_RC \
38235     enable_shared_with_static_runtimes_RC \
38236     old_archive_cmds_RC \
38237     old_archive_from_new_cmds_RC \
38238     predep_objects_RC \
38239     postdep_objects_RC \
38240     predeps_RC \
38241     postdeps_RC \
38242     compiler_lib_search_path_RC \
38243     archive_cmds_RC \
38244     archive_expsym_cmds_RC \
38245     postinstall_cmds_RC \
38246     postuninstall_cmds_RC \
38247     old_archive_from_expsyms_cmds_RC \
38248     allow_undefined_flag_RC \
38249     no_undefined_flag_RC \
38250     export_symbols_cmds_RC \
38251     hardcode_libdir_flag_spec_RC \
38252     hardcode_libdir_flag_spec_ld_RC \
38253     hardcode_libdir_separator_RC \
38254     hardcode_automatic_RC \
38255     module_cmds_RC \
38256     module_expsym_cmds_RC \
38257     lt_cv_prog_compiler_c_o_RC \
38258     exclude_expsyms_RC \
38259     include_expsyms_RC; do
38260
38261     case $var in
38262     old_archive_cmds_RC | \
38263     old_archive_from_new_cmds_RC | \
38264     archive_cmds_RC | \
38265     archive_expsym_cmds_RC | \
38266     module_cmds_RC | \
38267     module_expsym_cmds_RC | \
38268     old_archive_from_expsyms_cmds_RC | \
38269     export_symbols_cmds_RC | \
38270     extract_expsyms_cmds | reload_cmds | finish_cmds | \
38271     postinstall_cmds | postuninstall_cmds | \
38272     old_postinstall_cmds | old_postuninstall_cmds | \
38273     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38274       # Double-quote double-evaled strings.
38275       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38276       ;;
38277     *)
38278       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38279       ;;
38280     esac
38281   done
38282
38283   case $lt_echo in
38284   *'\$0 --fallback-echo"')
38285     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
38286     ;;
38287   esac
38288
38289 cfgfile="$ofile"
38290
38291   cat <<__EOF__ >> "$cfgfile"
38292 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
38293
38294 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38295
38296 # Shell to use when invoking shell scripts.
38297 SHELL=$lt_SHELL
38298
38299 # Whether or not to build shared libraries.
38300 build_libtool_libs=$enable_shared
38301
38302 # Whether or not to build static libraries.
38303 build_old_libs=$enable_static
38304
38305 # Whether or not to add -lc for building shared libraries.
38306 build_libtool_need_lc=$archive_cmds_need_lc_RC
38307
38308 # Whether or not to disallow shared libs when runtime libs are static
38309 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
38310
38311 # Whether or not to optimize for fast installation.
38312 fast_install=$enable_fast_install
38313
38314 # The host system.
38315 host_alias=$host_alias
38316 host=$host
38317 host_os=$host_os
38318
38319 # The build system.
38320 build_alias=$build_alias
38321 build=$build
38322 build_os=$build_os
38323
38324 # An echo program that does not interpret backslashes.
38325 echo=$lt_echo
38326
38327 # The archiver.
38328 AR=$lt_AR
38329 AR_FLAGS=$lt_AR_FLAGS
38330
38331 # A C compiler.
38332 LTCC=$lt_LTCC
38333
38334 # A language-specific compiler.
38335 CC=$lt_compiler_RC
38336
38337 # Is the compiler the GNU C compiler?
38338 with_gcc=$GCC_RC
38339
38340 # An ERE matcher.
38341 EGREP=$lt_EGREP
38342
38343 # The linker used to build libraries.
38344 LD=$lt_LD_RC
38345
38346 # Whether we need hard or soft links.
38347 LN_S=$lt_LN_S
38348
38349 # A BSD-compatible nm program.
38350 NM=$lt_NM
38351
38352 # A symbol stripping program
38353 STRIP=$lt_STRIP
38354
38355 # Used to examine libraries when file_magic_cmd begins "file"
38356 MAGIC_CMD=$MAGIC_CMD
38357
38358 # Used on cygwin: DLL creation program.
38359 DLLTOOL="$DLLTOOL"
38360
38361 # Used on cygwin: object dumper.
38362 OBJDUMP="$OBJDUMP"
38363
38364 # Used on cygwin: assembler.
38365 AS="$AS"
38366
38367 # The name of the directory that contains temporary libtool files.
38368 objdir=$objdir
38369
38370 # How to create reloadable object files.
38371 reload_flag=$lt_reload_flag
38372 reload_cmds=$lt_reload_cmds
38373
38374 # How to pass a linker flag through the compiler.
38375 wl=$lt_lt_prog_compiler_wl_RC
38376
38377 # Object file suffix (normally "o").
38378 objext="$ac_objext"
38379
38380 # Old archive suffix (normally "a").
38381 libext="$libext"
38382
38383 # Shared library suffix (normally ".so").
38384 shrext_cmds='$shrext_cmds'
38385
38386 # Executable file suffix (normally "").
38387 exeext="$exeext"
38388
38389 # Additional compiler flags for building library objects.
38390 pic_flag=$lt_lt_prog_compiler_pic_RC
38391 pic_mode=$pic_mode
38392
38393 # What is the maximum length of a command?
38394 max_cmd_len=$lt_cv_sys_max_cmd_len
38395
38396 # Does compiler simultaneously support -c and -o options?
38397 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
38398
38399 # Must we lock files when doing compilation?
38400 need_locks=$lt_need_locks
38401
38402 # Do we need the lib prefix for modules?
38403 need_lib_prefix=$need_lib_prefix
38404
38405 # Do we need a version for libraries?
38406 need_version=$need_version
38407
38408 # Whether dlopen is supported.
38409 dlopen_support=$enable_dlopen
38410
38411 # Whether dlopen of programs is supported.
38412 dlopen_self=$enable_dlopen_self
38413
38414 # Whether dlopen of statically linked programs is supported.
38415 dlopen_self_static=$enable_dlopen_self_static
38416
38417 # Compiler flag to prevent dynamic linking.
38418 link_static_flag=$lt_lt_prog_compiler_static_RC
38419
38420 # Compiler flag to turn off builtin functions.
38421 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
38422
38423 # Compiler flag to allow reflexive dlopens.
38424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
38425
38426 # Compiler flag to generate shared objects directly from archives.
38427 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
38428
38429 # Compiler flag to generate thread-safe objects.
38430 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
38431
38432 # Library versioning type.
38433 version_type=$version_type
38434
38435 # Format of library name prefix.
38436 libname_spec=$lt_libname_spec
38437
38438 # List of archive names.  First name is the real one, the rest are links.
38439 # The last name is the one that the linker finds with -lNAME.
38440 library_names_spec=$lt_library_names_spec
38441
38442 # The coded name of the library, if different from the real name.
38443 soname_spec=$lt_soname_spec
38444
38445 # Commands used to build and install an old-style archive.
38446 RANLIB=$lt_RANLIB
38447 old_archive_cmds=$lt_old_archive_cmds_RC
38448 old_postinstall_cmds=$lt_old_postinstall_cmds
38449 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38450
38451 # Create an old-style archive from a shared archive.
38452 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
38453
38454 # Create a temporary old-style archive to link instead of a shared archive.
38455 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
38456
38457 # Commands used to build and install a shared archive.
38458 archive_cmds=$lt_archive_cmds_RC
38459 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
38460 postinstall_cmds=$lt_postinstall_cmds
38461 postuninstall_cmds=$lt_postuninstall_cmds
38462
38463 # Commands used to build a loadable module (assumed same as above if empty)
38464 module_cmds=$lt_module_cmds_RC
38465 module_expsym_cmds=$lt_module_expsym_cmds_RC
38466
38467 # Commands to strip libraries.
38468 old_striplib=$lt_old_striplib
38469 striplib=$lt_striplib
38470
38471 # Dependencies to place before the objects being linked to create a
38472 # shared library.
38473 predep_objects=$lt_predep_objects_RC
38474
38475 # Dependencies to place after the objects being linked to create a
38476 # shared library.
38477 postdep_objects=$lt_postdep_objects_RC
38478
38479 # Dependencies to place before the objects being linked to create a
38480 # shared library.
38481 predeps=$lt_predeps_RC
38482
38483 # Dependencies to place after the objects being linked to create a
38484 # shared library.
38485 postdeps=$lt_postdeps_RC
38486
38487 # The library search path used internally by the compiler when linking
38488 # a shared library.
38489 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
38490
38491 # Method to check whether dependent libraries are shared objects.
38492 deplibs_check_method=$lt_deplibs_check_method
38493
38494 # Command to use when deplibs_check_method == file_magic.
38495 file_magic_cmd=$lt_file_magic_cmd
38496
38497 # Flag that allows shared libraries with undefined symbols to be built.
38498 allow_undefined_flag=$lt_allow_undefined_flag_RC
38499
38500 # Flag that forces no undefined symbols.
38501 no_undefined_flag=$lt_no_undefined_flag_RC
38502
38503 # Commands used to finish a libtool library installation in a directory.
38504 finish_cmds=$lt_finish_cmds
38505
38506 # Same as above, but a single script fragment to be evaled but not shown.
38507 finish_eval=$lt_finish_eval
38508
38509 # Take the output of nm and produce a listing of raw symbols and C names.
38510 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38511
38512 # Transform the output of nm in a proper C declaration
38513 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38514
38515 # Transform the output of nm in a C name address pair
38516 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38517
38518 # This is the shared library runtime path variable.
38519 runpath_var=$runpath_var
38520
38521 # This is the shared library path variable.
38522 shlibpath_var=$shlibpath_var
38523
38524 # Is shlibpath searched before the hard-coded library search path?
38525 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38526
38527 # How to hardcode a shared library path into an executable.
38528 hardcode_action=$hardcode_action_RC
38529
38530 # Whether we should hardcode library paths into libraries.
38531 hardcode_into_libs=$hardcode_into_libs
38532
38533 # Flag to hardcode \$libdir into a binary during linking.
38534 # This must work even if \$libdir does not exist.
38535 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
38536
38537 # If ld is used when linking, flag to hardcode \$libdir into
38538 # a binary during linking. This must work even if \$libdir does
38539 # not exist.
38540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
38541
38542 # Whether we need a single -rpath flag with a separated argument.
38543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
38544
38545 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38546 # resulting binary.
38547 hardcode_direct=$hardcode_direct_RC
38548
38549 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38550 # resulting binary.
38551 hardcode_minus_L=$hardcode_minus_L_RC
38552
38553 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38554 # the resulting binary.
38555 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
38556
38557 # Set to yes if building a shared library automatically hardcodes DIR into the library
38558 # and all subsequent libraries and executables linked against it.
38559 hardcode_automatic=$hardcode_automatic_RC
38560
38561 # Variables whose values should be saved in libtool wrapper scripts and
38562 # restored at relink time.
38563 variables_saved_for_relink="$variables_saved_for_relink"
38564
38565 # Whether libtool must link a program against all its dependency libraries.
38566 link_all_deplibs=$link_all_deplibs_RC
38567
38568 # Compile-time system search path for libraries
38569 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38570
38571 # Run-time system search path for libraries
38572 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38573
38574 # Fix the shell variable \$srcfile for the compiler.
38575 fix_srcfile_path="$fix_srcfile_path_RC"
38576
38577 # Set to yes if exported symbols are required.
38578 always_export_symbols=$always_export_symbols_RC
38579
38580 # The commands to list exported symbols.
38581 export_symbols_cmds=$lt_export_symbols_cmds_RC
38582
38583 # The commands to extract the exported symbol list from a shared archive.
38584 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38585
38586 # Symbols that should not be listed in the preloaded symbols.
38587 exclude_expsyms=$lt_exclude_expsyms_RC
38588
38589 # Symbols that must always be exported.
38590 include_expsyms=$lt_include_expsyms_RC
38591
38592 # ### END LIBTOOL TAG CONFIG: $tagname
38593
38594 __EOF__
38595
38596
38597 else
38598   # If there is no Makefile yet, we rely on a make rule to execute
38599   # `config.status --recheck' to rerun these tests and create the
38600   # libtool script then.
38601   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38602   if test -f "$ltmain_in"; then
38603     test -f Makefile && make "$ltmain"
38604   fi
38605 fi
38606
38607
38608 ac_ext=c
38609 ac_cpp='$CPP $CPPFLAGS'
38610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38613
38614 CC="$lt_save_CC"
38615
38616         ;;
38617
38618       *)
38619         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
38620 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
38621    { (exit 1); exit 1; }; }
38622         ;;
38623       esac
38624
38625       # Append the new tag name to the list of available tags.
38626       if test -n "$tagname" ; then
38627       available_tags="$available_tags $tagname"
38628     fi
38629     fi
38630   done
38631   IFS="$lt_save_ifs"
38632
38633   # Now substitute the updated list of available tags.
38634   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
38635     mv "${ofile}T" "$ofile"
38636     chmod +x "$ofile"
38637   else
38638     rm -f "${ofile}T"
38639     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
38640 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
38641    { (exit 1); exit 1; }; }
38642   fi
38643 fi
38644
38645
38646
38647 # This can be used to rebuild libtool when needed
38648 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
38649
38650 # Always use our own libtool.
38651 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
38652
38653 # Prevent multiple expansion
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676 if test $ac_cv_c_compiler_gnu = yes; then
38677     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
38678 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
38679 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
38680   echo $ECHO_N "(cached) $ECHO_C" >&6
38681 else
38682     ac_pattern="Autoconf.*'x'"
38683   cat >conftest.$ac_ext <<_ACEOF
38684 /* confdefs.h.  */
38685 _ACEOF
38686 cat confdefs.h >>conftest.$ac_ext
38687 cat >>conftest.$ac_ext <<_ACEOF
38688 /* end confdefs.h.  */
38689 #include <sgtty.h>
38690 Autoconf TIOCGETP
38691 _ACEOF
38692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38693   $EGREP "$ac_pattern" >/dev/null 2>&1; then
38694   ac_cv_prog_gcc_traditional=yes
38695 else
38696   ac_cv_prog_gcc_traditional=no
38697 fi
38698 rm -f conftest*
38699
38700
38701   if test $ac_cv_prog_gcc_traditional = no; then
38702     cat >conftest.$ac_ext <<_ACEOF
38703 /* confdefs.h.  */
38704 _ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h.  */
38708 #include <termio.h>
38709 Autoconf TCGETA
38710 _ACEOF
38711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38712   $EGREP "$ac_pattern" >/dev/null 2>&1; then
38713   ac_cv_prog_gcc_traditional=yes
38714 fi
38715 rm -f conftest*
38716
38717   fi
38718 fi
38719 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
38720 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
38721   if test $ac_cv_prog_gcc_traditional = yes; then
38722     CC="$CC -traditional"
38723   fi
38724 fi
38725
38726 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38728 if test "${ac_cv_c_const+set}" = set; then
38729   echo $ECHO_N "(cached) $ECHO_C" >&6
38730 else
38731   cat >conftest.$ac_ext <<_ACEOF
38732 /* confdefs.h.  */
38733 _ACEOF
38734 cat confdefs.h >>conftest.$ac_ext
38735 cat >>conftest.$ac_ext <<_ACEOF
38736 /* end confdefs.h.  */
38737
38738 int
38739 main ()
38740 {
38741 /* FIXME: Include the comments suggested by Paul. */
38742 #ifndef __cplusplus
38743   /* Ultrix mips cc rejects this.  */
38744   typedef int charset[2];
38745   const charset x;
38746   /* SunOS 4.1.1 cc rejects this.  */
38747   char const *const *ccp;
38748   char **p;
38749   /* NEC SVR4.0.2 mips cc rejects this.  */
38750   struct point {int x, y;};
38751   static struct point const zero = {0,0};
38752   /* AIX XL C 1.02.0.0 rejects this.
38753      It does not let you subtract one const X* pointer from another in
38754      an arm of an if-expression whose if-part is not a constant
38755      expression */
38756   const char *g = "string";
38757   ccp = &g + (g ? g-g : 0);
38758   /* HPUX 7.0 cc rejects these. */
38759   ++ccp;
38760   p = (char**) ccp;
38761   ccp = (char const *const *) p;
38762   { /* SCO 3.2v4 cc rejects this.  */
38763     char *t;
38764     char const *s = 0 ? (char *) 0 : (char const *) 0;
38765
38766     *t++ = 0;
38767   }
38768   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38769     int x[] = {25, 17};
38770     const int *foo = &x[0];
38771     ++foo;
38772   }
38773   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38774     typedef const int *iptr;
38775     iptr p = 0;
38776     ++p;
38777   }
38778   { /* AIX XL C 1.02.0.0 rejects this saying
38779        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38780     struct s { int j; const int *ap[3]; };
38781     struct s *b; b->j = 5;
38782   }
38783   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38784     const int foo = 10;
38785   }
38786 #endif
38787
38788   ;
38789   return 0;
38790 }
38791 _ACEOF
38792 rm -f conftest.$ac_objext
38793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38794   (eval $ac_compile) 2>conftest.er1
38795   ac_status=$?
38796   grep -v '^ *+' conftest.er1 >conftest.err
38797   rm -f conftest.er1
38798   cat conftest.err >&5
38799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800   (exit $ac_status); } &&
38801          { ac_try='test -z "$ac_c_werror_flag"
38802                          || test ! -s conftest.err'
38803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38804   (eval $ac_try) 2>&5
38805   ac_status=$?
38806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807   (exit $ac_status); }; } &&
38808          { ac_try='test -s conftest.$ac_objext'
38809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38810   (eval $ac_try) 2>&5
38811   ac_status=$?
38812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38813   (exit $ac_status); }; }; then
38814   ac_cv_c_const=yes
38815 else
38816   echo "$as_me: failed program was:" >&5
38817 sed 's/^/| /' conftest.$ac_ext >&5
38818
38819 ac_cv_c_const=no
38820 fi
38821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38822 fi
38823 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38824 echo "${ECHO_T}$ac_cv_c_const" >&6
38825 if test $ac_cv_c_const = no; then
38826
38827 cat >>confdefs.h <<\_ACEOF
38828 #define const
38829 _ACEOF
38830
38831 fi
38832
38833
38834         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
38835 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
38836 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
38837   echo $ECHO_N "(cached) $ECHO_C" >&6
38838 else
38839
38840                 cat >conftest.$ac_ext <<_ACEOF
38841 /* confdefs.h.  */
38842 _ACEOF
38843 cat confdefs.h >>conftest.$ac_ext
38844 cat >>conftest.$ac_ext <<_ACEOF
38845 /* end confdefs.h.  */
38846
38847
38848 int
38849 main ()
38850 {
38851
38852                         long l = 1ul;
38853
38854   ;
38855   return 0;
38856 }
38857 _ACEOF
38858 rm -f conftest.$ac_objext
38859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38860   (eval $ac_compile) 2>conftest.er1
38861   ac_status=$?
38862   grep -v '^ *+' conftest.er1 >conftest.err
38863   rm -f conftest.er1
38864   cat conftest.err >&5
38865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866   (exit $ac_status); } &&
38867          { ac_try='test -z "$ac_c_werror_flag"
38868                          || test ! -s conftest.err'
38869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870   (eval $ac_try) 2>&5
38871   ac_status=$?
38872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873   (exit $ac_status); }; } &&
38874          { ac_try='test -s conftest.$ac_objext'
38875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38876   (eval $ac_try) 2>&5
38877   ac_status=$?
38878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879   (exit $ac_status); }; }; then
38880   amanda_cv_c_unsigned_long_constants=yes
38881 else
38882   echo "$as_me: failed program was:" >&5
38883 sed 's/^/| /' conftest.$ac_ext >&5
38884
38885 amanda_cv_c_unsigned_long_constants=no
38886
38887 fi
38888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38889
38890
38891 fi
38892 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
38893 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
38894         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
38895
38896 cat >>confdefs.h <<\_ACEOF
38897 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
38898 _ACEOF
38899
38900         fi
38901
38902
38903 echo "$as_me:$LINENO: checking for off_t" >&5
38904 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
38905 if test "${ac_cv_type_off_t+set}" = set; then
38906   echo $ECHO_N "(cached) $ECHO_C" >&6
38907 else
38908   cat >conftest.$ac_ext <<_ACEOF
38909 /* confdefs.h.  */
38910 _ACEOF
38911 cat confdefs.h >>conftest.$ac_ext
38912 cat >>conftest.$ac_ext <<_ACEOF
38913 /* end confdefs.h.  */
38914 $ac_includes_default
38915 int
38916 main ()
38917 {
38918 if ((off_t *) 0)
38919   return 0;
38920 if (sizeof (off_t))
38921   return 0;
38922   ;
38923   return 0;
38924 }
38925 _ACEOF
38926 rm -f conftest.$ac_objext
38927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38928   (eval $ac_compile) 2>conftest.er1
38929   ac_status=$?
38930   grep -v '^ *+' conftest.er1 >conftest.err
38931   rm -f conftest.er1
38932   cat conftest.err >&5
38933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38934   (exit $ac_status); } &&
38935          { ac_try='test -z "$ac_c_werror_flag"
38936                          || test ! -s conftest.err'
38937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938   (eval $ac_try) 2>&5
38939   ac_status=$?
38940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941   (exit $ac_status); }; } &&
38942          { ac_try='test -s conftest.$ac_objext'
38943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38944   (eval $ac_try) 2>&5
38945   ac_status=$?
38946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38947   (exit $ac_status); }; }; then
38948   ac_cv_type_off_t=yes
38949 else
38950   echo "$as_me: failed program was:" >&5
38951 sed 's/^/| /' conftest.$ac_ext >&5
38952
38953 ac_cv_type_off_t=no
38954 fi
38955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38956 fi
38957 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
38958 echo "${ECHO_T}$ac_cv_type_off_t" >&6
38959 if test $ac_cv_type_off_t = yes; then
38960   :
38961 else
38962
38963 cat >>confdefs.h <<_ACEOF
38964 #define off_t long
38965 _ACEOF
38966
38967 fi
38968
38969 echo "$as_me:$LINENO: checking for pid_t" >&5
38970 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38971 if test "${ac_cv_type_pid_t+set}" = set; then
38972   echo $ECHO_N "(cached) $ECHO_C" >&6
38973 else
38974   cat >conftest.$ac_ext <<_ACEOF
38975 /* confdefs.h.  */
38976 _ACEOF
38977 cat confdefs.h >>conftest.$ac_ext
38978 cat >>conftest.$ac_ext <<_ACEOF
38979 /* end confdefs.h.  */
38980 $ac_includes_default
38981 int
38982 main ()
38983 {
38984 if ((pid_t *) 0)
38985   return 0;
38986 if (sizeof (pid_t))
38987   return 0;
38988   ;
38989   return 0;
38990 }
38991 _ACEOF
38992 rm -f conftest.$ac_objext
38993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38994   (eval $ac_compile) 2>conftest.er1
38995   ac_status=$?
38996   grep -v '^ *+' conftest.er1 >conftest.err
38997   rm -f conftest.er1
38998   cat conftest.err >&5
38999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39000   (exit $ac_status); } &&
39001          { ac_try='test -z "$ac_c_werror_flag"
39002                          || test ! -s conftest.err'
39003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004   (eval $ac_try) 2>&5
39005   ac_status=$?
39006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007   (exit $ac_status); }; } &&
39008          { ac_try='test -s conftest.$ac_objext'
39009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010   (eval $ac_try) 2>&5
39011   ac_status=$?
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); }; }; then
39014   ac_cv_type_pid_t=yes
39015 else
39016   echo "$as_me: failed program was:" >&5
39017 sed 's/^/| /' conftest.$ac_ext >&5
39018
39019 ac_cv_type_pid_t=no
39020 fi
39021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39022 fi
39023 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
39024 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
39025 if test $ac_cv_type_pid_t = yes; then
39026   :
39027 else
39028
39029 cat >>confdefs.h <<_ACEOF
39030 #define pid_t int
39031 _ACEOF
39032
39033 fi
39034
39035 echo "$as_me:$LINENO: checking for size_t" >&5
39036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
39037 if test "${ac_cv_type_size_t+set}" = set; then
39038   echo $ECHO_N "(cached) $ECHO_C" >&6
39039 else
39040   cat >conftest.$ac_ext <<_ACEOF
39041 /* confdefs.h.  */
39042 _ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h.  */
39046 $ac_includes_default
39047 int
39048 main ()
39049 {
39050 if ((size_t *) 0)
39051   return 0;
39052 if (sizeof (size_t))
39053   return 0;
39054   ;
39055   return 0;
39056 }
39057 _ACEOF
39058 rm -f conftest.$ac_objext
39059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39060   (eval $ac_compile) 2>conftest.er1
39061   ac_status=$?
39062   grep -v '^ *+' conftest.er1 >conftest.err
39063   rm -f conftest.er1
39064   cat conftest.err >&5
39065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39066   (exit $ac_status); } &&
39067          { ac_try='test -z "$ac_c_werror_flag"
39068                          || test ! -s conftest.err'
39069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39070   (eval $ac_try) 2>&5
39071   ac_status=$?
39072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073   (exit $ac_status); }; } &&
39074          { ac_try='test -s conftest.$ac_objext'
39075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39076   (eval $ac_try) 2>&5
39077   ac_status=$?
39078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079   (exit $ac_status); }; }; then
39080   ac_cv_type_size_t=yes
39081 else
39082   echo "$as_me: failed program was:" >&5
39083 sed 's/^/| /' conftest.$ac_ext >&5
39084
39085 ac_cv_type_size_t=no
39086 fi
39087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39088 fi
39089 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
39090 echo "${ECHO_T}$ac_cv_type_size_t" >&6
39091 if test $ac_cv_type_size_t = yes; then
39092   :
39093 else
39094
39095 cat >>confdefs.h <<_ACEOF
39096 #define size_t unsigned
39097 _ACEOF
39098
39099 fi
39100
39101
39102 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
39103 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
39104 if test "${ac_cv_type_uid_t+set}" = set; then
39105   echo $ECHO_N "(cached) $ECHO_C" >&6
39106 else
39107   cat >conftest.$ac_ext <<_ACEOF
39108 /* confdefs.h.  */
39109 _ACEOF
39110 cat confdefs.h >>conftest.$ac_ext
39111 cat >>conftest.$ac_ext <<_ACEOF
39112 /* end confdefs.h.  */
39113 #include <sys/types.h>
39114
39115 _ACEOF
39116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39117   $EGREP "uid_t" >/dev/null 2>&1; then
39118   ac_cv_type_uid_t=yes
39119 else
39120   ac_cv_type_uid_t=no
39121 fi
39122 rm -f conftest*
39123
39124 fi
39125 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
39126 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
39127 if test $ac_cv_type_uid_t = no; then
39128
39129 cat >>confdefs.h <<\_ACEOF
39130 #define uid_t int
39131 _ACEOF
39132
39133
39134 cat >>confdefs.h <<\_ACEOF
39135 #define gid_t int
39136 _ACEOF
39137
39138 fi
39139
39140 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
39141 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
39142 if test "${ac_cv_type_signal+set}" = set; then
39143   echo $ECHO_N "(cached) $ECHO_C" >&6
39144 else
39145   cat >conftest.$ac_ext <<_ACEOF
39146 /* confdefs.h.  */
39147 _ACEOF
39148 cat confdefs.h >>conftest.$ac_ext
39149 cat >>conftest.$ac_ext <<_ACEOF
39150 /* end confdefs.h.  */
39151 #include <sys/types.h>
39152 #include <signal.h>
39153 #ifdef signal
39154 # undef signal
39155 #endif
39156 #ifdef __cplusplus
39157 extern "C" void (*signal (int, void (*)(int)))(int);
39158 #else
39159 void (*signal ()) ();
39160 #endif
39161
39162 int
39163 main ()
39164 {
39165 int i;
39166   ;
39167   return 0;
39168 }
39169 _ACEOF
39170 rm -f conftest.$ac_objext
39171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39172   (eval $ac_compile) 2>conftest.er1
39173   ac_status=$?
39174   grep -v '^ *+' conftest.er1 >conftest.err
39175   rm -f conftest.er1
39176   cat conftest.err >&5
39177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178   (exit $ac_status); } &&
39179          { ac_try='test -z "$ac_c_werror_flag"
39180                          || test ! -s conftest.err'
39181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39182   (eval $ac_try) 2>&5
39183   ac_status=$?
39184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39185   (exit $ac_status); }; } &&
39186          { ac_try='test -s conftest.$ac_objext'
39187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39188   (eval $ac_try) 2>&5
39189   ac_status=$?
39190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39191   (exit $ac_status); }; }; then
39192   ac_cv_type_signal=void
39193 else
39194   echo "$as_me: failed program was:" >&5
39195 sed 's/^/| /' conftest.$ac_ext >&5
39196
39197 ac_cv_type_signal=int
39198 fi
39199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39200 fi
39201 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
39202 echo "${ECHO_T}$ac_cv_type_signal" >&6
39203
39204 cat >>confdefs.h <<_ACEOF
39205 #define RETSIGTYPE $ac_cv_type_signal
39206 _ACEOF
39207
39208
39209 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
39210 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
39211 if test "${ac_cv_struct_tm+set}" = set; then
39212   echo $ECHO_N "(cached) $ECHO_C" >&6
39213 else
39214   cat >conftest.$ac_ext <<_ACEOF
39215 /* confdefs.h.  */
39216 _ACEOF
39217 cat confdefs.h >>conftest.$ac_ext
39218 cat >>conftest.$ac_ext <<_ACEOF
39219 /* end confdefs.h.  */
39220 #include <sys/types.h>
39221 #include <time.h>
39222
39223 int
39224 main ()
39225 {
39226 struct tm *tp; tp->tm_sec;
39227   ;
39228   return 0;
39229 }
39230 _ACEOF
39231 rm -f conftest.$ac_objext
39232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39233   (eval $ac_compile) 2>conftest.er1
39234   ac_status=$?
39235   grep -v '^ *+' conftest.er1 >conftest.err
39236   rm -f conftest.er1
39237   cat conftest.err >&5
39238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239   (exit $ac_status); } &&
39240          { ac_try='test -z "$ac_c_werror_flag"
39241                          || test ! -s conftest.err'
39242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39243   (eval $ac_try) 2>&5
39244   ac_status=$?
39245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39246   (exit $ac_status); }; } &&
39247          { ac_try='test -s conftest.$ac_objext'
39248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39249   (eval $ac_try) 2>&5
39250   ac_status=$?
39251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39252   (exit $ac_status); }; }; then
39253   ac_cv_struct_tm=time.h
39254 else
39255   echo "$as_me: failed program was:" >&5
39256 sed 's/^/| /' conftest.$ac_ext >&5
39257
39258 ac_cv_struct_tm=sys/time.h
39259 fi
39260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39261 fi
39262 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
39263 echo "${ECHO_T}$ac_cv_struct_tm" >&6
39264 if test $ac_cv_struct_tm = sys/time.h; then
39265
39266 cat >>confdefs.h <<\_ACEOF
39267 #define TM_IN_SYS_TIME 1
39268 _ACEOF
39269
39270 fi
39271
39272 for ac_prog in flex lex
39273 do
39274   # Extract the first word of "$ac_prog", so it can be a program name with args.
39275 set dummy $ac_prog; ac_word=$2
39276 echo "$as_me:$LINENO: checking for $ac_word" >&5
39277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39278 if test "${ac_cv_prog_LEX+set}" = set; then
39279   echo $ECHO_N "(cached) $ECHO_C" >&6
39280 else
39281   if test -n "$LEX"; then
39282   ac_cv_prog_LEX="$LEX" # Let the user override the test.
39283 else
39284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39285 for as_dir in $PATH
39286 do
39287   IFS=$as_save_IFS
39288   test -z "$as_dir" && as_dir=.
39289   for ac_exec_ext in '' $ac_executable_extensions; do
39290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39291     ac_cv_prog_LEX="$ac_prog"
39292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39293     break 2
39294   fi
39295 done
39296 done
39297
39298 fi
39299 fi
39300 LEX=$ac_cv_prog_LEX
39301 if test -n "$LEX"; then
39302   echo "$as_me:$LINENO: result: $LEX" >&5
39303 echo "${ECHO_T}$LEX" >&6
39304 else
39305   echo "$as_me:$LINENO: result: no" >&5
39306 echo "${ECHO_T}no" >&6
39307 fi
39308
39309   test -n "$LEX" && break
39310 done
39311 test -n "$LEX" || LEX=":"
39312
39313 if test -z "$LEXLIB"
39314 then
39315   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
39316 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
39317 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
39318   echo $ECHO_N "(cached) $ECHO_C" >&6
39319 else
39320   ac_check_lib_save_LIBS=$LIBS
39321 LIBS="-lfl  $LIBS"
39322 cat >conftest.$ac_ext <<_ACEOF
39323 /* confdefs.h.  */
39324 _ACEOF
39325 cat confdefs.h >>conftest.$ac_ext
39326 cat >>conftest.$ac_ext <<_ACEOF
39327 /* end confdefs.h.  */
39328
39329 /* Override any gcc2 internal prototype to avoid an error.  */
39330 #ifdef __cplusplus
39331 extern "C"
39332 #endif
39333 /* We use char because int might match the return type of a gcc2
39334    builtin and then its argument prototype would still apply.  */
39335 char yywrap ();
39336 int
39337 main ()
39338 {
39339 yywrap ();
39340   ;
39341   return 0;
39342 }
39343 _ACEOF
39344 rm -f conftest.$ac_objext conftest$ac_exeext
39345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39346   (eval $ac_link) 2>conftest.er1
39347   ac_status=$?
39348   grep -v '^ *+' conftest.er1 >conftest.err
39349   rm -f conftest.er1
39350   cat conftest.err >&5
39351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39352   (exit $ac_status); } &&
39353          { ac_try='test -z "$ac_c_werror_flag"
39354                          || test ! -s conftest.err'
39355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39356   (eval $ac_try) 2>&5
39357   ac_status=$?
39358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39359   (exit $ac_status); }; } &&
39360          { ac_try='test -s conftest$ac_exeext'
39361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39362   (eval $ac_try) 2>&5
39363   ac_status=$?
39364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39365   (exit $ac_status); }; }; then
39366   ac_cv_lib_fl_yywrap=yes
39367 else
39368   echo "$as_me: failed program was:" >&5
39369 sed 's/^/| /' conftest.$ac_ext >&5
39370
39371 ac_cv_lib_fl_yywrap=no
39372 fi
39373 rm -f conftest.err conftest.$ac_objext \
39374       conftest$ac_exeext conftest.$ac_ext
39375 LIBS=$ac_check_lib_save_LIBS
39376 fi
39377 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
39378 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
39379 if test $ac_cv_lib_fl_yywrap = yes; then
39380   LEXLIB="-lfl"
39381 else
39382   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
39383 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
39384 if test "${ac_cv_lib_l_yywrap+set}" = set; then
39385   echo $ECHO_N "(cached) $ECHO_C" >&6
39386 else
39387   ac_check_lib_save_LIBS=$LIBS
39388 LIBS="-ll  $LIBS"
39389 cat >conftest.$ac_ext <<_ACEOF
39390 /* confdefs.h.  */
39391 _ACEOF
39392 cat confdefs.h >>conftest.$ac_ext
39393 cat >>conftest.$ac_ext <<_ACEOF
39394 /* end confdefs.h.  */
39395
39396 /* Override any gcc2 internal prototype to avoid an error.  */
39397 #ifdef __cplusplus
39398 extern "C"
39399 #endif
39400 /* We use char because int might match the return type of a gcc2
39401    builtin and then its argument prototype would still apply.  */
39402 char yywrap ();
39403 int
39404 main ()
39405 {
39406 yywrap ();
39407   ;
39408   return 0;
39409 }
39410 _ACEOF
39411 rm -f conftest.$ac_objext conftest$ac_exeext
39412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39413   (eval $ac_link) 2>conftest.er1
39414   ac_status=$?
39415   grep -v '^ *+' conftest.er1 >conftest.err
39416   rm -f conftest.er1
39417   cat conftest.err >&5
39418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39419   (exit $ac_status); } &&
39420          { ac_try='test -z "$ac_c_werror_flag"
39421                          || test ! -s conftest.err'
39422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39423   (eval $ac_try) 2>&5
39424   ac_status=$?
39425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39426   (exit $ac_status); }; } &&
39427          { ac_try='test -s conftest$ac_exeext'
39428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39429   (eval $ac_try) 2>&5
39430   ac_status=$?
39431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39432   (exit $ac_status); }; }; then
39433   ac_cv_lib_l_yywrap=yes
39434 else
39435   echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39437
39438 ac_cv_lib_l_yywrap=no
39439 fi
39440 rm -f conftest.err conftest.$ac_objext \
39441       conftest$ac_exeext conftest.$ac_ext
39442 LIBS=$ac_check_lib_save_LIBS
39443 fi
39444 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
39445 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
39446 if test $ac_cv_lib_l_yywrap = yes; then
39447   LEXLIB="-ll"
39448 fi
39449
39450 fi
39451
39452 fi
39453
39454 if test "x$LEX" != "x:"; then
39455   echo "$as_me:$LINENO: checking lex output file root" >&5
39456 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
39457 if test "${ac_cv_prog_lex_root+set}" = set; then
39458   echo $ECHO_N "(cached) $ECHO_C" >&6
39459 else
39460   # The minimal lex program is just a single line: %%.  But some broken lexes
39461 # (Solaris, I think it was) want two %% lines, so accommodate them.
39462 cat >conftest.l <<_ACEOF
39463 %%
39464 %%
39465 _ACEOF
39466 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
39467   (eval $LEX conftest.l) 2>&5
39468   ac_status=$?
39469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470   (exit $ac_status); }
39471 if test -f lex.yy.c; then
39472   ac_cv_prog_lex_root=lex.yy
39473 elif test -f lexyy.c; then
39474   ac_cv_prog_lex_root=lexyy
39475 else
39476   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
39477 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
39478    { (exit 1); exit 1; }; }
39479 fi
39480 fi
39481 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
39482 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
39483 rm -f conftest.l
39484 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
39485
39486 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
39487 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
39488 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
39489   echo $ECHO_N "(cached) $ECHO_C" >&6
39490 else
39491   # POSIX says lex can declare yytext either as a pointer or an array; the
39492 # default is implementation-dependent. Figure out which it is, since
39493 # not all implementations provide the %pointer and %array declarations.
39494 ac_cv_prog_lex_yytext_pointer=no
39495 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
39496 ac_save_LIBS=$LIBS
39497 LIBS="$LIBS $LEXLIB"
39498 cat >conftest.$ac_ext <<_ACEOF
39499 `cat $LEX_OUTPUT_ROOT.c`
39500 _ACEOF
39501 rm -f conftest.$ac_objext conftest$ac_exeext
39502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39503   (eval $ac_link) 2>conftest.er1
39504   ac_status=$?
39505   grep -v '^ *+' conftest.er1 >conftest.err
39506   rm -f conftest.er1
39507   cat conftest.err >&5
39508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39509   (exit $ac_status); } &&
39510          { ac_try='test -z "$ac_c_werror_flag"
39511                          || test ! -s conftest.err'
39512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513   (eval $ac_try) 2>&5
39514   ac_status=$?
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); }; } &&
39517          { ac_try='test -s conftest$ac_exeext'
39518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39519   (eval $ac_try) 2>&5
39520   ac_status=$?
39521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522   (exit $ac_status); }; }; then
39523   ac_cv_prog_lex_yytext_pointer=yes
39524 else
39525   echo "$as_me: failed program was:" >&5
39526 sed 's/^/| /' conftest.$ac_ext >&5
39527
39528 fi
39529 rm -f conftest.err conftest.$ac_objext \
39530       conftest$ac_exeext conftest.$ac_ext
39531 LIBS=$ac_save_LIBS
39532 rm -f "${LEX_OUTPUT_ROOT}.c"
39533
39534 fi
39535 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
39536 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
39537 if test $ac_cv_prog_lex_yytext_pointer = yes; then
39538
39539 cat >>confdefs.h <<\_ACEOF
39540 #define YYTEXT_POINTER 1
39541 _ACEOF
39542
39543 fi
39544
39545 fi
39546 if test "$LEX" = :; then
39547   LEX=${am_missing_run}flex
39548 fi
39549
39550 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
39551 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
39552 if test "${ac_cv_header_stdc+set}" = set; then
39553   echo $ECHO_N "(cached) $ECHO_C" >&6
39554 else
39555   cat >conftest.$ac_ext <<_ACEOF
39556 /* confdefs.h.  */
39557 _ACEOF
39558 cat confdefs.h >>conftest.$ac_ext
39559 cat >>conftest.$ac_ext <<_ACEOF
39560 /* end confdefs.h.  */
39561 #include <stdlib.h>
39562 #include <stdarg.h>
39563 #include <string.h>
39564 #include <float.h>
39565
39566 int
39567 main ()
39568 {
39569
39570   ;
39571   return 0;
39572 }
39573 _ACEOF
39574 rm -f conftest.$ac_objext
39575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39576   (eval $ac_compile) 2>conftest.er1
39577   ac_status=$?
39578   grep -v '^ *+' conftest.er1 >conftest.err
39579   rm -f conftest.er1
39580   cat conftest.err >&5
39581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39582   (exit $ac_status); } &&
39583          { ac_try='test -z "$ac_c_werror_flag"
39584                          || test ! -s conftest.err'
39585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39586   (eval $ac_try) 2>&5
39587   ac_status=$?
39588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39589   (exit $ac_status); }; } &&
39590          { ac_try='test -s conftest.$ac_objext'
39591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39592   (eval $ac_try) 2>&5
39593   ac_status=$?
39594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39595   (exit $ac_status); }; }; then
39596   ac_cv_header_stdc=yes
39597 else
39598   echo "$as_me: failed program was:" >&5
39599 sed 's/^/| /' conftest.$ac_ext >&5
39600
39601 ac_cv_header_stdc=no
39602 fi
39603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39604
39605 if test $ac_cv_header_stdc = yes; then
39606   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
39607   cat >conftest.$ac_ext <<_ACEOF
39608 /* confdefs.h.  */
39609 _ACEOF
39610 cat confdefs.h >>conftest.$ac_ext
39611 cat >>conftest.$ac_ext <<_ACEOF
39612 /* end confdefs.h.  */
39613 #include <string.h>
39614
39615 _ACEOF
39616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39617   $EGREP "memchr" >/dev/null 2>&1; then
39618   :
39619 else
39620   ac_cv_header_stdc=no
39621 fi
39622 rm -f conftest*
39623
39624 fi
39625
39626 if test $ac_cv_header_stdc = yes; then
39627   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
39628   cat >conftest.$ac_ext <<_ACEOF
39629 /* confdefs.h.  */
39630 _ACEOF
39631 cat confdefs.h >>conftest.$ac_ext
39632 cat >>conftest.$ac_ext <<_ACEOF
39633 /* end confdefs.h.  */
39634 #include <stdlib.h>
39635
39636 _ACEOF
39637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39638   $EGREP "free" >/dev/null 2>&1; then
39639   :
39640 else
39641   ac_cv_header_stdc=no
39642 fi
39643 rm -f conftest*
39644
39645 fi
39646
39647 if test $ac_cv_header_stdc = yes; then
39648   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
39649   if test "$cross_compiling" = yes; then
39650   :
39651 else
39652   cat >conftest.$ac_ext <<_ACEOF
39653 /* confdefs.h.  */
39654 _ACEOF
39655 cat confdefs.h >>conftest.$ac_ext
39656 cat >>conftest.$ac_ext <<_ACEOF
39657 /* end confdefs.h.  */
39658 #include <ctype.h>
39659 #if ((' ' & 0x0FF) == 0x020)
39660 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
39661 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
39662 #else
39663 # define ISLOWER(c) \
39664                    (('a' <= (c) && (c) <= 'i') \
39665                      || ('j' <= (c) && (c) <= 'r') \
39666                      || ('s' <= (c) && (c) <= 'z'))
39667 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
39668 #endif
39669
39670 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
39671 int
39672 main ()
39673 {
39674   int i;
39675   for (i = 0; i < 256; i++)
39676     if (XOR (islower (i), ISLOWER (i))
39677         || toupper (i) != TOUPPER (i))
39678       exit(2);
39679   exit (0);
39680 }
39681 _ACEOF
39682 rm -f conftest$ac_exeext
39683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39684   (eval $ac_link) 2>&5
39685   ac_status=$?
39686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39689   (eval $ac_try) 2>&5
39690   ac_status=$?
39691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39692   (exit $ac_status); }; }; then
39693   :
39694 else
39695   echo "$as_me: program exited with status $ac_status" >&5
39696 echo "$as_me: failed program was:" >&5
39697 sed 's/^/| /' conftest.$ac_ext >&5
39698
39699 ( exit $ac_status )
39700 ac_cv_header_stdc=no
39701 fi
39702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39703 fi
39704 fi
39705 fi
39706 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
39707 echo "${ECHO_T}$ac_cv_header_stdc" >&6
39708 if test $ac_cv_header_stdc = yes; then
39709
39710 cat >>confdefs.h <<\_ACEOF
39711 #define STDC_HEADERS 1
39712 _ACEOF
39713
39714 fi
39715
39716
39717
39718 echo "$as_me:$LINENO: checking for socklen_t" >&5
39719 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
39720 if test "${ac_cv_type_socklen_t+set}" = set; then
39721   echo $ECHO_N "(cached) $ECHO_C" >&6
39722 else
39723   cat >conftest.$ac_ext <<_ACEOF
39724 /* confdefs.h.  */
39725 _ACEOF
39726 cat confdefs.h >>conftest.$ac_ext
39727 cat >>conftest.$ac_ext <<_ACEOF
39728 /* end confdefs.h.  */
39729 #include <sys/types.h>
39730 #if STDC_HEADERS
39731 #include <stdlib.h>
39732 #include <stddef.h>
39733 #endif
39734 #include <sys/socket.h>
39735 _ACEOF
39736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39737   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
39738   ac_cv_type_socklen_t=yes
39739 else
39740   ac_cv_type_socklen_t=no
39741 fi
39742 rm -f conftest*
39743
39744 fi
39745 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
39746 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
39747 if test "x$ac_cv_type_socklen_t" = xno; then
39748
39749 cat >>confdefs.h <<\_ACEOF
39750 #define socklen_t int
39751 _ACEOF
39752
39753 fi
39754
39755 echo "$as_me:$LINENO: checking for sa_family_t" >&5
39756 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
39757 if test "${ac_cv_type_sa_family_t+set}" = set; then
39758   echo $ECHO_N "(cached) $ECHO_C" >&6
39759 else
39760   cat >conftest.$ac_ext <<_ACEOF
39761 /* confdefs.h.  */
39762 _ACEOF
39763 cat confdefs.h >>conftest.$ac_ext
39764 cat >>conftest.$ac_ext <<_ACEOF
39765 /* end confdefs.h.  */
39766 #include <sys/types.h>
39767 #if STDC_HEADERS
39768 #include <stdlib.h>
39769 #include <stddef.h>
39770 #endif
39771 #include <sys/socket.h>
39772 _ACEOF
39773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39774   $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
39775   ac_cv_type_sa_family_t=yes
39776 else
39777   ac_cv_type_sa_family_t=no
39778 fi
39779 rm -f conftest*
39780
39781 fi
39782 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
39783 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
39784 if test "x$ac_cv_type_sa_family_t" = xno; then
39785
39786 cat >>confdefs.h <<\_ACEOF
39787 #define sa_family_t unsigned short
39788 _ACEOF
39789
39790 fi
39791
39792
39793
39794
39795
39796
39797
39798 ac_header_dirent=no
39799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
39800   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
39801 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
39802 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
39803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39804   echo $ECHO_N "(cached) $ECHO_C" >&6
39805 else
39806   cat >conftest.$ac_ext <<_ACEOF
39807 /* confdefs.h.  */
39808 _ACEOF
39809 cat confdefs.h >>conftest.$ac_ext
39810 cat >>conftest.$ac_ext <<_ACEOF
39811 /* end confdefs.h.  */
39812 #include <sys/types.h>
39813 #include <$ac_hdr>
39814
39815 int
39816 main ()
39817 {
39818 if ((DIR *) 0)
39819 return 0;
39820   ;
39821   return 0;
39822 }
39823 _ACEOF
39824 rm -f conftest.$ac_objext
39825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39826   (eval $ac_compile) 2>conftest.er1
39827   ac_status=$?
39828   grep -v '^ *+' conftest.er1 >conftest.err
39829   rm -f conftest.er1
39830   cat conftest.err >&5
39831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39832   (exit $ac_status); } &&
39833          { ac_try='test -z "$ac_c_werror_flag"
39834                          || test ! -s conftest.err'
39835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836   (eval $ac_try) 2>&5
39837   ac_status=$?
39838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839   (exit $ac_status); }; } &&
39840          { ac_try='test -s conftest.$ac_objext'
39841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842   (eval $ac_try) 2>&5
39843   ac_status=$?
39844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845   (exit $ac_status); }; }; then
39846   eval "$as_ac_Header=yes"
39847 else
39848   echo "$as_me: failed program was:" >&5
39849 sed 's/^/| /' conftest.$ac_ext >&5
39850
39851 eval "$as_ac_Header=no"
39852 fi
39853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39854 fi
39855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39858   cat >>confdefs.h <<_ACEOF
39859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
39860 _ACEOF
39861
39862 ac_header_dirent=$ac_hdr; break
39863 fi
39864
39865 done
39866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
39867 if test $ac_header_dirent = dirent.h; then
39868   echo "$as_me:$LINENO: checking for library containing opendir" >&5
39869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
39870 if test "${ac_cv_search_opendir+set}" = set; then
39871   echo $ECHO_N "(cached) $ECHO_C" >&6
39872 else
39873   ac_func_search_save_LIBS=$LIBS
39874 ac_cv_search_opendir=no
39875 cat >conftest.$ac_ext <<_ACEOF
39876 /* confdefs.h.  */
39877 _ACEOF
39878 cat confdefs.h >>conftest.$ac_ext
39879 cat >>conftest.$ac_ext <<_ACEOF
39880 /* end confdefs.h.  */
39881
39882 /* Override any gcc2 internal prototype to avoid an error.  */
39883 #ifdef __cplusplus
39884 extern "C"
39885 #endif
39886 /* We use char because int might match the return type of a gcc2
39887    builtin and then its argument prototype would still apply.  */
39888 char opendir ();
39889 int
39890 main ()
39891 {
39892 opendir ();
39893   ;
39894   return 0;
39895 }
39896 _ACEOF
39897 rm -f conftest.$ac_objext conftest$ac_exeext
39898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39899   (eval $ac_link) 2>conftest.er1
39900   ac_status=$?
39901   grep -v '^ *+' conftest.er1 >conftest.err
39902   rm -f conftest.er1
39903   cat conftest.err >&5
39904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905   (exit $ac_status); } &&
39906          { ac_try='test -z "$ac_c_werror_flag"
39907                          || test ! -s conftest.err'
39908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39909   (eval $ac_try) 2>&5
39910   ac_status=$?
39911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912   (exit $ac_status); }; } &&
39913          { ac_try='test -s conftest$ac_exeext'
39914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39915   (eval $ac_try) 2>&5
39916   ac_status=$?
39917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39918   (exit $ac_status); }; }; then
39919   ac_cv_search_opendir="none required"
39920 else
39921   echo "$as_me: failed program was:" >&5
39922 sed 's/^/| /' conftest.$ac_ext >&5
39923
39924 fi
39925 rm -f conftest.err conftest.$ac_objext \
39926       conftest$ac_exeext conftest.$ac_ext
39927 if test "$ac_cv_search_opendir" = no; then
39928   for ac_lib in dir; do
39929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39930     cat >conftest.$ac_ext <<_ACEOF
39931 /* confdefs.h.  */
39932 _ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h.  */
39936
39937 /* Override any gcc2 internal prototype to avoid an error.  */
39938 #ifdef __cplusplus
39939 extern "C"
39940 #endif
39941 /* We use char because int might match the return type of a gcc2
39942    builtin and then its argument prototype would still apply.  */
39943 char opendir ();
39944 int
39945 main ()
39946 {
39947 opendir ();
39948   ;
39949   return 0;
39950 }
39951 _ACEOF
39952 rm -f conftest.$ac_objext conftest$ac_exeext
39953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39954   (eval $ac_link) 2>conftest.er1
39955   ac_status=$?
39956   grep -v '^ *+' conftest.er1 >conftest.err
39957   rm -f conftest.er1
39958   cat conftest.err >&5
39959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39960   (exit $ac_status); } &&
39961          { ac_try='test -z "$ac_c_werror_flag"
39962                          || test ! -s conftest.err'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; } &&
39968          { ac_try='test -s conftest$ac_exeext'
39969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39970   (eval $ac_try) 2>&5
39971   ac_status=$?
39972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973   (exit $ac_status); }; }; then
39974   ac_cv_search_opendir="-l$ac_lib"
39975 break
39976 else
39977   echo "$as_me: failed program was:" >&5
39978 sed 's/^/| /' conftest.$ac_ext >&5
39979
39980 fi
39981 rm -f conftest.err conftest.$ac_objext \
39982       conftest$ac_exeext conftest.$ac_ext
39983   done
39984 fi
39985 LIBS=$ac_func_search_save_LIBS
39986 fi
39987 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
39988 echo "${ECHO_T}$ac_cv_search_opendir" >&6
39989 if test "$ac_cv_search_opendir" != no; then
39990   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
39991
39992 fi
39993
39994 else
39995   echo "$as_me:$LINENO: checking for library containing opendir" >&5
39996 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
39997 if test "${ac_cv_search_opendir+set}" = set; then
39998   echo $ECHO_N "(cached) $ECHO_C" >&6
39999 else
40000   ac_func_search_save_LIBS=$LIBS
40001 ac_cv_search_opendir=no
40002 cat >conftest.$ac_ext <<_ACEOF
40003 /* confdefs.h.  */
40004 _ACEOF
40005 cat confdefs.h >>conftest.$ac_ext
40006 cat >>conftest.$ac_ext <<_ACEOF
40007 /* end confdefs.h.  */
40008
40009 /* Override any gcc2 internal prototype to avoid an error.  */
40010 #ifdef __cplusplus
40011 extern "C"
40012 #endif
40013 /* We use char because int might match the return type of a gcc2
40014    builtin and then its argument prototype would still apply.  */
40015 char opendir ();
40016 int
40017 main ()
40018 {
40019 opendir ();
40020   ;
40021   return 0;
40022 }
40023 _ACEOF
40024 rm -f conftest.$ac_objext conftest$ac_exeext
40025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40026   (eval $ac_link) 2>conftest.er1
40027   ac_status=$?
40028   grep -v '^ *+' conftest.er1 >conftest.err
40029   rm -f conftest.er1
40030   cat conftest.err >&5
40031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032   (exit $ac_status); } &&
40033          { ac_try='test -z "$ac_c_werror_flag"
40034                          || test ! -s conftest.err'
40035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036   (eval $ac_try) 2>&5
40037   ac_status=$?
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); }; } &&
40040          { ac_try='test -s conftest$ac_exeext'
40041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042   (eval $ac_try) 2>&5
40043   ac_status=$?
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); }; }; then
40046   ac_cv_search_opendir="none required"
40047 else
40048   echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40050
40051 fi
40052 rm -f conftest.err conftest.$ac_objext \
40053       conftest$ac_exeext conftest.$ac_ext
40054 if test "$ac_cv_search_opendir" = no; then
40055   for ac_lib in x; do
40056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
40057     cat >conftest.$ac_ext <<_ACEOF
40058 /* confdefs.h.  */
40059 _ACEOF
40060 cat confdefs.h >>conftest.$ac_ext
40061 cat >>conftest.$ac_ext <<_ACEOF
40062 /* end confdefs.h.  */
40063
40064 /* Override any gcc2 internal prototype to avoid an error.  */
40065 #ifdef __cplusplus
40066 extern "C"
40067 #endif
40068 /* We use char because int might match the return type of a gcc2
40069    builtin and then its argument prototype would still apply.  */
40070 char opendir ();
40071 int
40072 main ()
40073 {
40074 opendir ();
40075   ;
40076   return 0;
40077 }
40078 _ACEOF
40079 rm -f conftest.$ac_objext conftest$ac_exeext
40080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40081   (eval $ac_link) 2>conftest.er1
40082   ac_status=$?
40083   grep -v '^ *+' conftest.er1 >conftest.err
40084   rm -f conftest.er1
40085   cat conftest.err >&5
40086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087   (exit $ac_status); } &&
40088          { ac_try='test -z "$ac_c_werror_flag"
40089                          || test ! -s conftest.err'
40090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40091   (eval $ac_try) 2>&5
40092   ac_status=$?
40093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094   (exit $ac_status); }; } &&
40095          { ac_try='test -s conftest$ac_exeext'
40096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097   (eval $ac_try) 2>&5
40098   ac_status=$?
40099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100   (exit $ac_status); }; }; then
40101   ac_cv_search_opendir="-l$ac_lib"
40102 break
40103 else
40104   echo "$as_me: failed program was:" >&5
40105 sed 's/^/| /' conftest.$ac_ext >&5
40106
40107 fi
40108 rm -f conftest.err conftest.$ac_objext \
40109       conftest$ac_exeext conftest.$ac_ext
40110   done
40111 fi
40112 LIBS=$ac_func_search_save_LIBS
40113 fi
40114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
40115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
40116 if test "$ac_cv_search_opendir" != no; then
40117   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
40118
40119 fi
40120
40121 fi
40122
40123
40124
40125
40126
40127 for ac_header in sys/wait.h wait.h
40128 do
40129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40131   echo "$as_me:$LINENO: checking for $ac_header" >&5
40132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40134   echo $ECHO_N "(cached) $ECHO_C" >&6
40135 fi
40136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40138 else
40139   # Is the header compilable?
40140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40142 cat >conftest.$ac_ext <<_ACEOF
40143 /* confdefs.h.  */
40144 _ACEOF
40145 cat confdefs.h >>conftest.$ac_ext
40146 cat >>conftest.$ac_ext <<_ACEOF
40147 /* end confdefs.h.  */
40148 $ac_includes_default
40149 #include <$ac_header>
40150 _ACEOF
40151 rm -f conftest.$ac_objext
40152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40153   (eval $ac_compile) 2>conftest.er1
40154   ac_status=$?
40155   grep -v '^ *+' conftest.er1 >conftest.err
40156   rm -f conftest.er1
40157   cat conftest.err >&5
40158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40159   (exit $ac_status); } &&
40160          { ac_try='test -z "$ac_c_werror_flag"
40161                          || test ! -s conftest.err'
40162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163   (eval $ac_try) 2>&5
40164   ac_status=$?
40165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166   (exit $ac_status); }; } &&
40167          { ac_try='test -s conftest.$ac_objext'
40168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40169   (eval $ac_try) 2>&5
40170   ac_status=$?
40171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172   (exit $ac_status); }; }; then
40173   ac_header_compiler=yes
40174 else
40175   echo "$as_me: failed program was:" >&5
40176 sed 's/^/| /' conftest.$ac_ext >&5
40177
40178 ac_header_compiler=no
40179 fi
40180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40182 echo "${ECHO_T}$ac_header_compiler" >&6
40183
40184 # Is the header present?
40185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40187 cat >conftest.$ac_ext <<_ACEOF
40188 /* confdefs.h.  */
40189 _ACEOF
40190 cat confdefs.h >>conftest.$ac_ext
40191 cat >>conftest.$ac_ext <<_ACEOF
40192 /* end confdefs.h.  */
40193 #include <$ac_header>
40194 _ACEOF
40195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40197   ac_status=$?
40198   grep -v '^ *+' conftest.er1 >conftest.err
40199   rm -f conftest.er1
40200   cat conftest.err >&5
40201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202   (exit $ac_status); } >/dev/null; then
40203   if test -s conftest.err; then
40204     ac_cpp_err=$ac_c_preproc_warn_flag
40205     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40206   else
40207     ac_cpp_err=
40208   fi
40209 else
40210   ac_cpp_err=yes
40211 fi
40212 if test -z "$ac_cpp_err"; then
40213   ac_header_preproc=yes
40214 else
40215   echo "$as_me: failed program was:" >&5
40216 sed 's/^/| /' conftest.$ac_ext >&5
40217
40218   ac_header_preproc=no
40219 fi
40220 rm -f conftest.err conftest.$ac_ext
40221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40222 echo "${ECHO_T}$ac_header_preproc" >&6
40223
40224 # So?  What about this header?
40225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40226   yes:no: )
40227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40231     ac_header_preproc=yes
40232     ;;
40233   no:yes:* )
40234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40246     (
40247       cat <<\_ASBOX
40248 ## ------------------------------------------ ##
40249 ## Report this to the AC_PACKAGE_NAME lists.  ##
40250 ## ------------------------------------------ ##
40251 _ASBOX
40252     ) |
40253       sed "s/^/$as_me: WARNING:     /" >&2
40254     ;;
40255 esac
40256 echo "$as_me:$LINENO: checking for $ac_header" >&5
40257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40259   echo $ECHO_N "(cached) $ECHO_C" >&6
40260 else
40261   eval "$as_ac_Header=\$ac_header_preproc"
40262 fi
40263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40265
40266 fi
40267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40268   cat >>confdefs.h <<_ACEOF
40269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40270 _ACEOF
40271
40272 fi
40273
40274 done
40275
40276 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
40277 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
40278 if test "${cf_cv_arg_union_wait+set}" = set; then
40279   echo $ECHO_N "(cached) $ECHO_C" >&6
40280 else
40281   cat >conftest.$ac_ext <<_ACEOF
40282 /* confdefs.h.  */
40283 _ACEOF
40284 cat confdefs.h >>conftest.$ac_ext
40285 cat >>conftest.$ac_ext <<_ACEOF
40286 /* end confdefs.h.  */
40287
40288 #include <sys/types.h>
40289
40290 #if HAVE_SYS_WAIT_H
40291 # include <sys/wait.h>
40292 #else
40293 # if HAVE_WAIT_H
40294 #  include <wait.h>
40295 # endif
40296 #endif
40297
40298 #ifdef __STDC__
40299 pid_t wait(union wait *);
40300 #endif
40301
40302 int
40303 main ()
40304 {
40305
40306   union wait x; int i;
40307   wait(&x); i = WIFEXITED(x)
40308
40309   ;
40310   return 0;
40311 }
40312 _ACEOF
40313 rm -f conftest.$ac_objext
40314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40315   (eval $ac_compile) 2>conftest.er1
40316   ac_status=$?
40317   grep -v '^ *+' conftest.er1 >conftest.err
40318   rm -f conftest.er1
40319   cat conftest.err >&5
40320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321   (exit $ac_status); } &&
40322          { ac_try='test -z "$ac_c_werror_flag"
40323                          || test ! -s conftest.err'
40324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40325   (eval $ac_try) 2>&5
40326   ac_status=$?
40327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328   (exit $ac_status); }; } &&
40329          { ac_try='test -s conftest.$ac_objext'
40330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40331   (eval $ac_try) 2>&5
40332   ac_status=$?
40333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334   (exit $ac_status); }; }; then
40335   cf_cv_arg_union_wait=yes
40336 else
40337   echo "$as_me: failed program was:" >&5
40338 sed 's/^/| /' conftest.$ac_ext >&5
40339
40340 cf_cv_arg_union_wait=no
40341 fi
40342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40343 fi
40344 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
40345 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
40346 if test $cf_cv_arg_union_wait = yes; then
40347
40348 cat >>confdefs.h <<\_ACEOF
40349 #define WAIT_USES_UNION 1
40350 _ACEOF
40351
40352 fi
40353
40354
40355
40356
40357
40358 for ac_header in sys/wait.h wait.h
40359 do
40360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40362   echo "$as_me:$LINENO: checking for $ac_header" >&5
40363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40365   echo $ECHO_N "(cached) $ECHO_C" >&6
40366 fi
40367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40369 else
40370   # Is the header compilable?
40371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40373 cat >conftest.$ac_ext <<_ACEOF
40374 /* confdefs.h.  */
40375 _ACEOF
40376 cat confdefs.h >>conftest.$ac_ext
40377 cat >>conftest.$ac_ext <<_ACEOF
40378 /* end confdefs.h.  */
40379 $ac_includes_default
40380 #include <$ac_header>
40381 _ACEOF
40382 rm -f conftest.$ac_objext
40383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40384   (eval $ac_compile) 2>conftest.er1
40385   ac_status=$?
40386   grep -v '^ *+' conftest.er1 >conftest.err
40387   rm -f conftest.er1
40388   cat conftest.err >&5
40389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40390   (exit $ac_status); } &&
40391          { ac_try='test -z "$ac_c_werror_flag"
40392                          || test ! -s conftest.err'
40393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40394   (eval $ac_try) 2>&5
40395   ac_status=$?
40396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397   (exit $ac_status); }; } &&
40398          { ac_try='test -s conftest.$ac_objext'
40399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40400   (eval $ac_try) 2>&5
40401   ac_status=$?
40402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40403   (exit $ac_status); }; }; then
40404   ac_header_compiler=yes
40405 else
40406   echo "$as_me: failed program was:" >&5
40407 sed 's/^/| /' conftest.$ac_ext >&5
40408
40409 ac_header_compiler=no
40410 fi
40411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40413 echo "${ECHO_T}$ac_header_compiler" >&6
40414
40415 # Is the header present?
40416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40418 cat >conftest.$ac_ext <<_ACEOF
40419 /* confdefs.h.  */
40420 _ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h.  */
40424 #include <$ac_header>
40425 _ACEOF
40426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40428   ac_status=$?
40429   grep -v '^ *+' conftest.er1 >conftest.err
40430   rm -f conftest.er1
40431   cat conftest.err >&5
40432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40433   (exit $ac_status); } >/dev/null; then
40434   if test -s conftest.err; then
40435     ac_cpp_err=$ac_c_preproc_warn_flag
40436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40437   else
40438     ac_cpp_err=
40439   fi
40440 else
40441   ac_cpp_err=yes
40442 fi
40443 if test -z "$ac_cpp_err"; then
40444   ac_header_preproc=yes
40445 else
40446   echo "$as_me: failed program was:" >&5
40447 sed 's/^/| /' conftest.$ac_ext >&5
40448
40449   ac_header_preproc=no
40450 fi
40451 rm -f conftest.err conftest.$ac_ext
40452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40453 echo "${ECHO_T}$ac_header_preproc" >&6
40454
40455 # So?  What about this header?
40456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40457   yes:no: )
40458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40462     ac_header_preproc=yes
40463     ;;
40464   no:yes:* )
40465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40477     (
40478       cat <<\_ASBOX
40479 ## ------------------------------------------ ##
40480 ## Report this to the AC_PACKAGE_NAME lists.  ##
40481 ## ------------------------------------------ ##
40482 _ASBOX
40483     ) |
40484       sed "s/^/$as_me: WARNING:     /" >&2
40485     ;;
40486 esac
40487 echo "$as_me:$LINENO: checking for $ac_header" >&5
40488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40490   echo $ECHO_N "(cached) $ECHO_C" >&6
40491 else
40492   eval "$as_ac_Header=\$ac_header_preproc"
40493 fi
40494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40496
40497 fi
40498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40499   cat >>confdefs.h <<_ACEOF
40500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40501 _ACEOF
40502
40503 fi
40504
40505 done
40506
40507 echo "$as_me:$LINENO: checking whether wait uses int" >&5
40508 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
40509 if test "${cf_cv_arg_int+set}" = set; then
40510   echo $ECHO_N "(cached) $ECHO_C" >&6
40511 else
40512   cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h.  */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h.  */
40518
40519 #include <sys/types.h>
40520
40521 #if HAVE_SYS_WAIT_H
40522 # include <sys/wait.h>
40523 #else
40524 # if HAVE_WAIT_H
40525 #  include <wait.h>
40526 # endif
40527 #endif
40528
40529 #ifdef __STDC__
40530 pid_t wait(int *);
40531 #endif
40532
40533 int
40534 main ()
40535 {
40536
40537   int x; int i;
40538   wait(&x); i = WIFEXITED(x)
40539
40540   ;
40541   return 0;
40542 }
40543 _ACEOF
40544 rm -f conftest.$ac_objext
40545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40546   (eval $ac_compile) 2>conftest.er1
40547   ac_status=$?
40548   grep -v '^ *+' conftest.er1 >conftest.err
40549   rm -f conftest.er1
40550   cat conftest.err >&5
40551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40552   (exit $ac_status); } &&
40553          { ac_try='test -z "$ac_c_werror_flag"
40554                          || test ! -s conftest.err'
40555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40556   (eval $ac_try) 2>&5
40557   ac_status=$?
40558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559   (exit $ac_status); }; } &&
40560          { ac_try='test -s conftest.$ac_objext'
40561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40562   (eval $ac_try) 2>&5
40563   ac_status=$?
40564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40565   (exit $ac_status); }; }; then
40566   cf_cv_arg_int=yes
40567 else
40568   echo "$as_me: failed program was:" >&5
40569 sed 's/^/| /' conftest.$ac_ext >&5
40570
40571 cf_cv_arg_int=no
40572 fi
40573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40574 fi
40575 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
40576 echo "${ECHO_T}$cf_cv_arg_int" >&6
40577 if test $cf_cv_arg_int = yes; then
40578
40579 cat >>confdefs.h <<\_ACEOF
40580 #define WAIT_USES_INT 1
40581 _ACEOF
40582
40583 fi
40584
40585 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
40586 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
40587 if test "${ac_cv_header_time+set}" = set; then
40588   echo $ECHO_N "(cached) $ECHO_C" >&6
40589 else
40590   cat >conftest.$ac_ext <<_ACEOF
40591 /* confdefs.h.  */
40592 _ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h.  */
40596 #include <sys/types.h>
40597 #include <sys/time.h>
40598 #include <time.h>
40599
40600 int
40601 main ()
40602 {
40603 if ((struct tm *) 0)
40604 return 0;
40605   ;
40606   return 0;
40607 }
40608 _ACEOF
40609 rm -f conftest.$ac_objext
40610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40611   (eval $ac_compile) 2>conftest.er1
40612   ac_status=$?
40613   grep -v '^ *+' conftest.er1 >conftest.err
40614   rm -f conftest.er1
40615   cat conftest.err >&5
40616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617   (exit $ac_status); } &&
40618          { ac_try='test -z "$ac_c_werror_flag"
40619                          || test ! -s conftest.err'
40620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40621   (eval $ac_try) 2>&5
40622   ac_status=$?
40623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624   (exit $ac_status); }; } &&
40625          { ac_try='test -s conftest.$ac_objext'
40626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40627   (eval $ac_try) 2>&5
40628   ac_status=$?
40629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630   (exit $ac_status); }; }; then
40631   ac_cv_header_time=yes
40632 else
40633   echo "$as_me: failed program was:" >&5
40634 sed 's/^/| /' conftest.$ac_ext >&5
40635
40636 ac_cv_header_time=no
40637 fi
40638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40639 fi
40640 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
40641 echo "${ECHO_T}$ac_cv_header_time" >&6
40642 if test $ac_cv_header_time = yes; then
40643
40644 cat >>confdefs.h <<\_ACEOF
40645 #define TIME_WITH_SYS_TIME 1
40646 _ACEOF
40647
40648 fi
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711 for ac_header in \
40712         arpa/inet.h \
40713         camlib.h \
40714         cam/cam.h \
40715         cam/scsi/scsi_message.h \
40716         chio.h \
40717         db.h \
40718         dbm.h \
40719         fcntl.h \
40720         fnmatch.h \
40721         fstab.h \
40722         grp.h \
40723         history.h \
40724         libc.h \
40725         libgen.h \
40726         limits.h \
40727         linux/zftape.h \
40728         math.h \
40729         mntent.h \
40730         mnttab.h \
40731         ndbm.h \
40732         netdb.h \
40733         netinet/in_systm.h \
40734         readline.h \
40735         readline/history.h \
40736         readline/readline.h \
40737         scsi/sg.h \
40738         scsi/scsi_ioctl.h \
40739         stdarg.h \
40740         stdlib.h \
40741         string.h \
40742         strings.h \
40743         sys/chio.h \
40744         sys/dsreq.h \
40745         sys/fcntl.h \
40746         sys/file.h \
40747         sys/ioctl.h \
40748         sys/ipc.h \
40749         sys/mman.h \
40750         sys/mntent.h \
40751         sys/mtio.h \
40752         sys/param.h \
40753         sys/scarray.h \
40754         sys/gscdds.h \
40755         sys/scsiio.h \
40756         sys/scsi.h \
40757         sys/scsi/impl/uscsi.h \
40758         sys/scsi/scsi/ioctl.h \
40759         sys/select.h \
40760         sys/shm.h \
40761         sys/stat.h \
40762         sys/statfs.h \
40763         sys/statvfs.h \
40764         sys/tape.h \
40765         sys/time.h \
40766         sys/types.h \
40767         sys/uio.h \
40768         sys/vfs.h \
40769         sys/vfstab.h \
40770         syslog.h \
40771         unistd.h \
40772         vtblc.h \
40773
40774 do
40775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40777   echo "$as_me:$LINENO: checking for $ac_header" >&5
40778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40780   echo $ECHO_N "(cached) $ECHO_C" >&6
40781 fi
40782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40784 else
40785   # Is the header compilable?
40786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40788 cat >conftest.$ac_ext <<_ACEOF
40789 /* confdefs.h.  */
40790 _ACEOF
40791 cat confdefs.h >>conftest.$ac_ext
40792 cat >>conftest.$ac_ext <<_ACEOF
40793 /* end confdefs.h.  */
40794 $ac_includes_default
40795 #include <$ac_header>
40796 _ACEOF
40797 rm -f conftest.$ac_objext
40798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40799   (eval $ac_compile) 2>conftest.er1
40800   ac_status=$?
40801   grep -v '^ *+' conftest.er1 >conftest.err
40802   rm -f conftest.er1
40803   cat conftest.err >&5
40804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805   (exit $ac_status); } &&
40806          { ac_try='test -z "$ac_c_werror_flag"
40807                          || test ! -s conftest.err'
40808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809   (eval $ac_try) 2>&5
40810   ac_status=$?
40811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812   (exit $ac_status); }; } &&
40813          { ac_try='test -s conftest.$ac_objext'
40814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815   (eval $ac_try) 2>&5
40816   ac_status=$?
40817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818   (exit $ac_status); }; }; then
40819   ac_header_compiler=yes
40820 else
40821   echo "$as_me: failed program was:" >&5
40822 sed 's/^/| /' conftest.$ac_ext >&5
40823
40824 ac_header_compiler=no
40825 fi
40826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40828 echo "${ECHO_T}$ac_header_compiler" >&6
40829
40830 # Is the header present?
40831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40833 cat >conftest.$ac_ext <<_ACEOF
40834 /* confdefs.h.  */
40835 _ACEOF
40836 cat confdefs.h >>conftest.$ac_ext
40837 cat >>conftest.$ac_ext <<_ACEOF
40838 /* end confdefs.h.  */
40839 #include <$ac_header>
40840 _ACEOF
40841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40843   ac_status=$?
40844   grep -v '^ *+' conftest.er1 >conftest.err
40845   rm -f conftest.er1
40846   cat conftest.err >&5
40847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848   (exit $ac_status); } >/dev/null; then
40849   if test -s conftest.err; then
40850     ac_cpp_err=$ac_c_preproc_warn_flag
40851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40852   else
40853     ac_cpp_err=
40854   fi
40855 else
40856   ac_cpp_err=yes
40857 fi
40858 if test -z "$ac_cpp_err"; then
40859   ac_header_preproc=yes
40860 else
40861   echo "$as_me: failed program was:" >&5
40862 sed 's/^/| /' conftest.$ac_ext >&5
40863
40864   ac_header_preproc=no
40865 fi
40866 rm -f conftest.err conftest.$ac_ext
40867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40868 echo "${ECHO_T}$ac_header_preproc" >&6
40869
40870 # So?  What about this header?
40871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40872   yes:no: )
40873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40877     ac_header_preproc=yes
40878     ;;
40879   no:yes:* )
40880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40892     (
40893       cat <<\_ASBOX
40894 ## ------------------------------------------ ##
40895 ## Report this to the AC_PACKAGE_NAME lists.  ##
40896 ## ------------------------------------------ ##
40897 _ASBOX
40898     ) |
40899       sed "s/^/$as_me: WARNING:     /" >&2
40900     ;;
40901 esac
40902 echo "$as_me:$LINENO: checking for $ac_header" >&5
40903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40905   echo $ECHO_N "(cached) $ECHO_C" >&6
40906 else
40907   eval "$as_ac_Header=\$ac_header_preproc"
40908 fi
40909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40911
40912 fi
40913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40914   cat >>confdefs.h <<_ACEOF
40915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40916 _ACEOF
40917
40918 fi
40919
40920 done
40921
40922
40923
40924 for ac_header in netinet/ip.h
40925 do
40926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40927 echo "$as_me:$LINENO: checking for $ac_header" >&5
40928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40930   echo $ECHO_N "(cached) $ECHO_C" >&6
40931 else
40932   cat >conftest.$ac_ext <<_ACEOF
40933 /* confdefs.h.  */
40934 _ACEOF
40935 cat confdefs.h >>conftest.$ac_ext
40936 cat >>conftest.$ac_ext <<_ACEOF
40937 /* end confdefs.h.  */
40938 #include <sys/socket.h>
40939 #if HAVE_SYS_TYPES_H
40940 #include <sys/types.h>
40941 #endif
40942 #ifdef HAVE_NETINET_IN_SYSTM_H
40943 #include <netinet/in_systm.h>
40944 #endif
40945 #include <netinet/in.h>
40946
40947
40948 #include <$ac_header>
40949 _ACEOF
40950 rm -f conftest.$ac_objext
40951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40952   (eval $ac_compile) 2>conftest.er1
40953   ac_status=$?
40954   grep -v '^ *+' conftest.er1 >conftest.err
40955   rm -f conftest.er1
40956   cat conftest.err >&5
40957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40958   (exit $ac_status); } &&
40959          { ac_try='test -z "$ac_c_werror_flag"
40960                          || test ! -s conftest.err'
40961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40962   (eval $ac_try) 2>&5
40963   ac_status=$?
40964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965   (exit $ac_status); }; } &&
40966          { ac_try='test -s conftest.$ac_objext'
40967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968   (eval $ac_try) 2>&5
40969   ac_status=$?
40970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971   (exit $ac_status); }; }; then
40972   eval "$as_ac_Header=yes"
40973 else
40974   echo "$as_me: failed program was:" >&5
40975 sed 's/^/| /' conftest.$ac_ext >&5
40976
40977 eval "$as_ac_Header=no"
40978 fi
40979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40980 fi
40981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40984   cat >>confdefs.h <<_ACEOF
40985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40986 _ACEOF
40987
40988 fi
40989
40990 done
40991
40992
40993
40994 for ac_header in sys/mount.h
40995 do
40996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40997 echo "$as_me:$LINENO: checking for $ac_header" >&5
40998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41000   echo $ECHO_N "(cached) $ECHO_C" >&6
41001 else
41002   cat >conftest.$ac_ext <<_ACEOF
41003 /* confdefs.h.  */
41004 _ACEOF
41005 cat confdefs.h >>conftest.$ac_ext
41006 cat >>conftest.$ac_ext <<_ACEOF
41007 /* end confdefs.h.  */
41008 #ifdef HAVE_SYS_PARAM_H
41009 #include <sys/param.h>
41010 #endif
41011
41012
41013 #include <$ac_header>
41014 _ACEOF
41015 rm -f conftest.$ac_objext
41016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41017   (eval $ac_compile) 2>conftest.er1
41018   ac_status=$?
41019   grep -v '^ *+' conftest.er1 >conftest.err
41020   rm -f conftest.er1
41021   cat conftest.err >&5
41022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023   (exit $ac_status); } &&
41024          { ac_try='test -z "$ac_c_werror_flag"
41025                          || test ! -s conftest.err'
41026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027   (eval $ac_try) 2>&5
41028   ac_status=$?
41029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030   (exit $ac_status); }; } &&
41031          { ac_try='test -s conftest.$ac_objext'
41032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41033   (eval $ac_try) 2>&5
41034   ac_status=$?
41035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41036   (exit $ac_status); }; }; then
41037   eval "$as_ac_Header=yes"
41038 else
41039   echo "$as_me: failed program was:" >&5
41040 sed 's/^/| /' conftest.$ac_ext >&5
41041
41042 eval "$as_ac_Header=no"
41043 fi
41044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41045 fi
41046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41049   cat >>confdefs.h <<_ACEOF
41050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41051 _ACEOF
41052
41053 fi
41054
41055 done
41056
41057
41058 NO_SCSI_CHANGER_MODE=true
41059 NO_CHIO_CHANGER_MODE=true
41060
41061 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
41062 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
41063 if test "${ac_cv_c_bigendian+set}" = set; then
41064   echo $ECHO_N "(cached) $ECHO_C" >&6
41065 else
41066   # See if sys/param.h defines the BYTE_ORDER macro.
41067 cat >conftest.$ac_ext <<_ACEOF
41068 /* confdefs.h.  */
41069 _ACEOF
41070 cat confdefs.h >>conftest.$ac_ext
41071 cat >>conftest.$ac_ext <<_ACEOF
41072 /* end confdefs.h.  */
41073 #include <sys/types.h>
41074 #include <sys/param.h>
41075
41076 int
41077 main ()
41078 {
41079 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
41080  bogus endian macros
41081 #endif
41082
41083   ;
41084   return 0;
41085 }
41086 _ACEOF
41087 rm -f conftest.$ac_objext
41088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41089   (eval $ac_compile) 2>conftest.er1
41090   ac_status=$?
41091   grep -v '^ *+' conftest.er1 >conftest.err
41092   rm -f conftest.er1
41093   cat conftest.err >&5
41094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41095   (exit $ac_status); } &&
41096          { ac_try='test -z "$ac_c_werror_flag"
41097                          || test ! -s conftest.err'
41098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41099   (eval $ac_try) 2>&5
41100   ac_status=$?
41101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41102   (exit $ac_status); }; } &&
41103          { ac_try='test -s conftest.$ac_objext'
41104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41105   (eval $ac_try) 2>&5
41106   ac_status=$?
41107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41108   (exit $ac_status); }; }; then
41109   # It does; now see whether it defined to BIG_ENDIAN or not.
41110 cat >conftest.$ac_ext <<_ACEOF
41111 /* confdefs.h.  */
41112 _ACEOF
41113 cat confdefs.h >>conftest.$ac_ext
41114 cat >>conftest.$ac_ext <<_ACEOF
41115 /* end confdefs.h.  */
41116 #include <sys/types.h>
41117 #include <sys/param.h>
41118
41119 int
41120 main ()
41121 {
41122 #if BYTE_ORDER != BIG_ENDIAN
41123  not big endian
41124 #endif
41125
41126   ;
41127   return 0;
41128 }
41129 _ACEOF
41130 rm -f conftest.$ac_objext
41131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41132   (eval $ac_compile) 2>conftest.er1
41133   ac_status=$?
41134   grep -v '^ *+' conftest.er1 >conftest.err
41135   rm -f conftest.er1
41136   cat conftest.err >&5
41137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41138   (exit $ac_status); } &&
41139          { ac_try='test -z "$ac_c_werror_flag"
41140                          || test ! -s conftest.err'
41141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41142   (eval $ac_try) 2>&5
41143   ac_status=$?
41144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41145   (exit $ac_status); }; } &&
41146          { ac_try='test -s conftest.$ac_objext'
41147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41148   (eval $ac_try) 2>&5
41149   ac_status=$?
41150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151   (exit $ac_status); }; }; then
41152   ac_cv_c_bigendian=yes
41153 else
41154   echo "$as_me: failed program was:" >&5
41155 sed 's/^/| /' conftest.$ac_ext >&5
41156
41157 ac_cv_c_bigendian=no
41158 fi
41159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41160 else
41161   echo "$as_me: failed program was:" >&5
41162 sed 's/^/| /' conftest.$ac_ext >&5
41163
41164 # It does not; compile a test program.
41165 if test "$cross_compiling" = yes; then
41166   # try to guess the endianness by grepping values into an object file
41167   ac_cv_c_bigendian=unknown
41168   cat >conftest.$ac_ext <<_ACEOF
41169 /* confdefs.h.  */
41170 _ACEOF
41171 cat confdefs.h >>conftest.$ac_ext
41172 cat >>conftest.$ac_ext <<_ACEOF
41173 /* end confdefs.h.  */
41174 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
41175 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
41176 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
41177 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
41178 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
41179 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
41180 int
41181 main ()
41182 {
41183  _ascii (); _ebcdic ();
41184   ;
41185   return 0;
41186 }
41187 _ACEOF
41188 rm -f conftest.$ac_objext
41189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41190   (eval $ac_compile) 2>conftest.er1
41191   ac_status=$?
41192   grep -v '^ *+' conftest.er1 >conftest.err
41193   rm -f conftest.er1
41194   cat conftest.err >&5
41195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196   (exit $ac_status); } &&
41197          { ac_try='test -z "$ac_c_werror_flag"
41198                          || test ! -s conftest.err'
41199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41200   (eval $ac_try) 2>&5
41201   ac_status=$?
41202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203   (exit $ac_status); }; } &&
41204          { ac_try='test -s conftest.$ac_objext'
41205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41206   (eval $ac_try) 2>&5
41207   ac_status=$?
41208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41209   (exit $ac_status); }; }; then
41210   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
41211   ac_cv_c_bigendian=yes
41212 fi
41213 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
41214   if test "$ac_cv_c_bigendian" = unknown; then
41215     ac_cv_c_bigendian=no
41216   else
41217     # finding both strings is unlikely to happen, but who knows?
41218     ac_cv_c_bigendian=unknown
41219   fi
41220 fi
41221 else
41222   echo "$as_me: failed program was:" >&5
41223 sed 's/^/| /' conftest.$ac_ext >&5
41224
41225 fi
41226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41227 else
41228   cat >conftest.$ac_ext <<_ACEOF
41229 /* confdefs.h.  */
41230 _ACEOF
41231 cat confdefs.h >>conftest.$ac_ext
41232 cat >>conftest.$ac_ext <<_ACEOF
41233 /* end confdefs.h.  */
41234 int
41235 main ()
41236 {
41237   /* Are we little or big endian?  From Harbison&Steele.  */
41238   union
41239   {
41240     long l;
41241     char c[sizeof (long)];
41242   } u;
41243   u.l = 1;
41244   exit (u.c[sizeof (long) - 1] == 1);
41245 }
41246 _ACEOF
41247 rm -f conftest$ac_exeext
41248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41249   (eval $ac_link) 2>&5
41250   ac_status=$?
41251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41254   (eval $ac_try) 2>&5
41255   ac_status=$?
41256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257   (exit $ac_status); }; }; then
41258   ac_cv_c_bigendian=no
41259 else
41260   echo "$as_me: program exited with status $ac_status" >&5
41261 echo "$as_me: failed program was:" >&5
41262 sed 's/^/| /' conftest.$ac_ext >&5
41263
41264 ( exit $ac_status )
41265 ac_cv_c_bigendian=yes
41266 fi
41267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41268 fi
41269 fi
41270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41271 fi
41272 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
41273 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
41274 case $ac_cv_c_bigendian in
41275   yes)
41276
41277 cat >>confdefs.h <<\_ACEOF
41278 #define WORDS_BIGENDIAN 1
41279 _ACEOF
41280  ;;
41281   no)
41282      ;;
41283   *)
41284     { { echo "$as_me:$LINENO: error: unknown endianness
41285 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
41286 echo "$as_me: error: unknown endianness
41287 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
41288    { (exit 1); exit 1; }; } ;;
41289 esac
41290
41291
41292 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
41293     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
41294 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
41295 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
41296   echo $ECHO_N "(cached) $ECHO_C" >&6
41297 else
41298   cat >conftest.$ac_ext <<_ACEOF
41299 /* confdefs.h.  */
41300 _ACEOF
41301 cat confdefs.h >>conftest.$ac_ext
41302 cat >>conftest.$ac_ext <<_ACEOF
41303 /* end confdefs.h.  */
41304
41305 #include <sys/scsi.h>
41306
41307 int
41308 main ()
41309 {
41310
41311         static struct element_addresses changer_info;
41312         int i = SIOC_ELEMENT_ADDRESSES;
41313         int j = SIOC_ELEMENT_STATUS;
41314         int k = SIOC_MOVE_MEDIUM;
41315
41316   ;
41317   return 0;
41318 }
41319 _ACEOF
41320 rm -f conftest.$ac_objext
41321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41322   (eval $ac_compile) 2>conftest.er1
41323   ac_status=$?
41324   grep -v '^ *+' conftest.er1 >conftest.err
41325   rm -f conftest.er1
41326   cat conftest.err >&5
41327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41328   (exit $ac_status); } &&
41329          { ac_try='test -z "$ac_c_werror_flag"
41330                          || test ! -s conftest.err'
41331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41332   (eval $ac_try) 2>&5
41333   ac_status=$?
41334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41335   (exit $ac_status); }; } &&
41336          { ac_try='test -s conftest.$ac_objext'
41337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41338   (eval $ac_try) 2>&5
41339   ac_status=$?
41340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41341   (exit $ac_status); }; }; then
41342   amanda_cv_hpux_scsi_chio=yes
41343 else
41344   echo "$as_me: failed program was:" >&5
41345 sed 's/^/| /' conftest.$ac_ext >&5
41346
41347 amanda_cv_hpux_scsi_chio=no
41348 fi
41349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41350 fi
41351 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
41352 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
41353     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
41354
41355 cat >>confdefs.h <<\_ACEOF
41356 #define HAVE_HPUX_SCSI_CHIO 1
41357 _ACEOF
41358
41359         NO_SCSI_CHANGER_MODE=false
41360     fi
41361 fi
41362
41363 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41364    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
41365         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
41366 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
41367 if test "${amanda_cv_linux_scsi+set}" = set; then
41368   echo $ECHO_N "(cached) $ECHO_C" >&6
41369 else
41370   cat >conftest.$ac_ext <<_ACEOF
41371 /* confdefs.h.  */
41372 _ACEOF
41373 cat confdefs.h >>conftest.$ac_ext
41374 cat >>conftest.$ac_ext <<_ACEOF
41375 /* end confdefs.h.  */
41376
41377 #include <scsi/scsi_ioctl.h>
41378 #include <sys/mtio.h>
41379
41380 int
41381 main ()
41382 {
41383
41384         int device;
41385         char *Command;
41386         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
41387
41388   ;
41389   return 0;
41390 }
41391 _ACEOF
41392 rm -f conftest.$ac_objext
41393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41394   (eval $ac_compile) 2>conftest.er1
41395   ac_status=$?
41396   grep -v '^ *+' conftest.er1 >conftest.err
41397   rm -f conftest.er1
41398   cat conftest.err >&5
41399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41400   (exit $ac_status); } &&
41401          { ac_try='test -z "$ac_c_werror_flag"
41402                          || test ! -s conftest.err'
41403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41404   (eval $ac_try) 2>&5
41405   ac_status=$?
41406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41407   (exit $ac_status); }; } &&
41408          { ac_try='test -s conftest.$ac_objext'
41409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41410   (eval $ac_try) 2>&5
41411   ac_status=$?
41412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413   (exit $ac_status); }; }; then
41414   amanda_cv_linux_scsi=yes
41415 else
41416   echo "$as_me: failed program was:" >&5
41417 sed 's/^/| /' conftest.$ac_ext >&5
41418
41419 amanda_cv_linux_scsi=no
41420 fi
41421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41422 fi
41423 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
41424 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
41425 fi
41426
41427 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41428    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
41429         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
41430 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
41431 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
41432   echo $ECHO_N "(cached) $ECHO_C" >&6
41433 else
41434   cat >conftest.$ac_ext <<_ACEOF
41435 /* confdefs.h.  */
41436 _ACEOF
41437 cat confdefs.h >>conftest.$ac_ext
41438 cat >>conftest.$ac_ext <<_ACEOF
41439 /* end confdefs.h.  */
41440
41441 #include <sys/types.h>
41442 #include <scsi/sg.h>
41443 #include <sys/mtio.h>
41444
41445 int
41446 main ()
41447 {
41448
41449         int device;
41450         struct sg_header *psg_header;
41451         char *buffer;
41452         write(device, buffer, 1);
41453
41454   ;
41455   return 0;
41456 }
41457 _ACEOF
41458 rm -f conftest.$ac_objext
41459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41460   (eval $ac_compile) 2>conftest.er1
41461   ac_status=$?
41462   grep -v '^ *+' conftest.er1 >conftest.err
41463   rm -f conftest.er1
41464   cat conftest.err >&5
41465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466   (exit $ac_status); } &&
41467          { ac_try='test -z "$ac_c_werror_flag"
41468                          || test ! -s conftest.err'
41469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41470   (eval $ac_try) 2>&5
41471   ac_status=$?
41472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41473   (exit $ac_status); }; } &&
41474          { ac_try='test -s conftest.$ac_objext'
41475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41476   (eval $ac_try) 2>&5
41477   ac_status=$?
41478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479   (exit $ac_status); }; }; then
41480   amanda_cv_linux_sg_scsi=yes
41481 else
41482   echo "$as_me: failed program was:" >&5
41483 sed 's/^/| /' conftest.$ac_ext >&5
41484
41485 amanda_cv_linux_sg_scsi=no
41486 fi
41487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41488 fi
41489 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
41490 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
41491 fi
41492
41493 if test x"$amanda_cv_linux_scsi" = x"yes" ||
41494  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
41495
41496 cat >>confdefs.h <<\_ACEOF
41497 #define HAVE_LINUX_LIKE_SCSI 1
41498 _ACEOF
41499
41500         NO_SCSI_CHANGER_MODE=false
41501 fi
41502
41503 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41504    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
41505         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
41506 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
41507 if test "${amanda_cv_hpux_scsi+set}" = set; then
41508   echo $ECHO_N "(cached) $ECHO_C" >&6
41509 else
41510   cat >conftest.$ac_ext <<_ACEOF
41511 /* confdefs.h.  */
41512 _ACEOF
41513 cat confdefs.h >>conftest.$ac_ext
41514 cat >>conftest.$ac_ext <<_ACEOF
41515 /* end confdefs.h.  */
41516
41517 #include <stdio.h>
41518 #include <sys/ioctl.h>
41519 #include <sys/scsi.h>
41520 #include <sys/mtio.h>
41521
41522 int
41523 main ()
41524 {
41525
41526         int device;
41527         char *Command;
41528         ioctl(device, SIOC_IO, Command);
41529
41530   ;
41531   return 0;
41532 }
41533 _ACEOF
41534 rm -f conftest.$ac_objext
41535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41536   (eval $ac_compile) 2>conftest.er1
41537   ac_status=$?
41538   grep -v '^ *+' conftest.er1 >conftest.err
41539   rm -f conftest.er1
41540   cat conftest.err >&5
41541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41542   (exit $ac_status); } &&
41543          { ac_try='test -z "$ac_c_werror_flag"
41544                          || test ! -s conftest.err'
41545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41546   (eval $ac_try) 2>&5
41547   ac_status=$?
41548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41549   (exit $ac_status); }; } &&
41550          { ac_try='test -s conftest.$ac_objext'
41551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41552   (eval $ac_try) 2>&5
41553   ac_status=$?
41554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555   (exit $ac_status); }; }; then
41556   amanda_cv_hpux_scsi=yes
41557 else
41558   echo "$as_me: failed program was:" >&5
41559 sed 's/^/| /' conftest.$ac_ext >&5
41560
41561 amanda_cv_hpux_scsi=no
41562 fi
41563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41564 fi
41565 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
41566 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
41567         if test x"$amanda_cv_hpux_scsi" = x"yes";then
41568
41569 cat >>confdefs.h <<\_ACEOF
41570 #define HAVE_HPUX_LIKE_SCSI 1
41571 _ACEOF
41572
41573                 NO_SCSI_CHANGER_MODE=false
41574                 NO_CHIO_CHANGER_MODE=false
41575         fi
41576 fi
41577
41578 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41579    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
41580         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
41581 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
41582 if test "${amanda_cv_irix_scsi+set}" = set; then
41583   echo $ECHO_N "(cached) $ECHO_C" >&6
41584 else
41585   cat >conftest.$ac_ext <<_ACEOF
41586 /* confdefs.h.  */
41587 _ACEOF
41588 cat confdefs.h >>conftest.$ac_ext
41589 cat >>conftest.$ac_ext <<_ACEOF
41590 /* end confdefs.h.  */
41591
41592 #include <sys/types.h>
41593 #include <sys/dsreq.h>
41594 #include <sys/mtio.h>
41595
41596 int
41597 main ()
41598 {
41599
41600         int device=1;
41601         char Command;
41602         ioctl(device, DS_ENTER, &Command);
41603
41604   ;
41605   return 0;
41606 }
41607 _ACEOF
41608 rm -f conftest.$ac_objext
41609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41610   (eval $ac_compile) 2>conftest.er1
41611   ac_status=$?
41612   grep -v '^ *+' conftest.er1 >conftest.err
41613   rm -f conftest.er1
41614   cat conftest.err >&5
41615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41616   (exit $ac_status); } &&
41617          { ac_try='test -z "$ac_c_werror_flag"
41618                          || test ! -s conftest.err'
41619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41620   (eval $ac_try) 2>&5
41621   ac_status=$?
41622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623   (exit $ac_status); }; } &&
41624          { ac_try='test -s conftest.$ac_objext'
41625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41626   (eval $ac_try) 2>&5
41627   ac_status=$?
41628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41629   (exit $ac_status); }; }; then
41630   amanda_cv_irix_scsi=yes
41631 else
41632   echo "$as_me: failed program was:" >&5
41633 sed 's/^/| /' conftest.$ac_ext >&5
41634
41635 amanda_cv_irix_scsi=no
41636 fi
41637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41638 fi
41639 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
41640 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
41641         if test x"$amanda_cv_irix_scsi" = x"yes";then
41642
41643 cat >>confdefs.h <<\_ACEOF
41644 #define HAVE_IRIX_LIKE_SCSI 1
41645 _ACEOF
41646
41647                 NO_SCSI_CHANGER_MODE=false
41648         fi
41649 fi
41650
41651 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41652    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
41653         echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
41654 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
41655 if test "${amanda_cv_solaris_scsi+set}" = set; then
41656   echo $ECHO_N "(cached) $ECHO_C" >&6
41657 else
41658   cat >conftest.$ac_ext <<_ACEOF
41659 /* confdefs.h.  */
41660 _ACEOF
41661 cat confdefs.h >>conftest.$ac_ext
41662 cat >>conftest.$ac_ext <<_ACEOF
41663 /* end confdefs.h.  */
41664
41665 #include <sys/types.h>
41666 #include <sys/scsi/impl/uscsi.h>
41667 #include <sys/mtio.h>
41668
41669 int
41670 main ()
41671 {
41672
41673         int device;
41674         char *Command;
41675         ioctl(device, USCSICMD, Command);
41676
41677   ;
41678   return 0;
41679 }
41680 _ACEOF
41681 rm -f conftest.$ac_objext
41682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41683   (eval $ac_compile) 2>conftest.er1
41684   ac_status=$?
41685   grep -v '^ *+' conftest.er1 >conftest.err
41686   rm -f conftest.er1
41687   cat conftest.err >&5
41688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41689   (exit $ac_status); } &&
41690          { ac_try='test -z "$ac_c_werror_flag"
41691                          || test ! -s conftest.err'
41692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693   (eval $ac_try) 2>&5
41694   ac_status=$?
41695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696   (exit $ac_status); }; } &&
41697          { ac_try='test -s conftest.$ac_objext'
41698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41699   (eval $ac_try) 2>&5
41700   ac_status=$?
41701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); }; }; then
41703   amanda_cv_solaris_scsi=yes
41704 else
41705   echo "$as_me: failed program was:" >&5
41706 sed 's/^/| /' conftest.$ac_ext >&5
41707
41708 amanda_cv_solaris_scsi=no
41709 fi
41710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41711 fi
41712 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
41713 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
41714         if test x"$amanda_cv_solaris_scsi" = x"yes";then
41715
41716 cat >>confdefs.h <<\_ACEOF
41717 #define HAVE_SOLARIS_LIKE_SCSI 1
41718 _ACEOF
41719
41720                 NO_SCSI_CHANGER_MODE=false
41721         fi
41722 fi
41723
41724 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
41725    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
41726    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
41727         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
41728 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
41729 if test "${amanda_cv_aix_scsi+set}" = set; then
41730   echo $ECHO_N "(cached) $ECHO_C" >&6
41731 else
41732   cat >conftest.$ac_ext <<_ACEOF
41733 /* confdefs.h.  */
41734 _ACEOF
41735 cat confdefs.h >>conftest.$ac_ext
41736 cat >>conftest.$ac_ext <<_ACEOF
41737 /* end confdefs.h.  */
41738
41739 #include <sys/types.h>
41740 #include <sys/scarray.h>
41741 #include <sys/tape.h>
41742
41743 int
41744 main ()
41745 {
41746
41747         int device;
41748         char *Command;
41749         ioctl(device, STIOCMD, Command);
41750
41751   ;
41752   return 0;
41753 }
41754 _ACEOF
41755 rm -f conftest.$ac_objext
41756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41757   (eval $ac_compile) 2>conftest.er1
41758   ac_status=$?
41759   grep -v '^ *+' conftest.er1 >conftest.err
41760   rm -f conftest.er1
41761   cat conftest.err >&5
41762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41763   (exit $ac_status); } &&
41764          { ac_try='test -z "$ac_c_werror_flag"
41765                          || test ! -s conftest.err'
41766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41767   (eval $ac_try) 2>&5
41768   ac_status=$?
41769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41770   (exit $ac_status); }; } &&
41771          { ac_try='test -s conftest.$ac_objext'
41772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41773   (eval $ac_try) 2>&5
41774   ac_status=$?
41775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776   (exit $ac_status); }; }; then
41777   amanda_cv_aix_scsi=yes
41778 else
41779   echo "$as_me: failed program was:" >&5
41780 sed 's/^/| /' conftest.$ac_ext >&5
41781
41782 amanda_cv_aix_scsi=no
41783 fi
41784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41785 fi
41786 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
41787 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
41788         if test x"$amanda_cv_aix_scsi" = x"yes";then
41789
41790 cat >>confdefs.h <<\_ACEOF
41791 #define HAVE_AIX_LIKE_SCSI 1
41792 _ACEOF
41793
41794                 NO_SCSI_CHANGER_MODE=false
41795         fi
41796 fi
41797 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
41798         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
41799 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
41800 if test "${amanda_cv_cam_scsi+set}" = set; then
41801   echo $ECHO_N "(cached) $ECHO_C" >&6
41802 else
41803   cat >conftest.$ac_ext <<_ACEOF
41804 /* confdefs.h.  */
41805 _ACEOF
41806 cat confdefs.h >>conftest.$ac_ext
41807 cat >>conftest.$ac_ext <<_ACEOF
41808 /* end confdefs.h.  */
41809
41810 #include <stdio.h>
41811 # include <fcntl.h>
41812 # include <cam/cam.h>
41813 # include <cam/cam_ccb.h>
41814 # include <cam/scsi/scsi_message.h>
41815 # include <cam/scsi/scsi_pass.h>
41816 # include <camlib.h>
41817
41818 int
41819 main ()
41820 {
41821
41822         struct cam_device *curdev;
41823
41824         curdev = cam_open_pass("", O_RDWR, NULL);
41825
41826   ;
41827   return 0;
41828 }
41829 _ACEOF
41830 rm -f conftest.$ac_objext
41831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41832   (eval $ac_compile) 2>conftest.er1
41833   ac_status=$?
41834   grep -v '^ *+' conftest.er1 >conftest.err
41835   rm -f conftest.er1
41836   cat conftest.err >&5
41837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838   (exit $ac_status); } &&
41839          { ac_try='test -z "$ac_c_werror_flag"
41840                          || test ! -s conftest.err'
41841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41842   (eval $ac_try) 2>&5
41843   ac_status=$?
41844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41845   (exit $ac_status); }; } &&
41846          { ac_try='test -s conftest.$ac_objext'
41847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41848   (eval $ac_try) 2>&5
41849   ac_status=$?
41850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41851   (exit $ac_status); }; }; then
41852   amanda_cv_cam_scsi=yes
41853 else
41854   echo "$as_me: failed program was:" >&5
41855 sed 's/^/| /' conftest.$ac_ext >&5
41856
41857 amanda_cv_cam_scsi=no
41858 fi
41859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41860 fi
41861 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
41862 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
41863         if test x"$amanda_cv_cam_scsi" = x"yes";then
41864
41865 cat >>confdefs.h <<\_ACEOF
41866 #define HAVE_CAM_LIKE_SCSI 1
41867 _ACEOF
41868
41869                 NO_SCSI_CHANGER_MODE=false
41870
41871 echo "$as_me:$LINENO: checking for main in -lcam" >&5
41872 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
41873 if test "${ac_cv_lib_cam_main+set}" = set; then
41874   echo $ECHO_N "(cached) $ECHO_C" >&6
41875 else
41876   ac_check_lib_save_LIBS=$LIBS
41877 LIBS="-lcam  $LIBS"
41878 cat >conftest.$ac_ext <<_ACEOF
41879 /* confdefs.h.  */
41880 _ACEOF
41881 cat confdefs.h >>conftest.$ac_ext
41882 cat >>conftest.$ac_ext <<_ACEOF
41883 /* end confdefs.h.  */
41884
41885
41886 int
41887 main ()
41888 {
41889 main ();
41890   ;
41891   return 0;
41892 }
41893 _ACEOF
41894 rm -f conftest.$ac_objext conftest$ac_exeext
41895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41896   (eval $ac_link) 2>conftest.er1
41897   ac_status=$?
41898   grep -v '^ *+' conftest.er1 >conftest.err
41899   rm -f conftest.er1
41900   cat conftest.err >&5
41901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902   (exit $ac_status); } &&
41903          { ac_try='test -z "$ac_c_werror_flag"
41904                          || test ! -s conftest.err'
41905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41906   (eval $ac_try) 2>&5
41907   ac_status=$?
41908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41909   (exit $ac_status); }; } &&
41910          { ac_try='test -s conftest$ac_exeext'
41911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41912   (eval $ac_try) 2>&5
41913   ac_status=$?
41914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915   (exit $ac_status); }; }; then
41916   ac_cv_lib_cam_main=yes
41917 else
41918   echo "$as_me: failed program was:" >&5
41919 sed 's/^/| /' conftest.$ac_ext >&5
41920
41921 ac_cv_lib_cam_main=no
41922 fi
41923 rm -f conftest.err conftest.$ac_objext \
41924       conftest$ac_exeext conftest.$ac_ext
41925 LIBS=$ac_check_lib_save_LIBS
41926 fi
41927 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
41928 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
41929 if test $ac_cv_lib_cam_main = yes; then
41930   cat >>confdefs.h <<_ACEOF
41931 #define HAVE_LIBCAM 1
41932 _ACEOF
41933
41934   LIBS="-lcam $LIBS"
41935
41936 fi
41937
41938         fi
41939 fi
41940
41941
41942 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
41943    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
41944     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
41945 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
41946 if test "${amanda_cv_bsd_scsi+set}" = set; then
41947   echo $ECHO_N "(cached) $ECHO_C" >&6
41948 else
41949   cat >conftest.$ac_ext <<_ACEOF
41950 /* confdefs.h.  */
41951 _ACEOF
41952 cat confdefs.h >>conftest.$ac_ext
41953 cat >>conftest.$ac_ext <<_ACEOF
41954 /* end confdefs.h.  */
41955
41956 #include <sys/types.h>
41957 #include <sys/scsiio.h>
41958 #include <sys/mtio.h>
41959
41960 int
41961 main ()
41962 {
41963
41964     int device=1;
41965     char Command;
41966     ioctl(device, SCIOCCOMMAND, &Command);
41967
41968   ;
41969   return 0;
41970 }
41971 _ACEOF
41972 rm -f conftest.$ac_objext
41973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41974   (eval $ac_compile) 2>conftest.er1
41975   ac_status=$?
41976   grep -v '^ *+' conftest.er1 >conftest.err
41977   rm -f conftest.er1
41978   cat conftest.err >&5
41979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41980   (exit $ac_status); } &&
41981          { ac_try='test -z "$ac_c_werror_flag"
41982                          || test ! -s conftest.err'
41983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41984   (eval $ac_try) 2>&5
41985   ac_status=$?
41986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41987   (exit $ac_status); }; } &&
41988          { ac_try='test -s conftest.$ac_objext'
41989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41990   (eval $ac_try) 2>&5
41991   ac_status=$?
41992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); }; }; then
41994   amanda_cv_bsd_scsi=yes
41995 else
41996   echo "$as_me: failed program was:" >&5
41997 sed 's/^/| /' conftest.$ac_ext >&5
41998
41999 amanda_cv_bsd_scsi=no
42000 fi
42001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42002 fi
42003 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
42004 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
42005     if test x"$amanda_cv_bsd_scsi" = x"yes";then
42006
42007 cat >>confdefs.h <<\_ACEOF
42008 #define HAVE_BSD_LIKE_SCSI 1
42009 _ACEOF
42010
42011        NO_SCSI_CHANGER_MODE=false
42012     fi
42013 fi
42014
42015 if test x"$ac_cv_header_chio_h" = x"yes" ||
42016    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
42017          if test x"$ac_cv_header_camlib_h" != x"yes"; then
42018      if $NO_SCSI_CHANGER_MODE; then
42019        NO_SCSI_CHANGER_MODE=false
42020      else
42021        NO_CHIO_CHANGER_MODE=false
42022      fi
42023    fi
42024 fi
42025
42026
42027 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
42028 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
42029 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
42030   echo $ECHO_N "(cached) $ECHO_C" >&6
42031 else
42032   ac_check_lib_save_LIBS=$LIBS
42033 LIBS="-lcur_colr  $LIBS"
42034 cat >conftest.$ac_ext <<_ACEOF
42035 /* confdefs.h.  */
42036 _ACEOF
42037 cat confdefs.h >>conftest.$ac_ext
42038 cat >>conftest.$ac_ext <<_ACEOF
42039 /* end confdefs.h.  */
42040
42041
42042 int
42043 main ()
42044 {
42045 main ();
42046   ;
42047   return 0;
42048 }
42049 _ACEOF
42050 rm -f conftest.$ac_objext conftest$ac_exeext
42051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42052   (eval $ac_link) 2>conftest.er1
42053   ac_status=$?
42054   grep -v '^ *+' conftest.er1 >conftest.err
42055   rm -f conftest.er1
42056   cat conftest.err >&5
42057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42058   (exit $ac_status); } &&
42059          { ac_try='test -z "$ac_c_werror_flag"
42060                          || test ! -s conftest.err'
42061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42062   (eval $ac_try) 2>&5
42063   ac_status=$?
42064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42065   (exit $ac_status); }; } &&
42066          { ac_try='test -s conftest$ac_exeext'
42067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42068   (eval $ac_try) 2>&5
42069   ac_status=$?
42070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42071   (exit $ac_status); }; }; then
42072   ac_cv_lib_cur_colr_main=yes
42073 else
42074   echo "$as_me: failed program was:" >&5
42075 sed 's/^/| /' conftest.$ac_ext >&5
42076
42077 ac_cv_lib_cur_colr_main=no
42078 fi
42079 rm -f conftest.err conftest.$ac_objext \
42080       conftest$ac_exeext conftest.$ac_ext
42081 LIBS=$ac_check_lib_save_LIBS
42082 fi
42083 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
42084 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
42085 if test $ac_cv_lib_cur_colr_main = yes; then
42086   cat >>confdefs.h <<_ACEOF
42087 #define HAVE_LIBCUR_COLR 1
42088 _ACEOF
42089
42090   LIBS="-lcur_colr $LIBS"
42091
42092 fi
42093
42094
42095
42096 echo "$as_me:$LINENO: checking for main in -lintl" >&5
42097 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
42098 if test "${ac_cv_lib_intl_main+set}" = set; then
42099   echo $ECHO_N "(cached) $ECHO_C" >&6
42100 else
42101   ac_check_lib_save_LIBS=$LIBS
42102 LIBS="-lintl  $LIBS"
42103 cat >conftest.$ac_ext <<_ACEOF
42104 /* confdefs.h.  */
42105 _ACEOF
42106 cat confdefs.h >>conftest.$ac_ext
42107 cat >>conftest.$ac_ext <<_ACEOF
42108 /* end confdefs.h.  */
42109
42110
42111 int
42112 main ()
42113 {
42114 main ();
42115   ;
42116   return 0;
42117 }
42118 _ACEOF
42119 rm -f conftest.$ac_objext conftest$ac_exeext
42120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42121   (eval $ac_link) 2>conftest.er1
42122   ac_status=$?
42123   grep -v '^ *+' conftest.er1 >conftest.err
42124   rm -f conftest.er1
42125   cat conftest.err >&5
42126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42127   (exit $ac_status); } &&
42128          { ac_try='test -z "$ac_c_werror_flag"
42129                          || test ! -s conftest.err'
42130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42131   (eval $ac_try) 2>&5
42132   ac_status=$?
42133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134   (exit $ac_status); }; } &&
42135          { ac_try='test -s conftest$ac_exeext'
42136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42137   (eval $ac_try) 2>&5
42138   ac_status=$?
42139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42140   (exit $ac_status); }; }; then
42141   ac_cv_lib_intl_main=yes
42142 else
42143   echo "$as_me: failed program was:" >&5
42144 sed 's/^/| /' conftest.$ac_ext >&5
42145
42146 ac_cv_lib_intl_main=no
42147 fi
42148 rm -f conftest.err conftest.$ac_objext \
42149       conftest$ac_exeext conftest.$ac_ext
42150 LIBS=$ac_check_lib_save_LIBS
42151 fi
42152 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
42153 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
42154 if test $ac_cv_lib_intl_main = yes; then
42155   cat >>confdefs.h <<_ACEOF
42156 #define HAVE_LIBINTL 1
42157 _ACEOF
42158
42159   LIBS="-lintl $LIBS"
42160
42161 fi
42162
42163
42164 case "$target" in
42165     *sgi-irix*)
42166
42167 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
42168 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
42169 if test "${ac_cv_lib_socket_main+set}" = set; then
42170   echo $ECHO_N "(cached) $ECHO_C" >&6
42171 else
42172   ac_check_lib_save_LIBS=$LIBS
42173 LIBS="-lsocket  $LIBS"
42174 cat >conftest.$ac_ext <<_ACEOF
42175 /* confdefs.h.  */
42176 _ACEOF
42177 cat confdefs.h >>conftest.$ac_ext
42178 cat >>conftest.$ac_ext <<_ACEOF
42179 /* end confdefs.h.  */
42180
42181
42182 int
42183 main ()
42184 {
42185 main ();
42186   ;
42187   return 0;
42188 }
42189 _ACEOF
42190 rm -f conftest.$ac_objext conftest$ac_exeext
42191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42192   (eval $ac_link) 2>conftest.er1
42193   ac_status=$?
42194   grep -v '^ *+' conftest.er1 >conftest.err
42195   rm -f conftest.er1
42196   cat conftest.err >&5
42197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42198   (exit $ac_status); } &&
42199          { ac_try='test -z "$ac_c_werror_flag"
42200                          || test ! -s conftest.err'
42201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42202   (eval $ac_try) 2>&5
42203   ac_status=$?
42204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42205   (exit $ac_status); }; } &&
42206          { ac_try='test -s conftest$ac_exeext'
42207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42208   (eval $ac_try) 2>&5
42209   ac_status=$?
42210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42211   (exit $ac_status); }; }; then
42212   ac_cv_lib_socket_main=yes
42213 else
42214   echo "$as_me: failed program was:" >&5
42215 sed 's/^/| /' conftest.$ac_ext >&5
42216
42217 ac_cv_lib_socket_main=no
42218 fi
42219 rm -f conftest.err conftest.$ac_objext \
42220       conftest$ac_exeext conftest.$ac_ext
42221 LIBS=$ac_check_lib_save_LIBS
42222 fi
42223 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
42224 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
42225 if test $ac_cv_lib_socket_main = yes; then
42226   cat >>confdefs.h <<_ACEOF
42227 #define HAVE_LIBSOCKET 1
42228 _ACEOF
42229
42230   LIBS="-lsocket $LIBS"
42231
42232 fi
42233
42234                         ;;
42235     *)
42236
42237 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
42238 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
42239 if test "${ac_cv_lib_resolv_main+set}" = set; then
42240   echo $ECHO_N "(cached) $ECHO_C" >&6
42241 else
42242   ac_check_lib_save_LIBS=$LIBS
42243 LIBS="-lresolv  $LIBS"
42244 cat >conftest.$ac_ext <<_ACEOF
42245 /* confdefs.h.  */
42246 _ACEOF
42247 cat confdefs.h >>conftest.$ac_ext
42248 cat >>conftest.$ac_ext <<_ACEOF
42249 /* end confdefs.h.  */
42250
42251
42252 int
42253 main ()
42254 {
42255 main ();
42256   ;
42257   return 0;
42258 }
42259 _ACEOF
42260 rm -f conftest.$ac_objext conftest$ac_exeext
42261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42262   (eval $ac_link) 2>conftest.er1
42263   ac_status=$?
42264   grep -v '^ *+' conftest.er1 >conftest.err
42265   rm -f conftest.er1
42266   cat conftest.err >&5
42267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42268   (exit $ac_status); } &&
42269          { ac_try='test -z "$ac_c_werror_flag"
42270                          || test ! -s conftest.err'
42271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42272   (eval $ac_try) 2>&5
42273   ac_status=$?
42274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275   (exit $ac_status); }; } &&
42276          { ac_try='test -s conftest$ac_exeext'
42277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42278   (eval $ac_try) 2>&5
42279   ac_status=$?
42280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281   (exit $ac_status); }; }; then
42282   ac_cv_lib_resolv_main=yes
42283 else
42284   echo "$as_me: failed program was:" >&5
42285 sed 's/^/| /' conftest.$ac_ext >&5
42286
42287 ac_cv_lib_resolv_main=no
42288 fi
42289 rm -f conftest.err conftest.$ac_objext \
42290       conftest$ac_exeext conftest.$ac_ext
42291 LIBS=$ac_check_lib_save_LIBS
42292 fi
42293 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
42294 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
42295 if test $ac_cv_lib_resolv_main = yes; then
42296   cat >>confdefs.h <<_ACEOF
42297 #define HAVE_LIBRESOLV 1
42298 _ACEOF
42299
42300   LIBS="-lresolv $LIBS"
42301
42302 fi
42303
42304
42305 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
42306 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
42307 if test "${ac_cv_lib_nsl_main+set}" = set; then
42308   echo $ECHO_N "(cached) $ECHO_C" >&6
42309 else
42310   ac_check_lib_save_LIBS=$LIBS
42311 LIBS="-lnsl  $LIBS"
42312 cat >conftest.$ac_ext <<_ACEOF
42313 /* confdefs.h.  */
42314 _ACEOF
42315 cat confdefs.h >>conftest.$ac_ext
42316 cat >>conftest.$ac_ext <<_ACEOF
42317 /* end confdefs.h.  */
42318
42319
42320 int
42321 main ()
42322 {
42323 main ();
42324   ;
42325   return 0;
42326 }
42327 _ACEOF
42328 rm -f conftest.$ac_objext conftest$ac_exeext
42329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42330   (eval $ac_link) 2>conftest.er1
42331   ac_status=$?
42332   grep -v '^ *+' conftest.er1 >conftest.err
42333   rm -f conftest.er1
42334   cat conftest.err >&5
42335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336   (exit $ac_status); } &&
42337          { ac_try='test -z "$ac_c_werror_flag"
42338                          || test ! -s conftest.err'
42339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42340   (eval $ac_try) 2>&5
42341   ac_status=$?
42342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42343   (exit $ac_status); }; } &&
42344          { ac_try='test -s conftest$ac_exeext'
42345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42346   (eval $ac_try) 2>&5
42347   ac_status=$?
42348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349   (exit $ac_status); }; }; then
42350   ac_cv_lib_nsl_main=yes
42351 else
42352   echo "$as_me: failed program was:" >&5
42353 sed 's/^/| /' conftest.$ac_ext >&5
42354
42355 ac_cv_lib_nsl_main=no
42356 fi
42357 rm -f conftest.err conftest.$ac_objext \
42358       conftest$ac_exeext conftest.$ac_ext
42359 LIBS=$ac_check_lib_save_LIBS
42360 fi
42361 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
42362 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
42363 if test $ac_cv_lib_nsl_main = yes; then
42364   cat >>confdefs.h <<_ACEOF
42365 #define HAVE_LIBNSL 1
42366 _ACEOF
42367
42368   LIBS="-lnsl $LIBS"
42369
42370 fi
42371
42372
42373 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
42374 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
42375 if test "${ac_cv_lib_socket_main+set}" = set; then
42376   echo $ECHO_N "(cached) $ECHO_C" >&6
42377 else
42378   ac_check_lib_save_LIBS=$LIBS
42379 LIBS="-lsocket  $LIBS"
42380 cat >conftest.$ac_ext <<_ACEOF
42381 /* confdefs.h.  */
42382 _ACEOF
42383 cat confdefs.h >>conftest.$ac_ext
42384 cat >>conftest.$ac_ext <<_ACEOF
42385 /* end confdefs.h.  */
42386
42387
42388 int
42389 main ()
42390 {
42391 main ();
42392   ;
42393   return 0;
42394 }
42395 _ACEOF
42396 rm -f conftest.$ac_objext conftest$ac_exeext
42397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42398   (eval $ac_link) 2>conftest.er1
42399   ac_status=$?
42400   grep -v '^ *+' conftest.er1 >conftest.err
42401   rm -f conftest.er1
42402   cat conftest.err >&5
42403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404   (exit $ac_status); } &&
42405          { ac_try='test -z "$ac_c_werror_flag"
42406                          || test ! -s conftest.err'
42407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42408   (eval $ac_try) 2>&5
42409   ac_status=$?
42410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42411   (exit $ac_status); }; } &&
42412          { ac_try='test -s conftest$ac_exeext'
42413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42414   (eval $ac_try) 2>&5
42415   ac_status=$?
42416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42417   (exit $ac_status); }; }; then
42418   ac_cv_lib_socket_main=yes
42419 else
42420   echo "$as_me: failed program was:" >&5
42421 sed 's/^/| /' conftest.$ac_ext >&5
42422
42423 ac_cv_lib_socket_main=no
42424 fi
42425 rm -f conftest.err conftest.$ac_objext \
42426       conftest$ac_exeext conftest.$ac_ext
42427 LIBS=$ac_check_lib_save_LIBS
42428 fi
42429 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
42430 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
42431 if test $ac_cv_lib_socket_main = yes; then
42432   cat >>confdefs.h <<_ACEOF
42433 #define HAVE_LIBSOCKET 1
42434 _ACEOF
42435
42436   LIBS="-lsocket $LIBS"
42437
42438 fi
42439
42440
42441 echo "$as_me:$LINENO: checking for main in -lsun" >&5
42442 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
42443 if test "${ac_cv_lib_sun_main+set}" = set; then
42444   echo $ECHO_N "(cached) $ECHO_C" >&6
42445 else
42446   ac_check_lib_save_LIBS=$LIBS
42447 LIBS="-lsun  $LIBS"
42448 cat >conftest.$ac_ext <<_ACEOF
42449 /* confdefs.h.  */
42450 _ACEOF
42451 cat confdefs.h >>conftest.$ac_ext
42452 cat >>conftest.$ac_ext <<_ACEOF
42453 /* end confdefs.h.  */
42454
42455
42456 int
42457 main ()
42458 {
42459 main ();
42460   ;
42461   return 0;
42462 }
42463 _ACEOF
42464 rm -f conftest.$ac_objext conftest$ac_exeext
42465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42466   (eval $ac_link) 2>conftest.er1
42467   ac_status=$?
42468   grep -v '^ *+' conftest.er1 >conftest.err
42469   rm -f conftest.er1
42470   cat conftest.err >&5
42471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42472   (exit $ac_status); } &&
42473          { ac_try='test -z "$ac_c_werror_flag"
42474                          || test ! -s conftest.err'
42475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42476   (eval $ac_try) 2>&5
42477   ac_status=$?
42478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479   (exit $ac_status); }; } &&
42480          { ac_try='test -s conftest$ac_exeext'
42481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42482   (eval $ac_try) 2>&5
42483   ac_status=$?
42484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485   (exit $ac_status); }; }; then
42486   ac_cv_lib_sun_main=yes
42487 else
42488   echo "$as_me: failed program was:" >&5
42489 sed 's/^/| /' conftest.$ac_ext >&5
42490
42491 ac_cv_lib_sun_main=no
42492 fi
42493 rm -f conftest.err conftest.$ac_objext \
42494       conftest$ac_exeext conftest.$ac_ext
42495 LIBS=$ac_check_lib_save_LIBS
42496 fi
42497 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
42498 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
42499 if test $ac_cv_lib_sun_main = yes; then
42500   cat >>confdefs.h <<_ACEOF
42501 #define HAVE_LIBSUN 1
42502 _ACEOF
42503
42504   LIBS="-lsun $LIBS"
42505
42506 fi
42507
42508                         ;;
42509 esac
42510
42511
42512 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
42513 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
42514 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
42515   echo $ECHO_N "(cached) $ECHO_C" >&6
42516 else
42517   ac_check_lib_save_LIBS=$LIBS
42518 LIBS="-ltermcap  $LIBS"
42519 cat >conftest.$ac_ext <<_ACEOF
42520 /* confdefs.h.  */
42521 _ACEOF
42522 cat confdefs.h >>conftest.$ac_ext
42523 cat >>conftest.$ac_ext <<_ACEOF
42524 /* end confdefs.h.  */
42525
42526 /* Override any gcc2 internal prototype to avoid an error.  */
42527 #ifdef __cplusplus
42528 extern "C"
42529 #endif
42530 /* We use char because int might match the return type of a gcc2
42531    builtin and then its argument prototype would still apply.  */
42532 char tgetent ();
42533 int
42534 main ()
42535 {
42536 tgetent ();
42537   ;
42538   return 0;
42539 }
42540 _ACEOF
42541 rm -f conftest.$ac_objext conftest$ac_exeext
42542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42543   (eval $ac_link) 2>conftest.er1
42544   ac_status=$?
42545   grep -v '^ *+' conftest.er1 >conftest.err
42546   rm -f conftest.er1
42547   cat conftest.err >&5
42548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42549   (exit $ac_status); } &&
42550          { ac_try='test -z "$ac_c_werror_flag"
42551                          || test ! -s conftest.err'
42552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553   (eval $ac_try) 2>&5
42554   ac_status=$?
42555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556   (exit $ac_status); }; } &&
42557          { ac_try='test -s conftest$ac_exeext'
42558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42559   (eval $ac_try) 2>&5
42560   ac_status=$?
42561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562   (exit $ac_status); }; }; then
42563   ac_cv_lib_termcap_tgetent=yes
42564 else
42565   echo "$as_me: failed program was:" >&5
42566 sed 's/^/| /' conftest.$ac_ext >&5
42567
42568 ac_cv_lib_termcap_tgetent=no
42569 fi
42570 rm -f conftest.err conftest.$ac_objext \
42571       conftest$ac_exeext conftest.$ac_ext
42572 LIBS=$ac_check_lib_save_LIBS
42573 fi
42574 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
42575 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
42576 if test $ac_cv_lib_termcap_tgetent = yes; then
42577   cat >>confdefs.h <<_ACEOF
42578 #define HAVE_LIBTERMCAP 1
42579 _ACEOF
42580
42581   LIBS="-ltermcap $LIBS"
42582
42583 fi
42584
42585 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
42586
42587 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
42588 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
42589 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
42590   echo $ECHO_N "(cached) $ECHO_C" >&6
42591 else
42592   ac_check_lib_save_LIBS=$LIBS
42593 LIBS="-lcurses  $LIBS"
42594 cat >conftest.$ac_ext <<_ACEOF
42595 /* confdefs.h.  */
42596 _ACEOF
42597 cat confdefs.h >>conftest.$ac_ext
42598 cat >>conftest.$ac_ext <<_ACEOF
42599 /* end confdefs.h.  */
42600
42601 /* Override any gcc2 internal prototype to avoid an error.  */
42602 #ifdef __cplusplus
42603 extern "C"
42604 #endif
42605 /* We use char because int might match the return type of a gcc2
42606    builtin and then its argument prototype would still apply.  */
42607 char tgetent ();
42608 int
42609 main ()
42610 {
42611 tgetent ();
42612   ;
42613   return 0;
42614 }
42615 _ACEOF
42616 rm -f conftest.$ac_objext conftest$ac_exeext
42617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42618   (eval $ac_link) 2>conftest.er1
42619   ac_status=$?
42620   grep -v '^ *+' conftest.er1 >conftest.err
42621   rm -f conftest.er1
42622   cat conftest.err >&5
42623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624   (exit $ac_status); } &&
42625          { ac_try='test -z "$ac_c_werror_flag"
42626                          || test ! -s conftest.err'
42627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42628   (eval $ac_try) 2>&5
42629   ac_status=$?
42630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42631   (exit $ac_status); }; } &&
42632          { ac_try='test -s conftest$ac_exeext'
42633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42634   (eval $ac_try) 2>&5
42635   ac_status=$?
42636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42637   (exit $ac_status); }; }; then
42638   ac_cv_lib_curses_tgetent=yes
42639 else
42640   echo "$as_me: failed program was:" >&5
42641 sed 's/^/| /' conftest.$ac_ext >&5
42642
42643 ac_cv_lib_curses_tgetent=no
42644 fi
42645 rm -f conftest.err conftest.$ac_objext \
42646       conftest$ac_exeext conftest.$ac_ext
42647 LIBS=$ac_check_lib_save_LIBS
42648 fi
42649 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
42650 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
42651 if test $ac_cv_lib_curses_tgetent = yes; then
42652   cat >>confdefs.h <<_ACEOF
42653 #define HAVE_LIBCURSES 1
42654 _ACEOF
42655
42656   LIBS="-lcurses $LIBS"
42657
42658 fi
42659
42660     if test "x$ac_cv_lib_curses_tgetent" != xyes; then
42661
42662 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
42663 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
42664 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
42665   echo $ECHO_N "(cached) $ECHO_C" >&6
42666 else
42667   ac_check_lib_save_LIBS=$LIBS
42668 LIBS="-lncurses  $LIBS"
42669 cat >conftest.$ac_ext <<_ACEOF
42670 /* confdefs.h.  */
42671 _ACEOF
42672 cat confdefs.h >>conftest.$ac_ext
42673 cat >>conftest.$ac_ext <<_ACEOF
42674 /* end confdefs.h.  */
42675
42676 /* Override any gcc2 internal prototype to avoid an error.  */
42677 #ifdef __cplusplus
42678 extern "C"
42679 #endif
42680 /* We use char because int might match the return type of a gcc2
42681    builtin and then its argument prototype would still apply.  */
42682 char tgetent ();
42683 int
42684 main ()
42685 {
42686 tgetent ();
42687   ;
42688   return 0;
42689 }
42690 _ACEOF
42691 rm -f conftest.$ac_objext conftest$ac_exeext
42692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42693   (eval $ac_link) 2>conftest.er1
42694   ac_status=$?
42695   grep -v '^ *+' conftest.er1 >conftest.err
42696   rm -f conftest.er1
42697   cat conftest.err >&5
42698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42699   (exit $ac_status); } &&
42700          { ac_try='test -z "$ac_c_werror_flag"
42701                          || test ! -s conftest.err'
42702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42703   (eval $ac_try) 2>&5
42704   ac_status=$?
42705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42706   (exit $ac_status); }; } &&
42707          { ac_try='test -s conftest$ac_exeext'
42708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42709   (eval $ac_try) 2>&5
42710   ac_status=$?
42711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42712   (exit $ac_status); }; }; then
42713   ac_cv_lib_ncurses_tgetent=yes
42714 else
42715   echo "$as_me: failed program was:" >&5
42716 sed 's/^/| /' conftest.$ac_ext >&5
42717
42718 ac_cv_lib_ncurses_tgetent=no
42719 fi
42720 rm -f conftest.err conftest.$ac_objext \
42721       conftest$ac_exeext conftest.$ac_ext
42722 LIBS=$ac_check_lib_save_LIBS
42723 fi
42724 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
42725 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
42726 if test $ac_cv_lib_ncurses_tgetent = yes; then
42727   cat >>confdefs.h <<_ACEOF
42728 #define HAVE_LIBNCURSES 1
42729 _ACEOF
42730
42731   LIBS="-lncurses $LIBS"
42732
42733 fi
42734
42735     fi
42736 fi
42737 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
42738    test "x$ac_cv_lib_curses_tgetent" = xyes ||
42739    test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
42740
42741 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
42742 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
42743 if test "${ac_cv_lib_readline_readline+set}" = set; then
42744   echo $ECHO_N "(cached) $ECHO_C" >&6
42745 else
42746   ac_check_lib_save_LIBS=$LIBS
42747 LIBS="-lreadline  $LIBS"
42748 cat >conftest.$ac_ext <<_ACEOF
42749 /* confdefs.h.  */
42750 _ACEOF
42751 cat confdefs.h >>conftest.$ac_ext
42752 cat >>conftest.$ac_ext <<_ACEOF
42753 /* end confdefs.h.  */
42754
42755 /* Override any gcc2 internal prototype to avoid an error.  */
42756 #ifdef __cplusplus
42757 extern "C"
42758 #endif
42759 /* We use char because int might match the return type of a gcc2
42760    builtin and then its argument prototype would still apply.  */
42761 char readline ();
42762 int
42763 main ()
42764 {
42765 readline ();
42766   ;
42767   return 0;
42768 }
42769 _ACEOF
42770 rm -f conftest.$ac_objext conftest$ac_exeext
42771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42772   (eval $ac_link) 2>conftest.er1
42773   ac_status=$?
42774   grep -v '^ *+' conftest.er1 >conftest.err
42775   rm -f conftest.er1
42776   cat conftest.err >&5
42777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42778   (exit $ac_status); } &&
42779          { ac_try='test -z "$ac_c_werror_flag"
42780                          || test ! -s conftest.err'
42781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42782   (eval $ac_try) 2>&5
42783   ac_status=$?
42784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42785   (exit $ac_status); }; } &&
42786          { ac_try='test -s conftest$ac_exeext'
42787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42788   (eval $ac_try) 2>&5
42789   ac_status=$?
42790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42791   (exit $ac_status); }; }; then
42792   ac_cv_lib_readline_readline=yes
42793 else
42794   echo "$as_me: failed program was:" >&5
42795 sed 's/^/| /' conftest.$ac_ext >&5
42796
42797 ac_cv_lib_readline_readline=no
42798 fi
42799 rm -f conftest.err conftest.$ac_objext \
42800       conftest$ac_exeext conftest.$ac_ext
42801 LIBS=$ac_check_lib_save_LIBS
42802 fi
42803 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
42804 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
42805 if test $ac_cv_lib_readline_readline = yes; then
42806   cat >>confdefs.h <<_ACEOF
42807 #define HAVE_LIBREADLINE 1
42808 _ACEOF
42809
42810   LIBS="-lreadline $LIBS"
42811
42812 fi
42813
42814     if test "x$ac_cv_lib_readline_readline" = xyes; then
42815         READLINE_LIBS="-lreadline"
42816
42817     else
42818         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
42819 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
42820     fi
42821 else
42822     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
42823 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
42824 fi
42825
42826 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
42827     if test "x$ac_cv_header_vtblc_h" = xyes; then
42828
42829 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
42830 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
42831 if test "${ac_cv_lib_vtblc_main+set}" = set; then
42832   echo $ECHO_N "(cached) $ECHO_C" >&6
42833 else
42834   ac_check_lib_save_LIBS=$LIBS
42835 LIBS="-lvtblc  $LIBS"
42836 cat >conftest.$ac_ext <<_ACEOF
42837 /* confdefs.h.  */
42838 _ACEOF
42839 cat confdefs.h >>conftest.$ac_ext
42840 cat >>conftest.$ac_ext <<_ACEOF
42841 /* end confdefs.h.  */
42842
42843
42844 int
42845 main ()
42846 {
42847 main ();
42848   ;
42849   return 0;
42850 }
42851 _ACEOF
42852 rm -f conftest.$ac_objext conftest$ac_exeext
42853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42854   (eval $ac_link) 2>conftest.er1
42855   ac_status=$?
42856   grep -v '^ *+' conftest.er1 >conftest.err
42857   rm -f conftest.er1
42858   cat conftest.err >&5
42859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42860   (exit $ac_status); } &&
42861          { ac_try='test -z "$ac_c_werror_flag"
42862                          || test ! -s conftest.err'
42863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42864   (eval $ac_try) 2>&5
42865   ac_status=$?
42866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42867   (exit $ac_status); }; } &&
42868          { ac_try='test -s conftest$ac_exeext'
42869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42870   (eval $ac_try) 2>&5
42871   ac_status=$?
42872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873   (exit $ac_status); }; }; then
42874   ac_cv_lib_vtblc_main=yes
42875 else
42876   echo "$as_me: failed program was:" >&5
42877 sed 's/^/| /' conftest.$ac_ext >&5
42878
42879 ac_cv_lib_vtblc_main=no
42880 fi
42881 rm -f conftest.err conftest.$ac_objext \
42882       conftest$ac_exeext conftest.$ac_ext
42883 LIBS=$ac_check_lib_save_LIBS
42884 fi
42885 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
42886 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
42887 if test $ac_cv_lib_vtblc_main = yes; then
42888   cat >>confdefs.h <<_ACEOF
42889 #define HAVE_LIBVTBLC 1
42890 _ACEOF
42891
42892   LIBS="-lvtblc $LIBS"
42893
42894 fi
42895
42896         if test "x$ac_cv_lib_vtblc_main" != xyes; then
42897             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
42898 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
42899         fi
42900     else
42901         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
42902 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
42903     fi
42904 fi
42905
42906
42907 echo "$as_me:$LINENO: checking for modf in -lm" >&5
42908 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
42909 if test "${ac_cv_lib_m_modf+set}" = set; then
42910   echo $ECHO_N "(cached) $ECHO_C" >&6
42911 else
42912   ac_check_lib_save_LIBS=$LIBS
42913 LIBS="-lm  $LIBS"
42914 cat >conftest.$ac_ext <<_ACEOF
42915 /* confdefs.h.  */
42916 _ACEOF
42917 cat confdefs.h >>conftest.$ac_ext
42918 cat >>conftest.$ac_ext <<_ACEOF
42919 /* end confdefs.h.  */
42920
42921 /* Override any gcc2 internal prototype to avoid an error.  */
42922 #ifdef __cplusplus
42923 extern "C"
42924 #endif
42925 /* We use char because int might match the return type of a gcc2
42926    builtin and then its argument prototype would still apply.  */
42927 char modf ();
42928 int
42929 main ()
42930 {
42931 modf ();
42932   ;
42933   return 0;
42934 }
42935 _ACEOF
42936 rm -f conftest.$ac_objext conftest$ac_exeext
42937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42938   (eval $ac_link) 2>conftest.er1
42939   ac_status=$?
42940   grep -v '^ *+' conftest.er1 >conftest.err
42941   rm -f conftest.er1
42942   cat conftest.err >&5
42943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42944   (exit $ac_status); } &&
42945          { ac_try='test -z "$ac_c_werror_flag"
42946                          || test ! -s conftest.err'
42947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42948   (eval $ac_try) 2>&5
42949   ac_status=$?
42950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42951   (exit $ac_status); }; } &&
42952          { ac_try='test -s conftest$ac_exeext'
42953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42954   (eval $ac_try) 2>&5
42955   ac_status=$?
42956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42957   (exit $ac_status); }; }; then
42958   ac_cv_lib_m_modf=yes
42959 else
42960   echo "$as_me: failed program was:" >&5
42961 sed 's/^/| /' conftest.$ac_ext >&5
42962
42963 ac_cv_lib_m_modf=no
42964 fi
42965 rm -f conftest.err conftest.$ac_objext \
42966       conftest$ac_exeext conftest.$ac_ext
42967 LIBS=$ac_check_lib_save_LIBS
42968 fi
42969 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
42970 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
42971 if test $ac_cv_lib_m_modf = yes; then
42972   cat >>confdefs.h <<_ACEOF
42973 #define HAVE_LIBM 1
42974 _ACEOF
42975
42976   LIBS="-lm $LIBS"
42977
42978 fi
42979
42980
42981
42982 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
42983 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
42984 mt_flags_result="found"
42985 cat >conftest.$ac_ext <<_ACEOF
42986 /* confdefs.h.  */
42987 _ACEOF
42988 cat confdefs.h >>conftest.$ac_ext
42989 cat >>conftest.$ac_ext <<_ACEOF
42990 /* end confdefs.h.  */
42991
42992 #include <stdio.h>
42993 #include <sys/types.h>
42994 #include <sys/mtio.h>
42995
42996 int
42997 main ()
42998 {
42999
43000     struct mtget buf;
43001     long ds;
43002
43003     ds = buf.mt_flags;
43004
43005   ;
43006   return 0;
43007 }
43008 _ACEOF
43009 rm -f conftest.$ac_objext
43010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43011   (eval $ac_compile) 2>conftest.er1
43012   ac_status=$?
43013   grep -v '^ *+' conftest.er1 >conftest.err
43014   rm -f conftest.er1
43015   cat conftest.err >&5
43016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43017   (exit $ac_status); } &&
43018          { ac_try='test -z "$ac_c_werror_flag"
43019                          || test ! -s conftest.err'
43020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43021   (eval $ac_try) 2>&5
43022   ac_status=$?
43023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43024   (exit $ac_status); }; } &&
43025          { ac_try='test -s conftest.$ac_objext'
43026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43027   (eval $ac_try) 2>&5
43028   ac_status=$?
43029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43030   (exit $ac_status); }; }; then
43031
43032 cat >>confdefs.h <<\_ACEOF
43033 #define HAVE_MT_FLAGS 1
43034 _ACEOF
43035
43036 else
43037   echo "$as_me: failed program was:" >&5
43038 sed 's/^/| /' conftest.$ac_ext >&5
43039
43040 mt_flags_result="not found"
43041 fi
43042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43043 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
43044 echo "${ECHO_T}$mt_flags_result" >&6
43045
43046 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
43047 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
43048 mt_fileno_result="found"
43049 cat >conftest.$ac_ext <<_ACEOF
43050 /* confdefs.h.  */
43051 _ACEOF
43052 cat confdefs.h >>conftest.$ac_ext
43053 cat >>conftest.$ac_ext <<_ACEOF
43054 /* end confdefs.h.  */
43055
43056 #include <stdio.h>
43057 #include <sys/types.h>
43058 #include <sys/mtio.h>
43059
43060 int
43061 main ()
43062 {
43063
43064     struct mtget buf;
43065     long ds;
43066
43067     ds = buf.mt_fileno;
43068
43069   ;
43070   return 0;
43071 }
43072 _ACEOF
43073 rm -f conftest.$ac_objext
43074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43075   (eval $ac_compile) 2>conftest.er1
43076   ac_status=$?
43077   grep -v '^ *+' conftest.er1 >conftest.err
43078   rm -f conftest.er1
43079   cat conftest.err >&5
43080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43081   (exit $ac_status); } &&
43082          { ac_try='test -z "$ac_c_werror_flag"
43083                          || test ! -s conftest.err'
43084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43085   (eval $ac_try) 2>&5
43086   ac_status=$?
43087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088   (exit $ac_status); }; } &&
43089          { ac_try='test -s conftest.$ac_objext'
43090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091   (eval $ac_try) 2>&5
43092   ac_status=$?
43093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094   (exit $ac_status); }; }; then
43095
43096 cat >>confdefs.h <<\_ACEOF
43097 #define HAVE_MT_FILENO 1
43098 _ACEOF
43099
43100 else
43101   echo "$as_me: failed program was:" >&5
43102 sed 's/^/| /' conftest.$ac_ext >&5
43103
43104 mt_fileno_result="not found"
43105 fi
43106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43107 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
43108 echo "${ECHO_T}$mt_fileno_result" >&6
43109
43110 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
43111 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
43112 mt_blkno_result="found"
43113 cat >conftest.$ac_ext <<_ACEOF
43114 /* confdefs.h.  */
43115 _ACEOF
43116 cat confdefs.h >>conftest.$ac_ext
43117 cat >>conftest.$ac_ext <<_ACEOF
43118 /* end confdefs.h.  */
43119
43120 #include <stdio.h>
43121 #include <sys/types.h>
43122 #include <sys/mtio.h>
43123
43124 int
43125 main ()
43126 {
43127
43128     struct mtget buf;
43129     long ds;
43130
43131     ds = buf.mt_blkno;
43132
43133   ;
43134   return 0;
43135 }
43136 _ACEOF
43137 rm -f conftest.$ac_objext
43138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43139   (eval $ac_compile) 2>conftest.er1
43140   ac_status=$?
43141   grep -v '^ *+' conftest.er1 >conftest.err
43142   rm -f conftest.er1
43143   cat conftest.err >&5
43144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43145   (exit $ac_status); } &&
43146          { ac_try='test -z "$ac_c_werror_flag"
43147                          || test ! -s conftest.err'
43148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43149   (eval $ac_try) 2>&5
43150   ac_status=$?
43151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152   (exit $ac_status); }; } &&
43153          { ac_try='test -s conftest.$ac_objext'
43154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43155   (eval $ac_try) 2>&5
43156   ac_status=$?
43157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158   (exit $ac_status); }; }; then
43159
43160 cat >>confdefs.h <<\_ACEOF
43161 #define HAVE_MT_BLKNO 1
43162 _ACEOF
43163
43164 else
43165   echo "$as_me: failed program was:" >&5
43166 sed 's/^/| /' conftest.$ac_ext >&5
43167
43168 mt_blkno_result="not found"
43169 fi
43170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43171 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
43172 echo "${ECHO_T}$mt_blkno_result" >&6
43173
43174 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
43175 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
43176 mt_dsreg_result="found"
43177 cat >conftest.$ac_ext <<_ACEOF
43178 /* confdefs.h.  */
43179 _ACEOF
43180 cat confdefs.h >>conftest.$ac_ext
43181 cat >>conftest.$ac_ext <<_ACEOF
43182 /* end confdefs.h.  */
43183
43184 #include <stdio.h>
43185 #include <sys/types.h>
43186 #include <sys/mtio.h>
43187
43188 int
43189 main ()
43190 {
43191
43192     struct mtget buf;
43193     long ds;
43194
43195     ds = buf.mt_dsreg;
43196
43197   ;
43198   return 0;
43199 }
43200 _ACEOF
43201 rm -f conftest.$ac_objext
43202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43203   (eval $ac_compile) 2>conftest.er1
43204   ac_status=$?
43205   grep -v '^ *+' conftest.er1 >conftest.err
43206   rm -f conftest.er1
43207   cat conftest.err >&5
43208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43209   (exit $ac_status); } &&
43210          { ac_try='test -z "$ac_c_werror_flag"
43211                          || test ! -s conftest.err'
43212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43213   (eval $ac_try) 2>&5
43214   ac_status=$?
43215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43216   (exit $ac_status); }; } &&
43217          { ac_try='test -s conftest.$ac_objext'
43218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43219   (eval $ac_try) 2>&5
43220   ac_status=$?
43221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43222   (exit $ac_status); }; }; then
43223
43224 cat >>confdefs.h <<\_ACEOF
43225 #define HAVE_MT_DSREG 1
43226 _ACEOF
43227
43228 else
43229   echo "$as_me: failed program was:" >&5
43230 sed 's/^/| /' conftest.$ac_ext >&5
43231
43232 mt_dsreg_result="not found"
43233 fi
43234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43235 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
43236 echo "${ECHO_T}$mt_dsreg_result" >&6
43237
43238 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
43239 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
43240 mt_erreg_result="found"
43241 cat >conftest.$ac_ext <<_ACEOF
43242 /* confdefs.h.  */
43243 _ACEOF
43244 cat confdefs.h >>conftest.$ac_ext
43245 cat >>conftest.$ac_ext <<_ACEOF
43246 /* end confdefs.h.  */
43247
43248 #include <stdio.h>
43249 #include <sys/types.h>
43250 #include <sys/mtio.h>
43251
43252 int
43253 main ()
43254 {
43255
43256     struct mtget buf;
43257     long ds;
43258
43259     ds = buf.mt_erreg;
43260
43261   ;
43262   return 0;
43263 }
43264 _ACEOF
43265 rm -f conftest.$ac_objext
43266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43267   (eval $ac_compile) 2>conftest.er1
43268   ac_status=$?
43269   grep -v '^ *+' conftest.er1 >conftest.err
43270   rm -f conftest.er1
43271   cat conftest.err >&5
43272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43273   (exit $ac_status); } &&
43274          { ac_try='test -z "$ac_c_werror_flag"
43275                          || test ! -s conftest.err'
43276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43277   (eval $ac_try) 2>&5
43278   ac_status=$?
43279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43280   (exit $ac_status); }; } &&
43281          { ac_try='test -s conftest.$ac_objext'
43282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43283   (eval $ac_try) 2>&5
43284   ac_status=$?
43285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43286   (exit $ac_status); }; }; then
43287
43288 cat >>confdefs.h <<\_ACEOF
43289 #define HAVE_MT_ERREG 1
43290 _ACEOF
43291
43292 else
43293   echo "$as_me: failed program was:" >&5
43294 sed 's/^/| /' conftest.$ac_ext >&5
43295
43296 mt_erreg_result="not found"
43297 fi
43298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43299 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
43300 echo "${ECHO_T}$mt_erreg_result" >&6
43301
43302
43303 DB_HEADER=
43304 DB_LIB=
43305
43306 save_LIBS="$LIBS"
43307
43308 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
43309 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
43310 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
43311   echo $ECHO_N "(cached) $ECHO_C" >&6
43312 else
43313   ac_check_lib_save_LIBS=$LIBS
43314 LIBS="-lc  $LIBS"
43315 cat >conftest.$ac_ext <<_ACEOF
43316 /* confdefs.h.  */
43317 _ACEOF
43318 cat confdefs.h >>conftest.$ac_ext
43319 cat >>conftest.$ac_ext <<_ACEOF
43320 /* end confdefs.h.  */
43321
43322 /* Override any gcc2 internal prototype to avoid an error.  */
43323 #ifdef __cplusplus
43324 extern "C"
43325 #endif
43326 /* We use char because int might match the return type of a gcc2
43327    builtin and then its argument prototype would still apply.  */
43328 char dbm_open ();
43329 int
43330 main ()
43331 {
43332 dbm_open ();
43333   ;
43334   return 0;
43335 }
43336 _ACEOF
43337 rm -f conftest.$ac_objext conftest$ac_exeext
43338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43339   (eval $ac_link) 2>conftest.er1
43340   ac_status=$?
43341   grep -v '^ *+' conftest.er1 >conftest.err
43342   rm -f conftest.er1
43343   cat conftest.err >&5
43344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345   (exit $ac_status); } &&
43346          { ac_try='test -z "$ac_c_werror_flag"
43347                          || test ! -s conftest.err'
43348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43349   (eval $ac_try) 2>&5
43350   ac_status=$?
43351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43352   (exit $ac_status); }; } &&
43353          { ac_try='test -s conftest$ac_exeext'
43354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43355   (eval $ac_try) 2>&5
43356   ac_status=$?
43357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43358   (exit $ac_status); }; }; then
43359   ac_cv_lib_c_dbm_open=yes
43360 else
43361   echo "$as_me: failed program was:" >&5
43362 sed 's/^/| /' conftest.$ac_ext >&5
43363
43364 ac_cv_lib_c_dbm_open=no
43365 fi
43366 rm -f conftest.err conftest.$ac_objext \
43367       conftest$ac_exeext conftest.$ac_ext
43368 LIBS=$ac_check_lib_save_LIBS
43369 fi
43370 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
43371 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
43372 if test $ac_cv_lib_c_dbm_open = yes; then
43373   cat >>confdefs.h <<_ACEOF
43374 #define HAVE_LIBC 1
43375 _ACEOF
43376
43377   LIBS="-lc $LIBS"
43378
43379 fi
43380
43381 LIBS="$save_LIBS"
43382
43383 case "$DB_STYLE" in
43384     db)
43385         if test "x$ac_cv_header_db_h" = xyes; then
43386
43387 echo "$as_me:$LINENO: checking for main in -ldb" >&5
43388 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
43389 if test "${ac_cv_lib_db_main+set}" = set; then
43390   echo $ECHO_N "(cached) $ECHO_C" >&6
43391 else
43392   ac_check_lib_save_LIBS=$LIBS
43393 LIBS="-ldb  $LIBS"
43394 cat >conftest.$ac_ext <<_ACEOF
43395 /* confdefs.h.  */
43396 _ACEOF
43397 cat confdefs.h >>conftest.$ac_ext
43398 cat >>conftest.$ac_ext <<_ACEOF
43399 /* end confdefs.h.  */
43400
43401
43402 int
43403 main ()
43404 {
43405 main ();
43406   ;
43407   return 0;
43408 }
43409 _ACEOF
43410 rm -f conftest.$ac_objext conftest$ac_exeext
43411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43412   (eval $ac_link) 2>conftest.er1
43413   ac_status=$?
43414   grep -v '^ *+' conftest.er1 >conftest.err
43415   rm -f conftest.er1
43416   cat conftest.err >&5
43417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43418   (exit $ac_status); } &&
43419          { ac_try='test -z "$ac_c_werror_flag"
43420                          || test ! -s conftest.err'
43421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43422   (eval $ac_try) 2>&5
43423   ac_status=$?
43424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43425   (exit $ac_status); }; } &&
43426          { ac_try='test -s conftest$ac_exeext'
43427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43428   (eval $ac_try) 2>&5
43429   ac_status=$?
43430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43431   (exit $ac_status); }; }; then
43432   ac_cv_lib_db_main=yes
43433 else
43434   echo "$as_me: failed program was:" >&5
43435 sed 's/^/| /' conftest.$ac_ext >&5
43436
43437 ac_cv_lib_db_main=no
43438 fi
43439 rm -f conftest.err conftest.$ac_objext \
43440       conftest$ac_exeext conftest.$ac_ext
43441 LIBS=$ac_check_lib_save_LIBS
43442 fi
43443 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
43444 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
43445 if test $ac_cv_lib_db_main = yes; then
43446   cat >>confdefs.h <<_ACEOF
43447 #define HAVE_LIBDB 1
43448 _ACEOF
43449
43450   LIBS="-ldb $LIBS"
43451
43452 fi
43453
43454             if test "x$ac_cv_lib_db_main" = xyes; then
43455
43456 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
43457 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
43458 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
43459   echo $ECHO_N "(cached) $ECHO_C" >&6
43460 else
43461   ac_check_lib_save_LIBS=$LIBS
43462 LIBS="-ldb  $LIBS"
43463 cat >conftest.$ac_ext <<_ACEOF
43464 /* confdefs.h.  */
43465 _ACEOF
43466 cat confdefs.h >>conftest.$ac_ext
43467 cat >>conftest.$ac_ext <<_ACEOF
43468 /* end confdefs.h.  */
43469
43470 /* Override any gcc2 internal prototype to avoid an error.  */
43471 #ifdef __cplusplus
43472 extern "C"
43473 #endif
43474 /* We use char because int might match the return type of a gcc2
43475    builtin and then its argument prototype would still apply.  */
43476 char dbm_open ();
43477 int
43478 main ()
43479 {
43480 dbm_open ();
43481   ;
43482   return 0;
43483 }
43484 _ACEOF
43485 rm -f conftest.$ac_objext conftest$ac_exeext
43486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43487   (eval $ac_link) 2>conftest.er1
43488   ac_status=$?
43489   grep -v '^ *+' conftest.er1 >conftest.err
43490   rm -f conftest.er1
43491   cat conftest.err >&5
43492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493   (exit $ac_status); } &&
43494          { ac_try='test -z "$ac_c_werror_flag"
43495                          || test ! -s conftest.err'
43496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43497   (eval $ac_try) 2>&5
43498   ac_status=$?
43499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43500   (exit $ac_status); }; } &&
43501          { ac_try='test -s conftest$ac_exeext'
43502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43503   (eval $ac_try) 2>&5
43504   ac_status=$?
43505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43506   (exit $ac_status); }; }; then
43507   ac_cv_lib_db_dbm_open=yes
43508 else
43509   echo "$as_me: failed program was:" >&5
43510 sed 's/^/| /' conftest.$ac_ext >&5
43511
43512 ac_cv_lib_db_dbm_open=no
43513 fi
43514 rm -f conftest.err conftest.$ac_objext \
43515       conftest$ac_exeext conftest.$ac_ext
43516 LIBS=$ac_check_lib_save_LIBS
43517 fi
43518 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
43519 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
43520 if test $ac_cv_lib_db_dbm_open = yes; then
43521   cat >>confdefs.h <<_ACEOF
43522 #define HAVE_LIBDB 1
43523 _ACEOF
43524
43525   LIBS="-ldb $LIBS"
43526
43527 fi
43528
43529                 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
43530                     DB_HEADER=db.h
43531                     DB_LIB=db
43532                 else
43533                     DB_STYLE=
43534                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
43535 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
43536                 fi
43537             else
43538                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
43539                     DB_HEADER=db.h
43540                     DB_LIB=c
43541                 else
43542                     DB_STYLE=
43543                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
43544 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
43545                 fi
43546             fi
43547         else
43548             DB_STYLE=
43549             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
43550 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
43551         fi
43552         ;;
43553
43554     dbm)
43555         if test "x$ac_cv_header_dbm_h" = xyes; then
43556
43557 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
43558 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
43559 if test "${ac_cv_lib_dbm_main+set}" = set; then
43560   echo $ECHO_N "(cached) $ECHO_C" >&6
43561 else
43562   ac_check_lib_save_LIBS=$LIBS
43563 LIBS="-ldbm  $LIBS"
43564 cat >conftest.$ac_ext <<_ACEOF
43565 /* confdefs.h.  */
43566 _ACEOF
43567 cat confdefs.h >>conftest.$ac_ext
43568 cat >>conftest.$ac_ext <<_ACEOF
43569 /* end confdefs.h.  */
43570
43571
43572 int
43573 main ()
43574 {
43575 main ();
43576   ;
43577   return 0;
43578 }
43579 _ACEOF
43580 rm -f conftest.$ac_objext conftest$ac_exeext
43581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43582   (eval $ac_link) 2>conftest.er1
43583   ac_status=$?
43584   grep -v '^ *+' conftest.er1 >conftest.err
43585   rm -f conftest.er1
43586   cat conftest.err >&5
43587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588   (exit $ac_status); } &&
43589          { ac_try='test -z "$ac_c_werror_flag"
43590                          || test ! -s conftest.err'
43591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43592   (eval $ac_try) 2>&5
43593   ac_status=$?
43594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595   (exit $ac_status); }; } &&
43596          { ac_try='test -s conftest$ac_exeext'
43597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43598   (eval $ac_try) 2>&5
43599   ac_status=$?
43600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43601   (exit $ac_status); }; }; then
43602   ac_cv_lib_dbm_main=yes
43603 else
43604   echo "$as_me: failed program was:" >&5
43605 sed 's/^/| /' conftest.$ac_ext >&5
43606
43607 ac_cv_lib_dbm_main=no
43608 fi
43609 rm -f conftest.err conftest.$ac_objext \
43610       conftest$ac_exeext conftest.$ac_ext
43611 LIBS=$ac_check_lib_save_LIBS
43612 fi
43613 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
43614 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
43615 if test $ac_cv_lib_dbm_main = yes; then
43616   cat >>confdefs.h <<_ACEOF
43617 #define HAVE_LIBDBM 1
43618 _ACEOF
43619
43620   LIBS="-ldbm $LIBS"
43621
43622 fi
43623
43624             if test "x$ac_cv_lib_dbm_main" = xyes; then
43625
43626 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
43627 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
43628 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
43629   echo $ECHO_N "(cached) $ECHO_C" >&6
43630 else
43631   ac_check_lib_save_LIBS=$LIBS
43632 LIBS="-ldbm  $LIBS"
43633 cat >conftest.$ac_ext <<_ACEOF
43634 /* confdefs.h.  */
43635 _ACEOF
43636 cat confdefs.h >>conftest.$ac_ext
43637 cat >>conftest.$ac_ext <<_ACEOF
43638 /* end confdefs.h.  */
43639
43640 /* Override any gcc2 internal prototype to avoid an error.  */
43641 #ifdef __cplusplus
43642 extern "C"
43643 #endif
43644 /* We use char because int might match the return type of a gcc2
43645    builtin and then its argument prototype would still apply.  */
43646 char dbm_open ();
43647 int
43648 main ()
43649 {
43650 dbm_open ();
43651   ;
43652   return 0;
43653 }
43654 _ACEOF
43655 rm -f conftest.$ac_objext conftest$ac_exeext
43656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43657   (eval $ac_link) 2>conftest.er1
43658   ac_status=$?
43659   grep -v '^ *+' conftest.er1 >conftest.err
43660   rm -f conftest.er1
43661   cat conftest.err >&5
43662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663   (exit $ac_status); } &&
43664          { ac_try='test -z "$ac_c_werror_flag"
43665                          || test ! -s conftest.err'
43666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667   (eval $ac_try) 2>&5
43668   ac_status=$?
43669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670   (exit $ac_status); }; } &&
43671          { ac_try='test -s conftest$ac_exeext'
43672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673   (eval $ac_try) 2>&5
43674   ac_status=$?
43675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676   (exit $ac_status); }; }; then
43677   ac_cv_lib_dbm_dbm_open=yes
43678 else
43679   echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43681
43682 ac_cv_lib_dbm_dbm_open=no
43683 fi
43684 rm -f conftest.err conftest.$ac_objext \
43685       conftest$ac_exeext conftest.$ac_ext
43686 LIBS=$ac_check_lib_save_LIBS
43687 fi
43688 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
43689 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
43690 if test $ac_cv_lib_dbm_dbm_open = yes; then
43691   cat >>confdefs.h <<_ACEOF
43692 #define HAVE_LIBDBM 1
43693 _ACEOF
43694
43695   LIBS="-ldbm $LIBS"
43696
43697 fi
43698
43699                 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
43700                     DB_HEADER=dbm.h
43701                     DB_LIB=dbm
43702                 else
43703                     DB_STYLE=
43704                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
43705 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
43706                 fi
43707             else
43708                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
43709                     DB_HEADER=dbm.h
43710                     DB_LIB=c
43711                 else
43712                     DB_STYLE=
43713                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
43714 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
43715                 fi
43716             fi
43717         else
43718             DB_STYLE=
43719             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
43720 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
43721         fi
43722         ;;
43723
43724     gdbm)
43725         if test "x$ac_cv_header_ndbm_h" = xyes; then
43726
43727 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
43728 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
43729 if test "${ac_cv_lib_gdbm_main+set}" = set; then
43730   echo $ECHO_N "(cached) $ECHO_C" >&6
43731 else
43732   ac_check_lib_save_LIBS=$LIBS
43733 LIBS="-lgdbm  $LIBS"
43734 cat >conftest.$ac_ext <<_ACEOF
43735 /* confdefs.h.  */
43736 _ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h.  */
43740
43741
43742 int
43743 main ()
43744 {
43745 main ();
43746   ;
43747   return 0;
43748 }
43749 _ACEOF
43750 rm -f conftest.$ac_objext conftest$ac_exeext
43751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43752   (eval $ac_link) 2>conftest.er1
43753   ac_status=$?
43754   grep -v '^ *+' conftest.er1 >conftest.err
43755   rm -f conftest.er1
43756   cat conftest.err >&5
43757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758   (exit $ac_status); } &&
43759          { ac_try='test -z "$ac_c_werror_flag"
43760                          || test ! -s conftest.err'
43761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43762   (eval $ac_try) 2>&5
43763   ac_status=$?
43764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43765   (exit $ac_status); }; } &&
43766          { ac_try='test -s conftest$ac_exeext'
43767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43768   (eval $ac_try) 2>&5
43769   ac_status=$?
43770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43771   (exit $ac_status); }; }; then
43772   ac_cv_lib_gdbm_main=yes
43773 else
43774   echo "$as_me: failed program was:" >&5
43775 sed 's/^/| /' conftest.$ac_ext >&5
43776
43777 ac_cv_lib_gdbm_main=no
43778 fi
43779 rm -f conftest.err conftest.$ac_objext \
43780       conftest$ac_exeext conftest.$ac_ext
43781 LIBS=$ac_check_lib_save_LIBS
43782 fi
43783 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
43784 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
43785 if test $ac_cv_lib_gdbm_main = yes; then
43786   cat >>confdefs.h <<_ACEOF
43787 #define HAVE_LIBGDBM 1
43788 _ACEOF
43789
43790   LIBS="-lgdbm $LIBS"
43791
43792 fi
43793
43794             if test "x$ac_cv_lib_gdbm_main" = xyes; then
43795
43796 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
43797 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
43798 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
43799   echo $ECHO_N "(cached) $ECHO_C" >&6
43800 else
43801   ac_check_lib_save_LIBS=$LIBS
43802 LIBS="-lgdbm  $LIBS"
43803 cat >conftest.$ac_ext <<_ACEOF
43804 /* confdefs.h.  */
43805 _ACEOF
43806 cat confdefs.h >>conftest.$ac_ext
43807 cat >>conftest.$ac_ext <<_ACEOF
43808 /* end confdefs.h.  */
43809
43810 /* Override any gcc2 internal prototype to avoid an error.  */
43811 #ifdef __cplusplus
43812 extern "C"
43813 #endif
43814 /* We use char because int might match the return type of a gcc2
43815    builtin and then its argument prototype would still apply.  */
43816 char dbm_open ();
43817 int
43818 main ()
43819 {
43820 dbm_open ();
43821   ;
43822   return 0;
43823 }
43824 _ACEOF
43825 rm -f conftest.$ac_objext conftest$ac_exeext
43826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43827   (eval $ac_link) 2>conftest.er1
43828   ac_status=$?
43829   grep -v '^ *+' conftest.er1 >conftest.err
43830   rm -f conftest.er1
43831   cat conftest.err >&5
43832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43833   (exit $ac_status); } &&
43834          { ac_try='test -z "$ac_c_werror_flag"
43835                          || test ! -s conftest.err'
43836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43837   (eval $ac_try) 2>&5
43838   ac_status=$?
43839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43840   (exit $ac_status); }; } &&
43841          { ac_try='test -s conftest$ac_exeext'
43842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43843   (eval $ac_try) 2>&5
43844   ac_status=$?
43845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43846   (exit $ac_status); }; }; then
43847   ac_cv_lib_gdbm_dbm_open=yes
43848 else
43849   echo "$as_me: failed program was:" >&5
43850 sed 's/^/| /' conftest.$ac_ext >&5
43851
43852 ac_cv_lib_gdbm_dbm_open=no
43853 fi
43854 rm -f conftest.err conftest.$ac_objext \
43855       conftest$ac_exeext conftest.$ac_ext
43856 LIBS=$ac_check_lib_save_LIBS
43857 fi
43858 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
43859 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
43860 if test $ac_cv_lib_gdbm_dbm_open = yes; then
43861   cat >>confdefs.h <<_ACEOF
43862 #define HAVE_LIBGDBM 1
43863 _ACEOF
43864
43865   LIBS="-lgdbm $LIBS"
43866
43867 fi
43868
43869                 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
43870                     DB_HEADER=ndbm.h
43871                     DB_LIB=gdbm
43872                 else
43873                     DB_STYLE=
43874                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
43875 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
43876                 fi
43877             else
43878                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
43879                     DB_HEADER=ndbm.h
43880                     DB_LIB=c
43881                 else
43882                     DB_STYLE=
43883                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
43884 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
43885                 fi
43886             fi
43887         else
43888             DB_STYLE=
43889             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
43890 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
43891         fi
43892         ;;
43893
43894     ndbm)
43895         if test "x$ac_cv_header_ndbm_h" = xyes; then
43896
43897 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
43898 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
43899 if test "${ac_cv_lib_ndbm_main+set}" = set; then
43900   echo $ECHO_N "(cached) $ECHO_C" >&6
43901 else
43902   ac_check_lib_save_LIBS=$LIBS
43903 LIBS="-lndbm  $LIBS"
43904 cat >conftest.$ac_ext <<_ACEOF
43905 /* confdefs.h.  */
43906 _ACEOF
43907 cat confdefs.h >>conftest.$ac_ext
43908 cat >>conftest.$ac_ext <<_ACEOF
43909 /* end confdefs.h.  */
43910
43911
43912 int
43913 main ()
43914 {
43915 main ();
43916   ;
43917   return 0;
43918 }
43919 _ACEOF
43920 rm -f conftest.$ac_objext conftest$ac_exeext
43921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43922   (eval $ac_link) 2>conftest.er1
43923   ac_status=$?
43924   grep -v '^ *+' conftest.er1 >conftest.err
43925   rm -f conftest.er1
43926   cat conftest.err >&5
43927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928   (exit $ac_status); } &&
43929          { ac_try='test -z "$ac_c_werror_flag"
43930                          || test ! -s conftest.err'
43931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932   (eval $ac_try) 2>&5
43933   ac_status=$?
43934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935   (exit $ac_status); }; } &&
43936          { ac_try='test -s conftest$ac_exeext'
43937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43938   (eval $ac_try) 2>&5
43939   ac_status=$?
43940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941   (exit $ac_status); }; }; then
43942   ac_cv_lib_ndbm_main=yes
43943 else
43944   echo "$as_me: failed program was:" >&5
43945 sed 's/^/| /' conftest.$ac_ext >&5
43946
43947 ac_cv_lib_ndbm_main=no
43948 fi
43949 rm -f conftest.err conftest.$ac_objext \
43950       conftest$ac_exeext conftest.$ac_ext
43951 LIBS=$ac_check_lib_save_LIBS
43952 fi
43953 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
43954 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
43955 if test $ac_cv_lib_ndbm_main = yes; then
43956   cat >>confdefs.h <<_ACEOF
43957 #define HAVE_LIBNDBM 1
43958 _ACEOF
43959
43960   LIBS="-lndbm $LIBS"
43961
43962 fi
43963
43964             if test "x$ac_cv_lib_ndbm_main" = xyes; then
43965
43966 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43967 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43968 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43969   echo $ECHO_N "(cached) $ECHO_C" >&6
43970 else
43971   ac_check_lib_save_LIBS=$LIBS
43972 LIBS="-lndbm  $LIBS"
43973 cat >conftest.$ac_ext <<_ACEOF
43974 /* confdefs.h.  */
43975 _ACEOF
43976 cat confdefs.h >>conftest.$ac_ext
43977 cat >>conftest.$ac_ext <<_ACEOF
43978 /* end confdefs.h.  */
43979
43980 /* Override any gcc2 internal prototype to avoid an error.  */
43981 #ifdef __cplusplus
43982 extern "C"
43983 #endif
43984 /* We use char because int might match the return type of a gcc2
43985    builtin and then its argument prototype would still apply.  */
43986 char dbm_open ();
43987 int
43988 main ()
43989 {
43990 dbm_open ();
43991   ;
43992   return 0;
43993 }
43994 _ACEOF
43995 rm -f conftest.$ac_objext conftest$ac_exeext
43996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43997   (eval $ac_link) 2>conftest.er1
43998   ac_status=$?
43999   grep -v '^ *+' conftest.er1 >conftest.err
44000   rm -f conftest.er1
44001   cat conftest.err >&5
44002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44003   (exit $ac_status); } &&
44004          { ac_try='test -z "$ac_c_werror_flag"
44005                          || test ! -s conftest.err'
44006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44007   (eval $ac_try) 2>&5
44008   ac_status=$?
44009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010   (exit $ac_status); }; } &&
44011          { ac_try='test -s conftest$ac_exeext'
44012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44013   (eval $ac_try) 2>&5
44014   ac_status=$?
44015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016   (exit $ac_status); }; }; then
44017   ac_cv_lib_ndbm_dbm_open=yes
44018 else
44019   echo "$as_me: failed program was:" >&5
44020 sed 's/^/| /' conftest.$ac_ext >&5
44021
44022 ac_cv_lib_ndbm_dbm_open=no
44023 fi
44024 rm -f conftest.err conftest.$ac_objext \
44025       conftest$ac_exeext conftest.$ac_ext
44026 LIBS=$ac_check_lib_save_LIBS
44027 fi
44028 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44029 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44030 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44031   cat >>confdefs.h <<_ACEOF
44032 #define HAVE_LIBNDBM 1
44033 _ACEOF
44034
44035   LIBS="-lndbm $LIBS"
44036
44037 fi
44038
44039                 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
44040                     DB_HEADER=ndbm.h
44041                     DB_LIB=ndbm
44042                 else
44043                     DB_STYLE=
44044                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
44045 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
44046                 fi
44047             else
44048                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
44049                     DB_HEADER=ndbm.h
44050                     DB_LIB=c
44051                 else
44052                     DB_STYLE=
44053                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
44054 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
44055                 fi
44056             fi
44057         else
44058             DB_STYLE=
44059             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
44060 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
44061         fi
44062         ;;
44063     text)
44064         DB_HEADER=
44065         DB_LIB=
44066         ;;
44067 esac
44068
44069
44070 if test -z "$DB_STYLE"; then
44071     DB_STYLE=text
44072     DB_HEADER=
44073     DB_LIB=
44074 fi
44075
44076
44077 if test "x$DB_STYLE" = xtext; then
44078
44079 cat >>confdefs.h <<\_ACEOF
44080 #define TEXTDB 1
44081 _ACEOF
44082
44083 else
44084     echo "$as_me:$LINENO: checking for database" >&5
44085 echo $ECHO_N "checking for database... $ECHO_C" >&6
44086     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
44087 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
44088     case "$DB_STYLE" in
44089         db)
44090 cat >>confdefs.h <<\_ACEOF
44091 #define USE_DB_H 1
44092 _ACEOF
44093    ;;
44094         dbm)
44095 cat >>confdefs.h <<\_ACEOF
44096 #define USE_DBM_H 1
44097 _ACEOF
44098   ;;
44099         gdbm)
44100 cat >>confdefs.h <<\_ACEOF
44101 #define USE_GDBM_H 1
44102 _ACEOF
44103  ;;
44104         ndbm)
44105 cat >>confdefs.h <<\_ACEOF
44106 #define USE_NDBM_H 1
44107 _ACEOF
44108  ;;
44109     esac
44110
44111     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
44112 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
44113 if test "${amanda_cv_struct_datum+set}" = set; then
44114   echo $ECHO_N "(cached) $ECHO_C" >&6
44115 else
44116
44117             cat >conftest.$ac_ext <<_ACEOF
44118 /* confdefs.h.  */
44119 _ACEOF
44120 cat confdefs.h >>conftest.$ac_ext
44121 cat >>conftest.$ac_ext <<_ACEOF
44122 /* end confdefs.h.  */
44123
44124 #if defined(USE_DB_H)
44125 #  include <db.h>
44126 #else
44127 #  if defined(USE_DBM_H)
44128 #    include <dbm.h>
44129 #  else
44130 #    if defined(USE_NDBM_H)
44131 #      include <ndbm.h>
44132 #    endif
44133 #  endif
44134 #endif
44135
44136 int
44137 main ()
44138 {
44139
44140                     datum a;
44141
44142   ;
44143   return 0;
44144 }
44145 _ACEOF
44146 rm -f conftest.$ac_objext
44147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44148   (eval $ac_compile) 2>conftest.er1
44149   ac_status=$?
44150   grep -v '^ *+' conftest.er1 >conftest.err
44151   rm -f conftest.er1
44152   cat conftest.err >&5
44153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44154   (exit $ac_status); } &&
44155          { ac_try='test -z "$ac_c_werror_flag"
44156                          || test ! -s conftest.err'
44157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44158   (eval $ac_try) 2>&5
44159   ac_status=$?
44160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44161   (exit $ac_status); }; } &&
44162          { ac_try='test -s conftest.$ac_objext'
44163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44164   (eval $ac_try) 2>&5
44165   ac_status=$?
44166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44167   (exit $ac_status); }; }; then
44168   amanda_cv_struct_datum=yes
44169 else
44170   echo "$as_me: failed program was:" >&5
44171 sed 's/^/| /' conftest.$ac_ext >&5
44172
44173 amanda_cv_struct_datum=no
44174
44175 fi
44176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44177
44178 fi
44179 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
44180 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
44181     if test "x$amanda_cv_struct_datum" = xyes; then
44182
44183 cat >>confdefs.h <<\_ACEOF
44184 #define HAVE_STRUCT_DATUM 1
44185 _ACEOF
44186
44187     fi
44188 fi
44189
44190 case "$DB_STYLE" in
44191     db) DB_EXT=.db;;
44192     gdbm) DB_EXT='""';;
44193     dbm | ndbm) DB_EXT=".dir .pag";;
44194     text) DB_EXT='""';;
44195     *) DB_EXT=;;
44196 esac
44197
44198
44199 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
44200 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
44201 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
44202   echo $ECHO_N "(cached) $ECHO_C" >&6
44203 else
44204   cat >conftest.$ac_ext <<_ACEOF
44205 /* confdefs.h.  */
44206 _ACEOF
44207 cat confdefs.h >>conftest.$ac_ext
44208 cat >>conftest.$ac_ext <<_ACEOF
44209 /* end confdefs.h.  */
44210
44211 #include <limits.h>
44212 #ifdef _POSIX2_RE_DUP_MAX
44213   yes
44214 #endif
44215
44216 _ACEOF
44217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44218   $EGREP "yes" >/dev/null 2>&1; then
44219   amanda_cv_have__posix2_re_dup_max=yes
44220 else
44221   amanda_cv_have__posix2_re_dup_max=no
44222 fi
44223 rm -f conftest*
44224
44225 fi
44226 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
44227 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
44228 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
44229
44230 cat >>confdefs.h <<\_ACEOF
44231 #define HAVE__POSIX2_RE_DUP_MAX 1
44232 _ACEOF
44233
44234 fi
44235
44236 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
44237 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
44238 if test "${amanda_cv_have_char_min+set}" = set; then
44239   echo $ECHO_N "(cached) $ECHO_C" >&6
44240 else
44241   cat >conftest.$ac_ext <<_ACEOF
44242 /* confdefs.h.  */
44243 _ACEOF
44244 cat confdefs.h >>conftest.$ac_ext
44245 cat >>conftest.$ac_ext <<_ACEOF
44246 /* end confdefs.h.  */
44247
44248 #include <limits.h>
44249 #ifdef CHAR_MIN
44250   yes
44251 #endif
44252
44253 _ACEOF
44254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44255   $EGREP "yes" >/dev/null 2>&1; then
44256   amanda_cv_have_char_min=yes
44257 else
44258   amanda_cv_have_char_min=no
44259 fi
44260 rm -f conftest*
44261
44262 fi
44263 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
44264 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
44265 if test "x$amanda_cv_have_char_min" = xyes; then
44266
44267 cat >>confdefs.h <<\_ACEOF
44268 #define HAVE_CHAR_MIN 1
44269 _ACEOF
44270
44271 fi
44272
44273 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
44274 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
44275 if test "${amanda_cv_have_char_max+set}" = set; then
44276   echo $ECHO_N "(cached) $ECHO_C" >&6
44277 else
44278   cat >conftest.$ac_ext <<_ACEOF
44279 /* confdefs.h.  */
44280 _ACEOF
44281 cat confdefs.h >>conftest.$ac_ext
44282 cat >>conftest.$ac_ext <<_ACEOF
44283 /* end confdefs.h.  */
44284
44285 #include <limits.h>
44286 #ifdef CHAR_MAX
44287   yes
44288 #endif
44289
44290 _ACEOF
44291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44292   $EGREP "yes" >/dev/null 2>&1; then
44293   amanda_cv_have_char_max=yes
44294 else
44295   amanda_cv_have_char_max=no
44296 fi
44297 rm -f conftest*
44298
44299 fi
44300 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
44301 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
44302 if test "x$amanda_cv_have_char_max" = xyes; then
44303
44304 cat >>confdefs.h <<\_ACEOF
44305 #define HAVE_CHAR_MAX 1
44306 _ACEOF
44307
44308 fi
44309
44310 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
44311 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
44312 if test "${amanda_cv_have_char_bit+set}" = set; then
44313   echo $ECHO_N "(cached) $ECHO_C" >&6
44314 else
44315   cat >conftest.$ac_ext <<_ACEOF
44316 /* confdefs.h.  */
44317 _ACEOF
44318 cat confdefs.h >>conftest.$ac_ext
44319 cat >>conftest.$ac_ext <<_ACEOF
44320 /* end confdefs.h.  */
44321
44322 #include <limits.h>
44323 #ifdef CHAR_BIT
44324   yes
44325 #endif
44326
44327 _ACEOF
44328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44329   $EGREP "yes" >/dev/null 2>&1; then
44330   amanda_cv_have_char_bit=yes
44331 else
44332   amanda_cv_have_char_bit=no
44333 fi
44334 rm -f conftest*
44335
44336 fi
44337 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
44338 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
44339 if test "x$amanda_cv_have_char_bit" = xyes; then
44340
44341 cat >>confdefs.h <<\_ACEOF
44342 #define HAVE_CHAR_BIT 1
44343 _ACEOF
44344
44345 fi
44346
44347
44348 ice_have_accept=no
44349
44350 for ac_func in accept
44351 do
44352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44353 echo "$as_me:$LINENO: checking for $ac_func" >&5
44354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44355 if eval "test \"\${$as_ac_var+set}\" = set"; then
44356   echo $ECHO_N "(cached) $ECHO_C" >&6
44357 else
44358   cat >conftest.$ac_ext <<_ACEOF
44359 /* confdefs.h.  */
44360 _ACEOF
44361 cat confdefs.h >>conftest.$ac_ext
44362 cat >>conftest.$ac_ext <<_ACEOF
44363 /* end confdefs.h.  */
44364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44366 #define $ac_func innocuous_$ac_func
44367
44368 /* System header to define __stub macros and hopefully few prototypes,
44369     which can conflict with char $ac_func (); below.
44370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44371     <limits.h> exists even on freestanding compilers.  */
44372
44373 #ifdef __STDC__
44374 # include <limits.h>
44375 #else
44376 # include <assert.h>
44377 #endif
44378
44379 #undef $ac_func
44380
44381 /* Override any gcc2 internal prototype to avoid an error.  */
44382 #ifdef __cplusplus
44383 extern "C"
44384 {
44385 #endif
44386 /* We use char because int might match the return type of a gcc2
44387    builtin and then its argument prototype would still apply.  */
44388 char $ac_func ();
44389 /* The GNU C library defines this for functions which it implements
44390     to always fail with ENOSYS.  Some functions are actually named
44391     something starting with __ and the normal name is an alias.  */
44392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44393 choke me
44394 #else
44395 char (*f) () = $ac_func;
44396 #endif
44397 #ifdef __cplusplus
44398 }
44399 #endif
44400
44401 int
44402 main ()
44403 {
44404 return f != $ac_func;
44405   ;
44406   return 0;
44407 }
44408 _ACEOF
44409 rm -f conftest.$ac_objext conftest$ac_exeext
44410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44411   (eval $ac_link) 2>conftest.er1
44412   ac_status=$?
44413   grep -v '^ *+' conftest.er1 >conftest.err
44414   rm -f conftest.er1
44415   cat conftest.err >&5
44416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417   (exit $ac_status); } &&
44418          { ac_try='test -z "$ac_c_werror_flag"
44419                          || test ! -s conftest.err'
44420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44421   (eval $ac_try) 2>&5
44422   ac_status=$?
44423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44424   (exit $ac_status); }; } &&
44425          { ac_try='test -s conftest$ac_exeext'
44426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44427   (eval $ac_try) 2>&5
44428   ac_status=$?
44429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430   (exit $ac_status); }; }; then
44431   eval "$as_ac_var=yes"
44432 else
44433   echo "$as_me: failed program was:" >&5
44434 sed 's/^/| /' conftest.$ac_ext >&5
44435
44436 eval "$as_ac_var=no"
44437 fi
44438 rm -f conftest.err conftest.$ac_objext \
44439       conftest$ac_exeext conftest.$ac_ext
44440 fi
44441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44443 if test `eval echo '${'$as_ac_var'}'` = yes; then
44444   cat >>confdefs.h <<_ACEOF
44445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44446 _ACEOF
44447  ice_have_accept=yes
44448 fi
44449 done
44450
44451 if test "${ice_have_accept}" = yes; then
44452 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
44453 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44454 if test "${ice_cv_have_accept_decl+set}" = set; then
44455   echo $ECHO_N "(cached) $ECHO_C" >&6
44456 else
44457
44458 ice_cv_have_accept_decl=no
44459 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44460 ice_re_word='(^|[^a-zA-Z0-9_])'
44461 for header in sys/types.h sys/socket.h; do
44462 # Check for ordinary declaration
44463 cat >conftest.$ac_ext <<_ACEOF
44464 /* confdefs.h.  */
44465 _ACEOF
44466 cat confdefs.h >>conftest.$ac_ext
44467 cat >>conftest.$ac_ext <<_ACEOF
44468 /* end confdefs.h.  */
44469 #include <$header>
44470
44471 _ACEOF
44472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44473   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
44474   ice_cv_have_accept_decl=yes
44475 fi
44476 rm -f conftest*
44477
44478 if test "$ice_cv_have_accept_decl" = yes; then
44479         break
44480 fi
44481 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44482 cat >conftest.$ac_ext <<_ACEOF
44483 /* confdefs.h.  */
44484 _ACEOF
44485 cat confdefs.h >>conftest.$ac_ext
44486 cat >>conftest.$ac_ext <<_ACEOF
44487 /* end confdefs.h.  */
44488 #include <$header>
44489
44490 _ACEOF
44491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44492   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44493   ice_cv_have_accept_decl=yes
44494 fi
44495 rm -f conftest*
44496
44497 if test "$ice_cv_have_accept_decl" = yes; then
44498         break
44499 fi
44500 done
44501
44502 fi
44503
44504 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
44505 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
44506 if test "$ice_cv_have_accept_decl" = yes; then
44507
44508 cat >>confdefs.h <<_ACEOF
44509 #define HAVE_ACCEPT_DECL 1
44510 _ACEOF
44511
44512 fi
44513 fi
44514
44515 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
44516 # for constant arguments.  Useless!
44517 echo "$as_me:$LINENO: checking for working alloca.h" >&5
44518 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
44519 if test "${ac_cv_working_alloca_h+set}" = set; then
44520   echo $ECHO_N "(cached) $ECHO_C" >&6
44521 else
44522   cat >conftest.$ac_ext <<_ACEOF
44523 /* confdefs.h.  */
44524 _ACEOF
44525 cat confdefs.h >>conftest.$ac_ext
44526 cat >>conftest.$ac_ext <<_ACEOF
44527 /* end confdefs.h.  */
44528 #include <alloca.h>
44529 int
44530 main ()
44531 {
44532 char *p = (char *) alloca (2 * sizeof (int));
44533   ;
44534   return 0;
44535 }
44536 _ACEOF
44537 rm -f conftest.$ac_objext conftest$ac_exeext
44538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44539   (eval $ac_link) 2>conftest.er1
44540   ac_status=$?
44541   grep -v '^ *+' conftest.er1 >conftest.err
44542   rm -f conftest.er1
44543   cat conftest.err >&5
44544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545   (exit $ac_status); } &&
44546          { ac_try='test -z "$ac_c_werror_flag"
44547                          || test ! -s conftest.err'
44548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44549   (eval $ac_try) 2>&5
44550   ac_status=$?
44551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44552   (exit $ac_status); }; } &&
44553          { ac_try='test -s conftest$ac_exeext'
44554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44555   (eval $ac_try) 2>&5
44556   ac_status=$?
44557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44558   (exit $ac_status); }; }; then
44559   ac_cv_working_alloca_h=yes
44560 else
44561   echo "$as_me: failed program was:" >&5
44562 sed 's/^/| /' conftest.$ac_ext >&5
44563
44564 ac_cv_working_alloca_h=no
44565 fi
44566 rm -f conftest.err conftest.$ac_objext \
44567       conftest$ac_exeext conftest.$ac_ext
44568 fi
44569 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
44570 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
44571 if test $ac_cv_working_alloca_h = yes; then
44572
44573 cat >>confdefs.h <<\_ACEOF
44574 #define HAVE_ALLOCA_H 1
44575 _ACEOF
44576
44577 fi
44578
44579 echo "$as_me:$LINENO: checking for alloca" >&5
44580 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
44581 if test "${ac_cv_func_alloca_works+set}" = set; then
44582   echo $ECHO_N "(cached) $ECHO_C" >&6
44583 else
44584   cat >conftest.$ac_ext <<_ACEOF
44585 /* confdefs.h.  */
44586 _ACEOF
44587 cat confdefs.h >>conftest.$ac_ext
44588 cat >>conftest.$ac_ext <<_ACEOF
44589 /* end confdefs.h.  */
44590 #ifdef __GNUC__
44591 # define alloca __builtin_alloca
44592 #else
44593 # ifdef _MSC_VER
44594 #  include <malloc.h>
44595 #  define alloca _alloca
44596 # else
44597 #  if HAVE_ALLOCA_H
44598 #   include <alloca.h>
44599 #  else
44600 #   ifdef _AIX
44601  #pragma alloca
44602 #   else
44603 #    ifndef alloca /* predefined by HP cc +Olibcalls */
44604 char *alloca ();
44605 #    endif
44606 #   endif
44607 #  endif
44608 # endif
44609 #endif
44610
44611 int
44612 main ()
44613 {
44614 char *p = (char *) alloca (1);
44615   ;
44616   return 0;
44617 }
44618 _ACEOF
44619 rm -f conftest.$ac_objext conftest$ac_exeext
44620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44621   (eval $ac_link) 2>conftest.er1
44622   ac_status=$?
44623   grep -v '^ *+' conftest.er1 >conftest.err
44624   rm -f conftest.er1
44625   cat conftest.err >&5
44626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44627   (exit $ac_status); } &&
44628          { ac_try='test -z "$ac_c_werror_flag"
44629                          || test ! -s conftest.err'
44630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44631   (eval $ac_try) 2>&5
44632   ac_status=$?
44633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44634   (exit $ac_status); }; } &&
44635          { ac_try='test -s conftest$ac_exeext'
44636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44637   (eval $ac_try) 2>&5
44638   ac_status=$?
44639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44640   (exit $ac_status); }; }; then
44641   ac_cv_func_alloca_works=yes
44642 else
44643   echo "$as_me: failed program was:" >&5
44644 sed 's/^/| /' conftest.$ac_ext >&5
44645
44646 ac_cv_func_alloca_works=no
44647 fi
44648 rm -f conftest.err conftest.$ac_objext \
44649       conftest$ac_exeext conftest.$ac_ext
44650 fi
44651 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
44652 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
44653
44654 if test $ac_cv_func_alloca_works = yes; then
44655
44656 cat >>confdefs.h <<\_ACEOF
44657 #define HAVE_ALLOCA 1
44658 _ACEOF
44659
44660 else
44661   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
44662 # that cause trouble.  Some versions do not even contain alloca or
44663 # contain a buggy version.  If you still want to use their alloca,
44664 # use ar to extract alloca.o from them instead of compiling alloca.c.
44665
44666 ALLOCA=alloca.$ac_objext
44667
44668 cat >>confdefs.h <<\_ACEOF
44669 #define C_ALLOCA 1
44670 _ACEOF
44671
44672
44673 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
44674 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
44675 if test "${ac_cv_os_cray+set}" = set; then
44676   echo $ECHO_N "(cached) $ECHO_C" >&6
44677 else
44678   cat >conftest.$ac_ext <<_ACEOF
44679 /* confdefs.h.  */
44680 _ACEOF
44681 cat confdefs.h >>conftest.$ac_ext
44682 cat >>conftest.$ac_ext <<_ACEOF
44683 /* end confdefs.h.  */
44684 #if defined(CRAY) && ! defined(CRAY2)
44685 webecray
44686 #else
44687 wenotbecray
44688 #endif
44689
44690 _ACEOF
44691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44692   $EGREP "webecray" >/dev/null 2>&1; then
44693   ac_cv_os_cray=yes
44694 else
44695   ac_cv_os_cray=no
44696 fi
44697 rm -f conftest*
44698
44699 fi
44700 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
44701 echo "${ECHO_T}$ac_cv_os_cray" >&6
44702 if test $ac_cv_os_cray = yes; then
44703   for ac_func in _getb67 GETB67 getb67; do
44704     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44705 echo "$as_me:$LINENO: checking for $ac_func" >&5
44706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44707 if eval "test \"\${$as_ac_var+set}\" = set"; then
44708   echo $ECHO_N "(cached) $ECHO_C" >&6
44709 else
44710   cat >conftest.$ac_ext <<_ACEOF
44711 /* confdefs.h.  */
44712 _ACEOF
44713 cat confdefs.h >>conftest.$ac_ext
44714 cat >>conftest.$ac_ext <<_ACEOF
44715 /* end confdefs.h.  */
44716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44718 #define $ac_func innocuous_$ac_func
44719
44720 /* System header to define __stub macros and hopefully few prototypes,
44721     which can conflict with char $ac_func (); below.
44722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44723     <limits.h> exists even on freestanding compilers.  */
44724
44725 #ifdef __STDC__
44726 # include <limits.h>
44727 #else
44728 # include <assert.h>
44729 #endif
44730
44731 #undef $ac_func
44732
44733 /* Override any gcc2 internal prototype to avoid an error.  */
44734 #ifdef __cplusplus
44735 extern "C"
44736 {
44737 #endif
44738 /* We use char because int might match the return type of a gcc2
44739    builtin and then its argument prototype would still apply.  */
44740 char $ac_func ();
44741 /* The GNU C library defines this for functions which it implements
44742     to always fail with ENOSYS.  Some functions are actually named
44743     something starting with __ and the normal name is an alias.  */
44744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44745 choke me
44746 #else
44747 char (*f) () = $ac_func;
44748 #endif
44749 #ifdef __cplusplus
44750 }
44751 #endif
44752
44753 int
44754 main ()
44755 {
44756 return f != $ac_func;
44757   ;
44758   return 0;
44759 }
44760 _ACEOF
44761 rm -f conftest.$ac_objext conftest$ac_exeext
44762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44763   (eval $ac_link) 2>conftest.er1
44764   ac_status=$?
44765   grep -v '^ *+' conftest.er1 >conftest.err
44766   rm -f conftest.er1
44767   cat conftest.err >&5
44768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44769   (exit $ac_status); } &&
44770          { ac_try='test -z "$ac_c_werror_flag"
44771                          || test ! -s conftest.err'
44772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44773   (eval $ac_try) 2>&5
44774   ac_status=$?
44775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44776   (exit $ac_status); }; } &&
44777          { ac_try='test -s conftest$ac_exeext'
44778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44779   (eval $ac_try) 2>&5
44780   ac_status=$?
44781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44782   (exit $ac_status); }; }; then
44783   eval "$as_ac_var=yes"
44784 else
44785   echo "$as_me: failed program was:" >&5
44786 sed 's/^/| /' conftest.$ac_ext >&5
44787
44788 eval "$as_ac_var=no"
44789 fi
44790 rm -f conftest.err conftest.$ac_objext \
44791       conftest$ac_exeext conftest.$ac_ext
44792 fi
44793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44795 if test `eval echo '${'$as_ac_var'}'` = yes; then
44796
44797 cat >>confdefs.h <<_ACEOF
44798 #define CRAY_STACKSEG_END $ac_func
44799 _ACEOF
44800
44801     break
44802 fi
44803
44804   done
44805 fi
44806
44807 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
44808 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
44809 if test "${ac_cv_c_stack_direction+set}" = set; then
44810   echo $ECHO_N "(cached) $ECHO_C" >&6
44811 else
44812   if test "$cross_compiling" = yes; then
44813   ac_cv_c_stack_direction=0
44814 else
44815   cat >conftest.$ac_ext <<_ACEOF
44816 /* confdefs.h.  */
44817 _ACEOF
44818 cat confdefs.h >>conftest.$ac_ext
44819 cat >>conftest.$ac_ext <<_ACEOF
44820 /* end confdefs.h.  */
44821 int
44822 find_stack_direction ()
44823 {
44824   static char *addr = 0;
44825   auto char dummy;
44826   if (addr == 0)
44827     {
44828       addr = &dummy;
44829       return find_stack_direction ();
44830     }
44831   else
44832     return (&dummy > addr) ? 1 : -1;
44833 }
44834
44835 int
44836 main ()
44837 {
44838   exit (find_stack_direction () < 0);
44839 }
44840 _ACEOF
44841 rm -f conftest$ac_exeext
44842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44843   (eval $ac_link) 2>&5
44844   ac_status=$?
44845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44848   (eval $ac_try) 2>&5
44849   ac_status=$?
44850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851   (exit $ac_status); }; }; then
44852   ac_cv_c_stack_direction=1
44853 else
44854   echo "$as_me: program exited with status $ac_status" >&5
44855 echo "$as_me: failed program was:" >&5
44856 sed 's/^/| /' conftest.$ac_ext >&5
44857
44858 ( exit $ac_status )
44859 ac_cv_c_stack_direction=-1
44860 fi
44861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44862 fi
44863 fi
44864 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
44865 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
44866
44867 cat >>confdefs.h <<_ACEOF
44868 #define STACK_DIRECTION $ac_cv_c_stack_direction
44869 _ACEOF
44870
44871
44872 fi
44873
44874
44875 for ac_func in atexit
44876 do
44877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44878 echo "$as_me:$LINENO: checking for $ac_func" >&5
44879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44880 if eval "test \"\${$as_ac_var+set}\" = set"; then
44881   echo $ECHO_N "(cached) $ECHO_C" >&6
44882 else
44883   cat >conftest.$ac_ext <<_ACEOF
44884 /* confdefs.h.  */
44885 _ACEOF
44886 cat confdefs.h >>conftest.$ac_ext
44887 cat >>conftest.$ac_ext <<_ACEOF
44888 /* end confdefs.h.  */
44889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44891 #define $ac_func innocuous_$ac_func
44892
44893 /* System header to define __stub macros and hopefully few prototypes,
44894     which can conflict with char $ac_func (); below.
44895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44896     <limits.h> exists even on freestanding compilers.  */
44897
44898 #ifdef __STDC__
44899 # include <limits.h>
44900 #else
44901 # include <assert.h>
44902 #endif
44903
44904 #undef $ac_func
44905
44906 /* Override any gcc2 internal prototype to avoid an error.  */
44907 #ifdef __cplusplus
44908 extern "C"
44909 {
44910 #endif
44911 /* We use char because int might match the return type of a gcc2
44912    builtin and then its argument prototype would still apply.  */
44913 char $ac_func ();
44914 /* The GNU C library defines this for functions which it implements
44915     to always fail with ENOSYS.  Some functions are actually named
44916     something starting with __ and the normal name is an alias.  */
44917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44918 choke me
44919 #else
44920 char (*f) () = $ac_func;
44921 #endif
44922 #ifdef __cplusplus
44923 }
44924 #endif
44925
44926 int
44927 main ()
44928 {
44929 return f != $ac_func;
44930   ;
44931   return 0;
44932 }
44933 _ACEOF
44934 rm -f conftest.$ac_objext conftest$ac_exeext
44935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44936   (eval $ac_link) 2>conftest.er1
44937   ac_status=$?
44938   grep -v '^ *+' conftest.er1 >conftest.err
44939   rm -f conftest.er1
44940   cat conftest.err >&5
44941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44942   (exit $ac_status); } &&
44943          { ac_try='test -z "$ac_c_werror_flag"
44944                          || test ! -s conftest.err'
44945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44946   (eval $ac_try) 2>&5
44947   ac_status=$?
44948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44949   (exit $ac_status); }; } &&
44950          { ac_try='test -s conftest$ac_exeext'
44951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44952   (eval $ac_try) 2>&5
44953   ac_status=$?
44954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44955   (exit $ac_status); }; }; then
44956   eval "$as_ac_var=yes"
44957 else
44958   echo "$as_me: failed program was:" >&5
44959 sed 's/^/| /' conftest.$ac_ext >&5
44960
44961 eval "$as_ac_var=no"
44962 fi
44963 rm -f conftest.err conftest.$ac_objext \
44964       conftest$ac_exeext conftest.$ac_ext
44965 fi
44966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44968 if test `eval echo '${'$as_ac_var'}'` = yes; then
44969   cat >>confdefs.h <<_ACEOF
44970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44971 _ACEOF
44972
44973 fi
44974 done
44975
44976
44977 ice_have_atof=no
44978
44979 for ac_func in atof
44980 do
44981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44982 echo "$as_me:$LINENO: checking for $ac_func" >&5
44983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44984 if eval "test \"\${$as_ac_var+set}\" = set"; then
44985   echo $ECHO_N "(cached) $ECHO_C" >&6
44986 else
44987   cat >conftest.$ac_ext <<_ACEOF
44988 /* confdefs.h.  */
44989 _ACEOF
44990 cat confdefs.h >>conftest.$ac_ext
44991 cat >>conftest.$ac_ext <<_ACEOF
44992 /* end confdefs.h.  */
44993 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44994    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44995 #define $ac_func innocuous_$ac_func
44996
44997 /* System header to define __stub macros and hopefully few prototypes,
44998     which can conflict with char $ac_func (); below.
44999     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45000     <limits.h> exists even on freestanding compilers.  */
45001
45002 #ifdef __STDC__
45003 # include <limits.h>
45004 #else
45005 # include <assert.h>
45006 #endif
45007
45008 #undef $ac_func
45009
45010 /* Override any gcc2 internal prototype to avoid an error.  */
45011 #ifdef __cplusplus
45012 extern "C"
45013 {
45014 #endif
45015 /* We use char because int might match the return type of a gcc2
45016    builtin and then its argument prototype would still apply.  */
45017 char $ac_func ();
45018 /* The GNU C library defines this for functions which it implements
45019     to always fail with ENOSYS.  Some functions are actually named
45020     something starting with __ and the normal name is an alias.  */
45021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45022 choke me
45023 #else
45024 char (*f) () = $ac_func;
45025 #endif
45026 #ifdef __cplusplus
45027 }
45028 #endif
45029
45030 int
45031 main ()
45032 {
45033 return f != $ac_func;
45034   ;
45035   return 0;
45036 }
45037 _ACEOF
45038 rm -f conftest.$ac_objext conftest$ac_exeext
45039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45040   (eval $ac_link) 2>conftest.er1
45041   ac_status=$?
45042   grep -v '^ *+' conftest.er1 >conftest.err
45043   rm -f conftest.er1
45044   cat conftest.err >&5
45045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45046   (exit $ac_status); } &&
45047          { ac_try='test -z "$ac_c_werror_flag"
45048                          || test ! -s conftest.err'
45049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45050   (eval $ac_try) 2>&5
45051   ac_status=$?
45052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45053   (exit $ac_status); }; } &&
45054          { ac_try='test -s conftest$ac_exeext'
45055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45056   (eval $ac_try) 2>&5
45057   ac_status=$?
45058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45059   (exit $ac_status); }; }; then
45060   eval "$as_ac_var=yes"
45061 else
45062   echo "$as_me: failed program was:" >&5
45063 sed 's/^/| /' conftest.$ac_ext >&5
45064
45065 eval "$as_ac_var=no"
45066 fi
45067 rm -f conftest.err conftest.$ac_objext \
45068       conftest$ac_exeext conftest.$ac_ext
45069 fi
45070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45072 if test `eval echo '${'$as_ac_var'}'` = yes; then
45073   cat >>confdefs.h <<_ACEOF
45074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45075 _ACEOF
45076  ice_have_atof=yes
45077 fi
45078 done
45079
45080 if test "${ice_have_atof}" = yes; then
45081 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
45082 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
45083 if test "${ice_cv_have_atof_decl+set}" = set; then
45084   echo $ECHO_N "(cached) $ECHO_C" >&6
45085 else
45086
45087 ice_cv_have_atof_decl=no
45088 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45089 ice_re_word='(^|[^a-zA-Z0-9_])'
45090 for header in stdlib.h; do
45091 # Check for ordinary declaration
45092 cat >conftest.$ac_ext <<_ACEOF
45093 /* confdefs.h.  */
45094 _ACEOF
45095 cat confdefs.h >>conftest.$ac_ext
45096 cat >>conftest.$ac_ext <<_ACEOF
45097 /* end confdefs.h.  */
45098 #include <$header>
45099
45100 _ACEOF
45101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45102   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
45103   ice_cv_have_atof_decl=yes
45104 fi
45105 rm -f conftest*
45106
45107 if test "$ice_cv_have_atof_decl" = yes; then
45108         break
45109 fi
45110 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45111 cat >conftest.$ac_ext <<_ACEOF
45112 /* confdefs.h.  */
45113 _ACEOF
45114 cat confdefs.h >>conftest.$ac_ext
45115 cat >>conftest.$ac_ext <<_ACEOF
45116 /* end confdefs.h.  */
45117 #include <$header>
45118
45119 _ACEOF
45120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45121   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45122   ice_cv_have_atof_decl=yes
45123 fi
45124 rm -f conftest*
45125
45126 if test "$ice_cv_have_atof_decl" = yes; then
45127         break
45128 fi
45129 done
45130
45131 fi
45132
45133 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
45134 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
45135 if test "$ice_cv_have_atof_decl" = yes; then
45136
45137 cat >>confdefs.h <<_ACEOF
45138 #define HAVE_ATOF_DECL 1
45139 _ACEOF
45140
45141 fi
45142 fi
45143
45144
45145 ice_have_atoi=no
45146
45147 for ac_func in atoi
45148 do
45149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45150 echo "$as_me:$LINENO: checking for $ac_func" >&5
45151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45152 if eval "test \"\${$as_ac_var+set}\" = set"; then
45153   echo $ECHO_N "(cached) $ECHO_C" >&6
45154 else
45155   cat >conftest.$ac_ext <<_ACEOF
45156 /* confdefs.h.  */
45157 _ACEOF
45158 cat confdefs.h >>conftest.$ac_ext
45159 cat >>conftest.$ac_ext <<_ACEOF
45160 /* end confdefs.h.  */
45161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45163 #define $ac_func innocuous_$ac_func
45164
45165 /* System header to define __stub macros and hopefully few prototypes,
45166     which can conflict with char $ac_func (); below.
45167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45168     <limits.h> exists even on freestanding compilers.  */
45169
45170 #ifdef __STDC__
45171 # include <limits.h>
45172 #else
45173 # include <assert.h>
45174 #endif
45175
45176 #undef $ac_func
45177
45178 /* Override any gcc2 internal prototype to avoid an error.  */
45179 #ifdef __cplusplus
45180 extern "C"
45181 {
45182 #endif
45183 /* We use char because int might match the return type of a gcc2
45184    builtin and then its argument prototype would still apply.  */
45185 char $ac_func ();
45186 /* The GNU C library defines this for functions which it implements
45187     to always fail with ENOSYS.  Some functions are actually named
45188     something starting with __ and the normal name is an alias.  */
45189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45190 choke me
45191 #else
45192 char (*f) () = $ac_func;
45193 #endif
45194 #ifdef __cplusplus
45195 }
45196 #endif
45197
45198 int
45199 main ()
45200 {
45201 return f != $ac_func;
45202   ;
45203   return 0;
45204 }
45205 _ACEOF
45206 rm -f conftest.$ac_objext conftest$ac_exeext
45207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45208   (eval $ac_link) 2>conftest.er1
45209   ac_status=$?
45210   grep -v '^ *+' conftest.er1 >conftest.err
45211   rm -f conftest.er1
45212   cat conftest.err >&5
45213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214   (exit $ac_status); } &&
45215          { ac_try='test -z "$ac_c_werror_flag"
45216                          || test ! -s conftest.err'
45217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45218   (eval $ac_try) 2>&5
45219   ac_status=$?
45220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45221   (exit $ac_status); }; } &&
45222          { ac_try='test -s conftest$ac_exeext'
45223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45224   (eval $ac_try) 2>&5
45225   ac_status=$?
45226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45227   (exit $ac_status); }; }; then
45228   eval "$as_ac_var=yes"
45229 else
45230   echo "$as_me: failed program was:" >&5
45231 sed 's/^/| /' conftest.$ac_ext >&5
45232
45233 eval "$as_ac_var=no"
45234 fi
45235 rm -f conftest.err conftest.$ac_objext \
45236       conftest$ac_exeext conftest.$ac_ext
45237 fi
45238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45240 if test `eval echo '${'$as_ac_var'}'` = yes; then
45241   cat >>confdefs.h <<_ACEOF
45242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45243 _ACEOF
45244  ice_have_atoi=yes
45245 fi
45246 done
45247
45248 if test "${ice_have_atoi}" = yes; then
45249 echo "$as_me:$LINENO: checking for atoi declaration in stdlib.h" >&5
45250 echo $ECHO_N "checking for atoi declaration in stdlib.h... $ECHO_C" >&6
45251 if test "${ice_cv_have_atoi_decl+set}" = set; then
45252   echo $ECHO_N "(cached) $ECHO_C" >&6
45253 else
45254
45255 ice_cv_have_atoi_decl=no
45256 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45257 ice_re_word='(^|[^a-zA-Z0-9_])'
45258 for header in stdlib.h; do
45259 # Check for ordinary declaration
45260 cat >conftest.$ac_ext <<_ACEOF
45261 /* confdefs.h.  */
45262 _ACEOF
45263 cat confdefs.h >>conftest.$ac_ext
45264 cat >>conftest.$ac_ext <<_ACEOF
45265 /* end confdefs.h.  */
45266 #include <$header>
45267
45268 _ACEOF
45269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45270   $EGREP "${ice_re_word}atoi[   ]*\(" >/dev/null 2>&1; then
45271   ice_cv_have_atoi_decl=yes
45272 fi
45273 rm -f conftest*
45274
45275 if test "$ice_cv_have_atoi_decl" = yes; then
45276         break
45277 fi
45278 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45279 cat >conftest.$ac_ext <<_ACEOF
45280 /* confdefs.h.  */
45281 _ACEOF
45282 cat confdefs.h >>conftest.$ac_ext
45283 cat >>conftest.$ac_ext <<_ACEOF
45284 /* end confdefs.h.  */
45285 #include <$header>
45286
45287 _ACEOF
45288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45289   $EGREP "${ice_re_word}atoi[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45290   ice_cv_have_atoi_decl=yes
45291 fi
45292 rm -f conftest*
45293
45294 if test "$ice_cv_have_atoi_decl" = yes; then
45295         break
45296 fi
45297 done
45298
45299 fi
45300
45301 echo "$as_me:$LINENO: result: $ice_cv_have_atoi_decl" >&5
45302 echo "${ECHO_T}$ice_cv_have_atoi_decl" >&6
45303 if test "$ice_cv_have_atoi_decl" = yes; then
45304
45305 cat >>confdefs.h <<_ACEOF
45306 #define HAVE_ATOI_DECL 1
45307 _ACEOF
45308
45309 fi
45310 fi
45311
45312
45313 ice_have_atol=no
45314
45315 for ac_func in atol
45316 do
45317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45318 echo "$as_me:$LINENO: checking for $ac_func" >&5
45319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45320 if eval "test \"\${$as_ac_var+set}\" = set"; then
45321   echo $ECHO_N "(cached) $ECHO_C" >&6
45322 else
45323   cat >conftest.$ac_ext <<_ACEOF
45324 /* confdefs.h.  */
45325 _ACEOF
45326 cat confdefs.h >>conftest.$ac_ext
45327 cat >>conftest.$ac_ext <<_ACEOF
45328 /* end confdefs.h.  */
45329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45331 #define $ac_func innocuous_$ac_func
45332
45333 /* System header to define __stub macros and hopefully few prototypes,
45334     which can conflict with char $ac_func (); below.
45335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45336     <limits.h> exists even on freestanding compilers.  */
45337
45338 #ifdef __STDC__
45339 # include <limits.h>
45340 #else
45341 # include <assert.h>
45342 #endif
45343
45344 #undef $ac_func
45345
45346 /* Override any gcc2 internal prototype to avoid an error.  */
45347 #ifdef __cplusplus
45348 extern "C"
45349 {
45350 #endif
45351 /* We use char because int might match the return type of a gcc2
45352    builtin and then its argument prototype would still apply.  */
45353 char $ac_func ();
45354 /* The GNU C library defines this for functions which it implements
45355     to always fail with ENOSYS.  Some functions are actually named
45356     something starting with __ and the normal name is an alias.  */
45357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45358 choke me
45359 #else
45360 char (*f) () = $ac_func;
45361 #endif
45362 #ifdef __cplusplus
45363 }
45364 #endif
45365
45366 int
45367 main ()
45368 {
45369 return f != $ac_func;
45370   ;
45371   return 0;
45372 }
45373 _ACEOF
45374 rm -f conftest.$ac_objext conftest$ac_exeext
45375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45376   (eval $ac_link) 2>conftest.er1
45377   ac_status=$?
45378   grep -v '^ *+' conftest.er1 >conftest.err
45379   rm -f conftest.er1
45380   cat conftest.err >&5
45381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45382   (exit $ac_status); } &&
45383          { ac_try='test -z "$ac_c_werror_flag"
45384                          || test ! -s conftest.err'
45385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45386   (eval $ac_try) 2>&5
45387   ac_status=$?
45388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45389   (exit $ac_status); }; } &&
45390          { ac_try='test -s conftest$ac_exeext'
45391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45392   (eval $ac_try) 2>&5
45393   ac_status=$?
45394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45395   (exit $ac_status); }; }; then
45396   eval "$as_ac_var=yes"
45397 else
45398   echo "$as_me: failed program was:" >&5
45399 sed 's/^/| /' conftest.$ac_ext >&5
45400
45401 eval "$as_ac_var=no"
45402 fi
45403 rm -f conftest.err conftest.$ac_objext \
45404       conftest$ac_exeext conftest.$ac_ext
45405 fi
45406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45408 if test `eval echo '${'$as_ac_var'}'` = yes; then
45409   cat >>confdefs.h <<_ACEOF
45410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45411 _ACEOF
45412  ice_have_atol=yes
45413 fi
45414 done
45415
45416 if test "${ice_have_atol}" = yes; then
45417 echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
45418 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6
45419 if test "${ice_cv_have_atol_decl+set}" = set; then
45420   echo $ECHO_N "(cached) $ECHO_C" >&6
45421 else
45422
45423 ice_cv_have_atol_decl=no
45424 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45425 ice_re_word='(^|[^a-zA-Z0-9_])'
45426 for header in stdlib.h; do
45427 # Check for ordinary declaration
45428 cat >conftest.$ac_ext <<_ACEOF
45429 /* confdefs.h.  */
45430 _ACEOF
45431 cat confdefs.h >>conftest.$ac_ext
45432 cat >>conftest.$ac_ext <<_ACEOF
45433 /* end confdefs.h.  */
45434 #include <$header>
45435
45436 _ACEOF
45437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45438   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
45439   ice_cv_have_atol_decl=yes
45440 fi
45441 rm -f conftest*
45442
45443 if test "$ice_cv_have_atol_decl" = yes; then
45444         break
45445 fi
45446 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45447 cat >conftest.$ac_ext <<_ACEOF
45448 /* confdefs.h.  */
45449 _ACEOF
45450 cat confdefs.h >>conftest.$ac_ext
45451 cat >>conftest.$ac_ext <<_ACEOF
45452 /* end confdefs.h.  */
45453 #include <$header>
45454
45455 _ACEOF
45456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45457   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45458   ice_cv_have_atol_decl=yes
45459 fi
45460 rm -f conftest*
45461
45462 if test "$ice_cv_have_atol_decl" = yes; then
45463         break
45464 fi
45465 done
45466
45467 fi
45468
45469 echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
45470 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6
45471 if test "$ice_cv_have_atol_decl" = yes; then
45472
45473 cat >>confdefs.h <<_ACEOF
45474 #define HAVE_ATOL_DECL 1
45475 _ACEOF
45476
45477 fi
45478 fi
45479
45480
45481 ice_have_atoll=no
45482
45483 for ac_func in atoll
45484 do
45485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45486 echo "$as_me:$LINENO: checking for $ac_func" >&5
45487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45488 if eval "test \"\${$as_ac_var+set}\" = set"; then
45489   echo $ECHO_N "(cached) $ECHO_C" >&6
45490 else
45491   cat >conftest.$ac_ext <<_ACEOF
45492 /* confdefs.h.  */
45493 _ACEOF
45494 cat confdefs.h >>conftest.$ac_ext
45495 cat >>conftest.$ac_ext <<_ACEOF
45496 /* end confdefs.h.  */
45497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45499 #define $ac_func innocuous_$ac_func
45500
45501 /* System header to define __stub macros and hopefully few prototypes,
45502     which can conflict with char $ac_func (); below.
45503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45504     <limits.h> exists even on freestanding compilers.  */
45505
45506 #ifdef __STDC__
45507 # include <limits.h>
45508 #else
45509 # include <assert.h>
45510 #endif
45511
45512 #undef $ac_func
45513
45514 /* Override any gcc2 internal prototype to avoid an error.  */
45515 #ifdef __cplusplus
45516 extern "C"
45517 {
45518 #endif
45519 /* We use char because int might match the return type of a gcc2
45520    builtin and then its argument prototype would still apply.  */
45521 char $ac_func ();
45522 /* The GNU C library defines this for functions which it implements
45523     to always fail with ENOSYS.  Some functions are actually named
45524     something starting with __ and the normal name is an alias.  */
45525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45526 choke me
45527 #else
45528 char (*f) () = $ac_func;
45529 #endif
45530 #ifdef __cplusplus
45531 }
45532 #endif
45533
45534 int
45535 main ()
45536 {
45537 return f != $ac_func;
45538   ;
45539   return 0;
45540 }
45541 _ACEOF
45542 rm -f conftest.$ac_objext conftest$ac_exeext
45543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45544   (eval $ac_link) 2>conftest.er1
45545   ac_status=$?
45546   grep -v '^ *+' conftest.er1 >conftest.err
45547   rm -f conftest.er1
45548   cat conftest.err >&5
45549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45550   (exit $ac_status); } &&
45551          { ac_try='test -z "$ac_c_werror_flag"
45552                          || test ! -s conftest.err'
45553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45554   (eval $ac_try) 2>&5
45555   ac_status=$?
45556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45557   (exit $ac_status); }; } &&
45558          { ac_try='test -s conftest$ac_exeext'
45559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45560   (eval $ac_try) 2>&5
45561   ac_status=$?
45562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45563   (exit $ac_status); }; }; then
45564   eval "$as_ac_var=yes"
45565 else
45566   echo "$as_me: failed program was:" >&5
45567 sed 's/^/| /' conftest.$ac_ext >&5
45568
45569 eval "$as_ac_var=no"
45570 fi
45571 rm -f conftest.err conftest.$ac_objext \
45572       conftest$ac_exeext conftest.$ac_ext
45573 fi
45574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45576 if test `eval echo '${'$as_ac_var'}'` = yes; then
45577   cat >>confdefs.h <<_ACEOF
45578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45579 _ACEOF
45580  ice_have_atoll=yes
45581 fi
45582 done
45583
45584 if test "${ice_have_atoll}" = yes; then
45585 echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
45586 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6
45587 if test "${ice_cv_have_atoll_decl+set}" = set; then
45588   echo $ECHO_N "(cached) $ECHO_C" >&6
45589 else
45590
45591 ice_cv_have_atoll_decl=no
45592 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45593 ice_re_word='(^|[^a-zA-Z0-9_])'
45594 for header in stdlib.h; do
45595 # Check for ordinary declaration
45596 cat >conftest.$ac_ext <<_ACEOF
45597 /* confdefs.h.  */
45598 _ACEOF
45599 cat confdefs.h >>conftest.$ac_ext
45600 cat >>conftest.$ac_ext <<_ACEOF
45601 /* end confdefs.h.  */
45602 #include <$header>
45603
45604 _ACEOF
45605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45606   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
45607   ice_cv_have_atoll_decl=yes
45608 fi
45609 rm -f conftest*
45610
45611 if test "$ice_cv_have_atoll_decl" = yes; then
45612         break
45613 fi
45614 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45615 cat >conftest.$ac_ext <<_ACEOF
45616 /* confdefs.h.  */
45617 _ACEOF
45618 cat confdefs.h >>conftest.$ac_ext
45619 cat >>conftest.$ac_ext <<_ACEOF
45620 /* end confdefs.h.  */
45621 #include <$header>
45622
45623 _ACEOF
45624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45625   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45626   ice_cv_have_atoll_decl=yes
45627 fi
45628 rm -f conftest*
45629
45630 if test "$ice_cv_have_atoll_decl" = yes; then
45631         break
45632 fi
45633 done
45634
45635 fi
45636
45637 echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
45638 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6
45639 if test "$ice_cv_have_atoll_decl" = yes; then
45640
45641 cat >>confdefs.h <<_ACEOF
45642 #define HAVE_ATOLL_DECL 1
45643 _ACEOF
45644
45645 fi
45646 fi
45647
45648
45649 ice_have_strtol=no
45650
45651 for ac_func in strtol
45652 do
45653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45654 echo "$as_me:$LINENO: checking for $ac_func" >&5
45655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45656 if eval "test \"\${$as_ac_var+set}\" = set"; then
45657   echo $ECHO_N "(cached) $ECHO_C" >&6
45658 else
45659   cat >conftest.$ac_ext <<_ACEOF
45660 /* confdefs.h.  */
45661 _ACEOF
45662 cat confdefs.h >>conftest.$ac_ext
45663 cat >>conftest.$ac_ext <<_ACEOF
45664 /* end confdefs.h.  */
45665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45667 #define $ac_func innocuous_$ac_func
45668
45669 /* System header to define __stub macros and hopefully few prototypes,
45670     which can conflict with char $ac_func (); below.
45671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45672     <limits.h> exists even on freestanding compilers.  */
45673
45674 #ifdef __STDC__
45675 # include <limits.h>
45676 #else
45677 # include <assert.h>
45678 #endif
45679
45680 #undef $ac_func
45681
45682 /* Override any gcc2 internal prototype to avoid an error.  */
45683 #ifdef __cplusplus
45684 extern "C"
45685 {
45686 #endif
45687 /* We use char because int might match the return type of a gcc2
45688    builtin and then its argument prototype would still apply.  */
45689 char $ac_func ();
45690 /* The GNU C library defines this for functions which it implements
45691     to always fail with ENOSYS.  Some functions are actually named
45692     something starting with __ and the normal name is an alias.  */
45693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45694 choke me
45695 #else
45696 char (*f) () = $ac_func;
45697 #endif
45698 #ifdef __cplusplus
45699 }
45700 #endif
45701
45702 int
45703 main ()
45704 {
45705 return f != $ac_func;
45706   ;
45707   return 0;
45708 }
45709 _ACEOF
45710 rm -f conftest.$ac_objext conftest$ac_exeext
45711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45712   (eval $ac_link) 2>conftest.er1
45713   ac_status=$?
45714   grep -v '^ *+' conftest.er1 >conftest.err
45715   rm -f conftest.er1
45716   cat conftest.err >&5
45717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45718   (exit $ac_status); } &&
45719          { ac_try='test -z "$ac_c_werror_flag"
45720                          || test ! -s conftest.err'
45721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45722   (eval $ac_try) 2>&5
45723   ac_status=$?
45724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45725   (exit $ac_status); }; } &&
45726          { ac_try='test -s conftest$ac_exeext'
45727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45728   (eval $ac_try) 2>&5
45729   ac_status=$?
45730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45731   (exit $ac_status); }; }; then
45732   eval "$as_ac_var=yes"
45733 else
45734   echo "$as_me: failed program was:" >&5
45735 sed 's/^/| /' conftest.$ac_ext >&5
45736
45737 eval "$as_ac_var=no"
45738 fi
45739 rm -f conftest.err conftest.$ac_objext \
45740       conftest$ac_exeext conftest.$ac_ext
45741 fi
45742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45744 if test `eval echo '${'$as_ac_var'}'` = yes; then
45745   cat >>confdefs.h <<_ACEOF
45746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45747 _ACEOF
45748  ice_have_strtol=yes
45749 fi
45750 done
45751
45752 if test "${ice_have_strtol}" = yes; then
45753 echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
45754 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6
45755 if test "${ice_cv_have_strtol_decl+set}" = set; then
45756   echo $ECHO_N "(cached) $ECHO_C" >&6
45757 else
45758
45759 ice_cv_have_strtol_decl=no
45760 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45761 ice_re_word='(^|[^a-zA-Z0-9_])'
45762 for header in stdlib.h; do
45763 # Check for ordinary declaration
45764 cat >conftest.$ac_ext <<_ACEOF
45765 /* confdefs.h.  */
45766 _ACEOF
45767 cat confdefs.h >>conftest.$ac_ext
45768 cat >>conftest.$ac_ext <<_ACEOF
45769 /* end confdefs.h.  */
45770 #include <$header>
45771
45772 _ACEOF
45773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45774   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
45775   ice_cv_have_strtol_decl=yes
45776 fi
45777 rm -f conftest*
45778
45779 if test "$ice_cv_have_strtol_decl" = yes; then
45780         break
45781 fi
45782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45783 cat >conftest.$ac_ext <<_ACEOF
45784 /* confdefs.h.  */
45785 _ACEOF
45786 cat confdefs.h >>conftest.$ac_ext
45787 cat >>conftest.$ac_ext <<_ACEOF
45788 /* end confdefs.h.  */
45789 #include <$header>
45790
45791 _ACEOF
45792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45793   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45794   ice_cv_have_strtol_decl=yes
45795 fi
45796 rm -f conftest*
45797
45798 if test "$ice_cv_have_strtol_decl" = yes; then
45799         break
45800 fi
45801 done
45802
45803 fi
45804
45805 echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
45806 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6
45807 if test "$ice_cv_have_strtol_decl" = yes; then
45808
45809 cat >>confdefs.h <<_ACEOF
45810 #define HAVE_STRTOL_DECL 1
45811 _ACEOF
45812
45813 fi
45814 fi
45815
45816
45817 ice_have_strtoll=no
45818
45819 for ac_func in strtoll
45820 do
45821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45822 echo "$as_me:$LINENO: checking for $ac_func" >&5
45823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45824 if eval "test \"\${$as_ac_var+set}\" = set"; then
45825   echo $ECHO_N "(cached) $ECHO_C" >&6
45826 else
45827   cat >conftest.$ac_ext <<_ACEOF
45828 /* confdefs.h.  */
45829 _ACEOF
45830 cat confdefs.h >>conftest.$ac_ext
45831 cat >>conftest.$ac_ext <<_ACEOF
45832 /* end confdefs.h.  */
45833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45835 #define $ac_func innocuous_$ac_func
45836
45837 /* System header to define __stub macros and hopefully few prototypes,
45838     which can conflict with char $ac_func (); below.
45839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45840     <limits.h> exists even on freestanding compilers.  */
45841
45842 #ifdef __STDC__
45843 # include <limits.h>
45844 #else
45845 # include <assert.h>
45846 #endif
45847
45848 #undef $ac_func
45849
45850 /* Override any gcc2 internal prototype to avoid an error.  */
45851 #ifdef __cplusplus
45852 extern "C"
45853 {
45854 #endif
45855 /* We use char because int might match the return type of a gcc2
45856    builtin and then its argument prototype would still apply.  */
45857 char $ac_func ();
45858 /* The GNU C library defines this for functions which it implements
45859     to always fail with ENOSYS.  Some functions are actually named
45860     something starting with __ and the normal name is an alias.  */
45861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45862 choke me
45863 #else
45864 char (*f) () = $ac_func;
45865 #endif
45866 #ifdef __cplusplus
45867 }
45868 #endif
45869
45870 int
45871 main ()
45872 {
45873 return f != $ac_func;
45874   ;
45875   return 0;
45876 }
45877 _ACEOF
45878 rm -f conftest.$ac_objext conftest$ac_exeext
45879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45880   (eval $ac_link) 2>conftest.er1
45881   ac_status=$?
45882   grep -v '^ *+' conftest.er1 >conftest.err
45883   rm -f conftest.er1
45884   cat conftest.err >&5
45885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45886   (exit $ac_status); } &&
45887          { ac_try='test -z "$ac_c_werror_flag"
45888                          || test ! -s conftest.err'
45889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45890   (eval $ac_try) 2>&5
45891   ac_status=$?
45892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45893   (exit $ac_status); }; } &&
45894          { ac_try='test -s conftest$ac_exeext'
45895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45896   (eval $ac_try) 2>&5
45897   ac_status=$?
45898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45899   (exit $ac_status); }; }; then
45900   eval "$as_ac_var=yes"
45901 else
45902   echo "$as_me: failed program was:" >&5
45903 sed 's/^/| /' conftest.$ac_ext >&5
45904
45905 eval "$as_ac_var=no"
45906 fi
45907 rm -f conftest.err conftest.$ac_objext \
45908       conftest$ac_exeext conftest.$ac_ext
45909 fi
45910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45912 if test `eval echo '${'$as_ac_var'}'` = yes; then
45913   cat >>confdefs.h <<_ACEOF
45914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45915 _ACEOF
45916  ice_have_strtoll=yes
45917 fi
45918 done
45919
45920 if test "${ice_have_strtoll}" = yes; then
45921 echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
45922 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6
45923 if test "${ice_cv_have_strtoll_decl+set}" = set; then
45924   echo $ECHO_N "(cached) $ECHO_C" >&6
45925 else
45926
45927 ice_cv_have_strtoll_decl=no
45928 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45929 ice_re_word='(^|[^a-zA-Z0-9_])'
45930 for header in stdlib.h; do
45931 # Check for ordinary declaration
45932 cat >conftest.$ac_ext <<_ACEOF
45933 /* confdefs.h.  */
45934 _ACEOF
45935 cat confdefs.h >>conftest.$ac_ext
45936 cat >>conftest.$ac_ext <<_ACEOF
45937 /* end confdefs.h.  */
45938 #include <$header>
45939
45940 _ACEOF
45941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45942   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
45943   ice_cv_have_strtoll_decl=yes
45944 fi
45945 rm -f conftest*
45946
45947 if test "$ice_cv_have_strtoll_decl" = yes; then
45948         break
45949 fi
45950 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45951 cat >conftest.$ac_ext <<_ACEOF
45952 /* confdefs.h.  */
45953 _ACEOF
45954 cat confdefs.h >>conftest.$ac_ext
45955 cat >>conftest.$ac_ext <<_ACEOF
45956 /* end confdefs.h.  */
45957 #include <$header>
45958
45959 _ACEOF
45960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45961   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45962   ice_cv_have_strtoll_decl=yes
45963 fi
45964 rm -f conftest*
45965
45966 if test "$ice_cv_have_strtoll_decl" = yes; then
45967         break
45968 fi
45969 done
45970
45971 fi
45972
45973 echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
45974 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6
45975 if test "$ice_cv_have_strtoll_decl" = yes; then
45976
45977 cat >>confdefs.h <<_ACEOF
45978 #define HAVE_STRTOLL_DECL 1
45979 _ACEOF
45980
45981 fi
45982 fi
45983
45984
45985 for ac_func in basename
45986 do
45987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45988 echo "$as_me:$LINENO: checking for $ac_func" >&5
45989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45990 if eval "test \"\${$as_ac_var+set}\" = set"; then
45991   echo $ECHO_N "(cached) $ECHO_C" >&6
45992 else
45993   cat >conftest.$ac_ext <<_ACEOF
45994 /* confdefs.h.  */
45995 _ACEOF
45996 cat confdefs.h >>conftest.$ac_ext
45997 cat >>conftest.$ac_ext <<_ACEOF
45998 /* end confdefs.h.  */
45999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46001 #define $ac_func innocuous_$ac_func
46002
46003 /* System header to define __stub macros and hopefully few prototypes,
46004     which can conflict with char $ac_func (); below.
46005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46006     <limits.h> exists even on freestanding compilers.  */
46007
46008 #ifdef __STDC__
46009 # include <limits.h>
46010 #else
46011 # include <assert.h>
46012 #endif
46013
46014 #undef $ac_func
46015
46016 /* Override any gcc2 internal prototype to avoid an error.  */
46017 #ifdef __cplusplus
46018 extern "C"
46019 {
46020 #endif
46021 /* We use char because int might match the return type of a gcc2
46022    builtin and then its argument prototype would still apply.  */
46023 char $ac_func ();
46024 /* The GNU C library defines this for functions which it implements
46025     to always fail with ENOSYS.  Some functions are actually named
46026     something starting with __ and the normal name is an alias.  */
46027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46028 choke me
46029 #else
46030 char (*f) () = $ac_func;
46031 #endif
46032 #ifdef __cplusplus
46033 }
46034 #endif
46035
46036 int
46037 main ()
46038 {
46039 return f != $ac_func;
46040   ;
46041   return 0;
46042 }
46043 _ACEOF
46044 rm -f conftest.$ac_objext conftest$ac_exeext
46045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46046   (eval $ac_link) 2>conftest.er1
46047   ac_status=$?
46048   grep -v '^ *+' conftest.er1 >conftest.err
46049   rm -f conftest.er1
46050   cat conftest.err >&5
46051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052   (exit $ac_status); } &&
46053          { ac_try='test -z "$ac_c_werror_flag"
46054                          || test ! -s conftest.err'
46055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46056   (eval $ac_try) 2>&5
46057   ac_status=$?
46058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46059   (exit $ac_status); }; } &&
46060          { ac_try='test -s conftest$ac_exeext'
46061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46062   (eval $ac_try) 2>&5
46063   ac_status=$?
46064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46065   (exit $ac_status); }; }; then
46066   eval "$as_ac_var=yes"
46067 else
46068   echo "$as_me: failed program was:" >&5
46069 sed 's/^/| /' conftest.$ac_ext >&5
46070
46071 eval "$as_ac_var=no"
46072 fi
46073 rm -f conftest.err conftest.$ac_objext \
46074       conftest$ac_exeext conftest.$ac_ext
46075 fi
46076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46077 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46078 if test `eval echo '${'$as_ac_var'}'` = yes; then
46079   cat >>confdefs.h <<_ACEOF
46080 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46081 _ACEOF
46082
46083 fi
46084 done
46085
46086
46087 ice_have_bind=no
46088
46089 for ac_func in bind
46090 do
46091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46092 echo "$as_me:$LINENO: checking for $ac_func" >&5
46093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46094 if eval "test \"\${$as_ac_var+set}\" = set"; then
46095   echo $ECHO_N "(cached) $ECHO_C" >&6
46096 else
46097   cat >conftest.$ac_ext <<_ACEOF
46098 /* confdefs.h.  */
46099 _ACEOF
46100 cat confdefs.h >>conftest.$ac_ext
46101 cat >>conftest.$ac_ext <<_ACEOF
46102 /* end confdefs.h.  */
46103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46105 #define $ac_func innocuous_$ac_func
46106
46107 /* System header to define __stub macros and hopefully few prototypes,
46108     which can conflict with char $ac_func (); below.
46109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46110     <limits.h> exists even on freestanding compilers.  */
46111
46112 #ifdef __STDC__
46113 # include <limits.h>
46114 #else
46115 # include <assert.h>
46116 #endif
46117
46118 #undef $ac_func
46119
46120 /* Override any gcc2 internal prototype to avoid an error.  */
46121 #ifdef __cplusplus
46122 extern "C"
46123 {
46124 #endif
46125 /* We use char because int might match the return type of a gcc2
46126    builtin and then its argument prototype would still apply.  */
46127 char $ac_func ();
46128 /* The GNU C library defines this for functions which it implements
46129     to always fail with ENOSYS.  Some functions are actually named
46130     something starting with __ and the normal name is an alias.  */
46131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46132 choke me
46133 #else
46134 char (*f) () = $ac_func;
46135 #endif
46136 #ifdef __cplusplus
46137 }
46138 #endif
46139
46140 int
46141 main ()
46142 {
46143 return f != $ac_func;
46144   ;
46145   return 0;
46146 }
46147 _ACEOF
46148 rm -f conftest.$ac_objext conftest$ac_exeext
46149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46150   (eval $ac_link) 2>conftest.er1
46151   ac_status=$?
46152   grep -v '^ *+' conftest.er1 >conftest.err
46153   rm -f conftest.er1
46154   cat conftest.err >&5
46155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46156   (exit $ac_status); } &&
46157          { ac_try='test -z "$ac_c_werror_flag"
46158                          || test ! -s conftest.err'
46159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46160   (eval $ac_try) 2>&5
46161   ac_status=$?
46162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46163   (exit $ac_status); }; } &&
46164          { ac_try='test -s conftest$ac_exeext'
46165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46166   (eval $ac_try) 2>&5
46167   ac_status=$?
46168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46169   (exit $ac_status); }; }; then
46170   eval "$as_ac_var=yes"
46171 else
46172   echo "$as_me: failed program was:" >&5
46173 sed 's/^/| /' conftest.$ac_ext >&5
46174
46175 eval "$as_ac_var=no"
46176 fi
46177 rm -f conftest.err conftest.$ac_objext \
46178       conftest$ac_exeext conftest.$ac_ext
46179 fi
46180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46182 if test `eval echo '${'$as_ac_var'}'` = yes; then
46183   cat >>confdefs.h <<_ACEOF
46184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46185 _ACEOF
46186  ice_have_bind=yes
46187 fi
46188 done
46189
46190 if test "${ice_have_bind}" = yes; then
46191 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
46192 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46193 if test "${ice_cv_have_bind_decl+set}" = set; then
46194   echo $ECHO_N "(cached) $ECHO_C" >&6
46195 else
46196
46197 ice_cv_have_bind_decl=no
46198 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46199 ice_re_word='(^|[^a-zA-Z0-9_])'
46200 for header in sys/types.h sys/socket.h; do
46201 # Check for ordinary declaration
46202 cat >conftest.$ac_ext <<_ACEOF
46203 /* confdefs.h.  */
46204 _ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h.  */
46208 #include <$header>
46209
46210 _ACEOF
46211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46212   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
46213   ice_cv_have_bind_decl=yes
46214 fi
46215 rm -f conftest*
46216
46217 if test "$ice_cv_have_bind_decl" = yes; then
46218         break
46219 fi
46220 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46221 cat >conftest.$ac_ext <<_ACEOF
46222 /* confdefs.h.  */
46223 _ACEOF
46224 cat confdefs.h >>conftest.$ac_ext
46225 cat >>conftest.$ac_ext <<_ACEOF
46226 /* end confdefs.h.  */
46227 #include <$header>
46228
46229 _ACEOF
46230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46231   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46232   ice_cv_have_bind_decl=yes
46233 fi
46234 rm -f conftest*
46235
46236 if test "$ice_cv_have_bind_decl" = yes; then
46237         break
46238 fi
46239 done
46240
46241 fi
46242
46243 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
46244 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
46245 if test "$ice_cv_have_bind_decl" = yes; then
46246
46247 cat >>confdefs.h <<_ACEOF
46248 #define HAVE_BIND_DECL 1
46249 _ACEOF
46250
46251 fi
46252 fi
46253
46254
46255 ice_have_bcopy=no
46256
46257 for ac_func in bcopy
46258 do
46259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46260 echo "$as_me:$LINENO: checking for $ac_func" >&5
46261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46262 if eval "test \"\${$as_ac_var+set}\" = set"; then
46263   echo $ECHO_N "(cached) $ECHO_C" >&6
46264 else
46265   cat >conftest.$ac_ext <<_ACEOF
46266 /* confdefs.h.  */
46267 _ACEOF
46268 cat confdefs.h >>conftest.$ac_ext
46269 cat >>conftest.$ac_ext <<_ACEOF
46270 /* end confdefs.h.  */
46271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46273 #define $ac_func innocuous_$ac_func
46274
46275 /* System header to define __stub macros and hopefully few prototypes,
46276     which can conflict with char $ac_func (); below.
46277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46278     <limits.h> exists even on freestanding compilers.  */
46279
46280 #ifdef __STDC__
46281 # include <limits.h>
46282 #else
46283 # include <assert.h>
46284 #endif
46285
46286 #undef $ac_func
46287
46288 /* Override any gcc2 internal prototype to avoid an error.  */
46289 #ifdef __cplusplus
46290 extern "C"
46291 {
46292 #endif
46293 /* We use char because int might match the return type of a gcc2
46294    builtin and then its argument prototype would still apply.  */
46295 char $ac_func ();
46296 /* The GNU C library defines this for functions which it implements
46297     to always fail with ENOSYS.  Some functions are actually named
46298     something starting with __ and the normal name is an alias.  */
46299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46300 choke me
46301 #else
46302 char (*f) () = $ac_func;
46303 #endif
46304 #ifdef __cplusplus
46305 }
46306 #endif
46307
46308 int
46309 main ()
46310 {
46311 return f != $ac_func;
46312   ;
46313   return 0;
46314 }
46315 _ACEOF
46316 rm -f conftest.$ac_objext conftest$ac_exeext
46317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46318   (eval $ac_link) 2>conftest.er1
46319   ac_status=$?
46320   grep -v '^ *+' conftest.er1 >conftest.err
46321   rm -f conftest.er1
46322   cat conftest.err >&5
46323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46324   (exit $ac_status); } &&
46325          { ac_try='test -z "$ac_c_werror_flag"
46326                          || test ! -s conftest.err'
46327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46328   (eval $ac_try) 2>&5
46329   ac_status=$?
46330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46331   (exit $ac_status); }; } &&
46332          { ac_try='test -s conftest$ac_exeext'
46333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46334   (eval $ac_try) 2>&5
46335   ac_status=$?
46336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46337   (exit $ac_status); }; }; then
46338   eval "$as_ac_var=yes"
46339 else
46340   echo "$as_me: failed program was:" >&5
46341 sed 's/^/| /' conftest.$ac_ext >&5
46342
46343 eval "$as_ac_var=no"
46344 fi
46345 rm -f conftest.err conftest.$ac_objext \
46346       conftest$ac_exeext conftest.$ac_ext
46347 fi
46348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46350 if test `eval echo '${'$as_ac_var'}'` = yes; then
46351   cat >>confdefs.h <<_ACEOF
46352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46353 _ACEOF
46354  ice_have_bcopy=yes
46355 fi
46356 done
46357
46358 if test "${ice_have_bcopy}" = yes; then
46359 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
46360 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
46361 if test "${ice_cv_have_bcopy_decl+set}" = set; then
46362   echo $ECHO_N "(cached) $ECHO_C" >&6
46363 else
46364
46365 ice_cv_have_bcopy_decl=no
46366 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46367 ice_re_word='(^|[^a-zA-Z0-9_])'
46368 for header in string.h strings.h stdlib.h; do
46369 # Check for ordinary declaration
46370 cat >conftest.$ac_ext <<_ACEOF
46371 /* confdefs.h.  */
46372 _ACEOF
46373 cat confdefs.h >>conftest.$ac_ext
46374 cat >>conftest.$ac_ext <<_ACEOF
46375 /* end confdefs.h.  */
46376 #include <$header>
46377
46378 _ACEOF
46379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46380   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
46381   ice_cv_have_bcopy_decl=yes
46382 fi
46383 rm -f conftest*
46384
46385 if test "$ice_cv_have_bcopy_decl" = yes; then
46386         break
46387 fi
46388 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46389 cat >conftest.$ac_ext <<_ACEOF
46390 /* confdefs.h.  */
46391 _ACEOF
46392 cat confdefs.h >>conftest.$ac_ext
46393 cat >>conftest.$ac_ext <<_ACEOF
46394 /* end confdefs.h.  */
46395 #include <$header>
46396
46397 _ACEOF
46398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46399   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46400   ice_cv_have_bcopy_decl=yes
46401 fi
46402 rm -f conftest*
46403
46404 if test "$ice_cv_have_bcopy_decl" = yes; then
46405         break
46406 fi
46407 done
46408
46409 fi
46410
46411 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
46412 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
46413 if test "$ice_cv_have_bcopy_decl" = yes; then
46414
46415 cat >>confdefs.h <<_ACEOF
46416 #define HAVE_BCOPY_DECL 1
46417 _ACEOF
46418
46419 fi
46420 fi
46421
46422
46423 ice_have_bzero=no
46424
46425 for ac_func in bzero
46426 do
46427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46428 echo "$as_me:$LINENO: checking for $ac_func" >&5
46429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46430 if eval "test \"\${$as_ac_var+set}\" = set"; then
46431   echo $ECHO_N "(cached) $ECHO_C" >&6
46432 else
46433   cat >conftest.$ac_ext <<_ACEOF
46434 /* confdefs.h.  */
46435 _ACEOF
46436 cat confdefs.h >>conftest.$ac_ext
46437 cat >>conftest.$ac_ext <<_ACEOF
46438 /* end confdefs.h.  */
46439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46441 #define $ac_func innocuous_$ac_func
46442
46443 /* System header to define __stub macros and hopefully few prototypes,
46444     which can conflict with char $ac_func (); below.
46445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46446     <limits.h> exists even on freestanding compilers.  */
46447
46448 #ifdef __STDC__
46449 # include <limits.h>
46450 #else
46451 # include <assert.h>
46452 #endif
46453
46454 #undef $ac_func
46455
46456 /* Override any gcc2 internal prototype to avoid an error.  */
46457 #ifdef __cplusplus
46458 extern "C"
46459 {
46460 #endif
46461 /* We use char because int might match the return type of a gcc2
46462    builtin and then its argument prototype would still apply.  */
46463 char $ac_func ();
46464 /* The GNU C library defines this for functions which it implements
46465     to always fail with ENOSYS.  Some functions are actually named
46466     something starting with __ and the normal name is an alias.  */
46467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46468 choke me
46469 #else
46470 char (*f) () = $ac_func;
46471 #endif
46472 #ifdef __cplusplus
46473 }
46474 #endif
46475
46476 int
46477 main ()
46478 {
46479 return f != $ac_func;
46480   ;
46481   return 0;
46482 }
46483 _ACEOF
46484 rm -f conftest.$ac_objext conftest$ac_exeext
46485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46486   (eval $ac_link) 2>conftest.er1
46487   ac_status=$?
46488   grep -v '^ *+' conftest.er1 >conftest.err
46489   rm -f conftest.er1
46490   cat conftest.err >&5
46491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46492   (exit $ac_status); } &&
46493          { ac_try='test -z "$ac_c_werror_flag"
46494                          || test ! -s conftest.err'
46495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46496   (eval $ac_try) 2>&5
46497   ac_status=$?
46498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499   (exit $ac_status); }; } &&
46500          { ac_try='test -s conftest$ac_exeext'
46501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46502   (eval $ac_try) 2>&5
46503   ac_status=$?
46504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46505   (exit $ac_status); }; }; then
46506   eval "$as_ac_var=yes"
46507 else
46508   echo "$as_me: failed program was:" >&5
46509 sed 's/^/| /' conftest.$ac_ext >&5
46510
46511 eval "$as_ac_var=no"
46512 fi
46513 rm -f conftest.err conftest.$ac_objext \
46514       conftest$ac_exeext conftest.$ac_ext
46515 fi
46516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46518 if test `eval echo '${'$as_ac_var'}'` = yes; then
46519   cat >>confdefs.h <<_ACEOF
46520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46521 _ACEOF
46522  ice_have_bzero=yes
46523 fi
46524 done
46525
46526 if test "${ice_have_bzero}" = yes; then
46527 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
46528 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
46529 if test "${ice_cv_have_bzero_decl+set}" = set; then
46530   echo $ECHO_N "(cached) $ECHO_C" >&6
46531 else
46532
46533 ice_cv_have_bzero_decl=no
46534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46535 ice_re_word='(^|[^a-zA-Z0-9_])'
46536 for header in string.h strings.h stdlib.h; do
46537 # Check for ordinary declaration
46538 cat >conftest.$ac_ext <<_ACEOF
46539 /* confdefs.h.  */
46540 _ACEOF
46541 cat confdefs.h >>conftest.$ac_ext
46542 cat >>conftest.$ac_ext <<_ACEOF
46543 /* end confdefs.h.  */
46544 #include <$header>
46545
46546 _ACEOF
46547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46548   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
46549   ice_cv_have_bzero_decl=yes
46550 fi
46551 rm -f conftest*
46552
46553 if test "$ice_cv_have_bzero_decl" = yes; then
46554         break
46555 fi
46556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46557 cat >conftest.$ac_ext <<_ACEOF
46558 /* confdefs.h.  */
46559 _ACEOF
46560 cat confdefs.h >>conftest.$ac_ext
46561 cat >>conftest.$ac_ext <<_ACEOF
46562 /* end confdefs.h.  */
46563 #include <$header>
46564
46565 _ACEOF
46566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46567   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46568   ice_cv_have_bzero_decl=yes
46569 fi
46570 rm -f conftest*
46571
46572 if test "$ice_cv_have_bzero_decl" = yes; then
46573         break
46574 fi
46575 done
46576
46577 fi
46578
46579 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
46580 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
46581 if test "$ice_cv_have_bzero_decl" = yes; then
46582
46583 cat >>confdefs.h <<_ACEOF
46584 #define HAVE_BZERO_DECL 1
46585 _ACEOF
46586
46587 fi
46588 fi
46589
46590 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
46591 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
46592 if test "${ac_cv_func_closedir_void+set}" = set; then
46593   echo $ECHO_N "(cached) $ECHO_C" >&6
46594 else
46595   if test "$cross_compiling" = yes; then
46596   ac_cv_func_closedir_void=yes
46597 else
46598   cat >conftest.$ac_ext <<_ACEOF
46599 /* confdefs.h.  */
46600 _ACEOF
46601 cat confdefs.h >>conftest.$ac_ext
46602 cat >>conftest.$ac_ext <<_ACEOF
46603 /* end confdefs.h.  */
46604 $ac_includes_default
46605 #include <$ac_header_dirent>
46606 #ifndef __cplusplus
46607 int closedir ();
46608 #endif
46609
46610 int
46611 main ()
46612 {
46613 exit (closedir (opendir (".")) != 0);
46614   ;
46615   return 0;
46616 }
46617 _ACEOF
46618 rm -f conftest$ac_exeext
46619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46620   (eval $ac_link) 2>&5
46621   ac_status=$?
46622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46625   (eval $ac_try) 2>&5
46626   ac_status=$?
46627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46628   (exit $ac_status); }; }; then
46629   ac_cv_func_closedir_void=no
46630 else
46631   echo "$as_me: program exited with status $ac_status" >&5
46632 echo "$as_me: failed program was:" >&5
46633 sed 's/^/| /' conftest.$ac_ext >&5
46634
46635 ( exit $ac_status )
46636 ac_cv_func_closedir_void=yes
46637 fi
46638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46639 fi
46640 fi
46641 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
46642 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
46643 if test $ac_cv_func_closedir_void = yes; then
46644
46645 cat >>confdefs.h <<\_ACEOF
46646 #define CLOSEDIR_VOID 1
46647 _ACEOF
46648
46649 fi
46650
46651
46652 ice_have_closelog=no
46653
46654 for ac_func in closelog
46655 do
46656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46657 echo "$as_me:$LINENO: checking for $ac_func" >&5
46658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46659 if eval "test \"\${$as_ac_var+set}\" = set"; then
46660   echo $ECHO_N "(cached) $ECHO_C" >&6
46661 else
46662   cat >conftest.$ac_ext <<_ACEOF
46663 /* confdefs.h.  */
46664 _ACEOF
46665 cat confdefs.h >>conftest.$ac_ext
46666 cat >>conftest.$ac_ext <<_ACEOF
46667 /* end confdefs.h.  */
46668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46670 #define $ac_func innocuous_$ac_func
46671
46672 /* System header to define __stub macros and hopefully few prototypes,
46673     which can conflict with char $ac_func (); below.
46674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46675     <limits.h> exists even on freestanding compilers.  */
46676
46677 #ifdef __STDC__
46678 # include <limits.h>
46679 #else
46680 # include <assert.h>
46681 #endif
46682
46683 #undef $ac_func
46684
46685 /* Override any gcc2 internal prototype to avoid an error.  */
46686 #ifdef __cplusplus
46687 extern "C"
46688 {
46689 #endif
46690 /* We use char because int might match the return type of a gcc2
46691    builtin and then its argument prototype would still apply.  */
46692 char $ac_func ();
46693 /* The GNU C library defines this for functions which it implements
46694     to always fail with ENOSYS.  Some functions are actually named
46695     something starting with __ and the normal name is an alias.  */
46696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46697 choke me
46698 #else
46699 char (*f) () = $ac_func;
46700 #endif
46701 #ifdef __cplusplus
46702 }
46703 #endif
46704
46705 int
46706 main ()
46707 {
46708 return f != $ac_func;
46709   ;
46710   return 0;
46711 }
46712 _ACEOF
46713 rm -f conftest.$ac_objext conftest$ac_exeext
46714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46715   (eval $ac_link) 2>conftest.er1
46716   ac_status=$?
46717   grep -v '^ *+' conftest.er1 >conftest.err
46718   rm -f conftest.er1
46719   cat conftest.err >&5
46720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46721   (exit $ac_status); } &&
46722          { ac_try='test -z "$ac_c_werror_flag"
46723                          || test ! -s conftest.err'
46724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46725   (eval $ac_try) 2>&5
46726   ac_status=$?
46727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46728   (exit $ac_status); }; } &&
46729          { ac_try='test -s conftest$ac_exeext'
46730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46731   (eval $ac_try) 2>&5
46732   ac_status=$?
46733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46734   (exit $ac_status); }; }; then
46735   eval "$as_ac_var=yes"
46736 else
46737   echo "$as_me: failed program was:" >&5
46738 sed 's/^/| /' conftest.$ac_ext >&5
46739
46740 eval "$as_ac_var=no"
46741 fi
46742 rm -f conftest.err conftest.$ac_objext \
46743       conftest$ac_exeext conftest.$ac_ext
46744 fi
46745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46747 if test `eval echo '${'$as_ac_var'}'` = yes; then
46748   cat >>confdefs.h <<_ACEOF
46749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46750 _ACEOF
46751  ice_have_closelog=yes
46752 fi
46753 done
46754
46755 if test "${ice_have_closelog}" = yes; then
46756 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
46757 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
46758 if test "${ice_cv_have_closelog_decl+set}" = set; then
46759   echo $ECHO_N "(cached) $ECHO_C" >&6
46760 else
46761
46762 ice_cv_have_closelog_decl=no
46763 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46764 ice_re_word='(^|[^a-zA-Z0-9_])'
46765 for header in syslog.h; do
46766 # Check for ordinary declaration
46767 cat >conftest.$ac_ext <<_ACEOF
46768 /* confdefs.h.  */
46769 _ACEOF
46770 cat confdefs.h >>conftest.$ac_ext
46771 cat >>conftest.$ac_ext <<_ACEOF
46772 /* end confdefs.h.  */
46773 #include <$header>
46774
46775 _ACEOF
46776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46777   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
46778   ice_cv_have_closelog_decl=yes
46779 fi
46780 rm -f conftest*
46781
46782 if test "$ice_cv_have_closelog_decl" = yes; then
46783         break
46784 fi
46785 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46786 cat >conftest.$ac_ext <<_ACEOF
46787 /* confdefs.h.  */
46788 _ACEOF
46789 cat confdefs.h >>conftest.$ac_ext
46790 cat >>conftest.$ac_ext <<_ACEOF
46791 /* end confdefs.h.  */
46792 #include <$header>
46793
46794 _ACEOF
46795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46796   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46797   ice_cv_have_closelog_decl=yes
46798 fi
46799 rm -f conftest*
46800
46801 if test "$ice_cv_have_closelog_decl" = yes; then
46802         break
46803 fi
46804 done
46805
46806 fi
46807
46808 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
46809 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
46810 if test "$ice_cv_have_closelog_decl" = yes; then
46811
46812 cat >>confdefs.h <<_ACEOF
46813 #define HAVE_CLOSELOG_DECL 1
46814 _ACEOF
46815
46816 fi
46817 fi
46818
46819
46820 ice_have_connect=no
46821
46822 for ac_func in connect
46823 do
46824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46825 echo "$as_me:$LINENO: checking for $ac_func" >&5
46826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46827 if eval "test \"\${$as_ac_var+set}\" = set"; then
46828   echo $ECHO_N "(cached) $ECHO_C" >&6
46829 else
46830   cat >conftest.$ac_ext <<_ACEOF
46831 /* confdefs.h.  */
46832 _ACEOF
46833 cat confdefs.h >>conftest.$ac_ext
46834 cat >>conftest.$ac_ext <<_ACEOF
46835 /* end confdefs.h.  */
46836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46838 #define $ac_func innocuous_$ac_func
46839
46840 /* System header to define __stub macros and hopefully few prototypes,
46841     which can conflict with char $ac_func (); below.
46842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46843     <limits.h> exists even on freestanding compilers.  */
46844
46845 #ifdef __STDC__
46846 # include <limits.h>
46847 #else
46848 # include <assert.h>
46849 #endif
46850
46851 #undef $ac_func
46852
46853 /* Override any gcc2 internal prototype to avoid an error.  */
46854 #ifdef __cplusplus
46855 extern "C"
46856 {
46857 #endif
46858 /* We use char because int might match the return type of a gcc2
46859    builtin and then its argument prototype would still apply.  */
46860 char $ac_func ();
46861 /* The GNU C library defines this for functions which it implements
46862     to always fail with ENOSYS.  Some functions are actually named
46863     something starting with __ and the normal name is an alias.  */
46864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46865 choke me
46866 #else
46867 char (*f) () = $ac_func;
46868 #endif
46869 #ifdef __cplusplus
46870 }
46871 #endif
46872
46873 int
46874 main ()
46875 {
46876 return f != $ac_func;
46877   ;
46878   return 0;
46879 }
46880 _ACEOF
46881 rm -f conftest.$ac_objext conftest$ac_exeext
46882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46883   (eval $ac_link) 2>conftest.er1
46884   ac_status=$?
46885   grep -v '^ *+' conftest.er1 >conftest.err
46886   rm -f conftest.er1
46887   cat conftest.err >&5
46888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46889   (exit $ac_status); } &&
46890          { ac_try='test -z "$ac_c_werror_flag"
46891                          || test ! -s conftest.err'
46892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46893   (eval $ac_try) 2>&5
46894   ac_status=$?
46895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46896   (exit $ac_status); }; } &&
46897          { ac_try='test -s conftest$ac_exeext'
46898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46899   (eval $ac_try) 2>&5
46900   ac_status=$?
46901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46902   (exit $ac_status); }; }; then
46903   eval "$as_ac_var=yes"
46904 else
46905   echo "$as_me: failed program was:" >&5
46906 sed 's/^/| /' conftest.$ac_ext >&5
46907
46908 eval "$as_ac_var=no"
46909 fi
46910 rm -f conftest.err conftest.$ac_objext \
46911       conftest$ac_exeext conftest.$ac_ext
46912 fi
46913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46915 if test `eval echo '${'$as_ac_var'}'` = yes; then
46916   cat >>confdefs.h <<_ACEOF
46917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46918 _ACEOF
46919  ice_have_connect=yes
46920 fi
46921 done
46922
46923 if test "${ice_have_connect}" = yes; then
46924 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
46925 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46926 if test "${ice_cv_have_connect_decl+set}" = set; then
46927   echo $ECHO_N "(cached) $ECHO_C" >&6
46928 else
46929
46930 ice_cv_have_connect_decl=no
46931 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46932 ice_re_word='(^|[^a-zA-Z0-9_])'
46933 for header in sys/types.h sys/socket.h; do
46934 # Check for ordinary declaration
46935 cat >conftest.$ac_ext <<_ACEOF
46936 /* confdefs.h.  */
46937 _ACEOF
46938 cat confdefs.h >>conftest.$ac_ext
46939 cat >>conftest.$ac_ext <<_ACEOF
46940 /* end confdefs.h.  */
46941 #include <$header>
46942
46943 _ACEOF
46944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46945   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
46946   ice_cv_have_connect_decl=yes
46947 fi
46948 rm -f conftest*
46949
46950 if test "$ice_cv_have_connect_decl" = yes; then
46951         break
46952 fi
46953 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46954 cat >conftest.$ac_ext <<_ACEOF
46955 /* confdefs.h.  */
46956 _ACEOF
46957 cat confdefs.h >>conftest.$ac_ext
46958 cat >>conftest.$ac_ext <<_ACEOF
46959 /* end confdefs.h.  */
46960 #include <$header>
46961
46962 _ACEOF
46963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46964   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46965   ice_cv_have_connect_decl=yes
46966 fi
46967 rm -f conftest*
46968
46969 if test "$ice_cv_have_connect_decl" = yes; then
46970         break
46971 fi
46972 done
46973
46974 fi
46975
46976 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
46977 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
46978 if test "$ice_cv_have_connect_decl" = yes; then
46979
46980 cat >>confdefs.h <<_ACEOF
46981 #define HAVE_CONNECT_DECL 1
46982 _ACEOF
46983
46984 fi
46985 fi
46986
46987
46988 ice_have_dbm_open=no
46989
46990 for ac_func in dbm_open
46991 do
46992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46993 echo "$as_me:$LINENO: checking for $ac_func" >&5
46994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46995 if eval "test \"\${$as_ac_var+set}\" = set"; then
46996   echo $ECHO_N "(cached) $ECHO_C" >&6
46997 else
46998   cat >conftest.$ac_ext <<_ACEOF
46999 /* confdefs.h.  */
47000 _ACEOF
47001 cat confdefs.h >>conftest.$ac_ext
47002 cat >>conftest.$ac_ext <<_ACEOF
47003 /* end confdefs.h.  */
47004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47006 #define $ac_func innocuous_$ac_func
47007
47008 /* System header to define __stub macros and hopefully few prototypes,
47009     which can conflict with char $ac_func (); below.
47010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47011     <limits.h> exists even on freestanding compilers.  */
47012
47013 #ifdef __STDC__
47014 # include <limits.h>
47015 #else
47016 # include <assert.h>
47017 #endif
47018
47019 #undef $ac_func
47020
47021 /* Override any gcc2 internal prototype to avoid an error.  */
47022 #ifdef __cplusplus
47023 extern "C"
47024 {
47025 #endif
47026 /* We use char because int might match the return type of a gcc2
47027    builtin and then its argument prototype would still apply.  */
47028 char $ac_func ();
47029 /* The GNU C library defines this for functions which it implements
47030     to always fail with ENOSYS.  Some functions are actually named
47031     something starting with __ and the normal name is an alias.  */
47032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47033 choke me
47034 #else
47035 char (*f) () = $ac_func;
47036 #endif
47037 #ifdef __cplusplus
47038 }
47039 #endif
47040
47041 int
47042 main ()
47043 {
47044 return f != $ac_func;
47045   ;
47046   return 0;
47047 }
47048 _ACEOF
47049 rm -f conftest.$ac_objext conftest$ac_exeext
47050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47051   (eval $ac_link) 2>conftest.er1
47052   ac_status=$?
47053   grep -v '^ *+' conftest.er1 >conftest.err
47054   rm -f conftest.er1
47055   cat conftest.err >&5
47056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47057   (exit $ac_status); } &&
47058          { ac_try='test -z "$ac_c_werror_flag"
47059                          || test ! -s conftest.err'
47060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47061   (eval $ac_try) 2>&5
47062   ac_status=$?
47063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47064   (exit $ac_status); }; } &&
47065          { ac_try='test -s conftest$ac_exeext'
47066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067   (eval $ac_try) 2>&5
47068   ac_status=$?
47069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070   (exit $ac_status); }; }; then
47071   eval "$as_ac_var=yes"
47072 else
47073   echo "$as_me: failed program was:" >&5
47074 sed 's/^/| /' conftest.$ac_ext >&5
47075
47076 eval "$as_ac_var=no"
47077 fi
47078 rm -f conftest.err conftest.$ac_objext \
47079       conftest$ac_exeext conftest.$ac_ext
47080 fi
47081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47083 if test `eval echo '${'$as_ac_var'}'` = yes; then
47084   cat >>confdefs.h <<_ACEOF
47085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47086 _ACEOF
47087  ice_have_dbm_open=yes
47088 fi
47089 done
47090
47091 if test "${ice_have_dbm_open}" = yes; then
47092 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
47093 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
47094 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
47095   echo $ECHO_N "(cached) $ECHO_C" >&6
47096 else
47097
47098 ice_cv_have_dbm_open_decl=no
47099 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47100 ice_re_word='(^|[^a-zA-Z0-9_])'
47101 for header in ${DB_HEADER-no/db/header/file}; do
47102 # Check for ordinary declaration
47103 cat >conftest.$ac_ext <<_ACEOF
47104 /* confdefs.h.  */
47105 _ACEOF
47106 cat confdefs.h >>conftest.$ac_ext
47107 cat >>conftest.$ac_ext <<_ACEOF
47108 /* end confdefs.h.  */
47109 #include <$header>
47110
47111 _ACEOF
47112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47113   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
47114   ice_cv_have_dbm_open_decl=yes
47115 fi
47116 rm -f conftest*
47117
47118 if test "$ice_cv_have_dbm_open_decl" = yes; then
47119         break
47120 fi
47121 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47122 cat >conftest.$ac_ext <<_ACEOF
47123 /* confdefs.h.  */
47124 _ACEOF
47125 cat confdefs.h >>conftest.$ac_ext
47126 cat >>conftest.$ac_ext <<_ACEOF
47127 /* end confdefs.h.  */
47128 #include <$header>
47129
47130 _ACEOF
47131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47132   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47133   ice_cv_have_dbm_open_decl=yes
47134 fi
47135 rm -f conftest*
47136
47137 if test "$ice_cv_have_dbm_open_decl" = yes; then
47138         break
47139 fi
47140 done
47141
47142 fi
47143
47144 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
47145 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
47146 if test "$ice_cv_have_dbm_open_decl" = yes; then
47147
47148 cat >>confdefs.h <<_ACEOF
47149 #define HAVE_DBM_OPEN_DECL 1
47150 _ACEOF
47151
47152 fi
47153 fi
47154
47155
47156 for ac_func in endmntent
47157 do
47158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47159 echo "$as_me:$LINENO: checking for $ac_func" >&5
47160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47161 if eval "test \"\${$as_ac_var+set}\" = set"; then
47162   echo $ECHO_N "(cached) $ECHO_C" >&6
47163 else
47164   cat >conftest.$ac_ext <<_ACEOF
47165 /* confdefs.h.  */
47166 _ACEOF
47167 cat confdefs.h >>conftest.$ac_ext
47168 cat >>conftest.$ac_ext <<_ACEOF
47169 /* end confdefs.h.  */
47170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47172 #define $ac_func innocuous_$ac_func
47173
47174 /* System header to define __stub macros and hopefully few prototypes,
47175     which can conflict with char $ac_func (); below.
47176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47177     <limits.h> exists even on freestanding compilers.  */
47178
47179 #ifdef __STDC__
47180 # include <limits.h>
47181 #else
47182 # include <assert.h>
47183 #endif
47184
47185 #undef $ac_func
47186
47187 /* Override any gcc2 internal prototype to avoid an error.  */
47188 #ifdef __cplusplus
47189 extern "C"
47190 {
47191 #endif
47192 /* We use char because int might match the return type of a gcc2
47193    builtin and then its argument prototype would still apply.  */
47194 char $ac_func ();
47195 /* The GNU C library defines this for functions which it implements
47196     to always fail with ENOSYS.  Some functions are actually named
47197     something starting with __ and the normal name is an alias.  */
47198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47199 choke me
47200 #else
47201 char (*f) () = $ac_func;
47202 #endif
47203 #ifdef __cplusplus
47204 }
47205 #endif
47206
47207 int
47208 main ()
47209 {
47210 return f != $ac_func;
47211   ;
47212   return 0;
47213 }
47214 _ACEOF
47215 rm -f conftest.$ac_objext conftest$ac_exeext
47216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47217   (eval $ac_link) 2>conftest.er1
47218   ac_status=$?
47219   grep -v '^ *+' conftest.er1 >conftest.err
47220   rm -f conftest.er1
47221   cat conftest.err >&5
47222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223   (exit $ac_status); } &&
47224          { ac_try='test -z "$ac_c_werror_flag"
47225                          || test ! -s conftest.err'
47226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47227   (eval $ac_try) 2>&5
47228   ac_status=$?
47229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47230   (exit $ac_status); }; } &&
47231          { ac_try='test -s conftest$ac_exeext'
47232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47233   (eval $ac_try) 2>&5
47234   ac_status=$?
47235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47236   (exit $ac_status); }; }; then
47237   eval "$as_ac_var=yes"
47238 else
47239   echo "$as_me: failed program was:" >&5
47240 sed 's/^/| /' conftest.$ac_ext >&5
47241
47242 eval "$as_ac_var=no"
47243 fi
47244 rm -f conftest.err conftest.$ac_objext \
47245       conftest$ac_exeext conftest.$ac_ext
47246 fi
47247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47249 if test `eval echo '${'$as_ac_var'}'` = yes; then
47250   cat >>confdefs.h <<_ACEOF
47251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47252 _ACEOF
47253
47254 fi
47255 done
47256
47257
47258 ice_have_fclose=no
47259
47260 for ac_func in fclose
47261 do
47262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47263 echo "$as_me:$LINENO: checking for $ac_func" >&5
47264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47265 if eval "test \"\${$as_ac_var+set}\" = set"; then
47266   echo $ECHO_N "(cached) $ECHO_C" >&6
47267 else
47268   cat >conftest.$ac_ext <<_ACEOF
47269 /* confdefs.h.  */
47270 _ACEOF
47271 cat confdefs.h >>conftest.$ac_ext
47272 cat >>conftest.$ac_ext <<_ACEOF
47273 /* end confdefs.h.  */
47274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47276 #define $ac_func innocuous_$ac_func
47277
47278 /* System header to define __stub macros and hopefully few prototypes,
47279     which can conflict with char $ac_func (); below.
47280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47281     <limits.h> exists even on freestanding compilers.  */
47282
47283 #ifdef __STDC__
47284 # include <limits.h>
47285 #else
47286 # include <assert.h>
47287 #endif
47288
47289 #undef $ac_func
47290
47291 /* Override any gcc2 internal prototype to avoid an error.  */
47292 #ifdef __cplusplus
47293 extern "C"
47294 {
47295 #endif
47296 /* We use char because int might match the return type of a gcc2
47297    builtin and then its argument prototype would still apply.  */
47298 char $ac_func ();
47299 /* The GNU C library defines this for functions which it implements
47300     to always fail with ENOSYS.  Some functions are actually named
47301     something starting with __ and the normal name is an alias.  */
47302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47303 choke me
47304 #else
47305 char (*f) () = $ac_func;
47306 #endif
47307 #ifdef __cplusplus
47308 }
47309 #endif
47310
47311 int
47312 main ()
47313 {
47314 return f != $ac_func;
47315   ;
47316   return 0;
47317 }
47318 _ACEOF
47319 rm -f conftest.$ac_objext conftest$ac_exeext
47320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47321   (eval $ac_link) 2>conftest.er1
47322   ac_status=$?
47323   grep -v '^ *+' conftest.er1 >conftest.err
47324   rm -f conftest.er1
47325   cat conftest.err >&5
47326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47327   (exit $ac_status); } &&
47328          { ac_try='test -z "$ac_c_werror_flag"
47329                          || test ! -s conftest.err'
47330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47331   (eval $ac_try) 2>&5
47332   ac_status=$?
47333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334   (exit $ac_status); }; } &&
47335          { ac_try='test -s conftest$ac_exeext'
47336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47337   (eval $ac_try) 2>&5
47338   ac_status=$?
47339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340   (exit $ac_status); }; }; then
47341   eval "$as_ac_var=yes"
47342 else
47343   echo "$as_me: failed program was:" >&5
47344 sed 's/^/| /' conftest.$ac_ext >&5
47345
47346 eval "$as_ac_var=no"
47347 fi
47348 rm -f conftest.err conftest.$ac_objext \
47349       conftest$ac_exeext conftest.$ac_ext
47350 fi
47351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47353 if test `eval echo '${'$as_ac_var'}'` = yes; then
47354   cat >>confdefs.h <<_ACEOF
47355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47356 _ACEOF
47357  ice_have_fclose=yes
47358 fi
47359 done
47360
47361 if test "${ice_have_fclose}" = yes; then
47362 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
47363 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
47364 if test "${ice_cv_have_fclose_decl+set}" = set; then
47365   echo $ECHO_N "(cached) $ECHO_C" >&6
47366 else
47367
47368 ice_cv_have_fclose_decl=no
47369 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47370 ice_re_word='(^|[^a-zA-Z0-9_])'
47371 for header in stdio.h; do
47372 # Check for ordinary declaration
47373 cat >conftest.$ac_ext <<_ACEOF
47374 /* confdefs.h.  */
47375 _ACEOF
47376 cat confdefs.h >>conftest.$ac_ext
47377 cat >>conftest.$ac_ext <<_ACEOF
47378 /* end confdefs.h.  */
47379 #include <$header>
47380
47381 _ACEOF
47382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47383   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
47384   ice_cv_have_fclose_decl=yes
47385 fi
47386 rm -f conftest*
47387
47388 if test "$ice_cv_have_fclose_decl" = yes; then
47389         break
47390 fi
47391 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47392 cat >conftest.$ac_ext <<_ACEOF
47393 /* confdefs.h.  */
47394 _ACEOF
47395 cat confdefs.h >>conftest.$ac_ext
47396 cat >>conftest.$ac_ext <<_ACEOF
47397 /* end confdefs.h.  */
47398 #include <$header>
47399
47400 _ACEOF
47401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47402   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47403   ice_cv_have_fclose_decl=yes
47404 fi
47405 rm -f conftest*
47406
47407 if test "$ice_cv_have_fclose_decl" = yes; then
47408         break
47409 fi
47410 done
47411
47412 fi
47413
47414 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
47415 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
47416 if test "$ice_cv_have_fclose_decl" = yes; then
47417
47418 cat >>confdefs.h <<_ACEOF
47419 #define HAVE_FCLOSE_DECL 1
47420 _ACEOF
47421
47422 fi
47423 fi
47424
47425
47426 ice_have_fflush=no
47427
47428 for ac_func in fflush
47429 do
47430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47431 echo "$as_me:$LINENO: checking for $ac_func" >&5
47432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47433 if eval "test \"\${$as_ac_var+set}\" = set"; then
47434   echo $ECHO_N "(cached) $ECHO_C" >&6
47435 else
47436   cat >conftest.$ac_ext <<_ACEOF
47437 /* confdefs.h.  */
47438 _ACEOF
47439 cat confdefs.h >>conftest.$ac_ext
47440 cat >>conftest.$ac_ext <<_ACEOF
47441 /* end confdefs.h.  */
47442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47444 #define $ac_func innocuous_$ac_func
47445
47446 /* System header to define __stub macros and hopefully few prototypes,
47447     which can conflict with char $ac_func (); below.
47448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47449     <limits.h> exists even on freestanding compilers.  */
47450
47451 #ifdef __STDC__
47452 # include <limits.h>
47453 #else
47454 # include <assert.h>
47455 #endif
47456
47457 #undef $ac_func
47458
47459 /* Override any gcc2 internal prototype to avoid an error.  */
47460 #ifdef __cplusplus
47461 extern "C"
47462 {
47463 #endif
47464 /* We use char because int might match the return type of a gcc2
47465    builtin and then its argument prototype would still apply.  */
47466 char $ac_func ();
47467 /* The GNU C library defines this for functions which it implements
47468     to always fail with ENOSYS.  Some functions are actually named
47469     something starting with __ and the normal name is an alias.  */
47470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47471 choke me
47472 #else
47473 char (*f) () = $ac_func;
47474 #endif
47475 #ifdef __cplusplus
47476 }
47477 #endif
47478
47479 int
47480 main ()
47481 {
47482 return f != $ac_func;
47483   ;
47484   return 0;
47485 }
47486 _ACEOF
47487 rm -f conftest.$ac_objext conftest$ac_exeext
47488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47489   (eval $ac_link) 2>conftest.er1
47490   ac_status=$?
47491   grep -v '^ *+' conftest.er1 >conftest.err
47492   rm -f conftest.er1
47493   cat conftest.err >&5
47494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47495   (exit $ac_status); } &&
47496          { ac_try='test -z "$ac_c_werror_flag"
47497                          || test ! -s conftest.err'
47498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47499   (eval $ac_try) 2>&5
47500   ac_status=$?
47501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47502   (exit $ac_status); }; } &&
47503          { ac_try='test -s conftest$ac_exeext'
47504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47505   (eval $ac_try) 2>&5
47506   ac_status=$?
47507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47508   (exit $ac_status); }; }; then
47509   eval "$as_ac_var=yes"
47510 else
47511   echo "$as_me: failed program was:" >&5
47512 sed 's/^/| /' conftest.$ac_ext >&5
47513
47514 eval "$as_ac_var=no"
47515 fi
47516 rm -f conftest.err conftest.$ac_objext \
47517       conftest$ac_exeext conftest.$ac_ext
47518 fi
47519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47521 if test `eval echo '${'$as_ac_var'}'` = yes; then
47522   cat >>confdefs.h <<_ACEOF
47523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47524 _ACEOF
47525  ice_have_fflush=yes
47526 fi
47527 done
47528
47529 if test "${ice_have_fflush}" = yes; then
47530 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
47531 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
47532 if test "${ice_cv_have_fflush_decl+set}" = set; then
47533   echo $ECHO_N "(cached) $ECHO_C" >&6
47534 else
47535
47536 ice_cv_have_fflush_decl=no
47537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47538 ice_re_word='(^|[^a-zA-Z0-9_])'
47539 for header in stdio.h; do
47540 # Check for ordinary declaration
47541 cat >conftest.$ac_ext <<_ACEOF
47542 /* confdefs.h.  */
47543 _ACEOF
47544 cat confdefs.h >>conftest.$ac_ext
47545 cat >>conftest.$ac_ext <<_ACEOF
47546 /* end confdefs.h.  */
47547 #include <$header>
47548
47549 _ACEOF
47550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47551   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
47552   ice_cv_have_fflush_decl=yes
47553 fi
47554 rm -f conftest*
47555
47556 if test "$ice_cv_have_fflush_decl" = yes; then
47557         break
47558 fi
47559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47560 cat >conftest.$ac_ext <<_ACEOF
47561 /* confdefs.h.  */
47562 _ACEOF
47563 cat confdefs.h >>conftest.$ac_ext
47564 cat >>conftest.$ac_ext <<_ACEOF
47565 /* end confdefs.h.  */
47566 #include <$header>
47567
47568 _ACEOF
47569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47570   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47571   ice_cv_have_fflush_decl=yes
47572 fi
47573 rm -f conftest*
47574
47575 if test "$ice_cv_have_fflush_decl" = yes; then
47576         break
47577 fi
47578 done
47579
47580 fi
47581
47582 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
47583 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
47584 if test "$ice_cv_have_fflush_decl" = yes; then
47585
47586 cat >>confdefs.h <<_ACEOF
47587 #define HAVE_FFLUSH_DECL 1
47588 _ACEOF
47589
47590 fi
47591 fi
47592
47593
47594 ice_have_flock=no
47595
47596 for ac_func in flock
47597 do
47598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47599 echo "$as_me:$LINENO: checking for $ac_func" >&5
47600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47601 if eval "test \"\${$as_ac_var+set}\" = set"; then
47602   echo $ECHO_N "(cached) $ECHO_C" >&6
47603 else
47604   cat >conftest.$ac_ext <<_ACEOF
47605 /* confdefs.h.  */
47606 _ACEOF
47607 cat confdefs.h >>conftest.$ac_ext
47608 cat >>conftest.$ac_ext <<_ACEOF
47609 /* end confdefs.h.  */
47610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47612 #define $ac_func innocuous_$ac_func
47613
47614 /* System header to define __stub macros and hopefully few prototypes,
47615     which can conflict with char $ac_func (); below.
47616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47617     <limits.h> exists even on freestanding compilers.  */
47618
47619 #ifdef __STDC__
47620 # include <limits.h>
47621 #else
47622 # include <assert.h>
47623 #endif
47624
47625 #undef $ac_func
47626
47627 /* Override any gcc2 internal prototype to avoid an error.  */
47628 #ifdef __cplusplus
47629 extern "C"
47630 {
47631 #endif
47632 /* We use char because int might match the return type of a gcc2
47633    builtin and then its argument prototype would still apply.  */
47634 char $ac_func ();
47635 /* The GNU C library defines this for functions which it implements
47636     to always fail with ENOSYS.  Some functions are actually named
47637     something starting with __ and the normal name is an alias.  */
47638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47639 choke me
47640 #else
47641 char (*f) () = $ac_func;
47642 #endif
47643 #ifdef __cplusplus
47644 }
47645 #endif
47646
47647 int
47648 main ()
47649 {
47650 return f != $ac_func;
47651   ;
47652   return 0;
47653 }
47654 _ACEOF
47655 rm -f conftest.$ac_objext conftest$ac_exeext
47656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47657   (eval $ac_link) 2>conftest.er1
47658   ac_status=$?
47659   grep -v '^ *+' conftest.er1 >conftest.err
47660   rm -f conftest.er1
47661   cat conftest.err >&5
47662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663   (exit $ac_status); } &&
47664          { ac_try='test -z "$ac_c_werror_flag"
47665                          || test ! -s conftest.err'
47666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47667   (eval $ac_try) 2>&5
47668   ac_status=$?
47669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47670   (exit $ac_status); }; } &&
47671          { ac_try='test -s conftest$ac_exeext'
47672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47673   (eval $ac_try) 2>&5
47674   ac_status=$?
47675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47676   (exit $ac_status); }; }; then
47677   eval "$as_ac_var=yes"
47678 else
47679   echo "$as_me: failed program was:" >&5
47680 sed 's/^/| /' conftest.$ac_ext >&5
47681
47682 eval "$as_ac_var=no"
47683 fi
47684 rm -f conftest.err conftest.$ac_objext \
47685       conftest$ac_exeext conftest.$ac_ext
47686 fi
47687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47689 if test `eval echo '${'$as_ac_var'}'` = yes; then
47690   cat >>confdefs.h <<_ACEOF
47691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47692 _ACEOF
47693  ice_have_flock=yes
47694 fi
47695 done
47696
47697 if test "${ice_have_flock}" = yes; then
47698 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
47699 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
47700 if test "${ice_cv_have_flock_decl+set}" = set; then
47701   echo $ECHO_N "(cached) $ECHO_C" >&6
47702 else
47703
47704 ice_cv_have_flock_decl=no
47705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47706 ice_re_word='(^|[^a-zA-Z0-9_])'
47707 for header in sys/file.h; do
47708 # Check for ordinary declaration
47709 cat >conftest.$ac_ext <<_ACEOF
47710 /* confdefs.h.  */
47711 _ACEOF
47712 cat confdefs.h >>conftest.$ac_ext
47713 cat >>conftest.$ac_ext <<_ACEOF
47714 /* end confdefs.h.  */
47715 #include <$header>
47716
47717 _ACEOF
47718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47719   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
47720   ice_cv_have_flock_decl=yes
47721 fi
47722 rm -f conftest*
47723
47724 if test "$ice_cv_have_flock_decl" = yes; then
47725         break
47726 fi
47727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47728 cat >conftest.$ac_ext <<_ACEOF
47729 /* confdefs.h.  */
47730 _ACEOF
47731 cat confdefs.h >>conftest.$ac_ext
47732 cat >>conftest.$ac_ext <<_ACEOF
47733 /* end confdefs.h.  */
47734 #include <$header>
47735
47736 _ACEOF
47737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47738   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47739   ice_cv_have_flock_decl=yes
47740 fi
47741 rm -f conftest*
47742
47743 if test "$ice_cv_have_flock_decl" = yes; then
47744         break
47745 fi
47746 done
47747
47748 fi
47749
47750 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
47751 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
47752 if test "$ice_cv_have_flock_decl" = yes; then
47753
47754 cat >>confdefs.h <<_ACEOF
47755 #define HAVE_FLOCK_DECL 1
47756 _ACEOF
47757
47758 fi
47759 fi
47760
47761
47762 ice_have_fprintf=no
47763
47764 for ac_func in fprintf
47765 do
47766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47767 echo "$as_me:$LINENO: checking for $ac_func" >&5
47768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47769 if eval "test \"\${$as_ac_var+set}\" = set"; then
47770   echo $ECHO_N "(cached) $ECHO_C" >&6
47771 else
47772   cat >conftest.$ac_ext <<_ACEOF
47773 /* confdefs.h.  */
47774 _ACEOF
47775 cat confdefs.h >>conftest.$ac_ext
47776 cat >>conftest.$ac_ext <<_ACEOF
47777 /* end confdefs.h.  */
47778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47780 #define $ac_func innocuous_$ac_func
47781
47782 /* System header to define __stub macros and hopefully few prototypes,
47783     which can conflict with char $ac_func (); below.
47784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47785     <limits.h> exists even on freestanding compilers.  */
47786
47787 #ifdef __STDC__
47788 # include <limits.h>
47789 #else
47790 # include <assert.h>
47791 #endif
47792
47793 #undef $ac_func
47794
47795 /* Override any gcc2 internal prototype to avoid an error.  */
47796 #ifdef __cplusplus
47797 extern "C"
47798 {
47799 #endif
47800 /* We use char because int might match the return type of a gcc2
47801    builtin and then its argument prototype would still apply.  */
47802 char $ac_func ();
47803 /* The GNU C library defines this for functions which it implements
47804     to always fail with ENOSYS.  Some functions are actually named
47805     something starting with __ and the normal name is an alias.  */
47806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47807 choke me
47808 #else
47809 char (*f) () = $ac_func;
47810 #endif
47811 #ifdef __cplusplus
47812 }
47813 #endif
47814
47815 int
47816 main ()
47817 {
47818 return f != $ac_func;
47819   ;
47820   return 0;
47821 }
47822 _ACEOF
47823 rm -f conftest.$ac_objext conftest$ac_exeext
47824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47825   (eval $ac_link) 2>conftest.er1
47826   ac_status=$?
47827   grep -v '^ *+' conftest.er1 >conftest.err
47828   rm -f conftest.er1
47829   cat conftest.err >&5
47830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47831   (exit $ac_status); } &&
47832          { ac_try='test -z "$ac_c_werror_flag"
47833                          || test ! -s conftest.err'
47834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47835   (eval $ac_try) 2>&5
47836   ac_status=$?
47837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47838   (exit $ac_status); }; } &&
47839          { ac_try='test -s conftest$ac_exeext'
47840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47841   (eval $ac_try) 2>&5
47842   ac_status=$?
47843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47844   (exit $ac_status); }; }; then
47845   eval "$as_ac_var=yes"
47846 else
47847   echo "$as_me: failed program was:" >&5
47848 sed 's/^/| /' conftest.$ac_ext >&5
47849
47850 eval "$as_ac_var=no"
47851 fi
47852 rm -f conftest.err conftest.$ac_objext \
47853       conftest$ac_exeext conftest.$ac_ext
47854 fi
47855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47857 if test `eval echo '${'$as_ac_var'}'` = yes; then
47858   cat >>confdefs.h <<_ACEOF
47859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47860 _ACEOF
47861  ice_have_fprintf=yes
47862 fi
47863 done
47864
47865 if test "${ice_have_fprintf}" = yes; then
47866 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
47867 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
47868 if test "${ice_cv_have_fprintf_decl+set}" = set; then
47869   echo $ECHO_N "(cached) $ECHO_C" >&6
47870 else
47871
47872 ice_cv_have_fprintf_decl=no
47873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47874 ice_re_word='(^|[^a-zA-Z0-9_])'
47875 for header in stdio.h; do
47876 # Check for ordinary declaration
47877 cat >conftest.$ac_ext <<_ACEOF
47878 /* confdefs.h.  */
47879 _ACEOF
47880 cat confdefs.h >>conftest.$ac_ext
47881 cat >>conftest.$ac_ext <<_ACEOF
47882 /* end confdefs.h.  */
47883 #include <$header>
47884
47885 _ACEOF
47886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47887   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
47888   ice_cv_have_fprintf_decl=yes
47889 fi
47890 rm -f conftest*
47891
47892 if test "$ice_cv_have_fprintf_decl" = yes; then
47893         break
47894 fi
47895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47896 cat >conftest.$ac_ext <<_ACEOF
47897 /* confdefs.h.  */
47898 _ACEOF
47899 cat confdefs.h >>conftest.$ac_ext
47900 cat >>conftest.$ac_ext <<_ACEOF
47901 /* end confdefs.h.  */
47902 #include <$header>
47903
47904 _ACEOF
47905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47906   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47907   ice_cv_have_fprintf_decl=yes
47908 fi
47909 rm -f conftest*
47910
47911 if test "$ice_cv_have_fprintf_decl" = yes; then
47912         break
47913 fi
47914 done
47915
47916 fi
47917
47918 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
47919 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
47920 if test "$ice_cv_have_fprintf_decl" = yes; then
47921
47922 cat >>confdefs.h <<_ACEOF
47923 #define HAVE_FPRINTF_DECL 1
47924 _ACEOF
47925
47926 fi
47927 fi
47928
47929
47930 ice_have_fputc=no
47931
47932 for ac_func in fputc
47933 do
47934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47935 echo "$as_me:$LINENO: checking for $ac_func" >&5
47936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47937 if eval "test \"\${$as_ac_var+set}\" = set"; then
47938   echo $ECHO_N "(cached) $ECHO_C" >&6
47939 else
47940   cat >conftest.$ac_ext <<_ACEOF
47941 /* confdefs.h.  */
47942 _ACEOF
47943 cat confdefs.h >>conftest.$ac_ext
47944 cat >>conftest.$ac_ext <<_ACEOF
47945 /* end confdefs.h.  */
47946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47948 #define $ac_func innocuous_$ac_func
47949
47950 /* System header to define __stub macros and hopefully few prototypes,
47951     which can conflict with char $ac_func (); below.
47952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47953     <limits.h> exists even on freestanding compilers.  */
47954
47955 #ifdef __STDC__
47956 # include <limits.h>
47957 #else
47958 # include <assert.h>
47959 #endif
47960
47961 #undef $ac_func
47962
47963 /* Override any gcc2 internal prototype to avoid an error.  */
47964 #ifdef __cplusplus
47965 extern "C"
47966 {
47967 #endif
47968 /* We use char because int might match the return type of a gcc2
47969    builtin and then its argument prototype would still apply.  */
47970 char $ac_func ();
47971 /* The GNU C library defines this for functions which it implements
47972     to always fail with ENOSYS.  Some functions are actually named
47973     something starting with __ and the normal name is an alias.  */
47974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47975 choke me
47976 #else
47977 char (*f) () = $ac_func;
47978 #endif
47979 #ifdef __cplusplus
47980 }
47981 #endif
47982
47983 int
47984 main ()
47985 {
47986 return f != $ac_func;
47987   ;
47988   return 0;
47989 }
47990 _ACEOF
47991 rm -f conftest.$ac_objext conftest$ac_exeext
47992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47993   (eval $ac_link) 2>conftest.er1
47994   ac_status=$?
47995   grep -v '^ *+' conftest.er1 >conftest.err
47996   rm -f conftest.er1
47997   cat conftest.err >&5
47998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999   (exit $ac_status); } &&
48000          { ac_try='test -z "$ac_c_werror_flag"
48001                          || test ! -s conftest.err'
48002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48003   (eval $ac_try) 2>&5
48004   ac_status=$?
48005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48006   (exit $ac_status); }; } &&
48007          { ac_try='test -s conftest$ac_exeext'
48008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48009   (eval $ac_try) 2>&5
48010   ac_status=$?
48011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48012   (exit $ac_status); }; }; then
48013   eval "$as_ac_var=yes"
48014 else
48015   echo "$as_me: failed program was:" >&5
48016 sed 's/^/| /' conftest.$ac_ext >&5
48017
48018 eval "$as_ac_var=no"
48019 fi
48020 rm -f conftest.err conftest.$ac_objext \
48021       conftest$ac_exeext conftest.$ac_ext
48022 fi
48023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48025 if test `eval echo '${'$as_ac_var'}'` = yes; then
48026   cat >>confdefs.h <<_ACEOF
48027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48028 _ACEOF
48029  ice_have_fputc=yes
48030 fi
48031 done
48032
48033 if test "${ice_have_fputc}" = yes; then
48034 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
48035 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
48036 if test "${ice_cv_have_fputc_decl+set}" = set; then
48037   echo $ECHO_N "(cached) $ECHO_C" >&6
48038 else
48039
48040 ice_cv_have_fputc_decl=no
48041 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48042 ice_re_word='(^|[^a-zA-Z0-9_])'
48043 for header in stdio.h; do
48044 # Check for ordinary declaration
48045 cat >conftest.$ac_ext <<_ACEOF
48046 /* confdefs.h.  */
48047 _ACEOF
48048 cat confdefs.h >>conftest.$ac_ext
48049 cat >>conftest.$ac_ext <<_ACEOF
48050 /* end confdefs.h.  */
48051 #include <$header>
48052
48053 _ACEOF
48054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48055   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
48056   ice_cv_have_fputc_decl=yes
48057 fi
48058 rm -f conftest*
48059
48060 if test "$ice_cv_have_fputc_decl" = yes; then
48061         break
48062 fi
48063 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48064 cat >conftest.$ac_ext <<_ACEOF
48065 /* confdefs.h.  */
48066 _ACEOF
48067 cat confdefs.h >>conftest.$ac_ext
48068 cat >>conftest.$ac_ext <<_ACEOF
48069 /* end confdefs.h.  */
48070 #include <$header>
48071
48072 _ACEOF
48073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48074   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48075   ice_cv_have_fputc_decl=yes
48076 fi
48077 rm -f conftest*
48078
48079 if test "$ice_cv_have_fputc_decl" = yes; then
48080         break
48081 fi
48082 done
48083
48084 fi
48085
48086 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
48087 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
48088 if test "$ice_cv_have_fputc_decl" = yes; then
48089
48090 cat >>confdefs.h <<_ACEOF
48091 #define HAVE_FPUTC_DECL 1
48092 _ACEOF
48093
48094 fi
48095 fi
48096
48097
48098 ice_have_fputs=no
48099
48100 for ac_func in fputs
48101 do
48102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48103 echo "$as_me:$LINENO: checking for $ac_func" >&5
48104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48105 if eval "test \"\${$as_ac_var+set}\" = set"; then
48106   echo $ECHO_N "(cached) $ECHO_C" >&6
48107 else
48108   cat >conftest.$ac_ext <<_ACEOF
48109 /* confdefs.h.  */
48110 _ACEOF
48111 cat confdefs.h >>conftest.$ac_ext
48112 cat >>conftest.$ac_ext <<_ACEOF
48113 /* end confdefs.h.  */
48114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48116 #define $ac_func innocuous_$ac_func
48117
48118 /* System header to define __stub macros and hopefully few prototypes,
48119     which can conflict with char $ac_func (); below.
48120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48121     <limits.h> exists even on freestanding compilers.  */
48122
48123 #ifdef __STDC__
48124 # include <limits.h>
48125 #else
48126 # include <assert.h>
48127 #endif
48128
48129 #undef $ac_func
48130
48131 /* Override any gcc2 internal prototype to avoid an error.  */
48132 #ifdef __cplusplus
48133 extern "C"
48134 {
48135 #endif
48136 /* We use char because int might match the return type of a gcc2
48137    builtin and then its argument prototype would still apply.  */
48138 char $ac_func ();
48139 /* The GNU C library defines this for functions which it implements
48140     to always fail with ENOSYS.  Some functions are actually named
48141     something starting with __ and the normal name is an alias.  */
48142 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48143 choke me
48144 #else
48145 char (*f) () = $ac_func;
48146 #endif
48147 #ifdef __cplusplus
48148 }
48149 #endif
48150
48151 int
48152 main ()
48153 {
48154 return f != $ac_func;
48155   ;
48156   return 0;
48157 }
48158 _ACEOF
48159 rm -f conftest.$ac_objext conftest$ac_exeext
48160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48161   (eval $ac_link) 2>conftest.er1
48162   ac_status=$?
48163   grep -v '^ *+' conftest.er1 >conftest.err
48164   rm -f conftest.er1
48165   cat conftest.err >&5
48166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48167   (exit $ac_status); } &&
48168          { ac_try='test -z "$ac_c_werror_flag"
48169                          || test ! -s conftest.err'
48170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48171   (eval $ac_try) 2>&5
48172   ac_status=$?
48173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48174   (exit $ac_status); }; } &&
48175          { ac_try='test -s conftest$ac_exeext'
48176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48177   (eval $ac_try) 2>&5
48178   ac_status=$?
48179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48180   (exit $ac_status); }; }; then
48181   eval "$as_ac_var=yes"
48182 else
48183   echo "$as_me: failed program was:" >&5
48184 sed 's/^/| /' conftest.$ac_ext >&5
48185
48186 eval "$as_ac_var=no"
48187 fi
48188 rm -f conftest.err conftest.$ac_objext \
48189       conftest$ac_exeext conftest.$ac_ext
48190 fi
48191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48193 if test `eval echo '${'$as_ac_var'}'` = yes; then
48194   cat >>confdefs.h <<_ACEOF
48195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48196 _ACEOF
48197  ice_have_fputs=yes
48198 fi
48199 done
48200
48201 if test "${ice_have_fputs}" = yes; then
48202 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
48203 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
48204 if test "${ice_cv_have_fputs_decl+set}" = set; then
48205   echo $ECHO_N "(cached) $ECHO_C" >&6
48206 else
48207
48208 ice_cv_have_fputs_decl=no
48209 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48210 ice_re_word='(^|[^a-zA-Z0-9_])'
48211 for header in stdio.h; do
48212 # Check for ordinary declaration
48213 cat >conftest.$ac_ext <<_ACEOF
48214 /* confdefs.h.  */
48215 _ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h.  */
48219 #include <$header>
48220
48221 _ACEOF
48222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48223   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
48224   ice_cv_have_fputs_decl=yes
48225 fi
48226 rm -f conftest*
48227
48228 if test "$ice_cv_have_fputs_decl" = yes; then
48229         break
48230 fi
48231 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48232 cat >conftest.$ac_ext <<_ACEOF
48233 /* confdefs.h.  */
48234 _ACEOF
48235 cat confdefs.h >>conftest.$ac_ext
48236 cat >>conftest.$ac_ext <<_ACEOF
48237 /* end confdefs.h.  */
48238 #include <$header>
48239
48240 _ACEOF
48241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48242   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48243   ice_cv_have_fputs_decl=yes
48244 fi
48245 rm -f conftest*
48246
48247 if test "$ice_cv_have_fputs_decl" = yes; then
48248         break
48249 fi
48250 done
48251
48252 fi
48253
48254 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
48255 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
48256 if test "$ice_cv_have_fputs_decl" = yes; then
48257
48258 cat >>confdefs.h <<_ACEOF
48259 #define HAVE_FPUTS_DECL 1
48260 _ACEOF
48261
48262 fi
48263 fi
48264
48265
48266 ice_have_fread=no
48267
48268 for ac_func in fread
48269 do
48270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48271 echo "$as_me:$LINENO: checking for $ac_func" >&5
48272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48273 if eval "test \"\${$as_ac_var+set}\" = set"; then
48274   echo $ECHO_N "(cached) $ECHO_C" >&6
48275 else
48276   cat >conftest.$ac_ext <<_ACEOF
48277 /* confdefs.h.  */
48278 _ACEOF
48279 cat confdefs.h >>conftest.$ac_ext
48280 cat >>conftest.$ac_ext <<_ACEOF
48281 /* end confdefs.h.  */
48282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48284 #define $ac_func innocuous_$ac_func
48285
48286 /* System header to define __stub macros and hopefully few prototypes,
48287     which can conflict with char $ac_func (); below.
48288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48289     <limits.h> exists even on freestanding compilers.  */
48290
48291 #ifdef __STDC__
48292 # include <limits.h>
48293 #else
48294 # include <assert.h>
48295 #endif
48296
48297 #undef $ac_func
48298
48299 /* Override any gcc2 internal prototype to avoid an error.  */
48300 #ifdef __cplusplus
48301 extern "C"
48302 {
48303 #endif
48304 /* We use char because int might match the return type of a gcc2
48305    builtin and then its argument prototype would still apply.  */
48306 char $ac_func ();
48307 /* The GNU C library defines this for functions which it implements
48308     to always fail with ENOSYS.  Some functions are actually named
48309     something starting with __ and the normal name is an alias.  */
48310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48311 choke me
48312 #else
48313 char (*f) () = $ac_func;
48314 #endif
48315 #ifdef __cplusplus
48316 }
48317 #endif
48318
48319 int
48320 main ()
48321 {
48322 return f != $ac_func;
48323   ;
48324   return 0;
48325 }
48326 _ACEOF
48327 rm -f conftest.$ac_objext conftest$ac_exeext
48328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48329   (eval $ac_link) 2>conftest.er1
48330   ac_status=$?
48331   grep -v '^ *+' conftest.er1 >conftest.err
48332   rm -f conftest.er1
48333   cat conftest.err >&5
48334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48335   (exit $ac_status); } &&
48336          { ac_try='test -z "$ac_c_werror_flag"
48337                          || test ! -s conftest.err'
48338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48339   (eval $ac_try) 2>&5
48340   ac_status=$?
48341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48342   (exit $ac_status); }; } &&
48343          { ac_try='test -s conftest$ac_exeext'
48344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48345   (eval $ac_try) 2>&5
48346   ac_status=$?
48347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48348   (exit $ac_status); }; }; then
48349   eval "$as_ac_var=yes"
48350 else
48351   echo "$as_me: failed program was:" >&5
48352 sed 's/^/| /' conftest.$ac_ext >&5
48353
48354 eval "$as_ac_var=no"
48355 fi
48356 rm -f conftest.err conftest.$ac_objext \
48357       conftest$ac_exeext conftest.$ac_ext
48358 fi
48359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48361 if test `eval echo '${'$as_ac_var'}'` = yes; then
48362   cat >>confdefs.h <<_ACEOF
48363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48364 _ACEOF
48365  ice_have_fread=yes
48366 fi
48367 done
48368
48369 if test "${ice_have_fread}" = yes; then
48370 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
48371 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
48372 if test "${ice_cv_have_fread_decl+set}" = set; then
48373   echo $ECHO_N "(cached) $ECHO_C" >&6
48374 else
48375
48376 ice_cv_have_fread_decl=no
48377 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48378 ice_re_word='(^|[^a-zA-Z0-9_])'
48379 for header in stdio.h stdlib.h; do
48380 # Check for ordinary declaration
48381 cat >conftest.$ac_ext <<_ACEOF
48382 /* confdefs.h.  */
48383 _ACEOF
48384 cat confdefs.h >>conftest.$ac_ext
48385 cat >>conftest.$ac_ext <<_ACEOF
48386 /* end confdefs.h.  */
48387 #include <$header>
48388
48389 _ACEOF
48390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48391   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
48392   ice_cv_have_fread_decl=yes
48393 fi
48394 rm -f conftest*
48395
48396 if test "$ice_cv_have_fread_decl" = yes; then
48397         break
48398 fi
48399 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48400 cat >conftest.$ac_ext <<_ACEOF
48401 /* confdefs.h.  */
48402 _ACEOF
48403 cat confdefs.h >>conftest.$ac_ext
48404 cat >>conftest.$ac_ext <<_ACEOF
48405 /* end confdefs.h.  */
48406 #include <$header>
48407
48408 _ACEOF
48409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48410   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48411   ice_cv_have_fread_decl=yes
48412 fi
48413 rm -f conftest*
48414
48415 if test "$ice_cv_have_fread_decl" = yes; then
48416         break
48417 fi
48418 done
48419
48420 fi
48421
48422 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
48423 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
48424 if test "$ice_cv_have_fread_decl" = yes; then
48425
48426 cat >>confdefs.h <<_ACEOF
48427 #define HAVE_FREAD_DECL 1
48428 _ACEOF
48429
48430 fi
48431 fi
48432
48433
48434 ice_have_fseek=no
48435
48436 for ac_func in fseek
48437 do
48438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48439 echo "$as_me:$LINENO: checking for $ac_func" >&5
48440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48441 if eval "test \"\${$as_ac_var+set}\" = set"; then
48442   echo $ECHO_N "(cached) $ECHO_C" >&6
48443 else
48444   cat >conftest.$ac_ext <<_ACEOF
48445 /* confdefs.h.  */
48446 _ACEOF
48447 cat confdefs.h >>conftest.$ac_ext
48448 cat >>conftest.$ac_ext <<_ACEOF
48449 /* end confdefs.h.  */
48450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48452 #define $ac_func innocuous_$ac_func
48453
48454 /* System header to define __stub macros and hopefully few prototypes,
48455     which can conflict with char $ac_func (); below.
48456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48457     <limits.h> exists even on freestanding compilers.  */
48458
48459 #ifdef __STDC__
48460 # include <limits.h>
48461 #else
48462 # include <assert.h>
48463 #endif
48464
48465 #undef $ac_func
48466
48467 /* Override any gcc2 internal prototype to avoid an error.  */
48468 #ifdef __cplusplus
48469 extern "C"
48470 {
48471 #endif
48472 /* We use char because int might match the return type of a gcc2
48473    builtin and then its argument prototype would still apply.  */
48474 char $ac_func ();
48475 /* The GNU C library defines this for functions which it implements
48476     to always fail with ENOSYS.  Some functions are actually named
48477     something starting with __ and the normal name is an alias.  */
48478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48479 choke me
48480 #else
48481 char (*f) () = $ac_func;
48482 #endif
48483 #ifdef __cplusplus
48484 }
48485 #endif
48486
48487 int
48488 main ()
48489 {
48490 return f != $ac_func;
48491   ;
48492   return 0;
48493 }
48494 _ACEOF
48495 rm -f conftest.$ac_objext conftest$ac_exeext
48496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48497   (eval $ac_link) 2>conftest.er1
48498   ac_status=$?
48499   grep -v '^ *+' conftest.er1 >conftest.err
48500   rm -f conftest.er1
48501   cat conftest.err >&5
48502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48503   (exit $ac_status); } &&
48504          { ac_try='test -z "$ac_c_werror_flag"
48505                          || test ! -s conftest.err'
48506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48507   (eval $ac_try) 2>&5
48508   ac_status=$?
48509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48510   (exit $ac_status); }; } &&
48511          { ac_try='test -s conftest$ac_exeext'
48512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48513   (eval $ac_try) 2>&5
48514   ac_status=$?
48515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48516   (exit $ac_status); }; }; then
48517   eval "$as_ac_var=yes"
48518 else
48519   echo "$as_me: failed program was:" >&5
48520 sed 's/^/| /' conftest.$ac_ext >&5
48521
48522 eval "$as_ac_var=no"
48523 fi
48524 rm -f conftest.err conftest.$ac_objext \
48525       conftest$ac_exeext conftest.$ac_ext
48526 fi
48527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48529 if test `eval echo '${'$as_ac_var'}'` = yes; then
48530   cat >>confdefs.h <<_ACEOF
48531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48532 _ACEOF
48533  ice_have_fseek=yes
48534 fi
48535 done
48536
48537 if test "${ice_have_fseek}" = yes; then
48538 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
48539 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
48540 if test "${ice_cv_have_fseek_decl+set}" = set; then
48541   echo $ECHO_N "(cached) $ECHO_C" >&6
48542 else
48543
48544 ice_cv_have_fseek_decl=no
48545 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48546 ice_re_word='(^|[^a-zA-Z0-9_])'
48547 for header in stdio.h; do
48548 # Check for ordinary declaration
48549 cat >conftest.$ac_ext <<_ACEOF
48550 /* confdefs.h.  */
48551 _ACEOF
48552 cat confdefs.h >>conftest.$ac_ext
48553 cat >>conftest.$ac_ext <<_ACEOF
48554 /* end confdefs.h.  */
48555 #include <$header>
48556
48557 _ACEOF
48558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48559   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
48560   ice_cv_have_fseek_decl=yes
48561 fi
48562 rm -f conftest*
48563
48564 if test "$ice_cv_have_fseek_decl" = yes; then
48565         break
48566 fi
48567 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48568 cat >conftest.$ac_ext <<_ACEOF
48569 /* confdefs.h.  */
48570 _ACEOF
48571 cat confdefs.h >>conftest.$ac_ext
48572 cat >>conftest.$ac_ext <<_ACEOF
48573 /* end confdefs.h.  */
48574 #include <$header>
48575
48576 _ACEOF
48577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48578   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48579   ice_cv_have_fseek_decl=yes
48580 fi
48581 rm -f conftest*
48582
48583 if test "$ice_cv_have_fseek_decl" = yes; then
48584         break
48585 fi
48586 done
48587
48588 fi
48589
48590 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
48591 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
48592 if test "$ice_cv_have_fseek_decl" = yes; then
48593
48594 cat >>confdefs.h <<_ACEOF
48595 #define HAVE_FSEEK_DECL 1
48596 _ACEOF
48597
48598 fi
48599 fi
48600
48601
48602 ice_have_fwrite=no
48603
48604 for ac_func in fwrite
48605 do
48606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48607 echo "$as_me:$LINENO: checking for $ac_func" >&5
48608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48609 if eval "test \"\${$as_ac_var+set}\" = set"; then
48610   echo $ECHO_N "(cached) $ECHO_C" >&6
48611 else
48612   cat >conftest.$ac_ext <<_ACEOF
48613 /* confdefs.h.  */
48614 _ACEOF
48615 cat confdefs.h >>conftest.$ac_ext
48616 cat >>conftest.$ac_ext <<_ACEOF
48617 /* end confdefs.h.  */
48618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48620 #define $ac_func innocuous_$ac_func
48621
48622 /* System header to define __stub macros and hopefully few prototypes,
48623     which can conflict with char $ac_func (); below.
48624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48625     <limits.h> exists even on freestanding compilers.  */
48626
48627 #ifdef __STDC__
48628 # include <limits.h>
48629 #else
48630 # include <assert.h>
48631 #endif
48632
48633 #undef $ac_func
48634
48635 /* Override any gcc2 internal prototype to avoid an error.  */
48636 #ifdef __cplusplus
48637 extern "C"
48638 {
48639 #endif
48640 /* We use char because int might match the return type of a gcc2
48641    builtin and then its argument prototype would still apply.  */
48642 char $ac_func ();
48643 /* The GNU C library defines this for functions which it implements
48644     to always fail with ENOSYS.  Some functions are actually named
48645     something starting with __ and the normal name is an alias.  */
48646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48647 choke me
48648 #else
48649 char (*f) () = $ac_func;
48650 #endif
48651 #ifdef __cplusplus
48652 }
48653 #endif
48654
48655 int
48656 main ()
48657 {
48658 return f != $ac_func;
48659   ;
48660   return 0;
48661 }
48662 _ACEOF
48663 rm -f conftest.$ac_objext conftest$ac_exeext
48664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48665   (eval $ac_link) 2>conftest.er1
48666   ac_status=$?
48667   grep -v '^ *+' conftest.er1 >conftest.err
48668   rm -f conftest.er1
48669   cat conftest.err >&5
48670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48671   (exit $ac_status); } &&
48672          { ac_try='test -z "$ac_c_werror_flag"
48673                          || test ! -s conftest.err'
48674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48675   (eval $ac_try) 2>&5
48676   ac_status=$?
48677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48678   (exit $ac_status); }; } &&
48679          { ac_try='test -s conftest$ac_exeext'
48680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48681   (eval $ac_try) 2>&5
48682   ac_status=$?
48683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48684   (exit $ac_status); }; }; then
48685   eval "$as_ac_var=yes"
48686 else
48687   echo "$as_me: failed program was:" >&5
48688 sed 's/^/| /' conftest.$ac_ext >&5
48689
48690 eval "$as_ac_var=no"
48691 fi
48692 rm -f conftest.err conftest.$ac_objext \
48693       conftest$ac_exeext conftest.$ac_ext
48694 fi
48695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48697 if test `eval echo '${'$as_ac_var'}'` = yes; then
48698   cat >>confdefs.h <<_ACEOF
48699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48700 _ACEOF
48701  ice_have_fwrite=yes
48702 fi
48703 done
48704
48705 if test "${ice_have_fwrite}" = yes; then
48706 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
48707 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
48708 if test "${ice_cv_have_fwrite_decl+set}" = set; then
48709   echo $ECHO_N "(cached) $ECHO_C" >&6
48710 else
48711
48712 ice_cv_have_fwrite_decl=no
48713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48714 ice_re_word='(^|[^a-zA-Z0-9_])'
48715 for header in stdio.h stdlib.h; do
48716 # Check for ordinary declaration
48717 cat >conftest.$ac_ext <<_ACEOF
48718 /* confdefs.h.  */
48719 _ACEOF
48720 cat confdefs.h >>conftest.$ac_ext
48721 cat >>conftest.$ac_ext <<_ACEOF
48722 /* end confdefs.h.  */
48723 #include <$header>
48724
48725 _ACEOF
48726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48727   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
48728   ice_cv_have_fwrite_decl=yes
48729 fi
48730 rm -f conftest*
48731
48732 if test "$ice_cv_have_fwrite_decl" = yes; then
48733         break
48734 fi
48735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48736 cat >conftest.$ac_ext <<_ACEOF
48737 /* confdefs.h.  */
48738 _ACEOF
48739 cat confdefs.h >>conftest.$ac_ext
48740 cat >>conftest.$ac_ext <<_ACEOF
48741 /* end confdefs.h.  */
48742 #include <$header>
48743
48744 _ACEOF
48745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48746   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48747   ice_cv_have_fwrite_decl=yes
48748 fi
48749 rm -f conftest*
48750
48751 if test "$ice_cv_have_fwrite_decl" = yes; then
48752         break
48753 fi
48754 done
48755
48756 fi
48757
48758 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
48759 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
48760 if test "$ice_cv_have_fwrite_decl" = yes; then
48761
48762 cat >>confdefs.h <<_ACEOF
48763 #define HAVE_FWRITE_DECL 1
48764 _ACEOF
48765
48766 fi
48767 fi
48768
48769
48770 for ac_func in getfsent
48771 do
48772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48773 echo "$as_me:$LINENO: checking for $ac_func" >&5
48774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48775 if eval "test \"\${$as_ac_var+set}\" = set"; then
48776   echo $ECHO_N "(cached) $ECHO_C" >&6
48777 else
48778   cat >conftest.$ac_ext <<_ACEOF
48779 /* confdefs.h.  */
48780 _ACEOF
48781 cat confdefs.h >>conftest.$ac_ext
48782 cat >>conftest.$ac_ext <<_ACEOF
48783 /* end confdefs.h.  */
48784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48786 #define $ac_func innocuous_$ac_func
48787
48788 /* System header to define __stub macros and hopefully few prototypes,
48789     which can conflict with char $ac_func (); below.
48790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48791     <limits.h> exists even on freestanding compilers.  */
48792
48793 #ifdef __STDC__
48794 # include <limits.h>
48795 #else
48796 # include <assert.h>
48797 #endif
48798
48799 #undef $ac_func
48800
48801 /* Override any gcc2 internal prototype to avoid an error.  */
48802 #ifdef __cplusplus
48803 extern "C"
48804 {
48805 #endif
48806 /* We use char because int might match the return type of a gcc2
48807    builtin and then its argument prototype would still apply.  */
48808 char $ac_func ();
48809 /* The GNU C library defines this for functions which it implements
48810     to always fail with ENOSYS.  Some functions are actually named
48811     something starting with __ and the normal name is an alias.  */
48812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48813 choke me
48814 #else
48815 char (*f) () = $ac_func;
48816 #endif
48817 #ifdef __cplusplus
48818 }
48819 #endif
48820
48821 int
48822 main ()
48823 {
48824 return f != $ac_func;
48825   ;
48826   return 0;
48827 }
48828 _ACEOF
48829 rm -f conftest.$ac_objext conftest$ac_exeext
48830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48831   (eval $ac_link) 2>conftest.er1
48832   ac_status=$?
48833   grep -v '^ *+' conftest.er1 >conftest.err
48834   rm -f conftest.er1
48835   cat conftest.err >&5
48836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48837   (exit $ac_status); } &&
48838          { ac_try='test -z "$ac_c_werror_flag"
48839                          || test ! -s conftest.err'
48840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48841   (eval $ac_try) 2>&5
48842   ac_status=$?
48843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844   (exit $ac_status); }; } &&
48845          { ac_try='test -s conftest$ac_exeext'
48846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48847   (eval $ac_try) 2>&5
48848   ac_status=$?
48849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48850   (exit $ac_status); }; }; then
48851   eval "$as_ac_var=yes"
48852 else
48853   echo "$as_me: failed program was:" >&5
48854 sed 's/^/| /' conftest.$ac_ext >&5
48855
48856 eval "$as_ac_var=no"
48857 fi
48858 rm -f conftest.err conftest.$ac_objext \
48859       conftest$ac_exeext conftest.$ac_ext
48860 fi
48861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48863 if test `eval echo '${'$as_ac_var'}'` = yes; then
48864   cat >>confdefs.h <<_ACEOF
48865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48866 _ACEOF
48867
48868 fi
48869 done
48870
48871
48872 ice_have_gethostname=no
48873
48874 for ac_func in gethostname
48875 do
48876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48877 echo "$as_me:$LINENO: checking for $ac_func" >&5
48878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48879 if eval "test \"\${$as_ac_var+set}\" = set"; then
48880   echo $ECHO_N "(cached) $ECHO_C" >&6
48881 else
48882   cat >conftest.$ac_ext <<_ACEOF
48883 /* confdefs.h.  */
48884 _ACEOF
48885 cat confdefs.h >>conftest.$ac_ext
48886 cat >>conftest.$ac_ext <<_ACEOF
48887 /* end confdefs.h.  */
48888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48890 #define $ac_func innocuous_$ac_func
48891
48892 /* System header to define __stub macros and hopefully few prototypes,
48893     which can conflict with char $ac_func (); below.
48894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48895     <limits.h> exists even on freestanding compilers.  */
48896
48897 #ifdef __STDC__
48898 # include <limits.h>
48899 #else
48900 # include <assert.h>
48901 #endif
48902
48903 #undef $ac_func
48904
48905 /* Override any gcc2 internal prototype to avoid an error.  */
48906 #ifdef __cplusplus
48907 extern "C"
48908 {
48909 #endif
48910 /* We use char because int might match the return type of a gcc2
48911    builtin and then its argument prototype would still apply.  */
48912 char $ac_func ();
48913 /* The GNU C library defines this for functions which it implements
48914     to always fail with ENOSYS.  Some functions are actually named
48915     something starting with __ and the normal name is an alias.  */
48916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48917 choke me
48918 #else
48919 char (*f) () = $ac_func;
48920 #endif
48921 #ifdef __cplusplus
48922 }
48923 #endif
48924
48925 int
48926 main ()
48927 {
48928 return f != $ac_func;
48929   ;
48930   return 0;
48931 }
48932 _ACEOF
48933 rm -f conftest.$ac_objext conftest$ac_exeext
48934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48935   (eval $ac_link) 2>conftest.er1
48936   ac_status=$?
48937   grep -v '^ *+' conftest.er1 >conftest.err
48938   rm -f conftest.er1
48939   cat conftest.err >&5
48940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48941   (exit $ac_status); } &&
48942          { ac_try='test -z "$ac_c_werror_flag"
48943                          || test ! -s conftest.err'
48944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48945   (eval $ac_try) 2>&5
48946   ac_status=$?
48947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48948   (exit $ac_status); }; } &&
48949          { ac_try='test -s conftest$ac_exeext'
48950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48951   (eval $ac_try) 2>&5
48952   ac_status=$?
48953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48954   (exit $ac_status); }; }; then
48955   eval "$as_ac_var=yes"
48956 else
48957   echo "$as_me: failed program was:" >&5
48958 sed 's/^/| /' conftest.$ac_ext >&5
48959
48960 eval "$as_ac_var=no"
48961 fi
48962 rm -f conftest.err conftest.$ac_objext \
48963       conftest$ac_exeext conftest.$ac_ext
48964 fi
48965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48967 if test `eval echo '${'$as_ac_var'}'` = yes; then
48968   cat >>confdefs.h <<_ACEOF
48969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48970 _ACEOF
48971  ice_have_gethostname=yes
48972 fi
48973 done
48974
48975 if test "${ice_have_gethostname}" = yes; then
48976 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
48977 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
48978 if test "${ice_cv_have_gethostname_decl+set}" = set; then
48979   echo $ECHO_N "(cached) $ECHO_C" >&6
48980 else
48981
48982 ice_cv_have_gethostname_decl=no
48983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48984 ice_re_word='(^|[^a-zA-Z0-9_])'
48985 for header in unistd.h; do
48986 # Check for ordinary declaration
48987 cat >conftest.$ac_ext <<_ACEOF
48988 /* confdefs.h.  */
48989 _ACEOF
48990 cat confdefs.h >>conftest.$ac_ext
48991 cat >>conftest.$ac_ext <<_ACEOF
48992 /* end confdefs.h.  */
48993 #include <$header>
48994
48995 _ACEOF
48996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48997   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
48998   ice_cv_have_gethostname_decl=yes
48999 fi
49000 rm -f conftest*
49001
49002 if test "$ice_cv_have_gethostname_decl" = yes; then
49003         break
49004 fi
49005 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49006 cat >conftest.$ac_ext <<_ACEOF
49007 /* confdefs.h.  */
49008 _ACEOF
49009 cat confdefs.h >>conftest.$ac_ext
49010 cat >>conftest.$ac_ext <<_ACEOF
49011 /* end confdefs.h.  */
49012 #include <$header>
49013
49014 _ACEOF
49015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49016   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49017   ice_cv_have_gethostname_decl=yes
49018 fi
49019 rm -f conftest*
49020
49021 if test "$ice_cv_have_gethostname_decl" = yes; then
49022         break
49023 fi
49024 done
49025
49026 fi
49027
49028 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
49029 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
49030 if test "$ice_cv_have_gethostname_decl" = yes; then
49031
49032 cat >>confdefs.h <<_ACEOF
49033 #define HAVE_GETHOSTNAME_DECL 1
49034 _ACEOF
49035
49036 fi
49037 fi
49038
49039 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
49040 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
49041 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
49042 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
49043   echo $ECHO_N "(cached) $ECHO_C" >&6
49044 else
49045   ac_check_lib_save_LIBS=$LIBS
49046 LIBS="-lsun  $LIBS"
49047 cat >conftest.$ac_ext <<_ACEOF
49048 /* confdefs.h.  */
49049 _ACEOF
49050 cat confdefs.h >>conftest.$ac_ext
49051 cat >>conftest.$ac_ext <<_ACEOF
49052 /* end confdefs.h.  */
49053
49054 /* Override any gcc2 internal prototype to avoid an error.  */
49055 #ifdef __cplusplus
49056 extern "C"
49057 #endif
49058 /* We use char because int might match the return type of a gcc2
49059    builtin and then its argument prototype would still apply.  */
49060 char getmntent ();
49061 int
49062 main ()
49063 {
49064 getmntent ();
49065   ;
49066   return 0;
49067 }
49068 _ACEOF
49069 rm -f conftest.$ac_objext conftest$ac_exeext
49070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49071   (eval $ac_link) 2>conftest.er1
49072   ac_status=$?
49073   grep -v '^ *+' conftest.er1 >conftest.err
49074   rm -f conftest.er1
49075   cat conftest.err >&5
49076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49077   (exit $ac_status); } &&
49078          { ac_try='test -z "$ac_c_werror_flag"
49079                          || test ! -s conftest.err'
49080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49081   (eval $ac_try) 2>&5
49082   ac_status=$?
49083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49084   (exit $ac_status); }; } &&
49085          { ac_try='test -s conftest$ac_exeext'
49086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49087   (eval $ac_try) 2>&5
49088   ac_status=$?
49089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49090   (exit $ac_status); }; }; then
49091   ac_cv_lib_sun_getmntent=yes
49092 else
49093   echo "$as_me: failed program was:" >&5
49094 sed 's/^/| /' conftest.$ac_ext >&5
49095
49096 ac_cv_lib_sun_getmntent=no
49097 fi
49098 rm -f conftest.err conftest.$ac_objext \
49099       conftest$ac_exeext conftest.$ac_ext
49100 LIBS=$ac_check_lib_save_LIBS
49101 fi
49102 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
49103 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
49104 if test $ac_cv_lib_sun_getmntent = yes; then
49105   LIBS="-lsun $LIBS"
49106 else
49107   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
49108 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
49109 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
49110   echo $ECHO_N "(cached) $ECHO_C" >&6
49111 else
49112   ac_check_lib_save_LIBS=$LIBS
49113 LIBS="-lseq  $LIBS"
49114 cat >conftest.$ac_ext <<_ACEOF
49115 /* confdefs.h.  */
49116 _ACEOF
49117 cat confdefs.h >>conftest.$ac_ext
49118 cat >>conftest.$ac_ext <<_ACEOF
49119 /* end confdefs.h.  */
49120
49121 /* Override any gcc2 internal prototype to avoid an error.  */
49122 #ifdef __cplusplus
49123 extern "C"
49124 #endif
49125 /* We use char because int might match the return type of a gcc2
49126    builtin and then its argument prototype would still apply.  */
49127 char getmntent ();
49128 int
49129 main ()
49130 {
49131 getmntent ();
49132   ;
49133   return 0;
49134 }
49135 _ACEOF
49136 rm -f conftest.$ac_objext conftest$ac_exeext
49137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49138   (eval $ac_link) 2>conftest.er1
49139   ac_status=$?
49140   grep -v '^ *+' conftest.er1 >conftest.err
49141   rm -f conftest.er1
49142   cat conftest.err >&5
49143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49144   (exit $ac_status); } &&
49145          { ac_try='test -z "$ac_c_werror_flag"
49146                          || test ! -s conftest.err'
49147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49148   (eval $ac_try) 2>&5
49149   ac_status=$?
49150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49151   (exit $ac_status); }; } &&
49152          { ac_try='test -s conftest$ac_exeext'
49153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49154   (eval $ac_try) 2>&5
49155   ac_status=$?
49156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49157   (exit $ac_status); }; }; then
49158   ac_cv_lib_seq_getmntent=yes
49159 else
49160   echo "$as_me: failed program was:" >&5
49161 sed 's/^/| /' conftest.$ac_ext >&5
49162
49163 ac_cv_lib_seq_getmntent=no
49164 fi
49165 rm -f conftest.err conftest.$ac_objext \
49166       conftest$ac_exeext conftest.$ac_ext
49167 LIBS=$ac_check_lib_save_LIBS
49168 fi
49169 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
49170 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
49171 if test $ac_cv_lib_seq_getmntent = yes; then
49172   LIBS="-lseq $LIBS"
49173 else
49174   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
49175 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
49176 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
49177   echo $ECHO_N "(cached) $ECHO_C" >&6
49178 else
49179   ac_check_lib_save_LIBS=$LIBS
49180 LIBS="-lgen  $LIBS"
49181 cat >conftest.$ac_ext <<_ACEOF
49182 /* confdefs.h.  */
49183 _ACEOF
49184 cat confdefs.h >>conftest.$ac_ext
49185 cat >>conftest.$ac_ext <<_ACEOF
49186 /* end confdefs.h.  */
49187
49188 /* Override any gcc2 internal prototype to avoid an error.  */
49189 #ifdef __cplusplus
49190 extern "C"
49191 #endif
49192 /* We use char because int might match the return type of a gcc2
49193    builtin and then its argument prototype would still apply.  */
49194 char getmntent ();
49195 int
49196 main ()
49197 {
49198 getmntent ();
49199   ;
49200   return 0;
49201 }
49202 _ACEOF
49203 rm -f conftest.$ac_objext conftest$ac_exeext
49204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49205   (eval $ac_link) 2>conftest.er1
49206   ac_status=$?
49207   grep -v '^ *+' conftest.er1 >conftest.err
49208   rm -f conftest.er1
49209   cat conftest.err >&5
49210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49211   (exit $ac_status); } &&
49212          { ac_try='test -z "$ac_c_werror_flag"
49213                          || test ! -s conftest.err'
49214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49215   (eval $ac_try) 2>&5
49216   ac_status=$?
49217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49218   (exit $ac_status); }; } &&
49219          { ac_try='test -s conftest$ac_exeext'
49220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49221   (eval $ac_try) 2>&5
49222   ac_status=$?
49223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49224   (exit $ac_status); }; }; then
49225   ac_cv_lib_gen_getmntent=yes
49226 else
49227   echo "$as_me: failed program was:" >&5
49228 sed 's/^/| /' conftest.$ac_ext >&5
49229
49230 ac_cv_lib_gen_getmntent=no
49231 fi
49232 rm -f conftest.err conftest.$ac_objext \
49233       conftest$ac_exeext conftest.$ac_ext
49234 LIBS=$ac_check_lib_save_LIBS
49235 fi
49236 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
49237 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
49238 if test $ac_cv_lib_gen_getmntent = yes; then
49239   LIBS="-lgen $LIBS"
49240 fi
49241
49242 fi
49243
49244 fi
49245
49246
49247 for ac_func in getmntent
49248 do
49249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49250 echo "$as_me:$LINENO: checking for $ac_func" >&5
49251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49252 if eval "test \"\${$as_ac_var+set}\" = set"; then
49253   echo $ECHO_N "(cached) $ECHO_C" >&6
49254 else
49255   cat >conftest.$ac_ext <<_ACEOF
49256 /* confdefs.h.  */
49257 _ACEOF
49258 cat confdefs.h >>conftest.$ac_ext
49259 cat >>conftest.$ac_ext <<_ACEOF
49260 /* end confdefs.h.  */
49261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49263 #define $ac_func innocuous_$ac_func
49264
49265 /* System header to define __stub macros and hopefully few prototypes,
49266     which can conflict with char $ac_func (); below.
49267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49268     <limits.h> exists even on freestanding compilers.  */
49269
49270 #ifdef __STDC__
49271 # include <limits.h>
49272 #else
49273 # include <assert.h>
49274 #endif
49275
49276 #undef $ac_func
49277
49278 /* Override any gcc2 internal prototype to avoid an error.  */
49279 #ifdef __cplusplus
49280 extern "C"
49281 {
49282 #endif
49283 /* We use char because int might match the return type of a gcc2
49284    builtin and then its argument prototype would still apply.  */
49285 char $ac_func ();
49286 /* The GNU C library defines this for functions which it implements
49287     to always fail with ENOSYS.  Some functions are actually named
49288     something starting with __ and the normal name is an alias.  */
49289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49290 choke me
49291 #else
49292 char (*f) () = $ac_func;
49293 #endif
49294 #ifdef __cplusplus
49295 }
49296 #endif
49297
49298 int
49299 main ()
49300 {
49301 return f != $ac_func;
49302   ;
49303   return 0;
49304 }
49305 _ACEOF
49306 rm -f conftest.$ac_objext conftest$ac_exeext
49307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49308   (eval $ac_link) 2>conftest.er1
49309   ac_status=$?
49310   grep -v '^ *+' conftest.er1 >conftest.err
49311   rm -f conftest.er1
49312   cat conftest.err >&5
49313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49314   (exit $ac_status); } &&
49315          { ac_try='test -z "$ac_c_werror_flag"
49316                          || test ! -s conftest.err'
49317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49318   (eval $ac_try) 2>&5
49319   ac_status=$?
49320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49321   (exit $ac_status); }; } &&
49322          { ac_try='test -s conftest$ac_exeext'
49323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49324   (eval $ac_try) 2>&5
49325   ac_status=$?
49326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49327   (exit $ac_status); }; }; then
49328   eval "$as_ac_var=yes"
49329 else
49330   echo "$as_me: failed program was:" >&5
49331 sed 's/^/| /' conftest.$ac_ext >&5
49332
49333 eval "$as_ac_var=no"
49334 fi
49335 rm -f conftest.err conftest.$ac_objext \
49336       conftest$ac_exeext conftest.$ac_ext
49337 fi
49338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49340 if test `eval echo '${'$as_ac_var'}'` = yes; then
49341   cat >>confdefs.h <<_ACEOF
49342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49343 _ACEOF
49344
49345 fi
49346 done
49347
49348
49349
49350 ice_have_getopt=no
49351
49352 for ac_func in getopt
49353 do
49354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49355 echo "$as_me:$LINENO: checking for $ac_func" >&5
49356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49357 if eval "test \"\${$as_ac_var+set}\" = set"; then
49358   echo $ECHO_N "(cached) $ECHO_C" >&6
49359 else
49360   cat >conftest.$ac_ext <<_ACEOF
49361 /* confdefs.h.  */
49362 _ACEOF
49363 cat confdefs.h >>conftest.$ac_ext
49364 cat >>conftest.$ac_ext <<_ACEOF
49365 /* end confdefs.h.  */
49366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49368 #define $ac_func innocuous_$ac_func
49369
49370 /* System header to define __stub macros and hopefully few prototypes,
49371     which can conflict with char $ac_func (); below.
49372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49373     <limits.h> exists even on freestanding compilers.  */
49374
49375 #ifdef __STDC__
49376 # include <limits.h>
49377 #else
49378 # include <assert.h>
49379 #endif
49380
49381 #undef $ac_func
49382
49383 /* Override any gcc2 internal prototype to avoid an error.  */
49384 #ifdef __cplusplus
49385 extern "C"
49386 {
49387 #endif
49388 /* We use char because int might match the return type of a gcc2
49389    builtin and then its argument prototype would still apply.  */
49390 char $ac_func ();
49391 /* The GNU C library defines this for functions which it implements
49392     to always fail with ENOSYS.  Some functions are actually named
49393     something starting with __ and the normal name is an alias.  */
49394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49395 choke me
49396 #else
49397 char (*f) () = $ac_func;
49398 #endif
49399 #ifdef __cplusplus
49400 }
49401 #endif
49402
49403 int
49404 main ()
49405 {
49406 return f != $ac_func;
49407   ;
49408   return 0;
49409 }
49410 _ACEOF
49411 rm -f conftest.$ac_objext conftest$ac_exeext
49412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49413   (eval $ac_link) 2>conftest.er1
49414   ac_status=$?
49415   grep -v '^ *+' conftest.er1 >conftest.err
49416   rm -f conftest.er1
49417   cat conftest.err >&5
49418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419   (exit $ac_status); } &&
49420          { ac_try='test -z "$ac_c_werror_flag"
49421                          || test ! -s conftest.err'
49422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49423   (eval $ac_try) 2>&5
49424   ac_status=$?
49425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49426   (exit $ac_status); }; } &&
49427          { ac_try='test -s conftest$ac_exeext'
49428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49429   (eval $ac_try) 2>&5
49430   ac_status=$?
49431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49432   (exit $ac_status); }; }; then
49433   eval "$as_ac_var=yes"
49434 else
49435   echo "$as_me: failed program was:" >&5
49436 sed 's/^/| /' conftest.$ac_ext >&5
49437
49438 eval "$as_ac_var=no"
49439 fi
49440 rm -f conftest.err conftest.$ac_objext \
49441       conftest$ac_exeext conftest.$ac_ext
49442 fi
49443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49445 if test `eval echo '${'$as_ac_var'}'` = yes; then
49446   cat >>confdefs.h <<_ACEOF
49447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49448 _ACEOF
49449  ice_have_getopt=yes
49450 fi
49451 done
49452
49453 if test "${ice_have_getopt}" = yes; then
49454 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
49455 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
49456 if test "${ice_cv_have_getopt_decl+set}" = set; then
49457   echo $ECHO_N "(cached) $ECHO_C" >&6
49458 else
49459
49460 ice_cv_have_getopt_decl=no
49461 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49462 ice_re_word='(^|[^a-zA-Z0-9_])'
49463 for header in stdlib.h unistd.h libc.h; do
49464 # Check for ordinary declaration
49465 cat >conftest.$ac_ext <<_ACEOF
49466 /* confdefs.h.  */
49467 _ACEOF
49468 cat confdefs.h >>conftest.$ac_ext
49469 cat >>conftest.$ac_ext <<_ACEOF
49470 /* end confdefs.h.  */
49471 #include <$header>
49472
49473 _ACEOF
49474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49475   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
49476   ice_cv_have_getopt_decl=yes
49477 fi
49478 rm -f conftest*
49479
49480 if test "$ice_cv_have_getopt_decl" = yes; then
49481         break
49482 fi
49483 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49484 cat >conftest.$ac_ext <<_ACEOF
49485 /* confdefs.h.  */
49486 _ACEOF
49487 cat confdefs.h >>conftest.$ac_ext
49488 cat >>conftest.$ac_ext <<_ACEOF
49489 /* end confdefs.h.  */
49490 #include <$header>
49491
49492 _ACEOF
49493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49494   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49495   ice_cv_have_getopt_decl=yes
49496 fi
49497 rm -f conftest*
49498
49499 if test "$ice_cv_have_getopt_decl" = yes; then
49500         break
49501 fi
49502 done
49503
49504 fi
49505
49506 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
49507 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
49508 if test "$ice_cv_have_getopt_decl" = yes; then
49509
49510 cat >>confdefs.h <<_ACEOF
49511 #define HAVE_GETOPT_DECL 1
49512 _ACEOF
49513
49514 fi
49515 fi
49516
49517
49518 ice_have_getpeername=no
49519
49520 for ac_func in getpeername
49521 do
49522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49523 echo "$as_me:$LINENO: checking for $ac_func" >&5
49524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49525 if eval "test \"\${$as_ac_var+set}\" = set"; then
49526   echo $ECHO_N "(cached) $ECHO_C" >&6
49527 else
49528   cat >conftest.$ac_ext <<_ACEOF
49529 /* confdefs.h.  */
49530 _ACEOF
49531 cat confdefs.h >>conftest.$ac_ext
49532 cat >>conftest.$ac_ext <<_ACEOF
49533 /* end confdefs.h.  */
49534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49535    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49536 #define $ac_func innocuous_$ac_func
49537
49538 /* System header to define __stub macros and hopefully few prototypes,
49539     which can conflict with char $ac_func (); below.
49540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49541     <limits.h> exists even on freestanding compilers.  */
49542
49543 #ifdef __STDC__
49544 # include <limits.h>
49545 #else
49546 # include <assert.h>
49547 #endif
49548
49549 #undef $ac_func
49550
49551 /* Override any gcc2 internal prototype to avoid an error.  */
49552 #ifdef __cplusplus
49553 extern "C"
49554 {
49555 #endif
49556 /* We use char because int might match the return type of a gcc2
49557    builtin and then its argument prototype would still apply.  */
49558 char $ac_func ();
49559 /* The GNU C library defines this for functions which it implements
49560     to always fail with ENOSYS.  Some functions are actually named
49561     something starting with __ and the normal name is an alias.  */
49562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49563 choke me
49564 #else
49565 char (*f) () = $ac_func;
49566 #endif
49567 #ifdef __cplusplus
49568 }
49569 #endif
49570
49571 int
49572 main ()
49573 {
49574 return f != $ac_func;
49575   ;
49576   return 0;
49577 }
49578 _ACEOF
49579 rm -f conftest.$ac_objext conftest$ac_exeext
49580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49581   (eval $ac_link) 2>conftest.er1
49582   ac_status=$?
49583   grep -v '^ *+' conftest.er1 >conftest.err
49584   rm -f conftest.er1
49585   cat conftest.err >&5
49586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49587   (exit $ac_status); } &&
49588          { ac_try='test -z "$ac_c_werror_flag"
49589                          || test ! -s conftest.err'
49590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49591   (eval $ac_try) 2>&5
49592   ac_status=$?
49593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49594   (exit $ac_status); }; } &&
49595          { ac_try='test -s conftest$ac_exeext'
49596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49597   (eval $ac_try) 2>&5
49598   ac_status=$?
49599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49600   (exit $ac_status); }; }; then
49601   eval "$as_ac_var=yes"
49602 else
49603   echo "$as_me: failed program was:" >&5
49604 sed 's/^/| /' conftest.$ac_ext >&5
49605
49606 eval "$as_ac_var=no"
49607 fi
49608 rm -f conftest.err conftest.$ac_objext \
49609       conftest$ac_exeext conftest.$ac_ext
49610 fi
49611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49612 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49613 if test `eval echo '${'$as_ac_var'}'` = yes; then
49614   cat >>confdefs.h <<_ACEOF
49615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49616 _ACEOF
49617  ice_have_getpeername=yes
49618 fi
49619 done
49620
49621 if test "${ice_have_getpeername}" = yes; then
49622 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
49623 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
49624 if test "${ice_cv_have_getpeername_decl+set}" = set; then
49625   echo $ECHO_N "(cached) $ECHO_C" >&6
49626 else
49627
49628 ice_cv_have_getpeername_decl=no
49629 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49630 ice_re_word='(^|[^a-zA-Z0-9_])'
49631 for header in sys/types.h sys/socket.h; do
49632 # Check for ordinary declaration
49633 cat >conftest.$ac_ext <<_ACEOF
49634 /* confdefs.h.  */
49635 _ACEOF
49636 cat confdefs.h >>conftest.$ac_ext
49637 cat >>conftest.$ac_ext <<_ACEOF
49638 /* end confdefs.h.  */
49639 #include <$header>
49640
49641 _ACEOF
49642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49643   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
49644   ice_cv_have_getpeername_decl=yes
49645 fi
49646 rm -f conftest*
49647
49648 if test "$ice_cv_have_getpeername_decl" = yes; then
49649         break
49650 fi
49651 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49652 cat >conftest.$ac_ext <<_ACEOF
49653 /* confdefs.h.  */
49654 _ACEOF
49655 cat confdefs.h >>conftest.$ac_ext
49656 cat >>conftest.$ac_ext <<_ACEOF
49657 /* end confdefs.h.  */
49658 #include <$header>
49659
49660 _ACEOF
49661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49662   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49663   ice_cv_have_getpeername_decl=yes
49664 fi
49665 rm -f conftest*
49666
49667 if test "$ice_cv_have_getpeername_decl" = yes; then
49668         break
49669 fi
49670 done
49671
49672 fi
49673
49674 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
49675 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
49676 if test "$ice_cv_have_getpeername_decl" = yes; then
49677
49678 cat >>confdefs.h <<_ACEOF
49679 #define HAVE_GETPEERNAME_DECL 1
49680 _ACEOF
49681
49682 fi
49683 fi
49684
49685
49686 for ac_func in getpgrp
49687 do
49688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49689 echo "$as_me:$LINENO: checking for $ac_func" >&5
49690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49691 if eval "test \"\${$as_ac_var+set}\" = set"; then
49692   echo $ECHO_N "(cached) $ECHO_C" >&6
49693 else
49694   cat >conftest.$ac_ext <<_ACEOF
49695 /* confdefs.h.  */
49696 _ACEOF
49697 cat confdefs.h >>conftest.$ac_ext
49698 cat >>conftest.$ac_ext <<_ACEOF
49699 /* end confdefs.h.  */
49700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49702 #define $ac_func innocuous_$ac_func
49703
49704 /* System header to define __stub macros and hopefully few prototypes,
49705     which can conflict with char $ac_func (); below.
49706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49707     <limits.h> exists even on freestanding compilers.  */
49708
49709 #ifdef __STDC__
49710 # include <limits.h>
49711 #else
49712 # include <assert.h>
49713 #endif
49714
49715 #undef $ac_func
49716
49717 /* Override any gcc2 internal prototype to avoid an error.  */
49718 #ifdef __cplusplus
49719 extern "C"
49720 {
49721 #endif
49722 /* We use char because int might match the return type of a gcc2
49723    builtin and then its argument prototype would still apply.  */
49724 char $ac_func ();
49725 /* The GNU C library defines this for functions which it implements
49726     to always fail with ENOSYS.  Some functions are actually named
49727     something starting with __ and the normal name is an alias.  */
49728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49729 choke me
49730 #else
49731 char (*f) () = $ac_func;
49732 #endif
49733 #ifdef __cplusplus
49734 }
49735 #endif
49736
49737 int
49738 main ()
49739 {
49740 return f != $ac_func;
49741   ;
49742   return 0;
49743 }
49744 _ACEOF
49745 rm -f conftest.$ac_objext conftest$ac_exeext
49746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49747   (eval $ac_link) 2>conftest.er1
49748   ac_status=$?
49749   grep -v '^ *+' conftest.er1 >conftest.err
49750   rm -f conftest.er1
49751   cat conftest.err >&5
49752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753   (exit $ac_status); } &&
49754          { ac_try='test -z "$ac_c_werror_flag"
49755                          || test ! -s conftest.err'
49756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49757   (eval $ac_try) 2>&5
49758   ac_status=$?
49759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760   (exit $ac_status); }; } &&
49761          { ac_try='test -s conftest$ac_exeext'
49762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49763   (eval $ac_try) 2>&5
49764   ac_status=$?
49765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766   (exit $ac_status); }; }; then
49767   eval "$as_ac_var=yes"
49768 else
49769   echo "$as_me: failed program was:" >&5
49770 sed 's/^/| /' conftest.$ac_ext >&5
49771
49772 eval "$as_ac_var=no"
49773 fi
49774 rm -f conftest.err conftest.$ac_objext \
49775       conftest$ac_exeext conftest.$ac_ext
49776 fi
49777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49779 if test `eval echo '${'$as_ac_var'}'` = yes; then
49780   cat >>confdefs.h <<_ACEOF
49781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49782 _ACEOF
49783
49784 fi
49785 done
49786
49787 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
49788 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
49789 if test "${ac_cv_func_getpgrp_void+set}" = set; then
49790   echo $ECHO_N "(cached) $ECHO_C" >&6
49791 else
49792   # Use it with a single arg.
49793 cat >conftest.$ac_ext <<_ACEOF
49794 /* confdefs.h.  */
49795 _ACEOF
49796 cat confdefs.h >>conftest.$ac_ext
49797 cat >>conftest.$ac_ext <<_ACEOF
49798 /* end confdefs.h.  */
49799 $ac_includes_default
49800 int
49801 main ()
49802 {
49803 getpgrp (0);
49804   ;
49805   return 0;
49806 }
49807 _ACEOF
49808 rm -f conftest.$ac_objext
49809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49810   (eval $ac_compile) 2>conftest.er1
49811   ac_status=$?
49812   grep -v '^ *+' conftest.er1 >conftest.err
49813   rm -f conftest.er1
49814   cat conftest.err >&5
49815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49816   (exit $ac_status); } &&
49817          { ac_try='test -z "$ac_c_werror_flag"
49818                          || test ! -s conftest.err'
49819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49820   (eval $ac_try) 2>&5
49821   ac_status=$?
49822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49823   (exit $ac_status); }; } &&
49824          { ac_try='test -s conftest.$ac_objext'
49825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49826   (eval $ac_try) 2>&5
49827   ac_status=$?
49828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49829   (exit $ac_status); }; }; then
49830   ac_cv_func_getpgrp_void=no
49831 else
49832   echo "$as_me: failed program was:" >&5
49833 sed 's/^/| /' conftest.$ac_ext >&5
49834
49835 ac_cv_func_getpgrp_void=yes
49836 fi
49837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49838
49839 fi
49840 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
49841 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
49842 if test $ac_cv_func_getpgrp_void = yes; then
49843
49844 cat >>confdefs.h <<\_ACEOF
49845 #define GETPGRP_VOID 1
49846 _ACEOF
49847
49848 fi
49849
49850
49851 ice_have_getsockname=no
49852
49853 for ac_func in getsockname
49854 do
49855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49856 echo "$as_me:$LINENO: checking for $ac_func" >&5
49857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49858 if eval "test \"\${$as_ac_var+set}\" = set"; then
49859   echo $ECHO_N "(cached) $ECHO_C" >&6
49860 else
49861   cat >conftest.$ac_ext <<_ACEOF
49862 /* confdefs.h.  */
49863 _ACEOF
49864 cat confdefs.h >>conftest.$ac_ext
49865 cat >>conftest.$ac_ext <<_ACEOF
49866 /* end confdefs.h.  */
49867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49869 #define $ac_func innocuous_$ac_func
49870
49871 /* System header to define __stub macros and hopefully few prototypes,
49872     which can conflict with char $ac_func (); below.
49873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49874     <limits.h> exists even on freestanding compilers.  */
49875
49876 #ifdef __STDC__
49877 # include <limits.h>
49878 #else
49879 # include <assert.h>
49880 #endif
49881
49882 #undef $ac_func
49883
49884 /* Override any gcc2 internal prototype to avoid an error.  */
49885 #ifdef __cplusplus
49886 extern "C"
49887 {
49888 #endif
49889 /* We use char because int might match the return type of a gcc2
49890    builtin and then its argument prototype would still apply.  */
49891 char $ac_func ();
49892 /* The GNU C library defines this for functions which it implements
49893     to always fail with ENOSYS.  Some functions are actually named
49894     something starting with __ and the normal name is an alias.  */
49895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49896 choke me
49897 #else
49898 char (*f) () = $ac_func;
49899 #endif
49900 #ifdef __cplusplus
49901 }
49902 #endif
49903
49904 int
49905 main ()
49906 {
49907 return f != $ac_func;
49908   ;
49909   return 0;
49910 }
49911 _ACEOF
49912 rm -f conftest.$ac_objext conftest$ac_exeext
49913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49914   (eval $ac_link) 2>conftest.er1
49915   ac_status=$?
49916   grep -v '^ *+' conftest.er1 >conftest.err
49917   rm -f conftest.er1
49918   cat conftest.err >&5
49919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49920   (exit $ac_status); } &&
49921          { ac_try='test -z "$ac_c_werror_flag"
49922                          || test ! -s conftest.err'
49923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49924   (eval $ac_try) 2>&5
49925   ac_status=$?
49926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49927   (exit $ac_status); }; } &&
49928          { ac_try='test -s conftest$ac_exeext'
49929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49930   (eval $ac_try) 2>&5
49931   ac_status=$?
49932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49933   (exit $ac_status); }; }; then
49934   eval "$as_ac_var=yes"
49935 else
49936   echo "$as_me: failed program was:" >&5
49937 sed 's/^/| /' conftest.$ac_ext >&5
49938
49939 eval "$as_ac_var=no"
49940 fi
49941 rm -f conftest.err conftest.$ac_objext \
49942       conftest$ac_exeext conftest.$ac_ext
49943 fi
49944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49946 if test `eval echo '${'$as_ac_var'}'` = yes; then
49947   cat >>confdefs.h <<_ACEOF
49948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49949 _ACEOF
49950  ice_have_getsockname=yes
49951 fi
49952 done
49953
49954 if test "${ice_have_getsockname}" = yes; then
49955 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
49956 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
49957 if test "${ice_cv_have_getsockname_decl+set}" = set; then
49958   echo $ECHO_N "(cached) $ECHO_C" >&6
49959 else
49960
49961 ice_cv_have_getsockname_decl=no
49962 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49963 ice_re_word='(^|[^a-zA-Z0-9_])'
49964 for header in sys/types.h sys/socket.h; do
49965 # Check for ordinary declaration
49966 cat >conftest.$ac_ext <<_ACEOF
49967 /* confdefs.h.  */
49968 _ACEOF
49969 cat confdefs.h >>conftest.$ac_ext
49970 cat >>conftest.$ac_ext <<_ACEOF
49971 /* end confdefs.h.  */
49972 #include <$header>
49973
49974 _ACEOF
49975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49976   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
49977   ice_cv_have_getsockname_decl=yes
49978 fi
49979 rm -f conftest*
49980
49981 if test "$ice_cv_have_getsockname_decl" = yes; then
49982         break
49983 fi
49984 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49985 cat >conftest.$ac_ext <<_ACEOF
49986 /* confdefs.h.  */
49987 _ACEOF
49988 cat confdefs.h >>conftest.$ac_ext
49989 cat >>conftest.$ac_ext <<_ACEOF
49990 /* end confdefs.h.  */
49991 #include <$header>
49992
49993 _ACEOF
49994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49995   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49996   ice_cv_have_getsockname_decl=yes
49997 fi
49998 rm -f conftest*
49999
50000 if test "$ice_cv_have_getsockname_decl" = yes; then
50001         break
50002 fi
50003 done
50004
50005 fi
50006
50007 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
50008 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
50009 if test "$ice_cv_have_getsockname_decl" = yes; then
50010
50011 cat >>confdefs.h <<_ACEOF
50012 #define HAVE_GETSOCKNAME_DECL 1
50013 _ACEOF
50014
50015 fi
50016 fi
50017
50018
50019 ice_have_getsockopt=no
50020
50021 for ac_func in getsockopt
50022 do
50023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50024 echo "$as_me:$LINENO: checking for $ac_func" >&5
50025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50026 if eval "test \"\${$as_ac_var+set}\" = set"; then
50027   echo $ECHO_N "(cached) $ECHO_C" >&6
50028 else
50029   cat >conftest.$ac_ext <<_ACEOF
50030 /* confdefs.h.  */
50031 _ACEOF
50032 cat confdefs.h >>conftest.$ac_ext
50033 cat >>conftest.$ac_ext <<_ACEOF
50034 /* end confdefs.h.  */
50035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50037 #define $ac_func innocuous_$ac_func
50038
50039 /* System header to define __stub macros and hopefully few prototypes,
50040     which can conflict with char $ac_func (); below.
50041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50042     <limits.h> exists even on freestanding compilers.  */
50043
50044 #ifdef __STDC__
50045 # include <limits.h>
50046 #else
50047 # include <assert.h>
50048 #endif
50049
50050 #undef $ac_func
50051
50052 /* Override any gcc2 internal prototype to avoid an error.  */
50053 #ifdef __cplusplus
50054 extern "C"
50055 {
50056 #endif
50057 /* We use char because int might match the return type of a gcc2
50058    builtin and then its argument prototype would still apply.  */
50059 char $ac_func ();
50060 /* The GNU C library defines this for functions which it implements
50061     to always fail with ENOSYS.  Some functions are actually named
50062     something starting with __ and the normal name is an alias.  */
50063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50064 choke me
50065 #else
50066 char (*f) () = $ac_func;
50067 #endif
50068 #ifdef __cplusplus
50069 }
50070 #endif
50071
50072 int
50073 main ()
50074 {
50075 return f != $ac_func;
50076   ;
50077   return 0;
50078 }
50079 _ACEOF
50080 rm -f conftest.$ac_objext conftest$ac_exeext
50081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50082   (eval $ac_link) 2>conftest.er1
50083   ac_status=$?
50084   grep -v '^ *+' conftest.er1 >conftest.err
50085   rm -f conftest.er1
50086   cat conftest.err >&5
50087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088   (exit $ac_status); } &&
50089          { ac_try='test -z "$ac_c_werror_flag"
50090                          || test ! -s conftest.err'
50091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50092   (eval $ac_try) 2>&5
50093   ac_status=$?
50094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50095   (exit $ac_status); }; } &&
50096          { ac_try='test -s conftest$ac_exeext'
50097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50098   (eval $ac_try) 2>&5
50099   ac_status=$?
50100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50101   (exit $ac_status); }; }; then
50102   eval "$as_ac_var=yes"
50103 else
50104   echo "$as_me: failed program was:" >&5
50105 sed 's/^/| /' conftest.$ac_ext >&5
50106
50107 eval "$as_ac_var=no"
50108 fi
50109 rm -f conftest.err conftest.$ac_objext \
50110       conftest$ac_exeext conftest.$ac_ext
50111 fi
50112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50114 if test `eval echo '${'$as_ac_var'}'` = yes; then
50115   cat >>confdefs.h <<_ACEOF
50116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50117 _ACEOF
50118  ice_have_getsockopt=yes
50119 fi
50120 done
50121
50122 if test "${ice_have_getsockopt}" = yes; then
50123 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
50124 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50125 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
50126   echo $ECHO_N "(cached) $ECHO_C" >&6
50127 else
50128
50129 ice_cv_have_getsockopt_decl=no
50130 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50131 ice_re_word='(^|[^a-zA-Z0-9_])'
50132 for header in sys/types.h sys/socket.h; do
50133 # Check for ordinary declaration
50134 cat >conftest.$ac_ext <<_ACEOF
50135 /* confdefs.h.  */
50136 _ACEOF
50137 cat confdefs.h >>conftest.$ac_ext
50138 cat >>conftest.$ac_ext <<_ACEOF
50139 /* end confdefs.h.  */
50140 #include <$header>
50141
50142 _ACEOF
50143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50144   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
50145   ice_cv_have_getsockopt_decl=yes
50146 fi
50147 rm -f conftest*
50148
50149 if test "$ice_cv_have_getsockopt_decl" = yes; then
50150         break
50151 fi
50152 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50153 cat >conftest.$ac_ext <<_ACEOF
50154 /* confdefs.h.  */
50155 _ACEOF
50156 cat confdefs.h >>conftest.$ac_ext
50157 cat >>conftest.$ac_ext <<_ACEOF
50158 /* end confdefs.h.  */
50159 #include <$header>
50160
50161 _ACEOF
50162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50163   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50164   ice_cv_have_getsockopt_decl=yes
50165 fi
50166 rm -f conftest*
50167
50168 if test "$ice_cv_have_getsockopt_decl" = yes; then
50169         break
50170 fi
50171 done
50172
50173 fi
50174
50175 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
50176 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
50177 if test "$ice_cv_have_getsockopt_decl" = yes; then
50178
50179 cat >>confdefs.h <<_ACEOF
50180 #define HAVE_GETSOCKOPT_DECL 1
50181 _ACEOF
50182
50183 fi
50184 fi
50185
50186
50187 ice_have_gettimeofday=no
50188
50189 for ac_func in gettimeofday
50190 do
50191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50192 echo "$as_me:$LINENO: checking for $ac_func" >&5
50193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50194 if eval "test \"\${$as_ac_var+set}\" = set"; then
50195   echo $ECHO_N "(cached) $ECHO_C" >&6
50196 else
50197   cat >conftest.$ac_ext <<_ACEOF
50198 /* confdefs.h.  */
50199 _ACEOF
50200 cat confdefs.h >>conftest.$ac_ext
50201 cat >>conftest.$ac_ext <<_ACEOF
50202 /* end confdefs.h.  */
50203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50205 #define $ac_func innocuous_$ac_func
50206
50207 /* System header to define __stub macros and hopefully few prototypes,
50208     which can conflict with char $ac_func (); below.
50209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50210     <limits.h> exists even on freestanding compilers.  */
50211
50212 #ifdef __STDC__
50213 # include <limits.h>
50214 #else
50215 # include <assert.h>
50216 #endif
50217
50218 #undef $ac_func
50219
50220 /* Override any gcc2 internal prototype to avoid an error.  */
50221 #ifdef __cplusplus
50222 extern "C"
50223 {
50224 #endif
50225 /* We use char because int might match the return type of a gcc2
50226    builtin and then its argument prototype would still apply.  */
50227 char $ac_func ();
50228 /* The GNU C library defines this for functions which it implements
50229     to always fail with ENOSYS.  Some functions are actually named
50230     something starting with __ and the normal name is an alias.  */
50231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50232 choke me
50233 #else
50234 char (*f) () = $ac_func;
50235 #endif
50236 #ifdef __cplusplus
50237 }
50238 #endif
50239
50240 int
50241 main ()
50242 {
50243 return f != $ac_func;
50244   ;
50245   return 0;
50246 }
50247 _ACEOF
50248 rm -f conftest.$ac_objext conftest$ac_exeext
50249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50250   (eval $ac_link) 2>conftest.er1
50251   ac_status=$?
50252   grep -v '^ *+' conftest.er1 >conftest.err
50253   rm -f conftest.er1
50254   cat conftest.err >&5
50255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50256   (exit $ac_status); } &&
50257          { ac_try='test -z "$ac_c_werror_flag"
50258                          || test ! -s conftest.err'
50259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50260   (eval $ac_try) 2>&5
50261   ac_status=$?
50262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50263   (exit $ac_status); }; } &&
50264          { ac_try='test -s conftest$ac_exeext'
50265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50266   (eval $ac_try) 2>&5
50267   ac_status=$?
50268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50269   (exit $ac_status); }; }; then
50270   eval "$as_ac_var=yes"
50271 else
50272   echo "$as_me: failed program was:" >&5
50273 sed 's/^/| /' conftest.$ac_ext >&5
50274
50275 eval "$as_ac_var=no"
50276 fi
50277 rm -f conftest.err conftest.$ac_objext \
50278       conftest$ac_exeext conftest.$ac_ext
50279 fi
50280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50282 if test `eval echo '${'$as_ac_var'}'` = yes; then
50283   cat >>confdefs.h <<_ACEOF
50284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50285 _ACEOF
50286  ice_have_gettimeofday=yes
50287 fi
50288 done
50289
50290 if test "${ice_have_gettimeofday}" = yes; then
50291 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
50292 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
50293 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
50294   echo $ECHO_N "(cached) $ECHO_C" >&6
50295 else
50296
50297 ice_cv_have_gettimeofday_decl=no
50298 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50299 ice_re_word='(^|[^a-zA-Z0-9_])'
50300 for header in time.h sys/time.h; do
50301 # Check for ordinary declaration
50302 cat >conftest.$ac_ext <<_ACEOF
50303 /* confdefs.h.  */
50304 _ACEOF
50305 cat confdefs.h >>conftest.$ac_ext
50306 cat >>conftest.$ac_ext <<_ACEOF
50307 /* end confdefs.h.  */
50308 #include <$header>
50309
50310 _ACEOF
50311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50312   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
50313   ice_cv_have_gettimeofday_decl=yes
50314 fi
50315 rm -f conftest*
50316
50317 if test "$ice_cv_have_gettimeofday_decl" = yes; then
50318         break
50319 fi
50320 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50321 cat >conftest.$ac_ext <<_ACEOF
50322 /* confdefs.h.  */
50323 _ACEOF
50324 cat confdefs.h >>conftest.$ac_ext
50325 cat >>conftest.$ac_ext <<_ACEOF
50326 /* end confdefs.h.  */
50327 #include <$header>
50328
50329 _ACEOF
50330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50331   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50332   ice_cv_have_gettimeofday_decl=yes
50333 fi
50334 rm -f conftest*
50335
50336 if test "$ice_cv_have_gettimeofday_decl" = yes; then
50337         break
50338 fi
50339 done
50340
50341 fi
50342
50343 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
50344 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
50345 if test "$ice_cv_have_gettimeofday_decl" = yes; then
50346
50347 cat >>confdefs.h <<_ACEOF
50348 #define HAVE_GETTIMEOFDAY_DECL 1
50349 _ACEOF
50350
50351 fi
50352 fi
50353
50354
50355
50356         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
50357 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
50358 if test "${amanda_cv_gettimeofday_args+set}" = set; then
50359   echo $ECHO_N "(cached) $ECHO_C" >&6
50360 else
50361
50362                 cat >conftest.$ac_ext <<_ACEOF
50363 /* confdefs.h.  */
50364 _ACEOF
50365 cat confdefs.h >>conftest.$ac_ext
50366 cat >>conftest.$ac_ext <<_ACEOF
50367 /* end confdefs.h.  */
50368
50369 #ifdef TIME_WITH_SYS_TIME
50370 #  include <sys/time.h>
50371 #  include <time.h>
50372 #else
50373 #  ifdef HAVE_SYS_TIME_H
50374 #    include <sys/time.h>
50375 #  else
50376 #    include <time.h>
50377 #  endif
50378 #endif
50379
50380 int
50381 main ()
50382 {
50383
50384                         struct timeval val;
50385                         struct timezone zone;
50386                         gettimeofday(&val, &zone);
50387
50388   ;
50389   return 0;
50390 }
50391 _ACEOF
50392 rm -f conftest.$ac_objext
50393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50394   (eval $ac_compile) 2>conftest.er1
50395   ac_status=$?
50396   grep -v '^ *+' conftest.er1 >conftest.err
50397   rm -f conftest.er1
50398   cat conftest.err >&5
50399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50400   (exit $ac_status); } &&
50401          { ac_try='test -z "$ac_c_werror_flag"
50402                          || test ! -s conftest.err'
50403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50404   (eval $ac_try) 2>&5
50405   ac_status=$?
50406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50407   (exit $ac_status); }; } &&
50408          { ac_try='test -s conftest.$ac_objext'
50409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50410   (eval $ac_try) 2>&5
50411   ac_status=$?
50412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50413   (exit $ac_status); }; }; then
50414   amanda_cv_gettimeofday_args=2
50415 else
50416   echo "$as_me: failed program was:" >&5
50417 sed 's/^/| /' conftest.$ac_ext >&5
50418
50419 amanda_cv_gettimeofday_args=1
50420
50421 fi
50422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50423
50424
50425 fi
50426 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
50427 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
50428         if test "$amanda_cv_gettimeofday_args" = 2; then
50429
50430 cat >>confdefs.h <<\_ACEOF
50431 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
50432 _ACEOF
50433
50434         fi
50435
50436
50437
50438
50439
50440 for ac_func in getvfsent initgroups isascii
50441 do
50442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50443 echo "$as_me:$LINENO: checking for $ac_func" >&5
50444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50445 if eval "test \"\${$as_ac_var+set}\" = set"; then
50446   echo $ECHO_N "(cached) $ECHO_C" >&6
50447 else
50448   cat >conftest.$ac_ext <<_ACEOF
50449 /* confdefs.h.  */
50450 _ACEOF
50451 cat confdefs.h >>conftest.$ac_ext
50452 cat >>conftest.$ac_ext <<_ACEOF
50453 /* end confdefs.h.  */
50454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50456 #define $ac_func innocuous_$ac_func
50457
50458 /* System header to define __stub macros and hopefully few prototypes,
50459     which can conflict with char $ac_func (); below.
50460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50461     <limits.h> exists even on freestanding compilers.  */
50462
50463 #ifdef __STDC__
50464 # include <limits.h>
50465 #else
50466 # include <assert.h>
50467 #endif
50468
50469 #undef $ac_func
50470
50471 /* Override any gcc2 internal prototype to avoid an error.  */
50472 #ifdef __cplusplus
50473 extern "C"
50474 {
50475 #endif
50476 /* We use char because int might match the return type of a gcc2
50477    builtin and then its argument prototype would still apply.  */
50478 char $ac_func ();
50479 /* The GNU C library defines this for functions which it implements
50480     to always fail with ENOSYS.  Some functions are actually named
50481     something starting with __ and the normal name is an alias.  */
50482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50483 choke me
50484 #else
50485 char (*f) () = $ac_func;
50486 #endif
50487 #ifdef __cplusplus
50488 }
50489 #endif
50490
50491 int
50492 main ()
50493 {
50494 return f != $ac_func;
50495   ;
50496   return 0;
50497 }
50498 _ACEOF
50499 rm -f conftest.$ac_objext conftest$ac_exeext
50500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50501   (eval $ac_link) 2>conftest.er1
50502   ac_status=$?
50503   grep -v '^ *+' conftest.er1 >conftest.err
50504   rm -f conftest.er1
50505   cat conftest.err >&5
50506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50507   (exit $ac_status); } &&
50508          { ac_try='test -z "$ac_c_werror_flag"
50509                          || test ! -s conftest.err'
50510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50511   (eval $ac_try) 2>&5
50512   ac_status=$?
50513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50514   (exit $ac_status); }; } &&
50515          { ac_try='test -s conftest$ac_exeext'
50516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50517   (eval $ac_try) 2>&5
50518   ac_status=$?
50519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50520   (exit $ac_status); }; }; then
50521   eval "$as_ac_var=yes"
50522 else
50523   echo "$as_me: failed program was:" >&5
50524 sed 's/^/| /' conftest.$ac_ext >&5
50525
50526 eval "$as_ac_var=no"
50527 fi
50528 rm -f conftest.err conftest.$ac_objext \
50529       conftest$ac_exeext conftest.$ac_ext
50530 fi
50531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50533 if test `eval echo '${'$as_ac_var'}'` = yes; then
50534   cat >>confdefs.h <<_ACEOF
50535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50536 _ACEOF
50537
50538 fi
50539 done
50540
50541
50542 ice_have_initgroups=no
50543
50544 for ac_func in initgroups
50545 do
50546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50547 echo "$as_me:$LINENO: checking for $ac_func" >&5
50548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50549 if eval "test \"\${$as_ac_var+set}\" = set"; then
50550   echo $ECHO_N "(cached) $ECHO_C" >&6
50551 else
50552   cat >conftest.$ac_ext <<_ACEOF
50553 /* confdefs.h.  */
50554 _ACEOF
50555 cat confdefs.h >>conftest.$ac_ext
50556 cat >>conftest.$ac_ext <<_ACEOF
50557 /* end confdefs.h.  */
50558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50560 #define $ac_func innocuous_$ac_func
50561
50562 /* System header to define __stub macros and hopefully few prototypes,
50563     which can conflict with char $ac_func (); below.
50564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50565     <limits.h> exists even on freestanding compilers.  */
50566
50567 #ifdef __STDC__
50568 # include <limits.h>
50569 #else
50570 # include <assert.h>
50571 #endif
50572
50573 #undef $ac_func
50574
50575 /* Override any gcc2 internal prototype to avoid an error.  */
50576 #ifdef __cplusplus
50577 extern "C"
50578 {
50579 #endif
50580 /* We use char because int might match the return type of a gcc2
50581    builtin and then its argument prototype would still apply.  */
50582 char $ac_func ();
50583 /* The GNU C library defines this for functions which it implements
50584     to always fail with ENOSYS.  Some functions are actually named
50585     something starting with __ and the normal name is an alias.  */
50586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50587 choke me
50588 #else
50589 char (*f) () = $ac_func;
50590 #endif
50591 #ifdef __cplusplus
50592 }
50593 #endif
50594
50595 int
50596 main ()
50597 {
50598 return f != $ac_func;
50599   ;
50600   return 0;
50601 }
50602 _ACEOF
50603 rm -f conftest.$ac_objext conftest$ac_exeext
50604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50605   (eval $ac_link) 2>conftest.er1
50606   ac_status=$?
50607   grep -v '^ *+' conftest.er1 >conftest.err
50608   rm -f conftest.er1
50609   cat conftest.err >&5
50610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50611   (exit $ac_status); } &&
50612          { ac_try='test -z "$ac_c_werror_flag"
50613                          || test ! -s conftest.err'
50614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50615   (eval $ac_try) 2>&5
50616   ac_status=$?
50617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50618   (exit $ac_status); }; } &&
50619          { ac_try='test -s conftest$ac_exeext'
50620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50621   (eval $ac_try) 2>&5
50622   ac_status=$?
50623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50624   (exit $ac_status); }; }; then
50625   eval "$as_ac_var=yes"
50626 else
50627   echo "$as_me: failed program was:" >&5
50628 sed 's/^/| /' conftest.$ac_ext >&5
50629
50630 eval "$as_ac_var=no"
50631 fi
50632 rm -f conftest.err conftest.$ac_objext \
50633       conftest$ac_exeext conftest.$ac_ext
50634 fi
50635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50637 if test `eval echo '${'$as_ac_var'}'` = yes; then
50638   cat >>confdefs.h <<_ACEOF
50639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50640 _ACEOF
50641  ice_have_initgroups=yes
50642 fi
50643 done
50644
50645 if test "${ice_have_initgroups}" = yes; then
50646 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
50647 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
50648 if test "${ice_cv_have_initgroups_decl+set}" = set; then
50649   echo $ECHO_N "(cached) $ECHO_C" >&6
50650 else
50651
50652 ice_cv_have_initgroups_decl=no
50653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50654 ice_re_word='(^|[^a-zA-Z0-9_])'
50655 for header in grp.h sys/types.h unistd.h libc.h; do
50656 # Check for ordinary declaration
50657 cat >conftest.$ac_ext <<_ACEOF
50658 /* confdefs.h.  */
50659 _ACEOF
50660 cat confdefs.h >>conftest.$ac_ext
50661 cat >>conftest.$ac_ext <<_ACEOF
50662 /* end confdefs.h.  */
50663 #include <$header>
50664
50665 _ACEOF
50666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50667   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
50668   ice_cv_have_initgroups_decl=yes
50669 fi
50670 rm -f conftest*
50671
50672 if test "$ice_cv_have_initgroups_decl" = yes; then
50673         break
50674 fi
50675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50676 cat >conftest.$ac_ext <<_ACEOF
50677 /* confdefs.h.  */
50678 _ACEOF
50679 cat confdefs.h >>conftest.$ac_ext
50680 cat >>conftest.$ac_ext <<_ACEOF
50681 /* end confdefs.h.  */
50682 #include <$header>
50683
50684 _ACEOF
50685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50686   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50687   ice_cv_have_initgroups_decl=yes
50688 fi
50689 rm -f conftest*
50690
50691 if test "$ice_cv_have_initgroups_decl" = yes; then
50692         break
50693 fi
50694 done
50695
50696 fi
50697
50698 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
50699 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
50700 if test "$ice_cv_have_initgroups_decl" = yes; then
50701
50702 cat >>confdefs.h <<_ACEOF
50703 #define HAVE_INITGROUPS_DECL 1
50704 _ACEOF
50705
50706 fi
50707 fi
50708
50709
50710 ice_have_ioctl=no
50711
50712 for ac_func in ioctl
50713 do
50714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50715 echo "$as_me:$LINENO: checking for $ac_func" >&5
50716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50717 if eval "test \"\${$as_ac_var+set}\" = set"; then
50718   echo $ECHO_N "(cached) $ECHO_C" >&6
50719 else
50720   cat >conftest.$ac_ext <<_ACEOF
50721 /* confdefs.h.  */
50722 _ACEOF
50723 cat confdefs.h >>conftest.$ac_ext
50724 cat >>conftest.$ac_ext <<_ACEOF
50725 /* end confdefs.h.  */
50726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50728 #define $ac_func innocuous_$ac_func
50729
50730 /* System header to define __stub macros and hopefully few prototypes,
50731     which can conflict with char $ac_func (); below.
50732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50733     <limits.h> exists even on freestanding compilers.  */
50734
50735 #ifdef __STDC__
50736 # include <limits.h>
50737 #else
50738 # include <assert.h>
50739 #endif
50740
50741 #undef $ac_func
50742
50743 /* Override any gcc2 internal prototype to avoid an error.  */
50744 #ifdef __cplusplus
50745 extern "C"
50746 {
50747 #endif
50748 /* We use char because int might match the return type of a gcc2
50749    builtin and then its argument prototype would still apply.  */
50750 char $ac_func ();
50751 /* The GNU C library defines this for functions which it implements
50752     to always fail with ENOSYS.  Some functions are actually named
50753     something starting with __ and the normal name is an alias.  */
50754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50755 choke me
50756 #else
50757 char (*f) () = $ac_func;
50758 #endif
50759 #ifdef __cplusplus
50760 }
50761 #endif
50762
50763 int
50764 main ()
50765 {
50766 return f != $ac_func;
50767   ;
50768   return 0;
50769 }
50770 _ACEOF
50771 rm -f conftest.$ac_objext conftest$ac_exeext
50772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50773   (eval $ac_link) 2>conftest.er1
50774   ac_status=$?
50775   grep -v '^ *+' conftest.er1 >conftest.err
50776   rm -f conftest.er1
50777   cat conftest.err >&5
50778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50779   (exit $ac_status); } &&
50780          { ac_try='test -z "$ac_c_werror_flag"
50781                          || test ! -s conftest.err'
50782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50783   (eval $ac_try) 2>&5
50784   ac_status=$?
50785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50786   (exit $ac_status); }; } &&
50787          { ac_try='test -s conftest$ac_exeext'
50788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50789   (eval $ac_try) 2>&5
50790   ac_status=$?
50791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50792   (exit $ac_status); }; }; then
50793   eval "$as_ac_var=yes"
50794 else
50795   echo "$as_me: failed program was:" >&5
50796 sed 's/^/| /' conftest.$ac_ext >&5
50797
50798 eval "$as_ac_var=no"
50799 fi
50800 rm -f conftest.err conftest.$ac_objext \
50801       conftest$ac_exeext conftest.$ac_ext
50802 fi
50803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50805 if test `eval echo '${'$as_ac_var'}'` = yes; then
50806   cat >>confdefs.h <<_ACEOF
50807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50808 _ACEOF
50809  ice_have_ioctl=yes
50810 fi
50811 done
50812
50813 if test "${ice_have_ioctl}" = yes; then
50814 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
50815 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
50816 if test "${ice_cv_have_ioctl_decl+set}" = set; then
50817   echo $ECHO_N "(cached) $ECHO_C" >&6
50818 else
50819
50820 ice_cv_have_ioctl_decl=no
50821 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50822 ice_re_word='(^|[^a-zA-Z0-9_])'
50823 for header in sys/ioctl.h unistd.h libc.h; do
50824 # Check for ordinary declaration
50825 cat >conftest.$ac_ext <<_ACEOF
50826 /* confdefs.h.  */
50827 _ACEOF
50828 cat confdefs.h >>conftest.$ac_ext
50829 cat >>conftest.$ac_ext <<_ACEOF
50830 /* end confdefs.h.  */
50831 #include <$header>
50832
50833 _ACEOF
50834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50835   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
50836   ice_cv_have_ioctl_decl=yes
50837 fi
50838 rm -f conftest*
50839
50840 if test "$ice_cv_have_ioctl_decl" = yes; then
50841         break
50842 fi
50843 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50844 cat >conftest.$ac_ext <<_ACEOF
50845 /* confdefs.h.  */
50846 _ACEOF
50847 cat confdefs.h >>conftest.$ac_ext
50848 cat >>conftest.$ac_ext <<_ACEOF
50849 /* end confdefs.h.  */
50850 #include <$header>
50851
50852 _ACEOF
50853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50854   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50855   ice_cv_have_ioctl_decl=yes
50856 fi
50857 rm -f conftest*
50858
50859 if test "$ice_cv_have_ioctl_decl" = yes; then
50860         break
50861 fi
50862 done
50863
50864 fi
50865
50866 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
50867 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
50868 if test "$ice_cv_have_ioctl_decl" = yes; then
50869
50870 cat >>confdefs.h <<_ACEOF
50871 #define HAVE_IOCTL_DECL 1
50872 _ACEOF
50873
50874 fi
50875 fi
50876
50877
50878 ice_have_isnormal=no
50879
50880 for ac_func in isnormal
50881 do
50882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50883 echo "$as_me:$LINENO: checking for $ac_func" >&5
50884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50885 if eval "test \"\${$as_ac_var+set}\" = set"; then
50886   echo $ECHO_N "(cached) $ECHO_C" >&6
50887 else
50888   cat >conftest.$ac_ext <<_ACEOF
50889 /* confdefs.h.  */
50890 _ACEOF
50891 cat confdefs.h >>conftest.$ac_ext
50892 cat >>conftest.$ac_ext <<_ACEOF
50893 /* end confdefs.h.  */
50894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50896 #define $ac_func innocuous_$ac_func
50897
50898 /* System header to define __stub macros and hopefully few prototypes,
50899     which can conflict with char $ac_func (); below.
50900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50901     <limits.h> exists even on freestanding compilers.  */
50902
50903 #ifdef __STDC__
50904 # include <limits.h>
50905 #else
50906 # include <assert.h>
50907 #endif
50908
50909 #undef $ac_func
50910
50911 /* Override any gcc2 internal prototype to avoid an error.  */
50912 #ifdef __cplusplus
50913 extern "C"
50914 {
50915 #endif
50916 /* We use char because int might match the return type of a gcc2
50917    builtin and then its argument prototype would still apply.  */
50918 char $ac_func ();
50919 /* The GNU C library defines this for functions which it implements
50920     to always fail with ENOSYS.  Some functions are actually named
50921     something starting with __ and the normal name is an alias.  */
50922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50923 choke me
50924 #else
50925 char (*f) () = $ac_func;
50926 #endif
50927 #ifdef __cplusplus
50928 }
50929 #endif
50930
50931 int
50932 main ()
50933 {
50934 return f != $ac_func;
50935   ;
50936   return 0;
50937 }
50938 _ACEOF
50939 rm -f conftest.$ac_objext conftest$ac_exeext
50940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50941   (eval $ac_link) 2>conftest.er1
50942   ac_status=$?
50943   grep -v '^ *+' conftest.er1 >conftest.err
50944   rm -f conftest.er1
50945   cat conftest.err >&5
50946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50947   (exit $ac_status); } &&
50948          { ac_try='test -z "$ac_c_werror_flag"
50949                          || test ! -s conftest.err'
50950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50951   (eval $ac_try) 2>&5
50952   ac_status=$?
50953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50954   (exit $ac_status); }; } &&
50955          { ac_try='test -s conftest$ac_exeext'
50956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50957   (eval $ac_try) 2>&5
50958   ac_status=$?
50959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50960   (exit $ac_status); }; }; then
50961   eval "$as_ac_var=yes"
50962 else
50963   echo "$as_me: failed program was:" >&5
50964 sed 's/^/| /' conftest.$ac_ext >&5
50965
50966 eval "$as_ac_var=no"
50967 fi
50968 rm -f conftest.err conftest.$ac_objext \
50969       conftest$ac_exeext conftest.$ac_ext
50970 fi
50971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50973 if test `eval echo '${'$as_ac_var'}'` = yes; then
50974   cat >>confdefs.h <<_ACEOF
50975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50976 _ACEOF
50977  ice_have_isnormal=yes
50978 fi
50979 done
50980
50981 if test "${ice_have_isnormal}" = yes; then
50982 echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
50983 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6
50984 if test "${ice_cv_have_isnormal_decl+set}" = set; then
50985   echo $ECHO_N "(cached) $ECHO_C" >&6
50986 else
50987
50988 ice_cv_have_isnormal_decl=no
50989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50990 ice_re_word='(^|[^a-zA-Z0-9_])'
50991 for header in math.h; do
50992 # Check for ordinary declaration
50993 cat >conftest.$ac_ext <<_ACEOF
50994 /* confdefs.h.  */
50995 _ACEOF
50996 cat confdefs.h >>conftest.$ac_ext
50997 cat >>conftest.$ac_ext <<_ACEOF
50998 /* end confdefs.h.  */
50999 #include <$header>
51000
51001 _ACEOF
51002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51003   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
51004   ice_cv_have_isnormal_decl=yes
51005 fi
51006 rm -f conftest*
51007
51008 if test "$ice_cv_have_isnormal_decl" = yes; then
51009         break
51010 fi
51011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51012 cat >conftest.$ac_ext <<_ACEOF
51013 /* confdefs.h.  */
51014 _ACEOF
51015 cat confdefs.h >>conftest.$ac_ext
51016 cat >>conftest.$ac_ext <<_ACEOF
51017 /* end confdefs.h.  */
51018 #include <$header>
51019
51020 _ACEOF
51021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51022   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51023   ice_cv_have_isnormal_decl=yes
51024 fi
51025 rm -f conftest*
51026
51027 if test "$ice_cv_have_isnormal_decl" = yes; then
51028         break
51029 fi
51030 done
51031
51032 fi
51033
51034 echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
51035 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6
51036 if test "$ice_cv_have_isnormal_decl" = yes; then
51037
51038 cat >>confdefs.h <<_ACEOF
51039 #define HAVE_ISNORMAL_DECL 1
51040 _ACEOF
51041
51042 fi
51043 fi
51044
51045
51046 ice_have_listen=no
51047
51048 for ac_func in listen
51049 do
51050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51051 echo "$as_me:$LINENO: checking for $ac_func" >&5
51052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51053 if eval "test \"\${$as_ac_var+set}\" = set"; then
51054   echo $ECHO_N "(cached) $ECHO_C" >&6
51055 else
51056   cat >conftest.$ac_ext <<_ACEOF
51057 /* confdefs.h.  */
51058 _ACEOF
51059 cat confdefs.h >>conftest.$ac_ext
51060 cat >>conftest.$ac_ext <<_ACEOF
51061 /* end confdefs.h.  */
51062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51064 #define $ac_func innocuous_$ac_func
51065
51066 /* System header to define __stub macros and hopefully few prototypes,
51067     which can conflict with char $ac_func (); below.
51068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51069     <limits.h> exists even on freestanding compilers.  */
51070
51071 #ifdef __STDC__
51072 # include <limits.h>
51073 #else
51074 # include <assert.h>
51075 #endif
51076
51077 #undef $ac_func
51078
51079 /* Override any gcc2 internal prototype to avoid an error.  */
51080 #ifdef __cplusplus
51081 extern "C"
51082 {
51083 #endif
51084 /* We use char because int might match the return type of a gcc2
51085    builtin and then its argument prototype would still apply.  */
51086 char $ac_func ();
51087 /* The GNU C library defines this for functions which it implements
51088     to always fail with ENOSYS.  Some functions are actually named
51089     something starting with __ and the normal name is an alias.  */
51090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51091 choke me
51092 #else
51093 char (*f) () = $ac_func;
51094 #endif
51095 #ifdef __cplusplus
51096 }
51097 #endif
51098
51099 int
51100 main ()
51101 {
51102 return f != $ac_func;
51103   ;
51104   return 0;
51105 }
51106 _ACEOF
51107 rm -f conftest.$ac_objext conftest$ac_exeext
51108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51109   (eval $ac_link) 2>conftest.er1
51110   ac_status=$?
51111   grep -v '^ *+' conftest.er1 >conftest.err
51112   rm -f conftest.er1
51113   cat conftest.err >&5
51114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51115   (exit $ac_status); } &&
51116          { ac_try='test -z "$ac_c_werror_flag"
51117                          || test ! -s conftest.err'
51118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51119   (eval $ac_try) 2>&5
51120   ac_status=$?
51121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51122   (exit $ac_status); }; } &&
51123          { ac_try='test -s conftest$ac_exeext'
51124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51125   (eval $ac_try) 2>&5
51126   ac_status=$?
51127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51128   (exit $ac_status); }; }; then
51129   eval "$as_ac_var=yes"
51130 else
51131   echo "$as_me: failed program was:" >&5
51132 sed 's/^/| /' conftest.$ac_ext >&5
51133
51134 eval "$as_ac_var=no"
51135 fi
51136 rm -f conftest.err conftest.$ac_objext \
51137       conftest$ac_exeext conftest.$ac_ext
51138 fi
51139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51141 if test `eval echo '${'$as_ac_var'}'` = yes; then
51142   cat >>confdefs.h <<_ACEOF
51143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51144 _ACEOF
51145  ice_have_listen=yes
51146 fi
51147 done
51148
51149 if test "${ice_have_listen}" = yes; then
51150 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
51151 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
51152 if test "${ice_cv_have_listen_decl+set}" = set; then
51153   echo $ECHO_N "(cached) $ECHO_C" >&6
51154 else
51155
51156 ice_cv_have_listen_decl=no
51157 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51158 ice_re_word='(^|[^a-zA-Z0-9_])'
51159 for header in sys/types.h sys/socket.h; do
51160 # Check for ordinary declaration
51161 cat >conftest.$ac_ext <<_ACEOF
51162 /* confdefs.h.  */
51163 _ACEOF
51164 cat confdefs.h >>conftest.$ac_ext
51165 cat >>conftest.$ac_ext <<_ACEOF
51166 /* end confdefs.h.  */
51167 #include <$header>
51168
51169 _ACEOF
51170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51171   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
51172   ice_cv_have_listen_decl=yes
51173 fi
51174 rm -f conftest*
51175
51176 if test "$ice_cv_have_listen_decl" = yes; then
51177         break
51178 fi
51179 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51180 cat >conftest.$ac_ext <<_ACEOF
51181 /* confdefs.h.  */
51182 _ACEOF
51183 cat confdefs.h >>conftest.$ac_ext
51184 cat >>conftest.$ac_ext <<_ACEOF
51185 /* end confdefs.h.  */
51186 #include <$header>
51187
51188 _ACEOF
51189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51190   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51191   ice_cv_have_listen_decl=yes
51192 fi
51193 rm -f conftest*
51194
51195 if test "$ice_cv_have_listen_decl" = yes; then
51196         break
51197 fi
51198 done
51199
51200 fi
51201
51202 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
51203 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
51204 if test "$ice_cv_have_listen_decl" = yes; then
51205
51206 cat >>confdefs.h <<_ACEOF
51207 #define HAVE_LISTEN_DECL 1
51208 _ACEOF
51209
51210 fi
51211 fi
51212
51213
51214 ice_have_lstat=no
51215
51216 for ac_func in lstat
51217 do
51218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51219 echo "$as_me:$LINENO: checking for $ac_func" >&5
51220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51221 if eval "test \"\${$as_ac_var+set}\" = set"; then
51222   echo $ECHO_N "(cached) $ECHO_C" >&6
51223 else
51224   cat >conftest.$ac_ext <<_ACEOF
51225 /* confdefs.h.  */
51226 _ACEOF
51227 cat confdefs.h >>conftest.$ac_ext
51228 cat >>conftest.$ac_ext <<_ACEOF
51229 /* end confdefs.h.  */
51230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51232 #define $ac_func innocuous_$ac_func
51233
51234 /* System header to define __stub macros and hopefully few prototypes,
51235     which can conflict with char $ac_func (); below.
51236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51237     <limits.h> exists even on freestanding compilers.  */
51238
51239 #ifdef __STDC__
51240 # include <limits.h>
51241 #else
51242 # include <assert.h>
51243 #endif
51244
51245 #undef $ac_func
51246
51247 /* Override any gcc2 internal prototype to avoid an error.  */
51248 #ifdef __cplusplus
51249 extern "C"
51250 {
51251 #endif
51252 /* We use char because int might match the return type of a gcc2
51253    builtin and then its argument prototype would still apply.  */
51254 char $ac_func ();
51255 /* The GNU C library defines this for functions which it implements
51256     to always fail with ENOSYS.  Some functions are actually named
51257     something starting with __ and the normal name is an alias.  */
51258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51259 choke me
51260 #else
51261 char (*f) () = $ac_func;
51262 #endif
51263 #ifdef __cplusplus
51264 }
51265 #endif
51266
51267 int
51268 main ()
51269 {
51270 return f != $ac_func;
51271   ;
51272   return 0;
51273 }
51274 _ACEOF
51275 rm -f conftest.$ac_objext conftest$ac_exeext
51276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51277   (eval $ac_link) 2>conftest.er1
51278   ac_status=$?
51279   grep -v '^ *+' conftest.er1 >conftest.err
51280   rm -f conftest.er1
51281   cat conftest.err >&5
51282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51283   (exit $ac_status); } &&
51284          { ac_try='test -z "$ac_c_werror_flag"
51285                          || test ! -s conftest.err'
51286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51287   (eval $ac_try) 2>&5
51288   ac_status=$?
51289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51290   (exit $ac_status); }; } &&
51291          { ac_try='test -s conftest$ac_exeext'
51292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51293   (eval $ac_try) 2>&5
51294   ac_status=$?
51295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51296   (exit $ac_status); }; }; then
51297   eval "$as_ac_var=yes"
51298 else
51299   echo "$as_me: failed program was:" >&5
51300 sed 's/^/| /' conftest.$ac_ext >&5
51301
51302 eval "$as_ac_var=no"
51303 fi
51304 rm -f conftest.err conftest.$ac_objext \
51305       conftest$ac_exeext conftest.$ac_ext
51306 fi
51307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51309 if test `eval echo '${'$as_ac_var'}'` = yes; then
51310   cat >>confdefs.h <<_ACEOF
51311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51312 _ACEOF
51313  ice_have_lstat=yes
51314 fi
51315 done
51316
51317 if test "${ice_have_lstat}" = yes; then
51318 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
51319 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
51320 if test "${ice_cv_have_lstat_decl+set}" = set; then
51321   echo $ECHO_N "(cached) $ECHO_C" >&6
51322 else
51323
51324 ice_cv_have_lstat_decl=no
51325 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51326 ice_re_word='(^|[^a-zA-Z0-9_])'
51327 for header in sys/types.h sys/stat.h; do
51328 # Check for ordinary declaration
51329 cat >conftest.$ac_ext <<_ACEOF
51330 /* confdefs.h.  */
51331 _ACEOF
51332 cat confdefs.h >>conftest.$ac_ext
51333 cat >>conftest.$ac_ext <<_ACEOF
51334 /* end confdefs.h.  */
51335 #include <$header>
51336
51337 _ACEOF
51338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51339   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
51340   ice_cv_have_lstat_decl=yes
51341 fi
51342 rm -f conftest*
51343
51344 if test "$ice_cv_have_lstat_decl" = yes; then
51345         break
51346 fi
51347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51348 cat >conftest.$ac_ext <<_ACEOF
51349 /* confdefs.h.  */
51350 _ACEOF
51351 cat confdefs.h >>conftest.$ac_ext
51352 cat >>conftest.$ac_ext <<_ACEOF
51353 /* end confdefs.h.  */
51354 #include <$header>
51355
51356 _ACEOF
51357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51358   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51359   ice_cv_have_lstat_decl=yes
51360 fi
51361 rm -f conftest*
51362
51363 if test "$ice_cv_have_lstat_decl" = yes; then
51364         break
51365 fi
51366 done
51367
51368 fi
51369
51370 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
51371 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
51372 if test "$ice_cv_have_lstat_decl" = yes; then
51373
51374 cat >>confdefs.h <<_ACEOF
51375 #define HAVE_LSTAT_DECL 1
51376 _ACEOF
51377
51378 fi
51379 fi
51380
51381
51382 ice_have_malloc=no
51383
51384 for ac_func in malloc
51385 do
51386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51387 echo "$as_me:$LINENO: checking for $ac_func" >&5
51388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51389 if eval "test \"\${$as_ac_var+set}\" = set"; then
51390   echo $ECHO_N "(cached) $ECHO_C" >&6
51391 else
51392   cat >conftest.$ac_ext <<_ACEOF
51393 /* confdefs.h.  */
51394 _ACEOF
51395 cat confdefs.h >>conftest.$ac_ext
51396 cat >>conftest.$ac_ext <<_ACEOF
51397 /* end confdefs.h.  */
51398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51400 #define $ac_func innocuous_$ac_func
51401
51402 /* System header to define __stub macros and hopefully few prototypes,
51403     which can conflict with char $ac_func (); below.
51404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51405     <limits.h> exists even on freestanding compilers.  */
51406
51407 #ifdef __STDC__
51408 # include <limits.h>
51409 #else
51410 # include <assert.h>
51411 #endif
51412
51413 #undef $ac_func
51414
51415 /* Override any gcc2 internal prototype to avoid an error.  */
51416 #ifdef __cplusplus
51417 extern "C"
51418 {
51419 #endif
51420 /* We use char because int might match the return type of a gcc2
51421    builtin and then its argument prototype would still apply.  */
51422 char $ac_func ();
51423 /* The GNU C library defines this for functions which it implements
51424     to always fail with ENOSYS.  Some functions are actually named
51425     something starting with __ and the normal name is an alias.  */
51426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51427 choke me
51428 #else
51429 char (*f) () = $ac_func;
51430 #endif
51431 #ifdef __cplusplus
51432 }
51433 #endif
51434
51435 int
51436 main ()
51437 {
51438 return f != $ac_func;
51439   ;
51440   return 0;
51441 }
51442 _ACEOF
51443 rm -f conftest.$ac_objext conftest$ac_exeext
51444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51445   (eval $ac_link) 2>conftest.er1
51446   ac_status=$?
51447   grep -v '^ *+' conftest.er1 >conftest.err
51448   rm -f conftest.er1
51449   cat conftest.err >&5
51450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51451   (exit $ac_status); } &&
51452          { ac_try='test -z "$ac_c_werror_flag"
51453                          || test ! -s conftest.err'
51454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51455   (eval $ac_try) 2>&5
51456   ac_status=$?
51457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51458   (exit $ac_status); }; } &&
51459          { ac_try='test -s conftest$ac_exeext'
51460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51461   (eval $ac_try) 2>&5
51462   ac_status=$?
51463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51464   (exit $ac_status); }; }; then
51465   eval "$as_ac_var=yes"
51466 else
51467   echo "$as_me: failed program was:" >&5
51468 sed 's/^/| /' conftest.$ac_ext >&5
51469
51470 eval "$as_ac_var=no"
51471 fi
51472 rm -f conftest.err conftest.$ac_objext \
51473       conftest$ac_exeext conftest.$ac_ext
51474 fi
51475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51477 if test `eval echo '${'$as_ac_var'}'` = yes; then
51478   cat >>confdefs.h <<_ACEOF
51479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51480 _ACEOF
51481  ice_have_malloc=yes
51482 fi
51483 done
51484
51485 if test "${ice_have_malloc}" = yes; then
51486 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
51487 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
51488 if test "${ice_cv_have_malloc_decl+set}" = set; then
51489   echo $ECHO_N "(cached) $ECHO_C" >&6
51490 else
51491
51492 ice_cv_have_malloc_decl=no
51493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51494 ice_re_word='(^|[^a-zA-Z0-9_])'
51495 for header in stdlib.h; do
51496 # Check for ordinary declaration
51497 cat >conftest.$ac_ext <<_ACEOF
51498 /* confdefs.h.  */
51499 _ACEOF
51500 cat confdefs.h >>conftest.$ac_ext
51501 cat >>conftest.$ac_ext <<_ACEOF
51502 /* end confdefs.h.  */
51503 #include <$header>
51504
51505 _ACEOF
51506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51507   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
51508   ice_cv_have_malloc_decl=yes
51509 fi
51510 rm -f conftest*
51511
51512 if test "$ice_cv_have_malloc_decl" = yes; then
51513         break
51514 fi
51515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51516 cat >conftest.$ac_ext <<_ACEOF
51517 /* confdefs.h.  */
51518 _ACEOF
51519 cat confdefs.h >>conftest.$ac_ext
51520 cat >>conftest.$ac_ext <<_ACEOF
51521 /* end confdefs.h.  */
51522 #include <$header>
51523
51524 _ACEOF
51525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51526   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51527   ice_cv_have_malloc_decl=yes
51528 fi
51529 rm -f conftest*
51530
51531 if test "$ice_cv_have_malloc_decl" = yes; then
51532         break
51533 fi
51534 done
51535
51536 fi
51537
51538 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
51539 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
51540 if test "$ice_cv_have_malloc_decl" = yes; then
51541
51542 cat >>confdefs.h <<_ACEOF
51543 #define HAVE_MALLOC_DECL 1
51544 _ACEOF
51545
51546 fi
51547 fi
51548
51549
51550 ice_have_memmove=no
51551
51552 for ac_func in memmove
51553 do
51554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51555 echo "$as_me:$LINENO: checking for $ac_func" >&5
51556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51557 if eval "test \"\${$as_ac_var+set}\" = set"; then
51558   echo $ECHO_N "(cached) $ECHO_C" >&6
51559 else
51560   cat >conftest.$ac_ext <<_ACEOF
51561 /* confdefs.h.  */
51562 _ACEOF
51563 cat confdefs.h >>conftest.$ac_ext
51564 cat >>conftest.$ac_ext <<_ACEOF
51565 /* end confdefs.h.  */
51566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51568 #define $ac_func innocuous_$ac_func
51569
51570 /* System header to define __stub macros and hopefully few prototypes,
51571     which can conflict with char $ac_func (); below.
51572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51573     <limits.h> exists even on freestanding compilers.  */
51574
51575 #ifdef __STDC__
51576 # include <limits.h>
51577 #else
51578 # include <assert.h>
51579 #endif
51580
51581 #undef $ac_func
51582
51583 /* Override any gcc2 internal prototype to avoid an error.  */
51584 #ifdef __cplusplus
51585 extern "C"
51586 {
51587 #endif
51588 /* We use char because int might match the return type of a gcc2
51589    builtin and then its argument prototype would still apply.  */
51590 char $ac_func ();
51591 /* The GNU C library defines this for functions which it implements
51592     to always fail with ENOSYS.  Some functions are actually named
51593     something starting with __ and the normal name is an alias.  */
51594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51595 choke me
51596 #else
51597 char (*f) () = $ac_func;
51598 #endif
51599 #ifdef __cplusplus
51600 }
51601 #endif
51602
51603 int
51604 main ()
51605 {
51606 return f != $ac_func;
51607   ;
51608   return 0;
51609 }
51610 _ACEOF
51611 rm -f conftest.$ac_objext conftest$ac_exeext
51612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51613   (eval $ac_link) 2>conftest.er1
51614   ac_status=$?
51615   grep -v '^ *+' conftest.er1 >conftest.err
51616   rm -f conftest.er1
51617   cat conftest.err >&5
51618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51619   (exit $ac_status); } &&
51620          { ac_try='test -z "$ac_c_werror_flag"
51621                          || test ! -s conftest.err'
51622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51623   (eval $ac_try) 2>&5
51624   ac_status=$?
51625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51626   (exit $ac_status); }; } &&
51627          { ac_try='test -s conftest$ac_exeext'
51628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51629   (eval $ac_try) 2>&5
51630   ac_status=$?
51631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51632   (exit $ac_status); }; }; then
51633   eval "$as_ac_var=yes"
51634 else
51635   echo "$as_me: failed program was:" >&5
51636 sed 's/^/| /' conftest.$ac_ext >&5
51637
51638 eval "$as_ac_var=no"
51639 fi
51640 rm -f conftest.err conftest.$ac_objext \
51641       conftest$ac_exeext conftest.$ac_ext
51642 fi
51643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51645 if test `eval echo '${'$as_ac_var'}'` = yes; then
51646   cat >>confdefs.h <<_ACEOF
51647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51648 _ACEOF
51649  ice_have_memmove=yes
51650 fi
51651 done
51652
51653 if test "${ice_have_memmove}" = yes; then
51654 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
51655 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
51656 if test "${ice_cv_have_memmove_decl+set}" = set; then
51657   echo $ECHO_N "(cached) $ECHO_C" >&6
51658 else
51659
51660 ice_cv_have_memmove_decl=no
51661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51662 ice_re_word='(^|[^a-zA-Z0-9_])'
51663 for header in string.h strings.h; do
51664 # Check for ordinary declaration
51665 cat >conftest.$ac_ext <<_ACEOF
51666 /* confdefs.h.  */
51667 _ACEOF
51668 cat confdefs.h >>conftest.$ac_ext
51669 cat >>conftest.$ac_ext <<_ACEOF
51670 /* end confdefs.h.  */
51671 #include <$header>
51672
51673 _ACEOF
51674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51675   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
51676   ice_cv_have_memmove_decl=yes
51677 fi
51678 rm -f conftest*
51679
51680 if test "$ice_cv_have_memmove_decl" = yes; then
51681         break
51682 fi
51683 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51684 cat >conftest.$ac_ext <<_ACEOF
51685 /* confdefs.h.  */
51686 _ACEOF
51687 cat confdefs.h >>conftest.$ac_ext
51688 cat >>conftest.$ac_ext <<_ACEOF
51689 /* end confdefs.h.  */
51690 #include <$header>
51691
51692 _ACEOF
51693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51694   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51695   ice_cv_have_memmove_decl=yes
51696 fi
51697 rm -f conftest*
51698
51699 if test "$ice_cv_have_memmove_decl" = yes; then
51700         break
51701 fi
51702 done
51703
51704 fi
51705
51706 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
51707 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
51708 if test "$ice_cv_have_memmove_decl" = yes; then
51709
51710 cat >>confdefs.h <<_ACEOF
51711 #define HAVE_MEMMOVE_DECL 1
51712 _ACEOF
51713
51714 fi
51715 fi
51716
51717
51718 ice_have_memset=no
51719
51720 for ac_func in memset
51721 do
51722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51723 echo "$as_me:$LINENO: checking for $ac_func" >&5
51724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51725 if eval "test \"\${$as_ac_var+set}\" = set"; then
51726   echo $ECHO_N "(cached) $ECHO_C" >&6
51727 else
51728   cat >conftest.$ac_ext <<_ACEOF
51729 /* confdefs.h.  */
51730 _ACEOF
51731 cat confdefs.h >>conftest.$ac_ext
51732 cat >>conftest.$ac_ext <<_ACEOF
51733 /* end confdefs.h.  */
51734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51736 #define $ac_func innocuous_$ac_func
51737
51738 /* System header to define __stub macros and hopefully few prototypes,
51739     which can conflict with char $ac_func (); below.
51740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51741     <limits.h> exists even on freestanding compilers.  */
51742
51743 #ifdef __STDC__
51744 # include <limits.h>
51745 #else
51746 # include <assert.h>
51747 #endif
51748
51749 #undef $ac_func
51750
51751 /* Override any gcc2 internal prototype to avoid an error.  */
51752 #ifdef __cplusplus
51753 extern "C"
51754 {
51755 #endif
51756 /* We use char because int might match the return type of a gcc2
51757    builtin and then its argument prototype would still apply.  */
51758 char $ac_func ();
51759 /* The GNU C library defines this for functions which it implements
51760     to always fail with ENOSYS.  Some functions are actually named
51761     something starting with __ and the normal name is an alias.  */
51762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51763 choke me
51764 #else
51765 char (*f) () = $ac_func;
51766 #endif
51767 #ifdef __cplusplus
51768 }
51769 #endif
51770
51771 int
51772 main ()
51773 {
51774 return f != $ac_func;
51775   ;
51776   return 0;
51777 }
51778 _ACEOF
51779 rm -f conftest.$ac_objext conftest$ac_exeext
51780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51781   (eval $ac_link) 2>conftest.er1
51782   ac_status=$?
51783   grep -v '^ *+' conftest.er1 >conftest.err
51784   rm -f conftest.er1
51785   cat conftest.err >&5
51786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51787   (exit $ac_status); } &&
51788          { ac_try='test -z "$ac_c_werror_flag"
51789                          || test ! -s conftest.err'
51790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51791   (eval $ac_try) 2>&5
51792   ac_status=$?
51793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51794   (exit $ac_status); }; } &&
51795          { ac_try='test -s conftest$ac_exeext'
51796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51797   (eval $ac_try) 2>&5
51798   ac_status=$?
51799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51800   (exit $ac_status); }; }; then
51801   eval "$as_ac_var=yes"
51802 else
51803   echo "$as_me: failed program was:" >&5
51804 sed 's/^/| /' conftest.$ac_ext >&5
51805
51806 eval "$as_ac_var=no"
51807 fi
51808 rm -f conftest.err conftest.$ac_objext \
51809       conftest$ac_exeext conftest.$ac_ext
51810 fi
51811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51813 if test `eval echo '${'$as_ac_var'}'` = yes; then
51814   cat >>confdefs.h <<_ACEOF
51815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51816 _ACEOF
51817  ice_have_memset=yes
51818 fi
51819 done
51820
51821 if test "${ice_have_memset}" = yes; then
51822 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
51823 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
51824 if test "${ice_cv_have_memset_decl+set}" = set; then
51825   echo $ECHO_N "(cached) $ECHO_C" >&6
51826 else
51827
51828 ice_cv_have_memset_decl=no
51829 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51830 ice_re_word='(^|[^a-zA-Z0-9_])'
51831 for header in string.h strings.h; do
51832 # Check for ordinary declaration
51833 cat >conftest.$ac_ext <<_ACEOF
51834 /* confdefs.h.  */
51835 _ACEOF
51836 cat confdefs.h >>conftest.$ac_ext
51837 cat >>conftest.$ac_ext <<_ACEOF
51838 /* end confdefs.h.  */
51839 #include <$header>
51840
51841 _ACEOF
51842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51843   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
51844   ice_cv_have_memset_decl=yes
51845 fi
51846 rm -f conftest*
51847
51848 if test "$ice_cv_have_memset_decl" = yes; then
51849         break
51850 fi
51851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51852 cat >conftest.$ac_ext <<_ACEOF
51853 /* confdefs.h.  */
51854 _ACEOF
51855 cat confdefs.h >>conftest.$ac_ext
51856 cat >>conftest.$ac_ext <<_ACEOF
51857 /* end confdefs.h.  */
51858 #include <$header>
51859
51860 _ACEOF
51861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51862   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51863   ice_cv_have_memset_decl=yes
51864 fi
51865 rm -f conftest*
51866
51867 if test "$ice_cv_have_memset_decl" = yes; then
51868         break
51869 fi
51870 done
51871
51872 fi
51873
51874 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
51875 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
51876 if test "$ice_cv_have_memset_decl" = yes; then
51877
51878 cat >>confdefs.h <<_ACEOF
51879 #define HAVE_MEMSET_DECL 1
51880 _ACEOF
51881
51882 fi
51883 fi
51884
51885
51886 for ac_func in mkdir
51887 do
51888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51889 echo "$as_me:$LINENO: checking for $ac_func" >&5
51890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51891 if eval "test \"\${$as_ac_var+set}\" = set"; then
51892   echo $ECHO_N "(cached) $ECHO_C" >&6
51893 else
51894   cat >conftest.$ac_ext <<_ACEOF
51895 /* confdefs.h.  */
51896 _ACEOF
51897 cat confdefs.h >>conftest.$ac_ext
51898 cat >>conftest.$ac_ext <<_ACEOF
51899 /* end confdefs.h.  */
51900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51902 #define $ac_func innocuous_$ac_func
51903
51904 /* System header to define __stub macros and hopefully few prototypes,
51905     which can conflict with char $ac_func (); below.
51906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51907     <limits.h> exists even on freestanding compilers.  */
51908
51909 #ifdef __STDC__
51910 # include <limits.h>
51911 #else
51912 # include <assert.h>
51913 #endif
51914
51915 #undef $ac_func
51916
51917 /* Override any gcc2 internal prototype to avoid an error.  */
51918 #ifdef __cplusplus
51919 extern "C"
51920 {
51921 #endif
51922 /* We use char because int might match the return type of a gcc2
51923    builtin and then its argument prototype would still apply.  */
51924 char $ac_func ();
51925 /* The GNU C library defines this for functions which it implements
51926     to always fail with ENOSYS.  Some functions are actually named
51927     something starting with __ and the normal name is an alias.  */
51928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51929 choke me
51930 #else
51931 char (*f) () = $ac_func;
51932 #endif
51933 #ifdef __cplusplus
51934 }
51935 #endif
51936
51937 int
51938 main ()
51939 {
51940 return f != $ac_func;
51941   ;
51942   return 0;
51943 }
51944 _ACEOF
51945 rm -f conftest.$ac_objext conftest$ac_exeext
51946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51947   (eval $ac_link) 2>conftest.er1
51948   ac_status=$?
51949   grep -v '^ *+' conftest.er1 >conftest.err
51950   rm -f conftest.er1
51951   cat conftest.err >&5
51952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51953   (exit $ac_status); } &&
51954          { ac_try='test -z "$ac_c_werror_flag"
51955                          || test ! -s conftest.err'
51956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51957   (eval $ac_try) 2>&5
51958   ac_status=$?
51959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51960   (exit $ac_status); }; } &&
51961          { ac_try='test -s conftest$ac_exeext'
51962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51963   (eval $ac_try) 2>&5
51964   ac_status=$?
51965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966   (exit $ac_status); }; }; then
51967   eval "$as_ac_var=yes"
51968 else
51969   echo "$as_me: failed program was:" >&5
51970 sed 's/^/| /' conftest.$ac_ext >&5
51971
51972 eval "$as_ac_var=no"
51973 fi
51974 rm -f conftest.err conftest.$ac_objext \
51975       conftest$ac_exeext conftest.$ac_ext
51976 fi
51977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51979 if test `eval echo '${'$as_ac_var'}'` = yes; then
51980   cat >>confdefs.h <<_ACEOF
51981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51982 _ACEOF
51983
51984 fi
51985 done
51986
51987
51988 ice_have_mkstemp=no
51989
51990 for ac_func in mkstemp
51991 do
51992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51993 echo "$as_me:$LINENO: checking for $ac_func" >&5
51994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51995 if eval "test \"\${$as_ac_var+set}\" = set"; then
51996   echo $ECHO_N "(cached) $ECHO_C" >&6
51997 else
51998   cat >conftest.$ac_ext <<_ACEOF
51999 /* confdefs.h.  */
52000 _ACEOF
52001 cat confdefs.h >>conftest.$ac_ext
52002 cat >>conftest.$ac_ext <<_ACEOF
52003 /* end confdefs.h.  */
52004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52006 #define $ac_func innocuous_$ac_func
52007
52008 /* System header to define __stub macros and hopefully few prototypes,
52009     which can conflict with char $ac_func (); below.
52010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52011     <limits.h> exists even on freestanding compilers.  */
52012
52013 #ifdef __STDC__
52014 # include <limits.h>
52015 #else
52016 # include <assert.h>
52017 #endif
52018
52019 #undef $ac_func
52020
52021 /* Override any gcc2 internal prototype to avoid an error.  */
52022 #ifdef __cplusplus
52023 extern "C"
52024 {
52025 #endif
52026 /* We use char because int might match the return type of a gcc2
52027    builtin and then its argument prototype would still apply.  */
52028 char $ac_func ();
52029 /* The GNU C library defines this for functions which it implements
52030     to always fail with ENOSYS.  Some functions are actually named
52031     something starting with __ and the normal name is an alias.  */
52032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52033 choke me
52034 #else
52035 char (*f) () = $ac_func;
52036 #endif
52037 #ifdef __cplusplus
52038 }
52039 #endif
52040
52041 int
52042 main ()
52043 {
52044 return f != $ac_func;
52045   ;
52046   return 0;
52047 }
52048 _ACEOF
52049 rm -f conftest.$ac_objext conftest$ac_exeext
52050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52051   (eval $ac_link) 2>conftest.er1
52052   ac_status=$?
52053   grep -v '^ *+' conftest.er1 >conftest.err
52054   rm -f conftest.er1
52055   cat conftest.err >&5
52056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52057   (exit $ac_status); } &&
52058          { ac_try='test -z "$ac_c_werror_flag"
52059                          || test ! -s conftest.err'
52060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52061   (eval $ac_try) 2>&5
52062   ac_status=$?
52063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52064   (exit $ac_status); }; } &&
52065          { ac_try='test -s conftest$ac_exeext'
52066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52067   (eval $ac_try) 2>&5
52068   ac_status=$?
52069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52070   (exit $ac_status); }; }; then
52071   eval "$as_ac_var=yes"
52072 else
52073   echo "$as_me: failed program was:" >&5
52074 sed 's/^/| /' conftest.$ac_ext >&5
52075
52076 eval "$as_ac_var=no"
52077 fi
52078 rm -f conftest.err conftest.$ac_objext \
52079       conftest$ac_exeext conftest.$ac_ext
52080 fi
52081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52083 if test `eval echo '${'$as_ac_var'}'` = yes; then
52084   cat >>confdefs.h <<_ACEOF
52085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52086 _ACEOF
52087  ice_have_mkstemp=yes
52088 fi
52089 done
52090
52091 if test "${ice_have_mkstemp}" = yes; then
52092 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
52093 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
52094 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
52095   echo $ECHO_N "(cached) $ECHO_C" >&6
52096 else
52097
52098 ice_cv_have_mkstemp_decl=no
52099 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52100 ice_re_word='(^|[^a-zA-Z0-9_])'
52101 for header in stdlib.h; do
52102 # Check for ordinary declaration
52103 cat >conftest.$ac_ext <<_ACEOF
52104 /* confdefs.h.  */
52105 _ACEOF
52106 cat confdefs.h >>conftest.$ac_ext
52107 cat >>conftest.$ac_ext <<_ACEOF
52108 /* end confdefs.h.  */
52109 #include <$header>
52110
52111 _ACEOF
52112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52113   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
52114   ice_cv_have_mkstemp_decl=yes
52115 fi
52116 rm -f conftest*
52117
52118 if test "$ice_cv_have_mkstemp_decl" = yes; then
52119         break
52120 fi
52121 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52122 cat >conftest.$ac_ext <<_ACEOF
52123 /* confdefs.h.  */
52124 _ACEOF
52125 cat confdefs.h >>conftest.$ac_ext
52126 cat >>conftest.$ac_ext <<_ACEOF
52127 /* end confdefs.h.  */
52128 #include <$header>
52129
52130 _ACEOF
52131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52132   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52133   ice_cv_have_mkstemp_decl=yes
52134 fi
52135 rm -f conftest*
52136
52137 if test "$ice_cv_have_mkstemp_decl" = yes; then
52138         break
52139 fi
52140 done
52141
52142 fi
52143
52144 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
52145 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
52146 if test "$ice_cv_have_mkstemp_decl" = yes; then
52147
52148 cat >>confdefs.h <<_ACEOF
52149 #define HAVE_MKSTEMP_DECL 1
52150 _ACEOF
52151
52152 fi
52153 fi
52154
52155
52156 ice_have_mktemp=no
52157
52158 for ac_func in mktemp
52159 do
52160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52161 echo "$as_me:$LINENO: checking for $ac_func" >&5
52162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52163 if eval "test \"\${$as_ac_var+set}\" = set"; then
52164   echo $ECHO_N "(cached) $ECHO_C" >&6
52165 else
52166   cat >conftest.$ac_ext <<_ACEOF
52167 /* confdefs.h.  */
52168 _ACEOF
52169 cat confdefs.h >>conftest.$ac_ext
52170 cat >>conftest.$ac_ext <<_ACEOF
52171 /* end confdefs.h.  */
52172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52174 #define $ac_func innocuous_$ac_func
52175
52176 /* System header to define __stub macros and hopefully few prototypes,
52177     which can conflict with char $ac_func (); below.
52178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52179     <limits.h> exists even on freestanding compilers.  */
52180
52181 #ifdef __STDC__
52182 # include <limits.h>
52183 #else
52184 # include <assert.h>
52185 #endif
52186
52187 #undef $ac_func
52188
52189 /* Override any gcc2 internal prototype to avoid an error.  */
52190 #ifdef __cplusplus
52191 extern "C"
52192 {
52193 #endif
52194 /* We use char because int might match the return type of a gcc2
52195    builtin and then its argument prototype would still apply.  */
52196 char $ac_func ();
52197 /* The GNU C library defines this for functions which it implements
52198     to always fail with ENOSYS.  Some functions are actually named
52199     something starting with __ and the normal name is an alias.  */
52200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52201 choke me
52202 #else
52203 char (*f) () = $ac_func;
52204 #endif
52205 #ifdef __cplusplus
52206 }
52207 #endif
52208
52209 int
52210 main ()
52211 {
52212 return f != $ac_func;
52213   ;
52214   return 0;
52215 }
52216 _ACEOF
52217 rm -f conftest.$ac_objext conftest$ac_exeext
52218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52219   (eval $ac_link) 2>conftest.er1
52220   ac_status=$?
52221   grep -v '^ *+' conftest.er1 >conftest.err
52222   rm -f conftest.er1
52223   cat conftest.err >&5
52224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52225   (exit $ac_status); } &&
52226          { ac_try='test -z "$ac_c_werror_flag"
52227                          || test ! -s conftest.err'
52228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52229   (eval $ac_try) 2>&5
52230   ac_status=$?
52231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52232   (exit $ac_status); }; } &&
52233          { ac_try='test -s conftest$ac_exeext'
52234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52235   (eval $ac_try) 2>&5
52236   ac_status=$?
52237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52238   (exit $ac_status); }; }; then
52239   eval "$as_ac_var=yes"
52240 else
52241   echo "$as_me: failed program was:" >&5
52242 sed 's/^/| /' conftest.$ac_ext >&5
52243
52244 eval "$as_ac_var=no"
52245 fi
52246 rm -f conftest.err conftest.$ac_objext \
52247       conftest$ac_exeext conftest.$ac_ext
52248 fi
52249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52251 if test `eval echo '${'$as_ac_var'}'` = yes; then
52252   cat >>confdefs.h <<_ACEOF
52253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52254 _ACEOF
52255  ice_have_mktemp=yes
52256 fi
52257 done
52258
52259 if test "${ice_have_mktemp}" = yes; then
52260 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
52261 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
52262 if test "${ice_cv_have_mktemp_decl+set}" = set; then
52263   echo $ECHO_N "(cached) $ECHO_C" >&6
52264 else
52265
52266 ice_cv_have_mktemp_decl=no
52267 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52268 ice_re_word='(^|[^a-zA-Z0-9_])'
52269 for header in stdlib.h; do
52270 # Check for ordinary declaration
52271 cat >conftest.$ac_ext <<_ACEOF
52272 /* confdefs.h.  */
52273 _ACEOF
52274 cat confdefs.h >>conftest.$ac_ext
52275 cat >>conftest.$ac_ext <<_ACEOF
52276 /* end confdefs.h.  */
52277 #include <$header>
52278
52279 _ACEOF
52280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52281   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
52282   ice_cv_have_mktemp_decl=yes
52283 fi
52284 rm -f conftest*
52285
52286 if test "$ice_cv_have_mktemp_decl" = yes; then
52287         break
52288 fi
52289 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52290 cat >conftest.$ac_ext <<_ACEOF
52291 /* confdefs.h.  */
52292 _ACEOF
52293 cat confdefs.h >>conftest.$ac_ext
52294 cat >>conftest.$ac_ext <<_ACEOF
52295 /* end confdefs.h.  */
52296 #include <$header>
52297
52298 _ACEOF
52299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52300   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52301   ice_cv_have_mktemp_decl=yes
52302 fi
52303 rm -f conftest*
52304
52305 if test "$ice_cv_have_mktemp_decl" = yes; then
52306         break
52307 fi
52308 done
52309
52310 fi
52311
52312 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
52313 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
52314 if test "$ice_cv_have_mktemp_decl" = yes; then
52315
52316 cat >>confdefs.h <<_ACEOF
52317 #define HAVE_MKTEMP_DECL 1
52318 _ACEOF
52319
52320 fi
52321 fi
52322
52323
52324 ice_have_mktime=no
52325
52326 for ac_func in mktime
52327 do
52328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52329 echo "$as_me:$LINENO: checking for $ac_func" >&5
52330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52331 if eval "test \"\${$as_ac_var+set}\" = set"; then
52332   echo $ECHO_N "(cached) $ECHO_C" >&6
52333 else
52334   cat >conftest.$ac_ext <<_ACEOF
52335 /* confdefs.h.  */
52336 _ACEOF
52337 cat confdefs.h >>conftest.$ac_ext
52338 cat >>conftest.$ac_ext <<_ACEOF
52339 /* end confdefs.h.  */
52340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52342 #define $ac_func innocuous_$ac_func
52343
52344 /* System header to define __stub macros and hopefully few prototypes,
52345     which can conflict with char $ac_func (); below.
52346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52347     <limits.h> exists even on freestanding compilers.  */
52348
52349 #ifdef __STDC__
52350 # include <limits.h>
52351 #else
52352 # include <assert.h>
52353 #endif
52354
52355 #undef $ac_func
52356
52357 /* Override any gcc2 internal prototype to avoid an error.  */
52358 #ifdef __cplusplus
52359 extern "C"
52360 {
52361 #endif
52362 /* We use char because int might match the return type of a gcc2
52363    builtin and then its argument prototype would still apply.  */
52364 char $ac_func ();
52365 /* The GNU C library defines this for functions which it implements
52366     to always fail with ENOSYS.  Some functions are actually named
52367     something starting with __ and the normal name is an alias.  */
52368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52369 choke me
52370 #else
52371 char (*f) () = $ac_func;
52372 #endif
52373 #ifdef __cplusplus
52374 }
52375 #endif
52376
52377 int
52378 main ()
52379 {
52380 return f != $ac_func;
52381   ;
52382   return 0;
52383 }
52384 _ACEOF
52385 rm -f conftest.$ac_objext conftest$ac_exeext
52386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52387   (eval $ac_link) 2>conftest.er1
52388   ac_status=$?
52389   grep -v '^ *+' conftest.er1 >conftest.err
52390   rm -f conftest.er1
52391   cat conftest.err >&5
52392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52393   (exit $ac_status); } &&
52394          { ac_try='test -z "$ac_c_werror_flag"
52395                          || test ! -s conftest.err'
52396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52397   (eval $ac_try) 2>&5
52398   ac_status=$?
52399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52400   (exit $ac_status); }; } &&
52401          { ac_try='test -s conftest$ac_exeext'
52402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52403   (eval $ac_try) 2>&5
52404   ac_status=$?
52405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52406   (exit $ac_status); }; }; then
52407   eval "$as_ac_var=yes"
52408 else
52409   echo "$as_me: failed program was:" >&5
52410 sed 's/^/| /' conftest.$ac_ext >&5
52411
52412 eval "$as_ac_var=no"
52413 fi
52414 rm -f conftest.err conftest.$ac_objext \
52415       conftest$ac_exeext conftest.$ac_ext
52416 fi
52417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52419 if test `eval echo '${'$as_ac_var'}'` = yes; then
52420   cat >>confdefs.h <<_ACEOF
52421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52422 _ACEOF
52423  ice_have_mktime=yes
52424 fi
52425 done
52426
52427 if test "${ice_have_mktime}" = yes; then
52428 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
52429 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
52430 if test "${ice_cv_have_mktime_decl+set}" = set; then
52431   echo $ECHO_N "(cached) $ECHO_C" >&6
52432 else
52433
52434 ice_cv_have_mktime_decl=no
52435 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52436 ice_re_word='(^|[^a-zA-Z0-9_])'
52437 for header in time.h sys/time.h; do
52438 # Check for ordinary declaration
52439 cat >conftest.$ac_ext <<_ACEOF
52440 /* confdefs.h.  */
52441 _ACEOF
52442 cat confdefs.h >>conftest.$ac_ext
52443 cat >>conftest.$ac_ext <<_ACEOF
52444 /* end confdefs.h.  */
52445 #include <$header>
52446
52447 _ACEOF
52448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52449   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
52450   ice_cv_have_mktime_decl=yes
52451 fi
52452 rm -f conftest*
52453
52454 if test "$ice_cv_have_mktime_decl" = yes; then
52455         break
52456 fi
52457 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52458 cat >conftest.$ac_ext <<_ACEOF
52459 /* confdefs.h.  */
52460 _ACEOF
52461 cat confdefs.h >>conftest.$ac_ext
52462 cat >>conftest.$ac_ext <<_ACEOF
52463 /* end confdefs.h.  */
52464 #include <$header>
52465
52466 _ACEOF
52467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52468   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52469   ice_cv_have_mktime_decl=yes
52470 fi
52471 rm -f conftest*
52472
52473 if test "$ice_cv_have_mktime_decl" = yes; then
52474         break
52475 fi
52476 done
52477
52478 fi
52479
52480 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
52481 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
52482 if test "$ice_cv_have_mktime_decl" = yes; then
52483
52484 cat >>confdefs.h <<_ACEOF
52485 #define HAVE_MKTIME_DECL 1
52486 _ACEOF
52487
52488 fi
52489 fi
52490
52491
52492
52493 for ac_header in stdlib.h unistd.h
52494 do
52495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52497   echo "$as_me:$LINENO: checking for $ac_header" >&5
52498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52500   echo $ECHO_N "(cached) $ECHO_C" >&6
52501 fi
52502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52504 else
52505   # Is the header compilable?
52506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52508 cat >conftest.$ac_ext <<_ACEOF
52509 /* confdefs.h.  */
52510 _ACEOF
52511 cat confdefs.h >>conftest.$ac_ext
52512 cat >>conftest.$ac_ext <<_ACEOF
52513 /* end confdefs.h.  */
52514 $ac_includes_default
52515 #include <$ac_header>
52516 _ACEOF
52517 rm -f conftest.$ac_objext
52518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52519   (eval $ac_compile) 2>conftest.er1
52520   ac_status=$?
52521   grep -v '^ *+' conftest.er1 >conftest.err
52522   rm -f conftest.er1
52523   cat conftest.err >&5
52524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52525   (exit $ac_status); } &&
52526          { ac_try='test -z "$ac_c_werror_flag"
52527                          || test ! -s conftest.err'
52528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52529   (eval $ac_try) 2>&5
52530   ac_status=$?
52531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52532   (exit $ac_status); }; } &&
52533          { ac_try='test -s conftest.$ac_objext'
52534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52535   (eval $ac_try) 2>&5
52536   ac_status=$?
52537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52538   (exit $ac_status); }; }; then
52539   ac_header_compiler=yes
52540 else
52541   echo "$as_me: failed program was:" >&5
52542 sed 's/^/| /' conftest.$ac_ext >&5
52543
52544 ac_header_compiler=no
52545 fi
52546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52548 echo "${ECHO_T}$ac_header_compiler" >&6
52549
52550 # Is the header present?
52551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52553 cat >conftest.$ac_ext <<_ACEOF
52554 /* confdefs.h.  */
52555 _ACEOF
52556 cat confdefs.h >>conftest.$ac_ext
52557 cat >>conftest.$ac_ext <<_ACEOF
52558 /* end confdefs.h.  */
52559 #include <$ac_header>
52560 _ACEOF
52561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52563   ac_status=$?
52564   grep -v '^ *+' conftest.er1 >conftest.err
52565   rm -f conftest.er1
52566   cat conftest.err >&5
52567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52568   (exit $ac_status); } >/dev/null; then
52569   if test -s conftest.err; then
52570     ac_cpp_err=$ac_c_preproc_warn_flag
52571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52572   else
52573     ac_cpp_err=
52574   fi
52575 else
52576   ac_cpp_err=yes
52577 fi
52578 if test -z "$ac_cpp_err"; then
52579   ac_header_preproc=yes
52580 else
52581   echo "$as_me: failed program was:" >&5
52582 sed 's/^/| /' conftest.$ac_ext >&5
52583
52584   ac_header_preproc=no
52585 fi
52586 rm -f conftest.err conftest.$ac_ext
52587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52588 echo "${ECHO_T}$ac_header_preproc" >&6
52589
52590 # So?  What about this header?
52591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52592   yes:no: )
52593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52597     ac_header_preproc=yes
52598     ;;
52599   no:yes:* )
52600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52602     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52603 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52604     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52606     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52607 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52610     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52612     (
52613       cat <<\_ASBOX
52614 ## ------------------------------------------ ##
52615 ## Report this to the AC_PACKAGE_NAME lists.  ##
52616 ## ------------------------------------------ ##
52617 _ASBOX
52618     ) |
52619       sed "s/^/$as_me: WARNING:     /" >&2
52620     ;;
52621 esac
52622 echo "$as_me:$LINENO: checking for $ac_header" >&5
52623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52625   echo $ECHO_N "(cached) $ECHO_C" >&6
52626 else
52627   eval "$as_ac_Header=\$ac_header_preproc"
52628 fi
52629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52631
52632 fi
52633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52634   cat >>confdefs.h <<_ACEOF
52635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52636 _ACEOF
52637
52638 fi
52639
52640 done
52641
52642
52643 for ac_func in getpagesize
52644 do
52645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52646 echo "$as_me:$LINENO: checking for $ac_func" >&5
52647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52648 if eval "test \"\${$as_ac_var+set}\" = set"; then
52649   echo $ECHO_N "(cached) $ECHO_C" >&6
52650 else
52651   cat >conftest.$ac_ext <<_ACEOF
52652 /* confdefs.h.  */
52653 _ACEOF
52654 cat confdefs.h >>conftest.$ac_ext
52655 cat >>conftest.$ac_ext <<_ACEOF
52656 /* end confdefs.h.  */
52657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52659 #define $ac_func innocuous_$ac_func
52660
52661 /* System header to define __stub macros and hopefully few prototypes,
52662     which can conflict with char $ac_func (); below.
52663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52664     <limits.h> exists even on freestanding compilers.  */
52665
52666 #ifdef __STDC__
52667 # include <limits.h>
52668 #else
52669 # include <assert.h>
52670 #endif
52671
52672 #undef $ac_func
52673
52674 /* Override any gcc2 internal prototype to avoid an error.  */
52675 #ifdef __cplusplus
52676 extern "C"
52677 {
52678 #endif
52679 /* We use char because int might match the return type of a gcc2
52680    builtin and then its argument prototype would still apply.  */
52681 char $ac_func ();
52682 /* The GNU C library defines this for functions which it implements
52683     to always fail with ENOSYS.  Some functions are actually named
52684     something starting with __ and the normal name is an alias.  */
52685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52686 choke me
52687 #else
52688 char (*f) () = $ac_func;
52689 #endif
52690 #ifdef __cplusplus
52691 }
52692 #endif
52693
52694 int
52695 main ()
52696 {
52697 return f != $ac_func;
52698   ;
52699   return 0;
52700 }
52701 _ACEOF
52702 rm -f conftest.$ac_objext conftest$ac_exeext
52703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52704   (eval $ac_link) 2>conftest.er1
52705   ac_status=$?
52706   grep -v '^ *+' conftest.er1 >conftest.err
52707   rm -f conftest.er1
52708   cat conftest.err >&5
52709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52710   (exit $ac_status); } &&
52711          { ac_try='test -z "$ac_c_werror_flag"
52712                          || test ! -s conftest.err'
52713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52714   (eval $ac_try) 2>&5
52715   ac_status=$?
52716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52717   (exit $ac_status); }; } &&
52718          { ac_try='test -s conftest$ac_exeext'
52719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52720   (eval $ac_try) 2>&5
52721   ac_status=$?
52722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52723   (exit $ac_status); }; }; then
52724   eval "$as_ac_var=yes"
52725 else
52726   echo "$as_me: failed program was:" >&5
52727 sed 's/^/| /' conftest.$ac_ext >&5
52728
52729 eval "$as_ac_var=no"
52730 fi
52731 rm -f conftest.err conftest.$ac_objext \
52732       conftest$ac_exeext conftest.$ac_ext
52733 fi
52734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52736 if test `eval echo '${'$as_ac_var'}'` = yes; then
52737   cat >>confdefs.h <<_ACEOF
52738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52739 _ACEOF
52740
52741 fi
52742 done
52743
52744 echo "$as_me:$LINENO: checking for working mmap" >&5
52745 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
52746 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
52747   echo $ECHO_N "(cached) $ECHO_C" >&6
52748 else
52749   if test "$cross_compiling" = yes; then
52750   ac_cv_func_mmap_fixed_mapped=no
52751 else
52752   cat >conftest.$ac_ext <<_ACEOF
52753 /* confdefs.h.  */
52754 _ACEOF
52755 cat confdefs.h >>conftest.$ac_ext
52756 cat >>conftest.$ac_ext <<_ACEOF
52757 /* end confdefs.h.  */
52758 $ac_includes_default
52759 /* malloc might have been renamed as rpl_malloc. */
52760 #undef malloc
52761
52762 /* Thanks to Mike Haertel and Jim Avera for this test.
52763    Here is a matrix of mmap possibilities:
52764         mmap private not fixed
52765         mmap private fixed at somewhere currently unmapped
52766         mmap private fixed at somewhere already mapped
52767         mmap shared not fixed
52768         mmap shared fixed at somewhere currently unmapped
52769         mmap shared fixed at somewhere already mapped
52770    For private mappings, we should verify that changes cannot be read()
52771    back from the file, nor mmap's back from the file at a different
52772    address.  (There have been systems where private was not correctly
52773    implemented like the infamous i386 svr4.0, and systems where the
52774    VM page cache was not coherent with the file system buffer cache
52775    like early versions of FreeBSD and possibly contemporary NetBSD.)
52776    For shared mappings, we should conversely verify that changes get
52777    propagated back to all the places they're supposed to be.
52778
52779    Grep wants private fixed already mapped.
52780    The main things grep needs to know about mmap are:
52781    * does it exist and is it safe to write into the mmap'd area
52782    * how to use it (BSD variants)  */
52783
52784 #include <fcntl.h>
52785 #include <sys/mman.h>
52786
52787 #if !STDC_HEADERS && !HAVE_STDLIB_H
52788 char *malloc ();
52789 #endif
52790
52791 /* This mess was copied from the GNU getpagesize.h.  */
52792 #if !HAVE_GETPAGESIZE
52793 /* Assume that all systems that can run configure have sys/param.h.  */
52794 # if !HAVE_SYS_PARAM_H
52795 #  define HAVE_SYS_PARAM_H 1
52796 # endif
52797
52798 # ifdef _SC_PAGESIZE
52799 #  define getpagesize() sysconf(_SC_PAGESIZE)
52800 # else /* no _SC_PAGESIZE */
52801 #  if HAVE_SYS_PARAM_H
52802 #   include <sys/param.h>
52803 #   ifdef EXEC_PAGESIZE
52804 #    define getpagesize() EXEC_PAGESIZE
52805 #   else /* no EXEC_PAGESIZE */
52806 #    ifdef NBPG
52807 #     define getpagesize() NBPG * CLSIZE
52808 #     ifndef CLSIZE
52809 #      define CLSIZE 1
52810 #     endif /* no CLSIZE */
52811 #    else /* no NBPG */
52812 #     ifdef NBPC
52813 #      define getpagesize() NBPC
52814 #     else /* no NBPC */
52815 #      ifdef PAGESIZE
52816 #       define getpagesize() PAGESIZE
52817 #      endif /* PAGESIZE */
52818 #     endif /* no NBPC */
52819 #    endif /* no NBPG */
52820 #   endif /* no EXEC_PAGESIZE */
52821 #  else /* no HAVE_SYS_PARAM_H */
52822 #   define getpagesize() 8192   /* punt totally */
52823 #  endif /* no HAVE_SYS_PARAM_H */
52824 # endif /* no _SC_PAGESIZE */
52825
52826 #endif /* no HAVE_GETPAGESIZE */
52827
52828 int
52829 main ()
52830 {
52831   char *data, *data2, *data3;
52832   int i, pagesize;
52833   int fd;
52834
52835   pagesize = getpagesize ();
52836
52837   /* First, make a file with some known garbage in it. */
52838   data = (char *) malloc (pagesize);
52839   if (!data)
52840     exit (1);
52841   for (i = 0; i < pagesize; ++i)
52842     *(data + i) = rand ();
52843   umask (0);
52844   fd = creat ("conftest.mmap", 0600);
52845   if (fd < 0)
52846     exit (1);
52847   if (write (fd, data, pagesize) != pagesize)
52848     exit (1);
52849   close (fd);
52850
52851   /* Next, try to mmap the file at a fixed address which already has
52852      something else allocated at it.  If we can, also make sure that
52853      we see the same garbage.  */
52854   fd = open ("conftest.mmap", O_RDWR);
52855   if (fd < 0)
52856     exit (1);
52857   data2 = (char *) malloc (2 * pagesize);
52858   if (!data2)
52859     exit (1);
52860   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
52861   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
52862                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
52863     exit (1);
52864   for (i = 0; i < pagesize; ++i)
52865     if (*(data + i) != *(data2 + i))
52866       exit (1);
52867
52868   /* Finally, make sure that changes to the mapped area do not
52869      percolate back to the file as seen by read().  (This is a bug on
52870      some variants of i386 svr4.0.)  */
52871   for (i = 0; i < pagesize; ++i)
52872     *(data2 + i) = *(data2 + i) + 1;
52873   data3 = (char *) malloc (pagesize);
52874   if (!data3)
52875     exit (1);
52876   if (read (fd, data3, pagesize) != pagesize)
52877     exit (1);
52878   for (i = 0; i < pagesize; ++i)
52879     if (*(data + i) != *(data3 + i))
52880       exit (1);
52881   close (fd);
52882   exit (0);
52883 }
52884 _ACEOF
52885 rm -f conftest$ac_exeext
52886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52887   (eval $ac_link) 2>&5
52888   ac_status=$?
52889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52890   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52892   (eval $ac_try) 2>&5
52893   ac_status=$?
52894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52895   (exit $ac_status); }; }; then
52896   ac_cv_func_mmap_fixed_mapped=yes
52897 else
52898   echo "$as_me: program exited with status $ac_status" >&5
52899 echo "$as_me: failed program was:" >&5
52900 sed 's/^/| /' conftest.$ac_ext >&5
52901
52902 ( exit $ac_status )
52903 ac_cv_func_mmap_fixed_mapped=no
52904 fi
52905 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52906 fi
52907 fi
52908 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
52909 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
52910 if test $ac_cv_func_mmap_fixed_mapped = yes; then
52911
52912 cat >>confdefs.h <<\_ACEOF
52913 #define HAVE_MMAP 1
52914 _ACEOF
52915
52916 fi
52917 rm -f conftest.mmap
52918
52919
52920 for ac_func in on_exit
52921 do
52922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52923 echo "$as_me:$LINENO: checking for $ac_func" >&5
52924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52925 if eval "test \"\${$as_ac_var+set}\" = set"; then
52926   echo $ECHO_N "(cached) $ECHO_C" >&6
52927 else
52928   cat >conftest.$ac_ext <<_ACEOF
52929 /* confdefs.h.  */
52930 _ACEOF
52931 cat confdefs.h >>conftest.$ac_ext
52932 cat >>conftest.$ac_ext <<_ACEOF
52933 /* end confdefs.h.  */
52934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52935    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52936 #define $ac_func innocuous_$ac_func
52937
52938 /* System header to define __stub macros and hopefully few prototypes,
52939     which can conflict with char $ac_func (); below.
52940     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52941     <limits.h> exists even on freestanding compilers.  */
52942
52943 #ifdef __STDC__
52944 # include <limits.h>
52945 #else
52946 # include <assert.h>
52947 #endif
52948
52949 #undef $ac_func
52950
52951 /* Override any gcc2 internal prototype to avoid an error.  */
52952 #ifdef __cplusplus
52953 extern "C"
52954 {
52955 #endif
52956 /* We use char because int might match the return type of a gcc2
52957    builtin and then its argument prototype would still apply.  */
52958 char $ac_func ();
52959 /* The GNU C library defines this for functions which it implements
52960     to always fail with ENOSYS.  Some functions are actually named
52961     something starting with __ and the normal name is an alias.  */
52962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52963 choke me
52964 #else
52965 char (*f) () = $ac_func;
52966 #endif
52967 #ifdef __cplusplus
52968 }
52969 #endif
52970
52971 int
52972 main ()
52973 {
52974 return f != $ac_func;
52975   ;
52976   return 0;
52977 }
52978 _ACEOF
52979 rm -f conftest.$ac_objext conftest$ac_exeext
52980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52981   (eval $ac_link) 2>conftest.er1
52982   ac_status=$?
52983   grep -v '^ *+' conftest.er1 >conftest.err
52984   rm -f conftest.er1
52985   cat conftest.err >&5
52986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52987   (exit $ac_status); } &&
52988          { ac_try='test -z "$ac_c_werror_flag"
52989                          || test ! -s conftest.err'
52990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52991   (eval $ac_try) 2>&5
52992   ac_status=$?
52993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52994   (exit $ac_status); }; } &&
52995          { ac_try='test -s conftest$ac_exeext'
52996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52997   (eval $ac_try) 2>&5
52998   ac_status=$?
52999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53000   (exit $ac_status); }; }; then
53001   eval "$as_ac_var=yes"
53002 else
53003   echo "$as_me: failed program was:" >&5
53004 sed 's/^/| /' conftest.$ac_ext >&5
53005
53006 eval "$as_ac_var=no"
53007 fi
53008 rm -f conftest.err conftest.$ac_objext \
53009       conftest$ac_exeext conftest.$ac_ext
53010 fi
53011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53012 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53013 if test `eval echo '${'$as_ac_var'}'` = yes; then
53014   cat >>confdefs.h <<_ACEOF
53015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53016 _ACEOF
53017
53018 fi
53019 done
53020
53021
53022 ice_have_openlog=no
53023
53024 for ac_func in openlog
53025 do
53026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53027 echo "$as_me:$LINENO: checking for $ac_func" >&5
53028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53029 if eval "test \"\${$as_ac_var+set}\" = set"; then
53030   echo $ECHO_N "(cached) $ECHO_C" >&6
53031 else
53032   cat >conftest.$ac_ext <<_ACEOF
53033 /* confdefs.h.  */
53034 _ACEOF
53035 cat confdefs.h >>conftest.$ac_ext
53036 cat >>conftest.$ac_ext <<_ACEOF
53037 /* end confdefs.h.  */
53038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53040 #define $ac_func innocuous_$ac_func
53041
53042 /* System header to define __stub macros and hopefully few prototypes,
53043     which can conflict with char $ac_func (); below.
53044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53045     <limits.h> exists even on freestanding compilers.  */
53046
53047 #ifdef __STDC__
53048 # include <limits.h>
53049 #else
53050 # include <assert.h>
53051 #endif
53052
53053 #undef $ac_func
53054
53055 /* Override any gcc2 internal prototype to avoid an error.  */
53056 #ifdef __cplusplus
53057 extern "C"
53058 {
53059 #endif
53060 /* We use char because int might match the return type of a gcc2
53061    builtin and then its argument prototype would still apply.  */
53062 char $ac_func ();
53063 /* The GNU C library defines this for functions which it implements
53064     to always fail with ENOSYS.  Some functions are actually named
53065     something starting with __ and the normal name is an alias.  */
53066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53067 choke me
53068 #else
53069 char (*f) () = $ac_func;
53070 #endif
53071 #ifdef __cplusplus
53072 }
53073 #endif
53074
53075 int
53076 main ()
53077 {
53078 return f != $ac_func;
53079   ;
53080   return 0;
53081 }
53082 _ACEOF
53083 rm -f conftest.$ac_objext conftest$ac_exeext
53084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53085   (eval $ac_link) 2>conftest.er1
53086   ac_status=$?
53087   grep -v '^ *+' conftest.er1 >conftest.err
53088   rm -f conftest.er1
53089   cat conftest.err >&5
53090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53091   (exit $ac_status); } &&
53092          { ac_try='test -z "$ac_c_werror_flag"
53093                          || test ! -s conftest.err'
53094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53095   (eval $ac_try) 2>&5
53096   ac_status=$?
53097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53098   (exit $ac_status); }; } &&
53099          { ac_try='test -s conftest$ac_exeext'
53100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53101   (eval $ac_try) 2>&5
53102   ac_status=$?
53103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53104   (exit $ac_status); }; }; then
53105   eval "$as_ac_var=yes"
53106 else
53107   echo "$as_me: failed program was:" >&5
53108 sed 's/^/| /' conftest.$ac_ext >&5
53109
53110 eval "$as_ac_var=no"
53111 fi
53112 rm -f conftest.err conftest.$ac_objext \
53113       conftest$ac_exeext conftest.$ac_ext
53114 fi
53115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53117 if test `eval echo '${'$as_ac_var'}'` = yes; then
53118   cat >>confdefs.h <<_ACEOF
53119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53120 _ACEOF
53121  ice_have_openlog=yes
53122 fi
53123 done
53124
53125 if test "${ice_have_openlog}" = yes; then
53126 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
53127 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
53128 if test "${ice_cv_have_openlog_decl+set}" = set; then
53129   echo $ECHO_N "(cached) $ECHO_C" >&6
53130 else
53131
53132 ice_cv_have_openlog_decl=no
53133 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53134 ice_re_word='(^|[^a-zA-Z0-9_])'
53135 for header in syslog.h; do
53136 # Check for ordinary declaration
53137 cat >conftest.$ac_ext <<_ACEOF
53138 /* confdefs.h.  */
53139 _ACEOF
53140 cat confdefs.h >>conftest.$ac_ext
53141 cat >>conftest.$ac_ext <<_ACEOF
53142 /* end confdefs.h.  */
53143 #include <$header>
53144
53145 _ACEOF
53146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53147   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
53148   ice_cv_have_openlog_decl=yes
53149 fi
53150 rm -f conftest*
53151
53152 if test "$ice_cv_have_openlog_decl" = yes; then
53153         break
53154 fi
53155 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53156 cat >conftest.$ac_ext <<_ACEOF
53157 /* confdefs.h.  */
53158 _ACEOF
53159 cat confdefs.h >>conftest.$ac_ext
53160 cat >>conftest.$ac_ext <<_ACEOF
53161 /* end confdefs.h.  */
53162 #include <$header>
53163
53164 _ACEOF
53165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53166   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53167   ice_cv_have_openlog_decl=yes
53168 fi
53169 rm -f conftest*
53170
53171 if test "$ice_cv_have_openlog_decl" = yes; then
53172         break
53173 fi
53174 done
53175
53176 fi
53177
53178 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
53179 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
53180 if test "$ice_cv_have_openlog_decl" = yes; then
53181
53182 cat >>confdefs.h <<_ACEOF
53183 #define HAVE_OPENLOG_DECL 1
53184 _ACEOF
53185
53186 fi
53187 fi
53188
53189
53190 ice_have_pclose=no
53191
53192 for ac_func in pclose
53193 do
53194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53195 echo "$as_me:$LINENO: checking for $ac_func" >&5
53196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53197 if eval "test \"\${$as_ac_var+set}\" = set"; then
53198   echo $ECHO_N "(cached) $ECHO_C" >&6
53199 else
53200   cat >conftest.$ac_ext <<_ACEOF
53201 /* confdefs.h.  */
53202 _ACEOF
53203 cat confdefs.h >>conftest.$ac_ext
53204 cat >>conftest.$ac_ext <<_ACEOF
53205 /* end confdefs.h.  */
53206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53208 #define $ac_func innocuous_$ac_func
53209
53210 /* System header to define __stub macros and hopefully few prototypes,
53211     which can conflict with char $ac_func (); below.
53212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53213     <limits.h> exists even on freestanding compilers.  */
53214
53215 #ifdef __STDC__
53216 # include <limits.h>
53217 #else
53218 # include <assert.h>
53219 #endif
53220
53221 #undef $ac_func
53222
53223 /* Override any gcc2 internal prototype to avoid an error.  */
53224 #ifdef __cplusplus
53225 extern "C"
53226 {
53227 #endif
53228 /* We use char because int might match the return type of a gcc2
53229    builtin and then its argument prototype would still apply.  */
53230 char $ac_func ();
53231 /* The GNU C library defines this for functions which it implements
53232     to always fail with ENOSYS.  Some functions are actually named
53233     something starting with __ and the normal name is an alias.  */
53234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53235 choke me
53236 #else
53237 char (*f) () = $ac_func;
53238 #endif
53239 #ifdef __cplusplus
53240 }
53241 #endif
53242
53243 int
53244 main ()
53245 {
53246 return f != $ac_func;
53247   ;
53248   return 0;
53249 }
53250 _ACEOF
53251 rm -f conftest.$ac_objext conftest$ac_exeext
53252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53253   (eval $ac_link) 2>conftest.er1
53254   ac_status=$?
53255   grep -v '^ *+' conftest.er1 >conftest.err
53256   rm -f conftest.er1
53257   cat conftest.err >&5
53258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53259   (exit $ac_status); } &&
53260          { ac_try='test -z "$ac_c_werror_flag"
53261                          || test ! -s conftest.err'
53262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53263   (eval $ac_try) 2>&5
53264   ac_status=$?
53265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53266   (exit $ac_status); }; } &&
53267          { ac_try='test -s conftest$ac_exeext'
53268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53269   (eval $ac_try) 2>&5
53270   ac_status=$?
53271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53272   (exit $ac_status); }; }; then
53273   eval "$as_ac_var=yes"
53274 else
53275   echo "$as_me: failed program was:" >&5
53276 sed 's/^/| /' conftest.$ac_ext >&5
53277
53278 eval "$as_ac_var=no"
53279 fi
53280 rm -f conftest.err conftest.$ac_objext \
53281       conftest$ac_exeext conftest.$ac_ext
53282 fi
53283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53285 if test `eval echo '${'$as_ac_var'}'` = yes; then
53286   cat >>confdefs.h <<_ACEOF
53287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53288 _ACEOF
53289  ice_have_pclose=yes
53290 fi
53291 done
53292
53293 if test "${ice_have_pclose}" = yes; then
53294 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
53295 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
53296 if test "${ice_cv_have_pclose_decl+set}" = set; then
53297   echo $ECHO_N "(cached) $ECHO_C" >&6
53298 else
53299
53300 ice_cv_have_pclose_decl=no
53301 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53302 ice_re_word='(^|[^a-zA-Z0-9_])'
53303 for header in stdio.h; do
53304 # Check for ordinary declaration
53305 cat >conftest.$ac_ext <<_ACEOF
53306 /* confdefs.h.  */
53307 _ACEOF
53308 cat confdefs.h >>conftest.$ac_ext
53309 cat >>conftest.$ac_ext <<_ACEOF
53310 /* end confdefs.h.  */
53311 #include <$header>
53312
53313 _ACEOF
53314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53315   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
53316   ice_cv_have_pclose_decl=yes
53317 fi
53318 rm -f conftest*
53319
53320 if test "$ice_cv_have_pclose_decl" = yes; then
53321         break
53322 fi
53323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53324 cat >conftest.$ac_ext <<_ACEOF
53325 /* confdefs.h.  */
53326 _ACEOF
53327 cat confdefs.h >>conftest.$ac_ext
53328 cat >>conftest.$ac_ext <<_ACEOF
53329 /* end confdefs.h.  */
53330 #include <$header>
53331
53332 _ACEOF
53333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53334   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53335   ice_cv_have_pclose_decl=yes
53336 fi
53337 rm -f conftest*
53338
53339 if test "$ice_cv_have_pclose_decl" = yes; then
53340         break
53341 fi
53342 done
53343
53344 fi
53345
53346 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
53347 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
53348 if test "$ice_cv_have_pclose_decl" = yes; then
53349
53350 cat >>confdefs.h <<_ACEOF
53351 #define HAVE_PCLOSE_DECL 1
53352 _ACEOF
53353
53354 fi
53355 fi
53356
53357
53358 ice_have_perror=no
53359
53360 for ac_func in perror
53361 do
53362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53363 echo "$as_me:$LINENO: checking for $ac_func" >&5
53364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53365 if eval "test \"\${$as_ac_var+set}\" = set"; then
53366   echo $ECHO_N "(cached) $ECHO_C" >&6
53367 else
53368   cat >conftest.$ac_ext <<_ACEOF
53369 /* confdefs.h.  */
53370 _ACEOF
53371 cat confdefs.h >>conftest.$ac_ext
53372 cat >>conftest.$ac_ext <<_ACEOF
53373 /* end confdefs.h.  */
53374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53376 #define $ac_func innocuous_$ac_func
53377
53378 /* System header to define __stub macros and hopefully few prototypes,
53379     which can conflict with char $ac_func (); below.
53380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53381     <limits.h> exists even on freestanding compilers.  */
53382
53383 #ifdef __STDC__
53384 # include <limits.h>
53385 #else
53386 # include <assert.h>
53387 #endif
53388
53389 #undef $ac_func
53390
53391 /* Override any gcc2 internal prototype to avoid an error.  */
53392 #ifdef __cplusplus
53393 extern "C"
53394 {
53395 #endif
53396 /* We use char because int might match the return type of a gcc2
53397    builtin and then its argument prototype would still apply.  */
53398 char $ac_func ();
53399 /* The GNU C library defines this for functions which it implements
53400     to always fail with ENOSYS.  Some functions are actually named
53401     something starting with __ and the normal name is an alias.  */
53402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53403 choke me
53404 #else
53405 char (*f) () = $ac_func;
53406 #endif
53407 #ifdef __cplusplus
53408 }
53409 #endif
53410
53411 int
53412 main ()
53413 {
53414 return f != $ac_func;
53415   ;
53416   return 0;
53417 }
53418 _ACEOF
53419 rm -f conftest.$ac_objext conftest$ac_exeext
53420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53421   (eval $ac_link) 2>conftest.er1
53422   ac_status=$?
53423   grep -v '^ *+' conftest.er1 >conftest.err
53424   rm -f conftest.er1
53425   cat conftest.err >&5
53426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53427   (exit $ac_status); } &&
53428          { ac_try='test -z "$ac_c_werror_flag"
53429                          || test ! -s conftest.err'
53430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53431   (eval $ac_try) 2>&5
53432   ac_status=$?
53433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53434   (exit $ac_status); }; } &&
53435          { ac_try='test -s conftest$ac_exeext'
53436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53437   (eval $ac_try) 2>&5
53438   ac_status=$?
53439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53440   (exit $ac_status); }; }; then
53441   eval "$as_ac_var=yes"
53442 else
53443   echo "$as_me: failed program was:" >&5
53444 sed 's/^/| /' conftest.$ac_ext >&5
53445
53446 eval "$as_ac_var=no"
53447 fi
53448 rm -f conftest.err conftest.$ac_objext \
53449       conftest$ac_exeext conftest.$ac_ext
53450 fi
53451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53453 if test `eval echo '${'$as_ac_var'}'` = yes; then
53454   cat >>confdefs.h <<_ACEOF
53455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53456 _ACEOF
53457  ice_have_perror=yes
53458 fi
53459 done
53460
53461 if test "${ice_have_perror}" = yes; then
53462 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
53463 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
53464 if test "${ice_cv_have_perror_decl+set}" = set; then
53465   echo $ECHO_N "(cached) $ECHO_C" >&6
53466 else
53467
53468 ice_cv_have_perror_decl=no
53469 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53470 ice_re_word='(^|[^a-zA-Z0-9_])'
53471 for header in stdio.h; do
53472 # Check for ordinary declaration
53473 cat >conftest.$ac_ext <<_ACEOF
53474 /* confdefs.h.  */
53475 _ACEOF
53476 cat confdefs.h >>conftest.$ac_ext
53477 cat >>conftest.$ac_ext <<_ACEOF
53478 /* end confdefs.h.  */
53479 #include <$header>
53480
53481 _ACEOF
53482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53483   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
53484   ice_cv_have_perror_decl=yes
53485 fi
53486 rm -f conftest*
53487
53488 if test "$ice_cv_have_perror_decl" = yes; then
53489         break
53490 fi
53491 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53492 cat >conftest.$ac_ext <<_ACEOF
53493 /* confdefs.h.  */
53494 _ACEOF
53495 cat confdefs.h >>conftest.$ac_ext
53496 cat >>conftest.$ac_ext <<_ACEOF
53497 /* end confdefs.h.  */
53498 #include <$header>
53499
53500 _ACEOF
53501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53502   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53503   ice_cv_have_perror_decl=yes
53504 fi
53505 rm -f conftest*
53506
53507 if test "$ice_cv_have_perror_decl" = yes; then
53508         break
53509 fi
53510 done
53511
53512 fi
53513
53514 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
53515 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
53516 if test "$ice_cv_have_perror_decl" = yes; then
53517
53518 cat >>confdefs.h <<_ACEOF
53519 #define HAVE_PERROR_DECL 1
53520 _ACEOF
53521
53522 fi
53523 fi
53524
53525
53526 ice_have_printf=no
53527
53528 for ac_func in printf
53529 do
53530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53531 echo "$as_me:$LINENO: checking for $ac_func" >&5
53532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53533 if eval "test \"\${$as_ac_var+set}\" = set"; then
53534   echo $ECHO_N "(cached) $ECHO_C" >&6
53535 else
53536   cat >conftest.$ac_ext <<_ACEOF
53537 /* confdefs.h.  */
53538 _ACEOF
53539 cat confdefs.h >>conftest.$ac_ext
53540 cat >>conftest.$ac_ext <<_ACEOF
53541 /* end confdefs.h.  */
53542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53544 #define $ac_func innocuous_$ac_func
53545
53546 /* System header to define __stub macros and hopefully few prototypes,
53547     which can conflict with char $ac_func (); below.
53548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53549     <limits.h> exists even on freestanding compilers.  */
53550
53551 #ifdef __STDC__
53552 # include <limits.h>
53553 #else
53554 # include <assert.h>
53555 #endif
53556
53557 #undef $ac_func
53558
53559 /* Override any gcc2 internal prototype to avoid an error.  */
53560 #ifdef __cplusplus
53561 extern "C"
53562 {
53563 #endif
53564 /* We use char because int might match the return type of a gcc2
53565    builtin and then its argument prototype would still apply.  */
53566 char $ac_func ();
53567 /* The GNU C library defines this for functions which it implements
53568     to always fail with ENOSYS.  Some functions are actually named
53569     something starting with __ and the normal name is an alias.  */
53570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53571 choke me
53572 #else
53573 char (*f) () = $ac_func;
53574 #endif
53575 #ifdef __cplusplus
53576 }
53577 #endif
53578
53579 int
53580 main ()
53581 {
53582 return f != $ac_func;
53583   ;
53584   return 0;
53585 }
53586 _ACEOF
53587 rm -f conftest.$ac_objext conftest$ac_exeext
53588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53589   (eval $ac_link) 2>conftest.er1
53590   ac_status=$?
53591   grep -v '^ *+' conftest.er1 >conftest.err
53592   rm -f conftest.er1
53593   cat conftest.err >&5
53594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53595   (exit $ac_status); } &&
53596          { ac_try='test -z "$ac_c_werror_flag"
53597                          || test ! -s conftest.err'
53598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53599   (eval $ac_try) 2>&5
53600   ac_status=$?
53601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53602   (exit $ac_status); }; } &&
53603          { ac_try='test -s conftest$ac_exeext'
53604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53605   (eval $ac_try) 2>&5
53606   ac_status=$?
53607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53608   (exit $ac_status); }; }; then
53609   eval "$as_ac_var=yes"
53610 else
53611   echo "$as_me: failed program was:" >&5
53612 sed 's/^/| /' conftest.$ac_ext >&5
53613
53614 eval "$as_ac_var=no"
53615 fi
53616 rm -f conftest.err conftest.$ac_objext \
53617       conftest$ac_exeext conftest.$ac_ext
53618 fi
53619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53621 if test `eval echo '${'$as_ac_var'}'` = yes; then
53622   cat >>confdefs.h <<_ACEOF
53623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53624 _ACEOF
53625  ice_have_printf=yes
53626 fi
53627 done
53628
53629 if test "${ice_have_printf}" = yes; then
53630 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
53631 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
53632 if test "${ice_cv_have_printf_decl+set}" = set; then
53633   echo $ECHO_N "(cached) $ECHO_C" >&6
53634 else
53635
53636 ice_cv_have_printf_decl=no
53637 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53638 ice_re_word='(^|[^a-zA-Z0-9_])'
53639 for header in stdio.h; do
53640 # Check for ordinary declaration
53641 cat >conftest.$ac_ext <<_ACEOF
53642 /* confdefs.h.  */
53643 _ACEOF
53644 cat confdefs.h >>conftest.$ac_ext
53645 cat >>conftest.$ac_ext <<_ACEOF
53646 /* end confdefs.h.  */
53647 #include <$header>
53648
53649 _ACEOF
53650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53651   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
53652   ice_cv_have_printf_decl=yes
53653 fi
53654 rm -f conftest*
53655
53656 if test "$ice_cv_have_printf_decl" = yes; then
53657         break
53658 fi
53659 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53660 cat >conftest.$ac_ext <<_ACEOF
53661 /* confdefs.h.  */
53662 _ACEOF
53663 cat confdefs.h >>conftest.$ac_ext
53664 cat >>conftest.$ac_ext <<_ACEOF
53665 /* end confdefs.h.  */
53666 #include <$header>
53667
53668 _ACEOF
53669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53670   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53671   ice_cv_have_printf_decl=yes
53672 fi
53673 rm -f conftest*
53674
53675 if test "$ice_cv_have_printf_decl" = yes; then
53676         break
53677 fi
53678 done
53679
53680 fi
53681
53682 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
53683 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
53684 if test "$ice_cv_have_printf_decl" = yes; then
53685
53686 cat >>confdefs.h <<_ACEOF
53687 #define HAVE_PRINTF_DECL 1
53688 _ACEOF
53689
53690 fi
53691 fi
53692
53693
53694 for ac_func in putenv
53695 do
53696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53697 echo "$as_me:$LINENO: checking for $ac_func" >&5
53698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53699 if eval "test \"\${$as_ac_var+set}\" = set"; then
53700   echo $ECHO_N "(cached) $ECHO_C" >&6
53701 else
53702   cat >conftest.$ac_ext <<_ACEOF
53703 /* confdefs.h.  */
53704 _ACEOF
53705 cat confdefs.h >>conftest.$ac_ext
53706 cat >>conftest.$ac_ext <<_ACEOF
53707 /* end confdefs.h.  */
53708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53710 #define $ac_func innocuous_$ac_func
53711
53712 /* System header to define __stub macros and hopefully few prototypes,
53713     which can conflict with char $ac_func (); below.
53714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53715     <limits.h> exists even on freestanding compilers.  */
53716
53717 #ifdef __STDC__
53718 # include <limits.h>
53719 #else
53720 # include <assert.h>
53721 #endif
53722
53723 #undef $ac_func
53724
53725 /* Override any gcc2 internal prototype to avoid an error.  */
53726 #ifdef __cplusplus
53727 extern "C"
53728 {
53729 #endif
53730 /* We use char because int might match the return type of a gcc2
53731    builtin and then its argument prototype would still apply.  */
53732 char $ac_func ();
53733 /* The GNU C library defines this for functions which it implements
53734     to always fail with ENOSYS.  Some functions are actually named
53735     something starting with __ and the normal name is an alias.  */
53736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53737 choke me
53738 #else
53739 char (*f) () = $ac_func;
53740 #endif
53741 #ifdef __cplusplus
53742 }
53743 #endif
53744
53745 int
53746 main ()
53747 {
53748 return f != $ac_func;
53749   ;
53750   return 0;
53751 }
53752 _ACEOF
53753 rm -f conftest.$ac_objext conftest$ac_exeext
53754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53755   (eval $ac_link) 2>conftest.er1
53756   ac_status=$?
53757   grep -v '^ *+' conftest.er1 >conftest.err
53758   rm -f conftest.er1
53759   cat conftest.err >&5
53760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53761   (exit $ac_status); } &&
53762          { ac_try='test -z "$ac_c_werror_flag"
53763                          || test ! -s conftest.err'
53764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53765   (eval $ac_try) 2>&5
53766   ac_status=$?
53767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53768   (exit $ac_status); }; } &&
53769          { ac_try='test -s conftest$ac_exeext'
53770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53771   (eval $ac_try) 2>&5
53772   ac_status=$?
53773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53774   (exit $ac_status); }; }; then
53775   eval "$as_ac_var=yes"
53776 else
53777   echo "$as_me: failed program was:" >&5
53778 sed 's/^/| /' conftest.$ac_ext >&5
53779
53780 eval "$as_ac_var=no"
53781 fi
53782 rm -f conftest.err conftest.$ac_objext \
53783       conftest$ac_exeext conftest.$ac_ext
53784 fi
53785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53787 if test `eval echo '${'$as_ac_var'}'` = yes; then
53788   cat >>confdefs.h <<_ACEOF
53789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53790 _ACEOF
53791
53792 fi
53793 done
53794
53795
53796 ice_have_puts=no
53797
53798 for ac_func in puts
53799 do
53800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53801 echo "$as_me:$LINENO: checking for $ac_func" >&5
53802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53803 if eval "test \"\${$as_ac_var+set}\" = set"; then
53804   echo $ECHO_N "(cached) $ECHO_C" >&6
53805 else
53806   cat >conftest.$ac_ext <<_ACEOF
53807 /* confdefs.h.  */
53808 _ACEOF
53809 cat confdefs.h >>conftest.$ac_ext
53810 cat >>conftest.$ac_ext <<_ACEOF
53811 /* end confdefs.h.  */
53812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53814 #define $ac_func innocuous_$ac_func
53815
53816 /* System header to define __stub macros and hopefully few prototypes,
53817     which can conflict with char $ac_func (); below.
53818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53819     <limits.h> exists even on freestanding compilers.  */
53820
53821 #ifdef __STDC__
53822 # include <limits.h>
53823 #else
53824 # include <assert.h>
53825 #endif
53826
53827 #undef $ac_func
53828
53829 /* Override any gcc2 internal prototype to avoid an error.  */
53830 #ifdef __cplusplus
53831 extern "C"
53832 {
53833 #endif
53834 /* We use char because int might match the return type of a gcc2
53835    builtin and then its argument prototype would still apply.  */
53836 char $ac_func ();
53837 /* The GNU C library defines this for functions which it implements
53838     to always fail with ENOSYS.  Some functions are actually named
53839     something starting with __ and the normal name is an alias.  */
53840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53841 choke me
53842 #else
53843 char (*f) () = $ac_func;
53844 #endif
53845 #ifdef __cplusplus
53846 }
53847 #endif
53848
53849 int
53850 main ()
53851 {
53852 return f != $ac_func;
53853   ;
53854   return 0;
53855 }
53856 _ACEOF
53857 rm -f conftest.$ac_objext conftest$ac_exeext
53858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53859   (eval $ac_link) 2>conftest.er1
53860   ac_status=$?
53861   grep -v '^ *+' conftest.er1 >conftest.err
53862   rm -f conftest.er1
53863   cat conftest.err >&5
53864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53865   (exit $ac_status); } &&
53866          { ac_try='test -z "$ac_c_werror_flag"
53867                          || test ! -s conftest.err'
53868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53869   (eval $ac_try) 2>&5
53870   ac_status=$?
53871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53872   (exit $ac_status); }; } &&
53873          { ac_try='test -s conftest$ac_exeext'
53874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53875   (eval $ac_try) 2>&5
53876   ac_status=$?
53877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53878   (exit $ac_status); }; }; then
53879   eval "$as_ac_var=yes"
53880 else
53881   echo "$as_me: failed program was:" >&5
53882 sed 's/^/| /' conftest.$ac_ext >&5
53883
53884 eval "$as_ac_var=no"
53885 fi
53886 rm -f conftest.err conftest.$ac_objext \
53887       conftest$ac_exeext conftest.$ac_ext
53888 fi
53889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53891 if test `eval echo '${'$as_ac_var'}'` = yes; then
53892   cat >>confdefs.h <<_ACEOF
53893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53894 _ACEOF
53895  ice_have_puts=yes
53896 fi
53897 done
53898
53899 if test "${ice_have_puts}" = yes; then
53900 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
53901 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
53902 if test "${ice_cv_have_puts_decl+set}" = set; then
53903   echo $ECHO_N "(cached) $ECHO_C" >&6
53904 else
53905
53906 ice_cv_have_puts_decl=no
53907 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53908 ice_re_word='(^|[^a-zA-Z0-9_])'
53909 for header in stdio.h; do
53910 # Check for ordinary declaration
53911 cat >conftest.$ac_ext <<_ACEOF
53912 /* confdefs.h.  */
53913 _ACEOF
53914 cat confdefs.h >>conftest.$ac_ext
53915 cat >>conftest.$ac_ext <<_ACEOF
53916 /* end confdefs.h.  */
53917 #include <$header>
53918
53919 _ACEOF
53920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53921   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
53922   ice_cv_have_puts_decl=yes
53923 fi
53924 rm -f conftest*
53925
53926 if test "$ice_cv_have_puts_decl" = yes; then
53927         break
53928 fi
53929 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53930 cat >conftest.$ac_ext <<_ACEOF
53931 /* confdefs.h.  */
53932 _ACEOF
53933 cat confdefs.h >>conftest.$ac_ext
53934 cat >>conftest.$ac_ext <<_ACEOF
53935 /* end confdefs.h.  */
53936 #include <$header>
53937
53938 _ACEOF
53939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53940   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53941   ice_cv_have_puts_decl=yes
53942 fi
53943 rm -f conftest*
53944
53945 if test "$ice_cv_have_puts_decl" = yes; then
53946         break
53947 fi
53948 done
53949
53950 fi
53951
53952 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
53953 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
53954 if test "$ice_cv_have_puts_decl" = yes; then
53955
53956 cat >>confdefs.h <<_ACEOF
53957 #define HAVE_PUTS_DECL 1
53958 _ACEOF
53959
53960 fi
53961 fi
53962
53963
53964 ice_have_realloc=no
53965
53966 for ac_func in realloc
53967 do
53968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53969 echo "$as_me:$LINENO: checking for $ac_func" >&5
53970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53971 if eval "test \"\${$as_ac_var+set}\" = set"; then
53972   echo $ECHO_N "(cached) $ECHO_C" >&6
53973 else
53974   cat >conftest.$ac_ext <<_ACEOF
53975 /* confdefs.h.  */
53976 _ACEOF
53977 cat confdefs.h >>conftest.$ac_ext
53978 cat >>conftest.$ac_ext <<_ACEOF
53979 /* end confdefs.h.  */
53980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53981    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53982 #define $ac_func innocuous_$ac_func
53983
53984 /* System header to define __stub macros and hopefully few prototypes,
53985     which can conflict with char $ac_func (); below.
53986     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53987     <limits.h> exists even on freestanding compilers.  */
53988
53989 #ifdef __STDC__
53990 # include <limits.h>
53991 #else
53992 # include <assert.h>
53993 #endif
53994
53995 #undef $ac_func
53996
53997 /* Override any gcc2 internal prototype to avoid an error.  */
53998 #ifdef __cplusplus
53999 extern "C"
54000 {
54001 #endif
54002 /* We use char because int might match the return type of a gcc2
54003    builtin and then its argument prototype would still apply.  */
54004 char $ac_func ();
54005 /* The GNU C library defines this for functions which it implements
54006     to always fail with ENOSYS.  Some functions are actually named
54007     something starting with __ and the normal name is an alias.  */
54008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54009 choke me
54010 #else
54011 char (*f) () = $ac_func;
54012 #endif
54013 #ifdef __cplusplus
54014 }
54015 #endif
54016
54017 int
54018 main ()
54019 {
54020 return f != $ac_func;
54021   ;
54022   return 0;
54023 }
54024 _ACEOF
54025 rm -f conftest.$ac_objext conftest$ac_exeext
54026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54027   (eval $ac_link) 2>conftest.er1
54028   ac_status=$?
54029   grep -v '^ *+' conftest.er1 >conftest.err
54030   rm -f conftest.er1
54031   cat conftest.err >&5
54032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54033   (exit $ac_status); } &&
54034          { ac_try='test -z "$ac_c_werror_flag"
54035                          || test ! -s conftest.err'
54036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54037   (eval $ac_try) 2>&5
54038   ac_status=$?
54039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54040   (exit $ac_status); }; } &&
54041          { ac_try='test -s conftest$ac_exeext'
54042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54043   (eval $ac_try) 2>&5
54044   ac_status=$?
54045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54046   (exit $ac_status); }; }; then
54047   eval "$as_ac_var=yes"
54048 else
54049   echo "$as_me: failed program was:" >&5
54050 sed 's/^/| /' conftest.$ac_ext >&5
54051
54052 eval "$as_ac_var=no"
54053 fi
54054 rm -f conftest.err conftest.$ac_objext \
54055       conftest$ac_exeext conftest.$ac_ext
54056 fi
54057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54059 if test `eval echo '${'$as_ac_var'}'` = yes; then
54060   cat >>confdefs.h <<_ACEOF
54061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54062 _ACEOF
54063  ice_have_realloc=yes
54064 fi
54065 done
54066
54067 if test "${ice_have_realloc}" = yes; then
54068 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
54069 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
54070 if test "${ice_cv_have_realloc_decl+set}" = set; then
54071   echo $ECHO_N "(cached) $ECHO_C" >&6
54072 else
54073
54074 ice_cv_have_realloc_decl=no
54075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54076 ice_re_word='(^|[^a-zA-Z0-9_])'
54077 for header in stdlib.h; do
54078 # Check for ordinary declaration
54079 cat >conftest.$ac_ext <<_ACEOF
54080 /* confdefs.h.  */
54081 _ACEOF
54082 cat confdefs.h >>conftest.$ac_ext
54083 cat >>conftest.$ac_ext <<_ACEOF
54084 /* end confdefs.h.  */
54085 #include <$header>
54086
54087 _ACEOF
54088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54089   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
54090   ice_cv_have_realloc_decl=yes
54091 fi
54092 rm -f conftest*
54093
54094 if test "$ice_cv_have_realloc_decl" = yes; then
54095         break
54096 fi
54097 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54098 cat >conftest.$ac_ext <<_ACEOF
54099 /* confdefs.h.  */
54100 _ACEOF
54101 cat confdefs.h >>conftest.$ac_ext
54102 cat >>conftest.$ac_ext <<_ACEOF
54103 /* end confdefs.h.  */
54104 #include <$header>
54105
54106 _ACEOF
54107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54108   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54109   ice_cv_have_realloc_decl=yes
54110 fi
54111 rm -f conftest*
54112
54113 if test "$ice_cv_have_realloc_decl" = yes; then
54114         break
54115 fi
54116 done
54117
54118 fi
54119
54120 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
54121 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
54122 if test "$ice_cv_have_realloc_decl" = yes; then
54123
54124 cat >>confdefs.h <<_ACEOF
54125 #define HAVE_REALLOC_DECL 1
54126 _ACEOF
54127
54128 fi
54129 fi
54130
54131
54132 ice_have_recvfrom=no
54133
54134 for ac_func in recvfrom
54135 do
54136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54137 echo "$as_me:$LINENO: checking for $ac_func" >&5
54138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54139 if eval "test \"\${$as_ac_var+set}\" = set"; then
54140   echo $ECHO_N "(cached) $ECHO_C" >&6
54141 else
54142   cat >conftest.$ac_ext <<_ACEOF
54143 /* confdefs.h.  */
54144 _ACEOF
54145 cat confdefs.h >>conftest.$ac_ext
54146 cat >>conftest.$ac_ext <<_ACEOF
54147 /* end confdefs.h.  */
54148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54150 #define $ac_func innocuous_$ac_func
54151
54152 /* System header to define __stub macros and hopefully few prototypes,
54153     which can conflict with char $ac_func (); below.
54154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54155     <limits.h> exists even on freestanding compilers.  */
54156
54157 #ifdef __STDC__
54158 # include <limits.h>
54159 #else
54160 # include <assert.h>
54161 #endif
54162
54163 #undef $ac_func
54164
54165 /* Override any gcc2 internal prototype to avoid an error.  */
54166 #ifdef __cplusplus
54167 extern "C"
54168 {
54169 #endif
54170 /* We use char because int might match the return type of a gcc2
54171    builtin and then its argument prototype would still apply.  */
54172 char $ac_func ();
54173 /* The GNU C library defines this for functions which it implements
54174     to always fail with ENOSYS.  Some functions are actually named
54175     something starting with __ and the normal name is an alias.  */
54176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54177 choke me
54178 #else
54179 char (*f) () = $ac_func;
54180 #endif
54181 #ifdef __cplusplus
54182 }
54183 #endif
54184
54185 int
54186 main ()
54187 {
54188 return f != $ac_func;
54189   ;
54190   return 0;
54191 }
54192 _ACEOF
54193 rm -f conftest.$ac_objext conftest$ac_exeext
54194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54195   (eval $ac_link) 2>conftest.er1
54196   ac_status=$?
54197   grep -v '^ *+' conftest.er1 >conftest.err
54198   rm -f conftest.er1
54199   cat conftest.err >&5
54200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54201   (exit $ac_status); } &&
54202          { ac_try='test -z "$ac_c_werror_flag"
54203                          || test ! -s conftest.err'
54204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54205   (eval $ac_try) 2>&5
54206   ac_status=$?
54207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54208   (exit $ac_status); }; } &&
54209          { ac_try='test -s conftest$ac_exeext'
54210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54211   (eval $ac_try) 2>&5
54212   ac_status=$?
54213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54214   (exit $ac_status); }; }; then
54215   eval "$as_ac_var=yes"
54216 else
54217   echo "$as_me: failed program was:" >&5
54218 sed 's/^/| /' conftest.$ac_ext >&5
54219
54220 eval "$as_ac_var=no"
54221 fi
54222 rm -f conftest.err conftest.$ac_objext \
54223       conftest$ac_exeext conftest.$ac_ext
54224 fi
54225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54227 if test `eval echo '${'$as_ac_var'}'` = yes; then
54228   cat >>confdefs.h <<_ACEOF
54229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54230 _ACEOF
54231  ice_have_recvfrom=yes
54232 fi
54233 done
54234
54235 if test "${ice_have_recvfrom}" = yes; then
54236 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
54237 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
54238 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
54239   echo $ECHO_N "(cached) $ECHO_C" >&6
54240 else
54241
54242 ice_cv_have_recvfrom_decl=no
54243 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54244 ice_re_word='(^|[^a-zA-Z0-9_])'
54245 for header in sys/types.h sys/socket.h; do
54246 # Check for ordinary declaration
54247 cat >conftest.$ac_ext <<_ACEOF
54248 /* confdefs.h.  */
54249 _ACEOF
54250 cat confdefs.h >>conftest.$ac_ext
54251 cat >>conftest.$ac_ext <<_ACEOF
54252 /* end confdefs.h.  */
54253 #include <$header>
54254
54255 _ACEOF
54256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54257   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
54258   ice_cv_have_recvfrom_decl=yes
54259 fi
54260 rm -f conftest*
54261
54262 if test "$ice_cv_have_recvfrom_decl" = yes; then
54263         break
54264 fi
54265 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54266 cat >conftest.$ac_ext <<_ACEOF
54267 /* confdefs.h.  */
54268 _ACEOF
54269 cat confdefs.h >>conftest.$ac_ext
54270 cat >>conftest.$ac_ext <<_ACEOF
54271 /* end confdefs.h.  */
54272 #include <$header>
54273
54274 _ACEOF
54275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54276   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54277   ice_cv_have_recvfrom_decl=yes
54278 fi
54279 rm -f conftest*
54280
54281 if test "$ice_cv_have_recvfrom_decl" = yes; then
54282         break
54283 fi
54284 done
54285
54286 fi
54287
54288 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
54289 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
54290 if test "$ice_cv_have_recvfrom_decl" = yes; then
54291
54292 cat >>confdefs.h <<_ACEOF
54293 #define HAVE_RECVFROM_DECL 1
54294 _ACEOF
54295
54296 fi
54297 fi
54298
54299
54300 ice_have_remove=no
54301
54302 for ac_func in remove
54303 do
54304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54305 echo "$as_me:$LINENO: checking for $ac_func" >&5
54306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54307 if eval "test \"\${$as_ac_var+set}\" = set"; then
54308   echo $ECHO_N "(cached) $ECHO_C" >&6
54309 else
54310   cat >conftest.$ac_ext <<_ACEOF
54311 /* confdefs.h.  */
54312 _ACEOF
54313 cat confdefs.h >>conftest.$ac_ext
54314 cat >>conftest.$ac_ext <<_ACEOF
54315 /* end confdefs.h.  */
54316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54318 #define $ac_func innocuous_$ac_func
54319
54320 /* System header to define __stub macros and hopefully few prototypes,
54321     which can conflict with char $ac_func (); below.
54322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54323     <limits.h> exists even on freestanding compilers.  */
54324
54325 #ifdef __STDC__
54326 # include <limits.h>
54327 #else
54328 # include <assert.h>
54329 #endif
54330
54331 #undef $ac_func
54332
54333 /* Override any gcc2 internal prototype to avoid an error.  */
54334 #ifdef __cplusplus
54335 extern "C"
54336 {
54337 #endif
54338 /* We use char because int might match the return type of a gcc2
54339    builtin and then its argument prototype would still apply.  */
54340 char $ac_func ();
54341 /* The GNU C library defines this for functions which it implements
54342     to always fail with ENOSYS.  Some functions are actually named
54343     something starting with __ and the normal name is an alias.  */
54344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54345 choke me
54346 #else
54347 char (*f) () = $ac_func;
54348 #endif
54349 #ifdef __cplusplus
54350 }
54351 #endif
54352
54353 int
54354 main ()
54355 {
54356 return f != $ac_func;
54357   ;
54358   return 0;
54359 }
54360 _ACEOF
54361 rm -f conftest.$ac_objext conftest$ac_exeext
54362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54363   (eval $ac_link) 2>conftest.er1
54364   ac_status=$?
54365   grep -v '^ *+' conftest.er1 >conftest.err
54366   rm -f conftest.er1
54367   cat conftest.err >&5
54368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54369   (exit $ac_status); } &&
54370          { ac_try='test -z "$ac_c_werror_flag"
54371                          || test ! -s conftest.err'
54372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54373   (eval $ac_try) 2>&5
54374   ac_status=$?
54375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54376   (exit $ac_status); }; } &&
54377          { ac_try='test -s conftest$ac_exeext'
54378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54379   (eval $ac_try) 2>&5
54380   ac_status=$?
54381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54382   (exit $ac_status); }; }; then
54383   eval "$as_ac_var=yes"
54384 else
54385   echo "$as_me: failed program was:" >&5
54386 sed 's/^/| /' conftest.$ac_ext >&5
54387
54388 eval "$as_ac_var=no"
54389 fi
54390 rm -f conftest.err conftest.$ac_objext \
54391       conftest$ac_exeext conftest.$ac_ext
54392 fi
54393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54395 if test `eval echo '${'$as_ac_var'}'` = yes; then
54396   cat >>confdefs.h <<_ACEOF
54397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54398 _ACEOF
54399  ice_have_remove=yes
54400 fi
54401 done
54402
54403 if test "${ice_have_remove}" = yes; then
54404 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
54405 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
54406 if test "${ice_cv_have_remove_decl+set}" = set; then
54407   echo $ECHO_N "(cached) $ECHO_C" >&6
54408 else
54409
54410 ice_cv_have_remove_decl=no
54411 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54412 ice_re_word='(^|[^a-zA-Z0-9_])'
54413 for header in stdio.h; do
54414 # Check for ordinary declaration
54415 cat >conftest.$ac_ext <<_ACEOF
54416 /* confdefs.h.  */
54417 _ACEOF
54418 cat confdefs.h >>conftest.$ac_ext
54419 cat >>conftest.$ac_ext <<_ACEOF
54420 /* end confdefs.h.  */
54421 #include <$header>
54422
54423 _ACEOF
54424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54425   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
54426   ice_cv_have_remove_decl=yes
54427 fi
54428 rm -f conftest*
54429
54430 if test "$ice_cv_have_remove_decl" = yes; then
54431         break
54432 fi
54433 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54434 cat >conftest.$ac_ext <<_ACEOF
54435 /* confdefs.h.  */
54436 _ACEOF
54437 cat confdefs.h >>conftest.$ac_ext
54438 cat >>conftest.$ac_ext <<_ACEOF
54439 /* end confdefs.h.  */
54440 #include <$header>
54441
54442 _ACEOF
54443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54444   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54445   ice_cv_have_remove_decl=yes
54446 fi
54447 rm -f conftest*
54448
54449 if test "$ice_cv_have_remove_decl" = yes; then
54450         break
54451 fi
54452 done
54453
54454 fi
54455
54456 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
54457 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
54458 if test "$ice_cv_have_remove_decl" = yes; then
54459
54460 cat >>confdefs.h <<_ACEOF
54461 #define HAVE_REMOVE_DECL 1
54462 _ACEOF
54463
54464 fi
54465 fi
54466
54467
54468 ice_have_rename=no
54469
54470 for ac_func in rename
54471 do
54472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54473 echo "$as_me:$LINENO: checking for $ac_func" >&5
54474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54475 if eval "test \"\${$as_ac_var+set}\" = set"; then
54476   echo $ECHO_N "(cached) $ECHO_C" >&6
54477 else
54478   cat >conftest.$ac_ext <<_ACEOF
54479 /* confdefs.h.  */
54480 _ACEOF
54481 cat confdefs.h >>conftest.$ac_ext
54482 cat >>conftest.$ac_ext <<_ACEOF
54483 /* end confdefs.h.  */
54484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54486 #define $ac_func innocuous_$ac_func
54487
54488 /* System header to define __stub macros and hopefully few prototypes,
54489     which can conflict with char $ac_func (); below.
54490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54491     <limits.h> exists even on freestanding compilers.  */
54492
54493 #ifdef __STDC__
54494 # include <limits.h>
54495 #else
54496 # include <assert.h>
54497 #endif
54498
54499 #undef $ac_func
54500
54501 /* Override any gcc2 internal prototype to avoid an error.  */
54502 #ifdef __cplusplus
54503 extern "C"
54504 {
54505 #endif
54506 /* We use char because int might match the return type of a gcc2
54507    builtin and then its argument prototype would still apply.  */
54508 char $ac_func ();
54509 /* The GNU C library defines this for functions which it implements
54510     to always fail with ENOSYS.  Some functions are actually named
54511     something starting with __ and the normal name is an alias.  */
54512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54513 choke me
54514 #else
54515 char (*f) () = $ac_func;
54516 #endif
54517 #ifdef __cplusplus
54518 }
54519 #endif
54520
54521 int
54522 main ()
54523 {
54524 return f != $ac_func;
54525   ;
54526   return 0;
54527 }
54528 _ACEOF
54529 rm -f conftest.$ac_objext conftest$ac_exeext
54530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54531   (eval $ac_link) 2>conftest.er1
54532   ac_status=$?
54533   grep -v '^ *+' conftest.er1 >conftest.err
54534   rm -f conftest.er1
54535   cat conftest.err >&5
54536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54537   (exit $ac_status); } &&
54538          { ac_try='test -z "$ac_c_werror_flag"
54539                          || test ! -s conftest.err'
54540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54541   (eval $ac_try) 2>&5
54542   ac_status=$?
54543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54544   (exit $ac_status); }; } &&
54545          { ac_try='test -s conftest$ac_exeext'
54546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54547   (eval $ac_try) 2>&5
54548   ac_status=$?
54549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54550   (exit $ac_status); }; }; then
54551   eval "$as_ac_var=yes"
54552 else
54553   echo "$as_me: failed program was:" >&5
54554 sed 's/^/| /' conftest.$ac_ext >&5
54555
54556 eval "$as_ac_var=no"
54557 fi
54558 rm -f conftest.err conftest.$ac_objext \
54559       conftest$ac_exeext conftest.$ac_ext
54560 fi
54561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54563 if test `eval echo '${'$as_ac_var'}'` = yes; then
54564   cat >>confdefs.h <<_ACEOF
54565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54566 _ACEOF
54567  ice_have_rename=yes
54568 fi
54569 done
54570
54571 if test "${ice_have_rename}" = yes; then
54572 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
54573 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
54574 if test "${ice_cv_have_rename_decl+set}" = set; then
54575   echo $ECHO_N "(cached) $ECHO_C" >&6
54576 else
54577
54578 ice_cv_have_rename_decl=no
54579 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54580 ice_re_word='(^|[^a-zA-Z0-9_])'
54581 for header in stdio.h; do
54582 # Check for ordinary declaration
54583 cat >conftest.$ac_ext <<_ACEOF
54584 /* confdefs.h.  */
54585 _ACEOF
54586 cat confdefs.h >>conftest.$ac_ext
54587 cat >>conftest.$ac_ext <<_ACEOF
54588 /* end confdefs.h.  */
54589 #include <$header>
54590
54591 _ACEOF
54592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54593   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
54594   ice_cv_have_rename_decl=yes
54595 fi
54596 rm -f conftest*
54597
54598 if test "$ice_cv_have_rename_decl" = yes; then
54599         break
54600 fi
54601 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54602 cat >conftest.$ac_ext <<_ACEOF
54603 /* confdefs.h.  */
54604 _ACEOF
54605 cat confdefs.h >>conftest.$ac_ext
54606 cat >>conftest.$ac_ext <<_ACEOF
54607 /* end confdefs.h.  */
54608 #include <$header>
54609
54610 _ACEOF
54611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54612   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54613   ice_cv_have_rename_decl=yes
54614 fi
54615 rm -f conftest*
54616
54617 if test "$ice_cv_have_rename_decl" = yes; then
54618         break
54619 fi
54620 done
54621
54622 fi
54623
54624 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
54625 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
54626 if test "$ice_cv_have_rename_decl" = yes; then
54627
54628 cat >>confdefs.h <<_ACEOF
54629 #define HAVE_RENAME_DECL 1
54630 _ACEOF
54631
54632 fi
54633 fi
54634
54635
54636 ice_have_rewind=no
54637
54638 for ac_func in rewind
54639 do
54640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54641 echo "$as_me:$LINENO: checking for $ac_func" >&5
54642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54643 if eval "test \"\${$as_ac_var+set}\" = set"; then
54644   echo $ECHO_N "(cached) $ECHO_C" >&6
54645 else
54646   cat >conftest.$ac_ext <<_ACEOF
54647 /* confdefs.h.  */
54648 _ACEOF
54649 cat confdefs.h >>conftest.$ac_ext
54650 cat >>conftest.$ac_ext <<_ACEOF
54651 /* end confdefs.h.  */
54652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54654 #define $ac_func innocuous_$ac_func
54655
54656 /* System header to define __stub macros and hopefully few prototypes,
54657     which can conflict with char $ac_func (); below.
54658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54659     <limits.h> exists even on freestanding compilers.  */
54660
54661 #ifdef __STDC__
54662 # include <limits.h>
54663 #else
54664 # include <assert.h>
54665 #endif
54666
54667 #undef $ac_func
54668
54669 /* Override any gcc2 internal prototype to avoid an error.  */
54670 #ifdef __cplusplus
54671 extern "C"
54672 {
54673 #endif
54674 /* We use char because int might match the return type of a gcc2
54675    builtin and then its argument prototype would still apply.  */
54676 char $ac_func ();
54677 /* The GNU C library defines this for functions which it implements
54678     to always fail with ENOSYS.  Some functions are actually named
54679     something starting with __ and the normal name is an alias.  */
54680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54681 choke me
54682 #else
54683 char (*f) () = $ac_func;
54684 #endif
54685 #ifdef __cplusplus
54686 }
54687 #endif
54688
54689 int
54690 main ()
54691 {
54692 return f != $ac_func;
54693   ;
54694   return 0;
54695 }
54696 _ACEOF
54697 rm -f conftest.$ac_objext conftest$ac_exeext
54698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54699   (eval $ac_link) 2>conftest.er1
54700   ac_status=$?
54701   grep -v '^ *+' conftest.er1 >conftest.err
54702   rm -f conftest.er1
54703   cat conftest.err >&5
54704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54705   (exit $ac_status); } &&
54706          { ac_try='test -z "$ac_c_werror_flag"
54707                          || test ! -s conftest.err'
54708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54709   (eval $ac_try) 2>&5
54710   ac_status=$?
54711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54712   (exit $ac_status); }; } &&
54713          { ac_try='test -s conftest$ac_exeext'
54714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54715   (eval $ac_try) 2>&5
54716   ac_status=$?
54717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54718   (exit $ac_status); }; }; then
54719   eval "$as_ac_var=yes"
54720 else
54721   echo "$as_me: failed program was:" >&5
54722 sed 's/^/| /' conftest.$ac_ext >&5
54723
54724 eval "$as_ac_var=no"
54725 fi
54726 rm -f conftest.err conftest.$ac_objext \
54727       conftest$ac_exeext conftest.$ac_ext
54728 fi
54729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54731 if test `eval echo '${'$as_ac_var'}'` = yes; then
54732   cat >>confdefs.h <<_ACEOF
54733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54734 _ACEOF
54735  ice_have_rewind=yes
54736 fi
54737 done
54738
54739 if test "${ice_have_rewind}" = yes; then
54740 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
54741 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
54742 if test "${ice_cv_have_rewind_decl+set}" = set; then
54743   echo $ECHO_N "(cached) $ECHO_C" >&6
54744 else
54745
54746 ice_cv_have_rewind_decl=no
54747 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54748 ice_re_word='(^|[^a-zA-Z0-9_])'
54749 for header in stdio.h; do
54750 # Check for ordinary declaration
54751 cat >conftest.$ac_ext <<_ACEOF
54752 /* confdefs.h.  */
54753 _ACEOF
54754 cat confdefs.h >>conftest.$ac_ext
54755 cat >>conftest.$ac_ext <<_ACEOF
54756 /* end confdefs.h.  */
54757 #include <$header>
54758
54759 _ACEOF
54760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54761   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
54762   ice_cv_have_rewind_decl=yes
54763 fi
54764 rm -f conftest*
54765
54766 if test "$ice_cv_have_rewind_decl" = yes; then
54767         break
54768 fi
54769 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54770 cat >conftest.$ac_ext <<_ACEOF
54771 /* confdefs.h.  */
54772 _ACEOF
54773 cat confdefs.h >>conftest.$ac_ext
54774 cat >>conftest.$ac_ext <<_ACEOF
54775 /* end confdefs.h.  */
54776 #include <$header>
54777
54778 _ACEOF
54779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54780   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54781   ice_cv_have_rewind_decl=yes
54782 fi
54783 rm -f conftest*
54784
54785 if test "$ice_cv_have_rewind_decl" = yes; then
54786         break
54787 fi
54788 done
54789
54790 fi
54791
54792 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
54793 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
54794 if test "$ice_cv_have_rewind_decl" = yes; then
54795
54796 cat >>confdefs.h <<_ACEOF
54797 #define HAVE_REWIND_DECL 1
54798 _ACEOF
54799
54800 fi
54801 fi
54802
54803
54804 for ac_func in rmdir
54805 do
54806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54807 echo "$as_me:$LINENO: checking for $ac_func" >&5
54808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54809 if eval "test \"\${$as_ac_var+set}\" = set"; then
54810   echo $ECHO_N "(cached) $ECHO_C" >&6
54811 else
54812   cat >conftest.$ac_ext <<_ACEOF
54813 /* confdefs.h.  */
54814 _ACEOF
54815 cat confdefs.h >>conftest.$ac_ext
54816 cat >>conftest.$ac_ext <<_ACEOF
54817 /* end confdefs.h.  */
54818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54820 #define $ac_func innocuous_$ac_func
54821
54822 /* System header to define __stub macros and hopefully few prototypes,
54823     which can conflict with char $ac_func (); below.
54824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54825     <limits.h> exists even on freestanding compilers.  */
54826
54827 #ifdef __STDC__
54828 # include <limits.h>
54829 #else
54830 # include <assert.h>
54831 #endif
54832
54833 #undef $ac_func
54834
54835 /* Override any gcc2 internal prototype to avoid an error.  */
54836 #ifdef __cplusplus
54837 extern "C"
54838 {
54839 #endif
54840 /* We use char because int might match the return type of a gcc2
54841    builtin and then its argument prototype would still apply.  */
54842 char $ac_func ();
54843 /* The GNU C library defines this for functions which it implements
54844     to always fail with ENOSYS.  Some functions are actually named
54845     something starting with __ and the normal name is an alias.  */
54846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54847 choke me
54848 #else
54849 char (*f) () = $ac_func;
54850 #endif
54851 #ifdef __cplusplus
54852 }
54853 #endif
54854
54855 int
54856 main ()
54857 {
54858 return f != $ac_func;
54859   ;
54860   return 0;
54861 }
54862 _ACEOF
54863 rm -f conftest.$ac_objext conftest$ac_exeext
54864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54865   (eval $ac_link) 2>conftest.er1
54866   ac_status=$?
54867   grep -v '^ *+' conftest.er1 >conftest.err
54868   rm -f conftest.er1
54869   cat conftest.err >&5
54870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54871   (exit $ac_status); } &&
54872          { ac_try='test -z "$ac_c_werror_flag"
54873                          || test ! -s conftest.err'
54874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54875   (eval $ac_try) 2>&5
54876   ac_status=$?
54877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54878   (exit $ac_status); }; } &&
54879          { ac_try='test -s conftest$ac_exeext'
54880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54881   (eval $ac_try) 2>&5
54882   ac_status=$?
54883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54884   (exit $ac_status); }; }; then
54885   eval "$as_ac_var=yes"
54886 else
54887   echo "$as_me: failed program was:" >&5
54888 sed 's/^/| /' conftest.$ac_ext >&5
54889
54890 eval "$as_ac_var=no"
54891 fi
54892 rm -f conftest.err conftest.$ac_objext \
54893       conftest$ac_exeext conftest.$ac_ext
54894 fi
54895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54897 if test `eval echo '${'$as_ac_var'}'` = yes; then
54898   cat >>confdefs.h <<_ACEOF
54899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54900 _ACEOF
54901
54902 fi
54903 done
54904
54905
54906 ice_have_ruserok=no
54907
54908 for ac_func in ruserok
54909 do
54910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54911 echo "$as_me:$LINENO: checking for $ac_func" >&5
54912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54913 if eval "test \"\${$as_ac_var+set}\" = set"; then
54914   echo $ECHO_N "(cached) $ECHO_C" >&6
54915 else
54916   cat >conftest.$ac_ext <<_ACEOF
54917 /* confdefs.h.  */
54918 _ACEOF
54919 cat confdefs.h >>conftest.$ac_ext
54920 cat >>conftest.$ac_ext <<_ACEOF
54921 /* end confdefs.h.  */
54922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54924 #define $ac_func innocuous_$ac_func
54925
54926 /* System header to define __stub macros and hopefully few prototypes,
54927     which can conflict with char $ac_func (); below.
54928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54929     <limits.h> exists even on freestanding compilers.  */
54930
54931 #ifdef __STDC__
54932 # include <limits.h>
54933 #else
54934 # include <assert.h>
54935 #endif
54936
54937 #undef $ac_func
54938
54939 /* Override any gcc2 internal prototype to avoid an error.  */
54940 #ifdef __cplusplus
54941 extern "C"
54942 {
54943 #endif
54944 /* We use char because int might match the return type of a gcc2
54945    builtin and then its argument prototype would still apply.  */
54946 char $ac_func ();
54947 /* The GNU C library defines this for functions which it implements
54948     to always fail with ENOSYS.  Some functions are actually named
54949     something starting with __ and the normal name is an alias.  */
54950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54951 choke me
54952 #else
54953 char (*f) () = $ac_func;
54954 #endif
54955 #ifdef __cplusplus
54956 }
54957 #endif
54958
54959 int
54960 main ()
54961 {
54962 return f != $ac_func;
54963   ;
54964   return 0;
54965 }
54966 _ACEOF
54967 rm -f conftest.$ac_objext conftest$ac_exeext
54968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54969   (eval $ac_link) 2>conftest.er1
54970   ac_status=$?
54971   grep -v '^ *+' conftest.er1 >conftest.err
54972   rm -f conftest.er1
54973   cat conftest.err >&5
54974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54975   (exit $ac_status); } &&
54976          { ac_try='test -z "$ac_c_werror_flag"
54977                          || test ! -s conftest.err'
54978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54979   (eval $ac_try) 2>&5
54980   ac_status=$?
54981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54982   (exit $ac_status); }; } &&
54983          { ac_try='test -s conftest$ac_exeext'
54984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54985   (eval $ac_try) 2>&5
54986   ac_status=$?
54987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54988   (exit $ac_status); }; }; then
54989   eval "$as_ac_var=yes"
54990 else
54991   echo "$as_me: failed program was:" >&5
54992 sed 's/^/| /' conftest.$ac_ext >&5
54993
54994 eval "$as_ac_var=no"
54995 fi
54996 rm -f conftest.err conftest.$ac_objext \
54997       conftest$ac_exeext conftest.$ac_ext
54998 fi
54999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55001 if test `eval echo '${'$as_ac_var'}'` = yes; then
55002   cat >>confdefs.h <<_ACEOF
55003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55004 _ACEOF
55005  ice_have_ruserok=yes
55006 fi
55007 done
55008
55009 if test "${ice_have_ruserok}" = yes; then
55010 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
55011 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
55012 if test "${ice_cv_have_ruserok_decl+set}" = set; then
55013   echo $ECHO_N "(cached) $ECHO_C" >&6
55014 else
55015
55016 ice_cv_have_ruserok_decl=no
55017 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55018 ice_re_word='(^|[^a-zA-Z0-9_])'
55019 for header in netdb.h sys/socket.h libc.h unistd.h; do
55020 # Check for ordinary declaration
55021 cat >conftest.$ac_ext <<_ACEOF
55022 /* confdefs.h.  */
55023 _ACEOF
55024 cat confdefs.h >>conftest.$ac_ext
55025 cat >>conftest.$ac_ext <<_ACEOF
55026 /* end confdefs.h.  */
55027 #include <$header>
55028
55029 _ACEOF
55030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55031   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
55032   ice_cv_have_ruserok_decl=yes
55033 fi
55034 rm -f conftest*
55035
55036 if test "$ice_cv_have_ruserok_decl" = yes; then
55037         break
55038 fi
55039 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55040 cat >conftest.$ac_ext <<_ACEOF
55041 /* confdefs.h.  */
55042 _ACEOF
55043 cat confdefs.h >>conftest.$ac_ext
55044 cat >>conftest.$ac_ext <<_ACEOF
55045 /* end confdefs.h.  */
55046 #include <$header>
55047
55048 _ACEOF
55049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55050   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55051   ice_cv_have_ruserok_decl=yes
55052 fi
55053 rm -f conftest*
55054
55055 if test "$ice_cv_have_ruserok_decl" = yes; then
55056         break
55057 fi
55058 done
55059
55060 fi
55061
55062 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
55063 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
55064 if test "$ice_cv_have_ruserok_decl" = yes; then
55065
55066 cat >>confdefs.h <<_ACEOF
55067 #define HAVE_RUSEROK_DECL 1
55068 _ACEOF
55069
55070 fi
55071 fi
55072
55073
55074 ice_have_select=no
55075
55076 for ac_func in select
55077 do
55078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55079 echo "$as_me:$LINENO: checking for $ac_func" >&5
55080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55081 if eval "test \"\${$as_ac_var+set}\" = set"; then
55082   echo $ECHO_N "(cached) $ECHO_C" >&6
55083 else
55084   cat >conftest.$ac_ext <<_ACEOF
55085 /* confdefs.h.  */
55086 _ACEOF
55087 cat confdefs.h >>conftest.$ac_ext
55088 cat >>conftest.$ac_ext <<_ACEOF
55089 /* end confdefs.h.  */
55090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55092 #define $ac_func innocuous_$ac_func
55093
55094 /* System header to define __stub macros and hopefully few prototypes,
55095     which can conflict with char $ac_func (); below.
55096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55097     <limits.h> exists even on freestanding compilers.  */
55098
55099 #ifdef __STDC__
55100 # include <limits.h>
55101 #else
55102 # include <assert.h>
55103 #endif
55104
55105 #undef $ac_func
55106
55107 /* Override any gcc2 internal prototype to avoid an error.  */
55108 #ifdef __cplusplus
55109 extern "C"
55110 {
55111 #endif
55112 /* We use char because int might match the return type of a gcc2
55113    builtin and then its argument prototype would still apply.  */
55114 char $ac_func ();
55115 /* The GNU C library defines this for functions which it implements
55116     to always fail with ENOSYS.  Some functions are actually named
55117     something starting with __ and the normal name is an alias.  */
55118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55119 choke me
55120 #else
55121 char (*f) () = $ac_func;
55122 #endif
55123 #ifdef __cplusplus
55124 }
55125 #endif
55126
55127 int
55128 main ()
55129 {
55130 return f != $ac_func;
55131   ;
55132   return 0;
55133 }
55134 _ACEOF
55135 rm -f conftest.$ac_objext conftest$ac_exeext
55136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55137   (eval $ac_link) 2>conftest.er1
55138   ac_status=$?
55139   grep -v '^ *+' conftest.er1 >conftest.err
55140   rm -f conftest.er1
55141   cat conftest.err >&5
55142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55143   (exit $ac_status); } &&
55144          { ac_try='test -z "$ac_c_werror_flag"
55145                          || test ! -s conftest.err'
55146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55147   (eval $ac_try) 2>&5
55148   ac_status=$?
55149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55150   (exit $ac_status); }; } &&
55151          { ac_try='test -s conftest$ac_exeext'
55152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55153   (eval $ac_try) 2>&5
55154   ac_status=$?
55155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55156   (exit $ac_status); }; }; then
55157   eval "$as_ac_var=yes"
55158 else
55159   echo "$as_me: failed program was:" >&5
55160 sed 's/^/| /' conftest.$ac_ext >&5
55161
55162 eval "$as_ac_var=no"
55163 fi
55164 rm -f conftest.err conftest.$ac_objext \
55165       conftest$ac_exeext conftest.$ac_ext
55166 fi
55167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55169 if test `eval echo '${'$as_ac_var'}'` = yes; then
55170   cat >>confdefs.h <<_ACEOF
55171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55172 _ACEOF
55173  ice_have_select=yes
55174 fi
55175 done
55176
55177 if test "${ice_have_select}" = yes; then
55178 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
55179 echo $ECHO_N "checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h... $ECHO_C" >&6
55180 if test "${ice_cv_have_select_decl+set}" = set; then
55181   echo $ECHO_N "(cached) $ECHO_C" >&6
55182 else
55183
55184 ice_cv_have_select_decl=no
55185 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55186 ice_re_word='(^|[^a-zA-Z0-9_])'
55187 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
55188 # Check for ordinary declaration
55189 cat >conftest.$ac_ext <<_ACEOF
55190 /* confdefs.h.  */
55191 _ACEOF
55192 cat confdefs.h >>conftest.$ac_ext
55193 cat >>conftest.$ac_ext <<_ACEOF
55194 /* end confdefs.h.  */
55195 #include <$header>
55196
55197 _ACEOF
55198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55199   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
55200   ice_cv_have_select_decl=yes
55201 fi
55202 rm -f conftest*
55203
55204 if test "$ice_cv_have_select_decl" = yes; then
55205         break
55206 fi
55207 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55208 cat >conftest.$ac_ext <<_ACEOF
55209 /* confdefs.h.  */
55210 _ACEOF
55211 cat confdefs.h >>conftest.$ac_ext
55212 cat >>conftest.$ac_ext <<_ACEOF
55213 /* end confdefs.h.  */
55214 #include <$header>
55215
55216 _ACEOF
55217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55218   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55219   ice_cv_have_select_decl=yes
55220 fi
55221 rm -f conftest*
55222
55223 if test "$ice_cv_have_select_decl" = yes; then
55224         break
55225 fi
55226 done
55227
55228 fi
55229
55230 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
55231 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
55232 if test "$ice_cv_have_select_decl" = yes; then
55233
55234 cat >>confdefs.h <<_ACEOF
55235 #define HAVE_SELECT_DECL 1
55236 _ACEOF
55237
55238 fi
55239 fi
55240
55241
55242         echo "$as_me:$LINENO: checking for select() argument type" >&5
55243 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
55244 if test "${amanda_cv_select_arg_type+set}" = set; then
55245   echo $ECHO_N "(cached) $ECHO_C" >&6
55246 else
55247
55248                 rm -f conftest.c
55249                 cat <<EOF >conftest.$ac_ext
55250 #include "confdefs.h"
55251 #ifdef HAVE_SYS_TIME_H
55252 # include <sys/time.h>
55253 #endif
55254 #ifdef HAVE_SYS_TYPES_H
55255 # include <sys/types.h>
55256 #endif
55257 #ifdef HAVE_SYS_SELECT_H
55258 #  include <sys/select.h>
55259 #endif
55260 #ifdef HAVE_SYS_SOCKET_H
55261 #  include <sys/socket.h>
55262 #endif
55263 #ifdef HAVE_UNISTD_H
55264 # include <unistd.h>
55265 #endif
55266
55267 int main()
55268 {
55269 #ifdef FD_SET_POINTER
55270         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
55271 #else
55272         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
55273 #endif
55274         return 0;
55275 }
55276 EOF
55277
55278                                                                                                                                 amanda_cv_select_arg_type=no
55279                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
55280                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
55281                 if test $? -ne 0; then
55282                     amanda_cv_select_arg_type=int
55283                 fi
55284                 if test "$amanda_cv_select_arg_type" = no; then
55285                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
55286                     if test $? -ne 0; then
55287                         amanda_cv_select_arg_type=fd_set
55288                     fi
55289                 fi
55290                 if test "$amanda_cv_select_arg_type" = no; then
55291                     wc_fdset=`wc -l <conftest.fd_set`
55292                     wc_int=`wc -l <conftest.int`
55293                     if test "$wc_fdset" -le "$wc_int"; then
55294                         amanda_cv_select_arg_type=fd_set
55295                     else
55296                         amanda_cv_select_arg_type=int
55297                     fi
55298                 fi
55299                 rm -f conftest*
55300
55301
55302 fi
55303 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
55304 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
55305
55306 cat >>confdefs.h <<_ACEOF
55307 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
55308 _ACEOF
55309
55310
55311
55312
55313 ice_have_sendto=no
55314
55315 for ac_func in sendto
55316 do
55317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55318 echo "$as_me:$LINENO: checking for $ac_func" >&5
55319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55320 if eval "test \"\${$as_ac_var+set}\" = set"; then
55321   echo $ECHO_N "(cached) $ECHO_C" >&6
55322 else
55323   cat >conftest.$ac_ext <<_ACEOF
55324 /* confdefs.h.  */
55325 _ACEOF
55326 cat confdefs.h >>conftest.$ac_ext
55327 cat >>conftest.$ac_ext <<_ACEOF
55328 /* end confdefs.h.  */
55329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55331 #define $ac_func innocuous_$ac_func
55332
55333 /* System header to define __stub macros and hopefully few prototypes,
55334     which can conflict with char $ac_func (); below.
55335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55336     <limits.h> exists even on freestanding compilers.  */
55337
55338 #ifdef __STDC__
55339 # include <limits.h>
55340 #else
55341 # include <assert.h>
55342 #endif
55343
55344 #undef $ac_func
55345
55346 /* Override any gcc2 internal prototype to avoid an error.  */
55347 #ifdef __cplusplus
55348 extern "C"
55349 {
55350 #endif
55351 /* We use char because int might match the return type of a gcc2
55352    builtin and then its argument prototype would still apply.  */
55353 char $ac_func ();
55354 /* The GNU C library defines this for functions which it implements
55355     to always fail with ENOSYS.  Some functions are actually named
55356     something starting with __ and the normal name is an alias.  */
55357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55358 choke me
55359 #else
55360 char (*f) () = $ac_func;
55361 #endif
55362 #ifdef __cplusplus
55363 }
55364 #endif
55365
55366 int
55367 main ()
55368 {
55369 return f != $ac_func;
55370   ;
55371   return 0;
55372 }
55373 _ACEOF
55374 rm -f conftest.$ac_objext conftest$ac_exeext
55375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55376   (eval $ac_link) 2>conftest.er1
55377   ac_status=$?
55378   grep -v '^ *+' conftest.er1 >conftest.err
55379   rm -f conftest.er1
55380   cat conftest.err >&5
55381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55382   (exit $ac_status); } &&
55383          { ac_try='test -z "$ac_c_werror_flag"
55384                          || test ! -s conftest.err'
55385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55386   (eval $ac_try) 2>&5
55387   ac_status=$?
55388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55389   (exit $ac_status); }; } &&
55390          { ac_try='test -s conftest$ac_exeext'
55391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55392   (eval $ac_try) 2>&5
55393   ac_status=$?
55394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55395   (exit $ac_status); }; }; then
55396   eval "$as_ac_var=yes"
55397 else
55398   echo "$as_me: failed program was:" >&5
55399 sed 's/^/| /' conftest.$ac_ext >&5
55400
55401 eval "$as_ac_var=no"
55402 fi
55403 rm -f conftest.err conftest.$ac_objext \
55404       conftest$ac_exeext conftest.$ac_ext
55405 fi
55406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55408 if test `eval echo '${'$as_ac_var'}'` = yes; then
55409   cat >>confdefs.h <<_ACEOF
55410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55411 _ACEOF
55412  ice_have_sendto=yes
55413 fi
55414 done
55415
55416 if test "${ice_have_sendto}" = yes; then
55417 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
55418 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
55419 if test "${ice_cv_have_sendto_decl+set}" = set; then
55420   echo $ECHO_N "(cached) $ECHO_C" >&6
55421 else
55422
55423 ice_cv_have_sendto_decl=no
55424 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55425 ice_re_word='(^|[^a-zA-Z0-9_])'
55426 for header in sys/types.h sys/socket.h; do
55427 # Check for ordinary declaration
55428 cat >conftest.$ac_ext <<_ACEOF
55429 /* confdefs.h.  */
55430 _ACEOF
55431 cat confdefs.h >>conftest.$ac_ext
55432 cat >>conftest.$ac_ext <<_ACEOF
55433 /* end confdefs.h.  */
55434 #include <$header>
55435
55436 _ACEOF
55437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55438   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
55439   ice_cv_have_sendto_decl=yes
55440 fi
55441 rm -f conftest*
55442
55443 if test "$ice_cv_have_sendto_decl" = yes; then
55444         break
55445 fi
55446 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55447 cat >conftest.$ac_ext <<_ACEOF
55448 /* confdefs.h.  */
55449 _ACEOF
55450 cat confdefs.h >>conftest.$ac_ext
55451 cat >>conftest.$ac_ext <<_ACEOF
55452 /* end confdefs.h.  */
55453 #include <$header>
55454
55455 _ACEOF
55456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55457   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55458   ice_cv_have_sendto_decl=yes
55459 fi
55460 rm -f conftest*
55461
55462 if test "$ice_cv_have_sendto_decl" = yes; then
55463         break
55464 fi
55465 done
55466
55467 fi
55468
55469 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
55470 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
55471 if test "$ice_cv_have_sendto_decl" = yes; then
55472
55473 cat >>confdefs.h <<_ACEOF
55474 #define HAVE_SENDTO_DECL 1
55475 _ACEOF
55476
55477 fi
55478 fi
55479
55480
55481 ice_have_setegid=no
55482
55483 for ac_func in setegid
55484 do
55485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55486 echo "$as_me:$LINENO: checking for $ac_func" >&5
55487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55488 if eval "test \"\${$as_ac_var+set}\" = set"; then
55489   echo $ECHO_N "(cached) $ECHO_C" >&6
55490 else
55491   cat >conftest.$ac_ext <<_ACEOF
55492 /* confdefs.h.  */
55493 _ACEOF
55494 cat confdefs.h >>conftest.$ac_ext
55495 cat >>conftest.$ac_ext <<_ACEOF
55496 /* end confdefs.h.  */
55497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55499 #define $ac_func innocuous_$ac_func
55500
55501 /* System header to define __stub macros and hopefully few prototypes,
55502     which can conflict with char $ac_func (); below.
55503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55504     <limits.h> exists even on freestanding compilers.  */
55505
55506 #ifdef __STDC__
55507 # include <limits.h>
55508 #else
55509 # include <assert.h>
55510 #endif
55511
55512 #undef $ac_func
55513
55514 /* Override any gcc2 internal prototype to avoid an error.  */
55515 #ifdef __cplusplus
55516 extern "C"
55517 {
55518 #endif
55519 /* We use char because int might match the return type of a gcc2
55520    builtin and then its argument prototype would still apply.  */
55521 char $ac_func ();
55522 /* The GNU C library defines this for functions which it implements
55523     to always fail with ENOSYS.  Some functions are actually named
55524     something starting with __ and the normal name is an alias.  */
55525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55526 choke me
55527 #else
55528 char (*f) () = $ac_func;
55529 #endif
55530 #ifdef __cplusplus
55531 }
55532 #endif
55533
55534 int
55535 main ()
55536 {
55537 return f != $ac_func;
55538   ;
55539   return 0;
55540 }
55541 _ACEOF
55542 rm -f conftest.$ac_objext conftest$ac_exeext
55543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55544   (eval $ac_link) 2>conftest.er1
55545   ac_status=$?
55546   grep -v '^ *+' conftest.er1 >conftest.err
55547   rm -f conftest.er1
55548   cat conftest.err >&5
55549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55550   (exit $ac_status); } &&
55551          { ac_try='test -z "$ac_c_werror_flag"
55552                          || test ! -s conftest.err'
55553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55554   (eval $ac_try) 2>&5
55555   ac_status=$?
55556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55557   (exit $ac_status); }; } &&
55558          { ac_try='test -s conftest$ac_exeext'
55559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55560   (eval $ac_try) 2>&5
55561   ac_status=$?
55562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55563   (exit $ac_status); }; }; then
55564   eval "$as_ac_var=yes"
55565 else
55566   echo "$as_me: failed program was:" >&5
55567 sed 's/^/| /' conftest.$ac_ext >&5
55568
55569 eval "$as_ac_var=no"
55570 fi
55571 rm -f conftest.err conftest.$ac_objext \
55572       conftest$ac_exeext conftest.$ac_ext
55573 fi
55574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55576 if test `eval echo '${'$as_ac_var'}'` = yes; then
55577   cat >>confdefs.h <<_ACEOF
55578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55579 _ACEOF
55580  ice_have_setegid=yes
55581 fi
55582 done
55583
55584 if test "${ice_have_setegid}" = yes; then
55585 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
55586 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
55587 if test "${ice_cv_have_setegid_decl+set}" = set; then
55588   echo $ECHO_N "(cached) $ECHO_C" >&6
55589 else
55590
55591 ice_cv_have_setegid_decl=no
55592 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55593 ice_re_word='(^|[^a-zA-Z0-9_])'
55594 for header in unistd.h; do
55595 # Check for ordinary declaration
55596 cat >conftest.$ac_ext <<_ACEOF
55597 /* confdefs.h.  */
55598 _ACEOF
55599 cat confdefs.h >>conftest.$ac_ext
55600 cat >>conftest.$ac_ext <<_ACEOF
55601 /* end confdefs.h.  */
55602 #include <$header>
55603
55604 _ACEOF
55605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55606   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
55607   ice_cv_have_setegid_decl=yes
55608 fi
55609 rm -f conftest*
55610
55611 if test "$ice_cv_have_setegid_decl" = yes; then
55612         break
55613 fi
55614 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55615 cat >conftest.$ac_ext <<_ACEOF
55616 /* confdefs.h.  */
55617 _ACEOF
55618 cat confdefs.h >>conftest.$ac_ext
55619 cat >>conftest.$ac_ext <<_ACEOF
55620 /* end confdefs.h.  */
55621 #include <$header>
55622
55623 _ACEOF
55624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55625   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55626   ice_cv_have_setegid_decl=yes
55627 fi
55628 rm -f conftest*
55629
55630 if test "$ice_cv_have_setegid_decl" = yes; then
55631         break
55632 fi
55633 done
55634
55635 fi
55636
55637 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
55638 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
55639 if test "$ice_cv_have_setegid_decl" = yes; then
55640
55641 cat >>confdefs.h <<_ACEOF
55642 #define HAVE_SETEGID_DECL 1
55643 _ACEOF
55644
55645 fi
55646 fi
55647
55648
55649 ice_have_seteuid=no
55650
55651 for ac_func in seteuid
55652 do
55653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55654 echo "$as_me:$LINENO: checking for $ac_func" >&5
55655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55656 if eval "test \"\${$as_ac_var+set}\" = set"; then
55657   echo $ECHO_N "(cached) $ECHO_C" >&6
55658 else
55659   cat >conftest.$ac_ext <<_ACEOF
55660 /* confdefs.h.  */
55661 _ACEOF
55662 cat confdefs.h >>conftest.$ac_ext
55663 cat >>conftest.$ac_ext <<_ACEOF
55664 /* end confdefs.h.  */
55665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55667 #define $ac_func innocuous_$ac_func
55668
55669 /* System header to define __stub macros and hopefully few prototypes,
55670     which can conflict with char $ac_func (); below.
55671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55672     <limits.h> exists even on freestanding compilers.  */
55673
55674 #ifdef __STDC__
55675 # include <limits.h>
55676 #else
55677 # include <assert.h>
55678 #endif
55679
55680 #undef $ac_func
55681
55682 /* Override any gcc2 internal prototype to avoid an error.  */
55683 #ifdef __cplusplus
55684 extern "C"
55685 {
55686 #endif
55687 /* We use char because int might match the return type of a gcc2
55688    builtin and then its argument prototype would still apply.  */
55689 char $ac_func ();
55690 /* The GNU C library defines this for functions which it implements
55691     to always fail with ENOSYS.  Some functions are actually named
55692     something starting with __ and the normal name is an alias.  */
55693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55694 choke me
55695 #else
55696 char (*f) () = $ac_func;
55697 #endif
55698 #ifdef __cplusplus
55699 }
55700 #endif
55701
55702 int
55703 main ()
55704 {
55705 return f != $ac_func;
55706   ;
55707   return 0;
55708 }
55709 _ACEOF
55710 rm -f conftest.$ac_objext conftest$ac_exeext
55711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55712   (eval $ac_link) 2>conftest.er1
55713   ac_status=$?
55714   grep -v '^ *+' conftest.er1 >conftest.err
55715   rm -f conftest.er1
55716   cat conftest.err >&5
55717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55718   (exit $ac_status); } &&
55719          { ac_try='test -z "$ac_c_werror_flag"
55720                          || test ! -s conftest.err'
55721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55722   (eval $ac_try) 2>&5
55723   ac_status=$?
55724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55725   (exit $ac_status); }; } &&
55726          { ac_try='test -s conftest$ac_exeext'
55727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55728   (eval $ac_try) 2>&5
55729   ac_status=$?
55730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55731   (exit $ac_status); }; }; then
55732   eval "$as_ac_var=yes"
55733 else
55734   echo "$as_me: failed program was:" >&5
55735 sed 's/^/| /' conftest.$ac_ext >&5
55736
55737 eval "$as_ac_var=no"
55738 fi
55739 rm -f conftest.err conftest.$ac_objext \
55740       conftest$ac_exeext conftest.$ac_ext
55741 fi
55742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55744 if test `eval echo '${'$as_ac_var'}'` = yes; then
55745   cat >>confdefs.h <<_ACEOF
55746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55747 _ACEOF
55748  ice_have_seteuid=yes
55749 fi
55750 done
55751
55752 if test "${ice_have_seteuid}" = yes; then
55753 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
55754 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
55755 if test "${ice_cv_have_seteuid_decl+set}" = set; then
55756   echo $ECHO_N "(cached) $ECHO_C" >&6
55757 else
55758
55759 ice_cv_have_seteuid_decl=no
55760 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55761 ice_re_word='(^|[^a-zA-Z0-9_])'
55762 for header in unistd.h; do
55763 # Check for ordinary declaration
55764 cat >conftest.$ac_ext <<_ACEOF
55765 /* confdefs.h.  */
55766 _ACEOF
55767 cat confdefs.h >>conftest.$ac_ext
55768 cat >>conftest.$ac_ext <<_ACEOF
55769 /* end confdefs.h.  */
55770 #include <$header>
55771
55772 _ACEOF
55773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55774   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
55775   ice_cv_have_seteuid_decl=yes
55776 fi
55777 rm -f conftest*
55778
55779 if test "$ice_cv_have_seteuid_decl" = yes; then
55780         break
55781 fi
55782 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55783 cat >conftest.$ac_ext <<_ACEOF
55784 /* confdefs.h.  */
55785 _ACEOF
55786 cat confdefs.h >>conftest.$ac_ext
55787 cat >>conftest.$ac_ext <<_ACEOF
55788 /* end confdefs.h.  */
55789 #include <$header>
55790
55791 _ACEOF
55792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55793   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55794   ice_cv_have_seteuid_decl=yes
55795 fi
55796 rm -f conftest*
55797
55798 if test "$ice_cv_have_seteuid_decl" = yes; then
55799         break
55800 fi
55801 done
55802
55803 fi
55804
55805 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
55806 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
55807 if test "$ice_cv_have_seteuid_decl" = yes; then
55808
55809 cat >>confdefs.h <<_ACEOF
55810 #define HAVE_SETEUID_DECL 1
55811 _ACEOF
55812
55813 fi
55814 fi
55815
55816
55817 for ac_func in setmntent
55818 do
55819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55820 echo "$as_me:$LINENO: checking for $ac_func" >&5
55821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55822 if eval "test \"\${$as_ac_var+set}\" = set"; then
55823   echo $ECHO_N "(cached) $ECHO_C" >&6
55824 else
55825   cat >conftest.$ac_ext <<_ACEOF
55826 /* confdefs.h.  */
55827 _ACEOF
55828 cat confdefs.h >>conftest.$ac_ext
55829 cat >>conftest.$ac_ext <<_ACEOF
55830 /* end confdefs.h.  */
55831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55833 #define $ac_func innocuous_$ac_func
55834
55835 /* System header to define __stub macros and hopefully few prototypes,
55836     which can conflict with char $ac_func (); below.
55837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55838     <limits.h> exists even on freestanding compilers.  */
55839
55840 #ifdef __STDC__
55841 # include <limits.h>
55842 #else
55843 # include <assert.h>
55844 #endif
55845
55846 #undef $ac_func
55847
55848 /* Override any gcc2 internal prototype to avoid an error.  */
55849 #ifdef __cplusplus
55850 extern "C"
55851 {
55852 #endif
55853 /* We use char because int might match the return type of a gcc2
55854    builtin and then its argument prototype would still apply.  */
55855 char $ac_func ();
55856 /* The GNU C library defines this for functions which it implements
55857     to always fail with ENOSYS.  Some functions are actually named
55858     something starting with __ and the normal name is an alias.  */
55859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55860 choke me
55861 #else
55862 char (*f) () = $ac_func;
55863 #endif
55864 #ifdef __cplusplus
55865 }
55866 #endif
55867
55868 int
55869 main ()
55870 {
55871 return f != $ac_func;
55872   ;
55873   return 0;
55874 }
55875 _ACEOF
55876 rm -f conftest.$ac_objext conftest$ac_exeext
55877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55878   (eval $ac_link) 2>conftest.er1
55879   ac_status=$?
55880   grep -v '^ *+' conftest.er1 >conftest.err
55881   rm -f conftest.er1
55882   cat conftest.err >&5
55883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55884   (exit $ac_status); } &&
55885          { ac_try='test -z "$ac_c_werror_flag"
55886                          || test ! -s conftest.err'
55887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55888   (eval $ac_try) 2>&5
55889   ac_status=$?
55890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55891   (exit $ac_status); }; } &&
55892          { ac_try='test -s conftest$ac_exeext'
55893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55894   (eval $ac_try) 2>&5
55895   ac_status=$?
55896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55897   (exit $ac_status); }; }; then
55898   eval "$as_ac_var=yes"
55899 else
55900   echo "$as_me: failed program was:" >&5
55901 sed 's/^/| /' conftest.$ac_ext >&5
55902
55903 eval "$as_ac_var=no"
55904 fi
55905 rm -f conftest.err conftest.$ac_objext \
55906       conftest$ac_exeext conftest.$ac_ext
55907 fi
55908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55910 if test `eval echo '${'$as_ac_var'}'` = yes; then
55911   cat >>confdefs.h <<_ACEOF
55912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55913 _ACEOF
55914
55915 fi
55916 done
55917
55918
55919 for ac_func in shquote
55920 do
55921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55922 echo "$as_me:$LINENO: checking for $ac_func" >&5
55923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55924 if eval "test \"\${$as_ac_var+set}\" = set"; then
55925   echo $ECHO_N "(cached) $ECHO_C" >&6
55926 else
55927   cat >conftest.$ac_ext <<_ACEOF
55928 /* confdefs.h.  */
55929 _ACEOF
55930 cat confdefs.h >>conftest.$ac_ext
55931 cat >>conftest.$ac_ext <<_ACEOF
55932 /* end confdefs.h.  */
55933 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55935 #define $ac_func innocuous_$ac_func
55936
55937 /* System header to define __stub macros and hopefully few prototypes,
55938     which can conflict with char $ac_func (); below.
55939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55940     <limits.h> exists even on freestanding compilers.  */
55941
55942 #ifdef __STDC__
55943 # include <limits.h>
55944 #else
55945 # include <assert.h>
55946 #endif
55947
55948 #undef $ac_func
55949
55950 /* Override any gcc2 internal prototype to avoid an error.  */
55951 #ifdef __cplusplus
55952 extern "C"
55953 {
55954 #endif
55955 /* We use char because int might match the return type of a gcc2
55956    builtin and then its argument prototype would still apply.  */
55957 char $ac_func ();
55958 /* The GNU C library defines this for functions which it implements
55959     to always fail with ENOSYS.  Some functions are actually named
55960     something starting with __ and the normal name is an alias.  */
55961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55962 choke me
55963 #else
55964 char (*f) () = $ac_func;
55965 #endif
55966 #ifdef __cplusplus
55967 }
55968 #endif
55969
55970 int
55971 main ()
55972 {
55973 return f != $ac_func;
55974   ;
55975   return 0;
55976 }
55977 _ACEOF
55978 rm -f conftest.$ac_objext conftest$ac_exeext
55979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55980   (eval $ac_link) 2>conftest.er1
55981   ac_status=$?
55982   grep -v '^ *+' conftest.er1 >conftest.err
55983   rm -f conftest.er1
55984   cat conftest.err >&5
55985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55986   (exit $ac_status); } &&
55987          { ac_try='test -z "$ac_c_werror_flag"
55988                          || test ! -s conftest.err'
55989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55990   (eval $ac_try) 2>&5
55991   ac_status=$?
55992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55993   (exit $ac_status); }; } &&
55994          { ac_try='test -s conftest$ac_exeext'
55995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55996   (eval $ac_try) 2>&5
55997   ac_status=$?
55998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55999   (exit $ac_status); }; }; then
56000   eval "$as_ac_var=yes"
56001 else
56002   echo "$as_me: failed program was:" >&5
56003 sed 's/^/| /' conftest.$ac_ext >&5
56004
56005 eval "$as_ac_var=no"
56006 fi
56007 rm -f conftest.err conftest.$ac_objext \
56008       conftest$ac_exeext conftest.$ac_ext
56009 fi
56010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56011 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56012 if test `eval echo '${'$as_ac_var'}'` = yes; then
56013   cat >>confdefs.h <<_ACEOF
56014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56015 _ACEOF
56016
56017 fi
56018 done
56019
56020
56021
56022 ice_have_setresgid=no
56023
56024 for ac_func in setresgid
56025 do
56026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56027 echo "$as_me:$LINENO: checking for $ac_func" >&5
56028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56029 if eval "test \"\${$as_ac_var+set}\" = set"; then
56030   echo $ECHO_N "(cached) $ECHO_C" >&6
56031 else
56032   cat >conftest.$ac_ext <<_ACEOF
56033 /* confdefs.h.  */
56034 _ACEOF
56035 cat confdefs.h >>conftest.$ac_ext
56036 cat >>conftest.$ac_ext <<_ACEOF
56037 /* end confdefs.h.  */
56038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56040 #define $ac_func innocuous_$ac_func
56041
56042 /* System header to define __stub macros and hopefully few prototypes,
56043     which can conflict with char $ac_func (); below.
56044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56045     <limits.h> exists even on freestanding compilers.  */
56046
56047 #ifdef __STDC__
56048 # include <limits.h>
56049 #else
56050 # include <assert.h>
56051 #endif
56052
56053 #undef $ac_func
56054
56055 /* Override any gcc2 internal prototype to avoid an error.  */
56056 #ifdef __cplusplus
56057 extern "C"
56058 {
56059 #endif
56060 /* We use char because int might match the return type of a gcc2
56061    builtin and then its argument prototype would still apply.  */
56062 char $ac_func ();
56063 /* The GNU C library defines this for functions which it implements
56064     to always fail with ENOSYS.  Some functions are actually named
56065     something starting with __ and the normal name is an alias.  */
56066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56067 choke me
56068 #else
56069 char (*f) () = $ac_func;
56070 #endif
56071 #ifdef __cplusplus
56072 }
56073 #endif
56074
56075 int
56076 main ()
56077 {
56078 return f != $ac_func;
56079   ;
56080   return 0;
56081 }
56082 _ACEOF
56083 rm -f conftest.$ac_objext conftest$ac_exeext
56084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56085   (eval $ac_link) 2>conftest.er1
56086   ac_status=$?
56087   grep -v '^ *+' conftest.er1 >conftest.err
56088   rm -f conftest.er1
56089   cat conftest.err >&5
56090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56091   (exit $ac_status); } &&
56092          { ac_try='test -z "$ac_c_werror_flag"
56093                          || test ! -s conftest.err'
56094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56095   (eval $ac_try) 2>&5
56096   ac_status=$?
56097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56098   (exit $ac_status); }; } &&
56099          { ac_try='test -s conftest$ac_exeext'
56100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56101   (eval $ac_try) 2>&5
56102   ac_status=$?
56103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56104   (exit $ac_status); }; }; then
56105   eval "$as_ac_var=yes"
56106 else
56107   echo "$as_me: failed program was:" >&5
56108 sed 's/^/| /' conftest.$ac_ext >&5
56109
56110 eval "$as_ac_var=no"
56111 fi
56112 rm -f conftest.err conftest.$ac_objext \
56113       conftest$ac_exeext conftest.$ac_ext
56114 fi
56115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56117 if test `eval echo '${'$as_ac_var'}'` = yes; then
56118   cat >>confdefs.h <<_ACEOF
56119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56120 _ACEOF
56121  ice_have_setresgid=yes
56122 fi
56123 done
56124
56125 if test "${ice_have_setresgid}" = yes; then
56126 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
56127 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
56128 if test "${ice_cv_have_setresgid_decl+set}" = set; then
56129   echo $ECHO_N "(cached) $ECHO_C" >&6
56130 else
56131
56132 ice_cv_have_setresgid_decl=no
56133 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56134 ice_re_word='(^|[^a-zA-Z0-9_])'
56135 for header in unistd.h; do
56136 # Check for ordinary declaration
56137 cat >conftest.$ac_ext <<_ACEOF
56138 /* confdefs.h.  */
56139 _ACEOF
56140 cat confdefs.h >>conftest.$ac_ext
56141 cat >>conftest.$ac_ext <<_ACEOF
56142 /* end confdefs.h.  */
56143 #include <$header>
56144
56145 _ACEOF
56146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56147   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
56148   ice_cv_have_setresgid_decl=yes
56149 fi
56150 rm -f conftest*
56151
56152 if test "$ice_cv_have_setresgid_decl" = yes; then
56153         break
56154 fi
56155 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56156 cat >conftest.$ac_ext <<_ACEOF
56157 /* confdefs.h.  */
56158 _ACEOF
56159 cat confdefs.h >>conftest.$ac_ext
56160 cat >>conftest.$ac_ext <<_ACEOF
56161 /* end confdefs.h.  */
56162 #include <$header>
56163
56164 _ACEOF
56165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56166   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56167   ice_cv_have_setresgid_decl=yes
56168 fi
56169 rm -f conftest*
56170
56171 if test "$ice_cv_have_setresgid_decl" = yes; then
56172         break
56173 fi
56174 done
56175
56176 fi
56177
56178 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
56179 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
56180 if test "$ice_cv_have_setresgid_decl" = yes; then
56181
56182 cat >>confdefs.h <<_ACEOF
56183 #define HAVE_SETRESGID_DECL 1
56184 _ACEOF
56185
56186 fi
56187 fi
56188
56189
56190 ice_have_setresuid=no
56191
56192 for ac_func in setresuid
56193 do
56194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56195 echo "$as_me:$LINENO: checking for $ac_func" >&5
56196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56197 if eval "test \"\${$as_ac_var+set}\" = set"; then
56198   echo $ECHO_N "(cached) $ECHO_C" >&6
56199 else
56200   cat >conftest.$ac_ext <<_ACEOF
56201 /* confdefs.h.  */
56202 _ACEOF
56203 cat confdefs.h >>conftest.$ac_ext
56204 cat >>conftest.$ac_ext <<_ACEOF
56205 /* end confdefs.h.  */
56206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56208 #define $ac_func innocuous_$ac_func
56209
56210 /* System header to define __stub macros and hopefully few prototypes,
56211     which can conflict with char $ac_func (); below.
56212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56213     <limits.h> exists even on freestanding compilers.  */
56214
56215 #ifdef __STDC__
56216 # include <limits.h>
56217 #else
56218 # include <assert.h>
56219 #endif
56220
56221 #undef $ac_func
56222
56223 /* Override any gcc2 internal prototype to avoid an error.  */
56224 #ifdef __cplusplus
56225 extern "C"
56226 {
56227 #endif
56228 /* We use char because int might match the return type of a gcc2
56229    builtin and then its argument prototype would still apply.  */
56230 char $ac_func ();
56231 /* The GNU C library defines this for functions which it implements
56232     to always fail with ENOSYS.  Some functions are actually named
56233     something starting with __ and the normal name is an alias.  */
56234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56235 choke me
56236 #else
56237 char (*f) () = $ac_func;
56238 #endif
56239 #ifdef __cplusplus
56240 }
56241 #endif
56242
56243 int
56244 main ()
56245 {
56246 return f != $ac_func;
56247   ;
56248   return 0;
56249 }
56250 _ACEOF
56251 rm -f conftest.$ac_objext conftest$ac_exeext
56252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56253   (eval $ac_link) 2>conftest.er1
56254   ac_status=$?
56255   grep -v '^ *+' conftest.er1 >conftest.err
56256   rm -f conftest.er1
56257   cat conftest.err >&5
56258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56259   (exit $ac_status); } &&
56260          { ac_try='test -z "$ac_c_werror_flag"
56261                          || test ! -s conftest.err'
56262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56263   (eval $ac_try) 2>&5
56264   ac_status=$?
56265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56266   (exit $ac_status); }; } &&
56267          { ac_try='test -s conftest$ac_exeext'
56268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56269   (eval $ac_try) 2>&5
56270   ac_status=$?
56271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56272   (exit $ac_status); }; }; then
56273   eval "$as_ac_var=yes"
56274 else
56275   echo "$as_me: failed program was:" >&5
56276 sed 's/^/| /' conftest.$ac_ext >&5
56277
56278 eval "$as_ac_var=no"
56279 fi
56280 rm -f conftest.err conftest.$ac_objext \
56281       conftest$ac_exeext conftest.$ac_ext
56282 fi
56283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56285 if test `eval echo '${'$as_ac_var'}'` = yes; then
56286   cat >>confdefs.h <<_ACEOF
56287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56288 _ACEOF
56289  ice_have_setresuid=yes
56290 fi
56291 done
56292
56293 if test "${ice_have_setresuid}" = yes; then
56294 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
56295 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
56296 if test "${ice_cv_have_setresuid_decl+set}" = set; then
56297   echo $ECHO_N "(cached) $ECHO_C" >&6
56298 else
56299
56300 ice_cv_have_setresuid_decl=no
56301 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56302 ice_re_word='(^|[^a-zA-Z0-9_])'
56303 for header in unistd.h; do
56304 # Check for ordinary declaration
56305 cat >conftest.$ac_ext <<_ACEOF
56306 /* confdefs.h.  */
56307 _ACEOF
56308 cat confdefs.h >>conftest.$ac_ext
56309 cat >>conftest.$ac_ext <<_ACEOF
56310 /* end confdefs.h.  */
56311 #include <$header>
56312
56313 _ACEOF
56314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56315   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
56316   ice_cv_have_setresuid_decl=yes
56317 fi
56318 rm -f conftest*
56319
56320 if test "$ice_cv_have_setresuid_decl" = yes; then
56321         break
56322 fi
56323 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56324 cat >conftest.$ac_ext <<_ACEOF
56325 /* confdefs.h.  */
56326 _ACEOF
56327 cat confdefs.h >>conftest.$ac_ext
56328 cat >>conftest.$ac_ext <<_ACEOF
56329 /* end confdefs.h.  */
56330 #include <$header>
56331
56332 _ACEOF
56333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56334   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56335   ice_cv_have_setresuid_decl=yes
56336 fi
56337 rm -f conftest*
56338
56339 if test "$ice_cv_have_setresuid_decl" = yes; then
56340         break
56341 fi
56342 done
56343
56344 fi
56345
56346 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
56347 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
56348 if test "$ice_cv_have_setresuid_decl" = yes; then
56349
56350 cat >>confdefs.h <<_ACEOF
56351 #define HAVE_SETRESUID_DECL 1
56352 _ACEOF
56353
56354 fi
56355 fi
56356
56357
56358 ice_have_snprintf=no
56359
56360 for ac_func in snprintf
56361 do
56362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56363 echo "$as_me:$LINENO: checking for $ac_func" >&5
56364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56365 if eval "test \"\${$as_ac_var+set}\" = set"; then
56366   echo $ECHO_N "(cached) $ECHO_C" >&6
56367 else
56368   cat >conftest.$ac_ext <<_ACEOF
56369 /* confdefs.h.  */
56370 _ACEOF
56371 cat confdefs.h >>conftest.$ac_ext
56372 cat >>conftest.$ac_ext <<_ACEOF
56373 /* end confdefs.h.  */
56374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56376 #define $ac_func innocuous_$ac_func
56377
56378 /* System header to define __stub macros and hopefully few prototypes,
56379     which can conflict with char $ac_func (); below.
56380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56381     <limits.h> exists even on freestanding compilers.  */
56382
56383 #ifdef __STDC__
56384 # include <limits.h>
56385 #else
56386 # include <assert.h>
56387 #endif
56388
56389 #undef $ac_func
56390
56391 /* Override any gcc2 internal prototype to avoid an error.  */
56392 #ifdef __cplusplus
56393 extern "C"
56394 {
56395 #endif
56396 /* We use char because int might match the return type of a gcc2
56397    builtin and then its argument prototype would still apply.  */
56398 char $ac_func ();
56399 /* The GNU C library defines this for functions which it implements
56400     to always fail with ENOSYS.  Some functions are actually named
56401     something starting with __ and the normal name is an alias.  */
56402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56403 choke me
56404 #else
56405 char (*f) () = $ac_func;
56406 #endif
56407 #ifdef __cplusplus
56408 }
56409 #endif
56410
56411 int
56412 main ()
56413 {
56414 return f != $ac_func;
56415   ;
56416   return 0;
56417 }
56418 _ACEOF
56419 rm -f conftest.$ac_objext conftest$ac_exeext
56420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56421   (eval $ac_link) 2>conftest.er1
56422   ac_status=$?
56423   grep -v '^ *+' conftest.er1 >conftest.err
56424   rm -f conftest.er1
56425   cat conftest.err >&5
56426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56427   (exit $ac_status); } &&
56428          { ac_try='test -z "$ac_c_werror_flag"
56429                          || test ! -s conftest.err'
56430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56431   (eval $ac_try) 2>&5
56432   ac_status=$?
56433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56434   (exit $ac_status); }; } &&
56435          { ac_try='test -s conftest$ac_exeext'
56436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56437   (eval $ac_try) 2>&5
56438   ac_status=$?
56439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56440   (exit $ac_status); }; }; then
56441   eval "$as_ac_var=yes"
56442 else
56443   echo "$as_me: failed program was:" >&5
56444 sed 's/^/| /' conftest.$ac_ext >&5
56445
56446 eval "$as_ac_var=no"
56447 fi
56448 rm -f conftest.err conftest.$ac_objext \
56449       conftest$ac_exeext conftest.$ac_ext
56450 fi
56451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56453 if test `eval echo '${'$as_ac_var'}'` = yes; then
56454   cat >>confdefs.h <<_ACEOF
56455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56456 _ACEOF
56457  ice_have_snprintf=yes
56458 fi
56459 done
56460
56461 if test "${ice_have_snprintf}" = yes; then
56462 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
56463 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
56464 if test "${ice_cv_have_snprintf_decl+set}" = set; then
56465   echo $ECHO_N "(cached) $ECHO_C" >&6
56466 else
56467
56468 ice_cv_have_snprintf_decl=no
56469 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56470 ice_re_word='(^|[^a-zA-Z0-9_])'
56471 for header in stdio.h; do
56472 # Check for ordinary declaration
56473 cat >conftest.$ac_ext <<_ACEOF
56474 /* confdefs.h.  */
56475 _ACEOF
56476 cat confdefs.h >>conftest.$ac_ext
56477 cat >>conftest.$ac_ext <<_ACEOF
56478 /* end confdefs.h.  */
56479 #include <$header>
56480
56481 _ACEOF
56482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56483   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
56484   ice_cv_have_snprintf_decl=yes
56485 fi
56486 rm -f conftest*
56487
56488 if test "$ice_cv_have_snprintf_decl" = yes; then
56489         break
56490 fi
56491 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56492 cat >conftest.$ac_ext <<_ACEOF
56493 /* confdefs.h.  */
56494 _ACEOF
56495 cat confdefs.h >>conftest.$ac_ext
56496 cat >>conftest.$ac_ext <<_ACEOF
56497 /* end confdefs.h.  */
56498 #include <$header>
56499
56500 _ACEOF
56501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56502   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56503   ice_cv_have_snprintf_decl=yes
56504 fi
56505 rm -f conftest*
56506
56507 if test "$ice_cv_have_snprintf_decl" = yes; then
56508         break
56509 fi
56510 done
56511
56512 fi
56513
56514 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
56515 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
56516 if test "$ice_cv_have_snprintf_decl" = yes; then
56517
56518 cat >>confdefs.h <<_ACEOF
56519 #define HAVE_SNPRINTF_DECL 1
56520 _ACEOF
56521
56522 fi
56523 fi
56524
56525
56526 ice_have_vsnprintf=no
56527
56528 for ac_func in vsnprintf
56529 do
56530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56531 echo "$as_me:$LINENO: checking for $ac_func" >&5
56532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56533 if eval "test \"\${$as_ac_var+set}\" = set"; then
56534   echo $ECHO_N "(cached) $ECHO_C" >&6
56535 else
56536   cat >conftest.$ac_ext <<_ACEOF
56537 /* confdefs.h.  */
56538 _ACEOF
56539 cat confdefs.h >>conftest.$ac_ext
56540 cat >>conftest.$ac_ext <<_ACEOF
56541 /* end confdefs.h.  */
56542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56544 #define $ac_func innocuous_$ac_func
56545
56546 /* System header to define __stub macros and hopefully few prototypes,
56547     which can conflict with char $ac_func (); below.
56548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56549     <limits.h> exists even on freestanding compilers.  */
56550
56551 #ifdef __STDC__
56552 # include <limits.h>
56553 #else
56554 # include <assert.h>
56555 #endif
56556
56557 #undef $ac_func
56558
56559 /* Override any gcc2 internal prototype to avoid an error.  */
56560 #ifdef __cplusplus
56561 extern "C"
56562 {
56563 #endif
56564 /* We use char because int might match the return type of a gcc2
56565    builtin and then its argument prototype would still apply.  */
56566 char $ac_func ();
56567 /* The GNU C library defines this for functions which it implements
56568     to always fail with ENOSYS.  Some functions are actually named
56569     something starting with __ and the normal name is an alias.  */
56570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56571 choke me
56572 #else
56573 char (*f) () = $ac_func;
56574 #endif
56575 #ifdef __cplusplus
56576 }
56577 #endif
56578
56579 int
56580 main ()
56581 {
56582 return f != $ac_func;
56583   ;
56584   return 0;
56585 }
56586 _ACEOF
56587 rm -f conftest.$ac_objext conftest$ac_exeext
56588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56589   (eval $ac_link) 2>conftest.er1
56590   ac_status=$?
56591   grep -v '^ *+' conftest.er1 >conftest.err
56592   rm -f conftest.er1
56593   cat conftest.err >&5
56594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56595   (exit $ac_status); } &&
56596          { ac_try='test -z "$ac_c_werror_flag"
56597                          || test ! -s conftest.err'
56598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56599   (eval $ac_try) 2>&5
56600   ac_status=$?
56601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56602   (exit $ac_status); }; } &&
56603          { ac_try='test -s conftest$ac_exeext'
56604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56605   (eval $ac_try) 2>&5
56606   ac_status=$?
56607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56608   (exit $ac_status); }; }; then
56609   eval "$as_ac_var=yes"
56610 else
56611   echo "$as_me: failed program was:" >&5
56612 sed 's/^/| /' conftest.$ac_ext >&5
56613
56614 eval "$as_ac_var=no"
56615 fi
56616 rm -f conftest.err conftest.$ac_objext \
56617       conftest$ac_exeext conftest.$ac_ext
56618 fi
56619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56621 if test `eval echo '${'$as_ac_var'}'` = yes; then
56622   cat >>confdefs.h <<_ACEOF
56623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56624 _ACEOF
56625  ice_have_vsnprintf=yes
56626 fi
56627 done
56628
56629 if test "${ice_have_vsnprintf}" = yes; then
56630 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
56631 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
56632 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
56633   echo $ECHO_N "(cached) $ECHO_C" >&6
56634 else
56635
56636 ice_cv_have_vsnprintf_decl=no
56637 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56638 ice_re_word='(^|[^a-zA-Z0-9_])'
56639 for header in stdio.h; do
56640 # Check for ordinary declaration
56641 cat >conftest.$ac_ext <<_ACEOF
56642 /* confdefs.h.  */
56643 _ACEOF
56644 cat confdefs.h >>conftest.$ac_ext
56645 cat >>conftest.$ac_ext <<_ACEOF
56646 /* end confdefs.h.  */
56647 #include <$header>
56648
56649 _ACEOF
56650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56651   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
56652   ice_cv_have_vsnprintf_decl=yes
56653 fi
56654 rm -f conftest*
56655
56656 if test "$ice_cv_have_vsnprintf_decl" = yes; then
56657         break
56658 fi
56659 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56660 cat >conftest.$ac_ext <<_ACEOF
56661 /* confdefs.h.  */
56662 _ACEOF
56663 cat confdefs.h >>conftest.$ac_ext
56664 cat >>conftest.$ac_ext <<_ACEOF
56665 /* end confdefs.h.  */
56666 #include <$header>
56667
56668 _ACEOF
56669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56670   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56671   ice_cv_have_vsnprintf_decl=yes
56672 fi
56673 rm -f conftest*
56674
56675 if test "$ice_cv_have_vsnprintf_decl" = yes; then
56676         break
56677 fi
56678 done
56679
56680 fi
56681
56682 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
56683 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
56684 if test "$ice_cv_have_vsnprintf_decl" = yes; then
56685
56686 cat >>confdefs.h <<_ACEOF
56687 #define HAVE_VSNPRINTF_DECL 1
56688 _ACEOF
56689
56690 fi
56691 fi
56692
56693
56694 echo "$as_me:$LINENO: checking for setpgid" >&5
56695 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
56696 if test "${ac_cv_func_setpgid+set}" = set; then
56697   echo $ECHO_N "(cached) $ECHO_C" >&6
56698 else
56699   cat >conftest.$ac_ext <<_ACEOF
56700 /* confdefs.h.  */
56701 _ACEOF
56702 cat confdefs.h >>conftest.$ac_ext
56703 cat >>conftest.$ac_ext <<_ACEOF
56704 /* end confdefs.h.  */
56705 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
56706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56707 #define setpgid innocuous_setpgid
56708
56709 /* System header to define __stub macros and hopefully few prototypes,
56710     which can conflict with char setpgid (); below.
56711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56712     <limits.h> exists even on freestanding compilers.  */
56713
56714 #ifdef __STDC__
56715 # include <limits.h>
56716 #else
56717 # include <assert.h>
56718 #endif
56719
56720 #undef setpgid
56721
56722 /* Override any gcc2 internal prototype to avoid an error.  */
56723 #ifdef __cplusplus
56724 extern "C"
56725 {
56726 #endif
56727 /* We use char because int might match the return type of a gcc2
56728    builtin and then its argument prototype would still apply.  */
56729 char setpgid ();
56730 /* The GNU C library defines this for functions which it implements
56731     to always fail with ENOSYS.  Some functions are actually named
56732     something starting with __ and the normal name is an alias.  */
56733 #if defined (__stub_setpgid) || defined (__stub___setpgid)
56734 choke me
56735 #else
56736 char (*f) () = setpgid;
56737 #endif
56738 #ifdef __cplusplus
56739 }
56740 #endif
56741
56742 int
56743 main ()
56744 {
56745 return f != setpgid;
56746   ;
56747   return 0;
56748 }
56749 _ACEOF
56750 rm -f conftest.$ac_objext conftest$ac_exeext
56751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56752   (eval $ac_link) 2>conftest.er1
56753   ac_status=$?
56754   grep -v '^ *+' conftest.er1 >conftest.err
56755   rm -f conftest.er1
56756   cat conftest.err >&5
56757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56758   (exit $ac_status); } &&
56759          { ac_try='test -z "$ac_c_werror_flag"
56760                          || test ! -s conftest.err'
56761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56762   (eval $ac_try) 2>&5
56763   ac_status=$?
56764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56765   (exit $ac_status); }; } &&
56766          { ac_try='test -s conftest$ac_exeext'
56767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56768   (eval $ac_try) 2>&5
56769   ac_status=$?
56770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56771   (exit $ac_status); }; }; then
56772   ac_cv_func_setpgid=yes
56773 else
56774   echo "$as_me: failed program was:" >&5
56775 sed 's/^/| /' conftest.$ac_ext >&5
56776
56777 ac_cv_func_setpgid=no
56778 fi
56779 rm -f conftest.err conftest.$ac_objext \
56780       conftest$ac_exeext conftest.$ac_ext
56781 fi
56782 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
56783 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
56784 if test $ac_cv_func_setpgid = yes; then
56785
56786
56787 cat >>confdefs.h <<\_ACEOF
56788 #define HAVE_SETPGID 1
56789 _ACEOF
56790
56791
56792 ice_have_setpgid=no
56793
56794 for ac_func in setpgid
56795 do
56796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56797 echo "$as_me:$LINENO: checking for $ac_func" >&5
56798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56799 if eval "test \"\${$as_ac_var+set}\" = set"; then
56800   echo $ECHO_N "(cached) $ECHO_C" >&6
56801 else
56802   cat >conftest.$ac_ext <<_ACEOF
56803 /* confdefs.h.  */
56804 _ACEOF
56805 cat confdefs.h >>conftest.$ac_ext
56806 cat >>conftest.$ac_ext <<_ACEOF
56807 /* end confdefs.h.  */
56808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56810 #define $ac_func innocuous_$ac_func
56811
56812 /* System header to define __stub macros and hopefully few prototypes,
56813     which can conflict with char $ac_func (); below.
56814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56815     <limits.h> exists even on freestanding compilers.  */
56816
56817 #ifdef __STDC__
56818 # include <limits.h>
56819 #else
56820 # include <assert.h>
56821 #endif
56822
56823 #undef $ac_func
56824
56825 /* Override any gcc2 internal prototype to avoid an error.  */
56826 #ifdef __cplusplus
56827 extern "C"
56828 {
56829 #endif
56830 /* We use char because int might match the return type of a gcc2
56831    builtin and then its argument prototype would still apply.  */
56832 char $ac_func ();
56833 /* The GNU C library defines this for functions which it implements
56834     to always fail with ENOSYS.  Some functions are actually named
56835     something starting with __ and the normal name is an alias.  */
56836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56837 choke me
56838 #else
56839 char (*f) () = $ac_func;
56840 #endif
56841 #ifdef __cplusplus
56842 }
56843 #endif
56844
56845 int
56846 main ()
56847 {
56848 return f != $ac_func;
56849   ;
56850   return 0;
56851 }
56852 _ACEOF
56853 rm -f conftest.$ac_objext conftest$ac_exeext
56854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56855   (eval $ac_link) 2>conftest.er1
56856   ac_status=$?
56857   grep -v '^ *+' conftest.er1 >conftest.err
56858   rm -f conftest.er1
56859   cat conftest.err >&5
56860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56861   (exit $ac_status); } &&
56862          { ac_try='test -z "$ac_c_werror_flag"
56863                          || test ! -s conftest.err'
56864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56865   (eval $ac_try) 2>&5
56866   ac_status=$?
56867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56868   (exit $ac_status); }; } &&
56869          { ac_try='test -s conftest$ac_exeext'
56870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56871   (eval $ac_try) 2>&5
56872   ac_status=$?
56873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56874   (exit $ac_status); }; }; then
56875   eval "$as_ac_var=yes"
56876 else
56877   echo "$as_me: failed program was:" >&5
56878 sed 's/^/| /' conftest.$ac_ext >&5
56879
56880 eval "$as_ac_var=no"
56881 fi
56882 rm -f conftest.err conftest.$ac_objext \
56883       conftest$ac_exeext conftest.$ac_ext
56884 fi
56885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56887 if test `eval echo '${'$as_ac_var'}'` = yes; then
56888   cat >>confdefs.h <<_ACEOF
56889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56890 _ACEOF
56891  ice_have_setpgid=yes
56892 fi
56893 done
56894
56895 if test "${ice_have_setpgid}" = yes; then
56896 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
56897 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
56898 if test "${ice_cv_have_setpgid_decl+set}" = set; then
56899   echo $ECHO_N "(cached) $ECHO_C" >&6
56900 else
56901
56902 ice_cv_have_setpgid_decl=no
56903 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56904 ice_re_word='(^|[^a-zA-Z0-9_])'
56905 for header in sys/types.h unistd.h; do
56906 # Check for ordinary declaration
56907 cat >conftest.$ac_ext <<_ACEOF
56908 /* confdefs.h.  */
56909 _ACEOF
56910 cat confdefs.h >>conftest.$ac_ext
56911 cat >>conftest.$ac_ext <<_ACEOF
56912 /* end confdefs.h.  */
56913 #include <$header>
56914
56915 _ACEOF
56916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56917   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
56918   ice_cv_have_setpgid_decl=yes
56919 fi
56920 rm -f conftest*
56921
56922 if test "$ice_cv_have_setpgid_decl" = yes; then
56923         break
56924 fi
56925 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56926 cat >conftest.$ac_ext <<_ACEOF
56927 /* confdefs.h.  */
56928 _ACEOF
56929 cat confdefs.h >>conftest.$ac_ext
56930 cat >>conftest.$ac_ext <<_ACEOF
56931 /* end confdefs.h.  */
56932 #include <$header>
56933
56934 _ACEOF
56935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56936   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56937   ice_cv_have_setpgid_decl=yes
56938 fi
56939 rm -f conftest*
56940
56941 if test "$ice_cv_have_setpgid_decl" = yes; then
56942         break
56943 fi
56944 done
56945
56946 fi
56947
56948 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
56949 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
56950 if test "$ice_cv_have_setpgid_decl" = yes; then
56951
56952 cat >>confdefs.h <<_ACEOF
56953 #define HAVE_SETPGID_DECL 1
56954 _ACEOF
56955
56956 fi
56957 fi
56958
56959
56960 fi
56961
56962 echo "$as_me:$LINENO: checking for setpgrp" >&5
56963 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
56964 if test "${ac_cv_func_setpgrp+set}" = set; then
56965   echo $ECHO_N "(cached) $ECHO_C" >&6
56966 else
56967   cat >conftest.$ac_ext <<_ACEOF
56968 /* confdefs.h.  */
56969 _ACEOF
56970 cat confdefs.h >>conftest.$ac_ext
56971 cat >>conftest.$ac_ext <<_ACEOF
56972 /* end confdefs.h.  */
56973 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
56974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56975 #define setpgrp innocuous_setpgrp
56976
56977 /* System header to define __stub macros and hopefully few prototypes,
56978     which can conflict with char setpgrp (); below.
56979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56980     <limits.h> exists even on freestanding compilers.  */
56981
56982 #ifdef __STDC__
56983 # include <limits.h>
56984 #else
56985 # include <assert.h>
56986 #endif
56987
56988 #undef setpgrp
56989
56990 /* Override any gcc2 internal prototype to avoid an error.  */
56991 #ifdef __cplusplus
56992 extern "C"
56993 {
56994 #endif
56995 /* We use char because int might match the return type of a gcc2
56996    builtin and then its argument prototype would still apply.  */
56997 char setpgrp ();
56998 /* The GNU C library defines this for functions which it implements
56999     to always fail with ENOSYS.  Some functions are actually named
57000     something starting with __ and the normal name is an alias.  */
57001 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
57002 choke me
57003 #else
57004 char (*f) () = setpgrp;
57005 #endif
57006 #ifdef __cplusplus
57007 }
57008 #endif
57009
57010 int
57011 main ()
57012 {
57013 return f != setpgrp;
57014   ;
57015   return 0;
57016 }
57017 _ACEOF
57018 rm -f conftest.$ac_objext conftest$ac_exeext
57019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57020   (eval $ac_link) 2>conftest.er1
57021   ac_status=$?
57022   grep -v '^ *+' conftest.er1 >conftest.err
57023   rm -f conftest.er1
57024   cat conftest.err >&5
57025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57026   (exit $ac_status); } &&
57027          { ac_try='test -z "$ac_c_werror_flag"
57028                          || test ! -s conftest.err'
57029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57030   (eval $ac_try) 2>&5
57031   ac_status=$?
57032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57033   (exit $ac_status); }; } &&
57034          { ac_try='test -s conftest$ac_exeext'
57035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57036   (eval $ac_try) 2>&5
57037   ac_status=$?
57038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57039   (exit $ac_status); }; }; then
57040   ac_cv_func_setpgrp=yes
57041 else
57042   echo "$as_me: failed program was:" >&5
57043 sed 's/^/| /' conftest.$ac_ext >&5
57044
57045 ac_cv_func_setpgrp=no
57046 fi
57047 rm -f conftest.err conftest.$ac_objext \
57048       conftest$ac_exeext conftest.$ac_ext
57049 fi
57050 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
57051 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
57052 if test $ac_cv_func_setpgrp = yes; then
57053   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
57054 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
57055 if test "${ac_cv_func_setpgrp_void+set}" = set; then
57056   echo $ECHO_N "(cached) $ECHO_C" >&6
57057 else
57058   if test "$cross_compiling" = yes; then
57059   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
57060 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
57061    { (exit 1); exit 1; }; }
57062 else
57063   cat >conftest.$ac_ext <<_ACEOF
57064 /* confdefs.h.  */
57065 _ACEOF
57066 cat confdefs.h >>conftest.$ac_ext
57067 cat >>conftest.$ac_ext <<_ACEOF
57068 /* end confdefs.h.  */
57069 #if HAVE_UNISTD_H
57070 # include <unistd.h>
57071 #endif
57072
57073 int
57074 main ()
57075 {
57076 /* If this system has a BSD-style setpgrp which takes arguments,
57077   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
57078   exit successfully. */
57079   exit (setpgrp (1,1) == -1 ? 0 : 1);
57080   ;
57081   return 0;
57082 }
57083 _ACEOF
57084 rm -f conftest$ac_exeext
57085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57086   (eval $ac_link) 2>&5
57087   ac_status=$?
57088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
57090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57091   (eval $ac_try) 2>&5
57092   ac_status=$?
57093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57094   (exit $ac_status); }; }; then
57095   ac_cv_func_setpgrp_void=no
57096 else
57097   echo "$as_me: program exited with status $ac_status" >&5
57098 echo "$as_me: failed program was:" >&5
57099 sed 's/^/| /' conftest.$ac_ext >&5
57100
57101 ( exit $ac_status )
57102 ac_cv_func_setpgrp_void=yes
57103 fi
57104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
57105 fi
57106 fi
57107 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
57108 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
57109 if test $ac_cv_func_setpgrp_void = yes; then
57110
57111 cat >>confdefs.h <<\_ACEOF
57112 #define SETPGRP_VOID 1
57113 _ACEOF
57114
57115 fi
57116
57117 fi
57118
57119
57120 ice_have_setpgrp=no
57121
57122 for ac_func in setpgrp
57123 do
57124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57125 echo "$as_me:$LINENO: checking for $ac_func" >&5
57126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57127 if eval "test \"\${$as_ac_var+set}\" = set"; then
57128   echo $ECHO_N "(cached) $ECHO_C" >&6
57129 else
57130   cat >conftest.$ac_ext <<_ACEOF
57131 /* confdefs.h.  */
57132 _ACEOF
57133 cat confdefs.h >>conftest.$ac_ext
57134 cat >>conftest.$ac_ext <<_ACEOF
57135 /* end confdefs.h.  */
57136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57138 #define $ac_func innocuous_$ac_func
57139
57140 /* System header to define __stub macros and hopefully few prototypes,
57141     which can conflict with char $ac_func (); below.
57142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57143     <limits.h> exists even on freestanding compilers.  */
57144
57145 #ifdef __STDC__
57146 # include <limits.h>
57147 #else
57148 # include <assert.h>
57149 #endif
57150
57151 #undef $ac_func
57152
57153 /* Override any gcc2 internal prototype to avoid an error.  */
57154 #ifdef __cplusplus
57155 extern "C"
57156 {
57157 #endif
57158 /* We use char because int might match the return type of a gcc2
57159    builtin and then its argument prototype would still apply.  */
57160 char $ac_func ();
57161 /* The GNU C library defines this for functions which it implements
57162     to always fail with ENOSYS.  Some functions are actually named
57163     something starting with __ and the normal name is an alias.  */
57164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57165 choke me
57166 #else
57167 char (*f) () = $ac_func;
57168 #endif
57169 #ifdef __cplusplus
57170 }
57171 #endif
57172
57173 int
57174 main ()
57175 {
57176 return f != $ac_func;
57177   ;
57178   return 0;
57179 }
57180 _ACEOF
57181 rm -f conftest.$ac_objext conftest$ac_exeext
57182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57183   (eval $ac_link) 2>conftest.er1
57184   ac_status=$?
57185   grep -v '^ *+' conftest.er1 >conftest.err
57186   rm -f conftest.er1
57187   cat conftest.err >&5
57188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57189   (exit $ac_status); } &&
57190          { ac_try='test -z "$ac_c_werror_flag"
57191                          || test ! -s conftest.err'
57192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57193   (eval $ac_try) 2>&5
57194   ac_status=$?
57195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57196   (exit $ac_status); }; } &&
57197          { ac_try='test -s conftest$ac_exeext'
57198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57199   (eval $ac_try) 2>&5
57200   ac_status=$?
57201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57202   (exit $ac_status); }; }; then
57203   eval "$as_ac_var=yes"
57204 else
57205   echo "$as_me: failed program was:" >&5
57206 sed 's/^/| /' conftest.$ac_ext >&5
57207
57208 eval "$as_ac_var=no"
57209 fi
57210 rm -f conftest.err conftest.$ac_objext \
57211       conftest$ac_exeext conftest.$ac_ext
57212 fi
57213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57215 if test `eval echo '${'$as_ac_var'}'` = yes; then
57216   cat >>confdefs.h <<_ACEOF
57217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57218 _ACEOF
57219  ice_have_setpgrp=yes
57220 fi
57221 done
57222
57223 if test "${ice_have_setpgrp}" = yes; then
57224 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
57225 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
57226 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
57227   echo $ECHO_N "(cached) $ECHO_C" >&6
57228 else
57229
57230 ice_cv_have_setpgrp_decl=no
57231 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57232 ice_re_word='(^|[^a-zA-Z0-9_])'
57233 for header in sys/types.h unistd.h libc.h; do
57234 # Check for ordinary declaration
57235 cat >conftest.$ac_ext <<_ACEOF
57236 /* confdefs.h.  */
57237 _ACEOF
57238 cat confdefs.h >>conftest.$ac_ext
57239 cat >>conftest.$ac_ext <<_ACEOF
57240 /* end confdefs.h.  */
57241 #include <$header>
57242
57243 _ACEOF
57244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57245   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
57246   ice_cv_have_setpgrp_decl=yes
57247 fi
57248 rm -f conftest*
57249
57250 if test "$ice_cv_have_setpgrp_decl" = yes; then
57251         break
57252 fi
57253 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57254 cat >conftest.$ac_ext <<_ACEOF
57255 /* confdefs.h.  */
57256 _ACEOF
57257 cat confdefs.h >>conftest.$ac_ext
57258 cat >>conftest.$ac_ext <<_ACEOF
57259 /* end confdefs.h.  */
57260 #include <$header>
57261
57262 _ACEOF
57263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57264   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57265   ice_cv_have_setpgrp_decl=yes
57266 fi
57267 rm -f conftest*
57268
57269 if test "$ice_cv_have_setpgrp_decl" = yes; then
57270         break
57271 fi
57272 done
57273
57274 fi
57275
57276 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
57277 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
57278 if test "$ice_cv_have_setpgrp_decl" = yes; then
57279
57280 cat >>confdefs.h <<_ACEOF
57281 #define HAVE_SETPGRP_DECL 1
57282 _ACEOF
57283
57284 fi
57285 fi
57286
57287
57288
57289 ice_have_setsockopt=no
57290
57291 for ac_func in setsockopt
57292 do
57293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57294 echo "$as_me:$LINENO: checking for $ac_func" >&5
57295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57296 if eval "test \"\${$as_ac_var+set}\" = set"; then
57297   echo $ECHO_N "(cached) $ECHO_C" >&6
57298 else
57299   cat >conftest.$ac_ext <<_ACEOF
57300 /* confdefs.h.  */
57301 _ACEOF
57302 cat confdefs.h >>conftest.$ac_ext
57303 cat >>conftest.$ac_ext <<_ACEOF
57304 /* end confdefs.h.  */
57305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57307 #define $ac_func innocuous_$ac_func
57308
57309 /* System header to define __stub macros and hopefully few prototypes,
57310     which can conflict with char $ac_func (); below.
57311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57312     <limits.h> exists even on freestanding compilers.  */
57313
57314 #ifdef __STDC__
57315 # include <limits.h>
57316 #else
57317 # include <assert.h>
57318 #endif
57319
57320 #undef $ac_func
57321
57322 /* Override any gcc2 internal prototype to avoid an error.  */
57323 #ifdef __cplusplus
57324 extern "C"
57325 {
57326 #endif
57327 /* We use char because int might match the return type of a gcc2
57328    builtin and then its argument prototype would still apply.  */
57329 char $ac_func ();
57330 /* The GNU C library defines this for functions which it implements
57331     to always fail with ENOSYS.  Some functions are actually named
57332     something starting with __ and the normal name is an alias.  */
57333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57334 choke me
57335 #else
57336 char (*f) () = $ac_func;
57337 #endif
57338 #ifdef __cplusplus
57339 }
57340 #endif
57341
57342 int
57343 main ()
57344 {
57345 return f != $ac_func;
57346   ;
57347   return 0;
57348 }
57349 _ACEOF
57350 rm -f conftest.$ac_objext conftest$ac_exeext
57351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57352   (eval $ac_link) 2>conftest.er1
57353   ac_status=$?
57354   grep -v '^ *+' conftest.er1 >conftest.err
57355   rm -f conftest.er1
57356   cat conftest.err >&5
57357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57358   (exit $ac_status); } &&
57359          { ac_try='test -z "$ac_c_werror_flag"
57360                          || test ! -s conftest.err'
57361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57362   (eval $ac_try) 2>&5
57363   ac_status=$?
57364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57365   (exit $ac_status); }; } &&
57366          { ac_try='test -s conftest$ac_exeext'
57367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57368   (eval $ac_try) 2>&5
57369   ac_status=$?
57370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57371   (exit $ac_status); }; }; then
57372   eval "$as_ac_var=yes"
57373 else
57374   echo "$as_me: failed program was:" >&5
57375 sed 's/^/| /' conftest.$ac_ext >&5
57376
57377 eval "$as_ac_var=no"
57378 fi
57379 rm -f conftest.err conftest.$ac_objext \
57380       conftest$ac_exeext conftest.$ac_ext
57381 fi
57382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57384 if test `eval echo '${'$as_ac_var'}'` = yes; then
57385   cat >>confdefs.h <<_ACEOF
57386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57387 _ACEOF
57388  ice_have_setsockopt=yes
57389 fi
57390 done
57391
57392 if test "${ice_have_setsockopt}" = yes; then
57393 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
57394 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
57395 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
57396   echo $ECHO_N "(cached) $ECHO_C" >&6
57397 else
57398
57399 ice_cv_have_setsockopt_decl=no
57400 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57401 ice_re_word='(^|[^a-zA-Z0-9_])'
57402 for header in sys/types.h sys/socket.h; do
57403 # Check for ordinary declaration
57404 cat >conftest.$ac_ext <<_ACEOF
57405 /* confdefs.h.  */
57406 _ACEOF
57407 cat confdefs.h >>conftest.$ac_ext
57408 cat >>conftest.$ac_ext <<_ACEOF
57409 /* end confdefs.h.  */
57410 #include <$header>
57411
57412 _ACEOF
57413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57414   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
57415   ice_cv_have_setsockopt_decl=yes
57416 fi
57417 rm -f conftest*
57418
57419 if test "$ice_cv_have_setsockopt_decl" = yes; then
57420         break
57421 fi
57422 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57423 cat >conftest.$ac_ext <<_ACEOF
57424 /* confdefs.h.  */
57425 _ACEOF
57426 cat confdefs.h >>conftest.$ac_ext
57427 cat >>conftest.$ac_ext <<_ACEOF
57428 /* end confdefs.h.  */
57429 #include <$header>
57430
57431 _ACEOF
57432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57433   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57434   ice_cv_have_setsockopt_decl=yes
57435 fi
57436 rm -f conftest*
57437
57438 if test "$ice_cv_have_setsockopt_decl" = yes; then
57439         break
57440 fi
57441 done
57442
57443 fi
57444
57445 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
57446 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
57447 if test "$ice_cv_have_setsockopt_decl" = yes; then
57448
57449 cat >>confdefs.h <<_ACEOF
57450 #define HAVE_SETSOCKOPT_DECL 1
57451 _ACEOF
57452
57453 fi
57454 fi
57455
57456
57457
57458 for ac_func in shmget
57459 do
57460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57461 echo "$as_me:$LINENO: checking for $ac_func" >&5
57462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57463 if eval "test \"\${$as_ac_var+set}\" = set"; then
57464   echo $ECHO_N "(cached) $ECHO_C" >&6
57465 else
57466   cat >conftest.$ac_ext <<_ACEOF
57467 /* confdefs.h.  */
57468 _ACEOF
57469 cat confdefs.h >>conftest.$ac_ext
57470 cat >>conftest.$ac_ext <<_ACEOF
57471 /* end confdefs.h.  */
57472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57474 #define $ac_func innocuous_$ac_func
57475
57476 /* System header to define __stub macros and hopefully few prototypes,
57477     which can conflict with char $ac_func (); below.
57478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57479     <limits.h> exists even on freestanding compilers.  */
57480
57481 #ifdef __STDC__
57482 # include <limits.h>
57483 #else
57484 # include <assert.h>
57485 #endif
57486
57487 #undef $ac_func
57488
57489 /* Override any gcc2 internal prototype to avoid an error.  */
57490 #ifdef __cplusplus
57491 extern "C"
57492 {
57493 #endif
57494 /* We use char because int might match the return type of a gcc2
57495    builtin and then its argument prototype would still apply.  */
57496 char $ac_func ();
57497 /* The GNU C library defines this for functions which it implements
57498     to always fail with ENOSYS.  Some functions are actually named
57499     something starting with __ and the normal name is an alias.  */
57500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57501 choke me
57502 #else
57503 char (*f) () = $ac_func;
57504 #endif
57505 #ifdef __cplusplus
57506 }
57507 #endif
57508
57509 int
57510 main ()
57511 {
57512 return f != $ac_func;
57513   ;
57514   return 0;
57515 }
57516 _ACEOF
57517 rm -f conftest.$ac_objext conftest$ac_exeext
57518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57519   (eval $ac_link) 2>conftest.er1
57520   ac_status=$?
57521   grep -v '^ *+' conftest.er1 >conftest.err
57522   rm -f conftest.er1
57523   cat conftest.err >&5
57524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57525   (exit $ac_status); } &&
57526          { ac_try='test -z "$ac_c_werror_flag"
57527                          || test ! -s conftest.err'
57528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57529   (eval $ac_try) 2>&5
57530   ac_status=$?
57531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57532   (exit $ac_status); }; } &&
57533          { ac_try='test -s conftest$ac_exeext'
57534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57535   (eval $ac_try) 2>&5
57536   ac_status=$?
57537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57538   (exit $ac_status); }; }; then
57539   eval "$as_ac_var=yes"
57540 else
57541   echo "$as_me: failed program was:" >&5
57542 sed 's/^/| /' conftest.$ac_ext >&5
57543
57544 eval "$as_ac_var=no"
57545 fi
57546 rm -f conftest.err conftest.$ac_objext \
57547       conftest$ac_exeext conftest.$ac_ext
57548 fi
57549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57551 if test `eval echo '${'$as_ac_var'}'` = yes; then
57552   cat >>confdefs.h <<_ACEOF
57553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57554 _ACEOF
57555
57556
57557         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
57558 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
57559 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
57560   echo $ECHO_N "(cached) $ECHO_C" >&6
57561 else
57562
57563                 if test "$ac_cv_func_shmget" = yes; then
57564                     cat <<EOF >conftest.$ac_ext
57565 #include "confdefs.h"
57566 #ifdef HAVE_SYS_TYPES_H
57567 # include <sys/types.h>
57568 #endif
57569 #ifdef HAVE_SYS_IPC_H
57570 # include <sys/ipc.h>
57571 #endif
57572 #ifdef HAVE_SYS_SHM_H
57573 # include <sys/shm.h>
57574 #endif
57575
57576 #ifdef __cplusplus
57577 extern "C" void *shmat(int, void *, int);
57578 #else
57579 void *shmat();
57580 #endif
57581
57582 int main()
57583 {
57584     int i;
57585     return 0;
57586 }
57587 EOF
57588                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
57589                     if test $? = 0; then
57590                         amanda_cv_shmdt_arg_type=void
57591                     else
57592                         amanda_cv_shmdt_arg_type=char
57593                     fi
57594                     rm -f conftest*
57595                 else
57596                     amanda_cv_shmdt_arg_type=nothing
57597                 fi
57598
57599
57600 fi
57601 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
57602 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
57603
57604 cat >>confdefs.h <<_ACEOF
57605 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
57606 _ACEOF
57607
57608
57609
57610         case "$FORCE_MMAP" in
57611         n | no)
57612
57613 cat >>confdefs.h <<\_ACEOF
57614 #define HAVE_SYSVSHM 1
57615 _ACEOF
57616
57617           ;;
57618         esac
57619
57620
57621 fi
57622 done
57623
57624
57625 ice_have_shmat=no
57626
57627 for ac_func in shmat
57628 do
57629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57630 echo "$as_me:$LINENO: checking for $ac_func" >&5
57631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57632 if eval "test \"\${$as_ac_var+set}\" = set"; then
57633   echo $ECHO_N "(cached) $ECHO_C" >&6
57634 else
57635   cat >conftest.$ac_ext <<_ACEOF
57636 /* confdefs.h.  */
57637 _ACEOF
57638 cat confdefs.h >>conftest.$ac_ext
57639 cat >>conftest.$ac_ext <<_ACEOF
57640 /* end confdefs.h.  */
57641 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57642    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57643 #define $ac_func innocuous_$ac_func
57644
57645 /* System header to define __stub macros and hopefully few prototypes,
57646     which can conflict with char $ac_func (); below.
57647     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57648     <limits.h> exists even on freestanding compilers.  */
57649
57650 #ifdef __STDC__
57651 # include <limits.h>
57652 #else
57653 # include <assert.h>
57654 #endif
57655
57656 #undef $ac_func
57657
57658 /* Override any gcc2 internal prototype to avoid an error.  */
57659 #ifdef __cplusplus
57660 extern "C"
57661 {
57662 #endif
57663 /* We use char because int might match the return type of a gcc2
57664    builtin and then its argument prototype would still apply.  */
57665 char $ac_func ();
57666 /* The GNU C library defines this for functions which it implements
57667     to always fail with ENOSYS.  Some functions are actually named
57668     something starting with __ and the normal name is an alias.  */
57669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57670 choke me
57671 #else
57672 char (*f) () = $ac_func;
57673 #endif
57674 #ifdef __cplusplus
57675 }
57676 #endif
57677
57678 int
57679 main ()
57680 {
57681 return f != $ac_func;
57682   ;
57683   return 0;
57684 }
57685 _ACEOF
57686 rm -f conftest.$ac_objext conftest$ac_exeext
57687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57688   (eval $ac_link) 2>conftest.er1
57689   ac_status=$?
57690   grep -v '^ *+' conftest.er1 >conftest.err
57691   rm -f conftest.er1
57692   cat conftest.err >&5
57693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57694   (exit $ac_status); } &&
57695          { ac_try='test -z "$ac_c_werror_flag"
57696                          || test ! -s conftest.err'
57697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57698   (eval $ac_try) 2>&5
57699   ac_status=$?
57700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57701   (exit $ac_status); }; } &&
57702          { ac_try='test -s conftest$ac_exeext'
57703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57704   (eval $ac_try) 2>&5
57705   ac_status=$?
57706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57707   (exit $ac_status); }; }; then
57708   eval "$as_ac_var=yes"
57709 else
57710   echo "$as_me: failed program was:" >&5
57711 sed 's/^/| /' conftest.$ac_ext >&5
57712
57713 eval "$as_ac_var=no"
57714 fi
57715 rm -f conftest.err conftest.$ac_objext \
57716       conftest$ac_exeext conftest.$ac_ext
57717 fi
57718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57719 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57720 if test `eval echo '${'$as_ac_var'}'` = yes; then
57721   cat >>confdefs.h <<_ACEOF
57722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57723 _ACEOF
57724  ice_have_shmat=yes
57725 fi
57726 done
57727
57728 if test "${ice_have_shmat}" = yes; then
57729 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
57730 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
57731 if test "${ice_cv_have_shmat_decl+set}" = set; then
57732   echo $ECHO_N "(cached) $ECHO_C" >&6
57733 else
57734
57735 ice_cv_have_shmat_decl=no
57736 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57737 ice_re_word='(^|[^a-zA-Z0-9_])'
57738 for header in sys/types.h sys/ipc.h sys/shm.h; do
57739 # Check for ordinary declaration
57740 cat >conftest.$ac_ext <<_ACEOF
57741 /* confdefs.h.  */
57742 _ACEOF
57743 cat confdefs.h >>conftest.$ac_ext
57744 cat >>conftest.$ac_ext <<_ACEOF
57745 /* end confdefs.h.  */
57746 #include <$header>
57747
57748 _ACEOF
57749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57750   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
57751   ice_cv_have_shmat_decl=yes
57752 fi
57753 rm -f conftest*
57754
57755 if test "$ice_cv_have_shmat_decl" = yes; then
57756         break
57757 fi
57758 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57759 cat >conftest.$ac_ext <<_ACEOF
57760 /* confdefs.h.  */
57761 _ACEOF
57762 cat confdefs.h >>conftest.$ac_ext
57763 cat >>conftest.$ac_ext <<_ACEOF
57764 /* end confdefs.h.  */
57765 #include <$header>
57766
57767 _ACEOF
57768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57769   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57770   ice_cv_have_shmat_decl=yes
57771 fi
57772 rm -f conftest*
57773
57774 if test "$ice_cv_have_shmat_decl" = yes; then
57775         break
57776 fi
57777 done
57778
57779 fi
57780
57781 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
57782 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
57783 if test "$ice_cv_have_shmat_decl" = yes; then
57784
57785 cat >>confdefs.h <<_ACEOF
57786 #define HAVE_SHMAT_DECL 1
57787 _ACEOF
57788
57789 fi
57790 fi
57791
57792
57793 ice_have_shmctl=no
57794
57795 for ac_func in shmctl
57796 do
57797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57798 echo "$as_me:$LINENO: checking for $ac_func" >&5
57799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57800 if eval "test \"\${$as_ac_var+set}\" = set"; then
57801   echo $ECHO_N "(cached) $ECHO_C" >&6
57802 else
57803   cat >conftest.$ac_ext <<_ACEOF
57804 /* confdefs.h.  */
57805 _ACEOF
57806 cat confdefs.h >>conftest.$ac_ext
57807 cat >>conftest.$ac_ext <<_ACEOF
57808 /* end confdefs.h.  */
57809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57811 #define $ac_func innocuous_$ac_func
57812
57813 /* System header to define __stub macros and hopefully few prototypes,
57814     which can conflict with char $ac_func (); below.
57815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57816     <limits.h> exists even on freestanding compilers.  */
57817
57818 #ifdef __STDC__
57819 # include <limits.h>
57820 #else
57821 # include <assert.h>
57822 #endif
57823
57824 #undef $ac_func
57825
57826 /* Override any gcc2 internal prototype to avoid an error.  */
57827 #ifdef __cplusplus
57828 extern "C"
57829 {
57830 #endif
57831 /* We use char because int might match the return type of a gcc2
57832    builtin and then its argument prototype would still apply.  */
57833 char $ac_func ();
57834 /* The GNU C library defines this for functions which it implements
57835     to always fail with ENOSYS.  Some functions are actually named
57836     something starting with __ and the normal name is an alias.  */
57837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57838 choke me
57839 #else
57840 char (*f) () = $ac_func;
57841 #endif
57842 #ifdef __cplusplus
57843 }
57844 #endif
57845
57846 int
57847 main ()
57848 {
57849 return f != $ac_func;
57850   ;
57851   return 0;
57852 }
57853 _ACEOF
57854 rm -f conftest.$ac_objext conftest$ac_exeext
57855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57856   (eval $ac_link) 2>conftest.er1
57857   ac_status=$?
57858   grep -v '^ *+' conftest.er1 >conftest.err
57859   rm -f conftest.er1
57860   cat conftest.err >&5
57861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57862   (exit $ac_status); } &&
57863          { ac_try='test -z "$ac_c_werror_flag"
57864                          || test ! -s conftest.err'
57865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57866   (eval $ac_try) 2>&5
57867   ac_status=$?
57868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57869   (exit $ac_status); }; } &&
57870          { ac_try='test -s conftest$ac_exeext'
57871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57872   (eval $ac_try) 2>&5
57873   ac_status=$?
57874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57875   (exit $ac_status); }; }; then
57876   eval "$as_ac_var=yes"
57877 else
57878   echo "$as_me: failed program was:" >&5
57879 sed 's/^/| /' conftest.$ac_ext >&5
57880
57881 eval "$as_ac_var=no"
57882 fi
57883 rm -f conftest.err conftest.$ac_objext \
57884       conftest$ac_exeext conftest.$ac_ext
57885 fi
57886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57888 if test `eval echo '${'$as_ac_var'}'` = yes; then
57889   cat >>confdefs.h <<_ACEOF
57890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57891 _ACEOF
57892  ice_have_shmctl=yes
57893 fi
57894 done
57895
57896 if test "${ice_have_shmctl}" = yes; then
57897 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
57898 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
57899 if test "${ice_cv_have_shmctl_decl+set}" = set; then
57900   echo $ECHO_N "(cached) $ECHO_C" >&6
57901 else
57902
57903 ice_cv_have_shmctl_decl=no
57904 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57905 ice_re_word='(^|[^a-zA-Z0-9_])'
57906 for header in sys/types.h sys/ipc.h sys/shm.h; do
57907 # Check for ordinary declaration
57908 cat >conftest.$ac_ext <<_ACEOF
57909 /* confdefs.h.  */
57910 _ACEOF
57911 cat confdefs.h >>conftest.$ac_ext
57912 cat >>conftest.$ac_ext <<_ACEOF
57913 /* end confdefs.h.  */
57914 #include <$header>
57915
57916 _ACEOF
57917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57918   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
57919   ice_cv_have_shmctl_decl=yes
57920 fi
57921 rm -f conftest*
57922
57923 if test "$ice_cv_have_shmctl_decl" = yes; then
57924         break
57925 fi
57926 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57927 cat >conftest.$ac_ext <<_ACEOF
57928 /* confdefs.h.  */
57929 _ACEOF
57930 cat confdefs.h >>conftest.$ac_ext
57931 cat >>conftest.$ac_ext <<_ACEOF
57932 /* end confdefs.h.  */
57933 #include <$header>
57934
57935 _ACEOF
57936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57937   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57938   ice_cv_have_shmctl_decl=yes
57939 fi
57940 rm -f conftest*
57941
57942 if test "$ice_cv_have_shmctl_decl" = yes; then
57943         break
57944 fi
57945 done
57946
57947 fi
57948
57949 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
57950 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
57951 if test "$ice_cv_have_shmctl_decl" = yes; then
57952
57953 cat >>confdefs.h <<_ACEOF
57954 #define HAVE_SHMCTL_DECL 1
57955 _ACEOF
57956
57957 fi
57958 fi
57959
57960
57961 ice_have_shmdt=no
57962
57963 for ac_func in shmdt
57964 do
57965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57966 echo "$as_me:$LINENO: checking for $ac_func" >&5
57967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57968 if eval "test \"\${$as_ac_var+set}\" = set"; then
57969   echo $ECHO_N "(cached) $ECHO_C" >&6
57970 else
57971   cat >conftest.$ac_ext <<_ACEOF
57972 /* confdefs.h.  */
57973 _ACEOF
57974 cat confdefs.h >>conftest.$ac_ext
57975 cat >>conftest.$ac_ext <<_ACEOF
57976 /* end confdefs.h.  */
57977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57979 #define $ac_func innocuous_$ac_func
57980
57981 /* System header to define __stub macros and hopefully few prototypes,
57982     which can conflict with char $ac_func (); below.
57983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57984     <limits.h> exists even on freestanding compilers.  */
57985
57986 #ifdef __STDC__
57987 # include <limits.h>
57988 #else
57989 # include <assert.h>
57990 #endif
57991
57992 #undef $ac_func
57993
57994 /* Override any gcc2 internal prototype to avoid an error.  */
57995 #ifdef __cplusplus
57996 extern "C"
57997 {
57998 #endif
57999 /* We use char because int might match the return type of a gcc2
58000    builtin and then its argument prototype would still apply.  */
58001 char $ac_func ();
58002 /* The GNU C library defines this for functions which it implements
58003     to always fail with ENOSYS.  Some functions are actually named
58004     something starting with __ and the normal name is an alias.  */
58005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58006 choke me
58007 #else
58008 char (*f) () = $ac_func;
58009 #endif
58010 #ifdef __cplusplus
58011 }
58012 #endif
58013
58014 int
58015 main ()
58016 {
58017 return f != $ac_func;
58018   ;
58019   return 0;
58020 }
58021 _ACEOF
58022 rm -f conftest.$ac_objext conftest$ac_exeext
58023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58024   (eval $ac_link) 2>conftest.er1
58025   ac_status=$?
58026   grep -v '^ *+' conftest.er1 >conftest.err
58027   rm -f conftest.er1
58028   cat conftest.err >&5
58029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58030   (exit $ac_status); } &&
58031          { ac_try='test -z "$ac_c_werror_flag"
58032                          || test ! -s conftest.err'
58033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58034   (eval $ac_try) 2>&5
58035   ac_status=$?
58036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58037   (exit $ac_status); }; } &&
58038          { ac_try='test -s conftest$ac_exeext'
58039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58040   (eval $ac_try) 2>&5
58041   ac_status=$?
58042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58043   (exit $ac_status); }; }; then
58044   eval "$as_ac_var=yes"
58045 else
58046   echo "$as_me: failed program was:" >&5
58047 sed 's/^/| /' conftest.$ac_ext >&5
58048
58049 eval "$as_ac_var=no"
58050 fi
58051 rm -f conftest.err conftest.$ac_objext \
58052       conftest$ac_exeext conftest.$ac_ext
58053 fi
58054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58056 if test `eval echo '${'$as_ac_var'}'` = yes; then
58057   cat >>confdefs.h <<_ACEOF
58058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58059 _ACEOF
58060  ice_have_shmdt=yes
58061 fi
58062 done
58063
58064 if test "${ice_have_shmdt}" = yes; then
58065 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
58066 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
58067 if test "${ice_cv_have_shmdt_decl+set}" = set; then
58068   echo $ECHO_N "(cached) $ECHO_C" >&6
58069 else
58070
58071 ice_cv_have_shmdt_decl=no
58072 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58073 ice_re_word='(^|[^a-zA-Z0-9_])'
58074 for header in sys/types.h sys/ipc.h sys/shm.h; do
58075 # Check for ordinary declaration
58076 cat >conftest.$ac_ext <<_ACEOF
58077 /* confdefs.h.  */
58078 _ACEOF
58079 cat confdefs.h >>conftest.$ac_ext
58080 cat >>conftest.$ac_ext <<_ACEOF
58081 /* end confdefs.h.  */
58082 #include <$header>
58083
58084 _ACEOF
58085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58086   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
58087   ice_cv_have_shmdt_decl=yes
58088 fi
58089 rm -f conftest*
58090
58091 if test "$ice_cv_have_shmdt_decl" = yes; then
58092         break
58093 fi
58094 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58095 cat >conftest.$ac_ext <<_ACEOF
58096 /* confdefs.h.  */
58097 _ACEOF
58098 cat confdefs.h >>conftest.$ac_ext
58099 cat >>conftest.$ac_ext <<_ACEOF
58100 /* end confdefs.h.  */
58101 #include <$header>
58102
58103 _ACEOF
58104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58105   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58106   ice_cv_have_shmdt_decl=yes
58107 fi
58108 rm -f conftest*
58109
58110 if test "$ice_cv_have_shmdt_decl" = yes; then
58111         break
58112 fi
58113 done
58114
58115 fi
58116
58117 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
58118 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
58119 if test "$ice_cv_have_shmdt_decl" = yes; then
58120
58121 cat >>confdefs.h <<_ACEOF
58122 #define HAVE_SHMDT_DECL 1
58123 _ACEOF
58124
58125 fi
58126 fi
58127
58128
58129 ice_have_shmget=no
58130
58131 for ac_func in shmget
58132 do
58133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58134 echo "$as_me:$LINENO: checking for $ac_func" >&5
58135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58136 if eval "test \"\${$as_ac_var+set}\" = set"; then
58137   echo $ECHO_N "(cached) $ECHO_C" >&6
58138 else
58139   cat >conftest.$ac_ext <<_ACEOF
58140 /* confdefs.h.  */
58141 _ACEOF
58142 cat confdefs.h >>conftest.$ac_ext
58143 cat >>conftest.$ac_ext <<_ACEOF
58144 /* end confdefs.h.  */
58145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58147 #define $ac_func innocuous_$ac_func
58148
58149 /* System header to define __stub macros and hopefully few prototypes,
58150     which can conflict with char $ac_func (); below.
58151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58152     <limits.h> exists even on freestanding compilers.  */
58153
58154 #ifdef __STDC__
58155 # include <limits.h>
58156 #else
58157 # include <assert.h>
58158 #endif
58159
58160 #undef $ac_func
58161
58162 /* Override any gcc2 internal prototype to avoid an error.  */
58163 #ifdef __cplusplus
58164 extern "C"
58165 {
58166 #endif
58167 /* We use char because int might match the return type of a gcc2
58168    builtin and then its argument prototype would still apply.  */
58169 char $ac_func ();
58170 /* The GNU C library defines this for functions which it implements
58171     to always fail with ENOSYS.  Some functions are actually named
58172     something starting with __ and the normal name is an alias.  */
58173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58174 choke me
58175 #else
58176 char (*f) () = $ac_func;
58177 #endif
58178 #ifdef __cplusplus
58179 }
58180 #endif
58181
58182 int
58183 main ()
58184 {
58185 return f != $ac_func;
58186   ;
58187   return 0;
58188 }
58189 _ACEOF
58190 rm -f conftest.$ac_objext conftest$ac_exeext
58191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58192   (eval $ac_link) 2>conftest.er1
58193   ac_status=$?
58194   grep -v '^ *+' conftest.er1 >conftest.err
58195   rm -f conftest.er1
58196   cat conftest.err >&5
58197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58198   (exit $ac_status); } &&
58199          { ac_try='test -z "$ac_c_werror_flag"
58200                          || test ! -s conftest.err'
58201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58202   (eval $ac_try) 2>&5
58203   ac_status=$?
58204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58205   (exit $ac_status); }; } &&
58206          { ac_try='test -s conftest$ac_exeext'
58207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58208   (eval $ac_try) 2>&5
58209   ac_status=$?
58210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58211   (exit $ac_status); }; }; then
58212   eval "$as_ac_var=yes"
58213 else
58214   echo "$as_me: failed program was:" >&5
58215 sed 's/^/| /' conftest.$ac_ext >&5
58216
58217 eval "$as_ac_var=no"
58218 fi
58219 rm -f conftest.err conftest.$ac_objext \
58220       conftest$ac_exeext conftest.$ac_ext
58221 fi
58222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58224 if test `eval echo '${'$as_ac_var'}'` = yes; then
58225   cat >>confdefs.h <<_ACEOF
58226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58227 _ACEOF
58228  ice_have_shmget=yes
58229 fi
58230 done
58231
58232 if test "${ice_have_shmget}" = yes; then
58233 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
58234 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
58235 if test "${ice_cv_have_shmget_decl+set}" = set; then
58236   echo $ECHO_N "(cached) $ECHO_C" >&6
58237 else
58238
58239 ice_cv_have_shmget_decl=no
58240 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58241 ice_re_word='(^|[^a-zA-Z0-9_])'
58242 for header in sys/types.h sys/ipc.h sys/shm.h; do
58243 # Check for ordinary declaration
58244 cat >conftest.$ac_ext <<_ACEOF
58245 /* confdefs.h.  */
58246 _ACEOF
58247 cat confdefs.h >>conftest.$ac_ext
58248 cat >>conftest.$ac_ext <<_ACEOF
58249 /* end confdefs.h.  */
58250 #include <$header>
58251
58252 _ACEOF
58253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58254   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
58255   ice_cv_have_shmget_decl=yes
58256 fi
58257 rm -f conftest*
58258
58259 if test "$ice_cv_have_shmget_decl" = yes; then
58260         break
58261 fi
58262 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58263 cat >conftest.$ac_ext <<_ACEOF
58264 /* confdefs.h.  */
58265 _ACEOF
58266 cat confdefs.h >>conftest.$ac_ext
58267 cat >>conftest.$ac_ext <<_ACEOF
58268 /* end confdefs.h.  */
58269 #include <$header>
58270
58271 _ACEOF
58272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58273   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58274   ice_cv_have_shmget_decl=yes
58275 fi
58276 rm -f conftest*
58277
58278 if test "$ice_cv_have_shmget_decl" = yes; then
58279         break
58280 fi
58281 done
58282
58283 fi
58284
58285 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
58286 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
58287 if test "$ice_cv_have_shmget_decl" = yes; then
58288
58289 cat >>confdefs.h <<_ACEOF
58290 #define HAVE_SHMGET_DECL 1
58291 _ACEOF
58292
58293 fi
58294 fi
58295
58296
58297 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
58298     case "$FORCE_MMAP" in
58299     n | no)
58300         if test "x$ac_cv_func_shmget" != xyes; then
58301             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
58302 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
58303             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
58304 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
58305             NO_SERVER_MODE=true
58306         fi
58307       ;;
58308     y | ye | yes)
58309         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
58310 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
58311         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
58312 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
58313         NO_SERVER_MODE=true
58314       ;;
58315     esac
58316 fi
58317
58318
58319
58320
58321 for ac_func in sigaction sigemptyset sigvec
58322 do
58323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58324 echo "$as_me:$LINENO: checking for $ac_func" >&5
58325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58326 if eval "test \"\${$as_ac_var+set}\" = set"; then
58327   echo $ECHO_N "(cached) $ECHO_C" >&6
58328 else
58329   cat >conftest.$ac_ext <<_ACEOF
58330 /* confdefs.h.  */
58331 _ACEOF
58332 cat confdefs.h >>conftest.$ac_ext
58333 cat >>conftest.$ac_ext <<_ACEOF
58334 /* end confdefs.h.  */
58335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58337 #define $ac_func innocuous_$ac_func
58338
58339 /* System header to define __stub macros and hopefully few prototypes,
58340     which can conflict with char $ac_func (); below.
58341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58342     <limits.h> exists even on freestanding compilers.  */
58343
58344 #ifdef __STDC__
58345 # include <limits.h>
58346 #else
58347 # include <assert.h>
58348 #endif
58349
58350 #undef $ac_func
58351
58352 /* Override any gcc2 internal prototype to avoid an error.  */
58353 #ifdef __cplusplus
58354 extern "C"
58355 {
58356 #endif
58357 /* We use char because int might match the return type of a gcc2
58358    builtin and then its argument prototype would still apply.  */
58359 char $ac_func ();
58360 /* The GNU C library defines this for functions which it implements
58361     to always fail with ENOSYS.  Some functions are actually named
58362     something starting with __ and the normal name is an alias.  */
58363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58364 choke me
58365 #else
58366 char (*f) () = $ac_func;
58367 #endif
58368 #ifdef __cplusplus
58369 }
58370 #endif
58371
58372 int
58373 main ()
58374 {
58375 return f != $ac_func;
58376   ;
58377   return 0;
58378 }
58379 _ACEOF
58380 rm -f conftest.$ac_objext conftest$ac_exeext
58381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58382   (eval $ac_link) 2>conftest.er1
58383   ac_status=$?
58384   grep -v '^ *+' conftest.er1 >conftest.err
58385   rm -f conftest.er1
58386   cat conftest.err >&5
58387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58388   (exit $ac_status); } &&
58389          { ac_try='test -z "$ac_c_werror_flag"
58390                          || test ! -s conftest.err'
58391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58392   (eval $ac_try) 2>&5
58393   ac_status=$?
58394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58395   (exit $ac_status); }; } &&
58396          { ac_try='test -s conftest$ac_exeext'
58397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58398   (eval $ac_try) 2>&5
58399   ac_status=$?
58400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58401   (exit $ac_status); }; }; then
58402   eval "$as_ac_var=yes"
58403 else
58404   echo "$as_me: failed program was:" >&5
58405 sed 's/^/| /' conftest.$ac_ext >&5
58406
58407 eval "$as_ac_var=no"
58408 fi
58409 rm -f conftest.err conftest.$ac_objext \
58410       conftest$ac_exeext conftest.$ac_ext
58411 fi
58412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58414 if test `eval echo '${'$as_ac_var'}'` = yes; then
58415   cat >>confdefs.h <<_ACEOF
58416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58417 _ACEOF
58418
58419 fi
58420 done
58421
58422
58423 ice_have_socket=no
58424
58425 for ac_func in socket
58426 do
58427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58428 echo "$as_me:$LINENO: checking for $ac_func" >&5
58429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58430 if eval "test \"\${$as_ac_var+set}\" = set"; then
58431   echo $ECHO_N "(cached) $ECHO_C" >&6
58432 else
58433   cat >conftest.$ac_ext <<_ACEOF
58434 /* confdefs.h.  */
58435 _ACEOF
58436 cat confdefs.h >>conftest.$ac_ext
58437 cat >>conftest.$ac_ext <<_ACEOF
58438 /* end confdefs.h.  */
58439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58441 #define $ac_func innocuous_$ac_func
58442
58443 /* System header to define __stub macros and hopefully few prototypes,
58444     which can conflict with char $ac_func (); below.
58445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58446     <limits.h> exists even on freestanding compilers.  */
58447
58448 #ifdef __STDC__
58449 # include <limits.h>
58450 #else
58451 # include <assert.h>
58452 #endif
58453
58454 #undef $ac_func
58455
58456 /* Override any gcc2 internal prototype to avoid an error.  */
58457 #ifdef __cplusplus
58458 extern "C"
58459 {
58460 #endif
58461 /* We use char because int might match the return type of a gcc2
58462    builtin and then its argument prototype would still apply.  */
58463 char $ac_func ();
58464 /* The GNU C library defines this for functions which it implements
58465     to always fail with ENOSYS.  Some functions are actually named
58466     something starting with __ and the normal name is an alias.  */
58467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58468 choke me
58469 #else
58470 char (*f) () = $ac_func;
58471 #endif
58472 #ifdef __cplusplus
58473 }
58474 #endif
58475
58476 int
58477 main ()
58478 {
58479 return f != $ac_func;
58480   ;
58481   return 0;
58482 }
58483 _ACEOF
58484 rm -f conftest.$ac_objext conftest$ac_exeext
58485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58486   (eval $ac_link) 2>conftest.er1
58487   ac_status=$?
58488   grep -v '^ *+' conftest.er1 >conftest.err
58489   rm -f conftest.er1
58490   cat conftest.err >&5
58491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58492   (exit $ac_status); } &&
58493          { ac_try='test -z "$ac_c_werror_flag"
58494                          || test ! -s conftest.err'
58495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58496   (eval $ac_try) 2>&5
58497   ac_status=$?
58498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58499   (exit $ac_status); }; } &&
58500          { ac_try='test -s conftest$ac_exeext'
58501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58502   (eval $ac_try) 2>&5
58503   ac_status=$?
58504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58505   (exit $ac_status); }; }; then
58506   eval "$as_ac_var=yes"
58507 else
58508   echo "$as_me: failed program was:" >&5
58509 sed 's/^/| /' conftest.$ac_ext >&5
58510
58511 eval "$as_ac_var=no"
58512 fi
58513 rm -f conftest.err conftest.$ac_objext \
58514       conftest$ac_exeext conftest.$ac_ext
58515 fi
58516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58518 if test `eval echo '${'$as_ac_var'}'` = yes; then
58519   cat >>confdefs.h <<_ACEOF
58520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58521 _ACEOF
58522  ice_have_socket=yes
58523 fi
58524 done
58525
58526 if test "${ice_have_socket}" = yes; then
58527 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
58528 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
58529 if test "${ice_cv_have_socket_decl+set}" = set; then
58530   echo $ECHO_N "(cached) $ECHO_C" >&6
58531 else
58532
58533 ice_cv_have_socket_decl=no
58534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58535 ice_re_word='(^|[^a-zA-Z0-9_])'
58536 for header in sys/types.h sys/socket.h; do
58537 # Check for ordinary declaration
58538 cat >conftest.$ac_ext <<_ACEOF
58539 /* confdefs.h.  */
58540 _ACEOF
58541 cat confdefs.h >>conftest.$ac_ext
58542 cat >>conftest.$ac_ext <<_ACEOF
58543 /* end confdefs.h.  */
58544 #include <$header>
58545
58546 _ACEOF
58547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58548   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
58549   ice_cv_have_socket_decl=yes
58550 fi
58551 rm -f conftest*
58552
58553 if test "$ice_cv_have_socket_decl" = yes; then
58554         break
58555 fi
58556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58557 cat >conftest.$ac_ext <<_ACEOF
58558 /* confdefs.h.  */
58559 _ACEOF
58560 cat confdefs.h >>conftest.$ac_ext
58561 cat >>conftest.$ac_ext <<_ACEOF
58562 /* end confdefs.h.  */
58563 #include <$header>
58564
58565 _ACEOF
58566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58567   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58568   ice_cv_have_socket_decl=yes
58569 fi
58570 rm -f conftest*
58571
58572 if test "$ice_cv_have_socket_decl" = yes; then
58573         break
58574 fi
58575 done
58576
58577 fi
58578
58579 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
58580 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
58581 if test "$ice_cv_have_socket_decl" = yes; then
58582
58583 cat >>confdefs.h <<_ACEOF
58584 #define HAVE_SOCKET_DECL 1
58585 _ACEOF
58586
58587 fi
58588 fi
58589
58590
58591 ice_have_socketpair=no
58592
58593 for ac_func in socketpair
58594 do
58595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58596 echo "$as_me:$LINENO: checking for $ac_func" >&5
58597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58598 if eval "test \"\${$as_ac_var+set}\" = set"; then
58599   echo $ECHO_N "(cached) $ECHO_C" >&6
58600 else
58601   cat >conftest.$ac_ext <<_ACEOF
58602 /* confdefs.h.  */
58603 _ACEOF
58604 cat confdefs.h >>conftest.$ac_ext
58605 cat >>conftest.$ac_ext <<_ACEOF
58606 /* end confdefs.h.  */
58607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58609 #define $ac_func innocuous_$ac_func
58610
58611 /* System header to define __stub macros and hopefully few prototypes,
58612     which can conflict with char $ac_func (); below.
58613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58614     <limits.h> exists even on freestanding compilers.  */
58615
58616 #ifdef __STDC__
58617 # include <limits.h>
58618 #else
58619 # include <assert.h>
58620 #endif
58621
58622 #undef $ac_func
58623
58624 /* Override any gcc2 internal prototype to avoid an error.  */
58625 #ifdef __cplusplus
58626 extern "C"
58627 {
58628 #endif
58629 /* We use char because int might match the return type of a gcc2
58630    builtin and then its argument prototype would still apply.  */
58631 char $ac_func ();
58632 /* The GNU C library defines this for functions which it implements
58633     to always fail with ENOSYS.  Some functions are actually named
58634     something starting with __ and the normal name is an alias.  */
58635 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58636 choke me
58637 #else
58638 char (*f) () = $ac_func;
58639 #endif
58640 #ifdef __cplusplus
58641 }
58642 #endif
58643
58644 int
58645 main ()
58646 {
58647 return f != $ac_func;
58648   ;
58649   return 0;
58650 }
58651 _ACEOF
58652 rm -f conftest.$ac_objext conftest$ac_exeext
58653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58654   (eval $ac_link) 2>conftest.er1
58655   ac_status=$?
58656   grep -v '^ *+' conftest.er1 >conftest.err
58657   rm -f conftest.er1
58658   cat conftest.err >&5
58659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58660   (exit $ac_status); } &&
58661          { ac_try='test -z "$ac_c_werror_flag"
58662                          || test ! -s conftest.err'
58663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58664   (eval $ac_try) 2>&5
58665   ac_status=$?
58666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58667   (exit $ac_status); }; } &&
58668          { ac_try='test -s conftest$ac_exeext'
58669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58670   (eval $ac_try) 2>&5
58671   ac_status=$?
58672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58673   (exit $ac_status); }; }; then
58674   eval "$as_ac_var=yes"
58675 else
58676   echo "$as_me: failed program was:" >&5
58677 sed 's/^/| /' conftest.$ac_ext >&5
58678
58679 eval "$as_ac_var=no"
58680 fi
58681 rm -f conftest.err conftest.$ac_objext \
58682       conftest$ac_exeext conftest.$ac_ext
58683 fi
58684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58686 if test `eval echo '${'$as_ac_var'}'` = yes; then
58687   cat >>confdefs.h <<_ACEOF
58688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58689 _ACEOF
58690  ice_have_socketpair=yes
58691 fi
58692 done
58693
58694 if test "${ice_have_socketpair}" = yes; then
58695 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
58696 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
58697 if test "${ice_cv_have_socketpair_decl+set}" = set; then
58698   echo $ECHO_N "(cached) $ECHO_C" >&6
58699 else
58700
58701 ice_cv_have_socketpair_decl=no
58702 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58703 ice_re_word='(^|[^a-zA-Z0-9_])'
58704 for header in sys/types.h sys/socket.h; do
58705 # Check for ordinary declaration
58706 cat >conftest.$ac_ext <<_ACEOF
58707 /* confdefs.h.  */
58708 _ACEOF
58709 cat confdefs.h >>conftest.$ac_ext
58710 cat >>conftest.$ac_ext <<_ACEOF
58711 /* end confdefs.h.  */
58712 #include <$header>
58713
58714 _ACEOF
58715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58716   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
58717   ice_cv_have_socketpair_decl=yes
58718 fi
58719 rm -f conftest*
58720
58721 if test "$ice_cv_have_socketpair_decl" = yes; then
58722         break
58723 fi
58724 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58725 cat >conftest.$ac_ext <<_ACEOF
58726 /* confdefs.h.  */
58727 _ACEOF
58728 cat confdefs.h >>conftest.$ac_ext
58729 cat >>conftest.$ac_ext <<_ACEOF
58730 /* end confdefs.h.  */
58731 #include <$header>
58732
58733 _ACEOF
58734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58735   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58736   ice_cv_have_socketpair_decl=yes
58737 fi
58738 rm -f conftest*
58739
58740 if test "$ice_cv_have_socketpair_decl" = yes; then
58741         break
58742 fi
58743 done
58744
58745 fi
58746
58747 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
58748 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
58749 if test "$ice_cv_have_socketpair_decl" = yes; then
58750
58751 cat >>confdefs.h <<_ACEOF
58752 #define HAVE_SOCKETPAIR_DECL 1
58753 _ACEOF
58754
58755 fi
58756 fi
58757
58758
58759 ice_have_sscanf=no
58760
58761 for ac_func in sscanf
58762 do
58763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58764 echo "$as_me:$LINENO: checking for $ac_func" >&5
58765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58766 if eval "test \"\${$as_ac_var+set}\" = set"; then
58767   echo $ECHO_N "(cached) $ECHO_C" >&6
58768 else
58769   cat >conftest.$ac_ext <<_ACEOF
58770 /* confdefs.h.  */
58771 _ACEOF
58772 cat confdefs.h >>conftest.$ac_ext
58773 cat >>conftest.$ac_ext <<_ACEOF
58774 /* end confdefs.h.  */
58775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58777 #define $ac_func innocuous_$ac_func
58778
58779 /* System header to define __stub macros and hopefully few prototypes,
58780     which can conflict with char $ac_func (); below.
58781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58782     <limits.h> exists even on freestanding compilers.  */
58783
58784 #ifdef __STDC__
58785 # include <limits.h>
58786 #else
58787 # include <assert.h>
58788 #endif
58789
58790 #undef $ac_func
58791
58792 /* Override any gcc2 internal prototype to avoid an error.  */
58793 #ifdef __cplusplus
58794 extern "C"
58795 {
58796 #endif
58797 /* We use char because int might match the return type of a gcc2
58798    builtin and then its argument prototype would still apply.  */
58799 char $ac_func ();
58800 /* The GNU C library defines this for functions which it implements
58801     to always fail with ENOSYS.  Some functions are actually named
58802     something starting with __ and the normal name is an alias.  */
58803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58804 choke me
58805 #else
58806 char (*f) () = $ac_func;
58807 #endif
58808 #ifdef __cplusplus
58809 }
58810 #endif
58811
58812 int
58813 main ()
58814 {
58815 return f != $ac_func;
58816   ;
58817   return 0;
58818 }
58819 _ACEOF
58820 rm -f conftest.$ac_objext conftest$ac_exeext
58821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58822   (eval $ac_link) 2>conftest.er1
58823   ac_status=$?
58824   grep -v '^ *+' conftest.er1 >conftest.err
58825   rm -f conftest.er1
58826   cat conftest.err >&5
58827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58828   (exit $ac_status); } &&
58829          { ac_try='test -z "$ac_c_werror_flag"
58830                          || test ! -s conftest.err'
58831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58832   (eval $ac_try) 2>&5
58833   ac_status=$?
58834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58835   (exit $ac_status); }; } &&
58836          { ac_try='test -s conftest$ac_exeext'
58837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58838   (eval $ac_try) 2>&5
58839   ac_status=$?
58840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58841   (exit $ac_status); }; }; then
58842   eval "$as_ac_var=yes"
58843 else
58844   echo "$as_me: failed program was:" >&5
58845 sed 's/^/| /' conftest.$ac_ext >&5
58846
58847 eval "$as_ac_var=no"
58848 fi
58849 rm -f conftest.err conftest.$ac_objext \
58850       conftest$ac_exeext conftest.$ac_ext
58851 fi
58852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58854 if test `eval echo '${'$as_ac_var'}'` = yes; then
58855   cat >>confdefs.h <<_ACEOF
58856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58857 _ACEOF
58858  ice_have_sscanf=yes
58859 fi
58860 done
58861
58862 if test "${ice_have_sscanf}" = yes; then
58863 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
58864 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
58865 if test "${ice_cv_have_sscanf_decl+set}" = set; then
58866   echo $ECHO_N "(cached) $ECHO_C" >&6
58867 else
58868
58869 ice_cv_have_sscanf_decl=no
58870 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58871 ice_re_word='(^|[^a-zA-Z0-9_])'
58872 for header in stdio.h; do
58873 # Check for ordinary declaration
58874 cat >conftest.$ac_ext <<_ACEOF
58875 /* confdefs.h.  */
58876 _ACEOF
58877 cat confdefs.h >>conftest.$ac_ext
58878 cat >>conftest.$ac_ext <<_ACEOF
58879 /* end confdefs.h.  */
58880 #include <$header>
58881
58882 _ACEOF
58883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58884   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
58885   ice_cv_have_sscanf_decl=yes
58886 fi
58887 rm -f conftest*
58888
58889 if test "$ice_cv_have_sscanf_decl" = yes; then
58890         break
58891 fi
58892 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58893 cat >conftest.$ac_ext <<_ACEOF
58894 /* confdefs.h.  */
58895 _ACEOF
58896 cat confdefs.h >>conftest.$ac_ext
58897 cat >>conftest.$ac_ext <<_ACEOF
58898 /* end confdefs.h.  */
58899 #include <$header>
58900
58901 _ACEOF
58902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58903   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58904   ice_cv_have_sscanf_decl=yes
58905 fi
58906 rm -f conftest*
58907
58908 if test "$ice_cv_have_sscanf_decl" = yes; then
58909         break
58910 fi
58911 done
58912
58913 fi
58914
58915 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
58916 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
58917 if test "$ice_cv_have_sscanf_decl" = yes; then
58918
58919 cat >>confdefs.h <<_ACEOF
58920 #define HAVE_SSCANF_DECL 1
58921 _ACEOF
58922
58923 fi
58924 fi
58925
58926
58927
58928 for ac_func in statfs statvfs
58929 do
58930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58931 echo "$as_me:$LINENO: checking for $ac_func" >&5
58932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58933 if eval "test \"\${$as_ac_var+set}\" = set"; then
58934   echo $ECHO_N "(cached) $ECHO_C" >&6
58935 else
58936   cat >conftest.$ac_ext <<_ACEOF
58937 /* confdefs.h.  */
58938 _ACEOF
58939 cat confdefs.h >>conftest.$ac_ext
58940 cat >>conftest.$ac_ext <<_ACEOF
58941 /* end confdefs.h.  */
58942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58944 #define $ac_func innocuous_$ac_func
58945
58946 /* System header to define __stub macros and hopefully few prototypes,
58947     which can conflict with char $ac_func (); below.
58948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58949     <limits.h> exists even on freestanding compilers.  */
58950
58951 #ifdef __STDC__
58952 # include <limits.h>
58953 #else
58954 # include <assert.h>
58955 #endif
58956
58957 #undef $ac_func
58958
58959 /* Override any gcc2 internal prototype to avoid an error.  */
58960 #ifdef __cplusplus
58961 extern "C"
58962 {
58963 #endif
58964 /* We use char because int might match the return type of a gcc2
58965    builtin and then its argument prototype would still apply.  */
58966 char $ac_func ();
58967 /* The GNU C library defines this for functions which it implements
58968     to always fail with ENOSYS.  Some functions are actually named
58969     something starting with __ and the normal name is an alias.  */
58970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58971 choke me
58972 #else
58973 char (*f) () = $ac_func;
58974 #endif
58975 #ifdef __cplusplus
58976 }
58977 #endif
58978
58979 int
58980 main ()
58981 {
58982 return f != $ac_func;
58983   ;
58984   return 0;
58985 }
58986 _ACEOF
58987 rm -f conftest.$ac_objext conftest$ac_exeext
58988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58989   (eval $ac_link) 2>conftest.er1
58990   ac_status=$?
58991   grep -v '^ *+' conftest.er1 >conftest.err
58992   rm -f conftest.er1
58993   cat conftest.err >&5
58994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58995   (exit $ac_status); } &&
58996          { ac_try='test -z "$ac_c_werror_flag"
58997                          || test ! -s conftest.err'
58998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58999   (eval $ac_try) 2>&5
59000   ac_status=$?
59001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59002   (exit $ac_status); }; } &&
59003          { ac_try='test -s conftest$ac_exeext'
59004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59005   (eval $ac_try) 2>&5
59006   ac_status=$?
59007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59008   (exit $ac_status); }; }; then
59009   eval "$as_ac_var=yes"
59010 else
59011   echo "$as_me: failed program was:" >&5
59012 sed 's/^/| /' conftest.$ac_ext >&5
59013
59014 eval "$as_ac_var=no"
59015 fi
59016 rm -f conftest.err conftest.$ac_objext \
59017       conftest$ac_exeext conftest.$ac_ext
59018 fi
59019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59021 if test `eval echo '${'$as_ac_var'}'` = yes; then
59022   cat >>confdefs.h <<_ACEOF
59023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59024 _ACEOF
59025
59026 fi
59027 done
59028
59029
59030 ice_have_strerror=no
59031
59032 for ac_func in strerror
59033 do
59034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59035 echo "$as_me:$LINENO: checking for $ac_func" >&5
59036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59037 if eval "test \"\${$as_ac_var+set}\" = set"; then
59038   echo $ECHO_N "(cached) $ECHO_C" >&6
59039 else
59040   cat >conftest.$ac_ext <<_ACEOF
59041 /* confdefs.h.  */
59042 _ACEOF
59043 cat confdefs.h >>conftest.$ac_ext
59044 cat >>conftest.$ac_ext <<_ACEOF
59045 /* end confdefs.h.  */
59046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59048 #define $ac_func innocuous_$ac_func
59049
59050 /* System header to define __stub macros and hopefully few prototypes,
59051     which can conflict with char $ac_func (); below.
59052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59053     <limits.h> exists even on freestanding compilers.  */
59054
59055 #ifdef __STDC__
59056 # include <limits.h>
59057 #else
59058 # include <assert.h>
59059 #endif
59060
59061 #undef $ac_func
59062
59063 /* Override any gcc2 internal prototype to avoid an error.  */
59064 #ifdef __cplusplus
59065 extern "C"
59066 {
59067 #endif
59068 /* We use char because int might match the return type of a gcc2
59069    builtin and then its argument prototype would still apply.  */
59070 char $ac_func ();
59071 /* The GNU C library defines this for functions which it implements
59072     to always fail with ENOSYS.  Some functions are actually named
59073     something starting with __ and the normal name is an alias.  */
59074 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59075 choke me
59076 #else
59077 char (*f) () = $ac_func;
59078 #endif
59079 #ifdef __cplusplus
59080 }
59081 #endif
59082
59083 int
59084 main ()
59085 {
59086 return f != $ac_func;
59087   ;
59088   return 0;
59089 }
59090 _ACEOF
59091 rm -f conftest.$ac_objext conftest$ac_exeext
59092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59093   (eval $ac_link) 2>conftest.er1
59094   ac_status=$?
59095   grep -v '^ *+' conftest.er1 >conftest.err
59096   rm -f conftest.er1
59097   cat conftest.err >&5
59098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59099   (exit $ac_status); } &&
59100          { ac_try='test -z "$ac_c_werror_flag"
59101                          || test ! -s conftest.err'
59102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59103   (eval $ac_try) 2>&5
59104   ac_status=$?
59105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59106   (exit $ac_status); }; } &&
59107          { ac_try='test -s conftest$ac_exeext'
59108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59109   (eval $ac_try) 2>&5
59110   ac_status=$?
59111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59112   (exit $ac_status); }; }; then
59113   eval "$as_ac_var=yes"
59114 else
59115   echo "$as_me: failed program was:" >&5
59116 sed 's/^/| /' conftest.$ac_ext >&5
59117
59118 eval "$as_ac_var=no"
59119 fi
59120 rm -f conftest.err conftest.$ac_objext \
59121       conftest$ac_exeext conftest.$ac_ext
59122 fi
59123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59125 if test `eval echo '${'$as_ac_var'}'` = yes; then
59126   cat >>confdefs.h <<_ACEOF
59127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59128 _ACEOF
59129  ice_have_strerror=yes
59130 fi
59131 done
59132
59133 if test "${ice_have_strerror}" = yes; then
59134 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
59135 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
59136 if test "${ice_cv_have_strerror_decl+set}" = set; then
59137   echo $ECHO_N "(cached) $ECHO_C" >&6
59138 else
59139
59140 ice_cv_have_strerror_decl=no
59141 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59142 ice_re_word='(^|[^a-zA-Z0-9_])'
59143 for header in string.h strings.h; do
59144 # Check for ordinary declaration
59145 cat >conftest.$ac_ext <<_ACEOF
59146 /* confdefs.h.  */
59147 _ACEOF
59148 cat confdefs.h >>conftest.$ac_ext
59149 cat >>conftest.$ac_ext <<_ACEOF
59150 /* end confdefs.h.  */
59151 #include <$header>
59152
59153 _ACEOF
59154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59155   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
59156   ice_cv_have_strerror_decl=yes
59157 fi
59158 rm -f conftest*
59159
59160 if test "$ice_cv_have_strerror_decl" = yes; then
59161         break
59162 fi
59163 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59164 cat >conftest.$ac_ext <<_ACEOF
59165 /* confdefs.h.  */
59166 _ACEOF
59167 cat confdefs.h >>conftest.$ac_ext
59168 cat >>conftest.$ac_ext <<_ACEOF
59169 /* end confdefs.h.  */
59170 #include <$header>
59171
59172 _ACEOF
59173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59174   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59175   ice_cv_have_strerror_decl=yes
59176 fi
59177 rm -f conftest*
59178
59179 if test "$ice_cv_have_strerror_decl" = yes; then
59180         break
59181 fi
59182 done
59183
59184 fi
59185
59186 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
59187 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
59188 if test "$ice_cv_have_strerror_decl" = yes; then
59189
59190 cat >>confdefs.h <<_ACEOF
59191 #define HAVE_STRERROR_DECL 1
59192 _ACEOF
59193
59194 fi
59195 fi
59196
59197
59198 for ac_func in strftime
59199 do
59200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59201 echo "$as_me:$LINENO: checking for $ac_func" >&5
59202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59203 if eval "test \"\${$as_ac_var+set}\" = set"; then
59204   echo $ECHO_N "(cached) $ECHO_C" >&6
59205 else
59206   cat >conftest.$ac_ext <<_ACEOF
59207 /* confdefs.h.  */
59208 _ACEOF
59209 cat confdefs.h >>conftest.$ac_ext
59210 cat >>conftest.$ac_ext <<_ACEOF
59211 /* end confdefs.h.  */
59212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59214 #define $ac_func innocuous_$ac_func
59215
59216 /* System header to define __stub macros and hopefully few prototypes,
59217     which can conflict with char $ac_func (); below.
59218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59219     <limits.h> exists even on freestanding compilers.  */
59220
59221 #ifdef __STDC__
59222 # include <limits.h>
59223 #else
59224 # include <assert.h>
59225 #endif
59226
59227 #undef $ac_func
59228
59229 /* Override any gcc2 internal prototype to avoid an error.  */
59230 #ifdef __cplusplus
59231 extern "C"
59232 {
59233 #endif
59234 /* We use char because int might match the return type of a gcc2
59235    builtin and then its argument prototype would still apply.  */
59236 char $ac_func ();
59237 /* The GNU C library defines this for functions which it implements
59238     to always fail with ENOSYS.  Some functions are actually named
59239     something starting with __ and the normal name is an alias.  */
59240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59241 choke me
59242 #else
59243 char (*f) () = $ac_func;
59244 #endif
59245 #ifdef __cplusplus
59246 }
59247 #endif
59248
59249 int
59250 main ()
59251 {
59252 return f != $ac_func;
59253   ;
59254   return 0;
59255 }
59256 _ACEOF
59257 rm -f conftest.$ac_objext conftest$ac_exeext
59258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59259   (eval $ac_link) 2>conftest.er1
59260   ac_status=$?
59261   grep -v '^ *+' conftest.er1 >conftest.err
59262   rm -f conftest.er1
59263   cat conftest.err >&5
59264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59265   (exit $ac_status); } &&
59266          { ac_try='test -z "$ac_c_werror_flag"
59267                          || test ! -s conftest.err'
59268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59269   (eval $ac_try) 2>&5
59270   ac_status=$?
59271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59272   (exit $ac_status); }; } &&
59273          { ac_try='test -s conftest$ac_exeext'
59274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59275   (eval $ac_try) 2>&5
59276   ac_status=$?
59277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59278   (exit $ac_status); }; }; then
59279   eval "$as_ac_var=yes"
59280 else
59281   echo "$as_me: failed program was:" >&5
59282 sed 's/^/| /' conftest.$ac_ext >&5
59283
59284 eval "$as_ac_var=no"
59285 fi
59286 rm -f conftest.err conftest.$ac_objext \
59287       conftest$ac_exeext conftest.$ac_ext
59288 fi
59289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59291 if test `eval echo '${'$as_ac_var'}'` = yes; then
59292   cat >>confdefs.h <<_ACEOF
59293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59294 _ACEOF
59295
59296 else
59297   # strftime is in -lintl on SCO UNIX.
59298 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
59299 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
59300 if test "${ac_cv_lib_intl_strftime+set}" = set; then
59301   echo $ECHO_N "(cached) $ECHO_C" >&6
59302 else
59303   ac_check_lib_save_LIBS=$LIBS
59304 LIBS="-lintl  $LIBS"
59305 cat >conftest.$ac_ext <<_ACEOF
59306 /* confdefs.h.  */
59307 _ACEOF
59308 cat confdefs.h >>conftest.$ac_ext
59309 cat >>conftest.$ac_ext <<_ACEOF
59310 /* end confdefs.h.  */
59311
59312 /* Override any gcc2 internal prototype to avoid an error.  */
59313 #ifdef __cplusplus
59314 extern "C"
59315 #endif
59316 /* We use char because int might match the return type of a gcc2
59317    builtin and then its argument prototype would still apply.  */
59318 char strftime ();
59319 int
59320 main ()
59321 {
59322 strftime ();
59323   ;
59324   return 0;
59325 }
59326 _ACEOF
59327 rm -f conftest.$ac_objext conftest$ac_exeext
59328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59329   (eval $ac_link) 2>conftest.er1
59330   ac_status=$?
59331   grep -v '^ *+' conftest.er1 >conftest.err
59332   rm -f conftest.er1
59333   cat conftest.err >&5
59334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59335   (exit $ac_status); } &&
59336          { ac_try='test -z "$ac_c_werror_flag"
59337                          || test ! -s conftest.err'
59338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59339   (eval $ac_try) 2>&5
59340   ac_status=$?
59341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59342   (exit $ac_status); }; } &&
59343          { ac_try='test -s conftest$ac_exeext'
59344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59345   (eval $ac_try) 2>&5
59346   ac_status=$?
59347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59348   (exit $ac_status); }; }; then
59349   ac_cv_lib_intl_strftime=yes
59350 else
59351   echo "$as_me: failed program was:" >&5
59352 sed 's/^/| /' conftest.$ac_ext >&5
59353
59354 ac_cv_lib_intl_strftime=no
59355 fi
59356 rm -f conftest.err conftest.$ac_objext \
59357       conftest$ac_exeext conftest.$ac_ext
59358 LIBS=$ac_check_lib_save_LIBS
59359 fi
59360 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
59361 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
59362 if test $ac_cv_lib_intl_strftime = yes; then
59363   cat >>confdefs.h <<\_ACEOF
59364 #define HAVE_STRFTIME 1
59365 _ACEOF
59366
59367 LIBS="-lintl $LIBS"
59368 fi
59369
59370 fi
59371 done
59372
59373
59374 ice_have_strftime=no
59375
59376 for ac_func in strftime
59377 do
59378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59379 echo "$as_me:$LINENO: checking for $ac_func" >&5
59380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59381 if eval "test \"\${$as_ac_var+set}\" = set"; then
59382   echo $ECHO_N "(cached) $ECHO_C" >&6
59383 else
59384   cat >conftest.$ac_ext <<_ACEOF
59385 /* confdefs.h.  */
59386 _ACEOF
59387 cat confdefs.h >>conftest.$ac_ext
59388 cat >>conftest.$ac_ext <<_ACEOF
59389 /* end confdefs.h.  */
59390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59392 #define $ac_func innocuous_$ac_func
59393
59394 /* System header to define __stub macros and hopefully few prototypes,
59395     which can conflict with char $ac_func (); below.
59396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59397     <limits.h> exists even on freestanding compilers.  */
59398
59399 #ifdef __STDC__
59400 # include <limits.h>
59401 #else
59402 # include <assert.h>
59403 #endif
59404
59405 #undef $ac_func
59406
59407 /* Override any gcc2 internal prototype to avoid an error.  */
59408 #ifdef __cplusplus
59409 extern "C"
59410 {
59411 #endif
59412 /* We use char because int might match the return type of a gcc2
59413    builtin and then its argument prototype would still apply.  */
59414 char $ac_func ();
59415 /* The GNU C library defines this for functions which it implements
59416     to always fail with ENOSYS.  Some functions are actually named
59417     something starting with __ and the normal name is an alias.  */
59418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59419 choke me
59420 #else
59421 char (*f) () = $ac_func;
59422 #endif
59423 #ifdef __cplusplus
59424 }
59425 #endif
59426
59427 int
59428 main ()
59429 {
59430 return f != $ac_func;
59431   ;
59432   return 0;
59433 }
59434 _ACEOF
59435 rm -f conftest.$ac_objext conftest$ac_exeext
59436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59437   (eval $ac_link) 2>conftest.er1
59438   ac_status=$?
59439   grep -v '^ *+' conftest.er1 >conftest.err
59440   rm -f conftest.er1
59441   cat conftest.err >&5
59442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59443   (exit $ac_status); } &&
59444          { ac_try='test -z "$ac_c_werror_flag"
59445                          || test ! -s conftest.err'
59446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59447   (eval $ac_try) 2>&5
59448   ac_status=$?
59449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59450   (exit $ac_status); }; } &&
59451          { ac_try='test -s conftest$ac_exeext'
59452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59453   (eval $ac_try) 2>&5
59454   ac_status=$?
59455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59456   (exit $ac_status); }; }; then
59457   eval "$as_ac_var=yes"
59458 else
59459   echo "$as_me: failed program was:" >&5
59460 sed 's/^/| /' conftest.$ac_ext >&5
59461
59462 eval "$as_ac_var=no"
59463 fi
59464 rm -f conftest.err conftest.$ac_objext \
59465       conftest$ac_exeext conftest.$ac_ext
59466 fi
59467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59469 if test `eval echo '${'$as_ac_var'}'` = yes; then
59470   cat >>confdefs.h <<_ACEOF
59471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59472 _ACEOF
59473  ice_have_strftime=yes
59474 fi
59475 done
59476
59477 if test "${ice_have_strftime}" = yes; then
59478 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
59479 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
59480 if test "${ice_cv_have_strftime_decl+set}" = set; then
59481   echo $ECHO_N "(cached) $ECHO_C" >&6
59482 else
59483
59484 ice_cv_have_strftime_decl=no
59485 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59486 ice_re_word='(^|[^a-zA-Z0-9_])'
59487 for header in time.h sys/time.h; do
59488 # Check for ordinary declaration
59489 cat >conftest.$ac_ext <<_ACEOF
59490 /* confdefs.h.  */
59491 _ACEOF
59492 cat confdefs.h >>conftest.$ac_ext
59493 cat >>conftest.$ac_ext <<_ACEOF
59494 /* end confdefs.h.  */
59495 #include <$header>
59496
59497 _ACEOF
59498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59499   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
59500   ice_cv_have_strftime_decl=yes
59501 fi
59502 rm -f conftest*
59503
59504 if test "$ice_cv_have_strftime_decl" = yes; then
59505         break
59506 fi
59507 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59508 cat >conftest.$ac_ext <<_ACEOF
59509 /* confdefs.h.  */
59510 _ACEOF
59511 cat confdefs.h >>conftest.$ac_ext
59512 cat >>conftest.$ac_ext <<_ACEOF
59513 /* end confdefs.h.  */
59514 #include <$header>
59515
59516 _ACEOF
59517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59518   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59519   ice_cv_have_strftime_decl=yes
59520 fi
59521 rm -f conftest*
59522
59523 if test "$ice_cv_have_strftime_decl" = yes; then
59524         break
59525 fi
59526 done
59527
59528 fi
59529
59530 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
59531 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
59532 if test "$ice_cv_have_strftime_decl" = yes; then
59533
59534 cat >>confdefs.h <<_ACEOF
59535 #define HAVE_STRFTIME_DECL 1
59536 _ACEOF
59537
59538 fi
59539 fi
59540
59541
59542 ice_have_strncasecmp=no
59543
59544 for ac_func in strncasecmp
59545 do
59546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59547 echo "$as_me:$LINENO: checking for $ac_func" >&5
59548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59549 if eval "test \"\${$as_ac_var+set}\" = set"; then
59550   echo $ECHO_N "(cached) $ECHO_C" >&6
59551 else
59552   cat >conftest.$ac_ext <<_ACEOF
59553 /* confdefs.h.  */
59554 _ACEOF
59555 cat confdefs.h >>conftest.$ac_ext
59556 cat >>conftest.$ac_ext <<_ACEOF
59557 /* end confdefs.h.  */
59558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59560 #define $ac_func innocuous_$ac_func
59561
59562 /* System header to define __stub macros and hopefully few prototypes,
59563     which can conflict with char $ac_func (); below.
59564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59565     <limits.h> exists even on freestanding compilers.  */
59566
59567 #ifdef __STDC__
59568 # include <limits.h>
59569 #else
59570 # include <assert.h>
59571 #endif
59572
59573 #undef $ac_func
59574
59575 /* Override any gcc2 internal prototype to avoid an error.  */
59576 #ifdef __cplusplus
59577 extern "C"
59578 {
59579 #endif
59580 /* We use char because int might match the return type of a gcc2
59581    builtin and then its argument prototype would still apply.  */
59582 char $ac_func ();
59583 /* The GNU C library defines this for functions which it implements
59584     to always fail with ENOSYS.  Some functions are actually named
59585     something starting with __ and the normal name is an alias.  */
59586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59587 choke me
59588 #else
59589 char (*f) () = $ac_func;
59590 #endif
59591 #ifdef __cplusplus
59592 }
59593 #endif
59594
59595 int
59596 main ()
59597 {
59598 return f != $ac_func;
59599   ;
59600   return 0;
59601 }
59602 _ACEOF
59603 rm -f conftest.$ac_objext conftest$ac_exeext
59604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59605   (eval $ac_link) 2>conftest.er1
59606   ac_status=$?
59607   grep -v '^ *+' conftest.er1 >conftest.err
59608   rm -f conftest.er1
59609   cat conftest.err >&5
59610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59611   (exit $ac_status); } &&
59612          { ac_try='test -z "$ac_c_werror_flag"
59613                          || test ! -s conftest.err'
59614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59615   (eval $ac_try) 2>&5
59616   ac_status=$?
59617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59618   (exit $ac_status); }; } &&
59619          { ac_try='test -s conftest$ac_exeext'
59620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59621   (eval $ac_try) 2>&5
59622   ac_status=$?
59623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59624   (exit $ac_status); }; }; then
59625   eval "$as_ac_var=yes"
59626 else
59627   echo "$as_me: failed program was:" >&5
59628 sed 's/^/| /' conftest.$ac_ext >&5
59629
59630 eval "$as_ac_var=no"
59631 fi
59632 rm -f conftest.err conftest.$ac_objext \
59633       conftest$ac_exeext conftest.$ac_ext
59634 fi
59635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59637 if test `eval echo '${'$as_ac_var'}'` = yes; then
59638   cat >>confdefs.h <<_ACEOF
59639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59640 _ACEOF
59641  ice_have_strncasecmp=yes
59642 fi
59643 done
59644
59645 if test "${ice_have_strncasecmp}" = yes; then
59646 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
59647 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
59648 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
59649   echo $ECHO_N "(cached) $ECHO_C" >&6
59650 else
59651
59652 ice_cv_have_strncasecmp_decl=no
59653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59654 ice_re_word='(^|[^a-zA-Z0-9_])'
59655 for header in string.h strings.h; do
59656 # Check for ordinary declaration
59657 cat >conftest.$ac_ext <<_ACEOF
59658 /* confdefs.h.  */
59659 _ACEOF
59660 cat confdefs.h >>conftest.$ac_ext
59661 cat >>conftest.$ac_ext <<_ACEOF
59662 /* end confdefs.h.  */
59663 #include <$header>
59664
59665 _ACEOF
59666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59667   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
59668   ice_cv_have_strncasecmp_decl=yes
59669 fi
59670 rm -f conftest*
59671
59672 if test "$ice_cv_have_strncasecmp_decl" = yes; then
59673         break
59674 fi
59675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59676 cat >conftest.$ac_ext <<_ACEOF
59677 /* confdefs.h.  */
59678 _ACEOF
59679 cat confdefs.h >>conftest.$ac_ext
59680 cat >>conftest.$ac_ext <<_ACEOF
59681 /* end confdefs.h.  */
59682 #include <$header>
59683
59684 _ACEOF
59685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59686   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59687   ice_cv_have_strncasecmp_decl=yes
59688 fi
59689 rm -f conftest*
59690
59691 if test "$ice_cv_have_strncasecmp_decl" = yes; then
59692         break
59693 fi
59694 done
59695
59696 fi
59697
59698 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
59699 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
59700 if test "$ice_cv_have_strncasecmp_decl" = yes; then
59701
59702 cat >>confdefs.h <<_ACEOF
59703 #define HAVE_STRNCASECMP_DECL 1
59704 _ACEOF
59705
59706 fi
59707 fi
59708
59709
59710 ice_have_syslog=no
59711
59712 for ac_func in syslog
59713 do
59714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59715 echo "$as_me:$LINENO: checking for $ac_func" >&5
59716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59717 if eval "test \"\${$as_ac_var+set}\" = set"; then
59718   echo $ECHO_N "(cached) $ECHO_C" >&6
59719 else
59720   cat >conftest.$ac_ext <<_ACEOF
59721 /* confdefs.h.  */
59722 _ACEOF
59723 cat confdefs.h >>conftest.$ac_ext
59724 cat >>conftest.$ac_ext <<_ACEOF
59725 /* end confdefs.h.  */
59726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59728 #define $ac_func innocuous_$ac_func
59729
59730 /* System header to define __stub macros and hopefully few prototypes,
59731     which can conflict with char $ac_func (); below.
59732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59733     <limits.h> exists even on freestanding compilers.  */
59734
59735 #ifdef __STDC__
59736 # include <limits.h>
59737 #else
59738 # include <assert.h>
59739 #endif
59740
59741 #undef $ac_func
59742
59743 /* Override any gcc2 internal prototype to avoid an error.  */
59744 #ifdef __cplusplus
59745 extern "C"
59746 {
59747 #endif
59748 /* We use char because int might match the return type of a gcc2
59749    builtin and then its argument prototype would still apply.  */
59750 char $ac_func ();
59751 /* The GNU C library defines this for functions which it implements
59752     to always fail with ENOSYS.  Some functions are actually named
59753     something starting with __ and the normal name is an alias.  */
59754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59755 choke me
59756 #else
59757 char (*f) () = $ac_func;
59758 #endif
59759 #ifdef __cplusplus
59760 }
59761 #endif
59762
59763 int
59764 main ()
59765 {
59766 return f != $ac_func;
59767   ;
59768   return 0;
59769 }
59770 _ACEOF
59771 rm -f conftest.$ac_objext conftest$ac_exeext
59772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59773   (eval $ac_link) 2>conftest.er1
59774   ac_status=$?
59775   grep -v '^ *+' conftest.er1 >conftest.err
59776   rm -f conftest.er1
59777   cat conftest.err >&5
59778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59779   (exit $ac_status); } &&
59780          { ac_try='test -z "$ac_c_werror_flag"
59781                          || test ! -s conftest.err'
59782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59783   (eval $ac_try) 2>&5
59784   ac_status=$?
59785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59786   (exit $ac_status); }; } &&
59787          { ac_try='test -s conftest$ac_exeext'
59788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59789   (eval $ac_try) 2>&5
59790   ac_status=$?
59791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59792   (exit $ac_status); }; }; then
59793   eval "$as_ac_var=yes"
59794 else
59795   echo "$as_me: failed program was:" >&5
59796 sed 's/^/| /' conftest.$ac_ext >&5
59797
59798 eval "$as_ac_var=no"
59799 fi
59800 rm -f conftest.err conftest.$ac_objext \
59801       conftest$ac_exeext conftest.$ac_ext
59802 fi
59803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59805 if test `eval echo '${'$as_ac_var'}'` = yes; then
59806   cat >>confdefs.h <<_ACEOF
59807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59808 _ACEOF
59809  ice_have_syslog=yes
59810 fi
59811 done
59812
59813 if test "${ice_have_syslog}" = yes; then
59814 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
59815 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
59816 if test "${ice_cv_have_syslog_decl+set}" = set; then
59817   echo $ECHO_N "(cached) $ECHO_C" >&6
59818 else
59819
59820 ice_cv_have_syslog_decl=no
59821 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59822 ice_re_word='(^|[^a-zA-Z0-9_])'
59823 for header in syslog.h; do
59824 # Check for ordinary declaration
59825 cat >conftest.$ac_ext <<_ACEOF
59826 /* confdefs.h.  */
59827 _ACEOF
59828 cat confdefs.h >>conftest.$ac_ext
59829 cat >>conftest.$ac_ext <<_ACEOF
59830 /* end confdefs.h.  */
59831 #include <$header>
59832
59833 _ACEOF
59834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59835   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
59836   ice_cv_have_syslog_decl=yes
59837 fi
59838 rm -f conftest*
59839
59840 if test "$ice_cv_have_syslog_decl" = yes; then
59841         break
59842 fi
59843 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59844 cat >conftest.$ac_ext <<_ACEOF
59845 /* confdefs.h.  */
59846 _ACEOF
59847 cat confdefs.h >>conftest.$ac_ext
59848 cat >>conftest.$ac_ext <<_ACEOF
59849 /* end confdefs.h.  */
59850 #include <$header>
59851
59852 _ACEOF
59853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59854   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59855   ice_cv_have_syslog_decl=yes
59856 fi
59857 rm -f conftest*
59858
59859 if test "$ice_cv_have_syslog_decl" = yes; then
59860         break
59861 fi
59862 done
59863
59864 fi
59865
59866 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
59867 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
59868 if test "$ice_cv_have_syslog_decl" = yes; then
59869
59870 cat >>confdefs.h <<_ACEOF
59871 #define HAVE_SYSLOG_DECL 1
59872 _ACEOF
59873
59874 fi
59875 fi
59876
59877
59878 ice_have_system=no
59879
59880 for ac_func in system
59881 do
59882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59883 echo "$as_me:$LINENO: checking for $ac_func" >&5
59884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59885 if eval "test \"\${$as_ac_var+set}\" = set"; then
59886   echo $ECHO_N "(cached) $ECHO_C" >&6
59887 else
59888   cat >conftest.$ac_ext <<_ACEOF
59889 /* confdefs.h.  */
59890 _ACEOF
59891 cat confdefs.h >>conftest.$ac_ext
59892 cat >>conftest.$ac_ext <<_ACEOF
59893 /* end confdefs.h.  */
59894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59896 #define $ac_func innocuous_$ac_func
59897
59898 /* System header to define __stub macros and hopefully few prototypes,
59899     which can conflict with char $ac_func (); below.
59900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59901     <limits.h> exists even on freestanding compilers.  */
59902
59903 #ifdef __STDC__
59904 # include <limits.h>
59905 #else
59906 # include <assert.h>
59907 #endif
59908
59909 #undef $ac_func
59910
59911 /* Override any gcc2 internal prototype to avoid an error.  */
59912 #ifdef __cplusplus
59913 extern "C"
59914 {
59915 #endif
59916 /* We use char because int might match the return type of a gcc2
59917    builtin and then its argument prototype would still apply.  */
59918 char $ac_func ();
59919 /* The GNU C library defines this for functions which it implements
59920     to always fail with ENOSYS.  Some functions are actually named
59921     something starting with __ and the normal name is an alias.  */
59922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59923 choke me
59924 #else
59925 char (*f) () = $ac_func;
59926 #endif
59927 #ifdef __cplusplus
59928 }
59929 #endif
59930
59931 int
59932 main ()
59933 {
59934 return f != $ac_func;
59935   ;
59936   return 0;
59937 }
59938 _ACEOF
59939 rm -f conftest.$ac_objext conftest$ac_exeext
59940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59941   (eval $ac_link) 2>conftest.er1
59942   ac_status=$?
59943   grep -v '^ *+' conftest.er1 >conftest.err
59944   rm -f conftest.er1
59945   cat conftest.err >&5
59946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59947   (exit $ac_status); } &&
59948          { ac_try='test -z "$ac_c_werror_flag"
59949                          || test ! -s conftest.err'
59950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59951   (eval $ac_try) 2>&5
59952   ac_status=$?
59953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59954   (exit $ac_status); }; } &&
59955          { ac_try='test -s conftest$ac_exeext'
59956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59957   (eval $ac_try) 2>&5
59958   ac_status=$?
59959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59960   (exit $ac_status); }; }; then
59961   eval "$as_ac_var=yes"
59962 else
59963   echo "$as_me: failed program was:" >&5
59964 sed 's/^/| /' conftest.$ac_ext >&5
59965
59966 eval "$as_ac_var=no"
59967 fi
59968 rm -f conftest.err conftest.$ac_objext \
59969       conftest$ac_exeext conftest.$ac_ext
59970 fi
59971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59973 if test `eval echo '${'$as_ac_var'}'` = yes; then
59974   cat >>confdefs.h <<_ACEOF
59975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59976 _ACEOF
59977  ice_have_system=yes
59978 fi
59979 done
59980
59981 if test "${ice_have_system}" = yes; then
59982 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
59983 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
59984 if test "${ice_cv_have_system_decl+set}" = set; then
59985   echo $ECHO_N "(cached) $ECHO_C" >&6
59986 else
59987
59988 ice_cv_have_system_decl=no
59989 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59990 ice_re_word='(^|[^a-zA-Z0-9_])'
59991 for header in stdlib.h; do
59992 # Check for ordinary declaration
59993 cat >conftest.$ac_ext <<_ACEOF
59994 /* confdefs.h.  */
59995 _ACEOF
59996 cat confdefs.h >>conftest.$ac_ext
59997 cat >>conftest.$ac_ext <<_ACEOF
59998 /* end confdefs.h.  */
59999 #include <$header>
60000
60001 _ACEOF
60002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60003   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
60004   ice_cv_have_system_decl=yes
60005 fi
60006 rm -f conftest*
60007
60008 if test "$ice_cv_have_system_decl" = yes; then
60009         break
60010 fi
60011 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60012 cat >conftest.$ac_ext <<_ACEOF
60013 /* confdefs.h.  */
60014 _ACEOF
60015 cat confdefs.h >>conftest.$ac_ext
60016 cat >>conftest.$ac_ext <<_ACEOF
60017 /* end confdefs.h.  */
60018 #include <$header>
60019
60020 _ACEOF
60021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60022   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60023   ice_cv_have_system_decl=yes
60024 fi
60025 rm -f conftest*
60026
60027 if test "$ice_cv_have_system_decl" = yes; then
60028         break
60029 fi
60030 done
60031
60032 fi
60033
60034 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
60035 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
60036 if test "$ice_cv_have_system_decl" = yes; then
60037
60038 cat >>confdefs.h <<_ACEOF
60039 #define HAVE_SYSTEM_DECL 1
60040 _ACEOF
60041
60042 fi
60043 fi
60044
60045
60046 ice_have_time=no
60047
60048 for ac_func in time
60049 do
60050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60051 echo "$as_me:$LINENO: checking for $ac_func" >&5
60052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60053 if eval "test \"\${$as_ac_var+set}\" = set"; then
60054   echo $ECHO_N "(cached) $ECHO_C" >&6
60055 else
60056   cat >conftest.$ac_ext <<_ACEOF
60057 /* confdefs.h.  */
60058 _ACEOF
60059 cat confdefs.h >>conftest.$ac_ext
60060 cat >>conftest.$ac_ext <<_ACEOF
60061 /* end confdefs.h.  */
60062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60064 #define $ac_func innocuous_$ac_func
60065
60066 /* System header to define __stub macros and hopefully few prototypes,
60067     which can conflict with char $ac_func (); below.
60068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60069     <limits.h> exists even on freestanding compilers.  */
60070
60071 #ifdef __STDC__
60072 # include <limits.h>
60073 #else
60074 # include <assert.h>
60075 #endif
60076
60077 #undef $ac_func
60078
60079 /* Override any gcc2 internal prototype to avoid an error.  */
60080 #ifdef __cplusplus
60081 extern "C"
60082 {
60083 #endif
60084 /* We use char because int might match the return type of a gcc2
60085    builtin and then its argument prototype would still apply.  */
60086 char $ac_func ();
60087 /* The GNU C library defines this for functions which it implements
60088     to always fail with ENOSYS.  Some functions are actually named
60089     something starting with __ and the normal name is an alias.  */
60090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60091 choke me
60092 #else
60093 char (*f) () = $ac_func;
60094 #endif
60095 #ifdef __cplusplus
60096 }
60097 #endif
60098
60099 int
60100 main ()
60101 {
60102 return f != $ac_func;
60103   ;
60104   return 0;
60105 }
60106 _ACEOF
60107 rm -f conftest.$ac_objext conftest$ac_exeext
60108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60109   (eval $ac_link) 2>conftest.er1
60110   ac_status=$?
60111   grep -v '^ *+' conftest.er1 >conftest.err
60112   rm -f conftest.er1
60113   cat conftest.err >&5
60114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60115   (exit $ac_status); } &&
60116          { ac_try='test -z "$ac_c_werror_flag"
60117                          || test ! -s conftest.err'
60118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60119   (eval $ac_try) 2>&5
60120   ac_status=$?
60121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60122   (exit $ac_status); }; } &&
60123          { ac_try='test -s conftest$ac_exeext'
60124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60125   (eval $ac_try) 2>&5
60126   ac_status=$?
60127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60128   (exit $ac_status); }; }; then
60129   eval "$as_ac_var=yes"
60130 else
60131   echo "$as_me: failed program was:" >&5
60132 sed 's/^/| /' conftest.$ac_ext >&5
60133
60134 eval "$as_ac_var=no"
60135 fi
60136 rm -f conftest.err conftest.$ac_objext \
60137       conftest$ac_exeext conftest.$ac_ext
60138 fi
60139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60141 if test `eval echo '${'$as_ac_var'}'` = yes; then
60142   cat >>confdefs.h <<_ACEOF
60143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60144 _ACEOF
60145  ice_have_time=yes
60146 fi
60147 done
60148
60149 if test "${ice_have_time}" = yes; then
60150 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
60151 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
60152 if test "${ice_cv_have_time_decl+set}" = set; then
60153   echo $ECHO_N "(cached) $ECHO_C" >&6
60154 else
60155
60156 ice_cv_have_time_decl=no
60157 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60158 ice_re_word='(^|[^a-zA-Z0-9_])'
60159 for header in time.h sys/time.h; do
60160 # Check for ordinary declaration
60161 cat >conftest.$ac_ext <<_ACEOF
60162 /* confdefs.h.  */
60163 _ACEOF
60164 cat confdefs.h >>conftest.$ac_ext
60165 cat >>conftest.$ac_ext <<_ACEOF
60166 /* end confdefs.h.  */
60167 #include <$header>
60168
60169 _ACEOF
60170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60171   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
60172   ice_cv_have_time_decl=yes
60173 fi
60174 rm -f conftest*
60175
60176 if test "$ice_cv_have_time_decl" = yes; then
60177         break
60178 fi
60179 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60180 cat >conftest.$ac_ext <<_ACEOF
60181 /* confdefs.h.  */
60182 _ACEOF
60183 cat confdefs.h >>conftest.$ac_ext
60184 cat >>conftest.$ac_ext <<_ACEOF
60185 /* end confdefs.h.  */
60186 #include <$header>
60187
60188 _ACEOF
60189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60190   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60191   ice_cv_have_time_decl=yes
60192 fi
60193 rm -f conftest*
60194
60195 if test "$ice_cv_have_time_decl" = yes; then
60196         break
60197 fi
60198 done
60199
60200 fi
60201
60202 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
60203 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
60204 if test "$ice_cv_have_time_decl" = yes; then
60205
60206 cat >>confdefs.h <<_ACEOF
60207 #define HAVE_TIME_DECL 1
60208 _ACEOF
60209
60210 fi
60211 fi
60212
60213
60214 ice_have_tolower=no
60215
60216 for ac_func in tolower
60217 do
60218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60219 echo "$as_me:$LINENO: checking for $ac_func" >&5
60220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60221 if eval "test \"\${$as_ac_var+set}\" = set"; then
60222   echo $ECHO_N "(cached) $ECHO_C" >&6
60223 else
60224   cat >conftest.$ac_ext <<_ACEOF
60225 /* confdefs.h.  */
60226 _ACEOF
60227 cat confdefs.h >>conftest.$ac_ext
60228 cat >>conftest.$ac_ext <<_ACEOF
60229 /* end confdefs.h.  */
60230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60232 #define $ac_func innocuous_$ac_func
60233
60234 /* System header to define __stub macros and hopefully few prototypes,
60235     which can conflict with char $ac_func (); below.
60236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60237     <limits.h> exists even on freestanding compilers.  */
60238
60239 #ifdef __STDC__
60240 # include <limits.h>
60241 #else
60242 # include <assert.h>
60243 #endif
60244
60245 #undef $ac_func
60246
60247 /* Override any gcc2 internal prototype to avoid an error.  */
60248 #ifdef __cplusplus
60249 extern "C"
60250 {
60251 #endif
60252 /* We use char because int might match the return type of a gcc2
60253    builtin and then its argument prototype would still apply.  */
60254 char $ac_func ();
60255 /* The GNU C library defines this for functions which it implements
60256     to always fail with ENOSYS.  Some functions are actually named
60257     something starting with __ and the normal name is an alias.  */
60258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60259 choke me
60260 #else
60261 char (*f) () = $ac_func;
60262 #endif
60263 #ifdef __cplusplus
60264 }
60265 #endif
60266
60267 int
60268 main ()
60269 {
60270 return f != $ac_func;
60271   ;
60272   return 0;
60273 }
60274 _ACEOF
60275 rm -f conftest.$ac_objext conftest$ac_exeext
60276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60277   (eval $ac_link) 2>conftest.er1
60278   ac_status=$?
60279   grep -v '^ *+' conftest.er1 >conftest.err
60280   rm -f conftest.er1
60281   cat conftest.err >&5
60282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60283   (exit $ac_status); } &&
60284          { ac_try='test -z "$ac_c_werror_flag"
60285                          || test ! -s conftest.err'
60286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60287   (eval $ac_try) 2>&5
60288   ac_status=$?
60289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60290   (exit $ac_status); }; } &&
60291          { ac_try='test -s conftest$ac_exeext'
60292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60293   (eval $ac_try) 2>&5
60294   ac_status=$?
60295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60296   (exit $ac_status); }; }; then
60297   eval "$as_ac_var=yes"
60298 else
60299   echo "$as_me: failed program was:" >&5
60300 sed 's/^/| /' conftest.$ac_ext >&5
60301
60302 eval "$as_ac_var=no"
60303 fi
60304 rm -f conftest.err conftest.$ac_objext \
60305       conftest$ac_exeext conftest.$ac_ext
60306 fi
60307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60309 if test `eval echo '${'$as_ac_var'}'` = yes; then
60310   cat >>confdefs.h <<_ACEOF
60311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60312 _ACEOF
60313  ice_have_tolower=yes
60314 fi
60315 done
60316
60317 if test "${ice_have_tolower}" = yes; then
60318 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
60319 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
60320 if test "${ice_cv_have_tolower_decl+set}" = set; then
60321   echo $ECHO_N "(cached) $ECHO_C" >&6
60322 else
60323
60324 ice_cv_have_tolower_decl=no
60325 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60326 ice_re_word='(^|[^a-zA-Z0-9_])'
60327 for header in ctype.h; do
60328 # Check for ordinary declaration
60329 cat >conftest.$ac_ext <<_ACEOF
60330 /* confdefs.h.  */
60331 _ACEOF
60332 cat confdefs.h >>conftest.$ac_ext
60333 cat >>conftest.$ac_ext <<_ACEOF
60334 /* end confdefs.h.  */
60335 #include <$header>
60336
60337 _ACEOF
60338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60339   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
60340   ice_cv_have_tolower_decl=yes
60341 fi
60342 rm -f conftest*
60343
60344 if test "$ice_cv_have_tolower_decl" = yes; then
60345         break
60346 fi
60347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60348 cat >conftest.$ac_ext <<_ACEOF
60349 /* confdefs.h.  */
60350 _ACEOF
60351 cat confdefs.h >>conftest.$ac_ext
60352 cat >>conftest.$ac_ext <<_ACEOF
60353 /* end confdefs.h.  */
60354 #include <$header>
60355
60356 _ACEOF
60357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60358   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60359   ice_cv_have_tolower_decl=yes
60360 fi
60361 rm -f conftest*
60362
60363 if test "$ice_cv_have_tolower_decl" = yes; then
60364         break
60365 fi
60366 done
60367
60368 fi
60369
60370 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
60371 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
60372 if test "$ice_cv_have_tolower_decl" = yes; then
60373
60374 cat >>confdefs.h <<_ACEOF
60375 #define HAVE_TOLOWER_DECL 1
60376 _ACEOF
60377
60378 fi
60379 fi
60380
60381
60382 ice_have_toupper=no
60383
60384 for ac_func in toupper
60385 do
60386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60387 echo "$as_me:$LINENO: checking for $ac_func" >&5
60388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60389 if eval "test \"\${$as_ac_var+set}\" = set"; then
60390   echo $ECHO_N "(cached) $ECHO_C" >&6
60391 else
60392   cat >conftest.$ac_ext <<_ACEOF
60393 /* confdefs.h.  */
60394 _ACEOF
60395 cat confdefs.h >>conftest.$ac_ext
60396 cat >>conftest.$ac_ext <<_ACEOF
60397 /* end confdefs.h.  */
60398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60400 #define $ac_func innocuous_$ac_func
60401
60402 /* System header to define __stub macros and hopefully few prototypes,
60403     which can conflict with char $ac_func (); below.
60404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60405     <limits.h> exists even on freestanding compilers.  */
60406
60407 #ifdef __STDC__
60408 # include <limits.h>
60409 #else
60410 # include <assert.h>
60411 #endif
60412
60413 #undef $ac_func
60414
60415 /* Override any gcc2 internal prototype to avoid an error.  */
60416 #ifdef __cplusplus
60417 extern "C"
60418 {
60419 #endif
60420 /* We use char because int might match the return type of a gcc2
60421    builtin and then its argument prototype would still apply.  */
60422 char $ac_func ();
60423 /* The GNU C library defines this for functions which it implements
60424     to always fail with ENOSYS.  Some functions are actually named
60425     something starting with __ and the normal name is an alias.  */
60426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60427 choke me
60428 #else
60429 char (*f) () = $ac_func;
60430 #endif
60431 #ifdef __cplusplus
60432 }
60433 #endif
60434
60435 int
60436 main ()
60437 {
60438 return f != $ac_func;
60439   ;
60440   return 0;
60441 }
60442 _ACEOF
60443 rm -f conftest.$ac_objext conftest$ac_exeext
60444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60445   (eval $ac_link) 2>conftest.er1
60446   ac_status=$?
60447   grep -v '^ *+' conftest.er1 >conftest.err
60448   rm -f conftest.er1
60449   cat conftest.err >&5
60450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60451   (exit $ac_status); } &&
60452          { ac_try='test -z "$ac_c_werror_flag"
60453                          || test ! -s conftest.err'
60454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60455   (eval $ac_try) 2>&5
60456   ac_status=$?
60457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60458   (exit $ac_status); }; } &&
60459          { ac_try='test -s conftest$ac_exeext'
60460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60461   (eval $ac_try) 2>&5
60462   ac_status=$?
60463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60464   (exit $ac_status); }; }; then
60465   eval "$as_ac_var=yes"
60466 else
60467   echo "$as_me: failed program was:" >&5
60468 sed 's/^/| /' conftest.$ac_ext >&5
60469
60470 eval "$as_ac_var=no"
60471 fi
60472 rm -f conftest.err conftest.$ac_objext \
60473       conftest$ac_exeext conftest.$ac_ext
60474 fi
60475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60477 if test `eval echo '${'$as_ac_var'}'` = yes; then
60478   cat >>confdefs.h <<_ACEOF
60479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60480 _ACEOF
60481  ice_have_toupper=yes
60482 fi
60483 done
60484
60485 if test "${ice_have_toupper}" = yes; then
60486 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
60487 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
60488 if test "${ice_cv_have_toupper_decl+set}" = set; then
60489   echo $ECHO_N "(cached) $ECHO_C" >&6
60490 else
60491
60492 ice_cv_have_toupper_decl=no
60493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60494 ice_re_word='(^|[^a-zA-Z0-9_])'
60495 for header in ctype.h; do
60496 # Check for ordinary declaration
60497 cat >conftest.$ac_ext <<_ACEOF
60498 /* confdefs.h.  */
60499 _ACEOF
60500 cat confdefs.h >>conftest.$ac_ext
60501 cat >>conftest.$ac_ext <<_ACEOF
60502 /* end confdefs.h.  */
60503 #include <$header>
60504
60505 _ACEOF
60506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60507   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
60508   ice_cv_have_toupper_decl=yes
60509 fi
60510 rm -f conftest*
60511
60512 if test "$ice_cv_have_toupper_decl" = yes; then
60513         break
60514 fi
60515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60516 cat >conftest.$ac_ext <<_ACEOF
60517 /* confdefs.h.  */
60518 _ACEOF
60519 cat confdefs.h >>conftest.$ac_ext
60520 cat >>conftest.$ac_ext <<_ACEOF
60521 /* end confdefs.h.  */
60522 #include <$header>
60523
60524 _ACEOF
60525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60526   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60527   ice_cv_have_toupper_decl=yes
60528 fi
60529 rm -f conftest*
60530
60531 if test "$ice_cv_have_toupper_decl" = yes; then
60532         break
60533 fi
60534 done
60535
60536 fi
60537
60538 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
60539 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
60540 if test "$ice_cv_have_toupper_decl" = yes; then
60541
60542 cat >>confdefs.h <<_ACEOF
60543 #define HAVE_TOUPPER_DECL 1
60544 _ACEOF
60545
60546 fi
60547 fi
60548
60549
60550 ice_have_ungetc=no
60551
60552 for ac_func in ungetc
60553 do
60554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60555 echo "$as_me:$LINENO: checking for $ac_func" >&5
60556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60557 if eval "test \"\${$as_ac_var+set}\" = set"; then
60558   echo $ECHO_N "(cached) $ECHO_C" >&6
60559 else
60560   cat >conftest.$ac_ext <<_ACEOF
60561 /* confdefs.h.  */
60562 _ACEOF
60563 cat confdefs.h >>conftest.$ac_ext
60564 cat >>conftest.$ac_ext <<_ACEOF
60565 /* end confdefs.h.  */
60566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60568 #define $ac_func innocuous_$ac_func
60569
60570 /* System header to define __stub macros and hopefully few prototypes,
60571     which can conflict with char $ac_func (); below.
60572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60573     <limits.h> exists even on freestanding compilers.  */
60574
60575 #ifdef __STDC__
60576 # include <limits.h>
60577 #else
60578 # include <assert.h>
60579 #endif
60580
60581 #undef $ac_func
60582
60583 /* Override any gcc2 internal prototype to avoid an error.  */
60584 #ifdef __cplusplus
60585 extern "C"
60586 {
60587 #endif
60588 /* We use char because int might match the return type of a gcc2
60589    builtin and then its argument prototype would still apply.  */
60590 char $ac_func ();
60591 /* The GNU C library defines this for functions which it implements
60592     to always fail with ENOSYS.  Some functions are actually named
60593     something starting with __ and the normal name is an alias.  */
60594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60595 choke me
60596 #else
60597 char (*f) () = $ac_func;
60598 #endif
60599 #ifdef __cplusplus
60600 }
60601 #endif
60602
60603 int
60604 main ()
60605 {
60606 return f != $ac_func;
60607   ;
60608   return 0;
60609 }
60610 _ACEOF
60611 rm -f conftest.$ac_objext conftest$ac_exeext
60612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60613   (eval $ac_link) 2>conftest.er1
60614   ac_status=$?
60615   grep -v '^ *+' conftest.er1 >conftest.err
60616   rm -f conftest.er1
60617   cat conftest.err >&5
60618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60619   (exit $ac_status); } &&
60620          { ac_try='test -z "$ac_c_werror_flag"
60621                          || test ! -s conftest.err'
60622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60623   (eval $ac_try) 2>&5
60624   ac_status=$?
60625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60626   (exit $ac_status); }; } &&
60627          { ac_try='test -s conftest$ac_exeext'
60628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60629   (eval $ac_try) 2>&5
60630   ac_status=$?
60631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60632   (exit $ac_status); }; }; then
60633   eval "$as_ac_var=yes"
60634 else
60635   echo "$as_me: failed program was:" >&5
60636 sed 's/^/| /' conftest.$ac_ext >&5
60637
60638 eval "$as_ac_var=no"
60639 fi
60640 rm -f conftest.err conftest.$ac_objext \
60641       conftest$ac_exeext conftest.$ac_ext
60642 fi
60643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60645 if test `eval echo '${'$as_ac_var'}'` = yes; then
60646   cat >>confdefs.h <<_ACEOF
60647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60648 _ACEOF
60649  ice_have_ungetc=yes
60650 fi
60651 done
60652
60653 if test "${ice_have_ungetc}" = yes; then
60654 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
60655 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
60656 if test "${ice_cv_have_ungetc_decl+set}" = set; then
60657   echo $ECHO_N "(cached) $ECHO_C" >&6
60658 else
60659
60660 ice_cv_have_ungetc_decl=no
60661 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60662 ice_re_word='(^|[^a-zA-Z0-9_])'
60663 for header in stdio.h; do
60664 # Check for ordinary declaration
60665 cat >conftest.$ac_ext <<_ACEOF
60666 /* confdefs.h.  */
60667 _ACEOF
60668 cat confdefs.h >>conftest.$ac_ext
60669 cat >>conftest.$ac_ext <<_ACEOF
60670 /* end confdefs.h.  */
60671 #include <$header>
60672
60673 _ACEOF
60674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60675   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
60676   ice_cv_have_ungetc_decl=yes
60677 fi
60678 rm -f conftest*
60679
60680 if test "$ice_cv_have_ungetc_decl" = yes; then
60681         break
60682 fi
60683 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60684 cat >conftest.$ac_ext <<_ACEOF
60685 /* confdefs.h.  */
60686 _ACEOF
60687 cat confdefs.h >>conftest.$ac_ext
60688 cat >>conftest.$ac_ext <<_ACEOF
60689 /* end confdefs.h.  */
60690 #include <$header>
60691
60692 _ACEOF
60693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60694   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60695   ice_cv_have_ungetc_decl=yes
60696 fi
60697 rm -f conftest*
60698
60699 if test "$ice_cv_have_ungetc_decl" = yes; then
60700         break
60701 fi
60702 done
60703
60704 fi
60705
60706 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
60707 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
60708 if test "$ice_cv_have_ungetc_decl" = yes; then
60709
60710 cat >>confdefs.h <<_ACEOF
60711 #define HAVE_UNGETC_DECL 1
60712 _ACEOF
60713
60714 fi
60715 fi
60716
60717
60718 for ac_func in vprintf
60719 do
60720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60721 echo "$as_me:$LINENO: checking for $ac_func" >&5
60722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60723 if eval "test \"\${$as_ac_var+set}\" = set"; then
60724   echo $ECHO_N "(cached) $ECHO_C" >&6
60725 else
60726   cat >conftest.$ac_ext <<_ACEOF
60727 /* confdefs.h.  */
60728 _ACEOF
60729 cat confdefs.h >>conftest.$ac_ext
60730 cat >>conftest.$ac_ext <<_ACEOF
60731 /* end confdefs.h.  */
60732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60734 #define $ac_func innocuous_$ac_func
60735
60736 /* System header to define __stub macros and hopefully few prototypes,
60737     which can conflict with char $ac_func (); below.
60738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60739     <limits.h> exists even on freestanding compilers.  */
60740
60741 #ifdef __STDC__
60742 # include <limits.h>
60743 #else
60744 # include <assert.h>
60745 #endif
60746
60747 #undef $ac_func
60748
60749 /* Override any gcc2 internal prototype to avoid an error.  */
60750 #ifdef __cplusplus
60751 extern "C"
60752 {
60753 #endif
60754 /* We use char because int might match the return type of a gcc2
60755    builtin and then its argument prototype would still apply.  */
60756 char $ac_func ();
60757 /* The GNU C library defines this for functions which it implements
60758     to always fail with ENOSYS.  Some functions are actually named
60759     something starting with __ and the normal name is an alias.  */
60760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60761 choke me
60762 #else
60763 char (*f) () = $ac_func;
60764 #endif
60765 #ifdef __cplusplus
60766 }
60767 #endif
60768
60769 int
60770 main ()
60771 {
60772 return f != $ac_func;
60773   ;
60774   return 0;
60775 }
60776 _ACEOF
60777 rm -f conftest.$ac_objext conftest$ac_exeext
60778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60779   (eval $ac_link) 2>conftest.er1
60780   ac_status=$?
60781   grep -v '^ *+' conftest.er1 >conftest.err
60782   rm -f conftest.er1
60783   cat conftest.err >&5
60784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60785   (exit $ac_status); } &&
60786          { ac_try='test -z "$ac_c_werror_flag"
60787                          || test ! -s conftest.err'
60788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60789   (eval $ac_try) 2>&5
60790   ac_status=$?
60791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60792   (exit $ac_status); }; } &&
60793          { ac_try='test -s conftest$ac_exeext'
60794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60795   (eval $ac_try) 2>&5
60796   ac_status=$?
60797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60798   (exit $ac_status); }; }; then
60799   eval "$as_ac_var=yes"
60800 else
60801   echo "$as_me: failed program was:" >&5
60802 sed 's/^/| /' conftest.$ac_ext >&5
60803
60804 eval "$as_ac_var=no"
60805 fi
60806 rm -f conftest.err conftest.$ac_objext \
60807       conftest$ac_exeext conftest.$ac_ext
60808 fi
60809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60811 if test `eval echo '${'$as_ac_var'}'` = yes; then
60812   cat >>confdefs.h <<_ACEOF
60813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60814 _ACEOF
60815
60816 echo "$as_me:$LINENO: checking for _doprnt" >&5
60817 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
60818 if test "${ac_cv_func__doprnt+set}" = set; then
60819   echo $ECHO_N "(cached) $ECHO_C" >&6
60820 else
60821   cat >conftest.$ac_ext <<_ACEOF
60822 /* confdefs.h.  */
60823 _ACEOF
60824 cat confdefs.h >>conftest.$ac_ext
60825 cat >>conftest.$ac_ext <<_ACEOF
60826 /* end confdefs.h.  */
60827 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
60828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60829 #define _doprnt innocuous__doprnt
60830
60831 /* System header to define __stub macros and hopefully few prototypes,
60832     which can conflict with char _doprnt (); below.
60833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60834     <limits.h> exists even on freestanding compilers.  */
60835
60836 #ifdef __STDC__
60837 # include <limits.h>
60838 #else
60839 # include <assert.h>
60840 #endif
60841
60842 #undef _doprnt
60843
60844 /* Override any gcc2 internal prototype to avoid an error.  */
60845 #ifdef __cplusplus
60846 extern "C"
60847 {
60848 #endif
60849 /* We use char because int might match the return type of a gcc2
60850    builtin and then its argument prototype would still apply.  */
60851 char _doprnt ();
60852 /* The GNU C library defines this for functions which it implements
60853     to always fail with ENOSYS.  Some functions are actually named
60854     something starting with __ and the normal name is an alias.  */
60855 #if defined (__stub__doprnt) || defined (__stub____doprnt)
60856 choke me
60857 #else
60858 char (*f) () = _doprnt;
60859 #endif
60860 #ifdef __cplusplus
60861 }
60862 #endif
60863
60864 int
60865 main ()
60866 {
60867 return f != _doprnt;
60868   ;
60869   return 0;
60870 }
60871 _ACEOF
60872 rm -f conftest.$ac_objext conftest$ac_exeext
60873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60874   (eval $ac_link) 2>conftest.er1
60875   ac_status=$?
60876   grep -v '^ *+' conftest.er1 >conftest.err
60877   rm -f conftest.er1
60878   cat conftest.err >&5
60879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60880   (exit $ac_status); } &&
60881          { ac_try='test -z "$ac_c_werror_flag"
60882                          || test ! -s conftest.err'
60883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60884   (eval $ac_try) 2>&5
60885   ac_status=$?
60886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60887   (exit $ac_status); }; } &&
60888          { ac_try='test -s conftest$ac_exeext'
60889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60890   (eval $ac_try) 2>&5
60891   ac_status=$?
60892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60893   (exit $ac_status); }; }; then
60894   ac_cv_func__doprnt=yes
60895 else
60896   echo "$as_me: failed program was:" >&5
60897 sed 's/^/| /' conftest.$ac_ext >&5
60898
60899 ac_cv_func__doprnt=no
60900 fi
60901 rm -f conftest.err conftest.$ac_objext \
60902       conftest$ac_exeext conftest.$ac_ext
60903 fi
60904 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
60905 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
60906 if test $ac_cv_func__doprnt = yes; then
60907
60908 cat >>confdefs.h <<\_ACEOF
60909 #define HAVE_DOPRNT 1
60910 _ACEOF
60911
60912 fi
60913
60914 fi
60915 done
60916
60917
60918
60919 ice_have_vfprintf=no
60920
60921 for ac_func in vfprintf
60922 do
60923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60924 echo "$as_me:$LINENO: checking for $ac_func" >&5
60925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60926 if eval "test \"\${$as_ac_var+set}\" = set"; then
60927   echo $ECHO_N "(cached) $ECHO_C" >&6
60928 else
60929   cat >conftest.$ac_ext <<_ACEOF
60930 /* confdefs.h.  */
60931 _ACEOF
60932 cat confdefs.h >>conftest.$ac_ext
60933 cat >>conftest.$ac_ext <<_ACEOF
60934 /* end confdefs.h.  */
60935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60937 #define $ac_func innocuous_$ac_func
60938
60939 /* System header to define __stub macros and hopefully few prototypes,
60940     which can conflict with char $ac_func (); below.
60941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60942     <limits.h> exists even on freestanding compilers.  */
60943
60944 #ifdef __STDC__
60945 # include <limits.h>
60946 #else
60947 # include <assert.h>
60948 #endif
60949
60950 #undef $ac_func
60951
60952 /* Override any gcc2 internal prototype to avoid an error.  */
60953 #ifdef __cplusplus
60954 extern "C"
60955 {
60956 #endif
60957 /* We use char because int might match the return type of a gcc2
60958    builtin and then its argument prototype would still apply.  */
60959 char $ac_func ();
60960 /* The GNU C library defines this for functions which it implements
60961     to always fail with ENOSYS.  Some functions are actually named
60962     something starting with __ and the normal name is an alias.  */
60963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60964 choke me
60965 #else
60966 char (*f) () = $ac_func;
60967 #endif
60968 #ifdef __cplusplus
60969 }
60970 #endif
60971
60972 int
60973 main ()
60974 {
60975 return f != $ac_func;
60976   ;
60977   return 0;
60978 }
60979 _ACEOF
60980 rm -f conftest.$ac_objext conftest$ac_exeext
60981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60982   (eval $ac_link) 2>conftest.er1
60983   ac_status=$?
60984   grep -v '^ *+' conftest.er1 >conftest.err
60985   rm -f conftest.er1
60986   cat conftest.err >&5
60987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60988   (exit $ac_status); } &&
60989          { ac_try='test -z "$ac_c_werror_flag"
60990                          || test ! -s conftest.err'
60991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60992   (eval $ac_try) 2>&5
60993   ac_status=$?
60994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60995   (exit $ac_status); }; } &&
60996          { ac_try='test -s conftest$ac_exeext'
60997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60998   (eval $ac_try) 2>&5
60999   ac_status=$?
61000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61001   (exit $ac_status); }; }; then
61002   eval "$as_ac_var=yes"
61003 else
61004   echo "$as_me: failed program was:" >&5
61005 sed 's/^/| /' conftest.$ac_ext >&5
61006
61007 eval "$as_ac_var=no"
61008 fi
61009 rm -f conftest.err conftest.$ac_objext \
61010       conftest$ac_exeext conftest.$ac_ext
61011 fi
61012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61014 if test `eval echo '${'$as_ac_var'}'` = yes; then
61015   cat >>confdefs.h <<_ACEOF
61016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61017 _ACEOF
61018  ice_have_vfprintf=yes
61019 fi
61020 done
61021
61022 if test "${ice_have_vfprintf}" = yes; then
61023 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
61024 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
61025 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
61026   echo $ECHO_N "(cached) $ECHO_C" >&6
61027 else
61028
61029 ice_cv_have_vfprintf_decl=no
61030 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61031 ice_re_word='(^|[^a-zA-Z0-9_])'
61032 for header in stdio.h stdlib.h; do
61033 # Check for ordinary declaration
61034 cat >conftest.$ac_ext <<_ACEOF
61035 /* confdefs.h.  */
61036 _ACEOF
61037 cat confdefs.h >>conftest.$ac_ext
61038 cat >>conftest.$ac_ext <<_ACEOF
61039 /* end confdefs.h.  */
61040 #include <$header>
61041
61042 _ACEOF
61043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61044   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
61045   ice_cv_have_vfprintf_decl=yes
61046 fi
61047 rm -f conftest*
61048
61049 if test "$ice_cv_have_vfprintf_decl" = yes; then
61050         break
61051 fi
61052 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61053 cat >conftest.$ac_ext <<_ACEOF
61054 /* confdefs.h.  */
61055 _ACEOF
61056 cat confdefs.h >>conftest.$ac_ext
61057 cat >>conftest.$ac_ext <<_ACEOF
61058 /* end confdefs.h.  */
61059 #include <$header>
61060
61061 _ACEOF
61062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61063   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61064   ice_cv_have_vfprintf_decl=yes
61065 fi
61066 rm -f conftest*
61067
61068 if test "$ice_cv_have_vfprintf_decl" = yes; then
61069         break
61070 fi
61071 done
61072
61073 fi
61074
61075 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
61076 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
61077 if test "$ice_cv_have_vfprintf_decl" = yes; then
61078
61079 cat >>confdefs.h <<_ACEOF
61080 #define HAVE_VFPRINTF_DECL 1
61081 _ACEOF
61082
61083 fi
61084 fi
61085
61086
61087 ice_have_vprintf=no
61088
61089 for ac_func in vprintf
61090 do
61091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61092 echo "$as_me:$LINENO: checking for $ac_func" >&5
61093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61094 if eval "test \"\${$as_ac_var+set}\" = set"; then
61095   echo $ECHO_N "(cached) $ECHO_C" >&6
61096 else
61097   cat >conftest.$ac_ext <<_ACEOF
61098 /* confdefs.h.  */
61099 _ACEOF
61100 cat confdefs.h >>conftest.$ac_ext
61101 cat >>conftest.$ac_ext <<_ACEOF
61102 /* end confdefs.h.  */
61103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61105 #define $ac_func innocuous_$ac_func
61106
61107 /* System header to define __stub macros and hopefully few prototypes,
61108     which can conflict with char $ac_func (); below.
61109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61110     <limits.h> exists even on freestanding compilers.  */
61111
61112 #ifdef __STDC__
61113 # include <limits.h>
61114 #else
61115 # include <assert.h>
61116 #endif
61117
61118 #undef $ac_func
61119
61120 /* Override any gcc2 internal prototype to avoid an error.  */
61121 #ifdef __cplusplus
61122 extern "C"
61123 {
61124 #endif
61125 /* We use char because int might match the return type of a gcc2
61126    builtin and then its argument prototype would still apply.  */
61127 char $ac_func ();
61128 /* The GNU C library defines this for functions which it implements
61129     to always fail with ENOSYS.  Some functions are actually named
61130     something starting with __ and the normal name is an alias.  */
61131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61132 choke me
61133 #else
61134 char (*f) () = $ac_func;
61135 #endif
61136 #ifdef __cplusplus
61137 }
61138 #endif
61139
61140 int
61141 main ()
61142 {
61143 return f != $ac_func;
61144   ;
61145   return 0;
61146 }
61147 _ACEOF
61148 rm -f conftest.$ac_objext conftest$ac_exeext
61149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61150   (eval $ac_link) 2>conftest.er1
61151   ac_status=$?
61152   grep -v '^ *+' conftest.er1 >conftest.err
61153   rm -f conftest.er1
61154   cat conftest.err >&5
61155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61156   (exit $ac_status); } &&
61157          { ac_try='test -z "$ac_c_werror_flag"
61158                          || test ! -s conftest.err'
61159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61160   (eval $ac_try) 2>&5
61161   ac_status=$?
61162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61163   (exit $ac_status); }; } &&
61164          { ac_try='test -s conftest$ac_exeext'
61165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61166   (eval $ac_try) 2>&5
61167   ac_status=$?
61168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61169   (exit $ac_status); }; }; then
61170   eval "$as_ac_var=yes"
61171 else
61172   echo "$as_me: failed program was:" >&5
61173 sed 's/^/| /' conftest.$ac_ext >&5
61174
61175 eval "$as_ac_var=no"
61176 fi
61177 rm -f conftest.err conftest.$ac_objext \
61178       conftest$ac_exeext conftest.$ac_ext
61179 fi
61180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61182 if test `eval echo '${'$as_ac_var'}'` = yes; then
61183   cat >>confdefs.h <<_ACEOF
61184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61185 _ACEOF
61186  ice_have_vprintf=yes
61187 fi
61188 done
61189
61190 if test "${ice_have_vprintf}" = yes; then
61191 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
61192 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
61193 if test "${ice_cv_have_vprintf_decl+set}" = set; then
61194   echo $ECHO_N "(cached) $ECHO_C" >&6
61195 else
61196
61197 ice_cv_have_vprintf_decl=no
61198 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61199 ice_re_word='(^|[^a-zA-Z0-9_])'
61200 for header in stdio.h stdlib.h; do
61201 # Check for ordinary declaration
61202 cat >conftest.$ac_ext <<_ACEOF
61203 /* confdefs.h.  */
61204 _ACEOF
61205 cat confdefs.h >>conftest.$ac_ext
61206 cat >>conftest.$ac_ext <<_ACEOF
61207 /* end confdefs.h.  */
61208 #include <$header>
61209
61210 _ACEOF
61211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61212   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
61213   ice_cv_have_vprintf_decl=yes
61214 fi
61215 rm -f conftest*
61216
61217 if test "$ice_cv_have_vprintf_decl" = yes; then
61218         break
61219 fi
61220 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61221 cat >conftest.$ac_ext <<_ACEOF
61222 /* confdefs.h.  */
61223 _ACEOF
61224 cat confdefs.h >>conftest.$ac_ext
61225 cat >>conftest.$ac_ext <<_ACEOF
61226 /* end confdefs.h.  */
61227 #include <$header>
61228
61229 _ACEOF
61230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61231   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61232   ice_cv_have_vprintf_decl=yes
61233 fi
61234 rm -f conftest*
61235
61236 if test "$ice_cv_have_vprintf_decl" = yes; then
61237         break
61238 fi
61239 done
61240
61241 fi
61242
61243 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
61244 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
61245 if test "$ice_cv_have_vprintf_decl" = yes; then
61246
61247 cat >>confdefs.h <<_ACEOF
61248 #define HAVE_VPRINTF_DECL 1
61249 _ACEOF
61250
61251 fi
61252 fi
61253
61254
61255 ice_have_vsprintf=no
61256
61257 for ac_func in vsprintf
61258 do
61259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61260 echo "$as_me:$LINENO: checking for $ac_func" >&5
61261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61262 if eval "test \"\${$as_ac_var+set}\" = set"; then
61263   echo $ECHO_N "(cached) $ECHO_C" >&6
61264 else
61265   cat >conftest.$ac_ext <<_ACEOF
61266 /* confdefs.h.  */
61267 _ACEOF
61268 cat confdefs.h >>conftest.$ac_ext
61269 cat >>conftest.$ac_ext <<_ACEOF
61270 /* end confdefs.h.  */
61271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61273 #define $ac_func innocuous_$ac_func
61274
61275 /* System header to define __stub macros and hopefully few prototypes,
61276     which can conflict with char $ac_func (); below.
61277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61278     <limits.h> exists even on freestanding compilers.  */
61279
61280 #ifdef __STDC__
61281 # include <limits.h>
61282 #else
61283 # include <assert.h>
61284 #endif
61285
61286 #undef $ac_func
61287
61288 /* Override any gcc2 internal prototype to avoid an error.  */
61289 #ifdef __cplusplus
61290 extern "C"
61291 {
61292 #endif
61293 /* We use char because int might match the return type of a gcc2
61294    builtin and then its argument prototype would still apply.  */
61295 char $ac_func ();
61296 /* The GNU C library defines this for functions which it implements
61297     to always fail with ENOSYS.  Some functions are actually named
61298     something starting with __ and the normal name is an alias.  */
61299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61300 choke me
61301 #else
61302 char (*f) () = $ac_func;
61303 #endif
61304 #ifdef __cplusplus
61305 }
61306 #endif
61307
61308 int
61309 main ()
61310 {
61311 return f != $ac_func;
61312   ;
61313   return 0;
61314 }
61315 _ACEOF
61316 rm -f conftest.$ac_objext conftest$ac_exeext
61317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61318   (eval $ac_link) 2>conftest.er1
61319   ac_status=$?
61320   grep -v '^ *+' conftest.er1 >conftest.err
61321   rm -f conftest.er1
61322   cat conftest.err >&5
61323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61324   (exit $ac_status); } &&
61325          { ac_try='test -z "$ac_c_werror_flag"
61326                          || test ! -s conftest.err'
61327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61328   (eval $ac_try) 2>&5
61329   ac_status=$?
61330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61331   (exit $ac_status); }; } &&
61332          { ac_try='test -s conftest$ac_exeext'
61333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61334   (eval $ac_try) 2>&5
61335   ac_status=$?
61336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61337   (exit $ac_status); }; }; then
61338   eval "$as_ac_var=yes"
61339 else
61340   echo "$as_me: failed program was:" >&5
61341 sed 's/^/| /' conftest.$ac_ext >&5
61342
61343 eval "$as_ac_var=no"
61344 fi
61345 rm -f conftest.err conftest.$ac_objext \
61346       conftest$ac_exeext conftest.$ac_ext
61347 fi
61348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61350 if test `eval echo '${'$as_ac_var'}'` = yes; then
61351   cat >>confdefs.h <<_ACEOF
61352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61353 _ACEOF
61354  ice_have_vsprintf=yes
61355 fi
61356 done
61357
61358 if test "${ice_have_vsprintf}" = yes; then
61359 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
61360 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
61361 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
61362   echo $ECHO_N "(cached) $ECHO_C" >&6
61363 else
61364
61365 ice_cv_have_vsprintf_decl=no
61366 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61367 ice_re_word='(^|[^a-zA-Z0-9_])'
61368 for header in stdio.h stdlib.h; do
61369 # Check for ordinary declaration
61370 cat >conftest.$ac_ext <<_ACEOF
61371 /* confdefs.h.  */
61372 _ACEOF
61373 cat confdefs.h >>conftest.$ac_ext
61374 cat >>conftest.$ac_ext <<_ACEOF
61375 /* end confdefs.h.  */
61376 #include <$header>
61377
61378 _ACEOF
61379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61380   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
61381   ice_cv_have_vsprintf_decl=yes
61382 fi
61383 rm -f conftest*
61384
61385 if test "$ice_cv_have_vsprintf_decl" = yes; then
61386         break
61387 fi
61388 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61389 cat >conftest.$ac_ext <<_ACEOF
61390 /* confdefs.h.  */
61391 _ACEOF
61392 cat confdefs.h >>conftest.$ac_ext
61393 cat >>conftest.$ac_ext <<_ACEOF
61394 /* end confdefs.h.  */
61395 #include <$header>
61396
61397 _ACEOF
61398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61399   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61400   ice_cv_have_vsprintf_decl=yes
61401 fi
61402 rm -f conftest*
61403
61404 if test "$ice_cv_have_vsprintf_decl" = yes; then
61405         break
61406 fi
61407 done
61408
61409 fi
61410
61411 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
61412 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
61413 if test "$ice_cv_have_vsprintf_decl" = yes; then
61414
61415 cat >>confdefs.h <<_ACEOF
61416 #define HAVE_VSPRINTF_DECL 1
61417 _ACEOF
61418
61419 fi
61420 fi
61421
61422 echo "$as_me:$LINENO: checking for wait4" >&5
61423 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
61424 if test "${ac_cv_func_wait4+set}" = set; then
61425   echo $ECHO_N "(cached) $ECHO_C" >&6
61426 else
61427   cat >conftest.$ac_ext <<_ACEOF
61428 /* confdefs.h.  */
61429 _ACEOF
61430 cat confdefs.h >>conftest.$ac_ext
61431 cat >>conftest.$ac_ext <<_ACEOF
61432 /* end confdefs.h.  */
61433 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
61434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61435 #define wait4 innocuous_wait4
61436
61437 /* System header to define __stub macros and hopefully few prototypes,
61438     which can conflict with char wait4 (); below.
61439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61440     <limits.h> exists even on freestanding compilers.  */
61441
61442 #ifdef __STDC__
61443 # include <limits.h>
61444 #else
61445 # include <assert.h>
61446 #endif
61447
61448 #undef wait4
61449
61450 /* Override any gcc2 internal prototype to avoid an error.  */
61451 #ifdef __cplusplus
61452 extern "C"
61453 {
61454 #endif
61455 /* We use char because int might match the return type of a gcc2
61456    builtin and then its argument prototype would still apply.  */
61457 char wait4 ();
61458 /* The GNU C library defines this for functions which it implements
61459     to always fail with ENOSYS.  Some functions are actually named
61460     something starting with __ and the normal name is an alias.  */
61461 #if defined (__stub_wait4) || defined (__stub___wait4)
61462 choke me
61463 #else
61464 char (*f) () = wait4;
61465 #endif
61466 #ifdef __cplusplus
61467 }
61468 #endif
61469
61470 int
61471 main ()
61472 {
61473 return f != wait4;
61474   ;
61475   return 0;
61476 }
61477 _ACEOF
61478 rm -f conftest.$ac_objext conftest$ac_exeext
61479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61480   (eval $ac_link) 2>conftest.er1
61481   ac_status=$?
61482   grep -v '^ *+' conftest.er1 >conftest.err
61483   rm -f conftest.er1
61484   cat conftest.err >&5
61485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61486   (exit $ac_status); } &&
61487          { ac_try='test -z "$ac_c_werror_flag"
61488                          || test ! -s conftest.err'
61489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61490   (eval $ac_try) 2>&5
61491   ac_status=$?
61492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61493   (exit $ac_status); }; } &&
61494          { ac_try='test -s conftest$ac_exeext'
61495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61496   (eval $ac_try) 2>&5
61497   ac_status=$?
61498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61499   (exit $ac_status); }; }; then
61500   ac_cv_func_wait4=yes
61501 else
61502   echo "$as_me: failed program was:" >&5
61503 sed 's/^/| /' conftest.$ac_ext >&5
61504
61505 ac_cv_func_wait4=no
61506 fi
61507 rm -f conftest.err conftest.$ac_objext \
61508       conftest$ac_exeext conftest.$ac_ext
61509 fi
61510 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
61511 echo "${ECHO_T}$ac_cv_func_wait4" >&6
61512
61513 #AC_REPLACE_FUNCS(writev)
61514
61515 ice_have_writev=no
61516
61517 for ac_func in writev
61518 do
61519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61520 echo "$as_me:$LINENO: checking for $ac_func" >&5
61521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61522 if eval "test \"\${$as_ac_var+set}\" = set"; then
61523   echo $ECHO_N "(cached) $ECHO_C" >&6
61524 else
61525   cat >conftest.$ac_ext <<_ACEOF
61526 /* confdefs.h.  */
61527 _ACEOF
61528 cat confdefs.h >>conftest.$ac_ext
61529 cat >>conftest.$ac_ext <<_ACEOF
61530 /* end confdefs.h.  */
61531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61533 #define $ac_func innocuous_$ac_func
61534
61535 /* System header to define __stub macros and hopefully few prototypes,
61536     which can conflict with char $ac_func (); below.
61537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61538     <limits.h> exists even on freestanding compilers.  */
61539
61540 #ifdef __STDC__
61541 # include <limits.h>
61542 #else
61543 # include <assert.h>
61544 #endif
61545
61546 #undef $ac_func
61547
61548 /* Override any gcc2 internal prototype to avoid an error.  */
61549 #ifdef __cplusplus
61550 extern "C"
61551 {
61552 #endif
61553 /* We use char because int might match the return type of a gcc2
61554    builtin and then its argument prototype would still apply.  */
61555 char $ac_func ();
61556 /* The GNU C library defines this for functions which it implements
61557     to always fail with ENOSYS.  Some functions are actually named
61558     something starting with __ and the normal name is an alias.  */
61559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61560 choke me
61561 #else
61562 char (*f) () = $ac_func;
61563 #endif
61564 #ifdef __cplusplus
61565 }
61566 #endif
61567
61568 int
61569 main ()
61570 {
61571 return f != $ac_func;
61572   ;
61573   return 0;
61574 }
61575 _ACEOF
61576 rm -f conftest.$ac_objext conftest$ac_exeext
61577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61578   (eval $ac_link) 2>conftest.er1
61579   ac_status=$?
61580   grep -v '^ *+' conftest.er1 >conftest.err
61581   rm -f conftest.er1
61582   cat conftest.err >&5
61583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61584   (exit $ac_status); } &&
61585          { ac_try='test -z "$ac_c_werror_flag"
61586                          || test ! -s conftest.err'
61587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61588   (eval $ac_try) 2>&5
61589   ac_status=$?
61590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61591   (exit $ac_status); }; } &&
61592          { ac_try='test -s conftest$ac_exeext'
61593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61594   (eval $ac_try) 2>&5
61595   ac_status=$?
61596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61597   (exit $ac_status); }; }; then
61598   eval "$as_ac_var=yes"
61599 else
61600   echo "$as_me: failed program was:" >&5
61601 sed 's/^/| /' conftest.$ac_ext >&5
61602
61603 eval "$as_ac_var=no"
61604 fi
61605 rm -f conftest.err conftest.$ac_objext \
61606       conftest$ac_exeext conftest.$ac_ext
61607 fi
61608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61610 if test `eval echo '${'$as_ac_var'}'` = yes; then
61611   cat >>confdefs.h <<_ACEOF
61612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61613 _ACEOF
61614  ice_have_writev=yes
61615 fi
61616 done
61617
61618 if test "${ice_have_writev}" = yes; then
61619 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
61620 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
61621 if test "${ice_cv_have_writev_decl+set}" = set; then
61622   echo $ECHO_N "(cached) $ECHO_C" >&6
61623 else
61624
61625 ice_cv_have_writev_decl=no
61626 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61627 ice_re_word='(^|[^a-zA-Z0-9_])'
61628 for header in unistd.h sys/uio.h; do
61629 # Check for ordinary declaration
61630 cat >conftest.$ac_ext <<_ACEOF
61631 /* confdefs.h.  */
61632 _ACEOF
61633 cat confdefs.h >>conftest.$ac_ext
61634 cat >>conftest.$ac_ext <<_ACEOF
61635 /* end confdefs.h.  */
61636 #include <$header>
61637
61638 _ACEOF
61639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61640   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
61641   ice_cv_have_writev_decl=yes
61642 fi
61643 rm -f conftest*
61644
61645 if test "$ice_cv_have_writev_decl" = yes; then
61646         break
61647 fi
61648 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61649 cat >conftest.$ac_ext <<_ACEOF
61650 /* confdefs.h.  */
61651 _ACEOF
61652 cat confdefs.h >>conftest.$ac_ext
61653 cat >>conftest.$ac_ext <<_ACEOF
61654 /* end confdefs.h.  */
61655 #include <$header>
61656
61657 _ACEOF
61658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61659   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61660   ice_cv_have_writev_decl=yes
61661 fi
61662 rm -f conftest*
61663
61664 if test "$ice_cv_have_writev_decl" = yes; then
61665         break
61666 fi
61667 done
61668
61669 fi
61670
61671 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
61672 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
61673 if test "$ice_cv_have_writev_decl" = yes; then
61674
61675 cat >>confdefs.h <<_ACEOF
61676 #define HAVE_WRITEV_DECL 1
61677 _ACEOF
61678
61679 fi
61680 fi
61681
61682
61683 ice_have_strcasecmp=no
61684
61685 for ac_func in strcasecmp
61686 do
61687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61688 echo "$as_me:$LINENO: checking for $ac_func" >&5
61689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61690 if eval "test \"\${$as_ac_var+set}\" = set"; then
61691   echo $ECHO_N "(cached) $ECHO_C" >&6
61692 else
61693   cat >conftest.$ac_ext <<_ACEOF
61694 /* confdefs.h.  */
61695 _ACEOF
61696 cat confdefs.h >>conftest.$ac_ext
61697 cat >>conftest.$ac_ext <<_ACEOF
61698 /* end confdefs.h.  */
61699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61701 #define $ac_func innocuous_$ac_func
61702
61703 /* System header to define __stub macros and hopefully few prototypes,
61704     which can conflict with char $ac_func (); below.
61705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61706     <limits.h> exists even on freestanding compilers.  */
61707
61708 #ifdef __STDC__
61709 # include <limits.h>
61710 #else
61711 # include <assert.h>
61712 #endif
61713
61714 #undef $ac_func
61715
61716 /* Override any gcc2 internal prototype to avoid an error.  */
61717 #ifdef __cplusplus
61718 extern "C"
61719 {
61720 #endif
61721 /* We use char because int might match the return type of a gcc2
61722    builtin and then its argument prototype would still apply.  */
61723 char $ac_func ();
61724 /* The GNU C library defines this for functions which it implements
61725     to always fail with ENOSYS.  Some functions are actually named
61726     something starting with __ and the normal name is an alias.  */
61727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61728 choke me
61729 #else
61730 char (*f) () = $ac_func;
61731 #endif
61732 #ifdef __cplusplus
61733 }
61734 #endif
61735
61736 int
61737 main ()
61738 {
61739 return f != $ac_func;
61740   ;
61741   return 0;
61742 }
61743 _ACEOF
61744 rm -f conftest.$ac_objext conftest$ac_exeext
61745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61746   (eval $ac_link) 2>conftest.er1
61747   ac_status=$?
61748   grep -v '^ *+' conftest.er1 >conftest.err
61749   rm -f conftest.er1
61750   cat conftest.err >&5
61751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61752   (exit $ac_status); } &&
61753          { ac_try='test -z "$ac_c_werror_flag"
61754                          || test ! -s conftest.err'
61755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61756   (eval $ac_try) 2>&5
61757   ac_status=$?
61758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61759   (exit $ac_status); }; } &&
61760          { ac_try='test -s conftest$ac_exeext'
61761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61762   (eval $ac_try) 2>&5
61763   ac_status=$?
61764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61765   (exit $ac_status); }; }; then
61766   eval "$as_ac_var=yes"
61767 else
61768   echo "$as_me: failed program was:" >&5
61769 sed 's/^/| /' conftest.$ac_ext >&5
61770
61771 eval "$as_ac_var=no"
61772 fi
61773 rm -f conftest.err conftest.$ac_objext \
61774       conftest$ac_exeext conftest.$ac_ext
61775 fi
61776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61778 if test `eval echo '${'$as_ac_var'}'` = yes; then
61779   cat >>confdefs.h <<_ACEOF
61780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61781 _ACEOF
61782  ice_have_strcasecmp=yes
61783 fi
61784 done
61785
61786 if test "${ice_have_strcasecmp}" = yes; then
61787 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
61788 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
61789 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
61790   echo $ECHO_N "(cached) $ECHO_C" >&6
61791 else
61792
61793 ice_cv_have_strcasecmp_decl=no
61794 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61795 ice_re_word='(^|[^a-zA-Z0-9_])'
61796 for header in string.h strings.h; do
61797 # Check for ordinary declaration
61798 cat >conftest.$ac_ext <<_ACEOF
61799 /* confdefs.h.  */
61800 _ACEOF
61801 cat confdefs.h >>conftest.$ac_ext
61802 cat >>conftest.$ac_ext <<_ACEOF
61803 /* end confdefs.h.  */
61804 #include <$header>
61805
61806 _ACEOF
61807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61808   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
61809   ice_cv_have_strcasecmp_decl=yes
61810 fi
61811 rm -f conftest*
61812
61813 if test "$ice_cv_have_strcasecmp_decl" = yes; then
61814         break
61815 fi
61816 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61817 cat >conftest.$ac_ext <<_ACEOF
61818 /* confdefs.h.  */
61819 _ACEOF
61820 cat confdefs.h >>conftest.$ac_ext
61821 cat >>conftest.$ac_ext <<_ACEOF
61822 /* end confdefs.h.  */
61823 #include <$header>
61824
61825 _ACEOF
61826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61827   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61828   ice_cv_have_strcasecmp_decl=yes
61829 fi
61830 rm -f conftest*
61831
61832 if test "$ice_cv_have_strcasecmp_decl" = yes; then
61833         break
61834 fi
61835 done
61836
61837 fi
61838
61839 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
61840 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
61841 if test "$ice_cv_have_strcasecmp_decl" = yes; then
61842
61843 cat >>confdefs.h <<_ACEOF
61844 #define HAVE_STRCASECMP_DECL 1
61845 _ACEOF
61846
61847 fi
61848 fi
61849
61850
61851
61852 for ac_func in fnmatch
61853 do
61854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61855 echo "$as_me:$LINENO: checking for $ac_func" >&5
61856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61857 if eval "test \"\${$as_ac_var+set}\" = set"; then
61858   echo $ECHO_N "(cached) $ECHO_C" >&6
61859 else
61860   cat >conftest.$ac_ext <<_ACEOF
61861 /* confdefs.h.  */
61862 _ACEOF
61863 cat confdefs.h >>conftest.$ac_ext
61864 cat >>conftest.$ac_ext <<_ACEOF
61865 /* end confdefs.h.  */
61866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61868 #define $ac_func innocuous_$ac_func
61869
61870 /* System header to define __stub macros and hopefully few prototypes,
61871     which can conflict with char $ac_func (); below.
61872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61873     <limits.h> exists even on freestanding compilers.  */
61874
61875 #ifdef __STDC__
61876 # include <limits.h>
61877 #else
61878 # include <assert.h>
61879 #endif
61880
61881 #undef $ac_func
61882
61883 /* Override any gcc2 internal prototype to avoid an error.  */
61884 #ifdef __cplusplus
61885 extern "C"
61886 {
61887 #endif
61888 /* We use char because int might match the return type of a gcc2
61889    builtin and then its argument prototype would still apply.  */
61890 char $ac_func ();
61891 /* The GNU C library defines this for functions which it implements
61892     to always fail with ENOSYS.  Some functions are actually named
61893     something starting with __ and the normal name is an alias.  */
61894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61895 choke me
61896 #else
61897 char (*f) () = $ac_func;
61898 #endif
61899 #ifdef __cplusplus
61900 }
61901 #endif
61902
61903 int
61904 main ()
61905 {
61906 return f != $ac_func;
61907   ;
61908   return 0;
61909 }
61910 _ACEOF
61911 rm -f conftest.$ac_objext conftest$ac_exeext
61912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61913   (eval $ac_link) 2>conftest.er1
61914   ac_status=$?
61915   grep -v '^ *+' conftest.er1 >conftest.err
61916   rm -f conftest.er1
61917   cat conftest.err >&5
61918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61919   (exit $ac_status); } &&
61920          { ac_try='test -z "$ac_c_werror_flag"
61921                          || test ! -s conftest.err'
61922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61923   (eval $ac_try) 2>&5
61924   ac_status=$?
61925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61926   (exit $ac_status); }; } &&
61927          { ac_try='test -s conftest$ac_exeext'
61928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61929   (eval $ac_try) 2>&5
61930   ac_status=$?
61931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61932   (exit $ac_status); }; }; then
61933   eval "$as_ac_var=yes"
61934 else
61935   echo "$as_me: failed program was:" >&5
61936 sed 's/^/| /' conftest.$ac_ext >&5
61937
61938 eval "$as_ac_var=no"
61939 fi
61940 rm -f conftest.err conftest.$ac_objext \
61941       conftest$ac_exeext conftest.$ac_ext
61942 fi
61943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61945 if test `eval echo '${'$as_ac_var'}'` = yes; then
61946   cat >>confdefs.h <<_ACEOF
61947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61948 _ACEOF
61949
61950 fi
61951 done
61952
61953
61954
61955 echo "$as_me:$LINENO: checking disk device prefixes" >&5
61956 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
61957 dfline=`(
61958     df / | while read line; do
61959         set -- $line
61960         while test $# -gt 0; do
61961             if test "x$1" = "x/"; then
61962                 echo $line
61963                 break 2
61964             fi
61965             shift
61966         done
61967     done
61968 ) | sed 's/(//' | sed 's/)//' `
61969
61970 mount=`(
61971     set -- $dfline
61972     while test $# -gt 0; do
61973         if expr "$1" : '.*dev' >/dev/null 2>&1; then
61974             echo $1
61975             break
61976         fi
61977         shift
61978     done
61979 )`
61980
61981 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
61982     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
61983 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
61984 else
61985     if test -d /dev/dsk; then
61986         DEV_PREFIX=/dev/dsk/
61987         if test -d /dev/rdsk; then
61988             RDEV_PREFIX=/dev/rdsk/
61989         else
61990             RDEV_PREFIX=/dev/dsk/
61991         fi
61992     elif test -d /dev; then
61993         case "$target" in
61994             *-sni-sysv4)
61995                 dev_prefix=/dev/dsk/
61996                 rdev_prefix=/dev/rdsk/
61997                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
61998 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
61999                 ;;
62000
62001             *)
62002                 DEV_PREFIX=/dev/
62003                 # Some systems, notably Linux, do not have raw disk devices
62004                 # names.  Check this by trying to see if a raw disk device name
62005                 # exists using the normal raw device path prepended to the
62006                 # mount point of the root filesystem.
62007                 if test "$mount"; then
62008                     dev_name="/dev/r`basename $mount`"
62009                     if test -b $dev_name -o -c $dev_name; then
62010                         RDEV_PREFIX=/dev/r
62011                     else
62012                         RDEV_PREFIX=/dev/
62013                     fi
62014                 else
62015                     RDEV_PREFIX=/dev/r
62016                 fi
62017                 ;;
62018         esac
62019     else
62020         DEV_PREFIX=/
62021         RDEV_PREFIX=/
62022     fi
62023     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
62024 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
62025 fi
62026
62027
62028 cat >>confdefs.h <<_ACEOF
62029 #define DEV_PREFIX "${DEV_PREFIX}"
62030 _ACEOF
62031
62032
62033 cat >>confdefs.h <<_ACEOF
62034 #define RDEV_PREFIX "${RDEV_PREFIX}"
62035 _ACEOF
62036
62037
62038 case $mount in
62039     /dev/vg*)
62040         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
62041 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
62042         ;;
62043 esac
62044
62045 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
62046 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
62047 if test "${amanda_cv_posix_filelocking+set}" = set; then
62048   echo $ECHO_N "(cached) $ECHO_C" >&6
62049 else
62050
62051         if test "$cross_compiling" = yes; then
62052
62053         amanda_cv_posix_filelocking="no (cannot run test)"
62054
62055 else
62056   cat >conftest.$ac_ext <<_ACEOF
62057 /* confdefs.h.  */
62058 _ACEOF
62059 cat confdefs.h >>conftest.$ac_ext
62060 cat >>conftest.$ac_ext <<_ACEOF
62061 /* end confdefs.h.  */
62062
62063 #undef  ASSERTIONS
62064 #define CONFIGURE_TEST
62065 #define USE_POSIX_FCNTL
62066 #include "${srcdir-.}/common-src/amflock.c"
62067
62068 _ACEOF
62069 rm -f conftest$ac_exeext
62070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62071   (eval $ac_link) 2>&5
62072   ac_status=$?
62073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62074   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62076   (eval $ac_try) 2>&5
62077   ac_status=$?
62078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62079   (exit $ac_status); }; }; then
62080
62081         amanda_cv_posix_filelocking=yes
62082
62083 else
62084   echo "$as_me: program exited with status $ac_status" >&5
62085 echo "$as_me: failed program was:" >&5
62086 sed 's/^/| /' conftest.$ac_ext >&5
62087
62088 ( exit $ac_status )
62089
62090         amanda_cv_posix_filelocking="no"
62091
62092 fi
62093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62094 fi
62095     rm -f /tmp/conftest.lock
62096
62097 fi
62098 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
62099 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
62100 if test "x$amanda_cv_posix_filelocking" = xyes; then
62101
62102 cat >>confdefs.h <<\_ACEOF
62103 #define USE_POSIX_FCNTL 1
62104 _ACEOF
62105
62106     HAS_WORKING_FILE_LOCK=1
62107 fi
62108
62109 if test -z "$HAS_WORKING_FILE_LOCK"; then
62110     echo "$as_me:$LINENO: checking whether flock locking works" >&5
62111 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
62112 if test "${amanda_cv_flock_filelocking+set}" = set; then
62113   echo $ECHO_N "(cached) $ECHO_C" >&6
62114 else
62115
62116             if test "$cross_compiling" = yes; then
62117
62118                     amanda_cv_flock_filelocking="no (cannot run test)"
62119
62120 else
62121   cat >conftest.$ac_ext <<_ACEOF
62122 /* confdefs.h.  */
62123 _ACEOF
62124 cat confdefs.h >>conftest.$ac_ext
62125 cat >>conftest.$ac_ext <<_ACEOF
62126 /* end confdefs.h.  */
62127
62128 #undef  ASSERTIONS
62129 #define CONFIGURE_TEST
62130 #define USE_FLOCK
62131 #include "${srcdir-.}/common-src/amflock.c"
62132
62133 _ACEOF
62134 rm -f conftest$ac_exeext
62135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62136   (eval $ac_link) 2>&5
62137   ac_status=$?
62138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62141   (eval $ac_try) 2>&5
62142   ac_status=$?
62143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62144   (exit $ac_status); }; }; then
62145
62146                     amanda_cv_flock_filelocking="yes"
62147
62148 else
62149   echo "$as_me: program exited with status $ac_status" >&5
62150 echo "$as_me: failed program was:" >&5
62151 sed 's/^/| /' conftest.$ac_ext >&5
62152
62153 ( exit $ac_status )
62154
62155                     amanda_cv_flock_filelocking="no"
62156
62157 fi
62158 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62159 fi
62160         rm -f /tmp/conftest.lock
62161
62162 fi
62163 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
62164 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
62165     if test "x$amanda_cv_flock_filelocking" = xyes; then
62166
62167 cat >>confdefs.h <<\_ACEOF
62168 #define USE_FLOCK 1
62169 _ACEOF
62170
62171         HAS_WORKING_FILE_LOCK=1
62172     fi
62173 fi
62174
62175 if test -z "$HAS_WORKING_FILE_LOCK"; then
62176     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
62177 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
62178 if test "${amanda_cv_lockf_filelocking+set}" = set; then
62179   echo $ECHO_N "(cached) $ECHO_C" >&6
62180 else
62181
62182             if test "$cross_compiling" = yes; then
62183
62184                     amanda_cv_lockf_filelocking="no (cannot run test)"
62185
62186 else
62187   cat >conftest.$ac_ext <<_ACEOF
62188 /* confdefs.h.  */
62189 _ACEOF
62190 cat confdefs.h >>conftest.$ac_ext
62191 cat >>conftest.$ac_ext <<_ACEOF
62192 /* end confdefs.h.  */
62193
62194 #undef  ASSERTIONS
62195 #define CONFIGURE_TEST
62196 #define USE_LOCKF
62197 #include "${srcdir-.}/common-src/amflock.c"
62198
62199 _ACEOF
62200 rm -f conftest$ac_exeext
62201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62202   (eval $ac_link) 2>&5
62203   ac_status=$?
62204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62205   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62207   (eval $ac_try) 2>&5
62208   ac_status=$?
62209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62210   (exit $ac_status); }; }; then
62211
62212                     amanda_cv_lockf_filelocking="yes"
62213
62214 else
62215   echo "$as_me: program exited with status $ac_status" >&5
62216 echo "$as_me: failed program was:" >&5
62217 sed 's/^/| /' conftest.$ac_ext >&5
62218
62219 ( exit $ac_status )
62220
62221                     amanda_cv_lockf_filelocking="no"
62222
62223 fi
62224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62225 fi
62226         rm -f /tmp/conftest.lock
62227
62228 fi
62229 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
62230 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
62231     if test "x$amanda_cv_lockf_filelocking" = xyes; then
62232
62233 cat >>confdefs.h <<\_ACEOF
62234 #define USE_LOCKF 1
62235 _ACEOF
62236
62237         HAS_WORKING_FILE_LOCK=1
62238     fi
62239 fi
62240
62241 if test -z "$HAS_WORKING_FILE_LOCK"; then
62242     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
62243 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
62244 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
62245   echo $ECHO_N "(cached) $ECHO_C" >&6
62246 else
62247
62248             if test "$cross_compiling" = yes; then
62249
62250                     amanda_cv_lnlock_filelocking="no (cannot run test)"
62251
62252 else
62253   cat >conftest.$ac_ext <<_ACEOF
62254 /* confdefs.h.  */
62255 _ACEOF
62256 cat confdefs.h >>conftest.$ac_ext
62257 cat >>conftest.$ac_ext <<_ACEOF
62258 /* end confdefs.h.  */
62259
62260 #undef  ASSERTIONS
62261 #define CONFIGURE_TEST
62262 #define USE_LNLOCK
62263 #include "${srcdir-.}/common-src/amflock.c"
62264 #include "${srcdir-.}/common-src/alloc.c"
62265 #include "${srcdir-.}/common-src/error.c"
62266 #include "${srcdir-.}/common-src/snprintf.c"
62267
62268 _ACEOF
62269 rm -f conftest$ac_exeext
62270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62271   (eval $ac_link) 2>&5
62272   ac_status=$?
62273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62276   (eval $ac_try) 2>&5
62277   ac_status=$?
62278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62279   (exit $ac_status); }; }; then
62280
62281                     amanda_cv_lnlock_filelocking="yes"
62282
62283 else
62284   echo "$as_me: program exited with status $ac_status" >&5
62285 echo "$as_me: failed program was:" >&5
62286 sed 's/^/| /' conftest.$ac_ext >&5
62287
62288 ( exit $ac_status )
62289
62290                     amanda_cv_lnlock_filelocking="no"
62291
62292 fi
62293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62294 fi
62295         rm -f /tmp/conftest.lock
62296
62297 fi
62298 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
62299 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
62300     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
62301
62302 cat >>confdefs.h <<\_ACEOF
62303 #define USE_LNLOCK 1
62304 _ACEOF
62305
62306         HAS_WORKING_FILE_LOCK=1
62307     fi
62308 fi
62309
62310 if test -z "$HAS_WORKING_FILE_LOCK"; then
62311     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
62312 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
62313     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
62314 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
62315 fi
62316
62317
62318
62319
62320
62321
62322
62323
62324
62325 if test x"$NO_CLIENT_MODE" != x"true"; then
62326   WANT_CLIENT_TRUE=
62327   WANT_CLIENT_FALSE='#'
62328 else
62329   WANT_CLIENT_TRUE='#'
62330   WANT_CLIENT_FALSE=
62331 fi
62332
62333
62334
62335 if test ! -z "$SAMBA_CLIENT"; then
62336   WANT_SAMBA_TRUE=
62337   WANT_SAMBA_FALSE='#'
62338 else
62339   WANT_SAMBA_TRUE='#'
62340   WANT_SAMBA_FALSE=
62341 fi
62342
62343
62344
62345 if test x"$NO_RESTORE_MODE" != x"true"; then
62346   WANT_RESTORE_TRUE=
62347   WANT_RESTORE_FALSE='#'
62348 else
62349   WANT_RESTORE_TRUE='#'
62350   WANT_RESTORE_FALSE=
62351 fi
62352
62353
62354
62355 if test x"$NO_SERVER_MODE" != x"true"; then
62356   WANT_SERVER_TRUE=
62357   WANT_SERVER_FALSE='#'
62358 else
62359   WANT_SERVER_TRUE='#'
62360   WANT_SERVER_FALSE=
62361 fi
62362
62363
62364
62365 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
62366   WANT_RECOVER_TRUE=
62367   WANT_RECOVER_FALSE='#'
62368 else
62369   WANT_RECOVER_TRUE='#'
62370   WANT_RECOVER_FALSE=
62371 fi
62372
62373
62374
62375 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
62376   WANT_TAPE_TRUE=
62377   WANT_TAPE_FALSE='#'
62378 else
62379   WANT_TAPE_TRUE='#'
62380   WANT_TAPE_FALSE=
62381 fi
62382
62383
62384
62385 if test x"$NO_AMPLOT_MODE" != x"true"; then
62386   WANT_AMPLOT_TRUE=
62387   WANT_AMPLOT_FALSE='#'
62388 else
62389   WANT_AMPLOT_TRUE='#'
62390   WANT_AMPLOT_FALSE=
62391 fi
62392
62393
62394
62395 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
62396   WANT_CHG_SCSI_TRUE=
62397   WANT_CHG_SCSI_FALSE='#'
62398 else
62399   WANT_CHG_SCSI_TRUE='#'
62400   WANT_CHG_SCSI_FALSE=
62401 fi
62402
62403
62404
62405 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
62406   WANT_CHIO_SCSI_TRUE=
62407   WANT_CHIO_SCSI_FALSE='#'
62408 else
62409   WANT_CHIO_SCSI_TRUE='#'
62410   WANT_CHIO_SCSI_FALSE=
62411 fi
62412
62413
62414
62415 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
62416   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
62417   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
62418 else
62419   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
62420   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
62421 fi
62422
62423
62424
62425 if test x"$NEED_SETUID_CLIENT" != x"false"; then
62426   WANT_SETUID_CLIENT_TRUE=
62427   WANT_SETUID_CLIENT_FALSE='#'
62428 else
62429   WANT_SETUID_CLIENT_TRUE='#'
62430   WANT_SETUID_CLIENT_FALSE=
62431 fi
62432
62433
62434
62435 if test x"$SSH_SECURITY_SET" = x"true"; then
62436   WANT_SSH_SECURITY_TRUE=
62437   WANT_SSH_SECURITY_FALSE='#'
62438 else
62439   WANT_SSH_SECURITY_TRUE='#'
62440   WANT_SSH_SECURITY_FALSE=
62441 fi
62442
62443
62444 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
62445 y |  ye | yes)
62446 cat >>confdefs.h <<\_ACEOF
62447 #define USE_RUNDUMP 1
62448 _ACEOF
62449 ;;
62450 esac
62451
62452 # This is necessary so that .o files in LIBOBJS are also built via
62453 # the ANSI2KNR-filtering rules.
62454 LIBOBJS=`echo "$LIBOBJS" |
62455              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
62456 LTLIBOBJS=`echo "$LIBOBJS" |
62457            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
62458
62459
62460 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
62461
62462
62463 ## This stuff is needed for the documentation.
62464 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
62465
62466
62467 # Check whether --enable-manpage-build or --disable-manpage-build was given.
62468 if test "${enable_manpage_build+set}" = set; then
62469   enableval="$enable_manpage_build"
62470    ENABLE_MANPAGE_BUILD=$enableval
62471 else
62472    ENABLE_MANPAGE_BUILD=no
62473 fi;
62474
62475
62476 XSLTPROC_FLAGS="--nonet"
62477
62478
62479 # The (lack of) whitespace and overquoting here are all necessary for
62480 # proper formatting.
62481
62482 # Check whether --with-xsltproc or --without-xsltproc was given.
62483 if test "${with_xsltproc+set}" = set; then
62484   withval="$with_xsltproc"
62485    ac_with_xsltproc=$withval;
62486 else
62487    ac_with_xsltproc=maybe;
62488 fi;
62489
62490
62491 # Check whether --with-xsltproc-flags or --without-xsltproc-flags was given.
62492 if test "${with_xsltproc_flags+set}" = set; then
62493   withval="$with_xsltproc_flags"
62494    if test "x$withval" == "xno"; then
62495         XSLTPROC_FLAGS=''
62496     else
62497         if test "x$withval" != "xyes"; then
62498             XSLTPROC_FLAGS="$withval"
62499         fi
62500     fi
62501
62502 fi;
62503
62504 # search for xsltproc if it wasn't specified
62505 if test "$ac_with_xsltproc" = "yes" -o "$ac_with_xsltproc" = "maybe"; then
62506     for ac_prog in xsltproc
62507 do
62508   # Extract the first word of "$ac_prog", so it can be a program name with args.
62509 set dummy $ac_prog; ac_word=$2
62510 echo "$as_me:$LINENO: checking for $ac_word" >&5
62511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
62512 if test "${ac_cv_path_XSLTPROC+set}" = set; then
62513   echo $ECHO_N "(cached) $ECHO_C" >&6
62514 else
62515   case $XSLTPROC in
62516   [\\/]* | ?:[\\/]*)
62517   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
62518   ;;
62519   *)
62520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62521 for as_dir in $LOCSYSPATH
62522 do
62523   IFS=$as_save_IFS
62524   test -z "$as_dir" && as_dir=.
62525   for ac_exec_ext in '' $ac_executable_extensions; do
62526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
62527     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
62528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
62529     break 2
62530   fi
62531 done
62532 done
62533
62534   ;;
62535 esac
62536 fi
62537 XSLTPROC=$ac_cv_path_XSLTPROC
62538
62539 if test -n "$XSLTPROC"; then
62540   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
62541 echo "${ECHO_T}$XSLTPROC" >&6
62542 else
62543   echo "$as_me:$LINENO: result: no" >&5
62544 echo "${ECHO_T}no" >&6
62545 fi
62546
62547   test -n "$XSLTPROC" && break
62548 done
62549
62550 else
62551     if test "$ac_with_xsltproc" != "no"; then
62552         if test -x "$ac_with_xsltproc"; then
62553             XSLTPROC="$ac_with_xsltproc";
62554         else
62555             { echo "$as_me:$LINENO: WARNING: Specified xsltproc of $ac_with_xsltproc isn't" >&5
62556 echo "$as_me: WARNING: Specified xsltproc of $ac_with_xsltproc isn't" >&2;}
62557             { echo "$as_me:$LINENO: WARNING: executable; searching for an alternative." >&5
62558 echo "$as_me: WARNING: executable; searching for an alternative." >&2;}
62559             for ac_prog in xsltproc
62560 do
62561   # Extract the first word of "$ac_prog", so it can be a program name with args.
62562 set dummy $ac_prog; ac_word=$2
62563 echo "$as_me:$LINENO: checking for $ac_word" >&5
62564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
62565 if test "${ac_cv_path_XSLTPROC+set}" = set; then
62566   echo $ECHO_N "(cached) $ECHO_C" >&6
62567 else
62568   case $XSLTPROC in
62569   [\\/]* | ?:[\\/]*)
62570   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
62571   ;;
62572   *)
62573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62574 for as_dir in $LOCSYSPATH
62575 do
62576   IFS=$as_save_IFS
62577   test -z "$as_dir" && as_dir=.
62578   for ac_exec_ext in '' $ac_executable_extensions; do
62579   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
62580     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
62581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
62582     break 2
62583   fi
62584 done
62585 done
62586
62587   ;;
62588 esac
62589 fi
62590 XSLTPROC=$ac_cv_path_XSLTPROC
62591
62592 if test -n "$XSLTPROC"; then
62593   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
62594 echo "${ECHO_T}$XSLTPROC" >&6
62595 else
62596   echo "$as_me:$LINENO: result: no" >&5
62597 echo "${ECHO_T}no" >&6
62598 fi
62599
62600   test -n "$XSLTPROC" && break
62601 done
62602
62603         fi
62604     fi
62605 fi
62606
62607
62608
62609
62610
62611
62612
62613
62614
62615     echo "$as_me:$LINENO: checking for Docbook XSLT version 1.72.0" >&5
62616 echo $ECHO_N "checking for Docbook XSLT version 1.72.0... $ECHO_C" >&6
62617 if test "${ac_cv_docbook_xslt_1_72_0+set}" = set; then
62618   echo $ECHO_N "(cached) $ECHO_C" >&6
62619 else
62620
62621         ac_cv_docbook_xslt_1_72_0=no
62622         if test -n "$XSLTPROC"; then
62623             echo "Trying '$XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl'" >&5
62624             $XSLTPROC $XSLTPROC_FLAGS http://docbook.sourceforge.net/release/xsl/1.72.0/xhtml/docbook.xsl >&5 2>&1
62625
62626             if test "$?" = 0; then
62627                 ac_cv_docbook_xslt_1_72_0=yes
62628             fi
62629         fi
62630
62631 fi
62632 echo "$as_me:$LINENO: result: $ac_cv_docbook_xslt_1_72_0" >&5
62633 echo "${ECHO_T}$ac_cv_docbook_xslt_1_72_0" >&6
62634
62635     HAVE_DOCBOOK_XSLT_1_72_0="$ac_cv_docbook_xslt_1_72_0"
62636     HAVE_DOCBOOK_XSLT=HAVE_DOCBOOK_XSLT_1_72_0
62637
62638
62639
62640
62641
62642
62643
62644
62645
62646
62647     echo "$as_me:$LINENO: checking for Docbook DTD version 4.1.2" >&5
62648 echo $ECHO_N "checking for Docbook DTD version 4.1.2... $ECHO_C" >&6
62649 if test "${ac_cv_docbook_dtd_4_1_2+set}" = set; then
62650   echo $ECHO_N "(cached) $ECHO_C" >&6
62651 else
62652
62653         ac_cv_docbook_dtd_4_1_2=no
62654         if test -n "$XSLTPROC"; then
62655             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
62656             cat <<EOF >conftest.xml
62657 <?xml version="1.0" encoding='ISO-8859-1'?>
62658 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
62659 <book id="empty">
62660 </book>
62661 EOF
62662             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
62663             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
62664             if test "$?" = 0; then
62665                 # failing to load the DTD is just a warning, so check for it in the output.
62666                 if grep 'warning: failed to load external entity' conftest_out >/dev/null 2>&1; then
62667                     : # no good..
62668                 else
62669                     ac_cv_docbook_dtd_4_1_2=yes
62670                 fi
62671             fi
62672             cat conftest.out >&5
62673
62674             rm -f conftest.xml conftest.out
62675         fi
62676
62677 fi
62678 echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_1_2" >&5
62679 echo "${ECHO_T}$ac_cv_docbook_dtd_4_1_2" >&6
62680
62681     HAVE_DOCBOOK_DTD_4_1_2="$ac_cv_docbook_dtd_4_1_2"
62682     HAVE_DOCBOOK_DTD=HAVE_DOCBOOK_DTD_4_1_2
62683
62684
62685
62686
62687
62688
62689
62690
62691
62692
62693     echo "$as_me:$LINENO: checking for Docbook DTD version 4.2" >&5
62694 echo $ECHO_N "checking for Docbook DTD version 4.2... $ECHO_C" >&6
62695 if test "${ac_cv_docbook_dtd_4_2+set}" = set; then
62696   echo $ECHO_N "(cached) $ECHO_C" >&6
62697 else
62698
62699         ac_cv_docbook_dtd_4_2=no
62700         if test -n "$XSLTPROC"; then
62701             MY_XSLTPROC_FLAGS=`echo "" $XSLTPROC_FLAGS|sed -e s/--novalid//g`
62702             cat <<EOF >conftest.xml
62703 <?xml version="1.0" encoding='ISO-8859-1'?>
62704 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
62705 <book id="empty">
62706 </book>
62707 EOF
62708             echo "Trying '$XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml'" >&5
62709             $XSLTPROC $MY_XSLTPROC_FLAGS conftest.xml >conftest.out 2>&1
62710             if test "$?" = 0; then
62711                 # failing to load the DTD is just a warning, so check for it in the output.
62712                 if grep 'warning: failed to load external entity' conftest_out >/dev/null 2>&1; then
62713                     : # no good..
62714                 else
62715                     ac_cv_docbook_dtd_4_2=yes
62716                 fi
62717             fi
62718             cat conftest.out >&5
62719
62720             rm -f conftest.xml conftest.out
62721         fi
62722
62723 fi
62724 echo "$as_me:$LINENO: result: $ac_cv_docbook_dtd_4_2" >&5
62725 echo "${ECHO_T}$ac_cv_docbook_dtd_4_2" >&6
62726
62727     HAVE_DOCBOOK_DTD_4_2="$ac_cv_docbook_dtd_4_2"
62728     HAVE_DOCBOOK_DTD=HAVE_DOCBOOK_DTD_4_2
62729
62730
62731
62732 # and ensure that everything docbook-related is OK if we'll be using it
62733 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
62734     if test -z "$XSLTPROC"; then
62735         { { echo "$as_me:$LINENO: error: Cannot build manpages: 'xsltproc' was not found." >&5
62736 echo "$as_me: error: Cannot build manpages: 'xsltproc' was not found." >&2;}
62737    { (exit 1); exit 1; }; }
62738     fi
62739
62740     if test "x$HAVE_DOCBOOK_XSLT_1_72_0" = "xno"; then
62741         { { echo "$as_me:$LINENO: error: Cannot build manpages: docbook version 1.72.0 was not found." >&5
62742 echo "$as_me: error: Cannot build manpages: docbook version 1.72.0 was not found." >&2;}
62743    { (exit 1); exit 1; }; }
62744     fi
62745
62746     if test "x$HAVE_DOCBOOK_DTD_4_1_2" = "xno" || test "x$HAVE_DOCBOOK_DTD_4_2" = "xno"; then
62747         { echo "$as_me:$LINENO: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&5
62748 echo "$as_me: WARNING: Docbook DTD versions 4.1.2 and 4.2 are required for manpage validation; disabling validation" >&2;}
62749         XSLTPROC_FLAGS="$XSLTPROC_FLAGS --novalid"
62750     fi
62751 fi
62752
62753
62754 if test "x$ENABLE_MANPAGE_BUILD" = "xyes"; then
62755   ENABLE_MANPAGE_BUILD_TRUE=
62756   ENABLE_MANPAGE_BUILD_FALSE='#'
62757 else
62758   ENABLE_MANPAGE_BUILD_TRUE='#'
62759   ENABLE_MANPAGE_BUILD_FALSE=
62760 fi
62761
62762
62763 echo "$as_me:$LINENO: checking for working IPv6" >&5
62764 echo $ECHO_N "checking for working IPv6... $ECHO_C" >&6
62765 if test "${amanda_working_ipv6+set}" = set; then
62766   echo $ECHO_N "(cached) $ECHO_C" >&6
62767 else
62768   if test "$cross_compiling" = yes; then
62769   amanda_working_ipv6=yes
62770
62771 else
62772   cat >conftest.$ac_ext <<_ACEOF
62773 /* confdefs.h.  */
62774 _ACEOF
62775 cat confdefs.h >>conftest.$ac_ext
62776 cat >>conftest.$ac_ext <<_ACEOF
62777 /* end confdefs.h.  */
62778 #include <sys/types.h>
62779 #ifdef HAVE_SYS_SOCKET_H
62780 #include <sys/socket.h>
62781 #endif
62782 #ifdef HAVE_NETINET_IN_H
62783 #include <netinet/in.h>
62784 #endif
62785 #ifdef HAVE_WINSOCK2_H
62786 #include <winsock2.h>
62787 #endif
62788 #include <sys/socket.h>
62789 #include <netinet/in.h>
62790 #include <errno.h>
62791
62792 main()
62793 {
62794    int aa;
62795    aa = socket(AF_INET6, SOCK_STREAM, 0);
62796    if (aa > 0) return 0;
62797    return aa;
62798 }
62799 _ACEOF
62800 rm -f conftest$ac_exeext
62801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62802   (eval $ac_link) 2>&5
62803   ac_status=$?
62804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62807   (eval $ac_try) 2>&5
62808   ac_status=$?
62809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62810   (exit $ac_status); }; }; then
62811   amanda_working_ipv6=yes
62812 else
62813   echo "$as_me: program exited with status $ac_status" >&5
62814 echo "$as_me: failed program was:" >&5
62815 sed 's/^/| /' conftest.$ac_ext >&5
62816
62817 ( exit $ac_status )
62818 amanda_working_ipv6=no
62819 fi
62820 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62821 fi
62822
62823
62824 fi
62825 echo "$as_me:$LINENO: result: $amanda_working_ipv6" >&5
62826 echo "${ECHO_T}$amanda_working_ipv6" >&6
62827
62828 if test "$BROKEN_IPV6" = true; then
62829     amanda_working_ipv6=no;
62830 fi
62831
62832 if test "$amanda_working_ipv6" = yes; then
62833     if test "$amanda_ipv6" != false; then
62834
62835 cat >>confdefs.h <<\_ACEOF
62836 #define WORKING_IPV6 1
62837 _ACEOF
62838
62839     fi
62840 else
62841     if test "$amanda_ipv6" = true; then
62842         { { echo "$as_me:$LINENO: error: Asked for IPv6 but it is not working." >&5
62843 echo "$as_me: error: Asked for IPv6 but it is not working." >&2;}
62844    { (exit 1); exit 1; }; }
62845     fi
62846 fi
62847
62848
62849
62850 if test "x$CC" = "xgcc"; then
62851   GCC_COMPILER_TRUE=
62852   GCC_COMPILER_FALSE='#'
62853 else
62854   GCC_COMPILER_TRUE='#'
62855   GCC_COMPILER_FALSE=
62856 fi
62857
62858
62859 #### Enforce amanda code cleanliness rules.
62860 #### Done here to allow configuration code to remain intact.
62861 if test "x$CC" = "xgcc"; then
62862   AM_CFLAGS="$AM_CFLAGS -Wall"
62863   $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
62864   if test $? -eq 0; then
62865     AM_CFLAGS="$AM_CFLAGS -Wextra"
62866   else
62867    AM_CFLAGS="$AM_CFLAGS -W"
62868   fi
62869
62870   $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
62871   if test $? -eq 0; then
62872     AM_CFLAGS="$AM_CFLAGS -Wparentheses"
62873   fi
62874
62875   $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
62876   if test $? -eq 0; then
62877     AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
62878   fi
62879
62880   $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
62881   if test $? -eq 0; then
62882     AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
62883   fi
62884
62885   $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
62886   if test $? -eq 0; then
62887     AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
62888   fi
62889
62890   $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
62891   if test $? -eq 0; then
62892     AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
62893   fi
62894
62895   $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
62896   if test $? -eq 0; then
62897     AM_CFLAGS="$AM_CFLAGS -Wformat"
62898   fi
62899
62900   $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
62901   if test $? -eq 0; then
62902     AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
62903   fi
62904
62905   $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
62906   if test $? -eq 0; then
62907     AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
62908   fi
62909
62910   $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
62911   if test $? -eq 0; then
62912     AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
62913   fi
62914
62915   $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
62916   if test $? -eq 0; then
62917     AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
62918   fi
62919 fi
62920
62921
62922                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ac_config_files="$ac_config_files gnulib/Makefile amplot/amcat.awk amplot/amplot.sh amplot/Makefile amandad-src/Makefile changer-src/chg-manual.sh changer-src/chg-multi.sh changer-src/chg-mtx.sh changer-src/chg-chs.sh changer-src/chg-rth.pl changer-src/chg-chio.pl changer-src/chg-zd-mtx.sh changer-src/Makefile changer-src/chg-juke.sh changer-src/chg-rait.sh changer-src/chg-null.sh changer-src/chg-mcutil.sh changer-src/chg-disk.sh changer-src/chg-iomega.pl changer-src/chg-lib.sh client-src/patch-system.sh client-src/Makefile dumper-src/amgtar.pl dumper-src/generic-dumper.pl dumper-src/Makefile common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/chg-mcutil.conf example/amanda-client.conf man/Makefile docs/Makefile recover-src/Makefile oldrecover-src/Makefile restore-src/Makefile server-src/amcheckdb.sh server-src/amcleanup.sh server-src/amdump.sh server-src/amfreetapes.sh server-src/amoverview.pl server-src/amrmtape.sh server-src/amtoc.pl server-src/amverify.sh server-src/Makefile server-src/amstatus.pl server-src/amverifyrun.sh server-src/amcrypt.sh server-src/amaespipe.sh server-src/amcrypt-ossl.sh server-src/amcrypt-ossl-asym.sh tape-src/Makefile config/Makefile Makefile"
62923
62924
62925 cat >confcache <<\_ACEOF
62926 # This file is a shell script that caches the results of configure
62927 # tests run on this system so they can be shared between configure
62928 # scripts and configure runs, see configure's option --config-cache.
62929 # It is not useful on other systems.  If it contains results you don't
62930 # want to keep, you may remove or edit it.
62931 #
62932 # config.status only pays attention to the cache file if you give it
62933 # the --recheck option to rerun configure.
62934 #
62935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
62936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
62937 # following values.
62938
62939 _ACEOF
62940
62941 # The following way of writing the cache mishandles newlines in values,
62942 # but we know of no workaround that is simple, portable, and efficient.
62943 # So, don't put newlines in cache variables' values.
62944 # Ultrix sh set writes to stderr and can't be redirected directly,
62945 # and sets the high bit in the cache file unless we assign to the vars.
62946 {
62947   (set) 2>&1 |
62948     case `(ac_space=' '; set | grep ac_space) 2>&1` in
62949     *ac_space=\ *)
62950       # `set' does not quote correctly, so add quotes (double-quote
62951       # substitution turns \\\\ into \\, and sed turns \\ into \).
62952       sed -n \
62953         "s/'/'\\\\''/g;
62954           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
62955       ;;
62956     *)
62957       # `set' quotes correctly as required by POSIX, so do not add quotes.
62958       sed -n \
62959         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
62960       ;;
62961     esac;
62962 } |
62963   sed '
62964      t clear
62965      : clear
62966      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
62967      t end
62968      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
62969      : end' >>confcache
62970 if diff $cache_file confcache >/dev/null 2>&1; then :; else
62971   if test -w $cache_file; then
62972     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
62973     cat confcache >$cache_file
62974   else
62975     echo "not updating unwritable cache $cache_file"
62976   fi
62977 fi
62978 rm -f confcache
62979
62980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
62981 # Let make expand exec_prefix.
62982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
62983
62984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
62985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
62986 # trailing colons and then remove the whole line if VPATH becomes empty
62987 # (actually we leave an empty line to preserve line numbers).
62988 if test "x$srcdir" = x.; then
62989   ac_vpsub='/^[  ]*VPATH[        ]*=/{
62990 s/:*\$(srcdir):*/:/;
62991 s/:*\${srcdir}:*/:/;
62992 s/:*@srcdir@:*/:/;
62993 s/^\([^=]*=[     ]*\):*/\1/;
62994 s/:*$//;
62995 s/^[^=]*=[       ]*$//;
62996 }'
62997 fi
62998
62999 DEFS=-DHAVE_CONFIG_H
63000
63001 ac_libobjs=
63002 ac_ltlibobjs=
63003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
63004   # 1. Remove the extension, and $U if already installed.
63005   ac_i=`echo "$ac_i" |
63006          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
63007   # 2. Add them.
63008   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
63009   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
63010 done
63011 LIBOBJS=$ac_libobjs
63012
63013 LTLIBOBJS=$ac_ltlibobjs
63014
63015
63016 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
63017   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
63018 Usually this means the macro was only invoked conditionally." >&5
63019 echo "$as_me: error: conditional \"AMDEP\" was never defined.
63020 Usually this means the macro was only invoked conditionally." >&2;}
63021    { (exit 1); exit 1; }; }
63022 fi
63023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
63024   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
63025 Usually this means the macro was only invoked conditionally." >&5
63026 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
63027 Usually this means the macro was only invoked conditionally." >&2;}
63028    { (exit 1); exit 1; }; }
63029 fi
63030 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
63031   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
63032 Usually this means the macro was only invoked conditionally." >&5
63033 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
63034 Usually this means the macro was only invoked conditionally." >&2;}
63035    { (exit 1); exit 1; }; }
63036 fi
63037
63038     gl_libobjs=
63039     gl_ltlibobjs=
63040     if test -n "$gl_LIBOBJS"; then
63041       # Remove the extension.
63042       sed_drop_objext='s/\.o$//;s/\.obj$//'
63043       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
63044         gl_libobjs="$gl_libobjs $i.$ac_objext"
63045         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
63046       done
63047     fi
63048     gl_LIBOBJS=$gl_libobjs
63049
63050     gl_LTLIBOBJS=$gl_ltlibobjs
63051
63052
63053 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
63054   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
63055 Usually this means the macro was only invoked conditionally." >&5
63056 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
63057 Usually this means the macro was only invoked conditionally." >&2;}
63058    { (exit 1); exit 1; }; }
63059 fi
63060 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
63061   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
63062 Usually this means the macro was only invoked conditionally." >&5
63063 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
63064 Usually this means the macro was only invoked conditionally." >&2;}
63065    { (exit 1); exit 1; }; }
63066 fi
63067 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
63068   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
63069 Usually this means the macro was only invoked conditionally." >&5
63070 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
63071 Usually this means the macro was only invoked conditionally." >&2;}
63072    { (exit 1); exit 1; }; }
63073 fi
63074 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
63075   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
63076 Usually this means the macro was only invoked conditionally." >&5
63077 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
63078 Usually this means the macro was only invoked conditionally." >&2;}
63079    { (exit 1); exit 1; }; }
63080 fi
63081 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
63082   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
63083 Usually this means the macro was only invoked conditionally." >&5
63084 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
63085 Usually this means the macro was only invoked conditionally." >&2;}
63086    { (exit 1); exit 1; }; }
63087 fi
63088 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
63089   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
63090 Usually this means the macro was only invoked conditionally." >&5
63091 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
63092 Usually this means the macro was only invoked conditionally." >&2;}
63093    { (exit 1); exit 1; }; }
63094 fi
63095 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
63096   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
63097 Usually this means the macro was only invoked conditionally." >&5
63098 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
63099 Usually this means the macro was only invoked conditionally." >&2;}
63100    { (exit 1); exit 1; }; }
63101 fi
63102 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
63103   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
63104 Usually this means the macro was only invoked conditionally." >&5
63105 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
63106 Usually this means the macro was only invoked conditionally." >&2;}
63107    { (exit 1); exit 1; }; }
63108 fi
63109 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
63110   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
63111 Usually this means the macro was only invoked conditionally." >&5
63112 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
63113 Usually this means the macro was only invoked conditionally." >&2;}
63114    { (exit 1); exit 1; }; }
63115 fi
63116 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
63117   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
63118 Usually this means the macro was only invoked conditionally." >&5
63119 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
63120 Usually this means the macro was only invoked conditionally." >&2;}
63121    { (exit 1); exit 1; }; }
63122 fi
63123 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
63124   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
63125 Usually this means the macro was only invoked conditionally." >&5
63126 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
63127 Usually this means the macro was only invoked conditionally." >&2;}
63128    { (exit 1); exit 1; }; }
63129 fi
63130 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
63131   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
63132 Usually this means the macro was only invoked conditionally." >&5
63133 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
63134 Usually this means the macro was only invoked conditionally." >&2;}
63135    { (exit 1); exit 1; }; }
63136 fi
63137 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
63138   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
63139 Usually this means the macro was only invoked conditionally." >&5
63140 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
63141 Usually this means the macro was only invoked conditionally." >&2;}
63142    { (exit 1); exit 1; }; }
63143 fi
63144 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
63145   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
63146 Usually this means the macro was only invoked conditionally." >&5
63147 echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
63148 Usually this means the macro was only invoked conditionally." >&2;}
63149    { (exit 1); exit 1; }; }
63150 fi
63151 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
63152   { { echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
63153 Usually this means the macro was only invoked conditionally." >&5
63154 echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
63155 Usually this means the macro was only invoked conditionally." >&2;}
63156    { (exit 1); exit 1; }; }
63157 fi
63158
63159 : ${CONFIG_STATUS=./config.status}
63160 ac_clean_files_save=$ac_clean_files
63161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
63162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
63163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
63164 cat >$CONFIG_STATUS <<_ACEOF
63165 #! $SHELL
63166 # Generated by $as_me.
63167 # Run this file to recreate the current configuration.
63168 # Compiler output produced by configure, useful for debugging
63169 # configure, is in config.log if it exists.
63170
63171 debug=false
63172 ac_cs_recheck=false
63173 ac_cs_silent=false
63174 SHELL=\${CONFIG_SHELL-$SHELL}
63175 _ACEOF
63176
63177 cat >>$CONFIG_STATUS <<\_ACEOF
63178 ## --------------------- ##
63179 ## M4sh Initialization.  ##
63180 ## --------------------- ##
63181
63182 # Be Bourne compatible
63183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
63184   emulate sh
63185   NULLCMD=:
63186   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
63187   # is contrary to our usage.  Disable this feature.
63188   alias -g '${1+"$@"}'='"$@"'
63189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
63190   set -o posix
63191 fi
63192 DUALCASE=1; export DUALCASE # for MKS sh
63193
63194 # Support unset when possible.
63195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63196   as_unset=unset
63197 else
63198   as_unset=false
63199 fi
63200
63201
63202 # Work around bugs in pre-3.0 UWIN ksh.
63203 $as_unset ENV MAIL MAILPATH
63204 PS1='$ '
63205 PS2='> '
63206 PS4='+ '
63207
63208 # NLS nuisances.
63209 for as_var in \
63210   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
63211   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
63212   LC_TELEPHONE LC_TIME
63213 do
63214   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
63215     eval $as_var=C; export $as_var
63216   else
63217     $as_unset $as_var
63218   fi
63219 done
63220
63221 # Required to use basename.
63222 if expr a : '\(a\)' >/dev/null 2>&1; then
63223   as_expr=expr
63224 else
63225   as_expr=false
63226 fi
63227
63228 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63229   as_basename=basename
63230 else
63231   as_basename=false
63232 fi
63233
63234
63235 # Name of the executable.
63236 as_me=`$as_basename "$0" ||
63237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
63238          X"$0" : 'X\(//\)$' \| \
63239          X"$0" : 'X\(/\)$' \| \
63240          .     : '\(.\)' 2>/dev/null ||
63241 echo X/"$0" |
63242     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
63243           /^X\/\(\/\/\)$/{ s//\1/; q; }
63244           /^X\/\(\/\).*/{ s//\1/; q; }
63245           s/.*/./; q'`
63246
63247
63248 # PATH needs CR, and LINENO needs CR and PATH.
63249 # Avoid depending upon Character Ranges.
63250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
63251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
63252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
63253 as_cr_digits='0123456789'
63254 as_cr_alnum=$as_cr_Letters$as_cr_digits
63255
63256 # The user is always right.
63257 if test "${PATH_SEPARATOR+set}" != set; then
63258   echo "#! /bin/sh" >conf$$.sh
63259   echo  "exit 0"   >>conf$$.sh
63260   chmod +x conf$$.sh
63261   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
63262     PATH_SEPARATOR=';'
63263   else
63264     PATH_SEPARATOR=:
63265   fi
63266   rm -f conf$$.sh
63267 fi
63268
63269
63270   as_lineno_1=$LINENO
63271   as_lineno_2=$LINENO
63272   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
63273   test "x$as_lineno_1" != "x$as_lineno_2" &&
63274   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
63275   # Find who we are.  Look in the path if we contain no path at all
63276   # relative or not.
63277   case $0 in
63278     *[\\/]* ) as_myself=$0 ;;
63279     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63280 for as_dir in $PATH
63281 do
63282   IFS=$as_save_IFS
63283   test -z "$as_dir" && as_dir=.
63284   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
63285 done
63286
63287        ;;
63288   esac
63289   # We did not find ourselves, most probably we were run as `sh COMMAND'
63290   # in which case we are not to be found in the path.
63291   if test "x$as_myself" = x; then
63292     as_myself=$0
63293   fi
63294   if test ! -f "$as_myself"; then
63295     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
63296 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
63297    { (exit 1); exit 1; }; }
63298   fi
63299   case $CONFIG_SHELL in
63300   '')
63301     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
63302 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
63303 do
63304   IFS=$as_save_IFS
63305   test -z "$as_dir" && as_dir=.
63306   for as_base in sh bash ksh sh5; do
63307          case $as_dir in
63308          /*)
63309            if ("$as_dir/$as_base" -c '
63310   as_lineno_1=$LINENO
63311   as_lineno_2=$LINENO
63312   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
63313   test "x$as_lineno_1" != "x$as_lineno_2" &&
63314   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
63315              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
63316              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
63317              CONFIG_SHELL=$as_dir/$as_base
63318              export CONFIG_SHELL
63319              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
63320            fi;;
63321          esac
63322        done
63323 done
63324 ;;
63325   esac
63326
63327   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
63328   # uniformly replaced by the line number.  The first 'sed' inserts a
63329   # line-number line before each line; the second 'sed' does the real
63330   # work.  The second script uses 'N' to pair each line-number line
63331   # with the numbered line, and appends trailing '-' during
63332   # substitution so that $LINENO is not a special case at line end.
63333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
63334   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
63335   sed '=' <$as_myself |
63336     sed '
63337       N
63338       s,$,-,
63339       : loop
63340       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
63341       t loop
63342       s,-$,,
63343       s,^['$as_cr_digits']*\n,,
63344     ' >$as_me.lineno &&
63345   chmod +x $as_me.lineno ||
63346     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
63347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
63348    { (exit 1); exit 1; }; }
63349
63350   # Don't try to exec as it changes $[0], causing all sort of problems
63351   # (the dirname of $[0] is not the place where we might find the
63352   # original and so on.  Autoconf is especially sensible to this).
63353   . ./$as_me.lineno
63354   # Exit status is that of the last command.
63355   exit
63356 }
63357
63358
63359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
63360   *c*,-n*) ECHO_N= ECHO_C='
63361 ' ECHO_T='      ' ;;
63362   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
63363   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
63364 esac
63365
63366 if expr a : '\(a\)' >/dev/null 2>&1; then
63367   as_expr=expr
63368 else
63369   as_expr=false
63370 fi
63371
63372 rm -f conf$$ conf$$.exe conf$$.file
63373 echo >conf$$.file
63374 if ln -s conf$$.file conf$$ 2>/dev/null; then
63375   # We could just check for DJGPP; but this test a) works b) is more generic
63376   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
63377   if test -f conf$$.exe; then
63378     # Don't use ln at all; we don't have any links
63379     as_ln_s='cp -p'
63380   else
63381     as_ln_s='ln -s'
63382   fi
63383 elif ln conf$$.file conf$$ 2>/dev/null; then
63384   as_ln_s=ln
63385 else
63386   as_ln_s='cp -p'
63387 fi
63388 rm -f conf$$ conf$$.exe conf$$.file
63389
63390 if mkdir -p . 2>/dev/null; then
63391   as_mkdir_p=:
63392 else
63393   test -d ./-p && rmdir ./-p
63394   as_mkdir_p=false
63395 fi
63396
63397 as_executable_p="test -f"
63398
63399 # Sed expression to map a string onto a valid CPP name.
63400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
63401
63402 # Sed expression to map a string onto a valid variable name.
63403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
63404
63405
63406 # IFS
63407 # We need space, tab and new line, in precisely that order.
63408 as_nl='
63409 '
63410 IFS="   $as_nl"
63411
63412 # CDPATH.
63413 $as_unset CDPATH
63414
63415 exec 6>&1
63416
63417 # Open the log real soon, to keep \$[0] and so on meaningful, and to
63418 # report actual input values of CONFIG_FILES etc. instead of their
63419 # values after options handling.  Logging --version etc. is OK.
63420 exec 5>>config.log
63421 {
63422   echo
63423   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
63424 ## Running $as_me. ##
63425 _ASBOX
63426 } >&5
63427 cat >&5 <<_CSEOF
63428
63429 This file was extended by $as_me, which was
63430 generated by GNU Autoconf 2.59.  Invocation command line was
63431
63432   CONFIG_FILES    = $CONFIG_FILES
63433   CONFIG_HEADERS  = $CONFIG_HEADERS
63434   CONFIG_LINKS    = $CONFIG_LINKS
63435   CONFIG_COMMANDS = $CONFIG_COMMANDS
63436   $ $0 $@
63437
63438 _CSEOF
63439 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
63440 echo >&5
63441 _ACEOF
63442
63443 # Files that config.status was made for.
63444 if test -n "$ac_config_files"; then
63445   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63446 fi
63447
63448 if test -n "$ac_config_headers"; then
63449   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
63450 fi
63451
63452 if test -n "$ac_config_links"; then
63453   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
63454 fi
63455
63456 if test -n "$ac_config_commands"; then
63457   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
63458 fi
63459
63460 cat >>$CONFIG_STATUS <<\_ACEOF
63461
63462 ac_cs_usage="\
63463 \`$as_me' instantiates files from templates according to the
63464 current configuration.
63465
63466 Usage: $0 [OPTIONS] [FILE]...
63467
63468   -h, --help       print this help, then exit
63469   -V, --version    print version number, then exit
63470   -q, --quiet      do not print progress messages
63471   -d, --debug      don't remove temporary files
63472       --recheck    update $as_me by reconfiguring in the same conditions
63473   --file=FILE[:TEMPLATE]
63474                    instantiate the configuration file FILE
63475   --header=FILE[:TEMPLATE]
63476                    instantiate the configuration header FILE
63477
63478 Configuration files:
63479 $config_files
63480
63481 Configuration headers:
63482 $config_headers
63483
63484 Configuration commands:
63485 $config_commands
63486
63487 Report bugs to <bug-autoconf@gnu.org>."
63488 _ACEOF
63489
63490 cat >>$CONFIG_STATUS <<_ACEOF
63491 ac_cs_version="\\
63492 config.status
63493 configured by $0, generated by GNU Autoconf 2.59,
63494   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
63495
63496 Copyright (C) 2003 Free Software Foundation, Inc.
63497 This config.status script is free software; the Free Software Foundation
63498 gives unlimited permission to copy, distribute and modify it."
63499 srcdir=$srcdir
63500 INSTALL="$INSTALL"
63501 _ACEOF
63502
63503 cat >>$CONFIG_STATUS <<\_ACEOF
63504 # If no file are specified by the user, then we need to provide default
63505 # value.  By we need to know if files were specified by the user.
63506 ac_need_defaults=:
63507 while test $# != 0
63508 do
63509   case $1 in
63510   --*=*)
63511     ac_option=`expr "x$1" : 'x\([^=]*\)='`
63512     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
63513     ac_shift=:
63514     ;;
63515   -*)
63516     ac_option=$1
63517     ac_optarg=$2
63518     ac_shift=shift
63519     ;;
63520   *) # This is not an option, so the user has probably given explicit
63521      # arguments.
63522      ac_option=$1
63523      ac_need_defaults=false;;
63524   esac
63525
63526   case $ac_option in
63527   # Handling of the options.
63528 _ACEOF
63529 cat >>$CONFIG_STATUS <<\_ACEOF
63530   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
63531     ac_cs_recheck=: ;;
63532   --version | --vers* | -V )
63533     echo "$ac_cs_version"; exit 0 ;;
63534   --he | --h)
63535     # Conflict between --help and --header
63536     { { echo "$as_me:$LINENO: error: ambiguous option: $1
63537 Try \`$0 --help' for more information." >&5
63538 echo "$as_me: error: ambiguous option: $1
63539 Try \`$0 --help' for more information." >&2;}
63540    { (exit 1); exit 1; }; };;
63541   --help | --hel | -h )
63542     echo "$ac_cs_usage"; exit 0 ;;
63543   --debug | --d* | -d )
63544     debug=: ;;
63545   --file | --fil | --fi | --f )
63546     $ac_shift
63547     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
63548     ac_need_defaults=false;;
63549   --header | --heade | --head | --hea )
63550     $ac_shift
63551     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
63552     ac_need_defaults=false;;
63553   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
63554   | -silent | --silent | --silen | --sile | --sil | --si | --s)
63555     ac_cs_silent=: ;;
63556
63557   # This is an error.
63558   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
63559 Try \`$0 --help' for more information." >&5
63560 echo "$as_me: error: unrecognized option: $1
63561 Try \`$0 --help' for more information." >&2;}
63562    { (exit 1); exit 1; }; } ;;
63563
63564   *) ac_config_targets="$ac_config_targets $1" ;;
63565
63566   esac
63567   shift
63568 done
63569
63570 ac_configure_extra_args=
63571
63572 if $ac_cs_silent; then
63573   exec 6>/dev/null
63574   ac_configure_extra_args="$ac_configure_extra_args --silent"
63575 fi
63576
63577 _ACEOF
63578 cat >>$CONFIG_STATUS <<_ACEOF
63579 if \$ac_cs_recheck; then
63580   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
63581   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
63582 fi
63583
63584 _ACEOF
63585
63586 cat >>$CONFIG_STATUS <<_ACEOF
63587 #
63588 # INIT-COMMANDS section.
63589 #
63590
63591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
63592 # variables for create stdint.h replacement
63593 PACKAGE="$PACKAGE"
63594 VERSION="$VERSION"
63595 ac_stdint_h="$ac_stdint_h"
63596 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
63597 ac_cv_stdint_message="$ac_cv_stdint_message"
63598 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
63599 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
63600 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
63601 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
63602 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
63603 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
63604 ac_cv_char_data_model="$ac_cv_char_data_model"
63605 ac_cv_long_data_model="$ac_cv_long_data_model"
63606 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
63607 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
63608 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
63609
63610
63611 _ACEOF
63612
63613
63614
63615 cat >>$CONFIG_STATUS <<\_ACEOF
63616 for ac_config_target in $ac_config_targets
63617 do
63618   case "$ac_config_target" in
63619   # Handling of arguments.
63620   "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
63621   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
63622   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
63623   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
63624   "amandad-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
63625   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
63626   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
63627   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
63628   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
63629   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
63630   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
63631   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
63632   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
63633   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
63634   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
63635   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
63636   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
63637   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
63638   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
63639   "changer-src/chg-lib.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-lib.sh" ;;
63640   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
63641   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
63642   "dumper-src/amgtar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/amgtar.pl" ;;
63643   "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
63644   "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
63645   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
63646   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
63647   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
63648   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
63649   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
63650   "example/amanda-client.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
63651   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
63652   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
63653   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
63654   "oldrecover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
63655   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
63656   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
63657   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
63658   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
63659   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
63660   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
63661   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
63662   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
63663   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
63664   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
63665   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
63666   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
63667   "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
63668   "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
63669   "server-src/amcrypt-ossl.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl.sh" ;;
63670   "server-src/amcrypt-ossl-asym.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl-asym.sh" ;;
63671   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
63672   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
63673   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
63674   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
63675   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
63676   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
63677   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
63678 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
63679    { (exit 1); exit 1; }; };;
63680   esac
63681 done
63682
63683 # If the user did not use the arguments to specify the items to instantiate,
63684 # then the envvar interface is used.  Set only those that are not.
63685 # We use the long form for the default assignment because of an extremely
63686 # bizarre bug on SunOS 4.1.3.
63687 if $ac_need_defaults; then
63688   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
63689   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
63690   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
63691 fi
63692
63693 # Have a temporary directory for convenience.  Make it in the build tree
63694 # simply because there is no reason to put it here, and in addition,
63695 # creating and moving files from /tmp can sometimes cause problems.
63696 # Create a temporary directory, and hook for its removal unless debugging.
63697 $debug ||
63698 {
63699   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
63700   trap '{ (exit 1); exit 1; }' 1 2 13 15
63701 }
63702
63703 # Create a (secure) tmp directory for tmp files.
63704
63705 {
63706   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
63707   test -n "$tmp" && test -d "$tmp"
63708 }  ||
63709 {
63710   tmp=./confstat$$-$RANDOM
63711   (umask 077 && mkdir $tmp)
63712 } ||
63713 {
63714    echo "$me: cannot create a temporary directory in ." >&2
63715    { (exit 1); exit 1; }
63716 }
63717
63718 _ACEOF
63719
63720 cat >>$CONFIG_STATUS <<_ACEOF
63721
63722 #
63723 # CONFIG_FILES section.
63724 #
63725
63726 # No need to generate the scripts if there are no CONFIG_FILES.
63727 # This happens for instance when ./config.status config.h
63728 if test -n "\$CONFIG_FILES"; then
63729   # Protect against being on the right side of a sed subst in config.status.
63730   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
63731    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
63732 s,@SHELL@,$SHELL,;t t
63733 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
63734 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
63735 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
63736 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
63737 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
63738 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
63739 s,@exec_prefix@,$exec_prefix,;t t
63740 s,@prefix@,$prefix,;t t
63741 s,@program_transform_name@,$program_transform_name,;t t
63742 s,@bindir@,$bindir,;t t
63743 s,@sbindir@,$sbindir,;t t
63744 s,@libexecdir@,$libexecdir,;t t
63745 s,@datadir@,$datadir,;t t
63746 s,@sysconfdir@,$sysconfdir,;t t
63747 s,@sharedstatedir@,$sharedstatedir,;t t
63748 s,@localstatedir@,$localstatedir,;t t
63749 s,@libdir@,$libdir,;t t
63750 s,@includedir@,$includedir,;t t
63751 s,@oldincludedir@,$oldincludedir,;t t
63752 s,@infodir@,$infodir,;t t
63753 s,@mandir@,$mandir,;t t
63754 s,@build_alias@,$build_alias,;t t
63755 s,@host_alias@,$host_alias,;t t
63756 s,@target_alias@,$target_alias,;t t
63757 s,@DEFS@,$DEFS,;t t
63758 s,@ECHO_C@,$ECHO_C,;t t
63759 s,@ECHO_N@,$ECHO_N,;t t
63760 s,@ECHO_T@,$ECHO_T,;t t
63761 s,@LIBS@,$LIBS,;t t
63762 s,@build@,$build,;t t
63763 s,@build_cpu@,$build_cpu,;t t
63764 s,@build_vendor@,$build_vendor,;t t
63765 s,@build_os@,$build_os,;t t
63766 s,@host@,$host,;t t
63767 s,@host_cpu@,$host_cpu,;t t
63768 s,@host_vendor@,$host_vendor,;t t
63769 s,@host_os@,$host_os,;t t
63770 s,@target@,$target,;t t
63771 s,@target_cpu@,$target_cpu,;t t
63772 s,@target_vendor@,$target_vendor,;t t
63773 s,@target_os@,$target_os,;t t
63774 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
63775 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
63776 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
63777 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
63778 s,@CYGPATH_W@,$CYGPATH_W,;t t
63779 s,@PACKAGE@,$PACKAGE,;t t
63780 s,@VERSION@,$VERSION,;t t
63781 s,@ACLOCAL@,$ACLOCAL,;t t
63782 s,@AUTOCONF@,$AUTOCONF,;t t
63783 s,@AUTOMAKE@,$AUTOMAKE,;t t
63784 s,@AUTOHEADER@,$AUTOHEADER,;t t
63785 s,@MAKEINFO@,$MAKEINFO,;t t
63786 s,@install_sh@,$install_sh,;t t
63787 s,@STRIP@,$STRIP,;t t
63788 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
63789 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
63790 s,@mkdir_p@,$mkdir_p,;t t
63791 s,@AWK@,$AWK,;t t
63792 s,@SET_MAKE@,$SET_MAKE,;t t
63793 s,@am__leading_dot@,$am__leading_dot,;t t
63794 s,@AMTAR@,$AMTAR,;t t
63795 s,@am__tar@,$am__tar,;t t
63796 s,@am__untar@,$am__untar,;t t
63797 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
63798 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
63799 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
63800 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
63801 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
63802 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
63803 s,@CC@,$CC,;t t
63804 s,@CFLAGS@,$CFLAGS,;t t
63805 s,@LDFLAGS@,$LDFLAGS,;t t
63806 s,@CPPFLAGS@,$CPPFLAGS,;t t
63807 s,@ac_ct_CC@,$ac_ct_CC,;t t
63808 s,@EXEEXT@,$EXEEXT,;t t
63809 s,@OBJEXT@,$OBJEXT,;t t
63810 s,@DEPDIR@,$DEPDIR,;t t
63811 s,@am__include@,$am__include,;t t
63812 s,@am__quote@,$am__quote,;t t
63813 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
63814 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
63815 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
63816 s,@CCDEPMODE@,$CCDEPMODE,;t t
63817 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
63818 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
63819 s,@RANLIB@,$RANLIB,;t t
63820 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
63821 s,@CPP@,$CPP,;t t
63822 s,@EGREP@,$EGREP,;t t
63823 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
63824 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
63825 s,@ALLOCA@,$ALLOCA,;t t
63826 s,@ALLOCA_H@,$ALLOCA_H,;t t
63827 s,@ARPA_INET_H@,$ARPA_INET_H,;t t
63828 s,@SYS_SOCKET_H@,$SYS_SOCKET_H,;t t
63829 s,@LIBPTH@,$LIBPTH,;t t
63830 s,@LTLIBPTH@,$LTLIBPTH,;t t
63831 s,@LIBPTH_PREFIX@,$LIBPTH_PREFIX,;t t
63832 s,@LIBTHREAD@,$LIBTHREAD,;t t
63833 s,@LTLIBTHREAD@,$LTLIBTHREAD,;t t
63834 s,@LIBMULTITHREAD@,$LIBMULTITHREAD,;t t
63835 s,@LTLIBMULTITHREAD@,$LTLIBMULTITHREAD,;t t
63836 s,@NETINET_IN_H@,$NETINET_IN_H,;t t
63837 s,@STDBOOL_H@,$STDBOOL_H,;t t
63838 s,@HAVE__BOOL@,$HAVE__BOOL,;t t
63839 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
63840 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
63841 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
63842 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
63843 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
63844 s,@HAVE_DECL_STRNCASECMP@,$HAVE_DECL_STRNCASECMP,;t t
63845 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
63846 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
63847 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
63848 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
63849 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
63850 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
63851 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
63852 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
63853 s,@REPLACE_STRCASECMP@,$REPLACE_STRCASECMP,;t t
63854 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
63855 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
63856 s,@ABSOLUTE_STRING_H@,$ABSOLUTE_STRING_H,;t t
63857 s,@MKDIR_P@,$MKDIR_P,;t t
63858 s,@EOVERFLOW@,$EOVERFLOW,;t t
63859 s,@CFLAG_VISIBILITY@,$CFLAG_VISIBILITY,;t t
63860 s,@HAVE_VISIBILITY@,$HAVE_VISIBILITY,;t t
63861 s,@GREP@,$GREP,;t t
63862 s,@AMLINT@,$AMLINT,;t t
63863 s,@AMLINTFLAGS@,$AMLINTFLAGS,;t t
63864 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
63865 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
63866 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
63867 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
63868 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
63869 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
63870 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
63871 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
63872 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
63873 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
63874 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
63875 s,@EXAMPLE_TAPEDEV@,$EXAMPLE_TAPEDEV,;t t
63876 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
63877 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
63878 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
63879 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
63880 s,@SSH@,$SSH,;t t
63881 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
63882 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
63883 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
63884 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
63885 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
63886 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
63887 s,@AR@,$AR,;t t
63888 s,@YACC@,$YACC,;t t
63889 s,@CAT@,$CAT,;t t
63890 s,@COMPRESS@,$COMPRESS,;t t
63891 s,@DD@,$DD,;t t
63892 s,@GETCONF@,$GETCONF,;t t
63893 s,@GNUPLOT@,$GNUPLOT,;t t
63894 s,@GNUTAR@,$GNUTAR,;t t
63895 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
63896 s,@GZIP@,$GZIP,;t t
63897 s,@SORT@,$SORT,;t t
63898 s,@MAILER@,$MAILER,;t t
63899 s,@MT@,$MT,;t t
63900 s,@CHIO@,$CHIO,;t t
63901 s,@CHS@,$CHS,;t t
63902 s,@MTX@,$MTX,;t t
63903 s,@MCUTIL@,$MCUTIL,;t t
63904 s,@PRINT@,$PRINT,;t t
63905 s,@PCAT@,$PCAT,;t t
63906 s,@PERL@,$PERL,;t t
63907 s,@DUMP@,$DUMP,;t t
63908 s,@RESTORE@,$RESTORE,;t t
63909 s,@XFSDUMP@,$XFSDUMP,;t t
63910 s,@XFSRESTORE@,$XFSRESTORE,;t t
63911 s,@VXDUMP@,$VXDUMP,;t t
63912 s,@VXRESTORE@,$VXRESTORE,;t t
63913 s,@VDUMP@,$VDUMP,;t t
63914 s,@VRESTORE@,$VRESTORE,;t t
63915 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
63916 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
63917 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
63918 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
63919 s,@LL_FMT@,$LL_FMT,;t t
63920 s,@LL_RFMT@,$LL_RFMT,;t t
63921 s,@LN_S@,$LN_S,;t t
63922 s,@ECHO@,$ECHO,;t t
63923 s,@ac_ct_AR@,$ac_ct_AR,;t t
63924 s,@CXX@,$CXX,;t t
63925 s,@CXXFLAGS@,$CXXFLAGS,;t t
63926 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
63927 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
63928 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
63929 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
63930 s,@CXXCPP@,$CXXCPP,;t t
63931 s,@F77@,$F77,;t t
63932 s,@FFLAGS@,$FFLAGS,;t t
63933 s,@ac_ct_F77@,$ac_ct_F77,;t t
63934 s,@LIBTOOL@,$LIBTOOL,;t t
63935 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
63936 s,@LEX@,$LEX,;t t
63937 s,@LEXLIB@,$LEXLIB,;t t
63938 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
63939 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
63940 s,@DB_EXT@,$DB_EXT,;t t
63941 s,@ac_n@,$ac_n,;t t
63942 s,@ac_c@,$ac_c,;t t
63943 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
63944 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
63945 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
63946 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
63947 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
63948 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
63949 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
63950 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
63951 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
63952 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
63953 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
63954 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
63955 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
63956 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
63957 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
63958 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
63959 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
63960 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
63961 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
63962 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
63963 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
63964 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
63965 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
63966 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
63967 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63968 s,@LTALLOCA@,$LTALLOCA,;t t
63969 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
63970 s,@XSLTPROC_FLAGS@,$XSLTPROC_FLAGS,;t t
63971 s,@XSLTPROC@,$XSLTPROC,;t t
63972 s,@ENABLE_MANPAGE_BUILD_TRUE@,$ENABLE_MANPAGE_BUILD_TRUE,;t t
63973 s,@ENABLE_MANPAGE_BUILD_FALSE@,$ENABLE_MANPAGE_BUILD_FALSE,;t t
63974 s,@GCC_COMPILER_TRUE@,$GCC_COMPILER_TRUE,;t t
63975 s,@GCC_COMPILER_FALSE@,$GCC_COMPILER_FALSE,;t t
63976 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
63977 s,@LIBOBJS@,$LIBOBJS,;t t
63978 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
63979 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
63980 CEOF
63981
63982 _ACEOF
63983
63984   cat >>$CONFIG_STATUS <<\_ACEOF
63985   # Split the substitutions into bite-sized pieces for seds with
63986   # small command number limits, like on Digital OSF/1 and HP-UX.
63987   ac_max_sed_lines=48
63988   ac_sed_frag=1 # Number of current file.
63989   ac_beg=1 # First line for current file.
63990   ac_end=$ac_max_sed_lines # Line after last line for current file.
63991   ac_more_lines=:
63992   ac_sed_cmds=
63993   while $ac_more_lines; do
63994     if test $ac_beg -gt 1; then
63995       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63996     else
63997       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
63998     fi
63999     if test ! -s $tmp/subs.frag; then
64000       ac_more_lines=false
64001     else
64002       # The purpose of the label and of the branching condition is to
64003       # speed up the sed processing (if there are no `@' at all, there
64004       # is no need to browse any of the substitutions).
64005       # These are the two extra sed commands mentioned above.
64006       (echo ':t
64007   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
64008       if test -z "$ac_sed_cmds"; then
64009         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
64010       else
64011         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
64012       fi
64013       ac_sed_frag=`expr $ac_sed_frag + 1`
64014       ac_beg=$ac_end
64015       ac_end=`expr $ac_end + $ac_max_sed_lines`
64016     fi
64017   done
64018   if test -z "$ac_sed_cmds"; then
64019     ac_sed_cmds=cat
64020   fi
64021 fi # test -n "$CONFIG_FILES"
64022
64023 _ACEOF
64024 cat >>$CONFIG_STATUS <<\_ACEOF
64025 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
64026   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
64027   case $ac_file in
64028   - | *:- | *:-:* ) # input from stdin
64029         cat >$tmp/stdin
64030         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64031         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64032   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64033         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64034   * )   ac_file_in=$ac_file.in ;;
64035   esac
64036
64037   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
64038   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
64039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64040          X"$ac_file" : 'X\(//\)[^/]' \| \
64041          X"$ac_file" : 'X\(//\)$' \| \
64042          X"$ac_file" : 'X\(/\)' \| \
64043          .     : '\(.\)' 2>/dev/null ||
64044 echo X"$ac_file" |
64045     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64046           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64047           /^X\(\/\/\)$/{ s//\1/; q; }
64048           /^X\(\/\).*/{ s//\1/; q; }
64049           s/.*/./; q'`
64050   { if $as_mkdir_p; then
64051     mkdir -p "$ac_dir"
64052   else
64053     as_dir="$ac_dir"
64054     as_dirs=
64055     while test ! -d "$as_dir"; do
64056       as_dirs="$as_dir $as_dirs"
64057       as_dir=`(dirname "$as_dir") 2>/dev/null ||
64058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64059          X"$as_dir" : 'X\(//\)[^/]' \| \
64060          X"$as_dir" : 'X\(//\)$' \| \
64061          X"$as_dir" : 'X\(/\)' \| \
64062          .     : '\(.\)' 2>/dev/null ||
64063 echo X"$as_dir" |
64064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64065           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64066           /^X\(\/\/\)$/{ s//\1/; q; }
64067           /^X\(\/\).*/{ s//\1/; q; }
64068           s/.*/./; q'`
64069     done
64070     test ! -n "$as_dirs" || mkdir $as_dirs
64071   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
64072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
64073    { (exit 1); exit 1; }; }; }
64074
64075   ac_builddir=.
64076
64077 if test "$ac_dir" != .; then
64078   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64079   # A "../" for each directory in $ac_dir_suffix.
64080   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
64081 else
64082   ac_dir_suffix= ac_top_builddir=
64083 fi
64084
64085 case $srcdir in
64086   .)  # No --srcdir option.  We are building in place.
64087     ac_srcdir=.
64088     if test -z "$ac_top_builddir"; then
64089        ac_top_srcdir=.
64090     else
64091        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
64092     fi ;;
64093   [\\/]* | ?:[\\/]* )  # Absolute path.
64094     ac_srcdir=$srcdir$ac_dir_suffix;
64095     ac_top_srcdir=$srcdir ;;
64096   *) # Relative path.
64097     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
64098     ac_top_srcdir=$ac_top_builddir$srcdir ;;
64099 esac
64100
64101 # Do not use `cd foo && pwd` to compute absolute paths, because
64102 # the directories may not exist.
64103 case `pwd` in
64104 .) ac_abs_builddir="$ac_dir";;
64105 *)
64106   case "$ac_dir" in
64107   .) ac_abs_builddir=`pwd`;;
64108   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
64109   *) ac_abs_builddir=`pwd`/"$ac_dir";;
64110   esac;;
64111 esac
64112 case $ac_abs_builddir in
64113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
64114 *)
64115   case ${ac_top_builddir}. in
64116   .) ac_abs_top_builddir=$ac_abs_builddir;;
64117   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
64118   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
64119   esac;;
64120 esac
64121 case $ac_abs_builddir in
64122 .) ac_abs_srcdir=$ac_srcdir;;
64123 *)
64124   case $ac_srcdir in
64125   .) ac_abs_srcdir=$ac_abs_builddir;;
64126   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
64127   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
64128   esac;;
64129 esac
64130 case $ac_abs_builddir in
64131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
64132 *)
64133   case $ac_top_srcdir in
64134   .) ac_abs_top_srcdir=$ac_abs_builddir;;
64135   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
64136   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
64137   esac;;
64138 esac
64139
64140
64141   case $INSTALL in
64142   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64143   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
64144   esac
64145
64146   if test x"$ac_file" != x-; then
64147     { echo "$as_me:$LINENO: creating $ac_file" >&5
64148 echo "$as_me: creating $ac_file" >&6;}
64149     rm -f "$ac_file"
64150   fi
64151   # Let's still pretend it is `configure' which instantiates (i.e., don't
64152   # use $as_me), people would be surprised to read:
64153   #    /* config.h.  Generated by config.status.  */
64154   if test x"$ac_file" = x-; then
64155     configure_input=
64156   else
64157     configure_input="$ac_file.  "
64158   fi
64159   configure_input=$configure_input"Generated from `echo $ac_file_in |
64160                                      sed 's,.*/,,'` by configure."
64161
64162   # First look for the input files in the build tree, otherwise in the
64163   # src tree.
64164   ac_file_inputs=`IFS=:
64165     for f in $ac_file_in; do
64166       case $f in
64167       -) echo $tmp/stdin ;;
64168       [\\/$]*)
64169          # Absolute (can't be DOS-style, as IFS=:)
64170          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64171 echo "$as_me: error: cannot find input file: $f" >&2;}
64172    { (exit 1); exit 1; }; }
64173          echo "$f";;
64174       *) # Relative
64175          if test -f "$f"; then
64176            # Build tree
64177            echo "$f"
64178          elif test -f "$srcdir/$f"; then
64179            # Source tree
64180            echo "$srcdir/$f"
64181          else
64182            # /dev/null tree
64183            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64184 echo "$as_me: error: cannot find input file: $f" >&2;}
64185    { (exit 1); exit 1; }; }
64186          fi;;
64187       esac
64188     done` || { (exit 1); exit 1; }
64189 _ACEOF
64190 cat >>$CONFIG_STATUS <<_ACEOF
64191   sed "$ac_vpsub
64192 $extrasub
64193 _ACEOF
64194 cat >>$CONFIG_STATUS <<\_ACEOF
64195 :t
64196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64197 s,@configure_input@,$configure_input,;t t
64198 s,@srcdir@,$ac_srcdir,;t t
64199 s,@abs_srcdir@,$ac_abs_srcdir,;t t
64200 s,@top_srcdir@,$ac_top_srcdir,;t t
64201 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
64202 s,@builddir@,$ac_builddir,;t t
64203 s,@abs_builddir@,$ac_abs_builddir,;t t
64204 s,@top_builddir@,$ac_top_builddir,;t t
64205 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
64206 s,@INSTALL@,$ac_INSTALL,;t t
64207 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
64208   rm -f $tmp/stdin
64209   if test x"$ac_file" != x-; then
64210     mv $tmp/out $ac_file
64211   else
64212     cat $tmp/out
64213     rm -f $tmp/out
64214   fi
64215
64216 done
64217 _ACEOF
64218 cat >>$CONFIG_STATUS <<\_ACEOF
64219
64220 #
64221 # CONFIG_HEADER section.
64222 #
64223
64224 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
64225 # NAME is the cpp macro being defined and VALUE is the value it is being given.
64226 #
64227 # ac_d sets the value in "#define NAME VALUE" lines.
64228 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
64229 ac_dB='[         ].*$,\1#\2'
64230 ac_dC=' '
64231 ac_dD=',;t'
64232 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
64233 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
64234 ac_uB='$,\1#\2define\3'
64235 ac_uC=' '
64236 ac_uD=',;t'
64237
64238 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
64239   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
64240   case $ac_file in
64241   - | *:- | *:-:* ) # input from stdin
64242         cat >$tmp/stdin
64243         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64244         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64245   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
64246         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
64247   * )   ac_file_in=$ac_file.in ;;
64248   esac
64249
64250   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
64251 echo "$as_me: creating $ac_file" >&6;}
64252
64253   # First look for the input files in the build tree, otherwise in the
64254   # src tree.
64255   ac_file_inputs=`IFS=:
64256     for f in $ac_file_in; do
64257       case $f in
64258       -) echo $tmp/stdin ;;
64259       [\\/$]*)
64260          # Absolute (can't be DOS-style, as IFS=:)
64261          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64262 echo "$as_me: error: cannot find input file: $f" >&2;}
64263    { (exit 1); exit 1; }; }
64264          # Do quote $f, to prevent DOS paths from being IFS'd.
64265          echo "$f";;
64266       *) # Relative
64267          if test -f "$f"; then
64268            # Build tree
64269            echo "$f"
64270          elif test -f "$srcdir/$f"; then
64271            # Source tree
64272            echo "$srcdir/$f"
64273          else
64274            # /dev/null tree
64275            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
64276 echo "$as_me: error: cannot find input file: $f" >&2;}
64277    { (exit 1); exit 1; }; }
64278          fi;;
64279       esac
64280     done` || { (exit 1); exit 1; }
64281   # Remove the trailing spaces.
64282   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
64283
64284 _ACEOF
64285
64286 # Transform confdefs.h into two sed scripts, `conftest.defines' and
64287 # `conftest.undefs', that substitutes the proper values into
64288 # config.h.in to produce config.h.  The first handles `#define'
64289 # templates, and the second `#undef' templates.
64290 # And first: Protect against being on the right side of a sed subst in
64291 # config.status.  Protect against being in an unquoted here document
64292 # in config.status.
64293 rm -f conftest.defines conftest.undefs
64294 # Using a here document instead of a string reduces the quoting nightmare.
64295 # Putting comments in sed scripts is not portable.
64296 #
64297 # `end' is used to avoid that the second main sed command (meant for
64298 # 0-ary CPP macros) applies to n-ary macro definitions.
64299 # See the Autoconf documentation for `clear'.
64300 cat >confdef2sed.sed <<\_ACEOF
64301 s/[\\&,]/\\&/g
64302 s,[\\$`],\\&,g
64303 t clear
64304 : clear
64305 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
64306 t end
64307 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
64308 : end
64309 _ACEOF
64310 # If some macros were called several times there might be several times
64311 # the same #defines, which is useless.  Nevertheless, we may not want to
64312 # sort them, since we want the *last* AC-DEFINE to be honored.
64313 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
64314 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
64315 rm -f confdef2sed.sed
64316
64317 # This sed command replaces #undef with comments.  This is necessary, for
64318 # example, in the case of _POSIX_SOURCE, which is predefined and required
64319 # on some systems where configure will not decide to define it.
64320 cat >>conftest.undefs <<\_ACEOF
64321 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
64322 _ACEOF
64323
64324 # Break up conftest.defines because some shells have a limit on the size
64325 # of here documents, and old seds have small limits too (100 cmds).
64326 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
64327 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
64328 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
64329 echo '  :' >>$CONFIG_STATUS
64330 rm -f conftest.tail
64331 while grep . conftest.defines >/dev/null
64332 do
64333   # Write a limited-size here document to $tmp/defines.sed.
64334   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
64335   # Speed up: don't consider the non `#define' lines.
64336   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
64337   # Work around the forget-to-reset-the-flag bug.
64338   echo 't clr' >>$CONFIG_STATUS
64339   echo ': clr' >>$CONFIG_STATUS
64340   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
64341   echo 'CEOF
64342   sed -f $tmp/defines.sed $tmp/in >$tmp/out
64343   rm -f $tmp/in
64344   mv $tmp/out $tmp/in
64345 ' >>$CONFIG_STATUS
64346   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
64347   rm -f conftest.defines
64348   mv conftest.tail conftest.defines
64349 done
64350 rm -f conftest.defines
64351 echo '  fi # grep' >>$CONFIG_STATUS
64352 echo >>$CONFIG_STATUS
64353
64354 # Break up conftest.undefs because some shells have a limit on the size
64355 # of here documents, and old seds have small limits too (100 cmds).
64356 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
64357 rm -f conftest.tail
64358 while grep . conftest.undefs >/dev/null
64359 do
64360   # Write a limited-size here document to $tmp/undefs.sed.
64361   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
64362   # Speed up: don't consider the non `#undef'
64363   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
64364   # Work around the forget-to-reset-the-flag bug.
64365   echo 't clr' >>$CONFIG_STATUS
64366   echo ': clr' >>$CONFIG_STATUS
64367   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
64368   echo 'CEOF
64369   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
64370   rm -f $tmp/in
64371   mv $tmp/out $tmp/in
64372 ' >>$CONFIG_STATUS
64373   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
64374   rm -f conftest.undefs
64375   mv conftest.tail conftest.undefs
64376 done
64377 rm -f conftest.undefs
64378
64379 cat >>$CONFIG_STATUS <<\_ACEOF
64380   # Let's still pretend it is `configure' which instantiates (i.e., don't
64381   # use $as_me), people would be surprised to read:
64382   #    /* config.h.  Generated by config.status.  */
64383   if test x"$ac_file" = x-; then
64384     echo "/* Generated by configure.  */" >$tmp/config.h
64385   else
64386     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
64387   fi
64388   cat $tmp/in >>$tmp/config.h
64389   rm -f $tmp/in
64390   if test x"$ac_file" != x-; then
64391     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
64392       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
64393 echo "$as_me: $ac_file is unchanged" >&6;}
64394     else
64395       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
64396 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64397          X"$ac_file" : 'X\(//\)[^/]' \| \
64398          X"$ac_file" : 'X\(//\)$' \| \
64399          X"$ac_file" : 'X\(/\)' \| \
64400          .     : '\(.\)' 2>/dev/null ||
64401 echo X"$ac_file" |
64402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64403           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64404           /^X\(\/\/\)$/{ s//\1/; q; }
64405           /^X\(\/\).*/{ s//\1/; q; }
64406           s/.*/./; q'`
64407       { if $as_mkdir_p; then
64408     mkdir -p "$ac_dir"
64409   else
64410     as_dir="$ac_dir"
64411     as_dirs=
64412     while test ! -d "$as_dir"; do
64413       as_dirs="$as_dir $as_dirs"
64414       as_dir=`(dirname "$as_dir") 2>/dev/null ||
64415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64416          X"$as_dir" : 'X\(//\)[^/]' \| \
64417          X"$as_dir" : 'X\(//\)$' \| \
64418          X"$as_dir" : 'X\(/\)' \| \
64419          .     : '\(.\)' 2>/dev/null ||
64420 echo X"$as_dir" |
64421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64422           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64423           /^X\(\/\/\)$/{ s//\1/; q; }
64424           /^X\(\/\).*/{ s//\1/; q; }
64425           s/.*/./; q'`
64426     done
64427     test ! -n "$as_dirs" || mkdir $as_dirs
64428   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
64429 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
64430    { (exit 1); exit 1; }; }; }
64431
64432       rm -f $ac_file
64433       mv $tmp/config.h $ac_file
64434     fi
64435   else
64436     cat $tmp/config.h
64437     rm -f $tmp/config.h
64438   fi
64439 # Compute $ac_file's index in $config_headers.
64440 _am_stamp_count=1
64441 for _am_header in $config_headers :; do
64442   case $_am_header in
64443     $ac_file | $ac_file:* )
64444       break ;;
64445     * )
64446       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
64447   esac
64448 done
64449 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
64450 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64451          X$ac_file : 'X\(//\)[^/]' \| \
64452          X$ac_file : 'X\(//\)$' \| \
64453          X$ac_file : 'X\(/\)' \| \
64454          .     : '\(.\)' 2>/dev/null ||
64455 echo X$ac_file |
64456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64457           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64458           /^X\(\/\/\)$/{ s//\1/; q; }
64459           /^X\(\/\).*/{ s//\1/; q; }
64460           s/.*/./; q'`/stamp-h$_am_stamp_count
64461 done
64462 _ACEOF
64463 cat >>$CONFIG_STATUS <<\_ACEOF
64464
64465 #
64466 # CONFIG_COMMANDS section.
64467 #
64468 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
64469   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
64470   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
64471   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
64472 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64473          X"$ac_dest" : 'X\(//\)[^/]' \| \
64474          X"$ac_dest" : 'X\(//\)$' \| \
64475          X"$ac_dest" : 'X\(/\)' \| \
64476          .     : '\(.\)' 2>/dev/null ||
64477 echo X"$ac_dest" |
64478     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64479           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64480           /^X\(\/\/\)$/{ s//\1/; q; }
64481           /^X\(\/\).*/{ s//\1/; q; }
64482           s/.*/./; q'`
64483   { if $as_mkdir_p; then
64484     mkdir -p "$ac_dir"
64485   else
64486     as_dir="$ac_dir"
64487     as_dirs=
64488     while test ! -d "$as_dir"; do
64489       as_dirs="$as_dir $as_dirs"
64490       as_dir=`(dirname "$as_dir") 2>/dev/null ||
64491 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64492          X"$as_dir" : 'X\(//\)[^/]' \| \
64493          X"$as_dir" : 'X\(//\)$' \| \
64494          X"$as_dir" : 'X\(/\)' \| \
64495          .     : '\(.\)' 2>/dev/null ||
64496 echo X"$as_dir" |
64497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64498           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64499           /^X\(\/\/\)$/{ s//\1/; q; }
64500           /^X\(\/\).*/{ s//\1/; q; }
64501           s/.*/./; q'`
64502     done
64503     test ! -n "$as_dirs" || mkdir $as_dirs
64504   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
64505 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
64506    { (exit 1); exit 1; }; }; }
64507
64508   ac_builddir=.
64509
64510 if test "$ac_dir" != .; then
64511   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64512   # A "../" for each directory in $ac_dir_suffix.
64513   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
64514 else
64515   ac_dir_suffix= ac_top_builddir=
64516 fi
64517
64518 case $srcdir in
64519   .)  # No --srcdir option.  We are building in place.
64520     ac_srcdir=.
64521     if test -z "$ac_top_builddir"; then
64522        ac_top_srcdir=.
64523     else
64524        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
64525     fi ;;
64526   [\\/]* | ?:[\\/]* )  # Absolute path.
64527     ac_srcdir=$srcdir$ac_dir_suffix;
64528     ac_top_srcdir=$srcdir ;;
64529   *) # Relative path.
64530     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
64531     ac_top_srcdir=$ac_top_builddir$srcdir ;;
64532 esac
64533
64534 # Do not use `cd foo && pwd` to compute absolute paths, because
64535 # the directories may not exist.
64536 case `pwd` in
64537 .) ac_abs_builddir="$ac_dir";;
64538 *)
64539   case "$ac_dir" in
64540   .) ac_abs_builddir=`pwd`;;
64541   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
64542   *) ac_abs_builddir=`pwd`/"$ac_dir";;
64543   esac;;
64544 esac
64545 case $ac_abs_builddir in
64546 .) ac_abs_top_builddir=${ac_top_builddir}.;;
64547 *)
64548   case ${ac_top_builddir}. in
64549   .) ac_abs_top_builddir=$ac_abs_builddir;;
64550   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
64551   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
64552   esac;;
64553 esac
64554 case $ac_abs_builddir in
64555 .) ac_abs_srcdir=$ac_srcdir;;
64556 *)
64557   case $ac_srcdir in
64558   .) ac_abs_srcdir=$ac_abs_builddir;;
64559   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
64560   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
64561   esac;;
64562 esac
64563 case $ac_abs_builddir in
64564 .) ac_abs_top_srcdir=$ac_top_srcdir;;
64565 *)
64566   case $ac_top_srcdir in
64567   .) ac_abs_top_srcdir=$ac_abs_builddir;;
64568   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
64569   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
64570   esac;;
64571 esac
64572
64573
64574   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
64575 echo "$as_me: executing $ac_dest commands" >&6;}
64576   case $ac_dest in
64577     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
64578   # Strip MF so we end up with the name of the file.
64579   mf=`echo "$mf" | sed -e 's/:.*$//'`
64580   # Check whether this is an Automake generated Makefile or not.
64581   # We used to match only the files named `Makefile.in', but
64582   # some people rename them; so instead we look at the file content.
64583   # Grep'ing the first line is not enough: some people post-process
64584   # each Makefile.in and add a new line on top of each file to say so.
64585   # So let's grep whole file.
64586   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
64587     dirpart=`(dirname "$mf") 2>/dev/null ||
64588 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64589          X"$mf" : 'X\(//\)[^/]' \| \
64590          X"$mf" : 'X\(//\)$' \| \
64591          X"$mf" : 'X\(/\)' \| \
64592          .     : '\(.\)' 2>/dev/null ||
64593 echo X"$mf" |
64594     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64595           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64596           /^X\(\/\/\)$/{ s//\1/; q; }
64597           /^X\(\/\).*/{ s//\1/; q; }
64598           s/.*/./; q'`
64599   else
64600     continue
64601   fi
64602   # Extract the definition of DEPDIR, am__include, and am__quote
64603   # from the Makefile without running `make'.
64604   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
64605   test -z "$DEPDIR" && continue
64606   am__include=`sed -n 's/^am__include = //p' < "$mf"`
64607   test -z "am__include" && continue
64608   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
64609   # When using ansi2knr, U may be empty or an underscore; expand it
64610   U=`sed -n 's/^U = //p' < "$mf"`
64611   # Find all dependency output files, they are included files with
64612   # $(DEPDIR) in their names.  We invoke sed twice because it is the
64613   # simplest approach to changing $(DEPDIR) to its actual value in the
64614   # expansion.
64615   for file in `sed -n "
64616     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
64617        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
64618     # Make sure the directory exists.
64619     test -f "$dirpart/$file" && continue
64620     fdir=`(dirname "$file") 2>/dev/null ||
64621 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64622          X"$file" : 'X\(//\)[^/]' \| \
64623          X"$file" : 'X\(//\)$' \| \
64624          X"$file" : 'X\(/\)' \| \
64625          .     : '\(.\)' 2>/dev/null ||
64626 echo X"$file" |
64627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64629           /^X\(\/\/\)$/{ s//\1/; q; }
64630           /^X\(\/\).*/{ s//\1/; q; }
64631           s/.*/./; q'`
64632     { if $as_mkdir_p; then
64633     mkdir -p $dirpart/$fdir
64634   else
64635     as_dir=$dirpart/$fdir
64636     as_dirs=
64637     while test ! -d "$as_dir"; do
64638       as_dirs="$as_dir $as_dirs"
64639       as_dir=`(dirname "$as_dir") 2>/dev/null ||
64640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
64641          X"$as_dir" : 'X\(//\)[^/]' \| \
64642          X"$as_dir" : 'X\(//\)$' \| \
64643          X"$as_dir" : 'X\(/\)' \| \
64644          .     : '\(.\)' 2>/dev/null ||
64645 echo X"$as_dir" |
64646     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
64647           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
64648           /^X\(\/\/\)$/{ s//\1/; q; }
64649           /^X\(\/\).*/{ s//\1/; q; }
64650           s/.*/./; q'`
64651     done
64652     test ! -n "$as_dirs" || mkdir $as_dirs
64653   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
64654 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
64655    { (exit 1); exit 1; }; }; }
64656
64657     # echo "creating $dirpart/$file"
64658     echo '# dummy' > "$dirpart/$file"
64659   done
64660 done
64661  ;;
64662     $ac_stdint_h )
64663 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
64664 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
64665 ac_stdint=$tmp/_stdint.h
64666
64667 echo "#ifndef" $_ac_stdint_h >$ac_stdint
64668 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
64669 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
64670 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
64671 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
64672 if test "_$ac_cv_header_stdint_t" != "_" ; then
64673 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
64674 echo "#include <stdint.h>" >>$ac_stdint
64675 echo "#endif" >>$ac_stdint
64676 echo "#endif" >>$ac_stdint
64677 else
64678
64679 cat >>$ac_stdint <<STDINT_EOF
64680
64681 /* ................... shortcircuit part ........................... */
64682
64683 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
64684 #include <stdint.h>
64685 #else
64686 #include <stddef.h>
64687
64688 /* .................... configured part ............................ */
64689
64690 STDINT_EOF
64691
64692 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
64693 if test "_$ac_cv_header_stdint_x" != "_" ; then
64694   ac_header="$ac_cv_header_stdint_x"
64695   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
64696 else
64697   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
64698 fi
64699
64700 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
64701 if  test "_$ac_cv_header_stdint_o" != "_" ; then
64702   ac_header="$ac_cv_header_stdint_o"
64703   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
64704 else
64705   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
64706 fi
64707
64708 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
64709 if  test "_$ac_cv_header_stdint_u" != "_" ; then
64710   ac_header="$ac_cv_header_stdint_u"
64711   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
64712 else
64713   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
64714 fi
64715
64716 echo "" >>$ac_stdint
64717
64718 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
64719   echo "#include <$ac_header>" >>$ac_stdint
64720   echo "" >>$ac_stdint
64721 fi fi
64722
64723 echo "/* which 64bit typedef has been found */" >>$ac_stdint
64724 if test "$ac_cv_type_uint64_t" = "yes" ; then
64725 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
64726 else
64727 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
64728 fi
64729 if test "$ac_cv_type_u_int64_t" = "yes" ; then
64730 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
64731 else
64732 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
64733 fi
64734 echo "" >>$ac_stdint
64735
64736 echo "/* which type model has been detected */" >>$ac_stdint
64737 if test "_$ac_cv_char_data_model" != "_" ; then
64738 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
64739 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
64740 else
64741 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
64742 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
64743 fi
64744 echo "" >>$ac_stdint
64745
64746 echo "/* whether int_least types were detected */" >>$ac_stdint
64747 if test "$ac_cv_type_int_least32_t" = "yes"; then
64748 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
64749 else
64750 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
64751 fi
64752 echo "/* whether int_fast types were detected */" >>$ac_stdint
64753 if test "$ac_cv_type_int_fast32_t" = "yes"; then
64754 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
64755 else
64756 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
64757 fi
64758 echo "/* whether intmax_t type was detected */" >>$ac_stdint
64759 if test "$ac_cv_type_intmax_t" = "yes"; then
64760 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
64761 else
64762 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
64763 fi
64764 echo "" >>$ac_stdint
64765
64766   cat >>$ac_stdint <<STDINT_EOF
64767 /* .................... detections part ............................ */
64768
64769 /* whether we need to define bitspecific types from compiler base types */
64770 #ifndef _STDINT_HEADER_INTPTR
64771 #ifndef _STDINT_HEADER_UINT32
64772 #ifndef _STDINT_HEADER_U_INT32
64773 #define _STDINT_NEED_INT_MODEL_T
64774 #else
64775 #define _STDINT_HAVE_U_INT_TYPES
64776 #endif
64777 #endif
64778 #endif
64779
64780 #ifdef _STDINT_HAVE_U_INT_TYPES
64781 #undef _STDINT_NEED_INT_MODEL_T
64782 #endif
64783
64784 #ifdef  _STDINT_CHAR_MODEL
64785 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
64786 #ifndef _STDINT_BYTE_MODEL
64787 #define _STDINT_BYTE_MODEL 12
64788 #endif
64789 #endif
64790 #endif
64791
64792 #ifndef _STDINT_HAVE_INT_LEAST32_T
64793 #define _STDINT_NEED_INT_LEAST_T
64794 #endif
64795
64796 #ifndef _STDINT_HAVE_INT_FAST32_T
64797 #define _STDINT_NEED_INT_FAST_T
64798 #endif
64799
64800 #ifndef _STDINT_HEADER_INTPTR
64801 #define _STDINT_NEED_INTPTR_T
64802 #ifndef _STDINT_HAVE_INTMAX_T
64803 #define _STDINT_NEED_INTMAX_T
64804 #endif
64805 #endif
64806
64807
64808 /* .................... definition part ............................ */
64809
64810 /* some system headers have good uint64_t */
64811 #ifndef _HAVE_UINT64_T
64812 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
64813 #define _HAVE_UINT64_T
64814 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
64815 #define _HAVE_UINT64_T
64816 typedef u_int64_t uint64_t;
64817 #endif
64818 #endif
64819
64820 #ifndef _HAVE_UINT64_T
64821 /* .. here are some common heuristics using compiler runtime specifics */
64822 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
64823 #define _HAVE_UINT64_T
64824 #define _HAVE_LONGLONG_UINT64_T
64825 typedef long long int64_t;
64826 typedef unsigned long long uint64_t;
64827
64828 #elif !defined __STRICT_ANSI__
64829 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
64830 #define _HAVE_UINT64_T
64831 typedef __int64 int64_t;
64832 typedef unsigned __int64 uint64_t;
64833
64834 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
64835 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
64836 #if !defined _NO_LONGLONG
64837 #define _HAVE_UINT64_T
64838 #define _HAVE_LONGLONG_UINT64_T
64839 typedef long long int64_t;
64840 typedef unsigned long long uint64_t;
64841 #endif
64842
64843 #elif defined __alpha || (defined __mips && defined _ABIN32)
64844 #if !defined _NO_LONGLONG
64845 #define _HAVE_UINT64_T
64846 typedef long int64_t;
64847 typedef unsigned long uint64_t;
64848 #endif
64849   /* compiler/cpu type to define int64_t */
64850 #endif
64851 #endif
64852 #endif
64853
64854 #if defined _STDINT_HAVE_U_INT_TYPES
64855 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
64856 typedef u_int8_t uint8_t;
64857 typedef u_int16_t uint16_t;
64858 typedef u_int32_t uint32_t;
64859
64860 /* glibc compatibility */
64861 #ifndef __int8_t_defined
64862 #define __int8_t_defined
64863 #endif
64864 #endif
64865
64866 #ifdef _STDINT_NEED_INT_MODEL_T
64867 /* we must guess all the basic types. Apart from byte-adressable system, */
64868 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
64869 /* (btw, those nibble-addressable systems are way off, or so we assume) */
64870
64871
64872 #if defined _STDINT_BYTE_MODEL
64873 #if _STDINT_LONG_MODEL+0 == 242
64874 /* 2:4:2 =  IP16 = a normal 16-bit system                */
64875 typedef unsigned char   uint8_t;
64876 typedef unsigned short  uint16_t;
64877 typedef unsigned long   uint32_t;
64878 #ifndef __int8_t_defined
64879 #define __int8_t_defined
64880 typedef          char    int8_t;
64881 typedef          short   int16_t;
64882 typedef          long    int32_t;
64883 #endif
64884 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
64885 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
64886 /* 4:4:4 = ILP32 = a normal 32-bit system                */
64887 typedef unsigned char   uint8_t;
64888 typedef unsigned short  uint16_t;
64889 typedef unsigned int    uint32_t;
64890 #ifndef __int8_t_defined
64891 #define __int8_t_defined
64892 typedef          char    int8_t;
64893 typedef          short   int16_t;
64894 typedef          int     int32_t;
64895 #endif
64896 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
64897 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
64898 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
64899 typedef unsigned char   uint8_t;
64900 typedef unsigned short  uint16_t;
64901 typedef unsigned int    uint32_t;
64902 #ifndef __int8_t_defined
64903 #define __int8_t_defined
64904 typedef          char    int8_t;
64905 typedef          short   int16_t;
64906 typedef          int     int32_t;
64907 #endif
64908 /* this system has a "long" of 64bit */
64909 #ifndef _HAVE_UINT64_T
64910 #define _HAVE_UINT64_T
64911 typedef unsigned long   uint64_t;
64912 typedef          long    int64_t;
64913 #endif
64914 #elif _STDINT_LONG_MODEL+0 == 448
64915 /*      LLP64   a 64-bit system derived from a 32-bit system */
64916 typedef unsigned char   uint8_t;
64917 typedef unsigned short  uint16_t;
64918 typedef unsigned int    uint32_t;
64919 #ifndef __int8_t_defined
64920 #define __int8_t_defined
64921 typedef          char    int8_t;
64922 typedef          short   int16_t;
64923 typedef          int     int32_t;
64924 #endif
64925 /* assuming the system has a "long long" */
64926 #ifndef _HAVE_UINT64_T
64927 #define _HAVE_UINT64_T
64928 #define _HAVE_LONGLONG_UINT64_T
64929 typedef unsigned long long uint64_t;
64930 typedef          long long  int64_t;
64931 #endif
64932 #else
64933 #define _STDINT_NO_INT32_T
64934 #endif
64935 #else
64936 #define _STDINT_NO_INT8_T
64937 #define _STDINT_NO_INT32_T
64938 #endif
64939 #endif
64940
64941 /*
64942  * quote from SunOS-5.8 sys/inttypes.h:
64943  * Use at your own risk.  As of February 1996, the committee is squarely
64944  * behind the fixed sized types; the "least" and "fast" types are still being
64945  * discussed.  The probability that the "fast" types may be removed before
64946  * the standard is finalized is high enough that they are not currently
64947  * implemented.
64948  */
64949
64950 #if defined _STDINT_NEED_INT_LEAST_T
64951 typedef  int8_t    int_least8_t;
64952 typedef  int16_t   int_least16_t;
64953 typedef  int32_t   int_least32_t;
64954 #ifdef _HAVE_UINT64_T
64955 typedef  int64_t   int_least64_t;
64956 #endif
64957
64958 typedef uint8_t   uint_least8_t;
64959 typedef uint16_t  uint_least16_t;
64960 typedef uint32_t  uint_least32_t;
64961 #ifdef _HAVE_UINT64_T
64962 typedef uint64_t  uint_least64_t;
64963 #endif
64964   /* least types */
64965 #endif
64966
64967 #if defined _STDINT_NEED_INT_FAST_T
64968 typedef  int8_t    int_fast8_t;
64969 typedef  int       int_fast16_t;
64970 typedef  int32_t   int_fast32_t;
64971 #ifdef _HAVE_UINT64_T
64972 typedef  int64_t   int_fast64_t;
64973 #endif
64974
64975 typedef uint8_t   uint_fast8_t;
64976 typedef unsigned  uint_fast16_t;
64977 typedef uint32_t  uint_fast32_t;
64978 #ifdef _HAVE_UINT64_T
64979 typedef uint64_t  uint_fast64_t;
64980 #endif
64981   /* fast types */
64982 #endif
64983
64984 #ifdef _STDINT_NEED_INTMAX_T
64985 #ifdef _HAVE_UINT64_T
64986 typedef  int64_t       intmax_t;
64987 typedef uint64_t      uintmax_t;
64988 #else
64989 typedef          long  intmax_t;
64990 typedef unsigned long uintmax_t;
64991 #endif
64992 #endif
64993
64994 #ifdef _STDINT_NEED_INTPTR_T
64995 #ifndef __intptr_t_defined
64996 #define __intptr_t_defined
64997 /* we encourage using "long" to store pointer values, never use "int" ! */
64998 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
64999 typedef  unsinged int   uintptr_t;
65000 typedef           int    intptr_t;
65001 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
65002 typedef  unsigned long  uintptr_t;
65003 typedef           long   intptr_t;
65004 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
65005 typedef        uint64_t uintptr_t;
65006 typedef         int64_t  intptr_t;
65007 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
65008 typedef  unsigned long  uintptr_t;
65009 typedef           long   intptr_t;
65010 #endif
65011 #endif
65012 #endif
65013
65014 /* The ISO C99 standard specifies that in C++ implementations these
65015    should only be defined if explicitly requested.  */
65016 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
65017 #ifndef UINT32_C
65018
65019 /* Signed.  */
65020 # define INT8_C(c)      c
65021 # define INT16_C(c)     c
65022 # define INT32_C(c)     c
65023 # ifdef _HAVE_LONGLONG_UINT64_T
65024 #  define INT64_C(c)    c ## L
65025 # else
65026 #  define INT64_C(c)    c ## LL
65027 # endif
65028
65029 /* Unsigned.  */
65030 # define UINT8_C(c)     c ## U
65031 # define UINT16_C(c)    c ## U
65032 # define UINT32_C(c)    c ## U
65033 # ifdef _HAVE_LONGLONG_UINT64_T
65034 #  define UINT64_C(c)   c ## UL
65035 # else
65036 #  define UINT64_C(c)   c ## ULL
65037 # endif
65038
65039 /* Maximal type.  */
65040 # ifdef _HAVE_LONGLONG_UINT64_T
65041 #  define INTMAX_C(c)   c ## L
65042 #  define UINTMAX_C(c)  c ## UL
65043 # else
65044 #  define INTMAX_C(c)   c ## LL
65045 #  define UINTMAX_C(c)  c ## ULL
65046 # endif
65047
65048   /* literalnumbers */
65049 #endif
65050 #endif
65051
65052 /* These limits are merily those of a two complement byte-oriented system */
65053
65054 /* Minimum of signed integral types.  */
65055 # define INT8_MIN               (-128)
65056 # define INT16_MIN              (-32767-1)
65057 # define INT32_MIN              (-2147483647-1)
65058 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
65059 /* Maximum of signed integral types.  */
65060 # define INT8_MAX               (127)
65061 # define INT16_MAX              (32767)
65062 # define INT32_MAX              (2147483647)
65063 # define INT64_MAX              (__INT64_C(9223372036854775807))
65064
65065 /* Maximum of unsigned integral types.  */
65066 # define UINT8_MAX              (255)
65067 # define UINT16_MAX             (65535)
65068 # define UINT32_MAX             (4294967295U)
65069 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
65070
65071 /* Minimum of signed integral types having a minimum size.  */
65072 # define INT_LEAST8_MIN         INT8_MIN
65073 # define INT_LEAST16_MIN        INT16_MIN
65074 # define INT_LEAST32_MIN        INT32_MIN
65075 # define INT_LEAST64_MIN        INT64_MIN
65076 /* Maximum of signed integral types having a minimum size.  */
65077 # define INT_LEAST8_MAX         INT8_MAX
65078 # define INT_LEAST16_MAX        INT16_MAX
65079 # define INT_LEAST32_MAX        INT32_MAX
65080 # define INT_LEAST64_MAX        INT64_MAX
65081
65082 /* Maximum of unsigned integral types having a minimum size.  */
65083 # define UINT_LEAST8_MAX        UINT8_MAX
65084 # define UINT_LEAST16_MAX       UINT16_MAX
65085 # define UINT_LEAST32_MAX       UINT32_MAX
65086 # define UINT_LEAST64_MAX       UINT64_MAX
65087
65088   /* shortcircuit*/
65089 #endif
65090   /* once */
65091 #endif
65092 #endif
65093 STDINT_EOF
65094 fi
65095     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
65096       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
65097 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
65098     else
65099       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
65100 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65101          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
65102          X"$ac_stdint_h" : 'X\(//\)$' \| \
65103          X"$ac_stdint_h" : 'X\(/\)' \| \
65104          .     : '\(.\)' 2>/dev/null ||
65105 echo X"$ac_stdint_h" |
65106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65107           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65108           /^X\(\/\/\)$/{ s//\1/; q; }
65109           /^X\(\/\).*/{ s//\1/; q; }
65110           s/.*/./; q'`
65111       { if $as_mkdir_p; then
65112     mkdir -p "$ac_dir"
65113   else
65114     as_dir="$ac_dir"
65115     as_dirs=
65116     while test ! -d "$as_dir"; do
65117       as_dirs="$as_dir $as_dirs"
65118       as_dir=`(dirname "$as_dir") 2>/dev/null ||
65119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
65120          X"$as_dir" : 'X\(//\)[^/]' \| \
65121          X"$as_dir" : 'X\(//\)$' \| \
65122          X"$as_dir" : 'X\(/\)' \| \
65123          .     : '\(.\)' 2>/dev/null ||
65124 echo X"$as_dir" |
65125     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
65126           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
65127           /^X\(\/\/\)$/{ s//\1/; q; }
65128           /^X\(\/\).*/{ s//\1/; q; }
65129           s/.*/./; q'`
65130     done
65131     test ! -n "$as_dirs" || mkdir $as_dirs
65132   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
65133 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
65134    { (exit 1); exit 1; }; }; }
65135
65136       rm -f $ac_stdint_h
65137       mv $ac_stdint $ac_stdint_h
65138     fi
65139  ;;
65140   esac
65141 done
65142 _ACEOF
65143
65144 cat >>$CONFIG_STATUS <<\_ACEOF
65145
65146 { (exit 0); exit 0; }
65147 _ACEOF
65148 chmod +x $CONFIG_STATUS
65149 ac_clean_files=$ac_clean_files_save
65150
65151
65152 # configure is writing to config.log, and then calls config.status.
65153 # config.status does its own redirection, appending to config.log.
65154 # Unfortunately, on DOS this fails, as config.log is still kept open
65155 # by configure, so config.status won't be able to write to it; its
65156 # output is simply discarded.  So we exec the FD to /dev/null,
65157 # effectively closing config.log, so it can be properly (re)opened and
65158 # appended to by config.status.  When coming back to configure, we
65159 # need to make the FD available again.
65160 if test "$no_create" != yes; then
65161   ac_cs_success=:
65162   ac_config_status_args=
65163   test "$silent" = yes &&
65164     ac_config_status_args="$ac_config_status_args --quiet"
65165   exec 5>/dev/null
65166   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
65167   exec 5>>config.log
65168   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
65169   # would make configure fail if this is the last instruction.
65170   $ac_cs_success || { (exit 1); exit 1; }
65171 fi
65172